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

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 (199) hide show
  1. package/dist/global/types/blockOptions.d.ts +9 -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 +56 -4
  6. package/dist/modules/agent/index.d.mts +1 -1
  7. package/dist/modules/agent/index.mjs +38 -20
  8. package/dist/modules/agent/runtime/app/composables/agentProvider.d.ts +2 -2
  9. package/dist/modules/agent/runtime/app/composables/agentProvider.js +3 -3
  10. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +34 -60
  11. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.d.vue.ts +8 -0
  12. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +138 -0
  13. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue.d.ts +8 -0
  14. package/dist/modules/agent/runtime/app/features/agent/index.vue +5 -1
  15. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +175 -0
  16. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +5 -0
  17. package/dist/modules/agent/runtime/app/tools/schemas.d.ts +10 -1
  18. package/dist/modules/agent/runtime/app/tools/schemas.js +36 -23
  19. package/dist/modules/agent/runtime/server/Session.d.ts +4 -2
  20. package/dist/modules/agent/runtime/server/Session.js +61 -57
  21. package/dist/modules/agent/runtime/server/agentPrompt.d.ts +9 -1
  22. package/dist/modules/agent/runtime/server/agentPrompt.js +26 -0
  23. package/dist/modules/agent/runtime/shared/types.d.ts +35 -1
  24. package/dist/modules/charts/index.d.mts +35 -0
  25. package/dist/modules/charts/index.mjs +43 -0
  26. package/dist/modules/charts/runtime/blokkli/skills/charts.d.ts +2 -0
  27. package/dist/modules/charts/runtime/blokkli/skills/charts.js +42 -0
  28. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +63 -0
  29. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +98 -0
  30. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.d.ts +2 -0
  31. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.js +86 -0
  32. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.d.ts +2 -0
  33. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.js +74 -0
  34. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.d.ts +2 -0
  35. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.js +42 -0
  36. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.d.ts +2 -0
  37. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.js +101 -0
  38. package/dist/modules/charts/runtime/chartTypes/area.d.ts +2 -0
  39. package/dist/modules/charts/runtime/chartTypes/area.js +68 -0
  40. package/dist/modules/charts/runtime/chartTypes/bar.d.ts +2 -0
  41. package/dist/modules/charts/runtime/chartTypes/bar.js +76 -0
  42. package/dist/modules/charts/runtime/chartTypes/define.d.ts +2 -0
  43. package/dist/modules/charts/runtime/chartTypes/define.js +3 -0
  44. package/dist/modules/charts/runtime/chartTypes/donut.d.ts +2 -0
  45. package/dist/modules/charts/runtime/chartTypes/donut.js +45 -0
  46. package/dist/modules/charts/runtime/chartTypes/heatmap.d.ts +2 -0
  47. package/dist/modules/charts/runtime/chartTypes/heatmap.js +54 -0
  48. package/dist/modules/charts/runtime/chartTypes/index.d.ts +21 -0
  49. package/dist/modules/charts/runtime/chartTypes/index.js +47 -0
  50. package/dist/modules/charts/runtime/chartTypes/line.d.ts +2 -0
  51. package/dist/modules/charts/runtime/chartTypes/line.js +68 -0
  52. package/dist/modules/charts/runtime/chartTypes/pie.d.ts +2 -0
  53. package/dist/modules/charts/runtime/chartTypes/pie.js +28 -0
  54. package/dist/modules/charts/runtime/chartTypes/radar.d.ts +2 -0
  55. package/dist/modules/charts/runtime/chartTypes/radar.js +52 -0
  56. package/dist/modules/charts/runtime/chartTypes/radialBar.d.ts +2 -0
  57. package/dist/modules/charts/runtime/chartTypes/radialBar.js +44 -0
  58. package/dist/modules/charts/runtime/chartTypes/shared.d.ts +52 -0
  59. package/dist/modules/charts/runtime/chartTypes/shared.js +103 -0
  60. package/dist/modules/charts/runtime/chartTypes/types.d.ts +29 -0
  61. package/dist/modules/charts/runtime/chartTypes/types.js +0 -0
  62. package/dist/modules/charts/runtime/components/ChartRenderer/index.d.vue.ts +4 -0
  63. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +120 -0
  64. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue.d.ts +4 -0
  65. package/dist/modules/charts/runtime/components/Fragment/BlokkliChart.d.vue.ts +3 -0
  66. package/dist/modules/charts/runtime/components/Fragment/BlokkliChart.vue +29 -0
  67. package/dist/modules/charts/runtime/components/Fragment/BlokkliChart.vue.d.ts +3 -0
  68. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.d.vue.ts +15 -0
  69. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue +97 -0
  70. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue.d.ts +15 -0
  71. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.d.vue.ts +11 -0
  72. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +34 -0
  73. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue.d.ts +11 -0
  74. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.d.vue.ts +12 -0
  75. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +49 -0
  76. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue.d.ts +12 -0
  77. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.d.vue.ts +19 -0
  78. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue +90 -0
  79. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue.d.ts +19 -0
  80. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.d.vue.ts +23 -0
  81. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +224 -0
  82. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue.d.ts +23 -0
  83. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.d.vue.ts +10 -0
  84. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue +61 -0
  85. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue.d.ts +10 -0
  86. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.d.vue.ts +8 -0
  87. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue +23 -0
  88. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue.d.ts +8 -0
  89. package/dist/modules/charts/runtime/features/charts/Editor/index.d.vue.ts +10 -0
  90. package/dist/modules/charts/runtime/features/charts/Editor/index.vue +243 -0
  91. package/dist/modules/charts/runtime/features/charts/Editor/index.vue.d.ts +10 -0
  92. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +17 -0
  93. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.js +90 -0
  94. package/dist/modules/charts/runtime/features/charts/index.d.vue.ts +3 -0
  95. package/dist/modules/charts/runtime/features/charts/index.vue +72 -0
  96. package/dist/modules/charts/runtime/features/charts/index.vue.d.ts +3 -0
  97. package/dist/modules/charts/runtime/helpers/index.d.ts +1 -0
  98. package/dist/modules/charts/runtime/helpers/index.js +17 -0
  99. package/dist/modules/charts/runtime/types.d.ts +51 -0
  100. package/dist/modules/charts/runtime/types.js +64 -0
  101. package/dist/modules/drupal/graphql/features/fragments.graphql +2 -0
  102. package/dist/modules/drupal/index.d.mts +1 -1
  103. package/dist/modules/drupal/runtime/adapter/index.js +12 -8
  104. package/dist/modules/table-of-contents/index.d.mts +11 -0
  105. package/dist/modules/table-of-contents/index.mjs +24 -0
  106. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.d.vue.ts +44 -0
  107. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.vue +43 -0
  108. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.vue.d.ts +44 -0
  109. package/dist/modules/table-of-contents/runtime/types/index.d.ts +4 -0
  110. package/dist/modules/table-of-contents/runtime/types/index.js +0 -0
  111. package/dist/runtime/components/Blocks/Fragment/index.vue +6 -2
  112. package/dist/runtime/components/BlokkliItem.vue +8 -3
  113. package/dist/runtime/components/BlokkliProvider.d.vue.ts +7 -0
  114. package/dist/runtime/components/BlokkliProvider.vue +7 -1
  115. package/dist/runtime/components/BlokkliProvider.vue.d.ts +7 -0
  116. package/dist/runtime/composables/useBlokkliHelper.js +4 -2
  117. package/dist/runtime/editor/components/AnimationCanvas/index.vue +4 -20
  118. package/dist/runtime/editor/components/Banner/index.d.vue.ts +12 -2
  119. package/dist/runtime/editor/components/Banner/index.vue +4 -2
  120. package/dist/runtime/editor/components/Banner/index.vue.d.ts +12 -2
  121. package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +27 -0
  122. package/dist/runtime/editor/components/Dropdown/index.vue +107 -0
  123. package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +27 -0
  124. package/dist/{modules/agent/runtime/app/features/agent/Panel/Input/Actions → runtime/editor/components}/DropdownItem/index.vue +1 -1
  125. package/dist/runtime/editor/components/EditProvider.d.vue.ts +2 -0
  126. package/dist/runtime/editor/components/EditProvider.vue +4 -3
  127. package/dist/runtime/editor/components/EditProvider.vue.d.ts +2 -0
  128. package/dist/runtime/editor/components/Form/Radio/index.d.vue.ts +1 -0
  129. package/dist/runtime/editor/components/Form/Radio/index.vue +3 -2
  130. package/dist/runtime/editor/components/Form/Radio/index.vue.d.ts +1 -0
  131. package/dist/runtime/editor/components/ItemIcon/index.vue +10 -2
  132. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +13 -3
  133. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +15 -7
  134. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +13 -3
  135. package/dist/runtime/editor/components/PreviewProvider.d.vue.ts +2 -0
  136. package/dist/runtime/editor/components/PreviewProvider.vue +3 -2
  137. package/dist/runtime/editor/components/PreviewProvider.vue.d.ts +2 -0
  138. package/dist/runtime/editor/components/ShortcutIndicator/index.vue +1 -1
  139. package/dist/runtime/editor/components/index.d.ts +3 -1
  140. package/dist/runtime/editor/components/index.js +4 -0
  141. package/dist/runtime/editor/composables/onElementResize.js +0 -1
  142. package/dist/runtime/editor/composables/useEditableFieldOverride.js +4 -5
  143. package/dist/runtime/editor/css/output.css +1 -1
  144. package/dist/runtime/editor/events/index.d.ts +7 -0
  145. package/dist/runtime/editor/features/add-list/Help/Item.vue +5 -2
  146. package/dist/runtime/editor/features/artboard/Renderer.vue +1 -1
  147. package/dist/runtime/editor/features/clipboard/index.vue +1 -1
  148. package/dist/runtime/editor/features/debug/index.vue +1 -1
  149. package/dist/runtime/editor/features/dev-mode/index.vue +86 -2
  150. package/dist/runtime/editor/features/edit/index.vue +20 -0
  151. package/dist/runtime/editor/features/fragments/types.d.ts +1 -0
  152. package/dist/runtime/editor/features/hover/Renderer/index.vue +30 -3
  153. package/dist/runtime/editor/features/hover/index.vue +1 -1
  154. package/dist/runtime/editor/features/options/Form/Checkbox/index.d.vue.ts +2 -2
  155. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +3 -3
  156. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue.d.ts +2 -2
  157. package/dist/runtime/editor/features/options/Form/Checkboxes/index.d.vue.ts +2 -2
  158. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +5 -5
  159. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue.d.ts +2 -2
  160. package/dist/runtime/editor/features/options/Form/Item.d.vue.ts +2 -2
  161. package/dist/runtime/editor/features/options/Form/Item.vue +14 -48
  162. package/dist/runtime/editor/features/options/Form/Item.vue.d.ts +2 -2
  163. package/dist/runtime/editor/features/options/Form/Number/index.d.vue.ts +3 -3
  164. package/dist/runtime/editor/features/options/Form/Number/index.vue +7 -17
  165. package/dist/runtime/editor/features/options/Form/Number/index.vue.d.ts +3 -3
  166. package/dist/runtime/editor/features/options/Form/Range/index.d.vue.ts +2 -2
  167. package/dist/runtime/editor/features/options/Form/Range/index.vue +4 -4
  168. package/dist/runtime/editor/features/options/Form/Range/index.vue.d.ts +2 -2
  169. package/dist/runtime/editor/features/options/Form/index.vue +10 -5
  170. package/dist/runtime/editor/features/selection/index.vue +2 -2
  171. package/dist/runtime/editor/features/transform/index.vue +1 -3
  172. package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +1 -1
  173. package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +1 -1
  174. package/dist/runtime/editor/providers/definition.d.ts +2 -2
  175. package/dist/runtime/editor/providers/definition.js +7 -1
  176. package/dist/runtime/editor/providers/dom.d.ts +5 -0
  177. package/dist/runtime/editor/providers/dom.js +11 -2
  178. package/dist/runtime/editor/providers/fields.d.ts +19 -1
  179. package/dist/runtime/editor/providers/fields.js +54 -2
  180. package/dist/runtime/editor/translations/de.json +269 -1
  181. package/dist/runtime/editor/translations/fr.json +269 -1
  182. package/dist/runtime/editor/translations/gsw_CH.json +269 -1
  183. package/dist/runtime/editor/translations/it.json +269 -1
  184. package/dist/runtime/helpers/imports/index.d.ts +8 -1
  185. package/dist/runtime/helpers/imports/index.js +15 -6
  186. package/dist/runtime/helpers/injections.d.ts +5 -1
  187. package/dist/runtime/helpers/injections.js +3 -0
  188. package/dist/runtime/helpers/runtimeHelpers/index.js +14 -0
  189. package/dist/runtime/types/definitions.d.ts +8 -5
  190. package/dist/runtime/types/provider.d.ts +2 -0
  191. package/dist/shared/editor.6D5vApr0.mjs +30 -0
  192. package/dist/shared/{editor.DMFfaLVE.mjs → editor.BFIzNSQM.mjs} +1 -30
  193. package/dist/shared/{editor.Iax3GCvt.d.mts → editor.CWQIFIEQ.d.mts} +22 -0
  194. package/dist/types.d.mts +1 -1
  195. package/package.json +17 -1
  196. package/dist/modules/agent/runtime/app/tools/get_available_bundles/index.js +0 -104
  197. /package/dist/modules/agent/runtime/app/tools/{get_available_bundles → get_bundle_info}/index.d.ts +0 -0
  198. /package/dist/{modules/agent/runtime/app/features/agent/Panel/Input/Actions → runtime/editor/components}/DropdownItem/index.d.vue.ts +0 -0
  199. /package/dist/{modules/agent/runtime/app/features/agent/Panel/Input/Actions → runtime/editor/components}/DropdownItem/index.vue.d.ts +0 -0
@@ -92,7 +92,7 @@
92
92
  "translation": ""
93
93
  },
94
94
  "aiAgentAddContentSearchBlockRunning": {
95
- "source": "Adding content block...",
95
+ "source": "Adding content paragraph...",
96
96
  "translation": ""
97
97
  },
98
98
  "aiAgentAddFragmentDone": {
@@ -203,6 +203,14 @@
203
203
  "source": "Connecting...",
204
204
  "translation": ""
205
205
  },
206
+ "aiAgentCreateChartDone": {
207
+ "source": "Added chart",
208
+ "translation": ""
209
+ },
210
+ "aiAgentCreateChartRunning": {
211
+ "source": "Creating chart...",
212
+ "translation": ""
213
+ },
206
214
  "aiAgentCreatePlan": {
207
215
  "source": "Plan: @label",
208
216
  "translation": ""
@@ -347,6 +355,18 @@
347
355
  "source": "Getting bundle info...",
348
356
  "translation": ""
349
357
  },
358
+ "aiAgentGetChartDataDone": {
359
+ "source": "Got chart data",
360
+ "translation": ""
361
+ },
362
+ "aiAgentGetChartDataRunning": {
363
+ "source": "Getting chart data...",
364
+ "translation": ""
365
+ },
366
+ "aiAgentGetChartTypeOptionsRunning": {
367
+ "source": "Getting chart options...",
368
+ "translation": ""
369
+ },
350
370
  "aiAgentGetChildBlocks": {
351
371
  "source": "Get child blocks",
352
372
  "translation": ""
@@ -383,6 +403,14 @@
383
403
  "source": "Getting mutation history...",
384
404
  "translation": ""
385
405
  },
406
+ "aiAgentGetPageStructureDone": {
407
+ "source": "Got page structure (@count paragraphs)",
408
+ "translation": ""
409
+ },
410
+ "aiAgentGetPageStructureRunning": {
411
+ "source": "Getting page structure...",
412
+ "translation": ""
413
+ },
386
414
  "aiAgentGetSelectedBlocksDone": {
387
415
  "source": "@count block(s) selected",
388
416
  "translation": ""
@@ -495,6 +523,10 @@
495
523
  "source": "Replacing media...",
496
524
  "translation": ""
497
525
  },
526
+ "aiAgentRetry": {
527
+ "source": "Retry",
528
+ "translation": ""
529
+ },
498
530
  "aiAgentSearchLibraryDone": {
499
531
  "source": "Searched library",
500
532
  "translation": ""
@@ -607,6 +639,14 @@
607
639
  "source": "Unknown message type",
608
640
  "translation": ""
609
641
  },
642
+ "aiAgentUpdateChartDone": {
643
+ "source": "Updated chart",
644
+ "translation": ""
645
+ },
646
+ "aiAgentUpdateChartRunning": {
647
+ "source": "Updating chart...",
648
+ "translation": ""
649
+ },
610
650
  "aiAgentUpdateOptionsOnBlockDone": {
611
651
  "source": "Updated @count option(s) on block",
612
652
  "translation": ""
@@ -919,6 +959,226 @@
919
959
  "source": "Cancel selection",
920
960
  "translation": ""
921
961
  },
962
+ "chartsAddColumn": {
963
+ "source": "Add column",
964
+ "translation": ""
965
+ },
966
+ "chartsAddFootnote": {
967
+ "source": "Add footnote",
968
+ "translation": ""
969
+ },
970
+ "chartsAddRow": {
971
+ "source": "Add row",
972
+ "translation": ""
973
+ },
974
+ "chartsAreaCurved": {
975
+ "source": "Smooth curves",
976
+ "translation": "Curve morbide"
977
+ },
978
+ "chartsAreaMarkers": {
979
+ "source": "Show markers",
980
+ "translation": "Mostra marcatori"
981
+ },
982
+ "chartsAutoUpdate": {
983
+ "source": "Auto-update",
984
+ "translation": ""
985
+ },
986
+ "chartsBarHorizontal": {
987
+ "source": "Horizontal",
988
+ "translation": "Orizzontale"
989
+ },
990
+ "chartsBarStacked": {
991
+ "source": "Stacked",
992
+ "translation": "Impilato"
993
+ },
994
+ "chartsBorderRadius": {
995
+ "source": "Corner radius",
996
+ "translation": "Raggio angoli"
997
+ },
998
+ "chartsBorderRadiusLarge": {
999
+ "source": "Large",
1000
+ "translation": "Grande"
1001
+ },
1002
+ "chartsBorderRadiusNone": {
1003
+ "source": "None",
1004
+ "translation": "Nessuno"
1005
+ },
1006
+ "chartsBorderRadiusSmall": {
1007
+ "source": "Small",
1008
+ "translation": "Piccolo"
1009
+ },
1010
+ "chartsData": {
1011
+ "source": "Data",
1012
+ "translation": ""
1013
+ },
1014
+ "chartsDataLabels": {
1015
+ "source": "Data labels",
1016
+ "translation": "Etichette dati"
1017
+ },
1018
+ "chartsDonutShowLabels": {
1019
+ "source": "Show labels",
1020
+ "translation": "Mostra etichette"
1021
+ },
1022
+ "chartsDonutShowTotal": {
1023
+ "source": "Show total",
1024
+ "translation": "Mostra totale"
1025
+ },
1026
+ "chartsEditorSaveError": {
1027
+ "source": "The chart could not be saved.",
1028
+ "translation": ""
1029
+ },
1030
+ "chartsEditorTitle": {
1031
+ "source": "Edit chart",
1032
+ "translation": ""
1033
+ },
1034
+ "chartsFootnotes": {
1035
+ "source": "Footnotes",
1036
+ "translation": ""
1037
+ },
1038
+ "chartsGridLines": {
1039
+ "source": "Grid lines",
1040
+ "translation": "Linee griglia"
1041
+ },
1042
+ "chartsImportCsv": {
1043
+ "source": "Import CSV",
1044
+ "translation": ""
1045
+ },
1046
+ "chartsLegendPosition": {
1047
+ "source": "Legend position",
1048
+ "translation": "Posizione legenda"
1049
+ },
1050
+ "chartsLineCurved": {
1051
+ "source": "Smooth curves",
1052
+ "translation": "Curve morbide"
1053
+ },
1054
+ "chartsLineMarkers": {
1055
+ "source": "Show markers",
1056
+ "translation": "Mostra marcatori"
1057
+ },
1058
+ "chartsOpacityLight": {
1059
+ "source": "Light",
1060
+ "translation": "Leggero"
1061
+ },
1062
+ "chartsOpacitySolid": {
1063
+ "source": "Solid",
1064
+ "translation": "Solido"
1065
+ },
1066
+ "chartsOpacityTransparent": {
1067
+ "source": "Transparent",
1068
+ "translation": "Trasparente"
1069
+ },
1070
+ "chartsOptionGroupDisplay": {
1071
+ "source": "Display",
1072
+ "translation": ""
1073
+ },
1074
+ "chartsOptionGroupLabels": {
1075
+ "source": "Labels",
1076
+ "translation": ""
1077
+ },
1078
+ "chartsPieShowLabels": {
1079
+ "source": "Show labels",
1080
+ "translation": "Mostra etichette"
1081
+ },
1082
+ "chartsPositionBottom": {
1083
+ "source": "Bottom",
1084
+ "translation": "In basso"
1085
+ },
1086
+ "chartsPositionRight": {
1087
+ "source": "Right",
1088
+ "translation": "A destra"
1089
+ },
1090
+ "chartsPositionTop": {
1091
+ "source": "Top",
1092
+ "translation": "In alto"
1093
+ },
1094
+ "chartsPreview": {
1095
+ "source": "Preview",
1096
+ "translation": ""
1097
+ },
1098
+ "chartsPreviewPlaceholder": {
1099
+ "source": "Click \"Refresh Preview\" to see the chart.",
1100
+ "translation": ""
1101
+ },
1102
+ "chartsRadarFillOpacity": {
1103
+ "source": "Fill opacity",
1104
+ "translation": "Opacità riempimento"
1105
+ },
1106
+ "chartsRadarMarkers": {
1107
+ "source": "Show markers",
1108
+ "translation": "Mostra marcatori"
1109
+ },
1110
+ "chartsRadialBarShowLabels": {
1111
+ "source": "Show labels",
1112
+ "translation": "Mostra etichette"
1113
+ },
1114
+ "chartsRadialBarShowTotal": {
1115
+ "source": "Show total",
1116
+ "translation": "Mostra totale"
1117
+ },
1118
+ "chartsRefreshPreview": {
1119
+ "source": "Refresh Preview",
1120
+ "translation": ""
1121
+ },
1122
+ "chartsRotationAuto": {
1123
+ "source": "Auto",
1124
+ "translation": "Automatico"
1125
+ },
1126
+ "chartsStrokeMedium": {
1127
+ "source": "Medium",
1128
+ "translation": "Medio"
1129
+ },
1130
+ "chartsStrokeThick": {
1131
+ "source": "Thick",
1132
+ "translation": "Spesso"
1133
+ },
1134
+ "chartsStrokeThin": {
1135
+ "source": "Thin",
1136
+ "translation": "Sottile"
1137
+ },
1138
+ "chartsStrokeWidth": {
1139
+ "source": "Line thickness",
1140
+ "translation": "Spessore linea"
1141
+ },
1142
+ "chartsTitle": {
1143
+ "source": "Title",
1144
+ "translation": ""
1145
+ },
1146
+ "chartsTypeArea": {
1147
+ "source": "Area",
1148
+ "translation": ""
1149
+ },
1150
+ "chartsTypeBar": {
1151
+ "source": "Bar",
1152
+ "translation": ""
1153
+ },
1154
+ "chartsTypeDonut": {
1155
+ "source": "Donut",
1156
+ "translation": ""
1157
+ },
1158
+ "chartsTypeHeatmap": {
1159
+ "source": "Heatmap",
1160
+ "translation": "Mappa di calore"
1161
+ },
1162
+ "chartsTypeLine": {
1163
+ "source": "Line",
1164
+ "translation": ""
1165
+ },
1166
+ "chartsTypePie": {
1167
+ "source": "Pie",
1168
+ "translation": ""
1169
+ },
1170
+ "chartsTypeRadar": {
1171
+ "source": "Radar",
1172
+ "translation": "Radar"
1173
+ },
1174
+ "chartsTypeRadialBar": {
1175
+ "source": "Radial Bar",
1176
+ "translation": "Barra radiale"
1177
+ },
1178
+ "chartsXAxisRotation": {
1179
+ "source": "Label rotation",
1180
+ "translation": "Rotazione etichette"
1181
+ },
922
1182
  "clearInput": {
923
1183
  "source": "Clear input",
924
1184
  "translation": ""
@@ -1327,6 +1587,14 @@
1327
1587
  "source": "Breadcrumbs",
1328
1588
  "translation": ""
1329
1589
  },
1590
+ "feature_charts_description": {
1591
+ "source": "Add and edit interactive charts.",
1592
+ "translation": ""
1593
+ },
1594
+ "feature_charts_label": {
1595
+ "source": "Charts",
1596
+ "translation": ""
1597
+ },
1330
1598
  "feature_clipboard_description": {
1331
1599
  "source": "Provides clipboard integration to copy/paste existing blocks or paste supported clipboard content like text or images.",
1332
1600
  "translation": "Fornisce l'integrazione degli appunti per copiare/incollare blocchi esistenti o incollare contenuti supportati come testo o immagini."
@@ -1,2 +1,9 @@
1
1
  import type { Component } from 'vue';
2
- export declare function getComponent(type: 'block' | 'fragment', bundle: string, fieldListType?: string, parentBundle?: string, allComponents?: Record<string, Component> | null): any;
2
+ import type { ValidFieldListTypes, ValidProviderTypes } from '#blokkli-build/generated-types';
3
+ type GetComponentContext = {
4
+ fieldListType?: ValidFieldListTypes;
5
+ parentBundle?: string;
6
+ providerType?: ValidProviderTypes;
7
+ };
8
+ export declare function getComponent(type: 'block' | 'fragment', bundleOrFragmentName: string, context: GetComponentContext, allComponents?: Record<string, Component> | null): any;
9
+ export {};
@@ -26,9 +26,9 @@ function objectOrImport(key) {
26
26
  }
27
27
  return item;
28
28
  }
29
- export function getComponent(type, bundle, fieldListType, parentBundle, allComponents) {
30
- if (fieldListType) {
31
- const key2 = `${type}:${bundle}__f:${fieldListType}`;
29
+ export function getComponent(type, bundleOrFragmentName, context, allComponents) {
30
+ if (context.providerType) {
31
+ const key2 = `${type}:${bundleOrFragmentName}__t:${context.providerType}`;
32
32
  if (allComponents && allComponents[key2]) {
33
33
  return allComponents[key2];
34
34
  }
@@ -36,8 +36,8 @@ export function getComponent(type, bundle, fieldListType, parentBundle, allCompo
36
36
  return objectOrImport(key2);
37
37
  }
38
38
  }
39
- if (parentBundle) {
40
- const key2 = `${type}:${bundle}__p:${parentBundle}`;
39
+ if (context.fieldListType) {
40
+ const key2 = `${type}:${bundleOrFragmentName}__f:${context.fieldListType}`;
41
41
  if (allComponents && allComponents[key2]) {
42
42
  return allComponents[key2];
43
43
  }
@@ -45,7 +45,16 @@ export function getComponent(type, bundle, fieldListType, parentBundle, allCompo
45
45
  return objectOrImport(key2);
46
46
  }
47
47
  }
48
- const key = `${type}:${bundle}`;
48
+ if (context.parentBundle) {
49
+ const key2 = `${type}:${bundleOrFragmentName}__p:${context.parentBundle}`;
50
+ if (allComponents && allComponents[key2]) {
51
+ return allComponents[key2];
52
+ }
53
+ if (chunkMapping[key2]) {
54
+ return objectOrImport(key2);
55
+ }
56
+ }
57
+ const key = `${type}:${bundleOrFragmentName}`;
49
58
  if (allComponents && allComponents[key]) {
50
59
  return allComponents[key];
51
60
  }
@@ -1,7 +1,7 @@
1
1
  import type { InjectionKey, ComputedRef, Component } from 'vue';
2
2
  import type { EntityContext } from './../types/index.js';
3
3
  import type { DebugLogger } from '#blokkli/editor/providers/debug';
4
- import type { FieldListItemTyped, ValidFieldListTypes } from '#blokkli-build/generated-types';
4
+ import type { FieldListItemTyped, ValidFieldListTypes, ValidProviderTypes } from '#blokkli-build/generated-types';
5
5
  import type DraggableListComponent from '../editor/components/DraggableList.vue.js';
6
6
  import type { BlokkliApp } from '#blokkli/editor/types/app';
7
7
  import type { MutatedField, MutatedItemProps, MutatedOptions } from '#blokkli/editor/types/state';
@@ -99,6 +99,10 @@ export declare const INJECT_MUTATED_FIELDS_MAP: InjectionKey<Record<string, Muta
99
99
  * For nested blocks, the entity context will be the block that contains nested blocks.
100
100
  */
101
101
  export declare const INJECT_ENTITY_CONTEXT: InjectionKey<EntityContext>;
102
+ /**
103
+ * The current provider type.
104
+ */
105
+ export declare const INJECT_PROVIDER_TYPE: InjectionKey<ValidProviderTypes>;
102
106
  /**
103
107
  * The entity context of the provider.
104
108
  */
@@ -49,6 +49,9 @@ export const INJECT_MUTATED_FIELDS_MAP = Symbol(
49
49
  export const INJECT_ENTITY_CONTEXT = Symbol(
50
50
  "blokkli_entity_context"
51
51
  );
52
+ export const INJECT_PROVIDER_TYPE = Symbol(
53
+ "blokkli_provider_type"
54
+ );
52
55
  export const INJECT_PROVIDER_CONTEXT = Symbol(
53
56
  "blokkli_provider_context"
54
57
  );
@@ -97,6 +97,20 @@ export function getRuntimeOptionValue(definition, value) {
97
97
  }
98
98
  }
99
99
  return value;
100
+ } else if (type === "json") {
101
+ if (typeof value === "string") {
102
+ try {
103
+ return JSON.parse(value);
104
+ } catch {
105
+ }
106
+ }
107
+ if (typeof defaultValue === "string") {
108
+ try {
109
+ return JSON.parse(defaultValue);
110
+ } catch {
111
+ }
112
+ }
113
+ return "";
100
114
  }
101
115
  if (defaultValue === void 0) {
102
116
  return "";
@@ -1,8 +1,8 @@
1
1
  import type { ComputedRef } from 'vue';
2
2
  import type { BlockOptionDefinition } from './blockOptions.js';
3
3
  import type { AdapterContext } from '../editor/adapter/index.js';
4
- import type { BlockBundleWithNested, FieldListItemTyped, GlobalOptionsKey, ValidChunkNames, ValidFieldListTypes, ValidGlobalConfigKeys, BundleProps } from '#blokkli-build/generated-types';
5
- import type { BlockDefinitionInputBase, BlockDefinitionRenderForBase, BlockDefinitionRenderForFieldListBase, BlockDefinitionRenderForFieldListTypeBase, BlockDefinitionRenderForParentBase, BlokkliDefinitionInputEditorBase, FragmentDefinitionInputBase, ProviderDefinitionInputBase } from './../../global/types/definitions.js';
4
+ import type { BlockBundleWithNested, FieldListItemTyped, GlobalOptionsKey, ValidChunkNames, ValidFieldListTypes, ValidGlobalConfigKeys, BundleProps, ValidProviderTypes } from '#blokkli-build/generated-types';
5
+ import type { BlockDefinitionInputBase, BlockDefinitionRenderForBase, BlockDefinitionRenderForFieldListBase, BlockDefinitionRenderForFieldListTypeBase, BlockDefinitionRenderForParentBase, BlockDefinitionRenderForProviderTypeBase, BlokkliDefinitionInputEditorBase, FragmentDefinitionInputBase, ProviderDefinitionInputBase } from './../../global/types/definitions.js';
6
6
  import type { GlobalOptionsType } from '#blokkli-build/definitions';
7
7
  import type { BlokkliIcon } from '#blokkli-build/icons';
8
8
  import type { BlokkliProviderEntityContext } from './provider.js';
@@ -16,7 +16,9 @@ type GetType<T> = T extends {
16
16
  type: 'range';
17
17
  } ? number : T extends {
18
18
  type: 'number';
19
- } ? number : string;
19
+ } ? number : T extends {
20
+ type: 'json';
21
+ } ? any : string;
20
22
  export type BlockDefinitionOptionsInput = {
21
23
  [key: string]: BlockOptionDefinition;
22
24
  };
@@ -104,8 +106,9 @@ export type BlokkliDefinitionInputEditor<Options extends BlockDefinitionOptionsI
104
106
  export type BlockDefinitionRenderForParent = BlockDefinitionRenderForParentBase<BlockBundleWithNested>;
105
107
  export type BlockDefinitionRenderForFieldList = BlockDefinitionRenderForFieldListBase<ValidFieldListTypes>;
106
108
  export type BlockDefinitionRenderForFieldListType = BlockDefinitionRenderForFieldListTypeBase<ValidFieldListTypes>;
107
- export type BlockDefinitionRenderFor = BlockDefinitionRenderForBase<BlockBundleWithNested, ValidFieldListTypes>;
108
- export type BlockDefinitionInput<Options extends BlockDefinitionOptionsInput = BlockDefinitionOptionsInput, GlobalOptions extends GlobalOptionsKey[] | undefined = [], Bundle extends BundleKey | string = string> = Omit<BlockDefinitionInputBase<Options, GlobalOptions, Bundle, ValidChunkNames, BlockBundleWithNested, ValidFieldListTypes, BlokkliIcon, BundleProps>, 'editor'> & {
109
+ export type BlockDefinitionRenderForProviderType = BlockDefinitionRenderForProviderTypeBase<ValidProviderTypes>;
110
+ export type BlockDefinitionRenderFor = BlockDefinitionRenderForBase<BlockBundleWithNested, ValidFieldListTypes, ValidProviderTypes>;
111
+ export type BlockDefinitionInput<Options extends BlockDefinitionOptionsInput = BlockDefinitionOptionsInput, GlobalOptions extends GlobalOptionsKey[] | undefined = [], Bundle extends BundleKey | string = string> = Omit<BlockDefinitionInputBase<Options, GlobalOptions, Bundle, ValidChunkNames, BlockBundleWithNested, ValidFieldListTypes, BlokkliIcon, BundleProps, ValidProviderTypes>, 'editor'> & {
109
112
  /**
110
113
  * Settings for the behaviour in the editor.
111
114
  */
@@ -1,5 +1,7 @@
1
+ import type { ValidProviderTypes } from '#blokkli-build/generated-types';
1
2
  import type { EntityContext } from '.';
2
3
  export type EditPermission = 'view' | 'edit' | 'review' | 'delete';
3
4
  export type BlokkliProviderEntityContext = EntityContext & {
5
+ providerType: ValidProviderTypes;
4
6
  language?: string;
5
7
  };
@@ -0,0 +1,30 @@
1
+ function defineCodeTemplate(name, buildCode, buildTypes, options) {
2
+ return {
3
+ type: "code",
4
+ name,
5
+ buildCode,
6
+ buildTypes,
7
+ options: {
8
+ dependencies: options?.dependencies || [],
9
+ write: !!options?.write,
10
+ context: options?.context || "app"
11
+ }
12
+ };
13
+ }
14
+ function defineFileTemplate(fileName, build, options) {
15
+ return {
16
+ type: "file",
17
+ fileName,
18
+ build,
19
+ options: {
20
+ dependencies: options?.dependencies || [],
21
+ write: options?.write ?? true,
22
+ context: options?.context || "app"
23
+ }
24
+ };
25
+ }
26
+ function withHelper(cb) {
27
+ return cb;
28
+ }
29
+
30
+ export { defineFileTemplate as a, defineCodeTemplate as d, withHelper as w };
@@ -143,33 +143,4 @@ ${lines.join("\n")}`
143
143
  }
144
144
  }
145
145
 
146
- function defineCodeTemplate(name, buildCode, buildTypes, options) {
147
- return {
148
- type: "code",
149
- name,
150
- buildCode,
151
- buildTypes,
152
- options: {
153
- dependencies: options?.dependencies || [],
154
- write: !!options?.write,
155
- context: options?.context || "app"
156
- }
157
- };
158
- }
159
- function defineFileTemplate(fileName, build, options) {
160
- return {
161
- type: "file",
162
- fileName,
163
- build,
164
- options: {
165
- dependencies: options?.dependencies || [],
166
- write: options?.write ?? true,
167
- context: options?.context || "app"
168
- }
169
- };
170
- }
171
- function withHelper(cb) {
172
- return cb;
173
- }
174
-
175
- export { Collector as C, CollectedFile as a, defineFileTemplate as b, defineCodeTemplate as d, withHelper as w };
146
+ export { Collector as C, CollectedFile as a };
@@ -114,6 +114,17 @@ type ModuleOptionsStorageDefaults = {
114
114
  * Options for the module.
115
115
  */
116
116
  type ModuleOptions = {
117
+ /**
118
+ * Additional blokkli/ directories provided by modules.
119
+ *
120
+ * These follow the same structure as <rootDir>/blokkli/ (tools/, skills/,
121
+ * prompts/, system-prompts/) and are scanned by collectors that support it.
122
+ *
123
+ * Modules should push to this array during alterOptions.
124
+ *
125
+ * @internal
126
+ */
127
+ blokkliDirs?: string[];
117
128
  /**
118
129
  * An array of blökkli modules to use.
119
130
  */
@@ -156,6 +167,14 @@ type ModuleOptions = {
156
167
  * this field.
157
168
  */
158
169
  fieldListTypes?: string[];
170
+ /**
171
+ * Valid blokkli provider types.
172
+ *
173
+ * If one or more values are defined, they can be passed to the
174
+ * BlokkliProvider component as a prop. The value is made available to all
175
+ * blokkli items inside this provider.
176
+ */
177
+ providerTypes?: string[];
159
178
  /**
160
179
  * The entity type of blokkli items.
161
180
  *
@@ -516,8 +535,11 @@ declare class ModuleContext {
516
535
  private templates;
517
536
  private templateContents;
518
537
  private adapterExtensions;
538
+ private featureFragments;
519
539
  collectors: Collector[];
520
540
  constructor(helper: ModuleHelper, icons: IconCollector, features: FeatureCollector, blocks: BlockCollector, theme: ThemeData);
541
+ addFeatureFragment(name: string): void;
542
+ getFeatureFragmentNames(): string[];
521
543
  registerAdapterExtension(namespace: string, path: string): void;
522
544
  getAdapterExtensions(): AdapterExtensionDefinition[];
523
545
  addCollector(collector: Collector): void;
package/dist/types.d.mts CHANGED
@@ -4,6 +4,6 @@ declare module '@nuxt/schema' {
4
4
  interface NuxtHooks extends ModuleHooks {}
5
5
  }
6
6
 
7
- export { type ModuleHooks } from './shared/editor.Iax3GCvt.mjs'
7
+ export { type ModuleHooks } from './shared/editor.CWQIFIEQ.mjs'
8
8
 
9
9
  export { type ModuleOptions, default } from './module.mjs'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "2.0.0-alpha.35",
3
+ "version": "2.0.0-alpha.36",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "keywords": [
6
6
  "cms",
@@ -42,6 +42,12 @@
42
42
  ],
43
43
  "agent": [
44
44
  "./dist/modules/agent/index.d.mts"
45
+ ],
46
+ "table-of-contents": [
47
+ "./dist/modules/table-of-contents/index.d.mts"
48
+ ],
49
+ "charts": [
50
+ "./dist/modules/charts/index.d.mts"
45
51
  ]
46
52
  }
47
53
  },
@@ -57,6 +63,14 @@
57
63
  "./agent": {
58
64
  "types": "./dist/modules/agent/index.d.mts",
59
65
  "import": "./dist/modules/agent/index.mjs"
66
+ },
67
+ "./table-of-contents": {
68
+ "types": "./dist/modules/table-of-contents/index.d.mts",
69
+ "import": "./dist/modules/table-of-contents/index.mjs"
70
+ },
71
+ "./charts": {
72
+ "types": "./dist/modules/charts/index.d.mts",
73
+ "import": "./dist/modules/charts/index.mjs"
60
74
  }
61
75
  },
62
76
  "scripts": {
@@ -90,6 +104,7 @@
90
104
  "dependencies": {
91
105
  "@material-symbols/svg-600": "0.40.2",
92
106
  "@nuxt/kit": "^4.2.2",
107
+ "apexcharts": "^5.4.0",
93
108
  "artboard-deluxe": "0.1.3",
94
109
  "estree-walker-ts": "^1.1.0",
95
110
  "fzf": "^0.5.2",
@@ -100,6 +115,7 @@
100
115
  "qrcode.vue": "^3.6.0",
101
116
  "turndown": "^7.2.0",
102
117
  "twgl.js": "^7.0.0",
118
+ "vue3-apexcharts": "^1.10.0",
103
119
  "zod": "^4.0.0"
104
120
  },
105
121
  "devDependencies": {