@wix/patterns-fields 1.67.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/address/input/address-input.st.css.js +3 -3
- package/dist/cjs/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
- package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js +4 -4
- package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
- package/dist/cjs/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/cjs/components/audio/audio-player/audio-player.st.css.js.map +1 -1
- package/dist/cjs/components/color-view/cell-color-view.js +10 -9
- package/dist/cjs/components/color-view/cell-color-view.js.map +1 -1
- package/dist/cjs/components/color-view/cell-color-view.st.css.js +3 -3
- package/dist/cjs/components/color-view/cell-color-view.st.css.js.map +1 -1
- package/dist/cjs/components/color-view/color-view.js +5 -3
- package/dist/cjs/components/color-view/color-view.js.map +1 -1
- package/dist/cjs/components/color-view/color-view.st.css.js +4 -4
- package/dist/cjs/components/color-view/color-view.st.css.js.map +1 -1
- package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js +3 -3
- package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
- package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
- package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
- package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
- package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
- package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
- package/dist/cjs/components/media-gallery/cell-media-gallery-view.js +3 -3
- package/dist/cjs/components/media-gallery/cell-media-gallery-view.js.map +1 -1
- package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js +10 -10
- package/dist/cjs/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
- package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
- package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-loader/media-loader.st.css.js +3 -3
- package/dist/cjs/components/media-loader/media-loader.st.css.js.map +1 -1
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
- package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/cell-multi-document-view.js +1 -1
- package/dist/cjs/components/multi-document/cell-multi-document-view.js.map +1 -1
- package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
- package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
- package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
- package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
- package/dist/cjs/components/reference/reference-avatar.js +4 -2
- package/dist/cjs/components/reference/reference-avatar.js.map +1 -1
- package/dist/cjs/components/rich-content/cdn/types.js.map +1 -1
- package/dist/cjs/components/rich-content/cell-rich-content-input.js +1 -1
- package/dist/cjs/components/rich-content/cell-rich-content-input.js.map +1 -1
- package/dist/cjs/components/rich-content/cell-rich-content-view.js +1 -1
- package/dist/cjs/components/rich-content/cell-rich-content-view.js.map +1 -1
- package/dist/cjs/components/rich-content/form-rich-content.js +3 -3
- package/dist/cjs/components/rich-content/form-rich-content.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/hooks.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/types.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +7 -7
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/plugins.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js +11 -11
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/cjs/components/text/text-view.st.css.js +3 -3
- package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
- package/dist/cjs/components/url/url-view.js +10 -9
- package/dist/cjs/components/url/url-view.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/utils/request-idle-callback.js +4 -1
- package/dist/cjs/utils/request-idle-callback.js.map +1 -1
- package/dist/esm/components/address/input/address-input.st.css.js +2 -2
- package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
- package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
- package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/esm/components/color-view/cell-color-view.js +4 -3
- package/dist/esm/components/color-view/cell-color-view.js.map +1 -1
- package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
- package/dist/esm/components/color-view/cell-color-view.st.css.js.map +1 -1
- package/dist/esm/components/color-view/color-view.js +3 -2
- package/dist/esm/components/color-view/color-view.js.map +1 -1
- package/dist/esm/components/color-view/color-view.st.css.js +2 -2
- package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
- package/dist/esm/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
- package/dist/esm/components/document/form-document-field.st.css.js +2 -2
- package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
- package/dist/esm/components/exclamation/exclamation.st.css.js.map +1 -1
- package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
- package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
- package/dist/esm/components/media-gallery/cell-media-gallery-view.js +3 -1
- package/dist/esm/components/media-gallery/cell-media-gallery-view.js.map +1 -1
- package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
- package/dist/esm/components/media-image/media-image.st.css.js +3 -3
- package/dist/esm/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
- package/dist/esm/components/media-loader/media-loader.st.css.js +2 -2
- package/dist/esm/components/media-loader/media-loader.st.css.js.map +1 -1
- package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/esm/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
- package/dist/esm/components/multi-document/cell-multi-document-view.js +1 -1
- package/dist/esm/components/multi-document/cell-multi-document-view.js.map +1 -1
- package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
- package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
- package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
- package/dist/esm/components/reference/reference-avatar.js +2 -1
- package/dist/esm/components/reference/reference-avatar.js.map +1 -1
- package/dist/esm/components/rich-content/cell-rich-content-input.js +1 -1
- package/dist/esm/components/rich-content/cell-rich-content-input.js.map +1 -1
- package/dist/esm/components/rich-content/cell-rich-content-view.js +3 -1
- package/dist/esm/components/rich-content/cell-rich-content-view.js.map +1 -1
- package/dist/esm/components/rich-content/form-rich-content.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/hooks.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/plugins.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +2 -2
- package/dist/esm/components/text/text-view.st.css.js +2 -2
- package/dist/esm/components/text/text-view.st.css.js.map +1 -1
- package/dist/esm/components/url/url-view.js +3 -2
- package/dist/esm/components/url/url-view.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/utils/request-idle-callback.js +6 -1
- package/dist/esm/utils/request-idle-callback.js.map +1 -1
- package/dist/types/components/audio/actions/actions-menu/actions-menu.st.css.d.ts.map +1 -1
- package/dist/types/components/color-view/cell-color-view.d.ts.map +1 -1
- package/dist/types/components/color-view/cell-color-view.st.css.d.ts.map +1 -1
- package/dist/types/components/color-view/color-view.d.ts.map +1 -1
- package/dist/types/components/delete-dialog/delete-dialog.st.css.d.ts.map +1 -1
- package/dist/types/components/exclamation/exclamation.st.css.d.ts.map +1 -1
- package/dist/types/components/media-gallery/cell-media-gallery-view.d.ts.map +1 -1
- package/dist/types/components/media-image/media-image.st.css.d.ts.map +1 -1
- package/dist/types/components/media-loader/media-loader.st.css.d.ts.map +1 -1
- package/dist/types/components/media-tag/web-media-tag/media-tag.st.css.d.ts.map +1 -1
- package/dist/types/components/multi-document/multi-document-input/form-multi-document.st.css.d.ts.map +1 -1
- package/dist/types/components/reference/reference-avatar.d.ts.map +1 -1
- package/dist/types/components/rich-content/cdn/types.d.ts.map +1 -1
- package/dist/types/components/rich-content/cell-rich-content-input.d.ts.map +1 -1
- package/dist/types/components/rich-content/cell-rich-content-view.d.ts.map +1 -1
- package/dist/types/components/rich-content/form-rich-content.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/hooks.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/types.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/plugins.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.d.ts.map +1 -1
- package/dist/types/components/text/text-view.st.css.d.ts.map +1 -1
- package/dist/types/components/url/url-view.d.ts.map +1 -1
- package/dist/types/utils/request-idle-callback.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/components/rich-content-editor.spec.tsx +5 -7
- package/src/__tests__/utils/request-idle-callback.spec.ts +20 -0
- package/src/components/address/input/address-input.st.css.ts +2 -2
- package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
- package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
- package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
- package/src/components/color-view/cell-color-view.st.css.ts +2 -2
- package/src/components/color-view/cell-color-view.tsx +4 -3
- package/src/components/color-view/color-view.st.css.ts +2 -2
- package/src/components/color-view/color-view.tsx +4 -2
- package/src/components/delete-dialog/delete-dialog.st.css.ts +2 -2
- package/src/components/document/form-document-field.st.css.ts +2 -2
- package/src/components/exclamation/exclamation.st.css.ts +2 -2
- package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
- package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
- package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
- package/src/components/media-control/paste-url-button.st.css.ts +2 -2
- package/src/components/media-gallery/cell-media-gallery-view.tsx +5 -3
- package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
- package/src/components/media-image/media-image.st.css.ts +3 -3
- package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
- package/src/components/media-loader/media-loader.st.css.ts +2 -2
- package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
- package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
- package/src/components/multi-document/cell-multi-document-view.tsx +1 -1
- package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
- package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
- package/src/components/reference/cell-reference-input.st.css.ts +2 -2
- package/src/components/reference/reference-avatar.tsx +3 -1
- package/src/components/rich-content/cdn/types.ts +2 -1
- package/src/components/rich-content/cell-rich-content-input.tsx +4 -1
- package/src/components/rich-content/cell-rich-content-view.tsx +3 -1
- package/src/components/rich-content/form-rich-content.tsx +4 -1
- package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/hooks.ts +4 -1
- package/src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/types.ts +4 -1
- package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-viewer/plugins.ts +3 -1
- package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.tsx +4 -1
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
- package/src/components/text/text-view.st.css.ts +2 -2
- package/src/components/url/url-view.tsx +3 -2
- package/src/styles.global.css +1 -1
- package/src/utils/request-idle-callback.ts +7 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_mobxReactLite","_patternsFieldsBundledRicos","_react2","_form","_hooks","_string","_validations","_typeMismatchExclamation","_formInput","_jsxFileName","_FormRichContent","props","_field$validation2","_controller$fieldStat","field","dataHook","formControl","data","translate","pt","experiments","useWixPatternsContainer","t","useTranslations","theme","ricosExperiments","controller","useController","name","id","control","defaultValue","rules","validate","value","_field$validation","validation","required","isEmpty","isValueValid","isDataValidOrNotSet","richContentValidation","default","createElement","FormField","label","displayName","status","fieldState","error","undefined","statusMessage","message","suffix","TypeMismatchExclamation","typeName","clearButtonText","convertButtonText","onClear","onChange","convertDisabledText","fieldName","isConverted","isConverting","convertedValue","fromPlainText","tooltipText","__self","__source","fileName","lineNumber","columnNumber","FormRichContentInput","autoFocus","isSiteMetadataLoading","FormRichContent","exports","observer"],"sources":["../../../../src/components/rich-content/form-rich-content.tsx"],"sourcesContent":["import React from 'react';\nimport { FormField } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport type {
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_mobxReactLite","_patternsFieldsBundledRicos","_react2","_form","_hooks","_string","_validations","_typeMismatchExclamation","_formInput","_jsxFileName","_FormRichContent","props","_field$validation2","_controller$fieldStat","field","dataHook","formControl","data","translate","pt","experiments","useWixPatternsContainer","t","useTranslations","theme","ricosExperiments","controller","useController","name","id","control","defaultValue","rules","validate","value","_field$validation","validation","required","isEmpty","isValueValid","isDataValidOrNotSet","richContentValidation","default","createElement","FormField","label","displayName","status","fieldState","error","undefined","statusMessage","message","suffix","TypeMismatchExclamation","typeName","clearButtonText","convertButtonText","onClear","onChange","convertDisabledText","fieldName","isConverted","isConverting","convertedValue","fromPlainText","tooltipText","__self","__source","fileName","lineNumber","columnNumber","FormRichContentInput","autoFocus","isSiteMetadataLoading","FormRichContent","exports","observer"],"sources":["../../../../src/components/rich-content/form-rich-content.tsx"],"sourcesContent":["import React from 'react';\nimport { FormField } from '@wix/design-system';\nimport { observer } from 'mobx-react-lite';\nimport type {\n RichContent as RichContentType,\n RicosTheme,\n} from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { fromPlainText } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport type Experiments from '@wix/wix-experiments';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\nimport { useController } from '@wix/bex-core/form';\n\nimport { BaseInputProps } from '../../types/base-input';\nimport { useTranslations } from '../../hooks';\nimport { isEmpty } from '../../validations/string';\nimport {\n isDataValidOrNotSet,\n richContentValidation,\n} from '../../validations/validations';\nimport { TypeMismatchExclamation } from '../exclamation/type-mismatch-exclamation';\nimport { FormRichContentInput } from './rich-content-input/form-input/form-input';\n\nexport interface FormRichContentProps extends BaseInputProps<RichContentType> {}\n\nconst _FormRichContent = (props: FormRichContentProps) => {\n const { field, dataHook, formControl, data } = props;\n\n const { translate: pt, experiments } = useWixPatternsContainer();\n const { t } = useTranslations();\n const theme = {} as RicosTheme;\n const ricosExperiments = experiments as unknown as Experiments;\n\n const controller = useController({\n name: field?.id ?? '',\n control: formControl,\n defaultValue: data?.[field?.id ?? ''],\n rules: {\n validate: (value) => {\n if (field.validation?.required && isEmpty(value)) {\n return pt('cairo.fieldValidation.requiredField');\n }\n return true;\n },\n },\n });\n\n const isValueValid = isDataValidOrNotSet(\n controller.field.value,\n richContentValidation,\n );\n\n return (\n <FormField\n label={field.displayName}\n required={field.validation?.required}\n status={controller.fieldState.error ? 'error' : undefined}\n statusMessage={controller.fieldState.error?.message}\n dataHook={dataHook}\n suffix={\n isValueValid ? undefined : (\n <TypeMismatchExclamation\n typeName={t('auto-patterns.fields.field_type_rich_content_title')}\n clearButtonText={t('auto-patterns.fields.type_mismatch_clear')}\n convertButtonText={t('auto-patterns.fields.type_mismatch_convert')}\n onClear={() => controller.field.onChange(undefined)}\n onChange={(value) => controller.field.onChange(value)}\n convertDisabledText={t(\n 'auto-patterns.fields.type_mismatch_convert_disabled',\n )}\n fieldName={field.displayName}\n isConverted={false}\n isConverting={false}\n convertedValue={fromPlainText('')}\n tooltipText={t('auto-patterns.fields.type_mismatch_tip', {\n typeName: 'Rich Content',\n })}\n />\n )\n }\n >\n {isValueValid ? (\n <FormRichContentInput\n autoFocus={false}\n data={controller.field.value}\n onChange={(value) => controller.field.onChange?.(value)}\n dataHook={`rich-content-${field.id}`}\n field={field.id}\n theme={theme}\n experiments={ricosExperiments}\n isSiteMetadataLoading={false}\n />\n ) : null}\n </FormField>\n );\n};\n\nexport const FormRichContent = observer(_FormRichContent);\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AA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AAA;MAAAC,QAAA;QAAAC,QAAA,EAAA5D,YAAA;QAAA6D,UAAA;QAAAC,YAAA;MAAA;IAAA,CACJ,CAEJ;IAAAJ,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA5D,YAAA;MAAA6D,UAAA;MAAAC,YAAA;IAAA;EAAA,GAEAhC,YAAY,gBACX3C,MAAA,CAAA8C,OAAA,CAAAC,aAAA,CAACnC,UAAA,CAAAgE,oBAAoB;IACnBC,SAAS,EAAE,KAAM;IACjBxD,IAAI,EAAES,UAAU,CAACZ,KAAK,CAACoB,KAAM;IAC7ByB,QAAQ,EAAGzB,KAAK,IAAKR,UAAU,CAACZ,KAAK,CAAC6C,QAAQ,oBAAzBjC,UAAU,CAACZ,KAAK,CAAC6C,QAAQ,CAAGzB,KAAK,CAAE;IACxDnB,QAAQ,EAAE,gBAAgBD,KAAK,CAACe,EAAE,EAAG;IACrCf,KAAK,EAAEA,KAAK,CAACe,EAAG;IAChBL,KAAK,EAAEA,KAAM;IACbJ,WAAW,EAAEK,gBAAiB;IAC9BiD,qBAAqB,EAAE,KAAM;IAAAP,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAA5D,YAAA;MAAA6D,UAAA;MAAAC,YAAA;IAAA;EAAA,CAC9B,CAAC,GACA,IACK,CAAC;AAEhB,CAAC;AAEM,MAAMI,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,IAAAE,uBAAQ,EAACnE,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -5,16 +5,16 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentdefaultvalueinput418937268";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"richContentEditorContainer": "
|
|
17
|
-
"editor": "
|
|
15
|
+
"root": "richcontentdefaultvalueinput418937268__root",
|
|
16
|
+
"richContentEditorContainer": "richcontentdefaultvalueinput418937268__richContentEditorContainer",
|
|
17
|
+
"editor": "richcontentdefaultvalueinput418937268__editor"
|
|
18
18
|
};
|
|
19
19
|
var keyframes = exports.keyframes = {};
|
|
20
20
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentdefaultvalueinput418937268\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontentdefaultvalueinput418937268__root\",\"richContentEditorContainer\":\"richcontentdefaultvalueinput418937268__richContentEditorContainer\",\"editor\":\"richcontentdefaultvalueinput418937268__editor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"topToolbarHeight\":\"--topToolbarHeight\",\"bottomToolbarHeight\":\"--bottomToolbarHeight\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,uCAAuC;AACzD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,6CAA6C;EAAC,4BAA4B,EAAC,mEAAmE;EAAC,QAAQ,EAAC;AAA+C,CAAC;AAC9N,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,qBAAqB,EAAC;AAAuB,CAAC","ignoreList":[]}
|
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentforminput793565906";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"editor": "
|
|
15
|
+
"root": "richcontentforminput793565906__root",
|
|
16
|
+
"editor": "richcontentforminput793565906__editor"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentforminput793565906\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontentforminput793565906__root\",\"editor\":\"richcontentforminput793565906__editor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"topToolbarHeight\":\"--topToolbarHeight\",\"bottomToolbarHeight\":\"--bottomToolbarHeight\",\"wds-color-blue-300\":\"--wds-color-blue-300\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wds-color-blue-100\":\"--wds-color-blue-100\",\"wds-input-shadow-focus-standard\":\"--wds-input-shadow-focus-standard\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,+BAA+B;AACjD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,qCAAqC;EAAC,QAAQ,EAAC;AAAuC,CAAC;AAC7G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,qBAAqB,EAAC,uBAAuB;EAAC,oBAAoB,EAAC,sBAAsB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,oBAAoB,EAAC,sBAAsB;EAAC,iCAAiC,EAAC;AAAmC,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentformreadonlyinput1815514758";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
15
|
+
"root": "richcontentformreadonlyinput1815514758__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentformreadonlyinput1815514758\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontentformreadonlyinput1815514758__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-black-600\":\"--wds-color-black-600\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wds-color-blue-100\":\"--wds-color-blue-100\",\"wds-input-shadow-focus-standard\":\"--wds-input-shadow-focus-standard\",\"wds-color-blue-300\":\"--wds-color-blue-300\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,wCAAwC;AAC1D,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAA8C,CAAC;AACrE,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,qBAAqB,EAAC,uBAAuB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,oBAAoB,EAAC,sBAAsB;EAAC,iCAAiC,EAAC,mCAAmC;EAAC,oBAAoB,EAAC;AAAsB,CAAC","ignoreList":[]}
|
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "fullscreenmodal521352342";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"modalContent": "
|
|
15
|
+
"root": "fullscreenmodal521352342__root",
|
|
16
|
+
"modalContent": "fullscreenmodal521352342__modalContent"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"fullscreenmodal521352342\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"fullscreenmodal521352342__root\",\"modalContent\":\"fullscreenmodal521352342__modalContent\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-white\":\"--wds-color-white\",\"wsr-color-D80\":\"--wsr-color-D80\",\"wds-border-radius-300\":\"--wds-border-radius-300\",\"wsr-border-radius-06\":\"--wsr-border-radius-06\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,0BAA0B;AAC5C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,gCAAgC;EAAC,cAAc,EAAC;AAAwC,CAAC;AAC/G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,eAAe,EAAC,iBAAiB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,sBAAsB,EAAC;AAAwB,CAAC","ignoreList":[]}
|
package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_isEqual","_interopRequireDefault","require","_react","_patternsFieldsBundledRicos","_react2","_consts","INITIAL_INJECTED_RICH_CONTENT","exports","Object","freeze","nodes","ensureRichContent","content","ensureContentId","useRichContentState","propsContent","setContent","useState","injectedContent","setInjectedContent","prevContentRef","useRef","useEffect","isEqual","current","richContent","injectedRichContent","useWixRicosProps","patternsContainer","useWixPatternsContainer","locale","environment","language","CMS_RICOS_CONSUMER","CMS_RICOS_PLATFORM","useRicosBISettings","usage","itemId","useMemo","containerId","CMS_RICOS_APP_ID","consumer","platform","postId"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/hooks.ts"],"sourcesContent":["import isEqual from 'lodash/isEqual';\nimport { useRef, useMemo, useState, useEffect } from 'react';\n\nimport type {
|
|
1
|
+
{"version":3,"names":["_isEqual","_interopRequireDefault","require","_react","_patternsFieldsBundledRicos","_react2","_consts","INITIAL_INJECTED_RICH_CONTENT","exports","Object","freeze","nodes","ensureRichContent","content","ensureContentId","useRichContentState","propsContent","setContent","useState","injectedContent","setInjectedContent","prevContentRef","useRef","useEffect","isEqual","current","richContent","injectedRichContent","useWixRicosProps","patternsContainer","useWixPatternsContainer","locale","environment","language","CMS_RICOS_CONSUMER","CMS_RICOS_PLATFORM","useRicosBISettings","usage","itemId","useMemo","containerId","CMS_RICOS_APP_ID","consumer","platform","postId"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/hooks.ts"],"sourcesContent":["import isEqual from 'lodash/isEqual';\nimport { useRef, useMemo, useState, useEffect } from 'react';\n\nimport type {\n BISettings,\n RicosDocument,\n} from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { ensureContentId } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { useWixPatternsContainer } from '@wix/bex-core/react';\n\nimport { CMS_RICOS_APP_ID } from '../consts';\n\n/**\n * Sentinel for \"nothing has been injected into the editor yet\".\n *\n * A plain frozen literal rather than `fromPlainText('')`: every use is either an\n * identity comparison against this exact object (`isEqual` in\n * `rich-content-editor.tsx`, which the effect uses to skip injecting) or an empty\n * fallback returned from an async publish that failed. It is never handed to\n * ricos as content, so it does not need ricos to build it — and building it\n * eagerly is what forced the content helpers into module scope.\n */\nexport const INITIAL_INJECTED_RICH_CONTENT = Object.freeze({\n nodes: [],\n}) as RicosDocument;\n\nconst ensureRichContent = (content?: RicosDocument) =>\n content && ensureContentId(content);\n\nexport const useRichContentState = (propsContent?: RicosDocument) => {\n const [content, setContent] = useState(ensureRichContent(propsContent));\n const [injectedContent, setInjectedContent] = useState(\n INITIAL_INJECTED_RICH_CONTENT,\n );\n\n const prevContentRef = useRef(propsContent);\n useEffect(() => {\n if (isEqual(propsContent, prevContentRef.current)) {\n return;\n }\n\n const richContent = ensureRichContent(propsContent);\n\n setContent(richContent);\n setInjectedContent((injectedRichContent) => {\n if (!richContent) {\n return INITIAL_INJECTED_RICH_CONTENT;\n }\n\n return !isEqual(richContent, injectedRichContent)\n ? richContent\n : injectedRichContent;\n });\n\n prevContentRef.current = propsContent;\n }, [propsContent]);\n\n return [content, setContent, injectedContent] as const;\n};\n\nexport const useWixRicosProps = () => {\n const patternsContainer = useWixPatternsContainer();\n // console.log('[Rich Content] environment:', patternsContainer.environment);\n const locale = patternsContainer.environment.language || 'en';\n\n return { locale };\n};\n\nconst CMS_RICOS_CONSUMER = 'wix-data-editor';\nconst CMS_RICOS_PLATFORM = 'BM';\n\nexport const useRicosBISettings = (usage?: string, itemId = '$new') =>\n useMemo<BISettings>(\n () => ({\n containerId: CMS_RICOS_APP_ID,\n consumer: CMS_RICOS_CONSUMER,\n platform: CMS_RICOS_PLATFORM,\n postId: itemId,\n usage,\n }),\n [usage, itemId],\n );\n"],"mappings":";;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAMA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,OAAA,GAAAJ,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMK,6BAA6B,GAAAC,OAAA,CAAAD,6BAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EACzDC,KAAK,EAAE;AACT,CAAC,CAAkB;AAEnB,MAAMC,iBAAiB,GAAIC,OAAuB,IAChDA,OAAO,IAAI,IAAAC,2CAAe,EAACD,OAAO,CAAC;AAE9B,MAAME,mBAAmB,GAAIC,YAA4B,IAAK;EACnE,MAAM,CAACH,OAAO,EAAEI,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAACN,iBAAiB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C7BC,QAAQ,EAAER,kBAAkB;EAC5BS,QAAQ,EAAER,kBAAkB;EAC5BS,MAAM,EAAEN,MAAM;EACdD;AACF,CAAC,CAAC,EACF,CAACA,KAAK,EAAEC,MAAM,CAChB,CAAC;AAAC9B,OAAA,CAAA4B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -5,15 +5,15 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "publishloader1839970854";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"publishLoader": "
|
|
15
|
+
"root": "publishloader1839970854__root",
|
|
16
|
+
"publishLoader": "publishloader1839970854__publishLoader"
|
|
17
17
|
};
|
|
18
18
|
var keyframes = exports.keyframes = {};
|
|
19
19
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"publishloader1839970854\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"publishloader1839970854__root\",\"publishLoader\":\"publishloader1839970854__publishLoader\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-color-white\":\"--wds-color-white\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,yBAAyB;AAC3C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,+BAA+B;EAAC,eAAe,EAAC;AAAwC,CAAC;AAC/G,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,iBAAiB,EAAC;AAAmB,CAAC","ignoreList":[]}
|
|
@@ -5,14 +5,14 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "togglefullscreenbutton3351700300";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
15
|
+
"root": "togglefullscreenbutton3351700300__root"
|
|
16
16
|
};
|
|
17
17
|
var keyframes = exports.keyframes = {};
|
|
18
18
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../../src/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"togglefullscreenbutton3351700300\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"togglefullscreenbutton3351700300__root\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,kCAAkC;AACpD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC;AAAwC,CAAC;AAC/D,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/types.ts"],"sourcesContent":["import type Experiments from '@wix/wix-experiments';\nimport type {
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-common/types.ts"],"sourcesContent":["import type Experiments from '@wix/wix-experiments';\nimport type {\n RichContent,\n RicosTheme,\n} from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\n\nimport type { ColorScheme } from '../../types';\n\nexport interface RichContentInputProps {\n theme: RicosTheme;\n colorScheme?: ColorScheme;\n experiments: Experiments;\n data?: RichContent;\n onChange: (data?: RichContent) => void;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -5,19 +5,19 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontenteditor3731308093";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"toolbarContainer": "
|
|
17
|
-
"footerToolbarContainer": "
|
|
18
|
-
"toolbarAndFullScreenButtonWrapper": "
|
|
19
|
-
"editor": "
|
|
20
|
-
"modalEditor": "
|
|
15
|
+
"root": "richcontenteditor3731308093__root",
|
|
16
|
+
"toolbarContainer": "richcontenteditor3731308093__toolbarContainer",
|
|
17
|
+
"footerToolbarContainer": "richcontenteditor3731308093__footerToolbarContainer",
|
|
18
|
+
"toolbarAndFullScreenButtonWrapper": "richcontenteditor3731308093__toolbarAndFullScreenButtonWrapper",
|
|
19
|
+
"editor": "richcontenteditor3731308093__editor",
|
|
20
|
+
"modalEditor": "richcontenteditor3731308093__modalEditor"
|
|
21
21
|
};
|
|
22
22
|
var keyframes = exports.keyframes = {};
|
|
23
23
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontenteditor3731308093\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontenteditor3731308093__root\",\"toolbarContainer\":\"richcontenteditor3731308093__toolbarContainer\",\"footerToolbarContainer\":\"richcontenteditor3731308093__footerToolbarContainer\",\"toolbarAndFullScreenButtonWrapper\":\"richcontenteditor3731308093__toolbarAndFullScreenButtonWrapper\",\"editor\":\"richcontenteditor3731308093__editor\",\"modalEditor\":\"richcontenteditor3731308093__modalEditor\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {\"wds-font-family-default\":\"--wds-font-family-default\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,6BAA6B;AAC/C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,mCAAmC;EAAC,kBAAkB,EAAC,+CAA+C;EAAC,wBAAwB,EAAC,qDAAqD;EAAC,mCAAmC,EAAC,gEAAgE;EAAC,QAAQ,EAAC,qCAAqC;EAAC,aAAa,EAAC;AAA0C,CAAC;AACzZ,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG;EAAC,yBAAyB,EAAC;AAA2B,CAAC","ignoreList":[]}
|
|
@@ -5,17 +5,17 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontenttoolbar2725024624";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"toolbar": "
|
|
17
|
-
"toolbarButton": "
|
|
18
|
-
"separator": "
|
|
15
|
+
"root": "richcontenttoolbar2725024624__root",
|
|
16
|
+
"toolbar": "richcontenttoolbar2725024624__toolbar",
|
|
17
|
+
"toolbarButton": "richcontenttoolbar2725024624__toolbarButton",
|
|
18
|
+
"separator": "richcontenttoolbar2725024624__separator"
|
|
19
19
|
};
|
|
20
20
|
var keyframes = exports.keyframes = {};
|
|
21
21
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontenttoolbar2725024624\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontenttoolbar2725024624__root\",\"toolbar\":\"richcontenttoolbar2725024624__toolbar\",\"toolbarButton\":\"richcontenttoolbar2725024624__toolbarButton\",\"separator\":\"richcontenttoolbar2725024624__separator\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,8BAA8B;AAChD,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,oCAAoC;EAAC,SAAS,EAAC,uCAAuC;EAAC,eAAe,EAAC,6CAA6C;EAAC,WAAW,EAAC;AAAyC,CAAC;AACjO,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|
package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/plugins.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_utils","usePlugins","ricos","useMemo","pluginTextColorViewer","pluginTextHighlightViewer","pluginLineSpacingViewer","pluginLinkViewer","pluginImageViewer","pluginVideoViewer","pluginGalleryViewer","pluginDividerViewer","pluginTableViewer","pluginFileUploadViewer","pluginHtmlViewer","pluginLinkPreviewViewer","pluginVerticalEmbedViewer","pluginEmojiViewer","pluginSpoilerViewer","pluginGiphyViewer","pluginCodeBlockViewer","pluginCollapsibleListViewer","pluginLinkButtonViewer","filter","isTruthy","exports"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/plugins.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type { RicosCdnModule, ViewerPlugin } from '../../cdn/types';\nimport { isTruthy } from '../../../../utils';\n\n/**\n * Viewer plugin creators come from the CDN module, so this returns an empty list\n * until it has loaded. The viewer is not rendered before then.\n */\nexport const usePlugins = (ricos: RicosCdnModule | undefined): ViewerPlugin[] => {\n return useMemo<ViewerPlugin[]>(() => {\n if (!ricos) {\n return [];\n }\n\n return [\n ricos.pluginTextColorViewer(),\n ricos.pluginTextHighlightViewer(),\n ricos.pluginLineSpacingViewer(),\n ricos.pluginLinkViewer(),\n ricos.pluginImageViewer(),\n ricos.pluginVideoViewer(),\n ricos.pluginGalleryViewer(),\n ricos.pluginDividerViewer(),\n ricos.pluginTableViewer(),\n ricos.pluginFileUploadViewer(),\n ricos.pluginHtmlViewer(),\n ricos.pluginLinkPreviewViewer(),\n ricos.pluginVerticalEmbedViewer(),\n ricos.pluginEmojiViewer(),\n ricos.pluginSpoilerViewer(),\n ricos.pluginGiphyViewer(),\n ricos.pluginCodeBlockViewer(),\n ricos.pluginCollapsibleListViewer(),\n ricos.pluginLinkButtonViewer(),\n ].filter(isTruthy);\n }, [ricos]);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAME,UAAU,
|
|
1
|
+
{"version":3,"names":["_react","require","_utils","usePlugins","ricos","useMemo","pluginTextColorViewer","pluginTextHighlightViewer","pluginLineSpacingViewer","pluginLinkViewer","pluginImageViewer","pluginVideoViewer","pluginGalleryViewer","pluginDividerViewer","pluginTableViewer","pluginFileUploadViewer","pluginHtmlViewer","pluginLinkPreviewViewer","pluginVerticalEmbedViewer","pluginEmojiViewer","pluginSpoilerViewer","pluginGiphyViewer","pluginCodeBlockViewer","pluginCollapsibleListViewer","pluginLinkButtonViewer","filter","isTruthy","exports"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/plugins.ts"],"sourcesContent":["import { useMemo } from 'react';\n\nimport type { RicosCdnModule, ViewerPlugin } from '../../cdn/types';\nimport { isTruthy } from '../../../../utils';\n\n/**\n * Viewer plugin creators come from the CDN module, so this returns an empty list\n * until it has loaded. The viewer is not rendered before then.\n */\nexport const usePlugins = (\n ricos: RicosCdnModule | undefined,\n): ViewerPlugin[] => {\n return useMemo<ViewerPlugin[]>(() => {\n if (!ricos) {\n return [];\n }\n\n return [\n ricos.pluginTextColorViewer(),\n ricos.pluginTextHighlightViewer(),\n ricos.pluginLineSpacingViewer(),\n ricos.pluginLinkViewer(),\n ricos.pluginImageViewer(),\n ricos.pluginVideoViewer(),\n ricos.pluginGalleryViewer(),\n ricos.pluginDividerViewer(),\n ricos.pluginTableViewer(),\n ricos.pluginFileUploadViewer(),\n ricos.pluginHtmlViewer(),\n ricos.pluginLinkPreviewViewer(),\n ricos.pluginVerticalEmbedViewer(),\n ricos.pluginEmojiViewer(),\n ricos.pluginSpoilerViewer(),\n ricos.pluginGiphyViewer(),\n ricos.pluginCodeBlockViewer(),\n ricos.pluginCollapsibleListViewer(),\n ricos.pluginLinkButtonViewer(),\n ].filter(isTruthy);\n }, [ricos]);\n};\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACO,MAAME,UAAU,GACrBC,KAAiC,IACd;EACnB,OAAO,IAAAC,cAAO,EAAiB,MAAM;IACnC,IAAI,CAACD,KAAK,EAAE;MACV,OAAO,EAAE;IACX;IAEA,OAAO,CACLA,KAAK,CAACE,qBAAqB,CAAC,CAAC,EAC7BF,KAAK,CAACG,yBAAyB,CAAC,CAAC,EACjCH,KAAK,CAACI,uBAAuB,CAAC,CAAC,EAC/BJ,KAAK,CAACK,gBAAgB,CAAC,CAAC,EACxBL,KAAK,CAACM,iBAAiB,CAAC,CAAC,EACzBN,KAAK,CAACO,iBAAiB,CAAC,CAAC,EACzBP,KAAK,CAACQ,mBAAmB,CAAC,CAAC,EAC3BR,KAAK,CAACS,mBAAmB,CAAC,CAAC,EAC3BT,KAAK,CAACU,iBAAiB,CAAC,CAAC,EACzBV,KAAK,CAACW,sBAAsB,CAAC,CAAC,EAC9BX,KAAK,CAACY,gBAAgB,CAAC,CAAC,EACxBZ,KAAK,CAACa,uBAAuB,CAAC,CAAC,EAC/Bb,KAAK,CAACc,yBAAyB,CAAC,CAAC,EACjCd,KAAK,CAACe,iBAAiB,CAAC,CAAC,EACzBf,KAAK,CAACgB,mBAAmB,CAAC,CAAC,EAC3BhB,KAAK,CAACiB,iBAAiB,CAAC,CAAC,EACzBjB,KAAK,CAACkB,qBAAqB,CAAC,CAAC,EAC7BlB,KAAK,CAACmB,2BAA2B,CAAC,CAAC,EACnCnB,KAAK,CAACoB,sBAAsB,CAAC,CAAC,CAC/B,CAACC,MAAM,CAACC,eAAQ,CAAC;EACpB,CAAC,EAAE,CAACtB,KAAK,CAAC,CAAC;AACb,CAAC;AAACuB,OAAA,CAAAxB,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -38,7 +38,7 @@ const RCV = ({
|
|
|
38
38
|
__self: void 0,
|
|
39
39
|
__source: {
|
|
40
40
|
fileName: _jsxFileName,
|
|
41
|
-
lineNumber:
|
|
41
|
+
lineNumber: 52,
|
|
42
42
|
columnNumber: 5
|
|
43
43
|
}
|
|
44
44
|
}, /*#__PURE__*/_react.default.createElement(_richContentCommon.ToggleFullscreenButton, {
|
|
@@ -47,7 +47,7 @@ const RCV = ({
|
|
|
47
47
|
__self: void 0,
|
|
48
48
|
__source: {
|
|
49
49
|
fileName: _jsxFileName,
|
|
50
|
-
lineNumber:
|
|
50
|
+
lineNumber: 58,
|
|
51
51
|
columnNumber: 7
|
|
52
52
|
}
|
|
53
53
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -56,7 +56,7 @@ const RCV = ({
|
|
|
56
56
|
__self: void 0,
|
|
57
57
|
__source: {
|
|
58
58
|
fileName: _jsxFileName,
|
|
59
|
-
lineNumber:
|
|
59
|
+
lineNumber: 62,
|
|
60
60
|
columnNumber: 7
|
|
61
61
|
}
|
|
62
62
|
}, RicosViewer ? /*#__PURE__*/_react.default.createElement(RicosViewer, (0, _extends2.default)({}, ricosProps, wixRicosProps, {
|
|
@@ -65,14 +65,14 @@ const RCV = ({
|
|
|
65
65
|
__self: void 0,
|
|
66
66
|
__source: {
|
|
67
67
|
fileName: _jsxFileName,
|
|
68
|
-
lineNumber:
|
|
68
|
+
lineNumber: 64,
|
|
69
69
|
columnNumber: 11
|
|
70
70
|
}
|
|
71
71
|
})) : /*#__PURE__*/_react.default.createElement(RCVLoader, {
|
|
72
72
|
__self: void 0,
|
|
73
73
|
__source: {
|
|
74
74
|
fileName: _jsxFileName,
|
|
75
|
-
lineNumber:
|
|
75
|
+
lineNumber: 71,
|
|
76
76
|
columnNumber: 11
|
|
77
77
|
}
|
|
78
78
|
})));
|
|
@@ -87,7 +87,7 @@ const RCVLoader = () => /*#__PURE__*/_react.default.createElement(_designSystem.
|
|
|
87
87
|
__self: void 0,
|
|
88
88
|
__source: {
|
|
89
89
|
fileName: _jsxFileName,
|
|
90
|
-
lineNumber:
|
|
90
|
+
lineNumber: 82,
|
|
91
91
|
columnNumber: 3
|
|
92
92
|
}
|
|
93
93
|
}, /*#__PURE__*/_react.default.createElement(_designSystem.Loader, {
|
|
@@ -95,7 +95,7 @@ const RCVLoader = () => /*#__PURE__*/_react.default.createElement(_designSystem.
|
|
|
95
95
|
__self: void 0,
|
|
96
96
|
__source: {
|
|
97
97
|
fileName: _jsxFileName,
|
|
98
|
-
lineNumber:
|
|
98
|
+
lineNumber: 83,
|
|
99
99
|
columnNumber: 5
|
|
100
100
|
}
|
|
101
101
|
}));
|
|
@@ -120,7 +120,7 @@ const RichContentViewer = ({
|
|
|
120
120
|
__self: void 0,
|
|
121
121
|
__source: {
|
|
122
122
|
fileName: _jsxFileName,
|
|
123
|
-
lineNumber:
|
|
123
|
+
lineNumber: 114,
|
|
124
124
|
columnNumber: 7
|
|
125
125
|
}
|
|
126
126
|
}), !fullScreenOnly && /*#__PURE__*/_react.default.createElement(RCV, (0, _extends2.default)({}, props, {
|
|
@@ -131,7 +131,7 @@ const RichContentViewer = ({
|
|
|
131
131
|
__self: void 0,
|
|
132
132
|
__source: {
|
|
133
133
|
fileName: _jsxFileName,
|
|
134
|
-
lineNumber:
|
|
134
|
+
lineNumber: 116,
|
|
135
135
|
columnNumber: 9
|
|
136
136
|
}
|
|
137
137
|
})), /*#__PURE__*/_react.default.createElement(_richContentCommon.FullscreenModal, {
|
|
@@ -139,7 +139,7 @@ const RichContentViewer = ({
|
|
|
139
139
|
__self: void 0,
|
|
140
140
|
__source: {
|
|
141
141
|
fileName: _jsxFileName,
|
|
142
|
-
lineNumber:
|
|
142
|
+
lineNumber: 124,
|
|
143
143
|
columnNumber: 7
|
|
144
144
|
}
|
|
145
145
|
}, /*#__PURE__*/_react.default.createElement(RCV, (0, _extends2.default)({}, props, {
|
|
@@ -149,7 +149,7 @@ const RichContentViewer = ({
|
|
|
149
149
|
__self: void 0,
|
|
150
150
|
__source: {
|
|
151
151
|
fileName: _jsxFileName,
|
|
152
|
-
lineNumber:
|
|
152
|
+
lineNumber: 125,
|
|
153
153
|
columnNumber: 9
|
|
154
154
|
}
|
|
155
155
|
}))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_patternsFieldsBundledRicos","_loadRicos","_hooks","_utils","_userSiteFonts","_richContentCommon","_plugins","_richContentViewerStCss","_jsxFileName","RCV","isFullScreen","onToggleFullscreen","content","className","dataHook","tabIndex","ricosProps","wixRicosProps","useWixRicosProps","ricos","useRicosFromCdn","plugins","usePlugins","RicosViewer","default","createElement","st","classes","root","onMouseDown","preventEvent","__self","__source","fileName","lineNumber","columnNumber","ToggleFullscreenButton","onToggleFullScreen","viewer","_extends2","fromPlainText","RCVLoader","displayName","Box","align","verticalAlign","width","Loader","size","RichContentViewer","fullScreenOnly","onEnterFullScreen","onExitFullScreen","props","isOpen","onOpen","onClose","useOpenState","Fragment","UserSiteFonts","FullscreenModal","modalViewer","exports"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Loader } from '@wix/design-system';\n\nimport type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { fromPlainText } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport type { RicosViewerProps } from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';\n\nimport { useRicosFromCdn } from '../../cdn/load-ricos';\nimport { useOpenState } from '../../../../hooks';\nimport { preventEvent } from '../../../../utils';\nimport { UserSiteFonts } from '../../../user-site-fonts';\n\nimport {\n FullscreenModal,\n ToggleFullscreenButton,\n useWixRicosProps,\n} from '../rich-content-common';\nimport { usePlugins } from './plugins';\nimport { st, classes } from './rich-content-viewer.st.css.js';\n\ntype RicosProps = Pick
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_designSystem","_patternsFieldsBundledRicos","_loadRicos","_hooks","_utils","_userSiteFonts","_richContentCommon","_plugins","_richContentViewerStCss","_jsxFileName","RCV","isFullScreen","onToggleFullscreen","content","className","dataHook","tabIndex","ricosProps","wixRicosProps","useWixRicosProps","ricos","useRicosFromCdn","plugins","usePlugins","RicosViewer","default","createElement","st","classes","root","onMouseDown","preventEvent","__self","__source","fileName","lineNumber","columnNumber","ToggleFullscreenButton","onToggleFullScreen","viewer","_extends2","fromPlainText","RCVLoader","displayName","Box","align","verticalAlign","width","Loader","size","RichContentViewer","fullScreenOnly","onEnterFullScreen","onExitFullScreen","props","isOpen","onOpen","onClose","useOpenState","Fragment","UserSiteFonts","FullscreenModal","modalViewer","exports"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Loader } from '@wix/design-system';\n\nimport type { RicosDocument } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport { fromPlainText } from '@wix/patterns-fields-utils/@wix/patterns-fields-bundled-ricos';\nimport type { RicosViewerProps } from '@wix/patterns-fields-utils/@wix/patterns-fields-ricos-statics';\n\nimport { useRicosFromCdn } from '../../cdn/load-ricos';\nimport { useOpenState } from '../../../../hooks';\nimport { preventEvent } from '../../../../utils';\nimport { UserSiteFonts } from '../../../user-site-fonts';\n\nimport {\n FullscreenModal,\n ToggleFullscreenButton,\n useWixRicosProps,\n} from '../rich-content-common';\nimport { usePlugins } from './plugins';\nimport { st, classes } from './rich-content-viewer.st.css.js';\n\ntype RicosProps = Pick<\n RicosViewerProps,\n 'biSettings' | 'children' | 'theme'\n> & {\n wixExperiments?: unknown;\n};\n\ninterface RCVProps extends RicosProps {\n isFullScreen: boolean;\n onToggleFullscreen: () => void;\n content?: RicosDocument;\n className?: string;\n tabIndex?: number;\n dataHook?: string;\n}\n\nconst RCV: React.FC<RCVProps> = ({\n isFullScreen,\n onToggleFullscreen,\n content,\n className,\n dataHook,\n tabIndex,\n ...ricosProps\n}) => {\n const wixRicosProps = useWixRicosProps();\n const ricos = useRicosFromCdn();\n const plugins = usePlugins(ricos);\n const RicosViewer = ricos?.RicosViewer;\n\n return (\n <div\n data-hook=\"rich-content.viewer\"\n className={st(classes.root, { isFullScreen }, className)}\n onMouseDown={preventEvent}\n tabIndex={tabIndex}\n >\n <ToggleFullscreenButton\n isFullScreen={isFullScreen}\n onToggleFullScreen={onToggleFullscreen}\n />\n <div data-hook={dataHook} className={classes.viewer}>\n {RicosViewer ? (\n <RicosViewer\n {...ricosProps}\n {...wixRicosProps}\n plugins={plugins}\n content={content ?? fromPlainText('')}\n />\n ) : (\n <RCVLoader />\n )}\n </div>\n </div>\n );\n};\n\nRCV.displayName = 'RCV';\n\n/** Shown while the CDN bundle is in flight, matching the editor's RCELoader. */\nconst RCVLoader: React.FC = () => (\n <Box align=\"center\" verticalAlign=\"middle\" width=\"100%\">\n <Loader size=\"small\" />\n </Box>\n);\nRCVLoader.displayName = 'RCVLoader';\n\nexport interface RichContentViewerProps\n extends Omit<RCVProps, 'isFullScreen' | 'onToggleFullscreen'> {\n fullScreenOnly?: boolean;\n onEnterFullScreen?: () => void;\n onExitFullScreen?: () => void;\n}\n\nexport const RichContentViewer: React.FC<RichContentViewerProps> = ({\n fullScreenOnly,\n onEnterFullScreen,\n onExitFullScreen,\n className,\n tabIndex,\n ...props\n}) => {\n const {\n isOpen: isFullScreen,\n onOpen,\n onClose,\n } = useOpenState(!!fullScreenOnly, {\n onOpen: onEnterFullScreen,\n onClose: onExitFullScreen,\n });\n\n return (\n <>\n <UserSiteFonts />\n {!fullScreenOnly && (\n <RCV\n {...props}\n isFullScreen={false}\n onToggleFullscreen={onOpen}\n className={className}\n tabIndex={tabIndex}\n />\n )}\n <FullscreenModal isOpen={isFullScreen}>\n <RCV\n {...props}\n isFullScreen\n onToggleFullscreen={onClose}\n className={classes.modalViewer}\n />\n </FullscreenModal>\n </>\n );\n};\n\nRichContentViewer.displayName = 'RichContentViewer';\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAGA,IAAAE,2BAAA,GAAAF,OAAA;AAGA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AAEA,IAAAO,kBAAA,GAAAP,OAAA;AAKA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,uBAAA,GAAAT,OAAA;AAA8D,IAAAU,YAAA;AAkB9D,MAAMC,GAAuB,GAAGA,CAAC;EAC/BC,YAAY;EACZC,kBAAkB;EAClBC,OAAO;EACPC,SAAS;EACTC,QAAQ;EACRC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,aAAa,GAAG,IAAAC,mCAAgB,EAAC,CAAC;EACxC,MAAMC,KAAK,GAAG,IAAAC,0BAAe,EAAC,CAAC;EAC/B,MAAMC,OAAO,GAAG,IAAAC,mBAAU,EAACH,KAAK,CAAC;EACjC,MAAMI,WAAW,GAAGJ,KAAK,oBAALA,KAAK,CAAEI,WAAW;EAEtC,oBACE3B,MAAA,CAAA4B,OAAA,CAAAC,aAAA;IACE,aAAU,qBAAqB;IAC/BZ,SAAS,EAAE,IAAAa,0BAAE,EAACC,+BAAO,CAACC,IAAI,EAAE;MAAElB;IAAa,CAAC,EAAEG,SAAS,CAAE;IACzDgB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AEA,QAAS;IAAAgB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAzB,YAAA;MAAA0B,UAAA;MAAAC,YAAA;IAAA;EAAA,EACpB,CACF,eACDvC,MAAA,CAAA4B,OAAA,CAAAC,aAAA,CAACpB,kBAAA,CAAAuD,eAAe;IAACN,MAAM,EAAE5C,YAAa;IAAAqB,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAzB,YAAA;MAAA0B,UAAA;MAAAC,YAAA;IAAA;EAAA,gBACpCvC,MAAA,CAAA4B,OAAA,CAAAC,aAAA,CAAChB,GAAG,MAAA8B,SAAA,CAAAf,OAAA,MACE6B,KAAK;IACT3C,YAAY;IACZC,kBAAkB,EAAE6C,OAAQ;IAC5B3C,SAAS,EAAEc,+BAAO,CAACkC,WAAY;IAAA9B,MAAA;IAAAC,QAAA;MAAAC,QAAA,EAAAzB,YAAA;MAAA0B,UAAA;MAAAC,YAAA;IAAA;EAAA,EAChC,CACc,CACjB,CAAC;AAEP,CAAC;AAAC2B,OAAA,CAAAb,iBAAA,GAAAA,iBAAA;AAEFA,iBAAiB,CAACP,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -5,16 +5,16 @@ exports.vars = exports.style = exports.stVars = exports.st = exports.namespace =
|
|
|
5
5
|
var _stylableEsmRuntime = require("../../../../stylable-esm-runtime.js");
|
|
6
6
|
// @ts-nocheck
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentviewer4224465162";
|
|
9
9
|
var _style_ = _stylableEsmRuntime.classesRuntime.bind(null, _namespace_);
|
|
10
10
|
var cssStates = exports.cssStates = _stylableEsmRuntime.statesRuntime.bind(null, _namespace_);
|
|
11
11
|
var style = exports.style = _style_;
|
|
12
12
|
var st = exports.st = _style_;
|
|
13
13
|
var namespace = exports.namespace = _namespace_;
|
|
14
14
|
var classes = exports.classes = {
|
|
15
|
-
"root": "
|
|
16
|
-
"viewer": "
|
|
17
|
-
"modalViewer": "
|
|
15
|
+
"root": "richcontentviewer4224465162__root",
|
|
16
|
+
"viewer": "richcontentviewer4224465162__viewer",
|
|
17
|
+
"modalViewer": "richcontentviewer4224465162__modalViewer"
|
|
18
18
|
};
|
|
19
19
|
var keyframes = exports.keyframes = {};
|
|
20
20
|
var layers = exports.layers = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"
|
|
1
|
+
{"version":3,"names":["_stylableEsmRuntime","require","_namespace_","_style_","classesRuntime","bind","cssStates","exports","statesRuntime","style","st","namespace","classes","keyframes","layers","containers","stVars","vars"],"sources":["../../../../../../src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richcontentviewer4224465162\";\nvar _style_ = classesRuntime.bind(null, _namespace_);\n\nexport var cssStates = statesRuntime.bind(null, _namespace_);\nexport var style: import(\"@stylable/runtime\").STFunction = _style_;\nexport var st: import(\"@stylable/runtime\").STFunction = _style_;\n\nexport var namespace = _namespace_;\nexport var classes = {\"root\":\"richcontentviewer4224465162__root\",\"viewer\":\"richcontentviewer4224465162__viewer\",\"modalViewer\":\"richcontentviewer4224465162__modalViewer\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {}; \nexport var vars = {}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,6BAA6B;AAC/C,IAAIC,OAAO,GAAGC,kCAAc,CAACC,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AAE7C,IAAII,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAGE,iCAAa,CAACH,IAAI,CAAC,IAAI,EAAEH,WAAW,CAAC;AACrD,IAAIO,KAA6C,GAAAF,OAAA,CAAAE,KAAA,GAAGN,OAAO;AAC3D,IAAIO,EAA0C,GAAAH,OAAA,CAAAG,EAAA,GAAGP,OAAO;AAExD,IAAIQ,SAAS,GAAAJ,OAAA,CAAAI,SAAA,GAAGT,WAAW;AAC3B,IAAIU,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAAC,MAAM,EAAC,mCAAmC;EAAC,QAAQ,EAAC,qCAAqC;EAAC,aAAa,EAAC;AAA0C,CAAC;AAClK,IAAIC,SAAS,GAAAN,OAAA,CAAAM,SAAA,GAAG,CAAC,CAAC;AAClB,IAAIC,MAAM,GAAAP,OAAA,CAAAO,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,UAAU,GAAAR,OAAA,CAAAQ,UAAA,GAAG,CAAC,CAAC;AACnB,IAAIC,MAAM,GAAAT,OAAA,CAAAS,MAAA,GAAG,CAAC,CAAC;AACf,IAAIC,IAAI,GAAAV,OAAA,CAAAU,IAAA,GAAG,CAAC,CAAC","ignoreList":[]}
|