@blokkli/editor 2.0.0-alpha.52 → 2.0.0-alpha.53

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 (373) hide show
  1. package/dist/chunks/tailwindConfig.mjs +3 -3
  2. package/dist/global/types/blockOptions.d.ts +18 -2
  3. package/dist/module.d.mts +2 -2
  4. package/dist/module.json +1 -1
  5. package/dist/module.mjs +281 -18
  6. package/dist/modules/agent/index.d.mts +1 -1
  7. package/dist/modules/agent/runtime/app/composables/agentProvider.d.ts +1 -0
  8. package/dist/modules/agent/runtime/app/composables/agentProvider.js +7 -0
  9. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.d.vue.ts +2 -2
  10. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue +14 -49
  11. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue.d.ts +2 -2
  12. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.d.vue.ts +10 -0
  13. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +102 -0
  14. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue.d.ts +10 -0
  15. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +8 -5
  16. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.d.vue.ts +3 -3
  17. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue +9 -5
  18. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue.d.ts +3 -3
  19. package/dist/modules/agent/runtime/app/features/agent/Panel/index.d.vue.ts +7 -0
  20. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +16 -2
  21. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +7 -0
  22. package/dist/modules/agent/runtime/app/features/agent/index.vue +29 -0
  23. package/dist/modules/agent/runtime/app/features/agent/types.d.ts +16 -0
  24. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +3 -1
  25. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +2 -0
  26. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +8 -1
  27. package/dist/modules/charts/index.d.mts +1 -1
  28. package/dist/modules/charts/index.mjs +2 -3
  29. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +1 -1
  30. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +1 -1
  31. package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +16 -0
  32. package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +9 -0
  33. package/dist/modules/drupal/graphql/features/agent.graphql +20 -0
  34. package/dist/modules/drupal/graphql/features/publishNew.graphql +14 -0
  35. package/dist/modules/drupal/graphql/features/referenced-entities.graphql +21 -0
  36. package/dist/modules/drupal/graphql/features/textFieldValues.graphql +20 -0
  37. package/dist/modules/drupal/graphql/features/workspace.graphql +23 -0
  38. package/dist/modules/drupal/graphql/mutations/bulk_translate_field_values.graphql +19 -0
  39. package/dist/modules/drupal/graphql/mutations/clear_outdated_translation.graphql +15 -0
  40. package/dist/modules/drupal/graphql/mutations/ignore_analyze.graphql +15 -0
  41. package/dist/modules/drupal/graphql/mutations/request_translation.graphql +10 -0
  42. package/dist/modules/drupal/graphql/mutations/unignore_analyze.graphql +15 -0
  43. package/dist/modules/drupal/index.d.mts +1 -1
  44. package/dist/modules/drupal/index.mjs +16 -0
  45. package/dist/modules/drupal/runtime/adapter/index.js +180 -11
  46. package/dist/modules/iframes/index.d.mts +31 -0
  47. package/dist/modules/iframes/index.mjs +52 -0
  48. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.d.vue.ts +18 -0
  49. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue +61 -0
  50. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue.d.ts +18 -0
  51. package/dist/modules/iframes/runtime/components/index.d.ts +1 -0
  52. package/dist/modules/iframes/runtime/components/index.js +1 -0
  53. package/dist/modules/iframes/runtime/features/iframes/Editor/index.d.vue.ts +12 -0
  54. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +220 -0
  55. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue.d.ts +12 -0
  56. package/dist/modules/iframes/runtime/types.d.ts +10 -0
  57. package/dist/modules/index.d.mts +1 -1
  58. package/dist/modules/table-of-contents/index.d.mts +1 -1
  59. package/dist/runtime/components/Blocks/NotImplemented/index.vue +57 -0
  60. package/dist/runtime/components/BlokkliEditable.vue +1 -1
  61. package/dist/runtime/editor/adapter/index.d.ts +8 -1
  62. package/dist/runtime/editor/components/Actions/Interactions/index.vue +77 -17
  63. package/dist/runtime/editor/components/Actions/{ItemDropdown.vue → ItemDropdown/index.vue} +9 -10
  64. package/dist/runtime/editor/components/Actions/index.vue +586 -23
  65. package/dist/runtime/editor/components/AnimationCanvas/index.vue +1 -0
  66. package/dist/runtime/editor/components/AppMenu/MenuButton.vue +185 -1
  67. package/dist/runtime/editor/components/AppMenu/index.vue +24 -10
  68. package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +6 -2
  69. package/dist/runtime/editor/components/ArtboardTooltip/index.vue +223 -3
  70. package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +6 -2
  71. package/dist/runtime/editor/components/AutoHeight/index.vue +23 -0
  72. package/dist/runtime/editor/components/Banner/Inner.d.vue.ts +30 -0
  73. package/dist/runtime/editor/components/Banner/Inner.vue +32 -0
  74. package/dist/runtime/editor/components/Banner/Inner.vue.d.ts +30 -0
  75. package/dist/runtime/editor/components/Banner/index.d.vue.ts +3 -13
  76. package/dist/runtime/editor/components/Banner/index.vue +2 -14
  77. package/dist/runtime/editor/components/Banner/index.vue.d.ts +3 -13
  78. package/dist/runtime/editor/components/BetaIndicator/index.d.vue.ts +6 -0
  79. package/dist/runtime/editor/components/BetaIndicator/index.vue +16 -0
  80. package/dist/runtime/editor/components/BetaIndicator/index.vue.d.ts +6 -0
  81. package/dist/runtime/editor/components/BlockPreviewItem/index.vue +51 -1
  82. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +27 -1
  83. package/dist/runtime/editor/components/BlockProxy/index.vue +148 -1
  84. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +59 -0
  85. package/dist/runtime/editor/components/BundleSelector/index.vue +170 -20
  86. package/dist/runtime/editor/components/Dialog/index.d.vue.ts +2 -0
  87. package/dist/runtime/editor/components/Dialog/index.vue +341 -0
  88. package/dist/runtime/editor/components/Dialog/index.vue.d.ts +2 -0
  89. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +117 -0
  90. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +224 -28
  91. package/dist/runtime/editor/components/DiffViewer/DiffValue.d.vue.ts +1 -0
  92. package/dist/runtime/editor/components/DiffViewer/DiffValue.vue +5 -1
  93. package/dist/runtime/editor/components/DiffViewer/DiffValue.vue.d.ts +1 -0
  94. package/dist/runtime/editor/components/DiffViewer/State.vue +319 -0
  95. package/dist/runtime/editor/components/DraggableList.vue +103 -0
  96. package/dist/runtime/editor/components/Dropdown/index.vue +84 -0
  97. package/dist/runtime/editor/components/EditProvider.vue +72 -15
  98. package/dist/runtime/editor/components/FileDropHandler/index.d.vue.ts +23 -0
  99. package/dist/runtime/editor/components/FileDropHandler/index.vue +108 -0
  100. package/dist/runtime/editor/components/FileDropHandler/index.vue.d.ts +23 -0
  101. package/dist/runtime/editor/components/FlexTextarea/index.vue +4 -2
  102. package/dist/runtime/editor/components/Form/Datepicker/index.vue +149 -0
  103. package/dist/runtime/editor/components/Form/Toggle/index.vue +205 -1
  104. package/dist/runtime/editor/components/FormOverlay/index.vue +90 -0
  105. package/dist/runtime/editor/components/Icon/index.vue +6 -0
  106. package/dist/runtime/editor/components/Indicators/index.vue +161 -0
  107. package/dist/runtime/editor/components/InfoBox/index.vue +65 -0
  108. package/dist/runtime/editor/components/Konami/index.vue +119 -0
  109. package/dist/runtime/editor/components/Loading/index.d.vue.ts +6 -3
  110. package/dist/runtime/editor/components/Loading/index.vue +10 -5
  111. package/dist/runtime/editor/components/Loading/index.vue.d.ts +6 -3
  112. package/dist/runtime/editor/components/Messages/index.vue +131 -0
  113. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +1 -0
  114. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +246 -12
  115. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +1 -0
  116. package/dist/runtime/editor/components/NotEditStateInfo/index.d.vue.ts +3 -0
  117. package/dist/runtime/editor/components/NotEditStateInfo/index.vue +19 -0
  118. package/dist/runtime/editor/components/NotEditStateInfo/index.vue.d.ts +3 -0
  119. package/dist/runtime/editor/components/Overlay/index.vue +84 -0
  120. package/dist/runtime/editor/components/Pagination/index.vue +41 -0
  121. package/dist/runtime/editor/components/PluginConfigForm/index.vue +23 -0
  122. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +429 -0
  123. package/dist/runtime/editor/components/PluginConfigFormInline/index.d.vue.ts +22 -0
  124. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +150 -0
  125. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue.d.ts +22 -0
  126. package/dist/runtime/editor/components/Popup/index.vue +77 -2
  127. package/dist/runtime/editor/components/PreviewProvider.vue +7 -0
  128. package/dist/runtime/editor/components/Resizable/index.vue +90 -1
  129. package/dist/runtime/editor/components/ScaleToFit/index.vue +30 -1
  130. package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +43 -0
  131. package/dist/runtime/editor/components/SearchOverlay/index.vue +264 -0
  132. package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +43 -0
  133. package/dist/runtime/editor/components/StatusIcon/index.vue +104 -0
  134. package/dist/runtime/editor/components/StatusIndicator/index.d.vue.ts +9 -0
  135. package/dist/runtime/editor/components/StatusIndicator/index.vue +16 -0
  136. package/dist/runtime/editor/components/StatusIndicator/index.vue.d.ts +9 -0
  137. package/dist/runtime/editor/components/SystemRequirements/index.vue +57 -0
  138. package/dist/runtime/editor/components/Tabs/index.d.vue.ts +30 -0
  139. package/dist/runtime/editor/components/Tabs/index.vue +32 -0
  140. package/dist/runtime/editor/components/Tabs/index.vue.d.ts +30 -0
  141. package/dist/runtime/editor/components/Toolbar/index.vue +214 -3
  142. package/dist/runtime/editor/components/Tooltip/Context.d.vue.ts +7 -0
  143. package/dist/runtime/editor/components/Tooltip/Context.vue +13 -0
  144. package/dist/runtime/editor/components/Tooltip/Context.vue.d.ts +7 -0
  145. package/dist/runtime/editor/components/Tooltip/Status.d.vue.ts +8 -0
  146. package/dist/runtime/editor/components/Tooltip/Status.vue +27 -0
  147. package/dist/runtime/editor/components/Tooltip/Status.vue.d.ts +8 -0
  148. package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +27 -0
  149. package/dist/runtime/editor/components/Tooltip/index.vue +40 -0
  150. package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +27 -0
  151. package/dist/runtime/editor/components/index.d.ts +59 -49
  152. package/dist/runtime/editor/components/index.js +59 -98
  153. package/dist/runtime/editor/composables/defineHighlight.d.ts +2 -0
  154. package/dist/runtime/editor/composables/defineHighlight.js +10 -0
  155. package/dist/runtime/editor/composables/index.d.ts +1 -0
  156. package/dist/runtime/editor/composables/index.js +1 -0
  157. package/dist/runtime/editor/composables/useBlockRegistration.js +8 -0
  158. package/dist/runtime/editor/composables/useStickyToolbar.d.ts +1 -0
  159. package/dist/runtime/editor/composables/useStickyToolbar.js +16 -0
  160. package/dist/runtime/editor/css/output.css +1 -1
  161. package/dist/runtime/editor/events/index.d.ts +10 -0
  162. package/dist/runtime/editor/features/add-list/Help/index.vue +193 -0
  163. package/dist/runtime/editor/features/add-list/index.vue +441 -0
  164. package/dist/runtime/editor/features/analyze/Ignored/index.d.vue.ts +7 -0
  165. package/dist/runtime/editor/features/analyze/Ignored/index.vue +35 -0
  166. package/dist/runtime/editor/features/analyze/Ignored/index.vue.d.ts +7 -0
  167. package/dist/runtime/editor/features/analyze/Main.vue +148 -24
  168. package/dist/runtime/editor/features/analyze/Results/Results.d.vue.ts +1 -9
  169. package/dist/runtime/editor/features/analyze/Results/Results.vue +0 -2
  170. package/dist/runtime/editor/features/analyze/Results/Results.vue.d.ts +1 -9
  171. package/dist/runtime/editor/features/analyze/Results/ResultsItem.d.vue.ts +1 -9
  172. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +1 -2
  173. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue.d.ts +1 -9
  174. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.d.vue.ts +1 -9
  175. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +11 -8
  176. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue.d.ts +1 -9
  177. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.d.vue.ts +3 -10
  178. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +63 -25
  179. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue.d.ts +3 -10
  180. package/dist/runtime/editor/features/analyze/analyzers/altText.js +2 -0
  181. package/dist/runtime/editor/features/analyze/analyzers/headingStructure.js +3 -0
  182. package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.d.ts +7 -0
  183. package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.js +8 -0
  184. package/dist/runtime/editor/features/analyze/analyzers/readability.js +6 -12
  185. package/dist/runtime/editor/features/analyze/analyzers/types.d.ts +20 -0
  186. package/dist/runtime/editor/features/analyze/index.vue +458 -0
  187. package/dist/runtime/editor/features/analyze/types.d.ts +12 -0
  188. package/dist/runtime/editor/features/artboard/Overview/index.vue +37 -4
  189. package/dist/runtime/editor/features/artboard/Renderer.vue +79 -9
  190. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +84 -0
  191. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
  192. package/dist/runtime/editor/features/block-scheduler/index.vue +114 -0
  193. package/dist/runtime/editor/features/breadcrumbs/index.vue +150 -0
  194. package/dist/runtime/editor/features/changelog/Dialog/index.vue +62 -7
  195. package/dist/runtime/editor/features/changelog/changelog.json +9 -1
  196. package/dist/runtime/editor/features/clipboard/index.vue +153 -1
  197. package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +39 -16
  198. package/dist/runtime/editor/features/command-palette/Palette/index.vue +24 -130
  199. package/dist/runtime/editor/features/comments/index.vue +235 -0
  200. package/dist/runtime/editor/features/complex-options/index.vue +4 -1
  201. package/dist/runtime/editor/features/debug/Main.vue +1 -1
  202. package/dist/runtime/editor/features/debug/Section/Features.vue +2 -4
  203. package/dist/runtime/editor/features/debug/index.vue +168 -0
  204. package/dist/runtime/editor/features/dev-mode/index.vue +92 -27
  205. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +1 -1
  206. package/dist/runtime/editor/features/dragging-overlay/index.vue +330 -0
  207. package/dist/runtime/editor/features/edit/index.vue +15 -17
  208. package/dist/runtime/editor/features/edit-form/Frame/index.vue +21 -4
  209. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.d.vue.ts +9 -1
  210. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +32 -3
  211. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue.d.ts +9 -1
  212. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +77 -0
  213. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +55 -56
  214. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +416 -8
  215. package/dist/runtime/editor/features/editable-mask/index.vue +9 -0
  216. package/dist/runtime/editor/features/entity-title/index.vue +40 -56
  217. package/dist/runtime/editor/features/fragments/Dialog/index.vue +90 -0
  218. package/dist/runtime/editor/features/help/Shortcuts/index.vue +71 -0
  219. package/dist/runtime/editor/features/help/index.vue +17 -0
  220. package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +89 -0
  221. package/dist/runtime/editor/features/highlights/Renderer/index.vue +408 -0
  222. package/dist/runtime/editor/features/highlights/Renderer/vertex.glsl +87 -0
  223. package/dist/runtime/editor/features/highlights/index.d.vue.ts +3 -0
  224. package/dist/runtime/editor/features/highlights/index.vue +20 -0
  225. package/dist/runtime/editor/features/highlights/index.vue.d.ts +3 -0
  226. package/dist/runtime/editor/features/history/List/index.vue +209 -0
  227. package/dist/runtime/editor/features/history/index.vue +0 -1
  228. package/dist/runtime/editor/features/hover/Renderer/index.vue +1 -1
  229. package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +1 -1
  230. package/dist/runtime/editor/features/import-existing/Dialog/index.vue +18 -0
  231. package/dist/runtime/editor/features/media-library/Library/index.vue +10 -30
  232. package/dist/runtime/editor/features/media-library/index.vue +331 -0
  233. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +1 -1
  234. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +1 -1
  235. package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +6 -2
  236. package/dist/runtime/editor/features/options/Form/Item.vue +21 -18
  237. package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +6 -0
  238. package/dist/runtime/editor/features/options/Form/Radios/index.vue +25 -6
  239. package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +6 -0
  240. package/dist/runtime/editor/features/options/Form/index.vue +1 -4
  241. package/dist/runtime/editor/features/options/index.vue +729 -0
  242. package/dist/runtime/editor/features/ownership/Banner/index.vue +9 -8
  243. package/dist/runtime/editor/features/ownership/index.vue +1 -1
  244. package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +8 -3
  245. package/dist/runtime/editor/features/publish/Dialog/Item.vue +18 -20
  246. package/dist/runtime/editor/features/publish/Dialog/index.vue +5 -1
  247. package/dist/runtime/editor/features/publish/index.vue +835 -0
  248. package/dist/runtime/editor/features/publish/types.d.ts +5 -1
  249. package/dist/runtime/editor/features/referenced-entities/List/Item/index.d.vue.ts +4 -0
  250. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +81 -0
  251. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue.d.ts +4 -0
  252. package/dist/runtime/editor/features/referenced-entities/List/index.d.vue.ts +11 -0
  253. package/dist/runtime/editor/features/referenced-entities/List/index.vue +78 -0
  254. package/dist/runtime/editor/features/referenced-entities/List/index.vue.d.ts +11 -0
  255. package/dist/runtime/editor/features/referenced-entities/index.d.vue.ts +3 -0
  256. package/dist/runtime/editor/features/referenced-entities/index.vue +36 -0
  257. package/dist/runtime/editor/features/referenced-entities/index.vue.d.ts +3 -0
  258. package/dist/runtime/editor/features/referenced-entities/types.d.ts +13 -0
  259. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +188 -0
  260. package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +1 -1
  261. package/dist/runtime/editor/features/search/index.vue +511 -0
  262. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +58 -0
  263. package/dist/runtime/editor/features/selection/index.vue +47 -15
  264. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +23 -0
  265. package/dist/runtime/editor/features/settings/Dialog/index.vue +5 -2
  266. package/dist/runtime/editor/features/settings/index.vue +152 -0
  267. package/dist/runtime/editor/features/structure/List/Item/index.vue +7 -0
  268. package/dist/runtime/editor/features/structure/index.vue +178 -0
  269. package/dist/runtime/editor/features/templates/ManageDialog/Item.vue +3 -3
  270. package/dist/runtime/editor/features/templates/ManageDialog/index.vue +24 -3
  271. package/dist/runtime/editor/features/theme/index.vue +94 -0
  272. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +34 -0
  273. package/dist/runtime/editor/features/tour/Overlay/index.vue +243 -13
  274. package/dist/runtime/editor/features/transform/Dialog/index.vue +132 -1
  275. package/dist/runtime/editor/features/translations/Banner/index.d.vue.ts +14 -1
  276. package/dist/runtime/editor/features/translations/Banner/index.vue +139 -12
  277. package/dist/runtime/editor/features/translations/Banner/index.vue.d.ts +14 -1
  278. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.d.vue.ts +3 -0
  279. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +272 -0
  280. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue.d.ts +3 -0
  281. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.d.vue.ts +10 -0
  282. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +382 -0
  283. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue.d.ts +10 -0
  284. package/dist/runtime/editor/features/translations/CsvDialog/csv.d.ts +22 -0
  285. package/dist/runtime/editor/features/translations/CsvDialog/csv.js +50 -0
  286. package/dist/runtime/editor/features/translations/CsvDialog/index.d.vue.ts +10 -0
  287. package/dist/runtime/editor/features/translations/CsvDialog/index.vue +37 -0
  288. package/dist/runtime/editor/features/translations/CsvDialog/index.vue.d.ts +10 -0
  289. package/dist/runtime/editor/features/translations/CsvDialog/po.d.ts +7 -0
  290. package/dist/runtime/editor/features/translations/CsvDialog/po.js +36 -0
  291. package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +37 -0
  292. package/dist/runtime/editor/features/translations/SelectionTable/index.vue +102 -0
  293. package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +37 -0
  294. package/dist/runtime/editor/features/translations/TranslateDialog/index.d.vue.ts +7 -0
  295. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +294 -0
  296. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue.d.ts +7 -0
  297. package/dist/runtime/editor/features/translations/index.vue +276 -6
  298. package/dist/runtime/editor/features/translations/types.d.ts +47 -0
  299. package/dist/runtime/editor/features/validations/Overlay/index.vue +130 -0
  300. package/dist/runtime/editor/features/validations/index.vue +41 -0
  301. package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.d.vue.ts +2 -4
  302. package/dist/runtime/editor/features/workspace/Overlay/index.vue +177 -0
  303. package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.vue.d.ts +2 -4
  304. package/dist/runtime/editor/features/workspace/index.d.vue.ts +3 -0
  305. package/dist/runtime/editor/features/workspace/index.vue +46 -0
  306. package/dist/runtime/editor/features/workspace/index.vue.d.ts +3 -0
  307. package/dist/runtime/editor/features/workspace/types.d.ts +59 -0
  308. package/dist/runtime/editor/features/workspace/types.js +0 -0
  309. package/dist/runtime/editor/icons/svg/spinner.svg +2 -2
  310. package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +21 -7
  311. package/dist/runtime/editor/plugins/ContextMenu/index.vue +4 -0
  312. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +9 -2
  313. package/dist/runtime/editor/plugins/ItemAction/index.vue +26 -16
  314. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +9 -2
  315. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue +24 -26
  316. package/dist/runtime/editor/plugins/Sidebar/index.vue +612 -27
  317. package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +13 -84
  318. package/dist/runtime/editor/plugins/ToolbarButton/index.vue +36 -22
  319. package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +13 -84
  320. package/dist/runtime/editor/plugins/ViewOption/index.vue +13 -14
  321. package/dist/runtime/editor/providers/blocks.js +1 -0
  322. package/dist/runtime/editor/providers/cache.d.ts +23 -0
  323. package/dist/runtime/editor/providers/cache.js +29 -0
  324. package/dist/runtime/editor/providers/directive.d.ts +25 -0
  325. package/dist/runtime/editor/providers/directive.js +20 -0
  326. package/dist/runtime/editor/providers/fieldValue.d.ts +5 -5
  327. package/dist/runtime/editor/providers/fieldValue.js +8 -7
  328. package/dist/runtime/editor/providers/plugin.d.ts +14 -0
  329. package/dist/runtime/editor/providers/plugin.js +9 -0
  330. package/dist/runtime/editor/providers/readability.js +1 -1
  331. package/dist/runtime/editor/providers/selection.js +1 -1
  332. package/dist/runtime/editor/providers/state.d.ts +1 -0
  333. package/dist/runtime/editor/providers/state.js +1 -0
  334. package/dist/runtime/editor/providers/texts.js +11 -1
  335. package/dist/runtime/editor/providers/ui.d.ts +11 -0
  336. package/dist/runtime/editor/providers/ui.js +5 -1
  337. package/dist/runtime/editor/translations/de.json +316 -56
  338. package/dist/runtime/editor/translations/fr.json +310 -50
  339. package/dist/runtime/editor/translations/gsw_CH.json +311 -51
  340. package/dist/runtime/editor/translations/it.json +310 -50
  341. package/dist/runtime/editor/types/app.d.ts +2 -0
  342. package/dist/runtime/editor/types/definitions.d.ts +8 -0
  343. package/dist/runtime/editor/types/field.d.ts +1 -0
  344. package/dist/runtime/editor/types/state.d.ts +10 -0
  345. package/dist/runtime/editor/types/ui.d.ts +3 -1
  346. package/dist/runtime/helpers/tw.d.ts +15 -0
  347. package/dist/runtime/helpers/tw.js +3 -0
  348. package/dist/runtime/types/field.d.ts +1 -0
  349. package/dist/shared/{editor.DsGJIlGn.d.mts → editor.BTOBvmaz.d.mts} +20 -3
  350. package/dist/types.d.mts +1 -1
  351. package/package.json +16 -3
  352. package/dist/runtime/editor/features/analyze/Renderer/fragment.glsl +0 -74
  353. package/dist/runtime/editor/features/analyze/Renderer/index.d.vue.ts +0 -24
  354. package/dist/runtime/editor/features/analyze/Renderer/index.vue +0 -330
  355. package/dist/runtime/editor/features/analyze/Renderer/index.vue.d.ts +0 -24
  356. package/dist/runtime/editor/features/analyze/Renderer/vertex.glsl +0 -94
  357. package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.d.vue.ts +0 -7
  358. package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue +0 -17
  359. package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue.d.ts +0 -7
  360. package/dist/runtime/editor/features/assistant/Overlay/index.vue +0 -108
  361. package/dist/runtime/editor/features/assistant/docs.md +0 -7
  362. package/dist/runtime/editor/features/assistant/index.vue +0 -66
  363. package/dist/runtime/editor/features/assistant/types.d.ts +0 -37
  364. package/dist/runtime/editor/features/media-library/Library/FilterSelect/index.vue +0 -168
  365. package/dist/runtime/editor/providers/fieldValueAdapterTypes.d.ts +0 -13
  366. /package/dist/{runtime/editor/features/assistant → modules/iframes/runtime}/types.js +0 -0
  367. /package/dist/runtime/editor/components/Actions/{ItemDropdown.d.vue.ts → ItemDropdown/index.d.vue.ts} +0 -0
  368. /package/dist/runtime/editor/components/Actions/{ItemDropdown.vue.d.ts → ItemDropdown/index.vue.d.ts} +0 -0
  369. /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.d.vue.ts +0 -0
  370. /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.vue.d.ts +0 -0
  371. /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.d.vue.ts +0 -0
  372. /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.vue.d.ts +0 -0
  373. /package/dist/runtime/editor/{providers/fieldValueAdapterTypes.js → features/referenced-entities/types.js} +0 -0
@@ -6,6 +6,9 @@ fragment pbAgentConversation on ParagraphsBlokkliAgentConversation {
6
6
  hash
7
7
  createdAt: created
8
8
  updatedAt: changed
9
+ feedback {
10
+ itemId
11
+ }
9
12
  }
10
13
 
11
14
  mutation paragraphsBlokkliAgentToken {
@@ -42,6 +45,23 @@ mutation pbAgentConversationDelete($uuid: String!) {
42
45
  }
43
46
  }
44
47
 
48
+ mutation pbAgentConversationFeedback(
49
+ $uuid: String!
50
+ $itemId: String!
51
+ $rating: ParagraphsBlokkliAgentFeedbackRating!
52
+ $explanation: String
53
+ ) {
54
+ result: paragraphsBlokkliAgentConversationFeedback(
55
+ uuid: $uuid
56
+ itemId: $itemId
57
+ rating: $rating
58
+ explanation: $explanation
59
+ ) {
60
+ success
61
+ errors
62
+ }
63
+ }
64
+
45
65
  query pbAgentConversations($hostEntityType: String!, $hostEntityUuid: String!) {
46
66
  conversations: paragraphsBlokkliAgentConversations(
47
67
  hostEntityType: $hostEntityType
@@ -45,7 +45,21 @@ query pbSearchEditStates($page: Int) {
45
45
  hostEntityUuid
46
46
  hostEntityType
47
47
  label
48
+ url(rel: "blokkli-editing") {
49
+ path
50
+ }
48
51
  currentUserIsOwner
52
+ mutations: mutationsRawField {
53
+ count
54
+ }
55
+ uid {
56
+ name
57
+ }
58
+ changedRawField {
59
+ first {
60
+ formatted(format: "c")
61
+ }
62
+ }
49
63
  entity {
50
64
  label
51
65
  status
@@ -0,0 +1,21 @@
1
+ query pbReferencedEntities(
2
+ $entityType: EntityType!
3
+ $entityUuid: String!
4
+ $langcode: String!
5
+ $uuids: [String!]
6
+ ) {
7
+ state: getParagraphsEditState(
8
+ entityType: $entityType
9
+ entityUuid: $entityUuid
10
+ langcode: $langcode
11
+ ) {
12
+ referencedEntities(langcode: $langcode, uuids: $uuids) {
13
+ editUrl
14
+ entityBundle
15
+ entityType
16
+ entityUuid
17
+ label
18
+ uuids
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,20 @@
1
+ query pbTextFieldValues(
2
+ $entityType: EntityType!
3
+ $entityUuid: String!
4
+ $langcode: String!
5
+ ) {
6
+ state: getParagraphsEditState(
7
+ entityType: $entityType
8
+ entityUuid: $entityUuid
9
+ langcode: $langcode
10
+ ) {
11
+ textFieldValues(langcode: $langcode) {
12
+ uuid
13
+ fieldName
14
+ value
15
+ fieldType
16
+ entityType
17
+ entityBundle
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,23 @@
1
+ query pbEntitiesSearch {
2
+ paragraphsBlokkliEntitiesSearch {
3
+ items {
4
+ id
5
+ uuid
6
+ entityType
7
+ bundle
8
+ label
9
+ url
10
+ lastChanged
11
+ uid
12
+ context
13
+ }
14
+ bundleLabels {
15
+ id
16
+ label
17
+ }
18
+ entityTypeLabels {
19
+ id
20
+ label
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,19 @@
1
+ mutation pbBulkTranslateFieldValues(
2
+ $entityType: EntityType!
3
+ $entityUuid: String!
4
+ $langcode: String!
5
+ $items: [ParagraphsBlokkliBulkTranslateFieldValuesInput]!
6
+ $clearOutdated: Boolean
7
+ ) {
8
+ state: paragraphsEditMutationState(
9
+ entityType: $entityType
10
+ entityUuid: $entityUuid
11
+ ) {
12
+ action: bulk_translate_field_values(
13
+ items: $items
14
+ clearOutdated: $clearOutdated
15
+ ) {
16
+ ...paragraphsBlokkliMutationResult
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,15 @@
1
+ mutation pbClearOutdatedTranslation(
2
+ $entityType: EntityType!
3
+ $entityUuid: String!
4
+ $langcode: String!
5
+ $uuids: [String!]!
6
+ ) {
7
+ state: paragraphsEditMutationState(
8
+ entityType: $entityType
9
+ entityUuid: $entityUuid
10
+ ) {
11
+ action: clear_outdated_translation(uuids: $uuids, langcode: $langcode) {
12
+ ...paragraphsBlokkliMutationResult
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ mutation pbIgnoreAnalyze(
2
+ $entityType: EntityType!
3
+ $entityUuid: String!
4
+ $langcode: String
5
+ $ids: [String]!
6
+ ) {
7
+ state: paragraphsEditMutationState(
8
+ entityType: $entityType
9
+ entityUuid: $entityUuid
10
+ ) {
11
+ action: ignore_analyze(ids: $ids) {
12
+ ...paragraphsBlokkliMutationResult
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ mutation pbRequestTranslation($items: [ParagraphsBlokkliTranslationInput!]!) {
2
+ result: paragraphsBlokkliRequestTranslation(items: $items) {
3
+ success
4
+ errors
5
+ items {
6
+ key
7
+ text
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,15 @@
1
+ mutation pbUnignoreAnalyze(
2
+ $entityType: EntityType!
3
+ $entityUuid: String!
4
+ $langcode: String
5
+ $ids: [String]!
6
+ ) {
7
+ state: paragraphsEditMutationState(
8
+ entityType: $entityType
9
+ entityUuid: $entityUuid
10
+ ) {
11
+ action: unignore_analyze(ids: $ids) {
12
+ ...paragraphsBlokkliMutationResult
13
+ }
14
+ }
15
+ }
@@ -1,4 +1,4 @@
1
- import { B as BlokkliModule } from '../../shared/editor.DsGJIlGn.mjs';
1
+ import { B as BlokkliModule } from '../../shared/editor.BTOBvmaz.mjs';
2
2
  import 'nuxt/schema';
3
3
  import 'consola';
4
4
  import '../../../dist/global/types/definitions.js';
@@ -149,6 +149,16 @@ export declare const templateEditRouteName: string|null
149
149
  addMutation("add_multiple");
150
150
  addMutation("replace_entity_reference");
151
151
  addMutation("bulk_update_field_values");
152
+ addMutation("clear_outdated_translation");
153
+ addMutation("bulk_translate_field_values");
154
+ if (mutationFields.has("paragraphsBlokkliRequestTranslation")) {
155
+ addGraphqlDocument("mutations/request_translation.graphql");
156
+ }
157
+ if (editStateFields.has("textFieldValues")) {
158
+ addGraphqlDocument("features/textFieldValues.graphql");
159
+ }
160
+ addMutation("ignore_analyze");
161
+ addMutation("unignore_analyze");
152
162
  if (graphql.schemaHasType("CommentBlokkliNode")) {
153
163
  addGraphqlDocument("features/comments.graphql");
154
164
  } else {
@@ -197,6 +207,12 @@ export declare const templateEditRouteName: string|null
197
207
  } else {
198
208
  context.features.disableFeature("media-library");
199
209
  }
210
+ if (queryFields.has("paragraphsBlokkliEntitiesSearch")) {
211
+ addGraphqlDocument("features/workspace.graphql");
212
+ }
213
+ if (editStateFields.has("referencedEntities")) {
214
+ addGraphqlDocument("features/referenced-entities.graphql");
215
+ }
200
216
  if (editStateFields.has("previewUrl")) {
201
217
  addGraphqlDocument("features/preview-grant.graphql");
202
218
  } else {
@@ -163,9 +163,17 @@ export default defineBlokkliEditAdapter(
163
163
  return acc;
164
164
  },
165
165
  {}
166
- )
166
+ ),
167
+ entityTypeConfig: v.data.entityTypeConfig
167
168
  };
168
169
  });
170
+ const entityTypeConfigMap = /* @__PURE__ */ new Map();
171
+ config.entityTypeConfig.forEach((entityType) => {
172
+ entityTypeConfigMap.set(entityType.id, entityType.label);
173
+ entityType.bundles.forEach((bundle) => {
174
+ entityTypeConfigMap.set(`${entityType.id}:${bundle.id}`, bundle.label);
175
+ });
176
+ });
169
177
  const entityConfig = await useGraphqlQuery("pbEntityConfig", {
170
178
  entityType: providedContext.value.entityType,
171
179
  entityUuid: providedContext.value.entityUuid
@@ -233,6 +241,7 @@ export default defineBlokkliEditAdapter(
233
241
  mutations,
234
242
  currentUserIsOwner,
235
243
  ownerName,
244
+ ownerId: state.user?.id,
236
245
  mutatedState: {
237
246
  fields,
238
247
  violations,
@@ -243,7 +252,16 @@ export default defineBlokkliEditAdapter(
243
252
  publishOptions,
244
253
  entity,
245
254
  mutatedEntity: state.mutatedEntity,
246
- translationState
255
+ translationState,
256
+ textFieldValues: (state.textFieldValues || []).map((v) => ({
257
+ uuid: v.uuid,
258
+ fieldName: v.fieldName,
259
+ value: v.value,
260
+ fieldType: v.fieldType,
261
+ entityType: v.entityType,
262
+ entityBundle: v.entityBundle
263
+ })),
264
+ ignoredAnalyzeIdentifiers: state.stateSettings?.ignoredAnalyzeIdentifiers || []
247
265
  };
248
266
  };
249
267
  const addNewBlock = (e) => useGraphqlMutation("pbAddParagraph", {
@@ -394,7 +412,27 @@ export default defineBlokkliEditAdapter(
394
412
  mapState,
395
413
  moveBlock,
396
414
  moveMultipleBlocks,
397
- buildAnchorLink
415
+ buildAnchorLink,
416
+ getEntityTypeInfo(id) {
417
+ const label = entityTypeConfigMap.get(id);
418
+ if (label) {
419
+ return {
420
+ id,
421
+ label
422
+ };
423
+ }
424
+ return null;
425
+ },
426
+ getEntityBundleInfo(entityTypeId, bundle) {
427
+ const label = entityTypeConfigMap.get(`${entityTypeId}:${bundle}`);
428
+ if (label) {
429
+ return {
430
+ id: bundle,
431
+ label
432
+ };
433
+ }
434
+ return null;
435
+ }
398
436
  };
399
437
  if (hasQuery("pbPublishOptions")) {
400
438
  adapter.getPublishOptions = () => useGraphqlQuery("pbPublishOptions", ctx.value).then((v) => {
@@ -535,6 +573,58 @@ export default defineBlokkliEditAdapter(
535
573
  uuids
536
574
  }).then(mapMutation);
537
575
  }
576
+ if (hasMutation("pbClearOutdatedTranslation")) {
577
+ adapter.markTranslationUpToDate = (uuids, langcode) => useGraphqlMutation("pbClearOutdatedTranslation", {
578
+ ...ctx.value,
579
+ uuids,
580
+ langcode
581
+ }).then(mapMutation);
582
+ }
583
+ if (hasMutation("pbBulkTranslateFieldValues")) {
584
+ adapter.importTranslationsBatched = ({ items, markUpToDate }) => useGraphqlMutation("pbBulkTranslateFieldValues", {
585
+ ...ctx.value,
586
+ clearOutdated: !!markUpToDate,
587
+ items: items.map((item) => ({
588
+ uuid: item.uuid,
589
+ name: item.fieldName,
590
+ value: item.fieldValue,
591
+ langcode: item.langcode
592
+ }))
593
+ }).then(mapMutation);
594
+ }
595
+ if (hasQuery("pbTextFieldValues")) {
596
+ adapter.loadTextFieldValuesForLanguage = (langcode) => useGraphqlQuery("pbTextFieldValues", {
597
+ ...ctx.value,
598
+ langcode
599
+ }).then(
600
+ (v) => (v.data.state?.textFieldValues || []).map((tfv) => ({
601
+ uuid: tfv.uuid,
602
+ fieldName: tfv.fieldName,
603
+ value: tfv.value,
604
+ fieldType: tfv.fieldType,
605
+ entityType: tfv.entityType,
606
+ entityBundle: tfv.entityBundle
607
+ }))
608
+ );
609
+ }
610
+ if (hasMutation("pbRequestTranslation")) {
611
+ adapter.requestTranslation = (items) => useGraphqlMutation("pbRequestTranslation", {
612
+ items: items.map((item) => ({
613
+ key: item.key,
614
+ text: item.text,
615
+ isMarkup: item.isHtml,
616
+ sourceLanguage: item.sourceLanguage,
617
+ targetLanguage: item.targetLanguage
618
+ }))
619
+ }).then((v) => ({
620
+ success: v.data.result?.success ?? false,
621
+ errors: v.data.result?.errors ?? void 0,
622
+ data: (v.data.result?.items || []).map((item) => ({
623
+ key: item.key,
624
+ translatedText: item.text
625
+ }))
626
+ }));
627
+ }
538
628
  if (hasMutation("pbAddReusableParagraph")) {
539
629
  adapter.addLibraryItem = (e) => useGraphqlMutation("pbAddReusableParagraph", {
540
630
  ...ctx.value,
@@ -603,6 +693,21 @@ export default defineBlokkliEditAdapter(
603
693
  uuid
604
694
  }).then((v) => mapComments(v.data.action || []));
605
695
  }
696
+ if (hasQuery("pbReferencedEntities")) {
697
+ adapter.getReferencedEntities = (uuids) => useGraphqlQuery("pbReferencedEntities", {
698
+ ...ctx.value,
699
+ uuids
700
+ }).then(
701
+ (v) => (v.data.state?.referencedEntities || []).map((entity) => ({
702
+ editUrl: entity.editUrl,
703
+ entityBundle: entity.entityBundle,
704
+ entityType: entity.entityType,
705
+ entityUuid: entity.entityUuid,
706
+ label: entity.label ?? "",
707
+ uuids: entity.uuids || []
708
+ }))
709
+ );
710
+ }
606
711
  if (hasQuery("pbLibraryItems")) {
607
712
  adapter.getLibraryItems = (data) => {
608
713
  return useGraphqlQuery("pbLibraryItems", {
@@ -926,17 +1031,25 @@ export default defineBlokkliEditAdapter(
926
1031
  }
927
1032
  };
928
1033
  if (hasQuery("pbSearchEditStates")) {
929
- adapter.getEditStates = (page) => {
930
- return useGraphqlQuery("pbSearchEditStates", { page }).then((data) => {
1034
+ adapter.getEditStates = (e) => {
1035
+ return useGraphqlQuery("pbSearchEditStates", {
1036
+ page: e?.page,
1037
+ ...e?.filters
1038
+ }).then((data) => {
931
1039
  return {
932
1040
  items: (data.data.pbSearchEditStates?.items || []).map((v) => {
933
- if (v && v.uuid && v.hostEntityType && v.hostEntityUuid && v.label) {
1041
+ if (v && v.uuid && v.hostEntityType && v.hostEntityUuid && v.label && v.url?.path) {
934
1042
  return {
935
1043
  id: v.uuid,
936
1044
  hostEntityType: v.hostEntityType,
937
1045
  hostEntityUuid: v.hostEntityUuid,
938
1046
  label: v.label,
939
- ...v
1047
+ ownerName: v.uid?.name ?? "",
1048
+ pendingChanges: v.mutations?.count ?? 0,
1049
+ lastChanged: v.changedRawField?.first?.formatted ?? "",
1050
+ url: v.url.path,
1051
+ entity: v.entity,
1052
+ currentUserIsOwner: v.currentUserIsOwner
940
1053
  };
941
1054
  }
942
1055
  return null;
@@ -950,6 +1063,34 @@ export default defineBlokkliEditAdapter(
950
1063
  });
951
1064
  };
952
1065
  }
1066
+ if (hasQuery("pbEntitiesSearch")) {
1067
+ adapter.getHostEntities = () => {
1068
+ return useGraphqlQuery("pbEntitiesSearch").then((data) => {
1069
+ const result = data.data.paragraphsBlokkliEntitiesSearch;
1070
+ const bundles = {};
1071
+ for (const bundle of result?.bundleLabels ?? []) {
1072
+ bundles[bundle.id] = bundle.label;
1073
+ }
1074
+ return {
1075
+ items: (result?.items ?? []).map((v) => ({
1076
+ id: v.id,
1077
+ uuid: v.uuid,
1078
+ entityType: v.entityType,
1079
+ bundle: v.bundle,
1080
+ label: v.label ?? "",
1081
+ url: v.url,
1082
+ lastChanged: v.lastChanged ?? null,
1083
+ uid: v.uid ?? null,
1084
+ context: v.context ?? void 0
1085
+ })),
1086
+ labelMap: {
1087
+ label: result?.entityTypeLabels?.[0]?.label ?? "",
1088
+ bundles
1089
+ }
1090
+ };
1091
+ });
1092
+ };
1093
+ }
953
1094
  if (hasQuery("pbSearchTemplates")) {
954
1095
  adapter.templatesSearch = (e) => {
955
1096
  return useGraphqlQuery("pbSearchTemplates", {
@@ -1158,10 +1299,22 @@ export default defineBlokkliEditAdapter(
1158
1299
  load: (uuid) => useGraphqlQuery("pbAgentConversation", {
1159
1300
  ...hostParams(),
1160
1301
  uuid
1161
- }).then((v) => v.data.conversation ?? null),
1162
- loadLatest: () => useGraphqlQuery("pbAgentConversation", hostParams()).then(
1163
- (v) => v.data.conversation ?? null
1164
- ),
1302
+ }).then((v) => {
1303
+ const c = v.data.conversation;
1304
+ if (!c) return null;
1305
+ return {
1306
+ ...c,
1307
+ feedbackItemIds: c.feedback.map((f) => f.itemId)
1308
+ };
1309
+ }),
1310
+ loadLatest: () => useGraphqlQuery("pbAgentConversation", hostParams()).then((v) => {
1311
+ const c = v.data.conversation;
1312
+ if (!c) return null;
1313
+ return {
1314
+ ...c,
1315
+ feedbackItemIds: c.feedback.map((f) => f.itemId)
1316
+ };
1317
+ }),
1165
1318
  list: () => useGraphqlQuery("pbAgentConversations", hostParams()).then(
1166
1319
  (v) => v.data.conversations
1167
1320
  ),
@@ -1169,6 +1322,14 @@ export default defineBlokkliEditAdapter(
1169
1322
  (v) => v.data.result.success
1170
1323
  )
1171
1324
  };
1325
+ if (hasMutation("pbAgentConversationFeedback")) {
1326
+ adapter.submitConversationFeedback = (feedback) => useGraphqlMutation("pbAgentConversationFeedback", {
1327
+ uuid: feedback.conversationId,
1328
+ itemId: feedback.lastItemId,
1329
+ rating: feedback.rating,
1330
+ explanation: feedback.comment
1331
+ }).then((v) => v.data.result.success);
1332
+ }
1172
1333
  }
1173
1334
  if (hasMutation("pbBulkUpdateFieldValues")) {
1174
1335
  adapter.updateFieldValueBatched = (data) => {
@@ -1202,6 +1363,14 @@ export default defineBlokkliEditAdapter(
1202
1363
  }).then(mapMutation);
1203
1364
  };
1204
1365
  }
1366
+ adapter.ignoreAnalyzeIdentifiers = (identifiers) => useGraphqlMutation("pbIgnoreAnalyze", {
1367
+ ...ctx.value,
1368
+ ids: identifiers
1369
+ }).then(mapMutation);
1370
+ adapter.unignoreAnalyzeIdentifiers = (identifiers) => useGraphqlMutation("pbUnignoreAnalyze", {
1371
+ ...ctx.value,
1372
+ ids: identifiers
1373
+ }).then(mapMutation);
1205
1374
  return adapter;
1206
1375
  }
1207
1376
  );
@@ -0,0 +1,31 @@
1
+ import { B as BlokkliModule } from '../../shared/editor.BTOBvmaz.mjs';
2
+ import 'nuxt/schema';
3
+ import 'consola';
4
+ import '../../../dist/global/types/definitions.js';
5
+ import '../../../dist/global/types/theme.js';
6
+ import '@nuxt/kit';
7
+ import '../../../dist/global/types/features.js';
8
+
9
+ type IframeViewport = {
10
+ /**
11
+ * The human-readable label for this viewport preset.
12
+ */
13
+ label: string;
14
+ /**
15
+ * The container width in pixels.
16
+ */
17
+ width: number;
18
+ };
19
+ type IframesModuleOptions = {
20
+ /**
21
+ * Viewport presets keyed by identifier.
22
+ *
23
+ * Keys are used internally, values define the label and container width
24
+ * shown in the iframe heights editor.
25
+ */
26
+ viewports: Record<string, IframeViewport>;
27
+ };
28
+
29
+ declare const _default: (options: IframesModuleOptions) => BlokkliModule<IframesModuleOptions>;
30
+
31
+ export { _default as default };
@@ -0,0 +1,52 @@
1
+ import { createResolver } from '@nuxt/kit';
2
+ import { defineBlokkliModule } from '../index.mjs';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { d as defineCodeTemplate } from '../../shared/editor.6D5vApr0.mjs';
5
+
6
+ function iframesConfigTemplate(options) {
7
+ return defineCodeTemplate(
8
+ "iframes-config",
9
+ () => {
10
+ return `
11
+ export const VIEWPORTS = ${JSON.stringify(options.viewports)}
12
+ `;
13
+ },
14
+ () => {
15
+ return `
16
+ import type { IframeViewport } from '#blokkli/iframes/types'
17
+
18
+ export const VIEWPORTS: Record<string, IframeViewport>
19
+ `;
20
+ },
21
+ {
22
+ context: "both",
23
+ write: true
24
+ }
25
+ );
26
+ }
27
+
28
+ const resolve = createResolver(
29
+ fileURLToPath(new URL("./", import.meta.url))
30
+ ).resolve;
31
+ const index = defineBlokkliModule({
32
+ setup({ context, helper, $t }, options) {
33
+ context.addTemplate(iframesConfigTemplate(options));
34
+ helper.addAlias("#blokkli/iframes/types", resolve("./runtime/types"));
35
+ helper.addAlias(
36
+ "#blokkli/iframes/components",
37
+ resolve("./runtime/components")
38
+ );
39
+ context.registerComplexOptionType({
40
+ id: "iframe_heights",
41
+ typeName: "IframeHeightMap",
42
+ typePath: resolve("./runtime/types"),
43
+ editorComponentPath: resolve(
44
+ "./runtime/features/iframes/Editor/index.vue"
45
+ ),
46
+ editTitle: $t("iframesEditTitle", "Edit iframe size"),
47
+ editorIcon: "bk_mdi_fit_screen"
48
+ });
49
+ }
50
+ });
51
+
52
+ export { index as default };
@@ -0,0 +1,18 @@
1
+ import type { IframeHeightMap } from '../../types.js';
2
+ type __VLS_Props = {
3
+ src: string;
4
+ heights: IframeHeightMap;
5
+ };
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
14
+ type __VLS_WithSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <div :data-bk-iframe-id="scopeId" style="container-type: inline-size">
3
+ <div class="bk-iframe-slot">
4
+ <slot />
5
+ </div>
6
+ </div>
7
+ </template>
8
+
9
+ <script setup>
10
+ import { computed, inject, onMounted, onBeforeUnmount, watch } from "vue";
11
+ import { useBlokkli, useHead } from "#imports";
12
+ import { INJECT_BLOCK_ITEM } from "#blokkli/helpers/injections";
13
+ const props = defineProps({
14
+ src: { type: String, required: true },
15
+ heights: { type: Object, required: true }
16
+ });
17
+ const item = inject(INJECT_BLOCK_ITEM, null);
18
+ const uuid = computed(() => item?.value.uuid || "");
19
+ const scopeId = computed(() => uuid.value || "unknown");
20
+ const app = useBlokkli(true);
21
+ onMounted(() => {
22
+ if (app && uuid.value) {
23
+ app.directive.registerValueElement(uuid.value, "iframe", props.src);
24
+ }
25
+ });
26
+ onBeforeUnmount(() => {
27
+ if (app && uuid.value) {
28
+ app.directive.unregisterValueElement(uuid.value, "iframe");
29
+ }
30
+ });
31
+ watch(
32
+ () => props.src,
33
+ (src) => {
34
+ if (app && uuid.value) {
35
+ app.directive.registerValueElement(uuid.value, "iframe", src);
36
+ }
37
+ }
38
+ );
39
+ const generatedCSS = computed(() => {
40
+ const entries = Object.entries(props.heights).map(([w, h]) => ({ width: Number(w), height: h })).filter((e) => !Number.isNaN(e.width) && e.height > 0).sort((a, b) => b.width - a.width);
41
+ if (!entries.length) return "";
42
+ const sel = `[data-bk-iframe-id="${scopeId.value}"]`;
43
+ const lines = [];
44
+ lines.push(`${sel} .bk-iframe-slot { height: ${entries[0].height}px; }`);
45
+ for (let i = 1; i < entries.length; i++) {
46
+ const entry = entries[i];
47
+ lines.push(
48
+ `@container (max-width: ${entry.width}px) { ${sel} .bk-iframe-slot { height: ${entry.height}px; } }`
49
+ );
50
+ }
51
+ return lines.join("\n");
52
+ });
53
+ useHead({
54
+ style: [
55
+ {
56
+ key: computed(() => `bk-iframe-${scopeId.value}`),
57
+ innerHTML: generatedCSS
58
+ }
59
+ ]
60
+ });
61
+ </script>