@blokkli/editor 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
Files changed (272) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +4003 -1162
  4. package/dist/modules/drupal/graphql/base/fragment.ParagraphsBlokkliConfigInput.graphql +31 -0
  5. package/dist/modules/drupal/graphql/base/fragment.blokkliProps.graphql +1 -0
  6. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +1 -0
  7. package/dist/modules/drupal/graphql/base/query.pbEntityConfig.graphql +5 -0
  8. package/dist/modules/drupal/graphql/features/transform.graphql +9 -1
  9. package/dist/modules/drupal/graphql/features/transform_host.graphql +38 -0
  10. package/dist/modules/drupal/graphql/mutations/update_host_options.graphql +15 -0
  11. package/dist/modules/drupal/index.d.mts +1 -1
  12. package/dist/modules/drupal/index.mjs +20 -7
  13. package/dist/modules/drupal/runtime/adapter/index.js +109 -4
  14. package/dist/runtime/adapter/index.d.ts +54 -1
  15. package/dist/runtime/blokkliPlugins/AddAction/index.vue +27 -3
  16. package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue +65 -0
  17. package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue.d.ts +26 -0
  18. package/dist/runtime/blokkliPlugins/ContextMenu/Menu/index.vue +3 -0
  19. package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +3 -2
  20. package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +3 -3
  21. package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +49 -11
  22. package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +29 -15
  23. package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +6 -7
  24. package/dist/runtime/blokkliPlugins/Sidebar/index.vue +2 -9
  25. package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +1 -1
  26. package/dist/runtime/blokkliPlugins/ViewOption/index.vue +6 -3
  27. package/dist/runtime/blokkliPlugins/index.d.ts +8 -7
  28. package/dist/runtime/blokkliPlugins/index.js +15 -13
  29. package/dist/runtime/components/Blocks/Fragment/icon.svg +1 -1
  30. package/dist/runtime/components/BlokkliProvider.vue +1 -0
  31. package/dist/runtime/components/BlokkliProvider.vue.d.ts +1 -0
  32. package/dist/runtime/components/Edit/Actions/index.vue +39 -67
  33. package/dist/runtime/components/Edit/AddListItem/index.vue +2 -5
  34. package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +1 -1
  35. package/dist/runtime/components/Edit/AddListItemIcon/index.vue +19 -0
  36. package/dist/runtime/components/Edit/AddListItemIcon/index.vue.d.ts +15 -0
  37. package/dist/runtime/components/Edit/AppMenu/index.vue +5 -5
  38. package/dist/runtime/components/Edit/Dialog/index.vue +5 -1
  39. package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +1 -1
  40. package/dist/runtime/components/Edit/DiffViewer/State.vue +276 -0
  41. package/dist/runtime/components/Edit/DiffViewer/State.vue.d.ts +16 -0
  42. package/dist/runtime/components/Edit/DragInteractions/index.vue +35 -6
  43. package/dist/runtime/components/Edit/EditProvider.vue +46 -35
  44. package/dist/runtime/components/Edit/Features/AddList/index.vue +15 -25
  45. package/dist/runtime/components/Edit/Features/Analyze/Overlay/fragment.glsl +58 -0
  46. package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue +168 -0
  47. package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue.d.ts +9 -0
  48. package/dist/runtime/components/Edit/Features/Analyze/Overlay/vertex.glsl +72 -0
  49. package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue +159 -0
  50. package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue.d.ts +7 -0
  51. package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue +100 -0
  52. package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue.d.ts +6 -0
  53. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue +56 -0
  54. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue.d.ts +3 -0
  55. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue +87 -0
  56. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue.d.ts +7 -0
  57. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue +101 -0
  58. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue.d.ts +8 -0
  59. package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue +18 -0
  60. package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue.d.ts +8 -0
  61. package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue +92 -0
  62. package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue.d.ts +17 -0
  63. package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue +77 -0
  64. package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue.d.ts +6 -0
  65. package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.d.ts +12 -0
  66. package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.js +75 -0
  67. package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.d.ts +4 -0
  68. package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.js +5 -0
  69. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.d.ts +32 -0
  70. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.js +45 -0
  71. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.d.ts +5 -0
  72. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.js +95 -0
  73. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.d.ts +3 -0
  74. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.js +13 -0
  75. package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.d.ts +2 -0
  76. package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.js +2 -0
  77. package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.d.ts +2 -0
  78. package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.js +165 -0
  79. package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.d.ts +44 -0
  80. package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.js +0 -0
  81. package/dist/runtime/components/Edit/Features/Analyze/helper.d.ts +5 -0
  82. package/dist/runtime/components/Edit/Features/Analyze/helper.js +28 -0
  83. package/dist/runtime/components/Edit/Features/Analyze/index.vue +44 -0
  84. package/dist/runtime/components/Edit/Features/Anchors/Renderer.vue +136 -0
  85. package/dist/runtime/components/Edit/Features/Anchors/index.vue +32 -0
  86. package/dist/runtime/components/Edit/Features/Anchors/index.vue.d.ts +2 -0
  87. package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue +25 -13
  88. package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue +296 -0
  89. package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue.d.ts +7 -0
  90. package/dist/runtime/components/Edit/Features/Artboard/index.vue +10 -245
  91. package/dist/runtime/components/Edit/Features/Assistant/index.vue +3 -2
  92. package/dist/runtime/components/Edit/Features/BlockAddList/index.vue +4 -4
  93. package/dist/runtime/components/Edit/Features/Clipboard/index.vue +161 -28
  94. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue +16 -4
  95. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue.d.ts +0 -1
  96. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +4 -53
  97. package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +3 -2
  98. package/dist/runtime/components/Edit/Features/Conversions/index.vue +12 -14
  99. package/dist/runtime/components/Edit/Features/Debug/Viewport/index.vue +14 -0
  100. package/dist/runtime/components/Edit/Features/Debug/index.vue +27 -24
  101. package/dist/runtime/components/Edit/Features/Diff/DiffView/index.vue +13 -190
  102. package/dist/runtime/components/Edit/Features/Diff/index.vue +2 -2
  103. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +4 -4
  104. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +1 -1
  105. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +35 -71
  106. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/vertex.glsl +1 -1
  107. package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +62 -48
  108. package/dist/runtime/components/Edit/Features/EditForm/Frame/index.vue +3 -3
  109. package/dist/runtime/components/Edit/Features/EditForm/index.vue +3 -3
  110. package/dist/runtime/components/Edit/Features/EditableField/index.vue +6 -2
  111. package/dist/runtime/components/Edit/Features/EditableMask/index.vue +3 -20
  112. package/dist/runtime/components/Edit/Features/Fragments/index.vue +3 -2
  113. package/dist/runtime/components/Edit/Features/History/index.vue +35 -12
  114. package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +6 -2
  115. package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +3 -2
  116. package/dist/runtime/components/Edit/Features/Library/index.vue +11 -9
  117. package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +5 -8
  118. package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/fragment.glsl +1 -1
  119. package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/index.vue +9 -4
  120. package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/vertex.glsl +1 -1
  121. package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +8 -14
  122. package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +3 -2
  123. package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue.d.ts +2 -0
  124. package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +9 -3
  125. package/dist/runtime/components/Edit/Features/Options/Form/Item.vue.d.ts +0 -1
  126. package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +37 -19
  127. package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue.d.ts +8 -2
  128. package/dist/runtime/components/Edit/Features/Options/Form/index.vue +81 -37
  129. package/dist/runtime/components/Edit/Features/Options/Form/index.vue.d.ts +5 -5
  130. package/dist/runtime/components/Edit/Features/Options/index.vue +30 -6
  131. package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +3 -3
  132. package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +1 -0
  133. package/dist/runtime/components/Edit/Features/Publish/index.vue +3 -2
  134. package/dist/runtime/components/Edit/Features/Revert/index.vue +3 -3
  135. package/dist/runtime/components/Edit/Features/Search/index.vue +3 -2
  136. package/dist/runtime/components/Edit/Features/Selection/AddButtons/AddButtonsField.vue +54 -0
  137. package/dist/runtime/components/Edit/Features/Selection/AddButtons/AddButtonsField.vue.d.ts +14 -0
  138. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue +120 -0
  139. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue.d.ts +15 -0
  140. package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue +459 -0
  141. package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue.d.ts +6 -0
  142. package/dist/runtime/components/Edit/Features/Selection/Overlay/fragment.glsl +14 -9
  143. package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +32 -11
  144. package/dist/runtime/components/Edit/Features/Selection/Overlay/vertex.glsl +1 -1
  145. package/dist/runtime/components/Edit/Features/Selection/index.vue +76 -7
  146. package/dist/runtime/components/Edit/Features/Settings/Dialog/FeatureSetting/index.vue +12 -17
  147. package/dist/runtime/components/Edit/Features/Settings/index.vue +11 -25
  148. package/dist/runtime/components/Edit/Features/Theme/Color/index.vue +5 -1
  149. package/dist/runtime/components/Edit/Features/Theme/index.vue +2 -1
  150. package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +3 -2
  151. package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue +198 -0
  152. package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue.d.ts +13 -0
  153. package/dist/runtime/components/Edit/Features/Transform/index.vue +155 -44
  154. package/dist/runtime/components/Edit/Form/Radio/index.vue +33 -0
  155. package/dist/runtime/components/Edit/Form/Radio/index.vue.d.ts +20 -0
  156. package/dist/runtime/components/Edit/Form/RadioTabs/index.vue +37 -0
  157. package/dist/runtime/components/Edit/Form/RadioTabs/index.vue.d.ts +22 -0
  158. package/dist/runtime/components/Edit/Form/Select/index.vue +29 -0
  159. package/dist/runtime/components/Edit/Form/Select/index.vue.d.ts +20 -0
  160. package/dist/runtime/components/Edit/Form/Text/index.vue +33 -0
  161. package/dist/runtime/components/Edit/Form/Text/index.vue.d.ts +19 -0
  162. package/dist/runtime/components/Edit/Form/Textarea/index.vue +13 -6
  163. package/dist/runtime/components/Edit/Form/Textarea/index.vue.d.ts +4 -0
  164. package/dist/runtime/components/Edit/FormOverlay/index.vue +1 -1
  165. package/dist/runtime/components/Edit/Indicators/index.vue +123 -0
  166. package/dist/runtime/components/Edit/Indicators/index.vue.d.ts +2 -0
  167. package/dist/runtime/components/Edit/ItemIcon/index.vue +2 -1
  168. package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue +66 -0
  169. package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue.d.ts +7 -0
  170. package/dist/runtime/components/Edit/Konami/Game/blokkli.png +0 -0
  171. package/dist/runtime/components/Edit/Konami/Game/charmap.d.ts +2 -0
  172. package/dist/runtime/components/Edit/Konami/Game/charmap.js +168 -0
  173. package/dist/runtime/components/Edit/Konami/Game/index.vue +745 -0
  174. package/dist/runtime/components/Edit/Konami/Game/index.vue.d.ts +6 -0
  175. package/dist/runtime/components/Edit/Konami/Game/textRendering.d.ts +8 -0
  176. package/dist/runtime/components/Edit/Konami/Game/textRendering.js +138 -0
  177. package/dist/runtime/components/Edit/Konami/Game/useIconRendering.d.ts +9 -0
  178. package/dist/runtime/components/Edit/Konami/Game/useIconRendering.js +130 -0
  179. package/dist/runtime/components/Edit/Konami/index.vue +44 -0
  180. package/dist/runtime/components/Edit/Konami/index.vue.d.ts +2 -0
  181. package/dist/runtime/components/Edit/Loading/index.vue +6 -2
  182. package/dist/runtime/components/Edit/Loading/index.vue.d.ts +2 -0
  183. package/dist/runtime/components/Edit/Messages/index.vue +8 -3
  184. package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue +17 -0
  185. package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue.d.ts +11 -0
  186. package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue +37 -0
  187. package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue.d.ts +11 -0
  188. package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue +43 -0
  189. package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue.d.ts +11 -0
  190. package/dist/runtime/components/Edit/PluginConfigForm/index.vue +57 -0
  191. package/dist/runtime/components/Edit/PluginConfigForm/index.vue.d.ts +16 -0
  192. package/dist/runtime/components/Edit/PreviewProvider.vue +3 -4
  193. package/dist/runtime/components/Edit/RelativeTime/index.vue +3 -2
  194. package/dist/runtime/components/Edit/ShortcutIndicator/index.vue +8 -3
  195. package/dist/runtime/components/Edit/SystemRequirements/index.vue +3 -3
  196. package/dist/runtime/components/Edit/Toolbar/index.vue +3 -2
  197. package/dist/runtime/components/Edit/Transition/index.vue +41 -0
  198. package/dist/runtime/components/Edit/Transition/index.vue.d.ts +19 -0
  199. package/dist/runtime/components/Edit/index.d.ts +23 -15
  200. package/dist/runtime/components/Edit/index.js +44 -28
  201. package/dist/runtime/composables/defineBlokkli.js +7 -3
  202. package/dist/runtime/composables/defineBlokkliFeature.d.ts +4 -7
  203. package/dist/runtime/composables/defineBlokkliProvider.d.ts +11 -0
  204. package/dist/runtime/composables/defineBlokkliProvider.js +46 -0
  205. package/dist/runtime/composables/useBlokkliHelper.js +1 -1
  206. package/dist/runtime/constants/index.d.ts +3 -0
  207. package/dist/runtime/constants/index.js +3 -0
  208. package/dist/runtime/css/output.css +1 -1
  209. package/dist/runtime/helpers/addElementClasses.d.ts +2 -0
  210. package/dist/runtime/helpers/addElementClasses.js +24 -0
  211. package/dist/runtime/helpers/animationProvider.d.ts +4 -2
  212. package/dist/runtime/helpers/animationProvider.js +7 -2
  213. package/dist/runtime/helpers/bundles/index.d.ts +1 -0
  214. package/dist/runtime/helpers/bundles/index.js +4 -0
  215. package/dist/runtime/helpers/composables/useStickyToolbar.d.ts +20 -0
  216. package/dist/runtime/helpers/composables/useStickyToolbar.js +215 -0
  217. package/dist/runtime/helpers/definitionProvider.d.ts +2 -1
  218. package/dist/runtime/helpers/definitionProvider.js +17 -0
  219. package/dist/runtime/helpers/domProvider.d.ts +2 -1
  220. package/dist/runtime/helpers/domProvider.js +89 -43
  221. package/dist/runtime/helpers/dropTargets/index.d.ts +6 -0
  222. package/dist/runtime/helpers/dropTargets/index.js +49 -0
  223. package/dist/runtime/helpers/eventBus.d.ts +1 -1
  224. package/dist/runtime/helpers/eventBus.js +2 -2
  225. package/dist/runtime/helpers/index.d.ts +10 -1
  226. package/dist/runtime/helpers/index.js +57 -0
  227. package/dist/runtime/helpers/indicatorsProvider.d.ts +10 -0
  228. package/dist/runtime/helpers/indicatorsProvider.js +23 -0
  229. package/dist/runtime/helpers/keyboardProvider.d.ts +2 -0
  230. package/dist/runtime/helpers/keyboardProvider.js +17 -1
  231. package/dist/runtime/helpers/pluginProvider.d.ts +10 -0
  232. package/dist/runtime/helpers/pluginProvider.js +33 -0
  233. package/dist/runtime/helpers/renderCycle.d.ts +1 -0
  234. package/dist/runtime/helpers/renderCycle.js +10 -0
  235. package/dist/runtime/helpers/runtimeHelpers/index.js +14 -11
  236. package/dist/runtime/helpers/selectionProvider.d.ts +16 -0
  237. package/dist/runtime/helpers/selectionProvider.js +47 -35
  238. package/dist/runtime/helpers/stateProvider.d.ts +6 -2
  239. package/dist/runtime/helpers/stateProvider.js +58 -14
  240. package/dist/runtime/helpers/storageProvider.d.ts +4 -3
  241. package/dist/runtime/helpers/storageProvider.js +56 -3
  242. package/dist/runtime/helpers/symbols.d.ts +1 -0
  243. package/dist/runtime/helpers/symbols.js +1 -0
  244. package/dist/runtime/helpers/textProvider.js +6 -0
  245. package/dist/runtime/helpers/themeProvider.d.ts +2 -0
  246. package/dist/runtime/helpers/themeProvider.js +4 -1
  247. package/dist/runtime/helpers/transform.js +1 -3
  248. package/dist/runtime/helpers/uiProvider.d.ts +7 -2
  249. package/dist/runtime/helpers/uiProvider.js +49 -47
  250. package/dist/runtime/helpers/useTransitionedValue.d.ts +18 -0
  251. package/dist/runtime/helpers/useTransitionedValue.js +57 -0
  252. package/dist/runtime/icons/anchor.svg +1 -0
  253. package/dist/runtime/icons/arrow-left.svg +1 -1
  254. package/dist/runtime/icons/arrow-right.svg +1 -1
  255. package/dist/runtime/icons/arrow-top-right.svg +1 -0
  256. package/dist/runtime/icons/chart.svg +1 -0
  257. package/dist/runtime/icons/copy.svg +1 -0
  258. package/dist/runtime/icons/cursor-move.svg +1 -1
  259. package/dist/runtime/icons/diff.svg +1 -1
  260. package/dist/runtime/icons/eye.svg +1 -1
  261. package/dist/runtime/icons/info.svg +1 -1
  262. package/dist/runtime/icons/link.svg +1 -0
  263. package/dist/runtime/icons/speedometer.svg +1 -0
  264. package/dist/runtime/types/blokkOptions.d.ts +8 -0
  265. package/dist/runtime/types/index.d.ts +163 -5
  266. package/dist/runtime/types/theme.d.ts +2 -1
  267. package/dist/shared/{editor.gz_ac6uT.d.mts → editor.CKsrTpc1.d.mts} +1 -1
  268. package/package.json +20 -5
  269. package/dist/runtime/components/Edit/Features/FieldAreas/Overlay/index.vue +0 -22
  270. package/dist/runtime/components/Edit/Features/FieldAreas/index.vue +0 -41
  271. /package/dist/runtime/components/Edit/Features/{FieldAreas/Overlay → Analyze}/index.vue.d.ts +0 -0
  272. /package/dist/runtime/components/Edit/Features/{FieldAreas/index.vue.d.ts → Anchors/Renderer.vue.d.ts} +0 -0
@@ -0,0 +1,296 @@
1
+ <template>
2
+ <Scrollbar :artboard="artboard" orientation="y" />
3
+ <PluginToolbarButton
4
+ id="artboard_reset_zoom"
5
+ :title="$t('artboardResetZoom', 'Reset zoom')"
6
+ :shortcut-group="$t('artboard', 'Artboard')"
7
+ :tour-text="
8
+ $t(
9
+ 'artboardToolbarButtonTourText',
10
+ 'Shows the current zoom factor. Click on it to reset the zoom back to 100%.'
11
+ )
12
+ "
13
+ icon="magnifier"
14
+ meta
15
+ key-code="0"
16
+ region="view-options"
17
+ weight="100"
18
+ @click="resetZoom"
19
+ >
20
+ <div class="bk-feature-canvas-button">
21
+ <span>{{ zoomLevel }}</span>
22
+ </div>
23
+ </PluginToolbarButton>
24
+
25
+ <PluginViewOption
26
+ id="artboardOverview"
27
+ v-slot="{ isActive }"
28
+ :label="$t('artboardOverviewToggle', 'Toggle overview')"
29
+ :title-on="$t('artboardOverviewShow', 'Show overview')"
30
+ :title-off="$t('artboardOverviewHide', 'Hide overview')"
31
+ :tour-text="
32
+ $t(
33
+ 'artboardOverviewTourText',
34
+ `Displays a top level overview of your content.`
35
+ )
36
+ "
37
+ icon="eye"
38
+ key-code="O"
39
+ weight="90"
40
+ >
41
+ <Teleport v-if="isActive && dom.isReady.value" to="body">
42
+ <Overview :artboard="artboard" />
43
+ </Teleport>
44
+ </PluginViewOption>
45
+ </template>
46
+
47
+ <script setup>
48
+ import {
49
+ watch,
50
+ computed,
51
+ useBlokkli,
52
+ onMounted,
53
+ onBeforeUnmount
54
+ } from "#imports";
55
+ import {
56
+ asValidNumber,
57
+ isInsideRect,
58
+ subtractRectFromViewport
59
+ } from "#blokkli/helpers";
60
+ import { PluginToolbarButton, PluginViewOption } from "#blokkli/plugins";
61
+ import Overview from "./Overview/index.vue";
62
+ import Scrollbar from "./Scrollbar/index.vue";
63
+ import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
64
+ import {
65
+ createArtboard,
66
+ touch,
67
+ wheel,
68
+ mouse,
69
+ dom as domPlugin
70
+ } from "artboard-deluxe";
71
+ import { addElementClasses } from "#blokkli/helpers/addElementClasses";
72
+ const props = defineProps({
73
+ persist: { type: Boolean, required: true },
74
+ momentum: { type: Boolean, required: true },
75
+ scrollSpeed: { type: Number, required: true }
76
+ });
77
+ addElementClasses(document.documentElement, "bk-is-artboard");
78
+ const { context, storage, ui, animation, $t, dom, selection } = useBlokkli();
79
+ const artboardElement = ui.artboardElement();
80
+ const zoomLevel = computed(() => Math.round(ui.artboardScale.value * 100) + "%");
81
+ const PADDING = 50;
82
+ const options = computed(() => {
83
+ return {
84
+ maxScale: ui.isMobile.value ? 1 : 3,
85
+ direction: ui.isMobile.value ? "vertical" : "both",
86
+ minScale: 0.1,
87
+ overscrollBounds: {
88
+ top: ui.visibleViewport.value.y + PADDING,
89
+ left: ui.visibleViewport.value.x + PADDING,
90
+ right: ui.viewport.value.width - ui.visibleViewport.value.width - ui.visibleViewport.value.x + PADDING,
91
+ bottom: PADDING
92
+ },
93
+ getBlockingRects: () => {
94
+ const toolbarRects = subtractRectFromViewport(
95
+ ui.viewport.value,
96
+ ui.visibleViewport.value
97
+ );
98
+ return [...toolbarRects, ...ui.viewportBlockingRects.value];
99
+ }
100
+ };
101
+ });
102
+ watch(options, function(newOptions) {
103
+ artboard.setOptions(newOptions);
104
+ });
105
+ const storageKey = computed(
106
+ () => "artboard:" + context.value.entityUuid + (ui.isMobile.value ? "mobile" : "desktop")
107
+ );
108
+ const savedState = storage.use(storageKey, null);
109
+ const saveState = () => {
110
+ if (!props.persist) {
111
+ return;
112
+ }
113
+ savedState.value = {
114
+ offset: artboard.getOffset(),
115
+ scale: artboard.getScale()
116
+ };
117
+ };
118
+ let pluginWheel = null;
119
+ const wheelOptions = computed(() => {
120
+ return {
121
+ useMomentumZoom: props.momentum,
122
+ useMomentumScroll: props.momentum,
123
+ interceptWheel: true,
124
+ scrollSpeed: props.scrollSpeed,
125
+ wheelZoomFactor: props.scrollSpeed
126
+ };
127
+ });
128
+ watch(wheelOptions, function(newOptions) {
129
+ if (pluginWheel) {
130
+ pluginWheel.options.setAll(newOptions);
131
+ }
132
+ });
133
+ watch(selection.uuids, function() {
134
+ if (artboard.getMomentum()) {
135
+ artboard.cancelAnimation();
136
+ }
137
+ });
138
+ function getArtboard() {
139
+ pluginWheel = wheel(wheelOptions.value);
140
+ return createArtboard(
141
+ ui.rootElement(),
142
+ [
143
+ mouse(),
144
+ touch(),
145
+ pluginWheel,
146
+ domPlugin({
147
+ element: artboardElement,
148
+ precision: 1,
149
+ restoreStyles: true
150
+ })
151
+ ],
152
+ {
153
+ initTransform: savedState.value && props.persist ? {
154
+ x: asValidNumber(savedState.value.offset.x, 0),
155
+ y: asValidNumber(savedState.value.offset.y, 0),
156
+ scale: asValidNumber(savedState.value?.scale, 1)
157
+ } : void 0,
158
+ ...options.value
159
+ }
160
+ );
161
+ }
162
+ const artboard = getArtboard();
163
+ watch(options, function(newOptions) {
164
+ artboard.setOptions(newOptions);
165
+ });
166
+ const AUTOSCROLL_EDGE_ZONE = 130;
167
+ const AUTOSCROLL_SPEED = 12;
168
+ let autoScrollSpeed = 1;
169
+ function edgeStep(distance) {
170
+ const ratio = distance / AUTOSCROLL_EDGE_ZONE;
171
+ return Math.pow(ratio, 3) * AUTOSCROLL_SPEED;
172
+ }
173
+ let hasLeftAddList = false;
174
+ onBlokkliEvent("dragging:end", () => {
175
+ hasLeftAddList = false;
176
+ });
177
+ onBlokkliEvent("animationFrame:before", ({ time, mouseY, mouseX }) => {
178
+ if (selection.isDragging.value) {
179
+ if (ui.addListOrientation.value === "horizontal") {
180
+ if (!hasLeftAddList) {
181
+ if (isInsideRect(mouseX, mouseY, ui.visibleViewportPadded.value)) {
182
+ hasLeftAddList = true;
183
+ } else {
184
+ return;
185
+ }
186
+ }
187
+ }
188
+ const viewportHeight = ui.viewport.value.height;
189
+ const currentOffset = artboard.getOffset();
190
+ const y = Math.min(Math.max(mouseY, 0), viewportHeight);
191
+ let dy = 0;
192
+ if (y < AUTOSCROLL_EDGE_ZONE) {
193
+ const dist = AUTOSCROLL_EDGE_ZONE - y;
194
+ dy = edgeStep(dist);
195
+ } else if (y > viewportHeight - AUTOSCROLL_EDGE_ZONE) {
196
+ const dist = y - (viewportHeight - AUTOSCROLL_EDGE_ZONE);
197
+ dy = -edgeStep(dist);
198
+ } else {
199
+ autoScrollSpeed = 1;
200
+ }
201
+ if (dy !== 0) {
202
+ artboard.setOffset(null, currentOffset.y + dy * autoScrollSpeed);
203
+ autoScrollSpeed = Math.min(autoScrollSpeed * 1.01, 2.25);
204
+ }
205
+ } else {
206
+ autoScrollSpeed = 1;
207
+ }
208
+ artboard.loop(time);
209
+ const artboardSize = artboard.getArtboardSize();
210
+ if (artboardSize) {
211
+ ui.artboardSize.value.height = artboardSize.height;
212
+ ui.artboardSize.value.width = artboardSize.width;
213
+ }
214
+ const offset = artboard.getOffset();
215
+ ui.artboardOffset.value.x = asValidNumber(Math.ceil(offset.x), 0);
216
+ ui.artboardOffset.value.y = asValidNumber(Math.ceil(offset.y), 0);
217
+ ui.artboardScale.value = asValidNumber(artboard.getScale(), 1);
218
+ animation.requestDraw();
219
+ });
220
+ onMounted(() => {
221
+ window.addEventListener("beforeunload", saveState);
222
+ });
223
+ onBeforeUnmount(() => {
224
+ saveState();
225
+ artboard.destroy();
226
+ window.removeEventListener("beforeunload", saveState);
227
+ });
228
+ const resetZoom = () => {
229
+ artboard.resetZoom({
230
+ duration: 500
231
+ });
232
+ animation.requestDraw();
233
+ };
234
+ onBlokkliEvent("keyPressed", (e) => {
235
+ if (e.code === "Home") {
236
+ e.originalEvent.preventDefault();
237
+ artboard.scrollToTop();
238
+ animation.requestDraw();
239
+ } else if (e.code === "End") {
240
+ e.originalEvent.preventDefault();
241
+ artboard.scrollToEnd();
242
+ animation.requestDraw();
243
+ } else if (e.code === "PageUp") {
244
+ e.originalEvent.preventDefault();
245
+ artboard.scrollPageUp();
246
+ animation.requestDraw();
247
+ } else if (e.code === "PageDown") {
248
+ e.originalEvent.preventDefault();
249
+ artboard.scrollPageDown();
250
+ animation.requestDraw();
251
+ } else if (e.code === "ArrowUp") {
252
+ e.originalEvent.preventDefault();
253
+ artboard.scrollUp();
254
+ animation.requestDraw();
255
+ } else if (e.code === "ArrowDown") {
256
+ e.originalEvent.preventDefault();
257
+ artboard.scrollDown();
258
+ animation.requestDraw();
259
+ } else if (e.code === "0" && e.meta) {
260
+ e.originalEvent.preventDefault();
261
+ resetZoom();
262
+ } else if (e.code === "1" && e.meta) {
263
+ e.originalEvent.preventDefault();
264
+ artboard.scaleToFit();
265
+ animation.requestDraw();
266
+ }
267
+ });
268
+ onBlokkliEvent("scrollIntoView", (e) => {
269
+ if ("uuid" in e) {
270
+ const rect = dom.getBlockRect(e.uuid);
271
+ if (!rect) {
272
+ return;
273
+ }
274
+ if (dom.isBlockVisible(e.uuid)) {
275
+ return;
276
+ }
277
+ artboard.scrollIntoView(rect, {
278
+ scale: "none",
279
+ axis: "y",
280
+ behavior: e.immediate ? "instant" : "auto"
281
+ });
282
+ } else {
283
+ if (artboardElement.contains(e.element)) {
284
+ artboard.scrollElementIntoView(e.element, {
285
+ scale: "none",
286
+ axis: "y",
287
+ behavior: e.immediate ? "instant" : "auto"
288
+ });
289
+ } else {
290
+ artboard.scrollToTop({
291
+ duration: 0
292
+ });
293
+ }
294
+ }
295
+ });
296
+ </script>
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ persist: boolean;
3
+ momentum: boolean;
4
+ scrollSpeed: number;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -1,72 +1,16 @@
1
1
  <template>
2
- <PluginToolbarButton
3
- id="artboard_reset_zoom"
4
- :title="$t('artboardResetZoom', 'Reset zoom')"
5
- :shortcut-group="$t('artboard', 'Artboard')"
6
- :tour-text="
7
- $t(
8
- 'artboardToolbarButtonTourText',
9
- 'Shows the current zoom factor. Click on it to reset the zoom back to 100%.'
10
- )
11
- "
12
- icon="magnifier"
13
- meta
14
- key-code="0"
15
- region="view-options"
16
- weight="100"
17
- @click="resetZoom"
18
- >
19
- <div class="bk-feature-canvas-button">
20
- <span>{{ zoomLevel }}</span>
21
- </div>
22
- </PluginToolbarButton>
23
-
24
- <PluginViewOption
25
- id="artboardOverview"
26
- v-slot="{ isActive }"
27
- :label="$t('artboardOverviewToggle', 'Toggle overview')"
28
- :title-on="$t('artboardOverviewShow', 'Show overview')"
29
- :title-off="$t('artboardOverviewHide', 'Hide overview')"
30
- :tour-text="
31
- $t(
32
- 'artboardOverviewTourText',
33
- `Displays a top level overview of your content.`
34
- )
35
- "
36
- icon="eye"
37
- key-code="O"
38
- weight="90"
39
- >
40
- <Teleport v-if="isActive" to="body">
41
- <Overview :artboard="artboard" />
42
- </Teleport>
43
- </PluginViewOption>
44
-
45
- <Scrollbar :artboard="artboard" orientation="y" />
2
+ <Renderer
3
+ v-if="renderArtboard"
4
+ :persist="settings.persist"
5
+ :momentum="settings.momentum"
6
+ :scroll-speed="settings.scrollSpeed"
7
+ />
46
8
  </template>
47
9
 
48
10
  <script setup>
49
- import {
50
- watch,
51
- computed,
52
- useBlokkli,
53
- onMounted,
54
- onBeforeUnmount,
55
- defineBlokkliFeature
56
- } from "#imports";
57
- import { PluginToolbarButton, PluginViewOption } from "#blokkli/plugins";
58
- import { asValidNumber } from "#blokkli/helpers";
59
- import Overview from "./Overview/index.vue";
60
- import Scrollbar from "./Scrollbar/index.vue";
61
- import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
11
+ import { computed, useBlokkli, defineBlokkliFeature } from "#imports";
62
12
  import defineShortcut from "#blokkli/helpers/composables/defineShortcut";
63
- import {
64
- createArtboard,
65
- touch,
66
- wheel,
67
- mouse,
68
- dom as domPlugin
69
- } from "artboard-deluxe";
13
+ import Renderer from "./Renderer.vue";
70
14
  const { settings } = defineBlokkliFeature({
71
15
  id: "artboard",
72
16
  label: "Artboard",
@@ -102,173 +46,8 @@ const { settings } = defineBlokkliFeature({
102
46
  },
103
47
  screenshot: "feature-artboard.jpg"
104
48
  });
105
- const { context, storage, ui, animation, $t, dom, selection } = useBlokkli();
106
- const zoomLevel = computed(() => Math.round(ui.artboardScale.value * 100) + "%");
107
- const PADDING = 50;
108
- const options = computed(() => {
109
- return {
110
- maxScale: ui.isMobile.value ? 1 : 3,
111
- direction: ui.isMobile.value ? "vertical" : "both",
112
- minScale: 0.1,
113
- overscrollBounds: {
114
- top: ui.visibleViewport.value.y + PADDING,
115
- left: ui.visibleViewport.value.x + PADDING,
116
- right: ui.viewport.value.width - ui.visibleViewport.value.width - ui.visibleViewport.value.x + PADDING,
117
- bottom: PADDING
118
- }
119
- };
120
- });
121
- watch(options, function(newOptions) {
122
- artboard.setOptions(newOptions);
123
- });
124
- const storageKey = computed(() => "artboard:" + context.value.entityUuid);
125
- const savedState = storage.use(storageKey, null);
126
- const saveState = () => {
127
- if (!settings.value.persist) {
128
- return;
129
- }
130
- savedState.value = {
131
- offset: artboard.getOffset(),
132
- scale: artboard.getScale()
133
- };
134
- };
135
- let pluginWheel = null;
136
- const wheelOptions = computed(() => {
137
- return {
138
- useMomentumZoom: settings.value.momentum,
139
- useMomentumScroll: settings.value.momentum,
140
- interceptWheel: true,
141
- scrollSpeed: settings.value.scrollSpeed,
142
- wheelZoomFactor: settings.value.scrollSpeed
143
- };
144
- });
145
- watch(wheelOptions, function(newOptions) {
146
- if (pluginWheel) {
147
- pluginWheel.options.setAll(newOptions);
148
- }
149
- });
150
- watch(selection.uuids, function() {
151
- if (artboard.getMomentum()) {
152
- artboard.cancelAnimation();
153
- }
154
- });
155
- function getArtboard() {
156
- pluginWheel = wheel(wheelOptions.value);
157
- return createArtboard(
158
- ui.rootElement(),
159
- [
160
- mouse(),
161
- touch(),
162
- pluginWheel,
163
- domPlugin({
164
- element: ui.artboardElement(),
165
- precision: 1,
166
- restoreStyles: true
167
- })
168
- ],
169
- {
170
- initTransform: savedState.value && settings.value.persist ? {
171
- x: asValidNumber(savedState.value.offset.x, 0),
172
- y: asValidNumber(savedState.value.offset.y, 0),
173
- scale: asValidNumber(savedState.value?.scale, 1)
174
- } : void 0,
175
- ...options.value
176
- }
177
- );
178
- }
179
- const artboard = getArtboard();
180
- watch(options, function(newOptions) {
181
- artboard.setOptions(newOptions);
182
- });
183
- const AUTOSCROLL_EDGE_ZONE = 130;
184
- const AUTOSCROLL_SPEED = 12;
185
- let autoScrollSpeed = 1;
186
- function edgeStep(distance) {
187
- const ratio = distance / AUTOSCROLL_EDGE_ZONE;
188
- return Math.pow(ratio, 3) * AUTOSCROLL_SPEED;
189
- }
190
- onBlokkliEvent("animationFrame:before", ({ time, mouseY }) => {
191
- if (selection.isDragging.value) {
192
- const viewportHeight = ui.viewport.value.height;
193
- const currentOffset = artboard.getOffset();
194
- const y = Math.min(Math.max(mouseY, 0), viewportHeight);
195
- let dy = 0;
196
- if (y < AUTOSCROLL_EDGE_ZONE) {
197
- const dist = AUTOSCROLL_EDGE_ZONE - y;
198
- dy = edgeStep(dist);
199
- } else if (y > viewportHeight - AUTOSCROLL_EDGE_ZONE) {
200
- const dist = y - (viewportHeight - AUTOSCROLL_EDGE_ZONE);
201
- dy = -edgeStep(dist);
202
- } else {
203
- autoScrollSpeed = 1;
204
- }
205
- if (dy !== 0) {
206
- artboard.setOffset(null, currentOffset.y + dy * autoScrollSpeed);
207
- autoScrollSpeed = Math.min(autoScrollSpeed * 1.01, 2.25);
208
- }
209
- } else {
210
- autoScrollSpeed = 1;
211
- }
212
- artboard.loop(time);
213
- const artboardSize = artboard.getArtboardSize();
214
- if (artboardSize) {
215
- ui.artboardSize.value.height = artboardSize.height;
216
- ui.artboardSize.value.width = artboardSize.width;
217
- }
218
- const offset = artboard.getOffset();
219
- ui.artboardOffset.value.x = asValidNumber(Math.ceil(offset.x), 0);
220
- ui.artboardOffset.value.y = asValidNumber(Math.ceil(offset.y), 0);
221
- ui.artboardScale.value = asValidNumber(artboard.getScale(), 1);
222
- animation.requestDraw();
223
- });
224
- onMounted(() => {
225
- window.addEventListener("beforeunload", saveState);
226
- });
227
- onBeforeUnmount(() => {
228
- saveState();
229
- artboard.destroy();
230
- window.removeEventListener("beforeunload", saveState);
231
- });
232
- const resetZoom = () => {
233
- artboard.resetZoom({
234
- duration: 500
235
- });
236
- animation.requestDraw();
237
- };
238
- onBlokkliEvent("keyPressed", (e) => {
239
- if (e.code === "Home") {
240
- e.originalEvent.preventDefault();
241
- artboard.scrollToTop();
242
- animation.requestDraw();
243
- } else if (e.code === "End") {
244
- e.originalEvent.preventDefault();
245
- artboard.scrollToEnd();
246
- animation.requestDraw();
247
- } else if (e.code === "PageUp") {
248
- e.originalEvent.preventDefault();
249
- artboard.scrollPageUp();
250
- animation.requestDraw();
251
- } else if (e.code === "PageDown") {
252
- e.originalEvent.preventDefault();
253
- artboard.scrollPageDown();
254
- animation.requestDraw();
255
- } else if (e.code === "ArrowUp") {
256
- e.originalEvent.preventDefault();
257
- artboard.scrollUp();
258
- animation.requestDraw();
259
- } else if (e.code === "ArrowDown") {
260
- e.originalEvent.preventDefault();
261
- artboard.scrollDown();
262
- animation.requestDraw();
263
- } else if (e.code === "0" && e.meta) {
264
- e.originalEvent.preventDefault();
265
- resetZoom();
266
- } else if (e.code === "1" && e.meta) {
267
- e.originalEvent.preventDefault();
268
- artboard.scaleToFit();
269
- animation.requestDraw();
270
- }
271
- });
49
+ const { ui, $t } = useBlokkli();
50
+ const renderArtboard = computed(() => !ui.isAnalyzing.value);
272
51
  defineShortcut(
273
52
  [
274
53
  {
@@ -304,20 +83,6 @@ defineShortcut(
304
83
  return { ...v, group: $t("artboard", "Artboard") };
305
84
  })
306
85
  );
307
- onBlokkliEvent("scrollIntoView", (e) => {
308
- const rect = dom.getBlockRect(e.uuid);
309
- if (!rect) {
310
- return;
311
- }
312
- if (dom.isBlockVisible(e.uuid)) {
313
- return;
314
- }
315
- artboard.scrollIntoView(rect, {
316
- scale: "none",
317
- axis: "y",
318
- behavior: e.immediate ? "instant" : "auto"
319
- });
320
- });
321
86
  </script>
322
87
 
323
88
  <script>
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <Teleport to="body">
3
- <transition name="bk-slide-in" :duration="200">
3
+ <BlokkliTransition name="slide-in">
4
4
  <Overlay v-if="placedAction" @close="onClose" @submit="onSubmit" />
5
- </transition>
5
+ </BlokkliTransition>
6
6
  </Teleport>
7
7
 
8
8
  <PluginAddAction
@@ -20,6 +20,7 @@
20
20
  <script setup>
21
21
  import { useBlokkli, defineBlokkliFeature, ref } from "#imports";
22
22
  import { PluginAddAction } from "#blokkli/plugins";
23
+ import { BlokkliTransition } from "#blokkli/components";
23
24
  import Overlay from "./Overlay/index.vue";
24
25
  const { adapter } = defineBlokkliFeature({
25
26
  id: "assistant",
@@ -60,6 +60,7 @@ import {
60
60
  import { AddListItem } from "#blokkli/components";
61
61
  import defineCommands from "#blokkli/helpers/composables/defineCommands";
62
62
  import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
63
+ import { isInternalBundle } from "#blokkli/helpers/bundles";
63
64
  import { PluginTourItem } from "#blokkli/plugins";
64
65
  import { getFieldKey, onlyUnique } from "#blokkli/helpers";
65
66
  const { settings } = defineBlokkliFeature({
@@ -79,7 +80,6 @@ const { settings } = defineBlokkliFeature({
79
80
  }
80
81
  }
81
82
  });
82
- const reservedBundles = ["from_library", "blokkli_fragment"];
83
83
  const {
84
84
  selection,
85
85
  storage,
@@ -174,7 +174,7 @@ function determineVisibility(bundle, label) {
174
174
  return true;
175
175
  }
176
176
  const sortedList = computed(() => {
177
- return [...generallyAvailableBundles.value].filter((v) => !reservedBundles.includes(v.id)).map((v) => {
177
+ return [...generallyAvailableBundles.value].filter((v) => !isInternalBundle(v.id)).map((v) => {
178
178
  const isVisible = determineVisibility(v.id, v.label);
179
179
  const isDisabled = !v.id || !selectableBundles.value.includes(v.id);
180
180
  return {
@@ -208,7 +208,7 @@ const getBundlesForAppendCommands = () => {
208
208
  return [];
209
209
  }
210
210
  }
211
- return field.allowedBundles.filter((v) => !reservedBundles.includes(v));
211
+ return field.allowedBundles.filter((v) => !isInternalBundle(v));
212
212
  }
213
213
  return [];
214
214
  };
@@ -227,7 +227,7 @@ const getAppendEndCommands = () => {
227
227
  return [];
228
228
  }
229
229
  }
230
- return field.allowedBundles.filter((v) => !reservedBundles.includes(v)).map((bundle) => {
230
+ return field.allowedBundles.filter((v) => !isInternalBundle(v)).map((bundle) => {
231
231
  const definition = types.getBlockBundleDefinition(bundle);
232
232
  return {
233
233
  id: "block_add_list:append_end:" + bundle + field.name,