@blokkli/editor 2.0.0-alpha.13 → 2.0.0-alpha.15
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 +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +4873 -1167
- package/dist/modules/drupal/graphql/base/fragment.ParagraphsBlokkliConfigInput.graphql +31 -0
- package/dist/modules/drupal/graphql/base/fragment.blokkliProps.graphql +1 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +5 -0
- package/dist/modules/drupal/graphql/base/query.pbEntityConfig.graphql +5 -0
- package/dist/modules/drupal/graphql/features/publishNew.graphql +1 -4
- package/dist/modules/drupal/graphql/features/scheduler.graphql +31 -0
- package/dist/modules/drupal/graphql/features/transform.graphql +9 -1
- package/dist/modules/drupal/graphql/features/transform_host.graphql +38 -0
- package/dist/modules/drupal/graphql/mutations/update_host_options.graphql +15 -0
- package/dist/modules/drupal/index.d.mts +1 -1
- package/dist/modules/drupal/index.mjs +37 -7
- package/dist/modules/drupal/runtime/adapter/index.js +140 -5
- package/dist/runtime/adapter/index.d.ts +90 -1
- package/dist/runtime/blokkliPlugins/AddAction/index.vue +27 -3
- package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue +65 -0
- package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue.d.ts +26 -0
- package/dist/runtime/blokkliPlugins/ContextMenu/Menu/index.vue +3 -0
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +3 -2
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +3 -3
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +49 -11
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +29 -15
- package/dist/runtime/blokkliPlugins/MenuButton/index.vue.d.ts +2 -2
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +6 -7
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue +2 -9
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +1 -1
- package/dist/runtime/blokkliPlugins/ViewOption/index.vue +6 -3
- package/dist/runtime/blokkliPlugins/index.d.ts +8 -7
- package/dist/runtime/blokkliPlugins/index.js +15 -13
- package/dist/runtime/components/Blocks/Fragment/icon.svg +1 -1
- package/dist/runtime/components/BlokkliProvider.vue +1 -0
- package/dist/runtime/components/BlokkliProvider.vue.d.ts +1 -0
- package/dist/runtime/components/Edit/Actions/index.vue +39 -67
- package/dist/runtime/components/Edit/AddListItem/index.vue +2 -5
- package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/AddListItemIcon/index.vue +19 -0
- package/dist/runtime/components/Edit/AddListItemIcon/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/AppMenu/index.vue +5 -5
- package/dist/runtime/components/Edit/Dialog/index.vue +5 -1
- package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/DiffViewer/State.vue +276 -0
- package/dist/runtime/components/Edit/DiffViewer/State.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/DragInteractions/index.vue +35 -6
- package/dist/runtime/components/Edit/EditProvider.vue +46 -35
- package/dist/runtime/components/Edit/Features/AddList/index.vue +15 -25
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/fragment.glsl +58 -0
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue +168 -0
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/vertex.glsl +72 -0
- package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue +159 -0
- package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue +100 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue +56 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue +87 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue +101 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue +18 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue +92 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue.d.ts +17 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue +77 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.js +75 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.d.ts +4 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.js +5 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.d.ts +32 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.js +45 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.js +95 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.js +13 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.js +2 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.js +165 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.d.ts +44 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.js +0 -0
- package/dist/runtime/components/Edit/Features/Analyze/helper.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/Analyze/helper.js +28 -0
- package/dist/runtime/components/Edit/Features/Analyze/index.vue +44 -0
- package/dist/runtime/components/Edit/Features/Anchors/Renderer.vue +136 -0
- package/dist/runtime/components/Edit/Features/Anchors/index.vue +32 -0
- package/dist/runtime/components/Edit/Features/Anchors/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue +25 -13
- package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue +296 -0
- package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Artboard/index.vue +10 -245
- package/dist/runtime/components/Edit/Features/Assistant/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/BlockAddList/index.vue +4 -4
- package/dist/runtime/components/Edit/Features/Clipboard/index.vue +161 -28
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue +16 -4
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue.d.ts +0 -1
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +4 -53
- package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Conversions/index.vue +12 -14
- package/dist/runtime/components/Edit/Features/Debug/Viewport/index.vue +14 -0
- package/dist/runtime/components/Edit/Features/Debug/index.vue +27 -24
- package/dist/runtime/components/Edit/Features/Diff/DiffView/index.vue +13 -190
- package/dist/runtime/components/Edit/Features/Diff/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +4 -4
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +1 -1
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +35 -71
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/vertex.glsl +1 -1
- package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +62 -48
- package/dist/runtime/components/Edit/Features/EditForm/Frame/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/EditForm/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/EditableField/index.vue +6 -2
- package/dist/runtime/components/Edit/Features/EditableMask/index.vue +3 -20
- package/dist/runtime/components/Edit/Features/EntityTitle/index.vue +33 -1
- package/dist/runtime/components/Edit/Features/Fragments/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/History/index.vue +35 -12
- package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +6 -2
- package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Library/index.vue +11 -9
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +5 -8
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/fragment.glsl +1 -1
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/index.vue +9 -4
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/vertex.glsl +1 -1
- package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +8 -14
- package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +9 -3
- package/dist/runtime/components/Edit/Features/Options/Form/Item.vue.d.ts +0 -1
- package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +37 -19
- package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue.d.ts +8 -2
- package/dist/runtime/components/Edit/Features/Options/Form/index.vue +81 -37
- package/dist/runtime/components/Edit/Features/Options/Form/index.vue.d.ts +5 -5
- package/dist/runtime/components/Edit/Features/Options/index.vue +30 -6
- package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue +41 -14
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/PublishOption.vue +47 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/PublishOption.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/ScheduleDate.vue +183 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/ScheduleDate.vue.d.ts +13 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Summary.vue +83 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Summary.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +381 -128
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue.d.ts +3 -14
- package/dist/runtime/components/Edit/Features/Publish/index.vue +37 -22
- package/dist/runtime/components/Edit/Features/Revert/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/Search/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/AddButtonsField.vue +54 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/AddButtonsField.vue.d.ts +14 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue +120 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue +459 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Selection/Overlay/fragment.glsl +14 -9
- package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +32 -11
- package/dist/runtime/components/Edit/Features/Selection/Overlay/vertex.glsl +1 -1
- package/dist/runtime/components/Edit/Features/Selection/index.vue +76 -7
- package/dist/runtime/components/Edit/Features/Settings/Dialog/FeatureSetting/index.vue +12 -17
- package/dist/runtime/components/Edit/Features/Settings/index.vue +11 -25
- package/dist/runtime/components/Edit/Features/Theme/Color/index.vue +5 -1
- package/dist/runtime/components/Edit/Features/Theme/index.vue +2 -1
- package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue +198 -0
- package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue.d.ts +13 -0
- package/dist/runtime/components/Edit/Features/Transform/index.vue +155 -44
- package/dist/runtime/components/Edit/Form/Datepicker/index.vue +198 -0
- package/dist/runtime/components/Edit/Form/Datepicker/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/Form/Radio/index.vue +33 -0
- package/dist/runtime/components/Edit/Form/Radio/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Form/RadioTabs/index.vue +37 -0
- package/dist/runtime/components/Edit/Form/RadioTabs/index.vue.d.ts +22 -0
- package/dist/runtime/components/Edit/Form/Select/index.vue +29 -0
- package/dist/runtime/components/Edit/Form/Select/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Form/Text/index.vue +33 -0
- package/dist/runtime/components/Edit/Form/Text/index.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/Form/Textarea/index.vue +13 -6
- package/dist/runtime/components/Edit/Form/Textarea/index.vue.d.ts +4 -0
- package/dist/runtime/components/Edit/FormOverlay/index.vue +1 -1
- package/dist/runtime/components/Edit/Indicators/index.vue +123 -0
- package/dist/runtime/components/Edit/Indicators/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/ItemIcon/index.vue +2 -1
- package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue +66 -0
- package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Konami/Game/blokkli.png +0 -0
- package/dist/runtime/components/Edit/Konami/Game/charmap.d.ts +2 -0
- package/dist/runtime/components/Edit/Konami/Game/charmap.js +168 -0
- package/dist/runtime/components/Edit/Konami/Game/index.vue +752 -0
- package/dist/runtime/components/Edit/Konami/Game/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Konami/Game/textRendering.d.ts +8 -0
- package/dist/runtime/components/Edit/Konami/Game/textRendering.js +138 -0
- package/dist/runtime/components/Edit/Konami/Game/useIconRendering.d.ts +9 -0
- package/dist/runtime/components/Edit/Konami/Game/useIconRendering.js +130 -0
- package/dist/runtime/components/Edit/Konami/index.vue +44 -0
- package/dist/runtime/components/Edit/Konami/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Loading/index.vue +6 -2
- package/dist/runtime/components/Edit/Loading/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Messages/index.vue +8 -3
- package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue +17 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue +37 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue +43 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/PluginConfigForm/index.vue +57 -0
- package/dist/runtime/components/Edit/PluginConfigForm/index.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/PreviewProvider.vue +3 -4
- package/dist/runtime/components/Edit/RelativeTime/index.vue +3 -2
- package/dist/runtime/components/Edit/ShortcutIndicator/index.vue +8 -3
- package/dist/runtime/components/Edit/SystemRequirements/index.vue +3 -3
- package/dist/runtime/components/Edit/Toolbar/index.vue +3 -2
- package/dist/runtime/components/Edit/Transition/index.vue +41 -0
- package/dist/runtime/components/Edit/Transition/index.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/index.d.ts +24 -15
- package/dist/runtime/components/Edit/index.js +46 -28
- package/dist/runtime/composables/defineBlokkli.js +7 -3
- package/dist/runtime/composables/defineBlokkliFeature.d.ts +4 -7
- package/dist/runtime/composables/defineBlokkliProvider.d.ts +11 -0
- package/dist/runtime/composables/defineBlokkliProvider.js +46 -0
- package/dist/runtime/composables/useBlokkliHelper.js +1 -1
- package/dist/runtime/constants/index.d.ts +3 -0
- package/dist/runtime/constants/index.js +3 -0
- package/dist/runtime/css/output.css +1 -1
- package/dist/runtime/helpers/addElementClasses.d.ts +2 -0
- package/dist/runtime/helpers/addElementClasses.js +24 -0
- package/dist/runtime/helpers/animationProvider.d.ts +4 -2
- package/dist/runtime/helpers/animationProvider.js +7 -2
- package/dist/runtime/helpers/bundles/index.d.ts +1 -0
- package/dist/runtime/helpers/bundles/index.js +4 -0
- package/dist/runtime/helpers/composables/useStickyToolbar.d.ts +20 -0
- package/dist/runtime/helpers/composables/useStickyToolbar.js +215 -0
- package/dist/runtime/helpers/definitionProvider.d.ts +2 -1
- package/dist/runtime/helpers/definitionProvider.js +17 -0
- package/dist/runtime/helpers/domProvider.d.ts +2 -1
- package/dist/runtime/helpers/domProvider.js +89 -43
- package/dist/runtime/helpers/dropTargets/index.d.ts +6 -0
- package/dist/runtime/helpers/dropTargets/index.js +49 -0
- package/dist/runtime/helpers/eventBus.d.ts +1 -1
- package/dist/runtime/helpers/eventBus.js +2 -2
- package/dist/runtime/helpers/index.d.ts +10 -1
- package/dist/runtime/helpers/index.js +57 -0
- package/dist/runtime/helpers/indicatorsProvider.d.ts +10 -0
- package/dist/runtime/helpers/indicatorsProvider.js +23 -0
- package/dist/runtime/helpers/keyboardProvider.d.ts +2 -0
- package/dist/runtime/helpers/keyboardProvider.js +17 -1
- package/dist/runtime/helpers/pluginProvider.d.ts +10 -0
- package/dist/runtime/helpers/pluginProvider.js +33 -0
- package/dist/runtime/helpers/renderCycle.d.ts +1 -0
- package/dist/runtime/helpers/renderCycle.js +10 -0
- package/dist/runtime/helpers/runtimeHelpers/index.js +14 -11
- package/dist/runtime/helpers/selectionProvider.d.ts +16 -0
- package/dist/runtime/helpers/selectionProvider.js +47 -35
- package/dist/runtime/helpers/stateProvider.d.ts +7 -2
- package/dist/runtime/helpers/stateProvider.js +89 -14
- package/dist/runtime/helpers/storageProvider.d.ts +4 -3
- package/dist/runtime/helpers/storageProvider.js +56 -3
- package/dist/runtime/helpers/symbols.d.ts +1 -0
- package/dist/runtime/helpers/symbols.js +1 -0
- package/dist/runtime/helpers/textProvider.js +6 -0
- package/dist/runtime/helpers/themeProvider.d.ts +2 -0
- package/dist/runtime/helpers/themeProvider.js +4 -1
- package/dist/runtime/helpers/transform.js +1 -3
- package/dist/runtime/helpers/uiProvider.d.ts +9 -2
- package/dist/runtime/helpers/uiProvider.js +72 -47
- package/dist/runtime/helpers/useTransitionedValue.d.ts +18 -0
- package/dist/runtime/helpers/useTransitionedValue.js +57 -0
- package/dist/runtime/icons/anchor.svg +1 -0
- package/dist/runtime/icons/arrow-left.svg +1 -1
- package/dist/runtime/icons/arrow-right.svg +1 -1
- package/dist/runtime/icons/arrow-top-right.svg +1 -0
- package/dist/runtime/icons/calendar-clock.svg +1 -0
- package/dist/runtime/icons/chart.svg +1 -0
- package/dist/runtime/icons/copy.svg +1 -0
- package/dist/runtime/icons/cursor-move.svg +1 -1
- package/dist/runtime/icons/diff.svg +1 -1
- package/dist/runtime/icons/eye-off.svg +1 -0
- package/dist/runtime/icons/eye.svg +1 -1
- package/dist/runtime/icons/info.svg +1 -1
- package/dist/runtime/icons/link.svg +1 -0
- package/dist/runtime/icons/speedometer.svg +1 -0
- package/dist/runtime/types/blokkOptions.d.ts +8 -0
- package/dist/runtime/types/index.d.ts +172 -6
- package/dist/runtime/types/theme.d.ts +2 -1
- package/dist/shared/{editor.gz_ac6uT.d.mts → editor.CKsrTpc1.d.mts} +1 -1
- package/package.json +20 -5
- package/dist/runtime/components/Edit/Features/FieldAreas/Overlay/index.vue +0 -22
- package/dist/runtime/components/Edit/Features/FieldAreas/index.vue +0 -41
- /package/dist/runtime/components/Edit/Features/{FieldAreas/Overlay → Analyze}/index.vue.d.ts +0 -0
- /package/dist/runtime/components/Edit/Features/{FieldAreas/index.vue.d.ts → Anchors/Renderer.vue.d.ts} +0 -0
|
@@ -4,22 +4,15 @@
|
|
|
4
4
|
:title="publishLabel"
|
|
5
5
|
:description="publishDescription"
|
|
6
6
|
:disabled="!mutations.length || !canEdit"
|
|
7
|
-
type="success"
|
|
7
|
+
:type="isScheduled ? 'yellow' : 'success'"
|
|
8
8
|
:weight="0"
|
|
9
9
|
:icon="icon"
|
|
10
10
|
@click="onMenuClick"
|
|
11
11
|
/>
|
|
12
12
|
<Teleport to="body">
|
|
13
|
-
<
|
|
14
|
-
<PublishDialog
|
|
15
|
-
|
|
16
|
-
v-model:states="additionalEditStates"
|
|
17
|
-
v-model:revision-message="revisionMessage"
|
|
18
|
-
v-model:should-publish="shouldPublish"
|
|
19
|
-
@close="showDialog = false"
|
|
20
|
-
@submit="onSubmit"
|
|
21
|
-
/>
|
|
22
|
-
</transition>
|
|
13
|
+
<BlokkliTransition name="slide-up">
|
|
14
|
+
<PublishDialog v-if="showDialog" @close="onClose" @submit="onSubmit" />
|
|
15
|
+
</BlokkliTransition>
|
|
23
16
|
</Teleport>
|
|
24
17
|
</template>
|
|
25
18
|
|
|
@@ -29,10 +22,13 @@ import {
|
|
|
29
22
|
defineBlokkliFeature,
|
|
30
23
|
computed,
|
|
31
24
|
useRoute,
|
|
32
|
-
ref
|
|
25
|
+
ref,
|
|
26
|
+
nextTick
|
|
33
27
|
} from "#imports";
|
|
34
28
|
import { PluginMenuButton } from "#blokkli/plugins";
|
|
29
|
+
import { BlokkliTransition } from "#blokkli/components";
|
|
35
30
|
import PublishDialog from "./Dialog/index.vue";
|
|
31
|
+
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
36
32
|
const { adapter, settings } = defineBlokkliFeature({
|
|
37
33
|
id: "publish",
|
|
38
34
|
icon: "publish",
|
|
@@ -54,26 +50,38 @@ const { state, $t, broadcast, context, eventBus } = useBlokkli();
|
|
|
54
50
|
const { mutations, canEdit, mutateWithLoadingState } = state;
|
|
55
51
|
const hasPublishOptions = !!adapter.getPublishOptions;
|
|
56
52
|
const isPublished = computed(() => !!state.entity.value.status);
|
|
53
|
+
const isScheduled = computed(
|
|
54
|
+
() => !!state.publishOptions.value.publishOn
|
|
55
|
+
);
|
|
57
56
|
const showDialog = ref(false);
|
|
58
|
-
const additionalEditStates = ref([]);
|
|
59
|
-
const shouldPublish = ref(!!state.entity.value.status);
|
|
60
|
-
const revisionMessage = ref("");
|
|
61
57
|
const publishLabel = computed(() => {
|
|
62
58
|
const suffix = hasPublishOptions ? "..." : "";
|
|
59
|
+
if (isScheduled.value) {
|
|
60
|
+
return $t("publishManageSchedule", "Manage scheduling") + suffix;
|
|
61
|
+
}
|
|
63
62
|
if (isPublished.value) {
|
|
64
63
|
return (settings.value.closeAfterPublish ? $t("publishAndCloseLabel", "Publish & Close") : $t("publishLabel", "Publish")) + suffix;
|
|
65
64
|
}
|
|
66
65
|
return (settings.value.closeAfterPublish ? $t("publishAndCloseLabelUnpublished", "Save & Close") : $t("publishLabelUnpublished", "Save")) + suffix;
|
|
67
66
|
});
|
|
68
|
-
const publishDescription = computed(
|
|
69
|
-
(
|
|
67
|
+
const publishDescription = computed(() => {
|
|
68
|
+
if (isScheduled.value) {
|
|
69
|
+
return $t(
|
|
70
|
+
"publishDescriptionScheduled",
|
|
71
|
+
"View or change the scheduled publication"
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
return isPublished.value ? $t("publishDescription", "Publish all changes.") : $t(
|
|
70
75
|
"publishDescriptionUnpublished",
|
|
71
76
|
"Save all changes while keeping page unpublished"
|
|
72
|
-
)
|
|
73
|
-
);
|
|
74
|
-
const icon = computed(
|
|
75
|
-
(
|
|
76
|
-
|
|
77
|
+
);
|
|
78
|
+
});
|
|
79
|
+
const icon = computed(() => {
|
|
80
|
+
if (state.publishOptions.value?.publishOn) {
|
|
81
|
+
return "calendar-clock";
|
|
82
|
+
}
|
|
83
|
+
return isPublished.value ? "publish" : "save";
|
|
84
|
+
});
|
|
77
85
|
const onMenuClick = async () => {
|
|
78
86
|
if (hasPublishOptions) {
|
|
79
87
|
showDialog.value = true;
|
|
@@ -107,6 +115,13 @@ function onSubmit() {
|
|
|
107
115
|
window.location.href = route.path;
|
|
108
116
|
}
|
|
109
117
|
}
|
|
118
|
+
async function onClose() {
|
|
119
|
+
await nextTick();
|
|
120
|
+
showDialog.value = false;
|
|
121
|
+
}
|
|
122
|
+
onBlokkliEvent("publish:show-dialog", () => {
|
|
123
|
+
showDialog.value = true;
|
|
124
|
+
});
|
|
110
125
|
</script>
|
|
111
126
|
|
|
112
127
|
<script>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/>
|
|
14
14
|
|
|
15
15
|
<Teleport to="body">
|
|
16
|
-
<
|
|
16
|
+
<BlokkliTransition name="slide-up">
|
|
17
17
|
<DialogModal
|
|
18
18
|
v-if="showConfirm"
|
|
19
19
|
:title="$t('revertDialogTitle', 'Irrevocably discard changes')"
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
@submit="onSubmit"
|
|
29
29
|
@cancel="showConfirm = false"
|
|
30
30
|
/>
|
|
31
|
-
</
|
|
31
|
+
</BlokkliTransition>
|
|
32
32
|
</Teleport>
|
|
33
33
|
</template>
|
|
34
34
|
|
|
35
35
|
<script setup>
|
|
36
36
|
import { useBlokkli, ref, defineBlokkliFeature } from "#imports";
|
|
37
37
|
import { PluginMenuButton } from "#blokkli/plugins";
|
|
38
|
-
import { DialogModal } from "#blokkli/components";
|
|
38
|
+
import { DialogModal, BlokkliTransition } from "#blokkli/components";
|
|
39
39
|
const { adapter } = defineBlokkliFeature({
|
|
40
40
|
id: "revert",
|
|
41
41
|
icon: "revert",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="body">
|
|
3
|
-
<
|
|
3
|
+
<BlokkliTransition name="search">
|
|
4
4
|
<div
|
|
5
5
|
v-if="isRendered"
|
|
6
6
|
v-show="isVisible"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@close="isVisible = false"
|
|
16
16
|
/>
|
|
17
17
|
</div>
|
|
18
|
-
</
|
|
18
|
+
</BlokkliTransition>
|
|
19
19
|
</Teleport>
|
|
20
20
|
<PluginToolbarButton
|
|
21
21
|
id="search"
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
<script setup>
|
|
38
38
|
import { nextTick, ref, useBlokkli, defineBlokkliFeature } from "#imports";
|
|
39
39
|
import Overlay from "./Overlay/index.vue";
|
|
40
|
+
import { BlokkliTransition } from "#blokkli/components";
|
|
40
41
|
import { PluginToolbarButton } from "#blokkli/plugins";
|
|
41
42
|
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
42
43
|
defineBlokkliFeature({
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
ref="button"
|
|
4
|
+
class="bk-selection-add-button bk-is-field"
|
|
5
|
+
tabindex="-1"
|
|
6
|
+
:data-title="title"
|
|
7
|
+
:style="{
|
|
8
|
+
transform: `translate(${left}px, ${top}px)`,
|
|
9
|
+
visibility: isVisible ? 'visible' : 'hidden'
|
|
10
|
+
}"
|
|
11
|
+
@click="onClick"
|
|
12
|
+
>
|
|
13
|
+
<div>
|
|
14
|
+
<Icon name="plus" />
|
|
15
|
+
</div>
|
|
16
|
+
</button>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup>
|
|
20
|
+
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
21
|
+
import { useBlokkli, ref, useTemplateRef } from "#imports";
|
|
22
|
+
import { Icon } from "#blokkli/components";
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
fieldKey: { type: null, required: true },
|
|
25
|
+
containerRect: { type: [Object, null], required: true },
|
|
26
|
+
title: { type: String, required: true }
|
|
27
|
+
});
|
|
28
|
+
const emit = defineEmits(["click"]);
|
|
29
|
+
const { dom } = useBlokkli();
|
|
30
|
+
const button = useTemplateRef("button");
|
|
31
|
+
const left = ref(0);
|
|
32
|
+
const top = ref(0);
|
|
33
|
+
const isVisible = ref(false);
|
|
34
|
+
const BUTTON_SIZE = 30;
|
|
35
|
+
function onClick() {
|
|
36
|
+
if (button.value) {
|
|
37
|
+
emit("click", button.value);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
onBlokkliEvent("canvas:draw", () => {
|
|
41
|
+
if (!props.fieldKey || !props.containerRect) {
|
|
42
|
+
isVisible.value = false;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const fieldRect = dom.getFieldRect(props.fieldKey);
|
|
46
|
+
if (!fieldRect) {
|
|
47
|
+
isVisible.value = false;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
left.value = Math.round(fieldRect.x + fieldRect.width / 2 - BUTTON_SIZE / 2);
|
|
51
|
+
top.value = Math.round(fieldRect.y + fieldRect.height / 2 - BUTTON_SIZE / 2);
|
|
52
|
+
isVisible.value = true;
|
|
53
|
+
});
|
|
54
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
fieldKey: string | undefined;
|
|
3
|
+
containerRect: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
} | null;
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
click: (element: HTMLElement) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClick?: ((element: HTMLElement) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="el"
|
|
4
|
+
class="bk bk-selection-add-overlay"
|
|
5
|
+
:class="'bk-is-' + placementY"
|
|
6
|
+
:style="{
|
|
7
|
+
'--bk-caret-x': caretX
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<div class="bk bk-selection-add-overlay-inner bk-caret-tooltip-inner">
|
|
11
|
+
<div v-if="label" class="bk-selection-add-overlay-label">
|
|
12
|
+
<div v-html="label" />
|
|
13
|
+
<button @click="$emit('close')">
|
|
14
|
+
<Icon name="close" />
|
|
15
|
+
</button>
|
|
16
|
+
</div>
|
|
17
|
+
<div
|
|
18
|
+
ref="listEl"
|
|
19
|
+
class="bk-selection-add-overlay-list bk-scrollbar-dark"
|
|
20
|
+
@wheel="onWheel"
|
|
21
|
+
>
|
|
22
|
+
<button
|
|
23
|
+
v-for="item in items"
|
|
24
|
+
:key="item.bundle"
|
|
25
|
+
tabindex="-1"
|
|
26
|
+
@click.prevent="$emit('select', item.bundle)"
|
|
27
|
+
>
|
|
28
|
+
<AddListItemIcon
|
|
29
|
+
:bundle="item.bundle"
|
|
30
|
+
:color="item.isFavorite ? 'yellow' : 'default'"
|
|
31
|
+
/>
|
|
32
|
+
<span>{{ item.label }}</span>
|
|
33
|
+
</button>
|
|
34
|
+
<button
|
|
35
|
+
v-for="action in actions"
|
|
36
|
+
:key="'action:' + action.id"
|
|
37
|
+
tabindex="-1"
|
|
38
|
+
@click.prevent="$emit('action', action.id)"
|
|
39
|
+
>
|
|
40
|
+
<AddListItemIcon :icon="action.icon" :color="action.color" />
|
|
41
|
+
<span>{{ action.title }}</span>
|
|
42
|
+
</button>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<script setup>
|
|
49
|
+
import useStickyToolbar from "#blokkli/helpers/composables/useStickyToolbar";
|
|
50
|
+
import {
|
|
51
|
+
useTemplateRef,
|
|
52
|
+
useBlokkli,
|
|
53
|
+
computed,
|
|
54
|
+
onMounted,
|
|
55
|
+
onBeforeUnmount
|
|
56
|
+
} from "#imports";
|
|
57
|
+
import { Icon, AddListItemIcon } from "#blokkli/components";
|
|
58
|
+
import { isInternalBundle } from "#blokkli/helpers/bundles";
|
|
59
|
+
const props = defineProps({
|
|
60
|
+
bundles: { type: Array, required: true },
|
|
61
|
+
anchorEl: { type: null, required: true },
|
|
62
|
+
label: { type: String, required: false }
|
|
63
|
+
});
|
|
64
|
+
defineEmits(["select", "action", "close"]);
|
|
65
|
+
const el = useTemplateRef("el");
|
|
66
|
+
const listEl = useTemplateRef("listEl");
|
|
67
|
+
let hasScrollbar = null;
|
|
68
|
+
const { types, ui, plugins, storage } = useBlokkli();
|
|
69
|
+
const favorites = storage.use("blockFavorites", []);
|
|
70
|
+
const { placementY, caretX } = useStickyToolbar(el, {
|
|
71
|
+
getAnchorElement() {
|
|
72
|
+
return props.anchorEl;
|
|
73
|
+
},
|
|
74
|
+
getPlacementY() {
|
|
75
|
+
return "auto";
|
|
76
|
+
},
|
|
77
|
+
getPlacementX() {
|
|
78
|
+
return "center";
|
|
79
|
+
},
|
|
80
|
+
getCaretWidth() {
|
|
81
|
+
return 30;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const items = computed(() => {
|
|
85
|
+
return props.bundles.filter((bundle) => !isInternalBundle(bundle)).map((bundle) => {
|
|
86
|
+
return {
|
|
87
|
+
bundle,
|
|
88
|
+
label: types.getBlockBundleDefinition(bundle)?.label ?? bundle,
|
|
89
|
+
isFavorite: favorites.value.includes(bundle)
|
|
90
|
+
};
|
|
91
|
+
}).sort((a, b) => {
|
|
92
|
+
if (a.isFavorite && !b.isFavorite) return -1;
|
|
93
|
+
if (!a.isFavorite && b.isFavorite) return 1;
|
|
94
|
+
return a.label.localeCompare(b.label);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
const actions = computed(() => {
|
|
98
|
+
return plugins.getAddActions().filter((action) => {
|
|
99
|
+
if (!action.itemBundle) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
return props.bundles.includes(action.itemBundle);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
const onWheel = (e) => {
|
|
106
|
+
if (hasScrollbar === null) {
|
|
107
|
+
const element = listEl.value;
|
|
108
|
+
hasScrollbar = element && element.scrollHeight > element.clientHeight;
|
|
109
|
+
}
|
|
110
|
+
if (hasScrollbar) {
|
|
111
|
+
e.stopPropagation();
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
onMounted(() => {
|
|
115
|
+
ui.hasAddTooltipOpen.value = true;
|
|
116
|
+
});
|
|
117
|
+
onBeforeUnmount(() => {
|
|
118
|
+
ui.hasAddTooltipOpen.value = false;
|
|
119
|
+
});
|
|
120
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
bundles: string[];
|
|
3
|
+
anchorEl: HTMLElement;
|
|
4
|
+
label?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
select: (id: string) => void;
|
|
8
|
+
action: (id: string) => void;
|
|
9
|
+
close: () => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
onSelect?: ((id: string) => any) | undefined;
|
|
13
|
+
onAction?: ((id: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|