@globalpayments/vega 2.102.0 → 2.104.0
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/cjs/{app-globals-49c2a999.js → app-globals-bc84b09b.js} +10 -10
- package/dist/cjs/{code-block-06e6591f.js → code-block-7340d2b7.js} +80 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-f29908f8.js → component-value-history-controller-slimmer.abstract-dd834f8d.js} +3 -3
- package/dist/cjs/{content-state-8c862e5e.js → content-state-dde1253f.js} +38 -5
- package/dist/cjs/{date-required-rule-b672c432.js → date-required-rule-5e6777cf.js} +1 -1
- package/dist/cjs/{design-token-351ffd2c.js → design-token-b28d222d.js} +3 -3
- package/dist/cjs/{element-appender-slimmer-f932b166.js → element-appender-slimmer-a87bc0ce.js} +2 -2
- package/dist/cjs/{form-field-controller-slimmer-5adb86ae.js → form-field-controller-slimmer-007d10db.js} +1 -1
- package/dist/cjs/{image-annotation-action-25907d6b.js → image-annotation-action-715bece3.js} +2 -2
- package/dist/cjs/{image-extension-1cf84f27.js → image-extension-cc8f36a1.js} +247 -5
- package/dist/cjs/index.cjs.js +17 -17
- package/dist/cjs/{inject-keyboard-manager-84d33920.js → inject-keyboard-manager-1a113d04.js} +1 -1
- package/dist/cjs/{internal-calendar-period-factory-3c5236be.js → internal-calendar-period-factory-bf5e8294.js} +1 -1
- package/dist/cjs/{internal-translation-controller-eae8a8de.js → internal-translation-controller-b5bbefc9.js} +5 -0
- package/dist/cjs/{keyboard-manager-baa83a61.js → keyboard-manager-d0271450.js} +1 -1
- package/dist/cjs/{keyboard-manager-slimmer-d1974b28.js → keyboard-manager-slimmer-5a4c0e4c.js} +1 -1
- package/dist/cjs/{legend-input-processor-ce9b38f8.js → legend-input-processor-bd36a794.js} +28 -0
- package/dist/cjs/{link-extension-2a6133b7.js → link-extension-953fb2a0.js} +3 -3
- package/dist/cjs/loader.cjs.js +12 -12
- package/dist/cjs/{month-view-generator-a6827548.js → month-view-generator-b68bcf4b.js} +1 -1
- package/dist/cjs/{public-rules-7f26e0ae.js → public-rules-8bfc6de7.js} +7 -7
- package/dist/cjs/{range-518b95a2.js → range-4060b238.js} +1 -1
- package/dist/cjs/{responsive-format-facade-95c54444.js → responsive-format-facade-fed434ed.js} +1 -1
- package/dist/cjs/{rich-text-editor-required-rule-5d0c76ec.js → rich-text-editor-required-rule-16e74e91.js} +1 -1
- package/dist/cjs/{split-cell-operation-28f6f8d9.js → split-cell-operation-430e9f27.js} +3 -3
- package/dist/cjs/{state-border-formatter-6c284859.js → state-border-formatter-b469de2f.js} +1 -1
- package/dist/cjs/{string-format-strategy.abstract-f15b6196.js → string-format-strategy.abstract-b3174863.js} +1 -1
- package/dist/cjs/{string-input-formatter-slimmer-5a3f1b55.js → string-input-formatter-slimmer-ceb678e9.js} +1 -1
- package/dist/cjs/{string-mask-strategy-af6f3ba0.js → string-mask-strategy-5f84e2f6.js} +2 -2
- package/dist/cjs/{style-formatter-324211fd.js → style-formatter-e98caf3c.js} +2 -2
- package/dist/cjs/{time-required-rule-9e714442.js → time-required-rule-249cb6b6.js} +1 -1
- package/dist/cjs/{token-extension-86723cad.js → token-extension-f074902b.js} +1011 -767
- package/dist/cjs/{translation-slimmer-0227ee24.js → translation-slimmer-b60d598e.js} +1 -1
- package/dist/cjs/{type-guard-29e01bd4.js → type-guard-8eb40609.js} +1 -1
- package/dist/cjs/{valid-credit-card-number-rule-4ec364af.js → valid-credit-card-number-rule-f5d2b2c6.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +6 -6
- package/dist/cjs/vega-app-header-button.cjs.entry.js +5 -5
- package/dist/cjs/vega-bar-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-box.cjs.entry.js +6 -6
- package/dist/cjs/vega-button-circle.cjs.entry.js +5 -5
- package/dist/cjs/vega-button.cjs.entry.js +3 -3
- package/dist/cjs/vega-calendar_5.cjs.entry.js +7 -7
- package/dist/cjs/vega-card.cjs.entry.js +5 -5
- package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-chip.cjs.entry.js +5 -5
- package/dist/cjs/vega-code-block.cjs.entry.js +8 -8
- package/dist/cjs/vega-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/vega-color-swatch-picker.cjs.entry.js +3 -3
- package/dist/cjs/vega-color-swatch.cjs.entry.js +2 -2
- package/dist/cjs/vega-combo-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-dialog_2.cjs.entry.js +10 -5
- package/dist/cjs/vega-divider.cjs.entry.js +5 -5
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +7 -7
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-label.cjs.entry.js +2 -2
- package/dist/cjs/vega-file-uploader.cjs.entry.js +3 -3
- package/dist/cjs/vega-flag-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-flex.cjs.entry.js +6 -6
- package/dist/cjs/vega-font.cjs.entry.js +5 -5
- package/dist/cjs/vega-form.cjs.entry.js +2 -2
- package/dist/cjs/vega-grid.cjs.entry.js +5 -5
- package/dist/cjs/vega-icon.cjs.entry.js +5 -5
- package/dist/cjs/vega-image-uploader.cjs.entry.js +21 -12
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-numeric.cjs.entry.js +12 -14
- package/dist/cjs/vega-input-passcode.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +4 -4
- package/dist/cjs/vega-input-range.cjs.entry.js +3 -3
- package/dist/cjs/vega-input-select.cjs.entry.js +5 -5
- package/dist/cjs/vega-input.cjs.entry.js +31 -27
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +7 -7
- package/dist/cjs/vega-line-chart.cjs.entry.js +2 -2
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
- package/dist/cjs/vega-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-progress-tracker_2.cjs.entry.js +3 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-bookmark-editor.cjs.entry.js +2 -2
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +474 -207
- package/dist/cjs/vega-rich-text-find-replace-panel.cjs.entry.js +1 -1
- package/dist/cjs/vega-rich-text-special-characters-panel.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-table-properties_3.cjs.entry.js +8 -8
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +4 -4
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +2 -2
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +3 -3
- package/dist/cjs/vega-signature-capture.cjs.entry.js +7 -7
- package/dist/cjs/vega-stepper.cjs.entry.js +2 -2
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-table_11.cjs.entry.js +4 -4
- package/dist/cjs/vega-textarea.cjs.entry.js +2 -2
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +9 -9
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +2 -2
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega.cjs.js +12 -12
- package/dist/cjs/{y-axis-input-processor-d3a3839c.js → y-axis-input-processor-9ba96716.js} +1 -1
- package/dist/collection/components/vega-dialog/vega-dialog.js +7 -2
- package/dist/collection/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-remove-controller.js +6 -3
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.js +6 -3
- package/dist/collection/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-uploading-content-renderer.js +4 -1
- package/dist/collection/components/vega-input/slimmers/controllers/vega-input-state-controller.js +0 -14
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.js +11 -2
- package/dist/collection/components/vega-input/slimmers/renderers/vega-input-input-renderer.js +11 -1
- package/dist/collection/components/vega-input/vega-input.js +52 -8
- package/dist/collection/components/vega-input-numeric/slimmers/renderers/vega-input-numeric-renderer.js +7 -1
- package/dist/collection/components/vega-input-numeric/vega-input-numeric.js +0 -8
- package/dist/collection/components/vega-rich-text-editor/constants/constant.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/sequential-composition-strategy.js +31 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/sequential-composition-action.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +4 -1
- package/dist/collection/components/vega-rich-text-editor/dto/flush-changes-payload.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/dto/function-block.js +30 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/functions/element-to-dto-strategies/div-to-function-block-strategy.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/controllers/chooser-positioner.js +107 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/controllers/paste-chooser-controller.js +91 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/controllers/paste-event-interceptor.js +47 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/controllers/selection-snapshot-service.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/image-extractor.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/paste-extension.js +41 -354
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/pipeline/data-transfer-builder.js +36 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/pipeline/paste-dispatcher.js +23 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/pipeline/paste-processing-pipeline.js +30 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/paste-processing-strategy.abstract.js +34 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/paste-strategy-selector.js +19 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/strategies/plain-paste-strategy.js +74 -0
- package/dist/collection/components/vega-rich-text-editor/extensions/paste/type.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/helpers/utils.js +67 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/abstract-delete-content-handler.js +67 -11
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/backward-delete-content-handler.js +4 -17
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.js +34 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/forward-delete-content-handler.js +13 -32
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +60 -25
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.js +55 -19
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +165 -59
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.js +55 -21
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.js +2 -16
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/value-controller.js +11 -1
- package/dist/collection/components/vega-rich-text-editor/utils/html-to-plain-text-utils.js +240 -0
- package/dist/collection/helpers/translation/locales/en.js +5 -0
- package/dist/collection/polyfill/d3/d3-shape-polyfill.js +28 -0
- package/dist/esm/{app-globals-da5c83c2.js → app-globals-8541b3dc.js} +10 -10
- package/dist/esm/{code-block-d8f83d85.js → code-block-c16c69a5.js} +74 -2
- package/dist/esm/{component-value-history-controller-slimmer.abstract-642e7147.js → component-value-history-controller-slimmer.abstract-1cea9add.js} +3 -3
- package/dist/esm/{content-state-486eae1d.js → content-state-73664d93.js} +38 -5
- package/dist/esm/{date-required-rule-08695d25.js → date-required-rule-14131e09.js} +1 -1
- package/dist/esm/{design-token-df3331d9.js → design-token-4b81bae7.js} +3 -3
- package/dist/esm/{element-appender-slimmer-f02a227f.js → element-appender-slimmer-9094aa07.js} +2 -2
- package/dist/esm/{form-field-controller-slimmer-a7c0a0f8.js → form-field-controller-slimmer-aaea8aaf.js} +1 -1
- package/dist/esm/{image-annotation-action-df744ba5.js → image-annotation-action-86052c2e.js} +2 -2
- package/dist/esm/{image-extension-20b39140.js → image-extension-04843995.js} +246 -6
- package/dist/esm/index.js +17 -17
- package/dist/esm/{inject-keyboard-manager-399ed867.js → inject-keyboard-manager-1a950408.js} +1 -1
- package/dist/esm/{internal-calendar-period-factory-7b866c3b.js → internal-calendar-period-factory-14c000cf.js} +1 -1
- package/dist/esm/{internal-translation-controller-4a7ee4d5.js → internal-translation-controller-6eb30c39.js} +5 -0
- package/dist/esm/{keyboard-manager-f5d13a34.js → keyboard-manager-e7add1f3.js} +1 -1
- package/dist/esm/{keyboard-manager-slimmer-f40dcb54.js → keyboard-manager-slimmer-ffe6588a.js} +1 -1
- package/dist/esm/{legend-input-processor-3b2de4b7.js → legend-input-processor-bd91524a.js} +28 -0
- package/dist/esm/{link-extension-3f93d70d.js → link-extension-caabb7d8.js} +3 -3
- package/dist/esm/loader.js +12 -12
- package/dist/esm/{month-view-generator-0c665987.js → month-view-generator-0dad54d9.js} +1 -1
- package/dist/esm/{public-rules-470a1dac.js → public-rules-76247d91.js} +7 -7
- package/dist/esm/{range-8e89fb54.js → range-c0aec697.js} +1 -1
- package/dist/esm/{responsive-format-facade-55131a33.js → responsive-format-facade-1a9177b9.js} +1 -1
- package/dist/esm/{rich-text-editor-required-rule-06caf383.js → rich-text-editor-required-rule-65e18ef0.js} +1 -1
- package/dist/esm/{split-cell-operation-e158366a.js → split-cell-operation-814641f5.js} +3 -3
- package/dist/esm/{state-border-formatter-2b73fa08.js → state-border-formatter-31f3145a.js} +1 -1
- package/dist/esm/{string-format-strategy.abstract-8c7937e3.js → string-format-strategy.abstract-a8612297.js} +1 -1
- package/dist/esm/{string-input-formatter-slimmer-681c6b71.js → string-input-formatter-slimmer-8f2aa95a.js} +1 -1
- package/dist/esm/{string-mask-strategy-b8cceee6.js → string-mask-strategy-e8bad1c6.js} +2 -2
- package/dist/esm/{style-formatter-fcd70869.js → style-formatter-42e87858.js} +2 -2
- package/dist/esm/{time-required-rule-ce50859b.js → time-required-rule-fcab062e.js} +1 -1
- package/dist/esm/{token-extension-2401e753.js → token-extension-f001f08e.js} +1011 -767
- package/dist/esm/{translation-slimmer-b3f3cf65.js → translation-slimmer-5fa762dc.js} +1 -1
- package/dist/esm/{type-guard-08c82e08.js → type-guard-87bdc930.js} +1 -1
- package/dist/esm/{valid-credit-card-number-rule-66bad519.js → valid-credit-card-number-rule-5dc557f1.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +6 -6
- package/dist/esm/vega-app-header-button.entry.js +5 -5
- package/dist/esm/vega-bar-chart.entry.js +2 -2
- package/dist/esm/vega-box.entry.js +6 -6
- package/dist/esm/vega-button-circle.entry.js +5 -5
- package/dist/esm/vega-button.entry.js +3 -3
- package/dist/esm/vega-calendar_5.entry.js +7 -7
- package/dist/esm/vega-card.entry.js +5 -5
- package/dist/esm/vega-carousel.entry.js +3 -3
- package/dist/esm/vega-checkbox_2.entry.js +2 -2
- package/dist/esm/vega-chip.entry.js +5 -5
- package/dist/esm/vega-code-block.entry.js +8 -8
- package/dist/esm/vega-color-picker.entry.js +2 -2
- package/dist/esm/vega-color-swatch-picker.entry.js +3 -3
- package/dist/esm/vega-color-swatch.entry.js +2 -2
- package/dist/esm/vega-combo-box.entry.js +8 -8
- package/dist/esm/vega-date-picker_2.entry.js +13 -13
- package/dist/esm/vega-dialog_2.entry.js +10 -5
- package/dist/esm/vega-divider.entry.js +5 -5
- package/dist/esm/vega-dropdown_5.entry.js +7 -7
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-label.entry.js +2 -2
- package/dist/esm/vega-file-uploader.entry.js +3 -3
- package/dist/esm/vega-flag-icon.entry.js +5 -5
- package/dist/esm/vega-flex.entry.js +6 -6
- package/dist/esm/vega-font.entry.js +5 -5
- package/dist/esm/vega-form.entry.js +2 -2
- package/dist/esm/vega-grid.entry.js +5 -5
- package/dist/esm/vega-icon.entry.js +5 -5
- package/dist/esm/vega-image-uploader.entry.js +21 -12
- package/dist/esm/vega-input-credit-card.entry.js +6 -6
- package/dist/esm/vega-input-numeric.entry.js +12 -14
- package/dist/esm/vega-input-passcode.entry.js +5 -5
- package/dist/esm/vega-input-phone-number.entry.js +4 -4
- package/dist/esm/vega-input-range.entry.js +3 -3
- package/dist/esm/vega-input-select.entry.js +5 -5
- package/dist/esm/vega-input.entry.js +31 -27
- package/dist/esm/vega-left-nav_5.entry.js +7 -7
- package/dist/esm/vega-line-chart.entry.js +2 -2
- package/dist/esm/vega-loader-wrapper_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +2 -2
- package/dist/esm/vega-pagination.entry.js +4 -4
- package/dist/esm/vega-pie-chart.entry.js +1 -1
- package/dist/esm/vega-popover_2.entry.js +8 -8
- package/dist/esm/vega-progress-tracker_2.entry.js +3 -3
- package/dist/esm/vega-radio_2.entry.js +5 -5
- package/dist/esm/vega-rich-text-bookmark-editor.entry.js +2 -2
- package/dist/esm/vega-rich-text-content.entry.js +6 -6
- package/dist/esm/vega-rich-text-editor_4.entry.js +474 -207
- package/dist/esm/vega-rich-text-find-replace-panel.entry.js +1 -1
- package/dist/esm/vega-rich-text-special-characters-panel.entry.js +5 -5
- package/dist/esm/vega-rich-text-table-properties_3.entry.js +8 -8
- package/dist/esm/vega-selection-chip_2.entry.js +4 -4
- package/dist/esm/vega-selection-tile_2.entry.js +2 -2
- package/dist/esm/vega-sidenav_3.entry.js +3 -3
- package/dist/esm/vega-signature-capture.entry.js +7 -7
- package/dist/esm/vega-stepper.entry.js +2 -2
- package/dist/esm/vega-tab-group_2.entry.js +6 -6
- package/dist/esm/vega-table_11.entry.js +4 -4
- package/dist/esm/vega-textarea.entry.js +2 -2
- package/dist/esm/vega-time-picker_2.entry.js +9 -9
- package/dist/esm/vega-toggle-switch.entry.js +2 -2
- package/dist/esm/vega-tooltip_2.entry.js +6 -6
- package/dist/esm/vega.js +12 -12
- package/dist/esm/{y-axis-input-processor-c6b2a914.js → y-axis-input-processor-dd574c2e.js} +1 -1
- package/dist/sri/vega-sri-manifest.json +338 -338
- package/dist/types/components/vega-dialog/vega-dialog.d.ts +2 -0
- package/dist/types/components/vega-image-uploader/slimmers/controllers/vega-image-uploader-remove-controller.d.ts +1 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-actions-renderer.d.ts +1 -0
- package/dist/types/components/vega-image-uploader/slimmers/renderers/vega-image-uploader-uploading-content-renderer.d.ts +1 -0
- package/dist/types/components/vega-input/slimmers/controllers/vega-input-state-controller.d.ts +0 -2
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-container-renderer.d.ts +4 -0
- package/dist/types/components/vega-input/slimmers/renderers/vega-input-input-renderer.d.ts +2 -0
- package/dist/types/components/vega-input/vega-input.d.ts +15 -3
- package/dist/types/components/vega-input-numeric/slimmers/renderers/vega-input-numeric-renderer.d.ts +2 -0
- package/dist/types/components/vega-input-numeric/vega-input-numeric.d.ts +0 -2
- package/dist/types/components/vega-rich-text-editor/constants/constant.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/sequential-composition-strategy.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +4 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/sequential-composition-action.d.ts +30 -0
- package/dist/types/components/vega-rich-text-editor/dto/flush-changes-payload.d.ts +16 -0
- package/dist/types/components/vega-rich-text-editor/extensions/functions/dto/function-block.d.ts +7 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/controllers/chooser-positioner.d.ts +33 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/controllers/paste-chooser-controller.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/controllers/paste-event-interceptor.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/controllers/selection-snapshot-service.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/image-extractor.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/paste-image-parser.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/extensions/paste/parse-local-images-helper/pending-image-registry.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-chooser-ui.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/paste-extension.d.ts +28 -93
- package/dist/types/components/vega-rich-text-editor/extensions/paste/pipeline/data-transfer-builder.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/pipeline/paste-dispatcher.d.ts +8 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/pipeline/paste-processing-pipeline.d.ts +18 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/paste-processing-strategy.abstract.d.ts +28 -6
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/paste-strategy-selector.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/strategies/plain-paste-strategy.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/extensions/paste/type.d.ts +35 -0
- package/dist/types/components/vega-rich-text-editor/helpers/utils.d.ts +47 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/abstract-delete-content-handler.d.ts +17 -6
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/backward-delete-content-handler.d.ts +5 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/base-handler.d.ts +30 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/forward-delete-content-handler.d.ts +5 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.d.ts +21 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.d.ts +12 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +38 -5
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-text-handler.d.ts +7 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/utils/html-to-plain-text-utils.d.ts +31 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/helpers/translation/interface.d.ts +5 -0
- package/dist/types/types/public-api.d.ts +2 -1
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-3ce7521e.entry.js → p-017f0314.entry.js} +1 -1
- package/dist/vega/{p-1b97e751.entry.js → p-06a0c795.entry.js} +1 -1
- package/dist/vega/p-09ed519b.entry.js +1 -0
- package/dist/vega/p-0a8e82f1.js +1 -0
- package/dist/vega/{p-7d748545.entry.js → p-0c8f8d88.entry.js} +1 -1
- package/dist/vega/{p-b48caf90.entry.js → p-0cd81963.entry.js} +1 -1
- package/dist/vega/{p-8a4cc7c2.entry.js → p-0cda0b10.entry.js} +1 -1
- package/dist/vega/{p-b68f55e2.js → p-146abbc7.js} +1 -1
- package/dist/vega/{p-7044bb48.js → p-1c7dc9c6.js} +1 -1
- package/dist/vega/{p-d8a0e3e0.entry.js → p-1ccf0a96.entry.js} +1 -1
- package/dist/vega/{p-85a940c0.entry.js → p-1f0b99ac.entry.js} +1 -1
- package/dist/vega/p-24b6f3ee.js +1 -0
- package/dist/vega/{p-85695819.js → p-25d8b416.js} +1 -1
- package/dist/vega/{p-197388a5.entry.js → p-26fdf04e.entry.js} +1 -1
- package/dist/vega/{p-dffe47db.js → p-2a501c55.js} +1 -1
- package/dist/vega/p-2e847194.js +1 -0
- package/dist/vega/p-3040c091.js +1 -0
- package/dist/vega/{p-7dfb1481.entry.js → p-3437ff39.entry.js} +1 -1
- package/dist/vega/p-347d664e.js +1 -0
- package/dist/vega/{p-4c6989ae.entry.js → p-35de277a.entry.js} +1 -1
- package/dist/vega/{p-527c3211.entry.js → p-377a5330.entry.js} +1 -1
- package/dist/vega/{p-25e51acb.js → p-37eb020f.js} +1 -1
- package/dist/vega/{p-2256eb09.entry.js → p-3a153581.entry.js} +1 -1
- package/dist/vega/p-46d34326.js +1 -0
- package/dist/vega/{p-effbfc50.entry.js → p-48470109.entry.js} +1 -1
- package/dist/vega/p-4a2e040f.entry.js +1 -0
- package/dist/vega/p-4ad6da8f.js +1 -0
- package/dist/vega/{p-277aab9b.js → p-4cd198b9.js} +1 -1
- package/dist/vega/{p-bf0b46c1.js → p-4f24f262.js} +1 -1
- package/dist/vega/{p-48100d38.entry.js → p-5025f7b6.entry.js} +1 -1
- package/dist/vega/p-53838cd1.entry.js +1 -0
- package/dist/vega/{p-557b64bd.js → p-53c1b195.js} +1 -1
- package/dist/vega/{p-cb68a43a.entry.js → p-54c21aa8.entry.js} +1 -1
- package/dist/vega/{p-408c3ad4.entry.js → p-568d4da6.entry.js} +1 -1
- package/dist/vega/{p-109f0e33.entry.js → p-5bdc1ff3.entry.js} +1 -1
- package/dist/vega/{p-a0c87e88.entry.js → p-5ccdfd46.entry.js} +1 -1
- package/dist/vega/{p-03efc67a.entry.js → p-5cd6b840.entry.js} +1 -1
- package/dist/vega/p-5cfe82e7.js +1 -0
- package/dist/vega/{p-e577dda8.entry.js → p-5f04fb23.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-68e70f75.js +3 -0
- package/dist/vega/{p-bec31ffc.entry.js → p-6902bcaf.entry.js} +1 -1
- package/dist/vega/{p-dd673eb4.entry.js → p-6a13ba24.entry.js} +1 -1
- package/dist/vega/{p-83f5ef3a.entry.js → p-6c0d4f69.entry.js} +1 -1
- package/dist/vega/{p-3bfb53e3.js → p-6c46ea86.js} +1 -1
- package/dist/vega/{p-6096ffc3.js → p-6d0947e2.js} +1 -1
- package/dist/vega/{p-c6419eb3.entry.js → p-6ec65f72.entry.js} +1 -1
- package/dist/vega/{p-049e64b1.entry.js → p-701ac71a.entry.js} +1 -1
- package/dist/vega/{p-efef0dfe.entry.js → p-70659d97.entry.js} +1 -1
- package/dist/vega/p-7157dd20.entry.js +1 -0
- package/dist/vega/{p-3d060d2f.entry.js → p-74b54dcc.entry.js} +1 -1
- package/dist/vega/{p-f9f96030.entry.js → p-776123f8.entry.js} +1 -1
- package/dist/vega/{p-cf5c5515.js → p-78a2802f.js} +1 -1
- package/dist/vega/{p-46be74fc.entry.js → p-7e262cb3.entry.js} +1 -1
- package/dist/vega/{p-f0b49ae4.entry.js → p-88ada88b.entry.js} +1 -1
- package/dist/vega/{p-0338f621.entry.js → p-892f3e98.entry.js} +1 -1
- package/dist/vega/{p-92efdbf0.entry.js → p-8a9e80ac.entry.js} +1 -1
- package/dist/vega/{p-4d20a56f.js → p-8e3c1c81.js} +1 -1
- package/dist/vega/{p-ca60a74b.entry.js → p-8e59892d.entry.js} +1 -1
- package/dist/vega/{p-d8fa2f19.entry.js → p-9960ffde.entry.js} +1 -1
- package/dist/vega/{p-381d8781.js → p-9b571551.js} +1 -1
- package/dist/vega/{p-c66c6fd2.entry.js → p-a50b8c9f.entry.js} +1 -1
- package/dist/vega/{p-553510d8.entry.js → p-a54a2def.entry.js} +1 -1
- package/dist/vega/{p-23781e76.js → p-a6346186.js} +1 -1
- package/dist/vega/{p-7f711049.js → p-a7ed55d8.js} +1 -1
- package/dist/vega/{p-f0c6e9c5.entry.js → p-ab6c13d9.entry.js} +1 -1
- package/dist/vega/p-afa8a9af.entry.js +1 -0
- package/dist/vega/{p-30cc31dd.entry.js → p-b4e4b938.entry.js} +1 -1
- package/dist/vega/{p-f5f26b44.entry.js → p-b63af0ae.entry.js} +1 -1
- package/dist/vega/{p-dd273d89.entry.js → p-ba971f6a.entry.js} +1 -1
- package/dist/vega/{p-d7e59f31.js → p-c0eddde0.js} +1 -1
- package/dist/vega/{p-76135e80.entry.js → p-c11b20c0.entry.js} +1 -1
- package/dist/vega/{p-75c7f8ea.entry.js → p-c3532738.entry.js} +1 -1
- package/dist/vega/{p-d86e0b01.js → p-c576f76b.js} +1 -1
- package/dist/vega/{p-18ddc6a4.entry.js → p-c6cfaa2f.entry.js} +1 -1
- package/dist/vega/{p-be0eb72f.js → p-c73cce9b.js} +1 -1
- package/dist/vega/{p-816064f2.entry.js → p-c8c2e940.entry.js} +1 -1
- package/dist/vega/{p-6beaf1c8.entry.js → p-c968f8cf.entry.js} +1 -1
- package/dist/vega/p-cef58d27.js +1 -0
- package/dist/vega/p-d5ab92a5.entry.js +1 -0
- package/dist/vega/{p-741e064e.entry.js → p-d9c2aa77.entry.js} +1 -1
- package/dist/vega/{p-a5fa260b.js → p-da94bcda.js} +1 -1
- package/dist/vega/{p-634b138c.entry.js → p-dcdd7098.entry.js} +1 -1
- package/dist/vega/{p-2f5c4b61.entry.js → p-dcf4f31f.entry.js} +1 -1
- package/dist/vega/{p-4503f5b9.entry.js → p-e11987d3.entry.js} +1 -1
- package/dist/vega/p-e1aa78db.js +1 -0
- package/dist/vega/p-e2168481.js +1 -0
- package/dist/vega/{p-1d8a8507.entry.js → p-e67ef7a1.entry.js} +1 -1
- package/dist/vega/{p-061a76c3.entry.js → p-ea97ec60.entry.js} +1 -1
- package/dist/vega/{p-325b804d.entry.js → p-ebc1e0da.entry.js} +1 -1
- package/dist/vega/{p-c6b6987e.js → p-f2193656.js} +1 -1
- package/dist/vega/{p-a261a675.entry.js → p-f5f78884.entry.js} +1 -1
- package/dist/vega/p-f839e009.entry.js +1 -0
- package/dist/vega/{p-ff9090af.entry.js → p-fa970e96.entry.js} +1 -1
- package/dist/vega/{p-b1e1c7d0.js → p-fc07ed1e.js} +1 -1
- package/dist/vega/{p-5c6d36ef.entry.js → p-fdb6f4f0.entry.js} +1 -1
- package/dist/vega/{p-5a347a15.js → p-fffc1f47.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-040bd9ca.js +0 -1
- package/dist/vega/p-087240db.js +0 -1
- package/dist/vega/p-0e0e66c9.entry.js +0 -1
- package/dist/vega/p-15052b2e.entry.js +0 -1
- package/dist/vega/p-27c9c2a5.entry.js +0 -1
- package/dist/vega/p-28c16885.js +0 -1
- package/dist/vega/p-3ec4d710.js +0 -1
- package/dist/vega/p-43ea1e86.js +0 -1
- package/dist/vega/p-7228088b.entry.js +0 -1
- package/dist/vega/p-7b9ed949.js +0 -1
- package/dist/vega/p-7fd15dd1.js +0 -1
- package/dist/vega/p-8e1f30ec.entry.js +0 -1
- package/dist/vega/p-9680dfe6.js +0 -1
- package/dist/vega/p-9a0e17b2.entry.js +0 -1
- package/dist/vega/p-ae12cc3f.js +0 -3
- package/dist/vega/p-c0823f32.js +0 -1
- package/dist/vega/p-c0eb8c58.js +0 -1
- package/dist/vega/p-c5af2ecc.entry.js +0 -1
- package/dist/vega/p-fa43272c.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { m as StateBackgroundColorFormatter, n as isSpacingTokenType, o as isBorderRadiusTokenType, p as isBorderColorTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, t as isShadowsTokenType, l as Spacing, u as isBorderStyleType, B as BorderRadius, c as Colors, j as Shadows, v as isTypographyTokenType } from './type-guard-
|
|
1
|
+
import { m as StateBackgroundColorFormatter, n as isSpacingTokenType, o as isBorderRadiusTokenType, p as isBorderColorTokenType, q as isBackgroundColorTokenType, r as isTextColorTokenType, s as isBreakpointsTokenType, t as isShadowsTokenType, l as Spacing, u as isBorderStyleType, B as BorderRadius, c as Colors, j as Shadows, v as isTypographyTokenType } from './type-guard-87bdc930.js';
|
|
2
2
|
import { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
3
3
|
import { L as LogUtility } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
4
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-1a9177b9.js';
|
|
5
5
|
import { a as TypographyKeys } from './typography-19c3b9be.js';
|
|
6
|
-
import { S as StateBorderFormatter, a as StateShadowFormatter, b as StateBorderColorFormatter } from './state-border-formatter-
|
|
6
|
+
import { S as StateBorderFormatter, a as StateShadowFormatter, b as StateBorderColorFormatter } from './state-border-formatter-31f3145a.js';
|
|
7
7
|
import { B as BorderStyle } from './ui-93922c59.js';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/esm/{element-appender-slimmer-f02a227f.js → element-appender-slimmer-9094aa07.js}
RENAMED
|
@@ -4,8 +4,8 @@ import { I as InternalVegaZIndexManager } from './internal-vega-z-index-manager-
|
|
|
4
4
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
5
5
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-e24d36c5.js';
|
|
6
6
|
import { A as Alignments, P as Placements } from './ui-93922c59.js';
|
|
7
|
-
import { J as isTranslocationType, i as isNonNullable, a9 as isEATriggerStrategy } from './type-guard-
|
|
8
|
-
import { R as ResponsiveFormatFacade } from './responsive-format-facade-
|
|
7
|
+
import { J as isTranslocationType, i as isNonNullable, a9 as isEATriggerStrategy } from './type-guard-87bdc930.js';
|
|
8
|
+
import { R as ResponsiveFormatFacade } from './responsive-format-facade-1a9177b9.js';
|
|
9
9
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
10
10
|
import { F as FeatureFlag } from './feature-flag-controller-3fd04ea9.js';
|
|
11
11
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
@@ -8,7 +8,7 @@ import { a as isAsyncFunction, g as generateUUID } from './misc-9fdbcfbb.js';
|
|
|
8
8
|
import { c as createDynamicSlimmer } from './dynamic-slimmer-90b8af32.js';
|
|
9
9
|
import { d as domNodeSubjectFactory, D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-bb7e68a0.js';
|
|
10
10
|
import { i as VegaInternalFieldErrorStateChange, g as VegaInternalFormSubmit, j as VegaInternalValid } from './vega-internal-event-id-02093067.js';
|
|
11
|
-
import { V as VegaInternalTranslation } from './internal-translation-controller-
|
|
11
|
+
import { V as VegaInternalTranslation } from './internal-translation-controller-6eb30c39.js';
|
|
12
12
|
import { h as htmlSanitizer, l as labelSanitizeStrategy } from './index-35451d12.js';
|
|
13
13
|
import { P as PageResizeObserverSlimmer } from './page-resize-observer-slimmer-e24d36c5.js';
|
|
14
14
|
import { I as InternalFormFieldValidationRule } from './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
package/dist/esm/{image-annotation-action-df744ba5.js → image-annotation-action-86052c2e.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h } from './index-090d31ca.js';
|
|
2
2
|
import { V as VegaInternalIconManager } from './internal-icon-manager-d4d534d2.js';
|
|
3
3
|
import { c as MapToComponentField, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
4
|
-
import { A as ActionHandleStrategyRegistry,
|
|
4
|
+
import { A as ActionHandleStrategyRegistry, a1 as RTE_TEXT_COLORS, R as RTETextNode, av as TextColorAnnotationAction, N as NodeAnnotationTypeEnum, k as AnnotationAction } from './code-block-c16c69a5.js';
|
|
5
5
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-bb7e68a0.js';
|
|
6
6
|
import { b as VegaClick, a as VegaPopoverShow, V as VegaPopoverHide, c as VegaChange } from './vega-event-id-6b4db259.js';
|
|
7
7
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-4e04a2d3.js';
|
|
8
|
-
import { e as ImageAnnotation } from './content-state-
|
|
8
|
+
import { e as ImageAnnotation } from './content-state-73664d93.js';
|
|
9
9
|
|
|
10
10
|
const text = {
|
|
11
11
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>`,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { R as RTETextNode,
|
|
2
|
-
import { e as extensionContextManager, a as VegaRTEExtensionRenderer, b as VegaRTEExtension } from './link-extension-
|
|
1
|
+
import { R as RTETextNode, ah as escapeHtmlAttribute, ai as BoldAnnotationAction, aj as DeleteNodeAnnotationAction, N as NodeAnnotationTypeEnum, U as UpdateTextAction, l as RemoveChildrenAction, f as ActionHandleStrategy, M as ModifyContentAction, j as ModifyContentActionType, s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, c as RTETextBlock, r as RTEListItemBlock, ak as normalizePlainTextLines, al as PRESERVED_SPACE, am as PRESERVED_TAB } from './code-block-c16c69a5.js';
|
|
2
|
+
import { e as extensionContextManager, a as VegaRTEExtensionRenderer, b as VegaRTEExtension } from './link-extension-caabb7d8.js';
|
|
3
3
|
import { g as generateUUID } from './misc-9fdbcfbb.js';
|
|
4
|
-
import { E as ElementToDTOStrategy, U as UpdateCursorPositionAction } from './content-state-
|
|
4
|
+
import { E as ElementToDTOStrategy, U as UpdateCursorPositionAction } from './content-state-73664d93.js';
|
|
5
5
|
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-bb7e68a0.js';
|
|
6
6
|
import { d as VegaDropdownClick, b as VegaClick, c as VegaChange } from './vega-event-id-6b4db259.js';
|
|
7
|
-
import { V as VegaInternalTranslation } from './internal-translation-controller-
|
|
7
|
+
import { V as VegaInternalTranslation } from './internal-translation-controller-6eb30c39.js';
|
|
8
8
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-c899a968.js';
|
|
9
9
|
import { d as debounce } from './timer-9321173b.js';
|
|
10
10
|
import { t as tryGetDocument } from './try-get-document-bef0f526.js';
|
|
11
11
|
import { V as VegaInternalIconManager } from './internal-icon-manager-d4d534d2.js';
|
|
12
|
-
import { i as isNonNullable } from './type-guard-
|
|
12
|
+
import { i as isNonNullable } from './type-guard-87bdc930.js';
|
|
13
13
|
import { v as vegaNonceManager } from './vega-nonce-manager-497e5eb5.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -1163,6 +1163,246 @@ class ReplaceSelectedTextAction extends ModifyContentAction {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
1165
|
|
|
1166
|
+
/**
|
|
1167
|
+
* Block-level HTML tags that introduce a visible line break when converting
|
|
1168
|
+
* HTML to plain text. Hard-coded because this is HTML spec knowledge that
|
|
1169
|
+
* cannot be derived at runtime and must be kept in sync with the spec.
|
|
1170
|
+
*
|
|
1171
|
+
* Trade-off: this is a blocklist, so unknown/custom elements default to inline.
|
|
1172
|
+
* That is acceptable for this plain-text fallback (clipboard HTML rarely
|
|
1173
|
+
* contains custom block elements); an inline allowlist would be more robust
|
|
1174
|
+
* but is unnecessary here.
|
|
1175
|
+
*
|
|
1176
|
+
* @see https://developer.mozilla.org/docs/Glossary/Block-level_content
|
|
1177
|
+
*/
|
|
1178
|
+
const BLOCK_LEVEL_TAGS = new Set([
|
|
1179
|
+
'address',
|
|
1180
|
+
'article',
|
|
1181
|
+
'aside',
|
|
1182
|
+
'blockquote',
|
|
1183
|
+
'dd',
|
|
1184
|
+
'details',
|
|
1185
|
+
'dialog',
|
|
1186
|
+
'div',
|
|
1187
|
+
'dl',
|
|
1188
|
+
'dt',
|
|
1189
|
+
'figure',
|
|
1190
|
+
'footer',
|
|
1191
|
+
'form',
|
|
1192
|
+
'h1',
|
|
1193
|
+
'h2',
|
|
1194
|
+
'h3',
|
|
1195
|
+
'h4',
|
|
1196
|
+
'h5',
|
|
1197
|
+
'h6',
|
|
1198
|
+
'header',
|
|
1199
|
+
'hr',
|
|
1200
|
+
'li',
|
|
1201
|
+
'main',
|
|
1202
|
+
'nav',
|
|
1203
|
+
'ol',
|
|
1204
|
+
'p',
|
|
1205
|
+
'pre',
|
|
1206
|
+
'section',
|
|
1207
|
+
'table',
|
|
1208
|
+
'tbody',
|
|
1209
|
+
'tfoot',
|
|
1210
|
+
'thead',
|
|
1211
|
+
'tr',
|
|
1212
|
+
'ul',
|
|
1213
|
+
]);
|
|
1214
|
+
/**
|
|
1215
|
+
* Inline `display` values that turn a nominally inline tag into a visual block-level box
|
|
1216
|
+
* (e.g. Jira/Confluence code lines: `<span style="display: flex; white-space: pre-wrap;">`).
|
|
1217
|
+
*/
|
|
1218
|
+
const BLOCK_LIKE_DISPLAY_VALUES = new Set([
|
|
1219
|
+
'block',
|
|
1220
|
+
'flex',
|
|
1221
|
+
'grid',
|
|
1222
|
+
'table',
|
|
1223
|
+
'list-item',
|
|
1224
|
+
'flow-root',
|
|
1225
|
+
]);
|
|
1226
|
+
/**
|
|
1227
|
+
* @param {Element} el Candidate element.
|
|
1228
|
+
* @returns {boolean} Whether the element's inline `style="display: ..."` puts it in the block flow.
|
|
1229
|
+
*/
|
|
1230
|
+
function hasBlockLikeInlineDisplay(el) {
|
|
1231
|
+
const inlineStyle = el.style;
|
|
1232
|
+
if (!inlineStyle) {
|
|
1233
|
+
return false;
|
|
1234
|
+
}
|
|
1235
|
+
return BLOCK_LIKE_DISPLAY_VALUES.has(inlineStyle.display);
|
|
1236
|
+
}
|
|
1237
|
+
// `pre-line` intentionally excluded: it keeps `\n` but collapses spaces/tabs.
|
|
1238
|
+
const WHITESPACE_PRESERVING_VALUES = new Set(['pre', 'pre-wrap', 'break-spaces']);
|
|
1239
|
+
/**
|
|
1240
|
+
* @param {Element} el Candidate element.
|
|
1241
|
+
* @returns {boolean} Whether the element's inline `style="white-space: ..."` preserves source whitespace.
|
|
1242
|
+
*/
|
|
1243
|
+
function preservesWhitespaceInlineStyle(el) {
|
|
1244
|
+
const inlineStyle = el.style;
|
|
1245
|
+
if (!inlineStyle) {
|
|
1246
|
+
return false;
|
|
1247
|
+
}
|
|
1248
|
+
return WHITESPACE_PRESERVING_VALUES.has(inlineStyle.whiteSpace);
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Resolves the preformatted text of a code-block element, or `null` when the element is not a
|
|
1252
|
+
* code block. A Vega code block serializes to `<vega-code-block data-content data-language>` whose
|
|
1253
|
+
* `data-content` attribute is the authoritative source (its shadow-DOM `<code>` may be empty in some
|
|
1254
|
+
* browsers); external editors emit `<pre>`/`<code data-language>` whose `textContent` carries the
|
|
1255
|
+
* code. Both keep their newlines/indentation so plain paste renders one paragraph per line.
|
|
1256
|
+
*
|
|
1257
|
+
* @param {Element} el Candidate element.
|
|
1258
|
+
* @returns {string | null} Code text with line breaks preserved, or `null` when not a code block.
|
|
1259
|
+
*/
|
|
1260
|
+
function resolveCodeBlockText(el) {
|
|
1261
|
+
var _a, _b, _c;
|
|
1262
|
+
const tagName = el.tagName.toLowerCase();
|
|
1263
|
+
if (tagName === 'vega-code-block') {
|
|
1264
|
+
return (_b = (_a = el.getAttribute('data-content')) !== null && _a !== void 0 ? _a : el.textContent) !== null && _b !== void 0 ? _b : '';
|
|
1265
|
+
}
|
|
1266
|
+
if ((tagName === 'pre' || tagName === 'code') && el.hasAttribute('data-language')) {
|
|
1267
|
+
return (_c = el.textContent) !== null && _c !== void 0 ? _c : '';
|
|
1268
|
+
}
|
|
1269
|
+
return null;
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* Recursively builds text content, inserting `\n` at block-level element and `<br>` boundaries.
|
|
1273
|
+
*
|
|
1274
|
+
* @param {Node} node DOM node to extract text from.
|
|
1275
|
+
* @param {boolean} preserveWhitespace Whether whitespace should be retained for preformatted content.
|
|
1276
|
+
* @param {boolean} preserveNewlines Keep literal `\n` in text nodes as line breaks (used inside table
|
|
1277
|
+
* cells, where a Vega line break is a text node rendered as `<span>\n</span>` rather than a `<br>`).
|
|
1278
|
+
* @returns {string} Extracted text with line breaks preserved.
|
|
1279
|
+
*/
|
|
1280
|
+
function extractBlockAwareText(node, preserveWhitespace, preserveNewlines = false) {
|
|
1281
|
+
let text = '';
|
|
1282
|
+
node.childNodes.forEach((child) => {
|
|
1283
|
+
var _a, _b, _c;
|
|
1284
|
+
if (child.nodeType === Node.TEXT_NODE) {
|
|
1285
|
+
const textContent = (_a = child.textContent) !== null && _a !== void 0 ? _a : '';
|
|
1286
|
+
if (preserveWhitespace) {
|
|
1287
|
+
text += textContent.replace(/ /g, PRESERVED_SPACE).replace(/\t/g, PRESERVED_TAB);
|
|
1288
|
+
return;
|
|
1289
|
+
}
|
|
1290
|
+
const parentElement = child.parentElement;
|
|
1291
|
+
const hasBlockChild = Array.from((_b = parentElement === null || parentElement === void 0 ? void 0 : parentElement.children) !== null && _b !== void 0 ? _b : []).some((element) => BLOCK_LEVEL_TAGS.has(element.tagName.toLowerCase()));
|
|
1292
|
+
if (!/\S/.test(textContent) && hasBlockChild) {
|
|
1293
|
+
return;
|
|
1294
|
+
}
|
|
1295
|
+
// Collapse only whitespace runs that cross a markup newline (source-format indentation
|
|
1296
|
+
// between tags); real space/tab runs inside a text node are user content and stay verbatim.
|
|
1297
|
+
// Inside a cell (preserveNewlines) the collapse keeps the newline as-is.
|
|
1298
|
+
text += textContent.replace(preserveNewlines ? /[^\S\u00A0\n]*\n[^\S\u00A0\n]*/g : /[^\S\u00A0]*\n[^\S\u00A0]*/g, preserveNewlines ? '\n' : ' ');
|
|
1299
|
+
return;
|
|
1300
|
+
}
|
|
1301
|
+
if (child.nodeType !== Node.ELEMENT_NODE) {
|
|
1302
|
+
return;
|
|
1303
|
+
}
|
|
1304
|
+
const el = child;
|
|
1305
|
+
const tagName = el.tagName.toLowerCase();
|
|
1306
|
+
if (tagName === 'br') {
|
|
1307
|
+
text += '\n';
|
|
1308
|
+
return;
|
|
1309
|
+
}
|
|
1310
|
+
if (tagName === 'img') {
|
|
1311
|
+
text += (_c = el.getAttribute('alt')) !== null && _c !== void 0 ? _c : '';
|
|
1312
|
+
return;
|
|
1313
|
+
}
|
|
1314
|
+
// Code blocks keep their newlines/indentation verbatim so each line becomes its own
|
|
1315
|
+
// paragraph on plain paste, instead of collapsing to a single line.
|
|
1316
|
+
const codeBlockText = resolveCodeBlockText(el);
|
|
1317
|
+
if (codeBlockText !== null) {
|
|
1318
|
+
const preservedCode = codeBlockText
|
|
1319
|
+
.replace(/ /g, PRESERVED_SPACE)
|
|
1320
|
+
.replace(/\t/g, PRESERVED_TAB);
|
|
1321
|
+
if (text !== '' && !text.endsWith('\n')) {
|
|
1322
|
+
text += '\n';
|
|
1323
|
+
}
|
|
1324
|
+
text += preservedCode;
|
|
1325
|
+
if (preservedCode === '' || !text.endsWith('\n')) {
|
|
1326
|
+
text += '\n';
|
|
1327
|
+
}
|
|
1328
|
+
return;
|
|
1329
|
+
}
|
|
1330
|
+
if (BLOCK_LEVEL_TAGS.has(tagName) || hasBlockLikeInlineDisplay(el)) {
|
|
1331
|
+
const blockText = extractBlockAwareText(el, preserveWhitespace || tagName === 'pre', preserveNewlines);
|
|
1332
|
+
// Empty list items and empty structural `div`s (ProseMirror table scaffolding: sticky
|
|
1333
|
+
// sentinels, row-control wrappers, borders) are artifacts, not intentional blank lines, so
|
|
1334
|
+
// skip them. Keep meaningful empty blocks: break-only div and div containing an image but
|
|
1335
|
+
// no extractable text. Empty `<p>`/headings still keep their blank line via the logic below.
|
|
1336
|
+
if ((tagName === 'li' && blockText.trim() === '') ||
|
|
1337
|
+
(tagName === 'div' && blockText === '' && el.querySelector('img') === null)) {
|
|
1338
|
+
return;
|
|
1339
|
+
}
|
|
1340
|
+
if (text !== '' && !text.endsWith('\n')) {
|
|
1341
|
+
text += '\n';
|
|
1342
|
+
}
|
|
1343
|
+
text += blockText;
|
|
1344
|
+
if (blockText === '' || !text.endsWith('\n')) {
|
|
1345
|
+
text += '\n';
|
|
1346
|
+
}
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1349
|
+
// Put each cell on its own line while keeping the cell's own blank lines (empty
|
|
1350
|
+
// paragraphs and Vega text-node line breaks); tabs inside a cell collapse to a space so
|
|
1351
|
+
// they don't look like columns.
|
|
1352
|
+
if (tagName === 'td' || tagName === 'th') {
|
|
1353
|
+
const cellText = extractBlockAwareText(el, preserveWhitespace, true)
|
|
1354
|
+
.replace(/\t+/g, ' ')
|
|
1355
|
+
.replace(/^\n+|\n+$/g, '');
|
|
1356
|
+
text += `${cellText}\n`;
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
text += extractBlockAwareText(el, preserveWhitespace || tagName === 'pre', preserveNewlines || preservesWhitespaceInlineStyle(el));
|
|
1360
|
+
});
|
|
1361
|
+
return text;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Converts HTML to plain text, preserving line breaks introduced by block-level elements and `<br>`.
|
|
1365
|
+
* Used as a fallback when clipboard data lacks a `text/plain` payload, so structural breaks
|
|
1366
|
+
* (e.g. `<h1>Heading</h1><p>Body</p>`) survive as `Heading\nBody` instead of being flattened.
|
|
1367
|
+
*
|
|
1368
|
+
* @param {string} html HTML content to convert.
|
|
1369
|
+
* @param {HtmlToPlainTextOptions} options Plain-text conversion options.
|
|
1370
|
+
* @returns {string} Block-aware plain text with normalized `\n` line endings.
|
|
1371
|
+
*/
|
|
1372
|
+
function htmlToPlainText(html, options = {}) {
|
|
1373
|
+
if (!html) {
|
|
1374
|
+
return '';
|
|
1375
|
+
}
|
|
1376
|
+
const parsed = new DOMParser().parseFromString(html, 'text/html');
|
|
1377
|
+
if (!parsed.body) {
|
|
1378
|
+
return '';
|
|
1379
|
+
}
|
|
1380
|
+
// Per-paragraph trim: sentinels (`\u0001`/`\u0002`) are not in `\s`, so code-block indentation
|
|
1381
|
+
// emitted by the preservation branch survives; NBSP is in `\s`, so noise from non-code sources is dropped.
|
|
1382
|
+
const normalizedText = normalizePlainTextLines(extractBlockAwareText(parsed.body, false))
|
|
1383
|
+
.map((line) => line.trim())
|
|
1384
|
+
.join('\n');
|
|
1385
|
+
const textWithoutStructuralBreak = options.preserveBoundaryBlankLines
|
|
1386
|
+
? normalizedText.replace(/\n$/, '')
|
|
1387
|
+
: normalizedText.replace(/^\n+|\n+$/g, '');
|
|
1388
|
+
if (options.keepPreservedWhitespaceMarkers) {
|
|
1389
|
+
return textWithoutStructuralBreak;
|
|
1390
|
+
}
|
|
1391
|
+
return textWithoutStructuralBreak.split(PRESERVED_SPACE).join(' ').split(PRESERVED_TAB).join('\t');
|
|
1392
|
+
}
|
|
1393
|
+
/**
|
|
1394
|
+
* Detects whether the clipboard HTML contains a table anywhere. Plain paste uses this together
|
|
1395
|
+
* with a tab check on `text/plain`: a tab-separated `text/plain` only reflects a table's row/
|
|
1396
|
+
* column layout when the clipboard actually has a table, so that combination is pasted from
|
|
1397
|
+
* `text/plain` verbatim (its line breaks are trusted as-is), regardless of any surrounding content.
|
|
1398
|
+
*
|
|
1399
|
+
* @param {string} html HTML content to inspect.
|
|
1400
|
+
* @returns {boolean} Whether the HTML contains a table.
|
|
1401
|
+
*/
|
|
1402
|
+
function htmlContainsTable(html) {
|
|
1403
|
+
return /<table[\s/>]/i.test(html);
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1166
1406
|
/**
|
|
1167
1407
|
* Rich Text Editor extension that configures built-in image behavior.
|
|
1168
1408
|
*/
|
|
@@ -1197,4 +1437,4 @@ class VegaRTEImageExtension extends VegaRTEExtension {
|
|
|
1197
1437
|
*/
|
|
1198
1438
|
VegaRTEImageExtension.configStore = VegaRTEImageExtension.createStateStore();
|
|
1199
1439
|
|
|
1200
|
-
export { ActionHandlerInterceptor as A, InsertNodeToNearestRootAction as I, ReplaceSelectedTextAction as R, VegaRTEBookmarkExtension as V, VegaRTEImageExtension as a, VegaRTEToolbarButtonRenderer as b,
|
|
1440
|
+
export { ActionHandlerInterceptor as A, InsertNodeToNearestRootAction as I, ReplaceSelectedTextAction as R, VegaRTEBookmarkExtension as V, VegaRTEImageExtension as a, VegaRTEToolbarButtonRenderer as b, htmlToPlainText as c, bookmarkIcon as d, collectBookmarkNames as e, htmlContainsTable as h };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
export { g as getCurrentBreakpoint } from './breakpoints-332702ed.js';
|
|
2
2
|
export { L as LogUtility, s as setVegaLogLevel } from './global-slimmer-registry-17c4efd4.js';
|
|
3
|
-
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-
|
|
3
|
+
export { d as formatAndValidBackgroundColor, e as formatAndValidBorderColor, g as formatAndValidBorderRadius, c as formatAndValidBreakpointSize, a as formatAndValidGap, h as formatAndValidPadding, f as formatAndValidResponsiveToken, b as formatAndValidShadow, i as formatAndValidTextColor } from './design-token-4b81bae7.js';
|
|
4
4
|
export { c as camelToDashCase } from './string-a953eafc.js';
|
|
5
|
-
export { g as BackgroundColorMap, d as BackgroundColors, h as BorderColorMap, e as BorderColors, B as BorderRadius, c as Colors, F as FillBackgroundColors, k as ShadowMap, j as Shadows, l as Spacing, S as StrokeBackgroundColors, f as TextColorMap, T as TextColors } from './type-guard-
|
|
5
|
+
export { g as BackgroundColorMap, d as BackgroundColors, h as BorderColorMap, e as BorderColors, B as BorderRadius, c as Colors, F as FillBackgroundColors, k as ShadowMap, j as Shadows, l as Spacing, S as StrokeBackgroundColors, f as TextColorMap, T as TextColors } from './type-guard-87bdc930.js';
|
|
6
6
|
export { B as Breakpoints } from './breakpoints-d9faf11c.js';
|
|
7
7
|
export { I as Icons, g as getIconFromToken } from './icons-8627925e.js';
|
|
8
8
|
export { b as Typography, a as TypographyKeys, T as TypographyUrls } from './typography-19c3b9be.js';
|
|
9
9
|
export { d as BoxDisplay, e as BreakpointKeys, C as CssStates, F as FlexDirections } from './ui-93922c59.js';
|
|
10
10
|
export { F as FrameworkEnum, v as VegaEnvManager } from './vega-env-manager-8f8dc473.js';
|
|
11
|
-
export { G as DeleteSelectedContentAction, F as RTEBlockquoteBlock, E as RTELanguageToolbarButtonRenderer, C as RTETokenNode, D as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, B as VegaCalendarPeriodFactory, b as VegaEventManager, V as VegaLoader, a as VegaNotify, l as VegaRTEBlockquoteExtension, y as VegaRTECopyExtension, z as VegaRTECutExtension, h as VegaRTEDefaultLineHeightOptions, n as VegaRTEFindReplaceExtension, x as VegaRTEFullscreenExtension, i as VegaRTEFunctionExtension, k as VegaRTEHorizontalLineExtension, g as VegaRTELanguageExtension, u as VegaRTELineHeightExtension, v as VegaRTEPasteExtension, r as VegaRTESpecialCharactersArrows, s as VegaRTESpecialCharactersCurrency, o as VegaRTESpecialCharactersEssentials, m as VegaRTESpecialCharactersExtension, p as VegaRTESpecialCharactersLatin, q as VegaRTESpecialCharactersMathematical, t as VegaRTESpecialCharactersText, j as VegaRTETableExtension, f as VegaRTETokenExtension, A as VegaRTEWordCountExtension, d as VegaSkeletonLoader, e as VegaTranslation, c as VegaZIndexManager, w as waitForVega } from './token-extension-
|
|
11
|
+
export { G as DeleteSelectedContentAction, F as RTEBlockquoteBlock, E as RTELanguageToolbarButtonRenderer, C as RTETokenNode, D as RTETokenNodeRenderer, R as RTETokenToolbarButtonRenderer, B as VegaCalendarPeriodFactory, b as VegaEventManager, V as VegaLoader, a as VegaNotify, l as VegaRTEBlockquoteExtension, y as VegaRTECopyExtension, z as VegaRTECutExtension, h as VegaRTEDefaultLineHeightOptions, n as VegaRTEFindReplaceExtension, x as VegaRTEFullscreenExtension, i as VegaRTEFunctionExtension, k as VegaRTEHorizontalLineExtension, g as VegaRTELanguageExtension, u as VegaRTELineHeightExtension, v as VegaRTEPasteExtension, r as VegaRTESpecialCharactersArrows, s as VegaRTESpecialCharactersCurrency, o as VegaRTESpecialCharactersEssentials, m as VegaRTESpecialCharactersExtension, p as VegaRTESpecialCharactersLatin, q as VegaRTESpecialCharactersMathematical, t as VegaRTESpecialCharactersText, j as VegaRTETableExtension, f as VegaRTETokenExtension, A as VegaRTEWordCountExtension, d as VegaSkeletonLoader, e as VegaTranslation, c as VegaZIndexManager, w as waitForVega } from './token-extension-f001f08e.js';
|
|
12
12
|
export { F as FeatureFlag } from './feature-flag-controller-3fd04ea9.js';
|
|
13
|
-
export { V as VegaThemeManager } from './split-cell-operation-
|
|
13
|
+
export { V as VegaThemeManager } from './split-cell-operation-814641f5.js';
|
|
14
14
|
export { V as VegaDialog } from './vega-dialog-controller-f2d3b6c9.js';
|
|
15
15
|
export { B as VegaJQueryDelegatedEventStrategy } from './internal-vega-event-manager-6eebe8f8.js';
|
|
16
16
|
export { V as VegaIconManager } from './icon-manager-236d6c23.js';
|
|
17
|
-
export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-
|
|
17
|
+
export { V as ValidCreditCardNumberRule } from './valid-credit-card-number-rule-5dc557f1.js';
|
|
18
18
|
import './ui-80e610f4.js';
|
|
19
|
-
export { s as VegaTranslationResourceEN } from './internal-translation-controller-
|
|
19
|
+
export { s as VegaTranslationResourceEN } from './internal-translation-controller-6eb30c39.js';
|
|
20
20
|
export { s as setVegaNonce } from './vega-nonce-manager-497e5eb5.js';
|
|
21
21
|
export { C as VegaCountryNames } from './countries-50d3339b.js';
|
|
22
|
-
export {
|
|
23
|
-
export { B as BlockToRTEBlockStrategyAbstract, E as ElementToDTOStrategy, I as InsertNewParagraphAction, R as RTEImageBlock, b as RTEImageNode, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './content-state-
|
|
24
|
-
export { G as GridColumns, a as GridRows } from './responsive-format-facade-
|
|
22
|
+
export { f as ActionHandleStrategy, g as AppendChildrenAction, ao as CodeLanguage, m as CustomAttributeAnnotation, ap as CustomClassAnnotation, u as CustomStyleAnnotation, I as InsertChildrenAfterAction, h as InsertChildrenBeforeAction, M as ModifyContentAction, j as ModifyContentActionType, e as RTEAnnotationStyle, b as RTEBlock, p as RTEDecoratorNode, o as RTEFilterStylesStrategy, Z as RTEListBlock, r as RTEListItemBlock, a as RTENode, c as RTETextBlock, R as RTETextNode, l as RemoveChildrenAction, aq as VegaRTEDefaultTextStyleItems, V as VegaRTEPresetToolbarItems } from './code-block-c16c69a5.js';
|
|
23
|
+
export { B as BlockToRTEBlockStrategyAbstract, E as ElementToDTOStrategy, I as InsertNewParagraphAction, R as RTEImageBlock, b as RTEImageNode, U as UpdateCursorPositionAction, V as VegaRTEContent, h as htmlElementToAnnotationGenerator } from './content-state-73664d93.js';
|
|
24
|
+
export { G as GridColumns, a as GridRows } from './responsive-format-facade-1a9177b9.js';
|
|
25
25
|
export { C as CheckBoxRequiredRule } from './check-box-required-rule-cb0aa339.js';
|
|
26
|
-
export { D as DateRequiredRule } from './date-required-rule-
|
|
26
|
+
export { D as DateRequiredRule } from './date-required-rule-14131e09.js';
|
|
27
27
|
export { I as InputPhoneNumberRequiredRule } from './input-phone-number-required-rule-be6a5572.js';
|
|
28
28
|
export { I as InputRangeRequiredRule } from './input-range-required-rule-3ad74776.js';
|
|
29
29
|
export { R as RequiredFieldRule } from './required-field-rule-897fe8d1.js';
|
|
30
|
-
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-
|
|
31
|
-
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-
|
|
30
|
+
export { R as RichTextEditorRequiredRule } from './rich-text-editor-required-rule-65e18ef0.js';
|
|
31
|
+
export { T as TimeRangeRequiredRule, a as TimeRequiredRule } from './time-required-rule-fcab062e.js';
|
|
32
32
|
export { T as ToggleSwitchRequiredRule } from './toggle-switch-required-rule-b3cf4302.js';
|
|
33
33
|
export { F as FileUploaderRequiredRule } from './file-uploader-required-rule-96952e1a.js';
|
|
34
|
-
export { b as VegaRTEExtension, a as VegaRTEExtensionRenderer, V as VegaRTELinkExtension } from './link-extension-
|
|
35
|
-
export { A as ActionHandlerInterceptor, I as InsertNodeToNearestRootAction, V as VegaRTEBookmarkExtension, a as VegaRTEImageExtension, b as VegaRTEToolbarButtonRenderer } from './image-extension-
|
|
36
|
-
export { R as RTERange } from './range-
|
|
37
|
-
import './state-border-formatter-
|
|
34
|
+
export { b as VegaRTEExtension, a as VegaRTEExtensionRenderer, V as VegaRTELinkExtension } from './link-extension-caabb7d8.js';
|
|
35
|
+
export { A as ActionHandlerInterceptor, I as InsertNodeToNearestRootAction, V as VegaRTEBookmarkExtension, a as VegaRTEImageExtension, b as VegaRTEToolbarButtonRenderer } from './image-extension-04843995.js';
|
|
36
|
+
export { R as RTERange } from './range-c0aec697.js';
|
|
37
|
+
import './state-border-formatter-31f3145a.js';
|
|
38
38
|
import './misc-9fdbcfbb.js';
|
|
39
39
|
import './discriminated-fe5bf3c8.js';
|
|
40
40
|
import './dynamic-slimmer-90b8af32.js';
|
|
@@ -42,7 +42,7 @@ import './internal-vega-z-index-manager-7d2b54c3.js';
|
|
|
42
42
|
import './number-4398f2e1.js';
|
|
43
43
|
import './page-resize-observer-slimmer-e24d36c5.js';
|
|
44
44
|
import './try-get-document-bef0f526.js';
|
|
45
|
-
import './internal-calendar-period-factory-
|
|
45
|
+
import './internal-calendar-period-factory-14c000cf.js';
|
|
46
46
|
import './internal-icon-manager-d4d534d2.js';
|
|
47
47
|
import './change-manager-6a7eb88c.js';
|
|
48
48
|
import './dom-node-subject-observer-factory-bb7e68a0.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CalendarDate, a as MonthPeriod, b as DayPeriod, W as WeekPeriod } from './type-guard-
|
|
1
|
+
import { C as CalendarDate, a as MonthPeriod, b as DayPeriod, W as WeekPeriod } from './type-guard-87bdc930.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Factory class for creating CalendarPeriod instances and converting them to VegaCalendarPeriodType.
|
|
@@ -118,6 +118,10 @@ const staticTranslations = {
|
|
|
118
118
|
'Less Indent': 'Less Indent',
|
|
119
119
|
'Link': 'Link',
|
|
120
120
|
'Image': 'Image',
|
|
121
|
+
'Delete': 'Delete',
|
|
122
|
+
'Preview': 'Preview',
|
|
123
|
+
'Are you sure you want to delete this image?': 'Are you sure you want to delete this image?',
|
|
124
|
+
'OK': 'OK',
|
|
121
125
|
'Upload from computer': 'Upload from computer',
|
|
122
126
|
'Insert via URL': 'Insert via URL',
|
|
123
127
|
'Image via URL': 'Image via URL',
|
|
@@ -229,6 +233,7 @@ const staticTranslations = {
|
|
|
229
233
|
'Currency': 'Currency',
|
|
230
234
|
'Use rich text': 'Use rich text',
|
|
231
235
|
'Rich Text Editor. Editing area: main. ': 'Rich Text Editor. Editing area: main. ',
|
|
236
|
+
'Use plain text': 'Use plain text',
|
|
232
237
|
'Paste options': 'Paste options',
|
|
233
238
|
'Required': 'Required',
|
|
234
239
|
'Disabled': 'Disabled',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as isParent, b as getDeepActiveElementInShadow } from './ui-80e610f4.js';
|
|
2
|
-
import { i as isNonNullable } from './type-guard-
|
|
2
|
+
import { i as isNonNullable } from './type-guard-87bdc930.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* It listens to the keyup event on the window and calls the appropriate method on the registered elements
|
package/dist/esm/{keyboard-manager-slimmer-f40dcb54.js → keyboard-manager-slimmer-ffe6588a.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as MapToComponentMethod, V as VegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
2
|
-
import { K as KeyboardManager } from './keyboard-manager-
|
|
2
|
+
import { K as KeyboardManager } from './keyboard-manager-e7add1f3.js';
|
|
3
3
|
|
|
4
4
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
5
5
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -468,6 +468,34 @@ class ArcGenerator {
|
|
|
468
468
|
const outerStartY = outerR * Math.sin(startAngle);
|
|
469
469
|
const outerEndX = outerR * Math.cos(endAngle);
|
|
470
470
|
const outerEndY = outerR * Math.sin(endAngle);
|
|
471
|
+
// A full circle (single 100% slice) has identical start/end points, which SVG can't arc between,
|
|
472
|
+
// so it must be split into two semicircle arcs to render at all.
|
|
473
|
+
if (Math.abs(angleDiff) >= 2 * Math.PI - 1e-6) {
|
|
474
|
+
const midAngle = startAngle + angleDiff / 2;
|
|
475
|
+
const outerMidX = outerR * Math.cos(midAngle);
|
|
476
|
+
const outerMidY = outerR * Math.sin(midAngle);
|
|
477
|
+
if (innerR > 0) {
|
|
478
|
+
const innerStartX = innerR * Math.cos(startAngle);
|
|
479
|
+
const innerStartY = innerR * Math.sin(startAngle);
|
|
480
|
+
const innerMidX = innerR * Math.cos(midAngle);
|
|
481
|
+
const innerMidY = innerR * Math.sin(midAngle);
|
|
482
|
+
return [
|
|
483
|
+
`M${outerStartX},${outerStartY}`,
|
|
484
|
+
`A${outerR},${outerR},0,1,1,${outerMidX},${outerMidY}`,
|
|
485
|
+
`A${outerR},${outerR},0,1,1,${outerStartX},${outerStartY}`,
|
|
486
|
+
`M${innerStartX},${innerStartY}`,
|
|
487
|
+
`A${innerR},${innerR},0,1,0,${innerMidX},${innerMidY}`,
|
|
488
|
+
`A${innerR},${innerR},0,1,0,${innerStartX},${innerStartY}`,
|
|
489
|
+
'Z',
|
|
490
|
+
].join('');
|
|
491
|
+
}
|
|
492
|
+
return [
|
|
493
|
+
`M${outerStartX},${outerStartY}`,
|
|
494
|
+
`A${outerR},${outerR},0,1,1,${outerMidX},${outerMidY}`,
|
|
495
|
+
`A${outerR},${outerR},0,1,1,${outerStartX},${outerStartY}`,
|
|
496
|
+
'Z',
|
|
497
|
+
].join('');
|
|
498
|
+
}
|
|
471
499
|
if (innerR > 0) {
|
|
472
500
|
// Donut arc: outer arc clockwise + inner arc counter-clockwise
|
|
473
501
|
const innerEndX = innerR * Math.cos(endAngle);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry,
|
|
2
|
-
import { c as RTEDTOActionStrategyManager, d as ElementToDTOClassStrategyManager, h as htmlElementToAnnotationGenerator } from './content-state-
|
|
3
|
-
import { i as isNonNullable } from './type-guard-
|
|
1
|
+
import { s as stateEntityRenderingRegistry, A as ActionHandleStrategyRegistry, an as ActionHandlerInterceptorRegistry, v as RTEFilterStylesStrategyRegistry, n as RTEDTOClassManager } from './code-block-c16c69a5.js';
|
|
2
|
+
import { c as RTEDTOActionStrategyManager, d as ElementToDTOClassStrategyManager, h as htmlElementToAnnotationGenerator } from './content-state-73664d93.js';
|
|
3
|
+
import { i as isNonNullable } from './type-guard-87bdc930.js';
|
|
4
4
|
import { D as Discriminated } from './discriminated-fe5bf3c8.js';
|
|
5
5
|
import './global-slimmer-registry-17c4efd4.js';
|
|
6
6
|
|