@wix/ricos 11.21.2 → 11.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/all-plugins-viewer.css +170 -170
- package/css/plugin-audio-viewer.global.css +3 -3
- package/css/plugin-audio-viewer.global.inject.mjs +4 -4
- package/css/plugin-button-viewer.global.css +1 -1
- package/css/plugin-button-viewer.global.inject.mjs +2 -2
- package/css/plugin-card-viewer.global.css +1 -1
- package/css/plugin-card-viewer.global.inject.mjs +2 -2
- package/css/plugin-collapsible-list-viewer.global.css +1 -1
- package/css/plugin-collapsible-list-viewer.global.inject.mjs +2 -2
- package/css/plugin-divider-viewer.global.css +1 -1
- package/css/plugin-divider-viewer.global.inject.mjs +2 -2
- package/css/plugin-file-upload-viewer.global.css +1 -1
- package/css/plugin-file-upload-viewer.global.inject.mjs +2 -2
- package/css/plugin-gallery-viewer.global.css +1 -1
- package/css/plugin-gallery-viewer.global.inject.mjs +2 -2
- package/css/plugin-giphy-viewer.global.css +1 -1
- package/css/plugin-giphy-viewer.global.inject.mjs +2 -2
- package/css/plugin-hashtag-viewer.global.css +1 -1
- package/css/plugin-hashtag-viewer.global.inject.mjs +2 -2
- package/css/plugin-html-viewer.global.css +1 -1
- package/css/plugin-html-viewer.global.inject.mjs +2 -2
- package/css/plugin-image-viewer.global.css +1 -1
- package/css/plugin-image-viewer.global.inject.mjs +2 -2
- package/css/plugin-link-preview-viewer.global.css +2 -2
- package/css/plugin-link-preview-viewer.global.inject.mjs +3 -3
- package/css/plugin-link-viewer.global.css +1 -1
- package/css/plugin-link-viewer.global.inject.mjs +2 -2
- package/css/plugin-mentions-viewer.global.css +1 -1
- package/css/plugin-mentions-viewer.global.inject.mjs +2 -2
- package/css/plugin-paywall-viewer.global.css +1 -1
- package/css/plugin-paywall-viewer.global.inject.mjs +2 -2
- package/css/plugin-smart-block-viewer.global.css +1 -1
- package/css/plugin-smart-block-viewer.global.inject.mjs +2 -2
- package/css/plugin-social-polls-viewer.global.css +1 -1
- package/css/plugin-social-polls-viewer.global.inject.mjs +2 -2
- package/css/plugin-spoiler-viewer.global.css +1 -1
- package/css/plugin-spoiler-viewer.global.inject.mjs +2 -2
- package/css/plugin-table-viewer.global.css +3 -3
- package/css/plugin-table-viewer.global.inject.mjs +4 -4
- package/css/plugin-toc-viewer.global.css +1 -1
- package/css/plugin-toc-viewer.global.inject.mjs +2 -2
- package/css/plugin-vertical-embed-viewer.global.css +2 -2
- package/css/plugin-vertical-embed-viewer.global.inject.mjs +3 -3
- package/css/plugin-video-viewer.global.css +1 -1
- package/css/plugin-video-viewer.global.inject.mjs +2 -2
- package/css/ricos-viewer.global.css +1 -1
- package/css/ricos-viewer.global.inject.mjs +2 -2
- package/dist/cjs/_shared/dropdown-modal/dropdown-modal-scss.js +2 -2
- package/dist/cjs/_shared/dropdown-modal/dropdown-modal-scss.js.map +1 -1
- package/dist/cjs/_shared/figure/add-caption-button-scss.js +9 -9
- package/dist/cjs/_shared/figure/add-caption-button-scss.js.map +1 -1
- package/dist/cjs/_shared/figure/viewer-caption-scss.js +2 -2
- package/dist/cjs/_shared/figure/viewer-caption-scss.js.map +1 -1
- package/dist/cjs/_shared/figure/viewer-figure-scss.js +1 -1
- package/dist/cjs/_shared/figure/viewer-figure-scss.js.map +1 -1
- package/dist/cjs/_shared/{get-pos-after-parent-layout.js → get-pos-after-parent-container.js} +11 -10
- package/dist/cjs/_shared/get-pos-after-parent-container.js.map +7 -0
- package/dist/cjs/_shared/list-item-divider/list-item-divider-scss.js +1 -1
- package/dist/cjs/_shared/list-item-divider/list-item-divider-scss.js.map +1 -1
- package/dist/cjs/_shared/list-item-select/list-item-select-scss.js +2 -2
- package/dist/cjs/_shared/list-item-select/list-item-select-scss.js.map +1 -1
- package/dist/cjs/_shared/list-item-toggle/list-item-toggle-scss.js +3 -3
- package/dist/cjs/_shared/list-item-toggle/list-item-toggle-scss.js.map +1 -1
- package/dist/cjs/_shared/overlay-hoc/overlay-hoc-scss.js +1 -1
- package/dist/cjs/_shared/overlay-hoc/overlay-hoc-scss.js.map +1 -1
- package/dist/cjs/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js +2 -2
- package/dist/cjs/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js.map +1 -1
- package/dist/cjs/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js +2 -2
- package/dist/cjs/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js.map +1 -1
- package/dist/cjs/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js +7 -7
- package/dist/cjs/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js.map +1 -1
- package/dist/cjs/_shared/prompt-input-area/prompt-input-area-scss.js +13 -13
- package/dist/cjs/_shared/prompt-input-area/prompt-input-area-scss.js.map +1 -1
- package/dist/cjs/_shared/prompt-input-area/widget-prompt-input-area-scss.js +8 -8
- package/dist/cjs/_shared/prompt-input-area/widget-prompt-input-area-scss.js.map +1 -1
- package/dist/cjs/_shared/shape-select-modal/shape-select-modal-content-scss.js +7 -7
- package/dist/cjs/_shared/shape-select-modal/shape-select-modal-content-scss.js.map +1 -1
- package/dist/cjs/_shared/shape-view-renderer/shape-view-renderer-scss.js +2 -2
- package/dist/cjs/_shared/shape-view-renderer/shape-view-renderer-scss.js.map +1 -1
- package/dist/cjs/_shared/toolbar-button/toolbar-button-scss.js +3 -3
- package/dist/cjs/_shared/toolbar-button/toolbar-button-scss.js.map +1 -1
- package/dist/cjs/bundled-dependencies/ai-assistant-avatar.js +4 -4
- package/dist/cjs/bundled-dependencies/ai-assistant-avatar.js.map +1 -1
- package/dist/cjs/editor-common/statics/locale/messages_cs.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_cs.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_da.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_da.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_de.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_de.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_es.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_es.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_fr.json +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_fr.json.js +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_hi.json +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_hi.json.js +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_id.json +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_id.json.js +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_it.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_it.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_ja.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_ja.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_ko.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_ko.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_nl.json +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_nl.json.js +6 -6
- package/dist/cjs/editor-common/statics/locale/messages_no.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_no.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_pl.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_pl.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_pt.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_pt.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_ru.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_ru.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_sv.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_sv.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_th.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_th.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_tr.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_tr.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_uk.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_uk.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_vi.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_vi.json.js +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_zh.json +7 -7
- package/dist/cjs/editor-common/statics/locale/messages_zh.json.js +7 -7
- package/dist/cjs/editor-common/statics/styles/general-scss.js +18 -18
- package/dist/cjs/editor-common/statics/styles/general-scss.js.map +1 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/plugin-ai/ai-content-modal/ai-content-modal-scss.js +8 -8
- package/dist/cjs/plugin-ai/ai-content-modal/ai-content-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/ai-content-modal/feed/feed-scss.js +2 -2
- package/dist/cjs/plugin-ai/ai-content-modal/feed/feed-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js +1 -1
- package/dist/cjs/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js +2 -2
- package/dist/cjs/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js +5 -5
- package/dist/cjs/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/ai-image-modal/ai-image-modal-scss.js +6 -6
- package/dist/cjs/plugin-ai/ai-image-modal/ai-image-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/ai-plus-button/ai-plus-button-scss.js +1 -1
- package/dist/cjs/plugin-ai/ai-plus-button/ai-plus-button-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/error-message/error-message-scss.js +1 -1
- package/dist/cjs/plugin-ai/error-message/error-message-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/prompt-input-area/prompt-input-area-scss.js +4 -4
- package/dist/cjs/plugin-ai/prompt-input-area/prompt-input-area-scss.js.map +1 -1
- package/dist/cjs/plugin-ai/toolbar/toolbar-button-scss.js +2 -2
- package/dist/cjs/plugin-ai/toolbar/toolbar-button-scss.js.map +1 -1
- package/dist/cjs/plugin-animation/animation-panel-scss.js +9 -9
- package/dist/cjs/plugin-animation/animation-panel-scss.js.map +1 -1
- package/dist/cjs/plugin-audio/statics/styles/audio-embed-scss.js +1 -1
- package/dist/cjs/plugin-audio/statics/styles/audio-embed-scss.js.map +1 -1
- package/dist/cjs/plugin-audio/statics/styles/audio-scss.js +21 -21
- package/dist/cjs/plugin-audio/statics/styles/audio-scss.js.map +1 -1
- package/dist/cjs/plugin-audio/statics/styles/icon-button-scss.js +1 -1
- package/dist/cjs/plugin-audio/statics/styles/icon-button-scss.js.map +1 -1
- package/dist/cjs/plugin-audio/statics/styles/settings-modal-scss.js +1 -1
- package/dist/cjs/plugin-audio/statics/styles/settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-audio/statics/styles/sound-control-scss.js +2 -2
- package/dist/cjs/plugin-audio/statics/styles/sound-control-scss.js.map +1 -1
- package/dist/cjs/plugin-block-drag-handle/styles-scss.js +8 -8
- package/dist/cjs/plugin-block-drag-handle/styles-scss.js.map +1 -1
- package/dist/cjs/plugin-button/statics/styles/button-input-modal-scss.js +2 -2
- package/dist/cjs/plugin-button/statics/styles/button-input-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-button/statics/styles/button-text-field-scss.js +1 -1
- package/dist/cjs/plugin-button/statics/styles/button-text-field-scss.js.map +1 -1
- package/dist/cjs/plugin-button/statics/styles/default-styles-scss.js +5 -5
- package/dist/cjs/plugin-button/statics/styles/default-styles-scss.js.map +1 -1
- package/dist/cjs/plugin-card/card-scss.js +19 -19
- package/dist/cjs/plugin-card/card-scss.js.map +1 -1
- package/dist/cjs/plugin-card/card-viewer-scss.js +6 -6
- package/dist/cjs/plugin-card/card-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-code-block/statics/styles/code-block-scss.js +6 -6
- package/dist/cjs/plugin-code-block/statics/styles/code-block-scss.js.map +1 -1
- package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js +6 -6
- package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js.map +1 -1
- package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js +18 -18
- package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js.map +1 -1
- package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js +2 -2
- package/dist/cjs/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js.map +1 -1
- package/dist/cjs/plugin-collapsible-list/statics/styles/new-pair-button-scss.js +3 -3
- package/dist/cjs/plugin-collapsible-list/statics/styles/new-pair-button-scss.js.map +1 -1
- package/dist/cjs/plugin-divider/statics/styles/divider-viewer-scss.js +13 -13
- package/dist/cjs/plugin-divider/statics/styles/divider-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-divider/toolbar/modals/divider-design-panel-scss.js +1 -1
- package/dist/cjs/plugin-divider/toolbar/modals/divider-design-panel-scss.js.map +1 -1
- package/dist/cjs/plugin-emoji/modals/emoji-suggestions-modal-scss.js +1 -1
- package/dist/cjs/plugin-emoji/modals/emoji-suggestions-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-figure/tiptap/caption-scss.js +3 -3
- package/dist/cjs/plugin-figure/tiptap/caption-scss.js.map +1 -1
- package/dist/cjs/plugin-figure/tiptap/figure-scss.js +3 -3
- package/dist/cjs/plugin-figure/tiptap/figure-scss.js.map +1 -1
- package/dist/cjs/plugin-file-upload/statics/styles/file-upload-viewer-scss.js +15 -15
- package/dist/cjs/plugin-file-upload/statics/styles/file-upload-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/modals/settings/gallery-settings-modal-scss.js +3 -3
- package/dist/cjs/plugin-gallery/modals/settings/gallery-settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js +6 -6
- package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js +5 -5
- package/dist/cjs/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js +1 -1
- package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js +3 -3
- package/dist/cjs/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/statics/styles/gallery-component-scss.js +1 -1
- package/dist/cjs/plugin-gallery/statics/styles/gallery-component-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/statics/styles/gallery-media-scss.js +21 -21
- package/dist/cjs/plugin-gallery/statics/styles/gallery-media-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/statics/styles/viewer-scss.js +1 -1
- package/dist/cjs/plugin-gallery/statics/styles/viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-collage-scss.js +5 -5
- package/dist/cjs/plugin-gallery/viewer/layout-collage-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-column-scss.js +4 -4
- package/dist/cjs/plugin-gallery/viewer/layout-column-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-fullsize-scss.js +4 -4
- package/dist/cjs/plugin-gallery/viewer/layout-fullsize-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-grid-scss.js +2 -2
- package/dist/cjs/plugin-gallery/viewer/layout-grid-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-masonry-scss.js +7 -7
- package/dist/cjs/plugin-gallery/viewer/layout-masonry-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-panorama-scss.js +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-panorama-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-slider-scss.js +6 -6
- package/dist/cjs/plugin-gallery/viewer/layout-slider-scss.js.map +1 -1
- package/dist/cjs/plugin-gallery/viewer/layout-thumbnail-scss.js +11 -11
- package/dist/cjs/plugin-gallery/viewer/layout-thumbnail-scss.js.map +1 -1
- package/dist/cjs/plugin-giphy/components/giphy-selector-scss.js +9 -9
- package/dist/cjs/plugin-giphy/components/giphy-selector-scss.js.map +1 -1
- package/dist/cjs/plugin-giphy/viewer/giphy-viewer-scss.js +4 -4
- package/dist/cjs/plugin-giphy/viewer/giphy-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-giphy/viewer/play-icon-scss.js +2 -2
- package/dist/cjs/plugin-giphy/viewer/play-icon-scss.js.map +1 -1
- package/dist/cjs/plugin-hashtag/statics/hashtag-scss.js +2 -2
- package/dist/cjs/plugin-hashtag/statics/hashtag-scss.js.map +1 -1
- package/dist/cjs/plugin-headings/dropdown/headings-dropdown-scss.js +5 -5
- package/dist/cjs/plugin-headings/dropdown/headings-dropdown-scss.js.map +1 -1
- package/dist/cjs/plugin-html/statics/styles/HtmlComponent-scss.js +2 -2
- package/dist/cjs/plugin-html/statics/styles/HtmlComponent-scss.js.map +1 -1
- package/dist/cjs/plugin-html/statics/styles/Iframe-scss.js +1 -1
- package/dist/cjs/plugin-html/statics/styles/Iframe-scss.js.map +1 -1
- package/dist/cjs/plugin-html/tiptap/ai-widget-scss.js +2 -2
- package/dist/cjs/plugin-html/tiptap/ai-widget-scss.js.map +1 -1
- package/dist/cjs/plugin-html/tiptap/loader-scss.js +9 -9
- package/dist/cjs/plugin-html/tiptap/loader-scss.js.map +1 -1
- package/dist/cjs/plugin-html/tiptap/preset-bar/preset-bar-scss.js +2 -2
- package/dist/cjs/plugin-html/tiptap/preset-bar/preset-bar-scss.js.map +1 -1
- package/dist/cjs/plugin-image/components/corner-radius-handles-scss.js +4 -4
- package/dist/cjs/plugin-image/components/corner-radius-handles-scss.js.map +1 -1
- package/dist/cjs/plugin-image/components/crop-edge-handles-scss.js +1 -1
- package/dist/cjs/plugin-image/components/crop-edge-handles-scss.js.map +1 -1
- package/dist/cjs/plugin-image/crop-overlay/crop-overlay-scss.js +14 -14
- package/dist/cjs/plugin-image/crop-overlay/crop-overlay-scss.js.map +1 -1
- package/dist/cjs/plugin-image/statics/styles/image-viewer-scss.js +20 -20
- package/dist/cjs/plugin-image/statics/styles/image-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-image/statics/styles/settings-modal-scss.js +1 -1
- package/dist/cjs/plugin-image/statics/styles/settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-image/toolbar/shape-crop-modal-scss.js +4 -4
- package/dist/cjs/plugin-image/toolbar/shape-crop-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/ai-selection-tooltip-scss.js +10 -10
- package/dist/cjs/plugin-inline-ai/ai-selection-tooltip-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/aria-avatar-row-scss.js +1 -1
- package/dist/cjs/plugin-inline-ai/aria-avatar-row-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/aria-surface-row-scss.js +4 -4
- package/dist/cjs/plugin-inline-ai/aria-surface-row-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/html-placeholder-scss.js +3 -3
- package/dist/cjs/plugin-inline-ai/html-placeholder-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/modal-scss.js +9 -9
- package/dist/cjs/plugin-inline-ai/modal-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/pending-widget-placeholder-scss.js +12 -12
- package/dist/cjs/plugin-inline-ai/pending-widget-placeholder-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/spinner-scss.js +2 -2
- package/dist/cjs/plugin-inline-ai/spinner-scss.js.map +1 -1
- package/dist/cjs/plugin-inline-ai/toolbar/toolbar-button-scss.js +2 -2
- package/dist/cjs/plugin-inline-ai/toolbar/toolbar-button-scss.js.map +1 -1
- package/dist/cjs/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js +1 -1
- package/dist/cjs/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-link/statics/link-viewer-scss.js +4 -4
- package/dist/cjs/plugin-link/statics/link-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-link/toolbar/anchor-link-button-scss.js +1 -1
- package/dist/cjs/plugin-link/toolbar/anchor-link-button-scss.js.map +1 -1
- package/dist/cjs/plugin-link-preview/statics/styles/insert-modal-scss.js +1 -1
- package/dist/cjs/plugin-link-preview/statics/styles/insert-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-link-preview/statics/styles/link-preview-scss.js +18 -18
- package/dist/cjs/plugin-link-preview/statics/styles/link-preview-scss.js.map +1 -1
- package/dist/cjs/plugin-link-preview/statics/styles/settings-modal-scss.js +1 -1
- package/dist/cjs/plugin-link-preview/statics/styles/settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-mentions/statics/mention-list-scss.js +3 -3
- package/dist/cjs/plugin-mentions/statics/mention-list-scss.js.map +1 -1
- package/dist/cjs/plugin-mentions/statics/mentions-scss.js +4 -4
- package/dist/cjs/plugin-mentions/statics/mentions-scss.js.map +1 -1
- package/dist/cjs/plugin-paywall/paywall-fallback-scss.js +1 -1
- package/dist/cjs/plugin-paywall/paywall-fallback-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/cell-accessory-scss.js +22 -22
- package/dist/cjs/plugin-smart-block/components/cell-accessory-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/cell-quote-glyph-scss.js +3 -3
- package/dist/cjs/plugin-smart-block/components/cell-quote-glyph-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/cell-star-rating-scss.js +4 -4
- package/dist/cjs/plugin-smart-block/components/cell-star-rating-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/cell-stat-scss.js +20 -20
- package/dist/cjs/plugin-smart-block/components/cell-stat-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/circle-donut-scss.js +7 -7
- package/dist/cjs/plugin-smart-block/components/circle-donut-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/shape-overlay-scss.js +1 -1
- package/dist/cjs/plugin-smart-block/components/shape-overlay-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/smart-block-view-scss.js +50 -50
- package/dist/cjs/plugin-smart-block/components/smart-block-view-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/components/stars-scss.js +8 -8
- package/dist/cjs/plugin-smart-block/components/stars-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/modals/variant-picker-scss.js +7 -7
- package/dist/cjs/plugin-smart-block/modals/variant-picker-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/tiptap/smart-block-editor-scss.js +13 -13
- package/dist/cjs/plugin-smart-block/tiptap/smart-block-editor-scss.js.map +1 -1
- package/dist/cjs/plugin-smart-block/tiptap/smart-block-extension.js +2 -2
- package/dist/cjs/plugin-smart-block/tiptap/smart-block-extension.js.map +2 -2
- package/dist/cjs/plugin-social-polls/components/image-upload/image-upload-scss.js +9 -9
- package/dist/cjs/plugin-social-polls/components/image-upload/image-upload-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/insert-modal/insert-modal-scss.js +1 -1
- package/dist/cjs/plugin-social-polls/components/insert-modal/insert-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/poll-header/poll-header-scss.js +3 -3
- package/dist/cjs/plugin-social-polls/components/poll-header/poll-header-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/poll-option/option-scss.js +23 -23
- package/dist/cjs/plugin-social-polls/components/poll-option/option-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/poll-option/webview/option-webview-scss.js +24 -24
- package/dist/cjs/plugin-social-polls/components/poll-option/webview/option-webview-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/poll-scss.js +19 -19
- package/dist/cjs/plugin-social-polls/components/poll-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/settings-modal/settings-modal-scss.js +2 -2
- package/dist/cjs/plugin-social-polls/components/settings-modal/settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/text-field/text-field-scss.js +12 -12
- package/dist/cjs/plugin-social-polls/components/text-field/text-field-scss.js.map +1 -1
- package/dist/cjs/plugin-social-polls/components/voted-users/voted-users-scss.js +20 -20
- package/dist/cjs/plugin-social-polls/components/voted-users/voted-users-scss.js.map +1 -1
- package/dist/cjs/plugin-spoiler/statics/styles/spoiler-scss.js +18 -18
- package/dist/cjs/plugin-spoiler/statics/styles/spoiler-scss.js.map +1 -1
- package/dist/cjs/plugin-table/modals/table-grid-selector-scss.js +5 -5
- package/dist/cjs/plugin-table/modals/table-grid-selector-scss.js.map +1 -1
- package/dist/cjs/plugin-table/statics/styles/cell-scss.js +15 -15
- package/dist/cjs/plugin-table/statics/styles/cell-scss.js.map +1 -1
- package/dist/cjs/plugin-table/statics/styles/resizer-scss.js +18 -18
- package/dist/cjs/plugin-table/statics/styles/resizer-scss.js.map +1 -1
- package/dist/cjs/plugin-table/statics/styles/table-settings-modal-scss.js +1 -1
- package/dist/cjs/plugin-table/statics/styles/table-settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-table/statics/styles/table-viewer-scss.js +6 -6
- package/dist/cjs/plugin-table/statics/styles/table-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-table/tiptap/decorations/tableHandles-scss.js +9 -9
- package/dist/cjs/plugin-table/tiptap/decorations/tableHandles-scss.js.map +1 -1
- package/dist/cjs/plugin-table/tiptap/plugins/table-scss.js +33 -33
- package/dist/cjs/plugin-table/tiptap/plugins/table-scss.js.map +1 -1
- package/dist/cjs/plugin-table/toolbar/modals/border-scope-selector-scss.js +2 -2
- package/dist/cjs/plugin-table/toolbar/modals/border-scope-selector-scss.js.map +1 -1
- package/dist/cjs/plugin-text-color/text-button-color-scss.js +2 -2
- package/dist/cjs/plugin-text-color/text-button-color-scss.js.map +1 -1
- package/dist/cjs/plugin-toc/toc-view-scss.js +2 -2
- package/dist/cjs/plugin-toc/toc-view-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/components/Ribbon-scss.js +3 -3
- package/dist/cjs/plugin-vertical-embed/components/Ribbon-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/components/card-content-scss.js +23 -23
- package/dist/cjs/plugin-vertical-embed/components/card-content-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/components/card-scss.js +19 -19
- package/dist/cjs/plugin-vertical-embed/components/card-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/components/description-scss.js +2 -2
- package/dist/cjs/plugin-vertical-embed/components/description-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/modals/settings-modal-scss.js +2 -2
- package/dist/cjs/plugin-vertical-embed/modals/settings-modal-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/tiptap/component-scss.js +10 -10
- package/dist/cjs/plugin-vertical-embed/tiptap/component-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/toolbar/items-list-scss.js +1 -1
- package/dist/cjs/plugin-vertical-embed/toolbar/items-list-scss.js.map +1 -1
- package/dist/cjs/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js +6 -6
- package/dist/cjs/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-video/statics/styles/default-video-styles-scss.js +8 -8
- package/dist/cjs/plugin-video/statics/styles/default-video-styles-scss.js.map +1 -1
- package/dist/cjs/plugin-video/statics/styles/video-viewer-scss.js +3 -3
- package/dist/cjs/plugin-video/statics/styles/video-viewer-scss.js.map +1 -1
- package/dist/cjs/plugin-video/toolbar/embed-video-scss.js +1 -1
- package/dist/cjs/plugin-video/toolbar/embed-video-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js +1 -1
- package/dist/cjs/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js +8 -8
- package/dist/cjs/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/layout/layouts-scss.js +33 -33
- package/dist/cjs/ricos-common-plugins/layout/layouts-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js +2 -2
- package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js +4 -4
- package/dist/cjs/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/quick-actions/modal/modal-scss.js +2 -2
- package/dist/cjs/ricos-common-plugins/quick-actions/modal/modal-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/statics/styles-scss.js +18 -18
- package/dist/cjs/ricos-common-plugins/statics/styles-scss.js.map +1 -1
- package/dist/cjs/ricos-common-plugins/title/headings-scss.js +8 -8
- package/dist/cjs/ricos-common-plugins/title/headings-scss.js.map +1 -1
- package/dist/cjs/ricos-editor/statics/styles/editor-styles-scss.js +9 -9
- package/dist/cjs/ricos-editor/statics/styles/editor-styles-scss.js.map +1 -1
- package/dist/cjs/ricos-editor/tiptap/ricos-editor.js +3 -0
- package/dist/cjs/ricos-editor/tiptap/ricos-editor.js.map +2 -2
- package/dist/cjs/ricos-modals/statics/styles/drawer-scss.js +9 -9
- package/dist/cjs/ricos-modals/statics/styles/drawer-scss.js.map +1 -1
- package/dist/cjs/ricos-modals/statics/styles/fullscreen-scss.js +1 -1
- package/dist/cjs/ricos-modals/statics/styles/fullscreen-scss.js.map +1 -1
- package/dist/cjs/ricos-modals/statics/styles/popper-scss.js +3 -3
- package/dist/cjs/ricos-modals/statics/styles/popper-scss.js.map +1 -1
- package/dist/cjs/ricos-schema/next-schema/version.js +1 -1
- package/dist/cjs/ricos-schema/next-schema/version.js.map +1 -1
- package/dist/cjs/ricos-styles/statics/styles/style-presets-scss.js +4 -4
- package/dist/cjs/ricos-styles/statics/styles/style-presets-scss.js.map +1 -1
- package/dist/cjs/ricos-types/editor-types.js.map +1 -1
- package/dist/cjs/ricos-types/next/editor-types.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js +3 -3
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js +3 -3
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js +9 -9
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js +10 -10
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js +6 -6
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js +4 -4
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js +2 -2
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js +15 -15
- package/dist/cjs/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js +12 -12
- package/dist/cjs/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/statics/alignment-scss.js +16 -16
- package/dist/cjs/ricos-viewer-next/statics/alignment-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/statics/indentation-scss.js +7 -7
- package/dist/cjs/ricos-viewer-next/statics/indentation-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/statics/rich-content-viewer-scss.js +9 -9
- package/dist/cjs/ricos-viewer-next/statics/rich-content-viewer-scss.js.map +1 -1
- package/dist/cjs/ricos-viewer-next/statics/rtl-scss.js +2 -2
- package/dist/cjs/ricos-viewer-next/statics/rtl-scss.js.map +1 -1
- package/dist/cjs/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js +2 -2
- package/dist/cjs/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js.map +1 -1
- package/dist/cjs/tiptap-editor/components/rich-content-adapter.js +16 -4
- package/dist/cjs/tiptap-editor/components/rich-content-adapter.js.map +2 -2
- package/dist/cjs/tiptap-editor/consts.js +9 -9
- package/dist/cjs/tiptap-editor/consts.js.map +2 -2
- package/dist/cjs/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js +13 -13
- package/dist/cjs/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js.map +1 -1
- package/dist/cjs/tiptap-extensions/placeholder-scss.js +1 -1
- package/dist/cjs/tiptap-extensions/placeholder-scss.js.map +1 -1
- package/dist/cjs/tiptap-extensions/statics/styles-scss.js +4 -4
- package/dist/cjs/tiptap-extensions/statics/styles-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js +1 -1
- package/dist/cjs/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js +3 -3
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js +3 -3
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js +4 -4
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js +9 -9
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js +1 -1
- package/dist/cjs/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/UseSizeCalculator/use-size-calculator.js +3 -1
- package/dist/cjs/toolbars-v3/components/UseSizeCalculator/use-size-calculator.js.map +2 -2
- package/dist/cjs/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js +1 -1
- package/dist/cjs/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js +5 -5
- package/dist/cjs/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js +6 -6
- package/dist/cjs/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js.map +1 -1
- package/dist/cjs/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js +1 -1
- package/dist/cjs/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js.map +1 -1
- package/dist/cjs/ui-components/Components/Image-scss.js +1 -1
- package/dist/cjs/ui-components/Components/Image-scss.js.map +1 -1
- package/dist/cjs/ui-components/Components/double-loader-scss.js +4 -4
- package/dist/cjs/ui-components/Components/double-loader-scss.js.map +1 -1
- package/dist/cjs/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js +2 -2
- package/dist/cjs/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js.map +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js +13 -13
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js.map +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js.map +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js +2 -2
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js.map +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js +2 -2
- package/dist/cjs/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js.map +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/new-color-picker-scss.js +1 -1
- package/dist/cjs/ui-components/color-picker/new-color-picker/new-color-picker-scss.js.map +1 -1
- package/dist/cjs/ui-components/input-with-slider/input-with-slider-scss.js +1 -1
- package/dist/cjs/ui-components/input-with-slider/input-with-slider-scss.js.map +1 -1
- package/dist/cjs/ui-components/layout-background-loader/layout-background-loader-scss.js +3 -3
- package/dist/cjs/ui-components/layout-background-loader/layout-background-loader-scss.js.map +1 -1
- package/dist/cjs/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js +1 -1
- package/dist/cjs/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js.map +1 -1
- package/dist/cjs/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js +4 -4
- package/dist/cjs/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js.map +1 -1
- package/dist/cjs/ui-components/panel/panel-scss.js +2 -2
- package/dist/cjs/ui-components/panel/panel-scss.js.map +1 -1
- package/dist/cjs/ui-components/panel-header/panel-header-scss.js +1 -1
- package/dist/cjs/ui-components/panel-header/panel-header-scss.js.map +1 -1
- package/dist/cjs/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js +1 -1
- package/dist/cjs/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js.map +1 -1
- package/dist/cjs/ui-components/statics/styles/generic-error-scss.js +1 -1
- package/dist/cjs/ui-components/statics/styles/generic-error-scss.js.map +1 -1
- package/dist/cjs/ui-components/statics/styles/loaders-scss.js +8 -8
- package/dist/cjs/ui-components/statics/styles/loaders-scss.js.map +1 -1
- package/dist/cjs/ui-components/statics/styles/media-item-error-msg-scss.js +3 -3
- package/dist/cjs/ui-components/statics/styles/media-item-error-msg-scss.js.map +1 -1
- package/dist/cjs/ui-components/statics/styles/slider-scss.js +5 -5
- package/dist/cjs/ui-components/statics/styles/slider-scss.js.map +1 -1
- package/dist/cjs/ui-components/thumbnail-picker/thumbnail-picker-scss.js +1 -1
- package/dist/cjs/ui-components/thumbnail-picker/thumbnail-picker-scss.js.map +1 -1
- package/dist/cjs/ui-components/wixel-assistant/assistant-timeline-scss.js +16 -16
- package/dist/cjs/ui-components/wixel-assistant/assistant-timeline-scss.js.map +1 -1
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_cs.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_cs.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_da.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_da.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_de.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_de.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_es.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_es.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_fr.json +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_fr.json.js +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_hi.json +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_hi.json.js +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_id.json +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_id.json.js +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_it.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_it.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_ja.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_ja.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_ko.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_ko.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_nl.json +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_nl.json.js +6 -6
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_no.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_no.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_pl.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_pl.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_pt.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_pt.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_ru.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_ru.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_sv.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_sv.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_th.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_th.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_tr.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_tr.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_uk.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_uk.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_vi.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_vi.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_zh.json +7 -7
- package/dist/cjs/wix-rich-content-common/statics/locale/messages_zh.json.js +7 -7
- package/dist/cjs/wix-rich-content-common/statics/styles/fonts-scss.js +1 -1
- package/dist/cjs/wix-rich-content-common/statics/styles/fonts-scss.js.map +1 -1
- package/dist/cjs/wix-rich-content-common/statics/styles/general-scss.js +11 -11
- package/dist/cjs/wix-rich-content-common/statics/styles/general-scss.js.map +1 -1
- package/dist/docs/api-docs-reference.cjs +1 -1
- package/dist/docs/api-docs-reference.js +1 -1
- package/dist/docs/api-docs.md +2 -0
- package/dist/docs/sections/editor.md +2 -0
- package/dist/es/_shared/dropdown-modal/dropdown-modal-scss.js +5 -5
- package/dist/es/_shared/dropdown-modal/dropdown-modal-scss.js.map +1 -1
- package/dist/es/_shared/figure/add-caption-button-scss.js +11 -11
- package/dist/es/_shared/figure/add-caption-button-scss.js.map +1 -1
- package/dist/es/_shared/figure/viewer-caption-scss.js +2 -2
- package/dist/es/_shared/figure/viewer-caption-scss.js.map +1 -1
- package/dist/es/_shared/figure/viewer-figure-scss.js +1 -1
- package/dist/es/_shared/figure/viewer-figure-scss.js.map +1 -1
- package/dist/es/_shared/get-pos-after-parent-container.js +14 -0
- package/dist/es/_shared/get-pos-after-parent-container.js.map +7 -0
- package/dist/es/_shared/list-item-divider/list-item-divider-scss.js +3 -3
- package/dist/es/_shared/list-item-divider/list-item-divider-scss.js.map +1 -1
- package/dist/es/_shared/list-item-select/list-item-select-scss.js +4 -4
- package/dist/es/_shared/list-item-select/list-item-select-scss.js.map +1 -1
- package/dist/es/_shared/list-item-toggle/list-item-toggle-scss.js +5 -5
- package/dist/es/_shared/list-item-toggle/list-item-toggle-scss.js.map +1 -1
- package/dist/es/_shared/overlay-hoc/overlay-hoc-scss.js +3 -3
- package/dist/es/_shared/overlay-hoc/overlay-hoc-scss.js.map +1 -1
- package/dist/es/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js +4 -4
- package/dist/es/_shared/plugin-toolbar/separator/toolbar-button-separator-scss.js.map +1 -1
- package/dist/es/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js +4 -4
- package/dist/es/_shared/plugin-toolbar/url-link-button/url-link-button-scss.js.map +1 -1
- package/dist/es/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js +9 -9
- package/dist/es/_shared/prompt-input-area/attachment-bar/attachment-bar-scss.js.map +1 -1
- package/dist/es/_shared/prompt-input-area/prompt-input-area-scss.js +15 -15
- package/dist/es/_shared/prompt-input-area/prompt-input-area-scss.js.map +1 -1
- package/dist/es/_shared/prompt-input-area/widget-prompt-input-area-scss.js +10 -10
- package/dist/es/_shared/prompt-input-area/widget-prompt-input-area-scss.js.map +1 -1
- package/dist/es/_shared/shape-select-modal/shape-select-modal-content-scss.js +9 -9
- package/dist/es/_shared/shape-select-modal/shape-select-modal-content-scss.js.map +1 -1
- package/dist/es/_shared/shape-view-renderer/shape-view-renderer-scss.js +4 -4
- package/dist/es/_shared/shape-view-renderer/shape-view-renderer-scss.js.map +1 -1
- package/dist/es/_shared/toolbar-button/toolbar-button-scss.js +5 -5
- package/dist/es/_shared/toolbar-button/toolbar-button-scss.js.map +1 -1
- package/dist/es/bundled-dependencies/ai-assistant-avatar.js +6 -6
- package/dist/es/bundled-dependencies/ai-assistant-avatar.js.map +1 -1
- package/dist/es/editor-common/statics/locale/messages_cs.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_cs.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_da.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_da.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_de.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_de.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_es.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_es.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_fr.json +6 -6
- package/dist/es/editor-common/statics/locale/messages_fr.json.js +6 -6
- package/dist/es/editor-common/statics/locale/messages_hi.json +6 -6
- package/dist/es/editor-common/statics/locale/messages_hi.json.js +6 -6
- package/dist/es/editor-common/statics/locale/messages_id.json +6 -6
- package/dist/es/editor-common/statics/locale/messages_id.json.js +6 -6
- package/dist/es/editor-common/statics/locale/messages_it.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_it.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_ja.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_ja.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_ko.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_ko.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_nl.json +6 -6
- package/dist/es/editor-common/statics/locale/messages_nl.json.js +6 -6
- package/dist/es/editor-common/statics/locale/messages_no.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_no.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_pl.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_pl.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_pt.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_pt.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_ru.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_ru.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_sv.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_sv.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_th.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_th.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_tr.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_tr.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_uk.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_uk.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_vi.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_vi.json.js +7 -7
- package/dist/es/editor-common/statics/locale/messages_zh.json +7 -7
- package/dist/es/editor-common/statics/locale/messages_zh.json.js +7 -7
- package/dist/es/editor-common/statics/styles/general-scss.js +20 -20
- package/dist/es/editor-common/statics/styles/general-scss.js.map +1 -1
- package/dist/es/index.js.map +2 -2
- package/dist/es/plugin-ai/ai-content-modal/ai-content-modal-scss.js +10 -10
- package/dist/es/plugin-ai/ai-content-modal/ai-content-modal-scss.js.map +1 -1
- package/dist/es/plugin-ai/ai-content-modal/feed/feed-scss.js +4 -4
- package/dist/es/plugin-ai/ai-content-modal/feed/feed-scss.js.map +1 -1
- package/dist/es/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js +3 -3
- package/dist/es/plugin-ai/ai-content-modal/no-selection-message/no-selection-message-scss.js.map +1 -1
- package/dist/es/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js +4 -4
- package/dist/es/plugin-ai/ai-content-modal/text-cursor/text-cursor-scss.js.map +1 -1
- package/dist/es/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js +7 -7
- package/dist/es/plugin-ai/ai-content-modal/textual-prompt-input-area/textual-prompt-input-area-scss.js.map +1 -1
- package/dist/es/plugin-ai/ai-image-modal/ai-image-modal-scss.js +8 -8
- package/dist/es/plugin-ai/ai-image-modal/ai-image-modal-scss.js.map +1 -1
- package/dist/es/plugin-ai/ai-plus-button/ai-plus-button-scss.js +3 -3
- package/dist/es/plugin-ai/ai-plus-button/ai-plus-button-scss.js.map +1 -1
- package/dist/es/plugin-ai/error-message/error-message-scss.js +3 -3
- package/dist/es/plugin-ai/error-message/error-message-scss.js.map +1 -1
- package/dist/es/plugin-ai/prompt-input-area/prompt-input-area-scss.js +6 -6
- package/dist/es/plugin-ai/prompt-input-area/prompt-input-area-scss.js.map +1 -1
- package/dist/es/plugin-ai/toolbar/toolbar-button-scss.js +4 -4
- package/dist/es/plugin-ai/toolbar/toolbar-button-scss.js.map +1 -1
- package/dist/es/plugin-animation/animation-panel-scss.js +11 -11
- package/dist/es/plugin-animation/animation-panel-scss.js.map +1 -1
- package/dist/es/plugin-audio/statics/styles/audio-embed-scss.js +3 -3
- package/dist/es/plugin-audio/statics/styles/audio-embed-scss.js.map +1 -1
- package/dist/es/plugin-audio/statics/styles/audio-scss.js +21 -21
- package/dist/es/plugin-audio/statics/styles/audio-scss.js.map +1 -1
- package/dist/es/plugin-audio/statics/styles/icon-button-scss.js +1 -1
- package/dist/es/plugin-audio/statics/styles/icon-button-scss.js.map +1 -1
- package/dist/es/plugin-audio/statics/styles/settings-modal-scss.js +3 -3
- package/dist/es/plugin-audio/statics/styles/settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-audio/statics/styles/sound-control-scss.js +2 -2
- package/dist/es/plugin-audio/statics/styles/sound-control-scss.js.map +1 -1
- package/dist/es/plugin-audio/viewer-styles-inject.js +4 -4
- package/dist/es/plugin-block-drag-handle/styles-scss.js +10 -10
- package/dist/es/plugin-block-drag-handle/styles-scss.js.map +1 -1
- package/dist/es/plugin-button/statics/styles/button-input-modal-scss.js +4 -4
- package/dist/es/plugin-button/statics/styles/button-input-modal-scss.js.map +1 -1
- package/dist/es/plugin-button/statics/styles/button-text-field-scss.js +3 -3
- package/dist/es/plugin-button/statics/styles/button-text-field-scss.js.map +1 -1
- package/dist/es/plugin-button/statics/styles/default-styles-scss.js +5 -5
- package/dist/es/plugin-button/statics/styles/default-styles-scss.js.map +1 -1
- package/dist/es/plugin-button/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-card/card-scss.js +19 -19
- package/dist/es/plugin-card/card-scss.js.map +1 -1
- package/dist/es/plugin-card/card-viewer-scss.js +6 -6
- package/dist/es/plugin-card/card-viewer-scss.js.map +1 -1
- package/dist/es/plugin-card/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-code-block/statics/styles/code-block-scss.js +8 -8
- package/dist/es/plugin-code-block/statics/styles/code-block-scss.js.map +1 -1
- package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js +6 -6
- package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-component-scss.js.map +1 -1
- package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js +18 -18
- package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-pair-scss.js.map +1 -1
- package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js +4 -4
- package/dist/es/plugin-collapsible-list/statics/styles/collapsible-list-settings-scss.js.map +1 -1
- package/dist/es/plugin-collapsible-list/statics/styles/new-pair-button-scss.js +5 -5
- package/dist/es/plugin-collapsible-list/statics/styles/new-pair-button-scss.js.map +1 -1
- package/dist/es/plugin-collapsible-list/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-divider/statics/styles/divider-viewer-scss.js +13 -13
- package/dist/es/plugin-divider/statics/styles/divider-viewer-scss.js.map +1 -1
- package/dist/es/plugin-divider/toolbar/modals/divider-design-panel-scss.js +3 -3
- package/dist/es/plugin-divider/toolbar/modals/divider-design-panel-scss.js.map +1 -1
- package/dist/es/plugin-divider/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-emoji/modals/emoji-suggestions-modal-scss.js +3 -3
- package/dist/es/plugin-emoji/modals/emoji-suggestions-modal-scss.js.map +1 -1
- package/dist/es/plugin-figure/tiptap/caption-scss.js +5 -5
- package/dist/es/plugin-figure/tiptap/caption-scss.js.map +1 -1
- package/dist/es/plugin-figure/tiptap/figure-scss.js +5 -5
- package/dist/es/plugin-figure/tiptap/figure-scss.js.map +1 -1
- package/dist/es/plugin-file-upload/statics/styles/file-upload-viewer-scss.js +15 -15
- package/dist/es/plugin-file-upload/statics/styles/file-upload-viewer-scss.js.map +1 -1
- package/dist/es/plugin-file-upload/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-gallery/modals/settings/gallery-settings-modal-scss.js +5 -5
- package/dist/es/plugin-gallery/modals/settings/gallery-settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js +8 -8
- package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/image-ratio-control-scss.js.map +1 -1
- package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js +7 -7
- package/dist/es/plugin-gallery/modals/settings/layout-settings/layout-controls-section/thumbnail-alignment-control-scss.js.map +1 -1
- package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js +3 -3
- package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-item-scss.js.map +1 -1
- package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js +5 -5
- package/dist/es/plugin-gallery/modals/settings/media-settings/media-list/sortable-list-scss.js.map +1 -1
- package/dist/es/plugin-gallery/statics/styles/gallery-component-scss.js +3 -3
- package/dist/es/plugin-gallery/statics/styles/gallery-component-scss.js.map +1 -1
- package/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js +21 -21
- package/dist/es/plugin-gallery/statics/styles/gallery-media-scss.js.map +1 -1
- package/dist/es/plugin-gallery/statics/styles/viewer-scss.js +1 -1
- package/dist/es/plugin-gallery/statics/styles/viewer-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-collage-scss.js +5 -5
- package/dist/es/plugin-gallery/viewer/layout-collage-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-column-scss.js +4 -4
- package/dist/es/plugin-gallery/viewer/layout-column-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-fullsize-scss.js +4 -4
- package/dist/es/plugin-gallery/viewer/layout-fullsize-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-grid-scss.js +2 -2
- package/dist/es/plugin-gallery/viewer/layout-grid-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-masonry-scss.js +7 -7
- package/dist/es/plugin-gallery/viewer/layout-masonry-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-panorama-scss.js +1 -1
- package/dist/es/plugin-gallery/viewer/layout-panorama-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-slider-scss.js +6 -6
- package/dist/es/plugin-gallery/viewer/layout-slider-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer/layout-thumbnail-scss.js +11 -11
- package/dist/es/plugin-gallery/viewer/layout-thumbnail-scss.js.map +1 -1
- package/dist/es/plugin-gallery/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-giphy/components/giphy-selector-scss.js +11 -11
- package/dist/es/plugin-giphy/components/giphy-selector-scss.js.map +1 -1
- package/dist/es/plugin-giphy/viewer/giphy-viewer-scss.js +4 -4
- package/dist/es/plugin-giphy/viewer/giphy-viewer-scss.js.map +1 -1
- package/dist/es/plugin-giphy/viewer/play-icon-scss.js +2 -2
- package/dist/es/plugin-giphy/viewer/play-icon-scss.js.map +1 -1
- package/dist/es/plugin-giphy/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-hashtag/statics/hashtag-scss.js +2 -2
- package/dist/es/plugin-hashtag/statics/hashtag-scss.js.map +1 -1
- package/dist/es/plugin-hashtag/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-headings/dropdown/headings-dropdown-scss.js +9 -9
- package/dist/es/plugin-headings/dropdown/headings-dropdown-scss.js.map +1 -1
- package/dist/es/plugin-html/statics/styles/HtmlComponent-scss.js +2 -2
- package/dist/es/plugin-html/statics/styles/HtmlComponent-scss.js.map +1 -1
- package/dist/es/plugin-html/statics/styles/Iframe-scss.js +1 -1
- package/dist/es/plugin-html/statics/styles/Iframe-scss.js.map +1 -1
- package/dist/es/plugin-html/tiptap/ai-widget-scss.js +4 -4
- package/dist/es/plugin-html/tiptap/ai-widget-scss.js.map +1 -1
- package/dist/es/plugin-html/tiptap/loader-scss.js +11 -11
- package/dist/es/plugin-html/tiptap/loader-scss.js.map +1 -1
- package/dist/es/plugin-html/tiptap/preset-bar/preset-bar-scss.js +4 -4
- package/dist/es/plugin-html/tiptap/preset-bar/preset-bar-scss.js.map +1 -1
- package/dist/es/plugin-html/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-image/components/corner-radius-handles-scss.js +6 -6
- package/dist/es/plugin-image/components/corner-radius-handles-scss.js.map +1 -1
- package/dist/es/plugin-image/components/crop-edge-handles-scss.js +3 -3
- package/dist/es/plugin-image/components/crop-edge-handles-scss.js.map +1 -1
- package/dist/es/plugin-image/crop-overlay/crop-overlay-scss.js +16 -16
- package/dist/es/plugin-image/crop-overlay/crop-overlay-scss.js.map +1 -1
- package/dist/es/plugin-image/statics/styles/image-viewer-scss.js +20 -20
- package/dist/es/plugin-image/statics/styles/image-viewer-scss.js.map +1 -1
- package/dist/es/plugin-image/statics/styles/settings-modal-scss.js +3 -3
- package/dist/es/plugin-image/statics/styles/settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-image/toolbar/shape-crop-modal-scss.js +6 -6
- package/dist/es/plugin-image/toolbar/shape-crop-modal-scss.js.map +1 -1
- package/dist/es/plugin-image/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-inline-ai/ai-selection-tooltip-scss.js +12 -12
- package/dist/es/plugin-inline-ai/ai-selection-tooltip-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/aria-avatar-row-scss.js +3 -3
- package/dist/es/plugin-inline-ai/aria-avatar-row-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/aria-surface-row-scss.js +6 -6
- package/dist/es/plugin-inline-ai/aria-surface-row-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/html-placeholder-scss.js +5 -5
- package/dist/es/plugin-inline-ai/html-placeholder-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/modal-scss.js +11 -11
- package/dist/es/plugin-inline-ai/modal-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/pending-widget-placeholder-scss.js +14 -14
- package/dist/es/plugin-inline-ai/pending-widget-placeholder-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/spinner-scss.js +4 -4
- package/dist/es/plugin-inline-ai/spinner-scss.js.map +1 -1
- package/dist/es/plugin-inline-ai/toolbar/toolbar-button-scss.js +4 -4
- package/dist/es/plugin-inline-ai/toolbar/toolbar-button-scss.js.map +1 -1
- package/dist/es/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js +3 -3
- package/dist/es/plugin-line-spacing/custom-spacing-editor-modal/custom-spacing-editor-modal-scss.js.map +1 -1
- package/dist/es/plugin-link/statics/link-viewer-scss.js +4 -4
- package/dist/es/plugin-link/statics/link-viewer-scss.js.map +1 -1
- package/dist/es/plugin-link/toolbar/anchor-link-button-scss.js +3 -3
- package/dist/es/plugin-link/toolbar/anchor-link-button-scss.js.map +1 -1
- package/dist/es/plugin-link/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-link-preview/statics/styles/insert-modal-scss.js +3 -3
- package/dist/es/plugin-link-preview/statics/styles/insert-modal-scss.js.map +1 -1
- package/dist/es/plugin-link-preview/statics/styles/link-preview-scss.js +18 -18
- package/dist/es/plugin-link-preview/statics/styles/link-preview-scss.js.map +1 -1
- package/dist/es/plugin-link-preview/statics/styles/settings-modal-scss.js +3 -3
- package/dist/es/plugin-link-preview/statics/styles/settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-link-preview/viewer-styles-inject.js +3 -3
- package/dist/es/plugin-mentions/statics/mention-list-scss.js +6 -6
- package/dist/es/plugin-mentions/statics/mention-list-scss.js.map +1 -1
- package/dist/es/plugin-mentions/statics/mentions-scss.js +4 -4
- package/dist/es/plugin-mentions/statics/mentions-scss.js.map +1 -1
- package/dist/es/plugin-mentions/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-paywall/paywall-fallback-scss.js +1 -1
- package/dist/es/plugin-paywall/paywall-fallback-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/cell-accessory-scss.js +22 -22
- package/dist/es/plugin-smart-block/components/cell-accessory-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/cell-quote-glyph-scss.js +3 -3
- package/dist/es/plugin-smart-block/components/cell-quote-glyph-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/cell-star-rating-scss.js +4 -4
- package/dist/es/plugin-smart-block/components/cell-star-rating-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/cell-stat-scss.js +20 -20
- package/dist/es/plugin-smart-block/components/cell-stat-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/circle-donut-scss.js +7 -7
- package/dist/es/plugin-smart-block/components/circle-donut-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/shape-overlay-scss.js +3 -3
- package/dist/es/plugin-smart-block/components/shape-overlay-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/smart-block-view-scss.js +50 -50
- package/dist/es/plugin-smart-block/components/smart-block-view-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/components/stars-scss.js +8 -8
- package/dist/es/plugin-smart-block/components/stars-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/modals/variant-picker-scss.js +9 -9
- package/dist/es/plugin-smart-block/modals/variant-picker-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/tiptap/smart-block-editor-scss.js +15 -15
- package/dist/es/plugin-smart-block/tiptap/smart-block-editor-scss.js.map +1 -1
- package/dist/es/plugin-smart-block/tiptap/smart-block-extension.js +2 -2
- package/dist/es/plugin-smart-block/tiptap/smart-block-extension.js.map +2 -2
- package/dist/es/plugin-smart-block/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-social-polls/components/image-upload/image-upload-scss.js +9 -9
- package/dist/es/plugin-social-polls/components/image-upload/image-upload-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/insert-modal/insert-modal-scss.js +3 -3
- package/dist/es/plugin-social-polls/components/insert-modal/insert-modal-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/poll-header/poll-header-scss.js +3 -3
- package/dist/es/plugin-social-polls/components/poll-header/poll-header-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/poll-option/option-scss.js +23 -23
- package/dist/es/plugin-social-polls/components/poll-option/option-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/poll-option/webview/option-webview-scss.js +24 -24
- package/dist/es/plugin-social-polls/components/poll-option/webview/option-webview-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/poll-scss.js +19 -19
- package/dist/es/plugin-social-polls/components/poll-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/settings-modal/settings-modal-scss.js +4 -4
- package/dist/es/plugin-social-polls/components/settings-modal/settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/text-field/text-field-scss.js +12 -12
- package/dist/es/plugin-social-polls/components/text-field/text-field-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/components/voted-users/voted-users-scss.js +20 -20
- package/dist/es/plugin-social-polls/components/voted-users/voted-users-scss.js.map +1 -1
- package/dist/es/plugin-social-polls/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-spoiler/statics/styles/spoiler-scss.js +18 -18
- package/dist/es/plugin-spoiler/statics/styles/spoiler-scss.js.map +1 -1
- package/dist/es/plugin-spoiler/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-table/modals/table-grid-selector-scss.js +7 -7
- package/dist/es/plugin-table/modals/table-grid-selector-scss.js.map +1 -1
- package/dist/es/plugin-table/statics/styles/cell-scss.js +15 -15
- package/dist/es/plugin-table/statics/styles/cell-scss.js.map +1 -1
- package/dist/es/plugin-table/statics/styles/resizer-scss.js +20 -20
- package/dist/es/plugin-table/statics/styles/resizer-scss.js.map +1 -1
- package/dist/es/plugin-table/statics/styles/table-settings-modal-scss.js +3 -3
- package/dist/es/plugin-table/statics/styles/table-settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-table/statics/styles/table-viewer-scss.js +6 -6
- package/dist/es/plugin-table/statics/styles/table-viewer-scss.js.map +1 -1
- package/dist/es/plugin-table/tiptap/decorations/tableHandles-scss.js +11 -11
- package/dist/es/plugin-table/tiptap/decorations/tableHandles-scss.js.map +1 -1
- package/dist/es/plugin-table/tiptap/plugins/table-scss.js +35 -35
- package/dist/es/plugin-table/tiptap/plugins/table-scss.js.map +1 -1
- package/dist/es/plugin-table/toolbar/modals/border-scope-selector-scss.js +4 -4
- package/dist/es/plugin-table/toolbar/modals/border-scope-selector-scss.js.map +1 -1
- package/dist/es/plugin-table/viewer-styles-inject.js +4 -4
- package/dist/es/plugin-text-color/text-button-color-scss.js +4 -4
- package/dist/es/plugin-text-color/text-button-color-scss.js.map +1 -1
- package/dist/es/plugin-toc/toc-view-scss.js +2 -2
- package/dist/es/plugin-toc/toc-view-scss.js.map +1 -1
- package/dist/es/plugin-toc/viewer-styles-inject.js +2 -2
- package/dist/es/plugin-vertical-embed/components/Ribbon-scss.js +3 -3
- package/dist/es/plugin-vertical-embed/components/Ribbon-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/components/card-content-scss.js +23 -23
- package/dist/es/plugin-vertical-embed/components/card-content-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/components/card-scss.js +19 -19
- package/dist/es/plugin-vertical-embed/components/card-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/components/description-scss.js +2 -2
- package/dist/es/plugin-vertical-embed/components/description-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/modals/settings-modal-scss.js +4 -4
- package/dist/es/plugin-vertical-embed/modals/settings-modal-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/tiptap/component-scss.js +12 -12
- package/dist/es/plugin-vertical-embed/tiptap/component-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/toolbar/items-list-scss.js +3 -3
- package/dist/es/plugin-vertical-embed/toolbar/items-list-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js +6 -6
- package/dist/es/plugin-vertical-embed/viewer/vertical-embed-viewer-scss.js.map +1 -1
- package/dist/es/plugin-vertical-embed/viewer-styles-inject.js +3 -3
- package/dist/es/plugin-video/statics/styles/default-video-styles-scss.js +10 -10
- package/dist/es/plugin-video/statics/styles/default-video-styles-scss.js.map +1 -1
- package/dist/es/plugin-video/statics/styles/video-viewer-scss.js +3 -3
- package/dist/es/plugin-video/statics/styles/video-viewer-scss.js.map +1 -1
- package/dist/es/plugin-video/toolbar/embed-video-scss.js +3 -3
- package/dist/es/plugin-video/toolbar/embed-video-scss.js.map +1 -1
- package/dist/es/plugin-video/viewer-styles-inject.js +2 -2
- package/dist/es/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js +3 -3
- package/dist/es/ricos-common-plugins/font-size/dropdown/font-size-dropdown-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js +10 -10
- package/dist/es/ricos-common-plugins/gap-spacer/gap-spacer-component/gap-spacer-styles-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/layout/layouts-scss.js +35 -35
- package/dist/es/ricos-common-plugins/layout/layouts-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js +4 -4
- package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-panel-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js +6 -6
- package/dist/es/ricos-common-plugins/layout/section-dividers/section-dividers-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/quick-actions/modal/modal-scss.js +4 -4
- package/dist/es/ricos-common-plugins/quick-actions/modal/modal-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/statics/styles-scss.js +20 -20
- package/dist/es/ricos-common-plugins/statics/styles-scss.js.map +1 -1
- package/dist/es/ricos-common-plugins/title/headings-scss.js +10 -10
- package/dist/es/ricos-common-plugins/title/headings-scss.js.map +1 -1
- package/dist/es/ricos-editor/statics/styles/editor-styles-scss.js +11 -11
- package/dist/es/ricos-editor/statics/styles/editor-styles-scss.js.map +1 -1
- package/dist/es/ricos-editor/tiptap/ricos-editor.js +3 -0
- package/dist/es/ricos-editor/tiptap/ricos-editor.js.map +2 -2
- package/dist/es/ricos-modals/statics/styles/drawer-scss.js +11 -11
- package/dist/es/ricos-modals/statics/styles/drawer-scss.js.map +1 -1
- package/dist/es/ricos-modals/statics/styles/fullscreen-scss.js +3 -3
- package/dist/es/ricos-modals/statics/styles/fullscreen-scss.js.map +1 -1
- package/dist/es/ricos-modals/statics/styles/popper-scss.js +5 -5
- package/dist/es/ricos-modals/statics/styles/popper-scss.js.map +1 -1
- package/dist/es/ricos-schema/next-schema/version.js +1 -1
- package/dist/es/ricos-schema/next-schema/version.js.map +1 -1
- package/dist/es/ricos-styles/statics/styles/style-presets-scss.js +8 -8
- package/dist/es/ricos-styles/statics/styles/style-presets-scss.js.map +1 -1
- package/dist/es/ricos-types/editor-types.js.map +1 -1
- package/dist/es/ricos-types/next/editor-types.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js +3 -3
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/blockquote/blockquote-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js +3 -3
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/codeblock/codeblock-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js +9 -9
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/heading/heading-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js +10 -10
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/layout/layout-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js +6 -6
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/lists/lists-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js +4 -4
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/paragraph/paragraph-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js +2 -2
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/link-viewer-wrapper-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js +15 -15
- package/dist/es/ricos-viewer-next/ContentViewer/rericos/renderers/plugins/plugin-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js +14 -14
- package/dist/es/ricos-viewer-next/modals/fullscreen/fullscreen-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/statics/alignment-scss.js +16 -16
- package/dist/es/ricos-viewer-next/statics/alignment-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/statics/indentation-scss.js +7 -7
- package/dist/es/ricos-viewer-next/statics/indentation-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js +9 -9
- package/dist/es/ricos-viewer-next/statics/rich-content-viewer-scss.js.map +1 -1
- package/dist/es/ricos-viewer-next/statics/rtl-scss.js +2 -2
- package/dist/es/ricos-viewer-next/statics/rtl-scss.js.map +1 -1
- package/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js +4 -4
- package/dist/es/text-selection-toolbar/statics/styles/viewer-inline-toolbar-scss.js.map +1 -1
- package/dist/es/tiptap-editor/components/rich-content-adapter.js +17 -8
- package/dist/es/tiptap-editor/components/rich-content-adapter.js.map +2 -2
- package/dist/es/tiptap-editor/consts.js +9 -9
- package/dist/es/tiptap-editor/consts.js.map +2 -2
- package/dist/es/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js +15 -15
- package/dist/es/tiptap-editor/statics/styles/tiptap-editor-styles-scss.js.map +1 -1
- package/dist/es/tiptap-extensions/placeholder-scss.js +3 -3
- package/dist/es/tiptap-extensions/placeholder-scss.js.map +1 -1
- package/dist/es/tiptap-extensions/statics/styles-scss.js +6 -6
- package/dist/es/tiptap-extensions/statics/styles-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js +3 -3
- package/dist/es/toolbars-v3/components/InsertPluginToolbar/insert-plugin-toolbar-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js +5 -5
- package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/OverflownButtons-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js +5 -5
- package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbar-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js +6 -6
- package/dist/es/toolbars-v3/components/Toolbar/RicosDesktopToolbar/RicosDesktopToolbarWrapper-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js +11 -11
- package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/RicosMobileToolbar-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js +3 -3
- package/dist/es/toolbars-v3/components/Toolbar/RicosMobileToolbar/mobile-toolbar-overlay/mobile-toolbar-overlay-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/UseSizeCalculator/use-size-calculator.js +3 -1
- package/dist/es/toolbars-v3/components/UseSizeCalculator/use-size-calculator.js.map +2 -2
- package/dist/es/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js +5 -5
- package/dist/es/toolbars-v3/components/buttons/AddPluginMenuButtons/AddPluginMenuMobileButton-scss.js.map +1 -1
- package/dist/es/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js +7 -7
- package/dist/es/toolbars-v3/components/buttons/FontSizeButton/FontSizeButton-scss.js.map +1 -1
- package/dist/es/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js +8 -8
- package/dist/es/toolbars-v3/modals/FloatingPluginMenu/styles/floating-add-plugin-menu-scss.js.map +1 -1
- package/dist/es/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js +3 -3
- package/dist/es/toolbars-v3/ricos-toolbars/footer/FooterToolbar-scss.js.map +1 -1
- package/dist/es/ui-components/Components/Image-scss.js +3 -3
- package/dist/es/ui-components/Components/Image-scss.js.map +1 -1
- package/dist/es/ui-components/Components/double-loader-scss.js +6 -6
- package/dist/es/ui-components/Components/double-loader-scss.js.map +1 -1
- package/dist/es/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js +4 -4
- package/dist/es/ui-components/color-picker/button-color-swatches/button-color-swatches-scss.js.map +1 -1
- package/dist/es/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js +15 -15
- package/dist/es/ui-components/color-picker/new-color-picker/components/gradient-picker/gradient-picker-scss.js.map +1 -1
- package/dist/es/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js +3 -3
- package/dist/es/ui-components/color-picker/new-color-picker/components/new-color-swatches/new-color-swatches-scss.js.map +1 -1
- package/dist/es/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js +4 -4
- package/dist/es/ui-components/color-picker/new-color-picker/components/simple-color-picker/simple-color-picker-scss.js.map +1 -1
- package/dist/es/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js +4 -4
- package/dist/es/ui-components/color-picker/new-color-picker/components/single-color-swatch/single-color-swatch-scss.js.map +1 -1
- package/dist/es/ui-components/color-picker/new-color-picker/new-color-picker-scss.js +3 -3
- package/dist/es/ui-components/color-picker/new-color-picker/new-color-picker-scss.js.map +1 -1
- package/dist/es/ui-components/input-with-slider/input-with-slider-scss.js +3 -3
- package/dist/es/ui-components/input-with-slider/input-with-slider-scss.js.map +1 -1
- package/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js +5 -5
- package/dist/es/ui-components/layout-background-loader/layout-background-loader-scss.js.map +1 -1
- package/dist/es/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js +3 -3
- package/dist/es/ui-components/modal-layout/floating-layout/floating-desktop-layout-scss.js.map +1 -1
- package/dist/es/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js +6 -6
- package/dist/es/ui-components/modal-layout/fullscreen-mobile-layout/fullscreen-mobile-layout-scss.js.map +1 -1
- package/dist/es/ui-components/panel/panel-scss.js +4 -4
- package/dist/es/ui-components/panel/panel-scss.js.map +1 -1
- package/dist/es/ui-components/panel-header/panel-header-scss.js +3 -3
- package/dist/es/ui-components/panel-header/panel-header-scss.js.map +1 -1
- package/dist/es/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js +3 -3
- package/dist/es/ui-components/settings-panel-discard-modal/settings-panel-discard-modal-scss.js.map +1 -1
- package/dist/es/ui-components/statics/styles/generic-error-scss.js +3 -3
- package/dist/es/ui-components/statics/styles/generic-error-scss.js.map +1 -1
- package/dist/es/ui-components/statics/styles/loaders-scss.js +10 -10
- package/dist/es/ui-components/statics/styles/loaders-scss.js.map +1 -1
- package/dist/es/ui-components/statics/styles/media-item-error-msg-scss.js +5 -5
- package/dist/es/ui-components/statics/styles/media-item-error-msg-scss.js.map +1 -1
- package/dist/es/ui-components/statics/styles/slider-scss.js +9 -9
- package/dist/es/ui-components/statics/styles/slider-scss.js.map +1 -1
- package/dist/es/ui-components/thumbnail-picker/thumbnail-picker-scss.js +3 -3
- package/dist/es/ui-components/thumbnail-picker/thumbnail-picker-scss.js.map +1 -1
- package/dist/es/ui-components/wixel-assistant/assistant-timeline-scss.js +18 -18
- package/dist/es/ui-components/wixel-assistant/assistant-timeline-scss.js.map +1 -1
- package/dist/es/wix-rich-content-common/statics/locale/messages_cs.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_cs.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_da.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_da.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_de.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_de.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_es.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_es.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_fr.json +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_fr.json.js +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_hi.json +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_hi.json.js +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_id.json +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_id.json.js +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_it.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_it.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_ja.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_ja.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_ko.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_ko.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_nl.json +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_nl.json.js +6 -6
- package/dist/es/wix-rich-content-common/statics/locale/messages_no.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_no.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_pl.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_pl.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_pt.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_pt.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_ru.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_ru.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_sv.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_sv.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_th.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_th.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_tr.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_tr.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_uk.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_uk.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_vi.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_vi.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_zh.json +7 -7
- package/dist/es/wix-rich-content-common/statics/locale/messages_zh.json.js +7 -7
- package/dist/es/wix-rich-content-common/statics/styles/fonts-scss.js +3 -3
- package/dist/es/wix-rich-content-common/statics/styles/fonts-scss.js.map +1 -1
- package/dist/es/wix-rich-content-common/statics/styles/general-scss.js +13 -13
- package/dist/es/wix-rich-content-common/statics/styles/general-scss.js.map +1 -1
- package/dist/src/_shared/get-pos-after-parent-container.d.ts +3 -0
- package/dist/src/_shared/get-pos-after-parent-container.d.ts.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/ricos-editor/tiptap/ricos-editor.d.ts.map +1 -1
- package/dist/src/ricos-schema/next-schema/version.d.ts +1 -1
- package/dist/src/ricos-types/editor-types.d.ts +4 -0
- package/dist/src/ricos-types/editor-types.d.ts.map +1 -1
- package/dist/src/ricos-types/next/editor-types.d.ts +4 -0
- package/dist/src/ricos-types/next/editor-types.d.ts.map +1 -1
- package/dist/src/tiptap-editor/components/rich-content-adapter.d.ts +2 -0
- package/dist/src/tiptap-editor/components/rich-content-adapter.d.ts.map +1 -1
- package/dist/src/tiptap-editor/consts.d.ts +9 -9
- package/dist/src/toolbars-v3/components/UseSizeCalculator/use-size-calculator.d.ts.map +1 -1
- package/dist/src/toolbars-v3/components/UseSizeCalculator/use-size-calculator.spec.d.ts +2 -0
- package/dist/src/toolbars-v3/components/UseSizeCalculator/use-size-calculator.spec.d.ts.map +1 -0
- package/generated/public.d.ts +4 -0
- package/package.json +3 -3
- package/dist/cjs/_shared/get-pos-after-parent-layout.js.map +0 -7
- package/dist/es/_shared/get-pos-after-parent-layout.js +0 -13
- package/dist/es/_shared/get-pos-after-parent-layout.js.map +0 -7
- package/dist/src/_shared/get-pos-after-parent-layout.d.ts +0 -3
- package/dist/src/_shared/get-pos-after-parent-layout.d.ts.map +0 -1
|
@@ -22,25 +22,25 @@ __export(cell_stat_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(cell_stat_exports);
|
|
24
24
|
var cell_stat_default = {
|
|
25
|
-
"cellStatBar": "
|
|
26
|
-
"cellStatBarProgress": "
|
|
27
|
-
"cellStatBarTrack": "
|
|
28
|
-
"cellStatBarFill": "
|
|
29
|
-
"cellStatBarValue": "
|
|
30
|
-
"cellStatCircle": "
|
|
31
|
-
"cellStatCircleProgress": "
|
|
32
|
-
"cellStatCircleSvg": "
|
|
33
|
-
"cellStatCircleTrack": "
|
|
34
|
-
"cellStatCircleFill": "
|
|
35
|
-
"cellStatCircleValue": "
|
|
36
|
-
"cellStatValue": "
|
|
37
|
-
"cellStatBarValueText": "
|
|
38
|
-
"cellStatCircleValueText": "
|
|
39
|
-
"cellStatStats": "
|
|
40
|
-
"cellStatStatsValueText": "
|
|
41
|
-
"cellStatStatsValueInput": "
|
|
42
|
-
"cellStatValueInput": "
|
|
43
|
-
"cellStatBarValueInput": "
|
|
44
|
-
"cellStatCircleValueInput": "
|
|
25
|
+
"cellStatBar": "_6HTDf",
|
|
26
|
+
"cellStatBarProgress": "_4k4MD",
|
|
27
|
+
"cellStatBarTrack": "v9uTc",
|
|
28
|
+
"cellStatBarFill": "nVkXq",
|
|
29
|
+
"cellStatBarValue": "_26HGY",
|
|
30
|
+
"cellStatCircle": "lxe9P",
|
|
31
|
+
"cellStatCircleProgress": "LOWWF",
|
|
32
|
+
"cellStatCircleSvg": "A5MaR",
|
|
33
|
+
"cellStatCircleTrack": "W82eA",
|
|
34
|
+
"cellStatCircleFill": "Jtuxj",
|
|
35
|
+
"cellStatCircleValue": "f3-ud",
|
|
36
|
+
"cellStatValue": "_31CpZ",
|
|
37
|
+
"cellStatBarValueText": "BxkyG",
|
|
38
|
+
"cellStatCircleValueText": "-rfmM",
|
|
39
|
+
"cellStatStats": "_5L0g8",
|
|
40
|
+
"cellStatStatsValueText": "EMYU1",
|
|
41
|
+
"cellStatStatsValueInput": "-umje",
|
|
42
|
+
"cellStatValueInput": "RL5Vv",
|
|
43
|
+
"cellStatBarValueInput": "_02Udp",
|
|
44
|
+
"cellStatCircleValueInput": "EmKlJ"
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=cell-stat-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/components/cell-stat.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"cellStatBar\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"cellStatBar\": \"_6HTDf\",\n \"cellStatBarProgress\": \"_4k4MD\",\n \"cellStatBarTrack\": \"v9uTc\",\n \"cellStatBarFill\": \"nVkXq\",\n \"cellStatBarValue\": \"_26HGY\",\n \"cellStatCircle\": \"lxe9P\",\n \"cellStatCircleProgress\": \"LOWWF\",\n \"cellStatCircleSvg\": \"A5MaR\",\n \"cellStatCircleTrack\": \"W82eA\",\n \"cellStatCircleFill\": \"Jtuxj\",\n \"cellStatCircleValue\": \"f3-ud\",\n \"cellStatValue\": \"_31CpZ\",\n \"cellStatBarValueText\": \"BxkyG\",\n \"cellStatCircleValueText\": \"-rfmM\",\n \"cellStatStats\": \"_5L0g8\",\n \"cellStatStatsValueText\": \"EMYU1\",\n \"cellStatStatsValueInput\": \"-umje\",\n \"cellStatValueInput\": \"RL5Vv\",\n \"cellStatBarValueInput\": \"_02Udp\",\n \"cellStatCircleValueInput\": \"EmKlJ\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,oBAAQ;AAAA,EACb,eAAe;AAAA,EACf,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,kBAAkB;AAAA,EAClB,0BAA0B;AAAA,EAC1B,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,uBAAuB;AAAA,EACvB,iBAAiB;AAAA,EACjB,wBAAwB;AAAA,EACxB,2BAA2B;AAAA,EAC3B,iBAAiB;AAAA,EACjB,0BAA0B;AAAA,EAC1B,2BAA2B;AAAA,EAC3B,sBAAsB;AAAA,EACtB,yBAAyB;AAAA,EACzB,4BAA4B;AAC9B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,12 +22,12 @@ __export(circle_donut_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(circle_donut_exports);
|
|
24
24
|
var circle_donut_default = {
|
|
25
|
-
"circleDonut": "
|
|
26
|
-
"svg": "
|
|
27
|
-
"indicator": "
|
|
28
|
-
"indicatorNumber": "
|
|
29
|
-
"indicatorShape": "
|
|
30
|
-
"indicatorInteractive": "
|
|
31
|
-
"cellLabelAddOverlay": "
|
|
25
|
+
"circleDonut": "hilYF",
|
|
26
|
+
"svg": "_7zqXZ",
|
|
27
|
+
"indicator": "exun9",
|
|
28
|
+
"indicatorNumber": "P0WdJ",
|
|
29
|
+
"indicatorShape": "_6N1lx",
|
|
30
|
+
"indicatorInteractive": "SIoMf",
|
|
31
|
+
"cellLabelAddOverlay": "znaYv"
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=circle-donut-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/components/circle-donut.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"circleDonut\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"circleDonut\": \"hilYF\",\n \"svg\": \"_7zqXZ\",\n \"indicator\": \"exun9\",\n \"indicatorNumber\": \"P0WdJ\",\n \"indicatorShape\": \"_6N1lx\",\n \"indicatorInteractive\": \"SIoMf\",\n \"cellLabelAddOverlay\": \"znaYv\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,uBAAQ;AAAA,EACb,eAAe;AAAA,EACf,OAAO;AAAA,EACP,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,uBAAuB;AACzB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/components/shape-overlay.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"shapeOverlay\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"shapeOverlay\": \"ZlHFt\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,wBAAQ;AAAA,EACb,gBAAgB;AAClB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,55 +22,55 @@ __export(smart_block_view_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(smart_block_view_exports);
|
|
24
24
|
var smart_block_view_default = {
|
|
25
|
-
"fontElementMap": "
|
|
26
|
-
"smartBlockWrapper": "
|
|
27
|
-
"smartBlock": "
|
|
28
|
-
"smartBlockCell": "
|
|
29
|
-
"bulletCell": "
|
|
30
|
-
"smartBlockCellContent": "
|
|
31
|
-
"smallBullets": "
|
|
32
|
-
"solidBoxes": "
|
|
33
|
-
"solidJoinedBoxes": "
|
|
34
|
-
"sideLineText": "
|
|
35
|
-
"topLineText": "
|
|
36
|
-
"outlineBoxesWithTopCircle": "
|
|
37
|
-
"bigBullets": "
|
|
38
|
-
"arrowBullets": "
|
|
39
|
-
"processSteps": "
|
|
40
|
-
"alternatingBoxes": "
|
|
41
|
-
"timeline": "
|
|
42
|
-
"minimalTimeline": "
|
|
43
|
-
"pills": "
|
|
44
|
-
"pyramid": "
|
|
45
|
-
"verticalFunnel": "
|
|
46
|
-
"pyramidSlice": "
|
|
47
|
-
"verticalFunnelSlice": "
|
|
48
|
-
"pyramidInnerNumber": "
|
|
49
|
-
"pyramidInnerIcon": "
|
|
50
|
-
"pyramidOverlayPosition": "
|
|
51
|
-
"verticalFunnelInnerNumber": "
|
|
52
|
-
"verticalFunnelInnerIcon": "
|
|
53
|
-
"verticalFunnelOverlayPosition": "
|
|
54
|
-
"pyramidMobileSlice": "
|
|
55
|
-
"verticalFunnelMobileSlice": "
|
|
56
|
-
"pyramidMobileStack": "
|
|
57
|
-
"verticalFunnelMobileStack": "
|
|
58
|
-
"smartBlockMobileChip": "
|
|
59
|
-
"numberedBoxes": "
|
|
60
|
-
"stats": "
|
|
61
|
-
"barStats": "
|
|
62
|
-
"starRating": "
|
|
63
|
-
"quoteBoxes": "
|
|
64
|
-
"circleStats": "
|
|
65
|
-
"staircase": "
|
|
66
|
-
"circleInner": "
|
|
67
|
-
"circle": "
|
|
68
|
-
"staircaseBar": "
|
|
69
|
-
"staircaseMobileBar": "
|
|
70
|
-
"staircaseInnerNumber": "
|
|
71
|
-
"staircaseInnerIcon": "
|
|
72
|
-
"staircaseMobileStack": "
|
|
73
|
-
"circleBadge": "
|
|
74
|
-
"circleBadgeIcon": "
|
|
25
|
+
"fontElementMap": "e0HI-",
|
|
26
|
+
"smartBlockWrapper": "i4NSr",
|
|
27
|
+
"smartBlock": "_1u6f6",
|
|
28
|
+
"smartBlockCell": "DdhY-",
|
|
29
|
+
"bulletCell": "XhGgz",
|
|
30
|
+
"smartBlockCellContent": "NNUhT",
|
|
31
|
+
"smallBullets": "L9wc5 Jiw3J",
|
|
32
|
+
"solidBoxes": "Jiw3J",
|
|
33
|
+
"solidJoinedBoxes": "THN0g Jiw3J",
|
|
34
|
+
"sideLineText": "ZsH5B Jiw3J",
|
|
35
|
+
"topLineText": "StrcQ Jiw3J",
|
|
36
|
+
"outlineBoxesWithTopCircle": "OhSOf Jiw3J",
|
|
37
|
+
"bigBullets": "QDAw9 Jiw3J",
|
|
38
|
+
"arrowBullets": "_0FANl Jiw3J",
|
|
39
|
+
"processSteps": "xOF8A Jiw3J",
|
|
40
|
+
"alternatingBoxes": "NG4ta",
|
|
41
|
+
"timeline": "XGzGP",
|
|
42
|
+
"minimalTimeline": "YkZtd XGzGP",
|
|
43
|
+
"pills": "V6Vr1",
|
|
44
|
+
"pyramid": "F97Tf",
|
|
45
|
+
"verticalFunnel": "F8z3a",
|
|
46
|
+
"pyramidSlice": "_5UFpn",
|
|
47
|
+
"verticalFunnelSlice": "xnHGx",
|
|
48
|
+
"pyramidInnerNumber": "_658Sg",
|
|
49
|
+
"pyramidInnerIcon": "B-vw-",
|
|
50
|
+
"pyramidOverlayPosition": "AjYag",
|
|
51
|
+
"verticalFunnelInnerNumber": "dWM5T",
|
|
52
|
+
"verticalFunnelInnerIcon": "e0BXs",
|
|
53
|
+
"verticalFunnelOverlayPosition": "zpSaq",
|
|
54
|
+
"pyramidMobileSlice": "xtcyV _5UFpn",
|
|
55
|
+
"verticalFunnelMobileSlice": "zbJjk xnHGx",
|
|
56
|
+
"pyramidMobileStack": "GUU4i",
|
|
57
|
+
"verticalFunnelMobileStack": "GIfqg",
|
|
58
|
+
"smartBlockMobileChip": "_01TDa",
|
|
59
|
+
"numberedBoxes": "wEZAE Jiw3J",
|
|
60
|
+
"stats": "EGOiO",
|
|
61
|
+
"barStats": "_3rZRc EGOiO",
|
|
62
|
+
"starRating": "_9E1KO Jiw3J",
|
|
63
|
+
"quoteBoxes": "GwC6k Jiw3J",
|
|
64
|
+
"circleStats": "hUiVI",
|
|
65
|
+
"staircase": "UL6AF",
|
|
66
|
+
"circleInner": "_1N5z6",
|
|
67
|
+
"circle": "Arucl",
|
|
68
|
+
"staircaseBar": "pi-I8",
|
|
69
|
+
"staircaseMobileBar": "nqV8N",
|
|
70
|
+
"staircaseInnerNumber": "Dusrh",
|
|
71
|
+
"staircaseInnerIcon": "QnS2g",
|
|
72
|
+
"staircaseMobileStack": "DHmf9",
|
|
73
|
+
"circleBadge": "YyGAy",
|
|
74
|
+
"circleBadgeIcon": "h2Cco"
|
|
75
75
|
};
|
|
76
76
|
//# sourceMappingURL=smart-block-view-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/components/smart-block-view.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"fontElementMap\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"fontElementMap\": \"e0HI-\",\n \"smartBlockWrapper\": \"i4NSr\",\n \"smartBlock\": \"_1u6f6\",\n \"smartBlockCell\": \"DdhY-\",\n \"bulletCell\": \"XhGgz\",\n \"smartBlockCellContent\": \"NNUhT\",\n \"smallBullets\": \"L9wc5 Jiw3J\",\n \"solidBoxes\": \"Jiw3J\",\n \"solidJoinedBoxes\": \"THN0g Jiw3J\",\n \"sideLineText\": \"ZsH5B Jiw3J\",\n \"topLineText\": \"StrcQ Jiw3J\",\n \"outlineBoxesWithTopCircle\": \"OhSOf Jiw3J\",\n \"bigBullets\": \"QDAw9 Jiw3J\",\n \"arrowBullets\": \"_0FANl Jiw3J\",\n \"processSteps\": \"xOF8A Jiw3J\",\n \"alternatingBoxes\": \"NG4ta\",\n \"timeline\": \"XGzGP\",\n \"minimalTimeline\": \"YkZtd XGzGP\",\n \"pills\": \"V6Vr1\",\n \"pyramid\": \"F97Tf\",\n \"verticalFunnel\": \"F8z3a\",\n \"pyramidSlice\": \"_5UFpn\",\n \"verticalFunnelSlice\": \"xnHGx\",\n \"pyramidInnerNumber\": \"_658Sg\",\n \"pyramidInnerIcon\": \"B-vw-\",\n \"pyramidOverlayPosition\": \"AjYag\",\n \"verticalFunnelInnerNumber\": \"dWM5T\",\n \"verticalFunnelInnerIcon\": \"e0BXs\",\n \"verticalFunnelOverlayPosition\": \"zpSaq\",\n \"pyramidMobileSlice\": \"xtcyV _5UFpn\",\n \"verticalFunnelMobileSlice\": \"zbJjk xnHGx\",\n \"pyramidMobileStack\": \"GUU4i\",\n \"verticalFunnelMobileStack\": \"GIfqg\",\n \"smartBlockMobileChip\": \"_01TDa\",\n \"numberedBoxes\": \"wEZAE Jiw3J\",\n \"stats\": \"EGOiO\",\n \"barStats\": \"_3rZRc EGOiO\",\n \"starRating\": \"_9E1KO Jiw3J\",\n \"quoteBoxes\": \"GwC6k Jiw3J\",\n \"circleStats\": \"hUiVI\",\n \"staircase\": \"UL6AF\",\n \"circleInner\": \"_1N5z6\",\n \"circle\": \"Arucl\",\n \"staircaseBar\": \"pi-I8\",\n \"staircaseMobileBar\": \"nqV8N\",\n \"staircaseInnerNumber\": \"Dusrh\",\n \"staircaseInnerIcon\": \"QnS2g\",\n \"staircaseMobileStack\": \"DHmf9\",\n \"circleBadge\": \"YyGAy\",\n \"circleBadgeIcon\": \"h2Cco\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,2BAAQ;AAAA,EACb,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,yBAAyB;AAAA,EACzB,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,6BAA6B;AAAA,EAC7B,cAAc;AAAA,EACd,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,oBAAoB;AAAA,EACpB,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,WAAW;AAAA,EACX,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,uBAAuB;AAAA,EACvB,sBAAsB;AAAA,EACtB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,6BAA6B;AAAA,EAC7B,2BAA2B;AAAA,EAC3B,iCAAiC;AAAA,EACjC,sBAAsB;AAAA,EACtB,6BAA6B;AAAA,EAC7B,sBAAsB;AAAA,EACtB,6BAA6B;AAAA,EAC7B,wBAAwB;AAAA,EACxB,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AAAA,EACb,eAAe;AAAA,EACf,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,sBAAsB;AAAA,EACtB,wBAAwB;AAAA,EACxB,eAAe;AAAA,EACf,mBAAmB;AACrB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,13 +22,13 @@ __export(stars_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(stars_exports);
|
|
24
24
|
var stars_default = {
|
|
25
|
-
"root": "
|
|
26
|
-
"a11yLabel": "
|
|
27
|
-
"innerContainer": "
|
|
28
|
-
"full": "
|
|
29
|
-
"empty": "
|
|
30
|
-
"halfStarWrapper": "
|
|
31
|
-
"halfStarInnerWrapperStart": "
|
|
32
|
-
"halfStarInnerWrapperEnd": "
|
|
25
|
+
"root": "FI6dk",
|
|
26
|
+
"a11yLabel": "gRzAl",
|
|
27
|
+
"innerContainer": "_00Plf",
|
|
28
|
+
"full": "-jgdZ",
|
|
29
|
+
"empty": "oGuMB",
|
|
30
|
+
"halfStarWrapper": "b6Opt",
|
|
31
|
+
"halfStarInnerWrapperStart": "tUHg-",
|
|
32
|
+
"halfStarInnerWrapperEnd": "ByxXS"
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=stars-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/components/stars.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"root\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"root\": \"FI6dk\",\n \"a11yLabel\": \"gRzAl\",\n \"innerContainer\": \"_00Plf\",\n \"full\": \"-jgdZ\",\n \"empty\": \"oGuMB\",\n \"halfStarWrapper\": \"b6Opt\",\n \"halfStarInnerWrapperStart\": \"tUHg-\",\n \"halfStarInnerWrapperEnd\": \"ByxXS\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,gBAAQ;AAAA,EACb,QAAQ;AAAA,EACR,aAAa;AAAA,EACb,kBAAkB;AAAA,EAClB,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,mBAAmB;AAAA,EACnB,6BAA6B;AAAA,EAC7B,2BAA2B;AAC7B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,12 +22,12 @@ __export(variant_picker_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(variant_picker_exports);
|
|
24
24
|
var variant_picker_default = {
|
|
25
|
-
"variantContainer": "
|
|
26
|
-
"thumbnailItem": "
|
|
27
|
-
"thumbnail": "
|
|
28
|
-
"thumbnailContent": "
|
|
29
|
-
"viewerContainer": "
|
|
30
|
-
"viewerWrapper": "
|
|
31
|
-
"variantsBox": "
|
|
25
|
+
"variantContainer": "QG9FW",
|
|
26
|
+
"thumbnailItem": "Q-iIH",
|
|
27
|
+
"thumbnail": "f3mAD",
|
|
28
|
+
"thumbnailContent": "-q7E6",
|
|
29
|
+
"viewerContainer": "grf5F",
|
|
30
|
+
"viewerWrapper": "YH190",
|
|
31
|
+
"variantsBox": "fAcJ7"
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=variant-picker-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/modals/variant-picker.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"variantContainer\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"variantContainer\": \"QG9FW\",\n \"thumbnailItem\": \"Q-iIH\",\n \"thumbnail\": \"f3mAD\",\n \"thumbnailContent\": \"-q7E6\",\n \"viewerContainer\": \"grf5F\",\n \"viewerWrapper\": \"YH190\",\n \"variantsBox\": \"fAcJ7\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,yBAAQ;AAAA,EACb,oBAAoB;AAAA,EACpB,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,oBAAoB;AAAA,EACpB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,eAAe;AACjB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,18 +22,18 @@ __export(smart_block_editor_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(smart_block_editor_exports);
|
|
24
24
|
var smart_block_editor_default = {
|
|
25
|
-
"editorWrapper": "
|
|
26
|
-
"editorCell": "
|
|
27
|
-
"focusWithin": "
|
|
28
|
-
"smartBlockHandleWrapper": "
|
|
29
|
-
"selected": "
|
|
30
|
-
"cellHandleWrapper": "
|
|
31
|
-
"cellDragHandle": "
|
|
32
|
-
"cellFocusWithin": "
|
|
33
|
-
"cellSelected": "
|
|
34
|
-
"dropCursor": "
|
|
35
|
-
"smartBlockHandle": "
|
|
36
|
-
"addCellBar": "
|
|
37
|
-
"addCellBarButton": "
|
|
25
|
+
"editorWrapper": "edc-O",
|
|
26
|
+
"editorCell": "_0jD69",
|
|
27
|
+
"focusWithin": "tUrYo",
|
|
28
|
+
"smartBlockHandleWrapper": "_2wTOp",
|
|
29
|
+
"selected": "uUlTt",
|
|
30
|
+
"cellHandleWrapper": "Gy7Dw",
|
|
31
|
+
"cellDragHandle": "m9gU3",
|
|
32
|
+
"cellFocusWithin": "DM2qk",
|
|
33
|
+
"cellSelected": "RG82-",
|
|
34
|
+
"dropCursor": "_7JCmH",
|
|
35
|
+
"smartBlockHandle": "llUwg",
|
|
36
|
+
"addCellBar": "P72yi",
|
|
37
|
+
"addCellBarButton": "_5479L"
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=smart-block-editor-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/tiptap/smart-block-editor.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"editorWrapper\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"editorWrapper\": \"edc-O\",\n \"editorCell\": \"_0jD69\",\n \"focusWithin\": \"tUrYo\",\n \"smartBlockHandleWrapper\": \"_2wTOp\",\n \"selected\": \"uUlTt\",\n \"cellHandleWrapper\": \"Gy7Dw\",\n \"cellDragHandle\": \"m9gU3\",\n \"cellFocusWithin\": \"DM2qk\",\n \"cellSelected\": \"RG82-\",\n \"dropCursor\": \"_7JCmH\",\n \"smartBlockHandle\": \"llUwg\",\n \"addCellBar\": \"P72yi\",\n \"addCellBarButton\": \"_5479L\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,6BAAQ;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,2BAA2B;AAAA,EAC3B,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,mBAAmB;AAAA,EACnB,gBAAgB;AAAA,EAChB,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,cAAc;AAAA,EACd,oBAAoB;AACtB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,7 +22,7 @@ __export(smart_block_extension_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(smart_block_extension_exports);
|
|
24
24
|
var import_ricos_content = require("./../../ricos-content/index.js");
|
|
25
|
-
var
|
|
25
|
+
var import_get_pos_after_parent_container = require("./../../_shared/get-pos-after-parent-container.js");
|
|
26
26
|
var import_pm_node_types = require("./../../_shared/pm-node-types.js");
|
|
27
27
|
var import_core = require("./../../tiptap/core/index.js");
|
|
28
28
|
var import_helpers = require("./../../tiptap-editor/helpers/index.js");
|
|
@@ -32,7 +32,7 @@ var import_variant_features = require("../utils/variant-features.js");
|
|
|
32
32
|
var import_smart_block_cell_normalizing = require("./smart-block-cell-normalizing.js");
|
|
33
33
|
var import_smart_block_color_preview_plugin = require("./smart-block-color-preview-plugin.js");
|
|
34
34
|
var import_smart_block = require("./smart-block.js");
|
|
35
|
-
const getInsertTarget = ({ doc, selection }) => (0,
|
|
35
|
+
const getInsertTarget = ({ doc, selection }) => (0, import_get_pos_after_parent_container.getPosAfterParentContainer)(doc, selection.from) ?? selection.to;
|
|
36
36
|
const resolveSmartBlockNodeFromState = (state) => {
|
|
37
37
|
const sel = state.selection;
|
|
38
38
|
if (sel.node?.type?.name === import_pm_node_types.PmNodeType.SMART_BLOCK) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-smart-block/tiptap/smart-block-extension.ts"],
|
|
4
|
-
"sourcesContent": ["import type { PmConverters } from './../../pm-converters/collect.js';\nimport { generateId } from './../../ricos-content/index.js';\nimport type {\n FileSource,\n RicosDocument,\n SmartBlockData_ColumnSize,\n SmartBlockData_Orientation,\n SmartBlockData_Type,\n} from './../../ricos-schema/next-schema/index.js';\nimport type { ExtensionProps, RicosExtension } from './../../ricos-types/index.js';\nimport { getPosAfterParentLayout } from './../../_shared/get-pos-after-parent-layout.js';\nimport { PmNodeType } from './../../_shared/pm-node-types.js';\nimport {\n type CommandProps,\n type JSONContent,\n type NodeConfig,\n findParentNodeClosestToPos,\n} from './../../tiptap/core/index.js';\nimport type { Node as PmNode } from './../../tiptap/pm/model.js';\nimport type { NodeSelection } from './../../tiptap/pm/state.js';\nimport { findNodeById } from './../../tiptap-editor/helpers/index.js';\nimport type { TiptapAdapterServices } from './../../tiptap-editor/initialize-tiptap-adapter.js';\nimport { createRicosNodeExtension } from './../../tiptap-extensions/index.js';\n\nimport {\n DEFAULT_LABEL,\n DEFAULT_STAR_RATING_LABEL,\n MAX_ITEMS,\n SMART_BLOCK_DEFAULTS,\n} from '../consts.js';\nimport { getCellColorAttr, hasShapeSupport } from '../utils/variant-features.js';\nimport { createSmartBlockCellNormalizingPlugin } from './smart-block-cell-normalizing.js';\nimport {\n createSmartBlockColorPreviewPlugin,\n SMART_BLOCK_COLOR_PREVIEW_KEY,\n type SmartBlockColorPreview,\n} from './smart-block-color-preview-plugin.js';\nimport { SmartBlock } from './smart-block.js';\n\ndeclare module './../../tiptap/core' {\n interface Commands<ReturnType> {\n SMART_BLOCK: {\n insertSmartBlock: (type: SmartBlockData_Type) => ReturnType;\n insertSmartBlockPreset: (content: RicosDocument) => ReturnType;\n switchSmartBlockVariant: (\n type: SmartBlockData_Type,\n options?: { isPreview?: boolean }\n ) => ReturnType;\n setSmartBlockColumnSize: (columnSize: SmartBlockData_ColumnSize) => ReturnType;\n setSmartBlockOrientation: (orientation: SmartBlockData_Orientation) => ReturnType;\n applyDesignToAllCells: (design: {\n color?: string;\n borderColor?: string | null;\n borderWidth?: number;\n borderRadius?: number;\n }) => ReturnType;\n addSmartBlockCell: (smartBlockId?: string) => ReturnType;\n addSmartBlockCellBefore: (cellId: string) => ReturnType;\n addSmartBlockCellAfter: (cellId: string) => ReturnType;\n duplicateSmartBlockCell: (cellId: string) => ReturnType;\n removeSmartBlockCell: (cellId: string) => ReturnType;\n selectSmartBlock: () => ReturnType;\n applyShapeToAllCells: (params: { src: FileSource }) => ReturnType;\n setShapeColorForAllCells: (color: string | null) => ReturnType;\n removeShapesFromAllCells: () => ReturnType;\n setSmartBlockColorPreview: (preview: SmartBlockColorPreview) => ReturnType;\n clearSmartBlockColorPreview: () => ReturnType;\n };\n }\n}\n\n/** A cell cannot hold a smart block, so one inserted from inside a layout goes after it. */\nconst getInsertTarget = ({ doc, selection }: CommandProps['state']) =>\n getPosAfterParentLayout(doc, selection.from) ?? selection.to;\n\n// Resolves the smart block node from either a NodeSelection on the block itself\n// or from a cursor/selection inside it. Needed because selectSmartBlock() creates\n// a NodeSelection on the block, which findParentNodeClosestToPos() won't find.\nconst resolveSmartBlockNodeFromState = (state: CommandProps['state']) => {\n const sel = state.selection as NodeSelection;\n if (sel.node?.type?.name === PmNodeType.SMART_BLOCK) {\n return { node: sel.node, pos: sel.from };\n }\n return findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n (node: any) => node.type?.name === PmNodeType.SMART_BLOCK\n );\n};\n\nconst createSetSmartBlockAttrCommand =\n (attrName: string) =>\n (value: string | boolean) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n tr.setNodeAttribute(smartBlockNode.pos, attrName, value);\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n };\n\nconst createAddSmartBlockCellCommand =\n (position: 'before' | 'after') =>\n (cellId: string) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const nodeWithPos = findNodeById(tr, cellId)[0];\n if (!nodeWithPos) {\n return false;\n }\n\n const parent = findParentNodeClosestToPos(\n tr.doc.resolve(nodeWithPos.pos),\n (node: any) => node.type?.name === PmNodeType.SMART_BLOCK\n );\n if (parent && parent.node.childCount >= MAX_ITEMS) {\n return false;\n }\n\n const type = parent?.node?.attrs?.type ?? null;\n const cellType = state.schema.nodes[PmNodeType.SMART_BLOCK_CELL];\n const paragraphType = state.schema.nodes['PARAGRAPH'];\n const uniformDesign = parent?.node ? getUniformCellDesign(parent.node) : null;\n const uniformShape = parent?.node ? getUniformCellShape(parent.node, type) : null;\n const newCell = cellType.create(\n {\n id: generateId(),\n type,\n label: getNewCellLabel(type),\n ...uniformDesign,\n ...uniformShape,\n },\n paragraphType.create({ id: generateId() })\n );\n\n const insertPos =\n position === 'before' ? nodeWithPos.pos : nodeWithPos.pos + nodeWithPos.node.nodeSize;\n tr.insert(insertPos, newCell);\n\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n };\n\n// Seed the label on cell creation so new stat / star-rating cells aren't\n// blank. There is no render-time fallback — null means \"user cleared it\",\n// which must render as an empty input + placeholder.\nconst getNewCellLabel = (type: SmartBlockData_Type | null): string | undefined => {\n if (type === 'STAR_RATING') {\n return DEFAULT_STAR_RATING_LABEL;\n }\n if (type === 'STATS' || type === 'BAR_STATS' || type === 'CIRCLE_STATS') {\n return DEFAULT_LABEL;\n }\n return undefined;\n};\n\nconst CELL_DESIGN_ATTRS = [\n 'accentColor',\n 'backgroundColor',\n 'borderColor',\n 'borderWidth',\n 'borderRadius',\n] as const;\n\nconst getUniformCellDesign = (smartBlockNode: PmNode): Record<string, unknown> | null => {\n const cells: PmNode[] = [];\n smartBlockNode.forEach(child => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n cells.push(child);\n }\n });\n if (cells.length === 0) {\n return null;\n }\n\n const first = cells[0].attrs;\n const allSame = cells.every(cell =>\n CELL_DESIGN_ATTRS.every(attr => cell.attrs[attr] === first[attr])\n );\n if (!allSame) {\n return null;\n }\n\n return Object.fromEntries(CELL_DESIGN_ATTRS.map(k => [k, first[k]]));\n};\n\nconst getUniformCellShape = (\n smartBlockNode: PmNode,\n type: SmartBlockData_Type | null\n): Record<string, unknown> | null => {\n if (!type || !hasShapeSupport(type)) {\n return null;\n }\n const cells: PmNode[] = [];\n smartBlockNode.forEach(child => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n cells.push(child);\n }\n });\n if (cells.length === 0) {\n return null;\n }\n const first = cells[0].attrs;\n const allSame = cells.every(\n cell =>\n JSON.stringify(cell.attrs.shape) === JSON.stringify(first.shape) &&\n cell.attrs.shapeColor === first.shapeColor\n );\n if (!allSame) {\n return null;\n }\n return { shape: first.shape, shapeColor: first.shapeColor };\n};\n\nexport const smartBlockExtension = createRicosNodeExtension({\n name: PmNodeType.SMART_BLOCK,\n // 'hide-selection': the smart block paints cell outlines and handle chrome when\n // selected but no block-level ring of its own — opting out of typesWithOwnFocusRing\n // lets the drag handle's `.blockSelected` supply the same ring every block gets.\n groups: ['custom-styles', 'shortcuts-enabled', 'node-container', 'hide-selection'],\n type: 'react-node',\n Component: SmartBlock,\n reconfigure: (\n config: NodeConfig,\n _extensions: RicosExtension[],\n _props: ExtensionProps,\n settings: Record<string, unknown>,\n services: TiptapAdapterServices\n ) => {\n const hasDragHandle = !!services.plugins.getExports().blockDragHandle?.isActive;\n return {\n ...config,\n draggable: !services.context.isMobile,\n addOptions: () => {\n return {\n services,\n converters: services.converters,\n // Hide the native smart-block grip only when the opt-in block drag handle replaces it.\n suppressDragHandle: !services.context.isMobile && hasDragHandle,\n ...settings,\n };\n },\n };\n },\n createExtensionConfig() {\n return {\n name: this.name,\n isolating: true,\n group: 'block',\n selectable: true,\n draggable: true,\n content: `${PmNodeType.SMART_BLOCK_CELL}{1,${MAX_ITEMS}}`,\n parseHTML() {\n return [\n {\n tag: 'div[data-smart-block]',\n getAttrs: (node: HTMLElement) => ({\n type: node.getAttribute('data-type') || SMART_BLOCK_DEFAULTS.type,\n columnSize: node.getAttribute('data-column-size') || SMART_BLOCK_DEFAULTS.columnSize,\n orientation: node.getAttribute('data-orientation') || null,\n backgroundColor: node.getAttribute('data-background-color') || null,\n borderColor: node.getAttribute('data-border-color') || null,\n borderWidth: node.getAttribute('data-border-width')\n ? Number(node.getAttribute('data-border-width'))\n : null,\n borderRadius: node.getAttribute('data-border-radius')\n ? Number(node.getAttribute('data-border-radius'))\n : null,\n }),\n },\n ];\n },\n renderHTML({ node }) {\n return [\n 'div',\n {\n 'data-smart-block': true,\n 'data-type': node.attrs.type,\n 'data-column-size': node.attrs.columnSize ?? null,\n 'data-orientation': node.attrs.orientation ?? null,\n 'data-background-color': node.attrs.backgroundColor ?? null,\n 'data-border-color': node.attrs.borderColor ?? null,\n 'data-border-width': node.attrs.borderWidth ?? null,\n 'data-border-radius': node.attrs.borderRadius ?? null,\n },\n 0,\n ];\n },\n addAttributes: () => ({\n type: {\n default: SMART_BLOCK_DEFAULTS.type,\n },\n columnSize: {\n default: SMART_BLOCK_DEFAULTS.columnSize,\n },\n orientation: null,\n backgroundColor: null,\n borderColor: null,\n borderWidth: null,\n borderRadius: null,\n }),\n addCommands() {\n const converters = this.options.converters as PmConverters;\n return {\n insertSmartBlock:\n (type: SmartBlockData_Type) =>\n ({ chain, state }) => {\n const content = [\n createDefaultCell(type),\n createDefaultCell(type),\n createDefaultCell(type),\n ];\n\n return chain()\n .focus()\n .insertContentAt(getInsertTarget(state), [\n { type: 'PARAGRAPH', attrs: { id: generateId() } },\n {\n type: PmNodeType.SMART_BLOCK,\n attrs: {\n id: generateId(),\n type,\n },\n content,\n },\n { type: 'PARAGRAPH', attrs: { id: generateId() } },\n ])\n .run();\n },\n insertSmartBlockPreset:\n (content: RicosDocument) =>\n ({ chain, state }) => {\n const pmContent = converters.toPm(content).content as JSONContent[];\n const smartBlockId = pmContent.find(node => node.type === PmNodeType.SMART_BLOCK)\n ?.attrs?.id;\n\n return chain()\n .focus()\n .insertContentAt(getInsertTarget(state), pmContent)\n .scrollNodeIntoView(smartBlockId)\n .run();\n },\n switchSmartBlockVariant:\n (type: SmartBlockData_Type, options?: { isPreview?: boolean }) =>\n ({ tr, state, dispatch }) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n\n tr.setNodeAttribute(smartBlockNode.pos, 'type', type);\n\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'type', type);\n\n const isStatVariant =\n type === 'STATS' || type === 'CIRCLE_STATS' || type === 'BAR_STATS';\n if (isStatVariant && !child.attrs.label) {\n tr.setNodeAttribute(cellPos, 'label', DEFAULT_LABEL);\n } else if (type === 'STAR_RATING' && !child.attrs.label) {\n tr.setNodeAttribute(cellPos, 'label', DEFAULT_STAR_RATING_LABEL);\n }\n\n const oldColorAttr = getCellColorAttr(child.attrs.type);\n const newColorAttr = getCellColorAttr(type);\n if (oldColorAttr !== newColorAttr) {\n tr.setNodeAttribute(cellPos, newColorAttr, child.attrs[oldColorAttr] ?? null);\n tr.setNodeAttribute(cellPos, oldColorAttr, null);\n }\n }\n });\n\n if (options?.isPreview) {\n tr.setMeta('addToHistory', false);\n }\n\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n setSmartBlockColumnSize: createSetSmartBlockAttrCommand('columnSize'),\n setSmartBlockOrientation: createSetSmartBlockAttrCommand('orientation'),\n applyDesignToAllCells:\n (design: {\n color?: string;\n borderColor?: string | null;\n borderWidth?: number;\n borderRadius?: number;\n }) =>\n ({ tr, state, dispatch }) => {\n const { selection } = state;\n const nodeSelection = selection as NodeSelection;\n let smartBlockNode;\n\n if (nodeSelection.node?.type?.name === PmNodeType.SMART_BLOCK) {\n smartBlockNode = { node: nodeSelection.node, pos: nodeSelection.from };\n } else {\n smartBlockNode = findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n }\n\n if (!smartBlockNode) {\n return false;\n }\n\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n const type = parentNode.attrs.type;\n const isJoinedBoxes = type === 'SOLID_JOINED_BOXES';\n\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n if ('color' in design) {\n tr.setNodeAttribute(cellPos, getCellColorAttr(type), design.color);\n }\n if (!isJoinedBoxes) {\n if (design.borderColor !== undefined) {\n tr.setNodeAttribute(cellPos, 'borderColor', design.borderColor);\n }\n if (design.borderWidth !== undefined) {\n tr.setNodeAttribute(cellPos, 'borderWidth', design.borderWidth);\n }\n if (design.borderRadius !== undefined) {\n tr.setNodeAttribute(cellPos, 'borderRadius', design.borderRadius);\n }\n }\n }\n });\n\n // For SOLID_JOINED_BOXES, borders belong to the block node (schema-level)\n if (isJoinedBoxes) {\n if (design.borderColor !== undefined) {\n tr.setNodeAttribute(parentPos, 'borderColor', design.borderColor);\n }\n if (design.borderWidth !== undefined) {\n tr.setNodeAttribute(parentPos, 'borderWidth', design.borderWidth);\n }\n if (design.borderRadius !== undefined) {\n tr.setNodeAttribute(parentPos, 'borderRadius', design.borderRadius);\n }\n }\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n addSmartBlockCell:\n (smartBlockId?: string) =>\n ({ tr, state, dispatch }) => {\n let smartBlockNode;\n\n if (smartBlockId) {\n // Find by ID when provided (e.g., from add button click outside of focus)\n const nodeWithPos = findNodeById(tr, smartBlockId)[0];\n smartBlockNode = nodeWithPos\n ? { node: nodeWithPos.node, pos: nodeWithPos.pos }\n : null;\n } else {\n // Fall back to finding by selection position\n smartBlockNode = findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n }\n\n if (!smartBlockNode) {\n return false;\n }\n\n if (smartBlockNode.node.childCount >= MAX_ITEMS) {\n return false;\n }\n\n const type = smartBlockNode.node.attrs?.type ?? null;\n const cellType = state.schema.nodes[PmNodeType.SMART_BLOCK_CELL];\n const paragraphType = state.schema.nodes['PARAGRAPH'];\n const uniformDesign = getUniformCellDesign(smartBlockNode.node);\n const uniformShape = getUniformCellShape(smartBlockNode.node, type);\n\n const newCell = cellType.create(\n {\n id: generateId(),\n type,\n label: getNewCellLabel(type),\n ...uniformDesign,\n ...uniformShape,\n },\n paragraphType.create({ id: generateId() })\n );\n\n const insertPos = smartBlockNode.pos + smartBlockNode.node.nodeSize - 1;\n tr.insert(insertPos, newCell);\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n addSmartBlockCellBefore: createAddSmartBlockCellCommand('before'),\n addSmartBlockCellAfter: createAddSmartBlockCellCommand('after'),\n duplicateSmartBlockCell:\n (cellId: string) =>\n ({ tr, state, dispatch }) => {\n const nodeWithPos = findNodeById(tr, cellId)[0];\n if (!nodeWithPos) {\n return false;\n }\n\n const parent = findParentNodeClosestToPos(\n tr.doc.resolve(nodeWithPos.pos),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n if (parent && parent.node.childCount >= MAX_ITEMS) {\n return false;\n }\n\n const json = nodeWithPos.node.toJSON();\n remapNodeIds(json);\n const clone = state.schema.nodeFromJSON(json);\n\n tr.insert(nodeWithPos.pos + nodeWithPos.node.nodeSize, clone);\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n selectSmartBlock:\n () =>\n ({ chain, state }) => {\n const result = findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n if (!result) {\n return false;\n }\n return chain()\n .setNodeSelection(result.pos)\n .focus(undefined, { scrollIntoView: false })\n .run();\n },\n applyShapeToAllCells:\n ({ src }: { src: FileSource }) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'shape', { src });\n }\n });\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n setShapeColorForAllCells:\n (color: string | null) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'shapeColor', color);\n }\n });\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n removeShapesFromAllCells:\n () =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'shape', null);\n tr.setNodeAttribute(cellPos, 'shapeColor', null);\n }\n });\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n removeSmartBlockCell:\n (cellId: string) =>\n ({ tr, dispatch }) => {\n const nodeWithPos = findNodeById(tr, cellId)[0];\n\n if (!nodeWithPos) {\n return false;\n }\n\n tr.delete(nodeWithPos.pos, nodeWithPos.pos + nodeWithPos.node.nodeSize);\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n // Meta-only (no doc steps) so previewing a dragged color never enters\n // the undo history; the single commit on release is the one undo step.\n setSmartBlockColorPreview:\n (preview: SmartBlockColorPreview) =>\n ({ tr, dispatch }) => {\n dispatch?.(tr.setMeta(SMART_BLOCK_COLOR_PREVIEW_KEY, preview));\n return true;\n },\n clearSmartBlockColorPreview:\n () =>\n ({ tr, dispatch }) => {\n dispatch?.(tr.setMeta(SMART_BLOCK_COLOR_PREVIEW_KEY, null));\n return true;\n },\n };\n },\n addProseMirrorPlugins() {\n return [createSmartBlockColorPreviewPlugin(), createSmartBlockCellNormalizingPlugin()];\n },\n };\n },\n});\n\nconst remapNodeIds = (json: Record<string, any>) => {\n if (json.attrs?.id) {\n json.attrs.id = generateId();\n }\n if (Array.isArray(json.content)) {\n json.content.forEach(remapNodeIds);\n }\n};\n\nconst createDefaultCell = (type?: SmartBlockData_Type | null): JSONContent => ({\n type: PmNodeType.SMART_BLOCK_CELL,\n attrs: {\n id: generateId(),\n type: type ?? null,\n label: getNewCellLabel(type ?? null),\n },\n content: [\n {\n type: 'PARAGRAPH',\n attrs: {\n id: generateId(),\n },\n content: [],\n },\n ],\n});\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,2BAA2B;AAS3B,yCAAwC;AACxC,2BAA2B;AAC3B,kBAKO;AAGP,qBAA6B;AAE7B,+BAAyC;AAEzC,oBAKO;AACP,8BAAkD;AAClD,0CAAsD;AACtD,8CAIO;AACP,yBAA2B;AAmC3B,MAAM,kBAAkB,CAAC,EAAE,KAAK,UAAU,UACxC,4DAAwB,KAAK,UAAU,IAAI,KAAK,UAAU;AAK5D,MAAM,iCAAiC,CAAC,UAAiC;AACvE,QAAM,MAAM,MAAM;AAClB,MAAI,IAAI,MAAM,MAAM,SAAS,gCAAW,aAAa;AACnD,WAAO,EAAE,MAAM,IAAI,MAAM,KAAK,IAAI,KAAK;AAAA,EACzC;AACA,aAAO;AAAA,IACL,MAAM,IAAI,QAAQ,MAAM,UAAU,IAAI;AAAA,IACtC,CAAC,SAAc,KAAK,MAAM,SAAS,gCAAW;AAAA,EAChD;AACF;AAEA,MAAM,iCACJ,CAAC,aACD,CAAC,UACD,CAAC,EAAE,IAAI,OAAO,SAAS,MAAoB;AACzC,QAAM,iBAAiB,+BAA+B,KAAK;AAC3D,MAAI,CAAC,gBAAgB;AACnB,WAAO;AAAA,EACT;AACA,KAAG,iBAAiB,eAAe,KAAK,UAAU,KAAK;AACvD,MAAI,UAAU;AACZ,aAAS,EAAE;AAAA,EACb;AACA,SAAO;AACT;AAEF,MAAM,iCACJ,CAAC,aACD,CAAC,WACD,CAAC,EAAE,IAAI,OAAO,SAAS,MAAoB;AACzC,QAAM,kBAAc,6BAAa,IAAI,MAAM,EAAE,CAAC;AAC9C,MAAI,CAAC,aAAa;AAChB,WAAO;AAAA,EACT;AAEA,QAAM,aAAS;AAAA,IACb,GAAG,IAAI,QAAQ,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F;",
|
|
4
|
+
"sourcesContent": ["import type { PmConverters } from './../../pm-converters/collect.js';\nimport { generateId } from './../../ricos-content/index.js';\nimport type {\n FileSource,\n RicosDocument,\n SmartBlockData_ColumnSize,\n SmartBlockData_Orientation,\n SmartBlockData_Type,\n} from './../../ricos-schema/next-schema/index.js';\nimport type { ExtensionProps, RicosExtension } from './../../ricos-types/index.js';\nimport { getPosAfterParentContainer } from './../../_shared/get-pos-after-parent-container.js';\nimport { PmNodeType } from './../../_shared/pm-node-types.js';\nimport {\n type CommandProps,\n type JSONContent,\n type NodeConfig,\n findParentNodeClosestToPos,\n} from './../../tiptap/core/index.js';\nimport type { Node as PmNode } from './../../tiptap/pm/model.js';\nimport type { NodeSelection } from './../../tiptap/pm/state.js';\nimport { findNodeById } from './../../tiptap-editor/helpers/index.js';\nimport type { TiptapAdapterServices } from './../../tiptap-editor/initialize-tiptap-adapter.js';\nimport { createRicosNodeExtension } from './../../tiptap-extensions/index.js';\n\nimport {\n DEFAULT_LABEL,\n DEFAULT_STAR_RATING_LABEL,\n MAX_ITEMS,\n SMART_BLOCK_DEFAULTS,\n} from '../consts.js';\nimport { getCellColorAttr, hasShapeSupport } from '../utils/variant-features.js';\nimport { createSmartBlockCellNormalizingPlugin } from './smart-block-cell-normalizing.js';\nimport {\n createSmartBlockColorPreviewPlugin,\n SMART_BLOCK_COLOR_PREVIEW_KEY,\n type SmartBlockColorPreview,\n} from './smart-block-color-preview-plugin.js';\nimport { SmartBlock } from './smart-block.js';\n\ndeclare module './../../tiptap/core' {\n interface Commands<ReturnType> {\n SMART_BLOCK: {\n insertSmartBlock: (type: SmartBlockData_Type) => ReturnType;\n insertSmartBlockPreset: (content: RicosDocument) => ReturnType;\n switchSmartBlockVariant: (\n type: SmartBlockData_Type,\n options?: { isPreview?: boolean }\n ) => ReturnType;\n setSmartBlockColumnSize: (columnSize: SmartBlockData_ColumnSize) => ReturnType;\n setSmartBlockOrientation: (orientation: SmartBlockData_Orientation) => ReturnType;\n applyDesignToAllCells: (design: {\n color?: string;\n borderColor?: string | null;\n borderWidth?: number;\n borderRadius?: number;\n }) => ReturnType;\n addSmartBlockCell: (smartBlockId?: string) => ReturnType;\n addSmartBlockCellBefore: (cellId: string) => ReturnType;\n addSmartBlockCellAfter: (cellId: string) => ReturnType;\n duplicateSmartBlockCell: (cellId: string) => ReturnType;\n removeSmartBlockCell: (cellId: string) => ReturnType;\n selectSmartBlock: () => ReturnType;\n applyShapeToAllCells: (params: { src: FileSource }) => ReturnType;\n setShapeColorForAllCells: (color: string | null) => ReturnType;\n removeShapesFromAllCells: () => ReturnType;\n setSmartBlockColorPreview: (preview: SmartBlockColorPreview) => ReturnType;\n clearSmartBlockColorPreview: () => ReturnType;\n };\n }\n}\n\n/** No cell can hold a smart block, so one inserted inside a layout or smart block goes after it. */\nconst getInsertTarget = ({ doc, selection }: CommandProps['state']) =>\n getPosAfterParentContainer(doc, selection.from) ?? selection.to;\n\n// Resolves the smart block node from either a NodeSelection on the block itself\n// or from a cursor/selection inside it. Needed because selectSmartBlock() creates\n// a NodeSelection on the block, which findParentNodeClosestToPos() won't find.\nconst resolveSmartBlockNodeFromState = (state: CommandProps['state']) => {\n const sel = state.selection as NodeSelection;\n if (sel.node?.type?.name === PmNodeType.SMART_BLOCK) {\n return { node: sel.node, pos: sel.from };\n }\n return findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n (node: any) => node.type?.name === PmNodeType.SMART_BLOCK\n );\n};\n\nconst createSetSmartBlockAttrCommand =\n (attrName: string) =>\n (value: string | boolean) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n tr.setNodeAttribute(smartBlockNode.pos, attrName, value);\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n };\n\nconst createAddSmartBlockCellCommand =\n (position: 'before' | 'after') =>\n (cellId: string) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const nodeWithPos = findNodeById(tr, cellId)[0];\n if (!nodeWithPos) {\n return false;\n }\n\n const parent = findParentNodeClosestToPos(\n tr.doc.resolve(nodeWithPos.pos),\n (node: any) => node.type?.name === PmNodeType.SMART_BLOCK\n );\n if (parent && parent.node.childCount >= MAX_ITEMS) {\n return false;\n }\n\n const type = parent?.node?.attrs?.type ?? null;\n const cellType = state.schema.nodes[PmNodeType.SMART_BLOCK_CELL];\n const paragraphType = state.schema.nodes['PARAGRAPH'];\n const uniformDesign = parent?.node ? getUniformCellDesign(parent.node) : null;\n const uniformShape = parent?.node ? getUniformCellShape(parent.node, type) : null;\n const newCell = cellType.create(\n {\n id: generateId(),\n type,\n label: getNewCellLabel(type),\n ...uniformDesign,\n ...uniformShape,\n },\n paragraphType.create({ id: generateId() })\n );\n\n const insertPos =\n position === 'before' ? nodeWithPos.pos : nodeWithPos.pos + nodeWithPos.node.nodeSize;\n tr.insert(insertPos, newCell);\n\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n };\n\n// Seed the label on cell creation so new stat / star-rating cells aren't\n// blank. There is no render-time fallback — null means \"user cleared it\",\n// which must render as an empty input + placeholder.\nconst getNewCellLabel = (type: SmartBlockData_Type | null): string | undefined => {\n if (type === 'STAR_RATING') {\n return DEFAULT_STAR_RATING_LABEL;\n }\n if (type === 'STATS' || type === 'BAR_STATS' || type === 'CIRCLE_STATS') {\n return DEFAULT_LABEL;\n }\n return undefined;\n};\n\nconst CELL_DESIGN_ATTRS = [\n 'accentColor',\n 'backgroundColor',\n 'borderColor',\n 'borderWidth',\n 'borderRadius',\n] as const;\n\nconst getUniformCellDesign = (smartBlockNode: PmNode): Record<string, unknown> | null => {\n const cells: PmNode[] = [];\n smartBlockNode.forEach(child => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n cells.push(child);\n }\n });\n if (cells.length === 0) {\n return null;\n }\n\n const first = cells[0].attrs;\n const allSame = cells.every(cell =>\n CELL_DESIGN_ATTRS.every(attr => cell.attrs[attr] === first[attr])\n );\n if (!allSame) {\n return null;\n }\n\n return Object.fromEntries(CELL_DESIGN_ATTRS.map(k => [k, first[k]]));\n};\n\nconst getUniformCellShape = (\n smartBlockNode: PmNode,\n type: SmartBlockData_Type | null\n): Record<string, unknown> | null => {\n if (!type || !hasShapeSupport(type)) {\n return null;\n }\n const cells: PmNode[] = [];\n smartBlockNode.forEach(child => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n cells.push(child);\n }\n });\n if (cells.length === 0) {\n return null;\n }\n const first = cells[0].attrs;\n const allSame = cells.every(\n cell =>\n JSON.stringify(cell.attrs.shape) === JSON.stringify(first.shape) &&\n cell.attrs.shapeColor === first.shapeColor\n );\n if (!allSame) {\n return null;\n }\n return { shape: first.shape, shapeColor: first.shapeColor };\n};\n\nexport const smartBlockExtension = createRicosNodeExtension({\n name: PmNodeType.SMART_BLOCK,\n // 'hide-selection': the smart block paints cell outlines and handle chrome when\n // selected but no block-level ring of its own — opting out of typesWithOwnFocusRing\n // lets the drag handle's `.blockSelected` supply the same ring every block gets.\n groups: ['custom-styles', 'shortcuts-enabled', 'node-container', 'hide-selection'],\n type: 'react-node',\n Component: SmartBlock,\n reconfigure: (\n config: NodeConfig,\n _extensions: RicosExtension[],\n _props: ExtensionProps,\n settings: Record<string, unknown>,\n services: TiptapAdapterServices\n ) => {\n const hasDragHandle = !!services.plugins.getExports().blockDragHandle?.isActive;\n return {\n ...config,\n draggable: !services.context.isMobile,\n addOptions: () => {\n return {\n services,\n converters: services.converters,\n // Hide the native smart-block grip only when the opt-in block drag handle replaces it.\n suppressDragHandle: !services.context.isMobile && hasDragHandle,\n ...settings,\n };\n },\n };\n },\n createExtensionConfig() {\n return {\n name: this.name,\n isolating: true,\n group: 'block',\n selectable: true,\n draggable: true,\n content: `${PmNodeType.SMART_BLOCK_CELL}{1,${MAX_ITEMS}}`,\n parseHTML() {\n return [\n {\n tag: 'div[data-smart-block]',\n getAttrs: (node: HTMLElement) => ({\n type: node.getAttribute('data-type') || SMART_BLOCK_DEFAULTS.type,\n columnSize: node.getAttribute('data-column-size') || SMART_BLOCK_DEFAULTS.columnSize,\n orientation: node.getAttribute('data-orientation') || null,\n backgroundColor: node.getAttribute('data-background-color') || null,\n borderColor: node.getAttribute('data-border-color') || null,\n borderWidth: node.getAttribute('data-border-width')\n ? Number(node.getAttribute('data-border-width'))\n : null,\n borderRadius: node.getAttribute('data-border-radius')\n ? Number(node.getAttribute('data-border-radius'))\n : null,\n }),\n },\n ];\n },\n renderHTML({ node }) {\n return [\n 'div',\n {\n 'data-smart-block': true,\n 'data-type': node.attrs.type,\n 'data-column-size': node.attrs.columnSize ?? null,\n 'data-orientation': node.attrs.orientation ?? null,\n 'data-background-color': node.attrs.backgroundColor ?? null,\n 'data-border-color': node.attrs.borderColor ?? null,\n 'data-border-width': node.attrs.borderWidth ?? null,\n 'data-border-radius': node.attrs.borderRadius ?? null,\n },\n 0,\n ];\n },\n addAttributes: () => ({\n type: {\n default: SMART_BLOCK_DEFAULTS.type,\n },\n columnSize: {\n default: SMART_BLOCK_DEFAULTS.columnSize,\n },\n orientation: null,\n backgroundColor: null,\n borderColor: null,\n borderWidth: null,\n borderRadius: null,\n }),\n addCommands() {\n const converters = this.options.converters as PmConverters;\n return {\n insertSmartBlock:\n (type: SmartBlockData_Type) =>\n ({ chain, state }) => {\n const content = [\n createDefaultCell(type),\n createDefaultCell(type),\n createDefaultCell(type),\n ];\n\n return chain()\n .focus()\n .insertContentAt(getInsertTarget(state), [\n { type: 'PARAGRAPH', attrs: { id: generateId() } },\n {\n type: PmNodeType.SMART_BLOCK,\n attrs: {\n id: generateId(),\n type,\n },\n content,\n },\n { type: 'PARAGRAPH', attrs: { id: generateId() } },\n ])\n .run();\n },\n insertSmartBlockPreset:\n (content: RicosDocument) =>\n ({ chain, state }) => {\n const pmContent = converters.toPm(content).content as JSONContent[];\n const smartBlockId = pmContent.find(node => node.type === PmNodeType.SMART_BLOCK)\n ?.attrs?.id;\n\n return chain()\n .focus()\n .insertContentAt(getInsertTarget(state), pmContent)\n .scrollNodeIntoView(smartBlockId)\n .run();\n },\n switchSmartBlockVariant:\n (type: SmartBlockData_Type, options?: { isPreview?: boolean }) =>\n ({ tr, state, dispatch }) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n\n tr.setNodeAttribute(smartBlockNode.pos, 'type', type);\n\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'type', type);\n\n const isStatVariant =\n type === 'STATS' || type === 'CIRCLE_STATS' || type === 'BAR_STATS';\n if (isStatVariant && !child.attrs.label) {\n tr.setNodeAttribute(cellPos, 'label', DEFAULT_LABEL);\n } else if (type === 'STAR_RATING' && !child.attrs.label) {\n tr.setNodeAttribute(cellPos, 'label', DEFAULT_STAR_RATING_LABEL);\n }\n\n const oldColorAttr = getCellColorAttr(child.attrs.type);\n const newColorAttr = getCellColorAttr(type);\n if (oldColorAttr !== newColorAttr) {\n tr.setNodeAttribute(cellPos, newColorAttr, child.attrs[oldColorAttr] ?? null);\n tr.setNodeAttribute(cellPos, oldColorAttr, null);\n }\n }\n });\n\n if (options?.isPreview) {\n tr.setMeta('addToHistory', false);\n }\n\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n setSmartBlockColumnSize: createSetSmartBlockAttrCommand('columnSize'),\n setSmartBlockOrientation: createSetSmartBlockAttrCommand('orientation'),\n applyDesignToAllCells:\n (design: {\n color?: string;\n borderColor?: string | null;\n borderWidth?: number;\n borderRadius?: number;\n }) =>\n ({ tr, state, dispatch }) => {\n const { selection } = state;\n const nodeSelection = selection as NodeSelection;\n let smartBlockNode;\n\n if (nodeSelection.node?.type?.name === PmNodeType.SMART_BLOCK) {\n smartBlockNode = { node: nodeSelection.node, pos: nodeSelection.from };\n } else {\n smartBlockNode = findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n }\n\n if (!smartBlockNode) {\n return false;\n }\n\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n const type = parentNode.attrs.type;\n const isJoinedBoxes = type === 'SOLID_JOINED_BOXES';\n\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n if ('color' in design) {\n tr.setNodeAttribute(cellPos, getCellColorAttr(type), design.color);\n }\n if (!isJoinedBoxes) {\n if (design.borderColor !== undefined) {\n tr.setNodeAttribute(cellPos, 'borderColor', design.borderColor);\n }\n if (design.borderWidth !== undefined) {\n tr.setNodeAttribute(cellPos, 'borderWidth', design.borderWidth);\n }\n if (design.borderRadius !== undefined) {\n tr.setNodeAttribute(cellPos, 'borderRadius', design.borderRadius);\n }\n }\n }\n });\n\n // For SOLID_JOINED_BOXES, borders belong to the block node (schema-level)\n if (isJoinedBoxes) {\n if (design.borderColor !== undefined) {\n tr.setNodeAttribute(parentPos, 'borderColor', design.borderColor);\n }\n if (design.borderWidth !== undefined) {\n tr.setNodeAttribute(parentPos, 'borderWidth', design.borderWidth);\n }\n if (design.borderRadius !== undefined) {\n tr.setNodeAttribute(parentPos, 'borderRadius', design.borderRadius);\n }\n }\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n addSmartBlockCell:\n (smartBlockId?: string) =>\n ({ tr, state, dispatch }) => {\n let smartBlockNode;\n\n if (smartBlockId) {\n // Find by ID when provided (e.g., from add button click outside of focus)\n const nodeWithPos = findNodeById(tr, smartBlockId)[0];\n smartBlockNode = nodeWithPos\n ? { node: nodeWithPos.node, pos: nodeWithPos.pos }\n : null;\n } else {\n // Fall back to finding by selection position\n smartBlockNode = findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n }\n\n if (!smartBlockNode) {\n return false;\n }\n\n if (smartBlockNode.node.childCount >= MAX_ITEMS) {\n return false;\n }\n\n const type = smartBlockNode.node.attrs?.type ?? null;\n const cellType = state.schema.nodes[PmNodeType.SMART_BLOCK_CELL];\n const paragraphType = state.schema.nodes['PARAGRAPH'];\n const uniformDesign = getUniformCellDesign(smartBlockNode.node);\n const uniformShape = getUniformCellShape(smartBlockNode.node, type);\n\n const newCell = cellType.create(\n {\n id: generateId(),\n type,\n label: getNewCellLabel(type),\n ...uniformDesign,\n ...uniformShape,\n },\n paragraphType.create({ id: generateId() })\n );\n\n const insertPos = smartBlockNode.pos + smartBlockNode.node.nodeSize - 1;\n tr.insert(insertPos, newCell);\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n addSmartBlockCellBefore: createAddSmartBlockCellCommand('before'),\n addSmartBlockCellAfter: createAddSmartBlockCellCommand('after'),\n duplicateSmartBlockCell:\n (cellId: string) =>\n ({ tr, state, dispatch }) => {\n const nodeWithPos = findNodeById(tr, cellId)[0];\n if (!nodeWithPos) {\n return false;\n }\n\n const parent = findParentNodeClosestToPos(\n tr.doc.resolve(nodeWithPos.pos),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n if (parent && parent.node.childCount >= MAX_ITEMS) {\n return false;\n }\n\n const json = nodeWithPos.node.toJSON();\n remapNodeIds(json);\n const clone = state.schema.nodeFromJSON(json);\n\n tr.insert(nodeWithPos.pos + nodeWithPos.node.nodeSize, clone);\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n selectSmartBlock:\n () =>\n ({ chain, state }) => {\n const result = findParentNodeClosestToPos(\n state.doc.resolve(state.selection.from),\n node => node.type?.name === PmNodeType.SMART_BLOCK\n );\n if (!result) {\n return false;\n }\n return chain()\n .setNodeSelection(result.pos)\n .focus(undefined, { scrollIntoView: false })\n .run();\n },\n applyShapeToAllCells:\n ({ src }: { src: FileSource }) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'shape', { src });\n }\n });\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n setShapeColorForAllCells:\n (color: string | null) =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'shapeColor', color);\n }\n });\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n removeShapesFromAllCells:\n () =>\n ({ tr, state, dispatch }: CommandProps) => {\n const smartBlockNode = resolveSmartBlockNodeFromState(state);\n if (!smartBlockNode) {\n return false;\n }\n const { node: parentNode, pos: parentPos } = smartBlockNode;\n parentNode.forEach((child, offset) => {\n if (child.type.name === PmNodeType.SMART_BLOCK_CELL) {\n const cellPos = parentPos + 1 + offset;\n tr.setNodeAttribute(cellPos, 'shape', null);\n tr.setNodeAttribute(cellPos, 'shapeColor', null);\n }\n });\n if (dispatch) {\n dispatch(tr);\n }\n return true;\n },\n removeSmartBlockCell:\n (cellId: string) =>\n ({ tr, dispatch }) => {\n const nodeWithPos = findNodeById(tr, cellId)[0];\n\n if (!nodeWithPos) {\n return false;\n }\n\n tr.delete(nodeWithPos.pos, nodeWithPos.pos + nodeWithPos.node.nodeSize);\n\n if (dispatch) {\n dispatch(tr);\n }\n\n return true;\n },\n // Meta-only (no doc steps) so previewing a dragged color never enters\n // the undo history; the single commit on release is the one undo step.\n setSmartBlockColorPreview:\n (preview: SmartBlockColorPreview) =>\n ({ tr, dispatch }) => {\n dispatch?.(tr.setMeta(SMART_BLOCK_COLOR_PREVIEW_KEY, preview));\n return true;\n },\n clearSmartBlockColorPreview:\n () =>\n ({ tr, dispatch }) => {\n dispatch?.(tr.setMeta(SMART_BLOCK_COLOR_PREVIEW_KEY, null));\n return true;\n },\n };\n },\n addProseMirrorPlugins() {\n return [createSmartBlockColorPreviewPlugin(), createSmartBlockCellNormalizingPlugin()];\n },\n };\n },\n});\n\nconst remapNodeIds = (json: Record<string, any>) => {\n if (json.attrs?.id) {\n json.attrs.id = generateId();\n }\n if (Array.isArray(json.content)) {\n json.content.forEach(remapNodeIds);\n }\n};\n\nconst createDefaultCell = (type?: SmartBlockData_Type | null): JSONContent => ({\n type: PmNodeType.SMART_BLOCK_CELL,\n attrs: {\n id: generateId(),\n type: type ?? null,\n label: getNewCellLabel(type ?? null),\n },\n content: [\n {\n type: 'PARAGRAPH',\n attrs: {\n id: generateId(),\n },\n content: [],\n },\n ],\n});\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,2BAA2B;AAS3B,4CAA2C;AAC3C,2BAA2B;AAC3B,kBAKO;AAGP,qBAA6B;AAE7B,+BAAyC;AAEzC,oBAKO;AACP,8BAAkD;AAClD,0CAAsD;AACtD,8CAIO;AACP,yBAA2B;AAmC3B,MAAM,kBAAkB,CAAC,EAAE,KAAK,UAAU,UACxC,kEAA2B,KAAK,UAAU,IAAI,KAAK,UAAU;AAK/D,MAAM,iCAAiC,CAAC,UAAiC;AACvE,QAAM,MAAM,MAAM;AAClB,MAAI,IAAI,MAAM,MAAM,SAAS,gCAAW,aAAa;AACnD,WAAO,EAAE,MAAM,IAAI,MAAM,KAAK,IAAI,KAAK;AAAA,EACzC;AACA,aAAO;AAAA,IACL,MAAM,IAAI,QAAQ,MAAM,UAAU,IAAI;AAAA,IACtC,CAAC,SAAc,KAAK,MAAM,SAAS,gCAAW;AAAA,EAChD;AACF;AAEA,MAAM,iCACJ,CAAC,aACD,CAAC,UACD,CAAC,EAAE,IAAI,OAA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AW;AAAA,EAC7B;AACA,MAAI,MAAM,QAAQ,KAAK,OAAO,GAAG;AAC/B,SAAK,QAAQ,QAAQ,YAAY;AAAA,EACnC;AACF;AAEA,MAAM,oBAAoB,CAAC,UAAoD;AAAA,EAC7E,MAAM,gCAAW;AAAA,EACjB,OAAO;AAAA,IACL,QAAI,iCAAW;AAAA,IACf,MAAM,QAAQ;AAAA,IACd,OAAO,gBAAgB,QAAQ,IAAI;AAAA,EACrC;AAAA,EACA,SAAS;AAAA,IACP;AAAA,MACE,MAAM;AAAA,MACN,OAAO;AAAA,QACL,QAAI,iCAAW;AAAA,MACjB;AAAA,MACA,SAAS,CAAC;AAAA,IACZ;AAAA,EACF;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -22,14 +22,14 @@ __export(image_upload_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(image_upload_exports);
|
|
24
24
|
var image_upload_default = {
|
|
25
|
-
"container": "
|
|
26
|
-
"disabled": "
|
|
27
|
-
"imageInput": "
|
|
28
|
-
"overlay": "
|
|
29
|
-
"text": "
|
|
30
|
-
"shown": "
|
|
31
|
-
"hide": "
|
|
32
|
-
"spinner": "
|
|
33
|
-
"spin": "
|
|
25
|
+
"container": "-mmPO",
|
|
26
|
+
"disabled": "FJUKf",
|
|
27
|
+
"imageInput": "_8VN-n",
|
|
28
|
+
"overlay": "x-AlH",
|
|
29
|
+
"text": "_5fVaq",
|
|
30
|
+
"shown": "Ny3ZJ",
|
|
31
|
+
"hide": "A9gPT",
|
|
32
|
+
"spinner": "Ocq0b",
|
|
33
|
+
"spin": "eeuMr"
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=image-upload-scss.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../src/plugin-social-polls/components/image-upload/image-upload.scss"],
|
|
4
|
-
"sourcesContent": ["export default {\n \"container\": \"
|
|
4
|
+
"sourcesContent": ["export default {\n \"container\": \"-mmPO\",\n \"disabled\": \"FJUKf\",\n \"imageInput\": \"_8VN-n\",\n \"overlay\": \"x-AlH\",\n \"text\": \"_5fVaq\",\n \"shown\": \"Ny3ZJ\",\n \"hide\": \"A9gPT\",\n \"spinner\": \"Ocq0b\",\n \"spin\": \"eeuMr\"\n};"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,uBAAQ;AAAA,EACb,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,QAAQ;AACV;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|