From 394274190882ebbcb5c79084d2205c5198e6da5b Mon Sep 17 00:00:00 2001 From: Sieghard Hillbrecht Date: Tue, 13 Jun 2023 11:46:33 +0200 Subject: [PATCH] changes for NEOS 8.3.x compatibility. --- .../Private/JavaScript/CkStyles/package.json | 5 +- .../Public/JavaScript/CkStyles/Plugin.js | 1736 +---------------- 2 files changed, 60 insertions(+), 1681 deletions(-) diff --git a/Resources/Private/JavaScript/CkStyles/package.json b/Resources/Private/JavaScript/CkStyles/package.json index 123a146..1c137a8 100644 --- a/Resources/Private/JavaScript/CkStyles/package.json +++ b/Resources/Private/JavaScript/CkStyles/package.json @@ -7,12 +7,9 @@ "watch": "neos-react-scripts watch" }, "devDependencies": { - "@neos-project/neos-ui-extensibility": "^8.2.3" + "@neos-project/neos-ui-extensibility-webpack-adapter": "^8.3.0" }, "neos": { "buildTargetDirectory": "../../../Public/JavaScript/CkStyles" - }, - "dependencies": { - "@neos-project/build-essentials": "^8.2.3" } } diff --git a/Resources/Public/JavaScript/CkStyles/Plugin.js b/Resources/Public/JavaScript/CkStyles/Plugin.js index dac7537..927ad66 100644 --- a/Resources/Public/JavaScript/CkStyles/Plugin.js +++ b/Resources/Public/JavaScript/CkStyles/Plugin.js @@ -94,31 +94,7 @@ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var __importDefault = undefined && undefined.__importDefault || function (mod) { - return mod && mod.__esModule ? mod : { "default": mod }; -}; -exports.__esModule = true; -var manifest_1 = __importDefault(__webpack_require__(/*! ./manifest */ "./node_modules/@neos-project/neos-ui-extensibility/dist/manifest.js")); -var createReadOnlyValue = function createReadOnlyValue(value) { - return { - value: value, - writable: false, - enumerable: false, - configurable: true - }; -}; -function createConsumerApi(manifests, exposureMap) { - var api = {}; - Object.keys(exposureMap).forEach(function (key) { - Object.defineProperty(api, key, createReadOnlyValue(exposureMap[key])); - }); - Object.defineProperty(api, '@manifest', createReadOnlyValue((0, manifest_1["default"])(manifests))); - Object.defineProperty(window, '@Neos:HostPluginAPI', createReadOnlyValue(api)); -} -exports["default"] = createConsumerApi; -//# sourceMappingURL=createConsumerApi.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = createConsumerApi;\n\nvar _manifest = __webpack_require__(/*! ./manifest */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/manifest.js\");\n\nvar _manifest2 = _interopRequireDefault(_manifest);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar createReadOnlyValue = function createReadOnlyValue(value) {\n return {\n value: value,\n writable: false,\n enumerable: false,\n configurable: true\n };\n};\nfunction createConsumerApi(manifests, exposureMap) {\n var api = {};\n Object.keys(exposureMap).forEach(function (key) {\n Object.defineProperty(api, key, createReadOnlyValue(exposureMap[key]));\n });\n Object.defineProperty(api, '@manifest', createReadOnlyValue((0, _manifest2.default)(manifests)));\n Object.defineProperty(window, '@Neos:HostPluginAPI', createReadOnlyValue(api));\n}\n//# sourceMappingURL=createConsumerApi.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/createConsumerApi.js?"); /***/ }), @@ -130,22 +106,7 @@ exports["default"] = createConsumerApi; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var __importDefault = undefined && undefined.__importDefault || function (mod) { - return mod && mod.__esModule ? mod : { "default": mod }; -}; -exports.__esModule = true; -exports.SynchronousMetaRegistry = exports.SynchronousRegistry = exports.readFromConsumerApi = exports.createConsumerApi = void 0; -var createConsumerApi_1 = __importDefault(__webpack_require__(/*! ./createConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/createConsumerApi.js")); -exports.createConsumerApi = createConsumerApi_1["default"]; -var readFromConsumerApi_1 = __importDefault(__webpack_require__(/*! ./readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js")); -exports.readFromConsumerApi = readFromConsumerApi_1["default"]; -var index_1 = __webpack_require__(/*! ./registry/index */ "./node_modules/@neos-project/neos-ui-extensibility/dist/registry/index.js"); -exports.SynchronousRegistry = index_1.SynchronousRegistry; -exports.SynchronousMetaRegistry = index_1.SynchronousMetaRegistry; -exports["default"] = (0, readFromConsumerApi_1["default"])('manifest'); -//# sourceMappingURL=index.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SynchronousMetaRegistry = exports.SynchronousRegistry = exports.readFromConsumerApi = exports.createConsumerApi = undefined;\n\nvar _createConsumerApi = __webpack_require__(/*! ./createConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/createConsumerApi.js\");\n\nvar _createConsumerApi2 = _interopRequireDefault(_createConsumerApi);\n\nvar _readFromConsumerApi = __webpack_require__(/*! ./readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nvar _index = __webpack_require__(/*! ./registry/index */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/registry/index.js\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = (0, _readFromConsumerApi2.default)('manifest');\nexports.createConsumerApi = _createConsumerApi2.default;\nexports.readFromConsumerApi = _readFromConsumerApi2.default;\nexports.SynchronousRegistry = _index.SynchronousRegistry;\nexports.SynchronousMetaRegistry = _index.SynchronousMetaRegistry;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/index.js?"); /***/ }), @@ -157,19 +118,7 @@ exports["default"] = (0, readFromConsumerApi_1["default"])('manifest'); /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -exports.__esModule = true; -exports["default"] = function (manifests) { - return function (identifier, options, bootstrap) { - var _a; - manifests.push((_a = {}, _a[identifier] = { - options: options, - bootstrap: bootstrap - }, _a)); - }; -}; -//# sourceMappingURL=manifest.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nexports.default = function (manifests) {\n return function (identifier, options, bootstrap) {\n manifests.push(_defineProperty({}, identifier, {\n options: options,\n bootstrap: bootstrap\n }));\n };\n};\n//# sourceMappingURL=manifest.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/manifest.js?"); /***/ }), @@ -181,55 +130,7 @@ exports["default"] = function (manifests) { /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var __read = undefined && undefined.__read || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), - r, - ar = [], - e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) { - ar.push(r.value); - } - } catch (error) { - e = { error: error }; - } finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } finally { - if (e) throw e.error; - } - } - return ar; -}; -var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); -}; -exports.__esModule = true; -function readFromConsumerApi(key) { - return function () { - var _a; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - if (window['@Neos:HostPluginAPI'] && window['@Neos:HostPluginAPI']["@".concat(key)]) { - return (_a = window['@Neos:HostPluginAPI'])["@".concat(key)].apply(_a, __spreadArray([], __read(args), false)); - } - throw new Error('You are trying to read from a consumer api that hasn\'t been initialized yet!'); - }; -} -exports["default"] = readFromConsumerApi; -//# sourceMappingURL=readFromConsumerApi.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = readFromConsumerApi;\nfunction readFromConsumerApi(key) {\n return function () {\n if (window['@Neos:HostPluginAPI'] && window['@Neos:HostPluginAPI']['@' + key]) {\n var _window$NeosHostPlu;\n\n return (_window$NeosHostPlu = window['@Neos:HostPluginAPI'])['@' + key].apply(_window$NeosHostPlu, arguments);\n }\n throw new Error('You are trying to read from a consumer api that hasn\\'t been initialized yet!');\n };\n}\n//# sourceMappingURL=readFromConsumerApi.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js?"); /***/ }), @@ -241,18 +142,7 @@ exports["default"] = readFromConsumerApi; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -exports.__esModule = true; -var AbstractRegistry = function () { - function AbstractRegistry(description) { - this.SERIAL_VERSION_UID = 'd8a5aa78-978e-11e6-ae22-56b6b6499611'; - this.description = description; - } - return AbstractRegistry; -}(); -exports["default"] = AbstractRegistry; -//# sourceMappingURL=AbstractRegistry.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar AbstractRegistry = class AbstractRegistry {\n constructor(description) {\n this.SERIAL_VERSION_UID = 'd8a5aa78-978e-11e6-ae22-56b6b6499611';\n this.description = description;\n }\n};\n//# sourceMappingURL=AbstractRegistry.js.map\n\nexports.default = AbstractRegistry;\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/registry/AbstractRegistry.js?"); /***/ }), @@ -264,48 +154,7 @@ exports["default"] = AbstractRegistry; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var __extends = undefined && undefined.__extends || function () { - var _extendStatics = function extendStatics(d, b) { - _extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (d, b) { - d.__proto__ = b; - } || function (d, b) { - for (var p in b) { - if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; - } - }; - return _extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - _extendStatics(d, b); - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -}(); -var __importDefault = undefined && undefined.__importDefault || function (mod) { - return mod && mod.__esModule ? mod : { "default": mod }; -}; -exports.__esModule = true; -var SynchronousRegistry_1 = __importDefault(__webpack_require__(/*! ./SynchronousRegistry */ "./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousRegistry.js")); -var SynchronousMetaRegistry = function (_super) { - __extends(SynchronousMetaRegistry, _super); - function SynchronousMetaRegistry() { - return _super !== null && _super.apply(this, arguments) || this; - } - SynchronousMetaRegistry.prototype.set = function (key, value) { - if (value.SERIAL_VERSION_UID !== 'd8a5aa78-978e-11e6-ae22-56b6b6499611') { - throw new Error('You can only add registries to a meta registry'); - } - return _super.prototype.set.call(this, key, value); - }; - return SynchronousMetaRegistry; -}(SynchronousRegistry_1["default"]); -exports["default"] = SynchronousMetaRegistry; -//# sourceMappingURL=SynchronousMetaRegistry.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _SynchronousRegistry = __webpack_require__(/*! ./SynchronousRegistry */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousRegistry.js\");\n\nvar _SynchronousRegistry2 = _interopRequireDefault(_SynchronousRegistry);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SynchronousMetaRegistry = class SynchronousMetaRegistry extends _SynchronousRegistry2.default {\n set(key, value) {\n if (value.SERIAL_VERSION_UID !== 'd8a5aa78-978e-11e6-ae22-56b6b6499611') {\n throw new Error('You can only add registries to a meta registry');\n }\n return super.set(key, value);\n }\n};\n//# sourceMappingURL=SynchronousMetaRegistry.js.map\n\nexports.default = SynchronousMetaRegistry;\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousMetaRegistry.js?"); /***/ }), @@ -317,121 +166,7 @@ exports["default"] = SynchronousMetaRegistry; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var __extends = undefined && undefined.__extends || function () { - var _extendStatics = function extendStatics(d, b) { - _extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function (d, b) { - d.__proto__ = b; - } || function (d, b) { - for (var p in b) { - if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; - } - }; - return _extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - _extendStatics(d, b); - function __() { - this.constructor = d; - } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -}(); -var __importDefault = undefined && undefined.__importDefault || function (mod) { - return mod && mod.__esModule ? mod : { "default": mod }; -}; -exports.__esModule = true; -var AbstractRegistry_1 = __importDefault(__webpack_require__(/*! ./AbstractRegistry */ "./node_modules/@neos-project/neos-ui-extensibility/dist/registry/AbstractRegistry.js")); -var positional_array_sorter_1 = __importDefault(__webpack_require__(/*! @neos-project/positional-array-sorter */ "./node_modules/@neos-project/positional-array-sorter/dist/positionalArraySorter.js")); -var SynchronousRegistry = function (_super) { - __extends(SynchronousRegistry, _super); - function SynchronousRegistry(description) { - var _this = _super.call(this, description) || this; - _this._registry = []; - return _this; - } - SynchronousRegistry.prototype.set = function (key, value, position) { - if (position === void 0) { - position = 0; - } - if (typeof key !== 'string') { - throw new Error('Key must be a string'); - } - if (typeof position !== 'string' && typeof position !== 'number') { - throw new Error('Position must be a string or a number'); - } - var entry = { key: key, value: value }; - if (position) { - entry.position = position; - } - var indexOfItemWithTheSameKey = this._registry.findIndex(function (item) { - return item.key === key; - }); - if (indexOfItemWithTheSameKey === -1) { - this._registry.push(entry); - } else { - this._registry[indexOfItemWithTheSameKey] = entry; - } - return value; - }; - SynchronousRegistry.prototype.get = function (key) { - if (typeof key !== 'string') { - console.error('Key must be a string'); - return null; - } - var result = this._registry.find(function (item) { - return item.key === key; - }); - return result ? result.value : null; - }; - SynchronousRegistry.prototype._getChildrenWrapped = function (searchKey) { - var unsortedChildren = this._registry.filter(function (item) { - return item.key.indexOf(searchKey + '/') === 0; - }); - return (0, positional_array_sorter_1["default"])(unsortedChildren); - }; - SynchronousRegistry.prototype.getChildrenAsObject = function (searchKey) { - var result = {}; - this._getChildrenWrapped(searchKey).forEach(function (item) { - result[item.key] = item.value; - }); - return result; - }; - SynchronousRegistry.prototype.getChildren = function (searchKey) { - return this._getChildrenWrapped(searchKey).map(function (item) { - return item.value; - }); - }; - SynchronousRegistry.prototype.has = function (key) { - if (typeof key !== 'string') { - console.error('Key must be a string'); - return false; - } - return Boolean(this._registry.find(function (item) { - return item.key === key; - })); - }; - SynchronousRegistry.prototype._getAllWrapped = function () { - return (0, positional_array_sorter_1["default"])(this._registry); - }; - SynchronousRegistry.prototype.getAllAsObject = function () { - var result = {}; - this._getAllWrapped().forEach(function (item) { - result[item.key] = item.value; - }); - return result; - }; - SynchronousRegistry.prototype.getAllAsList = function () { - return this._getAllWrapped().map(function (item) { - return Object.assign({ id: item.key }, item.value); - }); - }; - return SynchronousRegistry; -}(AbstractRegistry_1["default"]); -exports["default"] = SynchronousRegistry; -//# sourceMappingURL=SynchronousRegistry.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _AbstractRegistry = __webpack_require__(/*! ./AbstractRegistry */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/registry/AbstractRegistry.js\");\n\nvar _AbstractRegistry2 = _interopRequireDefault(_AbstractRegistry);\n\nvar _positionalArraySorter = __webpack_require__(/*! @neos-project/positional-array-sorter */ \"./node_modules/@neos-project/positional-array-sorter/dist/positionalArraySorter.js\");\n\nvar _positionalArraySorter2 = _interopRequireDefault(_positionalArraySorter);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar SynchronousRegistry = class SynchronousRegistry extends _AbstractRegistry2.default {\n constructor(description) {\n super(description);\n this._registry = [];\n }\n set(key, value) {\n var position = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n\n if (typeof key !== 'string') {\n throw new Error('Key must be a string');\n }\n if (typeof position !== 'string' && typeof position !== 'number') {\n throw new Error('Position must be a string or a number');\n }\n var entry = { key: key, value: value };\n if (position) {\n entry.position = position;\n }\n var indexOfItemWithTheSameKey = this._registry.findIndex(function (item) {\n return item.key === key;\n });\n if (indexOfItemWithTheSameKey === -1) {\n this._registry.push(entry);\n } else {\n this._registry[indexOfItemWithTheSameKey] = entry;\n }\n return value;\n }\n get(key) {\n if (typeof key !== 'string') {\n console.error('Key must be a string');\n return null;\n }\n var result = this._registry.find(function (item) {\n return item.key === key;\n });\n return result ? result.value : null;\n }\n _getChildrenWrapped(searchKey) {\n var unsortedChildren = this._registry.filter(function (item) {\n return item.key.indexOf(searchKey + '/') === 0;\n });\n return (0, _positionalArraySorter2.default)(unsortedChildren);\n }\n getChildrenAsObject(searchKey) {\n var result = {};\n this._getChildrenWrapped(searchKey).forEach(function (item) {\n result[item.key] = item.value;\n });\n return result;\n }\n getChildren(searchKey) {\n return this._getChildrenWrapped(searchKey).map(function (item) {\n return item.value;\n });\n }\n has(key) {\n if (typeof key !== 'string') {\n console.error('Key must be a string');\n return false;\n }\n return Boolean(this._registry.find(function (item) {\n return item.key === key;\n }));\n }\n _getAllWrapped() {\n return (0, _positionalArraySorter2.default)(this._registry);\n }\n getAllAsObject() {\n var result = {};\n this._getAllWrapped().forEach(function (item) {\n result[item.key] = item.value;\n });\n return result;\n }\n getAllAsList() {\n return this._getAllWrapped().map(function (item) {\n return Object.assign({ id: item.key }, item.value);\n });\n }\n};\n//# sourceMappingURL=SynchronousRegistry.js.map\n\nexports.default = SynchronousRegistry;\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousRegistry.js?"); /***/ }), @@ -443,178 +178,103 @@ exports["default"] = SynchronousRegistry; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var __importDefault = undefined && undefined.__importDefault || function (mod) { - return mod && mod.__esModule ? mod : { "default": mod }; -}; -exports.__esModule = true; -exports.SynchronousMetaRegistry = exports.SynchronousRegistry = void 0; -var SynchronousRegistry_1 = __importDefault(__webpack_require__(/*! ./SynchronousRegistry */ "./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousRegistry.js")); -exports.SynchronousRegistry = SynchronousRegistry_1["default"]; -var SynchronousMetaRegistry_1 = __importDefault(__webpack_require__(/*! ./SynchronousMetaRegistry */ "./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousMetaRegistry.js")); -exports.SynchronousMetaRegistry = SynchronousMetaRegistry_1["default"]; -//# sourceMappingURL=index.js.map +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SynchronousMetaRegistry = exports.SynchronousRegistry = undefined;\n\nvar _SynchronousRegistry = __webpack_require__(/*! ./SynchronousRegistry */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousRegistry.js\");\n\nvar _SynchronousRegistry2 = _interopRequireDefault(_SynchronousRegistry);\n\nvar _SynchronousMetaRegistry = __webpack_require__(/*! ./SynchronousMetaRegistry */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/registry/SynchronousMetaRegistry.js\");\n\nvar _SynchronousMetaRegistry2 = _interopRequireDefault(_SynchronousMetaRegistry);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.SynchronousRegistry = _SynchronousRegistry2.default;\nexports.SynchronousMetaRegistry = _SynchronousMetaRegistry2.default;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/registry/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js": -/*!****************************************************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js ***! - \****************************************************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js ***! + \*****************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('NeosProjectPackages')().CkEditorApi; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('NeosProjectPackages')().CkEditorApi;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-redux-store/index.js": -/*!*********************************************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-redux-store/index.js ***! - \*********************************************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-redux-store/index.js": +/*!**********************************************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-redux-store/index.js ***! + \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('NeosProjectPackages')().NeosUiReduxStore; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('NeosProjectPackages')().NeosUiReduxStore;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-redux-store/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/react-ui-components/index.js": -/*!*********************************************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/react-ui-components/index.js ***! - \*********************************************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/react-ui-components/index.js": +/*!**********************************************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/react-ui-components/index.js ***! + \**********************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('NeosProjectPackages')().ReactUiComponents; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('NeosProjectPackages')().ReactUiComponents;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/react-ui-components/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/ckeditor5-exports/index.js": -/*!******************************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/ckeditor5-exports/index.js ***! - \******************************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js ***! + \*******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('vendor')().CkEditor5; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('vendor')().CkEditor5;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/plow-js/index.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/plow-js/index.js ***! - \********************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/plow-js/index.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/plow-js/index.js ***! + \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('vendor')().plow; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('vendor')().plow;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/plow-js/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/prop-types/index.js": -/*!***********************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/prop-types/index.js ***! - \***********************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/prop-types/index.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/prop-types/index.js ***! + \************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('vendor')().PropTypes; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('vendor')().PropTypes;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/prop-types/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react-redux/index.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react-redux/index.js ***! - \************************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react-redux/index.js": +/*!*************************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react-redux/index.js ***! + \*************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('vendor')().reactRedux; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('vendor')().reactRedux;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react-redux/index.js?"); /***/ }), -/***/ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react/index.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react/index.js ***! - \******************************************************************************************/ +/***/ "./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react/index.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react/index.js ***! + \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _readFromConsumerApi = __webpack_require__(/*! ../../../../dist/readFromConsumerApi */ "./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js"); - -var _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -module.exports = (0, _readFromConsumerApi2.default)('vendor')().React; +eval("\n\nvar _readFromConsumerApi = __webpack_require__(/*! ../../../readFromConsumerApi */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/readFromConsumerApi.js\");\n\nvar _readFromConsumerApi2 = _interopRequireDefault(_readFromConsumerApi);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = (0, _readFromConsumerApi2.default)('vendor')().React;\n//# sourceMappingURL=index.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react/index.js?"); /***/ }), @@ -626,512 +286,7 @@ module.exports = (0, _readFromConsumerApi2.default)('vendor')().React; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -exports.__esModule = true; -var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js"); -var positionalArraySorter = function positionalArraySorter(subject, position, idKey) { - var e_1, _a, e_2, _b, e_3, _c, e_4, _d, e_5, _e, e_6, _f, e_7, _g; - if (position === void 0) { - position = 'position'; - } - if (idKey === void 0) { - idKey = 'key'; - } - var positionAccessor = typeof position === 'string' ? function (value) { - return value[position]; - } : position; - var indexMapping = {}; - var middleKeys = {}; - var startKeys = {}; - var endKeys = {}; - var beforeKeys = {}; - var afterKeys = {}; - subject.forEach(function (item, index) { - var key = item[idKey] ? item[idKey] : String(index); - indexMapping[key] = index; - var positionValue = positionAccessor(item); - var position = String(positionValue ? positionValue : index); - var invalid = false; - if (position.startsWith('start')) { - var weightMatch = position.match(/start\s+(\d+)/); - var weight = weightMatch && weightMatch[1] ? Number(weightMatch[1]) : 0; - if (!startKeys[weight]) { - startKeys[weight] = []; - } - startKeys[weight].push(key); - } else if (position.startsWith('end')) { - var weightMatch = position.match(/end\s+(\d+)/); - var weight = weightMatch && weightMatch[1] ? Number(weightMatch[1]) : 0; - if (!endKeys[weight]) { - endKeys[weight] = []; - } - endKeys[weight].push(key); - } else if (position.startsWith('before')) { - var match = position.match(/before\s+(\S+)(\s+(\d+))?/); - if (!match) { - invalid = true; - } else { - var reference = match[1]; - var weight = match[3] ? Number(match[3]) : 0; - if (!beforeKeys[reference]) { - beforeKeys[reference] = {}; - } - if (!beforeKeys[reference][weight]) { - beforeKeys[reference][weight] = []; - } - beforeKeys[reference][weight].push(key); - } - } else if (position.startsWith('after')) { - var match = position.match(/after\s+(\S+)(\s+(\d+))?/); - if (!match) { - invalid = true; - } else { - var reference = match[1]; - var weight = match[3] ? Number(match[3]) : 0; - if (!afterKeys[reference]) { - afterKeys[reference] = {}; - } - if (!afterKeys[reference][weight]) { - afterKeys[reference][weight] = []; - } - afterKeys[reference][weight].push(key); - } - } else { - invalid = true; - } - if (invalid) { - var numberPosition = parseFloat(position); - if (isNaN(numberPosition) || !isFinite(numberPosition)) { - numberPosition = index; - } - if (!middleKeys[numberPosition]) { - middleKeys[numberPosition] = []; - } - middleKeys[numberPosition].push(key); - } - }); - var resultStart = []; - var resultMiddle = []; - var resultEnd = []; - var processedKeys = []; - var sortedWeights = function sortedWeights(dict, asc) { - var weights = Object.keys(dict).map(function (x) { - return Number(x); - }).sort(function (a, b) { - return a - b; - }); - return asc ? weights : weights.reverse(); - }; - var addToResults = function addToResults(keys, result) { - keys.forEach(function (key) { - var e_8, _a, e_9, _b; - if (processedKeys.indexOf(key) >= 0) { - return; - } - processedKeys.push(key); - if (beforeKeys[key]) { - var beforeWeights = sortedWeights(beforeKeys[key], true); - try { - for (var beforeWeights_1 = tslib_1.__values(beforeWeights), beforeWeights_1_1 = beforeWeights_1.next(); !beforeWeights_1_1.done; beforeWeights_1_1 = beforeWeights_1.next()) { - var i = beforeWeights_1_1.value; - addToResults(beforeKeys[key][i], result); - } - } catch (e_8_1) { - e_8 = { error: e_8_1 }; - } finally { - try { - if (beforeWeights_1_1 && !beforeWeights_1_1.done && (_a = beforeWeights_1["return"])) _a.call(beforeWeights_1); - } finally { - if (e_8) throw e_8.error; - } - } - } - result.push(key); - if (afterKeys[key]) { - var afterWeights = sortedWeights(afterKeys[key], false); - try { - for (var afterWeights_1 = tslib_1.__values(afterWeights), afterWeights_1_1 = afterWeights_1.next(); !afterWeights_1_1.done; afterWeights_1_1 = afterWeights_1.next()) { - var i = afterWeights_1_1.value; - addToResults(afterKeys[key][i], result); - } - } catch (e_9_1) { - e_9 = { error: e_9_1 }; - } finally { - try { - if (afterWeights_1_1 && !afterWeights_1_1.done && (_b = afterWeights_1["return"])) _b.call(afterWeights_1); - } finally { - if (e_9) throw e_9.error; - } - } - } - }); - }; - try { - for (var _h = tslib_1.__values(sortedWeights(startKeys, false)), _j = _h.next(); !_j.done; _j = _h.next()) { - var i = _j.value; - addToResults(startKeys[i], resultStart); - } - } catch (e_1_1) { - e_1 = { error: e_1_1 }; - } finally { - try { - if (_j && !_j.done && (_a = _h["return"])) _a.call(_h); - } finally { - if (e_1) throw e_1.error; - } - } - try { - for (var _k = tslib_1.__values(sortedWeights(middleKeys, true)), _l = _k.next(); !_l.done; _l = _k.next()) { - var i = _l.value; - addToResults(middleKeys[i], resultMiddle); - } - } catch (e_2_1) { - e_2 = { error: e_2_1 }; - } finally { - try { - if (_l && !_l.done && (_b = _k["return"])) _b.call(_k); - } finally { - if (e_2) throw e_2.error; - } - } - try { - for (var _m = tslib_1.__values(sortedWeights(endKeys, true)), _o = _m.next(); !_o.done; _o = _m.next()) { - var i = _o.value; - addToResults(endKeys[i], resultEnd); - } - } catch (e_3_1) { - e_3 = { error: e_3_1 }; - } finally { - try { - if (_o && !_o.done && (_c = _m["return"])) _c.call(_m); - } finally { - if (e_3) throw e_3.error; - } - } - try { - for (var _p = tslib_1.__values(Object.keys(beforeKeys)), _q = _p.next(); !_q.done; _q = _p.next()) { - var key = _q.value; - if (processedKeys.indexOf(key) >= 0) { - continue; - } - try { - for (var _r = (e_5 = void 0, tslib_1.__values(sortedWeights(beforeKeys[key], false))), _s = _r.next(); !_s.done; _s = _r.next()) { - var i = _s.value; - addToResults(beforeKeys[key][i], resultStart); - } - } catch (e_5_1) { - e_5 = { error: e_5_1 }; - } finally { - try { - if (_s && !_s.done && (_e = _r["return"])) _e.call(_r); - } finally { - if (e_5) throw e_5.error; - } - } - } - } catch (e_4_1) { - e_4 = { error: e_4_1 }; - } finally { - try { - if (_q && !_q.done && (_d = _p["return"])) _d.call(_p); - } finally { - if (e_4) throw e_4.error; - } - } - try { - for (var _t = tslib_1.__values(Object.keys(afterKeys)), _u = _t.next(); !_u.done; _u = _t.next()) { - var key = _u.value; - if (processedKeys.indexOf(key) >= 0) { - continue; - } - try { - for (var _v = (e_7 = void 0, tslib_1.__values(sortedWeights(afterKeys[key], false))), _w = _v.next(); !_w.done; _w = _v.next()) { - var i = _w.value; - addToResults(afterKeys[key][i], resultMiddle); - } - } catch (e_7_1) { - e_7 = { error: e_7_1 }; - } finally { - try { - if (_w && !_w.done && (_g = _v["return"])) _g.call(_v); - } finally { - if (e_7) throw e_7.error; - } - } - } - } catch (e_6_1) { - e_6 = { error: e_6_1 }; - } finally { - try { - if (_u && !_u.done && (_f = _t["return"])) _f.call(_t); - } finally { - if (e_6) throw e_6.error; - } - } - var sortedKeys = tslib_1.__spread(resultStart, resultMiddle, resultEnd); - return sortedKeys.map(function (key) { - return indexMapping[key]; - }).map(function (i) { - return subject[i]; - }); -}; -exports["default"] = positionalArraySorter; -//# sourceMappingURL=positionalArraySorter.js.map - -/***/ }), - -/***/ "./node_modules/tslib/tslib.es6.js": -/*!*****************************************!*\ - !*** ./node_modules/tslib/tslib.es6.js ***! - \*****************************************/ -/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; }); -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} - +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar positionalArraySorter = function positionalArraySorter(subject) {\n var position = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'position';\n var idKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'key';\n\n var positionAccessor = typeof position === 'string' ? function (value) {\n return value[position];\n } : position;\n var indexMapping = {};\n var middleKeys = {};\n var startKeys = {};\n var endKeys = {};\n var beforeKeys = {};\n var afterKeys = {};\n subject.forEach(function (item, index) {\n var key = item[idKey] ? item[idKey] : String(index);\n indexMapping[key] = index;\n var positionValue = positionAccessor(item);\n var position = String(positionValue ? positionValue : index);\n var invalid = false;\n if (position.startsWith('start')) {\n var weightMatch = position.match(/start\\s+(\\d+)/);\n var weight = weightMatch && weightMatch[1] ? Number(weightMatch[1]) : 0;\n if (!startKeys[weight]) {\n startKeys[weight] = [];\n }\n startKeys[weight].push(key);\n } else if (position.startsWith('end')) {\n var _weightMatch = position.match(/end\\s+(\\d+)/);\n var _weight = _weightMatch && _weightMatch[1] ? Number(_weightMatch[1]) : 0;\n if (!endKeys[_weight]) {\n endKeys[_weight] = [];\n }\n endKeys[_weight].push(key);\n } else if (position.startsWith('before')) {\n var match = position.match(/before\\s+(\\S+)(\\s+(\\d+))?/);\n if (!match) {\n invalid = true;\n } else {\n var reference = match[1];\n var _weight2 = match[3] ? Number(match[3]) : 0;\n if (!beforeKeys[reference]) {\n beforeKeys[reference] = {};\n }\n if (!beforeKeys[reference][_weight2]) {\n beforeKeys[reference][_weight2] = [];\n }\n beforeKeys[reference][_weight2].push(key);\n }\n } else if (position.startsWith('after')) {\n var _match = position.match(/after\\s+(\\S+)(\\s+(\\d+))?/);\n if (!_match) {\n invalid = true;\n } else {\n var _reference = _match[1];\n var _weight3 = _match[3] ? Number(_match[3]) : 0;\n if (!afterKeys[_reference]) {\n afterKeys[_reference] = {};\n }\n if (!afterKeys[_reference][_weight3]) {\n afterKeys[_reference][_weight3] = [];\n }\n afterKeys[_reference][_weight3].push(key);\n }\n } else {\n invalid = true;\n }\n if (invalid) {\n var numberPosition = parseFloat(position);\n if (isNaN(numberPosition) || !isFinite(numberPosition)) {\n numberPosition = index;\n }\n if (!middleKeys[numberPosition]) {\n middleKeys[numberPosition] = [];\n }\n middleKeys[numberPosition].push(key);\n }\n });\n var resultStart = [];\n var resultMiddle = [];\n var resultEnd = [];\n var processedKeys = [];\n var sortedWeights = function sortedWeights(dict, asc) {\n var weights = Object.keys(dict).map(function (x) {\n return Number(x);\n }).sort(function (a, b) {\n return a - b;\n });\n return asc ? weights : weights.reverse();\n };\n var addToResults = function addToResults(keys, result) {\n keys.forEach(function (key) {\n if (processedKeys.indexOf(key) >= 0) {\n return;\n }\n processedKeys.push(key);\n if (beforeKeys[key]) {\n var beforeWeights = sortedWeights(beforeKeys[key], true);\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = beforeWeights[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var i = _step.value;\n\n addToResults(beforeKeys[key][i], result);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n result.push(key);\n if (afterKeys[key]) {\n var afterWeights = sortedWeights(afterKeys[key], false);\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = afterWeights[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var _i = _step2.value;\n\n addToResults(afterKeys[key][_i], result);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n }\n });\n };\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n for (var _iterator3 = sortedWeights(startKeys, false)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n var i = _step3.value;\n\n addToResults(startKeys[i], resultStart);\n }\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3.return) {\n _iterator3.return();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n\n var _iteratorNormalCompletion4 = true;\n var _didIteratorError4 = false;\n var _iteratorError4 = undefined;\n\n try {\n for (var _iterator4 = sortedWeights(middleKeys, true)[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {\n var _i2 = _step4.value;\n\n addToResults(middleKeys[_i2], resultMiddle);\n }\n } catch (err) {\n _didIteratorError4 = true;\n _iteratorError4 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion4 && _iterator4.return) {\n _iterator4.return();\n }\n } finally {\n if (_didIteratorError4) {\n throw _iteratorError4;\n }\n }\n }\n\n var _iteratorNormalCompletion5 = true;\n var _didIteratorError5 = false;\n var _iteratorError5 = undefined;\n\n try {\n for (var _iterator5 = sortedWeights(endKeys, true)[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) {\n var _i3 = _step5.value;\n\n addToResults(endKeys[_i3], resultEnd);\n }\n } catch (err) {\n _didIteratorError5 = true;\n _iteratorError5 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion5 && _iterator5.return) {\n _iterator5.return();\n }\n } finally {\n if (_didIteratorError5) {\n throw _iteratorError5;\n }\n }\n }\n\n var _iteratorNormalCompletion6 = true;\n var _didIteratorError6 = false;\n var _iteratorError6 = undefined;\n\n try {\n for (var _iterator6 = Object.keys(beforeKeys)[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) {\n var key = _step6.value;\n\n if (processedKeys.indexOf(key) >= 0) {\n continue;\n }\n var _iteratorNormalCompletion8 = true;\n var _didIteratorError8 = false;\n var _iteratorError8 = undefined;\n\n try {\n for (var _iterator8 = sortedWeights(beforeKeys[key], false)[Symbol.iterator](), _step8; !(_iteratorNormalCompletion8 = (_step8 = _iterator8.next()).done); _iteratorNormalCompletion8 = true) {\n var _i4 = _step8.value;\n\n addToResults(beforeKeys[key][_i4], resultStart);\n }\n } catch (err) {\n _didIteratorError8 = true;\n _iteratorError8 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion8 && _iterator8.return) {\n _iterator8.return();\n }\n } finally {\n if (_didIteratorError8) {\n throw _iteratorError8;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError6 = true;\n _iteratorError6 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion6 && _iterator6.return) {\n _iterator6.return();\n }\n } finally {\n if (_didIteratorError6) {\n throw _iteratorError6;\n }\n }\n }\n\n var _iteratorNormalCompletion7 = true;\n var _didIteratorError7 = false;\n var _iteratorError7 = undefined;\n\n try {\n for (var _iterator7 = Object.keys(afterKeys)[Symbol.iterator](), _step7; !(_iteratorNormalCompletion7 = (_step7 = _iterator7.next()).done); _iteratorNormalCompletion7 = true) {\n var _key = _step7.value;\n\n if (processedKeys.indexOf(_key) >= 0) {\n continue;\n }\n var _iteratorNormalCompletion9 = true;\n var _didIteratorError9 = false;\n var _iteratorError9 = undefined;\n\n try {\n for (var _iterator9 = sortedWeights(afterKeys[_key], false)[Symbol.iterator](), _step9; !(_iteratorNormalCompletion9 = (_step9 = _iterator9.next()).done); _iteratorNormalCompletion9 = true) {\n var _i5 = _step9.value;\n\n addToResults(afterKeys[_key][_i5], resultMiddle);\n }\n } catch (err) {\n _didIteratorError9 = true;\n _iteratorError9 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion9 && _iterator9.return) {\n _iterator9.return();\n }\n } finally {\n if (_didIteratorError9) {\n throw _iteratorError9;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError7 = true;\n _iteratorError7 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion7 && _iterator7.return) {\n _iterator7.return();\n }\n } finally {\n if (_didIteratorError7) {\n throw _iteratorError7;\n }\n }\n }\n\n var sortedKeys = [].concat(resultStart, resultMiddle, resultEnd);\n return sortedKeys.map(function (key) {\n return indexMapping[key];\n }).map(function (i) {\n return subject[i];\n });\n};\nexports.default = positionalArraySorter;\n//# sourceMappingURL=positionalArraySorter.js.map\n\n//# sourceURL=webpack:///./node_modules/@neos-project/positional-array-sorter/dist/positionalArraySorter.js?"); /***/ }), @@ -1143,176 +298,7 @@ function __classPrivateFieldSet(receiver, privateMap, value) { /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/ckeditor5-exports/index.js"); - -/** - * Set a key-value block style; e.g. "fontColor=red". - */ - -var BlockStyleCommand = class BlockStyleCommand extends _ckeditor5Exports.Command { - /** - * @param {module:core/editor/editor~Editor} editor - * @param {String} attributeKey Attribute that will be set by the command. - */ - constructor(editor, attributeKey) { - super(editor); - - /** - * The attribute that will be set by the command. - * - * @readonly - * @member {String} - */ - this.attributeKey = attributeKey; - - /** - * Flag indicating whether the command is active. The command is active when the - * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that: - * - * @observable - * @readonly - * @member {Boolean} #value - */ - } - - /** - * Updates the command's {@link #value} and {@link #isEnabled}. - */ - refresh() { - var model = this.editor.model; - var doc = model.document; - var blocksToChange = Array.from(doc.selection.getSelectedBlocks()); - - this.value = this._getValueFromBlockNode(); - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = blocksToChange[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var block = _step.value; - - if (model.schema.checkAttribute(block, this.attributeKey)) { - this.isEnabled = true; - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - } - - /** - * Executes the command — sets the attribute to the desired value. If there is no desired valued, removes the - * attribute on each block. - * - * @fires execute - * @param {Object} [options] Command options. - * @param {String} [options.value] The value to be set; if null or not existing, the attribute will be removed. - */ - execute() { - var _this = this; - - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var model = this.editor.model; - var doc = model.document; - var selection = doc.selection; - var value = options.value; - var blocksToChange = Array.from(selection.getSelectedBlocks()); - model.change(function (writer) { - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - - try { - for (var _iterator2 = blocksToChange[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var block = _step2.value; - - if (value) { - writer.setAttribute(_this.attributeKey, value, block); - } else { - writer.removeAttribute(_this.attributeKey, block); - } - } - } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; - } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } - } - }); - } - - /** - * Checks the attribute value of the parent block node(s) - * - * @private - * @returns {String} The attribute value. - */ - _getValueFromBlockNode() { - var model = this.editor.model; - var schema = model.schema; - var selection = model.document.selection; - var blocks = Array.from(selection.getSelectedBlocks()); - - var _iteratorNormalCompletion3 = true; - var _didIteratorError3 = false; - var _iteratorError3 = undefined; - - try { - for (var _iterator3 = blocks[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { - var block = _step3.value; - - if (schema.checkAttribute(block, this.attributeKey)) { - return block.getAttribute(this.attributeKey); - } - } - } catch (err) { - _didIteratorError3 = true; - _iteratorError3 = err; - } finally { - try { - if (!_iteratorNormalCompletion3 && _iterator3.return) { - _iterator3.return(); - } - } finally { - if (_didIteratorError3) { - throw _iteratorError3; - } - } - } - - return undefined; - } -}; // Originally taken from https://raw.githubusercontent.com/ckeditor/ckeditor5/master/packages/ckeditor5-basic-styles/src/attributecommand.js and adjusted - -exports.default = BlockStyleCommand; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js\");\n\n/**\n * Set a key-value block style; e.g. \"fontColor=red\".\n */\n\nvar BlockStyleCommand = class BlockStyleCommand extends _ckeditor5Exports.Command {\n /**\n * @param {module:core/editor/editor~Editor} editor\n * @param {String} attributeKey Attribute that will be set by the command.\n */\n constructor(editor, attributeKey) {\n super(editor);\n\n /**\n * The attribute that will be set by the command.\n *\n * @readonly\n * @member {String}\n */\n this.attributeKey = attributeKey;\n\n /**\n * Flag indicating whether the command is active. The command is active when the\n * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that:\n *\n * @observable\n * @readonly\n * @member {Boolean} #value\n */\n }\n\n /**\n * Updates the command's {@link #value} and {@link #isEnabled}.\n */\n refresh() {\n var model = this.editor.model;\n var doc = model.document;\n var blocksToChange = Array.from(doc.selection.getSelectedBlocks());\n\n this.value = this._getValueFromBlockNode();\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = blocksToChange[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var block = _step.value;\n\n if (model.schema.checkAttribute(block, this.attributeKey)) {\n this.isEnabled = true;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n\n /**\n * Executes the command — sets the attribute to the desired value. If there is no desired valued, removes the\n * attribute on each block.\n *\n * @fires execute\n * @param {Object} [options] Command options.\n * @param {String} [options.value] The value to be set; if null or not existing, the attribute will be removed.\n */\n execute() {\n var _this = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var model = this.editor.model;\n var doc = model.document;\n var selection = doc.selection;\n var value = options.value;\n var blocksToChange = Array.from(selection.getSelectedBlocks());\n model.change(function (writer) {\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = blocksToChange[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var block = _step2.value;\n\n if (value) {\n writer.setAttribute(_this.attributeKey, value, block);\n } else {\n writer.removeAttribute(_this.attributeKey, block);\n }\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n });\n }\n\n /**\n * Checks the attribute value of the parent block node(s)\n *\n * @private\n * @returns {String} The attribute value.\n */\n _getValueFromBlockNode() {\n var model = this.editor.model;\n var schema = model.schema;\n var selection = model.document.selection;\n var blocks = Array.from(selection.getSelectedBlocks());\n\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n for (var _iterator3 = blocks[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n var block = _step3.value;\n\n if (schema.checkAttribute(block, this.attributeKey)) {\n return block.getAttribute(this.attributeKey);\n }\n }\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3.return) {\n _iterator3.return();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n\n return undefined;\n }\n}; // Originally taken from https://raw.githubusercontent.com/ckeditor/ckeditor5/master/packages/ckeditor5-basic-styles/src/attributecommand.js and adjusted\n\nexports.default = BlockStyleCommand;\n\n//# sourceURL=webpack:///./src/BlockStyleCommand.js?"); /***/ }), @@ -1324,64 +310,7 @@ exports.default = BlockStyleCommand; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/ckeditor5-exports/index.js"); - -var _BlockStyleCommand = __webpack_require__(/*! ./BlockStyleCommand */ "./src/BlockStyleCommand.js"); - -var _BlockStyleCommand2 = _interopRequireDefault(_BlockStyleCommand); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * FACTORY FUNCTION for the plugin - * needs the current preset configuration as parameter. - */ -exports.default = function (presetIdentifier, presetConfiguration) { - return class BlockStyleEditing extends _ckeditor5Exports.Plugin { - init() { - var schema = this.editor.model.schema; - var modelAttributeKey = 'blockStyles-' + presetIdentifier; - var optionIdentifiers = Object.keys(presetConfiguration.options); - - schema.extend('$block', { allowAttributes: modelAttributeKey }); - - // https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html - schema.setAttributeProperties(modelAttributeKey, { isFormatting: true }); - - // Model configuration - var config = { - model: { - key: modelAttributeKey, - values: optionIdentifiers - }, - view: {} - }; - - // View configuration - optionIdentifiers.forEach(function (optionIdentifier) { - var options = presetConfiguration.options[optionIdentifier]; - var attribute = options.attribute || 'class'; - var attributeValues = attribute === options.attribute ? options.attributeValue : options.cssClass.split(' '); - - config.view[optionIdentifier] = { - key: attribute, - value: attributeValues - }; - }); - - // Convert the model to view correctly - this.editor.conversion.attributeToAttribute(config); - - this.editor.commands.add('blockStyles:' + presetIdentifier, new _BlockStyleCommand2.default(this.editor, modelAttributeKey)); - } - }; -}; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js\");\n\nvar _BlockStyleCommand = __webpack_require__(/*! ./BlockStyleCommand */ \"./src/BlockStyleCommand.js\");\n\nvar _BlockStyleCommand2 = _interopRequireDefault(_BlockStyleCommand);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/**\n * FACTORY FUNCTION for the plugin\n * needs the current preset configuration as parameter.\n */\nexports.default = function (presetIdentifier, presetConfiguration) {\n return class BlockStyleEditing extends _ckeditor5Exports.Plugin {\n init() {\n var schema = this.editor.model.schema;\n var modelAttributeKey = 'blockStyles-' + presetIdentifier;\n var optionIdentifiers = Object.keys(presetConfiguration.options);\n\n schema.extend('$block', { allowAttributes: modelAttributeKey });\n\n // https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html\n schema.setAttributeProperties(modelAttributeKey, { isFormatting: true });\n\n // Model configuration\n var config = {\n model: {\n key: modelAttributeKey,\n values: optionIdentifiers\n },\n view: {}\n };\n\n // View configuration\n optionIdentifiers.forEach(function (optionIdentifier) {\n var options = presetConfiguration.options[optionIdentifier];\n var attribute = options.attribute || 'class';\n var attributeValues = attribute === options.attribute ? options.attributeValue : options.cssClass.split(' ');\n\n config.view[optionIdentifier] = {\n key: attribute,\n value: attributeValues\n };\n });\n\n // Convert the model to view correctly\n this.editor.conversion.attributeToAttribute(config);\n\n this.editor.commands.add('blockStyles:' + presetIdentifier, new _BlockStyleCommand2.default(this.editor, modelAttributeKey));\n }\n };\n};\n\n//# sourceURL=webpack:///./src/BlockStyleEditing.js?"); /***/ }), @@ -1393,187 +322,7 @@ exports.default = function (presetIdentifier, presetConfiguration) { /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/ckeditor5-exports/index.js"); - -/** - * Set a key-value inline style; e.g. "fontColor=red". - * - */ -var InlineStylesCommand = class InlineStylesCommand extends _ckeditor5Exports.Command { - /** - * @param {module:core/editor/editor~Editor} editor - * @param {String} attributeKey Attribute that will be set by the command. - */ - constructor(editor, attributeKey) { - super(editor); - - /** - * The attribute that will be set by the command. - * - * @readonly - * @member {String} - */ - this.attributeKey = attributeKey; - - /** - * Flag indicating whether the command is active. The command is active when the - * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that: - ** - * @observable - * @readonly - * @member {Boolean} #value - */ - } - - /** - * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection. - */ - refresh() { - var model = this.editor.model; - var doc = model.document; - - this.value = this._getValueFromFirstAllowedNode(); - this.isEnabled = model.schema.checkAttributeInSelection(doc.selection, this.attributeKey); - } - - /** - * Executes the command — sets the attribute to the desired value. If there is no desired valued, removes the - * attribute. - * - * @fires execute - * @param {Object} [options] Command options. - * @param {String} [options.value] The value to be set; if null or not existing, the attribute will be removed. - */ - execute() { - var _this = this; - - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - - var model = this.editor.model; - var doc = model.document; - var selection = doc.selection; - var value = options.value; - - model.change(function (writer) { - if (selection.isCollapsed) { - if (value) { - // value is existing, we want to set the selection attribute to the value. - writer.setSelectionAttribute(_this.attributeKey, value); - } else { - writer.removeSelectionAttribute(_this.attributeKey); - } - } else { - var ranges = model.schema.getValidRanges(selection.getRanges(), _this.attributeKey); - - var _iteratorNormalCompletion = true; - var _didIteratorError = false; - var _iteratorError = undefined; - - try { - for (var _iterator = ranges[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { - var range = _step.value; - - if (value) { - writer.setAttribute(_this.attributeKey, value, range); - } else { - writer.removeAttribute(_this.attributeKey, range); - } - } - } catch (err) { - _didIteratorError = true; - _iteratorError = err; - } finally { - try { - if (!_iteratorNormalCompletion && _iterator.return) { - _iterator.return(); - } - } finally { - if (_didIteratorError) { - throw _iteratorError; - } - } - } - } - }); - } - - /** - * Checks the attribute value of the first node in the selection that allows the attribute. - * For the collapsed selection returns the selection attribute. - * - * @private - * @returns {String} The attribute value. - */ - _getValueFromFirstAllowedNode() { - var model = this.editor.model; - var schema = model.schema; - var selection = model.document.selection; - - if (selection.isCollapsed) { - return selection.getAttribute(this.attributeKey); - } - - var _iteratorNormalCompletion2 = true; - var _didIteratorError2 = false; - var _iteratorError2 = undefined; - - try { - for (var _iterator2 = selection.getRanges()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { - var range = _step2.value; - var _iteratorNormalCompletion3 = true; - var _didIteratorError3 = false; - var _iteratorError3 = undefined; - - try { - for (var _iterator3 = range.getItems()[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { - var item = _step3.value; - - if (schema.checkAttribute(item, this.attributeKey)) { - return item.getAttribute(this.attributeKey); - } - } - } catch (err) { - _didIteratorError3 = true; - _iteratorError3 = err; - } finally { - try { - if (!_iteratorNormalCompletion3 && _iterator3.return) { - _iterator3.return(); - } - } finally { - if (_didIteratorError3) { - throw _iteratorError3; - } - } - } - } - } catch (err) { - _didIteratorError2 = true; - _iteratorError2 = err; - } finally { - try { - if (!_iteratorNormalCompletion2 && _iterator2.return) { - _iterator2.return(); - } - } finally { - if (_didIteratorError2) { - throw _iteratorError2; - } - } - } - - return undefined; - } -}; // Originally taken from https://raw.githubusercontent.com/ckeditor/ckeditor5/master/packages/ckeditor5-basic-styles/src/attributecommand.js and adjusted - -exports.default = InlineStylesCommand; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js\");\n\n/**\n * Set a key-value inline style; e.g. \"fontColor=red\".\n *\n */\nvar InlineStylesCommand = class InlineStylesCommand extends _ckeditor5Exports.Command {\n /**\n * @param {module:core/editor/editor~Editor} editor\n * @param {String} attributeKey Attribute that will be set by the command.\n */\n constructor(editor, attributeKey) {\n super(editor);\n\n /**\n * The attribute that will be set by the command.\n *\n * @readonly\n * @member {String}\n */\n this.attributeKey = attributeKey;\n\n /**\n * Flag indicating whether the command is active. The command is active when the\n * {@link module:engine/model/selection~Selection#hasAttribute selection has the attribute} which means that:\n **\n * @observable\n * @readonly\n * @member {Boolean} #value\n */\n }\n\n /**\n * Updates the command's {@link #value} and {@link #isEnabled} based on the current selection.\n */\n refresh() {\n var model = this.editor.model;\n var doc = model.document;\n\n this.value = this._getValueFromFirstAllowedNode();\n this.isEnabled = model.schema.checkAttributeInSelection(doc.selection, this.attributeKey);\n }\n\n /**\n * Executes the command — sets the attribute to the desired value. If there is no desired valued, removes the\n * attribute.\n *\n * @fires execute\n * @param {Object} [options] Command options.\n * @param {String} [options.value] The value to be set; if null or not existing, the attribute will be removed.\n */\n execute() {\n var _this = this;\n\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var model = this.editor.model;\n var doc = model.document;\n var selection = doc.selection;\n var value = options.value;\n\n model.change(function (writer) {\n if (selection.isCollapsed) {\n if (value) {\n // value is existing, we want to set the selection attribute to the value.\n writer.setSelectionAttribute(_this.attributeKey, value);\n } else {\n writer.removeSelectionAttribute(_this.attributeKey);\n }\n } else {\n var ranges = model.schema.getValidRanges(selection.getRanges(), _this.attributeKey);\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = ranges[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var range = _step.value;\n\n if (value) {\n writer.setAttribute(_this.attributeKey, value, range);\n } else {\n writer.removeAttribute(_this.attributeKey, range);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n });\n }\n\n /**\n * Checks the attribute value of the first node in the selection that allows the attribute.\n * For the collapsed selection returns the selection attribute.\n *\n * @private\n * @returns {String} The attribute value.\n */\n _getValueFromFirstAllowedNode() {\n var model = this.editor.model;\n var schema = model.schema;\n var selection = model.document.selection;\n\n if (selection.isCollapsed) {\n return selection.getAttribute(this.attributeKey);\n }\n\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = selection.getRanges()[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var range = _step2.value;\n var _iteratorNormalCompletion3 = true;\n var _didIteratorError3 = false;\n var _iteratorError3 = undefined;\n\n try {\n for (var _iterator3 = range.getItems()[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n var item = _step3.value;\n\n if (schema.checkAttribute(item, this.attributeKey)) {\n return item.getAttribute(this.attributeKey);\n }\n }\n } catch (err) {\n _didIteratorError3 = true;\n _iteratorError3 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion3 && _iterator3.return) {\n _iterator3.return();\n }\n } finally {\n if (_didIteratorError3) {\n throw _iteratorError3;\n }\n }\n }\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n\n return undefined;\n }\n}; // Originally taken from https://raw.githubusercontent.com/ckeditor/ckeditor5/master/packages/ckeditor5-basic-styles/src/attributecommand.js and adjusted\n\nexports.default = InlineStylesCommand;\n\n//# sourceURL=webpack:///./src/InlineStylesCommand.js?"); /***/ }), @@ -1585,67 +334,7 @@ exports.default = InlineStylesCommand; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/ckeditor5-exports/index.js"); - -var _InlineStylesCommand = __webpack_require__(/*! ./InlineStylesCommand */ "./src/InlineStylesCommand.js"); - -var _InlineStylesCommand2 = _interopRequireDefault(_InlineStylesCommand); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -/** - * FACTORY FUNCTION for the plugin - * needs the current preset configuration as parameter. - */ -exports.default = function (presetIdentifier, presetConfiguration) { - return class InlineStylesEditing extends _ckeditor5Exports.Plugin { - init() { - var schema = this.editor.model.schema; - var optionIdentifiers = Object.keys(presetConfiguration.options); - var modelAttributeKey = 'inlineStyles-' + presetIdentifier; - - schema.extend('$text', { allowAttributes: modelAttributeKey }); - - // https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html - schema.setAttributeProperties(modelAttributeKey, { isFormatting: true }); - - // Model configuration - var config = { - model: { - key: modelAttributeKey, - values: optionIdentifiers - }, - view: {} - }; - - // View configuration - optionIdentifiers.forEach(function (optionIdentifier) { - var options = presetConfiguration.options[optionIdentifier]; - var attribute = options.attribute; - - var classes = options.attributeValue || options.cssClass; - - config.view[optionIdentifier] = { - name: 'span', - attributes: _defineProperty({}, attribute ? attribute : 'class', classes) - }; - }); - - // Convert the model to view correctly - this.editor.conversion.attributeToElement(config); - - this.editor.commands.add('inlineStyles:' + presetIdentifier, new _InlineStylesCommand2.default(this.editor, modelAttributeKey)); - } - }; -}; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ckeditor5Exports = __webpack_require__(/*! ckeditor5-exports */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/ckeditor5-exports/index.js\");\n\nvar _InlineStylesCommand = __webpack_require__(/*! ./InlineStylesCommand */ \"./src/InlineStylesCommand.js\");\n\nvar _InlineStylesCommand2 = _interopRequireDefault(_InlineStylesCommand);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n/**\n * FACTORY FUNCTION for the plugin\n * needs the current preset configuration as parameter.\n */\nexports.default = function (presetIdentifier, presetConfiguration) {\n return class InlineStylesEditing extends _ckeditor5Exports.Plugin {\n init() {\n var schema = this.editor.model.schema;\n var optionIdentifiers = Object.keys(presetConfiguration.options);\n var modelAttributeKey = 'inlineStyles-' + presetIdentifier;\n\n schema.extend('$text', { allowAttributes: modelAttributeKey });\n\n // https://ckeditor.com/docs/ckeditor5/latest/features/remove-format.html\n schema.setAttributeProperties(modelAttributeKey, { isFormatting: true });\n\n // Model configuration\n var config = {\n model: {\n key: modelAttributeKey,\n values: optionIdentifiers\n },\n view: {}\n };\n\n // View configuration\n optionIdentifiers.forEach(function (optionIdentifier) {\n var options = presetConfiguration.options[optionIdentifier];\n var attribute = options.attribute;\n\n var classes = options.attributeValue || options.cssClass;\n\n config.view[optionIdentifier] = {\n name: 'span',\n attributes: _defineProperty({}, attribute ? attribute : 'class', classes)\n };\n });\n\n // Convert the model to view correctly\n this.editor.conversion.attributeToElement(config);\n\n this.editor.commands.add('inlineStyles:' + presetIdentifier, new _InlineStylesCommand2.default(this.editor, modelAttributeKey));\n }\n };\n};\n\n//# sourceURL=webpack:///./src/InlineStylesEditing.js?"); /***/ }), @@ -1657,38 +346,7 @@ exports.default = function (presetIdentifier, presetConfiguration) { /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/prop-types/index.js"); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function attributeValueOrCssClass(props, propName, componentName) { - if (props[propName] && typeof props[propName] !== 'string') { - return new Error('Prop \'' + propName + '\' must be a string.'); - } - if (!props.attributeValue && !props.cssClass) { - return new Error('Either prop \'attributeValue\' or \'cssClass\' must be supplied to ' + componentName + '.'); - } -} - -exports.default = _propTypes2.default.shape({ - label: _propTypes2.default.string.isRequired, - - // keys are the option values - options: _propTypes2.default.objectOf(_propTypes2.default.shape({ - label: _propTypes2.default.string.isRequired, - attribute: _propTypes2.default.string, - attributeValue: attributeValueOrCssClass, - cssClass: attributeValueOrCssClass - })) -}); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _propTypes = __webpack_require__(/*! prop-types */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/prop-types/index.js\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction attributeValueOrCssClass(props, propName, componentName) {\n if (props[propName] && typeof props[propName] !== 'string') {\n return new Error('Prop \\'' + propName + '\\' must be a string.');\n }\n if (!props.attributeValue && !props.cssClass) {\n return new Error('Either prop \\'attributeValue\\' or \\'cssClass\\' must be supplied to ' + componentName + '.');\n }\n}\n\nexports.default = _propTypes2.default.shape({\n label: _propTypes2.default.string.isRequired,\n\n // keys are the option values\n options: _propTypes2.default.objectOf(_propTypes2.default.shape({\n label: _propTypes2.default.string.isRequired,\n attribute: _propTypes2.default.string,\n attributeValue: attributeValueOrCssClass,\n cssClass: attributeValueOrCssClass\n }))\n});\n\n//# sourceURL=webpack:///./src/PresetType.js?"); /***/ }), @@ -1700,94 +358,7 @@ exports.default = _propTypes2.default.shape({ /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - -var _dec, _class, _class2, _temp; - -var _react = __webpack_require__(/*! react */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react/index.js"); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/prop-types/index.js"); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactUiComponents = __webpack_require__(/*! @neos-project/react-ui-components */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/react-ui-components/index.js"); - -var _reactRedux = __webpack_require__(/*! react-redux */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react-redux/index.js"); - -var _plowJs = __webpack_require__(/*! plow-js */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/plow-js/index.js"); - -var _PresetType = __webpack_require__(/*! ../PresetType */ "./src/PresetType.js"); - -var _PresetType2 = _interopRequireDefault(_PresetType); - -var _neosUiReduxStore = __webpack_require__(/*! @neos-project/neos-ui-redux-store */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-redux-store/index.js"); - -var _neosUiCkeditor5Bindings = __webpack_require__(/*! @neos-project/neos-ui-ckeditor5-bindings */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js"); - -var CkEditorApi = _interopRequireWildcard(_neosUiCkeditor5Bindings); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var BlockStyleSelector = (_dec = (0, _reactRedux.connect)((0, _plowJs.$transform)({ - formattingUnderCursor: _neosUiReduxStore.selectors.UI.ContentCanvas.formattingUnderCursor -})), _dec(_class = (_temp = _class2 = class BlockStyleSelector extends _react.PureComponent { - - constructor() { - super(...arguments); - - this.handleOnSelect = this.handleOnSelect.bind(this); - } - - render() { - var optionsForSelect = Object.entries(this.props.presetConfiguration.options).map(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - optionIdentifier = _ref2[0], - optionConfiguration = _ref2[1]; - - return { - value: optionIdentifier, - label: optionConfiguration.label - }; - }); - - if (optionsForSelect.length === 0) { - return null; - } - - var currentValue = this.props.formattingUnderCursor['blockStyles:' + this.props.presetIdentifier]; - - return _react2.default.createElement(_reactUiComponents.SelectBox, { - options: optionsForSelect, - value: currentValue, - allowEmpty: true, - placeholder: this.props.presetConfiguration.label, - onValueChange: this.handleOnSelect - }); - } - - handleOnSelect(optionIdentifier) { - CkEditorApi.executeCommand('blockStyles:' + this.props.presetIdentifier, { value: optionIdentifier }); - } -}, _class2.propTypes = { - // from outside props - presetIdentifier: _propTypes2.default.string.isRequired, - presetConfiguration: _PresetType2.default.isRequired, - - // from @connect - formattingUnderCursor: _propTypes2.default.object -}, _temp)) || _class); -exports.default = BlockStyleSelector; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _dec, _class, _class2, _temp;\n\nvar _react = __webpack_require__(/*! react */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react/index.js\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(/*! prop-types */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/prop-types/index.js\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactUiComponents = __webpack_require__(/*! @neos-project/react-ui-components */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/react-ui-components/index.js\");\n\nvar _reactRedux = __webpack_require__(/*! react-redux */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react-redux/index.js\");\n\nvar _plowJs = __webpack_require__(/*! plow-js */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/plow-js/index.js\");\n\nvar _PresetType = __webpack_require__(/*! ../PresetType */ \"./src/PresetType.js\");\n\nvar _PresetType2 = _interopRequireDefault(_PresetType);\n\nvar _neosUiReduxStore = __webpack_require__(/*! @neos-project/neos-ui-redux-store */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-redux-store/index.js\");\n\nvar _neosUiCkeditor5Bindings = __webpack_require__(/*! @neos-project/neos-ui-ckeditor5-bindings */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js\");\n\nvar CkEditorApi = _interopRequireWildcard(_neosUiCkeditor5Bindings);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar BlockStyleSelector = (_dec = (0, _reactRedux.connect)((0, _plowJs.$transform)({\n formattingUnderCursor: _neosUiReduxStore.selectors.UI.ContentCanvas.formattingUnderCursor\n})), _dec(_class = (_temp = _class2 = class BlockStyleSelector extends _react.PureComponent {\n\n constructor() {\n super(...arguments);\n\n this.handleOnSelect = this.handleOnSelect.bind(this);\n }\n\n render() {\n var optionsForSelect = Object.entries(this.props.presetConfiguration.options).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n optionIdentifier = _ref2[0],\n optionConfiguration = _ref2[1];\n\n return {\n value: optionIdentifier,\n label: optionConfiguration.label\n };\n });\n\n if (optionsForSelect.length === 0) {\n return null;\n }\n\n var currentValue = this.props.formattingUnderCursor['blockStyles:' + this.props.presetIdentifier];\n\n return _react2.default.createElement(_reactUiComponents.SelectBox, {\n options: optionsForSelect,\n value: currentValue,\n allowEmpty: true,\n placeholder: this.props.presetConfiguration.label,\n onValueChange: this.handleOnSelect\n });\n }\n\n handleOnSelect(optionIdentifier) {\n CkEditorApi.executeCommand('blockStyles:' + this.props.presetIdentifier, { value: optionIdentifier });\n }\n}, _class2.propTypes = {\n // from outside props\n presetIdentifier: _propTypes2.default.string.isRequired,\n presetConfiguration: _PresetType2.default.isRequired,\n\n // from @connect\n formattingUnderCursor: _propTypes2.default.object\n}, _temp)) || _class);\nexports.default = BlockStyleSelector;\n\n//# sourceURL=webpack:///./src/components/BlockStyleSelector.js?"); /***/ }), @@ -1799,94 +370,7 @@ exports.default = BlockStyleSelector; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = undefined; - -var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); - -var _dec, _class, _class2, _temp; - -var _react = __webpack_require__(/*! react */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react/index.js"); - -var _react2 = _interopRequireDefault(_react); - -var _propTypes = __webpack_require__(/*! prop-types */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/prop-types/index.js"); - -var _propTypes2 = _interopRequireDefault(_propTypes); - -var _reactUiComponents = __webpack_require__(/*! @neos-project/react-ui-components */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/react-ui-components/index.js"); - -var _reactRedux = __webpack_require__(/*! react-redux */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/react-redux/index.js"); - -var _plowJs = __webpack_require__(/*! plow-js */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/plow-js/index.js"); - -var _PresetType = __webpack_require__(/*! ../PresetType */ "./src/PresetType.js"); - -var _PresetType2 = _interopRequireDefault(_PresetType); - -var _neosUiReduxStore = __webpack_require__(/*! @neos-project/neos-ui-redux-store */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-redux-store/index.js"); - -var _neosUiCkeditor5Bindings = __webpack_require__(/*! @neos-project/neos-ui-ckeditor5-bindings */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js"); - -var CkEditorApi = _interopRequireWildcard(_neosUiCkeditor5Bindings); - -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var InlineStyleSelector = (_dec = (0, _reactRedux.connect)((0, _plowJs.$transform)({ - formattingUnderCursor: _neosUiReduxStore.selectors.UI.ContentCanvas.formattingUnderCursor -})), _dec(_class = (_temp = _class2 = class InlineStyleSelector extends _react.PureComponent { - - constructor() { - super(...arguments); - - this.handleOnSelect = this.handleOnSelect.bind(this); - } - - render() { - var optionsForSelect = Object.entries(this.props.presetConfiguration.options).map(function (_ref) { - var _ref2 = _slicedToArray(_ref, 2), - optionIdentifier = _ref2[0], - optionConfiguration = _ref2[1]; - - return { - value: optionIdentifier, - label: optionConfiguration.label - }; - }); - - if (optionsForSelect.length === 0) { - return null; - } - - var currentValue = this.props.formattingUnderCursor['inlineStyles:' + this.props.presetIdentifier]; - - return _react2.default.createElement(_reactUiComponents.SelectBox, { - options: optionsForSelect, - value: currentValue, - allowEmpty: true, - placeholder: this.props.presetConfiguration.label, - onValueChange: this.handleOnSelect - }); - } - - handleOnSelect(optionIdentifier) { - CkEditorApi.executeCommand('inlineStyles:' + this.props.presetIdentifier, { value: optionIdentifier }); - } -}, _class2.propTypes = { - // from outside props - presetIdentifier: _propTypes2.default.string.isRequired, - presetConfiguration: _PresetType2.default.isRequired, - - // from @connect - formattingUnderCursor: _propTypes2.default.object -}, _temp)) || _class); -exports.default = InlineStyleSelector; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = undefined;\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _dec, _class, _class2, _temp;\n\nvar _react = __webpack_require__(/*! react */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react/index.js\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = __webpack_require__(/*! prop-types */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/prop-types/index.js\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _reactUiComponents = __webpack_require__(/*! @neos-project/react-ui-components */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/react-ui-components/index.js\");\n\nvar _reactRedux = __webpack_require__(/*! react-redux */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/react-redux/index.js\");\n\nvar _plowJs = __webpack_require__(/*! plow-js */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/plow-js/index.js\");\n\nvar _PresetType = __webpack_require__(/*! ../PresetType */ \"./src/PresetType.js\");\n\nvar _PresetType2 = _interopRequireDefault(_PresetType);\n\nvar _neosUiReduxStore = __webpack_require__(/*! @neos-project/neos-ui-redux-store */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-redux-store/index.js\");\n\nvar _neosUiCkeditor5Bindings = __webpack_require__(/*! @neos-project/neos-ui-ckeditor5-bindings */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/neosProjectPackages/neos-ui-ckeditor5-bindings/index.js\");\n\nvar CkEditorApi = _interopRequireWildcard(_neosUiCkeditor5Bindings);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar InlineStyleSelector = (_dec = (0, _reactRedux.connect)((0, _plowJs.$transform)({\n formattingUnderCursor: _neosUiReduxStore.selectors.UI.ContentCanvas.formattingUnderCursor\n})), _dec(_class = (_temp = _class2 = class InlineStyleSelector extends _react.PureComponent {\n\n constructor() {\n super(...arguments);\n\n this.handleOnSelect = this.handleOnSelect.bind(this);\n }\n\n render() {\n var optionsForSelect = Object.entries(this.props.presetConfiguration.options).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n optionIdentifier = _ref2[0],\n optionConfiguration = _ref2[1];\n\n return {\n value: optionIdentifier,\n label: optionConfiguration.label\n };\n });\n\n if (optionsForSelect.length === 0) {\n return null;\n }\n\n var currentValue = this.props.formattingUnderCursor['inlineStyles:' + this.props.presetIdentifier];\n\n return _react2.default.createElement(_reactUiComponents.SelectBox, {\n options: optionsForSelect,\n value: currentValue,\n allowEmpty: true,\n placeholder: this.props.presetConfiguration.label,\n onValueChange: this.handleOnSelect\n });\n }\n\n handleOnSelect(optionIdentifier) {\n CkEditorApi.executeCommand('inlineStyles:' + this.props.presetIdentifier, { value: optionIdentifier });\n }\n}, _class2.propTypes = {\n // from outside props\n presetIdentifier: _propTypes2.default.string.isRequired,\n presetConfiguration: _PresetType2.default.isRequired,\n\n // from @connect\n formattingUnderCursor: _propTypes2.default.object\n}, _temp)) || _class);\nexports.default = InlineStyleSelector;\n\n//# sourceURL=webpack:///./src/components/InlineStyleSelector.js?"); /***/ }), @@ -1898,9 +382,7 @@ exports.default = InlineStyleSelector; /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -__webpack_require__(/*! ./manifest */ "./src/manifest.js"); +eval("\n\n__webpack_require__(/*! ./manifest */ \"./src/manifest.js\");\n\n//# sourceURL=webpack:///./src/index.js?"); /***/ }), @@ -1912,108 +394,8 @@ __webpack_require__(/*! ./manifest */ "./src/manifest.js"); /***/ (function(module, exports, __webpack_require__) { "use strict"; - - -var _neosUiExtensibility = __webpack_require__(/*! @neos-project/neos-ui-extensibility */ "./node_modules/@neos-project/neos-ui-extensibility/dist/index.js"); - -var _neosUiExtensibility2 = _interopRequireDefault(_neosUiExtensibility); - -var _plowJs = __webpack_require__(/*! plow-js */ "./node_modules/@neos-project/neos-ui-extensibility/src/shims/vendor/plow-js/index.js"); - -var _InlineStylesEditing = __webpack_require__(/*! ./InlineStylesEditing */ "./src/InlineStylesEditing.js"); - -var _InlineStylesEditing2 = _interopRequireDefault(_InlineStylesEditing); - -var _InlineStyleSelector = __webpack_require__(/*! ./components/InlineStyleSelector */ "./src/components/InlineStyleSelector.js"); - -var _InlineStyleSelector2 = _interopRequireDefault(_InlineStyleSelector); - -var _BlockStyleEditing = __webpack_require__(/*! ./BlockStyleEditing */ "./src/BlockStyleEditing.js"); - -var _BlockStyleEditing2 = _interopRequireDefault(_BlockStyleEditing); - -var _BlockStyleSelector = __webpack_require__(/*! ./components/BlockStyleSelector */ "./src/components/BlockStyleSelector.js"); - -var _BlockStyleSelector2 = _interopRequireDefault(_BlockStyleSelector); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -(0, _neosUiExtensibility2.default)('TechDivision.CkStyles:Styles', {}, function (globalRegistry, _ref) { - var frontendConfiguration = _ref.frontendConfiguration; - - - var ckEditorRegistry = globalRegistry.get('ckEditor5'); - var richtextToolbar = ckEditorRegistry.get('richtextToolbar'); - var config = ckEditorRegistry.get('config'); - - var inlineStyleConfiguration = frontendConfiguration['TechDivision.CkStyles:InlineStyles']; - var blockStyleConfiguration = frontendConfiguration['TechDivision.CkStyles:BlockStyles']; - - // Block style - if (blockStyleConfiguration) { - - Object.keys(blockStyleConfiguration.presets).forEach(function (presetIdentifier) { - - var blockStylePresetConfiguration = blockStyleConfiguration.presets[presetIdentifier]; - - config.set('TechDivision.CkStyles:BlockStyles_' + presetIdentifier, function (ckEditorConfiguration, _ref2) { - var editorOptions = _ref2.editorOptions; - - var editing = (0, _BlockStyleEditing2.default)(presetIdentifier, blockStylePresetConfiguration); - ckEditorConfiguration.plugins = ckEditorConfiguration.plugins || []; - ckEditorConfiguration.plugins.push(editing); - return ckEditorConfiguration; - }); - - richtextToolbar.set('blockStyles_' + presetIdentifier, { - component: _BlockStyleSelector2.default, - // Display only if the preset is activated in NodeType.yaml for this node property - isVisible: function isVisible(editorOptions, formattingUnderCursor) { - var isVisible = false; - if (editorOptions['blockStyling'] !== undefined && editorOptions['blockStyling'][presetIdentifier] !== undefined) { - isVisible = editorOptions['blockStyling'][presetIdentifier]; - } - return isVisible; - }, - presetIdentifier: presetIdentifier, - presetConfiguration: blockStylePresetConfiguration - }); - }); - } - - //Inline Style - if (inlineStyleConfiguration) { - - Object.keys(inlineStyleConfiguration.presets).forEach(function (presetIdentifier) { - - var inlineStylePresetConfiguration = inlineStyleConfiguration.presets[presetIdentifier]; - - config.set('TechDivision.CkStyle:InlineStyles_' + presetIdentifier, function (ckEditorConfiguration, _ref3) { - var editorOptions = _ref3.editorOptions; - - ckEditorConfiguration.plugins = ckEditorConfiguration.plugins || []; - ckEditorConfiguration.plugins.push((0, _InlineStylesEditing2.default)(presetIdentifier, inlineStylePresetConfiguration)); - return ckEditorConfiguration; - }); - - richtextToolbar.set('inlineStyles_' + presetIdentifier, { - component: _InlineStyleSelector2.default, - // Display only if the preset is activated in NodeType.yaml for this node property - isVisible: function isVisible(editorOptions, formattingUnderCursor) { - var isVisible = false; - if (editorOptions['inlineStyling'] !== undefined && editorOptions['inlineStyling'][presetIdentifier] !== undefined) { - isVisible = editorOptions['inlineStyling'][presetIdentifier]; - } - return isVisible; - }, - presetIdentifier: presetIdentifier, - presetConfiguration: inlineStylePresetConfiguration - }); - }); - } -}); +eval("\n\nvar _neosUiExtensibility = __webpack_require__(/*! @neos-project/neos-ui-extensibility */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/index.js\");\n\nvar _neosUiExtensibility2 = _interopRequireDefault(_neosUiExtensibility);\n\nvar _plowJs = __webpack_require__(/*! plow-js */ \"./node_modules/@neos-project/neos-ui-extensibility/dist/shims/vendor/plow-js/index.js\");\n\nvar _InlineStylesEditing = __webpack_require__(/*! ./InlineStylesEditing */ \"./src/InlineStylesEditing.js\");\n\nvar _InlineStylesEditing2 = _interopRequireDefault(_InlineStylesEditing);\n\nvar _InlineStyleSelector = __webpack_require__(/*! ./components/InlineStyleSelector */ \"./src/components/InlineStyleSelector.js\");\n\nvar _InlineStyleSelector2 = _interopRequireDefault(_InlineStyleSelector);\n\nvar _BlockStyleEditing = __webpack_require__(/*! ./BlockStyleEditing */ \"./src/BlockStyleEditing.js\");\n\nvar _BlockStyleEditing2 = _interopRequireDefault(_BlockStyleEditing);\n\nvar _BlockStyleSelector = __webpack_require__(/*! ./components/BlockStyleSelector */ \"./src/components/BlockStyleSelector.js\");\n\nvar _BlockStyleSelector2 = _interopRequireDefault(_BlockStyleSelector);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n(0, _neosUiExtensibility2.default)('TechDivision.CkStyles:Styles', {}, function (globalRegistry, _ref) {\n var frontendConfiguration = _ref.frontendConfiguration;\n\n\n var ckEditorRegistry = globalRegistry.get('ckEditor5');\n var richtextToolbar = ckEditorRegistry.get('richtextToolbar');\n var config = ckEditorRegistry.get('config');\n\n var inlineStyleConfiguration = frontendConfiguration['TechDivision.CkStyles:InlineStyles'];\n var blockStyleConfiguration = frontendConfiguration['TechDivision.CkStyles:BlockStyles'];\n\n // Block style\n if (blockStyleConfiguration) {\n\n Object.keys(blockStyleConfiguration.presets).forEach(function (presetIdentifier) {\n\n var blockStylePresetConfiguration = blockStyleConfiguration.presets[presetIdentifier];\n\n config.set('TechDivision.CkStyles:BlockStyles_' + presetIdentifier, function (ckEditorConfiguration, _ref2) {\n var editorOptions = _ref2.editorOptions;\n\n var editing = (0, _BlockStyleEditing2.default)(presetIdentifier, blockStylePresetConfiguration);\n ckEditorConfiguration.plugins = ckEditorConfiguration.plugins || [];\n ckEditorConfiguration.plugins.push(editing);\n return ckEditorConfiguration;\n });\n\n richtextToolbar.set('blockStyles_' + presetIdentifier, {\n component: _BlockStyleSelector2.default,\n // Display only if the preset is activated in NodeType.yaml for this node property\n isVisible: function isVisible(editorOptions, formattingUnderCursor) {\n var isVisible = false;\n if (editorOptions['blockStyling'] !== undefined && editorOptions['blockStyling'][presetIdentifier] !== undefined) {\n isVisible = editorOptions['blockStyling'][presetIdentifier];\n }\n return isVisible;\n },\n presetIdentifier: presetIdentifier,\n presetConfiguration: blockStylePresetConfiguration\n });\n });\n }\n\n //Inline Style\n if (inlineStyleConfiguration) {\n\n Object.keys(inlineStyleConfiguration.presets).forEach(function (presetIdentifier) {\n\n var inlineStylePresetConfiguration = inlineStyleConfiguration.presets[presetIdentifier];\n\n config.set('TechDivision.CkStyle:InlineStyles_' + presetIdentifier, function (ckEditorConfiguration, _ref3) {\n var editorOptions = _ref3.editorOptions;\n\n ckEditorConfiguration.plugins = ckEditorConfiguration.plugins || [];\n ckEditorConfiguration.plugins.push((0, _InlineStylesEditing2.default)(presetIdentifier, inlineStylePresetConfiguration));\n return ckEditorConfiguration;\n });\n\n richtextToolbar.set('inlineStyles_' + presetIdentifier, {\n component: _InlineStyleSelector2.default,\n // Display only if the preset is activated in NodeType.yaml for this node property\n isVisible: function isVisible(editorOptions, formattingUnderCursor) {\n var isVisible = false;\n if (editorOptions['inlineStyling'] !== undefined && editorOptions['inlineStyling'][presetIdentifier] !== undefined) {\n isVisible = editorOptions['inlineStyling'][presetIdentifier];\n }\n return isVisible;\n },\n presetIdentifier: presetIdentifier,\n presetConfiguration: inlineStylePresetConfiguration\n });\n });\n }\n});\n\n//# sourceURL=webpack:///./src/manifest.js?"); /***/ }) -/******/ }); -//# sourceMappingURL=Plugin.js.map \ No newline at end of file +/******/ }); \ No newline at end of file