@ncino/web-components 4.2.1 → 4.3.0-preview.10
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/external3.js +1 -0
- package/dist/_virtual/index10.js +1 -1
- package/dist/_virtual/index11.js +1 -1
- package/dist/_virtual/index12.js +1 -0
- package/dist/_virtual/index13.js +1 -0
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/_virtual/index9.js +1 -1
- package/dist/_virtual/index_react.js +1 -0
- package/dist/_virtual/index_react2.js +1 -0
- package/dist/_virtual/react.production.js +1 -0
- package/dist/assets/node_modules/.pnpm/{ckeditor5@45.1.0 → ckeditor5@45.2.1}/node_modules/ckeditor5/dist/ckeditor5.css +1 -1
- package/dist/components/alert/alert.gator.figma.js +7 -0
- package/dist/components/avatar/gator/avatar.gator.figma.js +9 -0
- package/dist/components/banner/gator/banner.gator.figma.js +8 -0
- package/dist/components/banner/gator/banner.gator.js +6 -5
- package/dist/components/button/gator/button.gator.figma.js +12 -4
- package/dist/components/button-group/gator/button-group.gator.figma.js +7 -0
- package/dist/components/checkbox/checkbox.gator.js +9 -6
- package/dist/components/icon/gator/icon.gator.figma.js +7 -2
- package/dist/components/icon/gator/icons.gator.figma.js +1 -0
- package/dist/components/input/gator/dropdown/input-dropdown.gator.js +1 -1
- package/dist/components/input/gator/input-date/input-date.gator.js +1 -1
- package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +6 -3
- package/dist/components/input/gator/input-file/input-file.gator.js +7 -4
- package/dist/components/input/gator/input-phone/input-phone.gator.js +1 -1
- package/dist/components/input/gator/input-time/input-time.gator.js +1 -1
- 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/menu/base/gator/menu.gator.js +1 -1
- package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
- package/dist/components/panel/gator/panel.storybook-test.js +1 -1
- package/dist/components/popover/gator/popover.gator.js +1 -1
- package/dist/components/table/gator/__tests__/test-table-data.js +1 -1
- package/dist/components/table/gator/table.gator.js +77 -32
- package/dist/components/tooltip/gator/tooltip.gator.js +1 -1
- package/dist/components/tooltip/slds/tooltip.slds.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-alignment@45.1.0 → @ckeditor_ckeditor5-alignment@45.2.1}/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autoformat@45.1.0 → @ckeditor_ckeditor5-autoformat@45.2.1}/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-autosave@45.1.0 → @ckeditor_ckeditor5-autosave@45.2.1}/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-basic-styles@45.1.0 → @ckeditor_ckeditor5-basic-styles@45.2.1}/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-block-quote@45.1.0 → @ckeditor_ckeditor5-block-quote@45.2.1}/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-clipboard@45.1.0 → @ckeditor_ckeditor5-clipboard@45.2.1}/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-cloud-services@45.1.0 → @ckeditor_ckeditor5-cloud-services@45.2.1}/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-code-block@45.1.0 → @ckeditor_ckeditor5-code-block@45.2.1}/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-core@45.1.0 → @ckeditor_ckeditor5-core@45.2.1}/node_modules/@ckeditor/ckeditor5-core/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-editor-classic@45.1.0 → @ckeditor_ckeditor5-editor-classic@45.2.1}/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-engine@45.1.0 → @ckeditor_ckeditor5-engine@45.2.1}/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-enter@45.1.0 → @ckeditor_ckeditor5-enter@45.2.1}/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-essentials@45.1.0 → @ckeditor_ckeditor5-essentials@45.2.1}/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-find-and-replace@45.1.0 → @ckeditor_ckeditor5-find-and-replace@45.2.1}/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-font@45.1.0 → @ckeditor_ckeditor5-font@45.2.1}/node_modules/@ckeditor/ckeditor5-font/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-heading@45.1.0 → @ckeditor_ckeditor5-heading@45.2.1}/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-highlight@45.1.0 → @ckeditor_ckeditor5-highlight@45.2.1}/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-horizontal-line@45.1.0 → @ckeditor_ckeditor5-horizontal-line@45.2.1}/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-embed@45.1.0 → @ckeditor_ckeditor5-html-embed@45.2.1}/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-html-support@45.1.0 → @ckeditor_ckeditor5-html-support@45.2.1}/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-image@45.1.0 → @ckeditor_ckeditor5-image@45.2.1}/node_modules/@ckeditor/ckeditor5-image/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-indent@45.1.0 → @ckeditor_ckeditor5-indent@45.2.1}/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-language@45.1.0 → @ckeditor_ckeditor5-language@45.2.1}/node_modules/@ckeditor/ckeditor5-language/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-link@45.1.0 → @ckeditor_ckeditor5-link@45.2.1}/node_modules/@ckeditor/ckeditor5-link/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-list@45.1.0 → @ckeditor_ckeditor5-list@45.2.1}/node_modules/@ckeditor/ckeditor5-list/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-markdown-gfm@45.1.0 → @ckeditor_ckeditor5-markdown-gfm@45.2.1}/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-media-embed@45.1.0 → @ckeditor_ckeditor5-media-embed@45.2.1}/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-mention@45.1.0 → @ckeditor_ckeditor5-mention@45.2.1}/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-page-break@45.1.0 → @ckeditor_ckeditor5-page-break@45.2.1}/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-paragraph@45.1.0 → @ckeditor_ckeditor5-paragraph@45.2.1}/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.2.1/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +28 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-remove-format@45.1.0 → @ckeditor_ckeditor5-remove-format@45.2.1}/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-select-all@45.1.0 → @ckeditor_ckeditor5-select-all@45.2.1}/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-show-blocks@45.1.0 → @ckeditor_ckeditor5-show-blocks@45.2.1}/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.2.1/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +4 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-special-characters@45.1.0 → @ckeditor_ckeditor5-special-characters@45.2.1}/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-style@45.1.0 → @ckeditor_ckeditor5-style@45.2.1}/node_modules/@ckeditor/ckeditor5-style/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-table@45.1.0 → @ckeditor_ckeditor5-table@45.2.1}/node_modules/@ckeditor/ckeditor5-table/dist/index.js +2 -2
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.2.1/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +13 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-ui@45.1.0 → @ckeditor_ckeditor5-ui@45.2.1}/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-undo@45.1.0 → @ckeditor_ckeditor5-undo@45.2.1}/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-upload@45.1.0 → @ckeditor_ckeditor5-upload@45.2.1}/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.2.1/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +112 -0
- package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-widget@45.1.0 → @ckeditor_ckeditor5-widget@45.2.1}/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/client/external.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/common/updates.js +1 -1
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/react/external.js +1 -0
- package/dist/node_modules/.pnpm/@figma_code-connect@1.3.3/node_modules/@figma/code-connect/dist/react/index_react.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
- package/dist/node_modules/.pnpm/{@storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.5.3_ → @storybook_instrumenter@8.6.14_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/instrumenter/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@storybook_test@8.6.14_storybook@8.6.14_prettier@3.5.3_ → @storybook_test@8.6.14_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/test/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_expect@3.2.0 → @vitest_expect@3.2.4}/node_modules/@vitest/expect/dist/index.js +10 -10
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +5 -0
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
- package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/diff.js +1 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +2 -0
- package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/helpers.js +1 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js +1 -1
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js +1 -1
- package/dist/node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js +1 -1
- package/dist/node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/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/ieee754@1.2.1/node_modules/ieee754/index.js +1 -1
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.9/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
- package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/html.js +2 -0
- package/dist/node_modules/.pnpm/loupe@3.1.4/node_modules/loupe/lib/index.js +1 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js +9 -0
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js +1 -0
- package/dist/node_modules/.pnpm/safe-buffer@5.1.2/node_modules/safe-buffer/index.js +1 -1
- package/dist/node_modules/.pnpm/strip-literal@3.0.0/node_modules/strip-literal/dist/index.js +1 -0
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/index.js +1 -1
- package/dist/node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/index.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +1 -1
- package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +1 -1
- package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/input/gator/input-file/input-file.gator.scss.js +1 -1
- package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -1
- package/dist/types/components/alert/alert.gator.figma.d.ts +1 -0
- package/dist/types/components/avatar/gator/avatar.gator.figma.d.ts +1 -0
- package/dist/types/components/banner/gator/banner.gator.d.ts +5 -0
- package/dist/types/components/banner/gator/banner.gator.figma.d.ts +1 -0
- package/dist/types/components/button-group/gator/button-group.gator.figma.d.ts +1 -0
- package/dist/types/components/checkbox/checkbox.gator.d.ts +4 -0
- package/dist/types/components/icon/gator/icons.gator.figma.d.ts +1 -0
- package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.d.ts +4 -0
- package/dist/types/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.test.d.ts +0 -0
- package/dist/types/components/input/gator/input-file/input-file.gator.d.ts +4 -0
- package/dist/types/components/menu/menu-item/gator/menu-item.gator.d.ts +1 -0
- package/dist/types/components/table/gator/__tests__/test-table-data.d.ts +31 -0
- package/dist/types/components/table/gator/table.gator.d.ts +5 -0
- package/dist/types/components/table/table.d.ts +2 -0
- package/dist/utils/vitest-a11y-utils.js +1 -1
- package/package.json +21 -20
- package/web-types.json +26 -4
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@45.1.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +0 -28
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@45.1.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@45.1.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +0 -13
- package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@45.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +0 -104
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.1/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.1/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.0/node_modules/@vitest/runner/dist/chunk-hooks.js +0 -5
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.0/node_modules/@vitest/snapshot/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.0/node_modules/@vitest/spy/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/error.js +0 -2
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.0/node_modules/@vitest/utils/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.8/node_modules/libphonenumber-js/metadata.min.json.js +0 -1
- package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.js +0 -2
- package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.js +0 -1
- /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-icons@45.1.0 → @ckeditor_ckeditor5-icons@45.2.1}/node_modules/@ckeditor/ckeditor5-icons/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@ckeditor_ckeditor5-watchdog@45.1.0 → @ckeditor_ckeditor5-watchdog@45.2.1}/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/channels/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/client-logger/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/core-events/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/csf/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/preview-api/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@storybook_core@8.6.14_prettier@3.5.3_storybook@8.6.14_prettier@3.5.3_ → @storybook_core@8.6.14_prettier@3.6.2_storybook@8.6.14_prettier@3.6.2_}/node_modules/@storybook/core/dist/preview-errors.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_browser@3.2.0_msw@2.7.3_@types_node@22.15.29_typescript@5.8.3__playwright@1.52._b8e25df0066052f4b376435335cc964b → @vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.7_typescript@5.8.3__playwright@1.53.1__894c207534f0ba223b8299d9f5ff1049}/node_modules/@vitest/browser/context.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_pretty-format@3.2.0 → @vitest_pretty-format@3.2.4}/node_modules/@vitest/pretty-format/dist/index.js +0 -0
- /package/dist/node_modules/.pnpm/{@vitest_utils@3.2.0 → @vitest_utils@3.2.4}/node_modules/@vitest/utils/dist/source-map.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/ParseError.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/PhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/constants.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/format.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/isObject.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/isPossible.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/isValid.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/metadata.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/normalizeArguments.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parse.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/es6/tools/semver-compare.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +0 -0
- /package/dist/node_modules/.pnpm/{libphonenumber-js@1.12.8 → libphonenumber-js@1.12.9}/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/arguments.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/array.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/bigint.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/class.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/date.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/error.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/function.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/helpers.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/map.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/number.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/object.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/promise.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/regexp.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/set.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/string.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/symbol.js +0 -0
- /package/dist/node_modules/.pnpm/{loupe@3.1.3 → loupe@3.1.4}/node_modules/loupe/lib/typedarray.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.0_@types_debug@4.1.12_@types_node@22.15.29_@vitest_browser@3.2.0_@vitest_ui@_380928fb48d45118a64498d466bac5bf → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5}/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -0
|
@@ -2,6 +2,7 @@ import { NgcComponent } from '../../../../../utils/components/ngc-component.ts';
|
|
|
2
2
|
export declare class NgcFileUploadPreview extends NgcComponent {
|
|
3
3
|
static styles: import('lit').CSSResult[];
|
|
4
4
|
value: File[];
|
|
5
|
+
uploading: boolean;
|
|
5
6
|
/**
|
|
6
7
|
@property errorText - The error text within the file preview. When populated the preview is put into an error state.
|
|
7
8
|
@type string
|
|
@@ -9,9 +10,12 @@ export declare class NgcFileUploadPreview extends NgcComponent {
|
|
|
9
10
|
errorText: string;
|
|
10
11
|
render(): import('lit').TemplateResult<1>;
|
|
11
12
|
get contentText(): string | import('lit').TemplateResult;
|
|
13
|
+
get uploadingMarkup(): import('lit').TemplateResult<1> | null;
|
|
14
|
+
get actionsMarkup(): import('lit').TemplateResult<1>;
|
|
12
15
|
get inErrorState(): string;
|
|
13
16
|
get defaultIconContent(): import('lit').TemplateResult<1>;
|
|
14
17
|
get errorClass(): "" | "gator-file-upload-preview_error";
|
|
18
|
+
handleCancelUpload(): void;
|
|
15
19
|
}
|
|
16
20
|
declare global {
|
|
17
21
|
interface HTMLElementTagNameMap {
|
|
File without changes
|
|
@@ -23,6 +23,10 @@ export declare class NgcInputFile extends NgcInputBase {
|
|
|
23
23
|
* @property {boolean} multiple If true, allows multiple files to be selected
|
|
24
24
|
*/
|
|
25
25
|
multiple: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @property {boolean} uploading If true, shows an uploading state
|
|
28
|
+
*/
|
|
29
|
+
uploading: boolean;
|
|
26
30
|
dropzoneRef: Ref<HTMLDivElement>;
|
|
27
31
|
hiddenInputContainerRef: Ref<HTMLDivElement>;
|
|
28
32
|
previewRef: Ref<NgcFileUploadPreview>;
|
|
@@ -15,3 +15,34 @@ export declare function getTestData(): ({
|
|
|
15
15
|
account: string;
|
|
16
16
|
selected?: undefined;
|
|
17
17
|
})[];
|
|
18
|
+
export declare function getTestDataWithHeader(): ({
|
|
19
|
+
amount: string;
|
|
20
|
+
date: string;
|
|
21
|
+
business: string;
|
|
22
|
+
name: string;
|
|
23
|
+
type: string;
|
|
24
|
+
account: string;
|
|
25
|
+
selected: boolean;
|
|
26
|
+
isTableHeader?: undefined;
|
|
27
|
+
headerText?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
amount: string;
|
|
30
|
+
date: string;
|
|
31
|
+
business: string;
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
account: string;
|
|
35
|
+
selected?: undefined;
|
|
36
|
+
isTableHeader?: undefined;
|
|
37
|
+
headerText?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
isTableHeader: boolean;
|
|
40
|
+
headerText: string;
|
|
41
|
+
amount?: undefined;
|
|
42
|
+
date?: undefined;
|
|
43
|
+
business?: undefined;
|
|
44
|
+
name?: undefined;
|
|
45
|
+
type?: undefined;
|
|
46
|
+
account?: undefined;
|
|
47
|
+
selected?: undefined;
|
|
48
|
+
})[];
|
|
@@ -14,7 +14,12 @@ export declare class NgcTable extends NjcTable {
|
|
|
14
14
|
handleSelectAll(event: CustomEvent): void;
|
|
15
15
|
private getTableHeaderColumn;
|
|
16
16
|
private getTableBody;
|
|
17
|
+
private getCategoryBody;
|
|
18
|
+
private getTotalRow;
|
|
19
|
+
private parseNumericValue;
|
|
20
|
+
private formatTotal;
|
|
17
21
|
private getTableBodyRow;
|
|
22
|
+
private getTableHeaderRow;
|
|
18
23
|
handleTableBodyRowSelected(event: CustomEvent, rowData: RowData): void;
|
|
19
24
|
get displayedRowData(): RowData[];
|
|
20
25
|
private getTableBodyCell;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{page as n}from"../node_modules/.pnpm/@vitest_browser@3.2.
|
|
1
|
+
import{page as n}from"../node_modules/.pnpm/@vitest_browser@3.2.4_msw@2.7.3_@types_node@24.0.7_typescript@5.8.3__playwright@1.53.1__894c207534f0ba223b8299d9f5ff1049/node_modules/@vitest/browser/context.js";import a from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.7_@vitest_browser@3.2.4_@vitest_ui@3._93f645c93c51b497c065da8f21fff0a5/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js";const p="Supercalifragilisticexpialidocious".repeat(10);async function u(e){return(await a.run(e)).violations}async function x(e){const t=await u(e);o(t,`Expected no axe core violations, but got ${t.length}`).toHaveLength(0)}function h(){return n.viewport(320,256)}function g(e){let t;if(e.scrollWidth!==0?t=e:e.shadowRoot?t=e.shadowRoot.firstElementChild:t=e.firstElementChild,t){const r=t.scrollWidth>t.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function w(e,t,r){var l;let i=e.querySelector(":focus-visible");if(i||(i=(l=e.shadowRoot)==null?void 0:l.querySelector(":focus-visible")),i){const s=getComputedStyle(i).getPropertyValue(t);return o(s).toContain(r)}return o(!0).toBe(!1)}export{w as expectComponentFocusStyle,g as expectComponentNotToHaveHorizontalScrollbar,x as expectNoAxeViolations,h as resizeWindowForReflowTest,u as runAxeAndGetViolations,p as superLongStringForReflowTest};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.3.0-preview.10",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"module": "dist/index.js",
|
|
16
16
|
"engineStrict": false,
|
|
17
17
|
"private": false,
|
|
18
|
-
"packageManager": "pnpm@10.
|
|
18
|
+
"packageManager": "pnpm@10.12.3",
|
|
19
19
|
"exports": {
|
|
20
20
|
".": {
|
|
21
21
|
"import": "./dist/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"dependencies:update": "pnpm dlx npm-check-updates -u",
|
|
55
55
|
"dependencies:update:patch": "pnpm dlx npm-check-updates -u --target patch",
|
|
56
56
|
"dependencies:update:minor": "pnpm dlx npm-check-updates -u --target minor",
|
|
57
|
+
"figma-connect-single": "node scripts/figma-connect-single.js",
|
|
57
58
|
"lint": "eslint .",
|
|
58
59
|
"localize:extract": "lit-localize extract",
|
|
59
60
|
"localize:build": "lit-localize build",
|
|
@@ -70,8 +71,8 @@
|
|
|
70
71
|
"@deltablot/dropzone": "^7.3.1",
|
|
71
72
|
"@floating-ui/dom": "^1.7.1",
|
|
72
73
|
"@lit/localize": "^0.12.2",
|
|
73
|
-
"ckeditor5": "^45.1
|
|
74
|
-
"libphonenumber-js": "^1.12.
|
|
74
|
+
"ckeditor5": "^45.2.1",
|
|
75
|
+
"libphonenumber-js": "^1.12.9",
|
|
75
76
|
"lit": "^3.3.0"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
@@ -95,40 +96,40 @@
|
|
|
95
96
|
"@storybook/test": "^8.6.14",
|
|
96
97
|
"@storybook/web-components": "^8.6.14",
|
|
97
98
|
"@storybook/web-components-vite": "^8.6.14",
|
|
98
|
-
"@types/react": "^19.1.
|
|
99
|
-
"@typescript-eslint/parser": "^8.
|
|
100
|
-
"@vitest/browser": "^3.2.
|
|
101
|
-
"@vitest/coverage-v8": "^3.2.
|
|
102
|
-
"@vitest/ui": "3.2.
|
|
99
|
+
"@types/react": "^19.1.8",
|
|
100
|
+
"@typescript-eslint/parser": "^8.35.0",
|
|
101
|
+
"@vitest/browser": "^3.2.4",
|
|
102
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
103
|
+
"@vitest/ui": "3.2.4",
|
|
103
104
|
"axe-core": "^4.10.3",
|
|
104
105
|
"cem-plugin-expanded-types": "^1.4.0",
|
|
105
|
-
"chromatic": "^12.
|
|
106
|
+
"chromatic": "^12.2.0",
|
|
106
107
|
"conventional-changelog-conventionalcommits": "^9.0.0",
|
|
107
108
|
"custom-element-jet-brains-integration": "^1.7.0",
|
|
108
109
|
"custom-elements-manifest": "^2.1.0",
|
|
109
|
-
"eslint": "^9.
|
|
110
|
+
"eslint": "^9.30.0",
|
|
110
111
|
"eslint-config-standard": "^17.1.0",
|
|
111
|
-
"eslint-plugin-import": "^2.
|
|
112
|
+
"eslint-plugin-import": "^2.32.0",
|
|
112
113
|
"eslint-plugin-json": "^4.0.1",
|
|
113
|
-
"eslint-plugin-n": "^17.
|
|
114
|
+
"eslint-plugin-n": "^17.20.0",
|
|
114
115
|
"eslint-plugin-promise": "^7.2.1",
|
|
115
116
|
"eslint-plugin-storybook": "^0.12.0",
|
|
116
117
|
"eslint-plugin-yml": "1.18.0",
|
|
117
|
-
"glob": "^11.0.
|
|
118
|
+
"glob": "^11.0.3",
|
|
118
119
|
"jsdom": "26.1.0",
|
|
119
|
-
"playwright": "1.
|
|
120
|
-
"postcss": "^8.5.
|
|
120
|
+
"playwright": "1.53.1",
|
|
121
|
+
"postcss": "^8.5.6",
|
|
121
122
|
"rimraf": "^6.0.1",
|
|
122
|
-
"sass": "1.89.
|
|
123
|
+
"sass": "1.89.2",
|
|
123
124
|
"storybook": "^8.6.14",
|
|
124
125
|
"storybook-addon-code-editor": "^4.1.2",
|
|
125
126
|
"storybook-dark-mode": "^4.0.2",
|
|
126
|
-
"storybook-design-token": "^3.
|
|
127
|
+
"storybook-design-token": "^3.3.0",
|
|
127
128
|
"typescript": "^5.8.3",
|
|
128
129
|
"vite": "6.3.5",
|
|
129
130
|
"vite-plugin-dts": "4.5.4",
|
|
130
|
-
"vite-plugin-static-copy": "^3.0.
|
|
131
|
-
"vitest": "^3.2.
|
|
131
|
+
"vite-plugin-static-copy": "^3.0.2",
|
|
132
|
+
"vitest": "^3.2.4",
|
|
132
133
|
"wc-storybook-helpers": "2.0.4",
|
|
133
134
|
"yaml-eslint-parser": "^1.3.0"
|
|
134
135
|
},
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@ncino/web-components",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.3.0-preview.9",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -695,6 +695,10 @@
|
|
|
695
695
|
"description": "\n---\n\n\n### **Methods:**\n - **removeAttributesFromHost(name: _string_, oldValue: _string_, newValue: _string_)** - Removes an attribute from the host element and stores its original value in the map.\nAlso updates the corresponding `dataset` property for the attribute.\n- **restoreAttributesToHost()** - Restores all previously removed attributes to the host element.\nClears the map of removed attributes after restoration.\n\n### **Slots:**\n - _default_ - The content within the banner",
|
|
696
696
|
"doc-url": "",
|
|
697
697
|
"attributes": [
|
|
698
|
+
{
|
|
699
|
+
"name": "skeleton",
|
|
700
|
+
"value": { "type": "boolean", "default": "false" }
|
|
701
|
+
},
|
|
698
702
|
{
|
|
699
703
|
"name": "variant",
|
|
700
704
|
"value": {
|
|
@@ -713,6 +717,7 @@
|
|
|
713
717
|
"events": [],
|
|
714
718
|
"js": {
|
|
715
719
|
"properties": [
|
|
720
|
+
{ "name": "skeleton", "type": "boolean" },
|
|
716
721
|
{ "name": "contentRef", "type": "Ref<HTMLDivElement>" },
|
|
717
722
|
{ "name": "hasActions", "type": "boolean" },
|
|
718
723
|
{ "name": "variantClass" },
|
|
@@ -1750,6 +1755,10 @@
|
|
|
1750
1755
|
"name": "indeterminate",
|
|
1751
1756
|
"value": { "type": "boolean", "default": "false" }
|
|
1752
1757
|
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "hide-label",
|
|
1760
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1761
|
+
},
|
|
1753
1762
|
{
|
|
1754
1763
|
"name": "disabled",
|
|
1755
1764
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -1771,6 +1780,7 @@
|
|
|
1771
1780
|
{ "name": "value", "type": "string" },
|
|
1772
1781
|
{ "name": "selected", "type": "boolean" },
|
|
1773
1782
|
{ "name": "indeterminate", "type": "boolean" },
|
|
1783
|
+
{ "name": "hideLabel", "type": "boolean" },
|
|
1774
1784
|
{ "name": "disabled", "type": "boolean" },
|
|
1775
1785
|
{ "name": "hasError", "type": "boolean" },
|
|
1776
1786
|
{ "name": "inputRef", "type": "Ref<HTMLInputElement>" },
|
|
@@ -3629,10 +3639,14 @@
|
|
|
3629
3639
|
},
|
|
3630
3640
|
{
|
|
3631
3641
|
"name": "ngc-file-upload-preview",
|
|
3632
|
-
"description": "\n---\n\n\n### **Methods:**\n - **removeAttributesFromHost(name: _string_, oldValue: _string_, newValue: _string_)** - Removes an attribute from the host element and stores its original value in the map.\nAlso updates the corresponding `dataset` property for the attribute.\n- **restoreAttributesToHost()** - Restores all previously removed attributes to the host element.\nClears the map of removed attributes after restoration.",
|
|
3642
|
+
"description": "\n---\n\n\n### **Events:**\n - **cancel-upload**\n\n### **Methods:**\n - **removeAttributesFromHost(name: _string_, oldValue: _string_, newValue: _string_)** - Removes an attribute from the host element and stores its original value in the map.\nAlso updates the corresponding `dataset` property for the attribute.\n- **restoreAttributesToHost()** - Restores all previously removed attributes to the host element.\nClears the map of removed attributes after restoration.",
|
|
3633
3643
|
"doc-url": "",
|
|
3634
3644
|
"attributes": [
|
|
3635
3645
|
{ "name": "value", "value": { "type": "File[]", "default": "[]" } },
|
|
3646
|
+
{
|
|
3647
|
+
"name": "uploading",
|
|
3648
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3649
|
+
},
|
|
3636
3650
|
{
|
|
3637
3651
|
"name": "error-text",
|
|
3638
3652
|
"value": { "type": "string", "default": "''" }
|
|
@@ -3647,12 +3661,15 @@
|
|
|
3647
3661
|
"value": { "type": "string | undefined", "default": "undefined" }
|
|
3648
3662
|
}
|
|
3649
3663
|
],
|
|
3650
|
-
"events": [],
|
|
3664
|
+
"events": [{ "name": "cancel-upload", "type": "CustomEvent" }],
|
|
3651
3665
|
"js": {
|
|
3652
3666
|
"properties": [
|
|
3653
3667
|
{ "name": "value", "type": "File[]" },
|
|
3668
|
+
{ "name": "uploading", "type": "boolean" },
|
|
3654
3669
|
{ "name": "errorText", "type": "string" },
|
|
3655
3670
|
{ "name": "contentText" },
|
|
3671
|
+
{ "name": "uploadingMarkup" },
|
|
3672
|
+
{ "name": "actionsMarkup" },
|
|
3656
3673
|
{ "name": "inErrorState" },
|
|
3657
3674
|
{ "name": "defaultIconContent" },
|
|
3658
3675
|
{ "name": "errorClass" },
|
|
@@ -3671,7 +3688,7 @@
|
|
|
3671
3688
|
{ "name": "helpTextDataTestid" },
|
|
3672
3689
|
{ "name": "errorMessageDataTestid" }
|
|
3673
3690
|
],
|
|
3674
|
-
"events": []
|
|
3691
|
+
"events": [{ "name": "cancel-upload", "type": "CustomEvent" }]
|
|
3675
3692
|
}
|
|
3676
3693
|
},
|
|
3677
3694
|
{
|
|
@@ -3702,6 +3719,10 @@
|
|
|
3702
3719
|
"name": "multiple",
|
|
3703
3720
|
"value": { "type": "boolean", "default": "false" }
|
|
3704
3721
|
},
|
|
3722
|
+
{
|
|
3723
|
+
"name": "uploading",
|
|
3724
|
+
"value": { "type": "boolean", "default": "false" }
|
|
3725
|
+
},
|
|
3705
3726
|
{ "name": "id", "value": { "type": "string", "default": "''" } },
|
|
3706
3727
|
{
|
|
3707
3728
|
"name": "required",
|
|
@@ -3775,6 +3796,7 @@
|
|
|
3775
3796
|
{ "name": "state", "type": "string" },
|
|
3776
3797
|
{ "name": "size", "type": "string" },
|
|
3777
3798
|
{ "name": "multiple", "type": "boolean" },
|
|
3799
|
+
{ "name": "uploading", "type": "boolean" },
|
|
3778
3800
|
{ "name": "dropzoneRef", "type": "Ref<HTMLDivElement>" },
|
|
3779
3801
|
{
|
|
3780
3802
|
"name": "hiddenInputContainerRef",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
var w=Object.defineProperty;var M=(e,t,s)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var b=(e,t,s)=>M(e,typeof t!="symbol"?t+"":t,s);import{Plugin as T}from"../../../../../@ckeditor_ckeditor5-core@45.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ClipboardPipeline as P}from"../../../../../@ckeditor_ckeditor5-clipboard@45.1.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{UpcastWriter as y,ViewDocument as L,DomConverter as E,Matcher as x}from"../../../../../@ckeditor_ckeditor5-engine@45.1.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
|
-
*//**
|
|
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 R(e,t){const s=[];for(const n of t.createRangeIn(e)){const i=n.item;i.is("element","a")&&!i.hasAttribute("href")&&(i.hasAttribute("id")||i.hasAttribute("name"))&&s.push(i)}for(const n of s){const i=n.parent.getChildIndex(n)+1,l=n.getChildren();t.insertChild(i,l,n.parent)}}/**
|
|
8
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
9
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
10
|
-
*/function W(e){const t=parseFloat(e);return e.endsWith("pt")?h(t*96/72):e.endsWith("pc")?h(t*12*96/72):e.endsWith("in")?h(t*96):e.endsWith("cm")?h(t*96/2.54):e.endsWith("mm")?h(t/10*96/2.54):e}function v(e){return e!==void 0&&e.endsWith("px")}function h(e){return e.toFixed(2).replace(/\.?0+$/,"")+"px"}function k(e,t,s){if(!e.childCount)return;const n=new y(e.document),i=N(e,n);if(!i.length)return;const l={},r=[];for(const o of i)if(o.indent!==void 0){B(o)||(r.length=0);const a=`${o.id}:${o.indent}`,c=Math.min(o.indent-1,r.length);if(c<r.length&&r[c].id!==o.id&&(r.length=c),c<r.length-1)r.length=c+1;else{const m=$(o,t);if(c>r.length-1||r[c].listElement.name!=m.type){c==0&&m.type=="ol"&&o.id!==void 0&&l[a]&&(m.startIndex=l[a]);const d=F(m,n,s);if(v(o.marginLeft)&&(c==0||v(r[c-1].marginLeft))){let u=o.marginLeft;c>0&&(u=h(parseFloat(u)-parseFloat(r[c-1].marginLeft))),n.setStyle("padding-left",u,d)}if(r.length==0){const u=o.element.parent,g=u.getChildIndex(o.element)+1;n.insertChild(g,d,u)}else{const u=r[c-1].listItemElements;n.appendChild(d,u[u.length-1])}r[c]={...o,listElement:d,listItemElements:[]},c==0&&o.id!==void 0&&(l[a]=m.startIndex||1)}}const f=o.element.name=="li"?o.element:n.createElement("li");n.appendChild(f,r[c].listElement),r[c].listItemElements.push(f),c==0&&o.id!==void 0&&l[a]++,o.element!=f&&n.appendChild(o.element,f),H(o.element,n),n.removeStyle("text-indent",o.element),n.removeStyle("margin-left",o.element)}else{const a=r.find(c=>c.marginLeft==o.marginLeft);if(a){const c=a.listItemElements;n.appendChild(o.element,c[c.length-1]),n.removeStyle("margin-left",o.element)}else r.length=0}}function D(e,t){for(const s of t.createRangeIn(e)){const n=s.item;if(n.is("element","li")){const i=n.getChild(0);i&&i.is("element","p")&&t.unwrapElement(i)}}}function N(e,t){const s=t.createRangeIn(e),n=[],i=new Set;for(const l of s.getItems()){if(!l.is("element")||!l.name.match(/^(p|h\d+|li|div)$/))continue;let r=V(l);if(r!==void 0&&parseFloat(r)==0&&!Array.from(l.getClassNames()).find(o=>o.startsWith("MsoList"))&&(r=void 0),l.hasStyle("mso-list")||r!==void 0&&i.has(r)){const o=_(l);n.push({element:l,id:o.id,order:o.order,indent:o.indent,marginLeft:r}),r!==void 0&&i.add(r)}else i.clear()}return n}function B(e){const t=e.element.previousSibling;return S(t||e.element.parent)}function S(e){return e.is("element","ol")||e.is("element","ul")}function $(e,t){const s=new RegExp(`@list l${e.id}:level${e.indent}\\s*({[^}]*)`,"gi"),n=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,l=new RegExp(`@list\\s+l${e.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),r=new RegExp(`@list l${e.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),o=l.exec(t),a=r.exec(t),c=o&&!a,f=s.exec(t);let m="decimal",d="ol",u=null;if(f&&f[1]){const g=n.exec(f[1]);if(g&&g[1]&&(m=g[1].trim(),d=m!=="bullet"&&m!=="image"?"ol":"ul"),m==="bullet"){const p=O(e.element);p&&(m=p)}else{const p=i.exec(f[1]);p&&p[1]&&(u=parseInt(p[1]))}c&&(d="ol")}return{type:d,startIndex:u,style:j(m),isLegalStyleList:c}}function O(e){if(e.name=="li"&&e.parent.name=="ul"&&e.parent.hasAttribute("type"))return e.parent.getAttribute("type");const t=z(e);if(!t)return null;const s=t._data;return s==="o"?"circle":s==="·"?"disc":s==="§"?"square":null}function z(e){if(e.getChild(0).is("$text"))return null;for(const t of e.getChildren()){if(!t.is("element","span"))continue;const s=t.getChild(0);if(s)return s.is("$text")?s:s.getChild(0)}/* istanbul ignore next -- @preserve */return null}function j(e){if(e.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(e){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}function F(e,t,s){const n=t.createElement(e.type);return e.style&&t.setStyle("list-style-type",e.style,n),e.startIndex&&e.startIndex>1&&t.setAttribute("start",e.startIndex,n),e.isLegalStyleList&&s&&t.addClass("legal-list",n),n}function _(e){const t=e.getStyle("mso-list");if(t===void 0)return{};const s=t.match(/(^|\s{1,100})l(\d+)/i),n=t.match(/\s{0,100}lfo(\d+)/i),i=t.match(/\s{0,100}level(\d+)/i);return s&&n&&i?{id:s[2],order:n[1],indent:parseInt(i[1])}:{indent:1}}function H(e,t){const s=new x({name:"span",styles:{"mso-list":"Ignore"}}),n=t.createRangeIn(e);for(const i of n)i.type==="elementStart"&&s.match(i.item)&&t.remove(i.item)}function V(e){const t=e.getStyle("margin-left");return t===void 0||t.endsWith("px")?t:W(t)}function q(e,t){if(!e.childCount)return;const s=new y(e.document),n=U(e,s);X(n,e,s),K(n,e,s),J(e,s);const i=Q(e,s);i.length&&Z(i,Y(t),s)}function G(e){return btoa(e.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}function U(e,t){const s=t.createRangeIn(e),n=new x({name:/v:(.+)/}),i=[];for(const l of s){if(l.type!="elementStart")continue;const r=l.item,o=r.previousSibling,a=o&&o.is("element")?o.name:null,c=["Chart"],f=n.match(r),m=r.getAttribute("o:gfxdata"),d=a==="v:shapetype",u=m&&c.some(g=>r.getAttribute("id").includes(g));f&&m&&!d&&!u&&i.push(l.item.getAttribute("id"))}return i}function X(e,t,s){const n=s.createRangeIn(t),i=new x({name:"img"}),l=[];for(const r of n)if(r.item.is("element")&&i.match(r.item)){const o=r.item,a=o.getAttribute("v:shapes")?o.getAttribute("v:shapes").split(" "):[];a.length&&a.every(c=>e.indexOf(c)>-1)?l.push(o):o.getAttribute("src")||l.push(o)}for(const r of l)s.remove(r)}function J(e,t){const s=t.createRangeIn(e),n=new x({name:/v:(.+)/}),i=[];for(const l of s)l.type=="elementStart"&&n.match(l.item)&&i.push(l.item);for(const l of i)t.remove(l)}function K(e,t,s){const n=s.createRangeIn(t),i=[];for(const o of n)if(o.type=="elementStart"&&o.item.is("element","v:shape")){const a=o.item.getAttribute("id");if(e.includes(a))continue;l(o.item.parent.getChildren(),a)||i.push(o.item)}for(const o of i){const a={src:r(o)};o.hasAttribute("alt")&&(a.alt=o.getAttribute("alt"));const c=s.createElement("img",a);s.insertChild(o.index+1,c,o.parent)}function l(o,a){for(const c of o){/* istanbul ignore else -- @preserve */if(c.is("element")&&(c.name=="img"&&c.getAttribute("v:shapes")==a||l(c.getChildren(),a)))return!0}return!1}function r(o){for(const a of o.getChildren()){/* istanbul ignore else -- @preserve */if(a.is("element")&&a.getAttribute("src"))return a.getAttribute("src")}}}function Q(e,t){const s=t.createRangeIn(e),n=new x({name:"img"}),i=[];let l=0;for(const r of s)r.item.is("element")&&n.match(r.item)&&(r.item.getAttribute("src").startsWith("file://")&&i.push({element:r.item,imageIndex:l}),l++);return i}function Y(e){if(!e)return[];const t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,s=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),n=e.match(s),i=[];if(n)for(const l of n){let r=!1;l.includes("\\pngblip")?r="image/png":l.includes("\\jpegblip")&&(r="image/jpeg"),r&&i.push({hex:l.replace(t,"").replace(/[^\da-fA-F]/g,""),type:r})}return i}function Z(e,t,s){for(let n=0;n<e.length;n++){const{element:i,imageIndex:l}=e[n],r=t[l];if(r){const o=`data:${r.type};base64,${G(r.hex)}`;s.setAttribute("src",o,i)}}}function ee(e){const t=[],s=new y(e.document);for(const{item:n}of s.createRangeIn(e))if(n.is("element")){for(const i of n.getClassNames())/\bmso/gi.exec(i)&&s.removeClass(i,n);for(const i of n.getStyleNames())/\bmso/gi.exec(i)&&s.removeStyle(i,n);(n.is("element","w:sdt")||n.is("element","w:sdtpr")&&n.isEmpty||n.is("element","o:p")&&n.isEmpty)&&t.push(n)}for(const n of t){const i=n.parent,l=i.getChildIndex(n);s.insertChild(l,n.getChildren(),i),s.remove(n)}}const te=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,ne=/xmlns:o="urn:schemas-microsoft-com/i;class se{constructor(t,s=!1){b(this,"document");b(this,"hasMultiLevelListPlugin");this.document=t,this.hasMultiLevelListPlugin=s}isActive(t){return te.test(t)||ne.test(t)}execute(t){const s=new y(this.document),{body:n,stylesString:i}=t._parsedData;R(n,s),k(n,i,this.hasMultiLevelListPlugin),q(n,t.dataTransfer.getData("text/rtf")),ee(n),t.content=n}}/**
|
|
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 ie(e,t){for(const s of e.getChildren())if(s.is("element","b")&&s.getStyle("font-weight")==="normal"){const n=e.getChildIndex(s);t.remove(s),t.insertChild(n,s.getChildren(),e)}}function oe(e,t){const s=new L(t.document.stylesProcessor),n=new E(s,{renderingMode:"data"}),i=n.blockElements,l=n.inlineObjectElements,r=[];for(const o of t.createRangeIn(e)){const a=o.item;if(a.is("element","br")){const c=I(a,"forward",t,{blockElements:i,inlineObjectElements:l}),f=I(a,"backward",t,{blockElements:i,inlineObjectElements:l}),m=C(c,i);(C(f,i)||m)&&r.push(a)}}for(const o of r)o.hasClass("Apple-interchange-newline")?t.remove(o):t.replace(o,t.createElement("p"))}function I(e,t,s,{blockElements:n,inlineObjectElements:i}){let l=s.createPositionAt(e,t=="forward"?"after":"before");return l=l.getLastMatchingPosition(({item:r})=>r.is("element")&&!n.includes(r.name)&&!i.includes(r.name),{direction:t}),t=="forward"?l.nodeAfter:l.nodeBefore}function C(e,t){return!!e&&e.is("element")&&t.includes(e.name)}const re=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class le{constructor(t){b(this,"document");this.document=t}isActive(t){return re.test(t)}execute(t){const s=new y(this.document),{body:n}=t._parsedData;ie(n,s),D(n,s),oe(n,s),t.content=n}}/**
|
|
14
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
15
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
16
|
-
*/function ce(e,t){for(const s of e.getChildren())s.is("element","table")&&s.hasAttribute("xmlns")&&t.removeAttribute("xmlns",s)}/**
|
|
17
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
18
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
19
|
-
*/function ae(e,t){for(const s of e.getChildren())if(s.is("element","google-sheets-html-origin")){const n=e.getChildIndex(s);t.remove(s),t.insertChild(n,s.getChildren(),e)}}/**
|
|
20
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
21
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
22
|
-
*/function me(e,t){for(const s of e.getChildren())s.is("element","table")&&s.getStyle("width")==="0px"&&t.removeStyle("width",s)}/**
|
|
23
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
24
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
25
|
-
*/function fe(e,t){for(const s of Array.from(e.getChildren()))s.is("element","style")&&t.remove(s)}const ue=/<google-sheets-html-origin/i;class de{constructor(t){b(this,"document");this.document=t}isActive(t){return ue.test(t)}execute(t){const s=new y(this.document),{body:n}=t._parsedData;ae(n,s),ce(n,s),me(n,s),fe(n,s),t.content=n}}/**
|
|
26
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
27
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
28
|
-
*/function ge(e){return A(A(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/(<span\s+style=['"]letter-spacing:[^'"]+?['"]>)[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}function pe(e){e.querySelectorAll("span[style*=spacerun]").forEach(t=>{const s=t,n=s.innerText.length||0;s.innerText=Array(n+1).join(" ").substr(0,n)})}function A(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(t,s)=>s.length===1?" ":Array(s.length+1).join(" ").substr(0,s.length))}function he(e,t){const s=new DOMParser;e=e.replace(/<!--\[if gte vml 1]>/g,""),e=e.replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,"");const n=ge(xe(e)),i=s.parseFromString(n,"text/html");pe(i);const l=i.body.innerHTML,r=ye(i,t),o=be(i);return{body:r,bodyString:l,styles:o.styles,stylesString:o.stylesString}}function ye(e,t){const s=new L(t),n=new E(s,{renderingMode:"data"}),i=e.createDocumentFragment(),l=e.body.childNodes;for(;l.length>0;)i.appendChild(l[0]);return n.domToView(i,{skipComments:!0})}function be(e){const t=[],s=[],n=Array.from(e.getElementsByTagName("style"));for(const i of n)i.sheet&&i.sheet.cssRules&&i.sheet.cssRules.length&&(t.push(i.sheet),s.push(i.innerHTML));return{styles:t,stylesString:s.join(" ")}}function xe(e){const t="</body>",s="</html>",n=e.indexOf(t);if(n<0)return e;const i=e.indexOf(s,n+t.length);return e.substring(0,n+t.length)+(i>=0?e.substring(i):"")}class Ae extends T{static get pluginName(){return"PasteFromOffice"}static get isOfficialPlugin(){return!0}static get requires(){return[P]}init(){const t=this.editor,s=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,i=[],l=this.editor.plugins.has("MultiLevelList");i.push(new se(n,l)),i.push(new le(n)),i.push(new de(n)),s.on("inputTransformation",(r,o)=>{if(o._isTransformedWithPasteFromOffice||t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const c=o.dataTransfer.getData("text/html"),f=i.find(m=>m.isActive(c));f&&(o._parsedData||(o._parsedData=he(c,n.stylesProcessor)),f.execute(o),o._isTransformedWithPasteFromOffice=!0)},{priority:"high"})}}export{se as MSWordNormalizer,Ae as PasteFromOffice,he as parseHtml};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var E=Object.defineProperty;var b=(s,a,e)=>a in s?E(s,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[a]=e;var l=(s,a,e)=>b(s,typeof a!="symbol"?a+"":a,e);import{Plugin as V,PendingActions as h}from"../../../../../@ckeditor_ckeditor5-core@45.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{IconSource as _}from"../../../../../@ckeditor_ckeditor5-icons@45.1.0/node_modules/@ckeditor/ckeditor5-icons/dist/index.js";import{ButtonView as w,MenuBarMenuListItemButtonView as R}from"../../../../../@ckeditor_ckeditor5-ui@45.1.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{ElementReplacer as S,CKEditorError as y,createElement as f}from"../../../../../@ckeditor_ckeditor5-utils@45.1.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 v(s){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=s.replace(new RegExp(`</?(${e})( .*?)?>`,"g"),`
|
|
8
|
-
$&
|
|
9
|
-
`).replace(/<br[^>]*>/g,`$&
|
|
10
|
-
`).split(`
|
|
11
|
-
`);let i=0,n=!1;return t.filter(o=>o.length).map(o=>(n=M(o,n),D(o,a)?m(o,i++):C(o,a)?m(o,--i):n==="middle"||n==="last"?o:m(o,i))).join(`
|
|
12
|
-
`)}function D(s,a){return a.some(e=>!(e.isVoid||!new RegExp(`<${e.name}( .*?)?>`).test(s)))}function C(s,a){return a.some(e=>new RegExp(`</${e.name}>`).test(s))}function m(s,a,e=" "){return`${e.repeat(Math.max(0,a))}${s}`}function M(s,a){return new RegExp("<pre( .*?)?>").test(s)?"first":new RegExp("</pre>").test(s)?"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[h]}init(){this._checkCompatibility();const e=this.editor,t=e.locale.t;e.ui.componentFactory.add("sourceEditing",()=>{const i=this._createButton(w);return i.set({label:t("Source"),icon:_,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,n,o)=>{o?(this._hideVisibleDialog(),this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(i,n,o)=>this._handleReadOnlyMode(!o)),this.listenTo(e,"change:isReadOnly",(i,n,o)=>this._handleReadOnlyMode(o))),e.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}updateEditorData(){const e=this.editor,t={};for(const[i,n]of this._replacedRoots){const o=this._dataFromRoots.get(i),r=n.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 y("source-editing-incompatible-with-real-time-collaboration",null);!t&&["CommentsEditing","TrackChangesEditing","RevisionHistory"].some(n=>e.plugins.has(n))&&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(n=>{n.setSelection(null),n.removeSelectionAttribute(i.document.selection.getAttributeKeys())});for(const[n,o]of t.domRoots){const r=O(e.data.get({rootName:n})),d=f(o.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),u=f(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(n);g.addClass("ck-hidden",p)}),e.ui.setEditableElement("sourceEditing:"+n,d),this._replacedRoots.set(n,u),this._elementReplacer.replace(o,u),this._dataFromRoots.set(n,r)}this._hideDocumentOutline(),this._refreshAnnotationsVisibility(),this._focusSourceEditing()}_hideSourceEditing(){const t=this.editor.editing.view;this.updateEditorData(),t.change(i=>{for(const[n]of this._replacedRoots)i.removeClass("ck-hidden",t.document.getRoot(n))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),this._showDocumentOutline(),this._refreshAnnotationsVisibility(),t.focus()}_hideDocumentOutline(){this.editor.plugins.has("DocumentOutlineUI")&&(this.editor.plugins.get("DocumentOutlineUI").view.element.style.display="none")}_showDocumentOutline(){this.editor.plugins.has("DocumentOutlineUI")&&(this.editor.plugins.get("DocumentOutlineUI").view.element.style.display="")}_refreshAnnotationsVisibility(){this.editor.plugins.has("Annotations")&&this.editor.plugins.get("Annotations").refreshVisibility()}_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(h),"hasAny",(n,o,r)=>!(!n||o||r)),this.listenTo(i,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),i}}function O(s){return x(s)?v(s):s}function x(s){return s.startsWith("<")}export{B as SourceEditing};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var V=Object.defineProperty;var Y=(o,r,e)=>r in o?V(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e;var h=(o,r,e)=>Y(o,typeof r!="symbol"?r+"":r,e);import{Plugin as O,Command as $}from"../../../../../@ckeditor_ckeditor5-core@45.1.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{keyCodes as E,ObservableMixin as J,env as T,count as X,isInsideSurrogatePair as Z,isInsideCombinedSymbol as ee,isInsideEmojiSequence as te,EventInfo as ne}from"../../../../../@ckeditor_ckeditor5-utils@45.1.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{BubblingEventInfo as F,DomEventData as R,Observer as W,MouseObserver as ie,TouchObserver as se,LiveRange as oe,FocusObserver as re}from"../../../../../@ckeditor_ckeditor5-engine@45.1.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{escapeRegExp as ce}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/string/escapeRegExp.js";import{debounce as le}from"../../../../../es-toolkit@1.32.0/node_modules/es-toolkit/dist/compat/function/debounce.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
|
-
*/class U{constructor(r,e=20){h(this,"model");h(this,"limit");h(this,"_isLocked");h(this,"_size");h(this,"_batch",null);h(this,"_changeCallback");h(this,"_selectionChangeCallback");this.model=r,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(t,n)=>{n.isLocal&&n.isUndoable&&n!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){(!this.isLocked||r)&&(this._batch=null,this._size=0)}}class ae extends ${constructor(e,t){super(e);h(this,"_buffer");this._buffer=new U(e.model,t),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(e={}){const t=this.editor.model,n=t.document,i=e.text||"",s=i.length;let l=n.selection;if(e.selection?l=e.selection:e.range&&(l=t.createSelection(e.range)),!t.canEditAt(l))return;const c=e.resultRange;t.enqueueChange(this._buffer.batch,a=>{this._buffer.lock();const u=Array.from(n.selection.getAttributes());t.deleteContent(l),i&&t.insertContent(a.createText(i,u),l),c?a.setSelection(c):l.is("documentSelection")||a.setSelection(l),this._buffer.unlock(),this._buffer.input(s)})}}const Q=["insertText","insertReplacementText"],ue=[...Q,"insertCompositionText"];class de extends W{constructor(e){super(e);h(this,"focusObserver");this.focusObserver=e.getObserver(re);const t=T.isAndroid?ue:Q,n=e.document;n.on("beforeinput",(i,s)=>{if(!this.isEnabled)return;const{data:l,targetRanges:c,inputType:a,domEvent:u,isComposing:d}=s;if(!t.includes(a))return;this.focusObserver.flush();const f=new ne(n,"insertText");n.fire(f,new R(e,u,{text:l,selection:e.createSelection(c),isComposing:d})),f.stop.called&&i.stop()}),T.isAndroid||n.on("compositionend",(i,{data:s,domEvent:l})=>{this.isEnabled&&s&&n.fire("insertText",new R(e,l,{text:s,isComposing:!0}))},{priority:"low"})}observe(){}stopObserving(){}}class fe extends O{constructor(){super(...arguments);h(this,"_typingQueue")}static get pluginName(){return"Input"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model,n=e.editing.view,i=e.editing.mapper,s=t.document.selection;this._typingQueue=new he(e),n.addObserver(de);const l=new ae(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",l),e.commands.add("input",l),this.listenTo(n.document,"beforeinput",()=>{this._typingQueue.flush("next beforeinput")},{priority:"high"}),this.listenTo(n.document,"insertText",(c,a)=>{const{text:u,selection:d}=a;if(n.document.selection.isFake&&d&&n.document.selection.isSimilar(d)&&a.preventDefault(),!l.isEnabled){a.preventDefault();return}let f;d?f=Array.from(d.getRanges()).map(g=>i.toModelRange(g)):f=Array.from(s.getRanges());let m=u;if(T.isAndroid){const g=Array.from(f[0].getItems()).reduce((v,w)=>v+(w.is("$textProxy")?w.data:""),"");if(g&&(g.length<=m.length?m.startsWith(g)&&(m=m.substring(g.length),f[0].start=f[0].start.getShiftedBy(g.length)):g.startsWith(m)&&(f[0].start=f[0].start.getShiftedBy(m.length),m="")),m.length==0&&f[0].isCollapsed)return}const p={text:m,selection:t.createSelection(f)};this._typingQueue.push(p,!!a.isComposing),a.domEvent.defaultPrevented&&this._typingQueue.flush("beforeinput default prevented")}),T.isAndroid?this.listenTo(n.document,"keydown",(c,a)=>{s.isCollapsed||a.keyCode!=229||!n.document.isComposing||I(t,l)}):this.listenTo(n.document,"compositionstart",()=>{s.isCollapsed||I(t,l)},{priority:"high"}),this.listenTo(n.document,"mutations",(c,{mutations:a})=>{if(this._typingQueue.hasAffectedElements())for(const{node:u}of a){const d=ge(u,i),f=i.toModelElement(d);if(this._typingQueue.isElementAffected(f)){this._typingQueue.flush("mutations");return}}}),this.listenTo(n.document,"compositionend",()=>{this._typingQueue.flush("before composition end")},{priority:"high"}),this.listenTo(n.document,"compositionend",()=>{this._typingQueue.flush("after composition end");const c=[];if(this._typingQueue.hasAffectedElements())for(const a of this._typingQueue.flushAffectedElements()){const u=i.toViewElement(a);u&&c.push({type:"children",node:u})}(c.length||!T.isAndroid)&&n.document.fire("mutations",{mutations:c})},{priority:"lowest"})}destroy(){super.destroy(),this._typingQueue.destroy()}}class he{constructor(r){h(this,"editor");h(this,"flushDebounced",le(()=>this.flush("timeout"),50));h(this,"_queue",[]);h(this,"_isComposing",!1);h(this,"_affectedElements",new Set);this.editor=r}destroy(){for(this.flushDebounced.cancel(),this._affectedElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(r,e){const t={text:r.text};if(r.selection){t.selectionRanges=[];for(const n of r.selection.getRanges())t.selectionRanges.push(oe.fromRange(n)),this._affectedElements.add(n.start.parent)}this._queue.push(t),this._isComposing||(this._isComposing=e),this.flushDebounced()}shift(){const r=this._queue.shift(),e={text:r.text};if(r.selectionRanges){const t=r.selectionRanges.map(n=>me(n)).filter(n=>!!n);t.length&&(e.selection=this.editor.model.createSelection(t))}return e}flush(r){const e=this.editor,t=e.model,n=e.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;const s=e.commands.get("insertText").buffer;t.enqueueChange(s.batch,()=>{for(s.lock();this._queue.length;){const l=this.shift();e.execute("insertText",l)}s.unlock(),this._isComposing||this._affectedElements.clear(),this._isComposing=!1}),n.scrollToTheSelection()}isElementAffected(r){return this._affectedElements.has(r)}hasAffectedElements(){return this._affectedElements.size>0}flushAffectedElements(){const r=Array.from(this._affectedElements);return this._affectedElements.clear(),r}}function I(o,r){if(!r.isEnabled)return;const e=r.buffer;e.lock(),o.enqueueChange(e.batch,()=>{o.deleteContent(o.document.selection)}),e.unlock()}function me(o){const r=o.toRange();return o.detach(),r.root.rootName=="$graveyard"?null:r}function ge(o,r){let e=o.is("$text")?o.parent:o;for(;!r.toModelElement(e);)e=e.parent;return e}class L extends ${constructor(e,t){super(e);h(this,"direction");h(this,"_buffer");this.direction=t,this._buffer=new U(e.model,e.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(e={}){const t=this.editor.model,n=t.document;t.enqueueChange(this._buffer.batch,i=>{this._buffer.lock();const s=i.createSelection(e.selection||n.selection);if(!t.canEditAt(s))return;const l=e.sequence||1,c=s.isCollapsed;if(s.isCollapsed&&t.modifySelection(s,{direction:this.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(l)){this._replaceEntireContentWithParagraph(i);return}if(this._shouldReplaceFirstBlockWithParagraph(s,l)){this.editor.execute("paragraph",{selection:s});return}if(s.isCollapsed)return;let a=0;s.getFirstRange().getMinimalFlatRanges().forEach(u=>{a+=X(u.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),t.deleteContent(s,{doNotResetEntireContent:c,direction:this.direction}),this._buffer.input(a),i.setSelection(s),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(e){if(e>1)return!1;const t=this.editor.model,i=t.document.selection,s=t.schema.getLimitElement(i);if(!(i.isCollapsed&&i.containsEntireContent(s))||!t.schema.checkChild(s,"paragraph"))return!1;const c=s.getChild(0);return!(c&&c.is("element","paragraph"))}_replaceEntireContentWithParagraph(e){const t=this.editor.model,i=t.document.selection,s=t.schema.getLimitElement(i),l=e.createElement("paragraph");e.remove(e.createRangeIn(s)),e.insert(l,s),e.setSelection(l,0)}_shouldReplaceFirstBlockWithParagraph(e,t){const n=this.editor.model;if(t>1||this.direction!="backward"||!e.isCollapsed)return!1;const i=e.getFirstPosition(),s=n.schema.getLimitElement(i),l=s.getChild(0);return!(i.parent!=l||!e.containsEntireContent(l)||!n.schema.checkChild(s,"paragraph")||l.name=="paragraph")}}const pe="character",q="word",be="codePoint",y="selection",x="backward",k="forward",j={deleteContent:{unit:y,direction:x},deleteContentBackward:{unit:be,direction:x},deleteWordBackward:{unit:q,direction:x},deleteHardLineBackward:{unit:y,direction:x},deleteSoftLineBackward:{unit:y,direction:x},deleteContentForward:{unit:pe,direction:k},deleteWordForward:{unit:q,direction:k},deleteHardLineForward:{unit:y,direction:k},deleteSoftLineForward:{unit:y,direction:k}};class _e extends W{constructor(r){super(r);const e=r.document;let t=0;e.on("keydown",()=>{t++}),e.on("keyup",()=>{t=0}),e.on("beforeinput",(n,i)=>{if(!this.isEnabled)return;const{targetRanges:s,domEvent:l,inputType:c}=i,a=j[c];if(!a)return;const u={direction:a.direction,unit:a.unit,sequence:t};u.unit==y&&(u.selectionToRemove=r.createSelection(s[0])),c==="deleteContentBackward"&&(T.isAndroid&&(u.sequence=1),ye(s)&&(u.unit=y,u.selectionToRemove=r.createSelection(s)));const d=new F(e,"delete",s[0]);e.fire(d,new R(r,l,u)),d.stop.called&&n.stop()}),T.isBlink&&ve(this)}observe(){}stopObserving(){}}function ve(o){const r=o.view,e=r.document;let t=null,n=!1;e.on("keydown",(l,{keyCode:c})=>{t=c,n=!1}),e.on("keyup",(l,{keyCode:c,domEvent:a})=>{const u=e.selection,d=o.isEnabled&&c==t&&i(c)&&!u.isCollapsed&&!n;if(t=null,d){const f=u.getFirstRange(),m=new F(e,"delete",f),p={unit:y,direction:s(c),selectionToRemove:u};e.fire(m,new R(r,a,p))}}),e.on("beforeinput",(l,{inputType:c})=>{const a=j[c];i(t)&&a&&a.direction==s(t)&&(n=!0)},{priority:"high"}),e.on("beforeinput",(l,{inputType:c,data:a})=>{t==E.delete&&c=="insertText"&&a==""&&l.stop()},{priority:"high"});function i(l){return l==E.backspace||l==E.delete}function s(l){return l==E.backspace?x:k}}function ye(o){if(o.length!=1||o[0].isCollapsed)return!1;const r=o[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let e=0;for(const{nextPosition:t,item:n}of r){if(t.parent.is("$text")){const i=t.parent.data,s=t.offset;if(Z(i,s)||ee(i,s)||te(i,s))continue;e++}else(n.is("containerElement")||n.is("emptyElement"))&&e++;if(e>1)return!0}return!1}class Ee extends O{constructor(){super(...arguments);h(this,"_undoOnBackspace")}static get pluginName(){return"Delete"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.editing.view,n=t.document,i=e.model.document;t.addObserver(_e),this._undoOnBackspace=!1;const s=new L(e,"forward");e.commands.add("deleteForward",s),e.commands.add("forwardDelete",s),e.commands.add("delete",new L(e,"backward")),this.listenTo(n,"delete",(l,c)=>{n.isComposing||c.preventDefault();const{direction:a,sequence:u,selectionToRemove:d,unit:f}=c,m=a==="forward"?"deleteForward":"delete",p={sequence:u};if(f=="selection"){const g=Array.from(d.getRanges()).map(v=>e.editing.mapper.toModelRange(v));p.selection=e.model.createSelection(g)}else p.unit=f;e.execute(m,p),t.scrollToTheSelection()},{priority:"low"}),this.listenTo(n,"keydown",(l,c)=>{if(n.isComposing||c.keyCode!=E.backspace||!i.selection.isCollapsed)return;const a=e.model.schema.getLimitElement(i.selection),u=e.model.createPositionAt(a,0);if(u.isTouching(i.selection.getFirstPosition())){c.preventDefault();const d=e.model.schema.getNearestSelectionRange(u,"forward");if(!d)return;const f=t.createSelection(e.editing.mapper.toViewRange(d)),m=f.getFirstRange(),p=new F(document,"delete",m),g={unit:"selection",direction:"backward",selectionToRemove:f};n.fire(p,new R(t,c.domEvent,g))}}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(l,c)=>{this._undoOnBackspace&&c.direction=="backward"&&c.sequence==1&&c.unit=="codePoint"&&(this._undoOnBackspace=!1,e.execute("undo"),c.preventDefault(),l.stop())},{context:"$capture"}),this.listenTo(i,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class qe extends O{static get requires(){return[fe,Ee]}static get pluginName(){return"Typing"}static get isOfficialPlugin(){return!0}}/**
|
|
8
|
-
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
9
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
10
|
-
*/function Te(o,r){let e=o.start;return{text:Array.from(o.getWalker({ignoreElementEnd:!1})).reduce((n,{item:i})=>i.is("$text")||i.is("$textProxy")?n+i.data:(e=r.createPositionAfter(i),""),""),range:r.createRange(e,o.end)}}class Ce extends J(){constructor(e,t){super();h(this,"model");h(this,"testCallback");h(this,"_hasMatch");this.model=e,this.testCallback=t,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(e.document.selection),this.stopListening(e.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(n,{directChange:i})=>{if(i){if(!t.selection.isCollapsed){this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1);return}this._evaluateTextBeforeSelection("selection")}}),this.listenTo(t,"change:data",(n,i)=>{i.isUndo||!i.isLocal||this._evaluateTextBeforeSelection("data",{batch:i})})}_evaluateTextBeforeSelection(e,t={}){const n=this.model,s=n.document.selection,l=n.createRange(n.createPositionAt(s.focus.parent,0),s.focus),{text:c,range:a}=Te(l,n),u=this.testCallback(c);if(!u&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!u,u){const d=Object.assign(t,{text:c,range:a});typeof u=="object"&&Object.assign(d,u),this.fire(`matched:${e}`,d)}}}class Ne extends O{constructor(e){super(e);h(this,"attributes");h(this,"_overrideUid");h(this,"_isNextGravityRestorationSkipped",!1);this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model,n=e.editing.view,i=e.locale,s=t.document.selection;this.listenTo(n.document,"arrowKey",(l,c)=>{if(!s.isCollapsed||c.shiftKey||c.altKey||c.ctrlKey)return;const a=c.keyCode==E.arrowright,u=c.keyCode==E.arrowleft;if(!a&&!u)return;const d=i.contentLanguageDirection;let f=!1;d==="ltr"&&a||d==="rtl"&&u?f=this._handleForwardMovement(c):f=this._handleBackwardMovement(c),f===!0&&l.stop()},{context:"$text",priority:"highest"}),this.listenTo(s,"change:range",(l,c)=>{if(this._isNextGravityRestorationSkipped){this._isNextGravityRestorationSkipped=!1;return}this._isGravityOverridden&&(!c.directChange&&b(s.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(e){this.attributes.add(e)}_handleForwardMovement(e){const t=this.attributes,n=this.editor.model,i=n.document.selection,s=i.getFirstPosition();return this._isGravityOverridden||s.isAtStart&&_(i,t)?!1:b(s,t)?(e&&S(e),_(i,t)&&b(s,t,!0)?A(n,t):this._overrideGravity(),!0):!1}_handleBackwardMovement(e){const t=this.attributes,n=this.editor.model,i=n.document.selection,s=i.getFirstPosition();return this._isGravityOverridden?(e&&S(e),this._restoreGravity(),b(s,t,!0)?A(n,t):P(n,t,s),!0):s.isAtStart?_(i,t)?(e&&S(e),P(n,t,s),!0):!1:!_(i,t)&&b(s,t,!0)?(e&&S(e),P(n,t,s),!0):N(s,t)?s.isAtEnd&&!_(i,t)&&b(s,t)?(e&&S(e),P(n,t,s),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):!1}_enableClickingAfterNode(){const e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view.document;e.editing.view.addObserver(ie),e.editing.view.addObserver(se);let s=!1,l=!1;this.listenTo(i,"touchstart",()=>{l=!1,s=!0}),this.listenTo(i,"mousedown",()=>{l=!0}),this.listenTo(i,"selectionChange",()=>{const c=this.attributes;if(!l&&!s||(l=!1,s=!1,!n.isCollapsed)||!_(n,c))return;const a=n.getFirstPosition();b(a,c)&&(a.isAtStart||b(a,c,!0)?A(t,c):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,n=t.document.selection,i=this.attributes;this.listenTo(t,"insertContent",()=>{const s=n.getFirstPosition();_(n,i)&&b(s,i)&&A(t,i)},{priority:"low"})}_handleDeleteContentAfterNode(){const e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view;let s=!1,l=!1;this.listenTo(i.document,"delete",(c,a)=>{s=a.direction==="backward"},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{if(!s)return;const c=n.getFirstPosition();l=_(n,this.attributes)&&!N(c,this.attributes)},{priority:"high"}),this.listenTo(t,"deleteContent",()=>{s&&(s=!1,!l&&e.model.enqueueChange(()=>{const c=n.getFirstPosition();_(n,this.attributes)&&b(c,this.attributes)&&(c.isAtStart||b(c,this.attributes,!0)?A(t,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(e=>e.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(e=>{e.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function _(o,r){for(const e of r)if(o.hasAttribute(e))return!0;return!1}function P(o,r,e){const t=e.nodeBefore;o.change(n=>{if(t){const i=[],s=o.schema.isObject(t)&&o.schema.isInline(t);for(const[l,c]of t.getAttributes())o.schema.checkAttribute("$text",l)&&(!s||o.schema.getAttributeProperties(l).copyFromObject!==!1)&&i.push([l,c]);n.setSelectionAttribute(i)}else n.removeSelectionAttribute(r)})}function A(o,r){o.change(e=>{e.removeSelectionAttribute(r)})}function S(o){o.preventDefault()}function N(o,r){const e=o.getShiftedBy(-1);return b(e,r)}function b(o,r,e=!1){const{nodeBefore:t,nodeAfter:n}=o;for(const i of r){const s=t?t.getAttribute(i):void 0,l=n?n.getAttribute(i):void 0;if(!(e&&(s===void 0||l===void 0))&&l!==s)return!0}return!1}const M={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:C('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:C("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:C("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:C('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:C('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:C("'"),to:[null,"‚",null,"’"]}},G={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},xe=["symbols","mathematical","typography","quotes"];class Me extends O{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}static get isOfficialPlugin(){return!0}constructor(r){super(r),r.config.define("typing",{transformations:{include:xe}})}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const r=this.editor,e=r.model,t=r.plugins.get("Delete"),n=ke(r.config.get("typing.transformations")),i=l=>{for(const c of n)if(c.from.test(l))return{normalizedTransformation:c}},s=new Ce(r.model,i);s.on("matched:data",(l,c)=>{if(!c.batch.isTyping)return;const{from:a,to:u}=c.normalizedTransformation,d=a.exec(c.text),f=u(d.slice(1)),m=c.range;let p=d.index;e.enqueueChange(g=>{for(let v=1;v<d.length;v++){const w=d[v],D=f[v-1];if(D==null){p+=w.length;continue}const B=m.start.getShiftedBy(p),H=e.createRange(B,B.getShiftedBy(w.length)),K=Se(B);e.insertContent(g.createText(D,K),H),p+=D.length}e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}),s.bind("isEnabled").to(this)}}function we(o){return typeof o=="string"?new RegExp(`(${ce(o)})$`):o}function Ae(o){return typeof o=="string"?()=>[o]:o instanceof Array?()=>o:o}function Se(o){return(o.textNode?o.textNode:o.nodeAfter).getAttributes()}function C(o){return new RegExp(`(^|\\s)(${o})([^${o}]*)(${o})$`)}function ke(o){const r=o.extra||[],e=o.remove||[],t=i=>!e.includes(i),n=o.include.concat(r).filter(t);return Re(n).filter(t).map(i=>typeof i=="string"&&M[i]?M[i]:i).filter(i=>typeof i=="object").map(i=>({from:we(i.from),to:Ae(i.to)}))}function Re(o){const r=new Set;for(const e of o)if(typeof e=="string"&&G[e])for(const t of G[e])r.add(t);else r.add(e);return Array.from(r)}/**
|
|
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 Oe(o,r,e,t){return t.createRange(z(o,r,e,!0,t),z(o,r,e,!1,t))}function z(o,r,e,t,n){let i=o.textNode||(t?o.nodeBefore:o.nodeAfter),s=null;for(;i&&i.getAttribute(r)==e;)s=i,i=t?i.previousSibling:i.nextSibling;return s?n.createPositionAt(s,t?"before":"after"):o}function Ge(o,r,e,t){const n=o.editing.view,i=new Set;n.document.registerPostFixer(s=>{const l=o.model.document.selection;let c=!1;if(l.hasAttribute(r)){const a=Oe(l.getFirstPosition(),r,l.getAttribute(r),o.model),u=o.editing.mapper.toViewRange(a);for(const d of u.getItems())d.is("element",e)&&!d.hasClass(t)&&(s.addClass(t,d),i.add(d),c=!0)}return c}),o.conversion.for("editingDowncast").add(s=>{s.on("insert",l,{priority:"highest"}),s.on("remove",l,{priority:"highest"}),s.on("attribute",l,{priority:"highest"}),s.on("selection",l,{priority:"highest"});function l(){n.change(c=>{for(const a of i.values())c.removeClass(t,a),i.delete(a)})}})}export{Ee as Delete,fe as Input,ae as InsertTextCommand,Me as TextTransformation,Ce as TextWatcher,Ne as TwoStepCaretMovement,qe as Typing,Oe as findAttributeRange,z as findAttributeRangeBound,Te as getLastTextLine,Ge as inlineHighlight};
|