@blokkli/editor 2.0.0-alpha.63 → 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 (213) hide show
  1. package/dist/global/types/blockOptions.d.ts +32 -27
  2. package/dist/module.d.mts +2 -2
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +108 -5
  5. package/dist/modules/agent/index.d.mts +1 -1
  6. package/dist/modules/agent/index.mjs +2 -1
  7. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue +1 -1
  8. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.d.vue.ts +1 -1
  9. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue.d.ts +1 -1
  10. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +1 -1
  11. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue +1 -1
  12. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +1 -1
  13. package/dist/modules/agent/runtime/app/features/agent/index.vue +1 -1
  14. package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.d.ts +1 -1
  15. package/dist/modules/agent/runtime/app/tools/add_fragment/index.d.ts +1 -1
  16. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.d.ts +1 -1
  17. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +1 -1
  18. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.d.ts +1 -1
  19. package/dist/modules/agent/runtime/app/tools/add_template/index.d.ts +1 -1
  20. package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue +1 -1
  21. package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +1 -1
  22. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +1 -1
  23. package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.d.ts +1 -1
  24. package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.d.ts +1 -1
  25. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.d.ts +1 -1
  26. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.js +1 -3
  27. package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.d.ts +2 -2
  28. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +6 -2
  29. package/dist/modules/agent/runtime/app/tools/get_content_fields/index.d.ts +3 -3
  30. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.d.ts +5 -5
  31. package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.d.ts +1 -1
  32. package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +1 -1
  33. package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.d.ts +1 -1
  34. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.d.ts +1 -1
  35. package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.d.ts +1 -1
  36. package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.d.ts +1 -1
  37. package/dist/modules/agent/runtime/app/tools/replace_media_field/index.d.ts +1 -1
  38. package/dist/modules/agent/runtime/app/tools/schemas.d.ts +2 -2
  39. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.d.ts +1 -1
  40. package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.d.ts +1 -1
  41. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +3 -3
  42. package/dist/modules/agent/runtime/server/classes/FieldStreamParser/index.js +10 -15
  43. package/dist/modules/agent/runtime/shared/toolParams.d.ts +3 -3
  44. package/dist/modules/agent/runtime/shared/types.d.ts +3 -3
  45. package/dist/modules/charts/index.d.mts +14 -1
  46. package/dist/modules/charts/index.mjs +37 -2
  47. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue +1 -1
  48. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue +19 -9
  49. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue +1 -1
  50. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +16 -8
  51. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue +23 -7
  52. package/dist/modules/charts/runtime/features/charts/Editor/index.vue +5 -6
  53. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +5 -0
  54. package/dist/modules/drupal/index.d.mts +1 -1
  55. package/dist/modules/drupal/runtime/adapter/index.js +3 -0
  56. package/dist/modules/iframes/index.d.mts +1 -1
  57. package/dist/modules/index.d.mts +1 -1
  58. package/dist/modules/readability/index.d.mts +1 -1
  59. package/dist/modules/readability/index.mjs +2 -1
  60. package/dist/modules/table-of-contents/index.d.mts +1 -1
  61. package/dist/runtime/components/Blocks/NotImplemented/index.vue +1 -1
  62. package/dist/runtime/editor/components/Actions/Title/index.vue +1 -1
  63. package/dist/runtime/editor/components/Actions/index.vue +1 -1
  64. package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +1 -0
  65. package/dist/runtime/editor/components/ArtboardTooltip/index.vue +2 -2
  66. package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +1 -0
  67. package/dist/runtime/editor/components/Avatar/index.vue +1 -1
  68. package/dist/runtime/editor/components/BlockPreviewItem/index.vue +1 -1
  69. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +1 -1
  70. package/dist/runtime/editor/components/BlockProxy/index.vue +1 -1
  71. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +1 -1
  72. package/dist/runtime/editor/components/BundleSelector/index.vue +1 -1
  73. package/dist/runtime/editor/components/ColorDropdown/index.vue +1 -1
  74. package/dist/runtime/editor/components/Dialog/index.vue +1 -1
  75. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +1 -1
  76. package/dist/runtime/editor/components/DiffApproval/types.js +1 -3
  77. package/dist/runtime/editor/components/DiffViewer/State.vue +1 -1
  78. package/dist/runtime/editor/components/DraggableList.vue +1 -1
  79. package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +1 -0
  80. package/dist/runtime/editor/components/Dropdown/index.vue +2 -2
  81. package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +1 -0
  82. package/dist/runtime/editor/components/DropdownItem/index.vue +1 -1
  83. package/dist/runtime/editor/components/EditIndicator.vue +1 -1
  84. package/dist/runtime/editor/components/EditProvider.vue +2 -2
  85. package/dist/runtime/editor/components/FileDropHandler/index.vue +1 -1
  86. package/dist/runtime/editor/components/Form/RadioTabs/index.vue +1 -1
  87. package/dist/runtime/editor/components/Form/Search/index.d.vue.ts +1 -0
  88. package/dist/runtime/editor/components/Form/Search/index.vue +2 -2
  89. package/dist/runtime/editor/components/Form/Search/index.vue.d.ts +1 -0
  90. package/dist/runtime/editor/components/FormOverlay/index.vue +1 -1
  91. package/dist/runtime/editor/components/Icon/index.vue +1 -1
  92. package/dist/runtime/editor/components/Indicators/index.vue +31 -100
  93. package/dist/runtime/editor/components/Konami/Game/index.vue +1 -1
  94. package/dist/runtime/editor/components/Messages/index.vue +1 -1
  95. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +1 -0
  96. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +2 -1
  97. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +1 -0
  98. package/dist/runtime/editor/components/Overlay/index.vue +1 -1
  99. package/dist/runtime/editor/components/Pagination/index.vue +1 -1
  100. package/dist/runtime/editor/components/Panel/Section/index.vue +1 -1
  101. package/dist/runtime/editor/components/Panel/Tabs/index.d.vue.ts +1 -1
  102. package/dist/runtime/editor/components/Panel/Tabs/index.vue.d.ts +1 -1
  103. package/dist/runtime/editor/components/PluginConfigForm/index.vue +1 -1
  104. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +1 -1
  105. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +1 -1
  106. package/dist/runtime/editor/components/Popup/index.vue +1 -1
  107. package/dist/runtime/editor/components/PreviewProvider.vue +3 -2
  108. package/dist/runtime/editor/components/RelativeTime/index.vue +7 -13
  109. package/dist/runtime/editor/components/Resizable/index.vue +1 -1
  110. package/dist/runtime/editor/components/RichText/Editor/index.vue +1 -1
  111. package/dist/runtime/editor/components/ScaleToFit/index.vue +1 -1
  112. package/dist/runtime/editor/components/SearchOverlay/index.vue +1 -1
  113. package/dist/runtime/editor/components/SidebarFloater/index.vue +1 -1
  114. package/dist/runtime/editor/components/StatusIcon/index.vue +1 -1
  115. package/dist/runtime/editor/components/StatusIndicator/index.vue +1 -1
  116. package/dist/runtime/editor/components/SystemRequirements/index.vue +1 -1
  117. package/dist/runtime/editor/components/Tabs/index.d.vue.ts +1 -1
  118. package/dist/runtime/editor/components/Tabs/index.vue.d.ts +1 -1
  119. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +2 -1
  120. package/dist/runtime/editor/components/Toolbar/index.vue +1 -1
  121. package/dist/runtime/editor/components/Transition/Collapse/index.vue +1 -1
  122. package/dist/runtime/editor/components/Transition/List/index.vue +1 -1
  123. package/dist/runtime/editor/composables/defineViewOption.js +5 -1
  124. package/dist/runtime/editor/composables/useStickyToolbar.js +1 -4
  125. package/dist/runtime/editor/css/output.css +1 -1
  126. package/dist/runtime/editor/features/add-list/Help/index.vue +1 -1
  127. package/dist/runtime/editor/features/add-list/index.vue +1 -1
  128. package/dist/runtime/editor/features/analyze/index.vue +1 -1
  129. package/dist/runtime/editor/features/anchors/Overlay/index.vue +11 -5
  130. package/dist/runtime/editor/features/anchors/index.vue +2 -1
  131. package/dist/runtime/editor/features/artboard/Overview/index.vue +1 -1
  132. package/dist/runtime/editor/features/artboard/Renderer.vue +1 -1
  133. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +1 -1
  134. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
  135. package/dist/runtime/editor/features/block-transfer/index.vue +1 -1
  136. package/dist/runtime/editor/features/breadcrumbs/index.vue +1 -1
  137. package/dist/runtime/editor/features/changelog/changelog.json +8 -0
  138. package/dist/runtime/editor/features/clipboard/DropElement/index.vue +1 -1
  139. package/dist/runtime/editor/features/comments/AddForm/index.vue +1 -1
  140. package/dist/runtime/editor/features/comments/Thread/index.vue +1 -1
  141. package/dist/runtime/editor/features/complex-options/index.vue +1 -0
  142. package/dist/runtime/editor/features/debug/Main.vue +1 -1
  143. package/dist/runtime/editor/features/dev-mode/index.vue +1 -1
  144. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +1 -1
  145. package/dist/runtime/editor/features/dragging-overlay/index.vue +1 -1
  146. package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +1 -1
  147. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +1 -1
  148. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.d.vue.ts +1 -5
  149. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue.d.ts +1 -5
  150. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +1 -1
  151. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +1 -1
  152. package/dist/runtime/editor/features/editable-mask/index.vue +1 -1
  153. package/dist/runtime/editor/features/entity-title/index.vue +17 -7
  154. package/dist/runtime/editor/features/help/Dialog/index.vue +1 -1
  155. package/dist/runtime/editor/features/help/Shortcuts/index.vue +1 -1
  156. package/dist/runtime/editor/features/history/List/index.vue +1 -1
  157. package/dist/runtime/editor/features/import-existing/Dialog/index.vue +1 -1
  158. package/dist/runtime/editor/features/library/index.vue +1 -0
  159. package/dist/runtime/editor/features/media-library/index.vue +1 -1
  160. package/dist/runtime/editor/features/options/Form/Item.vue +5 -12
  161. package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +5 -4
  162. package/dist/runtime/editor/features/options/Form/Radios/index.vue +8 -5
  163. package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +5 -4
  164. package/dist/runtime/editor/features/options/Form/Text/index.d.vue.ts +4 -0
  165. package/dist/runtime/editor/features/options/Form/Text/index.vue +11 -3
  166. package/dist/runtime/editor/features/options/Form/Text/index.vue.d.ts +4 -0
  167. package/dist/runtime/editor/features/options/index.vue +1 -1
  168. package/dist/runtime/editor/features/publish/Dialog/Item.vue +4 -7
  169. package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +1 -1
  170. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +1 -0
  171. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +1 -1
  172. package/dist/runtime/editor/features/search/index.vue +1 -1
  173. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +1 -1
  174. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +1 -1
  175. package/dist/runtime/editor/features/settings/index.vue +1 -1
  176. package/dist/runtime/editor/features/structure/List/Item/index.vue +1 -1
  177. package/dist/runtime/editor/features/structure/index.vue +1 -1
  178. package/dist/runtime/editor/features/templates/DialogManageTemplates/Item.vue +1 -0
  179. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue +1 -1
  180. package/dist/runtime/editor/features/theme/index.vue +1 -1
  181. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +1 -1
  182. package/dist/runtime/editor/features/tour/Overlay/index.vue +1 -1
  183. package/dist/runtime/editor/features/transform/Dialog/index.vue +1 -1
  184. package/dist/runtime/editor/features/translations/SelectionTable/index.vue +1 -1
  185. package/dist/runtime/editor/features/workspace/index.vue +1 -1
  186. package/dist/runtime/editor/helpers/diff/index.d.ts +11 -0
  187. package/dist/runtime/editor/helpers/diff/index.js +13 -7
  188. package/dist/runtime/editor/helpers/options/index.d.ts +2 -0
  189. package/dist/runtime/editor/helpers/options/index.js +21 -0
  190. package/dist/runtime/editor/plugins/BlockIndicator/index.d.vue.ts +24 -1
  191. package/dist/runtime/editor/plugins/BlockIndicator/index.vue +17 -7
  192. package/dist/runtime/editor/plugins/BlockIndicator/index.vue.d.ts +24 -1
  193. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +1 -0
  194. package/dist/runtime/editor/plugins/ItemAction/index.vue +1 -1
  195. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +1 -0
  196. package/dist/runtime/editor/plugins/Sidebar/index.vue +1 -1
  197. package/dist/runtime/editor/plugins/ToolbarButton/index.vue +1 -1
  198. package/dist/runtime/editor/providers/animation.d.ts +2 -0
  199. package/dist/runtime/editor/providers/definition.d.ts +4 -3
  200. package/dist/runtime/editor/providers/definition.js +10 -2
  201. package/dist/runtime/editor/providers/plugin.d.ts +1 -0
  202. package/dist/runtime/editor/providers/state.d.ts +8 -0
  203. package/dist/runtime/editor/providers/state.js +3 -0
  204. package/dist/runtime/editor/translations/de.json +2 -0
  205. package/dist/runtime/editor/translations/fr.json +2 -0
  206. package/dist/runtime/editor/translations/gsw_CH.json +2 -0
  207. package/dist/runtime/editor/translations/it.json +2 -0
  208. package/dist/runtime/editor/types/state.d.ts +7 -0
  209. package/dist/runtime/editor/types/ui.d.ts +1 -0
  210. package/dist/shared/{editor.D28NbXr3.d.mts → editor.BDyiQvbV.d.mts} +434 -406
  211. package/dist/shared/{editor.Gu7mgJ5Q.mjs → editor.BGemL1Oh.mjs} +146 -146
  212. package/dist/types.d.mts +1 -1
  213. package/package.json +74 -82
@@ -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;
@@ -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%;
@@ -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");
@@ -212,7 +212,7 @@ export default {
212
212
  };
213
213
  </script>
214
214
 
215
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
215
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
216
216
  .bk.bk-toolbar-menu {
217
217
  position: relative;
218
218
  z-index: calc(var(--bk-z-index-base) + 410000) /* "menu" */;
@@ -4,7 +4,7 @@
4
4
  </Transition>
5
5
  </template>
6
6
 
7
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
7
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
8
8
  .bk-collapse-transition-enter-active,
9
9
  .bk-collapse-transition-leave-active {
10
10
  interpolate-size: allow-keywords;
@@ -10,7 +10,7 @@ defineProps({
10
10
  });
11
11
  </script>
12
12
 
13
- <style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
13
+ <style>/*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
14
14
  .bk-list-transition {
15
15
  interpolate-size: allow-keywords;
16
16
  }
@@ -1,7 +1,11 @@
1
1
  import { computed, onBeforeUnmount, onMounted, useBlokkli } from "#imports";
2
2
  export function defineViewOption(options) {
3
3
  const { storage, ui, plugins } = useBlokkli();
4
- const isActive = storage.use("view_option_" + options.id, false, true);
4
+ const isActive = storage.use(
5
+ "view_option_" + options.id,
6
+ !!options.default,
7
+ true
8
+ );
5
9
  const isVisible = computed(() => isActive.value && !ui.isMobile.value);
6
10
  const cb = () => options;
7
11
  onMounted(() => plugins.add("viewOption", cb));
@@ -40,7 +40,6 @@ export function useStickyToolbar(el, options) {
40
40
  let maxX = 0;
41
41
  let minY = 0;
42
42
  let maxY = 0;
43
- let hasRects = false;
44
43
  const anchorElement = options && options.getAnchorElement ? options.getAnchorElement() : null;
45
44
  const anchorCoordinates = options && options.getAnchorCoordinates ? options.getAnchorCoordinates() : null;
46
45
  if (anchorCoordinates) {
@@ -50,7 +49,6 @@ export function useStickyToolbar(el, options) {
50
49
  maxX = rectX + 1;
51
50
  minY = rectY;
52
51
  maxY = rectY + 1;
53
- hasRects = true;
54
52
  } else if (anchorElement) {
55
53
  anchorRect ||= ui.getAbsoluteElementRect(
56
54
  anchorElement.getBoundingClientRect(),
@@ -65,10 +63,9 @@ export function useStickyToolbar(el, options) {
65
63
  maxX = rectRight;
66
64
  minY = rectY;
67
65
  maxY = rectBottom;
68
- hasRects = true;
69
66
  } else {
70
67
  const rects = selection.uuids.value.map((uuid) => dom.getBlockRect(uuid)).filter(falsy).filter((rect) => rect.height || rect.width);
71
- hasRects = !!rects.length;
68
+ const hasRects = !!rects.length;
72
69
  if (hasRects) {
73
70
  for (let i = 0; i < rects.length; i++) {
74
71
  const { x: x2, y: y2, height: height2, width: rectWidth } = rects[i];