@blokkli/editor 2.0.0-alpha.62 → 2.0.0-alpha.64

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 (312) hide show
  1. package/dist/global/types/blockOptions.d.ts +32 -27
  2. package/dist/global/types/colorOptions.d.ts +16 -0
  3. package/dist/module.d.mts +2 -2
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +275 -18
  6. package/dist/modules/agent/index.d.mts +1 -1
  7. package/dist/modules/agent/index.mjs +2 -1
  8. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue +1 -1
  9. package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.vue +14 -5
  10. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue +2 -2
  11. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue +2 -2
  12. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue +2 -2
  13. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.d.vue.ts +1 -1
  14. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue.d.ts +1 -1
  15. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +1 -1
  16. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue +1 -1
  17. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue +14 -1
  18. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +31 -13
  19. package/dist/modules/agent/runtime/app/features/agent/index.vue +1 -1
  20. package/dist/modules/agent/runtime/app/helpers/linkifyBlockUuids.d.ts +11 -0
  21. package/dist/modules/agent/runtime/app/helpers/linkifyBlockUuids.js +47 -0
  22. package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.d.ts +1 -1
  23. package/dist/modules/agent/runtime/app/tools/add_fragment/index.d.ts +1 -1
  24. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.d.ts +1 -1
  25. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +1 -1
  26. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.d.ts +1 -1
  27. package/dist/modules/agent/runtime/app/tools/add_template/index.d.ts +1 -1
  28. package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue +1 -1
  29. package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +1 -1
  30. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.d.vue.ts +22 -0
  31. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue +28 -26
  32. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue.d.ts +22 -0
  33. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +16 -1
  34. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.d.vue.ts +22 -0
  35. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +59 -16
  36. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue.d.ts +22 -0
  37. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +15 -0
  38. package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.d.ts +1 -1
  39. package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.d.ts +1 -1
  40. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.d.ts +1 -1
  41. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.d.ts +85 -15
  42. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.js +136 -28
  43. package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.d.ts +2 -2
  44. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +6 -2
  45. package/dist/modules/agent/runtime/app/tools/get_content_fields/index.d.ts +3 -3
  46. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.d.ts +5 -5
  47. package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.d.ts +1 -1
  48. package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +1 -1
  49. package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.d.ts +1 -1
  50. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.d.ts +1 -1
  51. package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.d.ts +1 -1
  52. package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.d.ts +1 -1
  53. package/dist/modules/agent/runtime/app/tools/replace_media_field/index.d.ts +1 -1
  54. package/dist/modules/agent/runtime/app/tools/schemas.d.ts +17 -7
  55. package/dist/modules/agent/runtime/app/tools/schemas.js +29 -12
  56. package/dist/modules/agent/runtime/app/tools/search_text/index.js +1 -1
  57. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.d.ts +1 -1
  58. package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.d.ts +1 -1
  59. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.d.vue.ts +22 -0
  60. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue +54 -30
  61. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue.d.ts +22 -0
  62. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +18 -3
  63. package/dist/modules/agent/runtime/server/classes/FieldStreamParser/index.js +10 -15
  64. package/dist/modules/agent/runtime/server/default-system-prompts/architecture.js +1 -1
  65. package/dist/modules/agent/runtime/server/default-system-prompts/important-rules.js +1 -0
  66. package/dist/modules/agent/runtime/shared/toolParams.d.ts +3 -3
  67. package/dist/modules/agent/runtime/shared/types.d.ts +3 -3
  68. package/dist/modules/charts/index.d.mts +14 -1
  69. package/dist/modules/charts/index.mjs +37 -2
  70. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +1 -1
  71. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +12 -5
  72. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +7 -16
  73. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue +1 -1
  74. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue +19 -9
  75. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +7 -77
  76. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue +1 -1
  77. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.d.ts +1 -1
  78. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +16 -8
  79. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue +23 -7
  80. package/dist/modules/charts/runtime/features/charts/Editor/index.vue +5 -6
  81. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +1 -1
  82. package/dist/modules/charts/runtime/helpers/index.d.ts +2 -1
  83. package/dist/modules/charts/runtime/helpers/index.js +4 -2
  84. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +5 -0
  85. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutationResult.graphql +3 -0
  86. package/dist/modules/drupal/index.d.mts +1 -1
  87. package/dist/modules/drupal/runtime/adapter/index.js +5 -1
  88. package/dist/modules/iframes/index.d.mts +1 -1
  89. package/dist/modules/index.d.mts +1 -1
  90. package/dist/modules/readability/index.d.mts +1 -1
  91. package/dist/modules/readability/index.mjs +2 -1
  92. package/dist/modules/table-of-contents/index.d.mts +1 -1
  93. package/dist/runtime/components/Blocks/NotImplemented/index.vue +1 -1
  94. package/dist/runtime/composables/useBlokkliRuntimeConfig.d.ts +50 -0
  95. package/dist/runtime/composables/useBlokkliRuntimeConfig.js +34 -0
  96. package/dist/runtime/editor/adapter/index.d.ts +2 -1
  97. package/dist/runtime/editor/components/Actions/Title/index.vue +1 -1
  98. package/dist/runtime/editor/components/Actions/index.vue +1 -1
  99. package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +1 -0
  100. package/dist/runtime/editor/components/ArtboardTooltip/index.vue +2 -2
  101. package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +1 -0
  102. package/dist/runtime/editor/components/Avatar/index.vue +1 -1
  103. package/dist/runtime/editor/components/BlockPreviewItem/index.vue +1 -1
  104. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +1 -1
  105. package/dist/runtime/editor/components/BlockProxy/index.vue +1 -1
  106. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +1 -1
  107. package/dist/runtime/editor/components/BundleSelector/index.vue +1 -1
  108. package/dist/runtime/editor/components/ColorDropdown/index.d.vue.ts +26 -0
  109. package/dist/runtime/editor/components/ColorDropdown/index.vue +116 -0
  110. package/dist/runtime/editor/components/ColorDropdown/index.vue.d.ts +26 -0
  111. package/dist/runtime/editor/components/Dialog/index.vue +1 -1
  112. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +14 -20
  113. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +97 -52
  114. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +14 -20
  115. package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +6 -6
  116. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +30 -21
  117. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +6 -6
  118. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +19 -9
  119. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +19 -10
  120. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +19 -9
  121. package/dist/runtime/editor/components/DiffApproval/index.d.vue.ts +14 -6
  122. package/dist/runtime/editor/components/DiffApproval/index.vue +62 -35
  123. package/dist/runtime/editor/components/DiffApproval/index.vue.d.ts +14 -6
  124. package/dist/runtime/editor/components/DiffApproval/types.d.ts +32 -0
  125. package/dist/runtime/editor/components/DiffApproval/types.js +20 -0
  126. package/dist/runtime/editor/components/DiffViewer/State.vue +1 -1
  127. package/dist/runtime/editor/components/DraggableList.vue +1 -1
  128. package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +6 -4
  129. package/dist/runtime/editor/components/Dropdown/index.vue +91 -31
  130. package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +6 -4
  131. package/dist/runtime/editor/components/DropdownItem/index.vue +1 -1
  132. package/dist/runtime/editor/components/EditIndicator.vue +1 -1
  133. package/dist/runtime/editor/components/EditProvider.vue +2 -2
  134. package/dist/runtime/editor/components/FileDropHandler/index.vue +1 -1
  135. package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
  136. package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
  137. package/dist/runtime/editor/components/Form/RadioTabs/index.vue +1 -1
  138. package/dist/runtime/editor/components/Form/Search/index.d.vue.ts +1 -0
  139. package/dist/runtime/editor/components/Form/Search/index.vue +2 -2
  140. package/dist/runtime/editor/components/Form/Search/index.vue.d.ts +1 -0
  141. package/dist/runtime/editor/components/FormOverlay/index.vue +1 -1
  142. package/dist/runtime/editor/components/Icon/index.vue +1 -1
  143. package/dist/runtime/editor/components/Indicators/index.vue +31 -100
  144. package/dist/runtime/editor/components/Konami/Game/index.vue +1 -1
  145. package/dist/runtime/editor/components/Messages/index.vue +1 -1
  146. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +3 -2
  147. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +5 -4
  148. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +3 -2
  149. package/dist/runtime/editor/components/Overlay/index.vue +1 -1
  150. package/dist/runtime/editor/components/Pagination/index.vue +1 -1
  151. package/dist/runtime/editor/components/Panel/Section/index.vue +1 -1
  152. package/dist/runtime/editor/components/Panel/Tabs/index.d.vue.ts +1 -1
  153. package/dist/runtime/editor/components/Panel/Tabs/index.vue.d.ts +1 -1
  154. package/dist/runtime/editor/components/PluginConfigForm/index.vue +1 -1
  155. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +1 -1
  156. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +1 -1
  157. package/dist/runtime/editor/components/Popup/index.vue +1 -1
  158. package/dist/runtime/editor/components/PopupHost/index.d.vue.ts +13 -0
  159. package/dist/runtime/editor/components/PopupHost/index.vue +12 -0
  160. package/dist/runtime/editor/components/PopupHost/index.vue.d.ts +13 -0
  161. package/dist/runtime/editor/components/PreviewProvider.vue +3 -2
  162. package/dist/runtime/editor/components/RelativeTime/index.vue +7 -13
  163. package/dist/runtime/editor/components/Resizable/index.vue +1 -1
  164. package/dist/runtime/editor/components/RichText/Editor/index.vue +1 -1
  165. package/dist/runtime/editor/components/ScaleToFit/index.vue +1 -1
  166. package/dist/runtime/editor/components/SearchOverlay/index.vue +1 -1
  167. package/dist/runtime/editor/components/SidebarFloater/index.vue +1 -1
  168. package/dist/runtime/editor/components/StatusIcon/index.vue +1 -1
  169. package/dist/runtime/editor/components/StatusIndicator/index.vue +1 -1
  170. package/dist/runtime/editor/components/SystemRequirements/index.vue +1 -1
  171. package/dist/runtime/editor/components/Tabs/index.d.vue.ts +1 -1
  172. package/dist/runtime/editor/components/Tabs/index.vue.d.ts +1 -1
  173. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +2 -1
  174. package/dist/runtime/editor/components/Toolbar/index.vue +1 -1
  175. package/dist/runtime/editor/components/Transition/Collapse/index.vue +1 -1
  176. package/dist/runtime/editor/components/Transition/List/index.vue +1 -1
  177. package/dist/runtime/editor/components/index.d.ts +2 -0
  178. package/dist/runtime/editor/components/index.js +2 -0
  179. package/dist/runtime/editor/composables/defineViewOption.js +5 -1
  180. package/dist/runtime/editor/composables/useStickyToolbar.js +1 -4
  181. package/dist/runtime/editor/css/output.css +1 -1
  182. package/dist/runtime/editor/features/add-list/Help/index.vue +1 -1
  183. package/dist/runtime/editor/features/add-list/index.vue +1 -1
  184. package/dist/runtime/editor/features/analyze/Main.vue +15 -2
  185. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +4 -1
  186. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +25 -16
  187. package/dist/runtime/editor/features/analyze/analyzers/defaults/validations.d.ts +10 -0
  188. package/dist/runtime/editor/features/analyze/analyzers/defaults/validations.js +39 -0
  189. package/dist/runtime/editor/features/analyze/analyzers/helpers/Context.d.ts +5 -1
  190. package/dist/runtime/editor/features/analyze/analyzers/helpers/Context.js +5 -0
  191. package/dist/runtime/editor/features/analyze/index.vue +1 -2
  192. package/dist/runtime/editor/features/anchors/Overlay/index.vue +11 -5
  193. package/dist/runtime/editor/features/anchors/index.vue +2 -1
  194. package/dist/runtime/editor/features/artboard/Overview/index.vue +1 -1
  195. package/dist/runtime/editor/features/artboard/Renderer.vue +1 -1
  196. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +1 -1
  197. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
  198. package/dist/runtime/editor/features/block-transfer/index.vue +1 -1
  199. package/dist/runtime/editor/features/breadcrumbs/index.vue +1 -1
  200. package/dist/runtime/editor/features/changelog/changelog.json +17 -1
  201. package/dist/runtime/editor/features/clipboard/DropElement/index.vue +1 -1
  202. package/dist/runtime/editor/features/comments/AddForm/index.vue +1 -1
  203. package/dist/runtime/editor/features/comments/Comment/Meta/index.vue +1 -1
  204. package/dist/runtime/editor/features/comments/Comment/index.vue +1 -1
  205. package/dist/runtime/editor/features/comments/Thread/index.vue +1 -1
  206. package/dist/runtime/editor/features/complex-options/index.vue +1 -0
  207. package/dist/runtime/editor/features/debug/Main.vue +1 -1
  208. package/dist/runtime/editor/features/dev-mode/index.vue +1 -1
  209. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +1 -1
  210. package/dist/runtime/editor/features/dragging-overlay/index.vue +1 -1
  211. package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +1 -1
  212. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +1 -1
  213. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.d.vue.ts +1 -5
  214. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue.d.ts +1 -5
  215. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +1 -1
  216. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +1 -1
  217. package/dist/runtime/editor/features/editable-mask/index.vue +1 -1
  218. package/dist/runtime/editor/features/entity-title/index.vue +17 -7
  219. package/dist/runtime/editor/features/help/Dialog/index.vue +1 -1
  220. package/dist/runtime/editor/features/help/Shortcuts/index.vue +1 -1
  221. package/dist/runtime/editor/features/history/List/index.vue +1 -1
  222. package/dist/runtime/editor/features/import-existing/Dialog/index.vue +1 -1
  223. package/dist/runtime/editor/features/library/index.vue +1 -0
  224. package/dist/runtime/editor/features/media-library/index.vue +1 -1
  225. package/dist/runtime/editor/features/options/Form/Item.vue +5 -12
  226. package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +5 -4
  227. package/dist/runtime/editor/features/options/Form/Radios/index.vue +8 -5
  228. package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +5 -4
  229. package/dist/runtime/editor/features/options/Form/Text/index.d.vue.ts +4 -0
  230. package/dist/runtime/editor/features/options/Form/Text/index.vue +11 -3
  231. package/dist/runtime/editor/features/options/Form/Text/index.vue.d.ts +4 -0
  232. package/dist/runtime/editor/features/options/index.vue +1 -1
  233. package/dist/runtime/editor/features/publish/Dialog/Item.vue +4 -7
  234. package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +1 -1
  235. package/dist/runtime/editor/features/publish/Dialog/Violations.d.vue.ts +12 -0
  236. package/dist/runtime/editor/features/publish/Dialog/Violations.vue +117 -0
  237. package/dist/runtime/editor/features/publish/Dialog/Violations.vue.d.ts +12 -0
  238. package/dist/runtime/editor/features/publish/Dialog/index.vue +61 -24
  239. package/dist/runtime/editor/features/publish/index.vue +2 -4
  240. package/dist/runtime/editor/features/publish/types.d.ts +0 -4
  241. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +1 -0
  242. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +1 -1
  243. package/dist/runtime/editor/features/search/index.vue +1 -1
  244. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +1 -1
  245. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +1 -1
  246. package/dist/runtime/editor/features/settings/index.vue +1 -1
  247. package/dist/runtime/editor/features/structure/List/Item/index.vue +1 -1
  248. package/dist/runtime/editor/features/structure/index.vue +1 -1
  249. package/dist/runtime/editor/features/templates/DialogManageTemplates/Item.vue +1 -0
  250. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue +1 -1
  251. package/dist/runtime/editor/features/theme/index.vue +1 -1
  252. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +1 -1
  253. package/dist/runtime/editor/features/tour/Overlay/index.vue +1 -1
  254. package/dist/runtime/editor/features/transform/Dialog/index.vue +1 -1
  255. package/dist/runtime/editor/features/translations/SelectionTable/index.vue +1 -1
  256. package/dist/runtime/editor/features/workspace/index.vue +1 -1
  257. package/dist/runtime/editor/helpers/color/index.d.ts +7 -0
  258. package/dist/runtime/editor/helpers/color/index.js +14 -0
  259. package/dist/runtime/editor/helpers/diff/index.d.ts +98 -0
  260. package/dist/runtime/editor/helpers/diff/index.js +262 -0
  261. package/dist/runtime/editor/helpers/injections.d.ts +11 -0
  262. package/dist/runtime/editor/helpers/injections.js +1 -0
  263. package/dist/runtime/editor/helpers/options/index.d.ts +2 -0
  264. package/dist/runtime/editor/helpers/options/index.js +21 -0
  265. package/dist/runtime/editor/plugins/BlockIndicator/index.d.vue.ts +24 -1
  266. package/dist/runtime/editor/plugins/BlockIndicator/index.vue +17 -7
  267. package/dist/runtime/editor/plugins/BlockIndicator/index.vue.d.ts +24 -1
  268. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +1 -0
  269. package/dist/runtime/editor/plugins/ItemAction/index.vue +1 -1
  270. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +1 -0
  271. package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
  272. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
  273. package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +2 -2
  274. package/dist/runtime/editor/plugins/Sidebar/index.vue +1 -1
  275. package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +2 -2
  276. package/dist/runtime/editor/plugins/ToolbarButton/index.vue +1 -1
  277. package/dist/runtime/editor/providers/analyze.js +5 -2
  278. package/dist/runtime/editor/providers/animation.d.ts +2 -0
  279. package/dist/runtime/editor/providers/config.d.ts +3 -1
  280. package/dist/runtime/editor/providers/config.js +46 -15
  281. package/dist/runtime/editor/providers/definition.d.ts +4 -3
  282. package/dist/runtime/editor/providers/definition.js +10 -2
  283. package/dist/runtime/editor/providers/plugin.d.ts +1 -0
  284. package/dist/runtime/editor/providers/state.d.ts +21 -0
  285. package/dist/runtime/editor/providers/state.js +10 -0
  286. package/dist/runtime/editor/translations/de.json +9 -4
  287. package/dist/runtime/editor/translations/fr.json +4 -4
  288. package/dist/runtime/editor/translations/gsw_CH.json +9 -4
  289. package/dist/runtime/editor/translations/it.json +4 -4
  290. package/dist/runtime/editor/types/state.d.ts +7 -0
  291. package/dist/runtime/editor/types/ui.d.ts +1 -0
  292. package/dist/runtime/helpers/colors.d.ts +39 -0
  293. package/dist/runtime/helpers/colors.js +28 -0
  294. package/dist/runtime/types/colors.d.ts +11 -0
  295. package/dist/shared/{editor.D28NbXr3.d.mts → editor.BDyiQvbV.d.mts} +434 -406
  296. package/dist/shared/{editor.Gu7mgJ5Q.mjs → editor.BGemL1Oh.mjs} +146 -146
  297. package/dist/types.d.mts +1 -1
  298. package/package.json +74 -82
  299. package/dist/runtime/editor/features/validations/Overlay/Item.d.vue.ts +0 -7
  300. package/dist/runtime/editor/features/validations/Overlay/Item.vue +0 -36
  301. package/dist/runtime/editor/features/validations/Overlay/Item.vue.d.ts +0 -7
  302. package/dist/runtime/editor/features/validations/Overlay/index.d.vue.ts +0 -7
  303. package/dist/runtime/editor/features/validations/Overlay/index.vue +0 -115
  304. package/dist/runtime/editor/features/validations/Overlay/index.vue.d.ts +0 -7
  305. package/dist/runtime/editor/features/validations/SidebarItem/index.d.vue.ts +0 -10
  306. package/dist/runtime/editor/features/validations/SidebarItem/index.vue +0 -41
  307. package/dist/runtime/editor/features/validations/SidebarItem/index.vue.d.ts +0 -10
  308. package/dist/runtime/editor/features/validations/index.d.vue.ts +0 -3
  309. package/dist/runtime/editor/features/validations/index.vue +0 -91
  310. package/dist/runtime/editor/features/validations/index.vue.d.ts +0 -3
  311. package/dist/runtime/editor/types/config.d.ts +0 -5
  312. /package/dist/runtime/{editor/types/config.js → types/colors.js} +0 -0
@@ -146,7 +146,7 @@ import { loadFzf } from "#blokkli/editor/libraries/fzf";
146
146
  import { modulo } from "#blokkli/editor/helpers/math";
147
147
  const props = defineProps({
148
148
  id: { type: String, required: true },
149
- label: { type: String, required: false },
149
+ label: { type: String, required: false, default: void 0 },
150
150
  description: { type: String, required: false, default: void 0 },
151
151
  required: { type: Boolean, required: false },
152
152
  disabled: { type: Boolean, required: false },
@@ -280,7 +280,7 @@ defineExpose({
280
280
  });
281
281
  </script>
282
282
 
283
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
283
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
284
284
  .bk .bk-form-search-result + .bk-form-search-result {
285
285
  border-top-style: var(--bk-tw-border-style);
286
286
  border-top-width: 1px;
@@ -69,6 +69,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
69
69
  onClear?: (() => any) | undefined;
70
70
  "onUpdate:query"?: ((value: string) => any) | undefined;
71
71
  }>, {
72
+ label: string;
72
73
  description: string;
73
74
  icon: BlokkliIcon;
74
75
  mode: "fzf" | "async";
@@ -54,7 +54,7 @@ export default {
54
54
  };
55
55
  </script>
56
56
 
57
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
57
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
58
58
  .bk.bk-form-overlay-footer {
59
59
  position: sticky;
60
60
  bottom: 0px;
@@ -38,7 +38,7 @@ export default {
38
38
  };
39
39
  </script>
40
40
 
41
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
41
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
42
42
  .bk-icon svg {
43
43
  fill: currentcolor;
44
44
  }
@@ -1,10 +1,23 @@
1
1
  <template>
2
2
  <Teleport to="#bk-canvas-overlay">
3
- <div id="bk-indicators" class="bk bk-indicators" :style>
4
- <div id="bk-indicators-left" />
3
+ <div
4
+ id="bk-indicators"
5
+ class="bk bk-indicators _bk_absolute _bk_top-0 _bk_left-0 _bk_pointer-events-none _bk_origin-top-left _bk_z-interaction-overlay"
6
+ :style
7
+ >
8
+ <div
9
+ id="bk-indicators-left"
10
+ class="_bk_absolute _bk_right-full _bk_top-0 _bk_whitespace-nowrap _bk_h-full"
11
+ />
5
12
  <div id="bk-indicators-right" />
6
- <div class="bk-indicators-hovered" :style="hoveredStyle" />
7
- <div class="bk-indicators-highlighted" :style="highlightedStyle" />
13
+ <div
14
+ class="bk-indicators-hovered _bk_absolute _bk_top-0 _bk_left-0 _bk_bg-red-normal/30 _bk_rounded _bk_border-3 _bk_border-red-normal"
15
+ :style="hoveredStyle"
16
+ />
17
+ <div
18
+ class="bk-indicators-highlighted _bk_absolute _bk_top-0 _bk_left-0 _bk_rounded _bk_border-3 _bk_border-accent-500 _bk_ring-4 _bk_ring-accent-300 _bk_outline _bk_outline-white"
19
+ :style="highlightedStyle"
20
+ />
8
21
  </div>
9
22
  </Teleport>
10
23
  </template>
@@ -54,10 +67,11 @@ const highlightedStyle = computed(() => {
54
67
  };
55
68
  });
56
69
  const HEIGHT = 30;
70
+ const STICKY_RESERVED = 35;
57
71
  function snapToAnchorGrid(y) {
58
72
  return Math.ceil(y / HEIGHT) * HEIGHT;
59
73
  }
60
- const prevRects = /* @__PURE__ */ new Map();
74
+ const prevTransforms = /* @__PURE__ */ new Map();
61
75
  let lastFullUpdate = 0;
62
76
  onBlokkliEvent("animationFrame", function(ctx) {
63
77
  if (!hasIndicators.value) {
@@ -66,6 +80,10 @@ onBlokkliEvent("animationFrame", function(ctx) {
66
80
  const items = indicators.indicators.value;
67
81
  const taken = /* @__PURE__ */ new Set();
68
82
  const forceRefresh = ctx.time - lastFullUpdate > 1e3;
83
+ const stickyX = Math.max(
84
+ 0,
85
+ (ui.visibleViewport.value.x - ui.artboardOffset.value.x) / ui.artboardScale.value + STICKY_RESERVED
86
+ );
69
87
  for (let i = 0; i < items.length; i++) {
70
88
  const item = items[i];
71
89
  if (!item) {
@@ -73,7 +91,7 @@ onBlokkliEvent("animationFrame", function(ctx) {
73
91
  }
74
92
  const rect = dom.getBlockRect(item.uuid, forceRefresh);
75
93
  if (!rect) {
76
- prevRects.delete(item.uuid);
94
+ prevTransforms.delete(item.uuid);
77
95
  continue;
78
96
  }
79
97
  let y = snapToAnchorGrid(Math.round(rect.y));
@@ -81,9 +99,10 @@ onBlokkliEvent("animationFrame", function(ctx) {
81
99
  y += HEIGHT;
82
100
  }
83
101
  taken.add(y);
84
- const style2 = `translateY(${y}px)`;
85
- if (prevRects.get(item.uuid) !== y) {
86
- prevRects.set(item.uuid, y);
102
+ const x = item.sticky && item.position === "left" ? stickyX : 0;
103
+ const style2 = `translate(${x}px, ${y}px)`;
104
+ if (prevTransforms.get(item.uuid) !== style2) {
105
+ prevTransforms.set(item.uuid, style2);
87
106
  item.element.style.transform = style2;
88
107
  }
89
108
  }
@@ -92,10 +111,10 @@ onBlokkliEvent("animationFrame", function(ctx) {
92
111
  }
93
112
  });
94
113
  onBlokkliEvent("view-option:toggle", () => {
95
- prevRects.clear();
114
+ prevTransforms.clear();
96
115
  });
97
116
  onBlokkliEvent("state:reloaded", () => {
98
- prevRects.clear();
117
+ prevTransforms.clear();
99
118
  });
100
119
  function highlightElement(element) {
101
120
  if (artboardElement.contains(element)) {
@@ -125,97 +144,9 @@ onBlokkliEvent("window:clickAway", function() {
125
144
  highlighted.value = null;
126
145
  });
127
146
  watch(indicators.indicators, function() {
128
- prevRects.clear();
147
+ prevTransforms.clear();
129
148
  });
130
149
  watch(selection.uuids, function() {
131
150
  highlighted.value = null;
132
151
  });
133
152
  </script>
134
-
135
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
136
- .bk.bk-indicators {
137
- pointer-events: none;
138
- position: absolute;
139
- top: 0px;
140
- left: 0px;
141
- z-index: calc(var(--bk-z-index-base) + 50000) /* "interaction-overlay" */;
142
- transform-origin: 0 0;
143
- }
144
- .bk.bk-indicators #bk-indicators-left {
145
- position: absolute;
146
- top: 0px;
147
- right: 100%;
148
- height: 100%;
149
- white-space: nowrap;
150
- }
151
- :is(.bk.bk-indicators #bk-indicators-left) .bk-indicator-item {
152
- right: 0px;
153
- padding-right: 10px;
154
- }
155
- .bk.bk-indicators .bk-indicator-item {
156
- pointer-events: auto;
157
- position: absolute;
158
- top: 0px;
159
- display: flex;
160
- height: 30px;
161
- cursor: pointer;
162
- align-items: center;
163
- color: rgb(var(--bk-theme-mono-500) / 1);
164
- }
165
- :is(.bk.bk-indicators .bk-indicator-item) .bk-icon {
166
- width: 20px;
167
- height: 20px;
168
- border-radius: calc(infinity * 1px);
169
- background-color: rgb(var(--bk-theme-red-normal) / 1);
170
- padding: 2px;
171
- color: white;
172
- }
173
- :is(:is(.bk.bk-indicators .bk-indicator-item) .bk-icon) svg {
174
- fill: white;
175
- }
176
- :is(.bk.bk-indicators .bk-indicator-item):hover {
177
- color: rgb(var(--bk-theme-mono-950) / 1);
178
- }
179
- :is(.bk.bk-indicators .bk-indicator-item):hover .bk-icon {
180
- background-color: rgb(var(--bk-theme-red-dark) / 1);
181
- }
182
- .bk.bk-indicators .bk-indicator-item-inner {
183
- display: flex;
184
- align-items: center;
185
- gap: 5px;
186
- font-size: var(--text-xs, 12px);
187
- line-height: var(--bk-tw-leading, var(--text-xs--line-height, calc(1 / 0.75)));
188
- --bk-tw-font-weight: var(--font-weight-medium, 500);
189
- font-weight: var(--font-weight-medium, 500);
190
- }
191
- .bk.bk-indicators .bk-indicators-hovered {
192
- position: absolute;
193
- top: 0px;
194
- left: 0px;
195
- border-radius: 4px;
196
- border-style: var(--bk-tw-border-style);
197
- border-width: 3px;
198
- border-color: rgb(var(--bk-theme-red-normal) / 1);
199
- background-color: rgb(var(--bk-theme-red-normal) / 1);
200
- }
201
- @supports (color: color-mix(in lab, red, red)) {
202
- .bk.bk-indicators .bk-indicators-hovered {
203
- background-color: color-mix(in oklab, rgb(var(--bk-theme-red-normal) / 1) 30%, transparent);
204
- }
205
- }
206
- .bk.bk-indicators .bk-indicators-highlighted {
207
- position: absolute;
208
- top: 0px;
209
- left: 0px;
210
- border-radius: 4px;
211
- border-style: var(--bk-tw-border-style);
212
- border-width: 3px;
213
- border-color: rgb(var(--bk-theme-accent-500) / 1);
214
- --bk-tw-ring-shadow: var(--bk-tw-ring-inset,) 0 0 0 calc(4px + var(--bk-tw-ring-offset-width)) var(--bk-tw-ring-color, currentcolor);
215
- box-shadow: var(--bk-tw-inset-shadow), var(--bk-tw-inset-ring-shadow), var(--bk-tw-ring-offset-shadow), var(--bk-tw-ring-shadow), var(--bk-tw-shadow);
216
- --bk-tw-ring-color: rgb(var(--bk-theme-accent-300) / 1);
217
- outline-style: var(--bk-tw-outline-style);
218
- outline-width: 1px;
219
- outline-color: white;
220
- }
221
- </style>
@@ -750,7 +750,7 @@ onBlokkliEvent("canvas:draw", (e) => {
750
750
  });
751
751
  </script>
752
752
 
753
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
753
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
754
754
  .bk.bk-konami {
755
755
  --bg: #859018;
756
756
  position: fixed;
@@ -43,7 +43,7 @@ export default {
43
43
  };
44
44
  </script>
45
45
 
46
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
46
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
47
47
  @keyframes bk-message-timer {
48
48
  from {
49
49
  transform: scaleX(1);
@@ -1,6 +1,7 @@
1
1
  import type { BlokkliIcon } from '#blokkli-build/icons';
2
2
  import type { ThemeColorName } from '../../../../global/types/theme.js';
3
3
  export type NestedEditorOverlayProps = {
4
+ id: string;
4
5
  url?: string;
5
6
  uuid: string;
6
7
  title: string;
@@ -10,9 +11,9 @@ export type NestedEditorOverlayProps = {
10
11
  element?: HTMLElement | null;
11
12
  autoSave?: boolean;
12
13
  };
13
- declare var __VLS_38: {};
14
+ declare var __VLS_44: {};
14
15
  type __VLS_Slots = {} & {
15
- default?: (props: typeof __VLS_38) => any;
16
+ default?: (props: typeof __VLS_44) => any;
16
17
  };
17
18
  declare const __VLS_base: import("vue").DefineComponent<NestedEditorOverlayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
19
  close: (...args: any[]) => void;
@@ -35,7 +35,7 @@
35
35
  @after-leave="onAfterLeave"
36
36
  @leave-cancelled="onAfterLeave"
37
37
  >
38
- <div
38
+ <PopupHost
39
39
  v-show="isLoaded"
40
40
  class="bk bk-library-edit-overlay _bk_fixed _bk_top-40 _bk_3xl:top-50 _bk_left-0 _bk_w-screen _bk_bottom-0 _bk_flex _bk_flex-col _bk_pointer-events-auto _bk_z-nested-editor-overlay-iframe"
41
41
  :class="'bk-is-' + theme"
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
  </slot>
58
58
  </div>
59
- </div>
59
+ </PopupHost>
60
60
  </Transition>
61
61
  </Teleport>
62
62
  </template>
@@ -71,9 +71,10 @@ import {
71
71
  useBlokkli,
72
72
  useTemplateRef
73
73
  } from "#imports";
74
- import { Icon, NotEditStateInfo } from "#blokkli/editor/components";
74
+ import { Icon, NotEditStateInfo, PopupHost } from "#blokkli/editor/components";
75
75
  import { onBroadcastEvent } from "#blokkli/editor/composables";
76
76
  const props = defineProps({
77
+ id: { type: String, required: true },
77
78
  url: { type: String, required: false },
78
79
  uuid: { type: String, required: true },
79
80
  title: { type: String, required: true },
@@ -317,7 +318,7 @@ onBroadcastEvent("closeEditor", onClosed);
317
318
  onBroadcastEvent("editorLoaded", onEditorLoaded);
318
319
  </script>
319
320
 
320
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
321
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
321
322
  .bk-use-animations .bk-library-edit-header-enter-active,.bk-use-animations .bk-library-edit-header-leave-active {
322
323
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --bk-tw-gradient-from, --bk-tw-gradient-via, --bk-tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
323
324
  transition-timing-function: var(--bk-tw-ease, var(--default-transition-timing-function, cubic-bezier(0.4, 0, 0.2, 1)));
@@ -1,6 +1,7 @@
1
1
  import type { BlokkliIcon } from '#blokkli-build/icons';
2
2
  import type { ThemeColorName } from '../../../../global/types/theme.js';
3
3
  export type NestedEditorOverlayProps = {
4
+ id: string;
4
5
  url?: string;
5
6
  uuid: string;
6
7
  title: string;
@@ -10,9 +11,9 @@ export type NestedEditorOverlayProps = {
10
11
  element?: HTMLElement | null;
11
12
  autoSave?: boolean;
12
13
  };
13
- declare var __VLS_38: {};
14
+ declare var __VLS_44: {};
14
15
  type __VLS_Slots = {} & {
15
- default?: (props: typeof __VLS_38) => any;
16
+ default?: (props: typeof __VLS_44) => any;
16
17
  };
17
18
  declare const __VLS_base: import("vue").DefineComponent<NestedEditorOverlayProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
19
  close: (...args: any[]) => void;
@@ -74,7 +74,7 @@ function onDoubleClick() {
74
74
  }
75
75
  </script>
76
76
 
77
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
77
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
78
78
  .bk.bk-overlay {
79
79
  pointer-events: auto;
80
80
  position: fixed;
@@ -18,7 +18,7 @@ defineProps({
18
18
  const page = defineModel({ type: Number, ...{ default: 0 } });
19
19
  </script>
20
20
 
21
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
21
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
22
22
  .bk .bk-pagination {
23
23
  display: flex;
24
24
  min-height: 60px;
@@ -74,7 +74,7 @@ defineOptions({
74
74
  });
75
75
  </script>
76
76
 
77
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
77
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
78
78
  .bk-panel-section {
79
79
  container-type: inline-size;
80
80
  }
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends string = string>(__VLS_props: NonNullable
15
15
  expose: (exposed: {}) => void;
16
16
  attrs: any;
17
17
  slots: {};
18
- emit: (evt: "update:modelValue", value: T) => void;
18
+ emit: (event: "update:modelValue", value: T) => void;
19
19
  }>) => import("vue").VNode & {
20
20
  __ctx?: Awaited<typeof __VLS_setup>;
21
21
  };
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends string = string>(__VLS_props: NonNullable
15
15
  expose: (exposed: {}) => void;
16
16
  attrs: any;
17
17
  slots: {};
18
- emit: (evt: "update:modelValue", value: T) => void;
18
+ emit: (event: "update:modelValue", value: T) => void;
19
19
  }>) => import("vue").VNode & {
20
20
  __ctx?: Awaited<typeof __VLS_setup>;
21
21
  };
@@ -63,7 +63,7 @@ defineExpose({
63
63
  });
64
64
  </script>
65
65
 
66
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
66
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
67
67
  .bk .bk-plugin-config-form {
68
68
  display: flex;
69
69
  flex-wrap: wrap;
@@ -162,7 +162,7 @@ onBeforeUnmount(() => {
162
162
  });
163
163
  </script>
164
164
 
165
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
165
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
166
166
  .bk .bk-config-filter-select {
167
167
  position: relative;
168
168
  height: 100%;
@@ -53,7 +53,7 @@ defineProps({
53
53
  const emit = defineEmits(["update:modelValue"]);
54
54
  </script>
55
55
 
56
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
56
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
57
57
  .bk .bk-plugin-config-form-inline {
58
58
  position: relative;
59
59
  z-index: 5000;
@@ -98,7 +98,7 @@ onBeforeUnmount(() => {
98
98
  });
99
99
  </script>
100
100
 
101
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
101
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
102
102
  .bk.bk-popup {
103
103
  position: relative;
104
104
  width: 100%;
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <div ref="root">
3
+ <slot />
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ import { provide, useTemplateRef } from "#imports";
9
+ import { INJECT_POPUP_HOST } from "#blokkli/editor/helpers/injections";
10
+ const root = useTemplateRef("root");
11
+ provide(INJECT_POPUP_HOST, root);
12
+ </script>
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -47,10 +47,11 @@ const context = computed(() => {
47
47
  language: props.language
48
48
  };
49
49
  });
50
+ const interfaceLanguage = computed(() => context.value.language);
50
51
  const adapter = await getAdapter(context);
51
52
  const router = useRouter();
52
53
  const broadcast = broadcastProvider();
53
- const definitions = definitionProvider(props.providerType);
54
+ const definitions = definitionProvider(props.providerType, interfaceLanguage);
54
55
  let timeout = null;
55
56
  let lastChanged = 0;
56
57
  const mutatedFieldsMap = reactive({});
@@ -197,7 +198,7 @@ onBeforeUnmount(() => {
197
198
  });
198
199
  </script>
199
200
 
200
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
201
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
201
202
  .bk-body-preview {
202
203
  overflow: hidden;
203
204
  overflow-y: auto;
@@ -10,7 +10,7 @@ import { ref, computed, onMounted, onBeforeUnmount, useBlokkli } from "#imports"
10
10
  const props = defineProps({
11
11
  timestamp: { type: [Number, String], required: true }
12
12
  });
13
- const { ui } = useBlokkli();
13
+ const { ui, $t } = useBlokkli();
14
14
  const date = computed(() => {
15
15
  const dateArg = typeof props.timestamp === "number" ? props.timestamp * 1e3 : props.timestamp;
16
16
  const parsedDate = new Date(dateArg);
@@ -22,17 +22,11 @@ const formattedDate = computed(() => {
22
22
  function getRelativeTimeString(date2, lang = navigator.language) {
23
23
  const timeMs = typeof date2 === "number" ? date2 : date2.getTime();
24
24
  const deltaSeconds = Math.round((timeMs - Date.now()) / 1e3);
25
- const cutoffs = [
26
- 60,
27
- 3600,
28
- 86400,
29
- 86400 * 7,
30
- 86400 * 30,
31
- 86400 * 365,
32
- Infinity
33
- ];
25
+ if (Math.abs(deltaSeconds) < 60) {
26
+ return $t("relativeTimeJustNow", "just now");
27
+ }
28
+ const cutoffs = [3600, 86400, 86400 * 7, 86400 * 30, 86400 * 365, Infinity];
34
29
  const units = [
35
- "second",
36
30
  "minute",
37
31
  "hour",
38
32
  "day",
@@ -43,9 +37,9 @@ function getRelativeTimeString(date2, lang = navigator.language) {
43
37
  const unitIndex = cutoffs.findIndex(
44
38
  (cutoff) => cutoff > Math.abs(deltaSeconds)
45
39
  );
46
- const divisor = unitIndex ? cutoffs[unitIndex - 1] : 1;
40
+ const divisor = unitIndex ? cutoffs[unitIndex - 1] : 60;
47
41
  const rtf = new Intl.RelativeTimeFormat(lang, { numeric: "auto" });
48
- return rtf.format(Math.floor(deltaSeconds / divisor), units[unitIndex]);
42
+ return rtf.format(Math.trunc(deltaSeconds / divisor), units[unitIndex]);
49
43
  }
50
44
  const incrementToggle = ref(0);
51
45
  let interval = null;
@@ -86,7 +86,7 @@ export default {
86
86
  };
87
87
  </script>
88
88
 
89
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
89
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
90
90
  .bk-vars.bk-resizable {
91
91
  position: absolute;
92
92
  left: 0px;
@@ -353,7 +353,7 @@ export default {
353
353
  };
354
354
  </script>
355
355
 
356
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
356
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
357
357
  .bk-richtext-panel-enter-active,
358
358
  .bk-richtext-panel-leave-active {
359
359
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --bk-tw-gradient-from, --bk-tw-gradient-via, --bk-tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
@@ -69,7 +69,7 @@ export default {
69
69
  };
70
70
  </script>
71
71
 
72
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
72
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
73
73
  .bk-vars.bk-scale-to-fit {
74
74
  position: relative;
75
75
  }
@@ -155,7 +155,7 @@ onBeforeUnmount(() => {
155
155
  });
156
156
  </script>
157
157
 
158
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
158
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
159
159
  .bk .bk-command-palette {
160
160
  pointer-events: auto;
161
161
  position: fixed;
@@ -23,7 +23,7 @@ defineProps({
23
23
  });
24
24
  </script>
25
25
 
26
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
26
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
27
27
  .bk-sidebar-floater:before {
28
28
  content: '';
29
29
  position: absolute;
@@ -30,7 +30,7 @@ export default {
30
30
  };
31
31
  </script>
32
32
 
33
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
33
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
34
34
  .bk .bk-status-icon {
35
35
  display: flex;
36
36
  width: 20px;
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <span
3
- class="_bk_size-[0.9em] _bk_inline-block _bk_rounded-full _bk_shrink-0 _bk_mr-[0.3em] _bk_align-middle"
3
+ class="_bk_size-[0.9em] _bk_inline-block _bk_rounded-full _bk_shrink-0 _bk_align-middle"
4
4
  :class="{
5
5
  '_bk_bg-red-normal': status === 'error',
6
6
  '_bk_bg-lime-normal': status === 'success',
@@ -84,7 +84,7 @@ function dismiss() {
84
84
  }
85
85
  </script>
86
86
 
87
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
87
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
88
88
  .bk ul.bk-system-requirements {
89
89
  margin-bottom: 15px;
90
90
  display: grid;
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends string = string>(__VLS_props: NonNullable
18
18
  slots: {
19
19
  default?: (props: {}) => any;
20
20
  };
21
- emit: (evt: "update:modelValue", value: T) => void;
21
+ emit: (event: "update:modelValue", value: T) => void;
22
22
  }>) => import("vue").VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends string = string>(__VLS_props: NonNullable
18
18
  slots: {
19
19
  default?: (props: {}) => any;
20
20
  };
21
- emit: (evt: "update:modelValue", value: T) => void;
21
+ emit: (event: "update:modelValue", value: T) => void;
22
22
  }>) => import("vue").VNode & {
23
23
  __ctx?: Awaited<typeof __VLS_setup>;
24
24
  };
@@ -36,7 +36,8 @@ const props = defineProps({
36
36
  icon: { type: null, required: true },
37
37
  keyCode: { type: String, required: false },
38
38
  tourText: { type: String, required: false },
39
- weight: { type: Number, required: false }
39
+ weight: { type: Number, required: false },
40
+ default: { type: Boolean, required: false }
40
41
  });
41
42
  const { storage, eventBus, $t } = useBlokkli();
42
43
  const buttonEl = useTemplateRef("buttonEl");