@wix/patterns-fields 1.37.0 → 1.39.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/assets/locale/messages_ar.json +171 -3
- package/dist/cjs/assets/locale/messages_bg.json +171 -3
- package/dist/cjs/assets/locale/messages_ca.json +171 -3
- package/dist/cjs/assets/locale/messages_cs.json +171 -3
- package/dist/cjs/assets/locale/messages_da.json +171 -3
- package/dist/cjs/assets/locale/messages_de.json +171 -3
- package/dist/cjs/assets/locale/messages_el.json +171 -3
- package/dist/cjs/assets/locale/messages_en.json +151 -152
- package/dist/cjs/assets/locale/messages_es.json +171 -3
- package/dist/cjs/assets/locale/messages_fi.json +171 -3
- package/dist/cjs/assets/locale/messages_fr.json +171 -3
- package/dist/cjs/assets/locale/messages_he.json +171 -3
- package/dist/cjs/assets/locale/messages_hi.json +171 -3
- package/dist/cjs/assets/locale/messages_hu.json +171 -3
- package/dist/cjs/assets/locale/messages_id.json +171 -3
- package/dist/cjs/assets/locale/messages_it.json +171 -3
- package/dist/cjs/assets/locale/messages_ja.json +171 -3
- package/dist/cjs/assets/locale/messages_ko.json +171 -3
- package/dist/cjs/assets/locale/messages_lt.json +171 -3
- package/dist/cjs/assets/locale/messages_ms.json +171 -3
- package/dist/cjs/assets/locale/messages_nl.json +171 -3
- package/dist/cjs/assets/locale/messages_no.json +171 -3
- package/dist/cjs/assets/locale/messages_pl.json +171 -3
- package/dist/cjs/assets/locale/messages_pt.json +171 -3
- package/dist/cjs/assets/locale/messages_ro.json +171 -3
- package/dist/cjs/assets/locale/messages_ru.json +171 -3
- package/dist/cjs/assets/locale/messages_sk.json +171 -3
- package/dist/cjs/assets/locale/messages_sl.json +171 -3
- package/dist/cjs/assets/locale/messages_sv.json +171 -3
- package/dist/cjs/assets/locale/messages_th.json +171 -3
- package/dist/cjs/assets/locale/messages_tl.json +171 -3
- package/dist/cjs/assets/locale/messages_tr.json +171 -3
- package/dist/cjs/assets/locale/messages_uk.json +171 -3
- package/dist/cjs/assets/locale/messages_vi.json +171 -3
- package/dist/cjs/assets/locale/messages_zh.json +171 -3
- package/dist/cjs/assets/locale/version_file +1 -0
- 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/actions/audio-actions.js +89 -0
- package/dist/cjs/components/audio/actions/audio-actions.js.map +1 -0
- package/dist/cjs/components/audio/audio-field/form-audio-field.js +47 -64
- package/dist/cjs/components/audio/audio-field/form-audio-field.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-store.js +75 -0
- package/dist/cjs/components/audio/audio-player/audio-player-store.js.map +1 -0
- package/dist/cjs/components/audio/audio-player/audio-player.js +10 -15
- package/dist/cjs/components/audio/audio-player/audio-player.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/audio/audio-player/index.js +6 -0
- package/dist/cjs/components/audio/audio-player/index.js.map +1 -1
- package/dist/cjs/components/audio/cell-audio-edit.js +172 -0
- package/dist/cjs/components/audio/cell-audio-edit.js.map +1 -0
- package/dist/cjs/components/audio/cell-audio-view.js +56 -0
- package/dist/cjs/components/audio/cell-audio-view.js.map +1 -0
- package/dist/cjs/components/audio/index.js +12 -0
- package/dist/cjs/components/audio/index.js.map +1 -1
- package/dist/cjs/components/color-view/color-view.st.css.js +4 -4
- package/dist/cjs/components/color-view/color-view.st.css.js.map +1 -1
- package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js +3 -3
- package/dist/cjs/components/delete-dialog/delete-dialog.st.css.js.map +1 -1
- package/dist/cjs/components/document/form-document-field.st.css.js +7 -7
- package/dist/cjs/components/document/form-document-field.st.css.js.map +1 -1
- package/dist/cjs/components/exclamation/exclamation.st.css.js +5 -5
- package/dist/cjs/components/exclamation/exclamation.st.css.js.map +1 -1
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js +5 -5
- package/dist/cjs/components/highlighted-text/highlighted-text.st.css.js.map +1 -1
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js +3 -3
- package/dist/cjs/components/image/thumbnail-replace-overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js +2 -2
- package/dist/cjs/components/media-control/cell-media-edit-shell.st.css.js.map +1 -1
- package/dist/cjs/components/media-control/index.js +6 -0
- package/dist/cjs/components/media-control/index.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-control/use-cell-media-edit.js +13 -11
- package/dist/cjs/components/media-control/use-cell-media-edit.js.map +1 -1
- package/dist/cjs/components/media-control/use-media-handlers.js +42 -0
- package/dist/cjs/components/media-control/use-media-handlers.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-image/media-image.st.css.js +4 -4
- package/dist/cjs/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js +3 -3
- package/dist/cjs/components/media-image/overlays/overlay.st.css.js.map +1 -1
- package/dist/cjs/components/media-loader/media-loader.st.css.js +3 -3
- package/dist/cjs/components/media-loader/media-loader.st.css.js.map +1 -1
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js +2 -2
- package/dist/cjs/components/media-tag/web-media-tag/media-tag.st.css.js.map +1 -1
- package/dist/cjs/components/multi-document/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-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 +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/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/services/translations.js.map +1 -1
- package/dist/cjs/styles.global.css +1 -1
- package/dist/cjs/utils/media-utils.js +16 -1
- package/dist/cjs/utils/media-utils.js.map +1 -1
- package/dist/esm/assets/locale/messages_ar.json +171 -3
- package/dist/esm/assets/locale/messages_bg.json +171 -3
- package/dist/esm/assets/locale/messages_ca.json +171 -3
- package/dist/esm/assets/locale/messages_cs.json +171 -3
- package/dist/esm/assets/locale/messages_da.json +171 -3
- package/dist/esm/assets/locale/messages_de.json +171 -3
- package/dist/esm/assets/locale/messages_el.json +171 -3
- package/dist/esm/assets/locale/messages_en.json +151 -148
- package/dist/esm/assets/locale/messages_es.json +171 -3
- package/dist/esm/assets/locale/messages_fi.json +171 -3
- package/dist/esm/assets/locale/messages_fr.json +171 -3
- package/dist/esm/assets/locale/messages_he.json +171 -3
- package/dist/esm/assets/locale/messages_hi.json +171 -3
- package/dist/esm/assets/locale/messages_hu.json +171 -3
- package/dist/esm/assets/locale/messages_id.json +171 -3
- package/dist/esm/assets/locale/messages_it.json +171 -3
- package/dist/esm/assets/locale/messages_ja.json +171 -3
- package/dist/esm/assets/locale/messages_ko.json +171 -3
- package/dist/esm/assets/locale/messages_lt.json +171 -3
- package/dist/esm/assets/locale/messages_ms.json +171 -3
- package/dist/esm/assets/locale/messages_nl.json +171 -3
- package/dist/esm/assets/locale/messages_no.json +171 -3
- package/dist/esm/assets/locale/messages_pl.json +171 -3
- package/dist/esm/assets/locale/messages_pt.json +171 -3
- package/dist/esm/assets/locale/messages_ro.json +171 -3
- package/dist/esm/assets/locale/messages_ru.json +171 -3
- package/dist/esm/assets/locale/messages_sk.json +171 -3
- package/dist/esm/assets/locale/messages_sl.json +171 -3
- package/dist/esm/assets/locale/messages_sv.json +171 -3
- package/dist/esm/assets/locale/messages_th.json +171 -3
- package/dist/esm/assets/locale/messages_tl.json +171 -3
- package/dist/esm/assets/locale/messages_tr.json +171 -3
- package/dist/esm/assets/locale/messages_uk.json +171 -3
- package/dist/esm/assets/locale/messages_vi.json +171 -3
- package/dist/esm/assets/locale/messages_zh.json +171 -3
- package/dist/esm/assets/locale/version_file +1 -0
- 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/audio-actions.js +53 -0
- package/dist/esm/components/audio/actions/audio-actions.js.map +1 -0
- package/dist/esm/components/audio/audio-field/form-audio-field.js +36 -40
- package/dist/esm/components/audio/audio-field/form-audio-field.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-store.js +45 -0
- package/dist/esm/components/audio/audio-player/audio-player-store.js.map +1 -0
- package/dist/esm/components/audio/audio-player/audio-player.js +4 -9
- package/dist/esm/components/audio/audio-player/audio-player.js.map +1 -1
- package/dist/esm/components/audio/audio-player/audio-player.st.css.js +2 -2
- package/dist/esm/components/audio/audio-player/audio-player.st.css.js.map +1 -1
- package/dist/esm/components/audio/audio-player/index.js +1 -0
- package/dist/esm/components/audio/audio-player/index.js.map +1 -1
- package/dist/esm/components/audio/cell-audio-edit.js +57 -0
- package/dist/esm/components/audio/cell-audio-edit.js.map +1 -0
- package/dist/esm/components/audio/cell-audio-view.js +13 -0
- package/dist/esm/components/audio/cell-audio-view.js.map +1 -0
- package/dist/esm/components/audio/index.js +2 -0
- package/dist/esm/components/audio/index.js.map +1 -1
- package/dist/esm/components/color-view/color-view.st.css.js +2 -2
- package/dist/esm/components/delete-dialog/delete-dialog.st.css.js +2 -2
- package/dist/esm/components/document/form-document-field.st.css.js +2 -2
- package/dist/esm/components/document/form-document-field.st.css.js.map +1 -1
- package/dist/esm/components/exclamation/exclamation.st.css.js +2 -2
- package/dist/esm/components/highlighted-text/highlighted-text.st.css.js +3 -3
- package/dist/esm/components/image/thumbnail-replace-overlay.st.css.js +2 -2
- package/dist/esm/components/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/cell-media-edit-shell.st.css.js.map +1 -1
- package/dist/esm/components/media-control/index.js +1 -0
- package/dist/esm/components/media-control/index.js.map +1 -1
- package/dist/esm/components/media-control/paste-url-button.st.css.js +2 -2
- package/dist/esm/components/media-control/use-cell-media-edit.js +10 -11
- package/dist/esm/components/media-control/use-cell-media-edit.js.map +1 -1
- package/dist/esm/components/media-control/use-media-handlers.js +26 -0
- package/dist/esm/components/media-control/use-media-handlers.js.map +1 -0
- package/dist/esm/components/media-gallery/form-media-gallery-field.st.css.js +2 -2
- package/dist/esm/components/media-image/media-image.st.css.js +3 -3
- package/dist/esm/components/media-image/media-image.st.css.js.map +1 -1
- package/dist/esm/components/media-image/overlays/overlay.st.css.js +2 -2
- package/dist/esm/components/media-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/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-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-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/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-editor.st.css.js.map +1 -1
- 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-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/components/text/text-view.st.css.js.map +1 -1
- package/dist/esm/styles.global.css +1 -1
- package/dist/esm/utils/media-utils.js +13 -1
- package/dist/esm/utils/media-utils.js.map +1 -1
- package/dist/types/components/audio/actions/audio-actions.d.ts +33 -0
- package/dist/types/components/audio/actions/audio-actions.d.ts.map +1 -0
- package/dist/types/components/audio/audio-field/form-audio-field.d.ts.map +1 -1
- package/dist/types/components/audio/audio-player/audio-player-store.d.ts +19 -0
- package/dist/types/components/audio/audio-player/audio-player-store.d.ts.map +1 -0
- package/dist/types/components/audio/audio-player/audio-player.d.ts +1 -2
- package/dist/types/components/audio/audio-player/audio-player.d.ts.map +1 -1
- package/dist/types/components/audio/audio-player/audio-player.st.css.d.ts.map +1 -1
- package/dist/types/components/audio/audio-player/index.d.ts +1 -0
- package/dist/types/components/audio/audio-player/index.d.ts.map +1 -1
- package/dist/types/components/audio/cell-audio-edit.d.ts +18 -0
- package/dist/types/components/audio/cell-audio-edit.d.ts.map +1 -0
- package/dist/types/components/audio/cell-audio-view.d.ts +7 -0
- package/dist/types/components/audio/cell-audio-view.d.ts.map +1 -0
- package/dist/types/components/audio/index.d.ts +2 -0
- package/dist/types/components/audio/index.d.ts.map +1 -1
- package/dist/types/components/document/form-document-field.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/cell-media-edit-shell.st.css.d.ts.map +1 -1
- package/dist/types/components/media-control/index.d.ts +1 -0
- package/dist/types/components/media-control/index.d.ts.map +1 -1
- package/dist/types/components/media-control/use-cell-media-edit.d.ts.map +1 -1
- package/dist/types/components/media-control/use-media-handlers.d.ts +24 -0
- package/dist/types/components/media-control/use-media-handlers.d.ts.map +1 -0
- 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/multi-document/multi-document-input/form-multi-document.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/form-input/rich-content-form-input.st.css.d.ts.map +1 -1
- package/dist/types/components/rich-content/rich-content-input/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-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-editor.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/components/text/text-view.st.css.d.ts.map +1 -1
- package/dist/types/services/translations.d.ts +6 -6
- package/dist/types/services/translations.d.ts.map +1 -1
- package/dist/types/utils/media-utils.d.ts.map +1 -1
- package/package.json +8 -6
- package/src/assets/locale/messages_ar.json +171 -3
- package/src/assets/locale/messages_bg.json +171 -3
- package/src/assets/locale/messages_ca.json +171 -3
- package/src/assets/locale/messages_cs.json +171 -3
- package/src/assets/locale/messages_da.json +171 -3
- package/src/assets/locale/messages_de.json +171 -3
- package/src/assets/locale/messages_el.json +171 -3
- package/src/assets/locale/messages_en.json +151 -152
- package/src/assets/locale/messages_es.json +171 -3
- package/src/assets/locale/messages_fi.json +171 -3
- package/src/assets/locale/messages_fr.json +171 -3
- package/src/assets/locale/messages_he.json +171 -3
- package/src/assets/locale/messages_hi.json +171 -3
- package/src/assets/locale/messages_hu.json +171 -3
- package/src/assets/locale/messages_id.json +171 -3
- package/src/assets/locale/messages_it.json +171 -3
- package/src/assets/locale/messages_ja.json +171 -3
- package/src/assets/locale/messages_ko.json +171 -3
- package/src/assets/locale/messages_lt.json +171 -3
- package/src/assets/locale/messages_ms.json +171 -3
- package/src/assets/locale/messages_nl.json +171 -3
- package/src/assets/locale/messages_no.json +171 -3
- package/src/assets/locale/messages_pl.json +171 -3
- package/src/assets/locale/messages_pt.json +171 -3
- package/src/assets/locale/messages_ro.json +171 -3
- package/src/assets/locale/messages_ru.json +171 -3
- package/src/assets/locale/messages_sk.json +171 -3
- package/src/assets/locale/messages_sl.json +171 -3
- package/src/assets/locale/messages_sv.json +171 -3
- package/src/assets/locale/messages_th.json +171 -3
- package/src/assets/locale/messages_tl.json +171 -3
- package/src/assets/locale/messages_tr.json +171 -3
- package/src/assets/locale/messages_uk.json +171 -3
- package/src/assets/locale/messages_vi.json +171 -3
- package/src/assets/locale/messages_zh.json +171 -3
- package/src/assets/locale/version_file +1 -0
- package/src/components/address/input/address-input.st.css.ts +2 -2
- package/src/components/audio/actions/actions-menu/actions-menu.st.css.ts +2 -2
- package/src/components/audio/actions/audio-actions.tsx +100 -0
- package/src/components/audio/audio-field/form-audio-field.st.css.ts +2 -2
- package/src/components/audio/audio-field/form-audio-field.tsx +36 -45
- package/src/components/audio/audio-player/audio-player-store.tsx +61 -0
- package/src/components/audio/audio-player/audio-player.st.css.ts +2 -2
- package/src/components/audio/audio-player/audio-player.tsx +6 -12
- package/src/components/audio/audio-player/index.ts +1 -0
- package/src/components/audio/cell-audio-edit.tsx +132 -0
- package/src/components/audio/cell-audio-view.tsx +43 -0
- package/src/components/audio/index.ts +2 -0
- 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/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/index.ts +1 -0
- package/src/components/media-control/paste-url-button.st.css.ts +2 -2
- package/src/components/media-control/use-cell-media-edit.ts +14 -17
- package/src/components/media-control/use-media-handlers.ts +56 -0
- package/src/components/media-gallery/form-media-gallery-field.st.css.ts +2 -2
- package/src/components/media-image/media-image.st.css.ts +3 -3
- package/src/components/media-image/overlays/overlay.st.css.ts +2 -2
- package/src/components/media-loader/media-loader.st.css.ts +2 -2
- package/src/components/media-tag/web-media-tag/media-tag.st.css.ts +2 -2
- package/src/components/multi-document/multi-document-input/form-multi-document.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/services/translations.ts +151 -148
- package/src/styles.global.css +1 -1
- package/src/utils/media-utils.ts +13 -1
|
@@ -1,7 +1,175 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"CMS.mediaGallery.dialog.modalDoneEmpty": "Go Back",
|
|
3
|
+
"CMS.mediaGallery.addLink.invalidUrl": "URL invalid",
|
|
4
|
+
"auto-patterns.fields.field_type_email_title": "Email",
|
|
5
|
+
"CMS.mediaGallery.dialog.settingsNewItemsTitleLabel": "What should the title of the images be?",
|
|
6
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h4.title": "Subsection Title",
|
|
7
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h3.title": "Content Title",
|
|
8
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p2.subtitle": "Paragraph 2",
|
|
9
|
+
"CMS.mediaGallery.addLink.currentTab": "Current tab",
|
|
10
|
+
"CMS.mediaGallery.dialog.externalLinkLabel": "Link",
|
|
11
|
+
"CMS.mediaGallery.dialog.masonryLayoutTooltip": "Masonry layout",
|
|
12
|
+
"CMS.document.delete.message": "Are you sure you want to delete \"{filename}\"?",
|
|
13
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h3.subtitle": "Heading 3",
|
|
14
|
+
"CMS.document.add.button.text": "Add file",
|
|
15
|
+
"CMS.mediaGallery.dialog.sortLabel": "Arrange by",
|
|
16
|
+
"auto-patterns.fields.field_type_video_title": "Video",
|
|
17
|
+
"auto-patterns.fields.field_type_object_title": "Đối tượng",
|
|
18
|
+
"CMS.richTextEditor.toolbar.button.link.paste.url.placeholder": "Paste URL Here",
|
|
19
|
+
"patterns-fields.reference.open_collection": "Open Collection",
|
|
20
|
+
"CMS.audio.button.download": "Download",
|
|
21
|
+
"CMS.mediaGallery.dialog.itemTitlePlaceholder": "Title",
|
|
22
|
+
"auto-patterns.filters.no_value": "No Value",
|
|
23
|
+
"CMS.richTextEditor.toolbar.headerDropdown.button.info": "Learn more",
|
|
24
|
+
"CMS.video.change": "Change Video",
|
|
25
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p3.subtitle": "Paragraph 3",
|
|
26
|
+
"CMS.mediaGallery.dialog.itemDescriptionPlaceholder": "Description",
|
|
27
|
+
"CMS.document.action.open": "Open file",
|
|
28
|
+
"CMS.mediaGallery.dialog.externalLinkTextPlaceholder": "e.g., https://www.mysite.com/",
|
|
29
|
+
"CMS.richTextEditor.toolbar.button.tooltip.full-screen.exit": "Close",
|
|
30
|
+
"CMS.richTextEditor.toolbar.button.link.save": "Save",
|
|
31
|
+
"CMS.mediaControl.pasteUrl.placeholder.document": "Paste document URL",
|
|
32
|
+
"auto-patterns.fields.no_results_found": "No results found",
|
|
33
|
+
"auto-patterns.fields.type_mismatch_tip": "Giá trị không khớp với kiểu trường {typeName}",
|
|
34
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h2.title": "Section Title",
|
|
35
|
+
"CMS.document.action.replaceWithUrl": "Replace with URL",
|
|
36
|
+
"CMS.mediaGallery.addLink.urlLabel": "URL",
|
|
37
|
+
"CMS.richTextEditor.toolbar.button.tooltip.underline": "Underline",
|
|
38
|
+
"CMS.mediaGallery.noItems.title": "Start adding media files",
|
|
39
|
+
"CMS.mediaGallery.noItems.addMedia": "Add Media",
|
|
40
|
+
"auto-patterns.url_view.open_in_new_tab": "Open link in a new tab",
|
|
41
|
+
"CMS.audio.more_actions_tooltip": "More actions",
|
|
42
|
+
"CMS.image.replaceWithUrl.button": "Replace with URL",
|
|
43
|
+
"CMS.mediaGallery.clear": "Delete gallery",
|
|
3
44
|
"auto-patterns.fields.type_mismatch_convert_disabled": "Chuyển đổi (không có sẵn)",
|
|
45
|
+
"CMS.mediaControl.pasteUrl.error.document": "Invalid document URL",
|
|
46
|
+
"CMS.mediaGallery.dialog.itemAltTooltip": "Alt text helps boost your site's SEO and improves web accessibility.",
|
|
47
|
+
"auto-patterns.fields.type_mismatch_convert": "Chuyển đổi giá trị thành {typeName}",
|
|
48
|
+
"CMS.mediaGallery.dialog.settingsNewItemsTitleEmpty": "No title",
|
|
49
|
+
"auto-patterns.fields.select_placeholder": "Select...",
|
|
50
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h1.title": "Page Title",
|
|
51
|
+
"CMS.mediaGallery.dialog.gridLayoutTooltip": "Grid layout",
|
|
52
|
+
"CMS.document.delete.cancel": "Cancel",
|
|
53
|
+
"CMS.mediaGallery.addGallery": "Add media",
|
|
4
54
|
"auto-patterns.fields.type_mismatch_clear": "Xóa trường này",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
55
|
+
"CMS.mediaGallery.dialog.itemTitleLabel": "Title",
|
|
56
|
+
"CMS.mediaGallery.dialog.emptySearchResultsTitle": "No results for",
|
|
57
|
+
"CMS.mediaGallery.dialog.selectionSelected": "{items} Selected",
|
|
58
|
+
"CMS.video.preview": "Preview",
|
|
59
|
+
"CMS.mediaGallery.dialog.settingsNewItemsDirectionLabel": "Where should new images appear?",
|
|
60
|
+
"auto-patterns.fields.field_type_rich_text_title": "Rich Text",
|
|
61
|
+
"CMS.mediaGallery.dialog.sortByFilenameAsc": "File name A-Z",
|
|
62
|
+
"auto-patterns.fields.no_items": "No items",
|
|
63
|
+
"auto-patterns.fields.replace_video_tooltip": "Replace video",
|
|
64
|
+
"CMS.mediaGallery.dialog.externalLinkButtonAdd": "Add Link",
|
|
65
|
+
"auto-patterns.fields.field_type_time_title": "Time",
|
|
66
|
+
"CMS.image.clear": "Clear",
|
|
67
|
+
"CMS.mediaGallery.preview": "Preview",
|
|
68
|
+
"auto-patterns.time_input.invalid_message": "Invalid time format",
|
|
69
|
+
"CMS.richTextEditor.toolbar.button.tooltip.ol": "Ordered List",
|
|
70
|
+
"CMS.richTextEditor.toolbar.button.link.cancel": "Cancel",
|
|
71
|
+
"CMS.mediaGallery.dialog.modalDone": "Save",
|
|
72
|
+
"CMS.mediaGallery.addMedia": "Add media",
|
|
73
|
+
"CMS.mediaGallery.dialog.itemAltPlaceholder": "Alt text",
|
|
74
|
+
"CMS.mediaGallery.dialog.settingsNewItemsTitleFilename": "Same as the file name",
|
|
75
|
+
"auto-patterns.fields.field_type_multi_document_title": "Multi Document",
|
|
76
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p1.title": "Large Text",
|
|
77
|
+
"CMS.mediaGallery.addLink.titleVideo": "Add a link to your video",
|
|
78
|
+
"auto-patterns.time_input.placeholder": "Enter time",
|
|
79
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p1.subtitle": "Paragraph 1",
|
|
80
|
+
"CMS.image.replace": "Replace",
|
|
81
|
+
"CMS.audio.button.play": "Play",
|
|
82
|
+
"auto-patterns.fields.add_video_tooltip": "Add video",
|
|
83
|
+
"CMS.document.delete.title": "Delete \"{filename}\"?",
|
|
84
|
+
"auto-patterns.filters.has_value": "Has Value",
|
|
85
|
+
"CMS.richTextEditor.toolbar.button.link.paste.url.title": "Paste URL Here",
|
|
86
|
+
"CMS.audio.button.replace": "Replace",
|
|
87
|
+
"auto-patterns.fields.field_type_audio_title": "Audio",
|
|
88
|
+
"CMS.mediaControl.pasteUrl.placeholder.image": "Paste image URL",
|
|
89
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p2.title": "Normal Text",
|
|
90
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h2.subtitle": "Heading 2",
|
|
91
|
+
"CMS.mediaGallery.addLink.cancel": "Cancel",
|
|
92
|
+
"auto-patterns.email_input.placeholder": "name@example.com",
|
|
93
|
+
"CMS.mediaGallery.dialog.settingsTitle": "Settings",
|
|
94
|
+
"CMS.mediaGallery.addLink.newTab": "New tab",
|
|
95
|
+
"CMS.mediaGallery.dialog.searchPlaceholder": "Search",
|
|
96
|
+
"CMS.image.add": "Add Image",
|
|
97
|
+
"CMS.document.action.download": "Download file",
|
|
98
|
+
"CMS.mediaGallery.addLink.subtitleImage": "The link will show in expand mode or when clicking on the image.",
|
|
99
|
+
"CMS.mediaGallery.dialog.settingsNewItemsDirectionStart": "At the start of the gallery",
|
|
100
|
+
"CMS.richTextEditor.toolbar.button.tooltip.clear-formation": "Clear Formatting",
|
|
101
|
+
"patterns-fields.select.search_placeholder": "Search or select an option",
|
|
102
|
+
"CMS.mediaGallery.preview.delete": "Remove",
|
|
103
|
+
"CMS.mediaGallery.dialog.selectionDelete": "Delete",
|
|
104
|
+
"CMS.mediaControl.pasteUrl.button.save": "Save",
|
|
105
|
+
"CMS.mediaGallery.addLink.save": "Save",
|
|
106
|
+
"CMS.mediaGallery.dialog.modalTitle": "Manage gallery media",
|
|
107
|
+
"CMS.document.pasteUrl.button": "Add file link (URL)",
|
|
108
|
+
"patterns-fields.text.char_limit_tooltip": "Enter up to {maxLength} characters including spaces.",
|
|
109
|
+
"CMS.mediaGallery.preview.replace": "Replace",
|
|
110
|
+
"auto-patterns.fields.preview_video": "Preview",
|
|
111
|
+
"CMS.mediaGallery.addLink.targetLabel": "Where will it open?",
|
|
112
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h6.subtitle": "Heading 6",
|
|
113
|
+
"auto-patterns.email_input.invalid_message": "Enter a valid email address",
|
|
114
|
+
"CMS.richTextEditor.toolbar.button.tooltip.ul": "Unordered List",
|
|
115
|
+
"CMS.mediaGallery.addLink.subtitleVideo": "The link will show in expand mode or when clicking on the video.",
|
|
116
|
+
"CMS.mediaGallery.dialog.externalLinkButtonEdit": "Edit Link",
|
|
117
|
+
"CMS.richContentCommon.publishLoader": "Saving. Please wait...",
|
|
118
|
+
"CMS.mediaGallery.dialog.selectionSelectAll": "Select All",
|
|
119
|
+
"CMS.mediaControl.pasteUrl.button.cancel": "Cancel",
|
|
120
|
+
"CMS.mediaGallery.dialog.sortByTitleDesc": "Title Z-A",
|
|
121
|
+
"CMS.mediaGallery.dialog.sortByFilenameDesc": "File name Z-A",
|
|
122
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h5.subtitle": "Heading 5",
|
|
123
|
+
"CMS.audio.button.add": "Add Audio",
|
|
124
|
+
"auto-patterns.fields.download_video": "Download video",
|
|
125
|
+
"CMS.video.add": "Add Video",
|
|
126
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p3.title": "Small Text",
|
|
127
|
+
"CMS.mediaGallery.manageGallery": "Manage media",
|
|
128
|
+
"CMS.video.download": "Download Video",
|
|
129
|
+
"CMS.mediaGallery.dialog.sortByTitleAsc": "Title A-Z",
|
|
130
|
+
"auto-patterns.fields.field_type_array_title": "Array",
|
|
131
|
+
"CMS.mediaGallery.dialog.itemDeleteTooltip": "Delete",
|
|
132
|
+
"CMS.mediaGallery.preview.previousItem": "Previous",
|
|
133
|
+
"CMS.mediaGallery.dialog.itemDescriptionLabel": "Description",
|
|
134
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h4.subtitle": "Heading 4",
|
|
135
|
+
"CMS.mediaGallery.dialog.emptySearchResultsSubtitle": "Try searching for something else",
|
|
136
|
+
"CMS.document.pasteUrl.title": "Add file link (URL)",
|
|
137
|
+
"CMS.mediaGallery.noItems.subtitle": "Upload image and video files to your gallery",
|
|
138
|
+
"CMS.mediaGallery.dialog.selectionDeselectAll": "Deselect",
|
|
139
|
+
"CMS.mediaGallery.replaceItem": "Replace Media",
|
|
140
|
+
"CMS.image.download": "Download",
|
|
141
|
+
"CMS.richTextEditor.toolbar.header": "Themes",
|
|
142
|
+
"CMS.document.action.delete": "Delete file",
|
|
143
|
+
"CMS.mediaGallery.preview.download": "Download",
|
|
144
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h6.title": "Subtitle",
|
|
145
|
+
"auto-patterns.fields.email_input_error": "Please enter a valid email address",
|
|
146
|
+
"patterns-fields.reference.untitled": "Untitled",
|
|
147
|
+
"CMS.richTextEditor.toolbar.button.tooltip.full-screen": "Expand",
|
|
148
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h1.subtitle": "Heading 1",
|
|
149
|
+
"CMS.audio.button.delete": "Delete",
|
|
150
|
+
"CMS.document.action.replace": "Choose file",
|
|
151
|
+
"CMS.document.addMore.button.text": "Add file",
|
|
152
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h5.title": "Title",
|
|
153
|
+
"CMS.mediaControl.pasteUrl.error.image": "Invalid image URL",
|
|
154
|
+
"CMS.mediaGallery.emptyHint": "Select images and videos to add",
|
|
155
|
+
"CMS.mediaGallery.dialog.settingsNewItemsDirectionEnd": "At the end of the gallery",
|
|
156
|
+
"CMS.image.replaceWithUrl.title": "Paste Image URL",
|
|
157
|
+
"auto-patterns.fields.field_type_address_title": "Address",
|
|
158
|
+
"auto-patterns.fields.more_actions_tooltip": "More actions",
|
|
159
|
+
"CMS.mediaGallery.preview.nextItem": "Next",
|
|
160
|
+
"CMS.richTextEditor.toolbar.headerDropdown.help.text": "Rich text editor is using your website font themes.",
|
|
161
|
+
"auto-patterns.fields.field_type_rich_content_title": "Rich Content",
|
|
162
|
+
"CMS.richTextEditor.toolbar.button.link": "Link",
|
|
163
|
+
"CMS.mediaGallery.addLink.titleImage": "Add a link to your image",
|
|
164
|
+
"CMS.richTextEditor.toolbar.button.tooltip.italic": "Italic",
|
|
165
|
+
"CMS.mediaGallery.dialog.itemAltLabel": "Alt text",
|
|
166
|
+
"auto-patterns.fields.add_color_tooltip": "Add color\n",
|
|
167
|
+
"auto-patterns.fields.remove_video": "Remove video",
|
|
168
|
+
"CMS.video.delete": "Delete Video",
|
|
169
|
+
"CMS.richTextEditor.toolbar.button.tooltip.bold": "Bold",
|
|
170
|
+
"CMS.mediaGallery.dialog.itemFocalPointTooltip": "Adjust the focal point to highlight part of your image or video.",
|
|
171
|
+
"CMS.document.delete.confirm": "Delete",
|
|
172
|
+
"CMS.richTextEditor.toolbar.button.tooltip.align": "Align",
|
|
173
|
+
"auto-patterns.fields.field_type_address_placeholder": "Enter an address",
|
|
174
|
+
"CMS.document.replaceWithUrl.title": "Add file link (URL)"
|
|
7
175
|
}
|
|
@@ -1,7 +1,175 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"CMS.mediaGallery.dialog.modalDoneEmpty": "Go Back",
|
|
3
|
+
"CMS.mediaGallery.addLink.invalidUrl": "URL invalid",
|
|
4
|
+
"auto-patterns.fields.field_type_email_title": "Email",
|
|
5
|
+
"CMS.mediaGallery.dialog.settingsNewItemsTitleLabel": "What should the title of the images be?",
|
|
6
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h4.title": "Subsection Title",
|
|
7
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h3.title": "Content Title",
|
|
8
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p2.subtitle": "Paragraph 2",
|
|
9
|
+
"CMS.mediaGallery.addLink.currentTab": "Current tab",
|
|
10
|
+
"CMS.mediaGallery.dialog.externalLinkLabel": "Link",
|
|
11
|
+
"CMS.mediaGallery.dialog.masonryLayoutTooltip": "Masonry layout",
|
|
12
|
+
"CMS.document.delete.message": "Are you sure you want to delete \"{filename}\"?",
|
|
13
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h3.subtitle": "Heading 3",
|
|
14
|
+
"CMS.document.add.button.text": "Add file",
|
|
15
|
+
"CMS.mediaGallery.dialog.sortLabel": "Arrange by",
|
|
16
|
+
"auto-patterns.fields.field_type_video_title": "Video",
|
|
17
|
+
"auto-patterns.fields.field_type_object_title": "物件",
|
|
18
|
+
"CMS.richTextEditor.toolbar.button.link.paste.url.placeholder": "Paste URL Here",
|
|
19
|
+
"patterns-fields.reference.open_collection": "Open Collection",
|
|
20
|
+
"CMS.audio.button.download": "Download",
|
|
21
|
+
"CMS.mediaGallery.dialog.itemTitlePlaceholder": "Title",
|
|
22
|
+
"auto-patterns.filters.no_value": "No Value",
|
|
23
|
+
"CMS.richTextEditor.toolbar.headerDropdown.button.info": "Learn more",
|
|
24
|
+
"CMS.video.change": "Change Video",
|
|
25
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p3.subtitle": "Paragraph 3",
|
|
26
|
+
"CMS.mediaGallery.dialog.itemDescriptionPlaceholder": "Description",
|
|
27
|
+
"CMS.document.action.open": "Open file",
|
|
28
|
+
"CMS.mediaGallery.dialog.externalLinkTextPlaceholder": "e.g., https://www.mysite.com/",
|
|
29
|
+
"CMS.richTextEditor.toolbar.button.tooltip.full-screen.exit": "Close",
|
|
30
|
+
"CMS.richTextEditor.toolbar.button.link.save": "Save",
|
|
31
|
+
"CMS.mediaControl.pasteUrl.placeholder.document": "Paste document URL",
|
|
32
|
+
"auto-patterns.fields.no_results_found": "No results found",
|
|
33
|
+
"auto-patterns.fields.type_mismatch_tip": "值不符合 {typeName} 欄位類型。",
|
|
34
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h2.title": "Section Title",
|
|
35
|
+
"CMS.document.action.replaceWithUrl": "Replace with URL",
|
|
36
|
+
"CMS.mediaGallery.addLink.urlLabel": "URL",
|
|
37
|
+
"CMS.richTextEditor.toolbar.button.tooltip.underline": "Underline",
|
|
38
|
+
"CMS.mediaGallery.noItems.title": "Start adding media files",
|
|
39
|
+
"CMS.mediaGallery.noItems.addMedia": "Add Media",
|
|
40
|
+
"auto-patterns.url_view.open_in_new_tab": "Open link in a new tab",
|
|
41
|
+
"CMS.audio.more_actions_tooltip": "More actions",
|
|
42
|
+
"CMS.image.replaceWithUrl.button": "Replace with URL",
|
|
43
|
+
"CMS.mediaGallery.clear": "Delete gallery",
|
|
3
44
|
"auto-patterns.fields.type_mismatch_convert_disabled": "轉換(不可用)",
|
|
45
|
+
"CMS.mediaControl.pasteUrl.error.document": "Invalid document URL",
|
|
46
|
+
"CMS.mediaGallery.dialog.itemAltTooltip": "Alt text helps boost your site's SEO and improves web accessibility.",
|
|
47
|
+
"auto-patterns.fields.type_mismatch_convert": "將值轉換為 {typeName}",
|
|
48
|
+
"CMS.mediaGallery.dialog.settingsNewItemsTitleEmpty": "No title",
|
|
49
|
+
"auto-patterns.fields.select_placeholder": "Select...",
|
|
50
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h1.title": "Page Title",
|
|
51
|
+
"CMS.mediaGallery.dialog.gridLayoutTooltip": "Grid layout",
|
|
52
|
+
"CMS.document.delete.cancel": "Cancel",
|
|
53
|
+
"CMS.mediaGallery.addGallery": "Add media",
|
|
4
54
|
"auto-patterns.fields.type_mismatch_clear": "清除此欄位",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
55
|
+
"CMS.mediaGallery.dialog.itemTitleLabel": "Title",
|
|
56
|
+
"CMS.mediaGallery.dialog.emptySearchResultsTitle": "No results for",
|
|
57
|
+
"CMS.mediaGallery.dialog.selectionSelected": "{items} Selected",
|
|
58
|
+
"CMS.video.preview": "Preview",
|
|
59
|
+
"CMS.mediaGallery.dialog.settingsNewItemsDirectionLabel": "Where should new images appear?",
|
|
60
|
+
"auto-patterns.fields.field_type_rich_text_title": "Rich Text",
|
|
61
|
+
"CMS.mediaGallery.dialog.sortByFilenameAsc": "File name A-Z",
|
|
62
|
+
"auto-patterns.fields.no_items": "No items",
|
|
63
|
+
"auto-patterns.fields.replace_video_tooltip": "Replace video",
|
|
64
|
+
"CMS.mediaGallery.dialog.externalLinkButtonAdd": "Add Link",
|
|
65
|
+
"auto-patterns.fields.field_type_time_title": "Time",
|
|
66
|
+
"CMS.image.clear": "Clear",
|
|
67
|
+
"CMS.mediaGallery.preview": "Preview",
|
|
68
|
+
"auto-patterns.time_input.invalid_message": "Invalid time format",
|
|
69
|
+
"CMS.richTextEditor.toolbar.button.tooltip.ol": "Ordered List",
|
|
70
|
+
"CMS.richTextEditor.toolbar.button.link.cancel": "Cancel",
|
|
71
|
+
"CMS.mediaGallery.dialog.modalDone": "Save",
|
|
72
|
+
"CMS.mediaGallery.addMedia": "Add media",
|
|
73
|
+
"CMS.mediaGallery.dialog.itemAltPlaceholder": "Alt text",
|
|
74
|
+
"CMS.mediaGallery.dialog.settingsNewItemsTitleFilename": "Same as the file name",
|
|
75
|
+
"auto-patterns.fields.field_type_multi_document_title": "Multi Document",
|
|
76
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p1.title": "Large Text",
|
|
77
|
+
"CMS.mediaGallery.addLink.titleVideo": "Add a link to your video",
|
|
78
|
+
"auto-patterns.time_input.placeholder": "Enter time",
|
|
79
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p1.subtitle": "Paragraph 1",
|
|
80
|
+
"CMS.image.replace": "Replace",
|
|
81
|
+
"CMS.audio.button.play": "Play",
|
|
82
|
+
"auto-patterns.fields.add_video_tooltip": "Add video",
|
|
83
|
+
"CMS.document.delete.title": "Delete \"{filename}\"?",
|
|
84
|
+
"auto-patterns.filters.has_value": "Has Value",
|
|
85
|
+
"CMS.richTextEditor.toolbar.button.link.paste.url.title": "Paste URL Here",
|
|
86
|
+
"CMS.audio.button.replace": "Replace",
|
|
87
|
+
"auto-patterns.fields.field_type_audio_title": "Audio",
|
|
88
|
+
"CMS.mediaControl.pasteUrl.placeholder.image": "Paste image URL",
|
|
89
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p2.title": "Normal Text",
|
|
90
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h2.subtitle": "Heading 2",
|
|
91
|
+
"CMS.mediaGallery.addLink.cancel": "Cancel",
|
|
92
|
+
"auto-patterns.email_input.placeholder": "name@example.com",
|
|
93
|
+
"CMS.mediaGallery.dialog.settingsTitle": "Settings",
|
|
94
|
+
"CMS.mediaGallery.addLink.newTab": "New tab",
|
|
95
|
+
"CMS.mediaGallery.dialog.searchPlaceholder": "Search",
|
|
96
|
+
"CMS.image.add": "Add Image",
|
|
97
|
+
"CMS.document.action.download": "Download file",
|
|
98
|
+
"CMS.mediaGallery.addLink.subtitleImage": "The link will show in expand mode or when clicking on the image.",
|
|
99
|
+
"CMS.mediaGallery.dialog.settingsNewItemsDirectionStart": "At the start of the gallery",
|
|
100
|
+
"CMS.richTextEditor.toolbar.button.tooltip.clear-formation": "Clear Formatting",
|
|
101
|
+
"patterns-fields.select.search_placeholder": "Search or select an option",
|
|
102
|
+
"CMS.mediaGallery.preview.delete": "Remove",
|
|
103
|
+
"CMS.mediaGallery.dialog.selectionDelete": "Delete",
|
|
104
|
+
"CMS.mediaControl.pasteUrl.button.save": "Save",
|
|
105
|
+
"CMS.mediaGallery.addLink.save": "Save",
|
|
106
|
+
"CMS.mediaGallery.dialog.modalTitle": "Manage gallery media",
|
|
107
|
+
"CMS.document.pasteUrl.button": "Add file link (URL)",
|
|
108
|
+
"patterns-fields.text.char_limit_tooltip": "Enter up to {maxLength} characters including spaces.",
|
|
109
|
+
"CMS.mediaGallery.preview.replace": "Replace",
|
|
110
|
+
"auto-patterns.fields.preview_video": "Preview",
|
|
111
|
+
"CMS.mediaGallery.addLink.targetLabel": "Where will it open?",
|
|
112
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h6.subtitle": "Heading 6",
|
|
113
|
+
"auto-patterns.email_input.invalid_message": "Enter a valid email address",
|
|
114
|
+
"CMS.richTextEditor.toolbar.button.tooltip.ul": "Unordered List",
|
|
115
|
+
"CMS.mediaGallery.addLink.subtitleVideo": "The link will show in expand mode or when clicking on the video.",
|
|
116
|
+
"CMS.mediaGallery.dialog.externalLinkButtonEdit": "Edit Link",
|
|
117
|
+
"CMS.richContentCommon.publishLoader": "Saving. Please wait...",
|
|
118
|
+
"CMS.mediaGallery.dialog.selectionSelectAll": "Select All",
|
|
119
|
+
"CMS.mediaControl.pasteUrl.button.cancel": "Cancel",
|
|
120
|
+
"CMS.mediaGallery.dialog.sortByTitleDesc": "Title Z-A",
|
|
121
|
+
"CMS.mediaGallery.dialog.sortByFilenameDesc": "File name Z-A",
|
|
122
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h5.subtitle": "Heading 5",
|
|
123
|
+
"CMS.audio.button.add": "Add Audio",
|
|
124
|
+
"auto-patterns.fields.download_video": "Download video",
|
|
125
|
+
"CMS.video.add": "Add Video",
|
|
126
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.p3.title": "Small Text",
|
|
127
|
+
"CMS.mediaGallery.manageGallery": "Manage media",
|
|
128
|
+
"CMS.video.download": "Download Video",
|
|
129
|
+
"CMS.mediaGallery.dialog.sortByTitleAsc": "Title A-Z",
|
|
130
|
+
"auto-patterns.fields.field_type_array_title": "Array",
|
|
131
|
+
"CMS.mediaGallery.dialog.itemDeleteTooltip": "Delete",
|
|
132
|
+
"CMS.mediaGallery.preview.previousItem": "Previous",
|
|
133
|
+
"CMS.mediaGallery.dialog.itemDescriptionLabel": "Description",
|
|
134
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h4.subtitle": "Heading 4",
|
|
135
|
+
"CMS.mediaGallery.dialog.emptySearchResultsSubtitle": "Try searching for something else",
|
|
136
|
+
"CMS.document.pasteUrl.title": "Add file link (URL)",
|
|
137
|
+
"CMS.mediaGallery.noItems.subtitle": "Upload image and video files to your gallery",
|
|
138
|
+
"CMS.mediaGallery.dialog.selectionDeselectAll": "Deselect",
|
|
139
|
+
"CMS.mediaGallery.replaceItem": "Replace Media",
|
|
140
|
+
"CMS.image.download": "Download",
|
|
141
|
+
"CMS.richTextEditor.toolbar.header": "Themes",
|
|
142
|
+
"CMS.document.action.delete": "Delete file",
|
|
143
|
+
"CMS.mediaGallery.preview.download": "Download",
|
|
144
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h6.title": "Subtitle",
|
|
145
|
+
"auto-patterns.fields.email_input_error": "Please enter a valid email address",
|
|
146
|
+
"patterns-fields.reference.untitled": "Untitled",
|
|
147
|
+
"CMS.richTextEditor.toolbar.button.tooltip.full-screen": "Expand",
|
|
148
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h1.subtitle": "Heading 1",
|
|
149
|
+
"CMS.audio.button.delete": "Delete",
|
|
150
|
+
"CMS.document.action.replace": "Choose file",
|
|
151
|
+
"CMS.document.addMore.button.text": "Add file",
|
|
152
|
+
"CMS.richTextEditor.toolbar.headerDropdown.option.h5.title": "Title",
|
|
153
|
+
"CMS.mediaControl.pasteUrl.error.image": "Invalid image URL",
|
|
154
|
+
"CMS.mediaGallery.emptyHint": "Select images and videos to add",
|
|
155
|
+
"CMS.mediaGallery.dialog.settingsNewItemsDirectionEnd": "At the end of the gallery",
|
|
156
|
+
"CMS.image.replaceWithUrl.title": "Paste Image URL",
|
|
157
|
+
"auto-patterns.fields.field_type_address_title": "Address",
|
|
158
|
+
"auto-patterns.fields.more_actions_tooltip": "More actions",
|
|
159
|
+
"CMS.mediaGallery.preview.nextItem": "Next",
|
|
160
|
+
"CMS.richTextEditor.toolbar.headerDropdown.help.text": "Rich text editor is using your website font themes.",
|
|
161
|
+
"auto-patterns.fields.field_type_rich_content_title": "Rich Content",
|
|
162
|
+
"CMS.richTextEditor.toolbar.button.link": "Link",
|
|
163
|
+
"CMS.mediaGallery.addLink.titleImage": "Add a link to your image",
|
|
164
|
+
"CMS.richTextEditor.toolbar.button.tooltip.italic": "Italic",
|
|
165
|
+
"CMS.mediaGallery.dialog.itemAltLabel": "Alt text",
|
|
166
|
+
"auto-patterns.fields.add_color_tooltip": "Add color\n",
|
|
167
|
+
"auto-patterns.fields.remove_video": "Remove video",
|
|
168
|
+
"CMS.video.delete": "Delete Video",
|
|
169
|
+
"CMS.richTextEditor.toolbar.button.tooltip.bold": "Bold",
|
|
170
|
+
"CMS.mediaGallery.dialog.itemFocalPointTooltip": "Adjust the focal point to highlight part of your image or video.",
|
|
171
|
+
"CMS.document.delete.confirm": "Delete",
|
|
172
|
+
"CMS.richTextEditor.toolbar.button.tooltip.align": "Align",
|
|
173
|
+
"auto-patterns.fields.field_type_address_placeholder": "Enter an address",
|
|
174
|
+
"CMS.document.replaceWithUrl.title": "Add file link (URL)"
|
|
7
175
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1780497363
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "addressinput3610524159";
|
|
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":"addressinput3610524159__root","tableAddressInput":"addressinput3610524159__tableAddressInput"};
|
|
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_ = "actionsmenu1344282980";
|
|
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":"actionsmenu1344282980__root","action":"actionsmenu1344282980__action"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Delete,
|
|
4
|
+
Download,
|
|
5
|
+
ExternalLink,
|
|
6
|
+
Replace,
|
|
7
|
+
} from '@wix/wix-ui-icons-common';
|
|
8
|
+
|
|
9
|
+
import { ACTIONS_MENU_DIVIDER, type ActionsMenuItem } from './actions-menu';
|
|
10
|
+
|
|
11
|
+
export interface AudioActionsLabels {
|
|
12
|
+
replace: string;
|
|
13
|
+
download: string;
|
|
14
|
+
delete: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AudioActionsDataHooks {
|
|
18
|
+
replace: string;
|
|
19
|
+
download: string;
|
|
20
|
+
delete: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface AudioPlayAction {
|
|
24
|
+
label: string;
|
|
25
|
+
dataHook: string;
|
|
26
|
+
onClick: () => void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface BuildAudioActionsConfig {
|
|
30
|
+
labels: AudioActionsLabels;
|
|
31
|
+
dataHooks: AudioActionsDataHooks;
|
|
32
|
+
onReplace: () => void;
|
|
33
|
+
onDownload: () => void;
|
|
34
|
+
onDelete: () => void;
|
|
35
|
+
/** When provided, a Play item is inserted between Replace and Download. */
|
|
36
|
+
play?: AudioPlayAction;
|
|
37
|
+
readOnly?: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Builds the audio more-actions menu items. Owns icons / order / dividers /
|
|
42
|
+
* destructive skin so the form and the editable-table cell stay in sync.
|
|
43
|
+
* Callers contribute labels (already translated) and data-hook strings.
|
|
44
|
+
*/
|
|
45
|
+
export const buildAudioActions = ({
|
|
46
|
+
labels,
|
|
47
|
+
dataHooks,
|
|
48
|
+
onReplace,
|
|
49
|
+
onDownload,
|
|
50
|
+
onDelete,
|
|
51
|
+
play,
|
|
52
|
+
readOnly,
|
|
53
|
+
}: BuildAudioActionsConfig): ActionsMenuItem[] => {
|
|
54
|
+
const replace: ActionsMenuItem = {
|
|
55
|
+
id: 'AUDIO_REPLACE',
|
|
56
|
+
dataHook: dataHooks.replace,
|
|
57
|
+
label: labels.replace,
|
|
58
|
+
icon: <Replace />,
|
|
59
|
+
disabled: readOnly,
|
|
60
|
+
onClick: onReplace,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const download: ActionsMenuItem = {
|
|
64
|
+
id: 'AUDIO_DOWNLOAD',
|
|
65
|
+
dataHook: dataHooks.download,
|
|
66
|
+
label: labels.download,
|
|
67
|
+
icon: <Download />,
|
|
68
|
+
onClick: onDownload,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const del: ActionsMenuItem = {
|
|
72
|
+
id: 'AUDIO_DELETE',
|
|
73
|
+
dataHook: dataHooks.delete,
|
|
74
|
+
label: labels.delete,
|
|
75
|
+
icon: <Delete />,
|
|
76
|
+
skin: 'destructive' as const,
|
|
77
|
+
disabled: readOnly,
|
|
78
|
+
onClick: onDelete,
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
if (play) {
|
|
82
|
+
const playItem: ActionsMenuItem = {
|
|
83
|
+
id: 'AUDIO_PLAY',
|
|
84
|
+
dataHook: play.dataHook,
|
|
85
|
+
label: play.label,
|
|
86
|
+
icon: <ExternalLink />,
|
|
87
|
+
onClick: play.onClick,
|
|
88
|
+
};
|
|
89
|
+
return [
|
|
90
|
+
replace,
|
|
91
|
+
ACTIONS_MENU_DIVIDER,
|
|
92
|
+
playItem,
|
|
93
|
+
download,
|
|
94
|
+
ACTIONS_MENU_DIVIDER,
|
|
95
|
+
del,
|
|
96
|
+
];
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return [replace, download, ACTIONS_MENU_DIVIDER, del];
|
|
100
|
+
};
|
|
@@ -5,7 +5,7 @@ import { classesRuntime, statesRuntime } from "../../../stylable-esm-runtime.js"
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var _namespace_ = "
|
|
8
|
+
var _namespace_ = "formaudiofield3727527480";
|
|
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":"formaudiofield3727527480__root","addItem":"formaudiofield3727527480__addItem","mediaTitle":"formaudiofield3727527480__mediaTitle"};
|
|
17
17
|
export var keyframes = {};
|
|
18
18
|
export var layers = {};
|
|
19
19
|
export var containers = {};
|
|
@@ -4,21 +4,16 @@ import React, { useRef, useMemo } from 'react';
|
|
|
4
4
|
import { getMediaURL } from '../../../auto-field-types';
|
|
5
5
|
import type { AddItemActions } from '@wix/design-system';
|
|
6
6
|
import { AddItem, AudioPlayer, Box, Text } from '@wix/design-system';
|
|
7
|
-
import {
|
|
8
|
-
DownloadImport as Download,
|
|
9
|
-
Delete,
|
|
10
|
-
Replace,
|
|
11
|
-
} from '@wix/wix-ui-icons-common';
|
|
12
7
|
|
|
13
|
-
import {
|
|
8
|
+
import { useTranslations, useWithCallback } from '../../../hooks';
|
|
14
9
|
import { getMediaTitle, MEDIA_TYPES } from '../../../utils';
|
|
15
10
|
|
|
16
11
|
import { Z_INDEX_MODAL_POPOVER } from '../../common';
|
|
17
12
|
import type { FormMediaControlProps } from '../../media-control';
|
|
18
|
-
import { useMediaControl } from '../../media-control';
|
|
13
|
+
import { useMediaControl, useMediaHandlers } from '../../media-control';
|
|
19
14
|
import { MediaLoader } from '../../media-loader';
|
|
20
15
|
import { ActionsButton } from '../actions/actions-button';
|
|
21
|
-
import {
|
|
16
|
+
import { buildAudioActions } from '../actions/audio-actions';
|
|
22
17
|
|
|
23
18
|
import { style, classes } from './form-audio-field.st.css.js';
|
|
24
19
|
|
|
@@ -50,46 +45,42 @@ export const FormAudioField: FC<FormMediaControlProps> = ({
|
|
|
50
45
|
viewRef,
|
|
51
46
|
});
|
|
52
47
|
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
label: t('CMS.audio.button.download'),
|
|
66
|
-
disabled: false,
|
|
67
|
-
icon: <Download />,
|
|
68
|
-
onClick: downloadMedia,
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const clearAction = {
|
|
72
|
-
id: 'AUDIO_CLEAR',
|
|
73
|
-
dataHook: 'fromAudioInput.button.delete',
|
|
74
|
-
label: t('CMS.audio.button.delete'),
|
|
75
|
-
disabled: readOnly,
|
|
76
|
-
icon: <Delete />,
|
|
77
|
-
onClick: onClear,
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const actions = [
|
|
81
|
-
replaceAction,
|
|
82
|
-
downloadAction,
|
|
83
|
-
ACTIONS_MENU_DIVIDER,
|
|
84
|
-
clearAction,
|
|
85
|
-
];
|
|
48
|
+
const { handleReplace, handleDownload, handleDelete } = useMediaHandlers({
|
|
49
|
+
value: data ?? null,
|
|
50
|
+
callMedia,
|
|
51
|
+
downloadMedia,
|
|
52
|
+
onChange: (next) => {
|
|
53
|
+
if (next === null) {
|
|
54
|
+
onClear();
|
|
55
|
+
} else {
|
|
56
|
+
onChange(next);
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
});
|
|
86
60
|
|
|
87
|
-
|
|
61
|
+
const actionsMenuProps = useMemo(
|
|
62
|
+
() => ({
|
|
88
63
|
dataHook: 'fromAudioInput.moreActionsMenu',
|
|
89
|
-
actions
|
|
64
|
+
actions: buildAudioActions({
|
|
65
|
+
labels: {
|
|
66
|
+
replace: t('CMS.audio.button.replace'),
|
|
67
|
+
download: t('CMS.audio.button.download'),
|
|
68
|
+
delete: t('CMS.audio.button.delete'),
|
|
69
|
+
},
|
|
70
|
+
dataHooks: {
|
|
71
|
+
replace: 'fromAudioInput.button.replace',
|
|
72
|
+
download: 'fromAudioInput.button.download',
|
|
73
|
+
delete: 'fromAudioInput.button.delete',
|
|
74
|
+
},
|
|
75
|
+
onReplace: handleReplace,
|
|
76
|
+
onDownload: handleDownload,
|
|
77
|
+
onDelete: handleDelete,
|
|
78
|
+
readOnly,
|
|
79
|
+
}),
|
|
90
80
|
zIndex: Z_INDEX_MODAL_POPOVER,
|
|
91
|
-
}
|
|
92
|
-
|
|
81
|
+
}),
|
|
82
|
+
[t, readOnly, handleReplace, handleDownload, handleDelete],
|
|
83
|
+
);
|
|
93
84
|
|
|
94
85
|
if (loading) {
|
|
95
86
|
return <MediaLoader borderStyle="dashed" className={classes.addItem} />;
|