@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.
Files changed (289) hide show
  1. package/dist/module.d.mts +1 -1
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +4873 -1167
  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 +5 -0
  7. package/dist/modules/drupal/graphql/base/query.pbEntityConfig.graphql +5 -0
  8. package/dist/modules/drupal/graphql/features/publishNew.graphql +1 -4
  9. package/dist/modules/drupal/graphql/features/scheduler.graphql +31 -0
  10. package/dist/modules/drupal/graphql/features/transform.graphql +9 -1
  11. package/dist/modules/drupal/graphql/features/transform_host.graphql +38 -0
  12. package/dist/modules/drupal/graphql/mutations/update_host_options.graphql +15 -0
  13. package/dist/modules/drupal/index.d.mts +1 -1
  14. package/dist/modules/drupal/index.mjs +37 -7
  15. package/dist/modules/drupal/runtime/adapter/index.js +140 -5
  16. package/dist/runtime/adapter/index.d.ts +90 -1
  17. package/dist/runtime/blokkliPlugins/AddAction/index.vue +27 -3
  18. package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue +65 -0
  19. package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue.d.ts +26 -0
  20. package/dist/runtime/blokkliPlugins/ContextMenu/Menu/index.vue +3 -0
  21. package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +3 -2
  22. package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +3 -3
  23. package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +49 -11
  24. package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +29 -15
  25. package/dist/runtime/blokkliPlugins/MenuButton/index.vue.d.ts +2 -2
  26. package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +6 -7
  27. package/dist/runtime/blokkliPlugins/Sidebar/index.vue +2 -9
  28. package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +1 -1
  29. package/dist/runtime/blokkliPlugins/ViewOption/index.vue +6 -3
  30. package/dist/runtime/blokkliPlugins/index.d.ts +8 -7
  31. package/dist/runtime/blokkliPlugins/index.js +15 -13
  32. package/dist/runtime/components/Blocks/Fragment/icon.svg +1 -1
  33. package/dist/runtime/components/BlokkliProvider.vue +1 -0
  34. package/dist/runtime/components/BlokkliProvider.vue.d.ts +1 -0
  35. package/dist/runtime/components/Edit/Actions/index.vue +39 -67
  36. package/dist/runtime/components/Edit/AddListItem/index.vue +2 -5
  37. package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +1 -1
  38. package/dist/runtime/components/Edit/AddListItemIcon/index.vue +19 -0
  39. package/dist/runtime/components/Edit/AddListItemIcon/index.vue.d.ts +15 -0
  40. package/dist/runtime/components/Edit/AppMenu/index.vue +5 -5
  41. package/dist/runtime/components/Edit/Dialog/index.vue +5 -1
  42. package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +1 -1
  43. package/dist/runtime/components/Edit/DiffViewer/State.vue +276 -0
  44. package/dist/runtime/components/Edit/DiffViewer/State.vue.d.ts +16 -0
  45. package/dist/runtime/components/Edit/DragInteractions/index.vue +35 -6
  46. package/dist/runtime/components/Edit/EditProvider.vue +46 -35
  47. package/dist/runtime/components/Edit/Features/AddList/index.vue +15 -25
  48. package/dist/runtime/components/Edit/Features/Analyze/Overlay/fragment.glsl +58 -0
  49. package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue +168 -0
  50. package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue.d.ts +9 -0
  51. package/dist/runtime/components/Edit/Features/Analyze/Overlay/vertex.glsl +72 -0
  52. package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue +159 -0
  53. package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue.d.ts +7 -0
  54. package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue +100 -0
  55. package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue.d.ts +6 -0
  56. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue +56 -0
  57. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue.d.ts +3 -0
  58. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue +87 -0
  59. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue.d.ts +7 -0
  60. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue +101 -0
  61. package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue.d.ts +8 -0
  62. package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue +18 -0
  63. package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue.d.ts +8 -0
  64. package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue +92 -0
  65. package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue.d.ts +17 -0
  66. package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue +77 -0
  67. package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue.d.ts +6 -0
  68. package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.d.ts +12 -0
  69. package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.js +75 -0
  70. package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.d.ts +4 -0
  71. package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.js +5 -0
  72. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.d.ts +32 -0
  73. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.js +45 -0
  74. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.d.ts +5 -0
  75. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.js +95 -0
  76. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.d.ts +3 -0
  77. package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.js +13 -0
  78. package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.d.ts +2 -0
  79. package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.js +2 -0
  80. package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.d.ts +2 -0
  81. package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.js +165 -0
  82. package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.d.ts +44 -0
  83. package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.js +0 -0
  84. package/dist/runtime/components/Edit/Features/Analyze/helper.d.ts +5 -0
  85. package/dist/runtime/components/Edit/Features/Analyze/helper.js +28 -0
  86. package/dist/runtime/components/Edit/Features/Analyze/index.vue +44 -0
  87. package/dist/runtime/components/Edit/Features/Anchors/Renderer.vue +136 -0
  88. package/dist/runtime/components/Edit/Features/Anchors/index.vue +32 -0
  89. package/dist/runtime/components/Edit/Features/Anchors/index.vue.d.ts +2 -0
  90. package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue +25 -13
  91. package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue +296 -0
  92. package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue.d.ts +7 -0
  93. package/dist/runtime/components/Edit/Features/Artboard/index.vue +10 -245
  94. package/dist/runtime/components/Edit/Features/Assistant/index.vue +3 -2
  95. package/dist/runtime/components/Edit/Features/BlockAddList/index.vue +4 -4
  96. package/dist/runtime/components/Edit/Features/Clipboard/index.vue +161 -28
  97. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue +16 -4
  98. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue.d.ts +0 -1
  99. package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +4 -53
  100. package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +3 -2
  101. package/dist/runtime/components/Edit/Features/Conversions/index.vue +12 -14
  102. package/dist/runtime/components/Edit/Features/Debug/Viewport/index.vue +14 -0
  103. package/dist/runtime/components/Edit/Features/Debug/index.vue +27 -24
  104. package/dist/runtime/components/Edit/Features/Diff/DiffView/index.vue +13 -190
  105. package/dist/runtime/components/Edit/Features/Diff/index.vue +2 -2
  106. package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +4 -4
  107. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +1 -1
  108. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +35 -71
  109. package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/vertex.glsl +1 -1
  110. package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +62 -48
  111. package/dist/runtime/components/Edit/Features/EditForm/Frame/index.vue +3 -3
  112. package/dist/runtime/components/Edit/Features/EditForm/index.vue +3 -3
  113. package/dist/runtime/components/Edit/Features/EditableField/index.vue +6 -2
  114. package/dist/runtime/components/Edit/Features/EditableMask/index.vue +3 -20
  115. package/dist/runtime/components/Edit/Features/EntityTitle/index.vue +33 -1
  116. package/dist/runtime/components/Edit/Features/Fragments/index.vue +3 -2
  117. package/dist/runtime/components/Edit/Features/History/index.vue +35 -12
  118. package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +6 -2
  119. package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +3 -2
  120. package/dist/runtime/components/Edit/Features/Library/index.vue +11 -9
  121. package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +5 -8
  122. package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/fragment.glsl +1 -1
  123. package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/index.vue +9 -4
  124. package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/vertex.glsl +1 -1
  125. package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +8 -14
  126. package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +3 -2
  127. package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue.d.ts +2 -0
  128. package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +9 -3
  129. package/dist/runtime/components/Edit/Features/Options/Form/Item.vue.d.ts +0 -1
  130. package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +37 -19
  131. package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue.d.ts +8 -2
  132. package/dist/runtime/components/Edit/Features/Options/Form/index.vue +81 -37
  133. package/dist/runtime/components/Edit/Features/Options/Form/index.vue.d.ts +5 -5
  134. package/dist/runtime/components/Edit/Features/Options/index.vue +30 -6
  135. package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +3 -3
  136. package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue +41 -14
  137. package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue.d.ts +2 -0
  138. package/dist/runtime/components/Edit/Features/Publish/Dialog/PublishOption.vue +47 -0
  139. package/dist/runtime/components/Edit/Features/Publish/Dialog/PublishOption.vue.d.ts +19 -0
  140. package/dist/runtime/components/Edit/Features/Publish/Dialog/ScheduleDate.vue +183 -0
  141. package/dist/runtime/components/Edit/Features/Publish/Dialog/ScheduleDate.vue.d.ts +13 -0
  142. package/dist/runtime/components/Edit/Features/Publish/Dialog/Summary.vue +83 -0
  143. package/dist/runtime/components/Edit/Features/Publish/Dialog/Summary.vue.d.ts +9 -0
  144. package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +381 -128
  145. package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue.d.ts +3 -14
  146. package/dist/runtime/components/Edit/Features/Publish/index.vue +37 -22
  147. package/dist/runtime/components/Edit/Features/Revert/index.vue +3 -3
  148. package/dist/runtime/components/Edit/Features/Search/index.vue +3 -2
  149. package/dist/runtime/components/Edit/Features/Selection/AddButtons/AddButtonsField.vue +54 -0
  150. package/dist/runtime/components/Edit/Features/Selection/AddButtons/AddButtonsField.vue.d.ts +14 -0
  151. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue +120 -0
  152. package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue.d.ts +15 -0
  153. package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue +459 -0
  154. package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue.d.ts +6 -0
  155. package/dist/runtime/components/Edit/Features/Selection/Overlay/fragment.glsl +14 -9
  156. package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +32 -11
  157. package/dist/runtime/components/Edit/Features/Selection/Overlay/vertex.glsl +1 -1
  158. package/dist/runtime/components/Edit/Features/Selection/index.vue +76 -7
  159. package/dist/runtime/components/Edit/Features/Settings/Dialog/FeatureSetting/index.vue +12 -17
  160. package/dist/runtime/components/Edit/Features/Settings/index.vue +11 -25
  161. package/dist/runtime/components/Edit/Features/Theme/Color/index.vue +5 -1
  162. package/dist/runtime/components/Edit/Features/Theme/index.vue +2 -1
  163. package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +3 -2
  164. package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue +198 -0
  165. package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue.d.ts +13 -0
  166. package/dist/runtime/components/Edit/Features/Transform/index.vue +155 -44
  167. package/dist/runtime/components/Edit/Form/Datepicker/index.vue +198 -0
  168. package/dist/runtime/components/Edit/Form/Datepicker/index.vue.d.ts +15 -0
  169. package/dist/runtime/components/Edit/Form/Radio/index.vue +33 -0
  170. package/dist/runtime/components/Edit/Form/Radio/index.vue.d.ts +20 -0
  171. package/dist/runtime/components/Edit/Form/RadioTabs/index.vue +37 -0
  172. package/dist/runtime/components/Edit/Form/RadioTabs/index.vue.d.ts +22 -0
  173. package/dist/runtime/components/Edit/Form/Select/index.vue +29 -0
  174. package/dist/runtime/components/Edit/Form/Select/index.vue.d.ts +20 -0
  175. package/dist/runtime/components/Edit/Form/Text/index.vue +33 -0
  176. package/dist/runtime/components/Edit/Form/Text/index.vue.d.ts +19 -0
  177. package/dist/runtime/components/Edit/Form/Textarea/index.vue +13 -6
  178. package/dist/runtime/components/Edit/Form/Textarea/index.vue.d.ts +4 -0
  179. package/dist/runtime/components/Edit/FormOverlay/index.vue +1 -1
  180. package/dist/runtime/components/Edit/Indicators/index.vue +123 -0
  181. package/dist/runtime/components/Edit/Indicators/index.vue.d.ts +2 -0
  182. package/dist/runtime/components/Edit/ItemIcon/index.vue +2 -1
  183. package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue +66 -0
  184. package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue.d.ts +7 -0
  185. package/dist/runtime/components/Edit/Konami/Game/blokkli.png +0 -0
  186. package/dist/runtime/components/Edit/Konami/Game/charmap.d.ts +2 -0
  187. package/dist/runtime/components/Edit/Konami/Game/charmap.js +168 -0
  188. package/dist/runtime/components/Edit/Konami/Game/index.vue +752 -0
  189. package/dist/runtime/components/Edit/Konami/Game/index.vue.d.ts +6 -0
  190. package/dist/runtime/components/Edit/Konami/Game/textRendering.d.ts +8 -0
  191. package/dist/runtime/components/Edit/Konami/Game/textRendering.js +138 -0
  192. package/dist/runtime/components/Edit/Konami/Game/useIconRendering.d.ts +9 -0
  193. package/dist/runtime/components/Edit/Konami/Game/useIconRendering.js +130 -0
  194. package/dist/runtime/components/Edit/Konami/index.vue +44 -0
  195. package/dist/runtime/components/Edit/Konami/index.vue.d.ts +2 -0
  196. package/dist/runtime/components/Edit/Loading/index.vue +6 -2
  197. package/dist/runtime/components/Edit/Loading/index.vue.d.ts +2 -0
  198. package/dist/runtime/components/Edit/Messages/index.vue +8 -3
  199. package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue +17 -0
  200. package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue.d.ts +11 -0
  201. package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue +37 -0
  202. package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue.d.ts +11 -0
  203. package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue +43 -0
  204. package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue.d.ts +11 -0
  205. package/dist/runtime/components/Edit/PluginConfigForm/index.vue +57 -0
  206. package/dist/runtime/components/Edit/PluginConfigForm/index.vue.d.ts +16 -0
  207. package/dist/runtime/components/Edit/PreviewProvider.vue +3 -4
  208. package/dist/runtime/components/Edit/RelativeTime/index.vue +3 -2
  209. package/dist/runtime/components/Edit/ShortcutIndicator/index.vue +8 -3
  210. package/dist/runtime/components/Edit/SystemRequirements/index.vue +3 -3
  211. package/dist/runtime/components/Edit/Toolbar/index.vue +3 -2
  212. package/dist/runtime/components/Edit/Transition/index.vue +41 -0
  213. package/dist/runtime/components/Edit/Transition/index.vue.d.ts +19 -0
  214. package/dist/runtime/components/Edit/index.d.ts +24 -15
  215. package/dist/runtime/components/Edit/index.js +46 -28
  216. package/dist/runtime/composables/defineBlokkli.js +7 -3
  217. package/dist/runtime/composables/defineBlokkliFeature.d.ts +4 -7
  218. package/dist/runtime/composables/defineBlokkliProvider.d.ts +11 -0
  219. package/dist/runtime/composables/defineBlokkliProvider.js +46 -0
  220. package/dist/runtime/composables/useBlokkliHelper.js +1 -1
  221. package/dist/runtime/constants/index.d.ts +3 -0
  222. package/dist/runtime/constants/index.js +3 -0
  223. package/dist/runtime/css/output.css +1 -1
  224. package/dist/runtime/helpers/addElementClasses.d.ts +2 -0
  225. package/dist/runtime/helpers/addElementClasses.js +24 -0
  226. package/dist/runtime/helpers/animationProvider.d.ts +4 -2
  227. package/dist/runtime/helpers/animationProvider.js +7 -2
  228. package/dist/runtime/helpers/bundles/index.d.ts +1 -0
  229. package/dist/runtime/helpers/bundles/index.js +4 -0
  230. package/dist/runtime/helpers/composables/useStickyToolbar.d.ts +20 -0
  231. package/dist/runtime/helpers/composables/useStickyToolbar.js +215 -0
  232. package/dist/runtime/helpers/definitionProvider.d.ts +2 -1
  233. package/dist/runtime/helpers/definitionProvider.js +17 -0
  234. package/dist/runtime/helpers/domProvider.d.ts +2 -1
  235. package/dist/runtime/helpers/domProvider.js +89 -43
  236. package/dist/runtime/helpers/dropTargets/index.d.ts +6 -0
  237. package/dist/runtime/helpers/dropTargets/index.js +49 -0
  238. package/dist/runtime/helpers/eventBus.d.ts +1 -1
  239. package/dist/runtime/helpers/eventBus.js +2 -2
  240. package/dist/runtime/helpers/index.d.ts +10 -1
  241. package/dist/runtime/helpers/index.js +57 -0
  242. package/dist/runtime/helpers/indicatorsProvider.d.ts +10 -0
  243. package/dist/runtime/helpers/indicatorsProvider.js +23 -0
  244. package/dist/runtime/helpers/keyboardProvider.d.ts +2 -0
  245. package/dist/runtime/helpers/keyboardProvider.js +17 -1
  246. package/dist/runtime/helpers/pluginProvider.d.ts +10 -0
  247. package/dist/runtime/helpers/pluginProvider.js +33 -0
  248. package/dist/runtime/helpers/renderCycle.d.ts +1 -0
  249. package/dist/runtime/helpers/renderCycle.js +10 -0
  250. package/dist/runtime/helpers/runtimeHelpers/index.js +14 -11
  251. package/dist/runtime/helpers/selectionProvider.d.ts +16 -0
  252. package/dist/runtime/helpers/selectionProvider.js +47 -35
  253. package/dist/runtime/helpers/stateProvider.d.ts +7 -2
  254. package/dist/runtime/helpers/stateProvider.js +89 -14
  255. package/dist/runtime/helpers/storageProvider.d.ts +4 -3
  256. package/dist/runtime/helpers/storageProvider.js +56 -3
  257. package/dist/runtime/helpers/symbols.d.ts +1 -0
  258. package/dist/runtime/helpers/symbols.js +1 -0
  259. package/dist/runtime/helpers/textProvider.js +6 -0
  260. package/dist/runtime/helpers/themeProvider.d.ts +2 -0
  261. package/dist/runtime/helpers/themeProvider.js +4 -1
  262. package/dist/runtime/helpers/transform.js +1 -3
  263. package/dist/runtime/helpers/uiProvider.d.ts +9 -2
  264. package/dist/runtime/helpers/uiProvider.js +72 -47
  265. package/dist/runtime/helpers/useTransitionedValue.d.ts +18 -0
  266. package/dist/runtime/helpers/useTransitionedValue.js +57 -0
  267. package/dist/runtime/icons/anchor.svg +1 -0
  268. package/dist/runtime/icons/arrow-left.svg +1 -1
  269. package/dist/runtime/icons/arrow-right.svg +1 -1
  270. package/dist/runtime/icons/arrow-top-right.svg +1 -0
  271. package/dist/runtime/icons/calendar-clock.svg +1 -0
  272. package/dist/runtime/icons/chart.svg +1 -0
  273. package/dist/runtime/icons/copy.svg +1 -0
  274. package/dist/runtime/icons/cursor-move.svg +1 -1
  275. package/dist/runtime/icons/diff.svg +1 -1
  276. package/dist/runtime/icons/eye-off.svg +1 -0
  277. package/dist/runtime/icons/eye.svg +1 -1
  278. package/dist/runtime/icons/info.svg +1 -1
  279. package/dist/runtime/icons/link.svg +1 -0
  280. package/dist/runtime/icons/speedometer.svg +1 -0
  281. package/dist/runtime/types/blokkOptions.d.ts +8 -0
  282. package/dist/runtime/types/index.d.ts +172 -6
  283. package/dist/runtime/types/theme.d.ts +2 -1
  284. package/dist/shared/{editor.gz_ac6uT.d.mts → editor.CKsrTpc1.d.mts} +1 -1
  285. package/package.json +20 -5
  286. package/dist/runtime/components/Edit/Features/FieldAreas/Overlay/index.vue +0 -22
  287. package/dist/runtime/components/Edit/Features/FieldAreas/index.vue +0 -41
  288. /package/dist/runtime/components/Edit/Features/{FieldAreas/Overlay → Analyze}/index.vue.d.ts +0 -0
  289. /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
- <transition appear name="bk-slide-up">
14
- <PublishDialog
15
- v-if="showDialog"
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
- () => isPublished.value ? $t("publishDescription", "Publish all changes.") : $t(
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
- () => isPublished.value ? "publish" : "save"
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
- <transition appear name="bk-slide-up">
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
- </transition>
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
- <Transition name="bk-search">
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
- </Transition>
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;