@blokkli/editor 1.4.0-alpha.1 → 2.0.0-alpha.2
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/module.d.mts +12 -194
- package/dist/module.json +4 -4
- package/dist/module.mjs +1847 -1306
- package/dist/modules/drupal/adapter/index.d.mts +6 -0
- package/dist/modules/drupal/adapter/index.mjs +762 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +44 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutatedField.graphql +11 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutationItem.graphql +9 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutationResult.graphql +7 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliViolation.graphql +7 -0
- package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +96 -0
- package/dist/modules/drupal/graphql/base/query.pbEditState.graphql +15 -0
- package/dist/modules/drupal/graphql/features/conversions.graphql +44 -0
- package/dist/modules/drupal/graphql/features/import-existing.graphql +34 -0
- package/dist/{runtime/adapter/drupal/graphql → modules/drupal/graphql/features}/library.graphql +17 -0
- package/dist/modules/drupal/graphql/features/media-library.graphql +28 -0
- package/dist/modules/drupal/graphql/features/preview-grant.graphql +13 -0
- package/dist/modules/drupal/graphql/features/publish.graphql +15 -0
- package/dist/modules/drupal/graphql/features/publishNew.graphql +59 -0
- package/dist/modules/drupal/graphql/mutations/add.graphql +25 -0
- package/dist/modules/drupal/graphql/mutations/add_clipboard_text.graphql +25 -0
- package/dist/modules/drupal/graphql/mutations/add_entity_reference.graphql +31 -0
- package/dist/modules/drupal/graphql/mutations/add_entity_reference_multiple.graphql +25 -0
- package/dist/modules/drupal/graphql/mutations/add_file.graphql +27 -0
- package/dist/modules/drupal/graphql/mutations/add_image.graphql +27 -0
- package/dist/modules/drupal/graphql/mutations/add_video_remote.graphql +25 -0
- package/dist/modules/drupal/graphql/mutations/bulk_update_behavior_settings.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/duplicate.graphql +33 -0
- package/dist/modules/drupal/graphql/mutations/move.graphql +25 -0
- package/dist/modules/drupal/graphql/mutations/move_multiple.graphql +25 -0
- package/dist/modules/drupal/graphql/mutations/redo.graphql +14 -0
- package/dist/modules/drupal/graphql/mutations/remove.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/remove_multiple.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/replace_host_entity_media.graphql +20 -0
- package/dist/modules/drupal/graphql/mutations/replace_media.graphql +22 -0
- package/dist/modules/drupal/graphql/mutations/revertAllChanges.graphql +14 -0
- package/dist/modules/drupal/graphql/mutations/setHistoryIndex.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/setMutationStatus.graphql +16 -0
- package/dist/modules/drupal/graphql/mutations/takeOwnership.graphql +14 -0
- package/dist/modules/drupal/graphql/mutations/undo.graphql +14 -0
- package/dist/modules/drupal/graphql/mutations/update_behavior_setting.graphql +23 -0
- package/dist/modules/drupal/graphql/mutations/update_field_value.graphql +22 -0
- package/dist/modules/drupal/graphql/mutations/update_host_entity_field_value.graphql +20 -0
- package/dist/modules/drupal/index.d.mts +10 -0
- package/dist/modules/drupal/index.mjs +170 -0
- package/dist/runtime/adapter/index.d.ts +30 -4
- package/dist/runtime/blokkliPlugins/AddAction/index.vue +39 -54
- package/dist/runtime/blokkliPlugins/AddAction/index.vue.d.ts +26 -0
- package/dist/runtime/blokkliPlugins/ContextMenu/Menu/index.vue +38 -64
- package/dist/runtime/blokkliPlugins/ContextMenu/Menu/index.vue.d.ts +12 -0
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +19 -30
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue.d.ts +37 -0
- package/dist/runtime/blokkliPlugins/DebugOverlay/index.vue +15 -23
- package/dist/runtime/blokkliPlugins/DebugOverlay/index.vue.d.ts +21 -0
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +28 -45
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue.d.ts +41 -0
- package/dist/runtime/blokkliPlugins/ItemAction/index.vue +39 -85
- package/dist/runtime/blokkliPlugins/ItemAction/index.vue.d.ts +83 -0
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +22 -26
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +17 -0
- package/dist/runtime/blokkliPlugins/MenuButton/index.vue +30 -38
- package/dist/runtime/blokkliPlugins/MenuButton/index.vue.d.ts +32 -0
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +146 -211
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue.d.ts +91 -0
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue +95 -139
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +85 -0
- package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue +38 -57
- package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue.d.ts +48 -0
- package/dist/runtime/blokkliPlugins/TourItem/index.vue +20 -29
- package/dist/runtime/blokkliPlugins/TourItem/index.vue.d.ts +20 -0
- package/dist/runtime/blokkliPlugins/ViewOption/index.vue +45 -59
- package/dist/runtime/blokkliPlugins/ViewOption/index.vue.d.ts +39 -0
- package/dist/runtime/components/Blocks/Fragment/index.vue +13 -20
- package/dist/runtime/components/Blocks/Fragment/index.vue.d.ts +6 -0
- package/dist/runtime/components/Blocks/FromLibrary/index.vue +19 -29
- package/dist/runtime/components/Blocks/FromLibrary/index.vue.d.ts +6 -0
- package/dist/runtime/components/BlokkliEditable.vue +30 -49
- package/dist/runtime/components/BlokkliEditable.vue.d.ts +20 -0
- package/dist/runtime/components/BlokkliField.vue +101 -159
- package/dist/runtime/components/BlokkliField.vue.d.ts +49 -0
- package/dist/runtime/components/BlokkliItem.vue +43 -66
- package/dist/runtime/components/BlokkliItem.vue.d.ts +26 -0
- package/dist/runtime/components/BlokkliProvider.vue +51 -87
- package/dist/runtime/components/BlokkliProvider.vue.d.ts +34 -0
- package/dist/runtime/components/Edit/Actions/index.vue +116 -164
- package/dist/runtime/components/Edit/Actions/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/AddListItem/index.vue +45 -66
- package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +28 -0
- package/dist/runtime/components/Edit/AnimationCanvas/index.vue +52 -88
- package/dist/runtime/components/Edit/AnimationCanvas/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/AppMenu/index.vue +12 -15
- package/dist/runtime/components/Edit/AppMenu/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/BlockProxy/index.vue +48 -82
- package/dist/runtime/components/Edit/BlockProxy/index.vue.d.ts +10 -0
- package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue +17 -21
- package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue.d.ts +23 -0
- package/dist/runtime/components/Edit/Dialog/index.vue +67 -103
- package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +44 -0
- package/dist/runtime/components/Edit/DragInteractions/index.vue +219 -333
- package/dist/runtime/components/Edit/DragInteractions/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/DraggableList.vue +82 -125
- package/dist/runtime/components/Edit/DraggableList.vue.d.ts +27 -0
- package/dist/runtime/components/Edit/EditIndicator.vue +34 -46
- package/dist/runtime/components/Edit/EditIndicator.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/EditProvider.vue +146 -142
- package/dist/runtime/components/Edit/EditProvider.vue.d.ts +26 -0
- package/dist/runtime/components/Edit/Features/AddList/index.vue +90 -117
- package/dist/runtime/components/Edit/Features/AddList/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue +43 -63
- package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Artboard/Scrollbar/index.vue +18 -23
- package/dist/runtime/components/Edit/Features/Artboard/Scrollbar/index.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Artboard/index.vue +174 -223
- package/dist/runtime/components/Edit/Features/Artboard/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Assistant/Overlay/ResultMarkup/index.vue +7 -7
- package/dist/runtime/components/Edit/Features/Assistant/Overlay/ResultMarkup/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Assistant/Overlay/index.vue +41 -54
- package/dist/runtime/components/Edit/Features/Assistant/Overlay/index.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Assistant/index.vue +31 -40
- package/dist/runtime/components/Edit/Features/Assistant/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/BlockAddList/index.vue +225 -326
- package/dist/runtime/components/Edit/Features/BlockAddList/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Clipboard/List/Item/File.vue +36 -44
- package/dist/runtime/components/Edit/Features/Clipboard/List/Item/File.vue.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/Clipboard/List/Item/Video.vue +33 -35
- package/dist/runtime/components/Edit/Features/Clipboard/List/Item/Video.vue.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/Clipboard/List/index.vue +13 -21
- package/dist/runtime/components/Edit/Features/Clipboard/List/index.vue.d.ts +10 -0
- package/dist/runtime/components/Edit/Features/Clipboard/index.vue +227 -298
- package/dist/runtime/components/Edit/Features/Clipboard/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue +24 -34
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue.d.ts +22 -0
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +146 -195
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +21 -26
- package/dist/runtime/components/Edit/Features/CommandPalette/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Comments/AddForm/index.vue +11 -14
- package/dist/runtime/components/Edit/Features/Comments/AddForm/index.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Comments/Comment/index.vue +21 -29
- package/dist/runtime/components/Edit/Features/Comments/Comment/index.vue.d.ts +23 -0
- package/dist/runtime/components/Edit/Features/Comments/Overlay/Item/index.vue +31 -43
- package/dist/runtime/components/Edit/Features/Comments/Overlay/Item/index.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/Features/Comments/Overlay/index.vue +70 -100
- package/dist/runtime/components/Edit/Features/Comments/Overlay/index.vue.d.ts +18 -0
- package/dist/runtime/components/Edit/Features/Comments/index.vue +37 -48
- package/dist/runtime/components/Edit/Features/Comments/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Conversions/index.vue +40 -56
- package/dist/runtime/components/Edit/Features/Conversions/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/Rects/index.vue +37 -50
- package/dist/runtime/components/Edit/Features/Debug/Rects/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/Viewport/index.vue +35 -44
- package/dist/runtime/components/Edit/Features/Debug/Viewport/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/index.vue +43 -57
- package/dist/runtime/components/Edit/Features/Debug/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Delete/index.vue +31 -52
- package/dist/runtime/components/Edit/Features/Delete/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Diff/DiffView/index.vue +75 -114
- package/dist/runtime/components/Edit/Features/Diff/DiffView/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Diff/index.vue +17 -19
- package/dist/runtime/components/Edit/Features/Diff/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +193 -337
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue.d.ts +27 -0
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +1 -1
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +391 -644
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue.d.ts +156 -0
- package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +197 -323
- package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Duplicate/index.vue +49 -71
- package/dist/runtime/components/Edit/Features/Duplicate/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Edit/index.vue +41 -71
- package/dist/runtime/components/Edit/Features/Edit/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/EditForm/Frame/index.vue +35 -51
- package/dist/runtime/components/Edit/Features/EditForm/Frame/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/Features/EditForm/index.vue +104 -140
- package/dist/runtime/components/Edit/Features/EditForm/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Contenteditable/index.vue +18 -25
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Contenteditable/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Frame/index.vue +34 -50
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Frame/index.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Plaintext/index.vue +40 -51
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Plaintext/index.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/index.vue +147 -209
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/Features/EditableField/index.vue +90 -143
- package/dist/runtime/components/Edit/Features/EditableField/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/EditableMask/index.vue +28 -36
- package/dist/runtime/components/Edit/Features/EditableMask/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/EntityTitle/index.vue +49 -58
- package/dist/runtime/components/Edit/Features/EntityTitle/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Exit/index.vue +16 -20
- package/dist/runtime/components/Edit/Features/Exit/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/FieldAreas/Overlay/index.vue +4 -15
- package/dist/runtime/components/Edit/Features/FieldAreas/Overlay/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/FieldAreas/index.vue +19 -21
- package/dist/runtime/components/Edit/Features/FieldAreas/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Fragments/Dialog/Item/index.vue +28 -35
- package/dist/runtime/components/Edit/Features/Fragments/Dialog/Item/index.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Fragments/Dialog/index.vue +51 -74
- package/dist/runtime/components/Edit/Features/Fragments/Dialog/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Fragments/index.vue +41 -51
- package/dist/runtime/components/Edit/Features/Fragments/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Grid/index.vue +17 -20
- package/dist/runtime/components/Edit/Features/Grid/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Help/Shortcuts/index.vue +24 -35
- package/dist/runtime/components/Edit/Features/Help/Shortcuts/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Help/index.vue +19 -23
- package/dist/runtime/components/Edit/Features/Help/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/History/List/index.vue +49 -70
- package/dist/runtime/components/Edit/Features/History/List/index.vue.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/History/index.vue +54 -69
- package/dist/runtime/components/Edit/Features/History/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +48 -66
- package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +38 -54
- package/dist/runtime/components/Edit/Features/ImportExisting/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Library/EditReusable/index.vue +90 -128
- package/dist/runtime/components/Edit/Features/Library/EditReusable/index.vue.d.ts +13 -0
- package/dist/runtime/components/Edit/Features/Library/LibraryDialog/Item/index.vue +29 -38
- package/dist/runtime/components/Edit/Features/Library/LibraryDialog/Item/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Library/LibraryDialog/index.vue +68 -93
- package/dist/runtime/components/Edit/Features/Library/LibraryDialog/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Library/ReusableDialog/index.vue +39 -49
- package/dist/runtime/components/Edit/Features/Library/ReusableDialog/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Library/index.vue +85 -117
- package/dist/runtime/components/Edit/Features/Library/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/Item.vue +13 -19
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/Item.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +76 -112
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/MediaLibrary/index.vue +107 -140
- package/dist/runtime/components/Edit/Features/MediaLibrary/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/index.vue +128 -188
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +42 -57
- package/dist/runtime/components/Edit/Features/MultiSelect/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +27 -34
- package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Checkboxes/index.vue +55 -75
- package/dist/runtime/components/Edit/Features/Options/Form/Checkboxes/index.vue.d.ts +24 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Color/index.vue +18 -21
- package/dist/runtime/components/Edit/Features/Options/Form/Color/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Options/Form/DateTimeLocal/index.vue +36 -0
- package/dist/runtime/components/Edit/Features/Options/Form/DateTimeLocal/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Group.vue +7 -9
- package/dist/runtime/components/Edit/Features/Options/Form/Group.vue.d.ts +29 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +87 -93
- package/dist/runtime/components/Edit/Features/Options/Form/Item.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Number/index.vue +31 -45
- package/dist/runtime/components/Edit/Features/Options/Form/Number/index.vue.d.ts +21 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +55 -79
- package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue.d.ts +30 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Range/index.vue +23 -33
- package/dist/runtime/components/Edit/Features/Options/Form/Range/index.vue.d.ts +18 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Text/index.vue +17 -26
- package/dist/runtime/components/Edit/Features/Options/Form/Text/index.vue.d.ts +17 -0
- package/dist/runtime/components/Edit/Features/Options/Form/index.vue +178 -272
- package/dist/runtime/components/Edit/Features/Options/Form/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Options/index.vue +38 -69
- package/dist/runtime/components/Edit/Features/Options/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Ownership/index.vue +27 -34
- package/dist/runtime/components/Edit/Features/Ownership/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Preview/index.vue +22 -27
- package/dist/runtime/components/Edit/Features/Preview/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/PreviewGrant/QrCode/index.vue +12 -16
- package/dist/runtime/components/Edit/Features/PreviewGrant/QrCode/index.vue.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +31 -36
- package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/ProxyView/index.vue +18 -20
- package/dist/runtime/components/Edit/Features/ProxyView/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue +118 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue.d.ts +18 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +251 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/types.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Publish/index.vue +70 -74
- package/dist/runtime/components/Edit/Features/Publish/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/ResponsivePreview/Frame/index.vue +48 -54
- package/dist/runtime/components/Edit/Features/ResponsivePreview/Frame/index.vue.d.ts +27 -0
- package/dist/runtime/components/Edit/Features/ResponsivePreview/index.vue +77 -103
- package/dist/runtime/components/Edit/Features/ResponsivePreview/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Revert/index.vue +27 -32
- package/dist/runtime/components/Edit/Features/Revert/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Content/index.vue +67 -88
- package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Content/index.vue.d.ts +17 -0
- package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Page/index.vue +89 -139
- package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Page/index.vue.d.ts +18 -0
- package/dist/runtime/components/Edit/Features/Search/Overlay/index.vue +79 -108
- package/dist/runtime/components/Edit/Features/Search/Overlay/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Search/index.vue +30 -37
- package/dist/runtime/components/Edit/Features/Search/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +67 -103
- package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Selection/OverlayFallback/index.vue +28 -36
- package/dist/runtime/components/Edit/Features/Selection/OverlayFallback/index.vue.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/Selection/index.vue +131 -217
- package/dist/runtime/components/Edit/Features/Selection/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Settings/Dialog/FeatureSetting/index.vue +50 -81
- package/dist/runtime/components/Edit/Features/Settings/Dialog/FeatureSetting/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Settings/Dialog/index.vue +73 -117
- package/dist/runtime/components/Edit/Features/Settings/Dialog/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Settings/index.vue +41 -53
- package/dist/runtime/components/Edit/Features/Settings/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Structure/List/Field/index.vue +65 -101
- package/dist/runtime/components/Edit/Features/Structure/List/Field/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/Features/Structure/List/Item/index.vue +71 -99
- package/dist/runtime/components/Edit/Features/Structure/List/Item/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Structure/List/index.vue +17 -26
- package/dist/runtime/components/Edit/Features/Structure/List/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Structure/index.vue +31 -40
- package/dist/runtime/components/Edit/Features/Structure/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Theme/Color/index.vue +32 -53
- package/dist/runtime/components/Edit/Features/Theme/Color/index.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Theme/GeneratedCode/index.vue +7 -10
- package/dist/runtime/components/Edit/Features/Theme/GeneratedCode/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Theme/index.vue +49 -63
- package/dist/runtime/components/Edit/Features/Theme/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/TouchActionBar/Bar/index.vue +9 -10
- package/dist/runtime/components/Edit/Features/TouchActionBar/Bar/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +16 -19
- package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Tour/Overlay/index.vue +119 -174
- package/dist/runtime/components/Edit/Features/Tour/Overlay/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Tour/Popup/index.vue +10 -12
- package/dist/runtime/components/Edit/Features/Tour/Popup/index.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Tour/index.vue +21 -25
- package/dist/runtime/components/Edit/Features/Tour/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Transform/index.vue +80 -120
- package/dist/runtime/components/Edit/Features/Transform/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Translations/Banner/index.vue +21 -29
- package/dist/runtime/components/Edit/Features/Translations/Banner/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Translations/index.vue +96 -139
- package/dist/runtime/components/Edit/Features/Translations/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Validations/Overlay/Item.vue +21 -35
- package/dist/runtime/components/Edit/Features/Validations/Overlay/Item.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Validations/Overlay/index.vue +30 -39
- package/dist/runtime/components/Edit/Features/Validations/Overlay/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Validations/SidebarItem/index.vue +20 -28
- package/dist/runtime/components/Edit/Features/Validations/SidebarItem/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Validations/index.vue +27 -33
- package/dist/runtime/components/Edit/Features/Validations/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/index.vue +33 -52
- package/dist/runtime/components/Edit/Features/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Form/Group/index.vue +23 -0
- package/dist/runtime/components/Edit/Form/Group/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Form/Item/index.vue +5 -0
- package/dist/runtime/components/Edit/Form/Item/index.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/Form/Textarea/index.vue +27 -0
- package/dist/runtime/components/Edit/Form/Textarea/index.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/Form/Toggle/index.vue +21 -0
- package/dist/runtime/components/Edit/Form/Toggle/index.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/FormOverlay/Header/index.vue +11 -22
- package/dist/runtime/components/Edit/FormOverlay/Header/index.vue.d.ts +18 -0
- package/dist/runtime/components/Edit/FormOverlay/index.vue +15 -21
- package/dist/runtime/components/Edit/FormOverlay/index.vue.d.ts +25 -0
- package/dist/runtime/components/Edit/Highlight/index.vue +31 -70
- package/dist/runtime/components/Edit/Highlight/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Icon/index.vue +11 -14
- package/dist/runtime/components/Edit/Icon/index.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/InfoBox/index.vue +5 -6
- package/dist/runtime/components/Edit/InfoBox/index.vue.d.ts +5 -0
- package/dist/runtime/components/Edit/ItemIcon/index.vue +13 -13
- package/dist/runtime/components/Edit/ItemIcon/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Loading/index.vue +8 -9
- package/dist/runtime/components/Edit/Loading/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Messages/Item/index.vue +30 -41
- package/dist/runtime/components/Edit/Messages/Item/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/Messages/index.vue +13 -17
- package/dist/runtime/components/Edit/Messages/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Pagination/index.vue +6 -8
- package/dist/runtime/components/Edit/Pagination/index.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/PreviewProvider.vue +124 -177
- package/dist/runtime/components/Edit/PreviewProvider.vue.d.ts +24 -0
- package/dist/runtime/components/Edit/RelativeTime/index.vue +19 -25
- package/dist/runtime/components/Edit/RelativeTime/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/Resizable/index.vue +45 -55
- package/dist/runtime/components/Edit/Resizable/index.vue.d.ts +13 -0
- package/dist/runtime/components/Edit/ScaleToFit/index.vue +44 -62
- package/dist/runtime/components/Edit/ScaleToFit/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/ScrollBoundary/index.vue +11 -27
- package/dist/runtime/components/Edit/ScrollBoundary/index.vue.d.ts +23 -0
- package/dist/runtime/components/Edit/ShortcutIndicator/index.vue +47 -59
- package/dist/runtime/components/Edit/ShortcutIndicator/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Sortli/index.vue +45 -59
- package/dist/runtime/components/Edit/Sortli/index.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/SystemRequirements/index.vue +29 -43
- package/dist/runtime/components/Edit/SystemRequirements/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Toolbar/index.vue +26 -41
- package/dist/runtime/components/Edit/Toolbar/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue +29 -51
- package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/index.d.ts +5 -1
- package/dist/runtime/components/Edit/index.js +9 -1
- package/dist/runtime/composables/defineBlokkli.d.ts +2 -2
- package/dist/runtime/composables/defineBlokkli.js +29 -11
- package/dist/runtime/composables/defineBlokkliFragment.d.ts +1 -1
- package/dist/runtime/composables/defineBlokkliFragment.js +16 -24
- package/dist/runtime/css/output.css +1 -1
- package/dist/runtime/helpers/definitionProvider.d.ts +18 -0
- package/dist/runtime/helpers/definitionProvider.js +96 -0
- package/dist/runtime/helpers/domProvider.d.ts +2 -1
- package/dist/runtime/helpers/domProvider.js +6 -3
- package/dist/runtime/helpers/editComponents/index.d.ts +2 -0
- package/dist/runtime/helpers/editComponents/index.js +10 -0
- package/dist/runtime/helpers/featuresProvider.d.ts +2 -1
- package/dist/runtime/helpers/featuresProvider.js +19 -10
- package/dist/runtime/helpers/frameEventBus.d.ts +1 -1
- package/dist/runtime/helpers/imports/index.d.ts +1 -0
- package/dist/runtime/helpers/imports/index.js +44 -0
- package/dist/runtime/helpers/index.js +5 -8
- package/dist/runtime/helpers/runtimeHelpers/index.d.ts +5 -0
- package/dist/runtime/helpers/runtimeHelpers/index.js +17 -4
- package/dist/runtime/helpers/stateProvider.d.ts +1 -1
- package/dist/runtime/helpers/textProvider.d.ts +1 -1
- package/dist/runtime/helpers/themeProvider.js +4 -1
- package/dist/runtime/helpers/transform.d.ts +1 -1
- package/dist/runtime/helpers/typesProvider.d.ts +2 -2
- package/dist/runtime/helpers/uiProvider.js +4 -5
- package/dist/runtime/helpers/webgl/index.js +1 -1
- package/dist/runtime/icons/arrow-right-thin.svg +3 -0
- package/dist/runtime/public/_blokkli-assets/check.svg +6 -0
- package/dist/runtime/public/_blokkli-assets/loader.svg +1 -0
- package/dist/runtime/types/blokkOptions.d.ts +11 -2
- package/dist/runtime/types/index.d.ts +34 -14
- package/dist/shared/editor.gz_ac6uT.d.mts +431 -0
- package/dist/types.d.mts +1 -1
- package/package.json +30 -25
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -198
- package/dist/runtime/adapter/drupal/graphql/base.graphql +0 -944
- package/dist/runtime/adapter/drupal/graphqlMiddleware.d.ts +0 -2
- package/dist/runtime/adapter/drupal/graphqlMiddleware.js +0 -680
- package/dist/runtime/types/generatedModuleTypes.d.ts +0 -49
- package/dist/types.d.ts +0 -1
- /package/dist/{runtime/adapter/drupal/graphql → modules/drupal/graphql/features}/comments.graphql +0 -0
- /package/dist/{runtime/adapter/drupal/graphql → modules/drupal/graphql/features}/fragments.graphql +0 -0
- /package/dist/{runtime/adapter/drupal/graphql → modules/drupal/graphql/features}/search.graphql +0 -0
- /package/dist/{runtime/adapter/drupal/graphql → modules/drupal/graphql/features}/transform.graphql +0 -0
- /package/dist/runtime/{types/generatedModuleTypes.js → components/Edit/Features/Publish/Dialog/types.js} +0 -0
- /package/dist/runtime/public/{Inter.var.woff2 → _blokkli-assets/Inter.var.woff2} +0 -0
|
@@ -1,680 +0,0 @@
|
|
|
1
|
-
import { defineBlokkliEditAdapter } from "#blokkli/adapter";
|
|
2
|
-
import { falsy } from "#blokkli/helpers";
|
|
3
|
-
import {
|
|
4
|
-
useGraphqlQuery,
|
|
5
|
-
useGraphqlMutation,
|
|
6
|
-
computed,
|
|
7
|
-
useRoute,
|
|
8
|
-
useRouter
|
|
9
|
-
} from "#imports";
|
|
10
|
-
import {
|
|
11
|
-
ParagraphsBlokkliRemoteVideoProvider
|
|
12
|
-
} from "#graphql-operations";
|
|
13
|
-
export default defineBlokkliEditAdapter(
|
|
14
|
-
async (providedContext) => {
|
|
15
|
-
const ctx = computed(() => {
|
|
16
|
-
return {
|
|
17
|
-
entityType: providedContext.value.entityType.toUpperCase(),
|
|
18
|
-
entityBundle: providedContext.value.entityBundle,
|
|
19
|
-
entityUuid: providedContext.value.entityUuid,
|
|
20
|
-
langcode: providedContext.value.language
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
const config = await useGraphqlQuery("pbConfig", {
|
|
24
|
-
entityType: providedContext.value.entityType,
|
|
25
|
-
entityBundle: providedContext.value.entityBundle
|
|
26
|
-
}).then((v) => {
|
|
27
|
-
return {
|
|
28
|
-
clipboard: v.data.clipboards || [],
|
|
29
|
-
availableFeatures: v.data.features,
|
|
30
|
-
allTypes: (v.data.allTypes.items || []).filter(
|
|
31
|
-
(v2) => v2 && "icon" in v2
|
|
32
|
-
),
|
|
33
|
-
fieldConfig: v.data.fieldConfig || [],
|
|
34
|
-
editableFieldConfig: v.data.editableFieldConfig || [],
|
|
35
|
-
droppableFieldConfig: v.data.droppableFieldConfig || [],
|
|
36
|
-
urlPrefixes: v.data.urlPrefixes.reduce(
|
|
37
|
-
(acc, item) => {
|
|
38
|
-
acc[item.langcode] = item.prefix;
|
|
39
|
-
return acc;
|
|
40
|
-
},
|
|
41
|
-
{}
|
|
42
|
-
)
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
const getImportItems = (searchText) => useGraphqlQuery("pbGetImportSourceEntities", {
|
|
46
|
-
entityType: ctx.value.entityType.toLowerCase(),
|
|
47
|
-
entityUuid: ctx.value.entityUuid,
|
|
48
|
-
searchText
|
|
49
|
-
}).then((data) => {
|
|
50
|
-
return {
|
|
51
|
-
total: data?.data.pbGetImportSourceEntities?.total || 0,
|
|
52
|
-
items: (data?.data.pbGetImportSourceEntities?.items || []).map(
|
|
53
|
-
(item) => {
|
|
54
|
-
return {
|
|
55
|
-
uuid: item.uuid,
|
|
56
|
-
label: item.label || item.uuid
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
};
|
|
61
|
-
});
|
|
62
|
-
const getConversions = () => useGraphqlQuery("pbConversions").then(
|
|
63
|
-
(v) => v?.data.paragraphsBlokkliConversions || []
|
|
64
|
-
);
|
|
65
|
-
const getAllBundles = () => {
|
|
66
|
-
return Promise.resolve(config.allTypes);
|
|
67
|
-
};
|
|
68
|
-
const loadState = async () => {
|
|
69
|
-
const state = await useGraphqlQuery("pbEditState", {
|
|
70
|
-
...ctx.value
|
|
71
|
-
}).then((v) => v?.data.state);
|
|
72
|
-
if (!state) {
|
|
73
|
-
throw new Error("Failed to load state.");
|
|
74
|
-
}
|
|
75
|
-
return state;
|
|
76
|
-
};
|
|
77
|
-
const loadStateAtIndex = (historyIndex) => useGraphqlQuery("pbEditState", {
|
|
78
|
-
...ctx.value,
|
|
79
|
-
historyIndex
|
|
80
|
-
}).then((v) => v?.data.state);
|
|
81
|
-
const getDisabledFeatures = () => {
|
|
82
|
-
const features = config.availableFeatures;
|
|
83
|
-
const disabled = [];
|
|
84
|
-
const mutations = features?.mutations || [];
|
|
85
|
-
if (!features?.comment) {
|
|
86
|
-
disabled.push("Comments");
|
|
87
|
-
}
|
|
88
|
-
if (!features?.conversion) {
|
|
89
|
-
disabled.push("Conversions");
|
|
90
|
-
}
|
|
91
|
-
if (!features?.library) {
|
|
92
|
-
disabled.push("Library");
|
|
93
|
-
}
|
|
94
|
-
if (!mutations.includes("duplicate")) {
|
|
95
|
-
disabled.push("Duplicate");
|
|
96
|
-
}
|
|
97
|
-
return Promise.resolve(disabled);
|
|
98
|
-
};
|
|
99
|
-
const mapMutation = (v) => v.data?.state?.action;
|
|
100
|
-
const takeOwnership = () => useGraphqlMutation("pbTakeOwnership", ctx.value).then(mapMutation);
|
|
101
|
-
const setHistoryIndex = (index) => useGraphqlMutation("pbSetHistoryIndex", {
|
|
102
|
-
...ctx.value,
|
|
103
|
-
index
|
|
104
|
-
}).then(mapMutation);
|
|
105
|
-
const setMutationItemStatus = (index, status) => useGraphqlMutation("pbSetMutationItemStatus", {
|
|
106
|
-
...ctx.value,
|
|
107
|
-
index,
|
|
108
|
-
status
|
|
109
|
-
}).then(mapMutation);
|
|
110
|
-
const publish = (options) => useGraphqlMutation("pbPublish", {
|
|
111
|
-
...ctx.value,
|
|
112
|
-
createNewState: !options.closeAfterPublish
|
|
113
|
-
}).then(mapMutation);
|
|
114
|
-
const importFromExisting = (e) => useGraphqlMutation("pbCopyFromExisting", {
|
|
115
|
-
...ctx.value,
|
|
116
|
-
sourceUuid: e.sourceUuid,
|
|
117
|
-
fields: e.sourceFields
|
|
118
|
-
}).then(mapMutation);
|
|
119
|
-
const revertAllChanges = () => useGraphqlMutation("pbRevertAllChanges", ctx.value).then(mapMutation);
|
|
120
|
-
const makeBlockReusable = (e) => useGraphqlMutation("pbMakeParagraphReusable", {
|
|
121
|
-
...ctx.value,
|
|
122
|
-
...e
|
|
123
|
-
}).then(mapMutation);
|
|
124
|
-
const duplicateBlocks = (uuids) => {
|
|
125
|
-
if (uuids.length === 1) {
|
|
126
|
-
return useGraphqlMutation("pbDuplicateParagraph", {
|
|
127
|
-
...ctx.value,
|
|
128
|
-
uuid: uuids[0]
|
|
129
|
-
}).then(mapMutation);
|
|
130
|
-
}
|
|
131
|
-
return useGraphqlMutation("pbDuplicateMultipleParagraphs", {
|
|
132
|
-
...ctx.value,
|
|
133
|
-
uuids
|
|
134
|
-
}).then(mapMutation);
|
|
135
|
-
};
|
|
136
|
-
const pasteExistingBlocks = (e) => {
|
|
137
|
-
return useGraphqlMutation("pbDuplicateMultipleParagraphs", {
|
|
138
|
-
...ctx.value,
|
|
139
|
-
uuids: e.uuids,
|
|
140
|
-
afterUuid: e.preceedingUuid
|
|
141
|
-
}).then(mapMutation);
|
|
142
|
-
};
|
|
143
|
-
const detachReusableBlock = (e) => {
|
|
144
|
-
return useGraphqlMutation("pbDetachReusableParagraph", {
|
|
145
|
-
...ctx.value,
|
|
146
|
-
uuids: e.uuids
|
|
147
|
-
}).then(mapMutation);
|
|
148
|
-
};
|
|
149
|
-
const convertBlocks = (uuids, targetBundle) => {
|
|
150
|
-
if (uuids.length === 1) {
|
|
151
|
-
return useGraphqlMutation("pbConvertParagraph", {
|
|
152
|
-
...ctx.value,
|
|
153
|
-
uuid: uuids[0],
|
|
154
|
-
targetBundle
|
|
155
|
-
}).then(mapMutation);
|
|
156
|
-
}
|
|
157
|
-
return useGraphqlMutation("pbConvertMultiple", {
|
|
158
|
-
...ctx.value,
|
|
159
|
-
uuids,
|
|
160
|
-
targetBundle
|
|
161
|
-
}).then(mapMutation);
|
|
162
|
-
};
|
|
163
|
-
const deleteBlocks = (uuids) => useGraphqlMutation("pbDeleteMultipleParagraphs", {
|
|
164
|
-
...ctx.value,
|
|
165
|
-
uuids
|
|
166
|
-
}).then(mapMutation);
|
|
167
|
-
const addLibraryItem = (e) => useGraphqlMutation("pbAddReusableParagraph", {
|
|
168
|
-
...ctx.value,
|
|
169
|
-
libraryItemUuid: e.libraryItemUuid,
|
|
170
|
-
hostType: e.host.type,
|
|
171
|
-
hostUuid: e.host.uuid,
|
|
172
|
-
hostFieldName: e.host.fieldName,
|
|
173
|
-
afterUuid: e.afterUuid
|
|
174
|
-
}).then(mapMutation);
|
|
175
|
-
const moveMultipleBlocks = (e) => useGraphqlMutation("pbMoveMultipleItems", {
|
|
176
|
-
...ctx.value,
|
|
177
|
-
uuids: e.uuids,
|
|
178
|
-
hostType: e.host.type,
|
|
179
|
-
hostUuid: e.host.uuid,
|
|
180
|
-
hostFieldName: e.host.fieldName,
|
|
181
|
-
afterUuid: e.afterUuid
|
|
182
|
-
}).then(mapMutation);
|
|
183
|
-
const moveBlock = (e) => useGraphqlMutation("pbMoveParagraph", {
|
|
184
|
-
...ctx.value,
|
|
185
|
-
uuid: e.item.uuid,
|
|
186
|
-
hostType: e.host.type,
|
|
187
|
-
hostUuid: e.host.uuid,
|
|
188
|
-
hostFieldName: e.host.fieldName,
|
|
189
|
-
afterUuid: e.afterUuid
|
|
190
|
-
}).then(mapMutation);
|
|
191
|
-
const addNewBlock = (e) => useGraphqlMutation("pbAddParagraph", {
|
|
192
|
-
...ctx.value,
|
|
193
|
-
hostType: e.host.type,
|
|
194
|
-
hostFieldName: e.host.fieldName,
|
|
195
|
-
hostUuid: e.host.uuid,
|
|
196
|
-
afterUuid: e.afterUuid,
|
|
197
|
-
type: e.bundle
|
|
198
|
-
}).then(mapMutation);
|
|
199
|
-
const updateOptions = (options) => {
|
|
200
|
-
if (options.length === 1) {
|
|
201
|
-
return useGraphqlMutation("pbUpdateParagraphOption", {
|
|
202
|
-
...ctx.value,
|
|
203
|
-
uuid: options[0].uuid,
|
|
204
|
-
key: options[0].key,
|
|
205
|
-
value: options[0].value,
|
|
206
|
-
pluginId: "paragraphs_blokkli_data"
|
|
207
|
-
}).then(mapMutation);
|
|
208
|
-
}
|
|
209
|
-
const persistItems = options.map((v) => {
|
|
210
|
-
return {
|
|
211
|
-
uuid: v.uuid,
|
|
212
|
-
key: v.key,
|
|
213
|
-
value: v.value,
|
|
214
|
-
pluginId: "paragraphs_blokkli_data"
|
|
215
|
-
};
|
|
216
|
-
});
|
|
217
|
-
return useGraphqlMutation("pbBulkUpdateParagraphBehaviorSettings", {
|
|
218
|
-
...ctx.value,
|
|
219
|
-
items: persistItems
|
|
220
|
-
}).then(mapMutation);
|
|
221
|
-
};
|
|
222
|
-
const mapState = (state) => {
|
|
223
|
-
const currentIndex = state?.currentIndex === null || state?.currentIndex === void 0 ? -1 : state.currentIndex;
|
|
224
|
-
const mutations = state?.mutations || [];
|
|
225
|
-
const currentUserIsOwner = !!state?.currentUserIsOwner;
|
|
226
|
-
const ownerName = state?.ownerName || "";
|
|
227
|
-
const fields = state?.mutatedState?.fields || [];
|
|
228
|
-
const violations = state.mutatedState?.violations || [];
|
|
229
|
-
const entity = state.entity;
|
|
230
|
-
const mutatedOptions = state.mutatedState?.mutatedOptions || {};
|
|
231
|
-
Object.keys(mutatedOptions).forEach((uuid) => {
|
|
232
|
-
mutatedOptions[uuid] = mutatedOptions[uuid]?.paragraphs_blokkli_data || {};
|
|
233
|
-
});
|
|
234
|
-
const translationState = {
|
|
235
|
-
isTranslatable: !!state.translationState?.isTranslatable,
|
|
236
|
-
sourceLanguage: state.translationState?.sourceLanguage || "",
|
|
237
|
-
availableLanguages: (state.translationState?.availableLanguages || []).map((language) => {
|
|
238
|
-
return {
|
|
239
|
-
id: language.id,
|
|
240
|
-
name: language.name
|
|
241
|
-
};
|
|
242
|
-
}),
|
|
243
|
-
translations: (state.translationState?.translations || []).map((v) => {
|
|
244
|
-
if (v.id && v.url && v.editUrl) {
|
|
245
|
-
return {
|
|
246
|
-
id: v.id,
|
|
247
|
-
url: v.url,
|
|
248
|
-
editUrl: v.editUrl,
|
|
249
|
-
exists: !!v.exists,
|
|
250
|
-
status: !!v.status
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
return null;
|
|
254
|
-
}).filter(falsy)
|
|
255
|
-
};
|
|
256
|
-
return {
|
|
257
|
-
currentIndex,
|
|
258
|
-
mutations,
|
|
259
|
-
currentUserIsOwner,
|
|
260
|
-
ownerName,
|
|
261
|
-
mutatedState: {
|
|
262
|
-
fields,
|
|
263
|
-
violations,
|
|
264
|
-
mutatedOptions
|
|
265
|
-
},
|
|
266
|
-
entity,
|
|
267
|
-
mutatedEntity: state.mutatedEntity,
|
|
268
|
-
translationState
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
const mapComments = (comments) => comments.map((item) => {
|
|
272
|
-
if ("uuid" in item) {
|
|
273
|
-
return {
|
|
274
|
-
uuid: item.uuid,
|
|
275
|
-
blockUuids: item.blockUuids || [],
|
|
276
|
-
resolved: !!item.resolved,
|
|
277
|
-
body: item.body || "",
|
|
278
|
-
created: item.created?.first?.value || "",
|
|
279
|
-
user: {
|
|
280
|
-
label: item.user?.label || ""
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
return null;
|
|
285
|
-
}).filter(falsy);
|
|
286
|
-
const loadComments = () => useGraphqlQuery("pbComments", ctx.value).then(
|
|
287
|
-
(v) => mapComments(v.data.state?.comments || [])
|
|
288
|
-
);
|
|
289
|
-
const addComment = (blockUuids, body) => useGraphqlMutation("pbAddComment", {
|
|
290
|
-
...ctx.value,
|
|
291
|
-
blockUuids,
|
|
292
|
-
body
|
|
293
|
-
}).then((v) => mapComments(v.data.state?.action || []));
|
|
294
|
-
const resolveComment = (uuid) => useGraphqlMutation("pbResolveComment", {
|
|
295
|
-
...ctx.value,
|
|
296
|
-
uuid
|
|
297
|
-
}).then((v) => mapComments(v.data.state?.action || []));
|
|
298
|
-
const getLibraryItems = (data) => {
|
|
299
|
-
return useGraphqlQuery("pbLibraryItems", {
|
|
300
|
-
bundles: data.bundles,
|
|
301
|
-
text: data.text,
|
|
302
|
-
page: data.page
|
|
303
|
-
}).then((response) => {
|
|
304
|
-
const items = response.data.result.items?.map((v) => {
|
|
305
|
-
if (v && "uuid" in v && v.uuid) {
|
|
306
|
-
const paragraph = v.paragraphs;
|
|
307
|
-
const bundle = paragraph?.bundle;
|
|
308
|
-
if (bundle && paragraph && paragraph.props && paragraph) {
|
|
309
|
-
return {
|
|
310
|
-
uuid: v.uuid,
|
|
311
|
-
label: v.label,
|
|
312
|
-
bundle,
|
|
313
|
-
item: paragraph
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
return null;
|
|
318
|
-
}).filter(falsy) || [];
|
|
319
|
-
return {
|
|
320
|
-
items,
|
|
321
|
-
perPage: response.data.result?.perPage || 16,
|
|
322
|
-
total: response.data.result?.total || 0
|
|
323
|
-
};
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
const getLastChanged = () => $fetch(
|
|
327
|
-
`/paragraphs_blokkli/${ctx.value.entityType}/${ctx.value.entityUuid}/last_changed`
|
|
328
|
-
).then((v) => v.changed);
|
|
329
|
-
const getPreviewGrantUrl = () => useGraphqlQuery("pbGetPreviewGrantUrl", ctx.value).then(
|
|
330
|
-
(v) => v.data.getParagraphsEditState?.previewUrl
|
|
331
|
-
);
|
|
332
|
-
const getTransformPlugins = () => useGraphqlQuery("pbGetTransformPlugins", ctx.value).then((v) => v.data.paragraphsBlokkliGetTransformPlugins || []).then(
|
|
333
|
-
(plugins) => plugins.map((plugin) => {
|
|
334
|
-
return {
|
|
335
|
-
id: plugin.id,
|
|
336
|
-
label: plugin.label,
|
|
337
|
-
bundles: plugin.bundles,
|
|
338
|
-
targetBundles: plugin.targetBundles,
|
|
339
|
-
min: plugin.min,
|
|
340
|
-
max: plugin.max
|
|
341
|
-
};
|
|
342
|
-
})
|
|
343
|
-
);
|
|
344
|
-
const applyTransformPlugin = (e) => useGraphqlMutation("pbApplyTransformPlugin", {
|
|
345
|
-
...ctx.value,
|
|
346
|
-
...e
|
|
347
|
-
}).then(mapMutation);
|
|
348
|
-
const buildFormUrl = (parts, langcode) => {
|
|
349
|
-
const prefix = config.urlPrefixes[langcode];
|
|
350
|
-
if (prefix === null || prefix === void 0) {
|
|
351
|
-
throw new Error("Failed to get URL prefix for langcode: " + langcode);
|
|
352
|
-
}
|
|
353
|
-
const url = typeof parts === "string" ? parts : "/" + parts.join("/");
|
|
354
|
-
return { url: prefix + url + `?paragraphsBlokkli=true` };
|
|
355
|
-
};
|
|
356
|
-
const getLibraryItemEditUrl = (uuid) => {
|
|
357
|
-
const url = buildFormUrl(
|
|
358
|
-
["blokkli", "library-item", uuid],
|
|
359
|
-
ctx.value.langcode
|
|
360
|
-
).url;
|
|
361
|
-
return `${url}&blokkliEditing=${uuid}&language=${ctx.value.langcode}`;
|
|
362
|
-
};
|
|
363
|
-
const formFrameBuilder = (e) => {
|
|
364
|
-
const entityType = ctx.value.entityType.toLowerCase();
|
|
365
|
-
if (e.id === "block:add") {
|
|
366
|
-
return buildFormUrl(
|
|
367
|
-
[
|
|
368
|
-
"paragraphs_blokkli",
|
|
369
|
-
entityType,
|
|
370
|
-
ctx.value.entityUuid,
|
|
371
|
-
"add",
|
|
372
|
-
e.data.bundle,
|
|
373
|
-
e.data.host.type,
|
|
374
|
-
e.data.host.uuid,
|
|
375
|
-
e.data.host.fieldName,
|
|
376
|
-
e.data.afterUuid
|
|
377
|
-
],
|
|
378
|
-
ctx.value.langcode
|
|
379
|
-
);
|
|
380
|
-
} else if (e.id === "block:edit") {
|
|
381
|
-
return buildFormUrl(
|
|
382
|
-
`/paragraphs_blokkli/${entityType}/${ctx.value.entityUuid}/edit/${e.data.uuid}`,
|
|
383
|
-
ctx.value.langcode
|
|
384
|
-
);
|
|
385
|
-
} else if (e.id === "block:translate") {
|
|
386
|
-
return buildFormUrl(
|
|
387
|
-
`/paragraphs_blokkli/${entityType}/${ctx.value.entityUuid}/edit/${e.data.uuid}`,
|
|
388
|
-
e.langcode
|
|
389
|
-
);
|
|
390
|
-
} else if (e.id === "entity:edit") {
|
|
391
|
-
return buildFormUrl(
|
|
392
|
-
`/paragraphs_blokkli/${entityType}/${ctx.value.entityUuid}/edit_entity/${ctx.value.langcode}`,
|
|
393
|
-
ctx.value.langcode
|
|
394
|
-
);
|
|
395
|
-
} else if (e.id === "entity:translate") {
|
|
396
|
-
return buildFormUrl(
|
|
397
|
-
`/paragraphs_blokkli/${entityType}/${ctx.value.entityUuid}/edit_entity/${e.translation.id}`,
|
|
398
|
-
e.translation.id
|
|
399
|
-
);
|
|
400
|
-
} else if (e.id === "batchTranslate") {
|
|
401
|
-
return buildFormUrl(
|
|
402
|
-
`/paragraphs_blokkli/${entityType}/${ctx.value.entityUuid}/translate-paragraphs`,
|
|
403
|
-
ctx.value.langcode
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
const getFieldConfig = () => {
|
|
408
|
-
return Promise.resolve(config.fieldConfig);
|
|
409
|
-
};
|
|
410
|
-
const getEditableFieldConfig = () => {
|
|
411
|
-
return Promise.resolve(config.editableFieldConfig);
|
|
412
|
-
};
|
|
413
|
-
const getDroppableFieldConfig = () => {
|
|
414
|
-
return Promise.resolve(config.droppableFieldConfig);
|
|
415
|
-
};
|
|
416
|
-
const updateFieldValue = (e) => useGraphqlMutation("pbUpdateFieldValue", {
|
|
417
|
-
...ctx.value,
|
|
418
|
-
uuid: e.uuid,
|
|
419
|
-
fieldName: e.fieldName,
|
|
420
|
-
value: e.fieldValue
|
|
421
|
-
}).then(mapMutation);
|
|
422
|
-
const buildEditableFrameUrl = (e) => {
|
|
423
|
-
const url = "/" + [
|
|
424
|
-
"paragraphs_blokkli",
|
|
425
|
-
ctx.value.entityType,
|
|
426
|
-
ctx.value.entityUuid,
|
|
427
|
-
"edit",
|
|
428
|
-
"rich_text",
|
|
429
|
-
e.fieldName,
|
|
430
|
-
e.uuid
|
|
431
|
-
].filter(falsy).join("/");
|
|
432
|
-
return buildFormUrl(url, ctx.value.langcode).url;
|
|
433
|
-
};
|
|
434
|
-
const fragmentsAddBlock = (e) => useGraphqlMutation("pbAddFragmentParagraph", {
|
|
435
|
-
...ctx.value,
|
|
436
|
-
hostType: e.host.type,
|
|
437
|
-
hostFieldName: e.host.fieldName,
|
|
438
|
-
hostUuid: e.host.uuid,
|
|
439
|
-
afterUuid: e.preceedingUuid,
|
|
440
|
-
name: e.name
|
|
441
|
-
}).then(mapMutation);
|
|
442
|
-
const mediaLibraryReplaceMedia = (e) => useGraphqlMutation("pbReplaceMedia", {
|
|
443
|
-
...ctx.value,
|
|
444
|
-
uuid: e.host.uuid,
|
|
445
|
-
fieldName: e.host.fieldName,
|
|
446
|
-
mediaId: e.mediaId
|
|
447
|
-
}).then(mapMutation);
|
|
448
|
-
const mediaLibraryReplaceEntityMedia = (e) => useGraphqlMutation("pbReplaceHostEntityMedia", {
|
|
449
|
-
...ctx.value,
|
|
450
|
-
fieldName: e.host.fieldName,
|
|
451
|
-
mediaId: e.mediaId
|
|
452
|
-
}).then(mapMutation);
|
|
453
|
-
const updateEntityFieldValue = (e) => useGraphqlMutation("pbUpdateHostEntityFieldValue", {
|
|
454
|
-
...ctx.value,
|
|
455
|
-
fieldName: e.fieldName,
|
|
456
|
-
value: e.fieldValue
|
|
457
|
-
}).then(mapMutation);
|
|
458
|
-
const mediaLibraryGetResults = (e) => {
|
|
459
|
-
return useGraphqlQuery("pbMediaLibraryGetResults", {
|
|
460
|
-
text: e.filters.text,
|
|
461
|
-
bundle: e.filters.bundle,
|
|
462
|
-
page: e.page
|
|
463
|
-
}).then((data) => {
|
|
464
|
-
return {
|
|
465
|
-
filters: (data.data.pbMediaLibraryGetResults?.filters || []).reduce((acc, filter) => {
|
|
466
|
-
if (filter.__typename === "ParagraphsBlokkliMediaLibraryFilterText") {
|
|
467
|
-
acc[filter.id] = {
|
|
468
|
-
type: "text",
|
|
469
|
-
placeholder: filter.placeholder,
|
|
470
|
-
label: filter.label
|
|
471
|
-
};
|
|
472
|
-
} else if (filter.__typename === "ParagraphsBlokkliMediaLibraryFilterSelect") {
|
|
473
|
-
acc[filter.id] = {
|
|
474
|
-
type: "select",
|
|
475
|
-
label: filter.label,
|
|
476
|
-
default: filter.default,
|
|
477
|
-
options: filter.options
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
return acc;
|
|
481
|
-
}, {}),
|
|
482
|
-
items: data.data.pbMediaLibraryGetResults?.items || [],
|
|
483
|
-
total: data.data.pbMediaLibraryGetResults?.total || 0,
|
|
484
|
-
perPage: data.data.pbMediaLibraryGetResults?.perPage || 50
|
|
485
|
-
};
|
|
486
|
-
});
|
|
487
|
-
};
|
|
488
|
-
const mediaLibraryAddBlock = (e) => {
|
|
489
|
-
return useGraphqlMutation("pbAddEntityReference", {
|
|
490
|
-
...ctx.value,
|
|
491
|
-
targetId: e.item.mediaId,
|
|
492
|
-
targetBundle: e.item.mediaBundle,
|
|
493
|
-
targetType: "media",
|
|
494
|
-
paragraphBundle: e.item.itemBundle,
|
|
495
|
-
hostType: e.host.type,
|
|
496
|
-
hostUuid: e.host.uuid,
|
|
497
|
-
hostFieldName: e.host.fieldName,
|
|
498
|
-
afterUuid: e.preceedingUuid
|
|
499
|
-
}).then(mapMutation);
|
|
500
|
-
};
|
|
501
|
-
const mediaLibraryAddBlocks = (e) => {
|
|
502
|
-
return useGraphqlMutation("pbAddEntityReferenceMultiple", {
|
|
503
|
-
...ctx.value,
|
|
504
|
-
references: e.items.map((item) => {
|
|
505
|
-
return {
|
|
506
|
-
targetId: item.mediaId,
|
|
507
|
-
targetType: "media",
|
|
508
|
-
targetBundle: item.mediaBundle,
|
|
509
|
-
paragraphBundle: item.itemBundle
|
|
510
|
-
};
|
|
511
|
-
}),
|
|
512
|
-
hostType: e.host.type,
|
|
513
|
-
hostUuid: e.host.uuid,
|
|
514
|
-
hostFieldName: e.host.fieldName,
|
|
515
|
-
afterUuid: e.preceedingUuid
|
|
516
|
-
}).then(mapMutation);
|
|
517
|
-
};
|
|
518
|
-
const getContentSearchTabs = () => {
|
|
519
|
-
return useGraphqlQuery("pbSearchTabs").then((v) => {
|
|
520
|
-
return (v.data.tabs || []).reduce(
|
|
521
|
-
(acc, tab) => {
|
|
522
|
-
acc[tab.id] = tab.label;
|
|
523
|
-
return acc;
|
|
524
|
-
},
|
|
525
|
-
{}
|
|
526
|
-
);
|
|
527
|
-
});
|
|
528
|
-
};
|
|
529
|
-
const getContentSearchResults = (id, text) => {
|
|
530
|
-
return useGraphqlQuery("pbSearch", {
|
|
531
|
-
id,
|
|
532
|
-
text
|
|
533
|
-
}).then((v) => v.data.paragraphsBlokkliSearch || []);
|
|
534
|
-
};
|
|
535
|
-
const addContentSearchItem = (e) => {
|
|
536
|
-
return useGraphqlMutation("pbAddEntityReference", {
|
|
537
|
-
...ctx.value,
|
|
538
|
-
targetId: e.item.id,
|
|
539
|
-
targetType: e.item.entityType,
|
|
540
|
-
targetBundle: e.item.entityBundle,
|
|
541
|
-
paragraphBundle: e.bundle,
|
|
542
|
-
hostType: e.host.type,
|
|
543
|
-
hostUuid: e.host.uuid,
|
|
544
|
-
hostFieldName: e.host.fieldName,
|
|
545
|
-
afterUuid: e.afterUuid
|
|
546
|
-
}).then(mapMutation);
|
|
547
|
-
};
|
|
548
|
-
const clipboardMapBundle = (e) => {
|
|
549
|
-
if (e.type === "video") {
|
|
550
|
-
return config.clipboard.find((v) => {
|
|
551
|
-
if (v.__typename === "ParagraphsBlokkliSupportedClipboardRemoteVideo") {
|
|
552
|
-
const providers = v.videoProviders;
|
|
553
|
-
if (e.videoService === "vimeo") {
|
|
554
|
-
return providers.includes(
|
|
555
|
-
ParagraphsBlokkliRemoteVideoProvider.VIMEO
|
|
556
|
-
);
|
|
557
|
-
} else if (e.videoService === "youtube") {
|
|
558
|
-
return providers.includes(
|
|
559
|
-
ParagraphsBlokkliRemoteVideoProvider.YOUTUBE
|
|
560
|
-
);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
return false;
|
|
564
|
-
})?.possibleParagraphBundles?.[0];
|
|
565
|
-
} else if (e.type === "plaintext") {
|
|
566
|
-
return config.clipboard.find((v) => {
|
|
567
|
-
return v.__typename === "ParagraphsBlokkliSupportedClipboardRichText";
|
|
568
|
-
})?.possibleParagraphBundles?.[0];
|
|
569
|
-
} else if (e.type === "image") {
|
|
570
|
-
return config.clipboard.find((v) => {
|
|
571
|
-
return v.__typename === "ParagraphsBlokkliSupportedClipboardImage";
|
|
572
|
-
})?.possibleParagraphBundles?.[0];
|
|
573
|
-
} else if (e.type === "file") {
|
|
574
|
-
return config.clipboard.find((v) => {
|
|
575
|
-
return v.__typename === "ParagraphsBlokkliSupportedClipboardFile";
|
|
576
|
-
})?.possibleParagraphBundles?.[0];
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
const addBlockFromClipboardItem = (e) => {
|
|
580
|
-
if (e.item.type === "text") {
|
|
581
|
-
return useGraphqlMutation("pbAddClipboardText", {
|
|
582
|
-
...ctx.value,
|
|
583
|
-
text: e.item.data,
|
|
584
|
-
hostType: e.host.type,
|
|
585
|
-
hostUuid: e.host.uuid,
|
|
586
|
-
hostFieldName: e.host.fieldName,
|
|
587
|
-
afterUuid: e.afterUuid
|
|
588
|
-
}).then(mapMutation);
|
|
589
|
-
} else if (e.item.type === "image") {
|
|
590
|
-
return useGraphqlMutation("pbAddImage", {
|
|
591
|
-
...ctx.value,
|
|
592
|
-
data: e.item.data,
|
|
593
|
-
fileName: e.item.additional || "",
|
|
594
|
-
hostType: e.host.type,
|
|
595
|
-
hostUuid: e.host.uuid,
|
|
596
|
-
hostFieldName: e.host.fieldName,
|
|
597
|
-
afterUuid: e.afterUuid
|
|
598
|
-
}).then(mapMutation);
|
|
599
|
-
} else if (e.item.type === "file") {
|
|
600
|
-
return useGraphqlMutation("pbAddFile", {
|
|
601
|
-
...ctx.value,
|
|
602
|
-
data: e.item.data,
|
|
603
|
-
fileName: e.item.additional || "",
|
|
604
|
-
hostType: e.host.type,
|
|
605
|
-
hostUuid: e.host.uuid,
|
|
606
|
-
hostFieldName: e.host.fieldName,
|
|
607
|
-
afterUuid: e.afterUuid
|
|
608
|
-
}).then(mapMutation);
|
|
609
|
-
} else if (e.item.type === "video") {
|
|
610
|
-
return useGraphqlMutation("pbAddVideoRemote", {
|
|
611
|
-
...ctx.value,
|
|
612
|
-
url: e.item.data,
|
|
613
|
-
hostType: e.host.type,
|
|
614
|
-
hostUuid: e.host.uuid,
|
|
615
|
-
hostFieldName: e.host.fieldName,
|
|
616
|
-
afterUuid: e.afterUuid
|
|
617
|
-
}).then(mapMutation);
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
const route = useRoute();
|
|
621
|
-
const router = useRouter();
|
|
622
|
-
const changeLanguage = (translation) => {
|
|
623
|
-
return router.push({ path: translation.url, query: route.query });
|
|
624
|
-
};
|
|
625
|
-
return {
|
|
626
|
-
buildEditableFrameUrl,
|
|
627
|
-
getTransformPlugins,
|
|
628
|
-
applyTransformPlugin,
|
|
629
|
-
getImportItems,
|
|
630
|
-
getConversions,
|
|
631
|
-
getAllBundles,
|
|
632
|
-
loadState,
|
|
633
|
-
getDisabledFeatures,
|
|
634
|
-
takeOwnership,
|
|
635
|
-
setHistoryIndex,
|
|
636
|
-
setMutationItemStatus,
|
|
637
|
-
publish,
|
|
638
|
-
importFromExisting,
|
|
639
|
-
revertAllChanges,
|
|
640
|
-
makeBlockReusable,
|
|
641
|
-
duplicateBlocks,
|
|
642
|
-
convertBlocks,
|
|
643
|
-
addLibraryItem,
|
|
644
|
-
moveMultipleBlocks,
|
|
645
|
-
moveBlock,
|
|
646
|
-
addNewBlock,
|
|
647
|
-
updateOptions,
|
|
648
|
-
mapState,
|
|
649
|
-
loadComments,
|
|
650
|
-
addComment,
|
|
651
|
-
resolveComment,
|
|
652
|
-
getLibraryItems,
|
|
653
|
-
detachReusableBlock,
|
|
654
|
-
getLastChanged,
|
|
655
|
-
getPreviewGrantUrl,
|
|
656
|
-
formFrameBuilder,
|
|
657
|
-
deleteBlocks,
|
|
658
|
-
getFieldConfig,
|
|
659
|
-
pasteExistingBlocks,
|
|
660
|
-
updateFieldValue,
|
|
661
|
-
getEditableFieldConfig,
|
|
662
|
-
fragmentsAddBlock,
|
|
663
|
-
mediaLibraryReplaceMedia,
|
|
664
|
-
mediaLibraryReplaceEntityMedia,
|
|
665
|
-
updateEntityFieldValue,
|
|
666
|
-
getDroppableFieldConfig,
|
|
667
|
-
mediaLibraryGetResults,
|
|
668
|
-
mediaLibraryAddBlock,
|
|
669
|
-
mediaLibraryAddBlocks,
|
|
670
|
-
getContentSearchTabs,
|
|
671
|
-
getContentSearchResults,
|
|
672
|
-
addContentSearchItem,
|
|
673
|
-
clipboardMapBundle,
|
|
674
|
-
addBlockFromClipboardItem,
|
|
675
|
-
changeLanguage,
|
|
676
|
-
getLibraryItemEditUrl,
|
|
677
|
-
loadStateAtIndex
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
|
-
);
|