@blokkli/editor 2.0.0-alpha.35 → 2.0.0-alpha.37

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 (320) hide show
  1. package/dist/global/types/blockOptions.d.ts +10 -2
  2. package/dist/global/types/definitions.d.ts +12 -5
  3. package/dist/module.d.mts +2 -2
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +126 -7
  6. package/dist/modules/agent/index.d.mts +1 -1
  7. package/dist/modules/agent/index.mjs +273 -25
  8. package/dist/modules/agent/runtime/app/composables/agentProvider.d.ts +2 -2
  9. package/dist/modules/agent/runtime/app/composables/agentProvider.js +34 -17
  10. package/dist/modules/agent/runtime/app/composables/defineBlokkliAgentTool.d.ts +2 -20
  11. package/dist/modules/agent/runtime/app/composables/defineBlokkliAgentTool.js +0 -3
  12. package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/Assistant/index.vue +2 -2
  13. package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/User/index.vue +1 -2
  14. package/dist/modules/agent/runtime/app/features/agent/Panel/DebugGallery/index.vue +1 -2
  15. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.d.vue.ts +1 -0
  16. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +67 -86
  17. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue.d.ts +1 -0
  18. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/index.vue +10 -12
  19. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/de.md +2 -2
  20. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/en.md +2 -2
  21. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +1 -5
  22. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.d.vue.ts +8 -0
  23. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +138 -0
  24. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue.d.ts +8 -0
  25. package/dist/modules/agent/runtime/app/features/agent/index.vue +94 -38
  26. package/dist/modules/agent/runtime/app/helpers/index.d.ts +16 -19
  27. package/dist/modules/agent/runtime/app/helpers/index.js +22 -46
  28. package/dist/modules/agent/runtime/app/helpers/pageStructure.js +1 -1
  29. package/dist/modules/agent/runtime/app/tools/add_content_search_paragraph/index.js +5 -9
  30. package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +2 -6
  31. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +2 -6
  32. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +2 -3
  33. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +2 -6
  34. package/dist/modules/agent/runtime/app/tools/add_template/index.js +2 -6
  35. package/dist/modules/agent/runtime/app/tools/analyze_content/index.js +120 -0
  36. package/dist/modules/agent/runtime/app/tools/check_readability/index.d.ts +2 -0
  37. package/dist/modules/agent/runtime/app/tools/check_readability/index.js +57 -0
  38. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +2 -6
  39. package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.js +1 -1
  40. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.d.ts +2 -0
  41. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +176 -0
  42. package/dist/modules/agent/runtime/app/tools/get_content_fields/index.js +1 -1
  43. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +7 -5
  44. package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.js +2 -1
  45. package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.js +2 -3
  46. package/dist/modules/agent/runtime/app/tools/helpers.d.ts +53 -0
  47. package/dist/modules/agent/runtime/app/tools/helpers.js +187 -0
  48. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +2 -6
  49. package/dist/modules/agent/runtime/app/tools/schemas.d.ts +1 -44
  50. package/dist/modules/agent/runtime/app/tools/schemas.js +0 -174
  51. package/dist/modules/agent/runtime/app/tools/search_content/index.js +40 -47
  52. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +2 -5
  53. package/dist/modules/agent/runtime/app/types/index.d.ts +0 -61
  54. package/dist/modules/agent/runtime/server/Session.d.ts +29 -8
  55. package/dist/modules/agent/runtime/server/Session.js +168 -85
  56. package/dist/modules/agent/runtime/server/SessionManager.d.ts +3 -0
  57. package/dist/modules/agent/runtime/server/SessionManager.js +4 -1
  58. package/dist/modules/agent/runtime/server/agent.js +3 -2
  59. package/dist/modules/agent/runtime/server/agentPrompt.d.ts +9 -1
  60. package/dist/modules/agent/runtime/server/agentPrompt.js +26 -0
  61. package/dist/modules/agent/runtime/server/default-skills/fixReadability.d.ts +2 -0
  62. package/dist/modules/agent/runtime/server/default-skills/fixReadability.js +69 -0
  63. package/dist/modules/agent/runtime/server/default-system-prompts/page-context.js +28 -0
  64. package/dist/modules/agent/runtime/server/server-tools/index.d.ts +10 -2
  65. package/dist/modules/agent/runtime/server/server-tools/index.js +1 -1
  66. package/dist/modules/agent/runtime/server/server-tools/load_tools/index.js +1 -1
  67. package/dist/modules/agent/runtime/shared/types.d.ts +81 -12
  68. package/dist/modules/agent/runtime/shared/types.js +22 -10
  69. package/dist/modules/charts/index.d.mts +35 -0
  70. package/dist/modules/charts/index.mjs +57 -0
  71. package/dist/modules/charts/runtime/blokkli/skills/charts.d.ts +2 -0
  72. package/dist/modules/charts/runtime/blokkli/skills/charts.js +42 -0
  73. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +86 -0
  74. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +136 -0
  75. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.d.ts +2 -0
  76. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.js +93 -0
  77. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.d.ts +2 -0
  78. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.js +66 -0
  79. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.d.ts +2 -0
  80. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.js +40 -0
  81. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.d.ts +2 -0
  82. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.js +89 -0
  83. package/dist/modules/charts/runtime/chartTypes/area.d.ts +7 -0
  84. package/dist/modules/charts/runtime/chartTypes/area.js +68 -0
  85. package/dist/modules/charts/runtime/chartTypes/bar.d.ts +8 -0
  86. package/dist/modules/charts/runtime/chartTypes/bar.js +76 -0
  87. package/dist/modules/charts/runtime/chartTypes/define.d.ts +2 -0
  88. package/dist/modules/charts/runtime/chartTypes/define.js +3 -0
  89. package/dist/modules/charts/runtime/chartTypes/donut.d.ts +6 -0
  90. package/dist/modules/charts/runtime/chartTypes/donut.js +45 -0
  91. package/dist/modules/charts/runtime/chartTypes/heatmap.d.ts +4 -0
  92. package/dist/modules/charts/runtime/chartTypes/heatmap.js +54 -0
  93. package/dist/modules/charts/runtime/chartTypes/index.d.ts +39 -0
  94. package/dist/modules/charts/runtime/chartTypes/index.js +47 -0
  95. package/dist/modules/charts/runtime/chartTypes/line.d.ts +7 -0
  96. package/dist/modules/charts/runtime/chartTypes/line.js +68 -0
  97. package/dist/modules/charts/runtime/chartTypes/pie.d.ts +5 -0
  98. package/dist/modules/charts/runtime/chartTypes/pie.js +28 -0
  99. package/dist/modules/charts/runtime/chartTypes/radar.d.ts +7 -0
  100. package/dist/modules/charts/runtime/chartTypes/radar.js +52 -0
  101. package/dist/modules/charts/runtime/chartTypes/radialBar.d.ts +6 -0
  102. package/dist/modules/charts/runtime/chartTypes/radialBar.js +44 -0
  103. package/dist/modules/charts/runtime/chartTypes/shared.d.ts +67 -0
  104. package/dist/modules/charts/runtime/chartTypes/shared.js +103 -0
  105. package/dist/modules/charts/runtime/chartTypes/types.d.ts +29 -0
  106. package/dist/modules/charts/runtime/chartTypes/types.js +0 -0
  107. package/dist/modules/charts/runtime/components/ChartRenderer/index.d.vue.ts +147 -0
  108. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +120 -0
  109. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue.d.ts +147 -0
  110. package/dist/modules/charts/runtime/components/index.d.ts +1 -0
  111. package/dist/modules/charts/runtime/components/index.js +1 -0
  112. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.d.vue.ts +16 -0
  113. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue +97 -0
  114. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue.d.ts +16 -0
  115. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.d.vue.ts +11 -0
  116. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +34 -0
  117. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue.d.ts +11 -0
  118. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.d.vue.ts +12 -0
  119. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +49 -0
  120. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue.d.ts +12 -0
  121. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.d.vue.ts +19 -0
  122. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue +89 -0
  123. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue.d.ts +19 -0
  124. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.d.vue.ts +23 -0
  125. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +224 -0
  126. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue.d.ts +23 -0
  127. package/dist/{runtime/editor/features/clipboard/List → modules/charts/runtime/features/charts/Editor/FootnoteEditor}/index.d.vue.ts +4 -5
  128. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue +61 -0
  129. package/dist/{runtime/editor/features/clipboard/List → modules/charts/runtime/features/charts/Editor/FootnoteEditor}/index.vue.d.ts +4 -5
  130. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.d.vue.ts +10 -0
  131. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue +45 -0
  132. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue.d.ts +10 -0
  133. package/dist/modules/charts/runtime/features/charts/Editor/index.d.vue.ts +11 -0
  134. package/dist/modules/charts/runtime/features/charts/Editor/index.vue +249 -0
  135. package/dist/modules/charts/runtime/features/charts/Editor/index.vue.d.ts +11 -0
  136. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +17 -0
  137. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.js +90 -0
  138. package/dist/modules/charts/runtime/features/charts/index.d.vue.ts +3 -0
  139. package/dist/modules/charts/runtime/features/charts/index.vue +72 -0
  140. package/dist/modules/charts/runtime/features/charts/index.vue.d.ts +3 -0
  141. package/dist/modules/charts/runtime/helpers/index.d.ts +26 -0
  142. package/dist/modules/charts/runtime/helpers/index.js +80 -0
  143. package/dist/modules/charts/runtime/types.d.ts +33 -0
  144. package/dist/modules/charts/runtime/types.js +0 -0
  145. package/dist/modules/drupal/graphql/features/fragments.graphql +2 -0
  146. package/dist/modules/drupal/index.d.mts +1 -1
  147. package/dist/modules/drupal/runtime/adapter/index.d.ts +3 -1
  148. package/dist/modules/drupal/runtime/adapter/index.js +16 -12
  149. package/dist/modules/table-of-contents/index.d.mts +11 -0
  150. package/dist/modules/table-of-contents/index.mjs +24 -0
  151. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.d.vue.ts +44 -0
  152. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.vue +43 -0
  153. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.vue.d.ts +44 -0
  154. package/dist/modules/table-of-contents/runtime/types/index.d.ts +4 -0
  155. package/dist/modules/table-of-contents/runtime/types/index.js +0 -0
  156. package/dist/runtime/components/Blocks/Fragment/index.vue +6 -2
  157. package/dist/runtime/components/BlokkliItem.vue +9 -4
  158. package/dist/runtime/components/BlokkliProvider.d.vue.ts +7 -0
  159. package/dist/runtime/components/BlokkliProvider.vue +7 -1
  160. package/dist/runtime/components/BlokkliProvider.vue.d.ts +7 -0
  161. package/dist/runtime/composables/defineBlokkli.js +1 -1
  162. package/dist/runtime/composables/useBlokkliHelper.js +4 -2
  163. package/dist/runtime/editor/components/AnimationCanvas/index.vue +17 -27
  164. package/dist/runtime/editor/components/Banner/index.d.vue.ts +13 -2
  165. package/dist/runtime/editor/components/Banner/index.vue +4 -2
  166. package/dist/runtime/editor/components/Banner/index.vue.d.ts +13 -2
  167. package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +27 -0
  168. package/dist/runtime/editor/components/Dropdown/index.vue +107 -0
  169. package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +27 -0
  170. package/dist/{modules/agent/runtime/app/features/agent/Panel/Input/Actions → runtime/editor/components}/DropdownItem/index.d.vue.ts +1 -0
  171. package/dist/{modules/agent/runtime/app/features/agent/Panel/Input/Actions → runtime/editor/components}/DropdownItem/index.vue +3 -2
  172. package/dist/{modules/agent/runtime/app/features/agent/Panel/Input/Actions → runtime/editor/components}/DropdownItem/index.vue.d.ts +1 -0
  173. package/dist/runtime/editor/components/EditProvider.d.vue.ts +2 -0
  174. package/dist/runtime/editor/components/EditProvider.vue +11 -7
  175. package/dist/runtime/editor/components/EditProvider.vue.d.ts +2 -0
  176. package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +5 -1
  177. package/dist/runtime/editor/components/FlexTextarea/index.vue +24 -101
  178. package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +5 -1
  179. package/dist/runtime/editor/components/Form/Radio/index.d.vue.ts +1 -0
  180. package/dist/runtime/editor/components/Form/Radio/index.vue +3 -2
  181. package/dist/runtime/editor/components/Form/Radio/index.vue.d.ts +1 -0
  182. package/dist/runtime/editor/components/ItemIcon/index.vue +10 -2
  183. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +13 -3
  184. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +43 -16
  185. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +13 -3
  186. package/dist/runtime/editor/components/Popup/index.d.vue.ts +30 -0
  187. package/dist/runtime/editor/components/Popup/index.vue +82 -0
  188. package/dist/runtime/editor/components/Popup/index.vue.d.ts +30 -0
  189. package/dist/runtime/editor/components/PreviewProvider.d.vue.ts +2 -0
  190. package/dist/runtime/editor/components/PreviewProvider.vue +3 -2
  191. package/dist/runtime/editor/components/PreviewProvider.vue.d.ts +2 -0
  192. package/dist/runtime/editor/components/Resizable/index.vue +4 -1
  193. package/dist/runtime/editor/components/ShortcutIndicator/index.vue +1 -1
  194. package/dist/runtime/editor/components/Toolbar/index.vue +107 -6
  195. package/dist/runtime/editor/components/index.d.ts +4 -1
  196. package/dist/runtime/editor/components/index.js +6 -0
  197. package/dist/runtime/editor/composables/defineDropAreas.js +3 -3
  198. package/dist/runtime/editor/composables/defineDropHandler.d.ts +3 -0
  199. package/dist/runtime/editor/composables/defineDropHandler.js +10 -0
  200. package/dist/runtime/editor/composables/index.d.ts +1 -0
  201. package/dist/runtime/editor/composables/index.js +1 -0
  202. package/dist/runtime/editor/composables/onElementResize.js +0 -1
  203. package/dist/runtime/editor/composables/useEditableFieldOverride.js +4 -5
  204. package/dist/runtime/editor/css/output.css +1 -1
  205. package/dist/runtime/editor/events/index.d.ts +16 -0
  206. package/dist/runtime/editor/features/add-list/Help/Item.vue +5 -2
  207. package/dist/runtime/editor/features/add-list/index.vue +58 -1
  208. package/dist/runtime/editor/features/analyze/Main.d.vue.ts +3 -2
  209. package/dist/runtime/editor/features/analyze/Main.vue +28 -44
  210. package/dist/runtime/editor/features/analyze/Main.vue.d.ts +3 -2
  211. package/dist/runtime/editor/features/analyze/analyzers/readability.js +65 -0
  212. package/dist/runtime/editor/features/analyze/analyzers/types.d.ts +19 -0
  213. package/dist/runtime/editor/features/analyze/index.vue +18 -15
  214. package/dist/runtime/editor/features/artboard/Renderer.vue +1 -1
  215. package/dist/runtime/editor/features/clipboard/DropElement/Video.d.vue.ts +8 -0
  216. package/dist/runtime/editor/features/clipboard/{List/Item → DropElement}/Video.vue +1 -5
  217. package/dist/runtime/editor/features/clipboard/DropElement/Video.vue.d.ts +8 -0
  218. package/dist/runtime/editor/features/clipboard/DropElement/helpers.d.ts +1 -0
  219. package/dist/runtime/editor/features/clipboard/DropElement/helpers.js +14 -0
  220. package/dist/runtime/editor/features/clipboard/DropElement/index.d.vue.ts +16 -0
  221. package/dist/runtime/editor/features/clipboard/DropElement/index.vue +97 -0
  222. package/dist/runtime/editor/features/clipboard/DropElement/index.vue.d.ts +16 -0
  223. package/dist/runtime/editor/features/clipboard/helpers.d.ts +15 -0
  224. package/dist/runtime/editor/features/clipboard/helpers.js +62 -0
  225. package/dist/runtime/editor/features/clipboard/index.vue +586 -338
  226. package/dist/runtime/editor/features/clipboard/types.d.ts +14 -2
  227. package/dist/runtime/editor/features/debug/index.vue +1 -1
  228. package/dist/runtime/editor/features/dev-mode/index.vue +86 -2
  229. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +17 -5
  230. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +2 -2
  231. package/dist/runtime/editor/features/dragging-overlay/index.vue +125 -219
  232. package/dist/runtime/editor/features/edit/index.vue +20 -0
  233. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue +4 -4
  234. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +6 -0
  235. package/dist/runtime/editor/features/fragments/types.d.ts +1 -0
  236. package/dist/runtime/editor/features/hover/Renderer/index.vue +30 -3
  237. package/dist/runtime/editor/features/hover/index.vue +1 -1
  238. package/dist/runtime/editor/features/library/index.vue +14 -0
  239. package/dist/runtime/editor/features/media-library/index.vue +32 -1
  240. package/dist/runtime/editor/features/options/Form/Checkbox/index.d.vue.ts +2 -2
  241. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +3 -3
  242. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue.d.ts +2 -2
  243. package/dist/runtime/editor/features/options/Form/Checkboxes/index.d.vue.ts +2 -2
  244. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +5 -5
  245. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue.d.ts +2 -2
  246. package/dist/runtime/editor/features/options/Form/ComplexType/index.d.vue.ts +11 -0
  247. package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +36 -0
  248. package/dist/runtime/editor/features/options/Form/ComplexType/index.vue.d.ts +11 -0
  249. package/dist/runtime/editor/features/options/Form/Item.d.vue.ts +5 -4
  250. package/dist/runtime/editor/features/options/Form/Item.vue +24 -50
  251. package/dist/runtime/editor/features/options/Form/Item.vue.d.ts +5 -4
  252. package/dist/runtime/editor/features/options/Form/Number/index.d.vue.ts +3 -3
  253. package/dist/runtime/editor/features/options/Form/Number/index.vue +7 -17
  254. package/dist/runtime/editor/features/options/Form/Number/index.vue.d.ts +3 -3
  255. package/dist/runtime/editor/features/options/Form/Range/index.d.vue.ts +2 -2
  256. package/dist/runtime/editor/features/options/Form/Range/index.vue +4 -4
  257. package/dist/runtime/editor/features/options/Form/Range/index.vue.d.ts +2 -2
  258. package/dist/runtime/editor/features/options/Form/index.vue +15 -5
  259. package/dist/runtime/editor/features/search/index.vue +25 -1
  260. package/dist/runtime/editor/features/selection/index.vue +2 -2
  261. package/dist/runtime/editor/features/structure/index.vue +25 -1
  262. package/dist/runtime/editor/features/tour/index.vue +22 -12
  263. package/dist/runtime/editor/features/transform/index.vue +1 -3
  264. package/dist/runtime/editor/helpers/clipboardData/index.d.ts +11 -0
  265. package/dist/runtime/editor/helpers/clipboardData/index.js +157 -0
  266. package/dist/runtime/editor/helpers/options/index.js +5 -0
  267. package/dist/runtime/editor/icons/svg/stars.svg +5 -1
  268. package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
  269. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
  270. package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +15 -4
  271. package/dist/runtime/editor/plugins/Sidebar/index.vue +4 -2
  272. package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +15 -4
  273. package/dist/runtime/editor/providers/analyze.d.ts +43 -0
  274. package/dist/runtime/editor/providers/analyze.js +78 -0
  275. package/dist/runtime/editor/providers/animation.d.ts +4 -0
  276. package/dist/runtime/editor/providers/animation.js +6 -0
  277. package/dist/runtime/editor/providers/definition.d.ts +2 -2
  278. package/dist/runtime/editor/providers/definition.js +7 -1
  279. package/dist/runtime/editor/providers/dom.d.ts +5 -0
  280. package/dist/runtime/editor/providers/dom.js +11 -2
  281. package/dist/runtime/editor/providers/dragdrop.d.ts +55 -0
  282. package/dist/runtime/editor/providers/dragdrop.js +37 -0
  283. package/dist/runtime/editor/providers/fields.d.ts +19 -1
  284. package/dist/runtime/editor/providers/fields.js +54 -2
  285. package/dist/runtime/editor/providers/storage.js +15 -0
  286. package/dist/runtime/editor/providers/ui.d.ts +6 -0
  287. package/dist/runtime/editor/providers/ui.js +19 -0
  288. package/dist/runtime/editor/translations/de.json +338 -58
  289. package/dist/runtime/editor/translations/fr.json +331 -51
  290. package/dist/runtime/editor/translations/gsw_CH.json +336 -56
  291. package/dist/runtime/editor/translations/it.json +331 -51
  292. package/dist/runtime/editor/types/app.d.ts +4 -2
  293. package/dist/runtime/editor/types/draggable.d.ts +1 -0
  294. package/dist/runtime/editor/types/ui.d.ts +1 -1
  295. package/dist/runtime/helpers/imports/index.d.ts +8 -1
  296. package/dist/runtime/helpers/imports/index.js +15 -6
  297. package/dist/runtime/helpers/injections.d.ts +6 -2
  298. package/dist/runtime/helpers/injections.js +3 -0
  299. package/dist/runtime/helpers/runtimeHelpers/index.js +14 -0
  300. package/dist/runtime/types/blockOptions.d.ts +2 -1
  301. package/dist/runtime/types/definitions.d.ts +12 -5
  302. package/dist/runtime/types/provider.d.ts +2 -0
  303. package/dist/shared/editor.6D5vApr0.mjs +30 -0
  304. package/dist/shared/{editor.DMFfaLVE.mjs → editor.BFIzNSQM.mjs} +1 -30
  305. package/dist/shared/{editor.Iax3GCvt.d.mts → editor.BdBm1Z7C.d.mts} +34 -0
  306. package/dist/types.d.mts +1 -1
  307. package/package.json +21 -3
  308. package/dist/modules/agent/runtime/app/tools/get_available_bundles/index.js +0 -104
  309. package/dist/runtime/editor/features/clipboard/List/Item/File.d.vue.ts +0 -4
  310. package/dist/runtime/editor/features/clipboard/List/Item/File.vue +0 -60
  311. package/dist/runtime/editor/features/clipboard/List/Item/File.vue.d.ts +0 -4
  312. package/dist/runtime/editor/features/clipboard/List/Item/Video.d.vue.ts +0 -4
  313. package/dist/runtime/editor/features/clipboard/List/Item/Video.vue.d.ts +0 -4
  314. package/dist/runtime/editor/features/clipboard/List/index.vue +0 -72
  315. package/dist/runtime/editor/features/tour/Popup/index.d.vue.ts +0 -9
  316. package/dist/runtime/editor/features/tour/Popup/index.vue +0 -34
  317. package/dist/runtime/editor/features/tour/Popup/index.vue.d.ts +0 -9
  318. package/dist/runtime/editor/providers/dropArea.d.ts +0 -48
  319. package/dist/runtime/editor/providers/dropArea.js +0 -22
  320. /package/dist/modules/agent/runtime/app/tools/{get_available_bundles → analyze_content}/index.d.ts +0 -0
@@ -0,0 +1,11 @@
1
+ import { B as BlokkliModule } from '../../shared/editor.BdBm1Z7C.mjs';
2
+ import 'nuxt/schema';
3
+ import 'consola';
4
+ import '../../../dist/global/types/definitions.js';
5
+ import '../../../dist/global/types/theme.js';
6
+ import '@nuxt/kit';
7
+ import '../../../dist/global/types/features.js';
8
+
9
+ declare const _default: (options?: object) => BlokkliModule<object>;
10
+
11
+ export { _default as default };
@@ -0,0 +1,24 @@
1
+ import { createResolver, addComponent } from '@nuxt/kit';
2
+ import { d as defineBlokkliModule } from '../../shared/editor.CGf7C_0M.mjs';
3
+ import { fileURLToPath } from 'node:url';
4
+
5
+ const index = defineBlokkliModule({
6
+ setup(ctx) {
7
+ const moduleResolver = createResolver(
8
+ fileURLToPath(new URL("./", import.meta.url))
9
+ );
10
+ ctx.helper.addAlias(
11
+ "#blokkli/table-of-contents",
12
+ moduleResolver.resolve("./runtime/types")
13
+ );
14
+ addComponent({
15
+ filePath: moduleResolver.resolve(
16
+ "./runtime/components/BlokkliTableOfContents/index.vue"
17
+ ),
18
+ name: "BlokkliTableOfContents",
19
+ global: true
20
+ });
21
+ }
22
+ });
23
+
24
+ export { index as default };
@@ -0,0 +1,44 @@
1
+ import type { fromLibraryBlockBundle } from '#blokkli-build/config';
2
+ import type { FieldListItemTyped } from '#blokkli-build/generated-types';
3
+ import type { BlokkliTableOfContentsLink } from './../../types/index.js';
4
+ type BundleWithoutLibrary = Exclude<FieldListItemTyped['bundle'], typeof fromLibraryBlockBundle>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: <T extends BundleWithoutLibrary>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
9
+ /**
10
+ * Which bundles to include. This will also match reusable blocks of this bundle.
11
+ */
12
+ bundles: T[];
13
+ /**
14
+ * The name of the defineBlokkli option used to toggle if a block should be
15
+ * added to the table of contents.
16
+ *
17
+ * If not provided, all blocks are included.
18
+ */
19
+ optionName?: string;
20
+ /**
21
+ * Map a block item to a link.
22
+ */
23
+ mapItem: (item: Extract<FieldListItemTyped, {
24
+ bundle: T;
25
+ }>) => BlokkliTableOfContentsLink | null;
26
+ }> & (typeof globalThis extends {
27
+ __VLS_PROPS_FALLBACK: infer P;
28
+ } ? P : {});
29
+ expose: (exposed: {}) => void;
30
+ attrs: any;
31
+ slots: {
32
+ default(props: {
33
+ links: BlokkliTableOfContentsLink[];
34
+ }): any;
35
+ };
36
+ emit: {};
37
+ }>) => import("vue").VNode & {
38
+ __ctx?: Awaited<typeof __VLS_setup>;
39
+ };
40
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
41
+ [K in keyof T]: T[K];
42
+ } : {
43
+ [K in keyof T as K]: T[K];
44
+ }) & {};
@@ -0,0 +1,43 @@
1
+ <template>
2
+ <slot :links />
3
+ </template>
4
+
5
+ <script>
6
+
7
+ </script>
8
+
9
+ <script setup>
10
+ import { falsy } from "#blokkli/helpers";
11
+ import { getRuntimeOptions } from "#blokkli/helpers/runtimeHelpers";
12
+ import { computed, useBlokkliHelper } from "#imports";
13
+ import { BK_HIDDEN_GLOBALLY } from "./../../../../../global/constants";
14
+ const props = defineProps({
15
+ bundles: { type: Array, required: true },
16
+ optionName: { type: String, required: false },
17
+ mapItem: { type: Function, required: true }
18
+ });
19
+ defineSlots();
20
+ const { queryBlocks } = useBlokkliHelper();
21
+ const items = queryBlocks(props.bundles);
22
+ const links = computed(() => {
23
+ return items.value.filter((item) => {
24
+ if ("bundle" in item) {
25
+ const options = getRuntimeOptions(item);
26
+ if (!options) {
27
+ return null;
28
+ }
29
+ if (props.optionName) {
30
+ const shouldShow = options[props.optionName];
31
+ if (!shouldShow) {
32
+ return false;
33
+ }
34
+ }
35
+ const hiddenGlobally = options[BK_HIDDEN_GLOBALLY];
36
+ if (hiddenGlobally) {
37
+ return false;
38
+ }
39
+ return true;
40
+ }
41
+ }).map(props.mapItem).filter(falsy);
42
+ });
43
+ </script>
@@ -0,0 +1,44 @@
1
+ import type { fromLibraryBlockBundle } from '#blokkli-build/config';
2
+ import type { FieldListItemTyped } from '#blokkli-build/generated-types';
3
+ import type { BlokkliTableOfContentsLink } from './../../types/index.js';
4
+ type BundleWithoutLibrary = Exclude<FieldListItemTyped['bundle'], typeof fromLibraryBlockBundle>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: <T extends BundleWithoutLibrary>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
9
+ /**
10
+ * Which bundles to include. This will also match reusable blocks of this bundle.
11
+ */
12
+ bundles: T[];
13
+ /**
14
+ * The name of the defineBlokkli option used to toggle if a block should be
15
+ * added to the table of contents.
16
+ *
17
+ * If not provided, all blocks are included.
18
+ */
19
+ optionName?: string;
20
+ /**
21
+ * Map a block item to a link.
22
+ */
23
+ mapItem: (item: Extract<FieldListItemTyped, {
24
+ bundle: T;
25
+ }>) => BlokkliTableOfContentsLink | null;
26
+ }> & (typeof globalThis extends {
27
+ __VLS_PROPS_FALLBACK: infer P;
28
+ } ? P : {});
29
+ expose: (exposed: {}) => void;
30
+ attrs: any;
31
+ slots: {
32
+ default(props: {
33
+ links: BlokkliTableOfContentsLink[];
34
+ }): any;
35
+ };
36
+ emit: {};
37
+ }>) => import("vue").VNode & {
38
+ __ctx?: Awaited<typeof __VLS_setup>;
39
+ };
40
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
41
+ [K in keyof T]: T[K];
42
+ } : {
43
+ [K in keyof T as K]: T[K];
44
+ }) & {};
@@ -0,0 +1,4 @@
1
+ export type BlokkliTableOfContentsLink = {
2
+ id: string;
3
+ label: string;
4
+ };
@@ -19,12 +19,16 @@ const ctx = defineBlokkli({
19
19
  disableEdit: true
20
20
  }
21
21
  });
22
+ const providerType = ctx.provider.value?.providerType;
22
23
  const allComponentsChunk = inject(INJECT_ALL_COMPONENTS_CHUNK, null);
23
24
  const component = getComponent(
24
25
  "fragment",
25
26
  componentProps.name,
26
- void 0,
27
- void 0,
27
+ {
28
+ fieldListType: void 0,
29
+ parentBundle: void 0,
30
+ providerType
31
+ },
28
32
  allComponentsChunk
29
33
  );
30
34
  provide(INJECT_FRAGMENT_CONTEXT, ctx);
@@ -33,7 +33,8 @@ import {
33
33
  INJECT_FIELD_PROXY_MODE,
34
34
  INJECT_FIELD_USES_PROXY,
35
35
  INJECT_GLOBAL_PROXY_MODE,
36
- INJECT_ITEM_PROPS_OVERRIDE
36
+ INJECT_ITEM_PROPS_OVERRIDE,
37
+ INJECT_PROVIDER_TYPE
37
38
  } from "../helpers/injections";
38
39
  import { fragmentBlockBundle, itemEntityType } from "#blokkli-build/config";
39
40
  const componentProps = defineProps({
@@ -53,8 +54,9 @@ const allComponentsChunk = inject(INJECT_ALL_COMPONENTS_CHUNK, null);
53
54
  const fieldUsesProxy = inject(INJECT_FIELD_USES_PROXY, false);
54
55
  const isGlobalProxyMode = inject(INJECT_GLOBAL_PROXY_MODE, null);
55
56
  const fieldListType = inject(INJECT_FIELD_LIST_TYPE, void 0);
57
+ const providerType = inject(INJECT_PROVIDER_TYPE, void 0);
56
58
  const itemProps = computed(() => {
57
- if (mutatedItemProps) {
59
+ if (mutatedItemProps && componentProps.isEditing) {
58
60
  const mutatedProps = mutatedItemProps[componentProps.uuid];
59
61
  if (mutatedProps) {
60
62
  return {
@@ -70,8 +72,11 @@ const component = isProxyMode || isGlobalProxyMode?.value ? defineAsyncComponent
70
72
  ) : getComponent(
71
73
  "block",
72
74
  componentProps.bundle,
73
- fieldListType?.value || "default",
74
- componentProps.parentType,
75
+ {
76
+ fieldListType: fieldListType?.value || "default",
77
+ parentBundle: componentProps.parentType,
78
+ providerType
79
+ },
75
80
  allComponentsChunk
76
81
  );
77
82
  const blockNotImplemented = componentProps.isEditing ? defineAsyncComponent(() => import("./Blocks/NotImplemented/index.vue")) : null;
@@ -1,4 +1,5 @@
1
1
  import type { EditPermission } from '#blokkli/types/provider';
2
+ import type { ValidProviderTypes } from '#blokkli-build/generated-types';
2
3
  declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
5
  /**
@@ -41,6 +42,12 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
41
42
  * Whether to isolate the provider element during editing.
42
43
  */
43
44
  isolate?: boolean;
45
+ /**
46
+ * The provider type.
47
+ *
48
+ * @default "default"
49
+ */
50
+ providerType?: ValidProviderTypes;
44
51
  } & ({
45
52
  /**
46
53
  * The entity data. Will be merged with the mutatedEntity data during editing.
@@ -15,6 +15,7 @@
15
15
  :entity-uuid
16
16
  :entity-bundle
17
17
  :language
18
+ :provider-type
18
19
  >
19
20
  <slot
20
21
  :entity="mutatedEntity"
@@ -34,6 +35,7 @@
34
35
  :language
35
36
  :isolate
36
37
  :permissions
38
+ :provider-type
37
39
  >
38
40
  <slot
39
41
  :is-editing
@@ -78,7 +80,8 @@ import {
78
80
  } from "#imports";
79
81
  import {
80
82
  INJECT_ENTITY_CONTEXT,
81
- INJECT_PROVIDER_CONTEXT
83
+ INJECT_PROVIDER_CONTEXT,
84
+ INJECT_PROVIDER_TYPE
82
85
  } from "../helpers/injections";
83
86
  const props = defineProps({
84
87
  entityType: { type: String, required: true },
@@ -91,6 +94,7 @@ const props = defineProps({
91
94
  hostOptions: { type: Object, required: false, default: void 0 },
92
95
  permissions: { type: Array, required: false, default: () => [] },
93
96
  isolate: { type: Boolean, required: false },
97
+ providerType: { type: null, required: false, default: "default" },
94
98
  entity: { type: null, required: false, default: void 0 }
95
99
  });
96
100
  defineSlots();
@@ -136,6 +140,7 @@ function edit() {
136
140
  const blokkliProviderEntityContext = computed(
137
141
  () => {
138
142
  return {
143
+ providerType: props.providerType,
139
144
  uuid: props.entityUuid,
140
145
  type: props.entityType,
141
146
  bundle: props.entityBundle,
@@ -152,6 +157,7 @@ const entityContext = computed(() => {
152
157
  });
153
158
  provide(INJECT_PROVIDER_CONTEXT, blokkliProviderEntityContext);
154
159
  provide(INJECT_ENTITY_CONTEXT, entityContext.value);
160
+ provide(INJECT_PROVIDER_TYPE, props.providerType);
155
161
  onMounted(() => {
156
162
  shouldRender.value = true;
157
163
  });
@@ -1,4 +1,5 @@
1
1
  import type { EditPermission } from '#blokkli/types/provider';
2
+ import type { ValidProviderTypes } from '#blokkli-build/generated-types';
2
3
  declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
4
  props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
5
  /**
@@ -41,6 +42,12 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
41
42
  * Whether to isolate the provider element during editing.
42
43
  */
43
44
  isolate?: boolean;
45
+ /**
46
+ * The provider type.
47
+ *
48
+ * @default "default"
49
+ */
50
+ providerType?: ValidProviderTypes;
44
51
  } & ({
45
52
  /**
46
53
  * The entity data. Will be merged with the mutatedEntity data during editing.
@@ -92,7 +92,7 @@ export function defineBlokkli(arg) {
92
92
  }
93
93
  if (editContext?.useBlockRegistration && editContext.dom && bundle !== fromLibraryBlockBundle && bundle !== fragmentBlockBundle) {
94
94
  const isProxyMode = inject(INJECT_FIELD_USES_PROXY, false);
95
- if (!isProxyMode) {
95
+ if (!isProxyMode && isEditing) {
96
96
  editContext.useBlockRegistration(editContext.dom, reusableUuid ?? uuid);
97
97
  }
98
98
  }
@@ -32,8 +32,10 @@ function walkBlocks(matches, callback, mutatedOptions, mutatedFieldsMap, list) {
32
32
  if (!("props" in mappedItem) || !mappedItem.props) continue;
33
33
  const propNames = Object.keys(nestedFieldMapping);
34
34
  for (const propName of propNames) {
35
- const fieldName = nestedFieldMapping[propName];
36
- const key = mappedItem.uuid + ":" + fieldName;
35
+ const mapping = nestedFieldMapping[propName];
36
+ if (!mapping) continue;
37
+ if (mapping[0] !== "field") continue;
38
+ const key = mappedItem.uuid + ":" + mapping[1];
37
39
  const value = mutatedFieldsMap ? mutatedFieldsMap[key]?.list : mappedItem.props?.[propName];
38
40
  if (!value) continue;
39
41
  const valueAsArray = Array.isArray(value) ? value : [value];
@@ -43,7 +43,8 @@ const {
43
43
  animation,
44
44
  state,
45
45
  directive,
46
- blocks
46
+ blocks,
47
+ fields
47
48
  } = useBlokkli();
48
49
  function onCanvasFocus() {
49
50
  ui.setCanvasFocused(true);
@@ -78,22 +79,12 @@ let pointerDownElement = null;
78
79
  let mouseStartCoordinates = null;
79
80
  let pointerDownTimestamp = 0;
80
81
  let pointerUpTimestamp = 0;
81
- function getFieldZIndex(uuid) {
82
- const fieldKey = state.getFieldKeyForUuid(uuid);
83
- if (!fieldKey) {
84
- return 0;
85
- }
86
- const separatorIndex = fieldKey.indexOf(":");
87
- const entityUuid = fieldKey.substring(0, separatorIndex);
88
- const fieldName = fieldKey.substring(separatorIndex + 1);
89
- return dom.getRegisteredField(entityUuid, fieldName)?.zIndex ?? 0;
90
- }
82
+ let pointerDownOnCanvas = false;
91
83
  function getInteractedElement(e) {
92
84
  const { x, y } = getInteractionCoordinates(e);
93
85
  const visibleUuids = dom.getVisibleBlocks();
94
86
  let deepestUuid = "";
95
87
  let deepestLevel = -1;
96
- let deepestZIndex = 0;
97
88
  for (let i = 0; i < visibleUuids.length; i++) {
98
89
  const uuid = visibleUuids[i];
99
90
  if (!uuid) {
@@ -114,13 +105,8 @@ function getInteractedElement(e) {
114
105
  if (level > deepestLevel) {
115
106
  deepestUuid = uuid;
116
107
  deepestLevel = level;
117
- deepestZIndex = getFieldZIndex(uuid);
118
- } else {
119
- const zIndex = getFieldZIndex(uuid);
120
- if (zIndex > deepestZIndex) {
121
- deepestUuid = uuid;
122
- deepestZIndex = zIndex;
123
- }
108
+ } else if (fields.compareFieldPriority(uuid, deepestUuid) > 0) {
109
+ deepestUuid = uuid;
124
110
  }
125
111
  }
126
112
  const editableField = directive.getEditableAtPoint(x, y);
@@ -159,7 +145,7 @@ function onPointerMove(e) {
159
145
  if (!handlePointerMove) {
160
146
  return;
161
147
  }
162
- if (keyboard.isPressingSpace.value || e.buttons === MOUSE_BUTTONS.AUXILIARY) {
148
+ if (keyboard.isPressingSpace.value || e.buttons & MOUSE_BUTTONS.AUXILIARY) {
163
149
  return;
164
150
  }
165
151
  e.preventDefault();
@@ -216,9 +202,10 @@ function onPointerMove(e) {
216
202
  }
217
203
  }
218
204
  function onPointerDown(e) {
219
- if (e.buttons === MOUSE_BUTTONS.AUXILIARY) {
205
+ if (e.buttons & MOUSE_BUTTONS.AUXILIARY) {
220
206
  return;
221
207
  }
208
+ pointerDownOnCanvas = true;
222
209
  if (canvasEl.value) {
223
210
  canvasEl.value.focus();
224
211
  }
@@ -266,15 +253,15 @@ function isClickInArtboard(coords) {
266
253
  return isInsideRect(coords.x, coords.y, rect);
267
254
  }
268
255
  function onPointerUp(e) {
269
- handlePointerMove = false;
270
256
  if (e.button === MOUSE_BUTTON.AUXILIARY) {
271
257
  e.preventDefault();
272
258
  return;
273
259
  }
260
+ handlePointerMove = false;
274
261
  e.preventDefault();
275
262
  e.stopPropagation();
276
263
  e.stopImmediatePropagation();
277
- if (ui.openTooltip.value) {
264
+ if (ui.openTooltip.value && !selection.activeEditableLabel.value) {
278
265
  ui.openTooltip.value = "";
279
266
  return;
280
267
  }
@@ -304,8 +291,11 @@ function onPointerUp(e) {
304
291
  return;
305
292
  }
306
293
  if (selection.activeEditableLabel.value) {
307
- eventBus.emit("window:clickAway");
308
- lastInteractedElement = null;
294
+ if (pointerDownOnCanvas) {
295
+ eventBus.emit("window:clickAway");
296
+ lastInteractedElement = null;
297
+ }
298
+ pointerDownOnCanvas = false;
309
299
  return;
310
300
  }
311
301
  if (animation.handleClick(e.clientX, e.clientY)) {
@@ -318,6 +308,7 @@ function onPointerUp(e) {
318
308
  const deltaY = Math.abs(lastInteractedElement.y - e.clientY);
319
309
  if (deltaTime < 400 && deltaX < 3 && deltaY < 3) {
320
310
  if (clicked.editableFieldName) {
311
+ pointerDownOnCanvas = false;
321
312
  eventBus.emit("editable:focus", {
322
313
  fieldName: clicked.editableFieldName,
323
314
  uuid: clicked.uuid
@@ -342,7 +333,6 @@ function onPointerUp(e) {
342
333
  } else if (keyboard.isPressingShift.value) {
343
334
  eventBus.emit("select:shiftToggle", clicked.uuid);
344
335
  } else {
345
- console.log("asdfasdf");
346
336
  eventBus.emit("select", clicked.uuid);
347
337
  }
348
338
  return;
@@ -464,7 +454,7 @@ function onClick(e) {
464
454
  e.preventDefault();
465
455
  e.stopImmediatePropagation();
466
456
  e.stopPropagation();
467
- if (canvasEl.value) {
457
+ if (canvasEl.value && !selection.activeEditableLabel.value) {
468
458
  canvasEl.value.focus();
469
459
  }
470
460
  }
@@ -3,17 +3,28 @@ import type { ThemeColorName } from './../../../../global/types/theme.js';
3
3
  type __VLS_Props = {
4
4
  id: string;
5
5
  icon: BlokkliIcon;
6
- text: string;
6
+ text?: string;
7
7
  button?: string;
8
8
  scheme?: ThemeColorName;
9
9
  };
10
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ declare var __VLS_6: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_6) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
15
  click: () => any;
12
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
17
  onClick?: (() => any) | undefined;
14
18
  }>, {
19
+ text: string;
15
20
  button: string;
16
21
  scheme: ThemeColorName;
17
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
24
  declare const _default: typeof __VLS_export;
19
25
  export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -5,7 +5,9 @@
5
5
  :class="scheme ? 'bk-scheme-' + scheme : void 0"
6
6
  >
7
7
  <Icon :name="icon" />
8
- <p v-html="text" />
8
+ <slot>
9
+ <p v-if="text" v-html="text" />
10
+ </slot>
9
11
  <button v-if="button" class="bk-banner-close" @click="$emit('click')">
10
12
  {{ button }}
11
13
  <Icon name="bk_mdi_close" />
@@ -24,7 +26,7 @@ import {
24
26
  const props = defineProps({
25
27
  id: { type: String, required: true },
26
28
  icon: { type: null, required: true },
27
- text: { type: String, required: true },
29
+ text: { type: String, required: false, default: void 0 },
28
30
  button: { type: String, required: false, default: void 0 },
29
31
  scheme: { type: String, required: false, default: "accent" }
30
32
  });
@@ -3,17 +3,28 @@ import type { ThemeColorName } from './../../../../global/types/theme.js';
3
3
  type __VLS_Props = {
4
4
  id: string;
5
5
  icon: BlokkliIcon;
6
- text: string;
6
+ text?: string;
7
7
  button?: string;
8
8
  scheme?: ThemeColorName;
9
9
  };
10
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ declare var __VLS_6: {};
11
+ type __VLS_Slots = {} & {
12
+ default?: (props: typeof __VLS_6) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
11
15
  click: () => any;
12
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
13
17
  onClick?: (() => any) | undefined;
14
18
  }>, {
19
+ text: string;
15
20
  button: string;
16
21
  scheme: ThemeColorName;
17
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
24
  declare const _default: typeof __VLS_export;
19
25
  export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ position?: 'bottom-left' | 'top-left' | 'top-right';
3
+ disabled?: boolean;
4
+ };
5
+ declare function close(): void;
6
+ declare var __VLS_1: {}, __VLS_9: {
7
+ close: typeof close;
8
+ };
9
+ type __VLS_Slots = {} & {
10
+ button?: (props: typeof __VLS_1) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_9) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
15
+ close: typeof close;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
+ disabled: boolean;
18
+ position: "bottom-left" | "top-left" | "top-right";
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };