@wix/patterns-fields 1.124.0 → 1.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/address/input/address-input.st.css.js +3 -3
- package/dist/cjs/components/address/input/address-input.st.css.js.map +1 -1
- package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js +3 -3
- package/dist/cjs/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js +4 -4
- package/dist/cjs/components/audio/audio-field/form-audio-field.st.css.js.map +1 -1
- package/dist/cjs/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/cjs/components/audio/audio-player/audio-player.st.css.js.map +1 -1
- package/dist/cjs/components/color-view/cell-color-view.st.css.js +3 -3
- package/dist/cjs/components/color-view/cell-color-view.st.css.js.map +1 -1
- package/dist/cjs/components/color-view/color-view.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/field-validation-settings/field-validation-settings-input.st.css.js +3 -3
- package/dist/cjs/components/field-validation-settings/field-validation-settings-input.st.css.js.map +1 -1
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/paste-url-button.st.css.js +4 -4
- package/dist/cjs/components/media-control/paste-url-button.st.css.js.map +1 -1
- package/dist/cjs/components/media-gallery/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/media-preview-modal.js +12 -10
- package/dist/cjs/components/media-gallery/media-preview-modal.js.map +1 -1
- package/dist/cjs/components/media-image/media-image.st.css.js +4 -4
- package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-image-field/cell-media-image-edit.js +46 -213
- package/dist/cjs/components/media-image-field/cell-media-image-edit.js.map +1 -1
- package/dist/cjs/components/media-image-field/cell-media-image-edit.st.css.js +8 -8
- package/dist/cjs/components/media-image-field/cell-media-image-edit.st.css.js.map +1 -1
- package/dist/cjs/components/media-image-field/form-media-image-field.js +116 -24
- package/dist/cjs/components/media-image-field/form-media-image-field.js.map +1 -1
- package/dist/cjs/components/media-image-field/form-media-image-field.uni.driver.js +24 -8
- package/dist/cjs/components/media-image-field/form-media-image-field.uni.driver.js.map +1 -1
- package/dist/cjs/components/media-image-field/media-image-actions.js +256 -0
- package/dist/cjs/components/media-image-field/media-image-actions.js.map +1 -0
- package/dist/cjs/components/media-image-field/media-image-view.st.css.js +3 -3
- package/dist/cjs/components/media-image-field/media-image-view.st.css.js.map +1 -1
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/cell-multi-document-edit.js +31 -38
- package/dist/cjs/components/multi-document/cell-multi-document-edit.js.map +1 -1
- package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js +3 -3
- package/dist/cjs/components/multi-document/cell-multi-document-edit.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js +5 -5
- package/dist/cjs/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js +2 -2
- package/dist/cjs/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-multi-reference-view.st.css.js +3 -3
- package/dist/cjs/components/reference/cell-multi-reference-view.st.css.js.map +1 -1
- package/dist/cjs/components/reference/cell-reference-input.st.css.js +3 -3
- package/dist/cjs/components/reference/cell-reference-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +4 -4
- package/dist/cjs/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/cjs/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +3 -3
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-common/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 +7 -7
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +5 -5
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +4 -4
- package/dist/cjs/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +18 -18
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js +4 -4
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.js.map +1 -1
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js +18 -18
- package/dist/cjs/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.js.map +1 -1
- package/dist/cjs/components/text/text-view.st.css.js +3 -3
- package/dist/cjs/components/text/text-view.st.css.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/utils/detect-field-type.js +9 -17
- package/dist/cjs/utils/detect-field-type.js.map +1 -1
- package/dist/esm/components/address/input/address-input.st.css.js +2 -2
- package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js +2 -2
- package/dist/esm/components/audio/actions/actions-menu/actions-menu.st.css.js.map +1 -1
- package/dist/esm/components/audio/audio-field/form-audio-field.st.css.js +2 -2
- package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/esm/components/color-view/cell-color-view.st.css.js +2 -2
- package/dist/esm/components/color-view/cell-color-view.st.css.js.map +1 -1
- package/dist/esm/components/color-view/color-view.st.css.js +2 -2
- package/dist/esm/components/color-view/color-view.st.css.js.map +1 -1
- 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/field-validation-settings/field-validation-settings-input.st.css.js +2 -2
- package/dist/esm/components/field-validation-settings/field-validation-settings-input.st.css.js.map +1 -1
- package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
- package/dist/esm/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
- package/dist/esm/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
- package/dist/esm/components/media-control/paste-url-button.st.css.js.map +1 -1
- 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/media-preview-modal.js +2 -2
- package/dist/esm/components/media-gallery/media-preview-modal.js.map +1 -1
- package/dist/esm/components/media-image/media-image.st.css.js +3 -3
- package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
- package/dist/esm/components/media-image-field/cell-media-image-edit.js +11 -37
- package/dist/esm/components/media-image-field/cell-media-image-edit.js.map +1 -1
- package/dist/esm/components/media-image-field/cell-media-image-edit.st.css.js +2 -2
- package/dist/esm/components/media-image-field/form-media-image-field.js +37 -9
- package/dist/esm/components/media-image-field/form-media-image-field.js.map +1 -1
- package/dist/esm/components/media-image-field/form-media-image-field.uni.driver.js +24 -8
- package/dist/esm/components/media-image-field/form-media-image-field.uni.driver.js.map +1 -1
- package/dist/esm/components/media-image-field/media-image-actions.js +52 -0
- package/dist/esm/components/media-image-field/media-image-actions.js.map +1 -0
- package/dist/esm/components/media-image-field/media-image-view.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/multi-document/cell-multi-document-edit.js +2 -8
- package/dist/esm/components/multi-document/cell-multi-document-edit.js.map +1 -1
- package/dist/esm/components/multi-document/cell-multi-document-edit.st.css.js +2 -2
- package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js +2 -2
- package/dist/esm/components/multi-document/multi-document-input/form-multi-document.st.css.js.map +1 -1
- package/dist/esm/components/reference/cell-multi-reference-input.st.css.js +2 -2
- package/dist/esm/components/reference/cell-multi-reference-input.st.css.js.map +1 -1
- package/dist/esm/components/reference/cell-multi-reference-view.st.css.js +2 -2
- package/dist/esm/components/reference/cell-reference-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.js.map +1 -1
- 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-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-editor.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js +2 -2
- package/dist/esm/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.js.map +1 -1
- package/dist/esm/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.js +2 -2
- package/dist/esm/components/rich-text/rich-text-input/rich-text-editor/rich-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/toolbar/toolbar.st.css.js +2 -2
- package/dist/esm/components/text/text-view.st.css.js +2 -2
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/utils/detect-field-type.js +12 -16
- package/dist/esm/utils/detect-field-type.js.map +1 -1
- package/dist/types/components/audio/actions/actions-menu/actions-menu.st.css.d.ts.map +1 -1
- package/dist/types/components/color-view/cell-color-view.st.css.d.ts.map +1 -1
- package/dist/types/components/color-view/color-view.st.css.d.ts.map +1 -1
- package/dist/types/components/field-validation-settings/field-validation-settings-input.st.css.d.ts.map +1 -1
- package/dist/types/components/highlighted-text/highlighted-text.st.css.d.ts.map +1 -1
- package/dist/types/components/image/thumbnail-replace-overlay.st.css.d.ts.map +1 -1
- package/dist/types/components/media-control/paste-url-button.st.css.d.ts.map +1 -1
- package/dist/types/components/media-gallery/form-media-gallery-field.st.css.d.ts.map +1 -1
- package/dist/types/components/media-image-field/cell-media-image-edit.d.ts.map +1 -1
- package/dist/types/components/media-image-field/form-media-image-field.d.ts.map +1 -1
- package/dist/types/components/media-image-field/form-media-image-field.uni.driver.d.ts +8 -4
- package/dist/types/components/media-image-field/form-media-image-field.uni.driver.d.ts.map +1 -1
- package/dist/types/components/media-image-field/media-image-actions.d.ts +33 -0
- package/dist/types/components/media-image-field/media-image-actions.d.ts.map +1 -0
- package/dist/types/components/multi-document/cell-multi-document-edit.d.ts.map +1 -1
- package/dist/types/components/multi-document/multi-document-input/form-multi-document.st.css.d.ts.map +1 -1
- package/dist/types/components/reference/cell-multi-reference-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/publish-loader/publish-loader.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-common/toggle-fullscreen-button/toggle-fullscreen-button.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.d.ts.map +1 -1
- package/dist/types/utils/detect-field-type.d.ts +1 -1
- package/dist/types/utils/detect-field-type.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/__tests__/components/media-image-field/form-media-image-input.spec.tsx +69 -2
- package/src/__tests__/utils/detect-field-type.spec.ts +5 -5
- package/src/components/address/input/address-input.st.css.ts +2 -2
- package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
- package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
- package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
- package/src/components/color-view/cell-color-view.st.css.ts +2 -2
- package/src/components/color-view/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/field-validation-settings/field-validation-settings-input.st.css.ts +2 -2
- package/src/components/highlighted-text/highlighted-text.st.css.ts +3 -3
- package/src/components/image/thumbnail-replace-overlay.st.css.ts +2 -2
- package/src/components/media-control/cell-media-edit-shell.st.css.ts +2 -2
- package/src/components/media-control/paste-url-button.st.css.ts +2 -2
- package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
- package/src/components/media-gallery/media-preview-modal.tsx +2 -1
- package/src/components/media-image/media-image.st.css.ts +3 -3
- package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
- package/src/components/media-image-field/cell-media-image-edit.st.css.ts +2 -2
- package/src/components/media-image-field/cell-media-image-edit.tsx +26 -129
- package/src/components/media-image-field/form-media-image-field.tsx +105 -23
- package/src/components/media-image-field/form-media-image-field.uni.driver.ts +45 -10
- package/src/components/media-image-field/media-image-actions.tsx +205 -0
- package/src/components/media-image-field/media-image-view.st.css.ts +2 -2
- package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
- package/src/components/multi-document/cell-multi-document-edit.st.css.ts +2 -2
- package/src/components/multi-document/cell-multi-document-edit.tsx +3 -6
- package/src/components/multi-document/multi-document-input/form-multi-document.st.css.ts +2 -2
- package/src/components/reference/cell-multi-reference-input.st.css.ts +2 -2
- package/src/components/reference/cell-multi-reference-view.st.css.ts +2 -2
- package/src/components/reference/cell-reference-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/default-value-input/rich-content-default-value-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/form-read-only-input/rich-content-form-read-only-input.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/fullscreen-modal/fullscreen-modal.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-common/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 +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-editor/rich-content-toolbar.st.css.ts +2 -2
- package/src/components/rich-content/rich-content-input/rich-content-viewer/rich-content-viewer.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-editor.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts +2 -2
- package/src/components/rich-text/rich-text-input/rich-text-editor/toolbar/toolbar.st.css.ts +2 -2
- package/src/components/text/text-view.st.css.ts +2 -2
- package/src/styles.global.css +1 -1
- package/src/utils/detect-field-type.ts +14 -16
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { UniDriver } from '@wix/wix-ui-test-utils/unidriver';
|
|
2
2
|
import {
|
|
3
|
+
ButtonUniDriver,
|
|
4
|
+
CustomModalLayoutUniDriver,
|
|
3
5
|
FormFieldUniDriver,
|
|
6
|
+
IconButtonUniDriver,
|
|
4
7
|
ImageViewerUniDriver,
|
|
8
|
+
InputUniDriver,
|
|
5
9
|
} from '@wix/design-system/dist/testkit/unidriver';
|
|
6
10
|
|
|
7
11
|
import { baseUniDriverFactory } from '../../testkit/base-driver';
|
|
8
12
|
|
|
13
|
+
/** The more actions menu, the URL form and the preview render in the body. */
|
|
9
14
|
export function FormMediaImageFieldUniDriver(base: UniDriver, body: UniDriver) {
|
|
10
15
|
const formField = FormFieldUniDriver(
|
|
11
16
|
base.$('[data-hook="media-image-field-image"]'),
|
|
@@ -15,7 +20,15 @@ export function FormMediaImageFieldUniDriver(base: UniDriver, body: UniDriver) {
|
|
|
15
20
|
base.$('[data-hook="media-image-field-viewer"]'),
|
|
16
21
|
body,
|
|
17
22
|
);
|
|
23
|
+
const replaceButton = IconButtonUniDriver(
|
|
24
|
+
base.$('[data-hook="media-image-field-replace-button"]'),
|
|
25
|
+
body,
|
|
26
|
+
);
|
|
18
27
|
const altInput = base.$('[data-hook="media-image-field-alt-input"] input');
|
|
28
|
+
const menuItem = (action: string) =>
|
|
29
|
+
body.$(`[data-hook="media-image-field-action-${action}"]`);
|
|
30
|
+
const openMenu = () =>
|
|
31
|
+
base.$('[data-hook="media-image-field-more-button"]').click();
|
|
19
32
|
|
|
20
33
|
return {
|
|
21
34
|
...baseUniDriverFactory(base),
|
|
@@ -23,20 +36,42 @@ export function FormMediaImageFieldUniDriver(base: UniDriver, body: UniDriver) {
|
|
|
23
36
|
isRequired: () => formField.isRequired(),
|
|
24
37
|
hasError: () => formField.hasStatus('error'),
|
|
25
38
|
getErrorMessage: () => formField.getStatusMessage(),
|
|
26
|
-
getImageUrl: () => imageViewer.getImageUrl(),
|
|
27
|
-
isAddItemVisible: () => imageViewer.isAddItemVisible(),
|
|
28
39
|
clickAdd: () => imageViewer.clickAdd(),
|
|
29
|
-
clickReplace: () =>
|
|
30
|
-
|
|
40
|
+
clickReplace: () => replaceButton.click(),
|
|
41
|
+
isReplaceDisabled: () => replaceButton.isButtonDisabled(),
|
|
42
|
+
replaceWithUrl: async (url: string) => {
|
|
43
|
+
await openMenu();
|
|
44
|
+
await menuItem('replace-url').click();
|
|
45
|
+
await InputUniDriver(
|
|
46
|
+
body.$('[data-hook="paste-url-form.urlInput"]'),
|
|
47
|
+
body,
|
|
48
|
+
).enterText(url);
|
|
49
|
+
await (
|
|
50
|
+
await CustomModalLayoutUniDriver(
|
|
51
|
+
body.$('[data-hook="paste-url-form.layout"]'),
|
|
52
|
+
body,
|
|
53
|
+
).getPrimaryButtonDriver()
|
|
54
|
+
).click();
|
|
55
|
+
},
|
|
56
|
+
openPreview: async () => {
|
|
57
|
+
await openMenu();
|
|
58
|
+
await menuItem('preview').click();
|
|
59
|
+
},
|
|
60
|
+
isPreviewOpen: () => body.$('[data-hook="preview-modal-content"]').exists(),
|
|
61
|
+
pressEscapeInPreview: () =>
|
|
62
|
+
body.$('[data-hook="preview-modal-content"]').pressKey('Escape'),
|
|
63
|
+
clickPreviewReplace: () =>
|
|
64
|
+
ButtonUniDriver(
|
|
65
|
+
body.$('[data-hook="preview-modal-replace-button"]'),
|
|
66
|
+
body,
|
|
67
|
+
).click(),
|
|
68
|
+
clickDelete: async () => {
|
|
69
|
+
await openMenu();
|
|
70
|
+
await menuItem('delete').click();
|
|
71
|
+
},
|
|
31
72
|
hasAltTextInput: () => altInput.exists(),
|
|
32
73
|
getAltText: () => altInput.value(),
|
|
33
74
|
getAltTextPlaceholder: () => altInput.attr('placeholder'),
|
|
34
75
|
enterAltText: (text: string) => altInput.enterValue(text),
|
|
35
|
-
// ImageViewer hides its edit buttons behind a loader until the image
|
|
36
|
-
// loads, and jsdom never fires that event on its own.
|
|
37
|
-
simulateImageLoad: async () =>
|
|
38
|
-
(
|
|
39
|
-
await base.$('[data-hook="image-viewer-current-image"]').getNative()
|
|
40
|
-
).dispatchEvent(new Event('load')),
|
|
41
76
|
};
|
|
42
77
|
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import React, { useCallback, useEffect } from 'react';
|
|
2
|
+
import { IconButton, PopoverMenu, Tooltip } from '@wix/design-system';
|
|
3
|
+
import {
|
|
4
|
+
Delete,
|
|
5
|
+
Download,
|
|
6
|
+
Link,
|
|
7
|
+
Maximize,
|
|
8
|
+
MoreSmall,
|
|
9
|
+
Replace,
|
|
10
|
+
} from '@wix/wix-ui-icons-common/lazy';
|
|
11
|
+
import { useTranslations } from '../../hooks';
|
|
12
|
+
import type { MediaImageValue } from '../../types/media-image';
|
|
13
|
+
import { getImageSource } from '../../utils/get-image-source';
|
|
14
|
+
import { isExternalMediaImage } from '../../utils/media-image-value';
|
|
15
|
+
import { executeDownloading } from '../../utils/media-utils';
|
|
16
|
+
import { MediaPreviewModal } from '../media-gallery/media-preview-modal';
|
|
17
|
+
|
|
18
|
+
interface MenuTriggerProps {
|
|
19
|
+
isOpen: boolean;
|
|
20
|
+
toggle: () => void;
|
|
21
|
+
/** Lets WDS put focus back here when the menu closes. */
|
|
22
|
+
buttonRef?: React.RefObject<HTMLElement>;
|
|
23
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
24
|
+
ariaLabel: string;
|
|
25
|
+
dataHook: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** WDS shows the menu's open state only to its trigger, so the trigger
|
|
29
|
+
* reports it. */
|
|
30
|
+
const MenuTrigger: React.FC<MenuTriggerProps> = ({
|
|
31
|
+
isOpen,
|
|
32
|
+
toggle,
|
|
33
|
+
buttonRef,
|
|
34
|
+
onOpenChange,
|
|
35
|
+
ariaLabel,
|
|
36
|
+
dataHook,
|
|
37
|
+
}) => {
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
onOpenChange?.(isOpen);
|
|
40
|
+
}, [isOpen, onOpenChange]);
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<IconButton
|
|
44
|
+
ref={buttonRef}
|
|
45
|
+
size="small"
|
|
46
|
+
skin="light"
|
|
47
|
+
priority="secondary"
|
|
48
|
+
dataHook={dataHook}
|
|
49
|
+
ariaLabel={ariaLabel}
|
|
50
|
+
aria-haspopup="menu"
|
|
51
|
+
aria-expanded={isOpen}
|
|
52
|
+
onClick={toggle}
|
|
53
|
+
>
|
|
54
|
+
<MoreSmall />
|
|
55
|
+
</IconButton>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export interface MediaImageActionsProps {
|
|
60
|
+
/** Every action's data-hook starts with it. */
|
|
61
|
+
dataHook: string;
|
|
62
|
+
/** Opens the media manager. The button is disabled without it. */
|
|
63
|
+
onReplace?: () => void;
|
|
64
|
+
/** The menu item is disabled without it. */
|
|
65
|
+
onReplaceWithUrl?: () => void;
|
|
66
|
+
onPreview: () => void;
|
|
67
|
+
onDownload: () => void;
|
|
68
|
+
/** The menu item is disabled without it. */
|
|
69
|
+
onDelete?: () => void;
|
|
70
|
+
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
71
|
+
menuZIndex: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** The actions over a `MEDIA_IMAGE` image: Replace, and a menu with Replace
|
|
75
|
+
* with URL, Preview, Download and Delete. */
|
|
76
|
+
export const MediaImageActions: React.FC<MediaImageActionsProps> = ({
|
|
77
|
+
dataHook,
|
|
78
|
+
onReplace,
|
|
79
|
+
onReplaceWithUrl,
|
|
80
|
+
onPreview,
|
|
81
|
+
onDownload,
|
|
82
|
+
onDelete,
|
|
83
|
+
onMenuOpenChange,
|
|
84
|
+
menuZIndex,
|
|
85
|
+
}) => {
|
|
86
|
+
const { t } = useTranslations();
|
|
87
|
+
|
|
88
|
+
return (
|
|
89
|
+
<>
|
|
90
|
+
<Tooltip content={t('CMS.image.replace')} appendTo="window">
|
|
91
|
+
<IconButton
|
|
92
|
+
size="small"
|
|
93
|
+
skin="light"
|
|
94
|
+
priority="secondary"
|
|
95
|
+
dataHook={`${dataHook}-replace-button`}
|
|
96
|
+
ariaLabel={t('CMS.image.replace')}
|
|
97
|
+
disabled={!onReplace}
|
|
98
|
+
onClick={onReplace}
|
|
99
|
+
>
|
|
100
|
+
<Replace />
|
|
101
|
+
</IconButton>
|
|
102
|
+
</Tooltip>
|
|
103
|
+
<PopoverMenu
|
|
104
|
+
textSize="small"
|
|
105
|
+
appendTo="window"
|
|
106
|
+
zIndex={menuZIndex}
|
|
107
|
+
triggerElement={({ isOpen, toggle, ref }) => (
|
|
108
|
+
<MenuTrigger
|
|
109
|
+
isOpen={isOpen}
|
|
110
|
+
toggle={toggle}
|
|
111
|
+
buttonRef={ref}
|
|
112
|
+
onOpenChange={onMenuOpenChange}
|
|
113
|
+
ariaLabel={t('auto-patterns.fields.more_actions_tooltip')}
|
|
114
|
+
dataHook={`${dataHook}-more-button`}
|
|
115
|
+
/>
|
|
116
|
+
)}
|
|
117
|
+
>
|
|
118
|
+
<PopoverMenu.MenuItem
|
|
119
|
+
dataHook={`${dataHook}-action-replace-url`}
|
|
120
|
+
text={t('CMS.image.replaceWithUrl.button')}
|
|
121
|
+
prefixIcon={<Link />}
|
|
122
|
+
disabled={!onReplaceWithUrl}
|
|
123
|
+
onClick={() => onReplaceWithUrl?.()}
|
|
124
|
+
/>
|
|
125
|
+
<PopoverMenu.MenuItem
|
|
126
|
+
dataHook={`${dataHook}-action-preview`}
|
|
127
|
+
text={t('CMS.mediaGallery.preview')}
|
|
128
|
+
prefixIcon={<Maximize />}
|
|
129
|
+
onClick={onPreview}
|
|
130
|
+
/>
|
|
131
|
+
<PopoverMenu.MenuItem
|
|
132
|
+
dataHook={`${dataHook}-action-download`}
|
|
133
|
+
text={t('CMS.image.download')}
|
|
134
|
+
prefixIcon={<Download />}
|
|
135
|
+
onClick={onDownload}
|
|
136
|
+
/>
|
|
137
|
+
<PopoverMenu.Divider />
|
|
138
|
+
<PopoverMenu.MenuItem
|
|
139
|
+
dataHook={`${dataHook}-action-delete`}
|
|
140
|
+
text={t('CMS.image.clear')}
|
|
141
|
+
skin="destructive"
|
|
142
|
+
prefixIcon={<Delete />}
|
|
143
|
+
disabled={!onDelete}
|
|
144
|
+
onClick={() => onDelete?.()}
|
|
145
|
+
/>
|
|
146
|
+
</PopoverMenu>
|
|
147
|
+
</>
|
|
148
|
+
);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
MediaImageActions.displayName = 'MediaImageActions';
|
|
152
|
+
|
|
153
|
+
/** Downloads the image: through the Media Manager, or straight from an
|
|
154
|
+
* external URL, which the Media Manager can't make a download link for. */
|
|
155
|
+
export const useMediaImageDownload = (
|
|
156
|
+
image: MediaImageValue | null,
|
|
157
|
+
downloadMedia: (src: string) => void,
|
|
158
|
+
) =>
|
|
159
|
+
useCallback(() => {
|
|
160
|
+
if (isExternalMediaImage(image)) {
|
|
161
|
+
executeDownloading(image.url);
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const src = getImageSource(image);
|
|
165
|
+
if (src) {
|
|
166
|
+
downloadMedia(src);
|
|
167
|
+
}
|
|
168
|
+
}, [image, downloadMedia]);
|
|
169
|
+
|
|
170
|
+
export interface MediaImagePreviewModalProps {
|
|
171
|
+
isOpen: boolean;
|
|
172
|
+
image: MediaImageValue;
|
|
173
|
+
onClose: () => void;
|
|
174
|
+
onReplace: () => void;
|
|
175
|
+
onDelete?: () => void;
|
|
176
|
+
onDownload: () => void;
|
|
177
|
+
readOnly?: boolean;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export const MediaImagePreviewModal: React.FC<MediaImagePreviewModalProps> = ({
|
|
181
|
+
isOpen,
|
|
182
|
+
image,
|
|
183
|
+
onClose,
|
|
184
|
+
onReplace,
|
|
185
|
+
onDelete,
|
|
186
|
+
onDownload,
|
|
187
|
+
readOnly,
|
|
188
|
+
}) => (
|
|
189
|
+
<MediaPreviewModal
|
|
190
|
+
isOpen={isOpen}
|
|
191
|
+
value={getImageSource(image)}
|
|
192
|
+
onClose={onClose}
|
|
193
|
+
onRequestMedia={onReplace}
|
|
194
|
+
onClearMedia={onDelete}
|
|
195
|
+
onDownloadMedia={onDownload}
|
|
196
|
+
readOnly={readOnly}
|
|
197
|
+
textKeys={{
|
|
198
|
+
replace: 'CMS.image.replace',
|
|
199
|
+
download: 'CMS.image.download',
|
|
200
|
+
delete: 'CMS.image.clear',
|
|
201
|
+
}}
|
|
202
|
+
/>
|
|
203
|
+
);
|
|
204
|
+
|
|
205
|
+
MediaImagePreviewModal.displayName = 'MediaImagePreviewModal';
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "mediaimageview2861377077";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"mediaimageview2861377077__root","altTextPlaceholder":"mediaimageview2861377077__altTextPlaceholder"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "mediatag4137987577";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"mediatag4137987577__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "cellmultidocumentedit2789752441";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"cellmultidocumentedit2789752441__root","chipTrigger":"cellmultidocumentedit2789752441__chipTrigger"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -236,14 +236,11 @@ export const CellMultiDocumentEdit: React.FC<CellMultiDocumentEditProps> = ({
|
|
|
236
236
|
<Box
|
|
237
237
|
key={`${fieldId}-${index}`}
|
|
238
238
|
verticalAlign="middle"
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
// Box (a flex item of the strip) rather than the Tag — Tag's
|
|
242
|
-
// PopoverNextTrigger parent has no max-width, so a percentage
|
|
243
|
-
// clamp on the Tag itself is degenerate at narrow widths.
|
|
244
|
-
style={{ minWidth: 0, maxWidth: '100%' }}
|
|
239
|
+
minWidth={0}
|
|
240
|
+
maxWidth="100%"
|
|
245
241
|
>
|
|
246
242
|
<PopoverMenu
|
|
243
|
+
fluid
|
|
247
244
|
textSize="small"
|
|
248
245
|
appendTo="window"
|
|
249
246
|
// Function-form trigger: WDS Tag renders a plain <span>, so it
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "formmultidocument163448703";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"formmultidocument163448703__root","viewRoot":"formmultidocument163448703__viewRoot","singleViewWrapper":"formmultidocument163448703__singleViewWrapper","addDocumentButton":"formmultidocument163448703__addDocumentButton"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "cellmultireferenceinput222813444";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"cellmultireferenceinput222813444__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "cellmultireferenceview2050754718";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"cellmultireferenceview2050754718__root","expanded":"cellmultireferenceview2050754718__expanded"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../stylable-esm-runtime.js";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "cellreferenceinput3444816998";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"cellreferenceinput3444816998__root","autocomplete":"cellreferenceinput3444816998__autocomplete"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentdefaultvalueinput2462344888";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richcontentdefaultvalueinput2462344888__root","richContentEditorContainer":"richcontentdefaultvalueinput2462344888__richContentEditorContainer","editor":"richcontentdefaultvalueinput2462344888__editor"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
package/src/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentforminput2553504184";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richcontentforminput2553504184__root","editor":"richcontentforminput2553504184__editor"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentformreadonlyinput2626425276";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richcontentformreadonlyinput2626425276__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../../stylable-esm-runti
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "fullscreenmodal3305425356";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"fullscreenmodal3305425356__root","modalContent":"fullscreenmodal3305425356__modalContent"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../../stylable-esm-runti
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "publishloader690997989";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"publishloader690997989__root","publishLoader":"publishloader690997989__publishLoader"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../../stylable-esm-runti
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "togglefullscreenbutton3212328228";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"togglefullscreenbutton3212328228__root"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontenteditor4258240176";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richcontenteditor4258240176__root","toolbarContainer":"richcontenteditor4258240176__toolbarContainer","footerToolbarContainer":"richcontenteditor4258240176__footerToolbarContainer","toolbarAndFullScreenButtonWrapper":"richcontenteditor4258240176__toolbarAndFullScreenButtonWrapper","editor":"richcontenteditor4258240176__editor","modalEditor":"richcontenteditor4258240176__modalEditor"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontenttoolbar68392144";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richcontenttoolbar68392144__root","toolbar":"richcontenttoolbar68392144__toolbar","toolbarButton":"richcontenttoolbar68392144__toolbarButton","separator":"richcontenttoolbar68392144__separator"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richcontentviewer2615512618";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richcontentviewer2615512618__root","viewer":"richcontentviewer2615512618__viewer","modalViewer":"richcontentviewer2615512618__modalViewer"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richeditor887713289";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richeditor887713289__root","editor":"richeditor887713289__editor","header-one":"richeditor887713289__header-one","header-two":"richeditor887713289__header-two","header-three":"richeditor887713289__header-three","header-four":"richeditor887713289__header-four","header-five":"richeditor887713289__header-five","header-six":"richeditor887713289__header-six","paragraph-one":"richeditor887713289__paragraph-one","unstyled":"richeditor887713289__unstyled","paragraph-three":"richeditor887713289__paragraph-three","align-left":"richeditor887713289__align-left","align-right":"richeditor887713289__align-right","align-center":"richeditor887713289__align-center","align-justify":"richeditor887713289__align-justify","withMargin":"richeditor887713289__withMargin","dir-rtl":"richeditor887713289__dir-rtl"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
package/src/components/rich-text/rich-text-input/rich-text-editor/rich-text-editor.st.css.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../../stylable-esm-runtime.
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "richtexteditor2379095615";
|
|
9
9
|
var _style_ = classesRuntime.bind(null, _namespace_);
|
|
10
10
|
|
|
11
11
|
export var cssStates = statesRuntime.bind(null, _namespace_);
|
|
@@ -13,7 +13,7 @@ export var style: import("@stylable/runtime").STFunction = _style_;
|
|
|
13
13
|
export var st: import("@stylable/runtime").STFunction = _style_;
|
|
14
14
|
|
|
15
15
|
export var namespace = _namespace_;
|
|
16
|
-
export var classes = {"root":"
|
|
16
|
+
export var classes = {"root":"richtexteditor2379095615__root","nativeInput":"richtexteditor2379095615__nativeInput","editor":"richtexteditor2379095615__editor"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|