@heartlandone/vega 2.49.0 → 2.50.0-RTE-preview
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-e17dedba.js → app-globals-8e811cac.js} +7 -7
- package/dist/cjs/{array-3aa164ce.js → array-249289f2.js} +18 -15
- package/dist/cjs/{child-nodes-event-prevent-slimmer-37870b2e.js → child-nodes-event-prevent-slimmer-26ecfb15.js} +2 -2
- package/dist/cjs/{content-state-6a48bcb5.js → code-block-4cd8bccd.js} +1166 -1131
- package/dist/cjs/content-state-6cb98931.js +2496 -0
- package/dist/cjs/{design-token-6e2c52f1.js → design-token-8b48cb59.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-9fb99abd.js → element-appender-slimmer-d6b975e6.js} +3 -3
- package/dist/cjs/{event-emit-slimmer-8247249c.js → event-emit-slimmer-ee7a8c06.js} +1 -1
- package/dist/cjs/{feature-flag-controller-075fa683.js → feature-flag-controller-5e58aae4.js} +6 -0
- package/dist/cjs/{form-field-controller-slimmer-527c25a0.js → form-field-controller-slimmer-88cbb139.js} +9 -7
- package/dist/cjs/{image-annotation-action-9c2b9c8e.js → image-annotation-action-f36b1a72.js} +65 -35
- package/dist/cjs/{index-c4dec3aa.js → index-4dd54e6b.js} +1 -1
- package/dist/cjs/{index-09acd3c9.js → index-7700600c.js} +9 -0
- package/dist/cjs/index.cjs.js +19 -18
- package/dist/cjs/{internal-vega-event-manager-c9948b59.js → internal-vega-event-manager-58afcde7.js} +1 -0
- package/dist/cjs/{legend-input-processor-b071654c.js → legend-input-processor-8bcce3bf.js} +1 -1
- package/dist/cjs/loader.cjs.js +12 -10
- package/dist/cjs/{mutation-observer-filters-1f8c32a3.js → mutation-observer-filters-38cebc6d.js} +1 -1
- package/dist/cjs/{public-rules-10ec636d.js → public-rules-555271e0.js} +8 -6
- package/dist/cjs/{responsive-format-facade-9be0a851.js → responsive-format-facade-8ce41c8a.js} +5 -5
- package/dist/cjs/{rich-text-editor-required-rule-5faded94.js → rich-text-editor-required-rule-d1b38bf7.js} +1 -1
- package/dist/cjs/selection-controller-828990cc.js +765 -0
- package/dist/cjs/string-39438062.js +24 -0
- package/dist/cjs/{string-input-formatter-slimmer-50322824.js → string-input-formatter-slimmer-9e7d7ce2.js} +2 -2
- package/dist/cjs/{style-formatter-5b95a2a6.js → style-formatter-2294d77f.js} +1 -1
- package/dist/cjs/{sub-state-notify-slimmer-7f437b19.js → sub-state-notify-slimmer-f3ee01b7.js} +1 -1
- package/dist/cjs/{sub-state-observer-slimmer-e90362cd.js → sub-state-observer-slimmer-e1a00b74.js} +1 -1
- package/dist/cjs/{translation-212b1875.js → translation-e5003a00.js} +5 -0
- package/dist/cjs/{translation-slimmer-d1512c6d.js → translation-slimmer-127a0f83.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +13 -11
- package/dist/cjs/vega-app-footer.cjs.entry.js +1 -1
- package/dist/cjs/vega-app-header-button.cjs.entry.js +14 -12
- package/dist/cjs/vega-backdrop.cjs.entry.js +1 -1
- package/dist/cjs/vega-banner.cjs.entry.js +4 -4
- package/dist/cjs/vega-bar-chart.cjs.entry.js +4 -4
- package/dist/cjs/vega-box.cjs.entry.js +13 -11
- package/dist/cjs/vega-brand-logo.cjs.entry.js +1 -1
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +5 -5
- package/dist/cjs/vega-button-circle.cjs.entry.js +14 -12
- package/dist/cjs/vega-button-group_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-button-link.cjs.entry.js +5 -5
- package/dist/cjs/vega-button.cjs.entry.js +13 -11
- package/dist/cjs/vega-calendar_3.cjs.entry.js +11 -11
- package/dist/cjs/vega-card.cjs.entry.js +12 -10
- package/dist/cjs/vega-carousel.cjs.entry.js +12 -10
- package/dist/cjs/vega-checkbox_2.cjs.entry.js +12 -12
- package/dist/cjs/vega-chip.cjs.entry.js +14 -12
- package/dist/cjs/vega-code-block.cjs.entry.js +4073 -0
- package/dist/cjs/vega-color-picker.cjs.entry.js +10 -10
- package/dist/cjs/vega-combo-box.cjs.entry.js +12 -12
- package/dist/cjs/vega-counter-badge.cjs.entry.js +1 -1
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +20 -19
- package/dist/cjs/vega-dialog_2.cjs.entry.js +14 -12
- package/dist/cjs/vega-divider.cjs.entry.js +12 -10
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +17 -15
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-field-error.cjs.entry.js +1 -1
- package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
- package/dist/cjs/vega-file-uploader.cjs.entry.js +11 -11
- package/dist/cjs/vega-flag-icon.cjs.entry.js +12 -10
- package/dist/cjs/vega-flex.cjs.entry.js +13 -11
- package/dist/cjs/vega-font.cjs.entry.js +12 -10
- package/dist/cjs/vega-form.cjs.entry.js +13 -13
- package/dist/cjs/vega-grid.cjs.entry.js +12 -10
- package/dist/cjs/vega-hint.cjs.entry.js +1 -1
- package/dist/cjs/vega-icon.cjs.entry.js +12 -10
- package/dist/cjs/vega-image-uploader.cjs.entry.js +17 -16
- package/dist/cjs/vega-input-credit-card.cjs.entry.js +12 -12
- package/dist/cjs/vega-input-numeric.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +25 -16
- package/dist/cjs/vega-input-range.cjs.entry.js +13 -13
- package/dist/cjs/vega-input-select.cjs.entry.js +22 -21
- package/dist/cjs/vega-input.cjs.entry.js +25 -14
- package/dist/cjs/{vega-internal-event-id-bfea9b93.js → vega-internal-event-id-62371952.js} +2 -0
- package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +15 -13
- package/dist/cjs/vega-line-chart.cjs.entry.js +4 -4
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +11 -9
- package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
- package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +5 -5
- package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +4 -4
- package/dist/cjs/vega-pagination.cjs.entry.js +14 -12
- package/dist/cjs/vega-pie-chart.cjs.entry.js +3 -3
- package/dist/cjs/vega-popover_2.cjs.entry.js +13 -11
- package/dist/cjs/vega-progress-tracker.cjs.entry.js +3 -3
- package/dist/cjs/vega-radio_2.cjs.entry.js +12 -12
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +311 -137
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +1228 -2505
- package/dist/cjs/vega-section-title.cjs.entry.js +1 -1
- package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +17 -16
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +13 -13
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +14 -12
- package/dist/cjs/vega-signature-capture.cjs.entry.js +17 -16
- package/dist/cjs/{vega-skeleton-loader-controller-db868c98.js → vega-skeleton-loader-controller-83e05b6c.js} +1 -1
- package/dist/cjs/vega-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/vega-slot-container.cjs.entry.js +1 -1
- package/dist/cjs/vega-stepper.cjs.entry.js +12 -12
- package/dist/cjs/vega-tab-group_2.cjs.entry.js +5 -5
- package/dist/cjs/vega-table_8.cjs.entry.js +17 -15
- package/dist/cjs/vega-text.cjs.entry.js +1 -1
- package/dist/cjs/vega-textarea.cjs.entry.js +12 -12
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +18 -17
- package/dist/cjs/vega-toggle-switch.cjs.entry.js +10 -10
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +12 -10
- package/dist/cjs/vega.cjs.js +12 -10
- package/dist/cjs/{y-axis-input-processor-72684c57.js → y-axis-input-processor-e371c142.js} +2 -2
- package/dist/collection/collection-manifest.json +7 -1
- package/dist/collection/components/vega-code-block/assets/copy.js +3 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/code-highlight-parser.abstract.js +62 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/default-code-highlight-parse-controller.js +48 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.js +99 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-content-parse-controller.js +50 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-focus-controller.js +57 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-input-controller.js +255 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-selection-controller.js +266 -0
- package/dist/collection/components/vega-code-block/slimmers/controllers/vega-code-block-value-controller.js +44 -0
- package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-content-renderer.js +123 -0
- package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-copy-button-renderer.js +67 -0
- package/dist/collection/components/vega-code-block/slimmers/renderers/vega-code-block-renderer.js +122 -0
- package/dist/collection/components/vega-code-block/types.js +10 -0
- package/dist/collection/components/vega-code-block/vega-code-block.css +158 -0
- package/dist/collection/components/vega-code-block/vega-code-block.js +399 -0
- package/dist/collection/components/vega-input/vega-input.js +13 -2
- package/dist/collection/components/vega-input-phone-number/slimmers/renderers/country-select-renderer.js +2 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +5 -5
- package/dist/collection/components/vega-rich-text-content/slimmers/renderers/vega-rich-text-content-renderer.js +2 -0
- package/dist/collection/components/vega-rich-text-content/vega-rich-text-content.css +60 -5
- package/dist/collection/components/vega-rich-text-editor/assets/file-code.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/assets/rectangle-code.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.js +24 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-horizontal-alignment-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-indent-strategy.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-text-style-strategy.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/code-node-set-selection-range-strategy.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/node-update-annotation-map-strategy.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-text-content-strategy.js +3 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-code-block-strategy.js +48 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-insert-image-strategy.js +17 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-remove-self-strategy.js +77 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/switch-out-from-code-block-strategy.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/update-code-block-strategy.js +14 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.js +20 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.js +4 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/remove-code-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/switch-out-from-code-block-action.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/transform-to-code-block-action.js +13 -0
- package/dist/collection/components/vega-rich-text-editor/dto/actions/update-code-block-action.js +15 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.js +1 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/bold-annotation.js +13 -5
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/clear-formatting-annotation.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/code-annotation.js +14 -9
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/common-annotation.abstract.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation.js +65 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-class-annotation.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/custom-style-annotation.js +57 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.js +26 -10
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/image-annotation.js +16 -7
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/indent-annotation.js +8 -2
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/italic-annotation.js +13 -5
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-annotation.js +12 -9
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +89 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/list-annotation.js +41 -0
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-color-annotation.js +3 -7
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/text-style-annotation.js +74 -12
- package/dist/collection/components/vega-rich-text-editor/dto/annotations/underline-annotation.js +9 -9
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/block.abstract.js +69 -2
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +106 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +15 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +50 -0
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +12 -1
- package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +66 -2
- package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +29 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +56 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +26 -9
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/node.abstract.js +81 -0
- package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +15 -2
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.js +5 -22
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.js +9 -93
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.js +62 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/image-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.js +121 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/list-item-block-renderer.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.js +2 -23
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.js +81 -0
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.js +47 -7
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.js +0 -27
- package/dist/collection/components/vega-rich-text-editor/dto/renderers/nodes/text-node-renderer.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/delete-selected-nodes-controller.js +19 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.js +165 -25
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/continue-inline-to-rte-text-block-strategy.js +2 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.js +6 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-rte-image-block-strategy.abstract.js +38 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.js +3 -20
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.js +59 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/li-to-rte-list-item-block-strategy.js +1 -1
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.js +3 -20
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-not-li-child-to-rte-list-item-block.js +7 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.js +69 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.js +4 -7
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-line-break-handler.js +7 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paragraph-handler.js +7 -5
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.js +25 -10
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/internal-code-block-selection-controller.js +64 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/selection-controller.js +59 -53
- package/dist/collection/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.js +21 -8
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.js +10 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/numbers-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.js +65 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/center-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.js +8 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/justify-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/left-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/right-align-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.js +2 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.js +3 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.js +60 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.js +6 -4
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.js +3 -2
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.js +5 -3
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.js +28 -0
- package/dist/collection/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.js +31 -3
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.js +21 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/content-state-strategy-registry.test.js +2 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/image-block-strategy-register.test.js +3 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/action-handle-strategies/text-block-strategy-register.test.js +23 -1
- package/dist/collection/components/vega-rich-text-editor/test/dto/annotations.test.js +247 -27
- package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +54 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/content-state.test.js +1793 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/image-node.test.js +12 -0
- package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +41 -4
- package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.test.js +32 -0
- package/dist/collection/components/vega-rich-text-editor/test/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.test.js +61 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.css +7 -0
- package/dist/collection/components/vega-rich-text-editor/vega-rich-text-editor.js +18 -1
- package/dist/collection/helpers/code-format/code-formatter.js +108 -0
- package/dist/collection/helpers/code-format/test/code-formatter.test.js +362 -0
- package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +2 -1
- package/dist/collection/helpers/event-manager/event-id/vega-internal-event-id.js +1 -0
- package/dist/collection/helpers/feature-control/feature-flags-map.js +6 -0
- package/dist/collection/helpers/slimmers/auto-run-when-re-render-task-queue-slimmer.abstract.js +47 -0
- package/dist/collection/helpers/slimmers/form-field-controller-slimmer.js +3 -1
- package/dist/collection/helpers/slimmers/test/auto-run-when-re-render-task-queue-slimmer.test.js +46 -0
- package/dist/collection/helpers/translation/locales/en.js +5 -0
- package/dist/collection/helpers/translation/tests/internal-translation-controller.test.js +5 -0
- package/dist/collection/polyfill/shadow-selection/shadow-selection-polyfill.js +17 -15
- package/dist/collection/polyfill/shadow-selection/test/shadow-selection-polyfill.test.js +1 -0
- package/dist/collection/polyfill/test-polyfill/unit/methods.js +9 -0
- package/dist/collection/utils/array.js +18 -15
- package/dist/collection/utils/string.js +10 -0
- package/dist/collection/utils/test/array.test.js +78 -16
- package/dist/esm/{app-globals-b7b43a4e.js → app-globals-9058ac3b.js} +7 -7
- package/dist/esm/{array-3113609f.js → array-7888f339.js} +18 -15
- package/dist/esm/{child-nodes-event-prevent-slimmer-d3a94ef2.js → child-nodes-event-prevent-slimmer-1142fb79.js} +2 -2
- package/dist/esm/{content-state-dbc9f635.js → code-block-8b5bd928.js} +1141 -1122
- package/dist/esm/content-state-8c3f862b.js +2489 -0
- package/dist/esm/{design-token-e263e6a2.js → design-token-bd436e0d.js} +1 -1
- package/dist/esm/{dom-node-subject-factory-f77cf9cc.js → dom-node-subject-factory-eb6bba5d.js} +1 -1
- package/dist/esm/{dom-node-subject-observer-factory-715dccf9.js → dom-node-subject-observer-factory-6083d518.js} +1 -1
- package/dist/esm/{element-appender-slimmer-55d63b1f.js → element-appender-slimmer-baf5e249.js} +5 -5
- package/dist/esm/{event-emit-slimmer-b7d511f6.js → event-emit-slimmer-480d3b54.js} +3 -3
- package/dist/esm/{feature-flag-controller-690eac1d.js → feature-flag-controller-0fbe8fb0.js} +6 -0
- package/dist/esm/{form-field-controller-slimmer-e7dc3db1.js → form-field-controller-slimmer-bfb4034d.js} +11 -9
- package/dist/esm/{image-annotation-action-1aa938ab.js → image-annotation-action-a8b860ad.js} +57 -28
- package/dist/esm/{index-187f71d1.js → index-d0a47531.js} +9 -0
- package/dist/esm/{index-4aa167d6.js → index-db0ec3ee.js} +2 -2
- package/dist/esm/index.js +14 -13
- package/dist/esm/{internal-vega-event-manager-87dc436c.js → internal-vega-event-manager-56c6469a.js} +2 -1
- package/dist/esm/{legend-input-processor-8bcd5c5a.js → legend-input-processor-8f76ce8a.js} +1 -1
- package/dist/esm/loader.js +13 -11
- package/dist/esm/{mutation-observer-filters-7ee2b410.js → mutation-observer-filters-1a054fb0.js} +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{public-rules-5cf6aa95.js → public-rules-90fbd41a.js} +8 -6
- package/dist/esm/{responsive-format-facade-bc2f8ad3.js → responsive-format-facade-827de03a.js} +5 -5
- package/dist/esm/{rich-text-editor-required-rule-6a7cd3ee.js → rich-text-editor-required-rule-0d470d82.js} +1 -1
- package/dist/esm/selection-controller-dd4f4407.js +759 -0
- package/dist/esm/string-a953eafc.js +21 -0
- package/dist/esm/{string-input-formatter-slimmer-c61f82d6.js → string-input-formatter-slimmer-0d30b976.js} +3 -3
- package/dist/esm/{style-formatter-0f221459.js → style-formatter-232842f5.js} +1 -1
- package/dist/esm/{sub-state-notify-slimmer-4e3cf09d.js → sub-state-notify-slimmer-04e06501.js} +2 -2
- package/dist/esm/{sub-state-observer-slimmer-be7a6ce3.js → sub-state-observer-slimmer-b4c2ddc3.js} +2 -2
- package/dist/esm/{translation-cf7f020a.js → translation-71e0711d.js} +5 -0
- package/dist/esm/{translation-slimmer-88966d5c.js → translation-slimmer-e6b130bf.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +15 -13
- package/dist/esm/vega-app-footer.entry.js +1 -1
- package/dist/esm/vega-app-header-button.entry.js +16 -14
- package/dist/esm/vega-backdrop.entry.js +1 -1
- package/dist/esm/vega-banner.entry.js +6 -6
- package/dist/esm/vega-bar-chart.entry.js +4 -4
- package/dist/esm/vega-box.entry.js +14 -12
- package/dist/esm/vega-brand-logo.entry.js +1 -1
- package/dist/esm/vega-breadcrumb.entry.js +7 -7
- package/dist/esm/vega-button-circle.entry.js +16 -14
- package/dist/esm/vega-button-group_2.entry.js +10 -10
- package/dist/esm/vega-button-link.entry.js +7 -7
- package/dist/esm/vega-button.entry.js +15 -13
- package/dist/esm/vega-calendar_3.entry.js +13 -13
- package/dist/esm/vega-card.entry.js +13 -11
- package/dist/esm/vega-carousel.entry.js +14 -12
- package/dist/esm/vega-checkbox_2.entry.js +14 -14
- package/dist/esm/vega-chip.entry.js +16 -14
- package/dist/esm/vega-code-block.entry.js +4069 -0
- package/dist/esm/vega-color-picker.entry.js +12 -12
- package/dist/esm/vega-combo-box.entry.js +14 -14
- package/dist/esm/vega-counter-badge.entry.js +1 -1
- package/dist/esm/vega-date-picker_2.entry.js +22 -21
- package/dist/esm/vega-dialog_2.entry.js +16 -14
- package/dist/esm/vega-divider.entry.js +13 -11
- package/dist/esm/vega-dropdown_5.entry.js +19 -17
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-field-error.entry.js +1 -1
- package/dist/esm/vega-field-label.entry.js +5 -5
- package/dist/esm/vega-file-uploader.entry.js +13 -13
- package/dist/esm/vega-flag-icon.entry.js +13 -11
- package/dist/esm/vega-flex.entry.js +14 -12
- package/dist/esm/vega-font.entry.js +13 -11
- package/dist/esm/vega-form.entry.js +15 -15
- package/dist/esm/vega-grid.entry.js +13 -11
- package/dist/esm/vega-hint.entry.js +1 -1
- package/dist/esm/vega-icon.entry.js +13 -11
- package/dist/esm/vega-image-uploader.entry.js +19 -18
- package/dist/esm/vega-input-credit-card.entry.js +14 -14
- package/dist/esm/vega-input-numeric.entry.js +15 -15
- package/dist/esm/vega-input-phone-number.entry.js +27 -18
- package/dist/esm/vega-input-range.entry.js +15 -15
- package/dist/esm/vega-input-select.entry.js +24 -23
- package/dist/esm/vega-input.entry.js +27 -16
- package/dist/esm/{vega-internal-event-id-85ad403f.js → vega-internal-event-id-820393ad.js} +2 -1
- package/dist/esm/vega-item-toggle.entry.js +5 -5
- package/dist/esm/vega-left-nav_5.entry.js +17 -15
- package/dist/esm/vega-line-chart.entry.js +4 -4
- package/dist/esm/vega-loader-wrapper_2.entry.js +12 -10
- package/dist/esm/vega-page-notification_2.entry.js +3 -3
- package/dist/esm/vega-pagination-page-selector-mobile.entry.js +7 -7
- package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +6 -6
- package/dist/esm/vega-pagination.entry.js +16 -14
- package/dist/esm/vega-pie-chart.entry.js +3 -3
- package/dist/esm/vega-popover_2.entry.js +15 -13
- package/dist/esm/vega-progress-tracker.entry.js +5 -5
- package/dist/esm/vega-radio_2.entry.js +14 -14
- package/dist/esm/vega-rich-text-content.entry.js +305 -131
- package/dist/esm/vega-rich-text-editor_4.entry.js +1135 -2412
- package/dist/esm/vega-section-title.entry.js +1 -1
- package/dist/esm/vega-segment-control.entry.js +5 -5
- package/dist/esm/vega-selection-chip_2.entry.js +19 -18
- package/dist/esm/vega-selection-tile_2.entry.js +15 -15
- package/dist/esm/vega-sidenav_3.entry.js +16 -14
- package/dist/esm/vega-signature-capture.entry.js +19 -18
- package/dist/esm/{vega-skeleton-loader-controller-c2a8bd27.js → vega-skeleton-loader-controller-878e1b28.js} +1 -1
- package/dist/esm/vega-skeleton.entry.js +1 -1
- package/dist/esm/vega-slot-container.entry.js +1 -1
- package/dist/esm/vega-stepper.entry.js +14 -14
- package/dist/esm/vega-tab-group_2.entry.js +7 -7
- package/dist/esm/vega-table_8.entry.js +19 -17
- package/dist/esm/vega-text.entry.js +1 -1
- package/dist/esm/vega-textarea.entry.js +14 -14
- package/dist/esm/vega-time-picker_2.entry.js +20 -19
- package/dist/esm/vega-toggle-switch.entry.js +12 -12
- package/dist/esm/vega-tooltip_2.entry.js +14 -12
- package/dist/esm/vega.js +13 -11
- package/dist/esm/{y-axis-input-processor-26fab110.js → y-axis-input-processor-e090b01c.js} +2 -2
- package/dist/types/components/vega-code-block/assets/copy.d.ts +3 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/code-highlight-parser.abstract.d.ts +40 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/default-code-highlight-parse-controller.d.ts +19 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/prism-code-highlight-parse-controller.d.ts +43 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-content-parse-controller.d.ts +23 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-focus-controller.d.ts +21 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-input-controller.d.ts +100 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-selection-controller.d.ts +93 -0
- package/dist/types/components/vega-code-block/slimmers/controllers/vega-code-block-value-controller.d.ts +21 -0
- package/dist/types/components/vega-code-block/slimmers/renderers/vega-code-block-content-renderer.d.ts +57 -0
- package/dist/types/components/vega-code-block/slimmers/renderers/vega-code-block-copy-button-renderer.d.ts +23 -0
- package/dist/types/components/vega-code-block/slimmers/renderers/vega-code-block-renderer.d.ts +50 -0
- package/dist/types/components/vega-code-block/types.d.ts +19 -0
- package/dist/types/components/vega-code-block/vega-code-block.d.ts +116 -0
- package/dist/types/components/vega-input/vega-input.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/assets/file-code.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/assets/rectangle-code.d.ts +3 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/action-handle-strategy.abstract.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-horizontal-alignment-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/block-update-indent-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/apply-annotation-strategies/code-node-set-selection-range-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-delete-node-content-strategy.d.ts +3 -3
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-remove-node-strategy.d.ts +4 -5
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/block-transform-to-code-block-strategy.d.ts +29 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-insert-image-strategy.d.ts +15 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/code-block-remove-self-strategy.d.ts +28 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/switch-out-from-code-block-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/action-handle-strategies/modify-content-strategies/update-code-block-strategy.d.ts +12 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/custom-style-annotation-action.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/modify-content-action.abstract.d.ts +5 -1
- package/dist/types/components/vega-rich-text-editor/dto/actions/remove-code-block-action.d.ts +10 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/switch-out-from-code-block-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/transform-to-code-block-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/actions/update-code-block-action.d.ts +14 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/annotation.abstract.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/annotations/block-annotation.abstract.d.ts +17 -4
- package/dist/types/components/vega-rich-text-editor/dto/annotations/bold-annotation.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/clear-formatting-annotation.d.ts +2 -1
- package/dist/types/components/vega-rich-text-editor/dto/annotations/code-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/annotations/common-annotation.abstract.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-attribute-annotation.d.ts +43 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-class-annotation.d.ts +40 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/custom-style-annotation.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/horizontal-alignment-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/annotations/image-annotation.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/indent-annotation.d.ts +5 -1
- package/dist/types/components/vega-rich-text-editor/dto/annotations/italic-annotation.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-annotation.d.ts +6 -4
- package/dist/types/components/vega-rich-text-editor/dto/annotations/link-group-annotation.d.ts +48 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/list-annotation.d.ts +25 -0
- package/dist/types/components/vega-rich-text-editor/dto/annotations/node-annotation.abstract.d.ts +15 -3
- package/dist/types/components/vega-rich-text-editor/dto/annotations/strikethrough-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-color-annotation.d.ts +3 -7
- package/dist/types/components/vega-rich-text-editor/dto/annotations/text-style-annotation.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/annotations/underline-annotation.d.ts +5 -9
- package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +39 -4
- package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +56 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +20 -2
- package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +14 -4
- package/dist/types/components/vega-rich-text-editor/dto/content-state.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +45 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +4 -0
- package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +46 -2
- package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +7 -2
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-renderer.abstract.d.ts +4 -11
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/block-text-nodes-renderer.abstract.d.ts +7 -5
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/code-block-renderer.d.ts +39 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/link-wrapper-renderer.d.ts +24 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/blocks/text-block-renderer.d.ts +0 -1
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/code-block-node-renderer.d.ts +37 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/image-node-renderer.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/dto/renderers/nodes/node-renderer.abstract.d.ts +1 -15
- package/dist/types/components/vega-rich-text-editor/interface.d.ts +65 -26
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/block-to-rte-block-strategy.abstract.d.ts +66 -8
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-dto-strategy-processor.d.ts +3 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/element-to-rte-image-block-strategy.abstract.d.ts +20 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/img-to-rte-image-block-strategy.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/inline-block-to-rte-text-block-strategy.d.ts +30 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.d.ts +31 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ol-to-rte-list-block-strategy.d.ts +2 -3
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/span-img-to-rte-image-block-strategy.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/ul-to-rte-list-block-strategy.d.ts +2 -3
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.d.ts +42 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/element-to-dto-strategy/vega-image-to-rte-image-block-strategy.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/helper/input-event-handler/insert-paste-handler.d.ts +7 -1
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/internal-code-block-selection-controller.d.ts +45 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/selection-controller.d.ts +17 -23
- package/dist/types/components/vega-rich-text-editor/slimmers/controllers/user-input-controller.d.ts +6 -4
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/toolbar-renderer.d.ts +2 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bold-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-numbers-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/bullets-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/bullets-numbers/numbers-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/clear-style-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/code-block-toolbar-button-slimmer.d.ts +22 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/code-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/center-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/horizontal-alignment-toolbar-button-slimmer.d.ts +4 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/justify-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/left-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/horizontal-alignment/right-align-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/image-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/italic-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/less-indent-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/link-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/more-indent-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/source-edit-toolbar-button-slimmer.d.ts +13 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/strikethrough-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-color-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/text-styles-toolbar-button-slimmer.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/toolbar-button-slimmer.abstract.d.ts +3 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/underline-toolbar-button-slimmer.d.ts +2 -2
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/tools/visual-mode-toolbar-button-slimmer.abstract.d.ts +17 -0
- package/dist/types/components/vega-rich-text-editor/slimmers/renderers/vega-rich-text-editor-renderer.d.ts +8 -2
- package/dist/types/components/vega-rich-text-editor/test/dto/action-handle-strategies/code-block-strategy-registry.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/blocks/code-block.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/dto/content-state.test.d.ts +1 -1
- package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/jira-code-to-rte-code-block-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/test/element-to-dto-strategy/vega-code-block-to-rte-code-block-strategy.test.d.ts +1 -0
- package/dist/types/components/vega-rich-text-editor/vega-rich-text-editor.d.ts +7 -0
- package/dist/types/components.d.ts +95 -0
- package/dist/types/helpers/code-format/code-formatter.d.ts +34 -0
- package/dist/types/helpers/code-format/test/code-formatter.test.d.ts +1 -0
- package/dist/types/helpers/event-manager/event-id/vega-internal-event-id.d.ts +1 -0
- package/dist/types/helpers/feature-control/feature-flag.d.ts +2 -1
- package/dist/types/helpers/slimmers/auto-run-when-re-render-task-queue-slimmer.abstract.d.ts +20 -0
- package/dist/types/helpers/slimmers/test/auto-run-when-re-render-task-queue-slimmer.test.d.ts +1 -0
- package/dist/types/helpers/translation/interface.d.ts +6 -1
- package/dist/types/polyfill/shadow-selection/shadow-selection-polyfill.d.ts +26 -0
- package/dist/types/types/components.type.d.ts +1 -0
- package/dist/types/utils/array.d.ts +6 -5
- package/dist/types/utils/string.d.ts +7 -0
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/p-0104207d.entry.js +1 -0
- package/dist/vega/p-010f1715.entry.js +1 -0
- package/dist/vega/p-01593f9d.js +1 -0
- package/dist/vega/p-020b04ed.js +1 -0
- package/dist/vega/p-02841589.js +1 -0
- package/dist/vega/p-03cfb331.entry.js +9 -0
- package/dist/vega/{p-5a8f129f.entry.js → p-0bff8716.entry.js} +1 -1
- package/dist/vega/p-1056a049.entry.js +1 -0
- package/dist/vega/p-10e41bbe.js +1 -0
- package/dist/vega/{p-28b7d6ba.entry.js → p-12e6173c.entry.js} +1 -1
- package/dist/vega/{p-88c9efbb.js → p-1397ba3f.js} +1 -1
- package/dist/vega/p-13d9a1fd.entry.js +1 -0
- package/dist/vega/p-13eae47f.entry.js +1 -0
- package/dist/vega/p-1630864e.entry.js +1 -0
- package/dist/vega/p-1b335e30.entry.js +1 -0
- package/dist/vega/{p-8ade44bf.js → p-1e194737.js} +1 -1
- package/dist/vega/{p-2198de3e.entry.js → p-1f346008.entry.js} +1 -1
- package/dist/vega/p-1f86ab76.entry.js +1 -0
- package/dist/vega/p-1fe746ab.entry.js +1 -0
- package/dist/vega/{p-6ec8a9d8.entry.js → p-211c028f.entry.js} +1 -1
- package/dist/vega/p-21d26bb4.js +2 -0
- package/dist/vega/{p-353d32c0.entry.js → p-23e6f2b2.entry.js} +1 -1
- package/dist/vega/p-268aea63.js +1 -0
- package/dist/vega/{p-a01f149d.entry.js → p-27ccf34d.entry.js} +1 -1
- package/dist/vega/{p-913eb7f9.entry.js → p-29f9be26.entry.js} +1 -1
- package/dist/vega/{p-27003a81.entry.js → p-30dcf606.entry.js} +1 -1
- package/dist/vega/{p-1abe125f.js → p-3c20ae84.js} +1 -1
- package/dist/vega/p-4172fb81.js +1 -0
- package/dist/vega/{p-431ab4dd.js → p-419697c6.js} +1 -1
- package/dist/vega/p-427e4cee.entry.js +1 -0
- package/dist/vega/{p-3220920f.js → p-45e28b9b.js} +1 -1
- package/dist/vega/p-4604ed0e.entry.js +1 -0
- package/dist/vega/{p-8d283666.js → p-4ab3df00.js} +1 -1
- package/dist/vega/{p-1e940ce8.js → p-4d793cb0.js} +1 -1
- package/dist/vega/{p-72ecfd40.js → p-4e8fb53a.js} +1 -1
- package/dist/vega/{p-6b75fe39.js → p-50a3ae3d.js} +1 -1
- package/dist/vega/{p-4fa94b35.entry.js → p-50b80d76.entry.js} +1 -1
- package/dist/vega/p-52b8f2d2.js +1 -0
- package/dist/vega/p-531ffb18.entry.js +1 -0
- package/dist/vega/p-53daeb45.entry.js +1 -0
- package/dist/vega/p-54fdd401.entry.js +1 -0
- package/dist/vega/{p-ac82ca73.entry.js → p-5741ecf0.entry.js} +1 -1
- package/dist/vega/{p-6cabdb36.js → p-58f8928a.js} +1 -1
- package/dist/vega/{p-d6591d70.entry.js → p-5c4cb804.entry.js} +1 -1
- package/dist/vega/{p-1cd2d7b8.entry.js → p-5ce386c8.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-f7423232.entry.js → p-5fd5a538.entry.js} +1 -1
- package/dist/vega/{p-0969877b.entry.js → p-64f452fe.entry.js} +1 -1
- package/dist/vega/p-66759f4e.js +1 -0
- package/dist/vega/{p-8afa2115.js → p-6ea42854.js} +1 -1
- package/dist/vega/p-70f25341.entry.js +1 -0
- package/dist/vega/{p-7db32dc0.entry.js → p-737bccb9.entry.js} +1 -1
- package/dist/vega/{p-bcb10ae3.entry.js → p-7503fe08.entry.js} +1 -1
- package/dist/vega/{p-50355e06.entry.js → p-7b0a4688.entry.js} +1 -1
- package/dist/vega/p-7def7b74.entry.js +1 -0
- package/dist/vega/{p-48517a5d.entry.js → p-7f5a85c6.entry.js} +1 -1
- package/dist/vega/p-825ae7c4.js +1 -0
- package/dist/vega/p-831c4144.entry.js +1 -0
- package/dist/vega/p-85dc08b4.entry.js +1 -0
- package/dist/vega/{p-a821bcf3.js → p-86782109.js} +1 -1
- package/dist/vega/p-87459914.js +1 -0
- package/dist/vega/{p-e719b1a9.entry.js → p-87a1fc77.entry.js} +1 -1
- package/dist/vega/p-89565247.entry.js +1 -0
- package/dist/vega/{p-0a18f5f6.entry.js → p-89e915e9.entry.js} +1 -1
- package/dist/vega/{p-6cd8e6f4.entry.js → p-8aa7e56e.entry.js} +1 -1
- package/dist/vega/p-94263ece.entry.js +1 -0
- package/dist/vega/{p-d0007822.entry.js → p-9524e48a.entry.js} +1 -1
- package/dist/vega/{p-472727a4.entry.js → p-991b4717.entry.js} +1 -1
- package/dist/vega/{p-a8e9bfae.entry.js → p-99b9b320.entry.js} +1 -1
- package/dist/vega/{p-aea89be5.entry.js → p-9ba14b7c.entry.js} +1 -1
- package/dist/vega/p-9cb79f8d.entry.js +1 -0
- package/dist/vega/p-9e3f52f0.entry.js +1 -0
- package/dist/vega/{p-6586e2a2.entry.js → p-a0e122a6.entry.js} +1 -1
- package/dist/vega/{p-96b4c0cc.entry.js → p-b0fe6c0f.entry.js} +1 -1
- package/dist/vega/{p-b2bca332.entry.js → p-b518e1a0.entry.js} +1 -1
- package/dist/vega/p-b538e81a.entry.js +1 -0
- package/dist/vega/p-b824baf7.entry.js +1 -0
- package/dist/vega/{p-2fadef27.entry.js → p-b959b4d4.entry.js} +1 -1
- package/dist/vega/{p-57e813f2.entry.js → p-bb4f0fa1.entry.js} +1 -1
- package/dist/vega/{p-2da83c2a.js → p-bbb39d6f.js} +1 -1
- package/dist/vega/{p-700da800.entry.js → p-bc8fd0ee.entry.js} +1 -1
- package/dist/vega/p-bcaf8375.entry.js +1 -0
- package/dist/vega/p-bec90ff3.entry.js +1 -0
- package/dist/vega/p-c6b94dde.entry.js +1 -0
- package/dist/vega/{p-c754b32c.js → p-ce6b62c4.js} +1 -1
- package/dist/vega/{p-5e34ea25.entry.js → p-d00fbc11.entry.js} +1 -1
- package/dist/vega/p-d27ae9ff.js +1 -0
- package/dist/vega/{p-10a40dfb.entry.js → p-d2a2af2c.entry.js} +1 -1
- package/dist/vega/p-d64b20c2.js +1 -0
- package/dist/vega/p-da779940.entry.js +1 -0
- package/dist/vega/{p-7f6702f7.js → p-db910162.js} +1 -1
- package/dist/vega/{p-6f81fe1e.js → p-e1a2a701.js} +1 -1
- package/dist/vega/p-e3694aa5.entry.js +1 -0
- package/dist/vega/p-e7318c4c.entry.js +1 -0
- package/dist/vega/{p-a5c39ba2.entry.js → p-e8fc027e.entry.js} +1 -1
- package/dist/vega/{p-ccdd49be.entry.js → p-e92ecb78.entry.js} +1 -1
- package/dist/vega/p-e969c3f4.entry.js +1 -0
- package/dist/vega/{p-8bc4c015.entry.js → p-ec8b7f01.entry.js} +1 -1
- package/dist/vega/{p-a25939ad.js → p-eda5b7fd.js} +1 -1
- package/dist/vega/p-eed9bda2.entry.js +1 -0
- package/dist/vega/p-f4c54c98.entry.js +1 -0
- package/dist/vega/{p-ff41dc6a.entry.js → p-f5fc80bc.entry.js} +1 -1
- package/dist/vega/p-f67be7ef.js +1 -0
- package/dist/vega/{p-5e3a15a1.js → p-f9fafc55.js} +1 -1
- package/dist/vega/{p-27e56c67.entry.js → p-fc21fb2d.entry.js} +1 -1
- package/dist/vega/p-fed9220b.entry.js +1 -0
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/string-21427167.js +0 -13
- package/dist/esm/string-be824360.js +0 -11
- package/dist/vega/p-01fd343e.entry.js +0 -1
- package/dist/vega/p-0bb29d98.js +0 -1
- package/dist/vega/p-1503f791.js +0 -1
- package/dist/vega/p-1c298d5a.js +0 -2
- package/dist/vega/p-24e0cdcc.entry.js +0 -1
- package/dist/vega/p-2565cb0c.entry.js +0 -1
- package/dist/vega/p-26e4221c.entry.js +0 -1
- package/dist/vega/p-27e3825f.entry.js +0 -1
- package/dist/vega/p-2bd64faf.entry.js +0 -1
- package/dist/vega/p-33ffaa71.entry.js +0 -1
- package/dist/vega/p-34a70d18.entry.js +0 -1
- package/dist/vega/p-3647d61d.js +0 -1
- package/dist/vega/p-3aa244d4.entry.js +0 -1
- package/dist/vega/p-429616af.entry.js +0 -1
- package/dist/vega/p-44b0a005.js +0 -1
- package/dist/vega/p-4e167a8c.js +0 -1
- package/dist/vega/p-4e76904e.entry.js +0 -1
- package/dist/vega/p-52e17867.entry.js +0 -1
- package/dist/vega/p-57cdacb1.entry.js +0 -1
- package/dist/vega/p-58b8c06b.entry.js +0 -1
- package/dist/vega/p-59ccf915.entry.js +0 -1
- package/dist/vega/p-5cbadf95.entry.js +0 -1
- package/dist/vega/p-63414091.entry.js +0 -1
- package/dist/vega/p-6aa569e5.entry.js +0 -1
- package/dist/vega/p-6d7d923b.js +0 -1
- package/dist/vega/p-6e898779.js +0 -1
- package/dist/vega/p-804f71b3.js +0 -1
- package/dist/vega/p-84aac4b1.entry.js +0 -1
- package/dist/vega/p-8aec8dac.entry.js +0 -1
- package/dist/vega/p-8ba43640.entry.js +0 -1
- package/dist/vega/p-a8b681ed.entry.js +0 -1
- package/dist/vega/p-b5f5a5e0.js +0 -1
- package/dist/vega/p-ba6c7f00.entry.js +0 -1
- package/dist/vega/p-be40684b.entry.js +0 -1
- package/dist/vega/p-bf1894ec.js +0 -1
- package/dist/vega/p-c1e1adf9.entry.js +0 -1
- package/dist/vega/p-c5f8b3a3.entry.js +0 -1
- package/dist/vega/p-c96effa5.entry.js +0 -1
- package/dist/vega/p-ca34443a.entry.js +0 -1
- package/dist/vega/p-cb637815.entry.js +0 -1
- package/dist/vega/p-ce70a54a.entry.js +0 -1
- package/dist/vega/p-dbc82247.js +0 -1
- package/dist/vega/p-e29da13d.entry.js +0 -1
- package/dist/vega/p-fb853d5f.entry.js +0 -1
- package/dist/vega/p-fd018044.entry.js +0 -1
- package/dist/vega/p-fda0c179.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d0a47531.js';
|
|
2
2
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
3
3
|
import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
|
4
4
|
import { C as ChangeManager } from './change-manager-6a7eb88c.js';
|
|
@@ -7,32 +7,32 @@ import { O as Observer } from './observer-3959f9dd.js';
|
|
|
7
7
|
import { f as findParent } from './ui-ed1283bb.js';
|
|
8
8
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
9
9
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
10
|
-
import { c as createEventEmitSlimmer } from './event-emit-slimmer-
|
|
11
|
-
import { d as domNodeSubjectFactory, f as VegaChange, A as VegaFocus, B as VegaBlur } from './dom-node-subject-factory-
|
|
12
|
-
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-
|
|
10
|
+
import { c as createEventEmitSlimmer } from './event-emit-slimmer-480d3b54.js';
|
|
11
|
+
import { d as domNodeSubjectFactory, f as VegaChange, A as VegaFocus, B as VegaBlur } from './dom-node-subject-factory-eb6bba5d.js';
|
|
12
|
+
import { c as VegaInternalFieldErrorStateChange } from './vega-internal-event-id-820393ad.js';
|
|
13
13
|
import { R as RequiredFieldRule } from './required-field-rule-ab4bdc47.js';
|
|
14
14
|
import { C as ComponentLoadRequired } from './component-load-required-db42032a.js';
|
|
15
|
-
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-
|
|
15
|
+
import { F as FormFieldControllerSlimmer } from './form-field-controller-slimmer-bfb4034d.js';
|
|
16
16
|
import { C as ChildNodesNotifyObserverSlimmer } from './child-nodes-notify-observer-slimmer-ddaad39a.js';
|
|
17
|
-
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-
|
|
17
|
+
import { C as ChildNodesEventPreventSlimmer } from './child-nodes-event-prevent-slimmer-1142fb79.js';
|
|
18
18
|
import { K as KeyboardManagerSlimmer } from './keyboard-manager-slimmer-42bf9773.js';
|
|
19
19
|
import { M as MutationObserverSlimmer } from './mutation-observer-slimmer-6cef9549.js';
|
|
20
|
-
import { T as TagNameMutationFilter } from './mutation-observer-filters-
|
|
20
|
+
import { T as TagNameMutationFilter } from './mutation-observer-filters-1a054fb0.js';
|
|
21
21
|
import './dynamic-slimmer-90b8af32.js';
|
|
22
|
-
import './dom-node-subject-observer-factory-
|
|
23
|
-
import './internal-vega-event-manager-
|
|
22
|
+
import './dom-node-subject-observer-factory-6083d518.js';
|
|
23
|
+
import './internal-vega-event-manager-56c6469a.js';
|
|
24
24
|
import './internal-form-field-validation-rule.abstract-f5b6bdbf.js';
|
|
25
|
-
import './string-
|
|
25
|
+
import './string-a953eafc.js';
|
|
26
26
|
import './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
27
|
-
import './translation-
|
|
27
|
+
import './translation-71e0711d.js';
|
|
28
28
|
import './page-resize-observer-slimmer-15a84d26.js';
|
|
29
29
|
import './ui-8424715a.js';
|
|
30
30
|
import './breakpoints-d9faf11c.js';
|
|
31
|
-
import './array-
|
|
31
|
+
import './array-7888f339.js';
|
|
32
32
|
import './number-4398f2e1.js';
|
|
33
|
-
import './sub-state-observer-slimmer-
|
|
33
|
+
import './sub-state-observer-slimmer-b4c2ddc3.js';
|
|
34
34
|
import './vega-env-manager-8f8dc473.js';
|
|
35
|
-
import './feature-flag-controller-
|
|
35
|
+
import './feature-flag-controller-0fbe8fb0.js';
|
|
36
36
|
import './index-44c794b4.js';
|
|
37
37
|
import './_commonjsHelpers-9943807e.js';
|
|
38
38
|
import './keyboard-manager-262be5ce.js';
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import { h, H as Host, r as registerInstance, g as getElement } from './index-
|
|
1
|
+
import { h, H as Host, r as registerInstance, g as getElement } from './index-d0a47531.js';
|
|
2
2
|
import { c as MapToComponentField, M as MapToComponentMethod, V as VegaSlimmer, I as InjectVegaSlimmer } from './global-slimmer-registry-17c4efd4.js';
|
|
3
3
|
import { V as VegaComponentUsageRuntimeMetricsSlimmer, I as InjectVegaGlobalSlimmer } from './component-usage-runtime-metrics-385c7124.js';
|
|
4
4
|
import { s as sanitizeVegaComponent } from './component-cae24190.js';
|
|
5
5
|
import { a as VegaDarkModeStyleController } from './dark-mode-style-controller-2ada8e22.js';
|
|
6
|
-
import { T as TextNodeRenderingRegistry, I as ImageAnnotationAction, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-
|
|
7
|
-
import {
|
|
8
|
-
import { i as isNonNullable } from './type-guard-158f6d7a.js';
|
|
6
|
+
import { T as TextNodeRenderingRegistry, I as ImageAnnotationAction, a as TextColorToolbarButtonSlimmer } from './image-annotation-action-a8b860ad.js';
|
|
7
|
+
import { F as stateEntityRenderingRegistry, N as NodeAnnotationTypeEnum, Z as ZERO_WIDTH_SPACE, L as LinkAnnotationAction, G as InternalAnnotationTypeEnum, d as RTETextBlock, J as ImageAnnotation, K as CommonAnnotationTypeEnum, O as NodeAnnotation, M as ModifyContentAction, f as ModifyContentActionType, U as UpdateCodeBlockAction, P as SelectionChangeAction, z as RTECodeBlock } from './code-block-8b5bd928.js';
|
|
9
8
|
import { g as generateUUID } from './create-public-api-runtime-metrics-slimmer-8ada793f.js';
|
|
10
9
|
import { c as createEnterKeyHandlerToTriggerClick } from './accessibility-e5fd0fab.js';
|
|
11
|
-
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-
|
|
12
|
-
import { f as VegaChange } from './dom-node-subject-factory-
|
|
13
|
-
import {
|
|
10
|
+
import { D as DomNodeSubjectObserverFactory } from './dom-node-subject-observer-factory-6083d518.js';
|
|
11
|
+
import { f as VegaChange, k as VegaRemove } from './dom-node-subject-factory-eb6bba5d.js';
|
|
12
|
+
import { i as isNonNullable } from './type-guard-158f6d7a.js';
|
|
13
|
+
import { R as RTEImageBlock, b as RTEListBlock, V as VegaRTEContent } from './content-state-8c3f862b.js';
|
|
14
|
+
import { o as VegaInternalCodeBlockSelectionChange } from './vega-internal-event-id-820393ad.js';
|
|
15
|
+
import { S as SubStateObserverSlimmer } from './sub-state-observer-slimmer-b4c2ddc3.js';
|
|
14
16
|
import { f as findParent } from './ui-ed1283bb.js';
|
|
15
|
-
import { a as waitForComponentDidRender } from './index-
|
|
17
|
+
import { a as waitForComponentDidRender } from './index-db0ec3ee.js';
|
|
16
18
|
import './static-subject-title-ca83d6b6.js';
|
|
17
19
|
import './change-manager-6a7eb88c.js';
|
|
18
20
|
import './observer-3959f9dd.js';
|
|
19
21
|
import './_commonjsHelpers-9943807e.js';
|
|
20
22
|
import './internal-icon-manager-58cf8aa6.js';
|
|
21
23
|
import './icon-manager-638dd4d4.js';
|
|
22
|
-
import './
|
|
24
|
+
import './string-a953eafc.js';
|
|
25
|
+
import './dynamic-slimmer-90b8af32.js';
|
|
23
26
|
import './breakpoints-d9faf11c.js';
|
|
24
27
|
import './ui-8424715a.js';
|
|
25
28
|
import './regex-dfe11abf.js';
|
|
26
29
|
import './typography-396de03f.js';
|
|
27
|
-
import './dynamic-slimmer-90b8af32.js';
|
|
28
30
|
import './wait-for-vega-handler-b18eb955.js';
|
|
29
31
|
|
|
30
32
|
class RTEBlockRenderer {
|
|
@@ -34,29 +36,14 @@ class RTEBlockRenderer {
|
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* @param {RTEBlock} block - RTE block entity
|
|
40
|
-
* @returns {AnnotationStyle} - Annotation style
|
|
41
|
-
*/
|
|
42
|
-
getStyles(block) {
|
|
43
|
-
return Array.from(block.annotationMap.values())
|
|
44
|
-
.filter((annotation) => annotation instanceof BlockAnnotation)
|
|
45
|
-
.map((annotation) => annotation.render())
|
|
46
|
-
.filter(isNonNullable)
|
|
47
|
-
.reduce((current, obj) => (Object.assign(Object.assign({}, current), obj)), {});
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get classes from annotations
|
|
39
|
+
* The attributes of the element rendered by the block
|
|
51
40
|
*
|
|
52
41
|
* @param {RTEBlock} block - RTE block entity
|
|
53
|
-
* @returns {string} -
|
|
42
|
+
* @returns {Record<string, string>} - element props
|
|
54
43
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.filter(isNonNullable)
|
|
59
|
-
.reduce((pre, cur) => [pre, cur].join(' '), '');
|
|
44
|
+
getCustomAttrs(block) {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((_a = block.getCustomAttributesAnnotation()) === null || _a === void 0 ? void 0 : _a.render()) || {};
|
|
60
47
|
}
|
|
61
48
|
}
|
|
62
49
|
|
|
@@ -66,41 +53,16 @@ class RTENodeRenderer {
|
|
|
66
53
|
stateEntityRenderingRegistry.register(ref, node);
|
|
67
54
|
}
|
|
68
55
|
}
|
|
69
|
-
/**
|
|
70
|
-
* Get styles from annotations
|
|
71
|
-
*
|
|
72
|
-
* @param {RTENode} node - The DTO node
|
|
73
|
-
* @returns {AnnotationStyle} - Annotation style
|
|
74
|
-
*/
|
|
75
|
-
getStyles(node) {
|
|
76
|
-
return Array.from(node.annotationMap.values())
|
|
77
|
-
.filter((annotation) => annotation instanceof NodeAnnotation)
|
|
78
|
-
.map((annotation) => annotation.render())
|
|
79
|
-
.filter(Boolean)
|
|
80
|
-
.reduce((current, obj) => (Object.assign(Object.assign({}, current), obj)), {});
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Get classes from annotations
|
|
84
|
-
*
|
|
85
|
-
* @param {RTENode} node - The DTO node
|
|
86
|
-
* @returns {string} - Annotation style
|
|
87
|
-
*/
|
|
88
|
-
getClasses(node) {
|
|
89
|
-
return Array.from(node.annotationMap.values())
|
|
90
|
-
.filter((annotation) => annotation instanceof NodeAnnotation)
|
|
91
|
-
.map((annotation) => { var _a; return (_a = annotation.renderClass) === null || _a === void 0 ? void 0 : _a.call(annotation); })
|
|
92
|
-
.filter(Boolean)
|
|
93
|
-
.reduce((pre, cur) => [pre, cur].join(' '), '');
|
|
94
|
-
}
|
|
95
56
|
}
|
|
96
57
|
|
|
97
58
|
class RTETextNodeRenderer extends RTENodeRenderer {
|
|
98
59
|
render(node) {
|
|
60
|
+
var _a, _b;
|
|
99
61
|
const codeAnnotation = node.annotationMap.get(NodeAnnotationTypeEnum.CODE);
|
|
100
62
|
if (codeAnnotation === null || codeAnnotation === void 0 ? void 0 : codeAnnotation.code) {
|
|
101
|
-
return (h("code", { key: node.id, style:
|
|
63
|
+
return (h("code", Object.assign({}, (_a = node.getCustomAttributesAnnotation()) === null || _a === void 0 ? void 0 : _a.render(), { key: node.id, style: node.getStyles(), class: node.getClasses(), ref: (ref) => this.registerRef(ref, node) }), node.text || ZERO_WIDTH_SPACE));
|
|
102
64
|
}
|
|
103
|
-
return (h("span", { key: node.id, style:
|
|
65
|
+
return (h("span", Object.assign({}, (_b = node.getCustomAttributesAnnotation()) === null || _b === void 0 ? void 0 : _b.render(), { key: node.id, style: node.getStyles(), class: node.getClasses(), ref: (ref) => this.registerRef(ref, node) }), node.text || ZERO_WIDTH_SPACE));
|
|
104
66
|
}
|
|
105
67
|
registerRef(ref, node) {
|
|
106
68
|
super.registerRef(ref, node);
|
|
@@ -115,23 +77,61 @@ class RTETextNodeRenderer extends RTENodeRenderer {
|
|
|
115
77
|
const RTETextNodeRenderer$1 = new RTETextNodeRenderer();
|
|
116
78
|
|
|
117
79
|
/**
|
|
118
|
-
*
|
|
80
|
+
* Renders link nodes and wraps them with link editor or anchor element based on edit mode.
|
|
119
81
|
*/
|
|
120
|
-
class
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
82
|
+
class RTELinkWrapperRenderer {
|
|
83
|
+
constructor() {
|
|
84
|
+
this.handleChange = ({ detail }, textFromNodes, linkNodes) => {
|
|
85
|
+
switch (detail.action) {
|
|
86
|
+
case 'link': {
|
|
87
|
+
const { url, text } = detail.payload;
|
|
88
|
+
const textChanged = text !== textFromNodes;
|
|
89
|
+
const groupKey = generateUUID();
|
|
90
|
+
linkNodes.forEach((node) => {
|
|
91
|
+
const linkAnnotationAction = new LinkAnnotationAction({
|
|
92
|
+
link: { href: url, groupKey: groupKey },
|
|
93
|
+
newText: textChanged ? text : undefined,
|
|
94
|
+
needMergeNode: textChanged && linkNodes.length > 1,
|
|
95
|
+
doSplit: false,
|
|
96
|
+
});
|
|
97
|
+
node.apply(linkAnnotationAction);
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
case 'unlink': {
|
|
102
|
+
linkNodes.forEach((node) => node.deleteAnnotationByType(NodeAnnotationTypeEnum.LINK));
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
126
107
|
}
|
|
127
|
-
|
|
108
|
+
/**
|
|
109
|
+
* Render link nodes, grouping them by link group annotation if necessary.
|
|
110
|
+
*
|
|
111
|
+
* @param {RTETextNode[]} nodes - Array of text nodes to render.
|
|
112
|
+
* @param {LinkGroupAnnotation} linkGroupAnnotation - link group annotation
|
|
113
|
+
* @param {RTERenderContext} context - Context containing render options.
|
|
114
|
+
* @returns {HTMLElement[]} - Array of rendered HTML elements.
|
|
115
|
+
*/
|
|
116
|
+
render(nodes, linkGroupAnnotation, { editable }) {
|
|
128
117
|
const blockNodes = this.groupNodesByLink(nodes);
|
|
129
118
|
return blockNodes.flatMap((item) => {
|
|
130
119
|
if (this.isLinkGroup(item)) {
|
|
131
|
-
|
|
120
|
+
// TODO: should revert to above code while https://gethired.atlassian.net/browse/VD-6513 have be fixed.
|
|
121
|
+
// const linkAnnotation: LinkAnnotation = item[0].getAnnotationByType<LinkAnnotation>(
|
|
122
|
+
// NodeAnnotationTypeEnum.LINK,
|
|
123
|
+
// ) as LinkAnnotation;
|
|
124
|
+
let linkAnnotation;
|
|
125
|
+
item.find((node) => {
|
|
126
|
+
const link = node.getAnnotationByType(NodeAnnotationTypeEnum.LINK);
|
|
127
|
+
if (link) {
|
|
128
|
+
linkAnnotation = link;
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
132
|
return editable
|
|
133
|
-
? this.renderLinkEditorWrapper(item, linkAnnotation)
|
|
134
|
-
: this.renderLink(item, linkAnnotation);
|
|
133
|
+
? this.renderLinkEditorWrapper(item, linkAnnotation, linkGroupAnnotation)
|
|
134
|
+
: this.renderLink(item, linkAnnotation, linkGroupAnnotation);
|
|
135
135
|
}
|
|
136
136
|
return RTETextNodeRenderer$1.render(item);
|
|
137
137
|
});
|
|
@@ -159,32 +159,9 @@ class RTEBlockTextNodesRenderer extends RTEBlockRenderer {
|
|
|
159
159
|
isLinkGroup(item) {
|
|
160
160
|
return Array.isArray(item);
|
|
161
161
|
}
|
|
162
|
-
renderLinkEditorWrapper(linkNodes, linkAnnotation) {
|
|
162
|
+
renderLinkEditorWrapper(linkNodes, linkAnnotation, linkGroupAnnotation) {
|
|
163
163
|
const { href } = linkAnnotation.link;
|
|
164
164
|
const textFromNodes = linkNodes.map((node) => node.text).join('');
|
|
165
|
-
const handleChange = ({ detail, }) => {
|
|
166
|
-
switch (detail.action) {
|
|
167
|
-
case 'link': {
|
|
168
|
-
const { url, text } = detail.payload;
|
|
169
|
-
const textChanged = text !== textFromNodes;
|
|
170
|
-
const groupKey = generateUUID();
|
|
171
|
-
linkNodes.forEach((node) => {
|
|
172
|
-
const linkAnnotationAction = new LinkAnnotationAction({
|
|
173
|
-
link: { href: url, groupKey: groupKey },
|
|
174
|
-
newText: textChanged ? text : undefined,
|
|
175
|
-
needMergeNode: textChanged && linkNodes.length > 1,
|
|
176
|
-
doSplit: false,
|
|
177
|
-
});
|
|
178
|
-
node.apply(linkAnnotationAction);
|
|
179
|
-
});
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
case 'unlink': {
|
|
183
|
-
linkNodes.forEach((node) => node.deleteAnnotationByType(NodeAnnotationTypeEnum.LINK));
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
165
|
let linkWrapperRef;
|
|
189
166
|
return (h("span", { class: "link-editor-wrapper", role: "link", tabIndex: 0, onKeyDown: createEnterKeyHandlerToTriggerClick(), ref: (ref) => {
|
|
190
167
|
if (ref) {
|
|
@@ -192,20 +169,41 @@ class RTEBlockTextNodesRenderer extends RTEBlockRenderer {
|
|
|
192
169
|
stateEntityRenderingRegistry.removeDirtyDomRef(ref);
|
|
193
170
|
}
|
|
194
171
|
} },
|
|
195
|
-
this.renderLink(linkNodes, linkAnnotation),
|
|
172
|
+
this.renderLink(linkNodes, linkAnnotation, linkGroupAnnotation),
|
|
196
173
|
h("vega-rich-text-link-editor", { record: {
|
|
197
174
|
text: textFromNodes,
|
|
198
175
|
url: href,
|
|
199
176
|
}, ref: (ref) => {
|
|
200
177
|
if (ref) {
|
|
201
178
|
ref.target = linkWrapperRef;
|
|
202
|
-
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange,
|
|
179
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange, (e) => {
|
|
180
|
+
this.handleChange(e, textFromNodes, linkNodes);
|
|
181
|
+
});
|
|
203
182
|
}
|
|
204
183
|
} })));
|
|
205
184
|
}
|
|
206
|
-
renderLink(linkNodes, linkAnnotation) {
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
renderLink(linkNodes, linkAnnotation, linkGroupAnnotation) {
|
|
186
|
+
return (h("a", Object.assign({}, linkGroupAnnotation.toJsx(linkAnnotation)), linkNodes.map((node) => RTETextNodeRenderer$1.render(node))));
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const RTELinkWrapperRenderer$1 = new RTELinkWrapperRenderer();
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Abstract class for rendering blocks that contain text nodes with support for rendering text with link styles.
|
|
193
|
+
*/
|
|
194
|
+
class RTEBlockTextNodesRenderer extends RTEBlockRenderer {
|
|
195
|
+
/**
|
|
196
|
+
* Renders the text nodes of the block(RTETextBlock, RTEListItemBlock), applying link group annotation rendering if present.
|
|
197
|
+
*
|
|
198
|
+
* @param {RTETextBlock} block - The text block containing nodes to render.
|
|
199
|
+
* @param {RTERenderContext} renderContext - The context for rendering.
|
|
200
|
+
* @returns {HTMLElement[]} An array of rendered HTMLElements.
|
|
201
|
+
*/
|
|
202
|
+
renderNodes(block, renderContext) {
|
|
203
|
+
const linkGroupAnnotation = block.getAnnotationByType(InternalAnnotationTypeEnum.LINK_GROUP);
|
|
204
|
+
return linkGroupAnnotation
|
|
205
|
+
? RTELinkWrapperRenderer$1.render(block.nodes, linkGroupAnnotation, renderContext)
|
|
206
|
+
: block.nodes.map((node) => RTETextNodeRenderer$1.render(node));
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
209
|
|
|
@@ -214,29 +212,8 @@ class RTETextBlockRenderer extends RTEBlockTextNodesRenderer {
|
|
|
214
212
|
return block instanceof RTETextBlock;
|
|
215
213
|
}
|
|
216
214
|
render(block, renderContext) {
|
|
217
|
-
const BlockTag =
|
|
218
|
-
return (h(BlockTag, { key: block.id, ref: (ref) => super.registerRef(ref, block), style:
|
|
219
|
-
}
|
|
220
|
-
getBlockTagByType(type) {
|
|
221
|
-
switch (type) {
|
|
222
|
-
case 'title':
|
|
223
|
-
case 'subtitle':
|
|
224
|
-
return `div`;
|
|
225
|
-
case 'heading-1':
|
|
226
|
-
return `h1`;
|
|
227
|
-
case 'heading-2':
|
|
228
|
-
return `h2`;
|
|
229
|
-
case 'heading-3':
|
|
230
|
-
return `h3`;
|
|
231
|
-
case 'heading-4':
|
|
232
|
-
return `h4`;
|
|
233
|
-
case 'heading-5':
|
|
234
|
-
return `h5`;
|
|
235
|
-
case 'heading-6':
|
|
236
|
-
return `h6`;
|
|
237
|
-
case 'paragraph':
|
|
238
|
-
return 'p';
|
|
239
|
-
}
|
|
215
|
+
const BlockTag = block.getBlockTag();
|
|
216
|
+
return (h(BlockTag, Object.assign({}, this.getCustomAttrs(block), { key: block.id, ref: (ref) => super.registerRef(ref, block), style: block.getStyles(), class: block.getClasses() }), super.renderNodes(block, renderContext)));
|
|
240
217
|
}
|
|
241
218
|
}
|
|
242
219
|
const RTETextBlockRenderer$1 = new RTETextBlockRenderer();
|
|
@@ -271,14 +248,52 @@ class RTEImageNodeRenderer extends RTENodeRenderer {
|
|
|
271
248
|
};
|
|
272
249
|
}
|
|
273
250
|
render(node, renderContext) {
|
|
274
|
-
const imageAnnotation = node.getAnnotationByType(NodeAnnotationTypeEnum.IMAGE)
|
|
275
|
-
|
|
276
|
-
return renderContext.editable ? (h("vega-rich-text-image-editor", { key: node.id,
|
|
251
|
+
const imageAnnotation = node.getAnnotationByType(NodeAnnotationTypeEnum.IMAGE) ||
|
|
252
|
+
new ImageAnnotation('md', '');
|
|
253
|
+
return renderContext.editable ? (h("vega-rich-text-image-editor", { key: node.id, class: this.getClasses(node), size: imageAnnotation.size, alt: imageAnnotation.alt, ref: (ref) => {
|
|
277
254
|
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange, (e) => this.handleChange(e, node));
|
|
278
|
-
} }, this.renderImage(
|
|
255
|
+
} }, this.renderImage(imageAnnotation, node, renderContext))) : (this.renderImage(imageAnnotation, node, renderContext));
|
|
279
256
|
}
|
|
280
|
-
|
|
281
|
-
|
|
257
|
+
/**
|
|
258
|
+
* The function will render an image.
|
|
259
|
+
* In edit mode, it will be placed in the "vega-rich-text-image-editor" component as a slot.
|
|
260
|
+
* In view mode, the img image will be displayed directly.
|
|
261
|
+
*
|
|
262
|
+
* @param {ImageAnnotation} imageAnnotation - the image annotation of the image node
|
|
263
|
+
* @param {RTEImageNode} node - the current image node
|
|
264
|
+
* @returns {HTMLElement} return a image element
|
|
265
|
+
*/
|
|
266
|
+
renderImage(imageAnnotation, node, renderContext) {
|
|
267
|
+
var _a;
|
|
268
|
+
return (h("img", Object.assign({}, (_a = node.getCustomAttributesAnnotation()) === null || _a === void 0 ? void 0 : _a.render({ filterAttributes: ['width', 'height'] }), { class: renderContext.editable ? this.getCommonClasses(node) : node.getClasses(), style: renderContext.editable
|
|
269
|
+
? Object.assign(Object.assign({}, node.getStyles()), { width: '100%' }) : Object.assign(Object.assign({}, node.getStyles()), imageAnnotation.renderStyle({ standalone: true })), alt: imageAnnotation.alt, "data-size": imageAnnotation.size, src: node.url, ref: (ref) => super.registerRef(ref, node) })));
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Get the custom class string of the current RTEImageNode.
|
|
273
|
+
*
|
|
274
|
+
* @returns {Nullable<string>} A string of classes.
|
|
275
|
+
*/
|
|
276
|
+
getCommonClasses(node) {
|
|
277
|
+
const customClassAnnotation = node.getAnnotationByType(CommonAnnotationTypeEnum.CUSTOM_CLASS);
|
|
278
|
+
if (customClassAnnotation) {
|
|
279
|
+
return customClassAnnotation.customClass
|
|
280
|
+
.filter(isNonNullable)
|
|
281
|
+
.reduce((pre, cur) => [pre, cur].join(' ').trim(), '');
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Get classes from annotations
|
|
287
|
+
*
|
|
288
|
+
* @param {RTERenderContext} [options={ standalone: false }] - Options to control style mode
|
|
289
|
+
* @returns {string} - Annotation style
|
|
290
|
+
*/
|
|
291
|
+
getClasses(node, options = { standalone: false }) {
|
|
292
|
+
return Array.from(node.annotationMap.values())
|
|
293
|
+
.filter((annotation) => annotation instanceof NodeAnnotation)
|
|
294
|
+
.map((annotation) => annotation.renderClass(options))
|
|
295
|
+
.filter(isNonNullable)
|
|
296
|
+
.reduce((pre, cur) => [pre, cur].join(' ').trim(), '');
|
|
282
297
|
}
|
|
283
298
|
}
|
|
284
299
|
const RTEImageNodeRenderer$1 = new RTEImageNodeRenderer();
|
|
@@ -288,7 +303,7 @@ class RTEImageBlockRenderer extends RTEBlockRenderer {
|
|
|
288
303
|
return block instanceof RTEImageBlock;
|
|
289
304
|
}
|
|
290
305
|
render(block, renderContext) {
|
|
291
|
-
return (h("div",
|
|
306
|
+
return (h("div", Object.assign({}, this.getCustomAttrs(block), { key: block.id, ref: (ref) => super.registerRef(ref, block), style: block.getStyles(), class: block.getClasses() }), block.nodes.map((node) => {
|
|
292
307
|
return RTEImageNodeRenderer$1.render(node, renderContext);
|
|
293
308
|
})));
|
|
294
309
|
}
|
|
@@ -297,7 +312,7 @@ const RTEImageBlockRenderer$1 = new RTEImageBlockRenderer();
|
|
|
297
312
|
|
|
298
313
|
class RTEListItemBlockRenderer extends RTEBlockTextNodesRenderer {
|
|
299
314
|
render(block, renderContext) {
|
|
300
|
-
return (h("li", { key: block.id, ref: (ref) => super.registerRef(ref, block), style:
|
|
315
|
+
return (h("li", Object.assign({}, this.getCustomAttrs(block), { key: block.id, ref: (ref) => super.registerRef(ref, block), style: block.getStyles(), class: block.getClasses() }),
|
|
301
316
|
super.renderNodes(block, renderContext),
|
|
302
317
|
this.renderChildren(block.children, renderContext)));
|
|
303
318
|
}
|
|
@@ -313,11 +328,169 @@ class RTEListBlockRenderer extends RTEBlockRenderer {
|
|
|
313
328
|
}
|
|
314
329
|
render(block, renderContext) {
|
|
315
330
|
const BlockTag = block.type === 'number-list' ? 'ol' : 'ul';
|
|
316
|
-
return (h(BlockTag, { key: block.id, ref: (ref) => super.registerRef(ref, block) }, block.blocks.map((listItemBlock) => RTEListItemBlockRenderer$1.render(listItemBlock, renderContext))));
|
|
331
|
+
return (h(BlockTag, Object.assign({}, this.getCustomAttrs(block), { key: block.id, ref: (ref) => super.registerRef(ref, block), style: block.getStyles(), class: block.getClasses() }), block.blocks.map((listItemBlock) => RTEListItemBlockRenderer$1.render(listItemBlock, renderContext))));
|
|
317
332
|
}
|
|
318
333
|
}
|
|
319
334
|
const RTEListBlockRenderer$1 = new RTEListBlockRenderer();
|
|
320
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Switch out from the code block and insert new paragraph after code block.
|
|
338
|
+
*
|
|
339
|
+
* @example codeBlock.apply(new SwitchOutFromCodeBlockAction(content, language))
|
|
340
|
+
*/
|
|
341
|
+
class SwitchOutFromCodeBlockAction extends ModifyContentAction {
|
|
342
|
+
constructor(content, language) {
|
|
343
|
+
super();
|
|
344
|
+
this.isFlushable = true;
|
|
345
|
+
this.type = ModifyContentActionType.SWITCH_OUT_FROM_CODE_BLOCK;
|
|
346
|
+
this.content = content;
|
|
347
|
+
this.language = language;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Remove the code block from the state.
|
|
353
|
+
*
|
|
354
|
+
* @example codeBlock.parentBlock.apply(new RemoveCodeBlockAction())
|
|
355
|
+
*/
|
|
356
|
+
class RemoveCodeBlockAction extends ModifyContentAction {
|
|
357
|
+
constructor() {
|
|
358
|
+
super(...arguments);
|
|
359
|
+
this.isFlushable = true;
|
|
360
|
+
this.type = ModifyContentActionType.DELETE_CODE_BLOCK;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
class RTECodeBlockNodeRenderer extends RTENodeRenderer {
|
|
365
|
+
render(node, renderContext) {
|
|
366
|
+
const { text: code, language } = node;
|
|
367
|
+
return (h("vega-code-block", { key: node.id, value: { code, language }, readOnly: !renderContext.editable, "data-content": code, "data-language": language, ref: (ref) => {
|
|
368
|
+
this.registerRef(ref, node);
|
|
369
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaChange, (input) => this.handleCodeContentChange(input.detail, node));
|
|
370
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaRemove, (input) => this.handleCodeBlockRemove(input, node));
|
|
371
|
+
DomNodeSubjectObserverFactory.addUniqueObserverToNode(ref, VegaInternalCodeBlockSelectionChange, (input) => this.handleSelectionChange(input.detail, node));
|
|
372
|
+
} }));
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Sync the code block DTO language and content when the component change event emit.
|
|
376
|
+
*
|
|
377
|
+
* @param {VegaCodeBlockValue} codeBlockValue - The code block value.
|
|
378
|
+
* @param {RTECodeBlockNode} node - The DTO class instance.
|
|
379
|
+
*/
|
|
380
|
+
handleCodeContentChange(codeBlockValue, node) {
|
|
381
|
+
const { code, language } = codeBlockValue;
|
|
382
|
+
if (this.shouldSwitchOutOfCodeBlock(node.text, code)) {
|
|
383
|
+
const switchAction = new SwitchOutFromCodeBlockAction(code, language);
|
|
384
|
+
node.parentBlock.apply(switchAction);
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
node.apply(new UpdateCodeBlockAction(code, language));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Remove the code block from RTE value when the component remove event emit.
|
|
392
|
+
*
|
|
393
|
+
* @param {ChangeManagerEventLike<unknown>} input - The internal event payload object.
|
|
394
|
+
* @param {RTECodeBlockNode} node - The DTO class instance.
|
|
395
|
+
*/
|
|
396
|
+
handleCodeBlockRemove(input, node) {
|
|
397
|
+
input.preventDefault();
|
|
398
|
+
node.parentBlock.apply(new RemoveCodeBlockAction());
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* The cursor should jump out of code block if enter three line breaks at the end.
|
|
402
|
+
*
|
|
403
|
+
* @param {string} oldCode - The old code content.
|
|
404
|
+
* @param {string} newCode - The new code content.
|
|
405
|
+
* @returns {boolean} - Boolean value.
|
|
406
|
+
*/
|
|
407
|
+
shouldSwitchOutOfCodeBlock(oldCode, newCode) {
|
|
408
|
+
const newCodes = newCode.split('\n');
|
|
409
|
+
if (newCode.length > oldCode.length &&
|
|
410
|
+
newCodes.length > 3 &&
|
|
411
|
+
newCodes
|
|
412
|
+
.slice(newCodes.length - 3)
|
|
413
|
+
.join('')
|
|
414
|
+
.trim() === '') {
|
|
415
|
+
return true;
|
|
416
|
+
}
|
|
417
|
+
return false;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Apply the selection action to code node or remove from the annotation map.
|
|
421
|
+
*
|
|
422
|
+
* @param {boolean} isSelected - The code block is focus or not.
|
|
423
|
+
* @param {RTECodeBlockNode} node - The DTO class instance.
|
|
424
|
+
*/
|
|
425
|
+
handleSelectionChange(isSelected, node) {
|
|
426
|
+
if (isSelected) {
|
|
427
|
+
node.apply(new SelectionChangeAction(null));
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
node.annotationMap.delete(InternalAnnotationTypeEnum.SELECTION_RANGE);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
const RTECodeBlockNodeRenderer$1 = new RTECodeBlockNodeRenderer();
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* The code block renderer.
|
|
438
|
+
*/
|
|
439
|
+
class RTECodeBlockRenderer extends RTEBlockRenderer {
|
|
440
|
+
/**
|
|
441
|
+
* Check the input block type.
|
|
442
|
+
*
|
|
443
|
+
* @param {RTEBlock} block - The input block.
|
|
444
|
+
* @returns {boolean} - Return true if the input block is a code block.
|
|
445
|
+
*/
|
|
446
|
+
canHandle(block) {
|
|
447
|
+
return block instanceof RTECodeBlock;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Render the code block.
|
|
451
|
+
*
|
|
452
|
+
* @param {RTECodeBlock} block - The code block.
|
|
453
|
+
* @param {RTERenderContext} renderContext - The render context.
|
|
454
|
+
* @returns {HTMLElement} - The code block container element and code node elements.
|
|
455
|
+
*/
|
|
456
|
+
render(block, renderContext) {
|
|
457
|
+
const { id, nodes } = block;
|
|
458
|
+
return (
|
|
459
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
460
|
+
h("pre", { key: id, class: "code-block-container", ref: (node) => this.registerRef(node, block), onKeyDown: this.preventParentDoFocus, onClick: this.preventParentDoFocus, "data-language": nodes[0].language },
|
|
461
|
+
this.renderPlaceholderElement('TOP'),
|
|
462
|
+
RTECodeBlockNodeRenderer$1.render(nodes[0], renderContext),
|
|
463
|
+
this.renderPlaceholderElement('BOTTOM')));
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* The current element used to define the upper and lower bounds of a code block and to ensure that they are reflected in the range object when the code block is selected.
|
|
467
|
+
*
|
|
468
|
+
* @param {'TOP' | 'BOTTOM'} position - The element position.
|
|
469
|
+
* @returns {HTMLElement} - The empty span element.
|
|
470
|
+
*/
|
|
471
|
+
renderPlaceholderElement(position) {
|
|
472
|
+
const marginTop = position === 'BOTTOM' ? '-1px' : '0px';
|
|
473
|
+
const marginBottom = position === 'BOTTOM' ? '0px' : '-1px';
|
|
474
|
+
return (h("span", { class: RTECodeBlock.CODE_BLOCK_PLACEHOLDER_CLASS_NAME, style: {
|
|
475
|
+
display: 'block',
|
|
476
|
+
height: '1px',
|
|
477
|
+
overflow: 'hidden',
|
|
478
|
+
zIndex: '1',
|
|
479
|
+
marginTop,
|
|
480
|
+
marginBottom,
|
|
481
|
+
} }, ZERO_WIDTH_SPACE));
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Prevent the click event bubble, avoid the rich text content trigger focus event.
|
|
485
|
+
*
|
|
486
|
+
* @param {MouseEvent} e - The event object.
|
|
487
|
+
*/
|
|
488
|
+
preventParentDoFocus(e) {
|
|
489
|
+
e.stopPropagation();
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
const RTECodeBlockRenderer$1 = new RTECodeBlockRenderer();
|
|
493
|
+
|
|
321
494
|
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
322
495
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
323
496
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -328,6 +501,7 @@ class VegaRichTextContentRenderer extends VegaSlimmer {
|
|
|
328
501
|
constructor() {
|
|
329
502
|
super();
|
|
330
503
|
this.blockRenderers = [
|
|
504
|
+
RTECodeBlockRenderer$1,
|
|
331
505
|
RTETextBlockRenderer$1,
|
|
332
506
|
RTEImageBlockRenderer$1,
|
|
333
507
|
RTEListBlockRenderer$1,
|
|
@@ -442,7 +616,7 @@ __decorate$1([
|
|
|
442
616
|
MapToComponentField({ writable: true })
|
|
443
617
|
], VegaRichTextContentStateController.prototype, "contentEditable", void 0);
|
|
444
618
|
|
|
445
|
-
const vegaRichTextContentCss = ":host{display:flex;flex-direction:column;width:100%}:host .rich-text-content{position:relative;height:100%;outline:2px solid transparent;outline-offset:2px;font-family:\"Inter\", sans-serif;font-weight:500;color:var(--v-rich-text-editor-black, #111128);overflow-wrap:break-word;white-space:pre-wrap}:host .rich-text-content.showPlaceholder::before{position:absolute;content:attr(data-placeholder);font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .rich-text-content.showPlaceholder::before{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .rich-text-content.showPlaceholder::before{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .rich-text-content.showPlaceholder::before{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .rich-text-content h1,:host .rich-text-content h2,:host .rich-text-content h3,:host .rich-text-content h4,:host .rich-text-content h5,:host .rich-text-content h6,:host .rich-text-content p{margin:0}:host .rich-text-content a.v-rte--link{color:rgba(var(--v-text-link, 19, 98, 226, 1));outline:none}:host .rich-text-content a.v-rte--link:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host .rich-text-content a.v-rte--link:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host .rich-text-content a.v-rte--link:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host .rich-text-content a.v-rte--link:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));border-radius:8px}:host .rich-text-content .v-rte--underline{text-decoration:underline}:host .rich-text-content .v-rte--strikethrough{text-decoration:line-through}:host .rich-text-content .v-rte--underline.v-rte--strikethrough{text-decoration:underline line-through}:host .rich-text-content .v-rte--horizontal-alignment-right{text-align:right}:host .rich-text-content .v-rte--horizontal-alignment-left{text-align:left}:host .rich-text-content .v-rte--horizontal-alignment-center{text-align:center}:host .rich-text-content .v-rte--horizontal-alignment-justify{text-align:justify}:host .rich-text-content .v-rte--code{font-family:\"Roboto Mono\";white-space:pre-wrap}:host .rich-text-content img{vertical-align:bottom;cursor:pointer}:host .rich-text-content ul
|
|
619
|
+
const vegaRichTextContentCss = ":host{display:flex;flex-direction:column;width:100%}:host .rich-text-content{position:relative;height:100%;outline:2px solid transparent;outline-offset:2px;font-family:\"Inter\", sans-serif;font-weight:500;color:var(--v-rich-text-editor-black, #111128);overflow-wrap:break-word;white-space:pre-wrap}:host .rich-text-content.showPlaceholder::before{position:absolute;content:attr(data-placeholder);font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px;color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){:host .rich-text-content.showPlaceholder::before{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .rich-text-content.showPlaceholder::before{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .rich-text-content.showPlaceholder::before{font-family:\"Inter\", sans-serif;font-size:16px;font-weight:400;line-height:24px;letter-spacing:0px}}:host .rich-text-content h1,:host .rich-text-content h2,:host .rich-text-content h3,:host .rich-text-content h4,:host .rich-text-content h5,:host .rich-text-content h6,:host .rich-text-content p{margin:0}:host .rich-text-content a.v-rte--link{color:rgba(var(--v-text-link, 19, 98, 226, 1));outline:none}:host .rich-text-content a.v-rte--link:visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host .rich-text-content a.v-rte--link:hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host .rich-text-content a.v-rte--link:active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host .rich-text-content a.v-rte--link:focus-visible{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1));outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:3px;border:1px solid rgba(var(--v-border-color-input-field-focus, 19, 98, 226, 1));border-radius:8px}:host .rich-text-content .v-rte--underline{text-decoration:underline}:host .rich-text-content .v-rte--strikethrough{text-decoration:line-through}:host .rich-text-content .v-rte--underline.v-rte--strikethrough{text-decoration:underline line-through}:host .rich-text-content .v-rte--horizontal-alignment-right{text-align:right}:host .rich-text-content .v-rte--horizontal-alignment-left{text-align:left}:host .rich-text-content .v-rte--horizontal-alignment-center{text-align:center}:host .rich-text-content .v-rte--horizontal-alignment-justify{text-align:justify}:host .rich-text-content .v-rte--code{font-family:\"Roboto Mono\";white-space:pre-wrap}:host .rich-text-content img{vertical-align:bottom;cursor:pointer}:host .rich-text-content ul.v-rte--list,:host .rich-text-content ol.v-rte--list{padding-left:8px;margin-left:16px}:host .rich-text-content .link-editor-wrapper{position:relative;outline:2px solid transparent;outline-offset:2px}:host .rich-text-content .link-editor-wrapper vega-rich-text-link-editor{position:absolute;bottom:0;left:0;right:0}:host .rich-text-content .code-block-container{margin-top:22px;margin-bottom:22px}:host .rich-text-content vega-code-block.focus{outline:none}:host .rich-text-content .v-rte--bold{font-weight:700}:host .rich-text-content .v-rte--italic{font-style:italic}:host .rich-text-content .v-rte--image-size-sm{width:25%}:host .rich-text-content .v-rte--image-size-md{width:50%}:host .rich-text-content .v-rte--image-size-lg{width:100%}:host .rich-text-content .v-rte--text-style-paragraph{font-family:\"Inter\";font-size:16px;line-height:22px;font-weight:500}:host .rich-text-content .v-rte--text-style-title{font-family:\"Inter\";font-size:36px;line-height:40px;font-weight:500}:host .rich-text-content .v-rte--text-style-subtitle{font-family:\"Inter\";font-size:28px;line-height:32px;font-weight:500}:host .rich-text-content .v-rte--text-style-heading-1{font-family:\"Inter\";font-size:22px;line-height:24px;font-weight:500}:host .rich-text-content .v-rte--text-style-heading-2{font-family:\"Inter\";font-size:20px;line-height:24px;font-weight:500}:host .rich-text-content .v-rte--text-style-heading-3{font-family:\"Inter\";font-size:18px;line-height:22px;font-weight:500}";
|
|
446
620
|
|
|
447
621
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
448
622
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|