@wix/patterns-fields 1.17.0 → 1.20.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/cell-rich-content-input/package.json +5 -0
- package/dist/cjs/assets/locale/messages_en.json +7 -3
- 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/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/cell-image-edit.js +40 -146
- package/dist/cjs/components/image/cell-image-edit.js.map +1 -1
- package/dist/cjs/components/image/image-thumbnail.js +7 -6
- package/dist/cjs/components/image/image-thumbnail.js.map +1 -1
- package/dist/cjs/components/image/thumbnail-replace-overlay.js +29 -0
- package/dist/cjs/components/image/thumbnail-replace-overlay.js.map +1 -0
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css +15 -0
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +23 -0
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -0
- 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-control/use-media-control.js +8 -9
- package/dist/cjs/components/media-control/use-media-control.js.map +1 -1
- package/dist/cjs/components/media-gallery/cell-media-gallery-edit.js +301 -0
- package/dist/cjs/components/media-gallery/cell-media-gallery-edit.js.map +1 -0
- package/dist/cjs/components/media-gallery/cell-media-gallery-view.js +45 -0
- package/dist/cjs/components/media-gallery/cell-media-gallery-view.js.map +1 -0
- 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-gallery/index.js +12 -0
- package/dist/cjs/components/media-gallery/index.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 +4 -4
- 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/multi-document-input/form-multi-document-field.js.map +1 -1
- package/dist/cjs/components/multi-document/multi-document-input/form-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/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/editor.js +2 -10
- package/dist/cjs/components/rich-content/editor.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +6 -6
- 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/form-input.js +2 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-input/form-input.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-input/index.js +3 -4
- package/dist/cjs/components/rich-content/rich-content-input/form-input/index.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +5 -5
- 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/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-editor/rich-content-editor.st.css.js +8 -8
- 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 +4 -4
- 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/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/cell-rich-text-editor.js +155 -0
- package/dist/cjs/components/rich-text/cell-rich-text-editor.js.map +1 -0
- package/dist/cjs/components/rich-text/cell-rich-text-input.js +153 -0
- package/dist/cjs/components/rich-text/cell-rich-text-input.js.map +1 -0
- package/dist/cjs/components/rich-text/cell-rich-text-view.js +30 -0
- package/dist/cjs/components/rich-text/cell-rich-text-view.js.map +1 -0
- package/dist/cjs/components/rich-text/index.js +18 -0
- package/dist/cjs/components/rich-text/index.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.js +13 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css +26 -22
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +50 -46
- 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/header-dropdown.js +168 -157
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/header-dropdown.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css +13 -12
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +22 -19
- 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/video/cell-video-edit.js +424 -0
- package/dist/cjs/components/video/cell-video-edit.js.map +1 -0
- package/dist/cjs/components/video/index.js +3 -1
- package/dist/cjs/components/video/index.js.map +1 -1
- package/dist/cjs/exports/cell-rich-content-input.js +8 -0
- package/dist/cjs/exports/cell-rich-content-input.js.map +1 -0
- package/dist/cjs/exports/form-rich-content-input.js +3 -4
- package/dist/cjs/exports/form-rich-content-input.js.map +1 -1
- package/dist/cjs/hooks/index.js +6 -0
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/use-cell-edit-keyboard.js +94 -0
- package/dist/cjs/hooks/use-cell-edit-keyboard.js.map +1 -0
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/translations.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/esm/assets/locale/messages_en.json +7 -3
- package/dist/esm/components/address/input/address-input.st.css.js +2 -2
- package/dist/esm/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
- 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/color-view.st.css.js +2 -2
- package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
- 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/cell-image-edit.js +11 -102
- package/dist/esm/components/image/cell-image-edit.js.map +1 -1
- package/dist/esm/components/image/image-thumbnail.js +9 -3
- package/dist/esm/components/image/image-thumbnail.js.map +1 -1
- package/dist/esm/components/image/thumbnail-replace-overlay.js +7 -0
- package/dist/esm/components/image/thumbnail-replace-overlay.js.map +1 -0
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css +15 -0
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +15 -0
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js.map +1 -0
- package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
- package/dist/esm/components/media-control/use-media-control.js +9 -8
- package/dist/esm/components/media-control/use-media-control.js.map +1 -1
- package/dist/esm/components/media-gallery/cell-media-gallery-edit.js +103 -0
- package/dist/esm/components/media-gallery/cell-media-gallery-edit.js.map +1 -0
- package/dist/esm/components/media-gallery/cell-media-gallery-view.js +11 -0
- package/dist/esm/components/media-gallery/cell-media-gallery-view.js.map +1 -0
- package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
- package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js.map +1 -1
- package/dist/esm/components/media-gallery/index.js +2 -0
- package/dist/esm/components/media-gallery/index.js.map +1 -1
- 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 +3 -3
- package/dist/esm/components/media-image/overlays/overlay.st.css.js.map +1 -1
- package/dist/esm/components/media-loader/media-loader.st.css.js +2 -2
- 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/multi-document-input/form-multi-document-field.js.map +1 -1
- package/dist/esm/components/multi-document/multi-document-input/form-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/rich-content/cell-rich-content-input.js.map +1 -1
- package/dist/esm/components/rich-content/cell-rich-content-view.js +1 -1
- package/dist/esm/components/rich-content/cell-rich-content-view.js.map +1 -1
- package/dist/esm/components/rich-content/editor.js +1 -2
- package/dist/esm/components/rich-content/editor.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +3 -3
- 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/form-input.js +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-input/form-input.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-input/index.js +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-input/index.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
- 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/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- 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/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 +3 -3
- 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-viewer/rich-content-viewer.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
- package/dist/esm/components/rich-text/cell-rich-text-editor.js +85 -0
- package/dist/esm/components/rich-text/cell-rich-text-editor.js.map +1 -0
- package/dist/esm/components/rich-text/cell-rich-text-input.js +77 -0
- package/dist/esm/components/rich-text/cell-rich-text-input.js.map +1 -0
- package/dist/esm/components/rich-text/cell-rich-text-view.js +11 -0
- package/dist/esm/components/rich-text/cell-rich-text-view.js.map +1 -0
- package/dist/esm/components/rich-text/index.js +3 -0
- package/dist/esm/components/rich-text/index.js.map +1 -1
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.js +14 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.js.map +1 -1
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css +26 -22
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +4 -4
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
- 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/header-dropdown.js +64 -50
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/header-dropdown.js.map +1 -1
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css +13 -12
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +3 -3
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/esm/components/text/text-view.st.css.js +2 -2
- package/dist/esm/components/video/cell-video-edit.js +159 -0
- package/dist/esm/components/video/cell-video-edit.js.map +1 -0
- package/dist/esm/components/video/index.js +1 -0
- package/dist/esm/components/video/index.js.map +1 -1
- package/dist/esm/exports/cell-rich-content-input.js +2 -0
- package/dist/esm/exports/cell-rich-content-input.js.map +1 -0
- package/dist/esm/exports/form-rich-content-input.js +1 -1
- package/dist/esm/exports/form-rich-content-input.js.map +1 -1
- package/dist/esm/hooks/index.js +1 -0
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/use-cell-edit-keyboard.js +81 -0
- package/dist/esm/hooks/use-cell-edit-keyboard.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/types/components/address/input/address-input.st.css.d.ts.map +1 -1
- package/dist/types/components/exclamation/exclamation.st.css.d.ts.map +1 -1
- package/dist/types/components/image/cell-image-edit.d.ts.map +1 -1
- package/dist/types/components/image/image-thumbnail.d.ts +1 -0
- package/dist/types/components/image/image-thumbnail.d.ts.map +1 -1
- package/dist/types/components/image/thumbnail-replace-overlay.d.ts +3 -0
- package/dist/types/components/image/thumbnail-replace-overlay.d.ts.map +1 -0
- package/dist/types/components/image/thumbnail-replace-overlay.st.css.d.ts +14 -0
- package/dist/types/components/image/thumbnail-replace-overlay.st.css.d.ts.map +1 -0
- package/dist/types/components/media-control/use-media-control.d.ts +3 -3
- package/dist/types/components/media-control/use-media-control.d.ts.map +1 -1
- package/dist/types/components/media-gallery/cell-media-gallery-edit.d.ts +15 -0
- package/dist/types/components/media-gallery/cell-media-gallery-edit.d.ts.map +1 -0
- package/dist/types/components/media-gallery/cell-media-gallery-view.d.ts +11 -0
- package/dist/types/components/media-gallery/cell-media-gallery-view.d.ts.map +1 -0
- package/dist/types/components/media-gallery/form-media-gallery-field.st.css.d.ts.map +1 -1
- package/dist/types/components/media-gallery/index.d.ts +2 -0
- package/dist/types/components/media-gallery/index.d.ts.map +1 -1
- package/dist/types/components/media-gallery/media-gallery-dialog/hooks.d.ts +2 -2
- package/dist/types/components/media-image/media-image.st.css.d.ts.map +1 -1
- package/dist/types/components/media-image/overlays/overlay.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-view.d.ts +1 -1
- package/dist/types/components/multi-document/multi-document-input/form-multi-document-view.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/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/editor.d.ts +1 -2
- package/dist/types/components/rich-content/editor.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/form-input.d.ts +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-input/form-input.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-input/index.d.ts +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-input/index.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/form-read-only-input/rich-content-form-read-only-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-text/cell-rich-text-editor.d.ts +21 -0
- package/dist/types/components/rich-text/cell-rich-text-editor.d.ts.map +1 -0
- package/dist/types/components/rich-text/cell-rich-text-input.d.ts +23 -0
- package/dist/types/components/rich-text/cell-rich-text-input.d.ts.map +1 -0
- package/dist/types/components/rich-text/cell-rich-text-view.d.ts +8 -0
- package/dist/types/components/rich-text/cell-rich-text-view.d.ts.map +1 -0
- package/dist/types/components/rich-text/index.d.ts +4 -0
- package/dist/types/components/rich-text/index.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-editor.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.d.ts +4 -0
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.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/rich-text/rich-text-input/rich-text-editor/toolbar/header-dropdown.d.ts +1 -0
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/toolbar/header-dropdown.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.d.ts +3 -0
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/video/cell-video-edit.d.ts +20 -0
- package/dist/types/components/video/cell-video-edit.d.ts.map +1 -0
- package/dist/types/components/video/index.d.ts +2 -0
- package/dist/types/components/video/index.d.ts.map +1 -1
- package/dist/types/exports/cell-rich-content-input.d.ts +2 -0
- package/dist/types/exports/cell-rich-content-input.d.ts.map +1 -0
- package/dist/types/exports/form-rich-content-input.d.ts +1 -2
- package/dist/types/exports/form-rich-content-input.d.ts.map +1 -1
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/use-cell-edit-keyboard.d.ts +26 -0
- package/dist/types/hooks/use-cell-edit-keyboard.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/services/translations.d.ts +1 -1
- package/dist/types/services/translations.d.ts.map +1 -1
- package/package.json +11 -5
- package/src/assets/locale/messages_en.json +7 -3
- 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/color-view.st.css.ts +2 -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/cell-image-edit.tsx +11 -115
- package/src/components/image/image-thumbnail.tsx +10 -2
- package/src/components/image/thumbnail-replace-overlay.st.css +15 -0
- package/src/components/image/thumbnail-replace-overlay.st.css.ts +25 -0
- package/src/components/image/thumbnail-replace-overlay.tsx +11 -0
- package/src/components/media-control/paste-url-button.st.css.ts +2 -2
- package/src/components/media-control/use-media-control.ts +13 -13
- package/src/components/media-gallery/cell-media-gallery-edit.tsx +219 -0
- package/src/components/media-gallery/cell-media-gallery-view.tsx +32 -0
- package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
- package/src/components/media-gallery/index.ts +2 -0
- package/src/components/media-image/media-image.st.css.ts +3 -3
- package/src/components/media-image/overlays/overlay.st.css.ts +3 -3
- 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/multi-document-input/form-multi-document-field.tsx +1 -1
- package/src/components/multi-document/multi-document-input/form-multi-document-view.tsx +2 -2
- package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
- package/src/components/rich-content/cell-rich-content-input.tsx +2 -3
- package/src/components/rich-content/cell-rich-content-view.tsx +1 -4
- package/src/components/rich-content/editor.ts +1 -2
- package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +3 -3
- package/src/components/rich-content/rich-content-input/form-input/form-input.tsx +1 -1
- package/src/components/rich-content/rich-content-input/form-input/index.ts +1 -1
- package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +3 -3
- 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/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-editor/rich-content-editor.st.css.ts +3 -3
- 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/rich-content-viewer.st.css.ts +2 -2
- package/src/components/rich-text/cell-rich-text-editor.tsx +173 -0
- package/src/components/rich-text/cell-rich-text-input.tsx +126 -0
- package/src/components/rich-text/cell-rich-text-view.tsx +19 -0
- package/src/components/rich-text/index.ts +4 -0
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css +26 -22
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +4 -4
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.tsx +22 -5
- 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/header-dropdown.tsx +153 -126
- package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css +13 -12
- package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +3 -3
- package/src/components/text/text-view.st.css.ts +2 -2
- package/src/components/video/cell-video-edit.tsx +308 -0
- package/src/components/video/index.ts +2 -0
- package/src/exports/cell-rich-content-input.ts +4 -0
- package/src/exports/form-rich-content-input.ts +1 -5
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use-cell-edit-keyboard.ts +109 -0
- package/src/index.ts +1 -0
- package/src/services/translations.ts +5 -1
- package/src/styles.global.css +1 -1
|
@@ -13,6 +13,24 @@ Object.keys(_richTextInput).forEach(function (key) {
|
|
|
13
13
|
if (key in exports && exports[key] === _richTextInput[key]) return;
|
|
14
14
|
exports[key] = _richTextInput[key];
|
|
15
15
|
});
|
|
16
|
+
var _cellRichTextView = require("./cell-rich-text-view");
|
|
17
|
+
Object.keys(_cellRichTextView).forEach(function (key) {
|
|
18
|
+
if (key === "default" || key === "__esModule") return;
|
|
19
|
+
if (key in exports && exports[key] === _cellRichTextView[key]) return;
|
|
20
|
+
exports[key] = _cellRichTextView[key];
|
|
21
|
+
});
|
|
22
|
+
var _cellRichTextEditor = require("./cell-rich-text-editor");
|
|
23
|
+
Object.keys(_cellRichTextEditor).forEach(function (key) {
|
|
24
|
+
if (key === "default" || key === "__esModule") return;
|
|
25
|
+
if (key in exports && exports[key] === _cellRichTextEditor[key]) return;
|
|
26
|
+
exports[key] = _cellRichTextEditor[key];
|
|
27
|
+
});
|
|
28
|
+
var _cellRichTextInput = require("./cell-rich-text-input");
|
|
29
|
+
Object.keys(_cellRichTextInput).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _cellRichTextInput[key]) return;
|
|
32
|
+
exports[key] = _cellRichTextInput[key];
|
|
33
|
+
});
|
|
16
34
|
var _link = require("./components/link");
|
|
17
35
|
Object.keys(_link).forEach(function (key) {
|
|
18
36
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_richTextView","require","Object","keys","forEach","key","exports","_richTextInput","_link"],"sources":["../../../../src/components/rich-text/index.ts"],"sourcesContent":["export * from './rich-text-view';\nexport * from './rich-text-input';\n\nexport type { NoOptions, TextKeys } from './types';\nexport * from './components/link';\n"],"mappings":";;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,aAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,cAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,cAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,cAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,cAAA,CAAAF,GAAA;AAAA;
|
|
1
|
+
{"version":3,"names":["_richTextView","require","Object","keys","forEach","key","exports","_richTextInput","_cellRichTextView","_cellRichTextEditor","_cellRichTextInput","_link"],"sources":["../../../../src/components/rich-text/index.ts"],"sourcesContent":["export * from './rich-text-view';\nexport * from './rich-text-input';\nexport * from './cell-rich-text-view';\nexport * from './cell-rich-text-editor';\nexport * from './cell-rich-text-input';\nexport type { RichTextStyleVariables } from './rich-text-input/rich-text-editor/text-style';\n\nexport type { NoOptions, TextKeys } from './types';\nexport * from './components/link';\n"],"mappings":";;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAL,aAAA,CAAAK,GAAA;AAAA;AACA,IAAAE,cAAA,GAAAN,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAI,cAAA,EAAAH,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAE,cAAA,CAAAF,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAE,cAAA,CAAAF,GAAA;AAAA;AACA,IAAAG,iBAAA,GAAAP,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAK,iBAAA,EAAAJ,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAG,iBAAA,CAAAH,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAG,iBAAA,CAAAH,GAAA;AAAA;AACA,IAAAI,mBAAA,GAAAR,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAM,mBAAA,EAAAL,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAI,mBAAA,CAAAJ,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAI,mBAAA,CAAAJ,GAAA;AAAA;AACA,IAAAK,kBAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,kBAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,kBAAA,CAAAL,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAK,kBAAA,CAAAL,GAAA;AAAA;AAIA,IAAAM,KAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,KAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,KAAA,CAAAN,GAAA;EAAAC,OAAA,CAAAD,GAAA,IAAAM,KAAA,CAAAN,GAAA;AAAA","ignoreList":[]}
|
|
@@ -211,6 +211,12 @@ class RichEditor extends _react.default.Component {
|
|
|
211
211
|
let {
|
|
212
212
|
editorState
|
|
213
213
|
} = this.props;
|
|
214
|
+
// Restore the last focused selection before computing selected blocks — the
|
|
215
|
+
// editor may have blurred (portal click) before onSelect fires, leaving the
|
|
216
|
+
// current selection stale or collapsed.
|
|
217
|
+
if (this.lastSelectionWithFocus) {
|
|
218
|
+
editorState = _draftJs.EditorState.acceptSelection(editorState, this.lastSelectionWithFocus);
|
|
219
|
+
}
|
|
214
220
|
let contentState = editorState.getCurrentContent();
|
|
215
221
|
const selectedBlocks = this.getSelectedBlocks(editorState);
|
|
216
222
|
if (selectedBlocks.length) {
|
|
@@ -246,7 +252,12 @@ class RichEditor extends _react.default.Component {
|
|
|
246
252
|
}
|
|
247
253
|
editorState = _draftJs.EditorState.push(editorState, contentState, 'change-block-type');
|
|
248
254
|
if (this.lastSelectionWithFocus) {
|
|
249
|
-
|
|
255
|
+
if ((0, _utils.containsActiveElement)(this.root)) {
|
|
256
|
+
editorState = _draftJs.EditorState.acceptSelection(editorState, this.lastSelectionWithFocus);
|
|
257
|
+
} else {
|
|
258
|
+
editorState = _draftJs.EditorState.forceSelection(editorState, this.lastSelectionWithFocus);
|
|
259
|
+
this.focus();
|
|
260
|
+
}
|
|
250
261
|
}
|
|
251
262
|
this.onChange(editorState);
|
|
252
263
|
});
|
|
@@ -385,6 +396,7 @@ class RichEditor extends _react.default.Component {
|
|
|
385
396
|
handleKeyCommand: this.handleKeyCommand,
|
|
386
397
|
blockStyleFn: _utils2.blockStyleFn,
|
|
387
398
|
handlePastedText: this.handlePastedText,
|
|
399
|
+
preserveSelectionOnBlur: true,
|
|
388
400
|
__self: this,
|
|
389
401
|
__source: {
|
|
390
402
|
fileName: _jsxFileName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_draftJs","_draftjsConductor","_immutable","_utils","_utils2","_toolbar","_richEditorStCss","_jsxFileName","MAX_DEPTH","STRING_TO_ORDERED_LIST_RE","STRING_TO_UNORDERED_LIST_RE","RichEditor","React","Component","constructor","args","_defineProperty2","default","root","containsActiveElement","_this$editor","editor","focus","baseEditorState","editorState","applyAdvancedModifications","selection","getSelection","getHasFocus","lastSelectionWithFocus","props","onChange","e","isFullScreen","onToggleFullScreen","key","preventDefault","currentBlock","getCurrentBlock","isListType","isListItemBlockType","getType","shiftKey","handleRemoveListIndent","handleAddListIndent","nextState","RichUtils","onTab","event","currentBlockKey","getKey","previousListItem","getPreviousListItemBlock","nextEditorState","previousListItemDepth","getDepth","nextDepth","preventAndStopEvent","initialBlock","initialBlockDepth","initialBlockType","nextContentState","getCurrentContent","blockAfter","getBlockAfter","merge","blockMap","getBlockMap","set","EditorState","push","_","html","newState","handleDraftEditorPastedText","block","text","getText","type","test","convertBlockToListItem","command","includes","splitAndUnstyleBlock","completeKeyCommand","splitAndCopyInlineBlockType","removeCurrentBlock","handleKeyCommand","textAlign","data","Map","style","contentState","Modifier","mergeBlockData","selectedBlocks","blockKey","getStartKey","getBlockForKey","getEndKey","getKeyAfter","value","getSelectedBlocks","length","unstyleBlocks","every","getData","get","toggleListType","forEach","blockType","inlineBlockType","listType","otherType","blockSelection","SelectionState","createEmpty","getLength","setBlockType","forceSelection","inlineStyle","toggleInlineStyle","link","entityKey","isCollapsed","anchorOffset","getAnchorOffset","textEntityKey","createEntity","getLastCreatedEntityKey","insertText","undefined","focusOffset","hasFocus","url","toggleLink","getCurrentInlineStyle","contains","customStyleMap","styles","concat","Object","keys","contentWithoutStyles","reduce","removeInlineStyle","setBlockData","applyEntity","toggleBlockType","componentDidMount","autoFocus","copySource","registerCopySource","componentWillUnmount","unregister","componentDidUpdate","render","headingsEnabled","readOnly","createElement","ref","className","classes","onKeyDown","__self","__source","fileName","lineNumber","columnNumber","Toolbar","onChangeBlock","onChangeStyle","onChangeLink","onChangeAlign","onClear","Editor","tabIndex","stripPastedStyles","keyBindingFn","getDefaultKeyBinding","blockStyleFn","handlePastedText","exports"],"sources":["../../../../../../src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.tsx"],"sourcesContent":["import React from 'react';\n\nimport type {\n ContentBlock,\n ContentState,\n DraftHandleValue,\n DraftBlockType,\n} from 'draft-js';\nimport {\n Editor,\n EditorState,\n getDefaultKeyBinding,\n RichUtils,\n Modifier,\n SelectionState,\n} from 'draft-js';\nimport {\n registerCopySource,\n handleDraftEditorPastedText,\n} from 'draftjs-conductor';\nimport { Map } from 'immutable';\n\nimport { preventAndStopEvent, containsActiveElement } from '../../../../utils';\n\nimport type { CustomStyleMap } from './utils';\nimport {\n blockStyleFn,\n convertBlockToListItem,\n removeCurrentBlock,\n getCurrentBlock,\n splitAndUnstyleBlock,\n splitAndCopyInlineBlockType,\n isListItemBlockType,\n getPreviousListItemBlock,\n} from './utils';\nimport { Toolbar } from './toolbar';\nimport { classes } from './rich-editor.st.css.js';\n\nconst MAX_DEPTH = 4;\n// \"1.\" or \"1 .\"\nconst STRING_TO_ORDERED_LIST_RE = /^1\\s?\\.$/;\n// \"- \"\nconst STRING_TO_UNORDERED_LIST_RE = /^-\\s$/;\n\nexport interface RichEditorProps {\n readOnly?: boolean;\n onToggleFullScreen?: () => void;\n onToolbarMouseDown?: React.MouseEventHandler;\n customStyleMap: CustomStyleMap;\n editorState: EditorState;\n onChange: (editorState: EditorState) => void;\n isFullScreen?: boolean;\n headingsEnabled?: boolean;\n autoFocus?: boolean;\n}\n\nexport class RichEditor extends React.Component<RichEditorProps> {\n public editor: Editor | null = null;\n\n private root: HTMLElement | null = null;\n\n private copySource: { unregister: () => void } | null = null;\n\n private lastSelectionWithFocus: SelectionState | null = null;\n\n public componentDidMount() {\n if (this.props.autoFocus) {\n this.focus();\n }\n\n if (this.editor) {\n this.copySource = registerCopySource(this.editor);\n }\n }\n\n componentWillUnmount() {\n if (this.copySource) {\n this.copySource.unregister();\n }\n }\n\n componentDidUpdate() {\n if (!this.copySource && this.editor) {\n this.copySource = registerCopySource(this.editor);\n }\n }\n\n public render() {\n const {\n onToggleFullScreen,\n isFullScreen,\n headingsEnabled,\n editorState,\n customStyleMap,\n readOnly,\n } = this.props;\n\n return (\n <div\n ref={(root) => (this.root = root)}\n className={classes.root}\n onKeyDown={this.onKeyDown}\n >\n {!readOnly && (\n <Toolbar\n isFullScreen={isFullScreen}\n editorState={editorState}\n onChangeBlock={this.onChangeBlock}\n onChangeStyle={this.onChangeStyle}\n onChangeLink={this.onChangeLink}\n onChangeAlign={this.onChangeAlign}\n onClear={this.onClear}\n onToggleFullScreen={onToggleFullScreen}\n headingsEnabled={headingsEnabled}\n />\n )}\n <div className={classes.editor}>\n <Editor\n ref={(editor) => (this.editor = editor)}\n readOnly={readOnly}\n tabIndex={-1}\n editorState={editorState}\n stripPastedStyles={false}\n onChange={this.onChange}\n customStyleMap={customStyleMap}\n keyBindingFn={getDefaultKeyBinding}\n handleKeyCommand={this.handleKeyCommand}\n blockStyleFn={blockStyleFn}\n handlePastedText={this.handlePastedText}\n />\n </div>\n </div>\n );\n }\n\n public focus = () => {\n if (this.root && !containsActiveElement(this.root)) {\n this.editor?.focus();\n }\n };\n\n private onChange = (baseEditorState: EditorState) => {\n const editorState = this.applyAdvancedModifications(baseEditorState);\n const selection = editorState.getSelection();\n\n if (selection.getHasFocus()) {\n this.lastSelectionWithFocus = selection;\n }\n\n this.props.onChange(editorState);\n };\n\n private onKeyDown = (e: React.KeyboardEvent) => {\n const { editorState, isFullScreen, onToggleFullScreen } = this.props;\n /**\n * TODO\n * Ctrl+k - Link\n * Ctrl+Shift+L - align:left\n * Ctrl+Shift+E - align:center\n * Ctrl+Shift+R - align:right\n * Ctrl+Shift+J - align:justify\n * Ctrl+Shift+7 - ordered-list\n * Ctrl+Shift+8 - unordered-list\n * Ctrl+Alt+0 - normal text\n * Ctrl+Alt+1 - header-two\n * Ctrl+Alt+2 - header-three\n * Ctrl+\\ - clear formatting\n */\n switch (e.key) {\n case 'F11':\n if (onToggleFullScreen) {\n e.preventDefault();\n onToggleFullScreen();\n }\n break;\n case 'Escape':\n if (isFullScreen && onToggleFullScreen) {\n onToggleFullScreen();\n }\n break;\n case 'Tab': {\n const currentBlock = getCurrentBlock(editorState);\n const isListType = isListItemBlockType(currentBlock.getType());\n\n if (isListType && e.shiftKey) {\n this.handleRemoveListIndent(e, editorState);\n break;\n }\n\n if (isListType) {\n this.handleAddListIndent(e, editorState);\n break;\n }\n\n const nextState = RichUtils.onTab(e, editorState, MAX_DEPTH);\n\n this.onChange(nextState);\n break;\n }\n }\n };\n\n private handleAddListIndent = (\n event: React.KeyboardEvent,\n editorState: EditorState,\n ) => {\n const currentBlock = getCurrentBlock(editorState);\n const currentBlockKey = currentBlock.getKey();\n const previousListItem = getPreviousListItemBlock(\n editorState,\n currentBlockKey,\n );\n\n if (!previousListItem) {\n return;\n }\n\n const nextEditorState = RichUtils.onTab(event, editorState, MAX_DEPTH);\n\n const previousListItemDepth = previousListItem.getDepth();\n const nextDepth = getCurrentBlock(nextEditorState).getDepth();\n\n // Allow only one level of nesting related to the previous list item\n if (nextDepth > previousListItemDepth + 1) {\n return;\n }\n\n preventAndStopEvent(event);\n this.onChange(nextEditorState);\n };\n\n private handleRemoveListIndent = (\n event: React.KeyboardEvent,\n editorState: EditorState,\n ) => {\n const initialBlock = getCurrentBlock(editorState);\n const initialBlockDepth = initialBlock.getDepth();\n const initialBlockType = initialBlock.getType();\n\n if (initialBlockDepth === 0) {\n return;\n }\n\n let nextEditorState = RichUtils.onTab(event, editorState, MAX_DEPTH);\n let nextContentState = nextEditorState.getCurrentContent();\n\n const currentBlock = getCurrentBlock(nextEditorState);\n\n let blockAfter: ContentBlock | undefined = nextContentState.getBlockAfter(\n currentBlock.getKey(),\n );\n\n while (\n blockAfter &&\n initialBlockType === blockAfter.getType() &&\n blockAfter.getDepth() >= initialBlockDepth + 1\n ) {\n nextContentState = nextContentState.merge({\n blockMap: nextContentState\n .getBlockMap()\n .set(\n blockAfter.getKey(),\n blockAfter.set('depth', blockAfter.getDepth() - 1) as ContentBlock,\n ),\n }) as ContentState;\n\n blockAfter = nextContentState.getBlockAfter(blockAfter.getKey());\n }\n\n nextEditorState = EditorState.push(\n editorState,\n nextContentState as ContentState,\n 'adjust-depth',\n );\n\n preventAndStopEvent(event);\n this.onChange(nextEditorState);\n };\n\n private handlePastedText = (\n _: string,\n html: string | undefined,\n editorState: EditorState,\n ): DraftHandleValue => {\n const newState = handleDraftEditorPastedText(_, html, editorState);\n\n if (newState) {\n this.onChange(newState);\n return 'handled';\n }\n\n return 'not-handled';\n };\n\n private applyAdvancedModifications = (\n editorState: EditorState,\n ): EditorState => {\n const block = getCurrentBlock(editorState);\n const text = block.getText();\n const type = block.getType();\n\n if (STRING_TO_ORDERED_LIST_RE.test(text) && type === 'unstyled') {\n return convertBlockToListItem(editorState, true);\n }\n\n if (STRING_TO_UNORDERED_LIST_RE.test(text) && type === 'unstyled') {\n return convertBlockToListItem(editorState, false);\n }\n\n return editorState;\n };\n\n private handleKeyCommand = (\n command: string,\n editorState: EditorState,\n ): DraftHandleValue => {\n let block: ContentBlock;\n let nextState: EditorState | null;\n\n switch (command) {\n case 'split-block':\n block = getCurrentBlock(editorState);\n\n if (block.getType().includes('header')) {\n nextState = splitAndUnstyleBlock(editorState);\n return this.completeKeyCommand(nextState);\n }\n\n if (isListItemBlockType(block.getType())) {\n nextState = splitAndCopyInlineBlockType(editorState);\n return this.completeKeyCommand(nextState);\n }\n break;\n case 'delete':\n case 'backspace':\n block = getCurrentBlock(editorState);\n\n if (!block.getText()) {\n nextState = removeCurrentBlock(editorState, command);\n return this.completeKeyCommand(nextState);\n }\n break;\n }\n\n nextState = RichUtils.handleKeyCommand(editorState, command);\n return this.completeKeyCommand(nextState);\n };\n\n private completeKeyCommand = (editorState: EditorState | null) => {\n if (editorState) {\n this.onChange(editorState);\n return 'handled';\n }\n return 'not-handled';\n };\n\n private onChangeAlign = (textAlign: string) => {\n const { editorState } = this.props;\n const data = Map({ style: { textAlign } });\n\n const contentState = Modifier.mergeBlockData(\n editorState.getCurrentContent(),\n editorState.getSelection(),\n data,\n );\n const nextState = EditorState.push(\n editorState,\n contentState,\n 'change-block-data',\n );\n this.onChange(nextState);\n };\n\n private getSelectedBlocks = (editorState: EditorState) => {\n const selection = editorState.getSelection();\n const contentState = editorState.getCurrentContent();\n const selectedBlocks = [];\n\n let blockKey = selection.getStartKey();\n selectedBlocks.push(contentState.getBlockForKey(blockKey));\n\n while (blockKey !== selection.getEndKey()) {\n blockKey = contentState.getKeyAfter(blockKey);\n selectedBlocks.push(contentState.getBlockForKey(blockKey));\n }\n\n return selectedBlocks;\n };\n\n private onChangeBlock = (value: string) => {\n let { editorState } = this.props;\n let contentState = editorState.getCurrentContent();\n const selectedBlocks = this.getSelectedBlocks(editorState);\n\n if (selectedBlocks.length) {\n // if every block have value style then remove it from all\n // else set every block to value\n // also remember case when we explicitly trying to unstyle blocks\n const unstyleBlocks =\n value === 'unstyled' ||\n selectedBlocks.every(\n (block) =>\n block.getType() === value ||\n block.getData().get('inlineBlockType', 'unstyled') === value,\n );\n\n const toggleListType = isListItemBlockType(value as DraftBlockType);\n\n selectedBlocks.forEach((block) => {\n let blockType = block.getType();\n let inlineBlockType = block\n .getData()\n .get('inlineBlockType', 'unstyled') as DraftBlockType;\n\n let [listType, otherType]: [DraftBlockType, DraftBlockType] =\n isListItemBlockType(blockType)\n ? [blockType, inlineBlockType]\n : ['unstyled', blockType];\n\n if (unstyleBlocks) {\n listType = listType === value ? 'unstyled' : listType;\n otherType = [otherType, 'unstyled'].includes(value)\n ? 'unstyled'\n : otherType;\n } else {\n if (toggleListType) {\n listType = value as DraftBlockType;\n } else {\n otherType = value as DraftBlockType;\n }\n }\n\n blockType = listType !== 'unstyled' ? listType : otherType;\n inlineBlockType = listType !== 'unstyled' ? otherType : 'unstyled';\n\n // create selection for whole block\n const blockSelection = SelectionState.createEmpty(block.getKey()).set(\n 'focusOffset',\n block.getLength(),\n ) as SelectionState;\n\n contentState = Modifier.setBlockType(\n contentState,\n blockSelection,\n blockType,\n );\n contentState = Modifier.mergeBlockData(\n contentState,\n blockSelection,\n Map({ inlineBlockType }),\n );\n });\n }\n\n editorState = EditorState.push(\n editorState,\n contentState,\n 'change-block-type',\n );\n\n if (this.lastSelectionWithFocus) {\n editorState = EditorState.forceSelection(\n editorState,\n this.lastSelectionWithFocus,\n );\n }\n this.onChange(editorState);\n };\n\n private onChangeStyle = (inlineStyle: string) => {\n const editorState = RichUtils.toggleInlineStyle(\n this.props.editorState,\n inlineStyle,\n );\n this.onChange(editorState);\n };\n\n private onChangeLink = (link?: string) => {\n let { editorState } = this.props;\n\n if (this.lastSelectionWithFocus) {\n editorState = EditorState.forceSelection(\n editorState,\n this.lastSelectionWithFocus,\n );\n }\n let selection = editorState.getSelection();\n let contentState = editorState.getCurrentContent();\n let entityKey: string | null = null;\n this.focus();\n\n if (link) {\n // we need to add text when no text is selected\n if (selection.isCollapsed()) {\n const anchorOffset = selection.getAnchorOffset();\n const textEntityKey = contentState\n .createEntity('PLACEHOLDER', 'IMMUTABLE')\n .getLastCreatedEntityKey();\n\n contentState = Modifier.insertText(\n contentState,\n selection,\n link,\n undefined,\n textEntityKey,\n );\n editorState = EditorState.push(\n editorState,\n contentState,\n 'insert-characters',\n );\n selection = selection.merge({\n focusOffset: anchorOffset + link.length,\n hasFocus: true,\n }) as SelectionState;\n editorState = EditorState.forceSelection(editorState, selection);\n contentState = editorState.getCurrentContent();\n }\n contentState = contentState.createEntity('LINK', 'MUTABLE', {\n url: link,\n });\n entityKey = contentState.getLastCreatedEntityKey();\n }\n editorState = RichUtils.toggleLink(editorState, selection, entityKey);\n\n if (!editorState.getCurrentInlineStyle().contains('UNDERLINE')) {\n editorState = RichUtils.toggleInlineStyle(editorState, 'UNDERLINE');\n }\n\n this.onChange(editorState);\n };\n\n private onClear = () => {\n const { editorState, customStyleMap } = this.props;\n const selection = editorState.getSelection();\n // clear inline styles\n const styles = [\n 'BOLD',\n 'ITALIC',\n 'UNDERLINE',\n 'STRIKETHROUGH',\n 'CODE',\n ].concat(Object.keys(customStyleMap));\n let contentWithoutStyles = styles.reduce(\n (contentState, style) =>\n Modifier.removeInlineStyle(contentState, selection, style),\n editorState.getCurrentContent(),\n );\n\n // clear inline styles applied to blocks (backward compatibility)\n contentWithoutStyles = Modifier.setBlockData(\n contentWithoutStyles,\n selection,\n Map(),\n );\n\n // remove all entities like links\n contentWithoutStyles = Modifier.applyEntity(\n contentWithoutStyles,\n selection,\n null,\n );\n\n // clear blocks\n let nextState = EditorState.push(\n editorState,\n contentWithoutStyles,\n 'change-inline-style',\n );\n nextState = RichUtils.toggleBlockType(nextState, 'unstyled');\n this.onChange(nextState);\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAQA,IAAAC,QAAA,GAAAD,OAAA;AAQA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAL,OAAA;AAUA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,gBAAA,GAAAP,OAAA;AAAkD,IAAAQ,YAAA;AAElD,MAAMC,SAAS,GAAG,CAAC;AACnB;AACA,MAAMC,yBAAyB,GAAG,UAAU;AAC5C;AACA,MAAMC,2BAA2B,GAAG,OAAO;AAcpC,MAAMC,UAAU,SAASC,cAAK,CAACC,SAAS,CAAkB;EAAAC,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,kBAChC,IAAI;IAAA,IAAAD,gBAAA,CAAAC,OAAA,gBAEA,IAAI;IAAA,IAAAD,gBAAA,CAAAC,OAAA,sBAEiB,IAAI;IAAA,IAAAD,gBAAA,CAAAC,OAAA,kCAEJ,IAAI;IAAA,IAAAD,gBAAA,CAAAC,OAAA,iBAwE7C,MAAM;MACnB,IAAI,IAAI,CAACC,IAAI,IAAI,CAAC,IAAAC,4BAAqB,EAAC,IAAI,CAACD,IAAI,CAAC,EAAE;QAAA,IAAAE,YAAA;QAClD,CAAAA,YAAA,OAAI,CAACC,MAAM,aAAXD,YAAA,CAAaE,KAAK,CAAC,CAAC;MACtB;IACF,CAAC;IAAA,IAAAN,gBAAA,CAAAC,OAAA,oBAEmBM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Ae;MAC/BwC,YAAY,EAAEC,6BAAqB;MACnC5F,gBAAgB,EAAE,IAAI,CAACA,gBAAiB;MACxC6F,YAAY,EAAEA,oBAAa;MAC3BC,gBAAgB,EAAE,IAAI,CAACA,gBAAiB;MAAAjB,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAA/J,YAAA;QAAAgK,UAAA;QAAAC,YAAA;MAAA;IAAA,CACzC,CACE,CACF,CAAC;EAEV;AAubF;AAACc,OAAA,CAAA3K,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_draftJs","_draftjsConductor","_immutable","_utils","_utils2","_toolbar","_richEditorStCss","_jsxFileName","MAX_DEPTH","STRING_TO_ORDERED_LIST_RE","STRING_TO_UNORDERED_LIST_RE","RichEditor","React","Component","constructor","args","_defineProperty2","default","root","containsActiveElement","_this$editor","editor","focus","baseEditorState","editorState","applyAdvancedModifications","selection","getSelection","getHasFocus","lastSelectionWithFocus","props","onChange","e","isFullScreen","onToggleFullScreen","key","preventDefault","currentBlock","getCurrentBlock","isListType","isListItemBlockType","getType","shiftKey","handleRemoveListIndent","handleAddListIndent","nextState","RichUtils","onTab","event","currentBlockKey","getKey","previousListItem","getPreviousListItemBlock","nextEditorState","previousListItemDepth","getDepth","nextDepth","preventAndStopEvent","initialBlock","initialBlockDepth","initialBlockType","nextContentState","getCurrentContent","blockAfter","getBlockAfter","merge","blockMap","getBlockMap","set","EditorState","push","_","html","newState","handleDraftEditorPastedText","block","text","getText","type","test","convertBlockToListItem","command","includes","splitAndUnstyleBlock","completeKeyCommand","splitAndCopyInlineBlockType","removeCurrentBlock","handleKeyCommand","textAlign","data","Map","style","contentState","Modifier","mergeBlockData","selectedBlocks","blockKey","getStartKey","getBlockForKey","getEndKey","getKeyAfter","value","acceptSelection","getSelectedBlocks","length","unstyleBlocks","every","getData","get","toggleListType","forEach","blockType","inlineBlockType","listType","otherType","blockSelection","SelectionState","createEmpty","getLength","setBlockType","forceSelection","inlineStyle","toggleInlineStyle","link","entityKey","isCollapsed","anchorOffset","getAnchorOffset","textEntityKey","createEntity","getLastCreatedEntityKey","insertText","undefined","focusOffset","hasFocus","url","toggleLink","getCurrentInlineStyle","contains","customStyleMap","styles","concat","Object","keys","contentWithoutStyles","reduce","removeInlineStyle","setBlockData","applyEntity","toggleBlockType","componentDidMount","autoFocus","copySource","registerCopySource","componentWillUnmount","unregister","componentDidUpdate","render","headingsEnabled","readOnly","createElement","ref","className","classes","onKeyDown","__self","__source","fileName","lineNumber","columnNumber","Toolbar","onChangeBlock","onChangeStyle","onChangeLink","onChangeAlign","onClear","Editor","tabIndex","stripPastedStyles","keyBindingFn","getDefaultKeyBinding","blockStyleFn","handlePastedText","preserveSelectionOnBlur","exports"],"sources":["../../../../../../src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.tsx"],"sourcesContent":["import React from 'react';\n\nimport type {\n ContentBlock,\n ContentState,\n DraftHandleValue,\n DraftBlockType,\n} from 'draft-js';\nimport {\n Editor,\n EditorState,\n getDefaultKeyBinding,\n RichUtils,\n Modifier,\n SelectionState,\n} from 'draft-js';\nimport {\n registerCopySource,\n handleDraftEditorPastedText,\n} from 'draftjs-conductor';\nimport { Map } from 'immutable';\n\nimport { preventAndStopEvent, containsActiveElement } from '../../../../utils';\n\nimport type { CustomStyleMap } from './utils';\nimport {\n blockStyleFn,\n convertBlockToListItem,\n removeCurrentBlock,\n getCurrentBlock,\n splitAndUnstyleBlock,\n splitAndCopyInlineBlockType,\n isListItemBlockType,\n getPreviousListItemBlock,\n} from './utils';\nimport { Toolbar } from './toolbar';\nimport { classes } from './rich-editor.st.css.js';\n\nconst MAX_DEPTH = 4;\n// \"1.\" or \"1 .\"\nconst STRING_TO_ORDERED_LIST_RE = /^1\\s?\\.$/;\n// \"- \"\nconst STRING_TO_UNORDERED_LIST_RE = /^-\\s$/;\n\nexport interface RichEditorProps {\n readOnly?: boolean;\n onToggleFullScreen?: () => void;\n onToolbarMouseDown?: React.MouseEventHandler;\n customStyleMap: CustomStyleMap;\n editorState: EditorState;\n onChange: (editorState: EditorState) => void;\n isFullScreen?: boolean;\n headingsEnabled?: boolean;\n autoFocus?: boolean;\n}\n\nexport class RichEditor extends React.Component<RichEditorProps> {\n public editor: Editor | null = null;\n\n private root: HTMLElement | null = null;\n\n private copySource: { unregister: () => void } | null = null;\n\n private lastSelectionWithFocus: SelectionState | null = null;\n\n public componentDidMount() {\n if (this.props.autoFocus) {\n this.focus();\n }\n\n if (this.editor) {\n this.copySource = registerCopySource(this.editor);\n }\n }\n\n componentWillUnmount() {\n if (this.copySource) {\n this.copySource.unregister();\n }\n }\n\n componentDidUpdate() {\n if (!this.copySource && this.editor) {\n this.copySource = registerCopySource(this.editor);\n }\n }\n\n public render() {\n const {\n onToggleFullScreen,\n isFullScreen,\n headingsEnabled,\n editorState,\n customStyleMap,\n readOnly,\n } = this.props;\n\n return (\n <div\n ref={(root) => (this.root = root)}\n className={classes.root}\n onKeyDown={this.onKeyDown}\n >\n {!readOnly && (\n <Toolbar\n isFullScreen={isFullScreen}\n editorState={editorState}\n onChangeBlock={this.onChangeBlock}\n onChangeStyle={this.onChangeStyle}\n onChangeLink={this.onChangeLink}\n onChangeAlign={this.onChangeAlign}\n onClear={this.onClear}\n onToggleFullScreen={onToggleFullScreen}\n headingsEnabled={headingsEnabled}\n />\n )}\n <div className={classes.editor}>\n <Editor\n ref={(editor) => (this.editor = editor)}\n readOnly={readOnly}\n tabIndex={-1}\n editorState={editorState}\n stripPastedStyles={false}\n onChange={this.onChange}\n customStyleMap={customStyleMap}\n keyBindingFn={getDefaultKeyBinding}\n handleKeyCommand={this.handleKeyCommand}\n blockStyleFn={blockStyleFn}\n handlePastedText={this.handlePastedText}\n preserveSelectionOnBlur\n />\n </div>\n </div>\n );\n }\n\n public focus = () => {\n if (this.root && !containsActiveElement(this.root)) {\n this.editor?.focus();\n }\n };\n\n private onChange = (baseEditorState: EditorState) => {\n const editorState = this.applyAdvancedModifications(baseEditorState);\n const selection = editorState.getSelection();\n\n if (selection.getHasFocus()) {\n this.lastSelectionWithFocus = selection;\n }\n\n this.props.onChange(editorState);\n };\n\n private onKeyDown = (e: React.KeyboardEvent) => {\n const { editorState, isFullScreen, onToggleFullScreen } = this.props;\n /**\n * TODO\n * Ctrl+k - Link\n * Ctrl+Shift+L - align:left\n * Ctrl+Shift+E - align:center\n * Ctrl+Shift+R - align:right\n * Ctrl+Shift+J - align:justify\n * Ctrl+Shift+7 - ordered-list\n * Ctrl+Shift+8 - unordered-list\n * Ctrl+Alt+0 - normal text\n * Ctrl+Alt+1 - header-two\n * Ctrl+Alt+2 - header-three\n * Ctrl+\\ - clear formatting\n */\n switch (e.key) {\n case 'F11':\n if (onToggleFullScreen) {\n e.preventDefault();\n onToggleFullScreen();\n }\n break;\n case 'Escape':\n if (isFullScreen && onToggleFullScreen) {\n onToggleFullScreen();\n }\n break;\n case 'Tab': {\n const currentBlock = getCurrentBlock(editorState);\n const isListType = isListItemBlockType(currentBlock.getType());\n\n if (isListType && e.shiftKey) {\n this.handleRemoveListIndent(e, editorState);\n break;\n }\n\n if (isListType) {\n this.handleAddListIndent(e, editorState);\n break;\n }\n\n const nextState = RichUtils.onTab(e, editorState, MAX_DEPTH);\n\n this.onChange(nextState);\n break;\n }\n }\n };\n\n private handleAddListIndent = (\n event: React.KeyboardEvent,\n editorState: EditorState,\n ) => {\n const currentBlock = getCurrentBlock(editorState);\n const currentBlockKey = currentBlock.getKey();\n const previousListItem = getPreviousListItemBlock(\n editorState,\n currentBlockKey,\n );\n\n if (!previousListItem) {\n return;\n }\n\n const nextEditorState = RichUtils.onTab(event, editorState, MAX_DEPTH);\n\n const previousListItemDepth = previousListItem.getDepth();\n const nextDepth = getCurrentBlock(nextEditorState).getDepth();\n\n // Allow only one level of nesting related to the previous list item\n if (nextDepth > previousListItemDepth + 1) {\n return;\n }\n\n preventAndStopEvent(event);\n this.onChange(nextEditorState);\n };\n\n private handleRemoveListIndent = (\n event: React.KeyboardEvent,\n editorState: EditorState,\n ) => {\n const initialBlock = getCurrentBlock(editorState);\n const initialBlockDepth = initialBlock.getDepth();\n const initialBlockType = initialBlock.getType();\n\n if (initialBlockDepth === 0) {\n return;\n }\n\n let nextEditorState = RichUtils.onTab(event, editorState, MAX_DEPTH);\n let nextContentState = nextEditorState.getCurrentContent();\n\n const currentBlock = getCurrentBlock(nextEditorState);\n\n let blockAfter: ContentBlock | undefined = nextContentState.getBlockAfter(\n currentBlock.getKey(),\n );\n\n while (\n blockAfter &&\n initialBlockType === blockAfter.getType() &&\n blockAfter.getDepth() >= initialBlockDepth + 1\n ) {\n nextContentState = nextContentState.merge({\n blockMap: nextContentState\n .getBlockMap()\n .set(\n blockAfter.getKey(),\n blockAfter.set('depth', blockAfter.getDepth() - 1) as ContentBlock,\n ),\n }) as ContentState;\n\n blockAfter = nextContentState.getBlockAfter(blockAfter.getKey());\n }\n\n nextEditorState = EditorState.push(\n editorState,\n nextContentState as ContentState,\n 'adjust-depth',\n );\n\n preventAndStopEvent(event);\n this.onChange(nextEditorState);\n };\n\n private handlePastedText = (\n _: string,\n html: string | undefined,\n editorState: EditorState,\n ): DraftHandleValue => {\n const newState = handleDraftEditorPastedText(_, html, editorState);\n\n if (newState) {\n this.onChange(newState);\n return 'handled';\n }\n\n return 'not-handled';\n };\n\n private applyAdvancedModifications = (\n editorState: EditorState,\n ): EditorState => {\n const block = getCurrentBlock(editorState);\n const text = block.getText();\n const type = block.getType();\n\n if (STRING_TO_ORDERED_LIST_RE.test(text) && type === 'unstyled') {\n return convertBlockToListItem(editorState, true);\n }\n\n if (STRING_TO_UNORDERED_LIST_RE.test(text) && type === 'unstyled') {\n return convertBlockToListItem(editorState, false);\n }\n\n return editorState;\n };\n\n private handleKeyCommand = (\n command: string,\n editorState: EditorState,\n ): DraftHandleValue => {\n let block: ContentBlock;\n let nextState: EditorState | null;\n\n switch (command) {\n case 'split-block':\n block = getCurrentBlock(editorState);\n\n if (block.getType().includes('header')) {\n nextState = splitAndUnstyleBlock(editorState);\n return this.completeKeyCommand(nextState);\n }\n\n if (isListItemBlockType(block.getType())) {\n nextState = splitAndCopyInlineBlockType(editorState);\n return this.completeKeyCommand(nextState);\n }\n break;\n case 'delete':\n case 'backspace':\n block = getCurrentBlock(editorState);\n\n if (!block.getText()) {\n nextState = removeCurrentBlock(editorState, command);\n return this.completeKeyCommand(nextState);\n }\n break;\n }\n\n nextState = RichUtils.handleKeyCommand(editorState, command);\n return this.completeKeyCommand(nextState);\n };\n\n private completeKeyCommand = (editorState: EditorState | null) => {\n if (editorState) {\n this.onChange(editorState);\n return 'handled';\n }\n return 'not-handled';\n };\n\n private onChangeAlign = (textAlign: string) => {\n const { editorState } = this.props;\n const data = Map({ style: { textAlign } });\n\n const contentState = Modifier.mergeBlockData(\n editorState.getCurrentContent(),\n editorState.getSelection(),\n data,\n );\n const nextState = EditorState.push(\n editorState,\n contentState,\n 'change-block-data',\n );\n this.onChange(nextState);\n };\n\n private getSelectedBlocks = (editorState: EditorState) => {\n const selection = editorState.getSelection();\n const contentState = editorState.getCurrentContent();\n const selectedBlocks = [];\n\n let blockKey = selection.getStartKey();\n selectedBlocks.push(contentState.getBlockForKey(blockKey));\n\n while (blockKey !== selection.getEndKey()) {\n blockKey = contentState.getKeyAfter(blockKey);\n selectedBlocks.push(contentState.getBlockForKey(blockKey));\n }\n\n return selectedBlocks;\n };\n\n private onChangeBlock = (value: string) => {\n let { editorState } = this.props;\n // Restore the last focused selection before computing selected blocks — the\n // editor may have blurred (portal click) before onSelect fires, leaving the\n // current selection stale or collapsed.\n if (this.lastSelectionWithFocus) {\n editorState = EditorState.acceptSelection(\n editorState,\n this.lastSelectionWithFocus,\n );\n }\n let contentState = editorState.getCurrentContent();\n const selectedBlocks = this.getSelectedBlocks(editorState);\n if (selectedBlocks.length) {\n // if every block have value style then remove it from all\n // else set every block to value\n // also remember case when we explicitly trying to unstyle blocks\n const unstyleBlocks =\n value === 'unstyled' ||\n selectedBlocks.every(\n (block) =>\n block.getType() === value ||\n block.getData().get('inlineBlockType', 'unstyled') === value,\n );\n\n const toggleListType = isListItemBlockType(value as DraftBlockType);\n\n selectedBlocks.forEach((block) => {\n let blockType = block.getType();\n let inlineBlockType = block\n .getData()\n .get('inlineBlockType', 'unstyled') as DraftBlockType;\n\n let [listType, otherType]: [DraftBlockType, DraftBlockType] =\n isListItemBlockType(blockType)\n ? [blockType, inlineBlockType]\n : ['unstyled', blockType];\n\n if (unstyleBlocks) {\n listType = listType === value ? 'unstyled' : listType;\n otherType = [otherType, 'unstyled'].includes(value)\n ? 'unstyled'\n : otherType;\n } else {\n if (toggleListType) {\n listType = value as DraftBlockType;\n } else {\n otherType = value as DraftBlockType;\n }\n }\n\n blockType = listType !== 'unstyled' ? listType : otherType;\n inlineBlockType = listType !== 'unstyled' ? otherType : 'unstyled';\n\n // create selection for whole block\n const blockSelection = SelectionState.createEmpty(block.getKey()).set(\n 'focusOffset',\n block.getLength(),\n ) as SelectionState;\n\n contentState = Modifier.setBlockType(\n contentState,\n blockSelection,\n blockType,\n );\n contentState = Modifier.mergeBlockData(\n contentState,\n blockSelection,\n Map({ inlineBlockType }),\n );\n });\n }\n\n editorState = EditorState.push(\n editorState,\n contentState,\n 'change-block-type',\n );\n\n if (this.lastSelectionWithFocus) {\n if (containsActiveElement(this.root)) {\n editorState = EditorState.acceptSelection(\n editorState,\n this.lastSelectionWithFocus,\n );\n } else {\n editorState = EditorState.forceSelection(\n editorState,\n this.lastSelectionWithFocus,\n );\n this.focus();\n }\n }\n this.onChange(editorState);\n };\n\n private onChangeStyle = (inlineStyle: string) => {\n const editorState = RichUtils.toggleInlineStyle(\n this.props.editorState,\n inlineStyle,\n );\n this.onChange(editorState);\n };\n\n private onChangeLink = (link?: string) => {\n let { editorState } = this.props;\n\n if (this.lastSelectionWithFocus) {\n editorState = EditorState.forceSelection(\n editorState,\n this.lastSelectionWithFocus,\n );\n }\n let selection = editorState.getSelection();\n let contentState = editorState.getCurrentContent();\n let entityKey: string | null = null;\n this.focus();\n\n if (link) {\n // we need to add text when no text is selected\n if (selection.isCollapsed()) {\n const anchorOffset = selection.getAnchorOffset();\n const textEntityKey = contentState\n .createEntity('PLACEHOLDER', 'IMMUTABLE')\n .getLastCreatedEntityKey();\n\n contentState = Modifier.insertText(\n contentState,\n selection,\n link,\n undefined,\n textEntityKey,\n );\n editorState = EditorState.push(\n editorState,\n contentState,\n 'insert-characters',\n );\n selection = selection.merge({\n focusOffset: anchorOffset + link.length,\n hasFocus: true,\n }) as SelectionState;\n editorState = EditorState.forceSelection(editorState, selection);\n contentState = editorState.getCurrentContent();\n }\n contentState = contentState.createEntity('LINK', 'MUTABLE', {\n url: link,\n });\n entityKey = contentState.getLastCreatedEntityKey();\n }\n editorState = RichUtils.toggleLink(editorState, selection, entityKey);\n\n if (!editorState.getCurrentInlineStyle().contains('UNDERLINE')) {\n editorState = RichUtils.toggleInlineStyle(editorState, 'UNDERLINE');\n }\n\n this.onChange(editorState);\n };\n\n private onClear = () => {\n const { editorState, customStyleMap } = this.props;\n const selection = editorState.getSelection();\n // clear inline styles\n const styles = [\n 'BOLD',\n 'ITALIC',\n 'UNDERLINE',\n 'STRIKETHROUGH',\n 'CODE',\n ].concat(Object.keys(customStyleMap));\n let contentWithoutStyles = styles.reduce(\n (contentState, style) =>\n Modifier.removeInlineStyle(contentState, selection, style),\n editorState.getCurrentContent(),\n );\n\n // clear inline styles applied to blocks (backward compatibility)\n contentWithoutStyles = Modifier.setBlockData(\n contentWithoutStyles,\n selection,\n Map(),\n );\n\n // remove all entities like links\n contentWithoutStyles = Modifier.applyEntity(\n contentWithoutStyles,\n selection,\n null,\n );\n\n // clear blocks\n let nextState = EditorState.push(\n editorState,\n contentWithoutStyles,\n 'change-inline-style',\n );\n nextState = RichUtils.toggleBlockType(nextState, 'unstyled');\n this.onChange(nextState);\n };\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAQA,IAAAC,QAAA,GA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AAE,IAAI,CAACA,QAAS;MACxB4G,cAAc,EAAEA,cAAe;MAC/BwC,YAAY,EAAEC,6BAAqB;MACnC7F,gBAAgB,EAAE,IAAI,CAACA,gBAAiB;MACxC8F,YAAY,EAAEA,oBAAa;MAC3BC,gBAAgB,EAAE,IAAI,CAACA,gBAAiB;MACxCC,uBAAuB;MAAAlB,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAhK,YAAA;QAAAiK,UAAA;QAAAC,YAAA;MAAA;IAAA,CACxB,CACE,CACF,CAAC;EAEV;AAucF;AAACe,OAAA,CAAA7K,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@property st-global(--wds-color-black-100);
|
|
7
7
|
@property st-global(--wds-color-black-700);
|
|
8
8
|
@property st-global(--wds-font-family-default);
|
|
9
|
+
@property st-global(--wsr-font-family);
|
|
9
10
|
@property st-global(--wds-font-weight-medium);
|
|
10
11
|
@property st-global(--wds-font-weight-bold);
|
|
11
12
|
@property st-global(--wds-font-size-500);
|
|
@@ -65,66 +66,69 @@
|
|
|
65
66
|
@property st-global(--rt-p3-lineHeight);
|
|
66
67
|
|
|
67
68
|
:vars {
|
|
69
|
+
/* Madefor fallback ensures the correct font renders even without a WDS theme. */
|
|
70
|
+
fontFamilyDefault: var(--wds-font-family-default, var(--wsr-font-family, Madefor));
|
|
71
|
+
|
|
68
72
|
h1FontSize: var(--rt-h1-fontSize, 72px);
|
|
69
73
|
h1FontStyle: var(--rt-h1-fontStyle, normal);
|
|
70
|
-
h1FontWeight: var(--rt-h1-fontWeight, var(--wds-font-weight-bold));
|
|
71
|
-
h1FontFamily: var(--rt-h1-fontFamily,
|
|
74
|
+
h1FontWeight: var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700));
|
|
75
|
+
h1FontFamily: var(--rt-h1-fontFamily, value(fontFamilyDefault));
|
|
72
76
|
h1LineHeight: var(--rt-h1-lineHeight, 1.33);
|
|
73
77
|
h1Font: value(h1FontStyle) value(h1FontWeight) value(h1FontSize)/value(h1LineHeight) value(h1FontFamily);
|
|
74
78
|
|
|
75
79
|
h2FontSize: var(--rt-h2-fontSize, 42px);
|
|
76
80
|
h2FontStyle: var(--rt-h2-fontStyle, normal);
|
|
77
|
-
h2FontWeight: var(--rt-h2-fontWeight, var(--wds-font-weight-bold));
|
|
78
|
-
h2FontFamily: var(--rt-h2-fontFamily,
|
|
81
|
+
h2FontWeight: var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700));
|
|
82
|
+
h2FontFamily: var(--rt-h2-fontFamily, value(fontFamilyDefault));
|
|
79
83
|
h2LineHeight: var(--rt-h2-lineHeight, 1.2);
|
|
80
84
|
h2Font: value(h2FontStyle) value(h2FontWeight) value(h2FontSize)/value(h2LineHeight) value(h2FontFamily);
|
|
81
85
|
|
|
82
86
|
h3FontSize: var(--rt-h3-fontSize, 38px);
|
|
83
87
|
h3FontStyle: var(--rt-h3-fontStyle, normal);
|
|
84
|
-
h3FontWeight: var(--rt-h3-fontWeight, var(--wds-font-weight-medium));
|
|
85
|
-
h3FontFamily: var(--rt-h3-fontFamily,
|
|
88
|
+
h3FontWeight: var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500));
|
|
89
|
+
h3FontFamily: var(--rt-h3-fontFamily, value(fontFamilyDefault));
|
|
86
90
|
h3LineHeight: var(--rt-h3-lineHeight, 1.2);
|
|
87
91
|
h3Font: value(h3FontStyle) value(h3FontWeight) value(h3FontSize)/value(h3LineHeight) value(h3FontFamily);
|
|
88
92
|
|
|
89
93
|
h4FontSize: var(--rt-h4-fontSize, 34px);
|
|
90
94
|
h4FontStyle: var(--rt-h4-fontStyle, normal);
|
|
91
|
-
h4FontWeight: var(--rt-h4-fontWeight, var(--wds-font-weight-bold));
|
|
92
|
-
h4FontFamily: var(--rt-h4-fontFamily,
|
|
95
|
+
h4FontWeight: var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700));
|
|
96
|
+
h4FontFamily: var(--rt-h4-fontFamily, value(fontFamilyDefault));
|
|
93
97
|
h4LineHeight: var(--rt-h4-lineHeight, 1.2);
|
|
94
98
|
h4Font: value(h4FontStyle) value(h4FontWeight) value(h4FontSize)/value(h4LineHeight) value(h4FontFamily);
|
|
95
99
|
|
|
96
100
|
h5FontSize: var(--rt-h5-fontSize, 28px);
|
|
97
101
|
h5FontStyle: var(--rt-h5-fontStyle, normal);
|
|
98
|
-
h5FontWeight: var(--rt-h5-fontWeight, var(--wds-font-weight-bold));
|
|
99
|
-
h5FontFamily: var(--rt-h5-fontFamily,
|
|
102
|
+
h5FontWeight: var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700));
|
|
103
|
+
h5FontFamily: var(--rt-h5-fontFamily, value(fontFamilyDefault));
|
|
100
104
|
h5LineHeight: var(--rt-h5-lineHeight, 1.2);
|
|
101
105
|
h5Font: value(h5FontStyle) value(h5FontWeight) value(h5FontSize)/value(h5LineHeight) value(h5FontFamily);
|
|
102
106
|
|
|
103
107
|
h6FontSize: var(--rt-h6-fontSize, 22px);
|
|
104
108
|
h6FontStyle: var(--rt-h6-fontStyle, normal);
|
|
105
|
-
h6FontWeight: var(--rt-h6-fontWeight, var(--wds-font-weight-medium));
|
|
106
|
-
h6FontFamily: var(--rt-h6-fontFamily,
|
|
109
|
+
h6FontWeight: var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500));
|
|
110
|
+
h6FontFamily: var(--rt-h6-fontFamily, value(fontFamilyDefault));
|
|
107
111
|
h6LineHeight: var(--rt-h6-lineHeight, 1.2);
|
|
108
112
|
h6Font: value(h6FontStyle) value(h6FontWeight) value(h6FontSize)/value(h6LineHeight) value(h6FontFamily);
|
|
109
113
|
|
|
110
114
|
p1FontSize: var(--rt-p1-fontSize, 18px);
|
|
111
115
|
p1FontStyle: var(--rt-p1-fontStyle, normal);
|
|
112
|
-
p1FontWeight: var(--rt-p1-fontWeight, var(--wds-font-weight-medium));
|
|
113
|
-
p1FontFamily: var(--rt-p1-fontFamily,
|
|
116
|
+
p1FontWeight: var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500));
|
|
117
|
+
p1FontFamily: var(--rt-p1-fontFamily, value(fontFamilyDefault));
|
|
114
118
|
p1LineHeight: var(--rt-p1-lineHeight, 24px);
|
|
115
119
|
p1Font: value(p1FontStyle) value(p1FontWeight) value(p1FontSize)/value(p1LineHeight) value(p1FontFamily);
|
|
116
120
|
|
|
117
121
|
unstyledFontSize: var(--rt-unstyled-fontSize, 16px);
|
|
118
122
|
unstyledFontStyle: var(--rt-unstyled-fontStyle, normal);
|
|
119
|
-
unstyledFontWeight: var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium));
|
|
120
|
-
unstyledFontFamily: var(--rt-unstyled-fontFamily,
|
|
123
|
+
unstyledFontWeight: var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500));
|
|
124
|
+
unstyledFontFamily: var(--rt-unstyled-fontFamily, value(fontFamilyDefault));
|
|
121
125
|
unstyledLineHeight: var(--rt-unstyled-lineHeight, 24px);
|
|
122
126
|
unstyledFont: value(unstyledFontStyle) value(unstyledFontWeight) value(unstyledFontSize)/value(unstyledLineHeight) value(unstyledFontFamily);
|
|
123
127
|
|
|
124
128
|
p3FontSize: var(--rt-p3-fontSize, 14px);
|
|
125
129
|
p3FontStyle: var(--rt-p3-fontStyle, normal);
|
|
126
|
-
p3FontWeight: var(--rt-p3-fontWeight, var(--wds-font-weight-medium));
|
|
127
|
-
p3FontFamily: var(--rt-p3-fontFamily,
|
|
130
|
+
p3FontWeight: var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500));
|
|
131
|
+
p3FontFamily: var(--rt-p3-fontFamily, value(fontFamilyDefault));
|
|
128
132
|
p3LineHeight: var(--rt-p3-lineHeight, 18px);
|
|
129
133
|
p3Font: value(p3FontStyle) value(p3FontWeight) value(p3FontSize)/value(p3LineHeight) value(p3FontFamily);
|
|
130
134
|
}
|
|
@@ -132,10 +136,10 @@
|
|
|
132
136
|
.root {
|
|
133
137
|
display: flex;
|
|
134
138
|
flex-direction: column;
|
|
135
|
-
font-weight: var(--wds-font-weight-medium);
|
|
139
|
+
font-weight: var(--wds-font-weight-medium, 500);
|
|
136
140
|
font-size: var(--wds-font-size-500);
|
|
137
141
|
line-height: var(--wds-font-line-height-300);
|
|
138
|
-
font-family:
|
|
142
|
+
font-family: value(fontFamilyDefault);
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
.editor {
|
|
@@ -145,8 +149,8 @@
|
|
|
145
149
|
flex-direction: column;
|
|
146
150
|
flex: 1;
|
|
147
151
|
cursor: text;
|
|
148
|
-
color: var(--wds-color-black-100);
|
|
149
|
-
background: var(--wds-color-black-700);
|
|
152
|
+
color: var(--wds-color-black-100, var(--wsr-color-D10, #131720));
|
|
153
|
+
background: var(--wds-color-black-700, var(--wsr-color-D70, #edeef2));
|
|
150
154
|
}
|
|
151
155
|
|
|
152
156
|
.editor :global(.DraftEditor-root) {
|
package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js
CHANGED
|
@@ -5,94 +5,96 @@ 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_ = "richeditor1108902122";
|
|
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": "
|
|
17
|
-
"header-one": "
|
|
18
|
-
"header-two": "
|
|
19
|
-
"header-three": "
|
|
20
|
-
"header-four": "
|
|
21
|
-
"header-five": "
|
|
22
|
-
"header-six": "
|
|
23
|
-
"paragraph-one": "
|
|
24
|
-
"unstyled": "
|
|
25
|
-
"paragraph-three": "
|
|
26
|
-
"align-left": "
|
|
27
|
-
"align-right": "
|
|
28
|
-
"align-center": "
|
|
29
|
-
"align-justify": "
|
|
30
|
-
"withMargin": "
|
|
31
|
-
"dir-rtl": "
|
|
15
|
+
"root": "richeditor1108902122__root",
|
|
16
|
+
"editor": "richeditor1108902122__editor",
|
|
17
|
+
"header-one": "richeditor1108902122__header-one",
|
|
18
|
+
"header-two": "richeditor1108902122__header-two",
|
|
19
|
+
"header-three": "richeditor1108902122__header-three",
|
|
20
|
+
"header-four": "richeditor1108902122__header-four",
|
|
21
|
+
"header-five": "richeditor1108902122__header-five",
|
|
22
|
+
"header-six": "richeditor1108902122__header-six",
|
|
23
|
+
"paragraph-one": "richeditor1108902122__paragraph-one",
|
|
24
|
+
"unstyled": "richeditor1108902122__unstyled",
|
|
25
|
+
"paragraph-three": "richeditor1108902122__paragraph-three",
|
|
26
|
+
"align-left": "richeditor1108902122__align-left",
|
|
27
|
+
"align-right": "richeditor1108902122__align-right",
|
|
28
|
+
"align-center": "richeditor1108902122__align-center",
|
|
29
|
+
"align-justify": "richeditor1108902122__align-justify",
|
|
30
|
+
"withMargin": "richeditor1108902122__withMargin",
|
|
31
|
+
"dir-rtl": "richeditor1108902122__dir-rtl"
|
|
32
32
|
};
|
|
33
33
|
var keyframes = exports.keyframes = {};
|
|
34
34
|
var layers = exports.layers = {};
|
|
35
35
|
var containers = exports.containers = {};
|
|
36
36
|
var stVars = exports.stVars = {
|
|
37
|
+
"fontFamilyDefault": "var(--wds-font-family-default, var(--wsr-font-family, Madefor))",
|
|
37
38
|
"h1FontSize": "var(--rt-h1-fontSize, 72px)",
|
|
38
39
|
"h1FontStyle": "var(--rt-h1-fontStyle, normal)",
|
|
39
|
-
"h1FontWeight": "var(--rt-h1-fontWeight, var(--wds-font-weight-bold))",
|
|
40
|
-
"h1FontFamily": "var(--rt-h1-fontFamily, var(--wds-font-family-default))",
|
|
40
|
+
"h1FontWeight": "var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700))",
|
|
41
|
+
"h1FontFamily": "var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
41
42
|
"h1LineHeight": "var(--rt-h1-lineHeight, 1.33)",
|
|
42
|
-
"h1Font": "var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default))",
|
|
43
|
+
"h1Font": "var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
43
44
|
"h2FontSize": "var(--rt-h2-fontSize, 42px)",
|
|
44
45
|
"h2FontStyle": "var(--rt-h2-fontStyle, normal)",
|
|
45
|
-
"h2FontWeight": "var(--rt-h2-fontWeight, var(--wds-font-weight-bold))",
|
|
46
|
-
"h2FontFamily": "var(--rt-h2-fontFamily, var(--wds-font-family-default))",
|
|
46
|
+
"h2FontWeight": "var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700))",
|
|
47
|
+
"h2FontFamily": "var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
47
48
|
"h2LineHeight": "var(--rt-h2-lineHeight, 1.2)",
|
|
48
|
-
"h2Font": "var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default))",
|
|
49
|
+
"h2Font": "var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
49
50
|
"h3FontSize": "var(--rt-h3-fontSize, 38px)",
|
|
50
51
|
"h3FontStyle": "var(--rt-h3-fontStyle, normal)",
|
|
51
|
-
"h3FontWeight": "var(--rt-h3-fontWeight, var(--wds-font-weight-medium))",
|
|
52
|
-
"h3FontFamily": "var(--rt-h3-fontFamily, var(--wds-font-family-default))",
|
|
52
|
+
"h3FontWeight": "var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500))",
|
|
53
|
+
"h3FontFamily": "var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
53
54
|
"h3LineHeight": "var(--rt-h3-lineHeight, 1.2)",
|
|
54
|
-
"h3Font": "var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default))",
|
|
55
|
+
"h3Font": "var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
55
56
|
"h4FontSize": "var(--rt-h4-fontSize, 34px)",
|
|
56
57
|
"h4FontStyle": "var(--rt-h4-fontStyle, normal)",
|
|
57
|
-
"h4FontWeight": "var(--rt-h4-fontWeight, var(--wds-font-weight-bold))",
|
|
58
|
-
"h4FontFamily": "var(--rt-h4-fontFamily, var(--wds-font-family-default))",
|
|
58
|
+
"h4FontWeight": "var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700))",
|
|
59
|
+
"h4FontFamily": "var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
59
60
|
"h4LineHeight": "var(--rt-h4-lineHeight, 1.2)",
|
|
60
|
-
"h4Font": "var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default))",
|
|
61
|
+
"h4Font": "var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
61
62
|
"h5FontSize": "var(--rt-h5-fontSize, 28px)",
|
|
62
63
|
"h5FontStyle": "var(--rt-h5-fontStyle, normal)",
|
|
63
|
-
"h5FontWeight": "var(--rt-h5-fontWeight, var(--wds-font-weight-bold))",
|
|
64
|
-
"h5FontFamily": "var(--rt-h5-fontFamily, var(--wds-font-family-default))",
|
|
64
|
+
"h5FontWeight": "var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700))",
|
|
65
|
+
"h5FontFamily": "var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
65
66
|
"h5LineHeight": "var(--rt-h5-lineHeight, 1.2)",
|
|
66
|
-
"h5Font": "var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default))",
|
|
67
|
+
"h5Font": "var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
67
68
|
"h6FontSize": "var(--rt-h6-fontSize, 22px)",
|
|
68
69
|
"h6FontStyle": "var(--rt-h6-fontStyle, normal)",
|
|
69
|
-
"h6FontWeight": "var(--rt-h6-fontWeight, var(--wds-font-weight-medium))",
|
|
70
|
-
"h6FontFamily": "var(--rt-h6-fontFamily, var(--wds-font-family-default))",
|
|
70
|
+
"h6FontWeight": "var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500))",
|
|
71
|
+
"h6FontFamily": "var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
71
72
|
"h6LineHeight": "var(--rt-h6-lineHeight, 1.2)",
|
|
72
|
-
"h6Font": "var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default))",
|
|
73
|
+
"h6Font": "var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
73
74
|
"p1FontSize": "var(--rt-p1-fontSize, 18px)",
|
|
74
75
|
"p1FontStyle": "var(--rt-p1-fontStyle, normal)",
|
|
75
|
-
"p1FontWeight": "var(--rt-p1-fontWeight, var(--wds-font-weight-medium))",
|
|
76
|
-
"p1FontFamily": "var(--rt-p1-fontFamily, var(--wds-font-family-default))",
|
|
76
|
+
"p1FontWeight": "var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500))",
|
|
77
|
+
"p1FontFamily": "var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
77
78
|
"p1LineHeight": "var(--rt-p1-lineHeight, 24px)",
|
|
78
|
-
"p1Font": "var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default))",
|
|
79
|
+
"p1Font": "var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
79
80
|
"unstyledFontSize": "var(--rt-unstyled-fontSize, 16px)",
|
|
80
81
|
"unstyledFontStyle": "var(--rt-unstyled-fontStyle, normal)",
|
|
81
|
-
"unstyledFontWeight": "var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium))",
|
|
82
|
-
"unstyledFontFamily": "var(--rt-unstyled-fontFamily, var(--wds-font-family-default))",
|
|
82
|
+
"unstyledFontWeight": "var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500))",
|
|
83
|
+
"unstyledFontFamily": "var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
83
84
|
"unstyledLineHeight": "var(--rt-unstyled-lineHeight, 24px)",
|
|
84
|
-
"unstyledFont": "var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default))",
|
|
85
|
+
"unstyledFont": "var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
85
86
|
"p3FontSize": "var(--rt-p3-fontSize, 14px)",
|
|
86
87
|
"p3FontStyle": "var(--rt-p3-fontStyle, normal)",
|
|
87
|
-
"p3FontWeight": "var(--rt-p3-fontWeight, var(--wds-font-weight-medium))",
|
|
88
|
-
"p3FontFamily": "var(--rt-p3-fontFamily, var(--wds-font-family-default))",
|
|
88
|
+
"p3FontWeight": "var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500))",
|
|
89
|
+
"p3FontFamily": "var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))",
|
|
89
90
|
"p3LineHeight": "var(--rt-p3-lineHeight, 18px)",
|
|
90
|
-
"p3Font": "var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default))"
|
|
91
|
+
"p3Font": "var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))"
|
|
91
92
|
};
|
|
92
93
|
var vars = exports.vars = {
|
|
93
94
|
"wds-color-black-100": "--wds-color-black-100",
|
|
94
95
|
"wds-color-black-700": "--wds-color-black-700",
|
|
95
96
|
"wds-font-family-default": "--wds-font-family-default",
|
|
97
|
+
"wsr-font-family": "--wsr-font-family",
|
|
96
98
|
"wds-font-weight-medium": "--wds-font-weight-medium",
|
|
97
99
|
"wds-font-weight-bold": "--wds-font-weight-bold",
|
|
98
100
|
"wds-font-size-500": "--wds-font-size-500",
|
|
@@ -141,6 +143,8 @@ var vars = exports.vars = {
|
|
|
141
143
|
"rt-p3-fontStyle": "--rt-p3-fontStyle",
|
|
142
144
|
"rt-p3-fontWeight": "--rt-p3-fontWeight",
|
|
143
145
|
"rt-p3-fontFamily": "--rt-p3-fontFamily",
|
|
144
|
-
"rt-p3-lineHeight": "--rt-p3-lineHeight"
|
|
146
|
+
"rt-p3-lineHeight": "--rt-p3-lineHeight",
|
|
147
|
+
"wsr-color-D10": "--richeditor1108902122-wsr-color-D10",
|
|
148
|
+
"wsr-color-D70": "--richeditor1108902122-wsr-color-D70"
|
|
145
149
|
};
|
|
146
150
|
//# sourceMappingURL=rich-editor.st.css.js.map
|
package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map
CHANGED
|
@@ -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-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richeditor3394019726\";\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\":\"richeditor3394019726__root\",\"editor\":\"richeditor3394019726__editor\",\"header-one\":\"richeditor3394019726__header-one\",\"header-two\":\"richeditor3394019726__header-two\",\"header-three\":\"richeditor3394019726__header-three\",\"header-four\":\"richeditor3394019726__header-four\",\"header-five\":\"richeditor3394019726__header-five\",\"header-six\":\"richeditor3394019726__header-six\",\"paragraph-one\":\"richeditor3394019726__paragraph-one\",\"unstyled\":\"richeditor3394019726__unstyled\",\"paragraph-three\":\"richeditor3394019726__paragraph-three\",\"align-left\":\"richeditor3394019726__align-left\",\"align-right\":\"richeditor3394019726__align-right\",\"align-center\":\"richeditor3394019726__align-center\",\"align-justify\":\"richeditor3394019726__align-justify\",\"withMargin\":\"richeditor3394019726__withMargin\",\"dir-rtl\":\"richeditor3394019726__dir-rtl\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {\"h1FontSize\":\"var(--rt-h1-fontSize, 72px)\",\"h1FontStyle\":\"var(--rt-h1-fontStyle, normal)\",\"h1FontWeight\":\"var(--rt-h1-fontWeight, var(--wds-font-weight-bold))\",\"h1FontFamily\":\"var(--rt-h1-fontFamily, var(--wds-font-family-default))\",\"h1LineHeight\":\"var(--rt-h1-lineHeight, 1.33)\",\"h1Font\":\"var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default))\",\"h2FontSize\":\"var(--rt-h2-fontSize, 42px)\",\"h2FontStyle\":\"var(--rt-h2-fontStyle, normal)\",\"h2FontWeight\":\"var(--rt-h2-fontWeight, var(--wds-font-weight-bold))\",\"h2FontFamily\":\"var(--rt-h2-fontFamily, var(--wds-font-family-default))\",\"h2LineHeight\":\"var(--rt-h2-lineHeight, 1.2)\",\"h2Font\":\"var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default))\",\"h3FontSize\":\"var(--rt-h3-fontSize, 38px)\",\"h3FontStyle\":\"var(--rt-h3-fontStyle, normal)\",\"h3FontWeight\":\"var(--rt-h3-fontWeight, var(--wds-font-weight-medium))\",\"h3FontFamily\":\"var(--rt-h3-fontFamily, var(--wds-font-family-default))\",\"h3LineHeight\":\"var(--rt-h3-lineHeight, 1.2)\",\"h3Font\":\"var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default))\",\"h4FontSize\":\"var(--rt-h4-fontSize, 34px)\",\"h4FontStyle\":\"var(--rt-h4-fontStyle, normal)\",\"h4FontWeight\":\"var(--rt-h4-fontWeight, var(--wds-font-weight-bold))\",\"h4FontFamily\":\"var(--rt-h4-fontFamily, var(--wds-font-family-default))\",\"h4LineHeight\":\"var(--rt-h4-lineHeight, 1.2)\",\"h4Font\":\"var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default))\",\"h5FontSize\":\"var(--rt-h5-fontSize, 28px)\",\"h5FontStyle\":\"var(--rt-h5-fontStyle, normal)\",\"h5FontWeight\":\"var(--rt-h5-fontWeight, var(--wds-font-weight-bold))\",\"h5FontFamily\":\"var(--rt-h5-fontFamily, var(--wds-font-family-default))\",\"h5LineHeight\":\"var(--rt-h5-lineHeight, 1.2)\",\"h5Font\":\"var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default))\",\"h6FontSize\":\"var(--rt-h6-fontSize, 22px)\",\"h6FontStyle\":\"var(--rt-h6-fontStyle, normal)\",\"h6FontWeight\":\"var(--rt-h6-fontWeight, var(--wds-font-weight-medium))\",\"h6FontFamily\":\"var(--rt-h6-fontFamily, var(--wds-font-family-default))\",\"h6LineHeight\":\"var(--rt-h6-lineHeight, 1.2)\",\"h6Font\":\"var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default))\",\"p1FontSize\":\"var(--rt-p1-fontSize, 18px)\",\"p1FontStyle\":\"var(--rt-p1-fontStyle, normal)\",\"p1FontWeight\":\"var(--rt-p1-fontWeight, var(--wds-font-weight-medium))\",\"p1FontFamily\":\"var(--rt-p1-fontFamily, var(--wds-font-family-default))\",\"p1LineHeight\":\"var(--rt-p1-lineHeight, 24px)\",\"p1Font\":\"var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default))\",\"unstyledFontSize\":\"var(--rt-unstyled-fontSize, 16px)\",\"unstyledFontStyle\":\"var(--rt-unstyled-fontStyle, normal)\",\"unstyledFontWeight\":\"var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium))\",\"unstyledFontFamily\":\"var(--rt-unstyled-fontFamily, var(--wds-font-family-default))\",\"unstyledLineHeight\":\"var(--rt-unstyled-lineHeight, 24px)\",\"unstyledFont\":\"var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default))\",\"p3FontSize\":\"var(--rt-p3-fontSize, 14px)\",\"p3FontStyle\":\"var(--rt-p3-fontStyle, normal)\",\"p3FontWeight\":\"var(--rt-p3-fontWeight, var(--wds-font-weight-medium))\",\"p3FontFamily\":\"var(--rt-p3-fontFamily, var(--wds-font-family-default))\",\"p3LineHeight\":\"var(--rt-p3-lineHeight, 18px)\",\"p3Font\":\"var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default))\"}; \nexport var vars = {\"wds-color-black-100\":\"--wds-color-black-100\",\"wds-color-black-700\":\"--wds-color-black-700\",\"wds-font-family-default\":\"--wds-font-family-default\",\"wds-font-weight-medium\":\"--wds-font-weight-medium\",\"wds-font-weight-bold\":\"--wds-font-weight-bold\",\"wds-font-size-500\":\"--wds-font-size-500\",\"wds-font-line-height-300\":\"--wds-font-line-height-300\",\"rt-h1-fontSize\":\"--rt-h1-fontSize\",\"rt-h1-fontStyle\":\"--rt-h1-fontStyle\",\"rt-h1-fontWeight\":\"--rt-h1-fontWeight\",\"rt-h1-fontFamily\":\"--rt-h1-fontFamily\",\"rt-h1-lineHeight\":\"--rt-h1-lineHeight\",\"rt-h2-fontSize\":\"--rt-h2-fontSize\",\"rt-h2-fontStyle\":\"--rt-h2-fontStyle\",\"rt-h2-fontWeight\":\"--rt-h2-fontWeight\",\"rt-h2-fontFamily\":\"--rt-h2-fontFamily\",\"rt-h2-lineHeight\":\"--rt-h2-lineHeight\",\"rt-h3-fontSize\":\"--rt-h3-fontSize\",\"rt-h3-fontStyle\":\"--rt-h3-fontStyle\",\"rt-h3-fontWeight\":\"--rt-h3-fontWeight\",\"rt-h3-fontFamily\":\"--rt-h3-fontFamily\",\"rt-h3-lineHeight\":\"--rt-h3-lineHeight\",\"rt-h4-fontSize\":\"--rt-h4-fontSize\",\"rt-h4-fontStyle\":\"--rt-h4-fontStyle\",\"rt-h4-fontWeight\":\"--rt-h4-fontWeight\",\"rt-h4-fontFamily\":\"--rt-h4-fontFamily\",\"rt-h4-lineHeight\":\"--rt-h4-lineHeight\",\"rt-h5-fontSize\":\"--rt-h5-fontSize\",\"rt-h5-fontStyle\":\"--rt-h5-fontStyle\",\"rt-h5-fontWeight\":\"--rt-h5-fontWeight\",\"rt-h5-fontFamily\":\"--rt-h5-fontFamily\",\"rt-h5-lineHeight\":\"--rt-h5-lineHeight\",\"rt-h6-fontSize\":\"--rt-h6-fontSize\",\"rt-h6-fontStyle\":\"--rt-h6-fontStyle\",\"rt-h6-fontWeight\":\"--rt-h6-fontWeight\",\"rt-h6-fontFamily\":\"--rt-h6-fontFamily\",\"rt-h6-lineHeight\":\"--rt-h6-lineHeight\",\"rt-p1-fontSize\":\"--rt-p1-fontSize\",\"rt-p1-fontStyle\":\"--rt-p1-fontStyle\",\"rt-p1-fontWeight\":\"--rt-p1-fontWeight\",\"rt-p1-fontFamily\":\"--rt-p1-fontFamily\",\"rt-p1-lineHeight\":\"--rt-p1-lineHeight\",\"rt-unstyled-fontSize\":\"--rt-unstyled-fontSize\",\"rt-unstyled-fontStyle\":\"--rt-unstyled-fontStyle\",\"rt-unstyled-fontWeight\":\"--rt-unstyled-fontWeight\",\"rt-unstyled-fontFamily\":\"--rt-unstyled-fontFamily\",\"rt-unstyled-lineHeight\":\"--rt-unstyled-lineHeight\",\"rt-p3-fontSize\":\"--rt-p3-fontSize\",\"rt-p3-fontStyle\":\"--rt-p3-fontStyle\",\"rt-p3-fontWeight\":\"--rt-p3-fontWeight\",\"rt-p3-fontFamily\":\"--rt-p3-fontFamily\",\"rt-p3-lineHeight\":\"--rt-p3-lineHeight\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,sBAAsB;AACxC,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,4BAA4B;EAAC,QAAQ,EAAC,8BAA8B;EAAC,YAAY,EAAC,kCAAkC;EAAC,YAAY,EAAC,kCAAkC;EAAC,cAAc,EAAC,oCAAoC;EAAC,aAAa,EAAC,mCAAmC;EAAC,aAAa,EAAC,mCAAmC;EAAC,YAAY,EAAC,kCAAkC;EAAC,eAAe,EAAC,qCAAqC;EAAC,UAAU,EAAC,gCAAgC;EAAC,iBAAiB,EAAC,uCAAuC;EAAC,YAAY,EAAC,kCAAkC;EAAC,aAAa,EAAC,mCAAmC;EAAC,cAAc,EAAC,oCAAoC;EAAC,eAAe,EAAC,qCAAqC;EAAC,YAAY,EAAC,kCAAkC;EAAC,SAAS,EAAC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C,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,gBAAgB,EAAC,kBAAkB;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,gBAAgB,EAAC,kBAAkB;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,gBAAgB,EAAC,kBAAkB;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,sBAAsB,EAAC,wBAAwB;EAAC,uBAAuB,EAAC,yBAAyB;EAAC,wBAAwB,EAAC,0BAA0B;EAAC,wBAAwB,EAAC,0BAA0B;EAAC,wBAAwB,EAAC,0BAA0B;EAAC,gBAAgB,EAAC,kBAAkB;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC;AAAoB,CAAC","ignoreList":[]}
|
|
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-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts"],"sourcesContent":["// @ts-nocheck\n\n\nimport { classesRuntime, statesRuntime } from \"../../../../stylable-esm-runtime.js\";\n\n\n\nvar _namespace_ = \"richeditor1108902122\";\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\":\"richeditor1108902122__root\",\"editor\":\"richeditor1108902122__editor\",\"header-one\":\"richeditor1108902122__header-one\",\"header-two\":\"richeditor1108902122__header-two\",\"header-three\":\"richeditor1108902122__header-three\",\"header-four\":\"richeditor1108902122__header-four\",\"header-five\":\"richeditor1108902122__header-five\",\"header-six\":\"richeditor1108902122__header-six\",\"paragraph-one\":\"richeditor1108902122__paragraph-one\",\"unstyled\":\"richeditor1108902122__unstyled\",\"paragraph-three\":\"richeditor1108902122__paragraph-three\",\"align-left\":\"richeditor1108902122__align-left\",\"align-right\":\"richeditor1108902122__align-right\",\"align-center\":\"richeditor1108902122__align-center\",\"align-justify\":\"richeditor1108902122__align-justify\",\"withMargin\":\"richeditor1108902122__withMargin\",\"dir-rtl\":\"richeditor1108902122__dir-rtl\"};\nexport var keyframes = {}; \nexport var layers = {};\nexport var containers = {};\nexport var stVars = {\"fontFamilyDefault\":\"var(--wds-font-family-default, var(--wsr-font-family, Madefor))\",\"h1FontSize\":\"var(--rt-h1-fontSize, 72px)\",\"h1FontStyle\":\"var(--rt-h1-fontStyle, normal)\",\"h1FontWeight\":\"var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700))\",\"h1FontFamily\":\"var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h1LineHeight\":\"var(--rt-h1-lineHeight, 1.33)\",\"h1Font\":\"var(--rt-h1-fontStyle, normal) var(--rt-h1-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h1-fontSize, 72px)/var(--rt-h1-lineHeight, 1.33) var(--rt-h1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h2FontSize\":\"var(--rt-h2-fontSize, 42px)\",\"h2FontStyle\":\"var(--rt-h2-fontStyle, normal)\",\"h2FontWeight\":\"var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700))\",\"h2FontFamily\":\"var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h2LineHeight\":\"var(--rt-h2-lineHeight, 1.2)\",\"h2Font\":\"var(--rt-h2-fontStyle, normal) var(--rt-h2-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h2-fontSize, 42px)/var(--rt-h2-lineHeight, 1.2) var(--rt-h2-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h3FontSize\":\"var(--rt-h3-fontSize, 38px)\",\"h3FontStyle\":\"var(--rt-h3-fontStyle, normal)\",\"h3FontWeight\":\"var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500))\",\"h3FontFamily\":\"var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h3LineHeight\":\"var(--rt-h3-lineHeight, 1.2)\",\"h3Font\":\"var(--rt-h3-fontStyle, normal) var(--rt-h3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h3-fontSize, 38px)/var(--rt-h3-lineHeight, 1.2) var(--rt-h3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h4FontSize\":\"var(--rt-h4-fontSize, 34px)\",\"h4FontStyle\":\"var(--rt-h4-fontStyle, normal)\",\"h4FontWeight\":\"var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700))\",\"h4FontFamily\":\"var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h4LineHeight\":\"var(--rt-h4-lineHeight, 1.2)\",\"h4Font\":\"var(--rt-h4-fontStyle, normal) var(--rt-h4-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h4-fontSize, 34px)/var(--rt-h4-lineHeight, 1.2) var(--rt-h4-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h5FontSize\":\"var(--rt-h5-fontSize, 28px)\",\"h5FontStyle\":\"var(--rt-h5-fontStyle, normal)\",\"h5FontWeight\":\"var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700))\",\"h5FontFamily\":\"var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h5LineHeight\":\"var(--rt-h5-lineHeight, 1.2)\",\"h5Font\":\"var(--rt-h5-fontStyle, normal) var(--rt-h5-fontWeight, var(--wds-font-weight-bold, 700)) var(--rt-h5-fontSize, 28px)/var(--rt-h5-lineHeight, 1.2) var(--rt-h5-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h6FontSize\":\"var(--rt-h6-fontSize, 22px)\",\"h6FontStyle\":\"var(--rt-h6-fontStyle, normal)\",\"h6FontWeight\":\"var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500))\",\"h6FontFamily\":\"var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"h6LineHeight\":\"var(--rt-h6-lineHeight, 1.2)\",\"h6Font\":\"var(--rt-h6-fontStyle, normal) var(--rt-h6-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-h6-fontSize, 22px)/var(--rt-h6-lineHeight, 1.2) var(--rt-h6-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"p1FontSize\":\"var(--rt-p1-fontSize, 18px)\",\"p1FontStyle\":\"var(--rt-p1-fontStyle, normal)\",\"p1FontWeight\":\"var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500))\",\"p1FontFamily\":\"var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"p1LineHeight\":\"var(--rt-p1-lineHeight, 24px)\",\"p1Font\":\"var(--rt-p1-fontStyle, normal) var(--rt-p1-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p1-fontSize, 18px)/var(--rt-p1-lineHeight, 24px) var(--rt-p1-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"unstyledFontSize\":\"var(--rt-unstyled-fontSize, 16px)\",\"unstyledFontStyle\":\"var(--rt-unstyled-fontStyle, normal)\",\"unstyledFontWeight\":\"var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500))\",\"unstyledFontFamily\":\"var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"unstyledLineHeight\":\"var(--rt-unstyled-lineHeight, 24px)\",\"unstyledFont\":\"var(--rt-unstyled-fontStyle, normal) var(--rt-unstyled-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-unstyled-fontSize, 16px)/var(--rt-unstyled-lineHeight, 24px) var(--rt-unstyled-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"p3FontSize\":\"var(--rt-p3-fontSize, 14px)\",\"p3FontStyle\":\"var(--rt-p3-fontStyle, normal)\",\"p3FontWeight\":\"var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500))\",\"p3FontFamily\":\"var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\",\"p3LineHeight\":\"var(--rt-p3-lineHeight, 18px)\",\"p3Font\":\"var(--rt-p3-fontStyle, normal) var(--rt-p3-fontWeight, var(--wds-font-weight-medium, 500)) var(--rt-p3-fontSize, 14px)/var(--rt-p3-lineHeight, 18px) var(--rt-p3-fontFamily, var(--wds-font-family-default, var(--wsr-font-family, Madefor)))\"}; \nexport var vars = {\"wds-color-black-100\":\"--wds-color-black-100\",\"wds-color-black-700\":\"--wds-color-black-700\",\"wds-font-family-default\":\"--wds-font-family-default\",\"wsr-font-family\":\"--wsr-font-family\",\"wds-font-weight-medium\":\"--wds-font-weight-medium\",\"wds-font-weight-bold\":\"--wds-font-weight-bold\",\"wds-font-size-500\":\"--wds-font-size-500\",\"wds-font-line-height-300\":\"--wds-font-line-height-300\",\"rt-h1-fontSize\":\"--rt-h1-fontSize\",\"rt-h1-fontStyle\":\"--rt-h1-fontStyle\",\"rt-h1-fontWeight\":\"--rt-h1-fontWeight\",\"rt-h1-fontFamily\":\"--rt-h1-fontFamily\",\"rt-h1-lineHeight\":\"--rt-h1-lineHeight\",\"rt-h2-fontSize\":\"--rt-h2-fontSize\",\"rt-h2-fontStyle\":\"--rt-h2-fontStyle\",\"rt-h2-fontWeight\":\"--rt-h2-fontWeight\",\"rt-h2-fontFamily\":\"--rt-h2-fontFamily\",\"rt-h2-lineHeight\":\"--rt-h2-lineHeight\",\"rt-h3-fontSize\":\"--rt-h3-fontSize\",\"rt-h3-fontStyle\":\"--rt-h3-fontStyle\",\"rt-h3-fontWeight\":\"--rt-h3-fontWeight\",\"rt-h3-fontFamily\":\"--rt-h3-fontFamily\",\"rt-h3-lineHeight\":\"--rt-h3-lineHeight\",\"rt-h4-fontSize\":\"--rt-h4-fontSize\",\"rt-h4-fontStyle\":\"--rt-h4-fontStyle\",\"rt-h4-fontWeight\":\"--rt-h4-fontWeight\",\"rt-h4-fontFamily\":\"--rt-h4-fontFamily\",\"rt-h4-lineHeight\":\"--rt-h4-lineHeight\",\"rt-h5-fontSize\":\"--rt-h5-fontSize\",\"rt-h5-fontStyle\":\"--rt-h5-fontStyle\",\"rt-h5-fontWeight\":\"--rt-h5-fontWeight\",\"rt-h5-fontFamily\":\"--rt-h5-fontFamily\",\"rt-h5-lineHeight\":\"--rt-h5-lineHeight\",\"rt-h6-fontSize\":\"--rt-h6-fontSize\",\"rt-h6-fontStyle\":\"--rt-h6-fontStyle\",\"rt-h6-fontWeight\":\"--rt-h6-fontWeight\",\"rt-h6-fontFamily\":\"--rt-h6-fontFamily\",\"rt-h6-lineHeight\":\"--rt-h6-lineHeight\",\"rt-p1-fontSize\":\"--rt-p1-fontSize\",\"rt-p1-fontStyle\":\"--rt-p1-fontStyle\",\"rt-p1-fontWeight\":\"--rt-p1-fontWeight\",\"rt-p1-fontFamily\":\"--rt-p1-fontFamily\",\"rt-p1-lineHeight\":\"--rt-p1-lineHeight\",\"rt-unstyled-fontSize\":\"--rt-unstyled-fontSize\",\"rt-unstyled-fontStyle\":\"--rt-unstyled-fontStyle\",\"rt-unstyled-fontWeight\":\"--rt-unstyled-fontWeight\",\"rt-unstyled-fontFamily\":\"--rt-unstyled-fontFamily\",\"rt-unstyled-lineHeight\":\"--rt-unstyled-lineHeight\",\"rt-p3-fontSize\":\"--rt-p3-fontSize\",\"rt-p3-fontStyle\":\"--rt-p3-fontStyle\",\"rt-p3-fontWeight\":\"--rt-p3-fontWeight\",\"rt-p3-fontFamily\":\"--rt-p3-fontFamily\",\"rt-p3-lineHeight\":\"--rt-p3-lineHeight\",\"wsr-color-D10\":\"--richeditor1108902122-wsr-color-D10\",\"wsr-color-D70\":\"--richeditor1108902122-wsr-color-D70\"}; \n\n\n\n\n"],"mappings":";;;;AAGA,IAAAA,mBAAA,GAAAC,OAAA;AAHA;;AAOA,IAAIC,WAAW,GAAG,sBAAsB;AACxC,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,4BAA4B;EAAC,QAAQ,EAAC,8BAA8B;EAAC,YAAY,EAAC,kCAAkC;EAAC,YAAY,EAAC,kCAAkC;EAAC,cAAc,EAAC,oCAAoC;EAAC,aAAa,EAAC,mCAAmC;EAAC,aAAa,EAAC,mCAAmC;EAAC,YAAY,EAAC,kCAAkC;EAAC,eAAe,EAAC,qCAAqC;EAAC,UAAU,EAAC,gCAAgC;EAAC,iBAAiB,EAAC,uCAAuC;EAAC,YAAY,EAAC,kCAAkC;EAAC,aAAa,EAAC,mCAAmC;EAAC,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