@wix/ricos 11.20.3 → 11.20.5
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 +153 -150
- 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/headings-dropdown-utils.js +13 -8
- package/dist/cjs/_shared/headings-dropdown-utils.js.map +2 -2
- 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/memo-last.js +33 -0
- package/dist/cjs/_shared/memo-last.js.map +7 -0
- 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/create-url-link-button.js +6 -1
- package/dist/cjs/_shared/plugin-toolbar/url-link-button/create-url-link-button.js.map +3 -3
- 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/styles/general-scss.js +18 -18
- package/dist/cjs/editor-common/statics/styles/general-scss.js.map +1 -1
- 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/editor.js +3 -1
- package/dist/cjs/plugin-ai/editor.js.map +2 -2
- 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/default-styles-scss.js +3 -3
- package/dist/cjs/plugin-button/statics/styles/default-styles-scss.js.map +1 -1
- package/dist/cjs/plugin-button/statics/styles/settings-component-scss.js +1 -1
- package/dist/cjs/plugin-button/statics/styles/settings-component-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-font-family/editor.js +15 -16
- package/dist/cjs/plugin-font-family/editor.js.map +2 -2
- package/dist/cjs/plugin-gallery/media/normalize-gallery-items.js +6 -0
- package/dist/cjs/plugin-gallery/media/normalize-gallery-items.js.map +2 -2
- 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/canonicalize-masonry-settings.js +3 -3
- package/dist/cjs/plugin-gallery/modals/settings/layout-settings/canonicalize-masonry-settings.js.map +2 -2
- 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/layout-controls-section.js.map +2 -2
- 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/collage-groups.js +147 -0
- package/dist/cjs/plugin-gallery/viewer/collage-groups.js.map +7 -0
- package/dist/cjs/plugin-gallery/viewer/collage-rows.js +361 -0
- package/dist/cjs/plugin-gallery/viewer/collage-rows.js.map +7 -0
- package/dist/cjs/plugin-gallery/viewer/collage-styles.js +73 -0
- package/dist/cjs/plugin-gallery/viewer/collage-styles.js.map +7 -0
- package/dist/cjs/plugin-gallery/viewer/gallery-renderer.js +3 -1
- package/dist/cjs/plugin-gallery/viewer/gallery-renderer.js.map +2 -2
- package/dist/cjs/plugin-gallery/viewer/layout-collage-scss.js +31 -0
- package/dist/cjs/plugin-gallery/viewer/layout-collage-scss.js.map +7 -0
- package/dist/cjs/plugin-gallery/viewer/layout-collage.js +265 -0
- package/dist/cjs/plugin-gallery/viewer/layout-collage.js.map +7 -0
- 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-gallery/viewer/resolve-gallery-layout.js +14 -4
- package/dist/cjs/plugin-gallery/viewer/resolve-gallery-layout.js.map +2 -2
- 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/get-current-headings-icon.js +6 -1
- package/dist/cjs/plugin-headings/dropdown/get-current-headings-icon.js.map +2 -2
- 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-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/get-text-color-text-buttons.js +11 -10
- package/dist/cjs/plugin-text-color/get-text-color-text-buttons.js.map +2 -2
- package/dist/cjs/plugin-text-color/sketch/text-highlight-button.js +78 -71
- package/dist/cjs/plugin-text-color/sketch/text-highlight-button.js.map +2 -2
- 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/font-size/font-size.js +3 -6
- package/dist/cjs/ricos-common-plugins/font-size/font-size.js.map +3 -3
- 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-content/converters/plainText/toPlainText/convert-nodes.js +33 -12
- package/dist/cjs/ricos-content/converters/plainText/toPlainText/convert-nodes.js.map +2 -2
- 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-modals/components/floating.js +6 -2
- package/dist/cjs/ricos-modals/components/floating.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-modals/utils/modal-renderer.js +4 -2
- package/dist/cjs/ricos-modals/utils/modal-renderer.js.map +2 -2
- package/dist/cjs/ricos-modals/utils/reference-host.js +32 -0
- package/dist/cjs/ricos-modals/utils/reference-host.js.map +7 -0
- 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-styles/styles.js +13 -0
- package/dist/cjs/ricos-styles/styles.js.map +2 -2
- package/dist/cjs/ricos-types/next/styles.js.map +1 -1
- package/dist/cjs/ricos-types/styles.js.map +1 -1
- package/dist/cjs/ricos-types/toolbar-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 +8 -1
- package/dist/cjs/tiptap-editor/components/rich-content-adapter.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/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/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/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/headings-dropdown-utils.js +13 -8
- package/dist/es/_shared/headings-dropdown-utils.js.map +2 -2
- 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/memo-last.js +13 -0
- package/dist/es/_shared/memo-last.js.map +7 -0
- 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/create-url-link-button.js +6 -1
- package/dist/es/_shared/plugin-toolbar/url-link-button/create-url-link-button.js.map +2 -2
- 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/styles/general-scss.js +20 -20
- package/dist/es/editor-common/statics/styles/general-scss.js.map +1 -1
- 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/editor.js +3 -1
- package/dist/es/plugin-ai/editor.js.map +2 -2
- 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/default-styles-scss.js +3 -3
- package/dist/es/plugin-button/statics/styles/default-styles-scss.js.map +1 -1
- package/dist/es/plugin-button/statics/styles/settings-component-scss.js +3 -3
- package/dist/es/plugin-button/statics/styles/settings-component-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-font-family/editor.js +15 -16
- package/dist/es/plugin-font-family/editor.js.map +2 -2
- package/dist/es/plugin-gallery/media/normalize-gallery-items.js +6 -0
- package/dist/es/plugin-gallery/media/normalize-gallery-items.js.map +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/canonicalize-masonry-settings.js +7 -4
- package/dist/es/plugin-gallery/modals/settings/layout-settings/canonicalize-masonry-settings.js.map +2 -2
- 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/layout-controls-section.js.map +2 -2
- 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/collage-groups.js +127 -0
- package/dist/es/plugin-gallery/viewer/collage-groups.js.map +7 -0
- package/dist/es/plugin-gallery/viewer/collage-rows.js +341 -0
- package/dist/es/plugin-gallery/viewer/collage-rows.js.map +7 -0
- package/dist/es/plugin-gallery/viewer/collage-styles.js +53 -0
- package/dist/es/plugin-gallery/viewer/collage-styles.js.map +7 -0
- package/dist/es/plugin-gallery/viewer/gallery-renderer.js +3 -1
- package/dist/es/plugin-gallery/viewer/gallery-renderer.js.map +2 -2
- package/dist/es/plugin-gallery/viewer/layout-collage-scss.js +11 -0
- package/dist/es/plugin-gallery/viewer/layout-collage-scss.js.map +7 -0
- package/dist/es/plugin-gallery/viewer/layout-collage.js +235 -0
- package/dist/es/plugin-gallery/viewer/layout-collage.js.map +7 -0
- 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/resolve-gallery-layout.js +14 -4
- package/dist/es/plugin-gallery/viewer/resolve-gallery-layout.js.map +2 -2
- 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/get-current-headings-icon.js +8 -2
- package/dist/es/plugin-headings/dropdown/get-current-headings-icon.js.map +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/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/get-text-color-text-buttons.js +11 -10
- package/dist/es/plugin-text-color/get-text-color-text-buttons.js.map +2 -2
- package/dist/es/plugin-text-color/sketch/text-highlight-button.js +78 -71
- package/dist/es/plugin-text-color/sketch/text-highlight-button.js.map +2 -2
- 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/font-size/font-size.js +3 -6
- package/dist/es/ricos-common-plugins/font-size/font-size.js.map +2 -2
- 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-content/converters/plainText/toPlainText/convert-nodes.js +33 -12
- package/dist/es/ricos-content/converters/plainText/toPlainText/convert-nodes.js.map +2 -2
- 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-modals/components/floating.js +6 -2
- package/dist/es/ricos-modals/components/floating.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-modals/utils/modal-renderer.js +4 -2
- package/dist/es/ricos-modals/utils/modal-renderer.js.map +2 -2
- package/dist/es/ricos-modals/utils/reference-host.js +12 -0
- package/dist/es/ricos-modals/utils/reference-host.js.map +7 -0
- 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-styles/styles.js +13 -0
- package/dist/es/ricos-styles/styles.js.map +2 -2
- 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 +8 -1
- package/dist/es/tiptap-editor/components/rich-content-adapter.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/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/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/headings-dropdown-utils.d.ts +8 -0
- package/dist/src/_shared/headings-dropdown-utils.d.ts.map +1 -1
- package/dist/src/_shared/memo-last.d.ts +7 -0
- package/dist/src/_shared/memo-last.d.ts.map +1 -0
- package/dist/src/_shared/plugin-toolbar/url-link-button/create-url-link-button.d.ts.map +1 -1
- package/dist/src/plugin-ai/editor.d.ts.map +1 -1
- package/dist/src/plugin-font-family/editor.d.ts.map +1 -1
- package/dist/src/plugin-gallery/media/normalize-gallery-items.d.ts +6 -0
- package/dist/src/plugin-gallery/media/normalize-gallery-items.d.ts.map +1 -1
- package/dist/src/plugin-gallery/modals/settings/layout-settings/canonicalize-masonry-settings.d.ts.map +1 -1
- package/dist/src/plugin-gallery/modals/settings/layout-settings/layout-controls-section/layout-controls-section.d.ts.map +1 -1
- package/dist/src/plugin-gallery/viewer/collage-groups.d.ts +19 -0
- package/dist/src/plugin-gallery/viewer/collage-groups.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/collage-groups.spec.d.ts +2 -0
- package/dist/src/plugin-gallery/viewer/collage-groups.spec.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/collage-rows.d.ts +34 -0
- package/dist/src/plugin-gallery/viewer/collage-rows.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/collage-rows.spec.d.ts +2 -0
- package/dist/src/plugin-gallery/viewer/collage-rows.spec.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/collage-styles.d.ts +23 -0
- package/dist/src/plugin-gallery/viewer/collage-styles.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/collage-styles.spec.d.ts +2 -0
- package/dist/src/plugin-gallery/viewer/collage-styles.spec.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/gallery-renderer.d.ts.map +1 -1
- package/dist/src/plugin-gallery/viewer/layout-collage.d.ts +16 -0
- package/dist/src/plugin-gallery/viewer/layout-collage.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/layout-collage.spec.d.ts +2 -0
- package/dist/src/plugin-gallery/viewer/layout-collage.spec.d.ts.map +1 -0
- package/dist/src/plugin-gallery/viewer/resolve-gallery-layout.d.ts +6 -0
- package/dist/src/plugin-gallery/viewer/resolve-gallery-layout.d.ts.map +1 -1
- package/dist/src/plugin-headings/dropdown/get-current-headings-icon.d.ts.map +1 -1
- package/dist/src/plugin-text-color/get-text-color-text-buttons.d.ts.map +1 -1
- package/dist/src/plugin-text-color/sketch/text-highlight-button.d.ts.map +1 -1
- package/dist/src/plugin-text-color/sketch/text-highlight-button.spec.d.ts +2 -0
- package/dist/src/plugin-text-color/sketch/text-highlight-button.spec.d.ts.map +1 -0
- package/dist/src/ricos-common-plugins/font-size/font-size.d.ts.map +1 -1
- package/dist/src/ricos-content/converters/plainText/toPlainText/convert-nodes.d.ts.map +1 -1
- package/dist/src/ricos-content/normalization/Fixtures/text-wrap-content-state.d.ts +1 -1
- package/dist/src/ricos-modals/components/floating.d.ts.map +1 -1
- package/dist/src/ricos-modals/utils/modal-renderer.d.ts.map +1 -1
- package/dist/src/ricos-modals/utils/reference-host.d.ts +8 -0
- package/dist/src/ricos-modals/utils/reference-host.d.ts.map +1 -0
- package/dist/src/ricos-schema/next-schema/version.d.ts +1 -1
- package/dist/src/ricos-styles/styles.d.ts +2 -1
- package/dist/src/ricos-styles/styles.d.ts.map +1 -1
- package/dist/src/ricos-styles/tests/test-cases.d.ts +5 -5
- package/dist/src/ricos-types/next/styles.d.ts +3 -1
- package/dist/src/ricos-types/next/styles.d.ts.map +1 -1
- package/dist/src/ricos-types/styles.d.ts +3 -1
- package/dist/src/ricos-types/styles.d.ts.map +1 -1
- package/dist/src/ricos-types/toolbar-types.d.ts +10 -0
- package/dist/src/ricos-types/toolbar-types.d.ts.map +1 -1
- package/dist/src/tiptap-editor/components/rich-content-adapter.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var collage_rows_exports = {};
|
|
20
|
+
__export(collage_rows_exports, {
|
|
21
|
+
getRowsRegimes: () => getRowsRegimes,
|
|
22
|
+
layoutRows: () => layoutRows
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(collage_rows_exports);
|
|
25
|
+
const ROWS_GROUP_TYPES = {
|
|
26
|
+
lll: ["1", "2v", "3t", "3b"],
|
|
27
|
+
llp: ["1", "2v", "3t"],
|
|
28
|
+
lpl: ["1", "2v", "3t", "3b"],
|
|
29
|
+
pll: ["1", "2v", "3b"],
|
|
30
|
+
lpp: ["1", "2v", "3t"],
|
|
31
|
+
plp: ["1", "2v"],
|
|
32
|
+
ppl: ["1", "3b"],
|
|
33
|
+
ppp: ["1", "2h"]
|
|
34
|
+
};
|
|
35
|
+
const GROUP_SIZE = { "1": 1, "2h": 2, "2v": 2, "3t": 3, "3b": 3 };
|
|
36
|
+
const LANDSCAPE_MIN_RATIO = 0.999;
|
|
37
|
+
const MIN_ITEM_SIZE = 120;
|
|
38
|
+
const SIZE_TOLERANCE = 1e-6;
|
|
39
|
+
const INCOMPLETE_STRIP_STRETCH = 1.5;
|
|
40
|
+
const MIN_JUSTIFIED_SIZE = 30;
|
|
41
|
+
const MIN_GALLERY = 160;
|
|
42
|
+
const MAX_GALLERY = 4e3;
|
|
43
|
+
const FAR_GALLERY = 1e9;
|
|
44
|
+
const PROBE_FACTOR = 1.1;
|
|
45
|
+
const REGIME_PRECISION = 0.25;
|
|
46
|
+
const PREFERRED_GALLERIES = [740, 360, 1e3, 1300, 1700];
|
|
47
|
+
const ratioOf = (item) => item.width / item.height;
|
|
48
|
+
const getGroupWidth = (type, [a, b, c], height, spacing) => {
|
|
49
|
+
switch (type) {
|
|
50
|
+
case "1":
|
|
51
|
+
return height * a + spacing * (1 - a);
|
|
52
|
+
case "2h":
|
|
53
|
+
return height * (a + b) + spacing * (2 - a - b);
|
|
54
|
+
case "2v": {
|
|
55
|
+
const ratio = 1 / (1 / a + 1 / b);
|
|
56
|
+
return height * ratio + spacing * (1 - 2 * ratio);
|
|
57
|
+
}
|
|
58
|
+
case "3t":
|
|
59
|
+
case "3b": {
|
|
60
|
+
const pair = type === "3t" ? b + c : a + b;
|
|
61
|
+
const large = type === "3t" ? a : c;
|
|
62
|
+
const ratio = 1 / (1 / pair + 1 / large);
|
|
63
|
+
return height * ratio + spacing * (2 / pair + 1 / large - 2) * ratio;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const getItemRects = (type, ratios, width, height, spacing) => {
|
|
68
|
+
const [a, b, c] = ratios;
|
|
69
|
+
const natural = getGroupWidth(type, ratios, height, spacing);
|
|
70
|
+
switch (type) {
|
|
71
|
+
case "1":
|
|
72
|
+
return [[0, 0, width - spacing, height - spacing]];
|
|
73
|
+
case "2v": {
|
|
74
|
+
const bottomHeight = (natural - spacing) / b;
|
|
75
|
+
return [
|
|
76
|
+
[0, 0, width - spacing, height - bottomHeight - 2 * spacing],
|
|
77
|
+
[0, height - bottomHeight - spacing, width - spacing, bottomHeight]
|
|
78
|
+
];
|
|
79
|
+
}
|
|
80
|
+
case "2h": {
|
|
81
|
+
const itemHeight = height - spacing;
|
|
82
|
+
const rightWidth = itemHeight * b;
|
|
83
|
+
return [
|
|
84
|
+
[0, 0, width - rightWidth - 2 * spacing, itemHeight],
|
|
85
|
+
[width - rightWidth - spacing, 0, rightWidth, itemHeight]
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
case "3t": {
|
|
89
|
+
const topHeight = (natural - spacing) / a;
|
|
90
|
+
const pairHeight = height - topHeight - 2 * spacing;
|
|
91
|
+
const rightWidth = pairHeight * c;
|
|
92
|
+
return [
|
|
93
|
+
[0, 0, width - spacing, topHeight],
|
|
94
|
+
[0, height - pairHeight - spacing, width - rightWidth - 2 * spacing, pairHeight],
|
|
95
|
+
[width - rightWidth - spacing, height - pairHeight - spacing, rightWidth, pairHeight]
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
case "3b": {
|
|
99
|
+
const bottomHeight = (natural - spacing) / c;
|
|
100
|
+
const pairHeight = height - bottomHeight - 2 * spacing;
|
|
101
|
+
const rightWidth = pairHeight * b;
|
|
102
|
+
return [
|
|
103
|
+
[0, 0, width - rightWidth - 2 * spacing, pairHeight],
|
|
104
|
+
[width - rightWidth - spacing, 0, rightWidth, pairHeight],
|
|
105
|
+
[0, height - bottomHeight - spacing, width - spacing, bottomHeight]
|
|
106
|
+
];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const getGroupType = (items, first, forcedSize, seed) => {
|
|
111
|
+
if (forcedSize === 1) {
|
|
112
|
+
return "1";
|
|
113
|
+
}
|
|
114
|
+
const orientations = items.slice(first, first + 3).map((item) => ratioOf(item) < LANDSCAPE_MIN_RATIO ? "p" : "l").join("");
|
|
115
|
+
const types = forcedSize === 2 ? ["1", "2v"] : ROWS_GROUP_TYPES[orientations];
|
|
116
|
+
const dense = types[types.length - 1].startsWith("3") ? types.slice(1) : types;
|
|
117
|
+
return dense[seed % dense.length];
|
|
118
|
+
};
|
|
119
|
+
const getGroup = (items, first, seed, rowHeight, spacing, singles) => {
|
|
120
|
+
const maxSize = singles.has(first) ? 1 : Math.min(3, items.length - first);
|
|
121
|
+
for (let forcedSize = maxSize; forcedSize > 1; forcedSize--) {
|
|
122
|
+
const type = getGroupType(items, first, forcedSize, seed);
|
|
123
|
+
const ratios2 = items.slice(first, first + GROUP_SIZE[type]).map(ratioOf);
|
|
124
|
+
const width = getGroupWidth(type, ratios2, rowHeight, spacing);
|
|
125
|
+
const fits = type === "1" || getItemRects(type, ratios2, width, rowHeight, spacing).every(
|
|
126
|
+
([, , itemWidth, itemHeight]) => Math.min(itemWidth, itemHeight) >= MIN_ITEM_SIZE - SIZE_TOLERANCE
|
|
127
|
+
);
|
|
128
|
+
if (fits) {
|
|
129
|
+
return { type, first, ratios: ratios2, ratio: width / rowHeight };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const ratios = [ratioOf(items[first])];
|
|
133
|
+
return {
|
|
134
|
+
type: "1",
|
|
135
|
+
first,
|
|
136
|
+
ratios,
|
|
137
|
+
ratio: getGroupWidth("1", ratios, rowHeight, spacing) / rowHeight
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
const isStripFull = (stripRatio, groupRatio, isLastGroup, gallery, rowHeight) => {
|
|
141
|
+
if (stripRatio === 0) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
const withGroup = gallery / (stripRatio + groupRatio) - rowHeight;
|
|
145
|
+
const withoutGroup = gallery / stripRatio - rowHeight;
|
|
146
|
+
const endsCloserWithout = Math.abs(withoutGroup) < Math.abs(withGroup);
|
|
147
|
+
const isFull = withoutGroup < 0 || withGroup < 0 && endsCloserWithout;
|
|
148
|
+
return isFull && (!isLastGroup || endsCloserWithout);
|
|
149
|
+
};
|
|
150
|
+
const layoutRows = (items, gallery, spacing, targetSize) => {
|
|
151
|
+
const rowHeight = Math.floor(targetSize) + Math.ceil(spacing);
|
|
152
|
+
const rects = [];
|
|
153
|
+
const keys = [];
|
|
154
|
+
const singles = /* @__PURE__ */ new Set();
|
|
155
|
+
const breaks = /* @__PURE__ */ new Set();
|
|
156
|
+
let top = 0;
|
|
157
|
+
let strip = [];
|
|
158
|
+
let stripRatio = 0;
|
|
159
|
+
let stripFirst = 0;
|
|
160
|
+
let first = 0;
|
|
161
|
+
const placeStrip = (height, justified) => {
|
|
162
|
+
let left = 0;
|
|
163
|
+
for (let index = 0; index < strip.length; index++) {
|
|
164
|
+
const group = strip[index];
|
|
165
|
+
const isLast = index === strip.length - 1;
|
|
166
|
+
const width = isLast && justified ? gallery - left : getGroupWidth(group.type, group.ratios, height, spacing);
|
|
167
|
+
const groupRects = getItemRects(group.type, group.ratios, width, height, spacing);
|
|
168
|
+
const collapses = justified && groupRects.some(
|
|
169
|
+
([, , itemWidth, itemHeight]) => Math.min(itemWidth, itemHeight) < MIN_JUSTIFIED_SIZE
|
|
170
|
+
);
|
|
171
|
+
if (collapses && group.type !== "1") {
|
|
172
|
+
singles.add(group.first);
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
const breakAt = index > 0 ? group.first : strip[index + 1]?.first;
|
|
176
|
+
if (collapses && breakAt !== void 0 && !breaks.has(breakAt)) {
|
|
177
|
+
breaks.add(breakAt);
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
if (collapses && strip.length === 1) {
|
|
181
|
+
const itemWidth = gallery - spacing;
|
|
182
|
+
rects[group.first] = [0, top, itemWidth, itemWidth / group.ratios[0]];
|
|
183
|
+
keys.push(`=${group.first}`);
|
|
184
|
+
top += itemWidth / group.ratios[0] + spacing;
|
|
185
|
+
return true;
|
|
186
|
+
}
|
|
187
|
+
groupRects.forEach(([x, y, itemWidth, itemHeight], offset) => {
|
|
188
|
+
rects[group.first + offset] = [left + x, top + y, itemWidth, itemHeight];
|
|
189
|
+
});
|
|
190
|
+
left += width;
|
|
191
|
+
}
|
|
192
|
+
keys.push(`${strip.map((group) => `${group.type}${group.first}`).join()}${justified ? "" : "!"}`);
|
|
193
|
+
top += height;
|
|
194
|
+
return true;
|
|
195
|
+
};
|
|
196
|
+
const closeStrip = (height, justified) => {
|
|
197
|
+
if (!placeStrip(height, justified)) {
|
|
198
|
+
first = stripFirst;
|
|
199
|
+
}
|
|
200
|
+
strip = [];
|
|
201
|
+
stripRatio = 0;
|
|
202
|
+
stripFirst = first;
|
|
203
|
+
};
|
|
204
|
+
while (first < items.length) {
|
|
205
|
+
const seed = keys.length + 1 + strip.length + 1;
|
|
206
|
+
const group = getGroup(items, first, seed, rowHeight, spacing, singles);
|
|
207
|
+
const isLastGroup = first + GROUP_SIZE[group.type] >= items.length;
|
|
208
|
+
if (strip.length > 0 && (breaks.has(first) || isStripFull(stripRatio, group.ratio, isLastGroup, gallery, rowHeight))) {
|
|
209
|
+
closeStrip(gallery / stripRatio, true);
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
strip.push(group);
|
|
213
|
+
stripRatio += group.ratio;
|
|
214
|
+
first += GROUP_SIZE[group.type];
|
|
215
|
+
if (first >= items.length) {
|
|
216
|
+
const justifiedHeight = gallery / stripRatio;
|
|
217
|
+
const isIncomplete = rowHeight * INCOMPLETE_STRIP_STRETCH < justifiedHeight;
|
|
218
|
+
closeStrip(isIncomplete ? rowHeight : justifiedHeight, !isIncomplete);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return { rects, key: keys.join("|") };
|
|
222
|
+
};
|
|
223
|
+
const toLinear = (atLow, atHigh, low, high) => {
|
|
224
|
+
const a = (atHigh - atLow) / (high - low);
|
|
225
|
+
return [a, atLow - a * low];
|
|
226
|
+
};
|
|
227
|
+
const valueAt = ([a, b], gallery) => a * gallery + b;
|
|
228
|
+
const getProbes = () => {
|
|
229
|
+
const probes = [];
|
|
230
|
+
for (let gallery = MIN_GALLERY; gallery < MAX_GALLERY; gallery *= PROBE_FACTOR) {
|
|
231
|
+
probes.push(gallery);
|
|
232
|
+
}
|
|
233
|
+
return [...probes, MAX_GALLERY, FAR_GALLERY];
|
|
234
|
+
};
|
|
235
|
+
const MAX_REPAIRS = 4;
|
|
236
|
+
const getStackedRects = (items, spacing) => {
|
|
237
|
+
let y = [0, 0];
|
|
238
|
+
return items.map((item) => {
|
|
239
|
+
const ratio = ratioOf(item);
|
|
240
|
+
const height = [1 / ratio, -spacing / ratio];
|
|
241
|
+
const rect = { x: [0, 0], y, width: [1, -spacing], height };
|
|
242
|
+
y = [y[0] + height[0], y[1] + height[1] + spacing];
|
|
243
|
+
return rect;
|
|
244
|
+
});
|
|
245
|
+
};
|
|
246
|
+
const getRowsRegimes = (items, spacing, targetSize, maxRegimes) => {
|
|
247
|
+
const keyAt = (gallery) => layoutRows(items, gallery, spacing, targetSize).key;
|
|
248
|
+
const narrowDown = (outside, inside, key) => {
|
|
249
|
+
if (keyAt(outside) === key) {
|
|
250
|
+
return outside;
|
|
251
|
+
}
|
|
252
|
+
let [low, high] = [outside, inside];
|
|
253
|
+
while (Math.abs(high - low) > REGIME_PRECISION) {
|
|
254
|
+
const middle = (low + high) / 2;
|
|
255
|
+
if (keyAt(middle) === key) {
|
|
256
|
+
high = middle;
|
|
257
|
+
} else {
|
|
258
|
+
low = middle;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return high;
|
|
262
|
+
};
|
|
263
|
+
const regimeAround = (gallery, below, above) => {
|
|
264
|
+
const key = keyAt(gallery);
|
|
265
|
+
const start = narrowDown(below, gallery, key);
|
|
266
|
+
const end = narrowDown(above, gallery, key);
|
|
267
|
+
const margin = Math.min(REGIME_PRECISION, (end - start) / 4);
|
|
268
|
+
const [low, high] = end - start > 0 ? [start + margin, end - margin] : [start, start];
|
|
269
|
+
const atLow = layoutRows(items, low, spacing, targetSize).rects;
|
|
270
|
+
const atHigh = high > low ? layoutRows(items, high, spacing, targetSize).rects : atLow;
|
|
271
|
+
return {
|
|
272
|
+
start,
|
|
273
|
+
end,
|
|
274
|
+
rects: atLow.map((rect, item) => {
|
|
275
|
+
const [x, y, width, height] = rect.map(
|
|
276
|
+
(value, coordinate) => high > low ? toLinear(value, atHigh[item][coordinate], low, high) : [0, value]
|
|
277
|
+
);
|
|
278
|
+
return { x, y, width, height };
|
|
279
|
+
})
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
const fitsOver = ({ start, end, rects }, to) => rects.every(
|
|
283
|
+
({ x, width, height }) => [start, to].every((gallery) => {
|
|
284
|
+
const floorOf = (size) => Math.min(MIN_JUSTIFIED_SIZE, valueAt(size, start), valueAt(size, end)) - REGIME_PRECISION;
|
|
285
|
+
return valueAt(width, gallery) >= floorOf(width) && valueAt(height, gallery) >= floorOf(height) && valueAt(x, gallery) + valueAt(width, gallery) <= gallery - spacing + REGIME_PRECISION;
|
|
286
|
+
})
|
|
287
|
+
);
|
|
288
|
+
const probes = getProbes();
|
|
289
|
+
const runs = probes.reduce((found, gallery, index) => {
|
|
290
|
+
const key = keyAt(gallery);
|
|
291
|
+
const last = found[found.length - 1];
|
|
292
|
+
if (last?.key === key) {
|
|
293
|
+
last.last = index;
|
|
294
|
+
} else {
|
|
295
|
+
found.push({ key, first: index, last: index });
|
|
296
|
+
}
|
|
297
|
+
return found;
|
|
298
|
+
}, []);
|
|
299
|
+
const regimeOfRun = (index) => {
|
|
300
|
+
const run = runs[index];
|
|
301
|
+
return regimeAround(
|
|
302
|
+
probes[run.first],
|
|
303
|
+
probes[Math.max(0, run.first - 1)],
|
|
304
|
+
probes[Math.min(probes.length - 1, run.last + 1)]
|
|
305
|
+
);
|
|
306
|
+
};
|
|
307
|
+
const runAt = (gallery) => Math.max(
|
|
308
|
+
0,
|
|
309
|
+
runs.findIndex((run) => probes[run.last] >= gallery)
|
|
310
|
+
);
|
|
311
|
+
const keptRuns = /* @__PURE__ */ new Set([0, runs.length - 1]);
|
|
312
|
+
const slots = maxRegimes + (runs[runs.length - 1].first === probes.length - 1 ? 1 : 0);
|
|
313
|
+
PREFERRED_GALLERIES.map(runAt).forEach((index) => {
|
|
314
|
+
if (keptRuns.size < slots) {
|
|
315
|
+
keptRuns.add(index);
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
const kept = [...keptRuns].sort((a, b) => a - b).map(regimeOfRun);
|
|
319
|
+
const stacked = getStackedRects(items, spacing);
|
|
320
|
+
let repairs = 0;
|
|
321
|
+
for (let index = 0; index < kept.length - 1; ) {
|
|
322
|
+
const [regime, next] = [kept[index], kept[index + 1]];
|
|
323
|
+
if (fitsOver(regime, next.start - REGIME_PRECISION) || next.start - regime.end < 2 * REGIME_PRECISION) {
|
|
324
|
+
index++;
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
if (repairs >= MAX_REPAIRS) {
|
|
328
|
+
kept.splice(index + 1, 0, { start: regime.end, end: next.start, rects: stacked });
|
|
329
|
+
index += 2;
|
|
330
|
+
continue;
|
|
331
|
+
}
|
|
332
|
+
repairs++;
|
|
333
|
+
kept.splice(index + 1, 0, regimeAround((regime.end + next.start) / 2, regime.end, next.start));
|
|
334
|
+
}
|
|
335
|
+
const widest = kept[kept.length - 1];
|
|
336
|
+
const holdsBeyond = widest.rects.every(
|
|
337
|
+
({ x, width, height }) => width[0] >= -SIZE_TOLERANCE && height[0] >= -SIZE_TOLERANCE && x[0] + width[0] <= 1 + SIZE_TOLERANCE
|
|
338
|
+
);
|
|
339
|
+
if (!holdsBeyond || !fitsOver(widest, widest.end)) {
|
|
340
|
+
kept.push({ start: widest.end, end: Infinity, rects: stacked });
|
|
341
|
+
}
|
|
342
|
+
const narrowest = kept[0];
|
|
343
|
+
const narrowestChecked = Math.min(spacing + MIN_JUSTIFIED_SIZE, narrowest.start);
|
|
344
|
+
const holdsAt = (gallery) => narrowest.rects.every(
|
|
345
|
+
({ x, width, height }) => valueAt(width, gallery) >= -REGIME_PRECISION && valueAt(height, gallery) >= -REGIME_PRECISION && valueAt(x, gallery) + valueAt(width, gallery) <= gallery - spacing + REGIME_PRECISION
|
|
346
|
+
);
|
|
347
|
+
let stackedBelow = 0;
|
|
348
|
+
if (!holdsAt(narrowestChecked)) {
|
|
349
|
+
let [low, high] = [narrowestChecked, narrowest.start];
|
|
350
|
+
while (high - low > REGIME_PRECISION) {
|
|
351
|
+
const middle = (low + high) / 2;
|
|
352
|
+
[low, high] = holdsAt(middle) ? [low, middle] : [middle, high];
|
|
353
|
+
}
|
|
354
|
+
stackedBelow = high;
|
|
355
|
+
}
|
|
356
|
+
return kept.map((regime, position) => ({
|
|
357
|
+
minGallery: position === 0 ? stackedBelow : regime.start,
|
|
358
|
+
rects: regime.rects
|
|
359
|
+
}));
|
|
360
|
+
};
|
|
361
|
+
//# sourceMappingURL=collage-rows.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/plugin-gallery/viewer/collage-rows.ts"],
|
|
4
|
+
"sourcesContent": ["import type { NormalizedGalleryItem } from '../media/normalize-gallery-items.js';\n\n// A port of ProGallery's Rows Collage layout (pro-layouts 5, MIT): groups of\n// up to three items fill strips across the gallery, each strip justified to\n// the gallery width unless it is the last one and would grow too tall.\n//\n// Within a range of gallery widths where the strips and groups stay the same,\n// every item's position and size are linear in the gallery width, so\n// `layout-collage.scss` can lay them out exactly from coefficients alone.\n\n/** `value = a × gallery + b` in px, `gallery` being the width plus spacing. */\nexport type LinearSize = [a: number, b: number];\n\nexport type RowsRect = { x: LinearSize; y: LinearSize; width: LinearSize; height: LinearSize };\n\n/** A layout from a gallery width (plus spacing) up, until the next regime's. */\nexport type RowsRegime = { minGallery: number; rects: RowsRect[] };\n\ntype GroupType = '1' | '2h' | '2v' | '3t' | '3b';\n\n// ProGallery's group types for Rows by the orientations of the next three\n// items, without the types its Collage did not allow.\nconst ROWS_GROUP_TYPES: Record<string, GroupType[]> = {\n lll: ['1', '2v', '3t', '3b'],\n llp: ['1', '2v', '3t'],\n lpl: ['1', '2v', '3t', '3b'],\n pll: ['1', '2v', '3b'],\n lpp: ['1', '2v', '3t'],\n plp: ['1', '2v'],\n ppl: ['1', '3b'],\n ppp: ['1', '2h'],\n};\n\nconst GROUP_SIZE: Record<GroupType, number> = { '1': 1, '2h': 2, '2v': 2, '3t': 3, '3b': 3 };\n\nconst LANDSCAPE_MIN_RATIO = 0.999;\nconst MIN_ITEM_SIZE = 120;\n// Floating-point headroom, so an item exactly at the minimum keeps fitting.\nconst SIZE_TOLERANCE = 1e-6;\n\n// A last strip may stay narrower than the gallery once justifying it would\n// make it taller than this many times the target row height.\nconst INCOMPLETE_STRIP_STRETCH = 1.5;\n\n// Justifying a strip resizes groups that fit at the target row height; one\n// whose item would shrink below this size is split into singles instead.\n// ProGallery let such items collapse to 1px.\nconst MIN_JUSTIFIED_SIZE = 30;\n\n// Gallery widths, plus spacing, probed for regimes, each this factor apart,\n// and the precision each change between two probes is then narrowed down to.\n// A regime narrower than the probes' spacing can go unnoticed.\nconst MIN_GALLERY = 160;\nconst MAX_GALLERY = 4000;\n// Far enough that every gallery is a single strip kept at the target row\n// height, whose layout no longer changes with the width: the last probe, so\n// the widest regime holds at any width.\nconst FAR_GALLERY = 1e9;\nconst PROBE_FACTOR = 1.1;\nconst REGIME_PRECISION = 0.25;\n\n// Widths most worth keeping exact when a gallery has more regimes than the\n// layout can switch between, most important first: content columns, phones\n// and wide pages.\nconst PREFERRED_GALLERIES = [740, 360, 1000, 1300, 1700];\n\ntype Rect = [x: number, y: number, width: number, height: number];\n\ntype Group = { type: GroupType; first: number; ratios: number[]; ratio: number };\n\nconst ratioOf = (item: NormalizedGalleryItem) => item.width / item.height;\n\n// The group's width at a given height, by ProGallery's Group formulas.\nconst getGroupWidth = (type: GroupType, [a, b, c]: number[], height: number, spacing: number) => {\n switch (type) {\n case '1':\n return height * a + spacing * (1 - a);\n case '2h':\n return height * (a + b) + spacing * (2 - a - b);\n case '2v': {\n const ratio = 1 / (1 / a + 1 / b);\n return height * ratio + spacing * (1 - 2 * ratio);\n }\n case '3t':\n case '3b': {\n const pair = type === '3t' ? b + c : a + b;\n const large = type === '3t' ? a : c;\n const ratio = 1 / (1 / pair + 1 / large);\n return height * ratio + spacing * (2 / pair + 1 / large - 2) * ratio;\n }\n }\n};\n\n// Item rects within a group `height` tall, as ProGallery sized and pinned\n// them: at the group's natural width for that height, then stretched to\n// `width` (the remainder of a justified strip), which only widens items.\nconst getItemRects = (\n type: GroupType,\n ratios: number[],\n width: number,\n height: number,\n spacing: number\n): Rect[] => {\n const [a, b, c] = ratios;\n const natural = getGroupWidth(type, ratios, height, spacing);\n switch (type) {\n case '1':\n return [[0, 0, width - spacing, height - spacing]];\n case '2v': {\n const bottomHeight = (natural - spacing) / b;\n return [\n [0, 0, width - spacing, height - bottomHeight - 2 * spacing],\n [0, height - bottomHeight - spacing, width - spacing, bottomHeight],\n ];\n }\n case '2h': {\n const itemHeight = height - spacing;\n const rightWidth = itemHeight * b;\n return [\n [0, 0, width - rightWidth - 2 * spacing, itemHeight],\n [width - rightWidth - spacing, 0, rightWidth, itemHeight],\n ];\n }\n case '3t': {\n const topHeight = (natural - spacing) / a;\n const pairHeight = height - topHeight - 2 * spacing;\n const rightWidth = pairHeight * c;\n return [\n [0, 0, width - spacing, topHeight],\n [0, height - pairHeight - spacing, width - rightWidth - 2 * spacing, pairHeight],\n [width - rightWidth - spacing, height - pairHeight - spacing, rightWidth, pairHeight],\n ];\n }\n case '3b': {\n const bottomHeight = (natural - spacing) / c;\n const pairHeight = height - bottomHeight - 2 * spacing;\n const rightWidth = pairHeight * b;\n return [\n [0, 0, width - rightWidth - 2 * spacing, pairHeight],\n [width - rightWidth - spacing, 0, rightWidth, pairHeight],\n [0, height - bottomHeight - spacing, width - spacing, bottomHeight],\n ];\n }\n }\n};\n\nconst getGroupType = (\n items: NormalizedGalleryItem[],\n first: number,\n forcedSize: number,\n seed: number\n): GroupType => {\n if (forcedSize === 1) {\n return '1';\n }\n const orientations = items\n .slice(first, first + 3)\n .map(item => (ratioOf(item) < LANDSCAPE_MIN_RATIO ? 'p' : 'l'))\n .join('');\n const types: GroupType[] = forcedSize === 2 ? ['1', '2v'] : ROWS_GROUP_TYPES[orientations];\n // ProGallery's 0.8 collage density dropped singles wherever a group of three\n // was possible.\n const dense = types[types.length - 1].startsWith('3') ? types.slice(1) : types;\n return dense[seed % dense.length];\n};\n\n// ProGallery's Rows group from `first`, sized at the target row height: picked\n// by its position in the strip and broken up into fewer items while any item\n// would fall below MIN_ITEM_SIZE. `singles` start groups of one regardless.\nconst getGroup = (\n items: NormalizedGalleryItem[],\n first: number,\n seed: number,\n rowHeight: number,\n spacing: number,\n singles: Set<number>\n): Group => {\n const maxSize = singles.has(first) ? 1 : Math.min(3, items.length - first);\n for (let forcedSize = maxSize; forcedSize > 1; forcedSize--) {\n const type = getGroupType(items, first, forcedSize, seed);\n const ratios = items.slice(first, first + GROUP_SIZE[type]).map(ratioOf);\n const width = getGroupWidth(type, ratios, rowHeight, spacing);\n const fits =\n type === '1' ||\n getItemRects(type, ratios, width, rowHeight, spacing).every(\n ([, , itemWidth, itemHeight]) =>\n Math.min(itemWidth, itemHeight) >= MIN_ITEM_SIZE - SIZE_TOLERANCE\n );\n if (fits) {\n return { type, first, ratios, ratio: width / rowHeight };\n }\n }\n const ratios = [ratioOf(items[first])];\n return {\n type: '1',\n first,\n ratios,\n ratio: getGroupWidth('1', ratios, rowHeight, spacing) / rowHeight,\n };\n};\n\n// Whether a strip should close before taking `group`: once it is shorter than\n// the target, or would end closer to it without the group than with it. The\n// gallery's last group joins a strip that is already too short unless it\n// ends closer to the target without it.\nconst isStripFull = (\n stripRatio: number,\n groupRatio: number,\n isLastGroup: boolean,\n gallery: number,\n rowHeight: number\n) => {\n if (stripRatio === 0) {\n return false;\n }\n const withGroup = gallery / (stripRatio + groupRatio) - rowHeight;\n const withoutGroup = gallery / stripRatio - rowHeight;\n const endsCloserWithout = Math.abs(withoutGroup) < Math.abs(withGroup);\n const isFull = withoutGroup < 0 || (withGroup < 0 && endsCloserWithout);\n return isFull && (!isLastGroup || endsCloserWithout);\n};\n\n/**\n * ProGallery's Rows Collage for a gallery `gallery` wide, one spacing\n * included: item rects and a key that changes whenever the strips do.\n */\nexport const layoutRows = (\n items: NormalizedGalleryItem[],\n gallery: number,\n spacing: number,\n targetSize: number\n) => {\n // ProGallery's target row height, which counts one spacing in.\n const rowHeight = Math.floor(targetSize) + Math.ceil(spacing);\n const rects: Rect[] = [];\n const keys: string[] = [];\n // Where justifying a strip would collapse an item, these change how it is\n // rebuilt: groups of one from `singles`, and new strips from `breaks`.\n const singles = new Set<number>();\n const breaks = new Set<number>();\n let top = 0;\n let strip: Group[] = [];\n let stripRatio = 0;\n let stripFirst = 0;\n let first = 0;\n\n // Places the strip's items, or adds the constraint that keeps an item from\n // collapsing and reports that the strip needs rebuilding.\n const placeStrip = (height: number, justified: boolean) => {\n let left = 0;\n for (let index = 0; index < strip.length; index++) {\n const group = strip[index];\n const isLast = index === strip.length - 1;\n const width =\n isLast && justified\n ? gallery - left\n : getGroupWidth(group.type, group.ratios, height, spacing);\n const groupRects = getItemRects(group.type, group.ratios, width, height, spacing);\n const collapses =\n justified &&\n groupRects.some(\n ([, , itemWidth, itemHeight]) => Math.min(itemWidth, itemHeight) < MIN_JUSTIFIED_SIZE\n );\n if (collapses && group.type !== '1') {\n singles.add(group.first);\n return false;\n }\n // A single shrinks in a strip holding too many groups, so the strip\n // breaks before it, or after it when it comes first.\n const breakAt = index > 0 ? group.first : strip[index + 1]?.first;\n if (collapses && breakAt !== undefined && !breaks.has(breakAt)) {\n breaks.add(breakAt);\n return false;\n }\n // Alone, it can still collapse where ProGallery's strip ratio, which\n // counts spacing in, outweighs the item's own: it then keeps its own.\n if (collapses && strip.length === 1) {\n const itemWidth = gallery - spacing;\n rects[group.first] = [0, top, itemWidth, itemWidth / group.ratios[0]];\n keys.push(`=${group.first}`);\n top += itemWidth / group.ratios[0] + spacing;\n return true;\n }\n groupRects.forEach(([x, y, itemWidth, itemHeight], offset) => {\n rects[group.first + offset] = [left + x, top + y, itemWidth, itemHeight];\n });\n left += width;\n }\n keys.push(`${strip.map(group => `${group.type}${group.first}`).join()}${justified ? '' : '!'}`);\n top += height;\n return true;\n };\n\n // Each rebuild adds a new single or break, so a strip is rebuilt at most\n // twice per item in it.\n const closeStrip = (height: number, justified: boolean) => {\n if (!placeStrip(height, justified)) {\n first = stripFirst;\n }\n strip = [];\n stripRatio = 0;\n stripFirst = first;\n };\n\n while (first < items.length) {\n // ProGallery seeded a Rows group by its strip and its place in that strip.\n const seed = keys.length + 1 + strip.length + 1;\n const group = getGroup(items, first, seed, rowHeight, spacing, singles);\n const isLastGroup = first + GROUP_SIZE[group.type] >= items.length;\n if (\n strip.length > 0 &&\n (breaks.has(first) || isStripFull(stripRatio, group.ratio, isLastGroup, gallery, rowHeight))\n ) {\n closeStrip(gallery / stripRatio, true);\n continue;\n }\n strip.push(group);\n stripRatio += group.ratio;\n first += GROUP_SIZE[group.type];\n if (first >= items.length) {\n const justifiedHeight = gallery / stripRatio;\n const isIncomplete = rowHeight * INCOMPLETE_STRIP_STRETCH < justifiedHeight;\n closeStrip(isIncomplete ? rowHeight : justifiedHeight, !isIncomplete);\n }\n }\n return { rects, key: keys.join('|') };\n};\n\nconst toLinear = (atLow: number, atHigh: number, low: number, high: number): LinearSize => {\n const a = (atHigh - atLow) / (high - low);\n return [a, atLow - a * low];\n};\n\nconst valueAt = ([a, b]: LinearSize, gallery: number) => a * gallery + b;\n\nconst getProbes = () => {\n const probes: number[] = [];\n for (let gallery = MIN_GALLERY; gallery < MAX_GALLERY; gallery *= PROBE_FACTOR) {\n probes.push(gallery);\n }\n return [...probes, MAX_GALLERY, FAR_GALLERY];\n};\n\ntype Run = { key: string; first: number; last: number };\n\ntype Regime = { start: number; end: number; rects: RowsRect[] };\n\n// Regimes added where a kept layout would otherwise stretch over widths where\n// it no longer fits; past these, the remaining such widths are stacked.\nconst MAX_REPAIRS = 4;\n\n// Each item on a strip of its own, which fits at any width: the last resort\n// for widths no few layouts can cover.\nconst getStackedRects = (items: NormalizedGalleryItem[], spacing: number): RowsRect[] => {\n let y: LinearSize = [0, 0];\n return items.map(item => {\n const ratio = ratioOf(item);\n const height: LinearSize = [1 / ratio, -spacing / ratio];\n const rect = { x: [0, 0] as LinearSize, y, width: [1, -spacing] as LinearSize, height };\n y = [y[0] + height[0], y[1] + height[1] + spacing];\n return rect;\n });\n};\n\n/**\n * The Collage's Rows layouts by gallery width (plus spacing), narrowest first.\n * Past `maxRegimes`, the narrowest and widest are kept, then those around\n * PREFERRED_GALLERIES, each stretching over the widths up to the next — and\n * more are kept where a stretched layout would shrink an item or overflow.\n * Below the first regime's `minGallery`, 0 unless the narrowest layout would\n * overflow there, the items stack.\n */\nexport const getRowsRegimes = (\n items: NormalizedGalleryItem[],\n spacing: number,\n targetSize: number,\n maxRegimes: number\n): RowsRegime[] => {\n const keyAt = (gallery: number) => layoutRows(items, gallery, spacing, targetSize).key;\n // Between a width laid out otherwise and a width laid out as `key`, the\n // width laid out as `key` closest to the former.\n const narrowDown = (outside: number, inside: number, key: string) => {\n if (keyAt(outside) === key) {\n return outside;\n }\n let [low, high] = [outside, inside];\n while (Math.abs(high - low) > REGIME_PRECISION) {\n const middle = (low + high) / 2;\n if (keyAt(middle) === key) {\n high = middle;\n } else {\n low = middle;\n }\n }\n return high;\n };\n\n // The regime laid out like `gallery`, found between two widths outside it.\n const regimeAround = (gallery: number, below: number, above: number): Regime => {\n const key = keyAt(gallery);\n const start = narrowDown(below, gallery, key);\n const end = narrowDown(above, gallery, key);\n // Sampled strictly inside the regime, where its own layout holds.\n const margin = Math.min(REGIME_PRECISION, (end - start) / 4);\n const [low, high] = end - start > 0 ? [start + margin, end - margin] : [start, start];\n const atLow = layoutRows(items, low, spacing, targetSize).rects;\n const atHigh = high > low ? layoutRows(items, high, spacing, targetSize).rects : atLow;\n return {\n start,\n end,\n rects: atLow.map((rect, item) => {\n const [x, y, width, height] = rect.map(\n (value, coordinate): LinearSize =>\n high > low ? toLinear(value, atHigh[item][coordinate], low, high) : [0, value]\n );\n return { x, y, width, height };\n }),\n };\n };\n\n // Every condition is linear in the width, so a layout that fits at both\n // ends of a range fits throughout: no item shrinks below what it has at\n // the regime's own ends (or MIN_JUSTIFIED_SIZE), and none overflows.\n const fitsOver = ({ start, end, rects }: Regime, to: number) =>\n rects.every(({ x, width, height }) =>\n [start, to].every(gallery => {\n const floorOf = (size: LinearSize) =>\n Math.min(MIN_JUSTIFIED_SIZE, valueAt(size, start), valueAt(size, end)) - REGIME_PRECISION;\n return (\n valueAt(width, gallery) >= floorOf(width) &&\n valueAt(height, gallery) >= floorOf(height) &&\n valueAt(x, gallery) + valueAt(width, gallery) <= gallery - spacing + REGIME_PRECISION\n );\n })\n );\n\n const probes = getProbes();\n const runs = probes.reduce<Run[]>((found, gallery, index) => {\n const key = keyAt(gallery);\n const last = found[found.length - 1];\n if (last?.key === key) {\n last.last = index;\n } else {\n found.push({ key, first: index, last: index });\n }\n return found;\n }, []);\n const regimeOfRun = (index: number) => {\n const run = runs[index];\n return regimeAround(\n probes[run.first],\n probes[Math.max(0, run.first - 1)],\n probes[Math.min(probes.length - 1, run.last + 1)]\n );\n };\n\n const runAt = (gallery: number) =>\n Math.max(\n 0,\n runs.findIndex(run => probes[run.last] >= gallery)\n );\n const keptRuns = new Set([0, runs.length - 1]);\n // A widest regime that begins only past the probed widths takes no slot.\n const slots = maxRegimes + (runs[runs.length - 1].first === probes.length - 1 ? 1 : 0);\n PREFERRED_GALLERIES.map(runAt).forEach(index => {\n if (keptRuns.size < slots) {\n keptRuns.add(index);\n }\n });\n const kept = [...keptRuns].sort((a, b) => a - b).map(regimeOfRun);\n const stacked = getStackedRects(items, spacing);\n let repairs = 0;\n\n // Where a kept layout no longer fits up to the next, the layout midway\n // into the widths past its own takes over there.\n for (let index = 0; index < kept.length - 1; ) {\n const [regime, next] = [kept[index], kept[index + 1]];\n if (\n fitsOver(regime, next.start - REGIME_PRECISION) ||\n next.start - regime.end < 2 * REGIME_PRECISION\n ) {\n index++;\n continue;\n }\n // Past the budget, the widths the layout no longer fits are stacked,\n // which fits anywhere, while every other width keeps its own layout.\n if (repairs >= MAX_REPAIRS) {\n kept.splice(index + 1, 0, { start: regime.end, end: next.start, rects: stacked });\n index += 2;\n continue;\n }\n repairs++;\n kept.splice(index + 1, 0, regimeAround((regime.end + next.start) / 2, regime.end, next.start));\n }\n // The widest regime extends indefinitely, so it must not shrink or overflow\n // anything as the width grows.\n const widest = kept[kept.length - 1];\n const holdsBeyond = widest.rects.every(\n ({ x, width, height }) =>\n width[0] >= -SIZE_TOLERANCE &&\n height[0] >= -SIZE_TOLERANCE &&\n x[0] + width[0] <= 1 + SIZE_TOLERANCE\n );\n if (!holdsBeyond || !fitsOver(widest, widest.end)) {\n kept.push({ start: widest.end, end: Infinity, rects: stacked });\n }\n // The narrowest regime, sampled from MIN_GALLERY only, holds below it unless\n // shrinking turns an item negative or overflows it; below where it would,\n // the items stack. Narrower than MIN_JUSTIFIED_SIZE, even stacked items are\n // slivers, so the check ends there.\n const narrowest = kept[0];\n const narrowestChecked = Math.min(spacing + MIN_JUSTIFIED_SIZE, narrowest.start);\n const holdsAt = (gallery: number) =>\n narrowest.rects.every(\n ({ x, width, height }) =>\n valueAt(width, gallery) >= -REGIME_PRECISION &&\n valueAt(height, gallery) >= -REGIME_PRECISION &&\n valueAt(x, gallery) + valueAt(width, gallery) <= gallery - spacing + REGIME_PRECISION\n );\n let stackedBelow = 0;\n if (!holdsAt(narrowestChecked)) {\n let [low, high] = [narrowestChecked, narrowest.start];\n while (high - low > REGIME_PRECISION) {\n const middle = (low + high) / 2;\n [low, high] = holdsAt(middle) ? [low, middle] : [middle, high];\n }\n stackedBelow = high;\n }\n return kept.map((regime, position) => ({\n minGallery: position === 0 ? stackedBelow : regime.start,\n rects: regime.rects,\n }));\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBA,MAAM,mBAAgD;AAAA,EACpD,KAAK,CAAC,KAAK,MAAM,MAAM,IAAI;AAAA,EAC3B,KAAK,CAAC,KAAK,MAAM,IAAI;AAAA,EACrB,KAAK,CAAC,KAAK,MAAM,MAAM,IAAI;AAAA,EAC3B,KAAK,CAAC,KAAK,MAAM,IAAI;AAAA,EACrB,KAAK,CAAC,KAAK,MAAM,IAAI;AAAA,EACrB,KAAK,CAAC,KAAK,IAAI;AAAA,EACf,KAAK,CAAC,KAAK,IAAI;AAAA,EACf,KAAK,CAAC,KAAK,IAAI;AACjB;AAEA,MAAM,aAAwC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE;AAE3F,MAAM,sBAAsB;AAC5B,MAAM,gBAAgB;AAEtB,MAAM,iBAAiB;AAI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oBAC7B,QAAQ,GAAG,OAAO,IAAI,QAAQ,OAAO,OAAO,KAAK,UAAU,UAAU;AAAA,EACzE;AACF,MAAI,eAAe;AACnB,MAAI,CAAC,QAAQ,gBAAgB,GAAG;AAC9B,QAAI,CAAC,KAAK,IAAI,IAAI,CAAC,kBAAkB,UAAU,KAAK;AACpD,WAAO,OAAO,MAAM,kBAAkB;AACpC,YAAM,UAAU,MAAM,QAAQ;AAC9B,OAAC,KAAK,IAAI,IAAI,QAAQ,MAAM,IAAI,CAAC,KAAK,MAAM,IAAI,CAAC,QAAQ,IAAI;AAAA,IAC/D;AACA,mBAAe;AAAA,EACjB;AACA,SAAO,KAAK,IAAI,CAAC,QAAQ,cAAc;AAAA,IACrC,YAAY,aAAa,IAAI,eAAe,OAAO;AAAA,IACnD,OAAO,OAAO;AAAA,EAChB,EAAE;AACJ;",
|
|
6
|
+
"names": ["ratios"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var collage_styles_exports = {};
|
|
20
|
+
__export(collage_styles_exports, {
|
|
21
|
+
COLLAGE_SCOPE_ATTRIBUTE: () => COLLAGE_SCOPE_ATTRIBUTE,
|
|
22
|
+
getCollageStyles: () => getCollageStyles
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(collage_styles_exports);
|
|
25
|
+
var import_build_responsive_css = require("./../../_shared/build-responsive-css.js");
|
|
26
|
+
var import_gallery_image_sizes = require("./gallery-image-sizes.js");
|
|
27
|
+
const COLLAGE_SCOPE_ATTRIBUTE = "data-ricos-collage";
|
|
28
|
+
const FALLBACK_WIDTH = 760;
|
|
29
|
+
const toDeclarations = (declarations) => Object.entries(declarations).map(([property, value]) => `${property}: ${value};`).join(" ");
|
|
30
|
+
const toQuery = (minWidth, nextMinWidth) => [
|
|
31
|
+
minWidth > 0 && `(min-width: ${(0, import_gallery_image_sizes.roundCssNumber)(minWidth)}px)`,
|
|
32
|
+
nextMinWidth !== void 0 && `(not (min-width: ${(0, import_gallery_image_sizes.roundCssNumber)(nextMinWidth)}px))`
|
|
33
|
+
].filter(Boolean).join(" and ");
|
|
34
|
+
const toScope = (text) => {
|
|
35
|
+
let hash = 2166136261;
|
|
36
|
+
for (let index = 0; index < text.length; index++) {
|
|
37
|
+
hash = Math.imul(hash ^ text.charCodeAt(index), 16777619) >>> 0;
|
|
38
|
+
}
|
|
39
|
+
return `c${hash.toString(36)}`;
|
|
40
|
+
};
|
|
41
|
+
const mergeRanges = (ranges) => [...ranges].sort((a, b) => a.minWidth - b.minWidth).reduce((merged, range) => {
|
|
42
|
+
const last = merged[merged.length - 1];
|
|
43
|
+
if (!last || toDeclarations(last.declarations) !== toDeclarations(range.declarations)) {
|
|
44
|
+
merged.push(range);
|
|
45
|
+
}
|
|
46
|
+
return merged;
|
|
47
|
+
}, []);
|
|
48
|
+
const getCollageStyles = (targets) => {
|
|
49
|
+
const merged = targets.map(({ className, ranges }) => ({
|
|
50
|
+
className,
|
|
51
|
+
ranges: mergeRanges(ranges)
|
|
52
|
+
}));
|
|
53
|
+
const scope = toScope(JSON.stringify(merged));
|
|
54
|
+
const css = merged.flatMap(({ className, ranges }) => {
|
|
55
|
+
if (ranges.length === 0) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
const selector = `[${COLLAGE_SCOPE_ATTRIBUTE}=${scope}] .${className}`;
|
|
59
|
+
const base = ranges.reduce(
|
|
60
|
+
(found, range) => range.minWidth <= FALLBACK_WIDTH ? range : found
|
|
61
|
+
);
|
|
62
|
+
return [
|
|
63
|
+
`${selector} {${toDeclarations(base.declarations)}}`,
|
|
64
|
+
...ranges.length > 1 ? ranges.map(
|
|
65
|
+
(range, index) => (0, import_build_responsive_css.buildResponsiveCss)(toQuery(range.minWidth, ranges[index + 1]?.minWidth), [
|
|
66
|
+
{ selector, declarations: toDeclarations(range.declarations) }
|
|
67
|
+
])
|
|
68
|
+
) : []
|
|
69
|
+
];
|
|
70
|
+
}).join("\n");
|
|
71
|
+
return { scope, css };
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=collage-styles.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/plugin-gallery/viewer/collage-styles.ts"],
|
|
4
|
+
"sourcesContent": ["import { buildResponsiveCss } from './../../_shared/build-responsive-css.js';\n\nimport { roundCssNumber } from './gallery-image-sizes.js';\n\ntype Declarations = Record<string, string>;\n\n/** Declarations from a gallery width up, until the next range's. */\nexport type CollageRange = { minWidth: number; declarations: Declarations };\n\n/** Ranges for the Collage's list and for its cells, by class name. */\nexport type CollageTargets = { className: string; ranges: CollageRange[] }[];\n\n// The scope attribute's value is a hash of the rules, so two galleries share a\n// scope only when their rules are identical and style both alike.\nexport const COLLAGE_SCOPE_ATTRIBUTE = 'data-ricos-collage';\n\n// The base layout, which also serves browsers without size container queries,\n// is that of a typical content width.\nconst FALLBACK_WIDTH = 760;\n\n// Rendered as a `<style>` text child, which the server renderer escapes, so the\n// rules must not contain `\"`, `'`, `<`, `>` or `&` (see `node-animations.tsx`).\nconst toDeclarations = (declarations: Declarations) =>\n Object.entries(declarations)\n .map(([property, value]) => `${property}: ${value};`)\n .join(' ');\n\n// A range ends exactly where the next begins, at any fractional width, by\n// negating the next one's condition (range syntax would need `<`).\nconst toQuery = (minWidth: number, nextMinWidth?: number) =>\n [\n minWidth > 0 && `(min-width: ${roundCssNumber(minWidth)}px)`,\n nextMinWidth !== undefined && `(not (min-width: ${roundCssNumber(nextMinWidth)}px))`,\n ]\n .filter(Boolean)\n .join(' and ');\n\n// FNV-1a, in base 36. An attribute selector's unquoted value must not start\n// with a digit, hence the prefix.\nconst toScope = (text: string) => {\n let hash = 0x811c9dc5;\n for (let index = 0; index < text.length; index++) {\n hash = Math.imul(hash ^ text.charCodeAt(index), 0x01000193) >>> 0;\n }\n return `c${hash.toString(36)}`;\n};\n\n// Sorts the ranges and merges neighbours of the same declarations.\nconst mergeRanges = (ranges: CollageRange[]) =>\n [...ranges]\n .sort((a, b) => a.minWidth - b.minWidth)\n .reduce<CollageRange[]>((merged, range) => {\n const last = merged[merged.length - 1];\n if (!last || toDeclarations(last.declarations) !== toDeclarations(range.declarations)) {\n merged.push(range);\n }\n return merged;\n }, []);\n\n/**\n * The Collage's own breakpoints as scoped rules: each target's base\n * declarations, then a responsive rule per range of widths, which queries the\n * Collage root in container mode and the viewport in viewport mode.\n */\nexport const getCollageStyles = (targets: CollageTargets) => {\n const merged = targets.map(({ className, ranges }) => ({\n className,\n ranges: mergeRanges(ranges),\n }));\n const scope = toScope(JSON.stringify(merged));\n const css = merged\n .flatMap(({ className, ranges }) => {\n if (ranges.length === 0) {\n return [];\n }\n const selector = `[${COLLAGE_SCOPE_ATTRIBUTE}=${scope}] .${className}`;\n const base = ranges.reduce((found, range) =>\n range.minWidth <= FALLBACK_WIDTH ? range : found\n );\n return [\n `${selector} {${toDeclarations(base.declarations)}}`,\n ...(ranges.length > 1\n ? ranges.map((range, index) =>\n buildResponsiveCss(toQuery(range.minWidth, ranges[index + 1]?.minWidth), [\n { selector, declarations: toDeclarations(range.declarations) },\n ])\n )\n : []),\n ];\n })\n .join('\\n');\n return { scope, css };\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAmC;AAEnC,iCAA+B;AAYxB,MAAM,0BAA0B;AAIvC,MAAM,iBAAiB;AAIvB,MAAM,iBAAiB,CAAC,iBACtB,OAAO,QAAQ,YAAY,EACxB,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM,GAAG,QAAQ,KAAK,KAAK,GAAG,EACnD,KAAK,GAAG;AAIb,MAAM,UAAU,CAAC,UAAkB,iBACjC;AAAA,EACE,WAAW,KAAK,mBAAe,2CAAe,QAAQ,CAAC;AAAA,EACvD,iBAAiB,UAAa,wBAAoB,2CAAe,YAAY,CAAC;AAChF,EACG,OAAO,OAAO,EACd,KAAK,OAAO;AAIjB,MAAM,UAAU,CAAC,SAAiB;AAChC,MAAI,OAAO;AACX,WAAS,QAAQ,GAAG,QAAQ,KAAK,QAAQ,SAAS;AAChD,WAAO,KAAK,KAAK,OAAO,KAAK,WAAW,KAAK,GAAG,QAAU,MAAM;AAAA,EAClE;AACA,SAAO,IAAI,KAAK,SAAS,EAAE,CAAC;AAC9B;AAGA,MAAM,cAAc,CAAC,WACnB,CAAC,GAAG,MAAM,EACP,KAAK,CAAC,GAAG,MAAM,EAAE,WAAW,EAAE,QAAQ,EACtC,OAAuB,CAAC,QAAQ,UAAU;AACzC,QAAM,OAAO,OAAO,OAAO,SAAS,CAAC;AACrC,MAAI,CAAC,QAAQ,eAAe,KAAK,YAAY,MAAM,eAAe,MAAM,YAAY,GAAG;AACrF,WAAO,KAAK,KAAK;AAAA,EACnB;AACA,SAAO;AACT,GAAG,CAAC,CAAC;AAOF,MAAM,mBAAmB,CAAC,YAA4B;AAC3D,QAAM,SAAS,QAAQ,IAAI,CAAC,EAAE,WAAW,OAAO,OAAO;AAAA,IACrD;AAAA,IACA,QAAQ,YAAY,MAAM;AAAA,EAC5B,EAAE;AACF,QAAM,QAAQ,QAAQ,KAAK,UAAU,MAAM,CAAC;AAC5C,QAAM,MAAM,OACT,QAAQ,CAAC,EAAE,WAAW,OAAO,MAAM;AAClC,QAAI,OAAO,WAAW,GAAG;AACvB,aAAO,CAAC;AAAA,IACV;AACA,UAAM,WAAW,IAAI,uBAAuB,IAAI,KAAK,MAAM,SAAS;AACpE,UAAM,OAAO,OAAO;AAAA,MAAO,CAAC,OAAO,UACjC,MAAM,YAAY,iBAAiB,QAAQ;AAAA,IAC7C;AACA,WAAO;AAAA,MACL,GAAG,QAAQ,KAAK,eAAe,KAAK,YAAY,CAAC;AAAA,MACjD,GAAI,OAAO,SAAS,IAChB,OAAO;AAAA,QAAI,CAAC,OAAO,cACjB,gDAAmB,QAAQ,MAAM,UAAU,OAAO,QAAQ,CAAC,GAAG,QAAQ,GAAG;AAAA,UACvE,EAAE,UAAU,cAAc,eAAe,MAAM,YAAY,EAAE;AAAA,QAC/D,CAAC;AAAA,MACH,IACA,CAAC;AAAA,IACP;AAAA,EACF,CAAC,EACA,KAAK,IAAI;AACZ,SAAO,EAAE,OAAO,IAAI;AACtB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -33,6 +33,7 @@ __export(gallery_renderer_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(gallery_renderer_exports);
|
|
34
34
|
var import_react = __toESM(require("react"));
|
|
35
35
|
var import_normalize_gallery_items = require("../media/normalize-gallery-items.js");
|
|
36
|
+
var import_layout_collage = require("./layout-collage.js");
|
|
36
37
|
var import_layout_column = require("./layout-column.js");
|
|
37
38
|
var import_layout_fullsize = require("./layout-fullsize.js");
|
|
38
39
|
var import_layout_grid = require("./layout-grid.js");
|
|
@@ -49,7 +50,8 @@ const DEFAULT_GALLERY_LAYOUTS = {
|
|
|
49
50
|
SLIDER: (props) => /* @__PURE__ */ import_react.default.createElement(import_layout_slider.LayoutSlider, { ...props }),
|
|
50
51
|
COLUMN: (props) => /* @__PURE__ */ import_react.default.createElement(import_layout_column.LayoutColumn, { ...props }),
|
|
51
52
|
THUMBNAIL: (props) => /* @__PURE__ */ import_react.default.createElement(import_layout_thumbnail.LayoutThumbnail, { ...props }),
|
|
52
|
-
MASONRY: (props) => /* @__PURE__ */ import_react.default.createElement(import_layout_masonry.LayoutMasonry, { ...props })
|
|
53
|
+
MASONRY: (props) => /* @__PURE__ */ import_react.default.createElement(import_layout_masonry.LayoutMasonry, { ...props }),
|
|
54
|
+
COLLAGE: (props) => /* @__PURE__ */ import_react.default.createElement(import_layout_collage.LayoutCollage, { ...props })
|
|
53
55
|
};
|
|
54
56
|
const GalleryRenderer = ({
|
|
55
57
|
data,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/plugin-gallery/viewer/gallery-renderer.tsx"],
|
|
4
|
-
"sourcesContent": ["import type { ReactElement } from 'react';\nimport React from 'react';\n\nimport type { GalleryData } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\n\nimport {\n normalizeGalleryItems,\n type NormalizedGalleryItem,\n} from '../media/normalize-gallery-items.js';\nimport { LayoutColumn } from './layout-column.js';\nimport { LayoutFullsize } from './layout-fullsize.js';\nimport { LayoutGrid } from './layout-grid.js';\nimport { LayoutMasonry } from './layout-masonry.js';\nimport { LayoutPanorama } from './layout-panorama.js';\nimport { LayoutSlider } from './layout-slider.js';\nimport { LayoutThumbnail } from './layout-thumbnail.js';\nimport type { GalleryRendererRuntime } from './native-gallery-types.js';\nimport { resolveGalleryLayout, type ResolvedGalleryLayout } from './resolve-gallery-layout.js';\n\ntype LayoutProps<Layout extends ResolvedGalleryLayout> = {\n items: NormalizedGalleryItem[];\n layout: Layout;\n nodeId: string;\n runtime: GalleryRendererRuntime;\n};\n\ntype LayoutOf<Type extends ResolvedGalleryLayout['type']> = Extract<\n ResolvedGalleryLayout,\n { type: Type }\n>;\n\ntype LayoutRenderer<Type extends ResolvedGalleryLayout['type']> = (\n props: LayoutProps<LayoutOf<Type>>\n) => ReactElement;\n\nexport type GalleryLayoutComponents = {\n [Type in ResolvedGalleryLayout['type']]: LayoutRenderer<Type>;\n};\n\nconst callLayout = <Type extends ResolvedGalleryLayout['type']>(\n layouts: GalleryLayoutComponents,\n type: Type,\n props: LayoutProps<LayoutOf<Type>>\n) => layouts[type](props);\n\nconst DEFAULT_GALLERY_LAYOUTS: GalleryLayoutComponents = {\n PANORAMA: props => <LayoutPanorama {...props} />,\n GRID: props => <LayoutGrid {...props} />,\n FULLSIZE: props => <LayoutFullsize {...props} />,\n SLIDER: props => <LayoutSlider {...props} />,\n COLUMN: props => <LayoutColumn {...props} />,\n THUMBNAIL: props => <LayoutThumbnail {...props} />,\n MASONRY: props => <LayoutMasonry {...props} />,\n};\n\ntype GalleryRendererProps = {\n data: GalleryData;\n nodeId: string;\n isMobile: boolean;\n runtime: GalleryRendererRuntime;\n /** Override layout components in tests. Production uses `DEFAULT_GALLERY_LAYOUTS`. */\n layouts?: GalleryLayoutComponents;\n};\n\nexport const GalleryRenderer = ({\n data,\n nodeId,\n isMobile,\n runtime,\n layouts = DEFAULT_GALLERY_LAYOUTS,\n}: GalleryRendererProps) => {\n const items = normalizeGalleryItems({\n items: data.items || [],\n nodeId,\n disableDownload: data.disableDownload,\n relValue: runtime.relValue,\n anchorTarget: runtime.anchorTarget,\n baseUrl: runtime.baseUrl,\n });\n const layout = resolveGalleryLayout({ options: data.options, isMobile });\n const rendererRuntime = {\n ...runtime,\n disableExpand: data.disableExpand || runtime.disableExpand,\n };\n\n if (items.length === 0) {\n return (\n <div\n data-hook=\"native-gallery-renderer\"\n data-layout={layout.type}\n data-gallery-empty=\"true\"\n />\n );\n }\n\n const content = callLayout(layouts, layout.type, {\n items,\n nodeId,\n runtime: rendererRuntime,\n layout,\n });\n\n return (\n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,IACtB,GAAG;AAAA,IACH,eAAe,KAAK,iBAAiB,QAAQ;AAAA,EAC/C;AAEA,MAAI,MAAM,WAAW,GAAG;AACtB,WACE,6BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,aAAU;AAAA,QACV,eAAa,OAAO;AAAA,QACpB,sBAAmB;AAAA;AAAA,IACrB;AAAA,EAEJ;AAEA,QAAM,UAAU,WAAW,SAAS,OAAO,MAAM;AAAA,IAC/C;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,EACF,CAAC;AAED,SACE,6BAAAA,QAAA,cAAC,SAAI,aAAU,2BAA0B,eAAa,OAAO,QAC1D,OACH;AAEJ;",
|
|
4
|
+
"sourcesContent": ["import type { ReactElement } from 'react';\nimport React from 'react';\n\nimport type { GalleryData } from './../../ricos-schema/legacy/wix/rich_content/v1/index.js';\n\nimport {\n normalizeGalleryItems,\n type NormalizedGalleryItem,\n} from '../media/normalize-gallery-items.js';\nimport { LayoutCollage } from './layout-collage.js';\nimport { LayoutColumn } from './layout-column.js';\nimport { LayoutFullsize } from './layout-fullsize.js';\nimport { LayoutGrid } from './layout-grid.js';\nimport { LayoutMasonry } from './layout-masonry.js';\nimport { LayoutPanorama } from './layout-panorama.js';\nimport { LayoutSlider } from './layout-slider.js';\nimport { LayoutThumbnail } from './layout-thumbnail.js';\nimport type { GalleryRendererRuntime } from './native-gallery-types.js';\nimport { resolveGalleryLayout, type ResolvedGalleryLayout } from './resolve-gallery-layout.js';\n\ntype LayoutProps<Layout extends ResolvedGalleryLayout> = {\n items: NormalizedGalleryItem[];\n layout: Layout;\n nodeId: string;\n runtime: GalleryRendererRuntime;\n};\n\ntype LayoutOf<Type extends ResolvedGalleryLayout['type']> = Extract<\n ResolvedGalleryLayout,\n { type: Type }\n>;\n\ntype LayoutRenderer<Type extends ResolvedGalleryLayout['type']> = (\n props: LayoutProps<LayoutOf<Type>>\n) => ReactElement;\n\nexport type GalleryLayoutComponents = {\n [Type in ResolvedGalleryLayout['type']]: LayoutRenderer<Type>;\n};\n\nconst callLayout = <Type extends ResolvedGalleryLayout['type']>(\n layouts: GalleryLayoutComponents,\n type: Type,\n props: LayoutProps<LayoutOf<Type>>\n) => layouts[type](props);\n\nconst DEFAULT_GALLERY_LAYOUTS: GalleryLayoutComponents = {\n PANORAMA: props => <LayoutPanorama {...props} />,\n GRID: props => <LayoutGrid {...props} />,\n FULLSIZE: props => <LayoutFullsize {...props} />,\n SLIDER: props => <LayoutSlider {...props} />,\n COLUMN: props => <LayoutColumn {...props} />,\n THUMBNAIL: props => <LayoutThumbnail {...props} />,\n MASONRY: props => <LayoutMasonry {...props} />,\n COLLAGE: props => <LayoutCollage {...props} />,\n};\n\ntype GalleryRendererProps = {\n data: GalleryData;\n nodeId: string;\n isMobile: boolean;\n runtime: GalleryRendererRuntime;\n /** Override layout components in tests. Production uses `DEFAULT_GALLERY_LAYOUTS`. */\n layouts?: GalleryLayoutComponents;\n};\n\nexport const GalleryRenderer = ({\n data,\n nodeId,\n isMobile,\n runtime,\n layouts = DEFAULT_GALLERY_LAYOUTS,\n}: GalleryRendererProps) => {\n const items = normalizeGalleryItems({\n items: data.items || [],\n nodeId,\n disableDownload: data.disableDownload,\n relValue: runtime.relValue,\n anchorTarget: runtime.anchorTarget,\n baseUrl: runtime.baseUrl,\n });\n const layout = resolveGalleryLayout({ options: data.options, isMobile });\n const rendererRuntime = {\n ...runtime,\n disableExpand: data.disableExpand || runtime.disableExpand,\n };\n\n if (items.length === 0) {\n return (\n <div\n data-hook=\"native-gallery-renderer\"\n data-layout={layout.type}\n data-gallery-empty=\"true\"\n />\n );\n }\n\n const content = callLayout(layouts, layout.type, {\n items,\n nodeId,\n runtime: rendererRuntime,\n layout,\n });\n\n return (\n <div data-hook=\"native-gallery-renderer\" data-layout={layout.type}>\n {content}\n </div>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,m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MAAI,MAAM,WAAW,GAAG;AACtB,WACE,6BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,aAAU;AAAA,QACV,eAAa,OAAO;AAAA,QACpB,sBAAmB;AAAA;AAAA,IACrB;AAAA,EAEJ;AAEA,QAAM,UAAU,WAAW,SAAS,OAAO,MAAM;AAAA,IAC/C;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,EACF,CAAC;AAED,SACE,6BAAAA,QAAA,cAAC,SAAI,aAAU,2BAA0B,eAAa,OAAO,QAC1D,OACH;AAEJ;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var layout_collage_exports = {};
|
|
20
|
+
__export(layout_collage_exports, {
|
|
21
|
+
default: () => layout_collage_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(layout_collage_exports);
|
|
24
|
+
var layout_collage_default = {
|
|
25
|
+
"collageRoot": "THaGx",
|
|
26
|
+
"collage": "vVKd0",
|
|
27
|
+
"collageCell": "uCaXh",
|
|
28
|
+
"fine": "MA8Hq",
|
|
29
|
+
"rows": "CL2Px"
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=layout-collage-scss.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/plugin-gallery/viewer/layout-collage.scss"],
|
|
4
|
+
"sourcesContent": ["export default {\n \"collageRoot\": \"THaGx\",\n \"collage\": \"vVKd0\",\n \"collageCell\": \"uCaXh\",\n \"fine\": \"MA8Hq\",\n \"rows\": \"CL2Px\"\n};"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAO,yBAAQ;AAAA,EACb,eAAe;AAAA,EACf,WAAW;AAAA,EACX,eAAe;AAAA,EACf,QAAQ;AAAA,EACR,QAAQ;AACV;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|