@ncino/web-components 3.4.0-preview.2 → 3.4.0-preview.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/assets/node_modules/.pnpm/ckeditor5@45.0.0/node_modules/ckeditor5/dist/ckeditor5.css +4 -0
- package/dist/components/input-rich-text/ckeditor-config.js +1 -1
- package/dist/components/input-rich-text/input-rich-text.slds.js +2 -2
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-alignment@45.0.0/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@44.3.0 → @ckeditor_ckeditor5-autoformat@45.0.0}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@44.3.0 → @ckeditor_ckeditor5-autosave@45.0.0}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.0.0/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@44.3.0 → @ckeditor_ckeditor5-block-quote@45.0.0}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.0.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +20 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@44.3.0 → @ckeditor_ckeditor5-cloud-services@45.0.0}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@44.3.0 → @ckeditor_ckeditor5-code-block@45.0.0}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +5 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.0.0/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@44.3.0 → @ckeditor_ckeditor5-engine@45.0.0}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@44.3.0 → @ckeditor_ckeditor5-enter@45.0.0}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@44.3.0 → @ckeditor_ckeditor5-essentials@45.0.0}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.0.0/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +5 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@45.0.0/node_modules/@ckeditor/ckeditor5-font/dist/index.js +7 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@44.3.0 → @ckeditor_ckeditor5-heading@45.0.0}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-highlight@45.0.0/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-horizontal-line@45.0.0/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.0.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.0.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +12 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-icons@45.0.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@45.0.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.0.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@44.3.0 → @ckeditor_ckeditor5-language@45.0.0}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@45.0.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@45.0.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@44.3.0 → @ckeditor_ckeditor5-markdown-gfm@45.0.0}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.0.0/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +7 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@44.3.0 → @ckeditor_ckeditor5-mention@45.0.0}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-page-break@45.0.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@44.3.0 → @ckeditor_ckeditor5-paragraph@45.0.0}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paste-from-office@44.3.0 → @ckeditor_ckeditor5-paste-from-office@45.0.0}/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-remove-format@45.0.0/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-select-all@45.0.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-show-blocks@45.0.0/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.0.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +12 -0
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.0.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@44.3.0 → @ckeditor_ckeditor5-style@45.0.0}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@45.0.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-typing@44.3.0 → @ckeditor_ckeditor5-typing@45.0.0}/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +28 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@44.3.0 → @ckeditor_ckeditor5-undo@45.0.0}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@44.3.0 → @ckeditor_ckeditor5-upload@45.0.0}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-utils@44.3.0 → @ckeditor_ckeditor5-utils@45.0.0}/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +9 -9
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@44.3.0 → @ckeditor_ckeditor5-watchdog@45.0.0}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.0.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@storybook_instrumenter@8.6.12_storybook@8.6.12_prettier@3.4.2_ → @storybook_instrumenter@8.6.12_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/instrumenter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@storybook_test@8.6.12_storybook@8.6.12_prettier@3.4.2_ → @storybook_test@8.6.12_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/test/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/color-parse@1.4.2/node_modules/color-parse/index.js +1 -1
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/getTag.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/normalizeForCase.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/tags.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/assignIn.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/keysIn.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/mapValues.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/merge.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/mergeWith.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/property.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/set.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isString.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/startCase.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/upperFirst.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/eq.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/times.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toFinite.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toInteger.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toNumber.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toPath.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toString.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/after.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/identity.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/noop.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/clone.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/mapValues.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isBuffer.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqual.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqualWith.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isFunction.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isLength.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isPrimitive.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isTypedArray.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/string/escapeRegExp.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/string/upperFirst.js +1 -0
- package/dist/node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/string/words.js +1 -0
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
- package/dist/assets/node_modules/.pnpm/ckeditor5@44.3.0/node_modules/ckeditor5/dist/ckeditor5.css +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-alignment@44.3.0/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@44.3.0/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +0 -20
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@44.3.0/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@44.3.0/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +0 -5
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@44.3.0/node_modules/@ckeditor/ckeditor5-font/dist/index.js +0 -7
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-highlight@44.3.0/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-horizontal-line@44.3.0/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@44.3.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@44.3.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@44.3.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@44.3.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@44.3.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@44.3.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +0 -13
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@44.3.0/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +0 -7
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-page-break@44.3.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-remove-format@44.3.0/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-select-all@44.3.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-show-blocks@44.3.0/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@44.3.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@44.3.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@44.3.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +0 -29
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +0 -4
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiWords.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnset.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCaseFirst.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCompounder.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicodeWord.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_parent.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeWords.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/assignIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isElement.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/last.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mapValues.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/startCase.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/unset.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js +0 -1
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/words.js +0 -1
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.4.2_storybook@8.6.12_prettier@3.4.2_ → @storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/core/dist/channels/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.4.2_storybook@8.6.12_prettier@3.4.2_ → @storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/core/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.4.2_storybook@8.6.12_prettier@3.4.2_ → @storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/core/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.4.2_storybook@8.6.12_prettier@3.4.2_ → @storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/core/dist/csf/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.4.2_storybook@8.6.12_prettier@3.4.2_ → @storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/core/dist/preview-api/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.12_prettier@3.4.2_storybook@8.6.12_prettier@3.4.2_ → @storybook_core@8.6.12_prettier@3.5.3_storybook@8.6.12_prettier@3.5.3_}/node_modules/@storybook/core/dist/preview-errors.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_browser@3.1.2_msw@2.7.3_@types_node@22.13.10_typescript@5.8.3__playwright@1.52._d9f437d9be40af4c1087950720317100 → @vitest_browser@3.1.2_msw@2.7.3_@types_node@22.14.1_typescript@5.8.3__playwright@1.52.0_92e0976dd8f8178c7dbbaa4988dfa8c8}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.2_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.2_@vitest_ui@_b3e273fb96cdae5dad1113241e94b66d → vitest@3.1.2_@types_debug@4.1.12_@types_node@22.14.1_@vitest_browser@3.1.2_@vitest_ui@3_941980ac824345de547571ef69676a52}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.2_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.2_@vitest_ui@_b3e273fb96cdae5dad1113241e94b66d → vitest@3.1.2_@types_debug@4.1.12_@types_node@22.14.1_@vitest_browser@3.1.2_@vitest_ui@3_941980ac824345de547571ef69676a52}/node_modules/vitest/dist/chunks/date.CDOsz-HY.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.2_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.2_@vitest_ui@_b3e273fb96cdae5dad1113241e94b66d → vitest@3.1.2_@types_debug@4.1.12_@types_node@22.14.1_@vitest_browser@3.1.2_@vitest_ui@3_941980ac824345de547571ef69676a52}/node_modules/vitest/dist/chunks/utils.CgTj3MsC.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.1.2_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.2_@vitest_ui@_b3e273fb96cdae5dad1113241e94b66d → vitest@3.1.2_@types_debug@4.1.12_@types_node@22.14.1_@vitest_browser@3.1.2_@vitest_ui@3_941980ac824345de547571ef69676a52}/node_modules/vitest/dist/chunks/vi.ClIskdbk.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@ckeditor_ckeditor5-core@
|
|
1
|
+
import"../../node_modules/.pnpm/@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Base64UploadAdapter as e}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.0.0/node_modules/@ckeditor/ckeditor5-upload/dist/index.js";import{Alignment as t}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-alignment@45.0.0/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js";import{Autoformat as o}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-autoformat@45.0.0/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js";import{Autosave as r}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.0.0/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js";import{Bold as a,Code as i,Italic as l,Strikethrough as m,Subscript as n,Superscript as s,Underline as p}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.0.0/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js";import{BlockQuote as d}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-block-quote@45.0.0/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.0.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{AccessibilityHelp as c}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.0.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{CloudServices as g}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.0.0/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js";import{CodeBlock as f}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.0.0/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js";import{Essentials as h}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-essentials@45.0.0/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js";import{FindAndReplace as u}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.0.0/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js";import{FontBackgroundColor as b,FontColor as k,FontFamily as S,FontSize as C}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-font@45.0.0/node_modules/@ckeditor/ckeditor5-font/dist/index.js";import{Heading as T}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.0.0/node_modules/@ckeditor/ckeditor5-heading/dist/index.js";import{Highlight as I}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-highlight@45.0.0/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js";import{HorizontalLine as y}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-horizontal-line@45.0.0/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js";import{HtmlEmbed as w}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.0.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js";import{FullPage as A,GeneralHtmlSupport as F,HtmlComment as v}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.0.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js";import{AutoImage as x,ImageBlock as H,ImageCaption as P,ImageInline as L,ImageInsert as B,ImageInsertViaUrl as z,ImageResize as E,ImageStyle as _,ImageTextAlternative as M,ImageToolbar as R,ImageUpload as U}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-image@45.0.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js";import{Indent as q,IndentBlock as V}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.0.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js";import{TextPartLanguage as D}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-language@45.0.0/node_modules/@ckeditor/ckeditor5-language/dist/index.js";import{AutoLink as G,Link as N,LinkImage as O}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-link@45.0.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js";import{List as Q,ListProperties as W,TodoList as $}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-list@45.0.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js";import{Markdown as j,PasteFromMarkdownExperimental as J}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.0.0/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js";import{MediaEmbed as K}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.0.0/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-mention@45.0.0/node_modules/@ckeditor/ckeditor5-mention/dist/index.js";import{PageBreak as X}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-page-break@45.0.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js";import{Paragraph as Y}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.0.0/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js";import{PasteFromOffice as Z}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.0.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js";import{RemoveFormat as ee}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-remove-format@45.0.0/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js";import{SelectAll as te}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-select-all@45.0.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js";import{ShowBlocks as oe}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-show-blocks@45.0.0/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js";import{SourceEditing as re}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.0.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js";import{SpecialCharacters as ae,SpecialCharactersArrows as ie,SpecialCharactersCurrency as le,SpecialCharactersEssentials as me,SpecialCharactersLatin as ne,SpecialCharactersMathematical as se,SpecialCharactersText as pe}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.0.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js";import{Style as de}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-style@45.0.0/node_modules/@ckeditor/ckeditor5-style/dist/index.js";import{Table as ce,TableCaption as ge,TableCellProperties as fe,TableColumnResize as he,TableProperties as ue,TableToolbar as be}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-table@45.0.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js";import{TextTransformation as ke}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.0.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Undo as Se}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.0.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js";const mt={toolbar:{items:["fontFamily","fontSize","|","bold","italic","underline","strikethrough","fontColor","|","alignment","indent","outdent","bulletedList","numberedList","|","link","insertImage","insertTable","|","removeFormat"],shouldNotGroupWhenFull:!0},plugins:[c,t,o,x,G,r,e,d,a,g,i,f,h,u,b,k,S,C,A,F,T,I,y,v,w,H,P,L,B,z,E,_,M,R,U,q,V,l,N,O,Q,W,j,K,X,Y,J,Z,ee,te,oe,re,ae,ie,le,me,ne,se,pe,m,de,n,s,ce,ge,fe,he,ue,be,D,ke,$,p,Se],fontFamily:{supportAllValues:!0},fontSize:{options:[10,12,14,"default",18,20,22],supportAllValues:!0},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},htmlSupport:{allow:[{name:/^.*$/,styles:!0,attributes:!0,classes:!0}]},image:{toolbar:["toggleImageCaption","imageTextAlternative","|","imageStyle:inline","imageStyle:wrapText","imageStyle:breakText","|","resizeImage"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"https://",decorators:{toggleDownloadable:{mode:"manual",label:"Downloadable",attributes:{download:"file"}}}},list:{properties:{styles:!0,startIndex:!0,reversed:!0}},placeholder:"Type or paste your content here!",style:{definitions:[{name:"Article category",element:"h3",classes:["category"]},{name:"Title",element:"h2",classes:["document-title"]},{name:"Subtitle",element:"h3",classes:["document-subtitle"]},{name:"Info box",element:"p",classes:["info-box"]},{name:"Side quote",element:"blockquote",classes:["side-quote"]},{name:"Marker",element:"span",classes:["marker"]},{name:"Spoiler",element:"span",classes:["spoiler"]},{name:"Code (dark)",element:"pre",classes:["fancy-code","fancy-code-dark"]},{name:"Code (bright)",element:"pre",classes:["fancy-code","fancy-code-bright"]}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties"]}};export{mt as editorConfig};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["components/input-rich-text/ckeditor-config.js","node_modules/.pnpm/@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isElement.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js","node_modules/.pnpm/@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/unset.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnset.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/last.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_parent.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/assignIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js","node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@44.3.0/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle.js","node_modules/.pnpm/@ckeditor_ckeditor5-upload@44.3.0/node_modules/@ckeditor/ckeditor5-upload/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-alignment@44.3.0/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js","node_modules/.pnpm/color-parse@1.4.2/node_modules/color-parse/index.js","_virtual/index.js","_virtual/_commonjsHelpers.js","node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js","_virtual/index2.js","node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js","node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js","node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/color-picker.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/compare.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/convert.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/dom.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/hue.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/slider.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/saturation.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/color-picker.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/hue.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/saturation.js","node_modules/.pnpm/@ckeditor_ckeditor5-autoformat@44.3.0/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js","node_modules/.pnpm/@ckeditor_ckeditor5-autosave@44.3.0/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@44.3.0/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-block-quote@44.3.0/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-enter@44.3.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@44.3.0/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-code-block@44.3.0/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mapValues.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.js","node_modules/.pnpm/@ckeditor_ckeditor5-essentials@44.3.0/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-select-all@44.3.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-undo@44.3.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@44.3.0/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-font@44.3.0/node_modules/@ckeditor/ckeditor5-font/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-heading@44.3.0/node_modules/@ckeditor/ckeditor5-heading/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@44.3.0/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-highlight@44.3.0/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-horizontal-line@44.3.0/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@44.3.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-html-support@44.3.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/startCase.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCompounder.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/words.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiWords.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicodeWord.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeWords.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCaseFirst.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js","node_modules/.pnpm/@ckeditor_ckeditor5-image@44.3.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.js","node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.js","node_modules/.pnpm/@ckeditor_ckeditor5-indent@44.3.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-language@44.3.0/node_modules/@ckeditor/ckeditor5-language/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-link@44.3.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-list@44.3.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@44.3.0/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js","node_modules/.pnpm/marked@4.0.12/node_modules/marked/lib/marked.esm.js","node_modules/.pnpm/turndown@7.2.0/node_modules/turndown/lib/turndown.browser.es.js","node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.js","node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@44.3.0/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-mention@44.3.0/node_modules/@ckeditor/ckeditor5-mention/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-page-break@44.3.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@44.3.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-remove-format@44.3.0/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-show-blocks@44.3.0/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@44.3.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@44.3.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-style@44.3.0/node_modules/@ckeditor/ckeditor5-style/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-table@44.3.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{__vitePreload as d}from"../../_virtual/preload-helper.js";import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{createRef as c,ref as h}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{customElement as p}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import"../input/slds/input-label/input-label.slds.js";/* empty css *//* empty css */import"../../node_modules/.pnpm/@ckeditor_ckeditor5-core@
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["components/input-rich-text/ckeditor-config.js","node_modules/.pnpm/@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObject.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isString.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isFunction.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isElement.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/cloneDeepWith.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/getTag.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/tags.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isPrimitive.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isTypedArray.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/merge.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/mergeWith.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/cloneDeep.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/clone.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isArguments.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/noop.js","node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.0.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqual.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isEqualWith.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isPlainObject.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/eq.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/unset.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/get.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/toKey.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toPath.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/assignIn.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/keysIn.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isBuffer.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/predicate/isLength.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/times.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toInteger.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toFinite.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toNumber.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/set.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/isIndex.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/predicate/isEqualWith.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/after.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/debounce.js","node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@45.0.0/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js","node_modules/.pnpm/@ckeditor_ckeditor5-upload@45.0.0/node_modules/@ckeditor/ckeditor5-upload/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-alignment@45.0.0/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-icons@45.0.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js","node_modules/.pnpm/color-parse@1.4.2/node_modules/color-parse/index.js","_virtual/index2.js","_virtual/_commonjsHelpers.js","node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js","_virtual/index.js","node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js","node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js","node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/color-picker.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/compare.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/convert.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/dom.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/hue.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/slider.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/saturation.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/color-picker.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/hue.js","node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/saturation.js","node_modules/.pnpm/@ckeditor_ckeditor5-autoformat@45.0.0/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.0.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/string/escapeRegExp.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/util/toString.js","node_modules/.pnpm/@ckeditor_ckeditor5-autosave@45.0.0/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@45.0.0/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-block-quote@45.0.0/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-enter@45.0.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.0.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@45.0.0/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-code-block@45.0.0/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@45.0.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/mapValues.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/property.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/function/identity.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/object/mapValues.js","node_modules/.pnpm/@ckeditor_ckeditor5-essentials@45.0.0/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-select-all@45.0.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-undo@45.0.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@45.0.0/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-font@45.0.0/node_modules/@ckeditor/ckeditor5-font/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-heading@45.0.0/node_modules/@ckeditor/ckeditor5-heading/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@45.0.0/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-highlight@45.0.0/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-horizontal-line@45.0.0/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@45.0.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-html-support@45.0.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/startCase.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/string/words.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/_internal/normalizeForCase.js","node_modules/.pnpm/@ckeditor_ckeditor5-image@45.0.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-indent@45.0.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-language@45.0.0/node_modules/@ckeditor/ckeditor5-language/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-link@45.0.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/upperFirst.js","node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/string/upperFirst.js","node_modules/.pnpm/@ckeditor_ckeditor5-list@45.0.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@45.0.0/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js","node_modules/.pnpm/marked@4.0.12/node_modules/marked/lib/marked.esm.js","node_modules/.pnpm/turndown@7.2.0/node_modules/turndown/lib/turndown.browser.es.js","node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.js","node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@45.0.0/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-mention@45.0.0/node_modules/@ckeditor/ckeditor5-mention/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-page-break@45.0.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.0.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-remove-format@45.0.0/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-show-blocks@45.0.0/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.0.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@45.0.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-style@45.0.0/node_modules/@ckeditor/ckeditor5-style/dist/index.js","node_modules/.pnpm/@ckeditor_ckeditor5-table@45.0.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{__vitePreload as d}from"../../_virtual/preload-helper.js";import"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import"../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{createRef as c,ref as h}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{customElement as p}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import"../input/slds/input-label/input-label.slds.js";/* empty css *//* empty css */import"../../node_modules/.pnpm/@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-engine@45.0.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-widget@45.0.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{ClassicEditor as m}from"../../node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@45.0.0/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-list@45.0.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js";import"../../node_modules/.pnpm/@ckeditor_ckeditor5-mention@45.0.0/node_modules/@ckeditor/ckeditor5-mention/dist/index.js";import{NjcInputRichText as u}from"./input-rich-text.js";import{debounce as f}from"../../utils/reactivity-utils.js";var v=Object.getOwnPropertyDescriptor,_=(t,e,i,r)=>{for(var o=r>1?void 0:r?v(e,i):e,a=t.length-1,s;a>=0;a--)(s=t[a])&&(o=s(o)||o);return o};let n=class extends u{constructor(){super(...arguments),this._ckEditor=void 0,this._editorRef=c(),this._externalDataChange=!1}createRenderRoot(){return this}async firstUpdated(){let{editorConfig:t}=await d(async()=>{const{editorConfig:r}=await import("./ckeditor-config.js");return{editorConfig:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127]));const e=this._editorRef.value;if(e===void 0){console.error("CKEditor host element is undefined");return}const i=await m.create(e,{...t,licenseKey:"GPL",placeholder:this.placeholder??void 0});i.setData(this.value??""),this._registerCKEditorEvents(i),this._ckEditor=i}_registerCKEditorEvents(t){let e=i=>{this._externalDataChange||this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:i}})),this._externalDataChange=!1};this.debounce>0&&(e=f(e,this.debounce)),t.model.document.on("change:data",()=>e(t.getData()))}updated(t){if(super.updated(t),this._ckEditor!==void 0&&(t.get("value")!==this.value&&this._ckEditor.getData()!==this.value&&(this._externalDataChange=!0,this._ckEditor.setData(this.value??"")),t.get("placeholder")!==this.placeholder)){const e=this._ckEditor.editing.view.document.getRoot("main");e.placeholder=this.placeholder??void 0}}render(){return l`
|
|
3
3
|
<nsc-input-label>${this.label}</nsc-input-label>
|
|
4
4
|
<div ${h(this._editorRef)}></div>
|
|
5
5
|
`}};n=_([p("nsc-input-rich-text")],n);export{n as NscInputRichText};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{within as h,waitFor as d,expect as n,userEvent as s}from"../../../node_modules/.pnpm/@storybook_test@8.6.12_storybook@8.6.12_prettier@3.
|
|
1
|
+
import{within as h,waitFor as d,expect as n,userEvent as s}from"../../../node_modules/.pnpm/@storybook_test@8.6.12_storybook@8.6.12_prettier@3.5.3_/node_modules/@storybook/test/dist/index.js";import{getShadowRootElementByDataTestId as p}from"../../../utils/vitest-utils.js";const f=async({canvasElement:w,step:t})=>{const i=h(w);let l,e,c,a;await t("Scenario: Nested Panel Functionality",async()=>{await t("GIVEN the Story renders with the first panel open and the second panel closed",async()=>{l=await i.findByTestId("first-panel"),e=p(l,"first-panel-panel"),c=await i.findByTestId("second-panel"),a=p(c,"second-panel-panel"),await d(()=>n(e).toBeVisible()),n(a).not.toBeVisible()}),await t("WHEN I click on the list item with nested content to open the second panel",async()=>{i.getByTestId("list-item-with-nested").click()}),await t("THEN the second panel is opened relative to the first panel",async()=>{await d(()=>n(a).toBeVisible());const o=e==null?void 0:e.offsetWidth;n(window.getComputedStyle(a).left).toBe(`${o}px`)}),await t("WHEN I click the collapse button in the first panel",async()=>{const o=i.getByText("Collapse");await s.click(o)}),await t("THEN I expect the second panel to have moved with the first panel",async()=>{n(window.getComputedStyle(e).width).toBe("56px"),n(window.getComputedStyle(a).left).toBe(`${e.offsetWidth}px`)}),await t("WHEN I click the expand button in the first panel",async()=>{const o=i.getByTestId("expand-button");await s.click(o)}),await t("THEN I expect the first panel to expand and the second panel to move with it",async()=>{n(window.getComputedStyle(e).width).toBe("280px"),n(window.getComputedStyle(a).left).toBe(`${e.offsetWidth}px`)}),await t("WHEN I click on the close button in the second panel",async()=>{const o=i.getByTestId("close-button");await s.click(o)}),await t("THEN I expect the second panel to be closed",async()=>{a.addEventListener("animationend",()=>{n(a).not.toBeVisible()},{once:!0})})})};export{f as nestedPanelTests};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Plugin as f,Command as v}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{logWarning as y,CKEditorError as g,first as x}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ButtonView as B,createDropdown as T,addToolbarToDropdown as E,MenuBarMenuView as k,MenuBarMenuListView as D,MenuBarMenuListItemView as V,MenuBarMenuListItemButtonView as I}from"../../../../../@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconAlignLeft as M,IconAlignRight as N,IconAlignCenter as L,IconAlignJustify as O}from"../../../../../@ckeditor_ckeditor5-icons@45.0.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/const b=["left","right","center","justify"];function p(i){return b.includes(i)}function w(i,e){return e.contentLanguageDirection=="rtl"?i==="right":i==="left"}function A(i){const e=i.map(t=>{let o;return typeof t=="string"?o={name:t}:o=t,o}).filter(t=>{const o=b.includes(t.name);return o||y("alignment-config-name-not-recognized",{option:t}),o}),n=e.filter(t=>!!t.className).length;if(n&&n<e.length)throw new g("alignment-config-classnames-are-missing",{configuredOptions:i});return e.forEach((t,o,a)=>{const s=a.slice(o+1);if(s.some(r=>r.name==t.name))throw new g("alignment-config-name-already-defined",{option:t,configuredOptions:i});if(t.className&&s.some(l=>l.className==t.className))throw new g("alignment-config-classname-already-defined",{option:t,configuredOptions:i})}),e}const h="alignment";class _ extends v{refresh(){const n=this.editor.locale,t=x(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value=n.contentLanguageDirection==="rtl"?"right":"left"}execute(e={}){const n=this.editor,t=n.locale,o=n.model,a=o.document,s=e.value;o.change(c=>{const r=Array.from(a.selection.getSelectedBlocks()).filter(d=>this._canBeAligned(d)),l=r[0].getAttribute("alignment");w(s,t)||l===s||!s?C(r,c):z(r,c,s)})}_canBeAligned(e){return this.editor.model.schema.checkAttribute(e,h)}}function C(i,e){for(const n of i)e.removeAttribute(h,n)}function z(i,e,n){for(const t of i)e.setAttribute(h,n,t)}class F extends f{static get pluginName(){return"AlignmentEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("alignment",{options:b.map(n=>({name:n}))})}init(){const e=this.editor,n=e.locale,t=e.model.schema,a=A(e.config.get("alignment.options")).filter(l=>p(l.name)&&!w(l.name,n)),s=a.some(l=>!!l.className);t.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),s?e.conversion.attributeToAttribute(j(a)):e.conversion.for("downcast").attributeToAttribute(P(a));const c=S(a);for(const l of c)e.conversion.for("upcast").attributeToAttribute(l);const r=U(a);for(const l of r)e.conversion.for("upcast").attributeToAttribute(l);e.commands.add("alignment",new _(e))}}function P(i){const e={};for(const{name:t}of i)e[t]={key:"style",value:{"text-align":t}};return{model:{key:"alignment",values:i.map(t=>t.name)},view:e}}function S(i){const e=[];for(const{name:n}of i)e.push({view:{key:"style",value:{"text-align":n}},model:{key:"alignment",value:n}});return e}function U(i){const e=[];for(const{name:n}of i)e.push({view:{key:"align",value:n},model:{key:"alignment",value:n}});return e}function j(i){const e={};for(const t of i)e[t.name]={key:"class",value:t.className};return{model:{key:"alignment",values:i.map(t=>t.name)},view:e}}const u=new Map([["left",M],["right",N],["center",L],["justify",O]]);class J extends f{get localizedOptionTitles(){const e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}static get pluginName(){return"AlignmentUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,n=A(e.config.get("alignment.options"));n.map(t=>t.name).filter(p).forEach(t=>this._addButton(t)),this._addToolbarDropdown(n),this._addMenuBarMenu(n)}_addButton(e){this.editor.ui.componentFactory.add(`alignment:${e}`,t=>this._createButton(t,e))}_createButton(e,n,t={}){const o=this.editor,a=o.commands.get("alignment"),s=new B(e);return s.set({label:this.localizedOptionTitles[n],icon:u.get(n),tooltip:!0,isToggleable:!0,...t}),s.bind("isEnabled").to(a),s.bind("isOn").to(a,"value",c=>c===n),this.listenTo(s,"execute",()=>{o.execute("alignment",{value:n}),o.editing.view.focus()}),s}_addToolbarDropdown(e){const n=this.editor;n.ui.componentFactory.add("alignment",o=>{const a=T(o),s=o.uiLanguageDirection==="rtl"?"w":"e",c=o.t;E(a,()=>e.map(m=>this._createButton(o,m.name,{tooltipPosition:s})),{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:c("Text alignment toolbar")}),a.buttonView.set({label:c("Text alignment"),tooltip:!0}),a.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});const r=o.contentLanguageDirection==="rtl"?u.get("right"):u.get("left"),l=n.commands.get("alignment");return a.buttonView.bind("icon").to(l,"value",m=>u.get(m)||r),a.bind("isEnabled").to(l,"isEnabled"),this.listenTo(a,"execute",()=>{n.editing.view.focus()}),a})}_addMenuBarMenu(e){const n=this.editor;n.ui.componentFactory.add("menuBar:alignment",t=>{const o=n.commands.get("alignment"),a=t.t,s=new k(t),c=new D(t);s.bind("isEnabled").to(o),c.set({ariaLabel:a("Text alignment"),role:"menu"}),s.buttonView.set({label:a("Text alignment")});for(const r of e){const l=new V(t,s),m=new I(t);m.delegate("execute").to(s),m.set({label:this.localizedOptionTitles[r.name],icon:u.get(r.name),role:"menuitemcheckbox",isToggleable:!0}),m.on("execute",()=>{n.execute("alignment",{value:r.name}),n.editing.view.focus()}),m.bind("isOn").to(o,"value",d=>d===r.name),m.bind("isEnabled").to(o,"isEnabled"),l.children.add(m),c.items.add(l)}return s.panelView.children.add(c),s})}}class K extends f{static get requires(){return[F,J]}static get pluginName(){return"Alignment"}static get isOfficialPlugin(){return!0}}export{K as Alignment,F as AlignmentEditing,J as AlignmentUI};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Plugin as C}from"../../../../../@ckeditor_ckeditor5-core@
|
|
1
|
+
import{Plugin as C}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as E}from"../../../../../@ckeditor_ckeditor5-typing@45.0.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{LiveRange as y}from"../../../../../@ckeditor_ckeditor5-engine@45.0.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{first as B}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/function h(o,t,e,n){let c,i=null;typeof n=="function"?c=n:(i=o.commands.get(n),c=()=>{o.execute(n)}),o.model.document.on("change:data",(k,d)=>{if(i&&!i.isEnabled||!t.isEnabled)return;const r=B(o.model.document.selection.getRanges());if(!r.isCollapsed||d.isUndo||!d.isLocal)return;const g=Array.from(o.model.document.differ.getChanges()),a=g[0];if(g.length!=1||a.type!=="insert"||a.name!="$text"||a.length!=1)return;const s=a.position.parent;if(s.is("element","codeBlock")||s.is("element","listItem")&&typeof n!="function"&&!["numberedList","bulletedList","todoList"].includes(n)||i&&i.value===!0)return;const l=s.getChild(0),f=o.model.createRangeOn(l);if(!f.containsRange(r)&&!r.end.isEqual(f.end))return;const m=e.exec(l.data.substr(0,r.end.offset));m&&o.model.enqueueChange(u=>{const p=u.createPositionAt(s,0),x=u.createPositionAt(s,m[0].length),b=new y(p,x);if(c({match:m})!==!1){u.remove(b);const _=o.model.document.selection.getFirstRange(),L=u.createRangeIn(s);s.isEmpty&&!L.isEqual(_)&&!L.containsRange(_,!0)&&u.remove(s)}b.detach(),o.model.enqueueChange(()=>{o.plugins.get("Delete").requestUndoOnBackspace()})})})}/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var h=Object.defineProperty;var c=(s,i,t)=>i in s?h(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t;var e=(s,i,t)=>c(s,typeof i!="symbol"?i+"":i,t);import{Plugin as d,PendingActions as r}from"../../../../../@ckeditor_ckeditor5-core@
|
|
1
|
+
var h=Object.defineProperty;var c=(s,i,t)=>i in s?h(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t;var e=(s,i,t)=>c(s,typeof i!="symbol"?i+"":i,t);import{Plugin as d,PendingActions as r}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{DomEmitterMixin as m}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{debounce as _}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/class f extends d{constructor(t){super(t);e(this,"adapter");e(this,"_debouncedSave");e(this,"_lastDocumentVersion");e(this,"_savePromise");e(this,"_domEmitter");e(this,"_config");e(this,"_pendingActions");e(this,"_makeImmediateSave");e(this,"_action",null);const n=t.config.get("autosave")||{},a=n.waitingTime||1e3;this.set("state","synchronized"),this._debouncedSave=_(this._save.bind(this),a),this._lastDocumentVersion=t.model.document.version,this._savePromise=null,this._domEmitter=new(m()),this._config=n,this._pendingActions=t.plugins.get(r),this._makeImmediateSave=!1}static get pluginName(){return"Autosave"}static get isOfficialPlugin(){return!0}static get requires(){return[r]}init(){const t=this.editor,n=t.model.document;this.listenTo(t,"ready",()=>{this.listenTo(n,"change:data",(a,o)=>{this._saveCallbacks.length&&o.isLocal&&(this.state==="synchronized"&&(this.state="waiting",this._setPendingAction()),this.state==="waiting"&&this._debouncedSave())})}),this.listenTo(t,"destroy",()=>this._flush(),{priority:"highest"});/* istanbul ignore next -- @preserve */this._domEmitter.listenTo(window,"beforeunload",(a,o)=>{this._pendingActions.hasAny&&(o.returnValue=this._pendingActions.first.message)})}destroy(){this._domEmitter.stopListening(),super.destroy()}save(){return this._debouncedSave.cancel(),this._save()}_flush(){this._debouncedSave.flush()}_save(){return this._savePromise?(this._makeImmediateSave=this.editor.model.document.version>this._lastDocumentVersion,this._savePromise):(this._setPendingAction(),this.state="saving",this._lastDocumentVersion=this.editor.model.document.version,this._savePromise=Promise.resolve().then(()=>Promise.all(this._saveCallbacks.map(t=>t(this.editor)))).finally(()=>{this._savePromise=null}).then(()=>{if(this._makeImmediateSave)return this._makeImmediateSave=!1,this._save();this.editor.model.document.version>this._lastDocumentVersion?(this.state="waiting",this._debouncedSave()):(this.state="synchronized",this._pendingActions.remove(this._action),this._action=null)}).catch(t=>{throw this.state="error",this.state="saving",this._debouncedSave(),t}),this._savePromise)}_setPendingAction(){const t=this.editor.t;this._action||(this._action=this._pendingActions.add(t("Saving changes")))}get _saveCallbacks(){const t=[];return this.adapter&&this.adapter.save&&t.push(this.adapter.save),this._config.save&&t.push(this._config.save),t}}export{f as Autosave};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var U=Object.defineProperty;var w=(s,t,e)=>t in s?U(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var B=(s,t,e)=>w(s,typeof t!="symbol"?t+"":t,e);import{Plugin as r,Command as F}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconBold as R,IconCode as v,IconItalic as L,IconStrikethrough as K,IconSubscript as $,IconSuperscript as H,IconUnderline as q}from"../../../../../@ckeditor_ckeditor5-icons@45.0.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as d,MenuBarMenuListItemButtonView as a}from"../../../../../@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{TwoStepCaretMovement as N,inlineHighlight as V}from"../../../../../@ckeditor_ckeditor5-typing@45.0.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/class g extends F{constructor(e,i){super(e);B(this,"attributeKey");this.attributeKey=i}refresh(){const e=this.editor.model,i=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(i.selection,this.attributeKey)}execute(e={}){const i=this.editor.model,p=i.document.selection,c=e.forceValue===void 0?!this.value:e.forceValue;i.change(u=>{if(p.isCollapsed)c?u.setSelectionAttribute(this.attributeKey,!0):u.removeSelectionAttribute(this.attributeKey);else{const o=i.schema.getValidRanges(p.getRanges(),this.attributeKey);for(const P of o)c?u.setAttribute(this.attributeKey,c,P):u.removeAttribute(this.attributeKey,P)}})}_getValueFromFirstAllowedNode(){const e=this.editor.model,i=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const p of n.getRanges())for(const c of p.getItems())if(i.checkAttribute(c,this.attributeKey))return c.hasAttribute(this.attributeKey);return!1}}const h="bold";class D extends r{static get pluginName(){return"BoldEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:h}),t.model.schema.setAttributeProperties(h,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:h,view:"strong",upcastAlso:["b",i=>{const n=i.getStyle("font-weight");return n&&(n=="bold"||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(h,new g(t,h)),t.keystrokes.set("CTRL+B",h),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function m({editor:s,commandName:t,plugin:e,icon:i,label:n,keystroke:p}){return c=>{const u=s.commands.get(t),o=new c(s.locale);return o.set({label:n,icon:i,keystroke:p,isToggleable:!0}),o.bind("isEnabled").to(u,"isEnabled"),o.bind("isOn").to(u,"value"),o instanceof a?o.set({role:"menuitemcheckbox"}):o.set({tooltip:!0}),e.listenTo(o,"execute",()=>{s.execute(t),s.editing.view.focus()}),o}}const x="bold";class G extends r{static get pluginName(){return"BoldUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:x,plugin:this,icon:R,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(x,()=>i(d)),t.ui.componentFactory.add("menuBar:"+x,()=>i(a))}}class at extends r{static get requires(){return[D,G]}static get pluginName(){return"Bold"}static get isOfficialPlugin(){return!0}}const l="code",M="ck-code_selected";class _ extends r{static get pluginName(){return"CodeEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[N]}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:l}),t.model.schema.setAttributeProperties(l,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:l,view:"code"}),t.commands.add(l,new g(t,l)),t.plugins.get(N).registerAttribute(l),V(t,l,"code",M),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}const S="code";class X extends r{static get pluginName(){return"CodeUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:S,plugin:this,icon:v,label:e("Code")});t.ui.componentFactory.add(S,()=>i(d)),t.ui.componentFactory.add("menuBar:"+S,()=>i(a))}}class ut extends r{static get requires(){return[_,X]}static get pluginName(){return"Code"}static get isOfficialPlugin(){return!0}}const b="italic";class W extends r{static get pluginName(){return"ItalicEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:b}),t.model.schema.setAttributeProperties(b,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:b,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(b,new g(t,b)),t.keystrokes.set("CTRL+I",b),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const E="italic";class j extends r{static get pluginName(){return"ItalicUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:E,plugin:this,icon:L,keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(E,()=>i(d)),t.ui.componentFactory.add("menuBar:"+E,()=>i(a))}}class lt extends r{static get requires(){return[W,j]}static get pluginName(){return"Italic"}static get isOfficialPlugin(){return!0}}const f="strikethrough";class z extends r{static get pluginName(){return"StrikethroughEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:f}),t.model.schema.setAttributeProperties(f,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:f,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(f,new g(t,f)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}}const T="strikethrough";class J extends r{static get pluginName(){return"StrikethroughUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:T,plugin:this,icon:K,keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(T,()=>i(d)),t.ui.componentFactory.add("menuBar:"+T,()=>i(a))}}class dt extends r{static get requires(){return[z,J]}static get pluginName(){return"Strikethrough"}static get isOfficialPlugin(){return!0}}const y="subscript";class Q extends r{static get pluginName(){return"SubscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:y}),t.model.schema.setAttributeProperties(y,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:y,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(y,new g(t,y))}}const A="subscript";class Y extends r{static get pluginName(){return"SubscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:A,plugin:this,icon:$,label:e("Subscript")});t.ui.componentFactory.add(A,()=>i(d)),t.ui.componentFactory.add("menuBar:"+A,()=>i(a))}}class gt extends r{static get requires(){return[Q,Y]}static get pluginName(){return"Subscript"}static get isOfficialPlugin(){return!0}}const k="superscript";class Z extends r{static get pluginName(){return"SuperscriptEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:k}),t.model.schema.setAttributeProperties(k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:k,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(k,new g(t,k))}}const C="superscript";class tt extends r{static get pluginName(){return"SuperscriptUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:C,plugin:this,icon:H,label:e("Superscript")});t.ui.componentFactory.add(C,()=>i(d)),t.ui.componentFactory.add("menuBar:"+C,()=>i(a))}}class mt extends r{static get requires(){return[Z,tt]}static get pluginName(){return"Superscript"}static get isOfficialPlugin(){return!0}}const I="underline";class et extends r{static get pluginName(){return"UnderlineEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:I}),t.model.schema.setAttributeProperties(I,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:I,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(I,new g(t,I)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}}const O="underline";class it extends r{static get pluginName(){return"UnderlineUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale.t,i=m({editor:t,commandName:O,plugin:this,icon:q,label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(O,()=>i(d)),t.ui.componentFactory.add("menuBar:"+O,()=>i(a))}}class pt extends r{static get requires(){return[et,it]}static get pluginName(){return"Underline"}static get isOfficialPlugin(){return!0}}export{g as AttributeCommand,at as Bold,D as BoldEditing,G as BoldUI,ut as Code,_ as CodeEditing,X as CodeUI,lt as Italic,W as ItalicEditing,j as ItalicUI,dt as Strikethrough,z as StrikethroughEditing,J as StrikethroughUI,gt as Subscript,Q as SubscriptEditing,Y as SubscriptUI,mt as Superscript,Z as SuperscriptEditing,tt as SuperscriptUI,pt as Underline,et as UnderlineEditing,it as UnderlineUI};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Plugin as m,
|
|
1
|
+
import{Plugin as m,Command as b}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Enter as Q}from"../../../../../@ckeditor_ckeditor5-enter@45.0.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{Delete as g}from"../../../../../@ckeditor_ckeditor5-typing@45.0.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{first as f}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{IconQuote as B}from"../../../../../@ckeditor_ckeditor5-icons@45.0.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as v,MenuBarMenuListItemButtonView as E}from"../../../../../@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/class x extends
|
|
4
|
+
*/class x extends b{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const t=this.editor.model,o=t.schema,i=t.document.selection,n=Array.from(i.getSelectedBlocks()),s=e.forceValue===void 0?!this.value:e.forceValue;t.change(u=>{if(!s)this._removeQuote(u,n.filter(d));else{const r=n.filter(c=>d(c)||k(o,c));this._applyQuote(u,r)}})}_getValue(){const e=this.editor.model.document.selection,t=f(e.getSelectedBlocks());return!!(t&&d(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,t=this.editor.model.schema,o=f(e.getSelectedBlocks());return o?k(t,o):!1}_removeQuote(e,t){h(e,t).reverse().forEach(o=>{if(o.start.isAtStart&&o.end.isAtEnd){e.unwrap(o.start.parent);return}if(o.start.isAtStart){const n=e.createPositionBefore(o.start.parent);e.move(o,n);return}o.end.isAtEnd||e.split(o.end);const i=e.createPositionAfter(o.end.parent);e.move(o,i)})}_applyQuote(e,t){const o=[];h(e,t).reverse().forEach(i=>{let n=d(i.start);n||(n=e.createElement("blockQuote"),e.wrap(i,n)),o.push(n)}),o.reverse().reduce((i,n)=>i.nextSibling==n?(e.merge(e.createPositionAfter(i)),i):n)}}function d(l){return l.parent.name=="blockQuote"?l.parent:null}function h(l,e){let t,o=0;const i=[];for(;o<e.length;){const n=e[o],s=e[o+1];t||(t=l.createPositionBefore(n)),(!s||n.nextSibling!=s)&&(i.push(l.createRange(t,l.createPositionAfter(n))),t=null),o++}return i}function k(l,e){const t=l.checkChild(e.parent,"blockQuote"),o=l.checkChild(["$root","blockQuote"],e);return t&&o}class P extends m{static get pluginName(){return"BlockQuoteEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Q,g]}init(){const e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new x(e)),t.register("blockQuote",{inheritAllFrom:"$container"}),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer(s=>{const u=e.model.document.differ.getChanges();for(const r of u)if(r.type=="insert"){const c=r.position.nodeAfter;if(!c)continue;if(c.is("element","blockQuote")&&c.isEmpty)return s.remove(c),!0;if(c.is("element","blockQuote")&&!t.checkChild(r.position,c))return s.unwrap(c),!0;if(c.is("element")){const p=s.createRangeIn(c);for(const a of p.getItems())if(a.is("element","blockQuote")&&!t.checkChild(s.createPositionBefore(a),a))return s.unwrap(a),!0}}else if(r.type=="remove"){const c=r.position.parent;if(c.is("element","blockQuote")&&c.isEmpty)return s.remove(c),!0}return!1});const o=this.editor.editing.view.document,i=e.model.document.selection,n=e.commands.get("blockQuote");this.listenTo(o,"enter",(s,u)=>{if(!i.isCollapsed||!n.value)return;i.getLastPosition().parent.isEmpty&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),u.preventDefault(),s.stop())},{context:"blockquote"}),this.listenTo(o,"delete",(s,u)=>{if(u.direction!="backward"||!i.isCollapsed||!n.value)return;const r=i.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(e.execute("blockQuote"),e.editing.view.scrollToTheSelection(),u.preventDefault(),s.stop())},{context:"blockquote"})}}class A extends m{static get pluginName(){return"BlockQuoteUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("blockQuote",()=>{const t=this._createButton(v);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:blockQuote",()=>{const t=this._createButton(E);return t.set({role:"menuitemcheckbox"}),t})}_createButton(e){const t=this.editor,o=t.locale,i=t.commands.get("blockQuote"),n=new e(t.locale),s=o.t;return n.set({label:s("Block quote"),icon:B,isToggleable:!0}),n.bind("isEnabled").to(i,"isEnabled"),n.bind("isOn").to(i,"value"),this.listenTo(n,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),n}}class V extends m{static get requires(){return[P,A]}static get pluginName(){return"BlockQuote"}static get isOfficialPlugin(){return!0}}export{V as BlockQuote,P as BlockQuoteEditing,A as BlockQuoteUI};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var re=Object.defineProperty;var ne=(l,a,e)=>a in l?re(l,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[a]=e;var m=(l,a,e)=>ne(l,typeof a!="symbol"?a+"":a,e);import{Plugin as _}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{EventInfo as j,uid as H,delay as K,DomEmitterMixin as S,env as b,global as f,createElement as B,Rect as k,getRangeFromMouseEvent as ie,ResizeObserver as oe,toUnit as se}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{MouseObserver as ae,LiveRange as w,DomEventObserver as le,DataTransfer as ce,Range as de}from"../../../../../@ckeditor_ckeditor5-engine@45.0.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Widget as ge,isWidget as y}from"../../../../../@ckeditor_ckeditor5-widget@45.0.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{View as pe}from"../../../../../@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{mapValues as me}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/object/mapValues.js";import{throttle as L}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/throttle.js";/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/class D extends le{constructor(e){super(e);m(this,"domEventType",["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"]);const n=this.document;this.listenTo(n,"paste",t("clipboardInput"),{priority:"low"}),this.listenTo(n,"drop",t("clipboardInput"),{priority:"low"}),this.listenTo(n,"dragover",t("dragging"),{priority:"low"});function t(i){return(o,r)=>{r.preventDefault();const s=r.dropRange?[r.dropRange]:null,c=new j(n,i);n.fire(c,{dataTransfer:r.dataTransfer,method:o.name,targetRanges:s,target:r.target,domEvent:r.domEvent}),c.stop.called&&r.stopPropagation()}}}onDomEvent(e){const n="clipboardData"in e?e.clipboardData:e.dataTransfer,t=e.type=="drop"||e.type=="paste",i={dataTransfer:new ce(n,{cacheFiles:t})};if(e.type=="drop"||e.type=="dragover"){const o=ie(e);i.dropRange=o&&this.view.domConverter.domRangeToView(o)}this.fire(e.type,e,i)}}/**
|
|
5
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
6
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
7
|
+
*/function ue(l){return l=l.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," "),(l.includes("</p><p>")||l.includes("<br>"))&&(l=`<p>${l}</p>`),l}/**
|
|
8
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
9
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
10
|
+
*/function he(l){return l.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(a,e)=>e.length==1?" ":e).replace(/<!--[\s\S]*?-->/g,"")}/**
|
|
11
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
12
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
13
|
+
*/const U=["figcaption","li"],$=["ol","ul"];function G(l,a){if(a.is("$text")||a.is("$textProxy"))return a.data;if(a.is("element","img")&&a.hasAttribute("alt"))return a.getAttribute("alt");if(a.is("element","br"))return`
|
|
14
|
+
`;let e="",n=null;for(const t of a.getChildren())e+=fe(t,n)+G(l,t),n=t;if(a.is("rawElement")){const t=document.createElement("div");a.render(t,l),e+=X(t)}return e}function X(l){let a="";if(l.nodeType===Node.TEXT_NODE)return l.textContent;if(l.tagName==="BR")return`
|
|
15
|
+
`;for(const e of l.childNodes)a+=X(e);return a}function fe(l,a){return a?l.is("element","li")&&!l.isEmpty&&l.getChild(0).is("containerElement")||$.includes(l.name)&&$.includes(a.name)?`
|
|
16
|
+
|
|
17
|
+
`:!l.is("containerElement")&&!a.is("containerElement")?"":U.includes(l.name)||U.includes(a.name)?`
|
|
18
|
+
`:l.is("element")&&l.getCustomProperty("dataPipeline:transparentRendering")||a.is("element")&&a.getCustomProperty("dataPipeline:transparentRendering")?"":`
|
|
19
|
+
|
|
20
|
+
`:""}class Y extends _{constructor(){super(...arguments);m(this,"_markersToCopy",new Map)}static get pluginName(){return"ClipboardMarkersUtils"}static get isOfficialPlugin(){return!0}_registerMarkerToCopy(e,n){this._markersToCopy.set(e,n)}_copySelectedFragmentWithMarkers(e,n,t=i=>i.model.getSelectedContent(i.model.document.selection)){return this.editor.model.change(i=>{const o=i.model.document.selection;i.setSelection(n);const r=this._insertFakeMarkersIntoSelection(i,i.model.document.selection,e),s=t(i),c=this._removeFakeMarkersInsideElement(i,s);for(const[d,g]of Object.entries(r)){c[d]||(c[d]=i.createRangeIn(s));for(const p of g)i.remove(p)}s.markers.clear();for(const[d,g]of Object.entries(c))s.markers.set(d,g);return i.setSelection(o),s})}_pasteMarkersIntoTransformedElement(e,n){const t=this._getPasteMarkersFromRangeMap(e);return this.editor.model.change(i=>{const o=this._insertFakeMarkersElements(i,t),r=n(i),s=this._removeFakeMarkersInsideElement(i,r);for(const c of Object.values(o).flat())i.remove(c);for(const[c,d]of Object.entries(s))i.model.markers.has(c)||i.addMarker(c,{usingOperation:!0,affectsData:!0,range:d});return r})}_pasteFragmentWithMarkers(e){const n=this._getPasteMarkersFromRangeMap(e.markers);e.markers.clear();for(const t of n)e.markers.set(t.name,t.range);return this.editor.model.insertContent(e)}_forceMarkersCopy(e,n,t={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const i=this._markersToCopy.get(e);this._markersToCopy.set(e,t),n(),i?this._markersToCopy.set(e,i):this._markersToCopy.delete(e)}_isMarkerCopyable(e,n){const t=this._getMarkerClipboardConfig(e);if(!t)return!1;if(!n)return!0;const{allowedActions:i}=t;return i==="all"||i.includes(n)}_hasMarkerConfiguration(e){return!!this._getMarkerClipboardConfig(e)}_getMarkerClipboardConfig(e){const[n]=e.split(":");return this._markersToCopy.get(n)||null}_insertFakeMarkersIntoSelection(e,n,t){const i=this._getCopyableMarkersFromSelection(e,n,t);return this._insertFakeMarkersElements(e,i)}_getCopyableMarkersFromSelection(e,n,t){const i=Array.from(n.getRanges()),o=new Set(i.flatMap(s=>Array.from(e.model.markers.getMarkersIntersectingRange(s)))),r=s=>{if(!this._isMarkerCopyable(s.name,t))return!1;const{copyPartiallySelected:d}=this._getMarkerClipboardConfig(s.name);if(!d){const g=s.getRange();return i.some(p=>p.containsRange(g,!0))}return!0};return Array.from(o).filter(r).map(s=>({name:t==="dragstart"?this._getUniqueMarkerName(s.name):s.name,range:s.getRange()}))}_getPasteMarkersFromRangeMap(e,n=null){const{model:t}=this.editor;return(e instanceof Map?Array.from(e.entries()):Object.entries(e)).flatMap(([o,r])=>{if(!this._hasMarkerConfiguration(o))return[{name:o,range:r}];if(this._isMarkerCopyable(o,n)){const s=this._getMarkerClipboardConfig(o),c=t.markers.has(o)&&t.markers.get(o).getRange().root.rootName==="$graveyard";return(s.duplicateOnPaste||c)&&(o=this._getUniqueMarkerName(o)),[{name:o,range:r}]}return[]})}_insertFakeMarkersElements(e,n){const t={},i=n.flatMap(o=>{const{start:r,end:s}=o.range;return[{position:r,marker:o,type:"start"},{position:s,marker:o,type:"end"}]}).sort(({position:o},{position:r})=>o.isBefore(r)?1:-1);for(const{position:o,marker:r,type:s}of i){const c=e.createElement("$marker",{"data-name":r.name,"data-type":s});t[r.name]||(t[r.name]=[]),t[r.name].push(c),e.insert(c,o)}return t}_removeFakeMarkersInsideElement(e,n){const i=this._getAllFakeMarkersFromElement(e,n).reduce((o,r)=>{const s=r.markerElement&&e.createPositionBefore(r.markerElement);let c=o[r.name],d=!1;return c!=null&&c.start&&(c!=null&&c.end)&&(this._getMarkerClipboardConfig(r.name).duplicateOnPaste?o[this._getUniqueMarkerName(r.name)]=o[r.name]:d=!0,c=null),d||(o[r.name]={...c,[r.type]:s}),r.markerElement&&e.remove(r.markerElement),o},{});return me(i,o=>new de(o.start||e.createPositionFromPath(n,[0]),o.end||e.createPositionAt(n,"end")))}_getAllFakeMarkersFromElement(e,n){const t=Array.from(e.createRangeIn(n)).flatMap(({item:r})=>{if(!r.is("element","$marker"))return[];const s=r.getAttribute("data-name"),c=r.getAttribute("data-type");return[{markerElement:r,name:s,type:c}]}),i=[],o=[];for(const r of t)r.type==="end"&&(t.some(c=>c.name===r.name&&c.type==="start")||i.push({markerElement:null,name:r.name,type:"start"})),r.type==="start"&&(t.some(c=>c.name===r.name&&c.type==="end")||o.unshift({markerElement:null,name:r.name,type:"end"}));return[...i,...t,...o]}_getUniqueMarkerName(e){const n=e.split(":"),t=H().substring(1,6);return n.length===3?`${n.slice(0,2).join(":")}:${t}`:`${n.join(":")}:${t}`}}class T extends _{static get pluginName(){return"ClipboardPipeline"}static get isOfficialPlugin(){return!0}static get requires(){return[Y]}init(){this.editor.editing.view.addObserver(D),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(a,e,n){const t=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:n==="cut"},()=>{const i=t._copySelectedFragmentWithMarkers(n,e);this.fire("outputTransformation",{dataTransfer:a,content:i,method:n})})}_setupPasteDrop(){const a=this.editor,e=a.model,n=a.editing.view,t=n.document,i=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(t,"clipboardInput",(o,r)=>{r.method=="paste"&&!a.model.canEditAt(a.model.document.selection)&&o.stop()},{priority:"highest"}),this.listenTo(t,"clipboardInput",(o,r)=>{const s=r.dataTransfer;let c;if(r.content)c=r.content;else{let p="";s.getData("text/html")?p=he(s.getData("text/html")):s.getData("text/plain")&&(p=ue(s.getData("text/plain"))),c=this.editor.data.htmlProcessor.toView(p)}const d=new j(this,"inputTransformation"),g=s.getData("application/ckeditor5-editor-id")||null;this.fire(d,{content:c,dataTransfer:s,sourceEditorId:g,targetRanges:r.targetRanges,method:r.method}),d.stop.called&&o.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(o,r)=>{if(r.content.isEmpty)return;const c=this.editor.data.toModel(r.content,"$clipboardHolder");c.childCount!=0&&(o.stop(),e.change(()=>{this.fire("contentInsertion",{content:c,method:r.method,sourceEditorId:r.sourceEditorId,dataTransfer:r.dataTransfer,targetRanges:r.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(o,r)=>{r.resultRange=i._pasteFragmentWithMarkers(r.content)},{priority:"low"})}_setupCopyCut(){const a=this.editor,e=a.model.document,t=a.editing.view.document,i=(o,r)=>{const s=r.dataTransfer;r.preventDefault(),this._fireOutputTransformationEvent(s,e.selection,o.name)};this.listenTo(t,"copy",i,{priority:"low"}),this.listenTo(t,"cut",(o,r)=>{a.model.canEditAt(a.model.document.selection)?i(o,r):r.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(o,r)=>{const s=a.data.toView(r.content,{isClipboardPipeline:!0});t.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:s,method:r.method})},{priority:"low"}),this.listenTo(t,"clipboardOutput",(o,r)=>{r.content.isEmpty||(r.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",G(a.data.htmlProcessor.domConverter,r.content)),r.dataTransfer.setData("application/ckeditor5-editor-id",this.editor.id)),r.method=="cut"&&a.model.deleteContent(e.selection)},{priority:"low"})}}const A=se("px");class be extends pe{constructor(){super();const a=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",a.if("isVisible","ck-hidden",e=>!e)],style:{left:a.to("left",e=>A(e)),top:a.to("top",e=>A(e)),width:a.to("width",e=>A(e))}}})}}class C extends _{constructor(){super(...arguments);m(this,"removeDropMarkerDelayed",K(()=>this.removeDropMarker(),40));m(this,"_updateDropMarkerThrottled",L(e=>this._updateDropMarker(e),40));m(this,"_reconvertMarkerThrottled",L(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0));m(this,"_dropTargetLineView",new be);m(this,"_domEmitter",new(S()));m(this,"_scrollables",new Map)}static get pluginName(){return"DragDropTarget"}static get isOfficialPlugin(){return!0}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:e}of this._scrollables.values())e.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(e,n,t,i,o,r){this.removeDropMarkerDelayed.cancel();const s=N(this.editor,e,n,t,i,o,r);/* istanbul ignore next -- @preserve */if(s){if(r&&r.containsRange(s))return this.removeDropMarker();this._updateDropMarkerThrottled(s)}}getFinalDropRange(e,n,t,i,o,r){const s=N(this.editor,e,n,t,i,o,r);return this.removeDropMarker(),s}removeDropMarker(){const e=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,e.markers.has("drop-target")&&e.change(n=>{n.removeMarker("drop-target")})}_setupDropMarker(){const e=this.editor;e.ui.view.body.add(this._dropTargetLineView),e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(n,{writer:t})=>{if(e.model.schema.checkChild(n.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(t);n.markerRange.isCollapsed?this._updateDropTargetLine(n.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(e){const n=this.editor,t=n.model.markers;n.model.change(i=>{t.has("drop-target")?t.get("drop-target").getRange().isEqual(e)||i.updateMarker("drop-target",{range:e}):i.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(e){return e.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(n){const t=this.toDomElement(n);return t.append("",n.createElement("span"),""),t})}_updateDropTargetLine(e){const n=this.editor.editing,t=e.start.nodeBefore,i=e.start.nodeAfter,o=e.start.parent,r=t?n.mapper.toViewElement(t):null,s=r?n.view.domConverter.mapViewToDom(r):null,c=i?n.mapper.toViewElement(i):null,d=c?n.view.domConverter.mapViewToDom(c):null,g=n.mapper.toViewElement(o);if(!g)return;const p=n.view.domConverter.mapViewToDom(g),h=this._getScrollableRect(g),{scrollX:u,scrollY:v}=f.window,O=s?new k(s):null,I=d?new k(d):null,E=new k(p).excludeScrollbarsAndBorders(),F=O?O.bottom:E.top,R=I?I.top:E.bottom,x=f.window.getComputedStyle(p),P=F<=R?(F+R)/2:R;if(h.top<P&&P<h.bottom){const Z=E.left+parseFloat(x.paddingLeft),ee=E.right-parseFloat(x.paddingRight),V=Math.max(Z+u,h.left),te=Math.min(ee+u,h.right);this._dropTargetLineView.set({isVisible:!0,left:V,top:P+v,width:te-V})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(e){const n=e.root.rootName;let t;if(this._scrollables.has(n))t=this._scrollables.get(n).domElement;else{const i=this.editor.editing.view.domConverter.mapViewToDom(e);t=ke(i),this._domEmitter.listenTo(t,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const o=new oe(t,this._reconvertMarkerThrottled);this._scrollables.set(n,{domElement:t,resizeObserver:o})}return new k(t).excludeScrollbarsAndBorders()}}function N(l,a,e,n,t,i,o){const r=l.model,s=l.editing.mapper;let d=W(l,a);for(;d;){if(!i){if(r.schema.checkChild(d,"$text")){if(e){const g=e[0].start,p=s.toModelPosition(g);if(!o||Array.from(o.getItems({shallow:!0})).every(u=>r.schema.checkChild(p,u))){if(r.schema.checkChild(p,"$text"))return r.createRange(p);if(g)return M(l,W(l,g.parent),n,t)}}}else if(r.schema.isInline(d))return M(l,d,n,t)}if(r.schema.isBlock(d))return M(l,d,n,t);if(r.schema.checkChild(d,"$block")){const g=Array.from(d.getChildren()).filter(u=>u.is("element")&&!_e(l,u));let p=0,h=g.length;if(h==0)return r.createRange(r.createPositionAt(d,"end"));for(;p<h-1;){const u=Math.floor((p+h)/2);J(l,g[u],n,t)=="before"?h=u:p=u}return M(l,g[p],n,t)}d=d.parent}return null}function _e(l,a){const e=l.editing.mapper,n=l.editing.view.domConverter,t=e.toViewElement(a);if(!t)return!0;const i=n.mapViewToDom(t);return f.window.getComputedStyle(i).float!="none"}function M(l,a,e,n){const t=l.model;return t.createRange(t.createPositionAt(a,J(l,a,e,n)))}function J(l,a,e,n){const t=l.editing.mapper,i=l.editing.view.domConverter,o=t.toViewElement(a),r=i.mapViewToDom(o),s=new k(r);return l.model.schema.isInline(a)?e<(s.left+s.right)/2?"before":"after":n<(s.top+s.bottom)/2?"before":"after"}function W(l,a){const e=l.editing.mapper,n=l.editing.view,t=e.toModelElement(a);if(t)return t;const i=n.createPositionBefore(a),o=e.findMappedViewAncestor(i);return e.toModelElement(o)}function ke(l){let a=l;do{a=a.parentElement;const e=f.window.getComputedStyle(a).overflowY;if(e=="auto"||e=="scroll")break}while(a.tagName!="BODY");return a}class ve extends _{constructor(){super(...arguments);m(this,"_isBlockDragging",!1);m(this,"_domEmitter",new(S()))}static get pluginName(){return"DragDropBlockToolbar"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;if(this.listenTo(e,"change:isReadOnly",(n,t,i)=>{i?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),b.isAndroid&&this.forceDisabled("noAndroidSupport"),e.plugins.has("BlockToolbar")){const t=e.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(t,"dragstart",(i,o)=>this._handleBlockDragStart(o)),this._domEmitter.listenTo(f.document,"dragover",(i,o)=>this._handleBlockDragging(o)),this._domEmitter.listenTo(f.document,"drop",(i,o)=>this._handleBlockDragging(o)),this._domEmitter.listenTo(f.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&t.setAttribute("draggable","true"),this.on("change:isEnabled",(i,o,r)=>{t.setAttribute("draggable",r?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(e){if(!this.isEnabled)return;const n=this.editor.model,t=n.document.selection,i=this.editor.editing.view,o=Array.from(t.getSelectedBlocks()),r=n.createRange(n.createPositionBefore(o[0]),n.createPositionAfter(o[o.length-1]));n.change(s=>s.setSelection(r)),this._isBlockDragging=!0,i.focus(),i.getObserver(D).onDomEvent(e)}_handleBlockDragging(e){if(!this.isEnabled||!this._isBlockDragging)return;const n=e.clientX+(this.editor.locale.contentLanguageDirection=="ltr"?100:-100),t=e.clientY,i=document.elementFromPoint(n,t),o=this.editor.editing.view;!i||!i.closest(".ck-editor__editable")||o.getObserver(D).onDomEvent({...e,type:e.type,dataTransfer:e.dataTransfer,target:i,clientX:n,clientY:t,preventDefault:()=>e.preventDefault(),stopPropagation:()=>e.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}class ye extends _{constructor(){super(...arguments);m(this,"_draggedRange");m(this,"_draggingUid");m(this,"_draggableElement");m(this,"_clearDraggableAttributesDelayed",K(()=>this._clearDraggableAttributes(),40));m(this,"_blockMode",!1);m(this,"_domEmitter",new(S()));m(this,"_previewContainer")}static get pluginName(){return"DragDrop"}static get isOfficialPlugin(){return!0}static get requires(){return[T,ge,C,ve]}init(){const e=this.editor,n=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,n.addObserver(D),n.addObserver(ae),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(t,i,o)=>{o?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(t,i,o)=>{o||this._finalizeDragging(!1)}),b.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const e=this.editor,n=e.model,t=e.editing.view,i=t.document,o=e.plugins.get(C);this.listenTo(i,"dragstart",(r,s)=>{var v;if((v=s.target)!=null&&v.is("editableElement")){s.preventDefault();return}if(this._prepareDraggedRange(s.target),!this._draggedRange){s.preventDefault();return}this._draggingUid=H(),s.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",s.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const c=n.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(s.dataTransfer,c,"dragstart");const{dataTransfer:g,domTarget:p,domEvent:h}=s,{clientX:u}=h;this._updatePreview({dataTransfer:g,domTarget:p,clientX:u}),s.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(i,"dragend",(r,s)=>{this._finalizeDragging(!s.dataTransfer.isCanceled&&s.dataTransfer.dropEffect=="move")},{priority:"low"}),this._domEmitter.listenTo(f.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(i,"dragenter",()=>{this.isEnabled&&t.focus()}),this.listenTo(i,"dragleave",()=>{o.removeDropMarkerDelayed()}),this.listenTo(i,"dragging",(r,s)=>{if(!this.isEnabled){s.dataTransfer.dropEffect="none";return}const{clientX:c,clientY:d}=s.domEvent;o.updateDropMarker(s.target,s.targetRanges,c,d,this._blockMode,this._draggedRange),this._draggedRange||(s.dataTransfer.dropEffect="copy"),b.isGecko||(s.dataTransfer.effectAllowed=="copy"?s.dataTransfer.dropEffect="copy":["all","copyMove"].includes(s.dataTransfer.effectAllowed)&&(s.dataTransfer.dropEffect="move")),r.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const e=this.editor,t=e.editing.view.document,i=e.plugins.get(C);this.listenTo(t,"clipboardInput",(o,r)=>{if(r.method!="drop")return;const{clientX:s,clientY:c}=r.domEvent,d=i.getFinalDropRange(r.target,r.targetRanges,s,c,this._blockMode,this._draggedRange);if(!d){this._finalizeDragging(!1),o.stop();return}if(this._draggedRange&&this._draggingUid!=r.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),q(r.dataTransfer)=="move"&&this._draggedRange&&this._draggedRange.containsRange(d,!0)){this._finalizeDragging(!1),o.stop();return}r.targetRanges=[e.editing.mapper.toViewRange(d)]},{priority:"high"})}_setupContentInsertionIntegration(){const e=this.editor.plugins.get(T);e.on("contentInsertion",(n,t)=>{if(!this.isEnabled||t.method!=="drop")return;const i=t.targetRanges.map(o=>this.editor.editing.mapper.toModelRange(o));this.editor.model.change(o=>o.setSelection(i))},{priority:"high"}),e.on("contentInsertion",(n,t)=>{if(!this.isEnabled||t.method!=="drop")return;const i=q(t.dataTransfer)=="move",o=!t.resultRange||!t.resultRange.isCollapsed;this._finalizeDragging(o&&i)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const e=this.editor,n=e.editing.view,t=n.document;this.listenTo(t,"mousedown",(i,o)=>{if(b.isAndroid||!o)return;this._clearDraggableAttributesDelayed.cancel();let r=z(o.target);if(b.isBlink&&!e.isReadOnly&&!r&&!t.selection.isCollapsed){const s=t.selection.getSelectedElement();(!s||!y(s))&&(r=t.selection.editableElement)}r&&(n.change(s=>{s.setAttribute("draggable","true",r)}),this._draggableElement=e.editing.mapper.toModelElement(r))}),this.listenTo(t,"mouseup",()=>{b.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const e=this.editor.editing;e.view.change(n=>{this._draggableElement&&this._draggableElement.root.rootName!="$graveyard"&&n.removeAttribute("draggable",e.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(e){const n=this.editor,t=n.model;n.plugins.get(C).removeDropMarker(),this._clearDraggableAttributes(),n.plugins.has("WidgetToolbarRepository")&&n.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(e&&this.isEnabled&&t.change(o=>{const r=t.createSelection(this._draggedRange);t.deleteContent(r,{doNotAutoparagraph:!0});const s=r.getFirstPosition().parent;s.isEmpty&&!t.schema.checkChild(s,"$text")&&t.schema.checkChild(s,"paragraph")&&o.insertElement("paragraph",s,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(e){const n=this.editor,t=n.model,i=t.document.selection,o=e?z(e):null;if(o){const d=n.editing.mapper.toModelElement(o);this._draggedRange=w.fromRange(t.createRangeOn(d)),this._blockMode=t.schema.isBlock(d),n.plugins.has("WidgetToolbarRepository")&&n.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;const r=Array.from(i.getSelectedBlocks()),s=i.getFirstRange();if(r.length==0){this._draggedRange=w.fromRange(s);return}const c=Q(t,r);if(r.length>1)this._draggedRange=w.fromRange(c),this._blockMode=!0;else if(r.length==1){const d=s.start.isTouching(c.start)&&s.end.isTouching(c.end);this._draggedRange=w.fromRange(d?c:s),this._blockMode=d}t.change(d=>d.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:e,domTarget:n,clientX:t}){const i=this.editor.editing.view,o=i.document.selection.editableElement,r=i.domConverter.mapViewToDom(o),s=f.window.getComputedStyle(r);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=B(f.document,"div",{style:"position: fixed; left: -999999px;"}),f.document.body.appendChild(this._previewContainer));const c=new k(r);if(r.contains(n))return;const d=parseFloat(s.paddingLeft),g=B(f.document,"div");g.className="ck ck-content",g.style.width=s.width,g.style.paddingLeft=`${c.left-t+d}px`,b.isiOS&&(g.style.backgroundColor="white"),i.domConverter.setContentOf(g,e.getData("text/html")),e.setDragImage(g,0,0),this._previewContainer.appendChild(g)}}function q(l){return b.isGecko?l.dropEffect:["all","copyMove"].includes(l.effectAllowed)?"move":"copy"}function z(l){if(l.is("editableElement"))return null;if(l.hasClass("ck-widget__selection-handle"))return l.findAncestor(y);if(y(l))return l;const a=l.findAncestor(e=>y(e)||e.is("editableElement"));return y(a)?a:null}function Q(l,a){const e=a[0],n=a[a.length-1],t=e.getCommonAncestor(n),i=l.createPositionBefore(e),o=l.createPositionAfter(n);if(t&&t.is("element")&&!l.schema.isLimit(t)){const r=l.createRangeOn(t),s=i.isTouching(r.start),c=o.isTouching(r.end);if(s&&c)return Q(l,[t])}return l.createRange(i,o)}class De extends _{static get pluginName(){return"PastePlainText"}static get isOfficialPlugin(){return!0}static get requires(){return[T]}init(){const a=this.editor,e=a.model,n=a.editing.view,t=e.document.selection;n.addObserver(D),a.plugins.get(T).on("contentInsertion",(i,o)=>{Te(o.content,e)&&e.change(r=>{const s=Array.from(t.getAttributes()).filter(([d])=>e.schema.getAttributeProperties(d).isFormatting);t.isCollapsed||e.deleteContent(t,{doNotAutoparagraph:!0}),s.push(...t.getAttributes());const c=r.createRangeIn(o.content);for(const d of c.getItems())for(const g of s)e.schema.checkAttribute(d,g[0])&&r.setAttribute(g[0],g[1],d)})})}}function Te(l,a){let e=a.createRangeIn(l);if(l.childCount==1){const n=l.getChild(0);n.is("element")&&a.schema.isBlock(n)&&!a.schema.isObject(n)&&!a.schema.isLimit(n)&&(e=a.createRangeIn(n))}for(const n of e.getItems())if(!a.schema.isInline(n)||Array.from(n.getAttributeKeys()).find(i=>a.schema.getAttributeProperties(i).isFormatting))return!1;return!0}class Oe extends _{static get pluginName(){return"Clipboard"}static get isOfficialPlugin(){return!0}static get requires(){return[Y,T,ye,De]}init(){const a=this.editor,e=this.editor.t;a.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Copy selected content"),keystroke:"CTRL+C"},{label:e("Paste content"),keystroke:"CTRL+V"},{label:e("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}export{Oe as Clipboard,Y as ClipboardMarkersUtils,T as ClipboardPipeline,ye as DragDrop,ve as DragDropBlockToolbar,C as DragDropTarget,De as PastePlainText,ue as plainTextToHtml,G as viewToPlainText};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _=Object.defineProperty;var g=(n,s,e)=>s in n?_(n,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[s]=e;var i=(n,s,e)=>g(n,typeof s!="symbol"?s+"":s,e);import{ContextPlugin as p}from"../../../../../@ckeditor_ckeditor5-core@
|
|
1
|
+
var _=Object.defineProperty;var g=(n,s,e)=>s in n?_(n,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[s]=e;var i=(n,s,e)=>g(n,typeof s!="symbol"?s+"":s,e);import{ContextPlugin as p}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{CKEditorError as a,ObservableMixin as T,logWarning as k,EmitterMixin as w}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/const m={autoRefresh:!0},f=36e5,E=5e3;class d extends T(){constructor(e,t={}){super();i(this,"_refresh");i(this,"_options");i(this,"_tokenRefreshTimeout");i(this,"_isDestroyed",!1);if(!e)throw new a("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),typeof e=="function"?this._refresh=e:this._refresh=()=>R(e),this._options={...m,...t}}init(){return new Promise((e,t)=>{if(!this.value){this.refreshToken().then(e).catch(t);return}this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)})}refreshToken(){const e=this._options.autoRefresh;return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),e&&this._registerRefreshTokenTimeout(),this)).catch(t=>{throw k("token-refresh-failed",{autoRefresh:e}),e&&this._registerRefreshTokenTimeout(E),t})}destroy(){this._isDestroyed=!0,clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t=typeof e=="string",r=!/^".*"$/.test(e),o=t&&e.split(".").length===3;if(!(r&&o))throw new a("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(e){if(clearTimeout(this._tokenRefreshTimeout),this._isDestroyed)return;const t=e||this._getTokenRefreshTimeoutTime();this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?Math.floor((t*1e3-Date.now())/2):f}catch{return f}}static create(e,t={}){return new d(e,t).init()}}function R(n){return new Promise((s,e)=>{const t=new XMLHttpRequest;t.open("GET",n),t.addEventListener("load",()=>{const r=t.status,o=t.response;return r<200||r>299?e(new a("token-cannot-download-new-token",null)):s(o)}),t.addEventListener("error",()=>e(new Error("Network Error"))),t.addEventListener("abort",()=>e(new Error("Abort"))),t.send()})}const c=/^data:(\S*?);base64,/;class v extends w(){constructor(e,t,r){super();i(this,"file");i(this,"xhr");i(this,"_token");i(this,"_apiAddress");if(!e)throw new a("fileuploader-missing-file",null);if(!t)throw new a("fileuploader-missing-token",null);if(!r)throw new a("fileuploader-missing-api-address",null);this.file=x(e)?y(e):e,this._token=t,this._apiAddress=r}onProgress(e){return this.on("progress",(t,r)=>e(r)),this}onError(e){return this.once("error",(t,r)=>e(r)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this.xhr,t=r=>()=>this.fire("error",r);e.addEventListener("error",t("Network Error")),e.addEventListener("abort",t("Abort"));/* istanbul ignore else -- @preserve */e.upload&&e.upload.addEventListener("progress",r=>{r.lengthComputable&&this.fire("progress",{total:r.total,uploaded:r.loaded})}),e.addEventListener("load",()=>{const r=e.status,o=e.response;if(r<200||r>299)return this.fire("error",o.message||o.error)})}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((r,o)=>{t.addEventListener("load",()=>{const u=t.status,h=t.response;return u<200||u>299?h.message?o(new a("fileuploader-uploading-data-failed",this,{message:h.message})):o(h.error):r(h)}),t.addEventListener("error",()=>o(new Error("Network Error"))),t.addEventListener("abort",()=>o(new Error("Abort"))),t.send(e)})}}function y(n,s=512){try{const e=n.match(c)[1],t=atob(n.replace(c,"")),r=[];for(let o=0;o<t.length;o+=s){const u=t.slice(o,o+s),h=new Array(u.length);for(let l=0;l<u.length;l++)h[l]=u.charCodeAt(l);r.push(new Uint8Array(h))}return new Blob(r,{type:e})}catch{throw new a("fileuploader-decoding-image-data-error",null)}}function x(n){
|
|
4
|
+
*/const m={autoRefresh:!0},f=36e5,E=5e3;class d extends T(){constructor(e,t={}){super();i(this,"_refresh");i(this,"_options");i(this,"_tokenRefreshTimeout");i(this,"_isDestroyed",!1);if(!e)throw new a("token-missing-token-url",this);t.initValue&&this._validateTokenValue(t.initValue),this.set("value",t.initValue),typeof e=="function"?this._refresh=e:this._refresh=()=>R(e),this._options={...m,...t}}init(){return new Promise((e,t)=>{if(!this.value){this.refreshToken().then(e).catch(t);return}this._options.autoRefresh&&this._registerRefreshTokenTimeout(),e(this)})}refreshToken(){const e=this._options.autoRefresh;return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),e&&this._registerRefreshTokenTimeout(),this)).catch(t=>{throw k("token-refresh-failed",{autoRefresh:e}),e&&this._registerRefreshTokenTimeout(E),t})}destroy(){this._isDestroyed=!0,clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(e){const t=typeof e=="string",r=!/^".*"$/.test(e),o=t&&e.split(".").length===3;if(!(r&&o))throw new a("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(e){if(clearTimeout(this._tokenRefreshTimeout),this._isDestroyed)return;const t=e||this._getTokenRefreshTimeoutTime();this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,e]=this.value.split("."),{exp:t}=JSON.parse(atob(e));return t?Math.floor((t*1e3-Date.now())/2):f}catch{return f}}static create(e,t={}){return new d(e,t).init()}}function R(n){return new Promise((s,e)=>{const t=new XMLHttpRequest;t.open("GET",n),t.addEventListener("load",()=>{const r=t.status,o=t.response;return r<200||r>299?e(new a("token-cannot-download-new-token",null)):s(o)}),t.addEventListener("error",()=>e(new Error("Network Error"))),t.addEventListener("abort",()=>e(new Error("Abort"))),t.send()})}const c=/^data:(\S*?);base64,/;class v extends w(){constructor(e,t,r){super();i(this,"file");i(this,"xhr");i(this,"_token");i(this,"_apiAddress");if(!e)throw new a("fileuploader-missing-file",null);if(!t)throw new a("fileuploader-missing-token",null);if(!r)throw new a("fileuploader-missing-api-address",null);this.file=x(e)?y(e):e,this._token=t,this._apiAddress=r}onProgress(e){return this.on("progress",(t,r)=>e(r)),this}onError(e){return this.once("error",(t,r)=>e(r)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}_attachXHRListeners(){const e=this.xhr,t=r=>()=>this.fire("error",r);e.addEventListener("error",t("Network Error")),e.addEventListener("abort",t("Abort"));/* istanbul ignore else -- @preserve */e.upload&&e.upload.addEventListener("progress",r=>{r.lengthComputable&&this.fire("progress",{total:r.total,uploaded:r.loaded})}),e.addEventListener("load",()=>{const r=e.status,o=e.response;if(r<200||r>299)return this.fire("error",o.message||o.error)})}_sendRequest(){const e=new FormData,t=this.xhr;return e.append("file",this.file),new Promise((r,o)=>{t.addEventListener("load",()=>{const u=t.status,h=t.response;return u<200||u>299?h.message?o(new a("fileuploader-uploading-data-failed",this,{message:h.message})):o(h.error):r(h)}),t.addEventListener("error",()=>o(new Error("Network Error"))),t.addEventListener("abort",()=>o(new Error("Abort"))),t.send(e)})}}function y(n,s=512){try{const e=n.match(c)[1],t=atob(n.replace(c,"")),r=[];for(let o=0;o<t.length;o+=s){const u=t.slice(o,o+s),h=new Array(u.length);for(let l=0;l<u.length;l++)h[l]=u.charCodeAt(l);r.push(new Uint8Array(h))}return new Blob(r,{type:e})}catch{throw new a("fileuploader-decoding-image-data-error",null)}}function x(n){var s;return typeof n!="string"?!1:!!((s=n.match(c))!=null&&s.length)}class b{constructor(s,e){i(this,"_token");i(this,"_apiAddress");if(!s)throw new a("uploadgateway-missing-token",null);if(!e)throw new a("uploadgateway-missing-api-address",null);this._token=s,this._apiAddress=e}upload(s){return new v(s,this._token,this._apiAddress)}}class C extends p{static get pluginName(){return"CloudServicesCore"}static get isOfficialPlugin(){return!0}createToken(s,e){return new d(s,e)}createUploadGateway(s,e){return new b(s,e)}}class P extends p{constructor(){super(...arguments);i(this,"tokenUrl");i(this,"uploadUrl");i(this,"webSocketUrl");i(this,"bundleVersion");i(this,"token",null);i(this,"_tokens",new Map)}static get pluginName(){return"CloudServices"}static get isOfficialPlugin(){return!0}static get requires(){return[C]}async init(){const t=this.context.config.get("cloudServices")||{};for(const[u,h]of Object.entries(t))this[u]=h;if(!this.tokenUrl){this.token=null;return}const o=this.context.plugins.get("CloudServicesCore").createToken(this.tokenUrl);try{this.token=await o.init(),this._tokens.set(this.tokenUrl,this.token)}catch(u){throw o.destroy(),u}}async registerTokenUrl(e){if(this._tokens.has(e))return this.getTokenFor(e);const r=await this.context.plugins.get("CloudServicesCore").createToken(e).init();return this._tokens.set(e,r),r}getTokenFor(e){const t=this._tokens.get(e);if(!t)throw new a("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const e of this._tokens.values())e.destroy()}}export{P as CloudServices,C as CloudServicesCore,d as Token};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var O=Object.defineProperty;var R=(i,t,e)=>t in i?O(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var h=(i,t,e)=>R(i,typeof t!="symbol"?t+"":t,e);import{Plugin as S,
|
|
1
|
+
var O=Object.defineProperty;var R=(i,t,e)=>t in i?O(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var h=(i,t,e)=>R(i,typeof t!="symbol"?t+"":t,e);import{Plugin as S,Command as x}from"../../../../../@ckeditor_ckeditor5-core@45.0.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ShiftEnter as M}from"../../../../../@ckeditor_ckeditor5-enter@45.0.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{UpcastWriter as N}from"../../../../../@ckeditor_ckeditor5-engine@45.0.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ClipboardPipeline as q}from"../../../../../@ckeditor_ckeditor5-clipboard@45.0.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Collection as F,first as v}from"../../../../../@ckeditor_ckeditor5-utils@45.0.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{createDropdown as $,addListToDropdown as z,MenuBarMenuView as W,MenuBarMenuListView as j,MenuBarMenuListItemView as U,MenuBarMenuListItemButtonView as H,ViewModel as J,SplitButtonView as K}from"../../../../../@ckeditor_ckeditor5-ui@45.0.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{IconCodeBlock as A}from"../../../../../@ckeditor_ckeditor5-icons@45.0.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";/**
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
-
*/function
|
|
5
|
-
`),r=o.reduce((s,n,c)=>(s.push(n),c<o.length-1&&s.push(i.createElement("br")),s),[]);return i.appendChild(r,e),e}function C(i){const t=i.document.selection,e=[];if(t.isCollapsed)return[t.anchor];const o=t.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:r}of o){let s=r.is("$textProxy")?r.textNode:r;const n=s.parent;if(!n.is("element","codeBlock")||s.is("element","softBreak"))continue;for(;s.previousSibling&&!s.previousSibling.is("element","softBreak");)s=s.previousSibling;const c=s.is("$text")?s.startOffset+L(s).length:s.startOffset,a=i.createPositionAt(n,c);e.every(l=>!l.isEqual(a))&&e.push(a)}return e}function D(i){const t=v(i.getSelectedBlocks());return!!t&&t.is("element","codeBlock")}function P(i,t){return t.is("rootElement")||i.isLimit(t)?!1:i.checkChild(t.parent,"codeBlock")}function E(i,t,e,o){const r=
|
|
6
|
-
`))}}function te(i,t){const e=
|
|
7
|
-
`).map(a=>o.createText(a)),c=n[n.length-1];for(const a of n)if(o.insert(a,r),r=r.getShiftedBy(a.offsetSize),a!==c){const l=o.createElement("softBreak");o.insert(l,r),r=o.createPositionAfter(l)}t.modelRange=o.createRange(t.modelCursor,r),t.modelCursor=r}}function oe(){return(i,t,{consumable:e})=>{const o=t.viewItem;if(o.findAncestor("pre"))return;const r=Array.from(o.getChildren()),s=r.find(n=>n.is("element","code"));if(s)for(const n of r)n===s||!n.is("$text")||e.consume(n,{name:!0})}}const V="paragraph";class ie extends S{static get pluginName(){return"CodeBlockEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[M]}constructor(t){super(t),t.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:" "})}init(){const t=this.editor,e=t.model.schema,o=t.model,r=t.editing.view,s=
|
|
4
|
+
*/function b(i){const t=i.t,e=i.config.get("codeBlock.languages");for(const o of e)o.label==="Plain text"&&(o.label=t("Plain text")),o.class===void 0&&(o.class=`language-${o.language}`);return e}function k(i,t,e){const o={};for(const r of i)if(t==="class"){const s=r[t].split(" ").shift();o[s]=r[e]}else o[r[t]]=r[e];return o}function L(i){return i.data.match(/^(\s*)/)[0]}function X(i,t){const e=i.createDocumentFragment(),o=t.split(`
|
|
5
|
+
`),r=o.reduce((s,n,c)=>(s.push(n),c<o.length-1&&s.push(i.createElement("br")),s),[]);return i.appendChild(r,e),e}function C(i){const t=i.document.selection,e=[];if(t.isCollapsed)return[t.anchor];const o=t.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:r}of o){let s=r.is("$textProxy")?r.textNode:r;const n=s.parent;if(!n.is("element","codeBlock")||s.is("element","softBreak"))continue;for(;s.previousSibling&&!s.previousSibling.is("element","softBreak");)s=s.previousSibling;const c=s.is("$text")?s.startOffset+L(s).length:s.startOffset,a=i.createPositionAt(n,c);e.every(l=>!l.isEqual(a))&&e.push(a)}return e}function D(i){const t=v(i.getSelectedBlocks());return!!t&&t.is("element","codeBlock")}function P(i,t){return t.is("rootElement")||i.isLimit(t)?!1:i.checkChild(t.parent,"codeBlock")}function E(i,t,e,o){const r=k(t,"language","label"),s=e.getAttribute("language");if(s in r){const n=r[s];return i(o==="enter"?"Entering %0 code snippet":"Leaving %0 code snippet",n)}return i(o==="enter"?"Entering code snippet":"Leaving code snippet")}function I(i,t){for(i.textNode&&(i=t.createPositionBefore(i.textNode));i.nodeBefore&&!i.nodeBefore.is("element","softBreak");)i=t.createPositionBefore(i.nodeBefore);const e=i.nodeAfter;return e&&e.is("$text")?e:null}class G extends x{constructor(e){super(e);h(this,"_lastLanguage");this._lastLanguage=null}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(e={}){const o=this.editor,r=o.model,s=r.document.selection,c=b(o)[0],a=Array.from(s.getSelectedBlocks()),l=e.forceValue==null?!this.value:e.forceValue,d=Q(e,this._lastLanguage,c.language);r.change(u=>{l?this._applyCodeBlock(u,a,d):this._removeCodeBlock(u,a)})}_getValue(){const e=this.editor.model.document.selection,o=v(e.getSelectedBlocks());return!!(o!=null&&o.is("element","codeBlock"))?o.getAttribute("language"):!1}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.document.selection,o=this.editor.model.schema,r=v(e.getSelectedBlocks());return r?P(o,r):!1}_applyCodeBlock(e,o,r){this._lastLanguage=r;const s=this.editor.model.schema,n=o.filter(c=>P(s,c));for(const c of n)e.rename(c,"codeBlock"),e.setAttribute("language",r,c),s.removeDisallowedAttributes([c],e),Array.from(c.getChildren()).filter(a=>!s.checkChild(c,a)).forEach(a=>e.remove(a));n.reverse().forEach((c,a)=>{const l=n[a+1];c.previousSibling===l&&(e.appendElement("softBreak",l),e.merge(e.createPositionBefore(c)))})}_removeCodeBlock(e,o){const r=o.filter(s=>s.is("element","codeBlock"));for(const s of r){const n=e.createRangeOn(s);for(const c of Array.from(n.getItems()).reverse())if(c.is("element","softBreak")&&c.parent.is("element","codeBlock")){const{position:a}=e.split(e.createPositionBefore(c)),l=a.nodeAfter;e.rename(l,"paragraph"),e.removeAttribute("language",l),e.remove(c)}e.rename(s,"paragraph"),e.removeAttribute("language",s)}}}function Q(i,t,e){return i.language?i.language:i.usePreviousLanguageChoice&&t?t:e}class Y extends x{constructor(e){super(e);h(this,"_indentSequence");this._indentSequence=e.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const o=this.editor.model;o.change(r=>{const s=C(o);for(const n of s){const c=r.createText(this._indentSequence);o.insertContent(c,n)}})}_checkEnabled(){return this._indentSequence?D(this.editor.model.document.selection):!1}}class Z extends x{constructor(e){super(e);h(this,"_indentSequence");this._indentSequence=e.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const o=this.editor.model;o.change(()=>{const r=C(o);for(const s of r){const n=T(o,s,this._indentSequence);n&&o.deleteContent(o.createSelection(n))}})}_checkEnabled(){if(!this._indentSequence)return!1;const e=this.editor.model;return D(e.document.selection)?C(e).some(o=>T(e,o,this._indentSequence)):!1}}function T(i,t,e){const o=I(t,i);if(!o)return null;const r=L(o),s=r.lastIndexOf(e);if(s+e.length!==r.length||s===-1)return null;const{parent:n,startOffset:c}=o;return i.createRange(i.createPositionAt(n,c+s),i.createPositionAt(n,c+s+e.length))}function _(i,t,e=!1){const o=k(t,"language","class"),r=k(t,"language","label");return(s,n,c)=>{const{writer:a,mapper:l,consumable:d}=c;if(!d.consume(n.item,"insert"))return;const u=n.item.getAttribute("language"),g=l.toViewPosition(i.createPositionBefore(n.item)),m={};e&&(m["data-language"]=r[u],m.spellcheck="false");const p=o[u]?{class:o[u]}:void 0,w=a.createContainerElement("code",p),y=a.createContainerElement("pre",m,w);a.insert(g,y),l.bindElements(n.item,w)}}function ee(i){return(t,e,o)=>{if(e.item.parent.name!=="codeBlock")return;const{writer:r,mapper:s,consumable:n}=o;if(!n.consume(e.item,"insert"))return;const c=s.toViewPosition(i.createPositionBefore(e.item));r.insert(c,r.createText(`
|
|
6
|
+
`))}}function te(i,t){const e=k(t,"class","language"),o=t[0].language;return(r,s,n)=>{const c=s.viewItem,a=c.parent;if(!a||!a.is("element","pre")||s.modelCursor.findAncestor("codeBlock"))return;const{consumable:l,writer:d}=n;if(!l.test(c,{name:!0}))return;const u=d.createElement("codeBlock"),g=[...c.getClassNames()];g.length||g.push("");for(const m of g){const p=e[m];if(p){d.setAttribute("language",p,u);break}}u.hasAttribute("language")||d.setAttribute("language",o,u),n.convertChildren(c,u),n.safeInsert(u,s.modelCursor)&&(l.consume(c,{name:!0}),n.updateConversionResult(u,s))}}function ne(){return(i,t,{consumable:e,writer:o})=>{let r=t.modelCursor;if(!e.test(t.viewItem)||!r.findAncestor("codeBlock"))return;e.consume(t.viewItem);const n=t.viewItem.data.split(`
|
|
7
|
+
`).map(a=>o.createText(a)),c=n[n.length-1];for(const a of n)if(o.insert(a,r),r=r.getShiftedBy(a.offsetSize),a!==c){const l=o.createElement("softBreak");o.insert(l,r),r=o.createPositionAfter(l)}t.modelRange=o.createRange(t.modelCursor,r),t.modelCursor=r}}function oe(){return(i,t,{consumable:e})=>{const o=t.viewItem;if(o.findAncestor("pre"))return;const r=Array.from(o.getChildren()),s=r.find(n=>n.is("element","code"));if(s)for(const n of r)n===s||!n.is("$text")||e.consume(n,{name:!0})}}const V="paragraph";class ie extends S{static get pluginName(){return"CodeBlockEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[M]}constructor(t){super(t),t.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:" "})}init(){const t=this.editor,e=t.model.schema,o=t.model,r=t.editing.view,s=b(t);t.commands.add("codeBlock",new G(t)),t.commands.add("indentCodeBlock",new Y(t)),t.commands.add("outdentCodeBlock",new Z(t)),this.listenTo(r.document,"tab",(n,c)=>{const a=c.shiftKey?"outdentCodeBlock":"indentCodeBlock";t.commands.get(a).isEnabled&&(t.execute(a),c.stopPropagation(),c.preventDefault(),n.stop())},{context:"pre"}),e.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",disallowChildren:"$inlineObject",allowAttributes:["language"],allowAttributesOf:"$listItem",isBlock:!0}),e.addAttributeCheck((n,c)=>{const a=n.getItem(n.length-2);if(e.getAttributeProperties(c).isFormatting&&a&&a.name=="codeBlock")return!1}),t.editing.downcastDispatcher.on("insert:codeBlock",_(o,s,!0)),t.data.downcastDispatcher.on("insert:codeBlock",_(o,s)),t.data.downcastDispatcher.on("insert:softBreak",ee(o),{priority:"high"}),t.data.upcastDispatcher.on("element:code",te(r,s)),t.data.upcastDispatcher.on("text",ne()),t.data.upcastDispatcher.on("element:pre",oe(),{priority:"high"}),this.listenTo(t.editing.view.document,"clipboardInput",(n,c)=>{let a=o.createRange(o.document.selection.anchor);if(c.targetRanges&&(a=t.editing.mapper.toModelRange(c.targetRanges[0])),!a.start.parent.is("element","codeBlock"))return;const l=c.dataTransfer.getData("text/plain"),d=new N(t.editing.view.document);c.content=X(d,l)}),t.plugins.has("ClipboardPipeline")&&t.plugins.get(q).on("contentInsertion",(n,c)=>{const a=t.model,l=a.document.selection;l.anchor.parent.is("element","codeBlock")&&a.change(d=>{const u=d.createRangeIn(c.content);for(const g of[...u.getItems()])g.is("node")&&!e.checkChild(l.anchor,g)&&d.remove(g)})}),this.listenTo(o,"getSelectedContent",(n,[c])=>{const a=c.anchor;c.isCollapsed||!a.parent.is("element","codeBlock")||!a.hasSameParentAs(c.focus)||o.change(l=>{const d=n.return;if(a.parent.is("element")&&(d.childCount>1||c.containsEntireContent(a.parent))){const g=l.createElement("codeBlock",a.parent.getAttributes());l.append(d,g);const m=l.createDocumentFragment();l.append(g,m),n.return=m;return}const u=d.getChild(0);e.checkAttribute(u,"code")&&l.setAttribute("code",!0,u)})})}afterInit(){const t=this.editor,e=t.commands,o=e.get("indent"),r=e.get("outdent");o&&o.registerChildCommand(e.get("indentCodeBlock"),{priority:"highest"}),r&&r.registerChildCommand(e.get("outdentCodeBlock")),this.listenTo(t.editing.view.document,"enter",(s,n)=>{t.model.document.selection.getLastPosition().parent.is("element","codeBlock")&&(!ce(t,n.isSoft)&&!re(t,n.isSoft)&&se(t),n.preventDefault(),s.stop())},{context:"pre"}),this._initAriaAnnouncements()}_initAriaAnnouncements(){const{model:t,ui:e,t:o}=this.editor,r=b(this.editor);let s=null;t.document.selection.on("change:range",()=>{const n=t.document.selection.focus.parent;!e||s===n||!n.is("element")||(s&&s.is("element","codeBlock")&&e.ariaLiveAnnouncer.announce(E(o,r,s,"leave")),n.is("element","codeBlock")&&e.ariaLiveAnnouncer.announce(E(o,r,n,"enter")),s=n)})}}function se(i){const t=i.model,e=t.document,o=e.selection.getLastPosition();let r;const s=I(o,t);s&&s.is("$text")&&(r=L(s)),i.model.change(n=>{i.execute("shiftEnter"),r&&n.insertText(r,e.selection.anchor)})}function ce(i,t){const o=i.model.document,r=i.editing.view,s=o.selection.getLastPosition(),n=s.nodeAfter;return t||!o.selection.isCollapsed||!s.isAtStart||!f(n)?!1:(i.model.change(c=>{i.execute("enter");const a=o.selection.anchor.parent.previousSibling;c.rename(a,V),c.setSelection(a,"in"),i.model.schema.removeDisallowedAttributes([a],c),c.remove(n)}),r.scrollToTheSelection(),!0)}function re(i,t){const e=i.model,o=e.document,r=i.editing.view,s=o.selection.getLastPosition(),n=s.nodeBefore;let c;if(t||!o.selection.isCollapsed||!s.isAtEnd||!n||!n.previousSibling)return!1;if(f(n)&&f(n.previousSibling))c=e.createRange(e.createPositionBefore(n.previousSibling),e.createPositionAfter(n));else if(B(n)&&f(n.previousSibling)&&f(n.previousSibling.previousSibling))c=e.createRange(e.createPositionBefore(n.previousSibling.previousSibling),e.createPositionAfter(n));else if(B(n)&&f(n.previousSibling)&&B(n.previousSibling.previousSibling)&&n.previousSibling.previousSibling&&f(n.previousSibling.previousSibling.previousSibling))c=e.createRange(e.createPositionBefore(n.previousSibling.previousSibling.previousSibling),e.createPositionAfter(n));else return!1;return i.model.change(a=>{a.remove(c),i.execute("enter");const l=o.selection.anchor.parent;a.rename(l,V),i.model.schema.removeDisallowedAttributes([l],a)}),r.scrollToTheSelection(),!0}function B(i){return i&&i.is("$text")&&!i.data.match(/\S/)}function f(i){return i&&i.is("element","softBreak")}class ae extends S{static get pluginName(){return"CodeBlockUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.t,o=t.ui.componentFactory,r=b(t),s=this._getLanguageListItemDefinitions(r),n=t.commands.get("codeBlock");o.add("codeBlock",c=>{const a=$(c,K),l=a.buttonView,d=e("Insert code block");return l.set({label:d,tooltip:!0,icon:A,isToggleable:!0}),l.bind("isOn").to(n,"value",u=>!!u),l.on("execute",()=>{t.execute("codeBlock",{usePreviousLanguageChoice:!0}),t.editing.view.focus()}),a.on("execute",u=>{t.execute("codeBlock",{language:u.source._codeBlockLanguage,forceValue:!0}),t.editing.view.focus()}),a.class="ck-code-block-dropdown",a.bind("isEnabled").to(n),z(a,s,{role:"menu",ariaLabel:d}),a}),o.add("menuBar:codeBlock",c=>{const a=new W(c);a.buttonView.set({role:"menuitem",label:e("Code block"),icon:A}),a.bind("isEnabled").to(n);const l=new j(c);l.set({ariaLabel:e("Insert code block")});for(const d of s){const u=new U(c,a),g=new H(c);g.bind(...Object.keys(d.model)).to(d.model),g.set({isToggleable:!0,role:"menuitemcheckbox"}),g.delegate("execute").to(a),g.on("execute",()=>{t.execute("codeBlock",{language:d.model._codeBlockLanguage,forceValue:n.value!=d.model._codeBlockLanguage}),t.editing.view.focus()}),u.children.add(g),l.items.add(u)}return a.panelView.children.add(l),a})}_getLanguageListItemDefinitions(t){const o=this.editor.commands.get("codeBlock"),r=new F;for(const s of t){const n={type:"button",model:new J({_codeBlockLanguage:s.language,label:s.label,role:"menuitemradio",withText:!0})};n.model.bind("isOn").to(o,"value",c=>c===n.model._codeBlockLanguage),r.add(n)}return r}}class be extends S{static get requires(){return[ie,ae]}static get pluginName(){return"CodeBlock"}static get isOfficialPlugin(){return!0}}export{be as CodeBlock,ie as CodeBlockEditing,ae as CodeBlockUI};
|