@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,13 +0,0 @@
|
|
|
1
|
-
var zt=Object.defineProperty;var Nt=(i,s,t)=>s in i?zt(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t;var h=(i,s,t)=>Nt(i,typeof s!="symbol"?s+"":s,t);import{Plugin as v,Command as L,icons as _}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as Ft}from"../../../../../@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Enter as Ot}from"../../../../../@ckeditor_ckeditor5-enter@44.3.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{CKEditorError as Mt,getCode as Rt,toArray as k,first as D,parseKeystroke as Ht,getLocalizedArrowKeyCodeDirection as Dt,uid as $t,FocusTracker as tt,KeystrokeHandler as et,global as Ut}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ClipboardPipeline as Kt}from"../../../../../@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{createDropdown as Wt,SplitButtonView as jt,MenuBarMenuView as qt,ButtonView as J,MenuBarMenuListItemButtonView as Yt,focusChildOnDropdownOpen as Gt,View as st,ViewCollection as Zt,FocusCycler as Jt,addKeyboardHandlingForGrid as Qt,CollapsibleView as Xt,LabeledFieldView as te,createLabeledInputNumber as ee,SwitchButtonView as se}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{DomEventObserver as ie,Matcher as bt}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/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 y{constructor(s,t){h(this,"_startElement");h(this,"_referenceIndent");h(this,"_isForward");h(this,"_includeSelf");h(this,"_sameAttributes");h(this,"_sameIndent");h(this,"_lowerIndent");h(this,"_higherIndent");this._startElement=s,this._referenceIndent=s.getAttribute("listIndent"),this._isForward=t.direction=="forward",this._includeSelf=!!t.includeSelf,this._sameAttributes=k(t.sameAttributes||[]),this._sameIndent=!!t.sameIndent,this._lowerIndent=!!t.lowerIndent,this._higherIndent=!!t.higherIndent}static first(s,t){const n=new this(s,t)[Symbol.iterator]();return D(n)}*[Symbol.iterator](){const s=[];for(const{node:t}of new N(this._getStartNode(),this._isForward?"forward":"backward")){const e=t.getAttribute("listIndent");if(e<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=e}else if(e>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){s.push(t);continue}}else{if(!this._sameIndent){if(this._higherIndent){s.length&&(yield*s,s.length=0);break}continue}if(this._sameAttributes.some(n=>t.getAttribute(n)!==this._startElement.getAttribute(n)))break}s.length&&(yield*s,s.length=0),yield t}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}class N{constructor(s,t="forward"){h(this,"_node");h(this,"_isForward");h(this,"_previousNodesByIndent",[]);h(this,"_previous",null);h(this,"_previousNodeIndent",null);this._node=s,this._isForward=t==="forward"}[Symbol.iterator](){return this}next(){if(!p(this._node))return{done:!0,value:void 0};const s=this._node.getAttribute("listIndent");let t=null;if(this._previous){const n=this._previousNodeIndent;s>n?this._previousNodesByIndent[n]=this._previous:s<n?(t=this._previousNodesByIndent[s]||null,this._previousNodesByIndent.length=s):t=this._previous}const e={node:this._node,previous:this._previous,previousNodeInList:t};return this._previous=this._node,this._previousNodeIndent=s,this._node=this._isForward?this._node.nextSibling:this._node.previousSibling,{value:e,done:!1}}}class ne{constructor(s){h(this,"_listHead");this._listHead=s}[Symbol.iterator](){return new N(this._listHead)}}class x{static next(){return $t()}}function p(i){return!!i&&i.is("element")&&i.hasAttribute("listItemId")}function C(i,s={}){return[...T(i,{...s,direction:"backward"}),...T(i,{...s,direction:"forward"})]}function T(i,s={}){const t=s.direction=="forward",e=Array.from(new y(i,{...s,includeSelf:t,sameIndent:!0,sameAttributes:"listItemId"}));return t?e:e.reverse()}function re(i){return Array.from(new y(i,{direction:"forward",higherIndent:!0}))}function yt(i,s){const t=new y(i,{sameIndent:!0,sameAttributes:"listType",...s}),e=new y(i,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...s});return[...Array.from(t).reverse(),...e]}function A(i){return!y.first(i,{sameIndent:!0,sameAttributes:"listItemId"})}function it(i){return!y.first(i,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function F(i,s={}){i=k(i);const t=s.withNested!==!1,e=new Set;for(const n of i)for(const r of C(n,{higherIndent:t}))e.add(r);return S(e)}function $(i){i=k(i);const s=new Set;for(const t of i)for(const e of yt(t))s.add(e);return S(s)}function Q(i,s){const t=T(i,{direction:"forward"}),e=x.next();for(const n of t)s.setAttribute("listItemId",e,n);return t}function j(i,s,t){const e={};for(const[r,o]of s.getAttributes())r.startsWith("list")&&(e[r]=o);const n=T(i,{direction:"forward"});for(const r of n)t.setAttributes(e,r);return n}function q(i,s,{expand:t,indentBy:e=1}={}){i=k(i);const n=t?F(i):i;for(const r of n){const o=r.getAttribute("listIndent")+e;o<0?U(r,s):s.setAttribute("listIndent",o,r)}return n}function oe(i,s){i=k(i);const t=F(i),e=new Set,n=Math.min(...t.map(o=>o.getAttribute("listIndent"))),r=new Map;for(const o of t)r.set(o,y.first(o,{lowerIndent:!0}));for(const o of t){if(e.has(o))continue;e.add(o);const l=o.getAttribute("listIndent")-1;if(l<0){U(o,s);continue}if(o.getAttribute("listIndent")==n){const c=ce(o,r.get(o),s);for(const a of c)e.add(a);if(c.length)continue}s.setAttribute("listIndent",l,o)}return S(e)}function U(i,s){i=k(i);for(const t of i)t.is("element","listItem")&&s.rename(t,"paragraph");for(const t of i)for(const e of t.getAttributeKeys())e.startsWith("list")&&s.removeAttribute(e,t);return i}function B(i){if(!i.length)return!1;const s=i[0].getAttribute("listItemId");return s?!i.some(t=>t.getAttribute("listItemId")!=s):!1}function le(i,s){const t=[];let e=Number.POSITIVE_INFINITY;for(const{node:n}of new N(i.nextSibling)){const r=n.getAttribute("listIndent");if(r==0)break;r<e&&(e=r);const o=r-e;s.setAttribute("listIndent",o,n),t.push(n)}return t}function S(i){return Array.from(i).filter(s=>s.root.rootName!=="$graveyard").sort((s,t)=>s.index-t.index)}function P(i){const s=i.document.selection.getSelectedElement();return s&&i.schema.isObject(s)&&i.schema.isBlock(s)?s:null}function K(i,s){return s.checkChild(i.parent,"listItem")&&s.checkChild(i,"$text")&&!s.isObject(i)}function H(i){return i=="numbered"||i=="customNumbered"}function ce(i,s,t){return T(s,{direction:"forward"}).pop().index>i.index?j(i,s,t):[]}class nt extends L{constructor(t,e){super(t);h(this,"_direction");this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=rt(t.document.selection);t.change(n=>{const r=[];B(e)&&!A(e[0])?(this._direction=="forward"&&r.push(...q(e,n)),r.push(...Q(e[0],n))):this._direction=="forward"?r.push(...q(e,n,{expand:!0})):r.push(...oe(e,n));for(const o of r){if(!o.hasAttribute("listType"))continue;const l=y.first(o,{sameIndent:!0});l&&n.setAttribute("listType",l.getAttribute("listType"),o)}this._fireAfterExecute(r)})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_checkEnabled(){let t=rt(this.editor.model.document.selection),e=t[0];if(!e)return!1;if(this._direction=="backward"||B(t)&&!A(t[0]))return!0;t=F(t),e=t[0];const n=y.first(e,{sameIndent:!0});return n?n.getAttribute("listType")==e.getAttribute("listType"):!1}}function rt(i){const s=Array.from(i.getSelectedBlocks()),t=s.findIndex(e=>!p(e));return t!=-1&&(s.length=t),s}class E extends L{constructor(t,e,n={}){super(t);h(this,"type");h(this,"_listWalkerOptions");this.type=e,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,r=P(e),o=Array.from(n.selection.getSelectedBlocks()).filter(c=>e.schema.checkAttribute(c,"listType")||K(c,e.schema)),l=t.forceValue!==void 0?!t.forceValue:this.value;e.change(c=>{if(l){const a=o[o.length-1],u=T(a,{direction:"forward"}),d=[];u.length>1&&d.push(...Q(u[1],c)),d.push(...U(o,c)),d.push(...le(a,c)),this._fireAfterExecute(d)}else if((r||n.selection.isCollapsed)&&p(o[0])){const a=yt(r||o[0],this._listWalkerOptions);for(const u of a)c.setAttributes({...t.additionalAttributes,listType:this.type},u);this._fireAfterExecute(a)}else{const a=[];for(const u of o)if(!u.hasAttribute("listType"))!u.is("element","listItem")&&K(u,e.schema)&&c.rename(u,"listItem"),c.setAttributes({...t.additionalAttributes,listIndent:0,listItemId:x.next(),listType:this.type},u),a.push(u);else for(const d of F(u,{withNested:!1}))d.getAttribute("listType")!=this.type&&(c.setAttributes({...t.additionalAttributes,listType:this.type},d),a.push(d));this._fireAfterExecute(a)}})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const n of e)if(n.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,n=t.document.selection,r=Array.from(n.getSelectedBlocks());if(!r.length)return!1;if(this.value)return!0;for(const o of r)if(e.checkAttribute(o,"listType")||K(o,e))return!0;return!1}}class ot extends L{constructor(t,e){super(t);h(this,"_direction");this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,n=e.document.selection,r=[];e.change(o=>{const{firstElement:l,lastElement:c}=this._getMergeSubjectElements(n,t),a=l.getAttribute("listIndent")||0,u=c.getAttribute("listIndent"),d=c.getAttribute("listItemId");if(a!=u){const m=re(c);r.push(...q([c,...m],o,{indentBy:a-u,expand:a<u}))}if(t){let m=n;n.isCollapsed&&(m=o.createSelection(o.createRange(o.createPositionAt(l,"end"),o.createPositionAt(c,0)))),e.deleteContent(m,{doNotResetEntireContent:n.isCollapsed});const f=m.getLastPosition().parent,g=f.nextSibling;r.push(f),g&&g!==c&&g.getAttribute("listItemId")==d&&r.push(...j(g,f,o))}else r.push(...j(c,l,o));this._fireAfterExecute(r)})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,n=P(t);if(e.isCollapsed||n){const r=n||e.getFirstPosition().parent;if(!p(r))return!1;const o=this._direction=="backward"?r.previousSibling:r.nextSibling;if(!o||B([r,o]))return!1}else{const r=e.getLastPosition(),o=e.getFirstPosition();if(r.parent===o.parent||!p(r.parent))return!1}return!0}_getMergeSubjectElements(t,e){const n=this.editor.model,r=P(n);let o,l;if(t.isCollapsed||r){const c=r||t.getFirstPosition().parent,a=A(c);this._direction=="backward"?(l=c,a&&!e?o=y.first(c,{sameIndent:!0,lowerIndent:!0}):o=c.previousSibling):(o=c,l=c.nextSibling)}else o=t.getFirstPosition().parent,l=t.getLastPosition().parent;return{firstElement:o,lastElement:l}}}class lt extends L{constructor(t,e){super(t);h(this,"_direction");this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(e=>{const n=Q(this._getStartBlock(),e);this._fireAfterExecute(n)})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&p(e)&&!A(e)}_getStartBlock(){const e=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?e:e.nextSibling}}class ae extends v{static get pluginName(){return"ListUtils"}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(s){return $(s)}isFirstBlockOfListItem(s){return A(s)}isListItemBlock(s){return p(s)}expandListBlocksToCompleteItems(s,t={}){return F(s,t)}isNumberedListType(s){return H(s)}}/**
|
|
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(i){return i.is("element","ol")||i.is("element","ul")}function Y(i){return i.is("element","li")}function de(i){let s=0,t=i.parent;for(;t;){if(Y(t))s++;else{const e=t.previousSibling;e&&Y(e)&&s++}t=t.parent}return s}function me(i,s,t,e=vt(t,s)){return i.createAttributeElement(It(t),null,{priority:2*s/100-100,id:e})}function fe(i,s,t){return i.createAttributeElement("li",null,{priority:(2*s+1)/100-100,id:t})}function It(i){return i=="numbered"||i=="customNumbered"?"ol":"ul"}function vt(i,s){return`list-${i}-${s}`}function I(i,s,t){const e=i.nodeBefore;if(p(e)){let n=e;for(const{node:r}of new N(n,"backward"))if(n=r,t.has(n)||(t.add(n),s.has(e)))return;s.add(n)}else{const n=i.nodeAfter;p(n)&&s.add(n)}}function he(i,s){let t=0,e=-1,n=null,r=!1;for(const{node:o}of i){const l=o.getAttribute("listIndent");if(l>t){let c;n===null?(n=l-t,c=t):(n>l&&(n=l),c=l-n),c>e+1&&(c=e+1),s.setAttribute("listIndent",c,o),r=!0,e=c}else n=null,t=l+1,e=l}return r}function pe(i,s,t){const e=new Set;let n=!1;for(const{node:r}of i){if(e.has(r))continue;let o=r.getAttribute("listType"),l=r.getAttribute("listItemId");if(s.has(l)&&(l=x.next()),s.add(l),r.is("element","listItem")){r.getAttribute("listItemId")!=l&&(t.setAttribute("listItemId",l,r),n=!0);continue}for(const c of T(r,{direction:"forward"}))e.add(c),c.getAttribute("listType")!=o&&(l=x.next(),o=c.getAttribute("listType")),c.getAttribute("listItemId")!=l&&(t.setAttribute("listItemId",l,c),n=!0)}return n}function ge(){return(i,s,t)=>{const{writer:e,schema:n}=t;if(!s.modelRange)return;const r=Array.from(s.modelRange.getItems({shallow:!0})).filter(d=>n.checkAttribute(d,"listItemId"));if(!r.length)return;const o=x.next(),l=de(s.viewItem);let c=s.viewItem.parent&&s.viewItem.parent.is("element","ol")?"numbered":"bulleted";const a=r[0].getAttribute("listType");a&&(c=a);const u={listItemId:o,listIndent:l,listType:c};for(const d of r)d.hasAttribute("listItemId")||e.setAttributes(u,d);r.length>1&&r[1].getAttribute("listItemId")!=u.listItemId&&t.keepEmptyElement(r[0])}}function be(i,s,t,e){return()=>{const l=i.document.differ.getChanges(),c=[],a=new Set,u=new Set,d=new Set;for(const m of l)if(m.type=="insert"&&m.name!="$text")I(m.position,a,d),m.attributes.has("listItemId")?u.add(m.position.nodeAfter):I(m.position.getShiftedBy(m.length),a,d);else if(m.type=="remove"&&m.attributes.has("listItemId"))I(m.position,a,d);else if(m.type=="attribute"){const f=m.range.start.nodeAfter;t.includes(m.attributeKey)?(I(m.range.start,a,d),m.attributeNewValue===null?(I(m.range.start.getShiftedBy(1),a,d),r(f)&&c.push(f)):u.add(f)):p(f)&&r(f)&&c.push(f)}for(const m of a.values())c.push(...n(m,u));for(const m of new Set(c))s.reconvertItem(m)};function n(l,c){const a=[],u=new Set,d=[];for(const{node:m,previous:f}of new N(l)){if(u.has(m))continue;const g=m.getAttribute("listIndent");f&&g<f.getAttribute("listIndent")&&(d.length=g+1),d[g]=Object.fromEntries(Array.from(m.getAttributes()).filter(([b])=>t.includes(b)));const w=T(m,{direction:"forward"});for(const b of w)u.add(b),(r(b,w)||o(b,d,c))&&a.push(b)}return a}function r(l,c){const a=s.mapper.toViewElement(l);if(!a)return!1;if(e.fire("checkElement",{modelElement:l,viewElement:a}))return!0;if(!l.is("element","paragraph")&&!l.is("element","listItem"))return!1;const d=At(l,t,c);return d&&a.is("element","p")?!0:!!(!d&&a.is("element","span"))}function o(l,c,a){if(a.has(l))return!1;const u=s.mapper.toViewElement(l);let d=c.length-1;for(let m=u.parent;!m.is("editableElement");m=m.parent){const f=Y(m),g=ue(m);if(!g&&!f)continue;const w=`checkAttributes:${f?"item":"list"}`;if(e.fire(w,{viewElement:m,modelAttributes:c[d]}))break;if(g&&(d--,d<0))return!1}return!0}}function ct(i,s,t,{dataPipeline:e}={}){const n=Te(i);return(r,o,l)=>{const{writer:c,mapper:a,consumable:u}=l,d=o.item;if(!i.includes(o.attributeKey)||!n(d,u))return;const m=Ie(d,a,t);wt(m,c,a),Ae(m,c);const f=we(d,m,s,c,{dataPipeline:e});ke(d,f,s,c)}}function ye(i){return(s,t,e)=>{const{writer:n,mapper:r}=e,o=s.name.split(":")[1];if(!i.checkAttribute(o,"listItemId"))return;const l=r.toViewPosition(t.position),c=t.position.getShiftedBy(t.length),a=r.toViewPosition(c,{isPhantom:!0}),d=n.createRange(l,a).getTrimmed().end.nodeBefore;/* istanbul ignore next -- @preserve */d&&wt(d,n,r)}}function at(i,{dataPipeline:s}={}){return(t,{writer:e})=>{if(!At(t,i))return null;if(!s)return e.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function Ie(i,s,t){const e=t.createRangeOn(i);return s.toViewRange(e).getTrimmed().end.nodeBefore}function ve(i,s){return(t,e)=>{if(e.modelPosition.offset>0)return;const n=e.modelPosition.parent;if(!p(n)||!i.some(a=>a.scope=="itemMarker"&&a.canInjectMarkerIntoElement&&a.canInjectMarkerIntoElement(n)))return;const r=e.mapper.toViewElement(n),o=s.createRangeIn(r),l=o.getWalker();let c=o.start;for(const{item:a}of l){if(a.is("element")&&e.mapper.toModelElement(a)||a.is("$textProxy"))break;a.is("element")&&a.getCustomProperty("listItemMarker")&&(c=s.createPositionAfter(a),l.skip(({previousPosition:u})=>!u.isEqual(c)))}e.viewPosition=c}}function wt(i,s,t){for(;i.parent.is("attributeElement")&&i.parent.getCustomProperty("listItemWrapper");)s.unwrap(s.createRangeOn(i),i.parent);const e=[];n(s.createPositionBefore(i).getWalker({direction:"backward"})),n(s.createRangeIn(i).getWalker());for(const r of e)s.remove(r);function n(r){for(const{item:o}of r){if(o.is("element")&&t.toModelElement(o))break;o.is("element")&&o.getCustomProperty("listItemMarker")&&e.push(o)}}}function we(i,s,t,e,{dataPipeline:n}){let r=e.createRangeOn(s);if(!A(i))return r;for(const o of t){if(o.scope!="itemMarker")continue;const l=o.createElement(e,i,{dataPipeline:n});if(!l||(e.setCustomProperty("listItemMarker",!0,l),o.canInjectMarkerIntoElement&&o.canInjectMarkerIntoElement(i)?e.insert(e.createPositionAt(s,0),l):(e.insert(r.start,l),r=e.createRange(e.createPositionBefore(l),e.createPositionAfter(s))),!o.createWrapperElement||!o.canWrapElement))continue;const c=o.createWrapperElement(e,i,{dataPipeline:n});e.setCustomProperty("listItemWrapper",!0,c),o.canWrapElement(i)?r=e.wrap(r,c):(r=e.wrap(e.createRangeOn(l),c),r=e.createRange(r.start,e.createPositionAfter(s)))}return r}function Ae(i,s){let t=i.parent;for(;t.is("attributeElement")&&["ul","ol","li"].includes(t.name);){const e=t.parent;s.unwrap(s.createRangeOn(i),t),t=e}}function ke(i,s,t,e){if(!i.hasAttribute("listIndent"))return;const n=i.getAttribute("listIndent");let r=i;for(let o=n;o>=0;o--){const l=fe(e,o,r.getAttribute("listItemId")),c=me(e,o,r.getAttribute("listType"));for(const a of t)(a.scope=="list"||a.scope=="item")&&r.hasAttribute(a.attributeName)&&a.setAttributeOnDowncast(e,r.getAttribute(a.attributeName),a.scope=="list"?c:l);if(s=e.wrap(s,l),s=e.wrap(s,c),o==0||(r=y.first(r,{lowerIndent:!0}),!r))break}}function Te(i){return(s,t)=>{const e=[];for(const n of i)s.hasAttribute(n)&&e.push(`attribute:${n}`);return e.every(n=>t.test(s,n)!==!1)?(e.forEach(n=>t.consume(s,n)),!0):!1}}function At(i,s,t=C(i)){if(!p(i))return!1;for(const e of i.getAttributeKeys())if(!(e.startsWith("selection:")||e=="htmlEmptyBlock")&&!s.includes(e))return!1;return t.length<2}const R=["listType","listIndent","listItemId"];class z extends v{constructor(t){super(t);h(this,"_downcastStrategies",[]);t.config.define("list.multiBlock",!0)}static get pluginName(){return"ListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Ot,Ft,ae,Kt]}init(){const t=this.editor,e=t.model,n=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new Mt("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});e.schema.register("$listItem",{allowAttributes:R}),n?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const r of R)e.schema.setAttributeProperties(r,{copyOnReplace:!0});t.commands.add("numberedList",new E(t,"numbered")),t.commands.add("bulletedList",new E(t,"bulleted")),t.commands.add("customNumberedList",new E(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new E(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new nt(t,"forward")),t.commands.add("outdentList",new nt(t,"backward")),t.commands.add("splitListItemBefore",new lt(t,"before")),t.commands.add("splitListItemAfter",new lt(t,"after")),n&&(t.commands.add("mergeListItemBackward",new ot(t,"backward")),t.commands.add("mergeListItemForward",new ot(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const e=this.editor.commands,n=e.get("indent"),r=e.get("outdent");n&&n.registerChildCommand(e.get("indentList"),{priority:"high"}),r&&r.registerChildCommand(e.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...R,...this._downcastStrategies.map(t=>t.attributeName)]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),n=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",(r,o)=>{const l=t.model.document.selection;P(t.model)||t.model.change(()=>{const c=l.getFirstPosition();if(l.isCollapsed&&o.direction=="backward"){if(!c.isAtStart)return;const a=c.parent;if(!p(a))return;if(!y.first(a,{sameAttributes:"listType",sameIndent:!0})&&a.getAttribute("listIndent")===0)it(a)||t.execute("splitListItemAfter"),t.execute("outdentList");else{if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:ut(t.model,"backward")})}o.preventDefault(),r.stop()}else{if(l.isCollapsed&&!l.getLastPosition().isAtEnd||!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:ut(t.model,"forward")}),o.preventDefault(),r.stop()}})},{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,n=t.commands,r=n.get("enter");this.listenTo(t.editing.view.document,"enter",(o,l)=>{const c=e.document,a=c.selection.getFirstPosition().parent;if(c.selection.isCollapsed&&p(a)&&a.isEmpty&&!l.isSoft){const u=A(a),d=it(a);u&&d?(t.execute("outdentList"),l.preventDefault(),o.stop()):u&&!d?(t.execute("splitListItemAfter"),l.preventDefault(),o.stop()):d&&(t.execute("splitListItemBefore"),l.preventDefault(),o.stop())}},{context:"li"}),this.listenTo(r,"afterExecute",()=>{const o=n.get("splitListItemBefore");if(o.refresh(),!o.isEnabled)return;const c=t.model.document.selection.getLastPosition().parent;C(c).length===2&&o.execute()})}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",(e,n)=>{const r=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(r).isEnabled&&(t.execute(r),n.stopPropagation(),n.preventDefault(),e.stop())},{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,n=this.getListAttributeNames(),r=t.config.get("list.multiBlock"),o=r?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(c,{writer:a})=>a.createElement(o,{listType:""})}).elementToElement({view:"p",model:(c,{writer:a})=>c.parent&&c.parent.is("element","li")?a.createElement(o,{listType:""}):null,converterPriority:"high"}).add(c=>{c.on("element:li",ge())}),r||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:o,view:at(n),converterPriority:"high"}).add(c=>{c.on("attribute",ct(n,this._downcastStrategies,e)),c.on("remove",ye(e.schema))}),t.conversion.for("dataDowncast").elementToElement({model:o,view:at(n,{dataPipeline:!0}),converterPriority:"high"}).add(c=>{c.on("attribute",ct(n,this._downcastStrategies,e,{dataPipeline:!0}))});const l=ve(this._downcastStrategies,t.editing.view);t.editing.mapper.on("modelToViewPosition",l),t.data.mapper.on("modelToViewPosition",l),this.listenTo(e.document,"change:data",be(e,t.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",(c,{viewElement:a,modelAttributes:u})=>{a.id!=u.listItemId&&(c.return=!0,c.stop())}),this.on("checkAttributes:list",(c,{viewElement:a,modelAttributes:u})=>{(a.name!=It(u.listType)||a.id!=vt(u.listType,u.listIndent))&&(c.return=!0,c.stop())})}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer(n=>Le(t,n,e,this)),this.on("postFixer",(n,{listNodes:r,writer:o})=>{n.return=he(r,o)||n.return},{priority:"high"}),this.on("postFixer",(n,{listNodes:r,writer:o,seenIds:l})=>{n.return=pe(r,l,o)||n.return},{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",Se(t),{priority:"high"}),this.listenTo(e,"outputTransformation",(n,r)=>{t.change(o=>{const l=Array.from(r.content.getChildren()),c=l[l.length-1];if(l.length>1&&c.is("element")&&c.isEmpty&&l.slice(0,-1).every(p)&&o.remove(c),r.method=="copy"||r.method=="cut"){const a=Array.from(r.content.getChildren());B(a)&&U(a,o)}})})}_setupAccessibilityIntegration(){const t=this.editor,e=t.t;t.accessibility.addKeystrokeInfoGroup({id:"list",label:e("Keystrokes that can be used in a list"),keystrokes:[{label:e("Increase list item indent"),keystroke:"Tab"},{label:e("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function Le(i,s,t,e){const n=i.document.differ.getChanges(),r=new Set,o=new Set,l=e.editor.config.get("list.multiBlock");let c=!1;for(const u of n){if(u.type=="insert"&&u.name!="$text"){const d=u.position.nodeAfter;if(!i.schema.checkAttribute(d,"listItemId"))for(const m of Array.from(d.getAttributeKeys()))t.includes(m)&&(s.removeAttribute(m,d),c=!0);I(u.position,o,r),u.attributes.has("listItemId")||I(u.position.getShiftedBy(u.length),o,r);for(const{item:m,previousPosition:f}of i.createRangeIn(d))p(m)&&I(f,o,r)}else u.type=="remove"?I(u.position,o,r):u.type=="attribute"&&t.includes(u.attributeKey)&&(I(u.range.start,o,r),u.attributeNewValue===null&&I(u.range.start.getShiftedBy(1),o,r));if(!l&&u.type=="attribute"&&R.includes(u.attributeKey)){const d=u.range.start.nodeAfter;u.attributeNewValue===null&&d&&d.is("element","listItem")?(s.rename(d,"paragraph"),c=!0):u.attributeOldValue===null&&d&&d.is("element")&&d.name!="listItem"&&(s.rename(d,"listItem"),c=!0)}}const a=new Set;for(const u of o.values())c=e.fire("postFixer",{listNodes:new ne(u),listHead:u,writer:s,seenIds:a})||c;return c}function Se(i){return(s,[t,e])=>{const n=t.is("documentFragment")?Array.from(t.getChildren()):[t];if(!n.length)return;const o=(e?i.createSelection(e):i.document.selection).getFirstPosition();let l;if(p(o.parent))l=o.parent;else if(p(o.nodeBefore)&&p(o.nodeAfter))l=o.nodeBefore;else return;i.change(c=>{const a=l.getAttribute("listType"),u=l.getAttribute("listIndent"),d=n[0].getAttribute("listIndent")||0,m=Math.max(u-d,0);for(const f of n){const g=p(f);l.is("element","listItem")&&f.is("element","paragraph")&&c.rename(f,"listItem"),c.setAttributes({listIndent:(g?f.getAttribute("listIndent"):0)+m,listItemId:g?f.getAttribute("listItemId"):x.next(),listType:a},f)}})}}function ut(i,s){const t=i.document.selection;if(!t.isCollapsed)return!P(i);if(s==="forward")return!0;const n=t.getFirstPosition().parent,r=n.previousSibling;return i.schema.isObject(r)?!1:r.isEmpty?!0:B([n,r])}function G(i,s,t,e){i.ui.componentFactory.add(s,()=>{const n=dt(J,i,s,t,e);return n.set({tooltip:!0,isToggleable:!0}),n}),i.ui.componentFactory.add(`menuBar:${s}`,()=>{const n=dt(Yt,i,s,t,e);return n.set({role:"menuitemcheckbox",isToggleable:!0}),n})}function dt(i,s,t,e,n){const r=s.commands.get(t),o=new i(s.locale);return o.set({label:e,icon:n}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),o.on("execute",()=>{s.execute(t),s.editing.view.focus()}),o}class _e extends v{static get pluginName(){return"ListUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||G(this.editor,"numberedList",s("Numbered List"),_.numberedList),this.editor.ui.componentFactory.has("bulletedList")||G(this.editor,"bulletedList",s("Bulleted List"),_.bulletedList)}}class ds extends v{static get requires(){return[z,_e]}static get pluginName(){return"List"}static get isOfficialPlugin(){return!0}}class xe extends L{refresh(){const s=this._getValue();this.value=s,this.isEnabled=s!=null}execute({startIndex:s=1}={}){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks()).filter(r=>p(r)&&H(r.getAttribute("listType")));n=$(n),t.change(r=>{for(const o of n)r.setAttribute("listStart",s>=0?s:1,o)})}_getValue(){const t=this.editor.model.document,e=D(t.selection.getSelectedBlocks());return e&&p(e)&&H(e.getAttribute("listType"))?e.getAttribute("listStart"):null}}/**
|
|
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
|
-
*/const kt={},Tt={},Lt={},St=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:i,typeAttribute:s,listType:t}of St)kt[i]=t,Tt[i]=s,s&&(Lt[s]=i);function _t(){return St.map(i=>i.listStyle)}function X(i){return kt[i]||null}function xt(i){return Lt[i]||null}function Z(i){return Tt[i]||null}function Ce(i){switch(i){case"lower-alpha":return"lower-latin";case"upper-alpha":return"upper-latin";default:return i}}class Ve extends L{constructor(t,e,n){super(t);h(this,"defaultType");h(this,"_supportedTypes");this.defaultType=e,this._supportedTypes=n}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document;e.change(r=>{this._tryToConvertItemsToList(t);let o=Array.from(n.selection.getSelectedBlocks()).filter(l=>l.hasAttribute("listType"));if(o.length){o=$(o);for(const l of o)r.setAttribute("listStyle",t.type||this.defaultType,l)}})}isStyleTypeSupported(t){return this._supportedTypes?this._supportedTypes.includes(t):!0}_getValue(){const t=D(this.editor.model.document.selection.getSelectedBlocks());return p(t)?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),n=t.commands.get("bulletedList");return e.isEnabled||n.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=X(t.type);if(!e)return;const n=this.editor,r=`${e}List`;n.commands.get(r).value||n.execute(r)}}class Ee extends L{refresh(){const s=this._getValue();this.value=s,this.isEnabled=s!=null}execute(s={}){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks()).filter(r=>p(r)&&r.getAttribute("listType")=="numbered");n=$(n),t.change(r=>{for(const o of n)r.setAttribute("listReversed",!!s.reversed,o)})}_getValue(){const t=this.editor.model.document,e=D(t.selection.getSelectedBlocks());return p(e)&&e.getAttribute("listType")=="numbered"?e.getAttribute("listReversed"):null}}/**
|
|
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
|
-
*/function mt(i){return(s,t,e)=>{const{writer:n,schema:r,consumable:o}=e;if(o.test(t.viewItem,i.viewConsumables)===!1)return;t.modelRange||Object.assign(t,e.convertChildren(t.viewItem,t.modelCursor));let l=!1;for(const c of t.modelRange.getItems({shallow:!0}))r.checkAttribute(c,i.attributeName)&&i.appliesToListItem(c)&&(c.hasAttribute(i.attributeName)||(n.setAttribute(i.attributeName,i.getAttributeOnUpcast(t.viewItem),c),l=!0));l&&o.consume(t.viewItem,i.viewConsumables)}}class Be extends v{static get pluginName(){return"ListPropertiesUtils"}static get isOfficialPlugin(){return!0}getAllSupportedStyleTypes(){return _t()}getListTypeFromListStyleType(s){return X(s)}getListStyleTypeFromTypeAttribute(s){return xt(s)}getTypeAttributeFromListStyleType(s){return Z(s)}}function Ct(i){const{startIndex:s,reversed:t,styles:e}=i;return{styles:Pe(e),startIndex:s||!1,reversed:t||!1}}function Pe(i){const s={listTypes:["bulleted","numbered"],useAttribute:!1};return i===!0||(i?Array.isArray(i)||typeof i=="string"?s.listTypes=k(i):(s.listTypes=i.listTypes?k(i.listTypes):s.listTypes,s.useAttribute=!!i.useAttribute,i.listStyleTypes&&(s.listStyleTypes=i.listStyleTypes)):s.listTypes=[]),s}const V="default";class ze extends v{static get requires(){return[z,Be]}static get pluginName(){return"ListPropertiesEditing"}static get isOfficialPlugin(){return!0}constructor(s){super(s),s.config.define("list.properties",{styles:!0,startIndex:!1,reversed:!1})}init(){const s=this.editor,t=s.model,e=s.plugins.get(z),n=s.config.get("list.properties"),r=Ne(n);for(const o of r)o.addCommand(s),t.schema.extend("$listItem",{allowAttributes:o.attributeName}),e.registerDowncastStrategy({scope:"list",attributeName:o.attributeName,setAttributeOnDowncast(l,c,a){o.setAttributeOnDowncast(l,c,a)}});s.conversion.for("upcast").add(o=>{for(const l of r)o.on("element:ol",mt(l)),o.on("element:ul",mt(l))}),e.on("checkAttributes:list",(o,{viewElement:l,modelAttributes:c})=>{for(const a of r)a.getAttributeOnUpcast(l)!=c[a.attributeName]&&(o.return=!0,o.stop())}),this.listenTo(s.commands.get("indentList"),"afterExecute",(o,l)=>{t.change(c=>{for(const a of l)for(const u of r)u.appliesToListItem(a)&&c.setAttribute(u.attributeName,u.defaultValue,a)})}),e.on("postFixer",(o,{listNodes:l,writer:c})=>{for(const{node:a}of l)for(const u of r)u.hasValidAttribute(a)||(u.appliesToListItem(a)?c.setAttribute(u.attributeName,u.defaultValue,a):c.removeAttribute(u.attributeName,a),o.return=!0)}),e.on("postFixer",(o,{listNodes:l,writer:c})=>{for(const{node:a,previousNodeInList:u}of l)if(u&&u.getAttribute("listType")==a.getAttribute("listType"))for(const d of r){const{attributeName:m}=d;if(!d.appliesToListItem(a))continue;const f=u.getAttribute(m);a.getAttribute(m)!=f&&(c.setAttribute(m,f,a),o.return=!0)}})}}function Ne(i){const s=[],t=Ct(i);if(i.styles){const e=t.styles.useAttribute;s.push({attributeName:"listStyle",defaultValue:V,viewConsumables:{styles:"list-style-type"},addCommand(n){let r=_t();e&&(r=r.filter(o=>!!Z(o))),n.commands.add("listStyle",new Ve(n,V,r))},appliesToListItem(n){return n.getAttribute("listType")=="numbered"||n.getAttribute("listType")=="bulleted"},hasValidAttribute(n){if(!this.appliesToListItem(n))return!n.hasAttribute("listStyle");if(!n.hasAttribute("listStyle"))return!1;const r=n.getAttribute("listStyle");return r==V?!0:X(r)==n.getAttribute("listType")},setAttributeOnDowncast(n,r,o){if(r&&r!==V)if(e){const l=Z(r);if(l){n.setAttribute("type",l,o);return}}else{n.setStyle("list-style-type",r,o);return}n.removeStyle("list-style-type",o),n.removeAttribute("type",o)},getAttributeOnUpcast(n){const r=n.getStyle("list-style-type");if(r)return Ce(r);const o=n.getAttribute("type");return o?xt(o):V}})}return i.reversed&&s.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(e){e.commands.add("listReversed",new Ee(e))},appliesToListItem(e){return e.getAttribute("listType")=="numbered"},hasValidAttribute(e){return this.appliesToListItem(e)==e.hasAttribute("listReversed")},setAttributeOnDowncast(e,n,r){n?e.setAttribute("reversed","reversed",r):e.removeAttribute("reversed",r)},getAttributeOnUpcast(e){return e.hasAttribute("reversed")}}),i.startIndex&&s.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(e){e.commands.add("listStart",new xe(e))},appliesToListItem(e){return H(e.getAttribute("listType"))},hasValidAttribute(e){return this.appliesToListItem(e)==e.hasAttribute("listStart")},setAttributeOnDowncast(e,n,r){n==0||n>1?e.setAttribute("start",n,r):e.removeAttribute("start",r)},getAttributeOnUpcast(e){const n=e.getAttribute("start");return n>=0?n:1}}),s}class Vt extends st{constructor(t,{enabledProperties:e,styleButtonViews:n,styleGridAriaLabel:r}){super(t);h(this,"children");h(this,"stylesView",null);h(this,"additionalPropertiesCollapsibleView",null);h(this,"startIndexFieldView",null);h(this,"reversedSwitchButtonView",null);h(this,"focusTracker",new tt);h(this,"keystrokes",new et);h(this,"focusables",new Zt);h(this,"focusCycler");const o=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new Jt({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),n&&n.length?(this.stylesView=this._createStylesView(n,r),this.children.add(this.stylesView)):o.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e),o.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:o},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);Qt({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>Ut.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(t,e){const n=new st(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const r of this.children)if(r instanceof J&&r.isOn){r.focus();return}this.children.first.focus()},n.focusTracker=new tt,n.keystrokes=new et,n.render(),n.keystrokes.listenTo(n.element),n}_addNumberedListPropertyViews(t){const e=this.locale.t,n=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),n.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),n.push(this.reversedSwitchButtonView)),this.stylesView?(this.additionalPropertiesCollapsibleView=new Xt(this.locale,n),this.additionalPropertiesCollapsibleView.set({label:e("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...r)=>r.some(o=>o)),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",(r,o,l)=>{l||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)}),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(n)}_createStartIndexField(){const t=this.locale.t,e=new te(this.locale,ee);return e.set({label:t("Start at"),class:"ck-numbered-list-properties__start-index"}),e.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const n=e.fieldView.element,r=n.valueAsNumber;if(Number.isNaN(r)){e.errorText=t("Invalid start index value.");return}n.checkValidity()?this.fire("listStart",{startIndex:r}):e.errorText=t("Start index must be greater than 0.")}),e}_createReversedSwitchButton(){const t=this.locale.t,e=new se(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}var Fe='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>',Oe='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>',Me='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>',Re='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>',He='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>',De='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>',$e='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>',Ue='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>',Ke='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>';class We extends v{static get pluginName(){return"ListPropertiesUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor,t=s.locale.t,e=s.config.get("list.properties"),n=Ct(e),r=n.styles.listTypes;if(r.includes("bulleted")){const o=[{label:t("Toggle the disc list style"),tooltip:t("Disc"),type:"disc",icon:Fe},{label:t("Toggle the circle list style"),tooltip:t("Circle"),type:"circle",icon:Oe},{label:t("Toggle the square list style"),tooltip:t("Square"),type:"square",icon:Me}],l=t("Bulleted List"),c=t("Bulleted list styles toolbar"),a="bulletedList";s.ui.componentFactory.add(a,ft({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,buttonIcon:_.bulletedList,styleGridAriaLabel:c,styleDefinitions:o})),s.ui.componentFactory.add(`menuBar:${a}`,ht({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,styleGridAriaLabel:c,styleDefinitions:o}))}if(r.includes("numbered")||e.startIndex||e.reversed){const o=[{label:t("Toggle the decimal list style"),tooltip:t("Decimal"),type:"decimal",icon:Re},{label:t("Toggle the decimal with leading zero list style"),tooltip:t("Decimal with leading zero"),type:"decimal-leading-zero",icon:He},{label:t("Toggle the lower–roman list style"),tooltip:t("Lower–roman"),type:"lower-roman",icon:De},{label:t("Toggle the upper–roman list style"),tooltip:t("Upper-roman"),type:"upper-roman",icon:$e},{label:t("Toggle the lower–latin list style"),tooltip:t("Lower-latin"),type:"lower-latin",icon:Ue},{label:t("Toggle the upper–latin list style"),tooltip:t("Upper-latin"),type:"upper-latin",icon:Ke}],l=t("Numbered List"),c=t("Numbered list styles toolbar"),a="numberedList";s.ui.componentFactory.add(a,ft({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,buttonIcon:_.numberedList,styleGridAriaLabel:c,styleDefinitions:o})),r.includes("numbered")&&s.ui.componentFactory.add(`menuBar:${a}`,ht({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,styleGridAriaLabel:c,styleDefinitions:o}))}}}function ft({editor:i,normalizedConfig:s,parentCommandName:t,buttonLabel:e,buttonIcon:n,styleGridAriaLabel:r,styleDefinitions:o}){const l=i.commands.get(t);return c=>{const a=Wt(c,jt),u=a.buttonView;return a.bind("isEnabled").to(l),a.class="ck-list-styles-dropdown",u.on("execute",()=>{i.execute(t),i.editing.view.focus()}),u.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),u.bind("isOn").to(l,"value",d=>!!d),a.once("change:isOpen",()=>{const d=je({editor:i,normalizedConfig:s,dropdownView:a,parentCommandName:t,styleGridAriaLabel:r,styleDefinitions:o});a.panelView.children.add(d)}),a.on("execute",()=>{i.editing.view.focus()}),a}}function Et({editor:i,listStyleCommand:s,parentCommandName:t}){const e=i.locale,n=i.commands.get(t);return({label:r,type:o,icon:l,tooltip:c})=>{const a=new J(e);return a.set({label:r,icon:l,tooltip:c}),a.bind("isOn").to(s,"value",u=>u===o),a.on("execute",()=>{n.value?s.value===o?i.execute(t):s.value!==o&&i.execute("listStyle",{type:o}):i.model.change(()=>{i.execute("listStyle",{type:o})})}),a}}function je({editor:i,normalizedConfig:s,dropdownView:t,parentCommandName:e,styleDefinitions:n,styleGridAriaLabel:r}){const o=i.locale,l={...s,...e!="numberedList"?{startIndex:!1,reversed:!1}:null},c=e.replace("List","");let a=null;if(s.styles.listTypes.includes(c)){const d=i.commands.get("listStyle"),m=Et({editor:i,parentCommandName:e,listStyleCommand:d}),f=s.styles.listStyleTypes;let g=n;if(f){const b=f[c];b&&(g=n.filter(O=>b.includes(O.type)))}const w=Bt(d);a=g.filter(w).map(m)}const u=new Vt(o,{styleGridAriaLabel:r,enabledProperties:l,styleButtonViews:a});if(s.styles.listTypes.includes(c)&&Gt(t,()=>u.stylesView.children.find(d=>d.isOn)),l.startIndex){const d=i.commands.get("listStart");u.startIndexFieldView.bind("isEnabled").to(d),u.startIndexFieldView.fieldView.bind("value").to(d),u.on("listStart",(m,f)=>i.execute("listStart",f))}if(l.reversed){const d=i.commands.get("listReversed");u.reversedSwitchButtonView.bind("isEnabled").to(d),u.reversedSwitchButtonView.bind("isOn").to(d,"value",m=>!!m),u.on("listReversed",()=>{const m=d.value;i.execute("listReversed",{reversed:!m})})}return u.delegate("execute").to(t),u}function ht({editor:i,normalizedConfig:s,parentCommandName:t,buttonLabel:e,styleGridAriaLabel:n,styleDefinitions:r}){return o=>{const l=new qt(o),c=i.commands.get(t),a=i.commands.get("listStyle"),u=Bt(a),d=Et({editor:i,parentCommandName:t,listStyleCommand:a}),m=s.styles.listStyleTypes;let f=r;if(m){const b=c.type,O=m[b];O&&(f=r.filter(Pt=>O.includes(Pt.type)))}const g=f.filter(u).map(d),w=new Vt(o,{styleGridAriaLabel:n,enabledProperties:{...s,startIndex:!1,reversed:!1},styleButtonViews:g});return w.delegate("execute").to(l),l.buttonView.set({label:e,icon:_[t]}),l.panelView.children.add(w),l.bind("isEnabled").to(c,"isEnabled"),l.on("execute",()=>{i.editing.view.focus()}),l}}function Bt(i){return typeof i.isStyleTypeSupported=="function"?s=>i.isStyleTypeSupported(s.type):()=>!0}class ms extends v{static get requires(){return[ze,We]}static get pluginName(){return"ListProperties"}static get isOfficialPlugin(){return!0}}class qe extends L{constructor(s){super(s),this.on("execute",()=>{this.refresh()},{priority:"highest"})}refresh(){const s=this._getSelectedItems();this.value=this._getValue(s),this.isEnabled=!!s.length}execute(s={}){this.editor.model.change(t=>{const e=this._getSelectedItems(),n=s.forceValue===void 0?!this._getValue(e):s.forceValue;for(const r of e)n?t.setAttribute("todoListChecked",!0,r):t.removeAttribute("todoListChecked",r)})}_getValue(s){return s.every(t=>t.getAttribute("todoListChecked"))}_getSelectedItems(){const s=this.editor.model,t=s.schema,e=s.document.selection.getFirstRange(),n=e.start.parent,r=[];t.checkAttribute(n,"todoListChecked")&&r.push(...C(n));for(const o of e.getItems({shallow:!0}))t.checkAttribute(o,"todoListChecked")&&!r.includes(o)&&r.push(...C(o));return r}}class Ye extends ie{constructor(){super(...arguments);h(this,"domEventType",["change"])}onDomEvent(t){if(t.target){const e=this.view.domConverter.mapDomToView(t.target);e&&e.is("element","input")&&e.getAttribute("type")=="checkbox"&&e.findAncestor({classes:"todo-list__label"})&&this.fire("todoCheckboxChange",t)}}}const Ge=Ht("Ctrl+Enter");class Ze extends v{static get pluginName(){return"TodoListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[z]}init(){const s=this.editor,t=s.model,e=s.editing,n=s.plugins.get(z),o=s.config.get("list.multiBlock")?"paragraph":"listItem";s.commands.add("todoList",new E(s,"todo")),s.commands.add("checkTodoList",new qe(s)),e.view.addObserver(Ye),t.schema.extend("$listItem",{allowAttributes:"todoListChecked"}),t.schema.addAttributeCheck(l=>{const c=l.last;if(!c.getAttribute("listItemId")||c.getAttribute("listType")!="todo")return!1},"todoListChecked"),s.conversion.for("upcast").add(l=>{l.on("element:input",Qe()),l.on("element:li",Je(),{priority:"low"}),l.on("element:label",W({name:"label",classes:"todo-list__label"})),l.on("element:label",W({name:"label",classes:["todo-list__label","todo-list__label_without-description"]})),l.on("element:span",W({name:"span",classes:"todo-list__label__description"})),l.on("element:ul",Xe({name:"ul",classes:"todo-list"}))}),s.conversion.for("downcast").elementToElement({model:o,view:(l,{writer:c})=>{if(M(l,n.getListAttributeNames()))return c.createContainerElement("span",{class:"todo-list__label__description"})},converterPriority:"highest"}),n.registerDowncastStrategy({scope:"list",attributeName:"listType",setAttributeOnDowncast(l,c,a){c=="todo"?l.addClass("todo-list",a):l.removeClass("todo-list",a)}}),n.registerDowncastStrategy({scope:"itemMarker",attributeName:"todoListChecked",createElement(l,c,{dataPipeline:a}){if(c.getAttribute("listType")!="todo")return null;const u=l.createUIElement("input",{type:"checkbox",...c.getAttribute("todoListChecked")?{checked:"checked"}:null,...a?{disabled:"disabled"}:{tabindex:"-1"}});if(a)return u;const d=l.createContainerElement("span",{contenteditable:"false"},u);return d.getFillerOffset=()=>null,d},canWrapElement(l){return M(l,n.getListAttributeNames())},createWrapperElement(l,c,{dataPipeline:a}){const u=["todo-list__label"];return M(c,n.getListAttributeNames())||u.push("todo-list__label_without-description"),l.createAttributeElement(a?"label":"span",{class:u.join(" ")})}}),n.on("checkElement",(l,{modelElement:c,viewElement:a})=>{const u=M(c,n.getListAttributeNames());a.hasClass("todo-list__label__description")!=u&&(l.return=!0,l.stop())}),n.on("checkElement",(l,{modelElement:c,viewElement:a})=>{const u=c.getAttribute("listType")=="todo"&&A(c);let d=!1;const m=s.editing.view.createPositionBefore(a).getWalker({direction:"backward"});for(const{item:f}of m){if(f.is("element")&&s.editing.mapper.toModelElement(f))break;f.is("element","input")&&f.getAttribute("type")=="checkbox"&&(d=!0)}d!=u&&(l.return=!0,l.stop())}),n.on("postFixer",(l,{listNodes:c,writer:a})=>{for(const{node:u,previousNodeInList:d}of c){if(!d||d.getAttribute("listItemId")!=u.getAttribute("listItemId"))continue;const m=d.hasAttribute("todoListChecked"),f=u.hasAttribute("todoListChecked");f&&!m?(a.removeAttribute("todoListChecked",u),l.return=!0):!f&&m&&(a.setAttribute("todoListChecked",!0,u),l.return=!0)}}),t.document.registerPostFixer(l=>{const c=t.document.differ.getChanges();let a=!1;for(const u of c)if(u.type=="attribute"&&u.attributeKey=="listType"){const d=u.range.start.nodeAfter;u.attributeOldValue=="todo"&&d.hasAttribute("todoListChecked")&&(l.removeAttribute("todoListChecked",d),a=!0)}else if(u.type=="insert"&&u.name!="$text")for(const{item:d}of l.createRangeOn(u.position.nodeAfter))d.is("element")&&d.getAttribute("listType")!="todo"&&d.hasAttribute("todoListChecked")&&(l.removeAttribute("todoListChecked",d),a=!0);return a}),this.listenTo(e.view.document,"keydown",(l,c)=>{Rt(c)===Ge&&(s.execute("checkTodoList"),l.stop())},{priority:"high"}),this.listenTo(e.view.document,"todoCheckboxChange",(l,c)=>{const a=c.target;if(!a||!a.is("element","input"))return;const u=e.view.createPositionAfter(a),m=e.mapper.toModelPosition(u).parent;m&&p(m)&&m.getAttribute("listType")=="todo"&&this._handleCheckmarkChange(m)}),this.listenTo(e.view.document,"arrowKey",es(t,s.locale),{context:"$text"}),this.listenTo(e.mapper,"viewToModelPosition",(l,c)=>{const a=c.viewPosition.parent,u=a.is("attributeElement","li")&&c.viewPosition.offset==0,d=pt(a)&&c.viewPosition.offset<=1,m=a.is("element","span")&&a.getAttribute("contenteditable")=="false"&&pt(a.parent);if(!u&&!d&&!m)return;const f=c.modelPosition.nodeAfter;f&&f.getAttribute("listType")=="todo"&&(c.modelPosition=t.createPositionAt(f,0))},{priority:"low"}),this._initAriaAnnouncements()}_handleCheckmarkChange(s){const t=this.editor,e=t.model,n=Array.from(e.document.selection.getRanges());e.change(r=>{r.setSelection(s,"end"),t.execute("checkTodoList"),r.setSelection(n)})}_initAriaAnnouncements(){const{model:s,ui:t,t:e}=this.editor;let n=null;t&&s.document.selection.on("change:range",()=>{const r=s.document.selection.focus.parent,o=gt(n),l=gt(r);o&&!l?t.ariaLiveAnnouncer.announce(e("Leaving a to-do list")):!o&&l&&t.ariaLiveAnnouncer.announce(e("Entering a to-do list")),n=r})}}function Je(){return(i,s,t)=>{const{writer:e,schema:n}=t;if(!s.modelRange)return;const r=Array.from(s.modelRange.getItems({shallow:!0})).filter(o=>o.getAttribute("listType")==="todo"&&n.checkAttribute(o,"listItemId")).reduce((o,l)=>{const c=l.getAttribute("listItemId");return o.has(c)||o.set(c,C(l)),o},new Map);for(const[,o]of r.entries())if(o.some(l=>l.getAttribute("todoListChecked")))for(const l of o)e.setAttribute("todoListChecked",!0,l)}}function Qe(){return(i,s,t)=>{const e=s.modelCursor,n=e.parent,r=s.viewItem;if(!t.consumable.test(r,{name:!0})||r.getAttribute("type")!="checkbox"||!e.isAtStart||!n.hasAttribute("listType"))return;t.consumable.consume(r,{name:!0});const o=t.writer;o.setAttribute("listType","todo",n),s.viewItem.hasAttribute("checked")&&o.setAttribute("todoListChecked",!0,n),s.modelRange=o.createRange(e)}}function W(i){const s=new bt(i);return(t,e,n)=>{const r=s.match(e.viewItem);r&&n.consumable.consume(e.viewItem,r.match)&&Object.assign(e,n.convertChildren(e.viewItem,e.modelCursor))}}function Xe(i){const s=new bt(i);return(t,e,n)=>{const r=s.match(e.viewItem);if(!r)return;const o=r.match;o.name=!1,n.consumable.consume(e.viewItem,o)}}function M(i,s){return(i.is("element","paragraph")||i.is("element","listItem"))&&i.getAttribute("listType")=="todo"&&A(i)&&ts(i,s)}function ts(i,s){for(const t of i.getAttributeKeys())if(!t.startsWith("selection:")&&!s.includes(t))return!1;return!0}function es(i,s){return(t,e)=>{const n=Dt(e.keyCode,s.contentLanguageDirection),r=i.schema,o=i.document.selection;if(!o.isCollapsed)return;const l=o.getFirstPosition(),c=l.parent;if(n=="right"&&l.isAtEnd){const a=r.getNearestSelectionRange(i.createPositionAfter(c),"forward");if(!a)return;const u=a.start.parent;u&&p(u)&&u.getAttribute("listType")=="todo"&&(i.change(d=>d.setSelection(a)),e.preventDefault(),e.stopPropagation(),t.stop())}else if(n=="left"&&l.isAtStart&&p(c)&&c.getAttribute("listType")=="todo"){const a=r.getNearestSelectionRange(i.createPositionBefore(c),"backward");if(!a)return;i.change(u=>u.setSelection(a)),e.preventDefault(),e.stopPropagation(),t.stop()}}}function pt(i){return!!i&&i.is("attributeElement")&&i.hasClass("todo-list__label")}function gt(i){return!i||!i.is("element","paragraph")&&!i.is("element","listItem")?!1:i.getAttribute("listType")=="todo"}class ss extends v{static get pluginName(){return"TodoListUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor.t;G(this.editor,"todoList",s("To-do List"),_.todoList)}}class fs extends v{static get requires(){return[Ze,ss]}static get pluginName(){return"TodoList"}static get isOfficialPlugin(){return!0}}export{ds as List,E as ListCommand,z as ListEditing,nt as ListIndentCommand,ms as ListProperties,ze as ListPropertiesEditing,We as ListPropertiesUI,Be as ListPropertiesUtils,_e as ListUI,ae as ListUtils,fs as TodoList,Ze as TodoListEditing,ss as TodoListUI};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var P=Object.defineProperty;var k=(r,i,e)=>i in r?P(r,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[i]=e;var d=(r,i,e)=>k(r,typeof i!="symbol"?i+"":i,e);import{Plugin as p,Command as x}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as R,toWidget as D,findOptimalInsertionRange as H}from"../../../../../@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{global as b,first as C,logWarning as F,toArray as L,FocusTracker as U,KeystrokeHandler as z}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Dialog as Z,ButtonView as S,MenuBarMenuListItemButtonView as A,CssTransitionDisablerMixin as B,IconView as N,Template as O,View as $,submitHandler as W,LabeledFieldView as q,createLabeledInputText as j}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{LivePosition as v,LiveRange as G}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Clipboard as K}from"../../../../../@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{Delete as _}from"../../../../../@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Undo as X}from"../../../../../@ckeditor_ckeditor5-undo@44.3.0/node_modules/@ckeditor/ckeditor5-undo/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
|
-
*//**
|
|
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 V(r,i){const e=(t,o,n)=>{if(!n.consumable.consume(o.item,t.name))return;const s=o.attributeNewValue,l=n.writer,a=n.mapper.toViewElement(o.item),u=[...a.getChildren()].find(c=>c.getCustomProperty("media-content"));l.remove(u);const m=r.getMediaViewElement(l,s,i);l.insert(l.createPositionAt(a,0),m)};return t=>{t.on("attribute:url:media",e)}}function J(r,i,e){return i.setCustomProperty("media",!0,r),D(r,i,{label:e})}function E(r,i,e,t){return r.createContainerElement("figure",{class:"media"},[i.getMediaViewElement(r,e,t),r.createSlot()])}function I(r){const i=r.getSelectedElement();return i&&i.is("element","media")?i:null}function M(r,i,e,t){r.change(o=>{const n=o.createElement("media",{url:i});r.insertObject(n,e,null,{setSelection:"on",findOptimalPosition:t?"auto":void 0})})}class Q extends x{refresh(){const i=this.editor.model,e=i.document.selection,t=I(e);this.value=t?t.getAttribute("url"):void 0,this.isEnabled=ee(e)||Y(e,i)}execute(i){const e=this.editor.model,t=e.document.selection,o=I(t);o?e.change(n=>{n.setAttribute("url",i,o)}):M(e,i,t,!0)}}function Y(r,i){let t=H(r,i).start.parent;return t.isEmpty&&!i.schema.isLimit(t)&&(t=t.parent),i.schema.checkChild(t,"media")}function ee(r){const i=r.getSelectedElement();return!!i&&i.name==="media"}var te='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>';const ie="0 0 64 42";class oe{constructor(i,e){d(this,"locale");d(this,"providerDefinitions");const t=e.providers,o=e.extraProviders||[],n=new Set(e.removeProviders),s=t.concat(o).filter(l=>{const a=l.name;return a?!n.has(a):(F("media-embed-no-provider-name",{provider:l}),!1)});this.locale=i,this.providerDefinitions=s}hasMedia(i){return!!this._getMedia(i)}getMediaViewElement(i,e,t){return this._getMedia(e).getViewElement(i,t)}_getMedia(i){if(!i)return new y(this.locale);i=i.trim();for(const e of this.providerDefinitions){const t=e.html,o=L(e.url);for(const n of o){const s=this._getUrlMatches(i,n);if(s)return new y(this.locale,i,s,t)}}return null}_getUrlMatches(i,e){let t=i.match(e);if(t)return t;let o=i.replace(/^https?:\/\//,"");return t=o.match(e),t||(o=o.replace(/^www\./,""),t=o.match(e),t)?t:null}}class y{constructor(i,e,t,o){d(this,"url");d(this,"_locale");d(this,"_match");d(this,"_previewRenderer");this.url=this._getValidUrl(e),this._locale=i,this._match=t,this._previewRenderer=o}getViewElement(i,e){const t={};let o;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(t["data-oembed-url"]=this.url),e.renderForEditingView&&(t.class="ck-media__wrapper");const n=this._getPreviewHtml(e);o=i.createRawElement("div",t,(s,l)=>{l.setContentOf(s,n)})}else this.url&&(t.url=this.url),o=i.createEmptyElement(e.elementName,t);return i.setCustomProperty("media-content",!0,o),o}_getPreviewHtml(i){return this._previewRenderer?this._previewRenderer(this._match):this.url&&i.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const i=new N,e=this._locale.t;return i.content=te,i.viewBox=ie,new O({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[i]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(i){return i?i.match(/^https?/)?i:"https://"+i:null}}class g extends p{constructor(e){super(e);d(this,"registry");e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/shorts\/([\w-]+)(?:\?t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:t=>{const o=t[1],n=t[2];return`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${o}${n?`?start=${n}`:""}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:t=>`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${t[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`},{name:"instagram",url:[/^instagram\.com\/p\/(\w+)/,/^instagram\.com\/reel\/(\w+)/]},{name:"twitter",url:[/^twitter\.com/,/^x\.com/]},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new oe(e.locale,e.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.schema,o=e.t,n=e.conversion,s=e.config.get("mediaEmbed.previewsInData"),l=e.config.get("mediaEmbed.elementName"),a=this.registry;e.commands.add("mediaEmbed",new Q(e)),t.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),n.for("dataDowncast").elementToStructure({model:"media",view:(u,{writer:m})=>{const c=u.getAttribute("url");return E(m,a,c,{elementName:l,renderMediaPreview:!!c&&s})}}),n.for("dataDowncast").add(V(a,{elementName:l,renderMediaPreview:s})),n.for("editingDowncast").elementToStructure({model:"media",view:(u,{writer:m})=>{const c=u.getAttribute("url"),h=E(m,a,c,{elementName:l,renderForEditingView:!0});return J(h,m,o("media widget"))}}),n.for("editingDowncast").add(V(a,{elementName:l,renderForEditingView:!0})),n.for("upcast").elementToElement({view:u=>["oembed",l].includes(u.name)&&u.getAttribute("url")?{name:!0}:null,model:(u,{writer:m})=>{const c=u.getAttribute("url");return a.hasMedia(c)?m.createElement("media",{url:c}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(u,{writer:m})=>{const c=u.getAttribute("data-oembed-url");return a.hasMedia(c)?m.createElement("media",{url:c}):null}}).add(u=>{const m=(c,h,f)=>{if(!f.consumable.consume(h.viewItem,{name:!0,classes:"media"}))return;const{modelRange:w,modelCursor:T}=f.convertChildren(h.viewItem,h.modelCursor);h.modelRange=w,h.modelCursor=T,C(w.getItems())||f.consumable.revert(h.viewItem,{name:!0,classes:"media"})};u.on("element:figure",m)})}}const re=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class ne extends p{constructor(e){super(e);d(this,"_timeoutId");d(this,"_positionToInsert");this._timeoutId=null,this._positionToInsert=null}static get requires(){return[K,_,X]}static get pluginName(){return"AutoMediaEmbed"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.document,o=e.plugins.get("ClipboardPipeline");this.listenTo(o,"inputTransformation",()=>{const s=t.selection.getFirstRange(),l=v.fromPosition(s.start);l.stickiness="toPrevious";const a=v.fromPosition(s.end);a.stickiness="toNext",t.once("change:data",()=>{this._embedMediaBetweenPositions(l,a),l.detach(),a.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(b.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(e,t){const o=this.editor,n=o.plugins.get(g).registry,s=new G(e,t),l=s.getWalker({ignoreElementEnd:!0});let a="";for(const m of l)m.item.is("$textProxy")&&(a+=m.item.data);if(a=a.trim(),!a.match(re)){s.detach();return}if(!n.hasMedia(a)){s.detach();return}if(!o.commands.get("mediaEmbed").isEnabled){s.detach();return}this._positionToInsert=v.fromPosition(e),this._timeoutId=b.window.setTimeout(()=>{o.model.change(m=>{this._timeoutId=null,m.remove(s),s.detach();let c=null;this._positionToInsert.root.rootName!=="$graveyard"&&(c=this._positionToInsert),M(o.model,a,c,!1),this._positionToInsert.detach(),this._positionToInsert=null}),o.plugins.get(_).requestUndoOnBackspace()},100)}}class se extends ${constructor(e,t){super(t);d(this,"focusTracker");d(this,"keystrokes");d(this,"urlInputView");d(this,"_validators");d(this,"_urlInputViewInfoDefault");d(this,"_urlInputViewInfoTip");this.focusTracker=new U,this.keystrokes=new z,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this._validators=e,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView]})}render(){super.render(),W({view:this}),this.focusTracker.add(this.urlInputView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.urlInputView.focus()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(e){this.urlInputView.fieldView.value=e.trim()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const e=this.locale.t,t=new q(this.locale,j),o=t.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),t.label=e("Media URL"),t.infoText=this._urlInputViewInfoDefault,o.inputMode="url",o.on("input",()=>{t.infoText=o.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=o.element.value.trim()}),t}}var ae='<svg viewBox="0 0 22 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.587 1.5c-.612 0-.601-.029-.601.551v14.84c0 .59-.01.559.591.559h18.846c.602 0 .591.03.591-.56V2.052c0-.58.01-.55-.591-.55H1.587Zm.701.971h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-14.24 1h13.008v12H4.467l.029-12Zm-2.208 1h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003v1H2.288v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h1.003l-.029 1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Zm-16.448 2h.974v1h-.974v-1Zm16.448 0h1.003v1h-1.003v-1Z"/><path d="M8.374 6.648a.399.399 0 0 1 .395-.4.402.402 0 0 1 .2.049l5.148 2.824a.4.4 0 0 1 0 .7l-5.148 2.824a.403.403 0 0 1-.595-.35V6.648Z"/></svg>';class le extends p{constructor(){super(...arguments);d(this,"_formView")}static get requires(){return[g,Z]}static get pluginName(){return"MediaEmbedUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("mediaEmbed",()=>{const t=this.editor.locale.t,o=this._createDialogButton(S);return o.tooltip=!0,o.label=t("Insert media"),o}),e.ui.componentFactory.add("menuBar:mediaEmbed",()=>{const t=this.editor.locale.t,o=this._createDialogButton(A);return o.label=t("Media"),o})}_createDialogButton(e){const t=this.editor,o=new e(t.locale),n=t.commands.get("mediaEmbed"),s=this.editor.plugins.get("Dialog");return o.icon=ae,o.bind("isEnabled").to(n,"isEnabled"),o.on("execute",()=>{s.id==="mediaEmbed"?s.hide():this._showDialog()}),o}_showDialog(){const e=this.editor,t=e.plugins.get("Dialog"),o=e.commands.get("mediaEmbed"),n=e.locale.t;if(!this._formView){const s=e.plugins.get(g).registry;this._formView=new(B(se))(me(e.t,s),e.locale),this._formView.on("submit",()=>this._handleSubmitForm())}t.show({id:"mediaEmbed",title:n("Insert media"),content:this._formView,isModal:!0,onShow:()=>{this._formView.url=o.value||"",this._formView.resetFormStatus(),this._formView.urlInputView.fieldView.select()},actionButtons:[{label:n("Cancel"),withText:!0,onExecute:()=>t.hide()},{label:n("Accept"),class:"ck-button-action",withText:!0,onExecute:()=>this._handleSubmitForm()}]})}_handleSubmitForm(){const e=this.editor,t=e.plugins.get("Dialog");this._formView.isValid()&&(e.execute("mediaEmbed",this._formView.url),t.hide(),e.editing.view.focus())}}function me(r,i){return[e=>{if(!e.url.length)return r("The URL must not be empty.")},e=>{if(!i.hasMedia(e.url))return r("This media URL is not supported.")}]}class _e extends p{static get requires(){return[g,le,ne,R]}static get pluginName(){return"MediaEmbed"}static get isOfficialPlugin(){return!0}}export{ne as AutoMediaEmbed,_e as MediaEmbed,g as MediaEmbedEditing,le as MediaEmbedUI};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Plugin as l,Command as d}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Widget as m,toWidget as p,findOptimalInsertionRange as h}from"../../../../../@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{ButtonView as k,MenuBarMenuListItemButtonView as B}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/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 v extends d{refresh(){const e=this.editor.model,t=e.schema,a=e.document.selection;this.isEnabled=f(a,t,e)}execute(){const e=this.editor.model;e.change(t=>{const a=t.createElement("pageBreak");e.insertObject(a,null,null,{setSelection:"after"})})}}function f(o,e,t){const a=P(o,t);return e.checkChild(a,"pageBreak")}function P(o,e){const a=h(o,e).start.parent;return a.isEmpty&&!a.is("element","$root")?a.parent:a}class b extends l{static get pluginName(){return"PageBreakEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.schema,a=e.t,s=e.conversion;t.register("pageBreak",{inheritAllFrom:"$blockObject"}),s.for("dataDowncast").elementToStructure({model:"pageBreak",view:(r,{writer:n})=>n.createContainerElement("div",{class:"page-break",style:"page-break-after: always"},n.createContainerElement("span",{style:"display: none"}))}),s.for("editingDowncast").elementToStructure({model:"pageBreak",view:(r,{writer:n})=>{const c=a("Page break"),i=n.createContainerElement("div"),g=n.createRawElement("span",{class:"page-break__label"},function(u){u.innerText=a("Page break")});return n.addClass("page-break",i),n.insert(n.createPositionAt(i,0),g),w(i,n,c)}}),s.for("upcast").elementToElement({view:r=>{const n=r.getStyle("page-break-before")=="always",c=r.getStyle("page-break-after")=="always";if(!n&&!c)return null;if(r.childCount==1){const i=r.getChild(0);if(!i.is("element","span")||i.getStyle("display")!="none")return null}else if(r.childCount>1)return null;return{name:!0}},model:"pageBreak",converterPriority:"high"}),e.commands.add("pageBreak",new v(e))}}function w(o,e,t){return e.setCustomProperty("pageBreak",!0,o),p(o,e,{label:t})}var E='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>';class y extends l{static get pluginName(){return"PageBreakUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("pageBreak",()=>{const t=this._createButton(k);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:pageBreak",()=>this._createButton(B))}_createButton(e){const t=this.editor,a=t.locale,s=t.commands.get("pageBreak"),r=new e(t.locale),n=a.t;return r.set({label:n("Page break"),icon:E}),r.bind("isEnabled").to(s,"isEnabled"),this.listenTo(r,"execute",()=>{t.execute("pageBreak"),t.editing.view.focus()}),r}}class I extends l{static get requires(){return[b,y,m]}static get pluginName(){return"PageBreak"}static get isOfficialPlugin(){return!0}}export{I as PageBreak,b as PageBreakEditing,y as PageBreakUI};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Plugin as m,Command as l}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ButtonView as u,MenuBarMenuListItemButtonView as g}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{first as c}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/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
|
-
*/var d='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>';const s="removeFormat";class f extends m{static get pluginName(){return"RemoveFormatUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add(s,()=>{const e=this._createButton(u);return e.set({tooltip:!0}),e}),t.ui.componentFactory.add(`menuBar:${s}`,()=>this._createButton(g))}_createButton(t){const e=this.editor,i=e.locale,o=e.commands.get(s),r=new t(e.locale),a=i.t;return r.set({label:a("Remove Format"),icon:d}),r.bind("isEnabled").to(o,"isEnabled"),this.listenTo(r,"execute",()=>{e.execute(s),e.editing.view.focus()}),r}}class h extends l{refresh(){const t=this.editor.model;this.isEnabled=!!c(this._getFormattingItems(t.document.selection,t.schema))}execute(){const t=this.editor.model,e=t.schema;t.change(i=>{for(const o of this._getFormattingItems(t.document.selection,e))if(o.is("selection"))for(const r of this._getFormattingAttributes(o,e))i.removeSelectionAttribute(r);else{const r=i.createRangeOn(o);for(const a of this._getFormattingAttributes(o,e))i.removeAttribute(a,r)}})}*_getFormattingItems(t,e){const i=o=>!!c(this._getFormattingAttributes(o,e));for(const o of t.getRanges())for(const r of o.getItems())!e.isBlock(r)&&i(r)&&(yield r);for(const o of t.getSelectedBlocks())i(o)&&(yield o);i(t)&&(yield t)}*_getFormattingAttributes(t,e){for(const[i]of t.getAttributes()){const o=e.getAttributeProperties(i);o&&o.isFormatting&&(yield i)}}}class F extends m{static get pluginName(){return"RemoveFormatEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.commands.add("removeFormat",new h(t))}}class p extends m{static get requires(){return[F,f]}static get pluginName(){return"RemoveFormat"}static get isOfficialPlugin(){return!0}}export{p as RemoveFormat,F as RemoveFormatEditing,f as RemoveFormatUI};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Plugin as s,Command as r}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{getCode as u,parseKeystroke as h}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ButtonView as m,MenuBarMenuListItemButtonView as d}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/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 v extends r{constructor(e){super(e),this.affectsData=!1}execute(){const e=this.editor.model,t=e.document.selection;let c=e.schema.getLimitElement(t);if(t.containsEntireContent(c)||!o(e.schema,c))do if(c=c.parent,!c)return;while(!o(e.schema,c));e.change(i=>{i.setSelection(c,"in")})}}function o(l,e){return l.isLimit(e)&&(l.checkChild(e,"$text")||l.checkChild(e,"paragraph"))}const g=h("Ctrl+A");class A extends s{static get pluginName(){return"SelectAllEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t,i=e.editing.view.document;e.commands.add("selectAll",new v(e)),this.listenTo(i,"keydown",(a,n)=>{u(n)===g&&(e.execute("selectAll"),n.preventDefault())}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Select all"),keystroke:"CTRL+A"}]})}}var f='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>';class p extends s{static get pluginName(){return"SelectAllUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.ui.componentFactory.add("selectAll",()=>{const t=this._createButton(m);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:selectAll",()=>this._createButton(d))}_createButton(e){const t=this.editor,c=t.locale,i=t.commands.get("selectAll"),a=new e(t.locale),n=c.t;return a.set({label:n("Select all"),icon:f,keystroke:"Ctrl+A"}),a.bind("isEnabled").to(i,"isEnabled"),this.listenTo(a,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),a}}class L extends s{static get requires(){return[A,p]}static get pluginName(){return"SelectAll"}static get isOfficialPlugin(){return!0}}export{L as SelectAll,A as SelectAllEditing,p as SelectAllUI};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Plugin as h,Command as r}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ButtonView as d,MenuBarMenuListItemButtonView as u}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/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 v extends r{constructor(t){super(t),this.affectsData=!1,this.value=!1}execute(){const t="ck-show-blocks",e=this.editor.editing.view;e.change(o=>{for(const s of e.document.roots)s.hasClass(t)?(o.removeClass(t,s),this.value=!1):(o.addClass(t,s),this.value=!0)})}}class w extends h{static get pluginName(){return"ShowBlocksEditing"}static get isOfficialPlugin(){return!0}init(){const{editor:t}=this;t.commands.add("showBlocks",new v(t))}}var m='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m6.395 9.196 2.545-.007V6.498a.598.598 0 0 1 .598-.598h.299a.598.598 0 0 1 .598.598v6.877a.598.598 0 0 1-.598.598h-.299a.598.598 0 0 1-.598-.598v-2.691l-2.545.007v2.691a.598.598 0 0 1-.598.598h-.299a.598.598 0 0 1-.598-.598V6.505a.598.598 0 0 1 .598-.598h.299a.598.598 0 0 1 .598.598v2.691Z"/><path d="M15.094 13.417V6.462a.562.562 0 0 0-.562-.562h-.782a1 1 0 0 0-.39.08l-1.017.43a.562.562 0 0 0-.343.517v.197c0 .4.406.67.775.519l.819-.337v6.111c0 .31.251.562.561.562h.377c.31 0 .562-.251.562-.562Z"/><path d="M0 15.417v1.5h1.5v-1.5H0Z"/><path d="M18.5 15.417v1.5H20v-1.5h-1.5Z"/><path d="M18.5 12.333v1.5H20v-1.5h-1.5Z"/><path d="M18.5 9.25v1.5H20v-1.5h-1.5Z"/><path d="M18.5 6.167v1.5H20v-1.5h-1.5Z"/><path d="M0 18.5v.5a1 1 0 0 0 1 1h.5v-1.5H0Z"/><path d="M3.083 18.5V20h1.5v-1.5h-1.5Z"/><path d="M6.167 18.5V20h1.5v-1.5h-1.5Z"/><path d="M9.25 18.5V20h1.5v-1.5h-1.5Z"/><path d="M12.333 18.5V20h1.5v-1.5h-1.5Z"/><path d="M15.417 18.5V20h1.5v-1.5h-1.5Z"/><path d="M18.5 18.5V20h.5a1 1 0 0 0 1-1v-.5h-1.5Z"/><path clip-rule="evenodd" d="M0 1a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v3.583h-1.5V1.5h-17v12.333H0V1Z"/></svg>';class p extends h{static get pluginName(){return"ShowBlocksUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("showBlocks",()=>{const e=this._createButton(d);return e.set({tooltip:!0,icon:m}),e}),t.ui.componentFactory.add("menuBar:showBlocks",()=>this._createButton(u))}_createButton(t){const e=this.editor,o=e.locale,s=e.commands.get("showBlocks"),a=new t(o),n=o.t;return a.set({label:n("Show blocks"),isToggleable:!0,role:"menuitemcheckbox"}),a.bind("isEnabled").to(s),a.bind("isOn").to(s,"value",s,"isEnabled",(c,l)=>c&&l),this.listenTo(a,"execute",()=>{e.execute("showBlocks"),e.editing.view.focus()}),a}}class f extends h{static get pluginName(){return"ShowBlocks"}static get isOfficialPlugin(){return!0}static get requires(){return[w,p]}}export{f as ShowBlocks,v as ShowBlocksCommand,w as ShowBlocksEditing,p as ShowBlocksUI};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var E=Object.defineProperty;var b=(n,a,e)=>a in n?E(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var l=(n,a,e)=>b(n,typeof a!="symbol"?a+"":a,e);import{Plugin as V,PendingActions as f,icons as w}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ButtonView as _,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ElementReplacer as S,CKEditorError as v,createElement as h}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/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
|
-
*//**
|
|
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 C(n){const a=[{name:"address",isVoid:!1},{name:"article",isVoid:!1},{name:"aside",isVoid:!1},{name:"blockquote",isVoid:!1},{name:"details",isVoid:!1},{name:"dialog",isVoid:!1},{name:"dd",isVoid:!1},{name:"div",isVoid:!1},{name:"dl",isVoid:!1},{name:"dt",isVoid:!1},{name:"fieldset",isVoid:!1},{name:"figcaption",isVoid:!1},{name:"figure",isVoid:!1},{name:"footer",isVoid:!1},{name:"form",isVoid:!1},{name:"h1",isVoid:!1},{name:"h2",isVoid:!1},{name:"h3",isVoid:!1},{name:"h4",isVoid:!1},{name:"h5",isVoid:!1},{name:"h6",isVoid:!1},{name:"header",isVoid:!1},{name:"hgroup",isVoid:!1},{name:"hr",isVoid:!0},{name:"li",isVoid:!1},{name:"main",isVoid:!1},{name:"nav",isVoid:!1},{name:"ol",isVoid:!1},{name:"p",isVoid:!1},{name:"section",isVoid:!1},{name:"table",isVoid:!1},{name:"tbody",isVoid:!1},{name:"td",isVoid:!1},{name:"th",isVoid:!1},{name:"thead",isVoid:!1},{name:"tr",isVoid:!1},{name:"ul",isVoid:!1}],e=a.map(o=>o.name).join("|"),t=n.replace(new RegExp(`</?(${e})( .*?)?>`,"g"),`
|
|
8
|
-
$&
|
|
9
|
-
`).replace(/<br[^>]*>/g,`$&
|
|
10
|
-
`).split(`
|
|
11
|
-
`);let i=0,s=!1;return t.filter(o=>o.length).map(o=>(s=D(o,s),y(o,a)?m(o,i++):M(o,a)?m(o,--i):s==="middle"||s==="last"?o:m(o,i))).join(`
|
|
12
|
-
`)}function y(n,a){return a.some(e=>!(e.isVoid||!new RegExp(`<${e.name}( .*?)?>`).test(n)))}function M(n,a){return a.some(e=>new RegExp(`</${e.name}>`).test(n))}function m(n,a,e=" "){return`${e.repeat(Math.max(0,a))}${n}`}function D(n,a){return new RegExp("<pre( .*?)?>").test(n)?"first":new RegExp("</pre>").test(n)?"last":a==="first"||a==="middle"?"middle":!1}const c="SourceEditingMode";class B extends V{constructor(e){super(e);l(this,"_elementReplacer");l(this,"_replacedRoots");l(this,"_dataFromRoots");this.set("isSourceEditingMode",!1),this._elementReplacer=new S,this._replacedRoots=new Map,this._dataFromRoots=new Map,e.config.define("sourceEditing.allowCollaborationFeatures",!1)}static get pluginName(){return"SourceEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[f]}init(){this._checkCompatibility();const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("sourceEditing",()=>{const i=this._createButton(_);return i.set({label:t("Source"),icon:w.source,tooltip:!0,class:"ck-source-editing-button"}),i}),e.ui.componentFactory.add("menuBar:sourceEditing",()=>{const i=this._createButton(R);return i.set({label:t("Show source"),role:"menuitemcheckbox"}),i}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(i,s,o)=>{o?(this._hideVisibleDialog(),this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(i,s,o)=>this._handleReadOnlyMode(!o)),this.listenTo(e,"change:isReadOnly",(i,s,o)=>this._handleReadOnlyMode(o))),e.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}updateEditorData(){const e=this.editor,t={};for(const[i,s]of this._replacedRoots){const o=this._dataFromRoots.get(i),r=s.dataset.value;o!==r&&(t[i]=r,this._dataFromRoots.set(i,r))}Object.keys(t).length&&e.data.set(t,{batchType:{isUndoable:!0},suppressErrorInCollaboration:!0})}_checkCompatibility(){const e=this.editor,t=e.config.get("sourceEditing.allowCollaborationFeatures");if(!t&&e.plugins.has("RealTimeCollaborativeEditing"))throw new v("source-editing-incompatible-with-real-time-collaboration",null);!t&&["CommentsEditing","TrackChangesEditing","RevisionHistory"].some(s=>e.plugins.has(s))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),e.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}_showSourceEditing(){const e=this.editor,t=e.editing.view,i=e.model;i.change(s=>{s.setSelection(null),s.removeSelectionAttribute(i.document.selection.getAttributeKeys())});for(const[s,o]of t.domRoots){const r=x(e.data.get({rootName:s})),d=h(o.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),u=h(o.ownerDocument,"div",{class:"ck-source-editing-area","data-value":r},[d]);d.value=r,d.setSelectionRange(0,0),d.addEventListener("input",()=>{u.dataset.value=d.value,e.ui.update()}),t.change(g=>{const p=t.document.getRoot(s);g.addClass("ck-hidden",p)}),e.ui.setEditableElement("sourceEditing:"+s,d),this._replacedRoots.set(s,u),this._elementReplacer.replace(o,u),this._dataFromRoots.set(s,r)}this._focusSourceEditing()}_hideSourceEditing(){const t=this.editor.editing.view;this.updateEditorData(),t.change(i=>{for(const[s]of this._replacedRoots)i.removeClass("ck-hidden",t.document.getRoot(s))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),t.focus()}_focusSourceEditing(){const e=this.editor,[t]=this._replacedRoots.values(),i=t.querySelector("textarea");e.editing.view.document.isFocused=!1,i.focus()}_disableCommands(){const e=this.editor;for(const t of e.commands.commands())t.forceDisabled(c);e.plugins.has("CommentsArchiveUI")&&e.plugins.get("CommentsArchiveUI").forceDisabled(c)}_enableCommands(){const e=this.editor;for(const t of e.commands.commands())t.clearForceDisabled(c);e.plugins.has("CommentsArchiveUI")&&e.plugins.get("CommentsArchiveUI").clearForceDisabled(c)}_handleReadOnlyMode(e){if(this.isSourceEditingMode)for(const[,t]of this._replacedRoots)t.querySelector("textarea").readOnly=e}_isAllowedToHandleSourceEditingMode(){const t=this.editor.ui.view.editable;return t&&!t.hasExternalElement}_hideVisibleDialog(){if(this.editor.plugins.has("Dialog")){const e=this.editor.plugins.get("Dialog");e.isOpen&&e.hide()}}_createButton(e){const t=this.editor,i=new e(t.locale);return i.set({withText:!0,isToggleable:!0}),i.bind("isOn").to(this,"isSourceEditingMode"),i.bind("isEnabled").to(this,"isEnabled",t,"isReadOnly",t.plugins.get(f),"hasAny",(s,o,r)=>!(!s||o||r)),this.listenTo(i,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),i}}function x(n){return T(n)?C(n):n}function T(n){return n.startsWith("<")}export{B as SourceEditing};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var k=Object.defineProperty;var C=(c,i,t)=>i in c?k(c,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):c[i]=t;var s=(c,i,t)=>C(c,typeof i!="symbol"?i+"":i,t);import{Plugin as u}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Typing as v}from"../../../../../@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Dialog as _,ButtonView as m,MenuBarMenuListItemButtonView as x,DialogViewPosition as y,View as d,LabeledFieldView as T,createLabeledDropdown as V,ViewModel as S,addListToDropdown as D,addKeyboardHandlingForGrid as P,FocusCycler as G}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{CKEditorError as p,Collection as q,FocusTracker as L,KeystrokeHandler as f,global as N}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/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 A extends d{constructor(t){super(t);s(this,"tiles");s(this,"focusTracker");s(this,"keystrokes");this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new L,this.keystrokes=new f,P({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>N.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(t,e){const a=new m(this.locale);return a.set({label:t,withText:!0,class:"ck-character-grid__tile"}),a.extendTemplate({attributes:{title:e},on:{mouseover:a.bindTemplate.to("mouseover"),focus:a.bindTemplate.to("focus")}}),a.on("mouseover",()=>{this.fire("tileHover",{name:e,character:t})}),a.on("focus",()=>{this.fire("tileFocus",{name:e,character:t})}),a.on("execute",()=>{this.fire("execute",{name:e,character:t})}),a}render(){super.render();for(const t of this.tiles)this.focusTracker.add(t.element);this.tiles.on("change",(t,{added:e,removed:a})=>{if(e.length>0)for(const r of e)this.focusTracker.add(r.element);if(a.length>0)for(const r of a)this.focusTracker.remove(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.first.focus()}}class I extends d{constructor(i){super(i);const t=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",E),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:t.to("name",e=>e||"")}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:t.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function E(c){return c===null?"":"U+"+("0000"+c.codePointAt(0).toString(16)).slice(-4)}class M extends d{constructor(t,e,a,r){super(t);s(this,"items");s(this,"focusTracker");s(this,"keystrokes");s(this,"_focusCycler");s(this,"categoriesView");s(this,"gridView");s(this,"infoView");this.categoriesView=e,this.gridView=a,this.infoView=r,this.items=this.createCollection(),this.focusTracker=new L,this.keystrokes=new f,this._focusCycler=new G({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.categoriesView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.categoriesView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.categoriesView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}var O='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>';class F extends d{constructor(t,e){super(t);s(this,"_groupNames");s(this,"_dropdownView");this.set("currentGroupName",Array.from(e.entries())[0][0]),this._groupNames=e,this._dropdownView=new T(t,V),this.setTemplate({tag:"div",attributes:{class:["ck","ck-character-categories"]},children:[this._dropdownView]})}render(){super.render(),this._setupDropdown()}focus(){this._dropdownView.focus()}_setupDropdown(){const t=new q;for(const[r,l]of this._groupNames){const h={type:"button",model:new S({name:r,label:l,role:"menuitemradio",withText:!0})};h.model.bind("isOn").to(this,"currentGroupName",n=>n===r),t.add(h)}const e=this.locale.t,a=e("Category");this._dropdownView.set({label:a,isEmpty:!1}),this._dropdownView.fieldView.panelPosition=this.locale.uiLanguageDirection==="rtl"?"se":"sw",this._dropdownView.fieldView.buttonView.set({withText:!0,tooltip:a,ariaLabel:a,ariaLabelledBy:void 0,isOn:!1}),this._dropdownView.fieldView.buttonView.bind("label").to(this,"currentGroupName",r=>this._groupNames.get(r)),this._dropdownView.fieldView.on("execute",({source:r})=>{this.currentGroupName=r.name}),D(this._dropdownView.fieldView,t,{ariaLabel:a,role:"menu"})}}const w="All";class $ extends u{constructor(t){super(t);s(this,"_characters");s(this,"_groups");s(this,"_allSpecialCharactersGroupLabel");const e=t.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=e("All")}static get requires(){return[v,_]}static get pluginName(){return"SpecialCharacters"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.ui.componentFactory.add("specialCharacters",()=>{const e=this._createDialogButton(m);return e.set({tooltip:!0}),e}),t.ui.componentFactory.add("menuBar:specialCharacters",()=>this._createDialogButton(x))}addItems(t,e,a={label:t}){if(t===w)throw new p("special-character-invalid-group-name",null);const r=this._getGroup(t,a.label);for(const l of e)r.items.add(l.title),this._characters.set(l.title,l.character)}getGroups(){const t=Array.from(this._groups.keys()),e=this.editor.config.get("specialCharacters.order")||[],a=e.find(r=>!t.includes(r));if(a)throw new p("special-character-invalid-order-group-name",null,{invalidGroup:a});return new Set([...e,...t])}getCharactersForGroup(t){if(t===w)return new Set(this._characters.keys());const e=this._groups.get(t);if(e)return e.items}getCharacter(t){return this._characters.get(t)}_getGroup(t,e){return this._groups.has(t)||this._groups.set(t,{items:new Set,label:e}),this._groups.get(t)}_updateGrid(t,e){e.tiles.clear();const a=this.getCharactersForGroup(t);for(const r of a){const l=this.getCharacter(r);e.tiles.add(e.createTile(l,r))}}_createDropdownPanelContent(t){const e=Array.from(this.getGroups()).map(n=>[n,this._groups.get(n).label]),a=new Map([[w,this._allSpecialCharactersGroupLabel],...e]),r=new F(t,a),l=new A(t),h=new I(t);return l.on("tileHover",(n,o)=>{h.set(o)}),l.on("tileFocus",(n,o)=>{h.set(o)}),r.on("change:currentGroupName",(n,o,g)=>{this._updateGrid(g,l)}),this._updateGrid(r.currentGroupName,l),{categoriesView:r,gridView:l,infoView:h}}_createDialogButton(t){const e=this.editor,a=e.locale,r=new t(e.locale),l=e.commands.get("insertText"),h=a.t,n=this.editor.plugins.get("Dialog");return r.set({label:h("Special characters"),icon:O,isToggleable:!0}),r.bind("isOn").to(n,"id",o=>o==="specialCharacters"),r.bind("isEnabled").to(l,"isEnabled"),r.on("execute",()=>{if(n.id==="specialCharacters"){n.hide();return}this._showDialog()}),r}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),a=t.locale,r=a.t,{categoriesView:l,gridView:h,infoView:n}=this._createDropdownPanelContent(a),o=new M(a,l,h,n);h.on("execute",(g,b)=>{t.execute("insertText",{text:b.character})}),e.show({id:"specialCharacters",title:r("Special characters"),className:"ck-special-characters",content:o,position:y.EDITOR_TOP_SIDE})}}class B extends u{static get pluginName(){return"SpecialCharactersArrows"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Arrows",[{title:t("leftwards simple arrow"),character:"←"},{title:t("rightwards simple arrow"),character:"→"},{title:t("upwards simple arrow"),character:"↑"},{title:t("downwards simple arrow"),character:"↓"},{title:t("leftwards double arrow"),character:"⇐"},{title:t("rightwards double arrow"),character:"⇒"},{title:t("upwards double arrow"),character:"⇑"},{title:t("downwards double arrow"),character:"⇓"},{title:t("leftwards dashed arrow"),character:"⇠"},{title:t("rightwards dashed arrow"),character:"⇢"},{title:t("upwards dashed arrow"),character:"⇡"},{title:t("downwards dashed arrow"),character:"⇣"},{title:t("leftwards arrow to bar"),character:"⇤"},{title:t("rightwards arrow to bar"),character:"⇥"},{title:t("upwards arrow to bar"),character:"⤒"},{title:t("downwards arrow to bar"),character:"⤓"},{title:t("up down arrow with base"),character:"↨"},{title:t("back with leftwards arrow above"),character:"🔙"},{title:t("end with leftwards arrow above"),character:"🔚"},{title:t("on with exclamation mark with left right arrow above"),character:"🔛"},{title:t("soon with rightwards arrow above"),character:"🔜"},{title:t("top with upwards arrow above"),character:"🔝"}],{label:t("Arrows")})}}class R extends u{static get pluginName(){return"SpecialCharactersText"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Text",[{character:"‹",title:t("Single left-pointing angle quotation mark")},{character:"›",title:t("Single right-pointing angle quotation mark")},{character:"«",title:t("Left-pointing double angle quotation mark")},{character:"»",title:t("Right-pointing double angle quotation mark")},{character:"‘",title:t("Left single quotation mark")},{character:"’",title:t("Right single quotation mark")},{character:"“",title:t("Left double quotation mark")},{character:"”",title:t("Right double quotation mark")},{character:"‚",title:t("Single low-9 quotation mark")},{character:"„",title:t("Double low-9 quotation mark")},{character:"¡",title:t("Inverted exclamation mark")},{character:"¿",title:t("Inverted question mark")},{character:"‥",title:t("Two dot leader")},{character:"…",title:t("Horizontal ellipsis")},{character:"‡",title:t("Double dagger")},{character:"‰",title:t("Per mille sign")},{character:"‱",title:t("Per ten thousand sign")},{character:"‼",title:t("Double exclamation mark")},{character:"⁈",title:t("Question exclamation mark")},{character:"⁉",title:t("Exclamation question mark")},{character:"⁇",title:t("Double question mark")},{character:"©",title:t("Copyright sign")},{character:"®",title:t("Registered sign")},{character:"™",title:t("Trade mark sign")},{character:"§",title:t("Section sign")},{character:"¶",title:t("Paragraph sign")},{character:"⁋",title:t("Reversed paragraph sign")}],{label:t("Text")})}}class H extends u{static get pluginName(){return"SpecialCharactersMathematical"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:t("Less-than sign")},{character:">",title:t("Greater-than sign")},{character:"≤",title:t("Less-than or equal to")},{character:"≥",title:t("Greater-than or equal to")},{character:"–",title:t("En dash")},{character:"—",title:t("Em dash")},{character:"¯",title:t("Macron")},{character:"‾",title:t("Overline")},{character:"°",title:t("Degree sign")},{character:"−",title:t("Minus sign")},{character:"±",title:t("Plus-minus sign")},{character:"÷",title:t("Division sign")},{character:"⁄",title:t("Fraction slash")},{character:"×",title:t("Multiplication sign")},{character:"ƒ",title:t("Latin small letter f with hook")},{character:"∫",title:t("Integral")},{character:"∑",title:t("N-ary summation")},{character:"∞",title:t("Infinity")},{character:"√",title:t("Square root")},{character:"∼",title:t("Tilde operator")},{character:"≅",title:t("Approximately equal to")},{character:"≈",title:t("Almost equal to")},{character:"≠",title:t("Not equal to")},{character:"≡",title:t("Identical to")},{character:"∈",title:t("Element of")},{character:"∉",title:t("Not an element of")},{character:"∋",title:t("Contains as member")},{character:"∏",title:t("N-ary product")},{character:"∧",title:t("Logical and")},{character:"∨",title:t("Logical or")},{character:"¬",title:t("Not sign")},{character:"∩",title:t("Intersection")},{character:"∪",title:t("Union")},{character:"∂",title:t("Partial differential")},{character:"∀",title:t("For all")},{character:"∃",title:t("There exists")},{character:"∅",title:t("Empty set")},{character:"∇",title:t("Nabla")},{character:"∗",title:t("Asterisk operator")},{character:"∝",title:t("Proportional to")},{character:"∠",title:t("Angle")},{character:"¼",title:t("Vulgar fraction one quarter")},{character:"½",title:t("Vulgar fraction one half")},{character:"¾",title:t("Vulgar fraction three quarters")}],{label:t("Mathematical")})}}class z extends u{static get pluginName(){return"SpecialCharactersLatin"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:t("Latin capital letter a with macron")},{character:"ā",title:t("Latin small letter a with macron")},{character:"Ă",title:t("Latin capital letter a with breve")},{character:"ă",title:t("Latin small letter a with breve")},{character:"Ą",title:t("Latin capital letter a with ogonek")},{character:"ą",title:t("Latin small letter a with ogonek")},{character:"Ć",title:t("Latin capital letter c with acute")},{character:"ć",title:t("Latin small letter c with acute")},{character:"Ĉ",title:t("Latin capital letter c with circumflex")},{character:"ĉ",title:t("Latin small letter c with circumflex")},{character:"Ċ",title:t("Latin capital letter c with dot above")},{character:"ċ",title:t("Latin small letter c with dot above")},{character:"Č",title:t("Latin capital letter c with caron")},{character:"č",title:t("Latin small letter c with caron")},{character:"Ď",title:t("Latin capital letter d with caron")},{character:"ď",title:t("Latin small letter d with caron")},{character:"Đ",title:t("Latin capital letter d with stroke")},{character:"đ",title:t("Latin small letter d with stroke")},{character:"Ē",title:t("Latin capital letter e with macron")},{character:"ē",title:t("Latin small letter e with macron")},{character:"Ĕ",title:t("Latin capital letter e with breve")},{character:"ĕ",title:t("Latin small letter e with breve")},{character:"Ė",title:t("Latin capital letter e with dot above")},{character:"ė",title:t("Latin small letter e with dot above")},{character:"Ę",title:t("Latin capital letter e with ogonek")},{character:"ę",title:t("Latin small letter e with ogonek")},{character:"Ě",title:t("Latin capital letter e with caron")},{character:"ě",title:t("Latin small letter e with caron")},{character:"Ĝ",title:t("Latin capital letter g with circumflex")},{character:"ĝ",title:t("Latin small letter g with circumflex")},{character:"Ğ",title:t("Latin capital letter g with breve")},{character:"ğ",title:t("Latin small letter g with breve")},{character:"Ġ",title:t("Latin capital letter g with dot above")},{character:"ġ",title:t("Latin small letter g with dot above")},{character:"Ģ",title:t("Latin capital letter g with cedilla")},{character:"ģ",title:t("Latin small letter g with cedilla")},{character:"Ĥ",title:t("Latin capital letter h with circumflex")},{character:"ĥ",title:t("Latin small letter h with circumflex")},{character:"Ħ",title:t("Latin capital letter h with stroke")},{character:"ħ",title:t("Latin small letter h with stroke")},{character:"Ĩ",title:t("Latin capital letter i with tilde")},{character:"ĩ",title:t("Latin small letter i with tilde")},{character:"Ī",title:t("Latin capital letter i with macron")},{character:"ī",title:t("Latin small letter i with macron")},{character:"Ĭ",title:t("Latin capital letter i with breve")},{character:"ĭ",title:t("Latin small letter i with breve")},{character:"Į",title:t("Latin capital letter i with ogonek")},{character:"į",title:t("Latin small letter i with ogonek")},{character:"İ",title:t("Latin capital letter i with dot above")},{character:"ı",title:t("Latin small letter dotless i")},{character:"IJ",title:t("Latin capital ligature ij")},{character:"ij",title:t("Latin small ligature ij")},{character:"Ĵ",title:t("Latin capital letter j with circumflex")},{character:"ĵ",title:t("Latin small letter j with circumflex")},{character:"Ķ",title:t("Latin capital letter k with cedilla")},{character:"ķ",title:t("Latin small letter k with cedilla")},{character:"ĸ",title:t("Latin small letter kra")},{character:"Ĺ",title:t("Latin capital letter l with acute")},{character:"ĺ",title:t("Latin small letter l with acute")},{character:"Ļ",title:t("Latin capital letter l with cedilla")},{character:"ļ",title:t("Latin small letter l with cedilla")},{character:"Ľ",title:t("Latin capital letter l with caron")},{character:"ľ",title:t("Latin small letter l with caron")},{character:"Ŀ",title:t("Latin capital letter l with middle dot")},{character:"ŀ",title:t("Latin small letter l with middle dot")},{character:"Ł",title:t("Latin capital letter l with stroke")},{character:"ł",title:t("Latin small letter l with stroke")},{character:"Ń",title:t("Latin capital letter n with acute")},{character:"ń",title:t("Latin small letter n with acute")},{character:"Ņ",title:t("Latin capital letter n with cedilla")},{character:"ņ",title:t("Latin small letter n with cedilla")},{character:"Ň",title:t("Latin capital letter n with caron")},{character:"ň",title:t("Latin small letter n with caron")},{character:"ʼn",title:t("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:t("Latin capital letter eng")},{character:"ŋ",title:t("Latin small letter eng")},{character:"Ō",title:t("Latin capital letter o with macron")},{character:"ō",title:t("Latin small letter o with macron")},{character:"Ŏ",title:t("Latin capital letter o with breve")},{character:"ŏ",title:t("Latin small letter o with breve")},{character:"Ő",title:t("Latin capital letter o with double acute")},{character:"ő",title:t("Latin small letter o with double acute")},{character:"Œ",title:t("Latin capital ligature oe")},{character:"œ",title:t("Latin small ligature oe")},{character:"Ŕ",title:t("Latin capital letter r with acute")},{character:"ŕ",title:t("Latin small letter r with acute")},{character:"Ŗ",title:t("Latin capital letter r with cedilla")},{character:"ŗ",title:t("Latin small letter r with cedilla")},{character:"Ř",title:t("Latin capital letter r with caron")},{character:"ř",title:t("Latin small letter r with caron")},{character:"Ś",title:t("Latin capital letter s with acute")},{character:"ś",title:t("Latin small letter s with acute")},{character:"Ŝ",title:t("Latin capital letter s with circumflex")},{character:"ŝ",title:t("Latin small letter s with circumflex")},{character:"Ş",title:t("Latin capital letter s with cedilla")},{character:"ş",title:t("Latin small letter s with cedilla")},{character:"Š",title:t("Latin capital letter s with caron")},{character:"š",title:t("Latin small letter s with caron")},{character:"Ţ",title:t("Latin capital letter t with cedilla")},{character:"ţ",title:t("Latin small letter t with cedilla")},{character:"Ť",title:t("Latin capital letter t with caron")},{character:"ť",title:t("Latin small letter t with caron")},{character:"Ŧ",title:t("Latin capital letter t with stroke")},{character:"ŧ",title:t("Latin small letter t with stroke")},{character:"Ũ",title:t("Latin capital letter u with tilde")},{character:"ũ",title:t("Latin small letter u with tilde")},{character:"Ū",title:t("Latin capital letter u with macron")},{character:"ū",title:t("Latin small letter u with macron")},{character:"Ŭ",title:t("Latin capital letter u with breve")},{character:"ŭ",title:t("Latin small letter u with breve")},{character:"Ů",title:t("Latin capital letter u with ring above")},{character:"ů",title:t("Latin small letter u with ring above")},{character:"Ű",title:t("Latin capital letter u with double acute")},{character:"ű",title:t("Latin small letter u with double acute")},{character:"Ų",title:t("Latin capital letter u with ogonek")},{character:"ų",title:t("Latin small letter u with ogonek")},{character:"Ŵ",title:t("Latin capital letter w with circumflex")},{character:"ŵ",title:t("Latin small letter w with circumflex")},{character:"Ŷ",title:t("Latin capital letter y with circumflex")},{character:"ŷ",title:t("Latin small letter y with circumflex")},{character:"Ÿ",title:t("Latin capital letter y with diaeresis")},{character:"Ź",title:t("Latin capital letter z with acute")},{character:"ź",title:t("Latin small letter z with acute")},{character:"Ż",title:t("Latin capital letter z with dot above")},{character:"ż",title:t("Latin small letter z with dot above")},{character:"Ž",title:t("Latin capital letter z with caron")},{character:"ž",title:t("Latin small letter z with caron")},{character:"ſ",title:t("Latin small letter long s")}],{label:t("Latin")})}}class j extends u{static get pluginName(){return"SpecialCharactersCurrency"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,t=i.t;i.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:t("Dollar sign")},{character:"€",title:t("Euro sign")},{character:"¥",title:t("Yen sign")},{character:"£",title:t("Pound sign")},{character:"¢",title:t("Cent sign")},{character:"₠",title:t("Euro-currency sign")},{character:"₡",title:t("Colon sign")},{character:"₢",title:t("Cruzeiro sign")},{character:"₣",title:t("French franc sign")},{character:"₤",title:t("Lira sign")},{character:"¤",title:t("Currency sign")},{character:"₿",title:t("Bitcoin sign")},{character:"₥",title:t("Mill sign")},{character:"₦",title:t("Naira sign")},{character:"₧",title:t("Peseta sign")},{character:"₨",title:t("Rupee sign")},{character:"₩",title:t("Won sign")},{character:"₪",title:t("New sheqel sign")},{character:"₫",title:t("Dong sign")},{character:"₭",title:t("Kip sign")},{character:"₮",title:t("Tugrik sign")},{character:"₯",title:t("Drachma sign")},{character:"₰",title:t("German penny sign")},{character:"₱",title:t("Peso sign")},{character:"₲",title:t("Guarani sign")},{character:"₳",title:t("Austral sign")},{character:"₴",title:t("Hryvnia sign")},{character:"₵",title:t("Cedi sign")},{character:"₶",title:t("Livre tournois sign")},{character:"₷",title:t("Spesmilo sign")},{character:"₸",title:t("Tenge sign")},{character:"₹",title:t("Indian rupee sign")},{character:"₺",title:t("Turkish lira sign")},{character:"₻",title:t("Nordic mark sign")},{character:"₼",title:t("Manat sign")},{character:"₽",title:t("Ruble sign")}],{label:t("Currency")})}}class J extends u{static get pluginName(){return"SpecialCharactersEssentials"}static get isOfficialPlugin(){return!0}static get requires(){return[j,R,H,B,z]}}export{$ as SpecialCharacters,B as SpecialCharactersArrows,j as SpecialCharactersCurrency,J as SpecialCharactersEssentials,z as SpecialCharactersLatin,H as SpecialCharactersMathematical,R as SpecialCharactersText};
|