@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
@@ -1,197 +1,20 @@
1
1
  <template>
2
- <div class="bk bk-diff-view bk-scrollbar-light">
3
- <table class="bk-diff-table">
4
- <thead>
5
- <tr>
6
- <th>{{ $t("diffTableChange", "Change") }}</th>
7
- <th>{{ $t("diffTableBundle", "Type") }}</th>
8
- <th>{{ $t("diffTableProperty", "Property") }}</th>
9
- <th>{{ $t("diffTableDiff", "Diff") }}</th>
10
- </tr>
11
- </thead>
12
- <tbody>
13
- <template v-for="item in diffItems" :key="item.uuid">
14
- <tr>
15
- <td
16
- :rowspan="Math.max(1, item.props.length)"
17
- class="bk-diff-status"
18
- >
19
- <div
20
- v-if="item.status === 'added'"
21
- class="bk-diff-status-label bk-is-added"
22
- >
23
- {{ $t("diffStatusAdded", "Added") }}
24
- </div>
25
- <div
26
- v-else-if="item.status === 'removed'"
27
- class="bk-diff-status-label bk-is-removed"
28
- >
29
- {{ $t("diffStatusDeleted", "Deleted") }}
30
- </div>
31
- <div v-else class="bk-diff-status-label">
32
- {{ $t("diffStatusEdited", "Edited") }}
33
- </div>
34
- </td>
35
- <td
36
- :rowspan="Math.max(1, item.props.length)"
37
- class="bk-diff-bundle"
38
- >
39
- <button
40
- class="bk-blokkli-item-label"
41
- :disabled="item.status === 'removed'"
42
- @click="scrollToBlock(item.uuid)"
43
- >
44
- <div class="bk-blokkli-item-label-icon">
45
- <ItemIcon :bundle="item.bundle" />
46
- </div>
47
- <span>{{ getLabel(item.bundle) }}</span>
48
- </button>
49
- </td>
50
-
51
- <template v-if="item.props.length > 0">
52
- <td>
53
- <strong>{{ item.props[0].key }}</strong>
54
- </td>
55
- <td class="bk-diff-monospace">
56
- <div class="bk-diff-prop-diff" v-html="item.props[0].diff" />
57
- </td>
58
- </template>
59
- <template v-else>
60
- <td />
61
- <td />
62
- </template>
63
- </tr>
64
- <tr
65
- v-for="prop in item.props.slice(1)"
66
- :key="prop.key"
67
- class="bk-diff-prop-row"
68
- >
69
- <td>
70
- <strong>{{ prop.key }}</strong>
71
- </td>
72
- <td class="bk-diff-monospace">
73
- <div class="bk-diff-prop-diff" v-html="prop.diff" />
74
- </td>
75
- </tr>
76
- </template>
77
- </tbody>
78
- </table>
2
+ <div class="bk bk-diff-sidebar-pane">
3
+ <DiffViewerState
4
+ v-if="stateBefore"
5
+ :state-before
6
+ :state-after
7
+ scheme="orange"
8
+ />
79
9
  </div>
80
10
  </template>
81
11
 
82
12
  <script setup>
83
- import { computed, useBlokkli } from "#imports";
84
- import { ItemIcon } from "#blokkli/components";
85
- import diff from "html-diff-ts";
86
- const { types, $t, adapter, state, eventBus, dom, definitions } = useBlokkli();
87
- function getProps(bundle, props) {
88
- const definition = definitions.getDefaultDefinition(bundle);
89
- if (definition?.editor?.mapDiffProps) {
90
- return definition.editor.mapDiffProps(props);
91
- }
92
- if (typeof props === "object") {
93
- return Object.entries(props).reduce(
94
- (acc, [key, value]) => {
95
- if (typeof value === "string" || typeof value === "number") {
96
- acc[key] = value.toString();
97
- } else if (typeof value === "object") {
98
- try {
99
- const json = JSON.stringify(value, null, 2);
100
- acc[key] = `<pre>${json}</pre>`;
101
- } catch {
102
- }
103
- }
104
- return acc;
105
- },
106
- {}
107
- );
108
- }
109
- return {};
110
- }
111
- const stateBefore = await adapter.loadStateAtIndex(-1).then(
112
- (v) => adapter.mapState(v)
113
- );
114
- function buildDiffItems(fields) {
115
- const items = (fields || []).flatMap((v) => v.list);
116
- return items;
117
- }
118
- const itemsBefore = computed(
119
- () => buildDiffItems(stateBefore.mutatedState?.fields)
120
- );
121
- const itemsAfter = computed(() => buildDiffItems(state.mutatedFields.value));
122
- const diffItems = computed(() => {
123
- const diffMap = /* @__PURE__ */ new Map();
124
- itemsBefore.value.forEach((beforeItem) => {
125
- const afterItem = itemsAfter.value.find(
126
- (item) => item.uuid === beforeItem.uuid
127
- );
128
- const beforeProps = getProps(beforeItem.bundle, beforeItem.props);
129
- if (!afterItem) {
130
- diffMap.set(beforeItem.uuid, {
131
- uuid: beforeItem.uuid,
132
- bundle: beforeItem.bundle,
133
- status: "removed",
134
- props: Object.entries(beforeProps).map(([key, value]) => ({
135
- key,
136
- value,
137
- diff: diff(value, "")
138
- }))
139
- });
140
- } else {
141
- const afterProps = getProps(afterItem.bundle, afterItem.props);
142
- const changedProps = [];
143
- Object.entries(beforeProps).forEach(([key, beforeValue]) => {
144
- const afterValue = afterProps[key];
145
- if (beforeValue !== afterValue) {
146
- changedProps.push({
147
- key,
148
- diff: diff(beforeValue, afterValue)
149
- });
150
- }
151
- });
152
- Object.keys(afterProps).forEach((key) => {
153
- if (!(key in beforeProps)) {
154
- changedProps.push({
155
- key,
156
- diff: diff("", afterProps[key])
157
- });
158
- }
159
- });
160
- if (changedProps.length > 0) {
161
- diffMap.set(beforeItem.uuid, {
162
- uuid: beforeItem.uuid,
163
- bundle: beforeItem.bundle,
164
- status: "changed",
165
- props: changedProps
166
- });
167
- }
168
- }
169
- });
170
- itemsAfter.value.forEach((afterItem) => {
171
- if (!itemsBefore.value.some((item) => item.uuid === afterItem.uuid)) {
172
- const afterProps = getProps(afterItem.bundle, afterItem.props);
173
- diffMap.set(afterItem.uuid, {
174
- uuid: afterItem.uuid,
175
- bundle: afterItem.bundle,
176
- status: "added",
177
- props: Object.entries(afterProps).map(([key, value]) => ({
178
- key,
179
- diff: diff("", value)
180
- }))
181
- });
182
- }
183
- });
184
- return Array.from(diffMap.values()).sort((a, b) => {
185
- const aY = dom.getBlockRect(a.uuid)?.y || 0;
186
- const bY = dom.getBlockRect(b.uuid)?.y || 0;
187
- return aY - bY;
188
- });
13
+ import { useBlokkli, useAsyncData } from "#imports";
14
+ import { DiffViewerState } from "#blokkli/components";
15
+ const { adapter, state } = useBlokkli();
16
+ const { data: stateBefore } = await useAsyncData("stateBefore", () => {
17
+ return adapter.loadStateAtIndex(-1).then((v) => adapter.mapState(v));
189
18
  });
190
- function getLabel(bundle) {
191
- return types.getBlockBundleDefinition(bundle)?.label || bundle;
192
- }
193
- function scrollToBlock(uuid) {
194
- eventBus.emit("scrollIntoView", { uuid, center: true });
195
- eventBus.emit("select", uuid);
196
- }
19
+ const stateAfter = state.getMappedState();
197
20
  </script>
@@ -9,7 +9,7 @@
9
9
  weight="-400"
10
10
  beta
11
11
  >
12
- <DiffView />
12
+ <DiffView :key="state.currentMutationIndex.value" />
13
13
  </PluginSidebar>
14
14
  </template>
15
15
 
@@ -25,7 +25,7 @@ defineBlokkliFeature({
25
25
  requiredAdapterMethods: ["loadStateAtIndex"],
26
26
  beta: true
27
27
  });
28
- const { $t } = useBlokkli();
28
+ const { $t, state } = useBlokkli();
29
29
  </script>
30
30
 
31
31
  <script>
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <div
3
- class="bk-dragging-overlay"
3
+ class="bk-vars bk-dragging-overlay"
4
4
  :style="style"
5
5
  :class="[{ 'bk-is-touch': isTouch }, { 'bk-is-active': !!activeLabel }]"
6
6
  >
7
- <Transition name="bk-drag-item">
7
+ <BlokkliTransition name="drag-item">
8
8
  <div
9
9
  v-show="activeLabel"
10
10
  class="bk-dragging-overlay-label"
@@ -13,7 +13,7 @@
13
13
  <Icon name="cursor-move" />
14
14
  <p v-html="currentActiveLabel" />
15
15
  </div>
16
- </Transition>
16
+ </BlokkliTransition>
17
17
  <div
18
18
  v-for="(rect, i) in rects"
19
19
  :key="i"
@@ -66,7 +66,7 @@ import {
66
66
  lerp,
67
67
  falsy
68
68
  } from "#blokkli/helpers";
69
- import { Icon, ItemIcon } from "#blokkli/components";
69
+ import { Icon, ItemIcon, BlokkliTransition } from "#blokkli/components";
70
70
  import { easeOutElastic } from "#blokkli/helpers/easing";
71
71
  import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
72
72
  const { dom, ui, animation, theme, types } = useBlokkli();
@@ -1,4 +1,4 @@
1
- precision mediump float;
1
+ precision highp float;
2
2
 
3
3
  varying float v_intersecting;
4
4
  varying float v_is_hover_area;
@@ -23,6 +23,12 @@ import {
23
23
  import vs from "./vertex.glsl?raw";
24
24
  import fs from "./fragment.glsl?raw";
25
25
  import { RectangleBufferCollector } from "#blokkli/helpers/webgl";
26
+ import {
27
+ determineCanAddChildren,
28
+ getChildrenOrientation,
29
+ getGapSize,
30
+ MIN_GAP
31
+ } from "#blokkli/helpers/dropTargets";
26
32
  const props = defineProps({
27
33
  items: { type: Array, required: true },
28
34
  box: { type: Object, required: true },
@@ -30,7 +36,6 @@ const props = defineProps({
30
36
  mouseY: { type: Number, required: true },
31
37
  isTouch: { type: Boolean, required: true }
32
38
  });
33
- const MIN_GAP = 20;
34
39
  var RectRenderType = /* @__PURE__ */ ((RectRenderType2) => {
35
40
  RectRenderType2[RectRenderType2["DROP_AREA"] = 0] = "DROP_AREA";
36
41
  RectRenderType2[RectRenderType2["FIELD_1"] = 1] = "FIELD_1";
@@ -139,26 +144,7 @@ const emitDrop = async () => {
139
144
  }
140
145
  }
141
146
  eventBus.emit("dragging:end");
142
- eventBus.emit("item:dropped");
143
147
  };
144
- function getChildrenOrientation(element) {
145
- const computedStyle = window.getComputedStyle(element);
146
- if (computedStyle.display.includes("flex")) {
147
- if (computedStyle.flexDirection === "row" || computedStyle.flexDirection === "row-reverse") {
148
- return "horizontal";
149
- } else {
150
- return "vertical";
151
- }
152
- }
153
- if (computedStyle.display.includes("grid")) {
154
- if (computedStyle.gridTemplateColumns.split(" ").length > 1) {
155
- return "horizontal";
156
- } else {
157
- return "vertical";
158
- }
159
- }
160
- return "vertical";
161
- }
162
148
  const draggingBundles = computed(
163
149
  () => props.items.flatMap((item) => {
164
150
  const bundles = [];
@@ -178,20 +164,6 @@ const selectionUuids = computed(
178
164
  }
179
165
  }).filter(falsy)
180
166
  );
181
- function getGapSize(orientation, element) {
182
- const computedStyle = window.getComputedStyle(element);
183
- if (computedStyle.display.includes("grid") || computedStyle.display.includes("flex")) {
184
- const gap = orientation === "vertical" ? computedStyle.columnGap || computedStyle.gridColumnGap : computedStyle.rowGap || computedStyle.gridRowGap;
185
- if (gap) {
186
- const gapParts = gap.split(" ");
187
- const gapValue = gapParts[0];
188
- if (gapValue?.endsWith("px")) {
189
- return Number.parseFloat(gapValue);
190
- }
191
- }
192
- }
193
- return MIN_GAP;
194
- }
195
167
  const fieldChildCache = {};
196
168
  const buildChildId = (field, preceedingUuid, type, uuid) => {
197
169
  return `${field.key}:${preceedingUuid || ""}:${type || ""}:${uuid || ""}`;
@@ -300,25 +272,6 @@ function getInsertText(field) {
300
272
  const bundleLabel = getBundleLabel(field);
301
273
  return `${bundleLabel} \xBB <strong>${field.label}</strong>`;
302
274
  }
303
- const determineCanAddChildren = (field, children) => {
304
- if (field.cardinality !== -1) {
305
- const count = state.getFieldBlockCount(field.key);
306
- const childrenThatAreSelection = children.filter((child) => {
307
- const uuid = child.dataset.uuid;
308
- if (!uuid) {
309
- return false;
310
- }
311
- return selectionUuids.value.includes(uuid);
312
- }).length;
313
- const countAfter = count - childrenThatAreSelection + props.items.length;
314
- if (countAfter > field.cardinality) {
315
- return false;
316
- }
317
- }
318
- return !draggingBundles.value.length || draggingBundles.value.every(
319
- (bundle) => field.allowedBundles.includes(bundle)
320
- );
321
- };
322
275
  const buildEmptyChild = (field, children, orientation, fieldWidth, fieldHeight) => {
323
276
  if (children.length === 0) {
324
277
  const id = buildChildId(field, null, "empty");
@@ -356,7 +309,15 @@ const buildFieldRect = (key) => {
356
309
  return;
357
310
  }
358
311
  const childElements = [...field.element.children];
359
- const canAddChildren = determineCanAddChildren(field, childElements);
312
+ const currentCount = state.getFieldBlockCount(field.key);
313
+ const canAddChildren = determineCanAddChildren(
314
+ field,
315
+ childElements,
316
+ selectionUuids.value,
317
+ currentCount,
318
+ props.items.length,
319
+ draggingBundles.value
320
+ );
360
321
  const orientation = field.dropAlignment || getChildrenOrientation(field.element);
361
322
  const rect = dom.getFieldRect(field.key);
362
323
  if (!rect) {
@@ -406,10 +367,11 @@ const buildDropAreaRect = (area) => {
406
367
  cachedDropAreaRects[area.id] = dropAreaRect;
407
368
  return dropAreaRect;
408
369
  };
370
+ const alphaBase = gl ? 0.7 : 0.3;
409
371
  const colorTeal = rgbaToString(theme.teal.value.normal);
410
- const colorTealAlpha = rgbaToString(theme.teal.value.normal, 0.7);
372
+ const colorTealAlpha = rgbaToString(theme.teal.value.normal, alphaBase);
411
373
  const colorAccent = rgbaToString(theme.accent.value[800]);
412
- const colorAccentAlpha = rgbaToString(theme.accent.value[800], 0.7);
374
+ const colorAccentAlpha = rgbaToString(theme.accent.value[800], alphaBase);
413
375
  function getRectType(field) {
414
376
  if (field.nestingLevel >= 3) {
415
377
  return 4 /* FIELD_4 */;
@@ -522,21 +484,23 @@ class DropTargetRectangleBufferCollector extends RectangleBufferCollector {
522
484
  }
523
485
  }
524
486
  const collector = new DropTargetRectangleBufferCollector(gl);
525
- collector.addRectangle(
526
- {
527
- id: "active-hover-rect",
528
- type: "active-area",
529
- label: "Field Area",
530
- color: "red",
531
- colorAlpha: "red",
532
- x: 0,
533
- y: 0,
534
- width: ui.artboardSize.value.width,
535
- height: ui.artboardSize.value.height
536
- },
537
- 5 /* ACTIVE_AREA */,
538
- false
539
- );
487
+ if (gl) {
488
+ collector.addRectangle(
489
+ {
490
+ id: "active-hover-rect",
491
+ type: "active-area",
492
+ label: "Field Area",
493
+ color: "red",
494
+ colorAlpha: "red",
495
+ x: 0,
496
+ y: 0,
497
+ width: ui.artboardSize.value.width,
498
+ height: ui.artboardSize.value.height
499
+ },
500
+ 5 /* ACTIVE_AREA */,
501
+ false
502
+ );
503
+ }
540
504
  const fieldColors = computed(() => {
541
505
  return {
542
506
  "0": theme.accent.value[900],
@@ -1,4 +1,4 @@
1
- precision mediump float;
1
+ precision highp float;
2
2
 
3
3
  attribute vec2 a_position;
4
4
  attribute vec4 a_quad;
@@ -32,6 +32,7 @@ import {
32
32
  nextTick
33
33
  } from "#imports";
34
34
  import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
35
+ import { renderCycle } from "#blokkli/helpers/renderCycle";
35
36
  const { adapter } = defineBlokkliFeature({
36
37
  icon: "drag",
37
38
  id: "dragging-overlay",
@@ -126,13 +127,15 @@ const onDropExisting = async (items, host, afterUuid) => {
126
127
  }
127
128
  };
128
129
  const onDropReusable = async (item, host, afterUuid) => {
129
- await state.mutateWithLoadingState(
130
- () => adapter.addLibraryItem({
131
- libraryItemUuid: item.libraryItemUuid,
132
- host,
133
- afterUuid
134
- })
135
- );
130
+ if (adapter.addLibraryItem) {
131
+ await state.mutateWithLoadingState(
132
+ () => adapter.addLibraryItem({
133
+ libraryItemUuid: item.libraryItemUuid,
134
+ host,
135
+ afterUuid
136
+ })
137
+ );
138
+ }
136
139
  };
137
140
  const onDropClipboardItem = async (item, host, afterUuid) => {
138
141
  eventBus.emit("drop:clipboardItem", {
@@ -162,24 +165,28 @@ const onDropMediaLibraryItem = async (items, host, afterUuid) => {
162
165
  }
163
166
  };
164
167
  const onDropSearchContentItem = async (item, host, afterUuid) => {
165
- await state.mutateWithLoadingState(
166
- () => adapter.addContentSearchItem({
167
- item: item.searchItem,
168
- host,
169
- bundle: item.itemBundle,
170
- afterUuid
171
- })
172
- );
168
+ if (adapter.addContentSearchItem) {
169
+ await state.mutateWithLoadingState(
170
+ () => adapter.addContentSearchItem({
171
+ item: item.searchItem,
172
+ host,
173
+ bundle: item.itemBundle,
174
+ afterUuid
175
+ })
176
+ );
177
+ }
173
178
  };
174
179
  const onDropAction = (action, host, field, afterUuid) => {
175
180
  eventBus.emit("action:placed", {
181
+ id: action.actionType,
176
182
  preceedingUuid: afterUuid,
177
- action,
178
183
  host,
179
184
  field
180
185
  });
181
186
  };
187
+ let allUuidsBefore = [];
182
188
  const onDrop = (e) => {
189
+ allUuidsBefore = state.getAllUuids();
183
190
  mouseX.value = 0;
184
191
  mouseY.value = 0;
185
192
  nextTick(async () => {
@@ -203,40 +210,46 @@ const onDrop = (e) => {
203
210
  }
204
211
  eventBus.emit("dragging:end");
205
212
  eventBus.emit("item:dropped");
206
- const newUuid = state.mutations.value[state.mutations.value.length - 1]?.plugin?.affectedItemUuid;
207
- if (!newUuid) {
208
- return;
209
- }
210
- const newBlock = dom.findBlock(newUuid);
211
- if (!newBlock) {
212
- return;
213
- }
214
- const allSelected = [...selection.uuids.value, newBlock.uuid];
215
- eventBus.emit("select", allSelected);
216
- if (typed.itemType !== "new") {
217
- return;
218
- }
219
- const definition = definitions.getBlockDefinition(
220
- newBlock.itemBundle,
221
- newBlock.hostFieldListType
222
- );
223
- if (!definition?.editor?.addBehaviour?.startsWith("editable:")) {
224
- return;
225
- }
226
- const editableField = definition.editor.addBehaviour.split(":")[1];
227
- if (!editableField) {
228
- return;
229
- }
230
- const editableFieldElement = newBlock.element().querySelector(`[data-blokkli-editable-field="${editableField}"]`);
231
- if (!(editableFieldElement instanceof HTMLElement)) {
232
- return;
233
- }
234
- eventBus.emit("editable:focus", {
235
- fieldName: editableField,
236
- uuid: newUuid
237
- });
238
213
  });
239
214
  };
215
+ onBlokkliEvent("state:reloaded", async function() {
216
+ if (!allUuidsBefore.length) {
217
+ return;
218
+ }
219
+ const allUuidsAfter = state.getAllUuids();
220
+ const newUuid = allUuidsAfter.find((uuid) => !allUuidsBefore.includes(uuid));
221
+ allUuidsBefore = [];
222
+ if (!newUuid) {
223
+ return;
224
+ }
225
+ eventBus.emit("select", newUuid);
226
+ await renderCycle();
227
+ const newBlock = dom.findBlock(newUuid);
228
+ if (!newBlock) {
229
+ return;
230
+ }
231
+ const allSelected = [...selection.uuids.value, newBlock.uuid];
232
+ eventBus.emit("select", allSelected);
233
+ const definition = definitions.getBlockDefinition(
234
+ newBlock.itemBundle,
235
+ newBlock.hostFieldListType
236
+ );
237
+ if (!definition?.editor?.addBehaviour?.startsWith("editable:")) {
238
+ return;
239
+ }
240
+ const editableField = definition.editor.addBehaviour.split(":")[1];
241
+ if (!editableField) {
242
+ return;
243
+ }
244
+ const editableFieldElement = newBlock.element().querySelector(`[data-blokkli-editable-field="${editableField}"]`);
245
+ if (!(editableFieldElement instanceof HTMLElement)) {
246
+ return;
247
+ }
248
+ eventBus.emit("editable:focus", {
249
+ fieldName: editableField,
250
+ uuid: newUuid
251
+ });
252
+ });
240
253
  onBlokkliEvent("dragging:drop", onDrop);
241
254
  function loop() {
242
255
  if (!isVisible.value) {
@@ -295,6 +308,7 @@ onBlokkliEvent("keyPressed", (e) => {
295
308
  }
296
309
  });
297
310
  onBlokkliEvent("block:append", (e) => {
311
+ allUuidsBefore = state.getAllUuids();
298
312
  onDropNew(e.bundle, e.host, e.afterUuid);
299
313
  });
300
314
  onUnmounted(() => {
@@ -6,15 +6,15 @@
6
6
  @touchmove.stop.capture.prevent
7
7
  >
8
8
  <iframe ref="iframe" allowtransparency :src="url" @load="onIFrameLoad" />
9
- <Transition name="bk-loading">
9
+ <BlokkliTransition name="loading">
10
10
  <Loading v-if="!isLoaded" />
11
- </Transition>
11
+ </BlokkliTransition>
12
12
  </div>
13
13
  </template>
14
14
 
15
15
  <script setup>
16
16
  import { ref, useBlokkli, onUnmounted, onMounted } from "#imports";
17
- import { Loading } from "#blokkli/components";
17
+ import { Loading, BlokkliTransition } from "#blokkli/components";
18
18
  const { eventBus } = useBlokkli();
19
19
  const iframe = ref(null);
20
20
  const isLoaded = ref(false);
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <Teleport to="body">
3
- <transition name="bk-slide-in" :duration="200">
3
+ <BlokkliTransition name="slide-in">
4
4
  <FormOverlay
5
5
  v-if="form"
6
6
  id="edit-form"
@@ -15,13 +15,13 @@
15
15
  @close="onClose"
16
16
  />
17
17
  </FormOverlay>
18
- </transition>
18
+ </BlokkliTransition>
19
19
  </Teleport>
20
20
  </template>
21
21
 
22
22
  <script setup>
23
23
  import { ref, computed, useBlokkli, defineBlokkliFeature } from "#imports";
24
- import { FormOverlay } from "#blokkli/components";
24
+ import { FormOverlay, BlokkliTransition } from "#blokkli/components";
25
25
  import FormFrame from "./Frame/index.vue";
26
26
  import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
27
27
  const { adapter } = defineBlokkliFeature({
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <Teleport to="body">
3
- <Transition :name="hasTransition ? 'bk-editable' : void 0">
3
+ <BlokkliTransition name="editable" :enabled="hasTransition">
4
4
  <Overlay v-if="editable" v-bind="editable" :key="key" @close="close" />
5
- </Transition>
5
+ </BlokkliTransition>
6
6
  </Teleport>
7
7
  </template>
8
8
 
@@ -15,6 +15,7 @@ import {
15
15
  defineBlokkliFeature
16
16
  } from "#imports";
17
17
  import Overlay from "./Overlay/index.vue";
18
+ import { BlokkliTransition } from "#blokkli/components";
18
19
  import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
19
20
  import defineCommands from "#blokkli/helpers/composables/defineCommands";
20
21
  import { falsy } from "#blokkli/helpers";
@@ -50,6 +51,9 @@ const buildEditable = (fieldName, uuid) => {
50
51
  }
51
52
  const hostEntityType = "type" in host ? host.type : runtimeConfig.itemEntityType;
52
53
  const hostEntityBundle = "bundle" in host ? host.bundle : host.itemBundle;
54
+ if (hostEntityBundle === "from_library") {
55
+ return;
56
+ }
53
57
  const config = types.editableFieldConfig.forName(
54
58
  hostEntityType,
55
59
  hostEntityBundle,