@revenexx/editor 0.1.0

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 (2157) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/global/constants/index.d.ts +7 -0
  4. package/dist/global/constants/index.js +11 -0
  5. package/dist/global/types/adapter.d.ts +6 -0
  6. package/dist/global/types/adapter.js +0 -0
  7. package/dist/global/types/blockOptions.d.ts +415 -0
  8. package/dist/global/types/blockOptions.js +0 -0
  9. package/dist/global/types/colorOptions.d.ts +20 -0
  10. package/dist/global/types/colorOptions.js +0 -0
  11. package/dist/global/types/definitions.d.ts +285 -0
  12. package/dist/global/types/definitions.js +0 -0
  13. package/dist/global/types/features.d.ts +87 -0
  14. package/dist/global/types/features.js +0 -0
  15. package/dist/global/types/theme.d.ts +34 -0
  16. package/dist/global/types/theme.js +0 -0
  17. package/dist/module.d.mts +13 -0
  18. package/dist/module.json +12 -0
  19. package/dist/module.mjs +4935 -0
  20. package/dist/modules/agent/index.d.mts +73 -0
  21. package/dist/modules/agent/index.mjs +785 -0
  22. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCode/index.d.vue.ts +6 -0
  23. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCode/index.vue +11 -0
  24. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCode/index.vue.d.ts +6 -0
  25. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.d.vue.ts +6 -0
  26. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue +56 -0
  27. package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue.d.ts +6 -0
  28. package/dist/modules/agent/runtime/app/components/Attachment/PreviewHtml/index.d.vue.ts +6 -0
  29. package/dist/modules/agent/runtime/app/components/Attachment/PreviewHtml/index.vue +9 -0
  30. package/dist/modules/agent/runtime/app/components/Attachment/PreviewHtml/index.vue.d.ts +6 -0
  31. package/dist/modules/agent/runtime/app/components/Attachment/PreviewMarkdown/index.d.vue.ts +6 -0
  32. package/dist/modules/agent/runtime/app/components/Attachment/PreviewMarkdown/index.vue +10 -0
  33. package/dist/modules/agent/runtime/app/components/Attachment/PreviewMarkdown/index.vue.d.ts +6 -0
  34. package/dist/modules/agent/runtime/app/components/Attachment/index.d.vue.ts +13 -0
  35. package/dist/modules/agent/runtime/app/components/Attachment/index.vue +104 -0
  36. package/dist/modules/agent/runtime/app/components/Attachment/index.vue.d.ts +13 -0
  37. package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.d.vue.ts +7 -0
  38. package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.vue +40 -0
  39. package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.vue.d.ts +7 -0
  40. package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.d.vue.ts +9 -0
  41. package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.vue +33 -0
  42. package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.vue.d.ts +9 -0
  43. package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.d.vue.ts +20 -0
  44. package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.vue +52 -0
  45. package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.vue.d.ts +20 -0
  46. package/dist/modules/agent/runtime/app/components/Conversation/Item/Error/index.d.vue.ts +15 -0
  47. package/dist/modules/agent/runtime/app/components/Conversation/Item/Error/index.vue +58 -0
  48. package/dist/modules/agent/runtime/app/components/Conversation/Item/Error/index.vue.d.ts +15 -0
  49. package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.d.vue.ts +11 -0
  50. package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.vue +29 -0
  51. package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.vue.d.ts +11 -0
  52. package/dist/modules/agent/runtime/app/components/Conversation/Item/ServerTool/index.d.vue.ts +11 -0
  53. package/dist/modules/agent/runtime/app/components/Conversation/Item/ServerTool/index.vue +61 -0
  54. package/dist/modules/agent/runtime/app/components/Conversation/Item/ServerTool/index.vue.d.ts +11 -0
  55. package/dist/modules/agent/runtime/app/components/Conversation/Item/Tool/index.d.vue.ts +16 -0
  56. package/dist/modules/agent/runtime/app/components/Conversation/Item/Tool/index.vue +36 -0
  57. package/dist/modules/agent/runtime/app/components/Conversation/Item/Tool/index.vue.d.ts +16 -0
  58. package/dist/modules/agent/runtime/app/components/Conversation/Item/Unknown/index.d.vue.ts +8 -0
  59. package/dist/modules/agent/runtime/app/components/Conversation/Item/Unknown/index.vue +14 -0
  60. package/dist/modules/agent/runtime/app/components/Conversation/Item/Unknown/index.vue.d.ts +8 -0
  61. package/dist/modules/agent/runtime/app/components/Conversation/Item/User/index.d.vue.ts +13 -0
  62. package/dist/modules/agent/runtime/app/components/Conversation/Item/User/index.vue +144 -0
  63. package/dist/modules/agent/runtime/app/components/Conversation/Item/User/index.vue.d.ts +13 -0
  64. package/dist/modules/agent/runtime/app/components/Conversation/Item/index.d.vue.ts +13 -0
  65. package/dist/modules/agent/runtime/app/components/Conversation/Item/index.vue +46 -0
  66. package/dist/modules/agent/runtime/app/components/Conversation/Item/index.vue.d.ts +13 -0
  67. package/dist/modules/agent/runtime/app/components/Conversation/Thinking/index.d.vue.ts +3 -0
  68. package/dist/modules/agent/runtime/app/components/Conversation/Thinking/index.vue +14 -0
  69. package/dist/modules/agent/runtime/app/components/Conversation/Thinking/index.vue.d.ts +3 -0
  70. package/dist/modules/agent/runtime/app/components/Conversation/index.d.vue.ts +16 -0
  71. package/dist/modules/agent/runtime/app/components/Conversation/index.vue +65 -0
  72. package/dist/modules/agent/runtime/app/components/Conversation/index.vue.d.ts +16 -0
  73. package/dist/modules/agent/runtime/app/components/FieldDiffDetails/index.d.vue.ts +21 -0
  74. package/dist/modules/agent/runtime/app/components/FieldDiffDetails/index.vue +38 -0
  75. package/dist/modules/agent/runtime/app/components/FieldDiffDetails/index.vue.d.ts +21 -0
  76. package/dist/modules/agent/runtime/app/components/Markdown/index.d.vue.ts +6 -0
  77. package/dist/modules/agent/runtime/app/components/Markdown/index.vue +14 -0
  78. package/dist/modules/agent/runtime/app/components/Markdown/index.vue.d.ts +6 -0
  79. package/dist/modules/agent/runtime/app/composables/defineBlokkliAgentPrompt.d.ts +32 -0
  80. package/dist/modules/agent/runtime/app/composables/defineBlokkliAgentPrompt.js +6 -0
  81. package/dist/modules/agent/runtime/app/composables/defineBlokkliAgentTool.d.ts +47 -0
  82. package/dist/modules/agent/runtime/app/composables/defineBlokkliAgentTool.js +3 -0
  83. package/dist/modules/agent/runtime/app/composables/index.d.ts +10 -0
  84. package/dist/modules/agent/runtime/app/composables/index.js +5 -0
  85. package/dist/modules/agent/runtime/app/composables/useAgent.d.ts +7 -0
  86. package/dist/modules/agent/runtime/app/composables/useAgent.js +14 -0
  87. package/dist/modules/agent/runtime/app/composables/useAgentFeedbackOptions.d.ts +11 -0
  88. package/dist/modules/agent/runtime/app/composables/useAgentFeedbackOptions.js +24 -0
  89. package/dist/modules/agent/runtime/app/composables/useAgentPaginatedQuery.d.ts +29 -0
  90. package/dist/modules/agent/runtime/app/composables/useAgentPaginatedQuery.js +30 -0
  91. package/dist/modules/agent/runtime/app/features/agent/Container.d.vue.ts +17 -0
  92. package/dist/modules/agent/runtime/app/features/agent/Container.vue +128 -0
  93. package/dist/modules/agent/runtime/app/features/agent/Container.vue.d.ts +17 -0
  94. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.d.vue.ts +13 -0
  95. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue +46 -0
  96. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue.d.ts +13 -0
  97. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/index.d.vue.ts +3 -0
  98. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/index.vue +74 -0
  99. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/index.vue.d.ts +3 -0
  100. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.d.vue.ts +11 -0
  101. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue +55 -0
  102. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue.d.ts +11 -0
  103. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.d.vue.ts +3 -0
  104. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.vue +116 -0
  105. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.vue.d.ts +3 -0
  106. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.d.vue.ts +7 -0
  107. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue +61 -0
  108. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue.d.ts +7 -0
  109. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.d.vue.ts +38 -0
  110. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue +137 -0
  111. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue.d.ts +38 -0
  112. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.d.vue.ts +7 -0
  113. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.vue +45 -0
  114. package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.vue.d.ts +7 -0
  115. package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.d.vue.ts +15 -0
  116. package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.vue +37 -0
  117. package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.vue.d.ts +15 -0
  118. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.d.vue.ts +17 -0
  119. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue +195 -0
  120. package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue.d.ts +17 -0
  121. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.d.vue.ts +10 -0
  122. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +85 -0
  123. package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue.d.ts +10 -0
  124. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.d.vue.ts +8 -0
  125. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.vue +20 -0
  126. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.vue.d.ts +8 -0
  127. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.d.vue.ts +3 -0
  128. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.vue +3 -0
  129. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.vue.d.ts +3 -0
  130. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/index.d.vue.ts +7 -0
  131. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/index.vue +67 -0
  132. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/index.vue.d.ts +7 -0
  133. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.d.vue.ts +24 -0
  134. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +139 -0
  135. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue.d.ts +24 -0
  136. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/index.d.vue.ts +47 -0
  137. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/index.vue +121 -0
  138. package/dist/modules/agent/runtime/app/features/agent/Panel/Input/index.vue.d.ts +47 -0
  139. package/dist/modules/agent/runtime/app/features/agent/Panel/PendingMutation/index.d.vue.ts +15 -0
  140. package/dist/modules/agent/runtime/app/features/agent/Panel/PendingMutation/index.vue +47 -0
  141. package/dist/modules/agent/runtime/app/features/agent/Panel/PendingMutation/index.vue.d.ts +15 -0
  142. package/dist/modules/agent/runtime/app/features/agent/Panel/Plan/index.d.vue.ts +14 -0
  143. package/dist/modules/agent/runtime/app/features/agent/Panel/Plan/index.vue +58 -0
  144. package/dist/modules/agent/runtime/app/features/agent/Panel/Plan/index.vue.d.ts +14 -0
  145. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.d.vue.ts +25 -0
  146. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue +42 -0
  147. package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue.d.ts +25 -0
  148. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/de.md +19 -0
  149. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/en.md +18 -0
  150. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.d.vue.ts +10 -0
  151. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue +75 -0
  152. package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue.d.ts +10 -0
  153. package/dist/modules/agent/runtime/app/features/agent/Panel/index.d.vue.ts +6 -0
  154. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +324 -0
  155. package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +6 -0
  156. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.d.vue.ts +7 -0
  157. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue +54 -0
  158. package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue.d.ts +7 -0
  159. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.d.vue.ts +8 -0
  160. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +150 -0
  161. package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue.d.ts +8 -0
  162. package/dist/modules/agent/runtime/app/features/agent/index.d.vue.ts +3 -0
  163. package/dist/modules/agent/runtime/app/features/agent/index.vue +228 -0
  164. package/dist/modules/agent/runtime/app/features/agent/index.vue.d.ts +3 -0
  165. package/dist/modules/agent/runtime/app/features/agent/types.d.ts +147 -0
  166. package/dist/modules/agent/runtime/app/features/agent/types.js +0 -0
  167. package/dist/modules/agent/runtime/app/helpers/buildPageContext.d.ts +7 -0
  168. package/dist/modules/agent/runtime/app/helpers/buildPageContext.js +81 -0
  169. package/dist/modules/agent/runtime/app/helpers/historySignature.d.ts +14 -0
  170. package/dist/modules/agent/runtime/app/helpers/historySignature.js +13 -0
  171. package/dist/modules/agent/runtime/app/helpers/id.d.ts +6 -0
  172. package/dist/modules/agent/runtime/app/helpers/id.js +3 -0
  173. package/dist/modules/agent/runtime/app/helpers/index.d.ts +56 -0
  174. package/dist/modules/agent/runtime/app/helpers/index.js +68 -0
  175. package/dist/modules/agent/runtime/app/helpers/injections.d.ts +3 -0
  176. package/dist/modules/agent/runtime/app/helpers/injections.js +3 -0
  177. package/dist/modules/agent/runtime/app/helpers/linkifyBlockUuids.d.ts +11 -0
  178. package/dist/modules/agent/runtime/app/helpers/linkifyBlockUuids.js +47 -0
  179. package/dist/modules/agent/runtime/app/helpers/markdown.d.ts +7 -0
  180. package/dist/modules/agent/runtime/app/helpers/markdown.js +5 -0
  181. package/dist/modules/agent/runtime/app/helpers/mutationResult.d.ts +38 -0
  182. package/dist/modules/agent/runtime/app/helpers/mutationResult.js +49 -0
  183. package/dist/modules/agent/runtime/app/helpers/pageStructure.d.ts +5 -0
  184. package/dist/modules/agent/runtime/app/helpers/pageStructure.js +84 -0
  185. package/dist/modules/agent/runtime/app/helpers/parseConversationData.d.ts +27 -0
  186. package/dist/modules/agent/runtime/app/helpers/parseConversationData.js +42 -0
  187. package/dist/modules/agent/runtime/app/helpers/validation.d.ts +48 -0
  188. package/dist/modules/agent/runtime/app/helpers/validation.js +99 -0
  189. package/dist/modules/agent/runtime/app/prompts/fixReadability.d.ts +2 -0
  190. package/dist/modules/agent/runtime/app/prompts/fixReadability.js +57 -0
  191. package/dist/modules/agent/runtime/app/providers/agentProvider.d.ts +56 -0
  192. package/dist/modules/agent/runtime/app/providers/agentProvider.js +400 -0
  193. package/dist/modules/agent/runtime/app/providers/conversationProvider.d.ts +49 -0
  194. package/dist/modules/agent/runtime/app/providers/conversationProvider.js +234 -0
  195. package/dist/modules/agent/runtime/app/providers/planProvider.d.ts +15 -0
  196. package/dist/modules/agent/runtime/app/providers/planProvider.js +34 -0
  197. package/dist/modules/agent/runtime/app/providers/socketProvider.d.ts +17 -0
  198. package/dist/modules/agent/runtime/app/providers/socketProvider.js +110 -0
  199. package/dist/modules/agent/runtime/app/providers/toolsProvider.d.ts +44 -0
  200. package/dist/modules/agent/runtime/app/providers/toolsProvider.js +291 -0
  201. package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.d.ts +27 -0
  202. package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.js +79 -0
  203. package/dist/modules/agent/runtime/app/tools/add_fragment/index.d.ts +24 -0
  204. package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +91 -0
  205. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.d.ts +26 -0
  206. package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +74 -0
  207. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +34 -0
  208. package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +329 -0
  209. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.d.ts +24 -0
  210. package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +85 -0
  211. package/dist/modules/agent/runtime/app/tools/add_template/index.d.ts +24 -0
  212. package/dist/modules/agent/runtime/app/tools/add_template/index.js +61 -0
  213. package/dist/modules/agent/runtime/app/tools/ask_question/Component.d.vue.ts +19 -0
  214. package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue +129 -0
  215. package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue.d.ts +19 -0
  216. package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +18 -0
  217. package/dist/modules/agent/runtime/app/tools/ask_question/index.js +64 -0
  218. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.d.vue.ts +51 -0
  219. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue +174 -0
  220. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue.d.ts +51 -0
  221. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +43 -0
  222. package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.js +80 -0
  223. package/dist/modules/agent/runtime/app/tools/check_readability_for_texts/index.d.ts +19 -0
  224. package/dist/modules/agent/runtime/app/tools/check_readability_for_texts/index.js +60 -0
  225. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.d.vue.ts +51 -0
  226. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +291 -0
  227. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue.d.ts +51 -0
  228. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +65 -0
  229. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +152 -0
  230. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/useFieldRewriteStream.d.ts +64 -0
  231. package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/useFieldRewriteStream.js +502 -0
  232. package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.d.ts +18 -0
  233. package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.js +61 -0
  234. package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.d.ts +18 -0
  235. package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.js +62 -0
  236. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.d.ts +24 -0
  237. package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +157 -0
  238. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.d.ts +119 -0
  239. package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.js +174 -0
  240. package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.d.ts +33 -0
  241. package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.js +181 -0
  242. package/dist/modules/agent/runtime/app/tools/get_all_fragments/index.d.ts +9 -0
  243. package/dist/modules/agent/runtime/app/tools/get_all_fragments/index.js +33 -0
  244. package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.d.ts +12 -0
  245. package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.js +85 -0
  246. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.d.ts +37 -0
  247. package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +181 -0
  248. package/dist/modules/agent/runtime/app/tools/get_child_paragraphs/index.d.ts +22 -0
  249. package/dist/modules/agent/runtime/app/tools/get_child_paragraphs/index.js +109 -0
  250. package/dist/modules/agent/runtime/app/tools/get_content_fields/index.d.ts +32 -0
  251. package/dist/modules/agent/runtime/app/tools/get_content_fields/index.js +189 -0
  252. package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.d.ts +27 -0
  253. package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.js +104 -0
  254. package/dist/modules/agent/runtime/app/tools/get_page_structure/index.d.ts +10 -0
  255. package/dist/modules/agent/runtime/app/tools/get_page_structure/index.js +116 -0
  256. package/dist/modules/agent/runtime/app/tools/get_page_text/index.d.ts +8 -0
  257. package/dist/modules/agent/runtime/app/tools/get_page_text/index.js +65 -0
  258. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.d.ts +83 -0
  259. package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +264 -0
  260. package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.d.ts +16 -0
  261. package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.js +62 -0
  262. package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.d.ts +40 -0
  263. package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.js +186 -0
  264. package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.d.ts +14 -0
  265. package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.js +71 -0
  266. package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +16 -0
  267. package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.js +62 -0
  268. package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.d.ts +11 -0
  269. package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.js +48 -0
  270. package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.d.ts +18 -0
  271. package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.js +59 -0
  272. package/dist/modules/agent/runtime/app/tools/helpers.d.ts +93 -0
  273. package/dist/modules/agent/runtime/app/tools/helpers.js +277 -0
  274. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.d.ts +24 -0
  275. package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +116 -0
  276. package/dist/modules/agent/runtime/app/tools/readability.d.ts +45 -0
  277. package/dist/modules/agent/runtime/app/tools/readability.js +51 -0
  278. package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.d.ts +23 -0
  279. package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.js +109 -0
  280. package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.d.ts +22 -0
  281. package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.js +90 -0
  282. package/dist/modules/agent/runtime/app/tools/replace_media_field/index.d.ts +21 -0
  283. package/dist/modules/agent/runtime/app/tools/replace_media_field/index.js +96 -0
  284. package/dist/modules/agent/runtime/app/tools/schemas.d.ts +137 -0
  285. package/dist/modules/agent/runtime/app/tools/schemas.js +139 -0
  286. package/dist/modules/agent/runtime/app/tools/search_content/index.d.ts +17 -0
  287. package/dist/modules/agent/runtime/app/tools/search_content/index.js +61 -0
  288. package/dist/modules/agent/runtime/app/tools/search_media/index.d.ts +18 -0
  289. package/dist/modules/agent/runtime/app/tools/search_media/index.js +60 -0
  290. package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.d.ts +18 -0
  291. package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.js +76 -0
  292. package/dist/modules/agent/runtime/app/tools/search_templates/index.d.ts +15 -0
  293. package/dist/modules/agent/runtime/app/tools/search_templates/index.js +53 -0
  294. package/dist/modules/agent/runtime/app/tools/search_text/index.d.ts +17 -0
  295. package/dist/modules/agent/runtime/app/tools/search_text/index.js +114 -0
  296. package/dist/modules/agent/runtime/app/tools/select_media/Component.d.vue.ts +29 -0
  297. package/dist/modules/agent/runtime/app/tools/select_media/Component.vue +84 -0
  298. package/dist/modules/agent/runtime/app/tools/select_media/Component.vue.d.ts +29 -0
  299. package/dist/modules/agent/runtime/app/tools/select_media/index.d.ts +30 -0
  300. package/dist/modules/agent/runtime/app/tools/select_media/index.js +74 -0
  301. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.d.ts +21 -0
  302. package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +112 -0
  303. package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.d.ts +19 -0
  304. package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.js +51 -0
  305. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.d.vue.ts +51 -0
  306. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue +198 -0
  307. package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue.d.ts +51 -0
  308. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +70 -0
  309. package/dist/modules/agent/runtime/app/tools/update_text_fields/index.js +138 -0
  310. package/dist/modules/agent/runtime/app/tools/web_fetch/index.d.ts +19 -0
  311. package/dist/modules/agent/runtime/app/tools/web_fetch/index.js +52 -0
  312. package/dist/modules/agent/runtime/app/types/index.d.ts +551 -0
  313. package/dist/modules/agent/runtime/app/types/index.js +102 -0
  314. package/dist/modules/agent/runtime/server/agent.d.ts +2 -0
  315. package/dist/modules/agent/runtime/server/agent.js +154 -0
  316. package/dist/modules/agent/runtime/server/classes/ConversationHistory/index.d.ts +93 -0
  317. package/dist/modules/agent/runtime/server/classes/ConversationHistory/index.js +241 -0
  318. package/dist/modules/agent/runtime/server/classes/ConversationMessage/index.d.ts +102 -0
  319. package/dist/modules/agent/runtime/server/classes/ConversationMessage/index.js +156 -0
  320. package/dist/modules/agent/runtime/server/classes/FieldStreamParser/index.d.ts +85 -0
  321. package/dist/modules/agent/runtime/server/classes/FieldStreamParser/index.js +227 -0
  322. package/dist/modules/agent/runtime/server/classes/Session/index.d.ts +160 -0
  323. package/dist/modules/agent/runtime/server/classes/Session/index.js +983 -0
  324. package/dist/modules/agent/runtime/server/classes/SessionManager/index.d.ts +24 -0
  325. package/dist/modules/agent/runtime/server/classes/SessionManager/index.js +68 -0
  326. package/dist/modules/agent/runtime/server/classes/StreamAccumulator/index.d.ts +58 -0
  327. package/dist/modules/agent/runtime/server/classes/StreamAccumulator/index.js +72 -0
  328. package/dist/modules/agent/runtime/server/default-skills/adding-new-paragraphs.d.ts +2 -0
  329. package/dist/modules/agent/runtime/server/default-skills/adding-new-paragraphs.js +20 -0
  330. package/dist/modules/agent/runtime/server/default-skills/fixReadability.d.ts +2 -0
  331. package/dist/modules/agent/runtime/server/default-skills/fixReadability.js +50 -0
  332. package/dist/modules/agent/runtime/server/default-skills/pageReview.d.ts +2 -0
  333. package/dist/modules/agent/runtime/server/default-skills/pageReview.js +28 -0
  334. package/dist/modules/agent/runtime/server/default-skills/reusable-paragraphs.d.ts +2 -0
  335. package/dist/modules/agent/runtime/server/default-skills/reusable-paragraphs.js +21 -0
  336. package/dist/modules/agent/runtime/server/default-skills/rewriteAndTranslate.d.ts +2 -0
  337. package/dist/modules/agent/runtime/server/default-skills/rewriteAndTranslate.js +54 -0
  338. package/dist/modules/agent/runtime/server/default-system-prompts/architecture.d.ts +2 -0
  339. package/dist/modules/agent/runtime/server/default-system-prompts/architecture.js +39 -0
  340. package/dist/modules/agent/runtime/server/default-system-prompts/available-skills.d.ts +2 -0
  341. package/dist/modules/agent/runtime/server/default-system-prompts/available-skills.js +18 -0
  342. package/dist/modules/agent/runtime/server/default-system-prompts/available-tools.d.ts +2 -0
  343. package/dist/modules/agent/runtime/server/default-system-prompts/available-tools.js +18 -0
  344. package/dist/modules/agent/runtime/server/default-system-prompts/fragments.d.ts +2 -0
  345. package/dist/modules/agent/runtime/server/default-system-prompts/fragments.js +19 -0
  346. package/dist/modules/agent/runtime/server/default-system-prompts/important-rules.d.ts +2 -0
  347. package/dist/modules/agent/runtime/server/default-system-prompts/important-rules.js +23 -0
  348. package/dist/modules/agent/runtime/server/default-system-prompts/interaction.d.ts +2 -0
  349. package/dist/modules/agent/runtime/server/default-system-prompts/interaction.js +20 -0
  350. package/dist/modules/agent/runtime/server/default-system-prompts/introduction.d.ts +2 -0
  351. package/dist/modules/agent/runtime/server/default-system-prompts/introduction.js +15 -0
  352. package/dist/modules/agent/runtime/server/default-system-prompts/page-context.d.ts +2 -0
  353. package/dist/modules/agent/runtime/server/default-system-prompts/page-context.js +88 -0
  354. package/dist/modules/agent/runtime/server/default-system-prompts/paragraph-bundles.d.ts +2 -0
  355. package/dist/modules/agent/runtime/server/default-system-prompts/paragraph-bundles.js +37 -0
  356. package/dist/modules/agent/runtime/server/default-system-prompts/plan-mode.d.ts +2 -0
  357. package/dist/modules/agent/runtime/server/default-system-prompts/plan-mode.js +36 -0
  358. package/dist/modules/agent/runtime/server/default-system-prompts/security.d.ts +2 -0
  359. package/dist/modules/agent/runtime/server/default-system-prompts/security.js +27 -0
  360. package/dist/modules/agent/runtime/server/default-system-prompts/workflow.d.ts +2 -0
  361. package/dist/modules/agent/runtime/server/default-system-prompts/workflow.js +21 -0
  362. package/dist/modules/agent/runtime/server/fetch.d.ts +2 -0
  363. package/dist/modules/agent/runtime/server/fetch.js +127 -0
  364. package/dist/modules/agent/runtime/server/helpers/agentPrompt.d.ts +30 -0
  365. package/dist/modules/agent/runtime/server/helpers/agentPrompt.js +79 -0
  366. package/dist/modules/agent/runtime/server/helpers/errors.d.ts +10 -0
  367. package/dist/modules/agent/runtime/server/helpers/errors.js +63 -0
  368. package/dist/modules/agent/runtime/server/helpers/messages.d.ts +6 -0
  369. package/dist/modules/agent/runtime/server/helpers/messages.js +70 -0
  370. package/dist/modules/agent/runtime/server/helpers/models.d.ts +20 -0
  371. package/dist/modules/agent/runtime/server/helpers/models.js +15 -0
  372. package/dist/modules/agent/runtime/server/helpers/routing.d.ts +18 -0
  373. package/dist/modules/agent/runtime/server/helpers/routing.js +104 -0
  374. package/dist/modules/agent/runtime/server/helpers/security.d.ts +22 -0
  375. package/dist/modules/agent/runtime/server/helpers/security.js +44 -0
  376. package/dist/modules/agent/runtime/server/helpers/skills.d.ts +14 -0
  377. package/dist/modules/agent/runtime/server/helpers/skills.js +22 -0
  378. package/dist/modules/agent/runtime/server/helpers/socket.d.ts +4 -0
  379. package/dist/modules/agent/runtime/server/helpers/socket.js +3 -0
  380. package/dist/modules/agent/runtime/server/helpers/text.d.ts +5 -0
  381. package/dist/modules/agent/runtime/server/helpers/text.js +3 -0
  382. package/dist/modules/agent/runtime/server/providers/anthropic.d.ts +12 -0
  383. package/dist/modules/agent/runtime/server/providers/anthropic.js +151 -0
  384. package/dist/modules/agent/runtime/server/providers/openai.d.ts +12 -0
  385. package/dist/modules/agent/runtime/server/providers/openai.js +325 -0
  386. package/dist/modules/agent/runtime/server/providers/types.d.ts +81 -0
  387. package/dist/modules/agent/runtime/server/providers/types.js +0 -0
  388. package/dist/modules/agent/runtime/server/route.d.ts +2 -0
  389. package/dist/modules/agent/runtime/server/route.js +40 -0
  390. package/dist/modules/agent/runtime/server/server-tools/complete_plan_step/index.d.ts +3 -0
  391. package/dist/modules/agent/runtime/server/server-tools/complete_plan_step/index.js +94 -0
  392. package/dist/modules/agent/runtime/server/server-tools/create_plan/index.d.ts +9 -0
  393. package/dist/modules/agent/runtime/server/server-tools/create_plan/index.js +86 -0
  394. package/dist/modules/agent/runtime/server/server-tools/index.d.ts +102 -0
  395. package/dist/modules/agent/runtime/server/server-tools/index.js +30 -0
  396. package/dist/modules/agent/runtime/server/server-tools/load_skills/index.d.ts +7 -0
  397. package/dist/modules/agent/runtime/server/server-tools/load_skills/index.js +80 -0
  398. package/dist/modules/agent/runtime/server/server-tools/load_tools/index.d.ts +7 -0
  399. package/dist/modules/agent/runtime/server/server-tools/load_tools/index.js +40 -0
  400. package/dist/modules/agent/runtime/server/skills/defineBlokkliAgentSkill.d.ts +23 -0
  401. package/dist/modules/agent/runtime/server/skills/defineBlokkliAgentSkill.js +3 -0
  402. package/dist/modules/agent/runtime/server/skills/index.d.ts +2 -0
  403. package/dist/modules/agent/runtime/server/skills/index.js +1 -0
  404. package/dist/modules/agent/runtime/server/skills/types.d.ts +59 -0
  405. package/dist/modules/agent/runtime/server/skills/types.js +0 -0
  406. package/dist/modules/agent/runtime/server/stream.d.ts +2 -0
  407. package/dist/modules/agent/runtime/server/stream.js +167 -0
  408. package/dist/modules/agent/runtime/server/system-prompts/defineBlokkliAgentSystemPrompt.d.ts +21 -0
  409. package/dist/modules/agent/runtime/server/system-prompts/defineBlokkliAgentSystemPrompt.js +3 -0
  410. package/dist/modules/agent/runtime/server/system-prompts/helpers.d.ts +20 -0
  411. package/dist/modules/agent/runtime/server/system-prompts/helpers.js +41 -0
  412. package/dist/modules/agent/runtime/server/system-prompts/index.d.ts +2 -0
  413. package/dist/modules/agent/runtime/server/system-prompts/index.js +1 -0
  414. package/dist/modules/agent/runtime/server/system-prompts/types.d.ts +49 -0
  415. package/dist/modules/agent/runtime/server/system-prompts/types.js +0 -0
  416. package/dist/modules/agent/runtime/server/templates/defineStreamTemplate.d.ts +21 -0
  417. package/dist/modules/agent/runtime/server/templates/defineStreamTemplate.js +3 -0
  418. package/dist/modules/agent/runtime/server/templates/definitions/fixReadability.d.ts +26 -0
  419. package/dist/modules/agent/runtime/server/templates/definitions/fixReadability.js +84 -0
  420. package/dist/modules/agent/runtime/server/templates/definitions/generateContent.d.ts +6 -0
  421. package/dist/modules/agent/runtime/server/templates/definitions/generateContent.js +29 -0
  422. package/dist/modules/agent/runtime/server/templates/definitions/rewrite.d.ts +5 -0
  423. package/dist/modules/agent/runtime/server/templates/definitions/rewrite.js +14 -0
  424. package/dist/modules/agent/runtime/server/templates/definitions/translate.d.ts +5 -0
  425. package/dist/modules/agent/runtime/server/templates/definitions/translate.js +23 -0
  426. package/dist/modules/agent/runtime/server/templates/index.d.ts +37 -0
  427. package/dist/modules/agent/runtime/server/templates/index.js +25 -0
  428. package/dist/modules/agent/runtime/server/templates/types.d.ts +17 -0
  429. package/dist/modules/agent/runtime/server/templates/types.js +0 -0
  430. package/dist/modules/agent/runtime/server/templates/utils.d.ts +5 -0
  431. package/dist/modules/agent/runtime/server/templates/utils.js +69 -0
  432. package/dist/modules/agent/runtime/shared/placeholders.d.ts +4 -0
  433. package/dist/modules/agent/runtime/shared/placeholders.js +1 -0
  434. package/dist/modules/agent/runtime/shared/toolParams.d.ts +47 -0
  435. package/dist/modules/agent/runtime/shared/toolParams.js +33 -0
  436. package/dist/modules/agent/runtime/shared/toolResult.d.ts +98 -0
  437. package/dist/modules/agent/runtime/shared/toolResult.js +160 -0
  438. package/dist/modules/agent/runtime/shared/types.d.ts +549 -0
  439. package/dist/modules/agent/runtime/shared/types.js +193 -0
  440. package/dist/modules/charts/index.d.mts +21 -0
  441. package/dist/modules/charts/index.mjs +281 -0
  442. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/definition.d.ts +5 -0
  443. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/definition.js +26 -0
  444. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.d.vue.ts +3 -0
  445. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.vue +120 -0
  446. package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.vue.d.ts +3 -0
  447. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/definition.d.ts +6 -0
  448. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/definition.js +40 -0
  449. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.d.vue.ts +3 -0
  450. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.vue +41 -0
  451. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.vue.d.ts +3 -0
  452. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.d.vue.ts +3 -0
  453. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.vue +94 -0
  454. package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.vue.d.ts +3 -0
  455. package/dist/modules/charts/runtime/blokkli/chart-types/area/definition.d.ts +7 -0
  456. package/dist/modules/charts/runtime/blokkli/chart-types/area/definition.js +49 -0
  457. package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.d.vue.ts +3 -0
  458. package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.vue +56 -0
  459. package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.vue.d.ts +3 -0
  460. package/dist/modules/charts/runtime/blokkli/chart-types/area/render.d.vue.ts +3 -0
  461. package/dist/modules/charts/runtime/blokkli/chart-types/area/render.vue +99 -0
  462. package/dist/modules/charts/runtime/blokkli/chart-types/area/render.vue.d.ts +3 -0
  463. package/dist/modules/charts/runtime/blokkli/chart-types/bar/definition.d.ts +8 -0
  464. package/dist/modules/charts/runtime/blokkli/chart-types/bar/definition.js +57 -0
  465. package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.d.vue.ts +3 -0
  466. package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.vue +34 -0
  467. package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.vue.d.ts +3 -0
  468. package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.d.vue.ts +3 -0
  469. package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.vue +107 -0
  470. package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.vue.d.ts +3 -0
  471. package/dist/modules/charts/runtime/blokkli/chart-types/donut/definition.d.ts +7 -0
  472. package/dist/modules/charts/runtime/blokkli/chart-types/donut/definition.js +35 -0
  473. package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.d.vue.ts +3 -0
  474. package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.vue +35 -0
  475. package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.vue.d.ts +3 -0
  476. package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.d.vue.ts +3 -0
  477. package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.vue +87 -0
  478. package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.vue.d.ts +3 -0
  479. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/definition.d.ts +4 -0
  480. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/definition.js +29 -0
  481. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.d.vue.ts +3 -0
  482. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.vue +27 -0
  483. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.vue.d.ts +3 -0
  484. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.d.vue.ts +3 -0
  485. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.vue +113 -0
  486. package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.vue.d.ts +3 -0
  487. package/dist/modules/charts/runtime/blokkli/chart-types/line/definition.d.ts +7 -0
  488. package/dist/modules/charts/runtime/blokkli/chart-types/line/definition.js +49 -0
  489. package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.d.vue.ts +3 -0
  490. package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.vue +59 -0
  491. package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.vue.d.ts +3 -0
  492. package/dist/modules/charts/runtime/blokkli/chart-types/line/render.d.vue.ts +3 -0
  493. package/dist/modules/charts/runtime/blokkli/chart-types/line/render.vue +98 -0
  494. package/dist/modules/charts/runtime/blokkli/chart-types/line/render.vue.d.ts +3 -0
  495. package/dist/modules/charts/runtime/blokkli/chart-types/pie/definition.d.ts +6 -0
  496. package/dist/modules/charts/runtime/blokkli/chart-types/pie/definition.js +29 -0
  497. package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.d.vue.ts +3 -0
  498. package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.vue +20 -0
  499. package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.vue.d.ts +3 -0
  500. package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.d.vue.ts +3 -0
  501. package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.vue +71 -0
  502. package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.vue.d.ts +3 -0
  503. package/dist/modules/charts/runtime/blokkli/chart-types/radar/definition.d.ts +7 -0
  504. package/dist/modules/charts/runtime/blokkli/chart-types/radar/definition.js +45 -0
  505. package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.d.vue.ts +3 -0
  506. package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.vue +60 -0
  507. package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.vue.d.ts +3 -0
  508. package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.d.vue.ts +3 -0
  509. package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.vue +95 -0
  510. package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.vue.d.ts +3 -0
  511. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/definition.d.ts +6 -0
  512. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/definition.js +29 -0
  513. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.d.vue.ts +3 -0
  514. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.vue +32 -0
  515. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.vue.d.ts +3 -0
  516. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.d.vue.ts +3 -0
  517. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.vue +77 -0
  518. package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.vue.d.ts +3 -0
  519. package/dist/modules/charts/runtime/blokkli/skills/charts.d.ts +2 -0
  520. package/dist/modules/charts/runtime/blokkli/skills/charts.js +85 -0
  521. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +148 -0
  522. package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +190 -0
  523. package/dist/modules/charts/runtime/blokkli/tools/create_advanced_chart/index.d.ts +2 -0
  524. package/dist/modules/charts/runtime/blokkli/tools/create_advanced_chart/index.js +88 -0
  525. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.d.ts +2 -0
  526. package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.js +97 -0
  527. package/dist/modules/charts/runtime/blokkli/tools/get_advanced_chart_config/index.d.ts +2 -0
  528. package/dist/modules/charts/runtime/blokkli/tools/get_advanced_chart_config/index.js +65 -0
  529. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.d.ts +2 -0
  530. package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.js +94 -0
  531. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.d.ts +2 -0
  532. package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.js +42 -0
  533. package/dist/modules/charts/runtime/blokkli/tools/update_advanced_chart/index.d.ts +2 -0
  534. package/dist/modules/charts/runtime/blokkli/tools/update_advanced_chart/index.js +73 -0
  535. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.d.ts +2 -0
  536. package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.js +112 -0
  537. package/dist/modules/charts/runtime/chart-types/definition/index.d.ts +7 -0
  538. package/dist/modules/charts/runtime/chart-types/definition/index.js +3 -0
  539. package/dist/modules/charts/runtime/chart-types/definition/options/index.d.ts +43 -0
  540. package/dist/modules/charts/runtime/chart-types/definition/options/index.js +110 -0
  541. package/dist/modules/charts/runtime/chart-types/index.d.ts +21 -0
  542. package/dist/modules/charts/runtime/chart-types/index.js +25 -0
  543. package/dist/modules/charts/runtime/components/ChartRenderer/index.d.vue.ts +21 -0
  544. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +221 -0
  545. package/dist/modules/charts/runtime/components/ChartRenderer/index.vue.d.ts +21 -0
  546. package/dist/modules/charts/runtime/components/index.d.ts +1 -0
  547. package/dist/modules/charts/runtime/components/index.js +1 -0
  548. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.d.vue.ts +11 -0
  549. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue +149 -0
  550. package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue.d.ts +11 -0
  551. package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.d.vue.ts +11 -0
  552. package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.vue +62 -0
  553. package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.vue.d.ts +11 -0
  554. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.d.vue.ts +14 -0
  555. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue +89 -0
  556. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue.d.ts +14 -0
  557. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.d.vue.ts +16 -0
  558. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue +90 -0
  559. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue.d.ts +16 -0
  560. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.d.vue.ts +7 -0
  561. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.vue +55 -0
  562. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.vue.d.ts +7 -0
  563. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.d.vue.ts +11 -0
  564. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.vue +24 -0
  565. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.vue.d.ts +11 -0
  566. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.d.vue.ts +11 -0
  567. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +56 -0
  568. package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue.d.ts +11 -0
  569. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.d.vue.ts +10 -0
  570. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +14 -0
  571. package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue.d.ts +10 -0
  572. package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.d.vue.ts +9 -0
  573. package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.vue +55 -0
  574. package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.vue.d.ts +9 -0
  575. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.d.vue.ts +16 -0
  576. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.vue +88 -0
  577. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.vue.d.ts +16 -0
  578. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.d.vue.ts +13 -0
  579. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.vue +111 -0
  580. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.vue.d.ts +13 -0
  581. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.d.vue.ts +14 -0
  582. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.vue +100 -0
  583. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.vue.d.ts +14 -0
  584. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.d.vue.ts +17 -0
  585. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue +152 -0
  586. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue.d.ts +17 -0
  587. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.d.vue.ts +14 -0
  588. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.vue +340 -0
  589. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.vue.d.ts +14 -0
  590. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.d.ts +69 -0
  591. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.js +368 -0
  592. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.d.vue.ts +8 -0
  593. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue +62 -0
  594. package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue.d.ts +8 -0
  595. package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.d.vue.ts +16 -0
  596. package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.vue +80 -0
  597. package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.vue.d.ts +16 -0
  598. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.d.vue.ts +23 -0
  599. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +235 -0
  600. package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue.d.ts +23 -0
  601. package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.d.vue.ts +13 -0
  602. package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.vue +71 -0
  603. package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.vue.d.ts +13 -0
  604. package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.d.vue.ts +16 -0
  605. package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.vue +57 -0
  606. package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.vue.d.ts +16 -0
  607. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.d.vue.ts +9 -0
  608. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue +73 -0
  609. package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue.d.ts +9 -0
  610. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.d.vue.ts +21 -0
  611. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue +120 -0
  612. package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue.d.ts +21 -0
  613. package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.d.vue.ts +18 -0
  614. package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.vue +65 -0
  615. package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.vue.d.ts +18 -0
  616. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.d.vue.ts +11 -0
  617. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue +51 -0
  618. package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue.d.ts +11 -0
  619. package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.d.vue.ts +13 -0
  620. package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.vue +95 -0
  621. package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.vue.d.ts +13 -0
  622. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow/index.d.vue.ts +16 -0
  623. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow/index.vue +19 -0
  624. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow/index.vue.d.ts +16 -0
  625. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.d.vue.ts +17 -0
  626. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.vue +264 -0
  627. package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.vue.d.ts +17 -0
  628. package/dist/modules/charts/runtime/features/charts/Editor/index.d.vue.ts +13 -0
  629. package/dist/modules/charts/runtime/features/charts/Editor/index.vue +582 -0
  630. package/dist/modules/charts/runtime/features/charts/Editor/index.vue.d.ts +13 -0
  631. package/dist/modules/charts/runtime/features/charts/Editor/useChartDataSourcePreview.d.ts +6 -0
  632. package/dist/modules/charts/runtime/features/charts/Editor/useChartDataSourcePreview.js +17 -0
  633. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +23 -0
  634. package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.js +170 -0
  635. package/dist/modules/charts/runtime/helpers/adapterTypes.d.ts +38 -0
  636. package/dist/modules/charts/runtime/helpers/adapterTypes.js +1 -0
  637. package/dist/modules/charts/runtime/helpers/dateFormat.d.ts +20 -0
  638. package/dist/modules/charts/runtime/helpers/dateFormat.js +121 -0
  639. package/dist/modules/charts/runtime/helpers/echarts.d.ts +6 -0
  640. package/dist/modules/charts/runtime/helpers/echarts.js +5 -0
  641. package/dist/modules/charts/runtime/helpers/index.d.ts +30 -0
  642. package/dist/modules/charts/runtime/helpers/index.js +79 -0
  643. package/dist/modules/charts/runtime/helpers/nextCategoryValue.d.ts +19 -0
  644. package/dist/modules/charts/runtime/helpers/nextCategoryValue.js +160 -0
  645. package/dist/modules/charts/runtime/helpers/numberFormat.d.ts +13 -0
  646. package/dist/modules/charts/runtime/helpers/numberFormat.js +31 -0
  647. package/dist/modules/charts/runtime/helpers/previewInjection.d.ts +14 -0
  648. package/dist/modules/charts/runtime/helpers/previewInjection.js +3 -0
  649. package/dist/modules/charts/runtime/types.d.ts +256 -0
  650. package/dist/modules/charts/runtime/types.js +0 -0
  651. package/dist/modules/iframes/index.d.mts +32 -0
  652. package/dist/modules/iframes/index.mjs +52 -0
  653. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.d.vue.ts +18 -0
  654. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue +61 -0
  655. package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue.d.ts +18 -0
  656. package/dist/modules/iframes/runtime/components/index.d.ts +1 -0
  657. package/dist/modules/iframes/runtime/components/index.js +1 -0
  658. package/dist/modules/iframes/runtime/features/iframes/Editor/index.d.vue.ts +12 -0
  659. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +222 -0
  660. package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue.d.ts +12 -0
  661. package/dist/modules/iframes/runtime/types.d.ts +10 -0
  662. package/dist/modules/iframes/runtime/types.js +0 -0
  663. package/dist/modules/index.d.mts +8 -0
  664. package/dist/modules/index.mjs +10 -0
  665. package/dist/modules/readability/index.d.mts +12 -0
  666. package/dist/modules/readability/index.mjs +17 -0
  667. package/dist/modules/readability/runtime/adapter-extension.d.ts +2 -0
  668. package/dist/modules/readability/runtime/adapter-extension.js +5 -0
  669. package/dist/modules/readability/runtime/analyzers/builtin.d.ts +10 -0
  670. package/dist/modules/readability/runtime/analyzers/builtin.js +340 -0
  671. package/dist/modules/table-of-contents/index.d.mts +12 -0
  672. package/dist/modules/table-of-contents/index.mjs +24 -0
  673. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.d.vue.ts +44 -0
  674. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.vue +43 -0
  675. package/dist/modules/table-of-contents/runtime/components/BlokkliTableOfContents/index.vue.d.ts +44 -0
  676. package/dist/modules/table-of-contents/runtime/types/index.d.ts +4 -0
  677. package/dist/modules/table-of-contents/runtime/types/index.js +0 -0
  678. package/dist/modules/tailwind/index.d.mts +5 -0
  679. package/dist/modules/tailwind/index.mjs +228 -0
  680. package/dist/runtime/components/Blocks/Fragment/index.d.vue.ts +7 -0
  681. package/dist/runtime/components/Blocks/Fragment/index.vue +35 -0
  682. package/dist/runtime/components/Blocks/Fragment/index.vue.d.ts +7 -0
  683. package/dist/runtime/components/Blocks/FromLibrary/index.d.vue.ts +7 -0
  684. package/dist/runtime/components/Blocks/FromLibrary/index.vue +45 -0
  685. package/dist/runtime/components/Blocks/FromLibrary/index.vue.d.ts +7 -0
  686. package/dist/runtime/components/Blocks/NotImplemented/index.d.vue.ts +7 -0
  687. package/dist/runtime/components/Blocks/NotImplemented/index.vue +54 -0
  688. package/dist/runtime/components/Blocks/NotImplemented/index.vue.d.ts +7 -0
  689. package/dist/runtime/components/BlokkliEditable.d.vue.ts +34 -0
  690. package/dist/runtime/components/BlokkliEditable.vue +22 -0
  691. package/dist/runtime/components/BlokkliEditable.vue.d.ts +34 -0
  692. package/dist/runtime/components/BlokkliField.d.vue.ts +102 -0
  693. package/dist/runtime/components/BlokkliField.vue +170 -0
  694. package/dist/runtime/components/BlokkliField.vue.d.ts +102 -0
  695. package/dist/runtime/components/BlokkliItem.d.vue.ts +31 -0
  696. package/dist/runtime/components/BlokkliItem.vue +107 -0
  697. package/dist/runtime/components/BlokkliItem.vue.d.ts +31 -0
  698. package/dist/runtime/components/BlokkliProvider.d.vue.ts +84 -0
  699. package/dist/runtime/components/BlokkliProvider.vue +173 -0
  700. package/dist/runtime/components/BlokkliProvider.vue.d.ts +84 -0
  701. package/dist/runtime/composables/defineBlokkli.d.ts +6 -0
  702. package/dist/runtime/composables/defineBlokkli.js +112 -0
  703. package/dist/runtime/composables/defineBlokkliFeature.d.ts +26 -0
  704. package/dist/runtime/composables/defineBlokkliFeature.js +63 -0
  705. package/dist/runtime/composables/defineBlokkliFragment.d.ts +3 -0
  706. package/dist/runtime/composables/defineBlokkliFragment.js +26 -0
  707. package/dist/runtime/composables/defineBlokkliProvider.d.ts +11 -0
  708. package/dist/runtime/composables/defineBlokkliProvider.js +44 -0
  709. package/dist/runtime/composables/useBlokkli.d.ts +13 -0
  710. package/dist/runtime/composables/useBlokkli.js +14 -0
  711. package/dist/runtime/composables/useBlokkliHelper.d.ts +20 -0
  712. package/dist/runtime/composables/useBlokkliHelper.js +91 -0
  713. package/dist/runtime/composables/useBlokkliRuntimeConfig.d.ts +50 -0
  714. package/dist/runtime/composables/useBlokkliRuntimeConfig.js +34 -0
  715. package/dist/runtime/editor/adapter/index.d.ts +186 -0
  716. package/dist/runtime/editor/adapter/index.js +6 -0
  717. package/dist/runtime/editor/components/Actions/Interactions/Button.d.vue.ts +9 -0
  718. package/dist/runtime/editor/components/Actions/Interactions/Button.vue +19 -0
  719. package/dist/runtime/editor/components/Actions/Interactions/Button.vue.d.ts +9 -0
  720. package/dist/runtime/editor/components/Actions/Interactions/index.d.vue.ts +3 -0
  721. package/dist/runtime/editor/components/Actions/Interactions/index.vue +106 -0
  722. package/dist/runtime/editor/components/Actions/Interactions/index.vue.d.ts +3 -0
  723. package/dist/runtime/editor/components/Actions/ItemDropdown/Item.d.vue.ts +7 -0
  724. package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue +49 -0
  725. package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue.d.ts +7 -0
  726. package/dist/runtime/editor/components/Actions/ItemDropdown/index.d.vue.ts +7 -0
  727. package/dist/runtime/editor/components/Actions/ItemDropdown/index.vue +52 -0
  728. package/dist/runtime/editor/components/Actions/ItemDropdown/index.vue.d.ts +7 -0
  729. package/dist/runtime/editor/components/Actions/ScrollArrow/index.d.vue.ts +13 -0
  730. package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue +52 -0
  731. package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue.d.ts +13 -0
  732. package/dist/runtime/editor/components/Actions/Title/index.d.vue.ts +3 -0
  733. package/dist/runtime/editor/components/Actions/Title/index.vue +296 -0
  734. package/dist/runtime/editor/components/Actions/Title/index.vue.d.ts +3 -0
  735. package/dist/runtime/editor/components/Actions/index.d.vue.ts +3 -0
  736. package/dist/runtime/editor/components/Actions/index.vue +143 -0
  737. package/dist/runtime/editor/components/Actions/index.vue.d.ts +3 -0
  738. package/dist/runtime/editor/components/Actions/useToolbarScroll.d.ts +25 -0
  739. package/dist/runtime/editor/components/Actions/useToolbarScroll.js +125 -0
  740. package/dist/runtime/editor/components/AddListItem/index.d.vue.ts +31 -0
  741. package/dist/runtime/editor/components/AddListItem/index.vue +103 -0
  742. package/dist/runtime/editor/components/AddListItem/index.vue.d.ts +31 -0
  743. package/dist/runtime/editor/components/AnimationCanvas/index.d.vue.ts +3 -0
  744. package/dist/runtime/editor/components/AnimationCanvas/index.vue +534 -0
  745. package/dist/runtime/editor/components/AnimationCanvas/index.vue.d.ts +3 -0
  746. package/dist/runtime/editor/components/AppMenu/Inner.d.vue.ts +7 -0
  747. package/dist/runtime/editor/components/AppMenu/Inner.vue +88 -0
  748. package/dist/runtime/editor/components/AppMenu/Inner.vue.d.ts +7 -0
  749. package/dist/runtime/editor/components/AppMenu/MenuButton.d.vue.ts +24 -0
  750. package/dist/runtime/editor/components/AppMenu/MenuButton.vue +83 -0
  751. package/dist/runtime/editor/components/AppMenu/MenuButton.vue.d.ts +24 -0
  752. package/dist/runtime/editor/components/AppMenu/index.d.vue.ts +3 -0
  753. package/dist/runtime/editor/components/AppMenu/index.vue +25 -0
  754. package/dist/runtime/editor/components/AppMenu/index.vue.d.ts +3 -0
  755. package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +40 -0
  756. package/dist/runtime/editor/components/ArtboardTooltip/index.vue +296 -0
  757. package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +40 -0
  758. package/dist/runtime/editor/components/Avatar/index.d.vue.ts +30 -0
  759. package/dist/runtime/editor/components/Avatar/index.vue +119 -0
  760. package/dist/runtime/editor/components/Avatar/index.vue.d.ts +30 -0
  761. package/dist/runtime/editor/components/Banner/Inner.d.vue.ts +30 -0
  762. package/dist/runtime/editor/components/Banner/Inner.vue +32 -0
  763. package/dist/runtime/editor/components/Banner/Inner.vue.d.ts +30 -0
  764. package/dist/runtime/editor/components/Banner/index.d.vue.ts +21 -0
  765. package/dist/runtime/editor/components/Banner/index.vue +44 -0
  766. package/dist/runtime/editor/components/Banner/index.vue.d.ts +21 -0
  767. package/dist/runtime/editor/components/BetaIndicator/index.d.vue.ts +6 -0
  768. package/dist/runtime/editor/components/BetaIndicator/index.vue +16 -0
  769. package/dist/runtime/editor/components/BetaIndicator/index.vue.d.ts +6 -0
  770. package/dist/runtime/editor/components/BlockPreviewItem/index.d.vue.ts +18 -0
  771. package/dist/runtime/editor/components/BlockPreviewItem/index.vue +133 -0
  772. package/dist/runtime/editor/components/BlockPreviewItem/index.vue.d.ts +18 -0
  773. package/dist/runtime/editor/components/BlockPreviewRenderer/Item.d.vue.ts +13 -0
  774. package/dist/runtime/editor/components/BlockPreviewRenderer/Item.vue +50 -0
  775. package/dist/runtime/editor/components/BlockPreviewRenderer/Item.vue.d.ts +13 -0
  776. package/dist/runtime/editor/components/BlockPreviewRenderer/index.d.vue.ts +11 -0
  777. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +53 -0
  778. package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue.d.ts +11 -0
  779. package/dist/runtime/editor/components/BlockProxy/index.d.vue.ts +11 -0
  780. package/dist/runtime/editor/components/BlockProxy/index.vue +161 -0
  781. package/dist/runtime/editor/components/BlockProxy/index.vue.d.ts +11 -0
  782. package/dist/runtime/editor/components/BlokkliEditableEdit.d.vue.ts +23 -0
  783. package/dist/runtime/editor/components/BlokkliEditableEdit.vue +95 -0
  784. package/dist/runtime/editor/components/BlokkliEditableEdit.vue.d.ts +23 -0
  785. package/dist/runtime/editor/components/BlokkliErrorBoundary.d.vue.ts +27 -0
  786. package/dist/runtime/editor/components/BlokkliErrorBoundary.vue +47 -0
  787. package/dist/runtime/editor/components/BlokkliErrorBoundary.vue.d.ts +27 -0
  788. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.d.vue.ts +16 -0
  789. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +227 -0
  790. package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue.d.ts +16 -0
  791. package/dist/runtime/editor/components/BundleSelector/Group.d.vue.ts +12 -0
  792. package/dist/runtime/editor/components/BundleSelector/Group.vue +28 -0
  793. package/dist/runtime/editor/components/BundleSelector/Group.vue.d.ts +12 -0
  794. package/dist/runtime/editor/components/BundleSelector/index.d.vue.ts +23 -0
  795. package/dist/runtime/editor/components/BundleSelector/index.vue +287 -0
  796. package/dist/runtime/editor/components/BundleSelector/index.vue.d.ts +23 -0
  797. package/dist/runtime/editor/components/BundleSelector/types.d.ts +21 -0
  798. package/dist/runtime/editor/components/BundleSelector/types.js +0 -0
  799. package/dist/runtime/editor/components/Button/index.d.vue.ts +29 -0
  800. package/dist/runtime/editor/components/Button/index.vue +36 -0
  801. package/dist/runtime/editor/components/Button/index.vue.d.ts +29 -0
  802. package/dist/runtime/editor/components/ButtonAction/index.d.vue.ts +13 -0
  803. package/dist/runtime/editor/components/ButtonAction/index.vue +25 -0
  804. package/dist/runtime/editor/components/ButtonAction/index.vue.d.ts +13 -0
  805. package/dist/runtime/editor/components/ColorDropdown/index.d.vue.ts +26 -0
  806. package/dist/runtime/editor/components/ColorDropdown/index.vue +116 -0
  807. package/dist/runtime/editor/components/ColorDropdown/index.vue.d.ts +26 -0
  808. package/dist/runtime/editor/components/Dialog/index.d.vue.ts +60 -0
  809. package/dist/runtime/editor/components/Dialog/index.vue +319 -0
  810. package/dist/runtime/editor/components/Dialog/index.vue.d.ts +60 -0
  811. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +27 -0
  812. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +170 -0
  813. package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +27 -0
  814. package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +31 -0
  815. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +76 -0
  816. package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +31 -0
  817. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +43 -0
  818. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +183 -0
  819. package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +43 -0
  820. package/dist/runtime/editor/components/DiffApproval/index.d.vue.ts +43 -0
  821. package/dist/runtime/editor/components/DiffApproval/index.vue +191 -0
  822. package/dist/runtime/editor/components/DiffApproval/index.vue.d.ts +43 -0
  823. package/dist/runtime/editor/components/DiffApproval/types.d.ts +39 -0
  824. package/dist/runtime/editor/components/DiffApproval/types.js +22 -0
  825. package/dist/runtime/editor/components/DiffViewer/DiffDisplay/index.d.vue.ts +9 -0
  826. package/dist/runtime/editor/components/DiffViewer/DiffDisplay/index.vue +31 -0
  827. package/dist/runtime/editor/components/DiffViewer/DiffDisplay/index.vue.d.ts +9 -0
  828. package/dist/runtime/editor/components/DiffViewer/DiffValue.d.vue.ts +8 -0
  829. package/dist/runtime/editor/components/DiffViewer/DiffValue.vue +19 -0
  830. package/dist/runtime/editor/components/DiffViewer/DiffValue.vue.d.ts +8 -0
  831. package/dist/runtime/editor/components/DiffViewer/State.d.vue.ts +17 -0
  832. package/dist/runtime/editor/components/DiffViewer/State.vue +549 -0
  833. package/dist/runtime/editor/components/DiffViewer/State.vue.d.ts +17 -0
  834. package/dist/runtime/editor/components/DonutChart/index.d.vue.ts +18 -0
  835. package/dist/runtime/editor/components/DonutChart/index.vue +97 -0
  836. package/dist/runtime/editor/components/DonutChart/index.vue.d.ts +18 -0
  837. package/dist/runtime/editor/components/DraggableList.d.vue.ts +31 -0
  838. package/dist/runtime/editor/components/DraggableList.vue +238 -0
  839. package/dist/runtime/editor/components/DraggableList.vue.d.ts +31 -0
  840. package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +29 -0
  841. package/dist/runtime/editor/components/Dropdown/index.vue +214 -0
  842. package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +29 -0
  843. package/dist/runtime/editor/components/DropdownItem/index.d.vue.ts +23 -0
  844. package/dist/runtime/editor/components/DropdownItem/index.vue +60 -0
  845. package/dist/runtime/editor/components/DropdownItem/index.vue.d.ts +23 -0
  846. package/dist/runtime/editor/components/EditIndicator.d.vue.ts +15 -0
  847. package/dist/runtime/editor/components/EditIndicator.vue +220 -0
  848. package/dist/runtime/editor/components/EditIndicator.vue.d.ts +15 -0
  849. package/dist/runtime/editor/components/EditProvider.d.vue.ts +38 -0
  850. package/dist/runtime/editor/components/EditProvider.vue +511 -0
  851. package/dist/runtime/editor/components/EditProvider.vue.d.ts +38 -0
  852. package/dist/runtime/editor/components/FeaturesRenderer/index.d.vue.ts +7 -0
  853. package/dist/runtime/editor/components/FeaturesRenderer/index.vue +77 -0
  854. package/dist/runtime/editor/components/FeaturesRenderer/index.vue.d.ts +7 -0
  855. package/dist/runtime/editor/components/FileDropHandler/index.d.vue.ts +23 -0
  856. package/dist/runtime/editor/components/FileDropHandler/index.vue +112 -0
  857. package/dist/runtime/editor/components/FileDropHandler/index.vue.d.ts +23 -0
  858. package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +36 -0
  859. package/dist/runtime/editor/components/FlexTextarea/index.vue +324 -0
  860. package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +36 -0
  861. package/dist/runtime/editor/components/Form/Checkboxes/index.d.vue.ts +23 -0
  862. package/dist/runtime/editor/components/Form/Checkboxes/index.vue +49 -0
  863. package/dist/runtime/editor/components/Form/Checkboxes/index.vue.d.ts +23 -0
  864. package/dist/runtime/editor/components/Form/Datepicker/index.d.vue.ts +17 -0
  865. package/dist/runtime/editor/components/Form/Datepicker/index.vue +200 -0
  866. package/dist/runtime/editor/components/Form/Datepicker/index.vue.d.ts +17 -0
  867. package/dist/runtime/editor/components/Form/Group/index.d.vue.ts +19 -0
  868. package/dist/runtime/editor/components/Form/Group/index.vue +23 -0
  869. package/dist/runtime/editor/components/Form/Group/index.vue.d.ts +19 -0
  870. package/dist/runtime/editor/components/Form/Item/index.d.vue.ts +13 -0
  871. package/dist/runtime/editor/components/Form/Item/index.vue +5 -0
  872. package/dist/runtime/editor/components/Form/Item/index.vue.d.ts +13 -0
  873. package/dist/runtime/editor/components/Form/Number/index.d.vue.ts +36 -0
  874. package/dist/runtime/editor/components/Form/Number/index.vue +79 -0
  875. package/dist/runtime/editor/components/Form/Number/index.vue.d.ts +36 -0
  876. package/dist/runtime/editor/components/Form/Radio/index.d.vue.ts +23 -0
  877. package/dist/runtime/editor/components/Form/Radio/index.vue +34 -0
  878. package/dist/runtime/editor/components/Form/Radio/index.vue.d.ts +23 -0
  879. package/dist/runtime/editor/components/Form/RadioBox/index.d.vue.ts +33 -0
  880. package/dist/runtime/editor/components/Form/RadioBox/index.vue +40 -0
  881. package/dist/runtime/editor/components/Form/RadioBox/index.vue.d.ts +33 -0
  882. package/dist/runtime/editor/components/Form/RadioTabs/index.d.vue.ts +24 -0
  883. package/dist/runtime/editor/components/Form/RadioTabs/index.vue +92 -0
  884. package/dist/runtime/editor/components/Form/RadioTabs/index.vue.d.ts +24 -0
  885. package/dist/runtime/editor/components/Form/Search/index.d.vue.ts +88 -0
  886. package/dist/runtime/editor/components/Form/Search/index.vue +289 -0
  887. package/dist/runtime/editor/components/Form/Search/index.vue.d.ts +88 -0
  888. package/dist/runtime/editor/components/Form/Search/types.d.ts +19 -0
  889. package/dist/runtime/editor/components/Form/Search/types.js +0 -0
  890. package/dist/runtime/editor/components/Form/Select/index.d.vue.ts +22 -0
  891. package/dist/runtime/editor/components/Form/Select/index.vue +29 -0
  892. package/dist/runtime/editor/components/Form/Select/index.vue.d.ts +22 -0
  893. package/dist/runtime/editor/components/Form/Text/index.d.vue.ts +31 -0
  894. package/dist/runtime/editor/components/Form/Text/index.vue +60 -0
  895. package/dist/runtime/editor/components/Form/Text/index.vue.d.ts +31 -0
  896. package/dist/runtime/editor/components/Form/TextDark/index.d.vue.ts +24 -0
  897. package/dist/runtime/editor/components/Form/TextDark/index.vue +55 -0
  898. package/dist/runtime/editor/components/Form/TextDark/index.vue.d.ts +24 -0
  899. package/dist/runtime/editor/components/Form/Textarea/index.d.vue.ts +24 -0
  900. package/dist/runtime/editor/components/Form/Textarea/index.vue +42 -0
  901. package/dist/runtime/editor/components/Form/Textarea/index.vue.d.ts +24 -0
  902. package/dist/runtime/editor/components/Form/Toggle/index.d.vue.ts +39 -0
  903. package/dist/runtime/editor/components/Form/Toggle/index.vue +87 -0
  904. package/dist/runtime/editor/components/Form/Toggle/index.vue.d.ts +39 -0
  905. package/dist/runtime/editor/components/FormOverlay/Header/index.d.vue.ts +19 -0
  906. package/dist/runtime/editor/components/FormOverlay/Header/index.vue +28 -0
  907. package/dist/runtime/editor/components/FormOverlay/Header/index.vue.d.ts +19 -0
  908. package/dist/runtime/editor/components/FormOverlay/index.d.vue.ts +27 -0
  909. package/dist/runtime/editor/components/FormOverlay/index.vue +112 -0
  910. package/dist/runtime/editor/components/FormOverlay/index.vue.d.ts +27 -0
  911. package/dist/runtime/editor/components/GrowOnly/index.d.vue.ts +10 -0
  912. package/dist/runtime/editor/components/GrowOnly/index.vue +34 -0
  913. package/dist/runtime/editor/components/GrowOnly/index.vue.d.ts +10 -0
  914. package/dist/runtime/editor/components/Highlight/index.d.vue.ts +21 -0
  915. package/dist/runtime/editor/components/Highlight/index.vue +55 -0
  916. package/dist/runtime/editor/components/Highlight/index.vue.d.ts +21 -0
  917. package/dist/runtime/editor/components/Icon/index.d.vue.ts +8 -0
  918. package/dist/runtime/editor/components/Icon/index.vue +45 -0
  919. package/dist/runtime/editor/components/Icon/index.vue.d.ts +8 -0
  920. package/dist/runtime/editor/components/Indicators/index.d.vue.ts +3 -0
  921. package/dist/runtime/editor/components/Indicators/index.vue +221 -0
  922. package/dist/runtime/editor/components/Indicators/index.vue.d.ts +3 -0
  923. package/dist/runtime/editor/components/InfoBox/index.d.vue.ts +26 -0
  924. package/dist/runtime/editor/components/InfoBox/index.vue +33 -0
  925. package/dist/runtime/editor/components/InfoBox/index.vue.d.ts +26 -0
  926. package/dist/runtime/editor/components/InlineActions/Button/index.d.vue.ts +19 -0
  927. package/dist/runtime/editor/components/InlineActions/Button/index.vue +27 -0
  928. package/dist/runtime/editor/components/InlineActions/Button/index.vue.d.ts +19 -0
  929. package/dist/runtime/editor/components/InlineActions/index.d.vue.ts +13 -0
  930. package/dist/runtime/editor/components/InlineActions/index.vue +5 -0
  931. package/dist/runtime/editor/components/InlineActions/index.vue.d.ts +13 -0
  932. package/dist/runtime/editor/components/ItemIcon/index.d.vue.ts +10 -0
  933. package/dist/runtime/editor/components/ItemIcon/index.vue +45 -0
  934. package/dist/runtime/editor/components/ItemIcon/index.vue.d.ts +10 -0
  935. package/dist/runtime/editor/components/ItemIconBox/index.d.vue.ts +18 -0
  936. package/dist/runtime/editor/components/ItemIconBox/index.vue +43 -0
  937. package/dist/runtime/editor/components/ItemIconBox/index.vue.d.ts +18 -0
  938. package/dist/runtime/editor/components/Konami/Game/PixelGrid.d.vue.ts +8 -0
  939. package/dist/runtime/editor/components/Konami/Game/PixelGrid.vue +66 -0
  940. package/dist/runtime/editor/components/Konami/Game/PixelGrid.vue.d.ts +8 -0
  941. package/dist/runtime/editor/components/Konami/Game/blokkli.png +0 -0
  942. package/dist/runtime/editor/components/Konami/Game/charmap.d.ts +2 -0
  943. package/dist/runtime/editor/components/Konami/Game/charmap.js +168 -0
  944. package/dist/runtime/editor/components/Konami/Game/index.d.vue.ts +7 -0
  945. package/dist/runtime/editor/components/Konami/Game/index.vue +862 -0
  946. package/dist/runtime/editor/components/Konami/Game/index.vue.d.ts +7 -0
  947. package/dist/runtime/editor/components/Konami/Game/textRendering.d.ts +8 -0
  948. package/dist/runtime/editor/components/Konami/Game/textRendering.js +138 -0
  949. package/dist/runtime/editor/components/Konami/Game/useIconRendering.d.ts +9 -0
  950. package/dist/runtime/editor/components/Konami/Game/useIconRendering.js +131 -0
  951. package/dist/runtime/editor/components/Konami/index.d.vue.ts +3 -0
  952. package/dist/runtime/editor/components/Konami/index.vue +44 -0
  953. package/dist/runtime/editor/components/Konami/index.vue.d.ts +3 -0
  954. package/dist/runtime/editor/components/Loading/index.d.vue.ts +12 -0
  955. package/dist/runtime/editor/components/Loading/index.vue +27 -0
  956. package/dist/runtime/editor/components/Loading/index.vue.d.ts +12 -0
  957. package/dist/runtime/editor/components/Messages/Item/index.d.vue.ts +12 -0
  958. package/dist/runtime/editor/components/Messages/Item/index.vue +108 -0
  959. package/dist/runtime/editor/components/Messages/Item/index.vue.d.ts +12 -0
  960. package/dist/runtime/editor/components/Messages/index.d.vue.ts +3 -0
  961. package/dist/runtime/editor/components/Messages/index.vue +166 -0
  962. package/dist/runtime/editor/components/Messages/index.vue.d.ts +3 -0
  963. package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +31 -0
  964. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +346 -0
  965. package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +31 -0
  966. package/dist/runtime/editor/components/NotEditStateInfo/index.d.vue.ts +3 -0
  967. package/dist/runtime/editor/components/NotEditStateInfo/index.vue +19 -0
  968. package/dist/runtime/editor/components/NotEditStateInfo/index.vue.d.ts +3 -0
  969. package/dist/runtime/editor/components/Overlay/index.d.vue.ts +3 -0
  970. package/dist/runtime/editor/components/Overlay/index.vue +131 -0
  971. package/dist/runtime/editor/components/Overlay/index.vue.d.ts +3 -0
  972. package/dist/runtime/editor/components/Pagination/index.d.vue.ts +14 -0
  973. package/dist/runtime/editor/components/Pagination/index.vue +54 -0
  974. package/dist/runtime/editor/components/Pagination/index.vue.d.ts +14 -0
  975. package/dist/runtime/editor/components/Panel/Action/index.d.vue.ts +11 -0
  976. package/dist/runtime/editor/components/Panel/Action/index.vue +25 -0
  977. package/dist/runtime/editor/components/Panel/Action/index.vue.d.ts +11 -0
  978. package/dist/runtime/editor/components/Panel/AddButton/index.d.vue.ts +8 -0
  979. package/dist/runtime/editor/components/Panel/AddButton/index.vue +17 -0
  980. package/dist/runtime/editor/components/Panel/AddButton/index.vue.d.ts +8 -0
  981. package/dist/runtime/editor/components/Panel/Details/index.d.vue.ts +25 -0
  982. package/dist/runtime/editor/components/Panel/Details/index.vue +45 -0
  983. package/dist/runtime/editor/components/Panel/Details/index.vue.d.ts +25 -0
  984. package/dist/runtime/editor/components/Panel/Item/index.d.vue.ts +65 -0
  985. package/dist/runtime/editor/components/Panel/Item/index.vue +99 -0
  986. package/dist/runtime/editor/components/Panel/Item/index.vue.d.ts +65 -0
  987. package/dist/runtime/editor/components/Panel/Section/index.d.vue.ts +26 -0
  988. package/dist/runtime/editor/components/Panel/Section/index.vue +94 -0
  989. package/dist/runtime/editor/components/Panel/Section/index.vue.d.ts +26 -0
  990. package/dist/runtime/editor/components/Panel/Sheet/index.d.vue.ts +20 -0
  991. package/dist/runtime/editor/components/Panel/Sheet/index.vue +34 -0
  992. package/dist/runtime/editor/components/Panel/Sheet/index.vue.d.ts +20 -0
  993. package/dist/runtime/editor/components/Panel/Tabs/index.d.vue.ts +28 -0
  994. package/dist/runtime/editor/components/Panel/Tabs/index.vue +25 -0
  995. package/dist/runtime/editor/components/Panel/Tabs/index.vue.d.ts +28 -0
  996. package/dist/runtime/editor/components/Pill/index.d.vue.ts +28 -0
  997. package/dist/runtime/editor/components/Pill/index.vue +37 -0
  998. package/dist/runtime/editor/components/Pill/index.vue.d.ts +28 -0
  999. package/dist/runtime/editor/components/PluginConfigForm/Checkbox/index.d.vue.ts +5 -0
  1000. package/dist/runtime/editor/components/PluginConfigForm/Checkbox/index.vue +17 -0
  1001. package/dist/runtime/editor/components/PluginConfigForm/Checkbox/index.vue.d.ts +5 -0
  1002. package/dist/runtime/editor/components/PluginConfigForm/Options/index.d.vue.ts +5 -0
  1003. package/dist/runtime/editor/components/PluginConfigForm/Options/index.vue +37 -0
  1004. package/dist/runtime/editor/components/PluginConfigForm/Options/index.vue.d.ts +5 -0
  1005. package/dist/runtime/editor/components/PluginConfigForm/Text/index.d.vue.ts +5 -0
  1006. package/dist/runtime/editor/components/PluginConfigForm/Text/index.vue +44 -0
  1007. package/dist/runtime/editor/components/PluginConfigForm/Text/index.vue.d.ts +5 -0
  1008. package/dist/runtime/editor/components/PluginConfigForm/index.d.vue.ts +30 -0
  1009. package/dist/runtime/editor/components/PluginConfigForm/index.vue +86 -0
  1010. package/dist/runtime/editor/components/PluginConfigForm/index.vue.d.ts +30 -0
  1011. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.d.vue.ts +15 -0
  1012. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +297 -0
  1013. package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue.d.ts +15 -0
  1014. package/dist/runtime/editor/components/PluginConfigFormInline/index.d.vue.ts +22 -0
  1015. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +135 -0
  1016. package/dist/runtime/editor/components/PluginConfigFormInline/index.vue.d.ts +22 -0
  1017. package/dist/runtime/editor/components/Popup/index.d.vue.ts +30 -0
  1018. package/dist/runtime/editor/components/Popup/index.vue +164 -0
  1019. package/dist/runtime/editor/components/Popup/index.vue.d.ts +30 -0
  1020. package/dist/runtime/editor/components/PopupHost/index.d.vue.ts +13 -0
  1021. package/dist/runtime/editor/components/PopupHost/index.vue +12 -0
  1022. package/dist/runtime/editor/components/PopupHost/index.vue.d.ts +13 -0
  1023. package/dist/runtime/editor/components/PreviewProvider.d.vue.ts +33 -0
  1024. package/dist/runtime/editor/components/PreviewProvider.vue +205 -0
  1025. package/dist/runtime/editor/components/PreviewProvider.vue.d.ts +33 -0
  1026. package/dist/runtime/editor/components/RelativeTime/index.d.vue.ts +17 -0
  1027. package/dist/runtime/editor/components/RelativeTime/index.vue +73 -0
  1028. package/dist/runtime/editor/components/RelativeTime/index.vue.d.ts +17 -0
  1029. package/dist/runtime/editor/components/Reorder/index.d.vue.ts +53 -0
  1030. package/dist/runtime/editor/components/Reorder/index.vue +123 -0
  1031. package/dist/runtime/editor/components/Reorder/index.vue.d.ts +53 -0
  1032. package/dist/runtime/editor/components/Resizable/index.d.vue.ts +22 -0
  1033. package/dist/runtime/editor/components/Resizable/index.vue +177 -0
  1034. package/dist/runtime/editor/components/Resizable/index.vue.d.ts +22 -0
  1035. package/dist/runtime/editor/components/ResizableEditorView/index.d.vue.ts +26 -0
  1036. package/dist/runtime/editor/components/ResizableEditorView/index.vue +76 -0
  1037. package/dist/runtime/editor/components/ResizableEditorView/index.vue.d.ts +26 -0
  1038. package/dist/runtime/editor/components/RichText/Editor/CleanTaskItem.d.ts +10 -0
  1039. package/dist/runtime/editor/components/RichText/Editor/CleanTaskItem.js +59 -0
  1040. package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.d.vue.ts +19 -0
  1041. package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.vue +67 -0
  1042. package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.vue.d.ts +19 -0
  1043. package/dist/runtime/editor/components/RichText/Editor/Panel/index.d.vue.ts +20 -0
  1044. package/dist/runtime/editor/components/RichText/Editor/Panel/index.vue +35 -0
  1045. package/dist/runtime/editor/components/RichText/Editor/Panel/index.vue.d.ts +20 -0
  1046. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.d.vue.ts +24 -0
  1047. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.vue +44 -0
  1048. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.vue.d.ts +24 -0
  1049. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.d.vue.ts +23 -0
  1050. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.vue +35 -0
  1051. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.vue.d.ts +23 -0
  1052. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.d.vue.ts +30 -0
  1053. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.vue +69 -0
  1054. package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.vue.d.ts +30 -0
  1055. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.d.vue.ts +18 -0
  1056. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.vue +31 -0
  1057. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.vue.d.ts +18 -0
  1058. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.d.vue.ts +3 -0
  1059. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.vue +13 -0
  1060. package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.vue.d.ts +3 -0
  1061. package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.d.vue.ts +13 -0
  1062. package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.vue +7 -0
  1063. package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.vue.d.ts +13 -0
  1064. package/dist/runtime/editor/components/RichText/Editor/index.d.vue.ts +31 -0
  1065. package/dist/runtime/editor/components/RichText/Editor/index.vue +386 -0
  1066. package/dist/runtime/editor/components/RichText/Editor/index.vue.d.ts +31 -0
  1067. package/dist/runtime/editor/components/RichText/Renderer/enrichRichContent.d.ts +12 -0
  1068. package/dist/runtime/editor/components/RichText/Renderer/enrichRichContent.js +42 -0
  1069. package/dist/runtime/editor/components/RichText/Renderer/index.d.vue.ts +23 -0
  1070. package/dist/runtime/editor/components/RichText/Renderer/index.vue +39 -0
  1071. package/dist/runtime/editor/components/RichText/Renderer/index.vue.d.ts +23 -0
  1072. package/dist/runtime/editor/components/ScaleToFit/index.d.vue.ts +16 -0
  1073. package/dist/runtime/editor/components/ScaleToFit/index.vue +96 -0
  1074. package/dist/runtime/editor/components/ScaleToFit/index.vue.d.ts +16 -0
  1075. package/dist/runtime/editor/components/ScheduleDate/index.d.vue.ts +25 -0
  1076. package/dist/runtime/editor/components/ScheduleDate/index.vue +138 -0
  1077. package/dist/runtime/editor/components/ScheduleDate/index.vue.d.ts +25 -0
  1078. package/dist/runtime/editor/components/ScrollBoundary/index.d.vue.ts +19 -0
  1079. package/dist/runtime/editor/components/ScrollBoundary/index.vue +23 -0
  1080. package/dist/runtime/editor/components/ScrollBoundary/index.vue.d.ts +19 -0
  1081. package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +43 -0
  1082. package/dist/runtime/editor/components/SearchOverlay/index.vue +183 -0
  1083. package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +43 -0
  1084. package/dist/runtime/editor/components/ShortcutIndicator/index.d.vue.ts +21 -0
  1085. package/dist/runtime/editor/components/ShortcutIndicator/index.vue +79 -0
  1086. package/dist/runtime/editor/components/ShortcutIndicator/index.vue.d.ts +21 -0
  1087. package/dist/runtime/editor/components/SidebarFloater/index.d.vue.ts +16 -0
  1088. package/dist/runtime/editor/components/SidebarFloater/index.vue +45 -0
  1089. package/dist/runtime/editor/components/SidebarFloater/index.vue.d.ts +16 -0
  1090. package/dist/runtime/editor/components/Sortli/index.d.vue.ts +17 -0
  1091. package/dist/runtime/editor/components/Sortli/index.vue +81 -0
  1092. package/dist/runtime/editor/components/Sortli/index.vue.d.ts +17 -0
  1093. package/dist/runtime/editor/components/StatusIcon/index.d.vue.ts +9 -0
  1094. package/dist/runtime/editor/components/StatusIcon/index.vue +86 -0
  1095. package/dist/runtime/editor/components/StatusIcon/index.vue.d.ts +9 -0
  1096. package/dist/runtime/editor/components/StatusIndicator/index.d.vue.ts +9 -0
  1097. package/dist/runtime/editor/components/StatusIndicator/index.vue +16 -0
  1098. package/dist/runtime/editor/components/StatusIndicator/index.vue.d.ts +9 -0
  1099. package/dist/runtime/editor/components/SystemRequirements/index.d.vue.ts +3 -0
  1100. package/dist/runtime/editor/components/SystemRequirements/index.vue +136 -0
  1101. package/dist/runtime/editor/components/SystemRequirements/index.vue.d.ts +3 -0
  1102. package/dist/runtime/editor/components/Tabs/index.d.vue.ts +31 -0
  1103. package/dist/runtime/editor/components/Tabs/index.vue +34 -0
  1104. package/dist/runtime/editor/components/Tabs/index.vue.d.ts +31 -0
  1105. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.d.vue.ts +3 -0
  1106. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +74 -0
  1107. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue.d.ts +3 -0
  1108. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.d.vue.ts +7 -0
  1109. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue +16 -0
  1110. package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue.d.ts +7 -0
  1111. package/dist/runtime/editor/components/Toolbar/ViewOptions/index.d.vue.ts +3 -0
  1112. package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue +57 -0
  1113. package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue.d.ts +3 -0
  1114. package/dist/runtime/editor/components/Toolbar/index.d.vue.ts +7 -0
  1115. package/dist/runtime/editor/components/Toolbar/index.vue +364 -0
  1116. package/dist/runtime/editor/components/Toolbar/index.vue.d.ts +7 -0
  1117. package/dist/runtime/editor/components/ToolbarDropdown/index.d.vue.ts +21 -0
  1118. package/dist/runtime/editor/components/ToolbarDropdown/index.vue +36 -0
  1119. package/dist/runtime/editor/components/ToolbarDropdown/index.vue.d.ts +21 -0
  1120. package/dist/runtime/editor/components/Tooltip/Context.d.vue.ts +7 -0
  1121. package/dist/runtime/editor/components/Tooltip/Context.vue +15 -0
  1122. package/dist/runtime/editor/components/Tooltip/Context.vue.d.ts +7 -0
  1123. package/dist/runtime/editor/components/Tooltip/Status.d.vue.ts +8 -0
  1124. package/dist/runtime/editor/components/Tooltip/Status.vue +27 -0
  1125. package/dist/runtime/editor/components/Tooltip/Status.vue.d.ts +8 -0
  1126. package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +27 -0
  1127. package/dist/runtime/editor/components/Tooltip/index.vue +53 -0
  1128. package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +27 -0
  1129. package/dist/runtime/editor/components/Transition/Collapse/index.d.vue.ts +13 -0
  1130. package/dist/runtime/editor/components/Transition/Collapse/index.vue +20 -0
  1131. package/dist/runtime/editor/components/Transition/Collapse/index.vue.d.ts +13 -0
  1132. package/dist/runtime/editor/components/Transition/Height.d.vue.ts +37 -0
  1133. package/dist/runtime/editor/components/Transition/Height.vue +96 -0
  1134. package/dist/runtime/editor/components/Transition/Height.vue.d.ts +37 -0
  1135. package/dist/runtime/editor/components/Transition/List/index.d.vue.ts +21 -0
  1136. package/dist/runtime/editor/components/Transition/List/index.vue +31 -0
  1137. package/dist/runtime/editor/components/Transition/List/index.vue.d.ts +21 -0
  1138. package/dist/runtime/editor/components/Transition/index.d.vue.ts +20 -0
  1139. package/dist/runtime/editor/components/Transition/index.vue +43 -0
  1140. package/dist/runtime/editor/components/Transition/index.vue.d.ts +20 -0
  1141. package/dist/runtime/editor/components/ViewportBlockingRect/index.d.vue.ts +19 -0
  1142. package/dist/runtime/editor/components/ViewportBlockingRect/index.vue +60 -0
  1143. package/dist/runtime/editor/components/ViewportBlockingRect/index.vue.d.ts +19 -0
  1144. package/dist/runtime/editor/components/index.d.ts +72 -0
  1145. package/dist/runtime/editor/components/index.js +90 -0
  1146. package/dist/runtime/editor/composables/addElementClasses.d.ts +2 -0
  1147. package/dist/runtime/editor/composables/addElementClasses.js +24 -0
  1148. package/dist/runtime/editor/composables/defineAddAction.d.ts +2 -0
  1149. package/dist/runtime/editor/composables/defineAddAction.js +10 -0
  1150. package/dist/runtime/editor/composables/defineCommands.d.ts +2 -0
  1151. package/dist/runtime/editor/composables/defineCommands.js +10 -0
  1152. package/dist/runtime/editor/composables/defineDropAreas.d.ts +3 -0
  1153. package/dist/runtime/editor/composables/defineDropAreas.js +10 -0
  1154. package/dist/runtime/editor/composables/defineDropHandler.d.ts +3 -0
  1155. package/dist/runtime/editor/composables/defineDropHandler.js +10 -0
  1156. package/dist/runtime/editor/composables/defineEditorComponent.d.ts +126 -0
  1157. package/dist/runtime/editor/composables/defineEditorComponent.js +6 -0
  1158. package/dist/runtime/editor/composables/defineElementStyle.d.ts +2 -0
  1159. package/dist/runtime/editor/composables/defineElementStyle.js +33 -0
  1160. package/dist/runtime/editor/composables/defineHighlight.d.ts +2 -0
  1161. package/dist/runtime/editor/composables/defineHighlight.js +10 -0
  1162. package/dist/runtime/editor/composables/defineItemDropdownAction.d.ts +2 -0
  1163. package/dist/runtime/editor/composables/defineItemDropdownAction.js +10 -0
  1164. package/dist/runtime/editor/composables/defineMenuButton.d.ts +2 -0
  1165. package/dist/runtime/editor/composables/defineMenuButton.js +10 -0
  1166. package/dist/runtime/editor/composables/defineRenderer.d.ts +11 -0
  1167. package/dist/runtime/editor/composables/defineRenderer.js +14 -0
  1168. package/dist/runtime/editor/composables/defineShortcut.d.ts +2 -0
  1169. package/dist/runtime/editor/composables/defineShortcut.js +18 -0
  1170. package/dist/runtime/editor/composables/defineTourItem.d.ts +2 -0
  1171. package/dist/runtime/editor/composables/defineTourItem.js +10 -0
  1172. package/dist/runtime/editor/composables/defineViewOption.d.ts +5 -0
  1173. package/dist/runtime/editor/composables/defineViewOption.js +10 -0
  1174. package/dist/runtime/editor/composables/index.d.ts +30 -0
  1175. package/dist/runtime/editor/composables/index.js +32 -0
  1176. package/dist/runtime/editor/composables/onBlokkliEvent.d.ts +2 -0
  1177. package/dist/runtime/editor/composables/onBlokkliEvent.js +10 -0
  1178. package/dist/runtime/editor/composables/onBroadcastEvent.d.ts +2 -0
  1179. package/dist/runtime/editor/composables/onBroadcastEvent.js +10 -0
  1180. package/dist/runtime/editor/composables/onElementResize.d.ts +3 -0
  1181. package/dist/runtime/editor/composables/onElementResize.js +36 -0
  1182. package/dist/runtime/editor/composables/useAnimationFrame.d.ts +1 -0
  1183. package/dist/runtime/editor/composables/useAnimationFrame.js +14 -0
  1184. package/dist/runtime/editor/composables/useBlockRegistration.d.ts +5 -0
  1185. package/dist/runtime/editor/composables/useBlockRegistration.js +49 -0
  1186. package/dist/runtime/editor/composables/useDebugLogger.d.ts +2 -0
  1187. package/dist/runtime/editor/composables/useDebugLogger.js +5 -0
  1188. package/dist/runtime/editor/composables/useDelayedIntersectionObserver.d.ts +5 -0
  1189. package/dist/runtime/editor/composables/useDelayedIntersectionObserver.js +27 -0
  1190. package/dist/runtime/editor/composables/useDialog.d.ts +3 -0
  1191. package/dist/runtime/editor/composables/useDialog.js +16 -0
  1192. package/dist/runtime/editor/composables/useDismiss.d.ts +30 -0
  1193. package/dist/runtime/editor/composables/useDismiss.js +43 -0
  1194. package/dist/runtime/editor/composables/useEditableFieldOverride.d.ts +26 -0
  1195. package/dist/runtime/editor/composables/useEditableFieldOverride.js +148 -0
  1196. package/dist/runtime/editor/composables/useFocusTrap.d.ts +52 -0
  1197. package/dist/runtime/editor/composables/useFocusTrap.js +59 -0
  1198. package/dist/runtime/editor/composables/useGlobalBlokkliObject.d.ts +30 -0
  1199. package/dist/runtime/editor/composables/useGlobalBlokkliObject.js +42 -0
  1200. package/dist/runtime/editor/composables/useStateBasedCache.d.ts +4 -0
  1201. package/dist/runtime/editor/composables/useStateBasedCache.js +13 -0
  1202. package/dist/runtime/editor/composables/useStickyToolbar.d.ts +25 -0
  1203. package/dist/runtime/editor/composables/useStickyToolbar.js +284 -0
  1204. package/dist/runtime/editor/composables/useTransitionedValue.d.ts +18 -0
  1205. package/dist/runtime/editor/composables/useTransitionedValue.js +57 -0
  1206. package/dist/runtime/editor/css/output.css +1 -0
  1207. package/dist/runtime/editor/events/index.d.ts +338 -0
  1208. package/dist/runtime/editor/events/index.js +6 -0
  1209. package/dist/runtime/editor/features/add-list/Actions/Action.d.vue.ts +15 -0
  1210. package/dist/runtime/editor/features/add-list/Actions/Action.vue +60 -0
  1211. package/dist/runtime/editor/features/add-list/Actions/Action.vue.d.ts +15 -0
  1212. package/dist/runtime/editor/features/add-list/Actions/index.d.vue.ts +16 -0
  1213. package/dist/runtime/editor/features/add-list/Actions/index.vue +64 -0
  1214. package/dist/runtime/editor/features/add-list/Actions/index.vue.d.ts +16 -0
  1215. package/dist/runtime/editor/features/add-list/Blocks/index.d.vue.ts +21 -0
  1216. package/dist/runtime/editor/features/add-list/Blocks/index.vue +312 -0
  1217. package/dist/runtime/editor/features/add-list/Blocks/index.vue.d.ts +21 -0
  1218. package/dist/runtime/editor/features/add-list/Help/Item.d.vue.ts +12 -0
  1219. package/dist/runtime/editor/features/add-list/Help/Item.vue +195 -0
  1220. package/dist/runtime/editor/features/add-list/Help/Item.vue.d.ts +12 -0
  1221. package/dist/runtime/editor/features/add-list/Help/index.d.vue.ts +13 -0
  1222. package/dist/runtime/editor/features/add-list/Help/index.vue +279 -0
  1223. package/dist/runtime/editor/features/add-list/Help/index.vue.d.ts +13 -0
  1224. package/dist/runtime/editor/features/add-list/docs.md +4 -0
  1225. package/dist/runtime/editor/features/add-list/index.d.vue.ts +3 -0
  1226. package/dist/runtime/editor/features/add-list/index.vue +592 -0
  1227. package/dist/runtime/editor/features/add-list/index.vue.d.ts +3 -0
  1228. package/dist/runtime/editor/features/add-list/types.d.ts +24 -0
  1229. package/dist/runtime/editor/features/add-list/types.js +0 -0
  1230. package/dist/runtime/editor/features/analyze/Icon.d.vue.ts +6 -0
  1231. package/dist/runtime/editor/features/analyze/Icon.vue +85 -0
  1232. package/dist/runtime/editor/features/analyze/Icon.vue.d.ts +6 -0
  1233. package/dist/runtime/editor/features/analyze/Ignored/index.d.vue.ts +7 -0
  1234. package/dist/runtime/editor/features/analyze/Ignored/index.vue +19 -0
  1235. package/dist/runtime/editor/features/analyze/Ignored/index.vue.d.ts +7 -0
  1236. package/dist/runtime/editor/features/analyze/Main.d.vue.ts +24 -0
  1237. package/dist/runtime/editor/features/analyze/Main.vue +541 -0
  1238. package/dist/runtime/editor/features/analyze/Main.vue.d.ts +24 -0
  1239. package/dist/runtime/editor/features/analyze/Results/Results.d.vue.ts +7 -0
  1240. package/dist/runtime/editor/features/analyze/Results/Results.vue +78 -0
  1241. package/dist/runtime/editor/features/analyze/Results/Results.vue.d.ts +7 -0
  1242. package/dist/runtime/editor/features/analyze/Results/ResultsItem.d.vue.ts +15 -0
  1243. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +57 -0
  1244. package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue.d.ts +15 -0
  1245. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.d.vue.ts +8 -0
  1246. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +103 -0
  1247. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue.d.ts +8 -0
  1248. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.d.vue.ts +9 -0
  1249. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +170 -0
  1250. package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue.d.ts +9 -0
  1251. package/dist/runtime/editor/features/analyze/Results/Section.d.vue.ts +10 -0
  1252. package/dist/runtime/editor/features/analyze/Results/Section.vue +42 -0
  1253. package/dist/runtime/editor/features/analyze/Results/Section.vue.d.ts +10 -0
  1254. package/dist/runtime/editor/features/analyze/Results/Status.d.vue.ts +9 -0
  1255. package/dist/runtime/editor/features/analyze/Results/Status.vue +24 -0
  1256. package/dist/runtime/editor/features/analyze/Results/Status.vue.d.ts +9 -0
  1257. package/dist/runtime/editor/features/analyze/Summary/index.d.vue.ts +7 -0
  1258. package/dist/runtime/editor/features/analyze/Summary/index.vue +88 -0
  1259. package/dist/runtime/editor/features/analyze/Summary/index.vue.d.ts +7 -0
  1260. package/dist/runtime/editor/features/analyze/analyzers/altText.d.ts +2 -0
  1261. package/dist/runtime/editor/features/analyze/analyzers/altText.js +62 -0
  1262. package/dist/runtime/editor/features/analyze/analyzers/axe.d.ts +12 -0
  1263. package/dist/runtime/editor/features/analyze/analyzers/axe.js +78 -0
  1264. package/dist/runtime/editor/features/analyze/analyzers/defaults/validations.d.ts +10 -0
  1265. package/dist/runtime/editor/features/analyze/analyzers/defaults/validations.js +39 -0
  1266. package/dist/runtime/editor/features/analyze/analyzers/defineAnalyzer.d.ts +4 -0
  1267. package/dist/runtime/editor/features/analyze/analyzers/defineAnalyzer.js +5 -0
  1268. package/dist/runtime/editor/features/analyze/analyzers/headingStructure.d.ts +2 -0
  1269. package/dist/runtime/editor/features/analyze/analyzers/headingStructure.js +144 -0
  1270. package/dist/runtime/editor/features/analyze/analyzers/helpers/Context.d.ts +42 -0
  1271. package/dist/runtime/editor/features/analyze/analyzers/helpers/Context.js +56 -0
  1272. package/dist/runtime/editor/features/analyze/analyzers/helpers/collectTextElements.d.ts +5 -0
  1273. package/dist/runtime/editor/features/analyze/analyzers/helpers/collectTextElements.js +98 -0
  1274. package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.d.ts +7 -0
  1275. package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.js +8 -0
  1276. package/dist/runtime/editor/features/analyze/analyzers/helpers/normalizeArray.d.ts +3 -0
  1277. package/dist/runtime/editor/features/analyze/analyzers/helpers/normalizeArray.js +13 -0
  1278. package/dist/runtime/editor/features/analyze/analyzers/index.d.ts +6 -0
  1279. package/dist/runtime/editor/features/analyze/analyzers/index.js +12 -0
  1280. package/dist/runtime/editor/features/analyze/analyzers/readability.d.ts +2 -0
  1281. package/dist/runtime/editor/features/analyze/analyzers/readability.js +129 -0
  1282. package/dist/runtime/editor/features/analyze/analyzers/types.d.ts +98 -0
  1283. package/dist/runtime/editor/features/analyze/analyzers/types.js +0 -0
  1284. package/dist/runtime/editor/features/analyze/helper.d.ts +5 -0
  1285. package/dist/runtime/editor/features/analyze/helper.js +28 -0
  1286. package/dist/runtime/editor/features/analyze/index.d.vue.ts +3 -0
  1287. package/dist/runtime/editor/features/analyze/index.vue +78 -0
  1288. package/dist/runtime/editor/features/analyze/index.vue.d.ts +3 -0
  1289. package/dist/runtime/editor/features/analyze/readability/adapterTypes.d.ts +9 -0
  1290. package/dist/runtime/editor/features/analyze/readability/adapterTypes.js +0 -0
  1291. package/dist/runtime/editor/features/analyze/readability/chunkHtml.d.ts +15 -0
  1292. package/dist/runtime/editor/features/analyze/readability/chunkHtml.js +97 -0
  1293. package/dist/runtime/editor/features/analyze/readability/types.d.ts +91 -0
  1294. package/dist/runtime/editor/features/analyze/readability/types.js +0 -0
  1295. package/dist/runtime/editor/features/analyze/types.d.ts +21 -0
  1296. package/dist/runtime/editor/features/analyze/types.js +0 -0
  1297. package/dist/runtime/editor/features/anchors/Overlay/index.d.vue.ts +3 -0
  1298. package/dist/runtime/editor/features/anchors/Overlay/index.vue +63 -0
  1299. package/dist/runtime/editor/features/anchors/Overlay/index.vue.d.ts +3 -0
  1300. package/dist/runtime/editor/features/anchors/index.d.vue.ts +3 -0
  1301. package/dist/runtime/editor/features/anchors/index.vue +36 -0
  1302. package/dist/runtime/editor/features/anchors/index.vue.d.ts +3 -0
  1303. package/dist/runtime/editor/features/anchors/types.d.ts +9 -0
  1304. package/dist/runtime/editor/features/anchors/types.js +1 -0
  1305. package/dist/runtime/editor/features/artboard/Overview/index.d.vue.ts +7 -0
  1306. package/dist/runtime/editor/features/artboard/Overview/index.vue +153 -0
  1307. package/dist/runtime/editor/features/artboard/Overview/index.vue.d.ts +7 -0
  1308. package/dist/runtime/editor/features/artboard/Renderer.d.vue.ts +8 -0
  1309. package/dist/runtime/editor/features/artboard/Renderer.vue +454 -0
  1310. package/dist/runtime/editor/features/artboard/Renderer.vue.d.ts +8 -0
  1311. package/dist/runtime/editor/features/artboard/Scrollbar/index.d.vue.ts +8 -0
  1312. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +91 -0
  1313. package/dist/runtime/editor/features/artboard/Scrollbar/index.vue.d.ts +8 -0
  1314. package/dist/runtime/editor/features/artboard/index.d.vue.ts +3 -0
  1315. package/dist/runtime/editor/features/artboard/index.vue +92 -0
  1316. package/dist/runtime/editor/features/artboard/index.vue.d.ts +3 -0
  1317. package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.d.vue.ts +32 -0
  1318. package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue +164 -0
  1319. package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue.d.ts +32 -0
  1320. package/dist/runtime/editor/features/block-scheduler/Dialog/index.d.vue.ts +12 -0
  1321. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +246 -0
  1322. package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue.d.ts +12 -0
  1323. package/dist/runtime/editor/features/block-scheduler/index.d.vue.ts +3 -0
  1324. package/dist/runtime/editor/features/block-scheduler/index.vue +104 -0
  1325. package/dist/runtime/editor/features/block-scheduler/index.vue.d.ts +3 -0
  1326. package/dist/runtime/editor/features/block-scheduler/types.d.ts +25 -0
  1327. package/dist/runtime/editor/features/block-scheduler/types.js +0 -0
  1328. package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.d.vue.ts +11 -0
  1329. package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue +184 -0
  1330. package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue.d.ts +11 -0
  1331. package/dist/runtime/editor/features/block-transfer/index.d.vue.ts +3 -0
  1332. package/dist/runtime/editor/features/block-transfer/index.vue +235 -0
  1333. package/dist/runtime/editor/features/block-transfer/index.vue.d.ts +3 -0
  1334. package/dist/runtime/editor/features/block-transfer/types.d.ts +101 -0
  1335. package/dist/runtime/editor/features/block-transfer/types.js +0 -0
  1336. package/dist/runtime/editor/features/breadcrumbs/Crumb/index.d.vue.ts +31 -0
  1337. package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue +100 -0
  1338. package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue.d.ts +31 -0
  1339. package/dist/runtime/editor/features/breadcrumbs/index.d.vue.ts +3 -0
  1340. package/dist/runtime/editor/features/breadcrumbs/index.vue +220 -0
  1341. package/dist/runtime/editor/features/breadcrumbs/index.vue.d.ts +3 -0
  1342. package/dist/runtime/editor/features/breadcrumbs/types.d.ts +17 -0
  1343. package/dist/runtime/editor/features/breadcrumbs/types.js +0 -0
  1344. package/dist/runtime/editor/features/changelog/Dialog/index.d.vue.ts +7 -0
  1345. package/dist/runtime/editor/features/changelog/Dialog/index.vue +44 -0
  1346. package/dist/runtime/editor/features/changelog/Dialog/index.vue.d.ts +7 -0
  1347. package/dist/runtime/editor/features/changelog/index.d.vue.ts +3 -0
  1348. package/dist/runtime/editor/features/changelog/index.vue +58 -0
  1349. package/dist/runtime/editor/features/changelog/index.vue.d.ts +3 -0
  1350. package/dist/runtime/editor/features/clipboard/DropElement/Video.d.vue.ts +8 -0
  1351. package/dist/runtime/editor/features/clipboard/DropElement/Video.vue +50 -0
  1352. package/dist/runtime/editor/features/clipboard/DropElement/Video.vue.d.ts +8 -0
  1353. package/dist/runtime/editor/features/clipboard/DropElement/helpers.d.ts +1 -0
  1354. package/dist/runtime/editor/features/clipboard/DropElement/helpers.js +14 -0
  1355. package/dist/runtime/editor/features/clipboard/DropElement/index.d.vue.ts +16 -0
  1356. package/dist/runtime/editor/features/clipboard/DropElement/index.vue +234 -0
  1357. package/dist/runtime/editor/features/clipboard/DropElement/index.vue.d.ts +16 -0
  1358. package/dist/runtime/editor/features/clipboard/docs.md +16 -0
  1359. package/dist/runtime/editor/features/clipboard/helpers.d.ts +15 -0
  1360. package/dist/runtime/editor/features/clipboard/helpers.js +62 -0
  1361. package/dist/runtime/editor/features/clipboard/index.d.vue.ts +3 -0
  1362. package/dist/runtime/editor/features/clipboard/index.vue +727 -0
  1363. package/dist/runtime/editor/features/clipboard/index.vue.d.ts +3 -0
  1364. package/dist/runtime/editor/features/clipboard/types.d.ts +126 -0
  1365. package/dist/runtime/editor/features/clipboard/types.js +0 -0
  1366. package/dist/runtime/editor/features/command-palette/Palette/Item/index.d.vue.ts +20 -0
  1367. package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +44 -0
  1368. package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue.d.ts +20 -0
  1369. package/dist/runtime/editor/features/command-palette/Palette/index.d.vue.ts +7 -0
  1370. package/dist/runtime/editor/features/command-palette/Palette/index.vue +136 -0
  1371. package/dist/runtime/editor/features/command-palette/Palette/index.vue.d.ts +7 -0
  1372. package/dist/runtime/editor/features/command-palette/index.d.vue.ts +3 -0
  1373. package/dist/runtime/editor/features/command-palette/index.vue +56 -0
  1374. package/dist/runtime/editor/features/command-palette/index.vue.d.ts +3 -0
  1375. package/dist/runtime/editor/features/command-palette/types.d.ts +11 -0
  1376. package/dist/runtime/editor/features/command-palette/types.js +0 -0
  1377. package/dist/runtime/editor/features/comments/AddForm/index.d.vue.ts +11 -0
  1378. package/dist/runtime/editor/features/comments/AddForm/index.vue +54 -0
  1379. package/dist/runtime/editor/features/comments/AddForm/index.vue.d.ts +11 -0
  1380. package/dist/runtime/editor/features/comments/Comment/Actions/index.d.vue.ts +27 -0
  1381. package/dist/runtime/editor/features/comments/Comment/Actions/index.vue +89 -0
  1382. package/dist/runtime/editor/features/comments/Comment/Actions/index.vue.d.ts +27 -0
  1383. package/dist/runtime/editor/features/comments/Comment/EditForm/index.d.vue.ts +15 -0
  1384. package/dist/runtime/editor/features/comments/Comment/EditForm/index.vue +38 -0
  1385. package/dist/runtime/editor/features/comments/Comment/EditForm/index.vue.d.ts +15 -0
  1386. package/dist/runtime/editor/features/comments/Comment/Meta/index.d.vue.ts +12 -0
  1387. package/dist/runtime/editor/features/comments/Comment/Meta/index.vue +30 -0
  1388. package/dist/runtime/editor/features/comments/Comment/Meta/index.vue.d.ts +12 -0
  1389. package/dist/runtime/editor/features/comments/Comment/index.d.vue.ts +40 -0
  1390. package/dist/runtime/editor/features/comments/Comment/index.vue +150 -0
  1391. package/dist/runtime/editor/features/comments/Comment/index.vue.d.ts +40 -0
  1392. package/dist/runtime/editor/features/comments/CommentInput/index.d.vue.ts +30 -0
  1393. package/dist/runtime/editor/features/comments/CommentInput/index.vue +84 -0
  1394. package/dist/runtime/editor/features/comments/CommentInput/index.vue.d.ts +30 -0
  1395. package/dist/runtime/editor/features/comments/Overlay/Item/index.d.vue.ts +48 -0
  1396. package/dist/runtime/editor/features/comments/Overlay/Item/index.vue +132 -0
  1397. package/dist/runtime/editor/features/comments/Overlay/Item/index.vue.d.ts +48 -0
  1398. package/dist/runtime/editor/features/comments/Overlay/index.d.vue.ts +41 -0
  1399. package/dist/runtime/editor/features/comments/Overlay/index.vue +144 -0
  1400. package/dist/runtime/editor/features/comments/Overlay/index.vue.d.ts +41 -0
  1401. package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.d.vue.ts +9 -0
  1402. package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue +57 -0
  1403. package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue.d.ts +9 -0
  1404. package/dist/runtime/editor/features/comments/Sidebar/index.d.vue.ts +66 -0
  1405. package/dist/runtime/editor/features/comments/Sidebar/index.vue +116 -0
  1406. package/dist/runtime/editor/features/comments/Sidebar/index.vue.d.ts +66 -0
  1407. package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.d.vue.ts +11 -0
  1408. package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue +57 -0
  1409. package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue.d.ts +11 -0
  1410. package/dist/runtime/editor/features/comments/Thread/index.d.vue.ts +60 -0
  1411. package/dist/runtime/editor/features/comments/Thread/index.vue +162 -0
  1412. package/dist/runtime/editor/features/comments/Thread/index.vue.d.ts +60 -0
  1413. package/dist/runtime/editor/features/comments/docs.md +13 -0
  1414. package/dist/runtime/editor/features/comments/index.d.vue.ts +3 -0
  1415. package/dist/runtime/editor/features/comments/index.vue +202 -0
  1416. package/dist/runtime/editor/features/comments/index.vue.d.ts +3 -0
  1417. package/dist/runtime/editor/features/comments/types.d.ts +66 -0
  1418. package/dist/runtime/editor/features/comments/types.js +0 -0
  1419. package/dist/runtime/editor/features/complex-options/index.d.vue.ts +3 -0
  1420. package/dist/runtime/editor/features/complex-options/index.vue +101 -0
  1421. package/dist/runtime/editor/features/complex-options/index.vue.d.ts +3 -0
  1422. package/dist/runtime/editor/features/conversions/index.d.vue.ts +3 -0
  1423. package/dist/runtime/editor/features/conversions/index.vue +84 -0
  1424. package/dist/runtime/editor/features/conversions/index.vue.d.ts +3 -0
  1425. package/dist/runtime/editor/features/conversions/types.d.ts +16 -0
  1426. package/dist/runtime/editor/features/conversions/types.js +0 -0
  1427. package/dist/runtime/editor/features/debug/DebugSection.d.vue.ts +17 -0
  1428. package/dist/runtime/editor/features/debug/DebugSection.vue +24 -0
  1429. package/dist/runtime/editor/features/debug/DebugSection.vue.d.ts +17 -0
  1430. package/dist/runtime/editor/features/debug/Main.d.vue.ts +7 -0
  1431. package/dist/runtime/editor/features/debug/Main.vue +250 -0
  1432. package/dist/runtime/editor/features/debug/Main.vue.d.ts +7 -0
  1433. package/dist/runtime/editor/features/debug/Rects/index.d.vue.ts +3 -0
  1434. package/dist/runtime/editor/features/debug/Rects/index.vue +61 -0
  1435. package/dist/runtime/editor/features/debug/Rects/index.vue.d.ts +3 -0
  1436. package/dist/runtime/editor/features/debug/Section/Features.d.vue.ts +3 -0
  1437. package/dist/runtime/editor/features/debug/Section/Features.vue +31 -0
  1438. package/dist/runtime/editor/features/debug/Section/Features.vue.d.ts +3 -0
  1439. package/dist/runtime/editor/features/debug/Section/Icons.d.vue.ts +3 -0
  1440. package/dist/runtime/editor/features/debug/Section/Icons.vue +17 -0
  1441. package/dist/runtime/editor/features/debug/Section/Icons.vue.d.ts +3 -0
  1442. package/dist/runtime/editor/features/debug/Section/Keyboard.d.vue.ts +3 -0
  1443. package/dist/runtime/editor/features/debug/Section/Keyboard.vue +17 -0
  1444. package/dist/runtime/editor/features/debug/Section/Keyboard.vue.d.ts +3 -0
  1445. package/dist/runtime/editor/features/debug/Section/Logging.d.vue.ts +7 -0
  1446. package/dist/runtime/editor/features/debug/Section/Logging.vue +69 -0
  1447. package/dist/runtime/editor/features/debug/Section/Logging.vue.d.ts +7 -0
  1448. package/dist/runtime/editor/features/debug/Section/Rendering.d.vue.ts +3 -0
  1449. package/dist/runtime/editor/features/debug/Section/Rendering.vue +96 -0
  1450. package/dist/runtime/editor/features/debug/Section/Rendering.vue.d.ts +3 -0
  1451. package/dist/runtime/editor/features/debug/Section/Selection.d.vue.ts +3 -0
  1452. package/dist/runtime/editor/features/debug/Section/Selection.vue +25 -0
  1453. package/dist/runtime/editor/features/debug/Section/Selection.vue.d.ts +3 -0
  1454. package/dist/runtime/editor/features/debug/Viewport/index.d.vue.ts +3 -0
  1455. package/dist/runtime/editor/features/debug/Viewport/index.vue +98 -0
  1456. package/dist/runtime/editor/features/debug/Viewport/index.vue.d.ts +3 -0
  1457. package/dist/runtime/editor/features/debug/docs.md +3 -0
  1458. package/dist/runtime/editor/features/debug/index.d.vue.ts +3 -0
  1459. package/dist/runtime/editor/features/debug/index.vue +35 -0
  1460. package/dist/runtime/editor/features/debug/index.vue.d.ts +3 -0
  1461. package/dist/runtime/editor/features/delete/index.d.vue.ts +3 -0
  1462. package/dist/runtime/editor/features/delete/index.vue +83 -0
  1463. package/dist/runtime/editor/features/delete/index.vue.d.ts +3 -0
  1464. package/dist/runtime/editor/features/delete/types.d.ts +9 -0
  1465. package/dist/runtime/editor/features/delete/types.js +1 -0
  1466. package/dist/runtime/editor/features/dev-mode/index.d.vue.ts +3 -0
  1467. package/dist/runtime/editor/features/dev-mode/index.vue +177 -0
  1468. package/dist/runtime/editor/features/dev-mode/index.vue.d.ts +3 -0
  1469. package/dist/runtime/editor/features/diff/DiffView/index.d.vue.ts +3 -0
  1470. package/dist/runtime/editor/features/diff/DiffView/index.vue +20 -0
  1471. package/dist/runtime/editor/features/diff/DiffView/index.vue.d.ts +3 -0
  1472. package/dist/runtime/editor/features/diff/index.d.vue.ts +3 -0
  1473. package/dist/runtime/editor/features/diff/index.vue +39 -0
  1474. package/dist/runtime/editor/features/diff/index.vue.d.ts +3 -0
  1475. package/dist/runtime/editor/features/dragging-overlay/DragItems/DragItem.d.vue.ts +27 -0
  1476. package/dist/runtime/editor/features/dragging-overlay/DragItems/DragItem.vue +88 -0
  1477. package/dist/runtime/editor/features/dragging-overlay/DragItems/DragItem.vue.d.ts +27 -0
  1478. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.d.vue.ts +31 -0
  1479. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +518 -0
  1480. package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue.d.ts +31 -0
  1481. package/dist/runtime/editor/features/dragging-overlay/Renderer/fragment.glsl +152 -0
  1482. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.d.vue.ts +31 -0
  1483. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +984 -0
  1484. package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue.d.ts +31 -0
  1485. package/dist/runtime/editor/features/dragging-overlay/Renderer/vertex.glsl +183 -0
  1486. package/dist/runtime/editor/features/dragging-overlay/index.d.vue.ts +3 -0
  1487. package/dist/runtime/editor/features/dragging-overlay/index.vue +527 -0
  1488. package/dist/runtime/editor/features/dragging-overlay/index.vue.d.ts +3 -0
  1489. package/dist/runtime/editor/features/dragging-overlay/types.d.ts +28 -0
  1490. package/dist/runtime/editor/features/dragging-overlay/types.js +0 -0
  1491. package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.d.vue.ts +15 -0
  1492. package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +549 -0
  1493. package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue.d.ts +15 -0
  1494. package/dist/runtime/editor/features/droppable-field-edit/index.d.vue.ts +3 -0
  1495. package/dist/runtime/editor/features/droppable-field-edit/index.vue +231 -0
  1496. package/dist/runtime/editor/features/droppable-field-edit/index.vue.d.ts +3 -0
  1497. package/dist/runtime/editor/features/droppable-field-edit/types.d.ts +70 -0
  1498. package/dist/runtime/editor/features/droppable-field-edit/types.js +0 -0
  1499. package/dist/runtime/editor/features/duplicate/index.d.vue.ts +3 -0
  1500. package/dist/runtime/editor/features/duplicate/index.vue +121 -0
  1501. package/dist/runtime/editor/features/duplicate/index.vue.d.ts +3 -0
  1502. package/dist/runtime/editor/features/duplicate/types.d.ts +9 -0
  1503. package/dist/runtime/editor/features/duplicate/types.js +1 -0
  1504. package/dist/runtime/editor/features/edit/index.d.vue.ts +3 -0
  1505. package/dist/runtime/editor/features/edit/index.vue +155 -0
  1506. package/dist/runtime/editor/features/edit/index.vue.d.ts +3 -0
  1507. package/dist/runtime/editor/features/edit/types.d.ts +9 -0
  1508. package/dist/runtime/editor/features/edit/types.js +0 -0
  1509. package/dist/runtime/editor/features/edit-form/Frame/index.d.vue.ts +12 -0
  1510. package/dist/runtime/editor/features/edit-form/Frame/index.vue +87 -0
  1511. package/dist/runtime/editor/features/edit-form/Frame/index.vue.d.ts +12 -0
  1512. package/dist/runtime/editor/features/edit-form/index.d.vue.ts +3 -0
  1513. package/dist/runtime/editor/features/edit-form/index.vue +176 -0
  1514. package/dist/runtime/editor/features/edit-form/index.vue.d.ts +3 -0
  1515. package/dist/runtime/editor/features/editable-field/Overlay/Contenteditable/index.d.vue.ts +13 -0
  1516. package/dist/runtime/editor/features/editable-field/Overlay/Contenteditable/index.vue +35 -0
  1517. package/dist/runtime/editor/features/editable-field/Overlay/Contenteditable/index.vue.d.ts +13 -0
  1518. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.d.vue.ts +28 -0
  1519. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +158 -0
  1520. package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue.d.ts +28 -0
  1521. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.d.vue.ts +20 -0
  1522. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue +70 -0
  1523. package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue.d.ts +20 -0
  1524. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.d.vue.ts +8 -0
  1525. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +209 -0
  1526. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue.d.ts +8 -0
  1527. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.d.vue.ts +7 -0
  1528. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +182 -0
  1529. package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue.d.ts +7 -0
  1530. package/dist/runtime/editor/features/editable-field/Overlay/index.d.vue.ts +17 -0
  1531. package/dist/runtime/editor/features/editable-field/Overlay/index.vue +611 -0
  1532. package/dist/runtime/editor/features/editable-field/Overlay/index.vue.d.ts +17 -0
  1533. package/dist/runtime/editor/features/editable-field/index.d.vue.ts +3 -0
  1534. package/dist/runtime/editor/features/editable-field/index.vue +164 -0
  1535. package/dist/runtime/editor/features/editable-field/index.vue.d.ts +3 -0
  1536. package/dist/runtime/editor/features/editable-field/types.d.ts +64 -0
  1537. package/dist/runtime/editor/features/editable-field/types.js +0 -0
  1538. package/dist/runtime/editor/features/editable-mask/index.d.vue.ts +3 -0
  1539. package/dist/runtime/editor/features/editable-mask/index.vue +49 -0
  1540. package/dist/runtime/editor/features/editable-mask/index.vue.d.ts +3 -0
  1541. package/dist/runtime/editor/features/entity-title/index.d.vue.ts +3 -0
  1542. package/dist/runtime/editor/features/entity-title/index.vue +128 -0
  1543. package/dist/runtime/editor/features/entity-title/index.vue.d.ts +3 -0
  1544. package/dist/runtime/editor/features/exit/index.d.vue.ts +3 -0
  1545. package/dist/runtime/editor/features/exit/index.vue +38 -0
  1546. package/dist/runtime/editor/features/exit/index.vue.d.ts +3 -0
  1547. package/dist/runtime/editor/features/fragments/Dialog/Item/index.d.vue.ts +9 -0
  1548. package/dist/runtime/editor/features/fragments/Dialog/Item/index.vue +34 -0
  1549. package/dist/runtime/editor/features/fragments/Dialog/Item/index.vue.d.ts +9 -0
  1550. package/dist/runtime/editor/features/fragments/Dialog/index.d.vue.ts +13 -0
  1551. package/dist/runtime/editor/features/fragments/Dialog/index.vue +125 -0
  1552. package/dist/runtime/editor/features/fragments/Dialog/index.vue.d.ts +13 -0
  1553. package/dist/runtime/editor/features/fragments/docs.md +101 -0
  1554. package/dist/runtime/editor/features/fragments/index.d.vue.ts +3 -0
  1555. package/dist/runtime/editor/features/fragments/index.vue +84 -0
  1556. package/dist/runtime/editor/features/fragments/index.vue.d.ts +3 -0
  1557. package/dist/runtime/editor/features/fragments/types.d.ts +15 -0
  1558. package/dist/runtime/editor/features/fragments/types.js +0 -0
  1559. package/dist/runtime/editor/features/grid/index.d.vue.ts +3 -0
  1560. package/dist/runtime/editor/features/grid/index.vue +38 -0
  1561. package/dist/runtime/editor/features/grid/index.vue.d.ts +3 -0
  1562. package/dist/runtime/editor/features/grid/types.d.ts +9 -0
  1563. package/dist/runtime/editor/features/grid/types.js +1 -0
  1564. package/dist/runtime/editor/features/help/Dialog/index.d.vue.ts +7 -0
  1565. package/dist/runtime/editor/features/help/Dialog/index.vue +57 -0
  1566. package/dist/runtime/editor/features/help/Dialog/index.vue.d.ts +7 -0
  1567. package/dist/runtime/editor/features/help/Shortcuts/index.d.vue.ts +3 -0
  1568. package/dist/runtime/editor/features/help/Shortcuts/index.vue +119 -0
  1569. package/dist/runtime/editor/features/help/Shortcuts/index.vue.d.ts +3 -0
  1570. package/dist/runtime/editor/features/help/index.d.vue.ts +3 -0
  1571. package/dist/runtime/editor/features/help/index.vue +75 -0
  1572. package/dist/runtime/editor/features/help/index.vue.d.ts +3 -0
  1573. package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +89 -0
  1574. package/dist/runtime/editor/features/highlights/Renderer/index.d.vue.ts +3 -0
  1575. package/dist/runtime/editor/features/highlights/Renderer/index.vue +402 -0
  1576. package/dist/runtime/editor/features/highlights/Renderer/index.vue.d.ts +3 -0
  1577. package/dist/runtime/editor/features/highlights/Renderer/vertex.glsl +87 -0
  1578. package/dist/runtime/editor/features/highlights/index.d.vue.ts +3 -0
  1579. package/dist/runtime/editor/features/highlights/index.vue +20 -0
  1580. package/dist/runtime/editor/features/highlights/index.vue.d.ts +3 -0
  1581. package/dist/runtime/editor/features/history/List/index.d.vue.ts +6 -0
  1582. package/dist/runtime/editor/features/history/List/index.vue +339 -0
  1583. package/dist/runtime/editor/features/history/List/index.vue.d.ts +6 -0
  1584. package/dist/runtime/editor/features/history/index.d.vue.ts +3 -0
  1585. package/dist/runtime/editor/features/history/index.vue +151 -0
  1586. package/dist/runtime/editor/features/history/index.vue.d.ts +3 -0
  1587. package/dist/runtime/editor/features/history/types.d.ts +13 -0
  1588. package/dist/runtime/editor/features/history/types.js +1 -0
  1589. package/dist/runtime/editor/features/hover/Renderer/fragment.glsl +141 -0
  1590. package/dist/runtime/editor/features/hover/Renderer/index.d.vue.ts +3 -0
  1591. package/dist/runtime/editor/features/hover/Renderer/index.vue +541 -0
  1592. package/dist/runtime/editor/features/hover/Renderer/index.vue.d.ts +3 -0
  1593. package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +160 -0
  1594. package/dist/runtime/editor/features/hover/index.d.vue.ts +3 -0
  1595. package/dist/runtime/editor/features/hover/index.vue +28 -0
  1596. package/dist/runtime/editor/features/hover/index.vue.d.ts +3 -0
  1597. package/dist/runtime/editor/features/import-existing/Dialog/Item.d.vue.ts +5 -0
  1598. package/dist/runtime/editor/features/import-existing/Dialog/Item.vue +42 -0
  1599. package/dist/runtime/editor/features/import-existing/Dialog/Item.vue.d.ts +5 -0
  1600. package/dist/runtime/editor/features/import-existing/Dialog/index.d.vue.ts +19 -0
  1601. package/dist/runtime/editor/features/import-existing/Dialog/index.vue +190 -0
  1602. package/dist/runtime/editor/features/import-existing/Dialog/index.vue.d.ts +19 -0
  1603. package/dist/runtime/editor/features/import-existing/index.d.vue.ts +3 -0
  1604. package/dist/runtime/editor/features/import-existing/index.vue +93 -0
  1605. package/dist/runtime/editor/features/import-existing/index.vue.d.ts +3 -0
  1606. package/dist/runtime/editor/features/import-existing/types.d.ts +12 -0
  1607. package/dist/runtime/editor/features/import-existing/types.js +0 -0
  1608. package/dist/runtime/editor/features/library/DialogBrowseLibrary/Item/index.d.vue.ts +10 -0
  1609. package/dist/runtime/editor/features/library/DialogBrowseLibrary/Item/index.vue +21 -0
  1610. package/dist/runtime/editor/features/library/DialogBrowseLibrary/Item/index.vue.d.ts +10 -0
  1611. package/dist/runtime/editor/features/library/DialogBrowseLibrary/index.d.vue.ts +13 -0
  1612. package/dist/runtime/editor/features/library/DialogBrowseLibrary/index.vue +143 -0
  1613. package/dist/runtime/editor/features/library/DialogBrowseLibrary/index.vue.d.ts +13 -0
  1614. package/dist/runtime/editor/features/library/DialogMakeReusable/index.d.vue.ts +13 -0
  1615. package/dist/runtime/editor/features/library/DialogMakeReusable/index.vue +81 -0
  1616. package/dist/runtime/editor/features/library/DialogMakeReusable/index.vue.d.ts +13 -0
  1617. package/dist/runtime/editor/features/library/docs.md +127 -0
  1618. package/dist/runtime/editor/features/library/index.d.vue.ts +3 -0
  1619. package/dist/runtime/editor/features/library/index.vue +279 -0
  1620. package/dist/runtime/editor/features/library/index.vue.d.ts +3 -0
  1621. package/dist/runtime/editor/features/library/types.d.ts +87 -0
  1622. package/dist/runtime/editor/features/library/types.js +0 -0
  1623. package/dist/runtime/editor/features/media-library/Library/Item.d.vue.ts +22 -0
  1624. package/dist/runtime/editor/features/media-library/Library/Item.vue +57 -0
  1625. package/dist/runtime/editor/features/media-library/Library/Item.vue.d.ts +22 -0
  1626. package/dist/runtime/editor/features/media-library/Library/index.d.vue.ts +6 -0
  1627. package/dist/runtime/editor/features/media-library/Library/index.vue +187 -0
  1628. package/dist/runtime/editor/features/media-library/Library/index.vue.d.ts +6 -0
  1629. package/dist/runtime/editor/features/media-library/index.d.vue.ts +3 -0
  1630. package/dist/runtime/editor/features/media-library/index.vue +426 -0
  1631. package/dist/runtime/editor/features/media-library/index.vue.d.ts +3 -0
  1632. package/dist/runtime/editor/features/media-library/types.d.ts +87 -0
  1633. package/dist/runtime/editor/features/media-library/types.js +0 -0
  1634. package/dist/runtime/editor/features/multi-select/Renderer/fragment.glsl +77 -0
  1635. package/dist/runtime/editor/features/multi-select/Renderer/index.d.vue.ts +12 -0
  1636. package/dist/runtime/editor/features/multi-select/Renderer/index.vue +301 -0
  1637. package/dist/runtime/editor/features/multi-select/Renderer/index.vue.d.ts +12 -0
  1638. package/dist/runtime/editor/features/multi-select/Renderer/vertex.glsl +207 -0
  1639. package/dist/runtime/editor/features/multi-select/index.d.vue.ts +3 -0
  1640. package/dist/runtime/editor/features/multi-select/index.vue +71 -0
  1641. package/dist/runtime/editor/features/multi-select/index.vue.d.ts +3 -0
  1642. package/dist/runtime/editor/features/notifications/Item/index.d.vue.ts +4 -0
  1643. package/dist/runtime/editor/features/notifications/Item/index.vue +96 -0
  1644. package/dist/runtime/editor/features/notifications/Item/index.vue.d.ts +4 -0
  1645. package/dist/runtime/editor/features/notifications/List/index.d.vue.ts +11 -0
  1646. package/dist/runtime/editor/features/notifications/List/index.vue +126 -0
  1647. package/dist/runtime/editor/features/notifications/List/index.vue.d.ts +11 -0
  1648. package/dist/runtime/editor/features/notifications/docs.md +12 -0
  1649. package/dist/runtime/editor/features/notifications/index.d.vue.ts +3 -0
  1650. package/dist/runtime/editor/features/notifications/index.vue +123 -0
  1651. package/dist/runtime/editor/features/notifications/index.vue.d.ts +3 -0
  1652. package/dist/runtime/editor/features/notifications/types.d.ts +132 -0
  1653. package/dist/runtime/editor/features/notifications/types.js +20 -0
  1654. package/dist/runtime/editor/features/options/Form/Checkbox/index.d.vue.ts +17 -0
  1655. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +53 -0
  1656. package/dist/runtime/editor/features/options/Form/Checkbox/index.vue.d.ts +17 -0
  1657. package/dist/runtime/editor/features/options/Form/Checkboxes/index.d.vue.ts +25 -0
  1658. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +127 -0
  1659. package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue.d.ts +25 -0
  1660. package/dist/runtime/editor/features/options/Form/Color/index.d.vue.ts +13 -0
  1661. package/dist/runtime/editor/features/options/Form/Color/index.vue +35 -0
  1662. package/dist/runtime/editor/features/options/Form/Color/index.vue.d.ts +13 -0
  1663. package/dist/runtime/editor/features/options/Form/ComplexType/index.d.vue.ts +11 -0
  1664. package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +40 -0
  1665. package/dist/runtime/editor/features/options/Form/ComplexType/index.vue.d.ts +11 -0
  1666. package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.d.vue.ts +21 -0
  1667. package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.vue +38 -0
  1668. package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.vue.d.ts +21 -0
  1669. package/dist/runtime/editor/features/options/Form/Group.d.vue.ts +21 -0
  1670. package/dist/runtime/editor/features/options/Form/Group.vue +25 -0
  1671. package/dist/runtime/editor/features/options/Form/Group.vue.d.ts +21 -0
  1672. package/dist/runtime/editor/features/options/Form/Item.d.vue.ts +15 -0
  1673. package/dist/runtime/editor/features/options/Form/Item.vue +167 -0
  1674. package/dist/runtime/editor/features/options/Form/Item.vue.d.ts +15 -0
  1675. package/dist/runtime/editor/features/options/Form/Number/index.d.vue.ts +19 -0
  1676. package/dist/runtime/editor/features/options/Form/Number/index.vue +126 -0
  1677. package/dist/runtime/editor/features/options/Form/Number/index.vue.d.ts +19 -0
  1678. package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +43 -0
  1679. package/dist/runtime/editor/features/options/Form/Radios/index.vue +146 -0
  1680. package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +43 -0
  1681. package/dist/runtime/editor/features/options/Form/Range/index.d.vue.ts +19 -0
  1682. package/dist/runtime/editor/features/options/Form/Range/index.vue +43 -0
  1683. package/dist/runtime/editor/features/options/Form/Range/index.vue.d.ts +19 -0
  1684. package/dist/runtime/editor/features/options/Form/Text/index.d.vue.ts +18 -0
  1685. package/dist/runtime/editor/features/options/Form/Text/index.vue +34 -0
  1686. package/dist/runtime/editor/features/options/Form/Text/index.vue.d.ts +18 -0
  1687. package/dist/runtime/editor/features/options/Form/index.d.vue.ts +10 -0
  1688. package/dist/runtime/editor/features/options/Form/index.vue +357 -0
  1689. package/dist/runtime/editor/features/options/Form/index.vue.d.ts +10 -0
  1690. package/dist/runtime/editor/features/options/index.d.vue.ts +3 -0
  1691. package/dist/runtime/editor/features/options/index.vue +831 -0
  1692. package/dist/runtime/editor/features/options/index.vue.d.ts +3 -0
  1693. package/dist/runtime/editor/features/options/types.d.ts +21 -0
  1694. package/dist/runtime/editor/features/options/types.js +0 -0
  1695. package/dist/runtime/editor/features/ownership/Banner/index.d.vue.ts +10 -0
  1696. package/dist/runtime/editor/features/ownership/Banner/index.vue +47 -0
  1697. package/dist/runtime/editor/features/ownership/Banner/index.vue.d.ts +10 -0
  1698. package/dist/runtime/editor/features/ownership/index.d.vue.ts +3 -0
  1699. package/dist/runtime/editor/features/ownership/index.vue +44 -0
  1700. package/dist/runtime/editor/features/ownership/index.vue.d.ts +3 -0
  1701. package/dist/runtime/editor/features/ownership/types.d.ts +14 -0
  1702. package/dist/runtime/editor/features/ownership/types.js +1 -0
  1703. package/dist/runtime/editor/features/preview/index.d.vue.ts +3 -0
  1704. package/dist/runtime/editor/features/preview/index.vue +41 -0
  1705. package/dist/runtime/editor/features/preview/index.vue.d.ts +3 -0
  1706. package/dist/runtime/editor/features/preview-grant/QrCode/index.d.vue.ts +6 -0
  1707. package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +38 -0
  1708. package/dist/runtime/editor/features/preview-grant/QrCode/index.vue.d.ts +6 -0
  1709. package/dist/runtime/editor/features/preview-grant/index.d.vue.ts +3 -0
  1710. package/dist/runtime/editor/features/preview-grant/index.vue +78 -0
  1711. package/dist/runtime/editor/features/preview-grant/index.vue.d.ts +3 -0
  1712. package/dist/runtime/editor/features/preview-grant/types.d.ts +11 -0
  1713. package/dist/runtime/editor/features/preview-grant/types.js +1 -0
  1714. package/dist/runtime/editor/features/proxy-view/index.d.vue.ts +3 -0
  1715. package/dist/runtime/editor/features/proxy-view/index.vue +43 -0
  1716. package/dist/runtime/editor/features/proxy-view/index.vue.d.ts +3 -0
  1717. package/dist/runtime/editor/features/publish/Dialog/Item.d.vue.ts +22 -0
  1718. package/dist/runtime/editor/features/publish/Dialog/Item.vue +187 -0
  1719. package/dist/runtime/editor/features/publish/Dialog/Item.vue.d.ts +22 -0
  1720. package/dist/runtime/editor/features/publish/Dialog/PublishOption.d.vue.ts +21 -0
  1721. package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +69 -0
  1722. package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue.d.ts +21 -0
  1723. package/dist/runtime/editor/features/publish/Dialog/Summary.d.vue.ts +10 -0
  1724. package/dist/runtime/editor/features/publish/Dialog/Summary.vue +94 -0
  1725. package/dist/runtime/editor/features/publish/Dialog/Summary.vue.d.ts +10 -0
  1726. package/dist/runtime/editor/features/publish/Dialog/Violations.d.vue.ts +12 -0
  1727. package/dist/runtime/editor/features/publish/Dialog/Violations.vue +117 -0
  1728. package/dist/runtime/editor/features/publish/Dialog/Violations.vue.d.ts +12 -0
  1729. package/dist/runtime/editor/features/publish/Dialog/index.d.vue.ts +9 -0
  1730. package/dist/runtime/editor/features/publish/Dialog/index.vue +627 -0
  1731. package/dist/runtime/editor/features/publish/Dialog/index.vue.d.ts +9 -0
  1732. package/dist/runtime/editor/features/publish/Dialog/types.d.ts +7 -0
  1733. package/dist/runtime/editor/features/publish/Dialog/types.js +0 -0
  1734. package/dist/runtime/editor/features/publish/index.d.vue.ts +3 -0
  1735. package/dist/runtime/editor/features/publish/index.vue +134 -0
  1736. package/dist/runtime/editor/features/publish/index.vue.d.ts +3 -0
  1737. package/dist/runtime/editor/features/publish/types.d.ts +109 -0
  1738. package/dist/runtime/editor/features/publish/types.js +0 -0
  1739. package/dist/runtime/editor/features/referenced-entities/List/Item/index.d.vue.ts +4 -0
  1740. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +81 -0
  1741. package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue.d.ts +4 -0
  1742. package/dist/runtime/editor/features/referenced-entities/List/index.d.vue.ts +11 -0
  1743. package/dist/runtime/editor/features/referenced-entities/List/index.vue +78 -0
  1744. package/dist/runtime/editor/features/referenced-entities/List/index.vue.d.ts +11 -0
  1745. package/dist/runtime/editor/features/referenced-entities/index.d.vue.ts +3 -0
  1746. package/dist/runtime/editor/features/referenced-entities/index.vue +41 -0
  1747. package/dist/runtime/editor/features/referenced-entities/index.vue.d.ts +3 -0
  1748. package/dist/runtime/editor/features/referenced-entities/types.d.ts +13 -0
  1749. package/dist/runtime/editor/features/referenced-entities/types.js +0 -0
  1750. package/dist/runtime/editor/features/responsive-preview/Frame/index.d.vue.ts +17 -0
  1751. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +247 -0
  1752. package/dist/runtime/editor/features/responsive-preview/Frame/index.vue.d.ts +17 -0
  1753. package/dist/runtime/editor/features/responsive-preview/index.d.vue.ts +3 -0
  1754. package/dist/runtime/editor/features/responsive-preview/index.vue +195 -0
  1755. package/dist/runtime/editor/features/responsive-preview/index.vue.d.ts +3 -0
  1756. package/dist/runtime/editor/features/revert/index.d.vue.ts +3 -0
  1757. package/dist/runtime/editor/features/revert/index.vue +68 -0
  1758. package/dist/runtime/editor/features/revert/index.vue.d.ts +3 -0
  1759. package/dist/runtime/editor/features/revert/types.d.ts +9 -0
  1760. package/dist/runtime/editor/features/revert/types.js +1 -0
  1761. package/dist/runtime/editor/features/search/Overlay/Results/Content/index.d.vue.ts +18 -0
  1762. package/dist/runtime/editor/features/search/Overlay/Results/Content/index.vue +163 -0
  1763. package/dist/runtime/editor/features/search/Overlay/Results/Content/index.vue.d.ts +18 -0
  1764. package/dist/runtime/editor/features/search/Overlay/Results/Page/index.d.vue.ts +19 -0
  1765. package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +170 -0
  1766. package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue.d.ts +19 -0
  1767. package/dist/runtime/editor/features/search/Overlay/index.d.vue.ts +14 -0
  1768. package/dist/runtime/editor/features/search/Overlay/index.vue +186 -0
  1769. package/dist/runtime/editor/features/search/Overlay/index.vue.d.ts +14 -0
  1770. package/dist/runtime/editor/features/search/index.d.vue.ts +3 -0
  1771. package/dist/runtime/editor/features/search/index.vue +579 -0
  1772. package/dist/runtime/editor/features/search/index.vue.d.ts +3 -0
  1773. package/dist/runtime/editor/features/search/types.d.ts +88 -0
  1774. package/dist/runtime/editor/features/search/types.js +0 -0
  1775. package/dist/runtime/editor/features/selection/AddButtons/Renderer/fragment.glsl +108 -0
  1776. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.d.vue.ts +39 -0
  1777. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +651 -0
  1778. package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue.d.ts +39 -0
  1779. package/dist/runtime/editor/features/selection/AddButtons/Renderer/vertex.glsl +119 -0
  1780. package/dist/runtime/editor/features/selection/AddButtons/index.d.vue.ts +7 -0
  1781. package/dist/runtime/editor/features/selection/AddButtons/index.vue +494 -0
  1782. package/dist/runtime/editor/features/selection/AddButtons/index.vue.d.ts +7 -0
  1783. package/dist/runtime/editor/features/selection/Renderer/fragment.glsl +147 -0
  1784. package/dist/runtime/editor/features/selection/Renderer/index.d.vue.ts +10 -0
  1785. package/dist/runtime/editor/features/selection/Renderer/index.vue +298 -0
  1786. package/dist/runtime/editor/features/selection/Renderer/index.vue.d.ts +10 -0
  1787. package/dist/runtime/editor/features/selection/Renderer/vertex.glsl +111 -0
  1788. package/dist/runtime/editor/features/selection/index.d.vue.ts +3 -0
  1789. package/dist/runtime/editor/features/selection/index.vue +355 -0
  1790. package/dist/runtime/editor/features/selection/index.vue.d.ts +3 -0
  1791. package/dist/runtime/editor/features/selection/types.d.ts +22 -0
  1792. package/dist/runtime/editor/features/selection/types.js +0 -0
  1793. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.d.vue.ts +10 -0
  1794. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +149 -0
  1795. package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue.d.ts +10 -0
  1796. package/dist/runtime/editor/features/settings/Dialog/index.d.vue.ts +7 -0
  1797. package/dist/runtime/editor/features/settings/Dialog/index.vue +142 -0
  1798. package/dist/runtime/editor/features/settings/Dialog/index.vue.d.ts +7 -0
  1799. package/dist/runtime/editor/features/settings/index.d.vue.ts +3 -0
  1800. package/dist/runtime/editor/features/settings/index.vue +88 -0
  1801. package/dist/runtime/editor/features/settings/index.vue.d.ts +3 -0
  1802. package/dist/runtime/editor/features/structure/List/Field/index.d.vue.ts +16 -0
  1803. package/dist/runtime/editor/features/structure/List/Field/index.vue +145 -0
  1804. package/dist/runtime/editor/features/structure/List/Field/index.vue.d.ts +16 -0
  1805. package/dist/runtime/editor/features/structure/List/Item/index.d.vue.ts +13 -0
  1806. package/dist/runtime/editor/features/structure/List/Item/index.vue +133 -0
  1807. package/dist/runtime/editor/features/structure/List/Item/index.vue.d.ts +13 -0
  1808. package/dist/runtime/editor/features/structure/List/index.d.vue.ts +13 -0
  1809. package/dist/runtime/editor/features/structure/List/index.vue +46 -0
  1810. package/dist/runtime/editor/features/structure/List/index.vue.d.ts +13 -0
  1811. package/dist/runtime/editor/features/structure/index.d.vue.ts +3 -0
  1812. package/dist/runtime/editor/features/structure/index.vue +258 -0
  1813. package/dist/runtime/editor/features/structure/index.vue.d.ts +3 -0
  1814. package/dist/runtime/editor/features/structure/types.d.ts +11 -0
  1815. package/dist/runtime/editor/features/structure/types.js +0 -0
  1816. package/dist/runtime/editor/features/swap/index.d.vue.ts +3 -0
  1817. package/dist/runtime/editor/features/swap/index.vue +57 -0
  1818. package/dist/runtime/editor/features/swap/index.vue.d.ts +3 -0
  1819. package/dist/runtime/editor/features/swap/types.d.ts +9 -0
  1820. package/dist/runtime/editor/features/swap/types.js +1 -0
  1821. package/dist/runtime/editor/features/templates/DialogBrowseTemplates/Item/index.d.vue.ts +11 -0
  1822. package/dist/runtime/editor/features/templates/DialogBrowseTemplates/Item/index.vue +20 -0
  1823. package/dist/runtime/editor/features/templates/DialogBrowseTemplates/Item/index.vue.d.ts +11 -0
  1824. package/dist/runtime/editor/features/templates/DialogBrowseTemplates/index.d.vue.ts +13 -0
  1825. package/dist/runtime/editor/features/templates/DialogBrowseTemplates/index.vue +122 -0
  1826. package/dist/runtime/editor/features/templates/DialogBrowseTemplates/index.vue.d.ts +13 -0
  1827. package/dist/runtime/editor/features/templates/DialogCreateTemplate/index.d.vue.ts +12 -0
  1828. package/dist/runtime/editor/features/templates/DialogCreateTemplate/index.vue +116 -0
  1829. package/dist/runtime/editor/features/templates/DialogCreateTemplate/index.vue.d.ts +12 -0
  1830. package/dist/runtime/editor/features/templates/DialogManageTemplates/Item.d.vue.ts +8 -0
  1831. package/dist/runtime/editor/features/templates/DialogManageTemplates/Item.vue +152 -0
  1832. package/dist/runtime/editor/features/templates/DialogManageTemplates/Item.vue.d.ts +8 -0
  1833. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.d.vue.ts +7 -0
  1834. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue +117 -0
  1835. package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue.d.ts +7 -0
  1836. package/dist/runtime/editor/features/templates/index.d.vue.ts +3 -0
  1837. package/dist/runtime/editor/features/templates/index.vue +176 -0
  1838. package/dist/runtime/editor/features/templates/index.vue.d.ts +3 -0
  1839. package/dist/runtime/editor/features/templates/types.d.ts +66 -0
  1840. package/dist/runtime/editor/features/templates/types.js +0 -0
  1841. package/dist/runtime/editor/features/theme/Color/index.d.vue.ts +8 -0
  1842. package/dist/runtime/editor/features/theme/Color/index.vue +64 -0
  1843. package/dist/runtime/editor/features/theme/Color/index.vue.d.ts +8 -0
  1844. package/dist/runtime/editor/features/theme/GeneratedCode/index.d.vue.ts +3 -0
  1845. package/dist/runtime/editor/features/theme/GeneratedCode/index.vue +21 -0
  1846. package/dist/runtime/editor/features/theme/GeneratedCode/index.vue.d.ts +3 -0
  1847. package/dist/runtime/editor/features/theme/index.d.vue.ts +3 -0
  1848. package/dist/runtime/editor/features/theme/index.vue +186 -0
  1849. package/dist/runtime/editor/features/theme/index.vue.d.ts +3 -0
  1850. package/dist/runtime/editor/features/touch-action-bar/Bar/index.d.vue.ts +13 -0
  1851. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +44 -0
  1852. package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue.d.ts +13 -0
  1853. package/dist/runtime/editor/features/touch-action-bar/index.d.vue.ts +3 -0
  1854. package/dist/runtime/editor/features/touch-action-bar/index.vue +40 -0
  1855. package/dist/runtime/editor/features/touch-action-bar/index.vue.d.ts +3 -0
  1856. package/dist/runtime/editor/features/tour/Overlay/index.d.vue.ts +7 -0
  1857. package/dist/runtime/editor/features/tour/Overlay/index.vue +389 -0
  1858. package/dist/runtime/editor/features/tour/Overlay/index.vue.d.ts +7 -0
  1859. package/dist/runtime/editor/features/tour/docs.md +0 -0
  1860. package/dist/runtime/editor/features/tour/index.d.vue.ts +3 -0
  1861. package/dist/runtime/editor/features/tour/index.vue +58 -0
  1862. package/dist/runtime/editor/features/tour/index.vue.d.ts +3 -0
  1863. package/dist/runtime/editor/features/tour/types.d.ts +6 -0
  1864. package/dist/runtime/editor/features/tour/types.js +0 -0
  1865. package/dist/runtime/editor/features/transform/Dialog/index.d.vue.ts +14 -0
  1866. package/dist/runtime/editor/features/transform/Dialog/index.vue +348 -0
  1867. package/dist/runtime/editor/features/transform/Dialog/index.vue.d.ts +14 -0
  1868. package/dist/runtime/editor/features/transform/docs.md +67 -0
  1869. package/dist/runtime/editor/features/transform/index.d.vue.ts +3 -0
  1870. package/dist/runtime/editor/features/transform/index.vue +250 -0
  1871. package/dist/runtime/editor/features/transform/index.vue.d.ts +3 -0
  1872. package/dist/runtime/editor/features/transform/types.d.ts +107 -0
  1873. package/dist/runtime/editor/features/transform/types.js +0 -0
  1874. package/dist/runtime/editor/features/translations/AutoTranslate/index.d.vue.ts +3 -0
  1875. package/dist/runtime/editor/features/translations/AutoTranslate/index.vue +138 -0
  1876. package/dist/runtime/editor/features/translations/AutoTranslate/index.vue.d.ts +3 -0
  1877. package/dist/runtime/editor/features/translations/Banner/index.d.vue.ts +20 -0
  1878. package/dist/runtime/editor/features/translations/Banner/index.vue +184 -0
  1879. package/dist/runtime/editor/features/translations/Banner/index.vue.d.ts +20 -0
  1880. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.d.vue.ts +3 -0
  1881. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +284 -0
  1882. package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue.d.ts +3 -0
  1883. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.d.vue.ts +10 -0
  1884. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +401 -0
  1885. package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue.d.ts +10 -0
  1886. package/dist/runtime/editor/features/translations/CsvDialog/csv.d.ts +22 -0
  1887. package/dist/runtime/editor/features/translations/CsvDialog/csv.js +50 -0
  1888. package/dist/runtime/editor/features/translations/CsvDialog/index.d.vue.ts +10 -0
  1889. package/dist/runtime/editor/features/translations/CsvDialog/index.vue +36 -0
  1890. package/dist/runtime/editor/features/translations/CsvDialog/index.vue.d.ts +10 -0
  1891. package/dist/runtime/editor/features/translations/CsvDialog/po.d.ts +7 -0
  1892. package/dist/runtime/editor/features/translations/CsvDialog/po.js +36 -0
  1893. package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.d.vue.ts +13 -0
  1894. package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.vue +49 -0
  1895. package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.vue.d.ts +13 -0
  1896. package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.d.vue.ts +12 -0
  1897. package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.vue +48 -0
  1898. package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.vue.d.ts +12 -0
  1899. package/dist/runtime/editor/features/translations/LanguageSwitcher/index.d.vue.ts +7 -0
  1900. package/dist/runtime/editor/features/translations/LanguageSwitcher/index.vue +64 -0
  1901. package/dist/runtime/editor/features/translations/LanguageSwitcher/index.vue.d.ts +7 -0
  1902. package/dist/runtime/editor/features/translations/LanguageSwitcher/types.d.ts +8 -0
  1903. package/dist/runtime/editor/features/translations/LanguageSwitcher/types.js +0 -0
  1904. package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +24 -0
  1905. package/dist/runtime/editor/features/translations/SelectionTable/index.vue +66 -0
  1906. package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +24 -0
  1907. package/dist/runtime/editor/features/translations/TranslateDialog/index.d.vue.ts +7 -0
  1908. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +316 -0
  1909. package/dist/runtime/editor/features/translations/TranslateDialog/index.vue.d.ts +7 -0
  1910. package/dist/runtime/editor/features/translations/index.d.vue.ts +3 -0
  1911. package/dist/runtime/editor/features/translations/index.vue +278 -0
  1912. package/dist/runtime/editor/features/translations/index.vue.d.ts +3 -0
  1913. package/dist/runtime/editor/features/translations/types.d.ts +63 -0
  1914. package/dist/runtime/editor/features/translations/types.js +0 -0
  1915. package/dist/runtime/editor/features/workspace/Overlay/Item.d.vue.ts +3 -0
  1916. package/dist/runtime/editor/features/workspace/Overlay/Item.vue +41 -0
  1917. package/dist/runtime/editor/features/workspace/Overlay/Item.vue.d.ts +3 -0
  1918. package/dist/runtime/editor/features/workspace/Overlay/index.d.vue.ts +7 -0
  1919. package/dist/runtime/editor/features/workspace/Overlay/index.vue +91 -0
  1920. package/dist/runtime/editor/features/workspace/Overlay/index.vue.d.ts +7 -0
  1921. package/dist/runtime/editor/features/workspace/index.d.vue.ts +3 -0
  1922. package/dist/runtime/editor/features/workspace/index.vue +50 -0
  1923. package/dist/runtime/editor/features/workspace/index.vue.d.ts +3 -0
  1924. package/dist/runtime/editor/helpers/array/index.d.ts +1 -0
  1925. package/dist/runtime/editor/helpers/array/index.js +4 -0
  1926. package/dist/runtime/editor/helpers/bundles/index.d.ts +1 -0
  1927. package/dist/runtime/editor/helpers/bundles/index.js +8 -0
  1928. package/dist/runtime/editor/helpers/clipboardData/index.d.ts +11 -0
  1929. package/dist/runtime/editor/helpers/clipboardData/index.js +157 -0
  1930. package/dist/runtime/editor/helpers/color/index.d.ts +13 -0
  1931. package/dist/runtime/editor/helpers/color/index.js +62 -0
  1932. package/dist/runtime/editor/helpers/date/index.d.ts +1 -0
  1933. package/dist/runtime/editor/helpers/date/index.js +3 -0
  1934. package/dist/runtime/editor/helpers/diff/index.d.ts +110 -0
  1935. package/dist/runtime/editor/helpers/diff/index.js +492 -0
  1936. package/dist/runtime/editor/helpers/dom/index.d.ts +75 -0
  1937. package/dist/runtime/editor/helpers/dom/index.js +107 -0
  1938. package/dist/runtime/editor/helpers/dragStyle/index.d.ts +12 -0
  1939. package/dist/runtime/editor/helpers/dragStyle/index.js +93 -0
  1940. package/dist/runtime/editor/helpers/draggable/index.d.ts +3 -0
  1941. package/dist/runtime/editor/helpers/draggable/index.js +9 -0
  1942. package/dist/runtime/editor/helpers/dropTargets/index.d.ts +6 -0
  1943. package/dist/runtime/editor/helpers/dropTargets/index.js +68 -0
  1944. package/dist/runtime/editor/helpers/easing/index.d.ts +3 -0
  1945. package/dist/runtime/editor/helpers/easing/index.js +16 -0
  1946. package/dist/runtime/editor/helpers/edit-components/index.d.ts +2 -0
  1947. package/dist/runtime/editor/helpers/edit-components/index.js +10 -0
  1948. package/dist/runtime/editor/helpers/geometry/index.d.ts +43 -0
  1949. package/dist/runtime/editor/helpers/geometry/index.js +191 -0
  1950. package/dist/runtime/editor/helpers/injections.d.ts +11 -0
  1951. package/dist/runtime/editor/helpers/injections.js +1 -0
  1952. package/dist/runtime/editor/helpers/math/index.d.ts +3 -0
  1953. package/dist/runtime/editor/helpers/math/index.js +10 -0
  1954. package/dist/runtime/editor/helpers/options/index.d.ts +20 -0
  1955. package/dist/runtime/editor/helpers/options/index.js +71 -0
  1956. package/dist/runtime/editor/helpers/string/index.d.ts +8 -0
  1957. package/dist/runtime/editor/helpers/string/index.js +7 -0
  1958. package/dist/runtime/editor/helpers/swap.d.ts +13 -0
  1959. package/dist/runtime/editor/helpers/swap.js +31 -0
  1960. package/dist/runtime/editor/helpers/uuid/index.d.ts +1 -0
  1961. package/dist/runtime/editor/helpers/uuid/index.js +18 -0
  1962. package/dist/runtime/editor/helpers/vue/index.d.ts +1 -0
  1963. package/dist/runtime/editor/helpers/vue/index.js +10 -0
  1964. package/dist/runtime/editor/helpers/webgl/index.d.ts +50 -0
  1965. package/dist/runtime/editor/helpers/webgl/index.js +346 -0
  1966. package/dist/runtime/editor/icons/svg/arrow-right-thin.svg +3 -0
  1967. package/dist/runtime/editor/icons/svg/artboard.svg +1 -0
  1968. package/dist/runtime/editor/icons/svg/dock-window.svg +1 -0
  1969. package/dist/runtime/editor/icons/svg/duplicate.svg +1 -0
  1970. package/dist/runtime/editor/icons/svg/ghost.svg +1 -0
  1971. package/dist/runtime/editor/icons/svg/loader.svg +1 -0
  1972. package/dist/runtime/editor/icons/svg/logo.svg +5 -0
  1973. package/dist/runtime/editor/icons/svg/reusable-detach.svg +7 -0
  1974. package/dist/runtime/editor/icons/svg/reusable.svg +1 -0
  1975. package/dist/runtime/editor/icons/svg/robot.svg +1 -0
  1976. package/dist/runtime/editor/icons/svg/spinner.svg +15 -0
  1977. package/dist/runtime/editor/icons/svg/star.svg +1 -0
  1978. package/dist/runtime/editor/icons/svg/stars.svg +5 -0
  1979. package/dist/runtime/editor/icons/svg/tiktok.svg +1 -0
  1980. package/dist/runtime/editor/icons/svg/unstar.svg +1 -0
  1981. package/dist/runtime/editor/icons/svg/vimeo.svg +3 -0
  1982. package/dist/runtime/editor/icons/svg/window-maximize.svg +1 -0
  1983. package/dist/runtime/editor/icons/svg/window-minimize.svg +1 -0
  1984. package/dist/runtime/editor/icons/svg/youtube.svg +3 -0
  1985. package/dist/runtime/editor/libraries/fzf.d.ts +3 -0
  1986. package/dist/runtime/editor/libraries/fzf.js +7 -0
  1987. package/dist/runtime/editor/libraries/twgl.d.ts +10 -0
  1988. package/dist/runtime/editor/libraries/twgl.js +14 -0
  1989. package/dist/runtime/editor/plugins/BlockIndicator/index.d.vue.ts +65 -0
  1990. package/dist/runtime/editor/plugins/BlockIndicator/index.vue +65 -0
  1991. package/dist/runtime/editor/plugins/BlockIndicator/index.vue.d.ts +65 -0
  1992. package/dist/runtime/editor/plugins/ContextMenu/Menu/index.d.vue.ts +13 -0
  1993. package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +58 -0
  1994. package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue.d.ts +13 -0
  1995. package/dist/runtime/editor/plugins/ContextMenu/index.d.vue.ts +36 -0
  1996. package/dist/runtime/editor/plugins/ContextMenu/index.vue +43 -0
  1997. package/dist/runtime/editor/plugins/ContextMenu/index.vue.d.ts +36 -0
  1998. package/dist/runtime/editor/plugins/DebugOverlay/index.d.vue.ts +23 -0
  1999. package/dist/runtime/editor/plugins/DebugOverlay/index.vue +28 -0
  2000. package/dist/runtime/editor/plugins/DebugOverlay/index.vue.d.ts +23 -0
  2001. package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +111 -0
  2002. package/dist/runtime/editor/plugins/ItemAction/index.vue +130 -0
  2003. package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +111 -0
  2004. package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +47 -0
  2005. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue +303 -0
  2006. package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +47 -0
  2007. package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +243 -0
  2008. package/dist/runtime/editor/plugins/Sidebar/index.vue +748 -0
  2009. package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +243 -0
  2010. package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +100 -0
  2011. package/dist/runtime/editor/plugins/ToolbarButton/index.vue +201 -0
  2012. package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +100 -0
  2013. package/dist/runtime/editor/plugins/TourItem/index.d.vue.ts +41 -0
  2014. package/dist/runtime/editor/plugins/TourItem/index.vue +50 -0
  2015. package/dist/runtime/editor/plugins/TourItem/index.vue.d.ts +41 -0
  2016. package/dist/runtime/editor/plugins/index.d.ts +8 -0
  2017. package/dist/runtime/editor/plugins/index.js +16 -0
  2018. package/dist/runtime/editor/providers/adapters.d.ts +33 -0
  2019. package/dist/runtime/editor/providers/adapters.js +88 -0
  2020. package/dist/runtime/editor/providers/analyze.d.ts +44 -0
  2021. package/dist/runtime/editor/providers/analyze.js +84 -0
  2022. package/dist/runtime/editor/providers/animation.d.ts +203 -0
  2023. package/dist/runtime/editor/providers/animation.js +529 -0
  2024. package/dist/runtime/editor/providers/blocks.d.ts +32 -0
  2025. package/dist/runtime/editor/providers/blocks.js +114 -0
  2026. package/dist/runtime/editor/providers/broadcast.d.ts +15 -0
  2027. package/dist/runtime/editor/providers/broadcast.js +26 -0
  2028. package/dist/runtime/editor/providers/cache.d.ts +23 -0
  2029. package/dist/runtime/editor/providers/cache.js +29 -0
  2030. package/dist/runtime/editor/providers/commands.d.ts +41 -0
  2031. package/dist/runtime/editor/providers/commands.js +16 -0
  2032. package/dist/runtime/editor/providers/config.d.ts +10 -0
  2033. package/dist/runtime/editor/providers/config.js +49 -0
  2034. package/dist/runtime/editor/providers/debug.d.ts +126 -0
  2035. package/dist/runtime/editor/providers/debug.js +132 -0
  2036. package/dist/runtime/editor/providers/definition.d.ts +99 -0
  2037. package/dist/runtime/editor/providers/definition.js +134 -0
  2038. package/dist/runtime/editor/providers/directive.d.ts +160 -0
  2039. package/dist/runtime/editor/providers/directive.js +284 -0
  2040. package/dist/runtime/editor/providers/dom.d.ts +240 -0
  2041. package/dist/runtime/editor/providers/dom.js +540 -0
  2042. package/dist/runtime/editor/providers/dragdrop.d.ts +55 -0
  2043. package/dist/runtime/editor/providers/dragdrop.js +37 -0
  2044. package/dist/runtime/editor/providers/element.d.ts +63 -0
  2045. package/dist/runtime/editor/providers/element.js +35 -0
  2046. package/dist/runtime/editor/providers/features.d.ts +57 -0
  2047. package/dist/runtime/editor/providers/features.js +53 -0
  2048. package/dist/runtime/editor/providers/fieldValue.d.ts +82 -0
  2049. package/dist/runtime/editor/providers/fieldValue.js +150 -0
  2050. package/dist/runtime/editor/providers/fields.d.ts +41 -0
  2051. package/dist/runtime/editor/providers/fields.js +99 -0
  2052. package/dist/runtime/editor/providers/icons.d.ts +6 -0
  2053. package/dist/runtime/editor/providers/icons.js +16 -0
  2054. package/dist/runtime/editor/providers/indicators.d.ts +44 -0
  2055. package/dist/runtime/editor/providers/indicators.js +23 -0
  2056. package/dist/runtime/editor/providers/keyboard.d.ts +77 -0
  2057. package/dist/runtime/editor/providers/keyboard.js +104 -0
  2058. package/dist/runtime/editor/providers/permissions.d.ts +27 -0
  2059. package/dist/runtime/editor/providers/permissions.js +105 -0
  2060. package/dist/runtime/editor/providers/plugin.d.ts +108 -0
  2061. package/dist/runtime/editor/providers/plugin.js +82 -0
  2062. package/dist/runtime/editor/providers/readability.d.ts +47 -0
  2063. package/dist/runtime/editor/providers/readability.js +110 -0
  2064. package/dist/runtime/editor/providers/selection.d.ts +89 -0
  2065. package/dist/runtime/editor/providers/selection.js +168 -0
  2066. package/dist/runtime/editor/providers/state.d.ts +262 -0
  2067. package/dist/runtime/editor/providers/state.js +420 -0
  2068. package/dist/runtime/editor/providers/storage.d.ts +64 -0
  2069. package/dist/runtime/editor/providers/storage.js +133 -0
  2070. package/dist/runtime/editor/providers/texts.d.ts +9 -0
  2071. package/dist/runtime/editor/providers/texts.js +53 -0
  2072. package/dist/runtime/editor/providers/theme.d.ts +119 -0
  2073. package/dist/runtime/editor/providers/theme.js +140 -0
  2074. package/dist/runtime/editor/providers/tour.d.ts +49 -0
  2075. package/dist/runtime/editor/providers/tour.js +19 -0
  2076. package/dist/runtime/editor/providers/types.d.ts +181 -0
  2077. package/dist/runtime/editor/providers/types.js +170 -0
  2078. package/dist/runtime/editor/providers/ui.d.ts +471 -0
  2079. package/dist/runtime/editor/providers/ui.js +506 -0
  2080. package/dist/runtime/editor/providers/user.d.ts +20 -0
  2081. package/dist/runtime/editor/providers/user.js +14 -0
  2082. package/dist/runtime/editor/providers/workspaces.d.ts +93 -0
  2083. package/dist/runtime/editor/providers/workspaces.js +76 -0
  2084. package/dist/runtime/editor/translations/de.json +961 -0
  2085. package/dist/runtime/editor/translations/fr.json +168 -0
  2086. package/dist/runtime/editor/translations/gsw_CH.json +961 -0
  2087. package/dist/runtime/editor/translations/it.json +168 -0
  2088. package/dist/runtime/editor/types/actions.d.ts +19 -0
  2089. package/dist/runtime/editor/types/actions.js +0 -0
  2090. package/dist/runtime/editor/types/app.d.ts +80 -0
  2091. package/dist/runtime/editor/types/app.js +0 -0
  2092. package/dist/runtime/editor/types/clipboard.d.ts +53 -0
  2093. package/dist/runtime/editor/types/clipboard.js +23 -0
  2094. package/dist/runtime/editor/types/definitions.d.ts +33 -0
  2095. package/dist/runtime/editor/types/definitions.js +0 -0
  2096. package/dist/runtime/editor/types/draggable.d.ts +10 -0
  2097. package/dist/runtime/editor/types/draggable.js +0 -0
  2098. package/dist/runtime/editor/types/features.d.ts +11 -0
  2099. package/dist/runtime/editor/types/features.js +0 -0
  2100. package/dist/runtime/editor/types/field.d.ts +60 -0
  2101. package/dist/runtime/editor/types/field.js +0 -0
  2102. package/dist/runtime/editor/types/geometry.d.ts +9 -0
  2103. package/dist/runtime/editor/types/geometry.js +0 -0
  2104. package/dist/runtime/editor/types/index.d.ts +1 -0
  2105. package/dist/runtime/editor/types/index.js +0 -0
  2106. package/dist/runtime/editor/types/permissions.d.ts +18 -0
  2107. package/dist/runtime/editor/types/permissions.js +0 -0
  2108. package/dist/runtime/editor/types/pluginConfig.d.ts +48 -0
  2109. package/dist/runtime/editor/types/pluginConfig.js +0 -0
  2110. package/dist/runtime/editor/types/selection.d.ts +6 -0
  2111. package/dist/runtime/editor/types/selection.js +0 -0
  2112. package/dist/runtime/editor/types/state.d.ts +93 -0
  2113. package/dist/runtime/editor/types/state.js +0 -0
  2114. package/dist/runtime/editor/types/style.d.ts +29 -0
  2115. package/dist/runtime/editor/types/style.js +0 -0
  2116. package/dist/runtime/editor/types/ui.d.ts +47 -0
  2117. package/dist/runtime/editor/types/ui.js +0 -0
  2118. package/dist/runtime/editor/types/user.d.ts +9 -0
  2119. package/dist/runtime/editor/types/user.js +0 -0
  2120. package/dist/runtime/helpers/colors.d.ts +39 -0
  2121. package/dist/runtime/helpers/colors.js +28 -0
  2122. package/dist/runtime/helpers/imports/index.d.ts +9 -0
  2123. package/dist/runtime/helpers/imports/index.js +62 -0
  2124. package/dist/runtime/helpers/index.d.ts +9 -0
  2125. package/dist/runtime/helpers/index.js +9 -0
  2126. package/dist/runtime/helpers/injections.d.ts +142 -0
  2127. package/dist/runtime/helpers/injections.js +78 -0
  2128. package/dist/runtime/helpers/runtimeHelpers/index.d.ts +48 -0
  2129. package/dist/runtime/helpers/runtimeHelpers/index.js +209 -0
  2130. package/dist/runtime/helpers/tw.d.ts +15 -0
  2131. package/dist/runtime/helpers/tw.js +3 -0
  2132. package/dist/runtime/plugins/blokkliDirectives.d.ts +2 -0
  2133. package/dist/runtime/plugins/blokkliDirectives.js +109 -0
  2134. package/dist/runtime/public/_blokkli-assets/Inter.var.woff2 +0 -0
  2135. package/dist/runtime/public/_blokkli-assets/check.svg +6 -0
  2136. package/dist/runtime/public/_blokkli-assets/loader.svg +1 -0
  2137. package/dist/runtime/types/blockOptions.d.ts +4 -0
  2138. package/dist/runtime/types/blockOptions.js +0 -0
  2139. package/dist/runtime/types/colors.d.ts +11 -0
  2140. package/dist/runtime/types/colors.js +0 -0
  2141. package/dist/runtime/types/definitions.d.ts +138 -0
  2142. package/dist/runtime/types/definitions.js +0 -0
  2143. package/dist/runtime/types/directives.d.ts +1 -0
  2144. package/dist/runtime/types/directives.js +0 -0
  2145. package/dist/runtime/types/field.d.ts +27 -0
  2146. package/dist/runtime/types/field.js +0 -0
  2147. package/dist/runtime/types/index.d.ts +15 -0
  2148. package/dist/runtime/types/index.js +1 -0
  2149. package/dist/runtime/types/provider.d.ts +7 -0
  2150. package/dist/runtime/types/provider.js +0 -0
  2151. package/dist/runtime/types/vue.d.ts +1 -0
  2152. package/dist/runtime/types/vue.js +0 -0
  2153. package/dist/shared/editor.6D5vApr0.mjs +30 -0
  2154. package/dist/shared/editor.D28NbXr3.d.mts +664 -0
  2155. package/dist/shared/editor.Gu7mgJ5Q.mjs +320 -0
  2156. package/dist/types.d.mts +9 -0
  2157. package/package.json +298 -0
@@ -0,0 +1,4935 @@
1
+ import { resolveAlias, resolveFiles, createResolver, addComponent, addImports, addTemplate, useLogger, defineNuxtModule, addPlugin, addBuildPlugin, addVitePlugin, updateTemplates } from '@nuxt/kit';
2
+ import path__default, { basename, dirname as dirname$1, resolve as resolve$1, join } from 'node:path';
3
+ import { createUnplugin } from 'unplugin';
4
+ import MagicString from 'magic-string';
5
+ import { walk } from 'estree-walker-ts';
6
+ import { pathToFileURL } from 'node:url';
7
+ import { parseURL, parseQuery } from 'ufo';
8
+ import { C as Collector, a as CollectedFile, c as extractObjectLiteral, p as parseTsObject, t as toValidVariableName, o as onlyUnique, f as falsy, s as sortObjectKeys } from './shared/editor.Gu7mgJ5Q.mjs';
9
+ import { dirname, resolve, relative } from 'pathe';
10
+ import micromatch from 'micromatch';
11
+ import { hash } from 'ohash';
12
+ import fs__default, { readFileSync, existsSync, readdirSync } from 'node:fs';
13
+ import { TRANSLATION_LANGUAGES, BK_VISIBLE_LANGUAGES, BK_HIDDEN_GLOBALLY } from './global/constants';
14
+ import { createRequire } from 'node:module';
15
+ import { d as defineCodeTemplate, a as defineFileTemplate, w as withHelper } from './shared/editor.6D5vApr0.mjs';
16
+ import * as acorn from 'acorn';
17
+ import { defu, createDefu } from 'defu';
18
+ import 'typescript';
19
+ import 'oxc-walker';
20
+
21
+ const name = "@revenexx/editor";
22
+ const version = "0.1.0";
23
+
24
+ function validateOption(optionKey, option, icons) {
25
+ const errors = [];
26
+ switch (option.type) {
27
+ case "radios": {
28
+ const defaultValue = option.default;
29
+ const availableOptions = option.options;
30
+ if (availableOptions && typeof availableOptions === "object" && defaultValue !== void 0) {
31
+ const optionKeys = Object.keys(availableOptions);
32
+ if (!optionKeys.includes(defaultValue)) {
33
+ errors.push({
34
+ message: `Option "${optionKey}" has default value "${defaultValue}" which is not one of the available options: ${optionKeys.map((k) => `"${k}"`).join(", ")}`,
35
+ optionKey
36
+ });
37
+ }
38
+ }
39
+ if (option.displayAs === "icons") {
40
+ const options = Object.entries(option.options);
41
+ for (const [optionsOptionKey, optionsOptionValue] of options) {
42
+ const icon = optionsOptionValue.icon;
43
+ if (!icons.isValidIconName(icon)) {
44
+ errors.push({
45
+ message: `Invalid icon name "${icon}" in option "${optionsOptionKey}" of "${optionKey}".`,
46
+ optionKey
47
+ });
48
+ }
49
+ }
50
+ }
51
+ break;
52
+ }
53
+ case "checkboxes": {
54
+ const defaultValues = option.default;
55
+ const availableOptions = option.options;
56
+ if (Array.isArray(defaultValues) && availableOptions && typeof availableOptions === "object") {
57
+ const optionKeys = Object.keys(availableOptions);
58
+ for (const value of defaultValues) {
59
+ if (!optionKeys.includes(value)) {
60
+ errors.push({
61
+ message: `Option "${optionKey}" has default value "${value}" which is not one of the available options: ${optionKeys.map((k) => `"${k}"`).join(", ")}`,
62
+ optionKey
63
+ });
64
+ }
65
+ }
66
+ }
67
+ break;
68
+ }
69
+ case "number":
70
+ case "range": {
71
+ const defaultValue = option.default;
72
+ const min = option.min;
73
+ const max = option.max;
74
+ if (typeof min === "number" && typeof max === "number" && min > max) {
75
+ errors.push({
76
+ message: `Option "${optionKey}" has minimum value ${min} which is greater than the maximum value ${max}`,
77
+ optionKey
78
+ });
79
+ }
80
+ if (typeof defaultValue === "number") {
81
+ if (typeof min === "number" && defaultValue < min) {
82
+ errors.push({
83
+ message: `Option "${optionKey}" has default value ${defaultValue} which is less than the minimum value ${min}`,
84
+ optionKey
85
+ });
86
+ }
87
+ if (typeof max === "number" && defaultValue > max) {
88
+ errors.push({
89
+ message: `Option "${optionKey}" has default value ${defaultValue} which is greater than the maximum value ${max}`,
90
+ optionKey
91
+ });
92
+ }
93
+ } else if (defaultValue === void 0 && option.type === "number" && !option.nullable) {
94
+ errors.push({
95
+ message: `Option "${optionKey}" of type "number" must declare a default value (or set "nullable: true").`,
96
+ optionKey
97
+ });
98
+ }
99
+ break;
100
+ }
101
+ case "color": {
102
+ const defaultValue = option.default;
103
+ if (typeof defaultValue === "string") {
104
+ const hexColorRegex = /^#[0-9A-F]{6}$/i;
105
+ if (!hexColorRegex.test(defaultValue)) {
106
+ errors.push({
107
+ message: `Option "${optionKey}" has default value "${defaultValue}" which is not a valid hex color (expected format: #RRGGBB)`,
108
+ optionKey
109
+ });
110
+ }
111
+ }
112
+ break;
113
+ }
114
+ case "datetime-local": {
115
+ const defaultValue = option.default;
116
+ const min = option.min;
117
+ const max = option.max;
118
+ if (typeof defaultValue === "string") {
119
+ const defaultDate = new Date(defaultValue);
120
+ if (Number.isNaN(defaultDate.getTime())) {
121
+ errors.push({
122
+ message: `Option "${optionKey}" has default value "${defaultValue}" which is not a valid datetime`,
123
+ optionKey
124
+ });
125
+ } else {
126
+ if (typeof min === "string") {
127
+ const minDate = new Date(min);
128
+ if (!Number.isNaN(minDate.getTime()) && defaultDate < minDate) {
129
+ errors.push({
130
+ message: `Option "${optionKey}" has default value "${defaultValue}" which is before the minimum "${min}"`,
131
+ optionKey
132
+ });
133
+ }
134
+ }
135
+ if (typeof max === "string") {
136
+ const maxDate = new Date(max);
137
+ if (!Number.isNaN(maxDate.getTime()) && defaultDate > maxDate) {
138
+ errors.push({
139
+ message: `Option "${optionKey}" has default value "${defaultValue}" which is after the maximum "${max}"`,
140
+ optionKey
141
+ });
142
+ }
143
+ }
144
+ }
145
+ }
146
+ break;
147
+ }
148
+ }
149
+ return errors;
150
+ }
151
+ function validateOptions(options, icons) {
152
+ if (!options) {
153
+ return [];
154
+ }
155
+ const errors = [];
156
+ for (const [optionKey, option] of Object.entries(options)) {
157
+ if (!option || typeof option !== "object") {
158
+ continue;
159
+ }
160
+ const optionErrors = validateOption(optionKey, option, icons);
161
+ errors.push(...optionErrors);
162
+ }
163
+ return errors;
164
+ }
165
+
166
+ const DEFINE_BLOKKLI = "defineBlokkli";
167
+ const DEFINE_BLOKKLI_FRAGMENT = "defineBlokkliFragment";
168
+ const DEFINE_BLOKKLI_PROVIDER = "defineBlokkliProvider";
169
+ function isEditComponent(filePath) {
170
+ return filePath.endsWith("/diff.vue") || filePath.endsWith("/proxy.vue");
171
+ }
172
+ function isBlock(definition) {
173
+ return "bundle" in definition && !("entityType" in definition);
174
+ }
175
+ function isFragment(definition) {
176
+ return "name" in definition;
177
+ }
178
+ function getVariations(definition) {
179
+ if (!definition) {
180
+ return [];
181
+ }
182
+ if (isBlock(definition)) {
183
+ const bundle = definition.bundle;
184
+ if (!definition.renderFor) {
185
+ return ["block:" + bundle];
186
+ }
187
+ const renderFor = Array.isArray(definition.renderFor) ? definition.renderFor : [definition.renderFor];
188
+ return renderFor.map((v) => {
189
+ if ("parentBundle" in v) {
190
+ return `block:${bundle}__p:${v.parentBundle}`;
191
+ } else if ("fieldList" in v) {
192
+ return `block:${bundle}__f:${v.fieldList}`;
193
+ } else if ("providerType" in v) {
194
+ return `block:${bundle}__t:${v.providerType}`;
195
+ } else {
196
+ return `block:${bundle}__f:${v.fieldListType}`;
197
+ }
198
+ }).sort();
199
+ } else if (isFragment(definition)) {
200
+ return [`fragment:${definition.name}`];
201
+ }
202
+ return [`provider:${definition.entityType}:${definition.bundle}`];
203
+ }
204
+ function getIdentifier(definition) {
205
+ if (isBlock(definition)) {
206
+ return toValidVariableName(
207
+ "b_" + hash(definition.bundle + getVariations(definition).join("__"))
208
+ );
209
+ } else if (isFragment(definition)) {
210
+ return toValidVariableName(
211
+ "f_" + hash(definition.name + getVariations(definition).join("__"))
212
+ );
213
+ }
214
+ return toValidVariableName(
215
+ "p_" + hash(
216
+ definition.entityType + "__" + definition.bundle + getVariations(definition).join("__")
217
+ )
218
+ );
219
+ }
220
+ function validateBlockDefinition(definition, icons) {
221
+ const errors = [];
222
+ if ("options" in definition && definition.options) {
223
+ const optionErrors = validateOptions(
224
+ definition.options,
225
+ icons
226
+ );
227
+ errors.push(...optionErrors);
228
+ }
229
+ if ("renderFor" in definition && definition.renderFor) {
230
+ const renderFor = Array.isArray(definition.renderFor) ? definition.renderFor : [definition.renderFor];
231
+ for (const entry of renderFor) {
232
+ if ("fieldList" in entry) {
233
+ errors.push({
234
+ message: `renderFor uses deprecated "fieldList" property. Use "fieldListType" instead.`,
235
+ severity: "warning"
236
+ });
237
+ }
238
+ }
239
+ }
240
+ return errors;
241
+ }
242
+ class CollectedBlockFile extends CollectedFile {
243
+ folder = "";
244
+ iconPath = null;
245
+ imagePath = null;
246
+ iconContents = null;
247
+ diffComponentPath = null;
248
+ proxyComponentPath = null;
249
+ type = null;
250
+ definition = null;
251
+ definitionSource = null;
252
+ hasBlokkliField = false;
253
+ identifier = "";
254
+ chunkName = "global";
255
+ variations = [];
256
+ objectLiteralString = "";
257
+ validationCache = null;
258
+ hasSiblingFile(providedName, helper) {
259
+ const candidates = Array.isArray(providedName) ? providedName : [providedName];
260
+ for (let i = 0; i < candidates.length; i++) {
261
+ const name = candidates[i];
262
+ const siblingFilePath = path__default.join(this.folder, "/" + name);
263
+ if (helper.fileCache.fileExists(siblingFilePath)) {
264
+ return siblingFilePath;
265
+ }
266
+ }
267
+ return null;
268
+ }
269
+ async handleChange(helper) {
270
+ this.validationCache = null;
271
+ this.folder = dirname(this.filePath);
272
+ const diffComponentPath = this.hasSiblingFile("diff.vue", helper);
273
+ const proxyComponentPath = this.hasSiblingFile("proxy.vue", helper);
274
+ const objectLiteralString = extractObjectLiteral(this.fileContents, [
275
+ DEFINE_BLOKKLI,
276
+ DEFINE_BLOKKLI_FRAGMENT,
277
+ DEFINE_BLOKKLI_PROVIDER
278
+ ]);
279
+ if (objectLiteralString === this.objectLiteralString && diffComponentPath === this.diffComponentPath && proxyComponentPath === this.proxyComponentPath) {
280
+ return false;
281
+ }
282
+ this.objectLiteralString = objectLiteralString || "";
283
+ this.diffComponentPath = diffComponentPath;
284
+ this.proxyComponentPath = proxyComponentPath;
285
+ try {
286
+ if (this.objectLiteralString) {
287
+ const result = parseTsObject(
288
+ this.objectLiteralString
289
+ );
290
+ this.definition = result.object;
291
+ this.definitionSource = result.source;
292
+ if (isBlock(this.definition)) {
293
+ this.definition.bundle = helper.getMappedBlockBundle(
294
+ this.definition.bundle
295
+ );
296
+ }
297
+ }
298
+ } catch (e) {
299
+ console.log(e);
300
+ console.error(
301
+ `Failed to parse component "${this.filePath}": The composabe does not contain a valid object literal. No variables and methods are allowed inside the composable.`,
302
+ e
303
+ );
304
+ return false;
305
+ }
306
+ this.hasBlokkliField = this.fileContents.includes("<BlokkliField") || this.fileContents.includes("<blokkli-field") || this.fileContents.includes(':is="BlokkliField"');
307
+ this.chunkName = this.definition?.chunkName || "global";
308
+ this.identifier = this.definition ? getIdentifier(this.definition) : "";
309
+ if (!this.definition) {
310
+ this.type = null;
311
+ } else if (isBlock(this.definition)) {
312
+ if (this.definition.renderFor) {
313
+ this.type = "context";
314
+ } else {
315
+ this.type = "main";
316
+ }
317
+ } else if (isFragment(this.definition)) {
318
+ this.type = "fragment";
319
+ } else {
320
+ this.type = "provider";
321
+ }
322
+ if (this.type === "main") {
323
+ this.iconPath = this.hasSiblingFile("icon.svg", helper);
324
+ this.imagePath = this.hasSiblingFile(
325
+ ["image.png", "image.jpg", "image.svg"],
326
+ helper
327
+ );
328
+ if (this.iconPath) {
329
+ this.iconContents = await helper.fileCache.read(this.iconPath);
330
+ }
331
+ } else {
332
+ this.iconPath = null;
333
+ this.iconContents = null;
334
+ }
335
+ this.variations = getVariations(this.definition);
336
+ return true;
337
+ }
338
+ /**
339
+ * Validate the block definition and return any errors.
340
+ * Results are cached and invalidated when the file changes.
341
+ */
342
+ validate(icons) {
343
+ if (this.validationCache !== null) {
344
+ return this.validationCache;
345
+ }
346
+ if (!this.definition) {
347
+ this.validationCache = [];
348
+ return this.validationCache;
349
+ }
350
+ const errors = validateBlockDefinition(this.definition, icons);
351
+ if (this.type === "main" && isBlock(this.definition)) {
352
+ const hasIconFile = !!this.iconPath;
353
+ const hasEditorIcon = !!(this.definition.editor && "icon" in this.definition.editor && this.definition.editor.icon);
354
+ if (!hasIconFile && !hasEditorIcon) {
355
+ errors.push({
356
+ message: `Block is missing an icon. Add an icon.svg file or set editor.icon in the definition.`,
357
+ severity: "warning"
358
+ });
359
+ }
360
+ }
361
+ if (this.fileContents.includes("isEditing")) {
362
+ const isEditingPattern = /\bisEditing\b[^\n\r=\u2028\u2029]*=.*defineBlokkli\s*\(|defineBlokkli\s*\([^)]*\).*\bisEditing\b|\{[^}]*\bisEditing\b[^}]*\}\s*=\s*defineBlokkli/;
363
+ if (isEditingPattern.test(this.fileContents)) {
364
+ errors.push({
365
+ message: `Using deprecated "isEditing" property. Use "import.meta.blokkliEditing" instead.`,
366
+ severity: "warning"
367
+ });
368
+ }
369
+ }
370
+ this.validationCache = errors;
371
+ return this.validationCache;
372
+ }
373
+ }
374
+ function validateBundleOptionCompatibility(files) {
375
+ const conflicts = [];
376
+ const bundleGroups = /* @__PURE__ */ new Map();
377
+ for (const file of files) {
378
+ if (!file.definition || !isBlock(file.definition)) {
379
+ continue;
380
+ }
381
+ const bundle = file.definition.bundle;
382
+ const existing = bundleGroups.get(bundle) || [];
383
+ existing.push(file);
384
+ bundleGroups.set(bundle, existing);
385
+ }
386
+ for (const [bundle, bundleFiles] of bundleGroups) {
387
+ if (bundleFiles.length < 2) {
388
+ continue;
389
+ }
390
+ const optionInfos = /* @__PURE__ */ new Map();
391
+ for (const file of bundleFiles) {
392
+ if (!file.definition || !isBlock(file.definition)) {
393
+ continue;
394
+ }
395
+ const options = file.definition.options;
396
+ if (!options) {
397
+ continue;
398
+ }
399
+ for (const [optionKey, option] of Object.entries(options)) {
400
+ if (!option || typeof option !== "object" || !option.type) {
401
+ continue;
402
+ }
403
+ const info = {
404
+ filePath: file.filePath,
405
+ type: option.type
406
+ };
407
+ if ((option.type === "radios" || option.type === "checkboxes") && option.options && typeof option.options === "object") {
408
+ info.optionKeys = Object.keys(option.options).sort();
409
+ }
410
+ const existing = optionInfos.get(optionKey) || [];
411
+ existing.push(info);
412
+ optionInfos.set(optionKey, existing);
413
+ }
414
+ }
415
+ for (const [optionKey, entries] of optionInfos) {
416
+ if (entries.length < 2) {
417
+ continue;
418
+ }
419
+ const types = new Set(entries.map((e) => e.type));
420
+ if (types.size > 1) {
421
+ conflicts.push({
422
+ bundle,
423
+ optionKey,
424
+ reason: "type",
425
+ conflicts: entries
426
+ });
427
+ continue;
428
+ }
429
+ const entriesWithOptionKeys = entries.filter((e) => e.optionKeys);
430
+ if (entriesWithOptionKeys.length >= 2) {
431
+ const optionKeySets = entriesWithOptionKeys.map(
432
+ (e) => e.optionKeys.join(",")
433
+ );
434
+ const uniqueOptionKeySets = new Set(optionKeySets);
435
+ if (uniqueOptionKeySets.size > 1) {
436
+ conflicts.push({
437
+ bundle,
438
+ optionKey,
439
+ reason: "options",
440
+ conflicts: entriesWithOptionKeys
441
+ });
442
+ }
443
+ }
444
+ }
445
+ }
446
+ return conflicts;
447
+ }
448
+ function validateRenderForConflicts(files) {
449
+ const conflicts = [];
450
+ const bundleGroups = /* @__PURE__ */ new Map();
451
+ for (const file of files) {
452
+ if (!file.definition || !isBlock(file.definition)) {
453
+ continue;
454
+ }
455
+ const bundle = file.definition.bundle;
456
+ const existing = bundleGroups.get(bundle) || [];
457
+ existing.push(file);
458
+ bundleGroups.set(bundle, existing);
459
+ }
460
+ for (const [bundle, bundleFiles] of bundleGroups) {
461
+ if (bundleFiles.length < 2) {
462
+ continue;
463
+ }
464
+ const variationToFiles = /* @__PURE__ */ new Map();
465
+ for (const file of bundleFiles) {
466
+ for (const variation of file.variations) {
467
+ const existing = variationToFiles.get(variation) || [];
468
+ existing.push(file.filePath);
469
+ variationToFiles.set(variation, existing);
470
+ }
471
+ }
472
+ for (const [variation, filePaths] of variationToFiles) {
473
+ if (filePaths.length > 1) {
474
+ conflicts.push({
475
+ bundle,
476
+ variation,
477
+ filePaths
478
+ });
479
+ }
480
+ }
481
+ }
482
+ return conflicts;
483
+ }
484
+ function validateMissingMainComponent(files) {
485
+ const errors = [];
486
+ const bundleGroups = /* @__PURE__ */ new Map();
487
+ for (const file of files) {
488
+ if (!file.definition || !isBlock(file.definition)) {
489
+ continue;
490
+ }
491
+ const bundle = file.definition.bundle;
492
+ const existing = bundleGroups.get(bundle) || { main: [], context: [] };
493
+ if (file.type === "main") {
494
+ existing.main.push(file.filePath);
495
+ } else if (file.type === "context") {
496
+ existing.context.push(file.filePath);
497
+ }
498
+ bundleGroups.set(bundle, existing);
499
+ }
500
+ for (const [bundle, { main, context }] of bundleGroups) {
501
+ if (context.length > 0 && main.length === 0) {
502
+ errors.push({
503
+ bundle,
504
+ filePaths: context
505
+ });
506
+ }
507
+ }
508
+ return errors;
509
+ }
510
+ class BlockCollector extends Collector {
511
+ constructor(helper, icons) {
512
+ super(helper);
513
+ this.icons = icons;
514
+ this.patterns = (helper.options.pattern || []).map((pattern) => {
515
+ if (pattern.startsWith("/")) {
516
+ return pattern;
517
+ } else if (pattern.startsWith(".")) {
518
+ return helper.resolvers.src.resolve(pattern);
519
+ }
520
+ return resolveAlias(pattern);
521
+ });
522
+ }
523
+ patterns;
524
+ async init() {
525
+ const files = await resolveFiles(
526
+ this.helper.nuxt.options.srcDir,
527
+ this.patterns
528
+ );
529
+ const promises = [];
530
+ for (const filePath of files) {
531
+ const applies = await this.applies(filePath);
532
+ if (applies) {
533
+ promises.push(this.addFile(filePath));
534
+ }
535
+ }
536
+ await Promise.all(promises);
537
+ }
538
+ runHooks() {
539
+ return this.helper.nuxt.hooks.callHook("blokkli:alter-blocks", {
540
+ blocks: [...this.files.values()]
541
+ });
542
+ }
543
+ createCollectedFile(filePath, fileContents = "") {
544
+ return new CollectedBlockFile(filePath, fileContents);
545
+ }
546
+ findBlockForFolderFile(iconPath) {
547
+ for (const file of this.files.values()) {
548
+ if (file.iconPath === iconPath || file.proxyComponentPath === iconPath || file.diffComponentPath === iconPath) {
549
+ return file.filePath;
550
+ }
551
+ }
552
+ return null;
553
+ }
554
+ async handleAdd(filePath) {
555
+ if (isEditComponent(filePath)) {
556
+ const folder = dirname(filePath);
557
+ for (const file of this.files.values()) {
558
+ if (file.folder === folder) {
559
+ return super.handleChange(file.filePath);
560
+ }
561
+ }
562
+ }
563
+ return super.handleAdd(filePath);
564
+ }
565
+ async handleUnlink(filePath) {
566
+ if (isEditComponent(filePath)) {
567
+ const folder = dirname(filePath);
568
+ for (const file of this.files.values()) {
569
+ if (file.folder === folder) {
570
+ return super.handleChange(file.filePath);
571
+ }
572
+ }
573
+ }
574
+ return super.handleUnlink(filePath);
575
+ }
576
+ async handleChange(filePath) {
577
+ if (filePath.includes("icon.svg")) {
578
+ const matchingBlockFilePath = this.findBlockForFolderFile(filePath);
579
+ if (matchingBlockFilePath) {
580
+ return this.handleChange(matchingBlockFilePath);
581
+ }
582
+ return false;
583
+ }
584
+ return super.handleChange(filePath);
585
+ }
586
+ async applies(filePath) {
587
+ if (!filePath.endsWith(".vue")) {
588
+ return false;
589
+ }
590
+ if (!micromatch.isMatch(filePath, this.patterns)) {
591
+ return false;
592
+ }
593
+ if (isEditComponent(filePath)) {
594
+ return true;
595
+ }
596
+ const content = await this.helper.fileCache.read(filePath);
597
+ return content.includes(DEFINE_BLOKKLI) || content.includes(DEFINE_BLOKKLI_FRAGMENT) || content.includes(DEFINE_BLOKKLI_PROVIDER);
598
+ }
599
+ getDependencyTypes() {
600
+ return ["block-content", "block-path"];
601
+ }
602
+ validate(icons) {
603
+ const hasFileErrors = super.validate(icons);
604
+ const files = [...this.files.values()];
605
+ let hasCollectorErrors = false;
606
+ const optionConflicts = validateBundleOptionCompatibility(files);
607
+ if (optionConflicts.length > 0) {
608
+ const lines = optionConflicts.flatMap((conflict) => {
609
+ const reasonLabel = conflict.reason === "type" ? "conflicting types" : "conflicting option keys";
610
+ return [
611
+ ` Bundle "${conflict.bundle}", option "${conflict.optionKey}" (${reasonLabel}):`,
612
+ ...conflict.conflicts.map((c) => {
613
+ if (conflict.reason === "options" && c.optionKeys) {
614
+ return ` - ${c.filePath} (keys: ${c.optionKeys.join(", ")})`;
615
+ }
616
+ return ` - ${c.filePath} (type: ${c.type})`;
617
+ })
618
+ ];
619
+ });
620
+ this.helper.logger.error(
621
+ `bl\xF6kkli option conflicts across bundle components:
622
+ ${lines.join("\n")}`
623
+ );
624
+ hasCollectorErrors = true;
625
+ }
626
+ const renderForConflicts = validateRenderForConflicts(files);
627
+ if (renderForConflicts.length > 0) {
628
+ const lines = renderForConflicts.flatMap((conflict) => [
629
+ ` Bundle "${conflict.bundle}", variation "${conflict.variation}":`,
630
+ ...conflict.filePaths.map((fp) => ` - ${fp}`)
631
+ ]);
632
+ this.helper.logger.error(
633
+ `bl\xF6kkli duplicate renderFor entries:
634
+ ${lines.join("\n")}`
635
+ );
636
+ hasCollectorErrors = true;
637
+ }
638
+ const missingMainErrors = validateMissingMainComponent(files);
639
+ if (missingMainErrors.length > 0) {
640
+ const lines = missingMainErrors.flatMap((error) => [
641
+ ` Bundle "${error.bundle}":`,
642
+ ...error.filePaths.map((fp) => ` - ${fp}`)
643
+ ]);
644
+ this.helper.logger.error(
645
+ `bl\xF6kkli bundles with renderFor components but no main component:
646
+ ${lines.join("\n")}`
647
+ );
648
+ hasCollectorErrors = true;
649
+ }
650
+ return hasFileErrors || hasCollectorErrors;
651
+ }
652
+ }
653
+
654
+ function isVue(id, opts = {}) {
655
+ const { search } = parseURL(decodeURIComponent(pathToFileURL(id).href));
656
+ if (id.endsWith(".vue") && !search) {
657
+ return true;
658
+ }
659
+ if (!search) {
660
+ return false;
661
+ }
662
+ const query = parseQuery(search);
663
+ if (query.nuxt_component) {
664
+ return false;
665
+ }
666
+ if (query.macro && (search === "?macro=true" || !opts.type || opts.type.includes("script"))) {
667
+ return true;
668
+ }
669
+ const type = "setup" in query ? "script" : query.type;
670
+ if (!("vue" in query) || opts.type && !opts.type.includes(type)) {
671
+ return false;
672
+ }
673
+ return true;
674
+ }
675
+ function generateRuntimeArg(definition) {
676
+ if (isBlock(definition)) {
677
+ return `${definition.bundle}::${getIdentifier(definition)}`;
678
+ } else if (isFragment(definition)) {
679
+ return `${definition.name}::${getIdentifier(definition)}`;
680
+ }
681
+ return `${definition.entityType}__${definition.bundle}::${getIdentifier(definition)}`;
682
+ }
683
+ const RuntimeDefinitionPlugin = (nuxt, helper, composableName, argIndex = 0) => {
684
+ const cache = /* @__PURE__ */ new Map();
685
+ function extract(source) {
686
+ const fromCache = cache.get(source);
687
+ if (fromCache) {
688
+ return fromCache;
689
+ }
690
+ const definition = parseTsObject(source);
691
+ if (definition.object) {
692
+ if (isBlock(definition.object)) {
693
+ definition.object.bundle = helper.getMappedBlockBundle(
694
+ definition.object.bundle
695
+ );
696
+ }
697
+ cache.set(source, definition.object);
698
+ return definition.object;
699
+ }
700
+ return null;
701
+ }
702
+ return createUnplugin(() => {
703
+ return {
704
+ name: "blokkli:runtime-definition",
705
+ enforce: "post",
706
+ transformInclude(id) {
707
+ return isVue(id);
708
+ },
709
+ transform(source) {
710
+ if (!source.includes(composableName)) {
711
+ return;
712
+ }
713
+ const s = new MagicString(source);
714
+ const parsed = this.parse(source, {
715
+ sourceType: "module",
716
+ ecmaVersion: "latest"
717
+ });
718
+ walk(parsed, {
719
+ enter: (node) => {
720
+ if (node.type !== "CallExpression" || node.callee.type !== "Identifier") {
721
+ return;
722
+ }
723
+ const callNode = node;
724
+ const name = "name" in callNode.callee && callNode.callee.name;
725
+ if (name === composableName) {
726
+ const arg = callNode.arguments[argIndex];
727
+ if (!arg) {
728
+ return;
729
+ }
730
+ const meta = callNode.arguments[argIndex];
731
+ if (arg.type === "ObjectExpression") {
732
+ const start = meta.start;
733
+ const end = meta.end;
734
+ const objectSource = s.slice(start, end);
735
+ const object = extract(objectSource);
736
+ if (object) {
737
+ const arg2 = generateRuntimeArg(object);
738
+ s.overwrite(start, end, `"${arg2}"`);
739
+ }
740
+ }
741
+ }
742
+ },
743
+ leave: () => {
744
+ }
745
+ });
746
+ if (s.hasChanged()) {
747
+ return {
748
+ code: s.toString(),
749
+ map: nuxt.options.sourcemap.client || nuxt.options.sourcemap.server ? s.generateMap({ hires: true }) : null
750
+ };
751
+ }
752
+ }
753
+ };
754
+ });
755
+ };
756
+
757
+ const REPLACE_TARGET = "import.meta.blokkliEditing";
758
+ const EDITING_MARKER = "__blokkli_editing__";
759
+ const BlokkliEditingPlugin = (nuxt) => {
760
+ return createUnplugin(() => {
761
+ return {
762
+ name: "blokkli:editing",
763
+ enforce: "pre",
764
+ resolveId(id, importer) {
765
+ const { pathname, search } = parseURL(decodeURIComponent(id));
766
+ if (search && pathname.endsWith(".vue")) {
767
+ const query = parseQuery(search);
768
+ if (query.blokkliEditing === "true") {
769
+ let resolved = pathname;
770
+ if (importer && pathname.startsWith(".")) {
771
+ const importerBase2 = importer.split("?")[0] || "";
772
+ resolved = resolve(dirname(importerBase2), pathname);
773
+ }
774
+ return resolved.replace(/\.vue$/, `${EDITING_MARKER}.vue`);
775
+ }
776
+ }
777
+ if (!importer || !importer.includes(EDITING_MARKER) || !id.endsWith(".vue")) {
778
+ return;
779
+ }
780
+ const importerWithoutQuery = importer.split("?")[0];
781
+ if (!importerWithoutQuery) {
782
+ return;
783
+ }
784
+ const importerBase = importerWithoutQuery.replace(EDITING_MARKER, "");
785
+ const importerDir = dirname(importerBase);
786
+ let resolvedPath = null;
787
+ if (id.startsWith(".")) {
788
+ resolvedPath = resolve(importerDir, id);
789
+ } else if (id.startsWith("/")) {
790
+ resolvedPath = id;
791
+ }
792
+ if (resolvedPath && existsSync(resolvedPath)) {
793
+ return resolvedPath.replace(/\.vue$/, `${EDITING_MARKER}.vue`);
794
+ }
795
+ },
796
+ load(id) {
797
+ if (!id.includes(EDITING_MARKER) || id.includes("?")) {
798
+ return;
799
+ }
800
+ const originalPath = id.replace(EDITING_MARKER, "");
801
+ this.addWatchFile(originalPath);
802
+ return readFileSync(originalPath, "utf-8");
803
+ },
804
+ transform(source, id) {
805
+ if (!source.includes(REPLACE_TARGET)) {
806
+ return;
807
+ }
808
+ const isEditing = id.includes(EDITING_MARKER);
809
+ const replacement = isEditing ? "true" : "false";
810
+ const s = new MagicString(source);
811
+ let index = source.indexOf(REPLACE_TARGET);
812
+ while (index !== -1) {
813
+ s.overwrite(index, index + REPLACE_TARGET.length, replacement);
814
+ index = source.indexOf(REPLACE_TARGET, index + 1);
815
+ }
816
+ if (s.hasChanged()) {
817
+ return {
818
+ code: s.toString(),
819
+ map: nuxt.options.sourcemap.client || nuxt.options.sourcemap.server ? s.generateMap({ hires: true }) : null
820
+ };
821
+ }
822
+ },
823
+ vite: {
824
+ hotUpdate: {
825
+ order: "post",
826
+ async handler({ file, modules, server }) {
827
+ if (!file.endsWith(".vue") || file.includes(EDITING_MARKER)) {
828
+ return;
829
+ }
830
+ const editingVariantPath = file.replace(
831
+ /\.vue$/,
832
+ `${EDITING_MARKER}.vue`
833
+ );
834
+ const environment = server.environments["client"];
835
+ if (!environment) {
836
+ return;
837
+ }
838
+ const editingModules = environment.moduleGraph.getModulesByFile(editingVariantPath);
839
+ if (!editingModules || editingModules.size === 0) {
840
+ return;
841
+ }
842
+ const mainModule = [...editingModules].find(
843
+ (m) => !m.url.includes("?")
844
+ );
845
+ if (mainModule) {
846
+ environment.moduleGraph.invalidateModule(mainModule);
847
+ await environment.transformRequest(mainModule.url);
848
+ }
849
+ return [...modules, ...editingModules];
850
+ }
851
+ }
852
+ }
853
+ };
854
+ });
855
+ };
856
+
857
+ class IconCollector extends Collector {
858
+ needsFileContents = false;
859
+ srcFromModule;
860
+ validMaterialIconNames;
861
+ validFileIconNames = /* @__PURE__ */ new Set();
862
+ constructor(helper) {
863
+ super(helper);
864
+ this.srcFromModule = helper.resolvers.module.resolve(
865
+ "./runtime/editor/icons/svg"
866
+ );
867
+ this.validMaterialIconNames = this.loadValidMaterialIconNames();
868
+ }
869
+ updateValidFileIconNames() {
870
+ const names = [...this.files.values()].map((file) => {
871
+ return basename(file.filePath, ".svg").toLowerCase();
872
+ });
873
+ this.validFileIconNames = new Set(names);
874
+ }
875
+ /**
876
+ * Load all valid Material Symbols icon names from the package.
877
+ */
878
+ loadValidMaterialIconNames() {
879
+ const require = createRequire(import.meta.url);
880
+ const packagePath = dirname$1(
881
+ require.resolve("@material-symbols/svg-600/rounded/search.svg")
882
+ );
883
+ const files = readdirSync(packagePath);
884
+ const iconNames = files.filter((file) => file.endsWith(".svg")).map((file) => "bk_mdi_" + file.replace(".svg", ""));
885
+ return new Set(iconNames);
886
+ }
887
+ /**
888
+ * Check if a given string is a valid Material Symbols icon name.
889
+ *
890
+ * @param name - The icon name to check (should include `bk_mdi_` prefix).
891
+ *
892
+ * @returns True if the icon name is valid.
893
+ */
894
+ isValidIconName(name) {
895
+ return this.isValidMaterialIconName(name) || this.validFileIconNames.has(name);
896
+ }
897
+ /**
898
+ * Check if a given string is a valid Material Symbols icon name.
899
+ *
900
+ * @param name - The icon name to check (should include `bk_mdi_` prefix).
901
+ *
902
+ * @returns True if the icon name is valid.
903
+ */
904
+ isValidMaterialIconName(name) {
905
+ return this.validMaterialIconNames.has(name);
906
+ }
907
+ /**
908
+ * Get all valid Material Symbols icon names.
909
+ *
910
+ * @returns An array of all valid icon names (with `bk_mdi_` prefix).
911
+ */
912
+ getValidMaterialIconNames() {
913
+ return Array.from(this.validMaterialIconNames);
914
+ }
915
+ async handleWatchEvent(event, filePath) {
916
+ const result = await super.handleWatchEvent(event, filePath);
917
+ if (result.hasChanged) {
918
+ this.updateValidFileIconNames();
919
+ }
920
+ return result;
921
+ }
922
+ async init() {
923
+ const filesModule = await resolveFiles(this.srcFromModule, "*.svg");
924
+ const filesApp = await resolveFiles(
925
+ this.helper.paths.srcDir,
926
+ "**/icon-blokkli-*.svg"
927
+ );
928
+ const filesPlayground = this.helper.isModuleBuild ? await resolveFiles("./playground", "**/icon-blokkli-*.svg") : [];
929
+ const allFiles = [...filesModule, ...filesApp, ...filesPlayground];
930
+ await Promise.all(allFiles.map((filePath) => this.addFile(filePath)));
931
+ this.updateValidFileIconNames();
932
+ }
933
+ runHooks() {
934
+ return this.helper.nuxt.hooks.callHook("blokkli:alter-icons", {
935
+ icons: [...this.files.values()]
936
+ });
937
+ }
938
+ applies(filePath) {
939
+ return Promise.resolve(
940
+ filePath.startsWith(this.srcFromModule) || micromatch.isMatch(filePath, "icon-blokkli-*.svg")
941
+ );
942
+ }
943
+ getDependencyTypes() {
944
+ return ["icons"];
945
+ }
946
+ createCollectedFile(filePath, fileContents = "") {
947
+ return new CollectedFile(filePath, fileContents);
948
+ }
949
+ }
950
+
951
+ class FileCache {
952
+ cache = /* @__PURE__ */ new Map();
953
+ existingFiles = /* @__PURE__ */ new Set();
954
+ /**
955
+ * Read a file from disk.
956
+ */
957
+ async read(filePath) {
958
+ const existing = this.cache.get(filePath);
959
+ if (existing) {
960
+ return existing;
961
+ }
962
+ const buffer = await fs__default.promises.readFile(filePath);
963
+ const content = buffer.toString();
964
+ this.cache.set(filePath, content);
965
+ return content;
966
+ }
967
+ /**
968
+ * Delete a file.
969
+ */
970
+ delete(filePath) {
971
+ this.cache.delete(filePath);
972
+ }
973
+ /**
974
+ * Check if a file exists.
975
+ */
976
+ fileExists(filePath) {
977
+ if (this.existingFiles.has(filePath)) {
978
+ return true;
979
+ }
980
+ const exists = fs__default.existsSync(filePath);
981
+ if (exists) {
982
+ this.existingFiles.add(filePath);
983
+ }
984
+ return exists;
985
+ }
986
+ /**
987
+ * Handles the builder watch event.
988
+ */
989
+ async handleWatchEvent(event, filePath) {
990
+ if (event === "add") {
991
+ this.existingFiles.add(filePath);
992
+ this.cache.delete(filePath);
993
+ } else if (event === "change") {
994
+ this.existingFiles.add(filePath);
995
+ this.cache.delete(filePath);
996
+ } else if (event === "unlink") {
997
+ this.existingFiles.delete(filePath);
998
+ this.cache.delete(filePath);
999
+ } else if (event === "unlinkDir") {
1000
+ const filePaths = [...this.existingFiles.keys()];
1001
+ filePaths.forEach((v) => {
1002
+ if (v.startsWith(filePath)) {
1003
+ this.existingFiles.delete(v);
1004
+ this.cache.delete(v);
1005
+ }
1006
+ });
1007
+ }
1008
+ }
1009
+ }
1010
+
1011
+ const HEX_COLOR_REGEX = /^#(?:[\da-f]{3}|[\da-f]{6})$/i;
1012
+ const VALID_ID_REGEX = /^[a-z_$][\w$]*$/i;
1013
+ function isHex(value) {
1014
+ return typeof value === "string" && HEX_COLOR_REGEX.test(value);
1015
+ }
1016
+ function isNonEmptyString(value) {
1017
+ return typeof value === "string" && value.length > 0;
1018
+ }
1019
+ function hasShades(option) {
1020
+ return "shades" in option && !!option.shades && typeof option.shades === "object";
1021
+ }
1022
+ function validateColorOption(colorId, option) {
1023
+ const errors = [];
1024
+ if (!VALID_ID_REGEX.test(colorId)) {
1025
+ errors.push({
1026
+ message: `Color id "${colorId}" is not a valid JavaScript identifier (must start with a letter, underscore or $, followed by letters, digits, underscores or $). Color ids may not contain "." \u2014 that character is reserved for shade-qualified ids (e.g. "red.300").`,
1027
+ optionKey: colorId
1028
+ });
1029
+ }
1030
+ if (!isNonEmptyString(option.label)) {
1031
+ errors.push({
1032
+ message: `Option "${colorId}" is missing a non-empty "label".`,
1033
+ optionKey: colorId
1034
+ });
1035
+ }
1036
+ if (hasShades(option)) {
1037
+ const shadeKeys = Object.keys(option.shades);
1038
+ if (shadeKeys.length === 0) {
1039
+ errors.push({
1040
+ message: `Option "${colorId}" declares an empty "shades" object. Either omit "shades" or declare at least one shade.`,
1041
+ optionKey: colorId
1042
+ });
1043
+ }
1044
+ for (const shadeKey of shadeKeys) {
1045
+ const shadeValue = option.shades[shadeKey];
1046
+ if (!isHex(shadeValue)) {
1047
+ errors.push({
1048
+ message: `Option "${colorId}" shade "${shadeKey}" has value "${shadeValue}" which is not a valid hex color (expected format: #RRGGBB or #RGB)`,
1049
+ optionKey: colorId
1050
+ });
1051
+ }
1052
+ }
1053
+ if (!isNonEmptyString(option.mainShade)) {
1054
+ errors.push({
1055
+ message: `Option "${colorId}" declares "shades" but is missing "mainShade".`,
1056
+ optionKey: colorId
1057
+ });
1058
+ } else if (!shadeKeys.includes(option.mainShade)) {
1059
+ errors.push({
1060
+ message: `Option "${colorId}" mainShade "${option.mainShade}" is not a key of shades (available: ${shadeKeys.map((k) => `"${k}"`).join(", ")})`,
1061
+ optionKey: colorId
1062
+ });
1063
+ }
1064
+ if ("hex" in option) {
1065
+ errors.push({
1066
+ message: `Option "${colorId}" declares both "hex" and "shades". Use one or the other: shaded colors derive their base hex from "shades[mainShade]".`,
1067
+ optionKey: colorId
1068
+ });
1069
+ }
1070
+ } else {
1071
+ const hex = option.hex;
1072
+ if (hex === void 0) {
1073
+ errors.push({
1074
+ message: `Option "${colorId}": "hex" is required when "shades" is not provided.`,
1075
+ optionKey: colorId
1076
+ });
1077
+ } else if (!isHex(hex)) {
1078
+ errors.push({
1079
+ message: `Option "${colorId}" has hex value "${hex}" which is not a valid hex color (expected format: #RRGGBB or #RGB)`,
1080
+ optionKey: colorId
1081
+ });
1082
+ }
1083
+ }
1084
+ return errors;
1085
+ }
1086
+ function validateColorOptions(colorOptions) {
1087
+ if (!colorOptions) {
1088
+ return [];
1089
+ }
1090
+ const errors = [];
1091
+ for (const [colorId, option] of Object.entries(colorOptions)) {
1092
+ if (!option || typeof option !== "object") {
1093
+ continue;
1094
+ }
1095
+ errors.push(...validateColorOption(colorId, option));
1096
+ }
1097
+ return errors;
1098
+ }
1099
+
1100
+ const defaultColorOptions = {
1101
+ blue: { hex: "#3b82f6", label: "Blue" },
1102
+ red: { hex: "#ef4444", label: "Red" },
1103
+ green: { hex: "#10b981", label: "Green" },
1104
+ amber: { hex: "#f59e0b", label: "Amber" },
1105
+ purple: { hex: "#8b5cf6", label: "Purple" },
1106
+ pink: { hex: "#ec4899", label: "Pink" },
1107
+ teal: { hex: "#14b8a6", label: "Teal" },
1108
+ orange: { hex: "#f97316", label: "Orange" }
1109
+ };
1110
+ class ModuleHelper {
1111
+ constructor(nuxt, logger, moduleUrl, providedOptions) {
1112
+ this.nuxt = nuxt;
1113
+ this.logger = logger;
1114
+ this.isDev = nuxt.options.dev;
1115
+ this.isPrepare = !!nuxt.options._prepare;
1116
+ this.isModuleBuild = false;
1117
+ this.fileCache = new FileCache();
1118
+ this.resolvers = {
1119
+ module: createResolver(moduleUrl),
1120
+ build: createResolver(nuxt.options.buildDir),
1121
+ src: createResolver(nuxt.options.srcDir),
1122
+ app: createResolver(nuxt.options.dir.app),
1123
+ root: createResolver(nuxt.options.rootDir)
1124
+ };
1125
+ this.paths = {
1126
+ blokkliBuildDir: this.resolvers.build.resolve("blokkli"),
1127
+ srcDir: nuxt.options.srcDir,
1128
+ editAdapter: ""
1129
+ };
1130
+ this.relativePaths = {
1131
+ TYPES: relative(
1132
+ this.paths.blokkliBuildDir,
1133
+ this.resolvers.module.resolve("./runtime/types/index.ts")
1134
+ ),
1135
+ TYPES_DEFINITIONS: relative(
1136
+ this.paths.blokkliBuildDir,
1137
+ this.resolvers.module.resolve("./runtime/types/definitions.ts")
1138
+ ),
1139
+ CONSTANTS: relative(
1140
+ this.paths.blokkliBuildDir,
1141
+ this.resolvers.module.resolve("./runtime/constants/index.ts")
1142
+ ),
1143
+ ADAPTER: relative(
1144
+ this.paths.blokkliBuildDir,
1145
+ this.resolvers.module.resolve("./runtime/editor/adapter/index.ts")
1146
+ ),
1147
+ TYPES_THEME: relative(
1148
+ this.paths.blokkliBuildDir,
1149
+ this.resolvers.module.resolve("./runtime/types/theme.ts")
1150
+ ),
1151
+ TYPES_BLOKK_OPTIONS: relative(
1152
+ this.paths.blokkliBuildDir,
1153
+ this.resolvers.module.resolve("./runtime/types/blockOptions.ts")
1154
+ )
1155
+ };
1156
+ const pattern = providedOptions.pattern || [];
1157
+ pattern.push(
1158
+ this.resolvers.module.resolve(
1159
+ "./runtime/components/Blocks/FromLibrary/*.vue"
1160
+ )
1161
+ );
1162
+ pattern.push(
1163
+ this.resolvers.module.resolve(
1164
+ "./runtime/components/Blocks/Fragment/*.vue"
1165
+ )
1166
+ );
1167
+ if (this.isModuleBuild) {
1168
+ pattern.push(
1169
+ this.resolvers.module.resolve(
1170
+ "./../playground/app/components/Blokkli/**/*.vue"
1171
+ )
1172
+ );
1173
+ }
1174
+ const fieldListTypes = providedOptions.fieldListTypes || [];
1175
+ if (!fieldListTypes.includes("default")) {
1176
+ fieldListTypes.push("default");
1177
+ }
1178
+ const providerTypes = providedOptions.providerTypes || [];
1179
+ if (!providerTypes.includes("default")) {
1180
+ providerTypes.push("default");
1181
+ }
1182
+ const chunkNames = providedOptions.chunkNames || [];
1183
+ if (!chunkNames.includes("global")) {
1184
+ chunkNames.push("global");
1185
+ }
1186
+ this.options = {
1187
+ ...providedOptions,
1188
+ pattern,
1189
+ fieldListTypes: fieldListTypes.filter(onlyUnique),
1190
+ providerTypes: providerTypes.filter(onlyUnique),
1191
+ chunkNames: chunkNames.filter(onlyUnique),
1192
+ colorOptions: providedOptions.colorOptions || defaultColorOptions
1193
+ };
1194
+ this.paths.editAdapter = this.findEditAdapterPath();
1195
+ }
1196
+ relativePaths;
1197
+ paths;
1198
+ resolvers;
1199
+ fileCache;
1200
+ options;
1201
+ isDev;
1202
+ isModuleBuild;
1203
+ isPrepare;
1204
+ /**
1205
+ * Transform the path relative to the module's build directory.
1206
+ *
1207
+ * @param path - The absolute path.
1208
+ *
1209
+ * @returns The path relative to the module's build directory.
1210
+ */
1211
+ toModuleBuildRelative(path) {
1212
+ return relative(this.paths.blokkliBuildDir, path);
1213
+ }
1214
+ /**
1215
+ * Path to the editor's compiled tailwind config. Used by the SFC mangle
1216
+ * pipeline and module CSS processing to inject `@config` so consumer-side
1217
+ * `@apply` resolves against the editor's theme + utilities.
1218
+ *
1219
+ * In dist (npm install): `dist/modules/tailwind/index.mjs`. In source (this
1220
+ * repo's playground): `tailwind.config.ts` at the repo root.
1221
+ */
1222
+ getTailwindConfigPath() {
1223
+ const distPath = this.resolvers.module.resolve(
1224
+ "./modules/tailwind/index.mjs"
1225
+ );
1226
+ if (this.fileCache.fileExists(distPath)) {
1227
+ return distPath;
1228
+ }
1229
+ return this.resolvers.module.resolve("../tailwind.config.ts");
1230
+ }
1231
+ findEditAdapterPath() {
1232
+ const filePath = this.resolvers.app.resolve("blokkli.editAdapter.ts");
1233
+ if (this.fileCache.fileExists(filePath)) {
1234
+ return filePath;
1235
+ }
1236
+ if (this.options.editAdapterPath && this.fileCache.fileExists(this.options.editAdapterPath)) {
1237
+ return this.options.editAdapterPath;
1238
+ }
1239
+ throw new Error(`Missing bl\xF6kkli edit adapter at "${filePath}"`);
1240
+ }
1241
+ getChunkNames() {
1242
+ return this.options.chunkNames || ["global"];
1243
+ }
1244
+ addComponent(name) {
1245
+ addComponent({
1246
+ filePath: this.resolvers.module.resolve("./runtime/components/" + name),
1247
+ name,
1248
+ global: true
1249
+ });
1250
+ }
1251
+ addComposable(name) {
1252
+ addImports({
1253
+ name,
1254
+ from: this.resolvers.module.resolve("./runtime/composables/" + name)
1255
+ });
1256
+ }
1257
+ addAlias(name, path) {
1258
+ this.nuxt.options.alias[name] = path;
1259
+ this.nuxt.options.nitro.typescript ||= {};
1260
+ this.nuxt.options.nitro.typescript.tsConfig ||= {};
1261
+ this.nuxt.options.nitro.typescript.tsConfig.compilerOptions ||= {};
1262
+ this.nuxt.options.nitro.typescript.tsConfig.compilerOptions.paths ||= {};
1263
+ this.nuxt.options.nitro.typescript.tsConfig.compilerOptions.paths[name] = [
1264
+ path
1265
+ ];
1266
+ this.nuxt.options.nitro.typescript.tsConfig.compilerOptions.paths[name + "/*"] = [path + "/*"];
1267
+ this.nuxt.options.typescript.tsConfig ||= {};
1268
+ this.nuxt.options.typescript.tsConfig.compilerOptions ||= {};
1269
+ this.nuxt.options.typescript.tsConfig.compilerOptions.paths ||= {};
1270
+ this.nuxt.options.typescript.tsConfig.compilerOptions.paths[name] = [path];
1271
+ this.nuxt.options.typescript.tsConfig.compilerOptions.paths[name + "/*"] = [
1272
+ path + "/*"
1273
+ ];
1274
+ }
1275
+ /**
1276
+ * Add a directory to the app TypeScript tsconfig includes.
1277
+ */
1278
+ addAppTsInclude(absolutePath) {
1279
+ const rel = relative(this.nuxt.options.buildDir, absolutePath) + "/**/*";
1280
+ this.nuxt.options.typescript.tsConfig ||= {};
1281
+ this.nuxt.options.typescript.tsConfig.include ||= [];
1282
+ this.nuxt.options.typescript.tsConfig.include.push(rel);
1283
+ }
1284
+ /**
1285
+ * Add a directory to the server/Nitro TypeScript tsconfig includes.
1286
+ */
1287
+ addServerTsInclude(absolutePath) {
1288
+ const rel = relative(this.nuxt.options.buildDir, absolutePath) + "/**/*";
1289
+ this.nuxt.options.nitro.typescript ||= {};
1290
+ this.nuxt.options.nitro.typescript.tsConfig ||= {};
1291
+ this.nuxt.options.nitro.typescript.tsConfig.include ||= [];
1292
+ this.nuxt.options.nitro.typescript.tsConfig.include.push(rel);
1293
+ }
1294
+ /**
1295
+ * Add a path to Nitro's externals.inline for server-side usage.
1296
+ * @see https://github.com/nuxt/nuxt/issues/28995
1297
+ */
1298
+ inlineForNitro(path) {
1299
+ this.nuxt.options.nitro.externals ||= {};
1300
+ this.nuxt.options.nitro.externals.inline ||= [];
1301
+ this.nuxt.options.nitro.externals.inline.push(path);
1302
+ this.nuxt.options.build.transpile.push(path);
1303
+ }
1304
+ getMappedBlockBundle(bundle) {
1305
+ if (bundle === "BK_BUNDLE_FROM_LIBRARY") {
1306
+ return this.options.fromLibraryBlockBundle ?? "from_library";
1307
+ } else if (bundle === "BK_BUNDLE_FRAGMENT") {
1308
+ return this.options.fragmentBlockBundle ?? "blokkli_fragment";
1309
+ }
1310
+ return bundle;
1311
+ }
1312
+ validate(icons) {
1313
+ let hasErrors = false;
1314
+ const optionErrors = validateOptions(this.options.globalOptions, icons);
1315
+ if (optionErrors.length > 0) {
1316
+ const lines = optionErrors.map((error) => {
1317
+ const prefix = error.optionKey ? ` Option "${error.optionKey}": ` : " ";
1318
+ return prefix + error.message;
1319
+ });
1320
+ this.logger.error(
1321
+ `bl\xF6kkli global options validation errors:
1322
+ ${lines.join("\n")}`
1323
+ );
1324
+ hasErrors = true;
1325
+ }
1326
+ const colorErrors = validateColorOptions(this.options.colorOptions);
1327
+ if (colorErrors.length > 0) {
1328
+ const lines = colorErrors.map((error) => {
1329
+ const prefix = error.optionKey ? ` Option "${error.optionKey}": ` : " ";
1330
+ return prefix + error.message;
1331
+ });
1332
+ this.logger.error(
1333
+ `bl\xF6kkli colorOptions validation errors:
1334
+ ${lines.join("\n")}`
1335
+ );
1336
+ hasErrors = true;
1337
+ }
1338
+ return hasErrors;
1339
+ }
1340
+ }
1341
+
1342
+ const WRITE = false;
1343
+ class ModuleContext {
1344
+ constructor(helper, icons, features, blocks, theme) {
1345
+ this.helper = helper;
1346
+ this.icons = icons;
1347
+ this.features = features;
1348
+ this.blocks = blocks;
1349
+ this.theme = theme;
1350
+ }
1351
+ templates = [];
1352
+ templateContents = /* @__PURE__ */ new Map();
1353
+ adapterExtensions = [];
1354
+ featureFragments = /* @__PURE__ */ new Set();
1355
+ complexOptionTypes = /* @__PURE__ */ new Map();
1356
+ cssFiles = [];
1357
+ contentPaths = [];
1358
+ additionalIcons = [];
1359
+ collectors = [];
1360
+ addCSS(filePath) {
1361
+ this.cssFiles.push(filePath);
1362
+ }
1363
+ getCSSFiles() {
1364
+ return this.cssFiles;
1365
+ }
1366
+ /**
1367
+ * Register a directory containing Vue files that should participate in
1368
+ * blökkli's CSS build pipeline. Files in these directories will:
1369
+ * - Have their Tailwind utility classes generated and included in the output
1370
+ * - Have their template class names mangled (_bk_ prefix) at build time
1371
+ * - Have their <style> blocks processed through blökkli's PostCSS pipeline
1372
+ *
1373
+ * @param dirPath - Absolute path to a directory containing Vue components
1374
+ */
1375
+ addContentPath(dirPath) {
1376
+ this.contentPaths.push(dirPath);
1377
+ }
1378
+ getContentPaths() {
1379
+ return this.contentPaths;
1380
+ }
1381
+ addIcon(...names) {
1382
+ this.additionalIcons.push(...names);
1383
+ }
1384
+ getAdditionalIcons() {
1385
+ return this.additionalIcons;
1386
+ }
1387
+ addFeatureFragment(name) {
1388
+ if (this.featureFragments.has(name)) {
1389
+ throw new Error(`A feature fragment with name "${name}" already exists.`);
1390
+ }
1391
+ this.featureFragments.add(name);
1392
+ }
1393
+ getFeatureFragmentNames() {
1394
+ return [...this.featureFragments.values()];
1395
+ }
1396
+ registerComplexOptionType(def) {
1397
+ if (this.complexOptionTypes.has(def.id)) {
1398
+ throw new Error(
1399
+ `A complex option type with id "${def.id}" already exists.`
1400
+ );
1401
+ }
1402
+ this.complexOptionTypes.set(def.id, def);
1403
+ }
1404
+ getComplexOptionTypes() {
1405
+ return [...this.complexOptionTypes.values()];
1406
+ }
1407
+ registerAdapterExtension(namespace, path) {
1408
+ if (this.adapterExtensions.some((e) => e.namespace === namespace)) {
1409
+ throw new Error(`Duplicate adapter extension namespace: ${namespace}`);
1410
+ }
1411
+ this.adapterExtensions.push({ namespace, path });
1412
+ }
1413
+ getAdapterExtensions() {
1414
+ return this.adapterExtensions;
1415
+ }
1416
+ addCollector(collector) {
1417
+ this.collectors.push(collector);
1418
+ }
1419
+ getTemplateContents(type, name) {
1420
+ const contents = this.templateContents.get(type + name);
1421
+ if (contents === void 0) {
1422
+ throw new Error(
1423
+ `Failed to get contents for template "${name}" of type ${type}`
1424
+ );
1425
+ }
1426
+ return contents;
1427
+ }
1428
+ setTemplateContents(type, name, contents) {
1429
+ this.templateContents.set(type + name, contents.trim());
1430
+ }
1431
+ async generateTemplates(dependencies) {
1432
+ for (const template of this.templates) {
1433
+ if (dependencies?.length) {
1434
+ const shouldUpdate = dependencies.some(
1435
+ (v) => template.options.dependencies.includes(v)
1436
+ );
1437
+ if (!shouldUpdate) {
1438
+ continue;
1439
+ }
1440
+ }
1441
+ if (template.type === "code") {
1442
+ this.setTemplateContents(
1443
+ "code",
1444
+ template.name,
1445
+ await template.buildCode(this)
1446
+ );
1447
+ this.setTemplateContents(
1448
+ "types",
1449
+ template.name,
1450
+ await template.buildTypes(this)
1451
+ );
1452
+ } else {
1453
+ this.setTemplateContents(
1454
+ "file",
1455
+ template.fileName,
1456
+ await template.build(this)
1457
+ );
1458
+ }
1459
+ }
1460
+ }
1461
+ addTemplate(template) {
1462
+ this.templates.push(template);
1463
+ const context = template.options.context;
1464
+ if (template.type === "code") {
1465
+ const resolvedTemplate = addTemplate({
1466
+ filename: `blokkli/${template.name}.js`,
1467
+ write: template.options.write || WRITE,
1468
+ getContents: () => this.getTemplateContents("code", template.name)
1469
+ });
1470
+ if (context === "server" || context === "both") {
1471
+ this.inlineForNitro(resolvedTemplate.dst);
1472
+ }
1473
+ this.addTypeTemplate(
1474
+ `blokkli/${template.name}.d.ts`,
1475
+ () => {
1476
+ const lines = this.getTemplateContents("types", template.name).trim().split("\n");
1477
+ const imports = [];
1478
+ const declarations = [];
1479
+ for (const line of lines) {
1480
+ if (line.startsWith("import ")) {
1481
+ imports.push(line);
1482
+ } else {
1483
+ declarations.push(line);
1484
+ }
1485
+ }
1486
+ return `${imports.join("\n")}
1487
+
1488
+ declare module '#blokkli-build/${template.name}' {
1489
+ ${declarations.join("\n ")}
1490
+ }`;
1491
+ },
1492
+ context
1493
+ );
1494
+ } else {
1495
+ const filename = template.fileName.startsWith("/") ? template.fileName : `blokkli/${template.fileName}`;
1496
+ if (filename.endsWith(".d.ts")) {
1497
+ this.addTypeTemplate(
1498
+ filename,
1499
+ () => this.getTemplateContents("file", template.fileName),
1500
+ context
1501
+ );
1502
+ } else {
1503
+ const resolvedTemplate = addTemplate({
1504
+ filename,
1505
+ write: true,
1506
+ getContents: () => this.getTemplateContents("file", template.fileName)
1507
+ });
1508
+ if (context === "server" || context === "both") {
1509
+ this.inlineForNitro(resolvedTemplate.dst);
1510
+ }
1511
+ }
1512
+ }
1513
+ }
1514
+ /**
1515
+ * Add a template path to Nitro's externals.inline for server-side usage.
1516
+ * @see https://github.com/nuxt/nuxt/issues/28995
1517
+ */
1518
+ inlineForNitro(path) {
1519
+ const nuxt = this.helper.nuxt;
1520
+ nuxt.options.nitro.externals ||= {};
1521
+ nuxt.options.nitro.externals.inline ||= [];
1522
+ nuxt.options.nitro.externals.inline.push(path);
1523
+ nuxt.options.build.transpile.push(path);
1524
+ }
1525
+ /**
1526
+ * Register a type template without adding to globalTypeFiles.
1527
+ *
1528
+ * Uses addTemplate instead of addTypeTemplate to avoid Vue compiler-sfc
1529
+ * issue where exported types from globalTypeFiles cannot be resolved.
1530
+ * @see https://github.com/nuxt/nuxt/issues/33694
1531
+ */
1532
+ addTypeTemplate(filename, getContents, context = "app") {
1533
+ const resolvedTemplate = addTemplate({
1534
+ filename,
1535
+ write: true,
1536
+ getContents
1537
+ });
1538
+ const forApp = context === "app" || context === "both";
1539
+ const forServer = context === "server" || context === "both";
1540
+ if (forApp) {
1541
+ this.helper.nuxt.hook("prepare:types", (payload) => {
1542
+ payload.references ||= [];
1543
+ payload.references.push({ path: resolvedTemplate.dst });
1544
+ });
1545
+ }
1546
+ if (forServer) {
1547
+ this.helper.nuxt.hook("nitro:prepare:types", (payload) => {
1548
+ payload.references ||= [];
1549
+ payload.references.push({ path: resolvedTemplate.dst });
1550
+ });
1551
+ }
1552
+ }
1553
+ }
1554
+
1555
+ function toObject(name, map, noExport) {
1556
+ const lines = [...map.entries()].map(([key, value]) => {
1557
+ return `'${key}': ${value}`;
1558
+ }).sort().join(",\n ");
1559
+ if (noExport) {
1560
+ return `
1561
+ const ${name} = {
1562
+ ${lines}
1563
+ }
1564
+ `;
1565
+ }
1566
+ return `
1567
+ export const ${name} = {
1568
+ ${lines}
1569
+ }
1570
+ `;
1571
+ }
1572
+ function toImports(map) {
1573
+ return [...map.entries()].map(([key, path]) => {
1574
+ return `import ${key} from '${path}'`;
1575
+ }).sort().join("\n");
1576
+ }
1577
+ function toTypeLiteral(value) {
1578
+ if (value === null) {
1579
+ return "null";
1580
+ }
1581
+ if (value === void 0) {
1582
+ return "undefined";
1583
+ }
1584
+ if (typeof value === "string") {
1585
+ return JSON.stringify(value);
1586
+ }
1587
+ if (typeof value === "number" || typeof value === "boolean") {
1588
+ return String(value);
1589
+ }
1590
+ if (Array.isArray(value)) {
1591
+ if (value.length === 0) {
1592
+ return "[]";
1593
+ }
1594
+ const items = value.map((v) => toTypeLiteral(v));
1595
+ return `[${items.join(", ")}]`;
1596
+ }
1597
+ if (typeof value === "object") {
1598
+ const entries = Object.entries(value);
1599
+ if (entries.length === 0) {
1600
+ return "{}";
1601
+ }
1602
+ const props = entries.map(([key, val]) => {
1603
+ const safeKey = /^[a-z_$][\w$]*$/i.test(key) ? key : JSON.stringify(key);
1604
+ return `${safeKey}: ${toTypeLiteral(val)}`;
1605
+ }).join("; ");
1606
+ return `{ ${props} }`;
1607
+ }
1608
+ return "unknown";
1609
+ }
1610
+
1611
+ const USED_MATERIAL_ICONS = [
1612
+ "bk_mdi_account_tree",
1613
+ "bk_mdi_add",
1614
+ "bk_mdi_add_column_right",
1615
+ "bk_mdi_add_comment",
1616
+ "bk_mdi_add_row_below",
1617
+ "bk_mdi_alternate_email",
1618
+ "bk_mdi_anchor",
1619
+ "bk_mdi_architecture",
1620
+ "bk_mdi_area_chart",
1621
+ "bk_mdi_arrow_back",
1622
+ "bk_mdi_arrow_downward",
1623
+ "bk_mdi_arrow_drop_down",
1624
+ "bk_mdi_arrow_forward",
1625
+ "bk_mdi_arrow_left",
1626
+ "bk_mdi_arrow_left_alt",
1627
+ "bk_mdi_arrow_right",
1628
+ "bk_mdi_arrow_right_alt",
1629
+ "bk_mdi_arrow_selector_tool",
1630
+ "bk_mdi_arrow_top_left",
1631
+ "bk_mdi_arrow_upward",
1632
+ "bk_mdi_attach_file",
1633
+ "bk_mdi_bakery_dining",
1634
+ "bk_mdi_bar_chart",
1635
+ "bk_mdi_book_2",
1636
+ "bk_mdi_bug_report",
1637
+ "bk_mdi_build-fill",
1638
+ "bk_mdi_calendar_clock",
1639
+ "bk_mdi_calendar_month",
1640
+ "bk_mdi_campaign",
1641
+ "bk_mdi_chat",
1642
+ "bk_mdi_chat_bubble-fill",
1643
+ "bk_mdi_check",
1644
+ "bk_mdi_check_box",
1645
+ "bk_mdi_check_box_outline_blank",
1646
+ "bk_mdi_check_circle",
1647
+ "bk_mdi_check_circle-fill",
1648
+ "bk_mdi_checklist",
1649
+ "bk_mdi_chevron_backward",
1650
+ "bk_mdi_chevron_forward",
1651
+ "bk_mdi_close",
1652
+ "bk_mdi_code",
1653
+ "bk_mdi_collapse_all",
1654
+ "bk_mdi_comment",
1655
+ "bk_mdi_construction",
1656
+ "bk_mdi_content_copy",
1657
+ "bk_mdi_content_paste",
1658
+ "bk_mdi_crop_9_16",
1659
+ "bk_mdi_csv",
1660
+ "bk_mdi_dashboard",
1661
+ "bk_mdi_data_object",
1662
+ "bk_mdi_delete",
1663
+ "bk_mdi_dock_to_left",
1664
+ "bk_mdi_dock_to_right",
1665
+ "bk_mdi_docs",
1666
+ "bk_mdi_done_all",
1667
+ "bk_mdi_donut_large",
1668
+ "bk_mdi_download",
1669
+ "bk_mdi_drag_pan",
1670
+ "bk_mdi_edit",
1671
+ "bk_mdi_error",
1672
+ "bk_mdi_error-fill",
1673
+ "bk_mdi_exit_to_app",
1674
+ "bk_mdi_expand_all",
1675
+ "bk_mdi_extension",
1676
+ "bk_mdi_eye_tracking",
1677
+ "bk_mdi_feature_search",
1678
+ "bk_mdi_fit_screen",
1679
+ "bk_mdi_format_bold",
1680
+ "bk_mdi_format_italic",
1681
+ "bk_mdi_format_list_bulleted",
1682
+ "bk_mdi_format_list_numbered",
1683
+ "bk_mdi_format_quote",
1684
+ "bk_mdi_format_strikethrough",
1685
+ "bk_mdi_forum",
1686
+ "bk_mdi_fullscreen",
1687
+ "bk_mdi_fullscreen_exit",
1688
+ "bk_mdi_function",
1689
+ "bk_mdi_grid_view",
1690
+ "bk_mdi_grid_view-fill",
1691
+ "bk_mdi_groups_2",
1692
+ "bk_mdi_help",
1693
+ "bk_mdi_help-fill",
1694
+ "bk_mdi_history",
1695
+ "bk_mdi_hourglass_empty",
1696
+ "bk_mdi_image",
1697
+ "bk_mdi_info-fill",
1698
+ "bk_mdi_ink_selection",
1699
+ "bk_mdi_inventory",
1700
+ "bk_mdi_join",
1701
+ "bk_mdi_keyboard_arrow_down",
1702
+ "bk_mdi_keyboard_command_key",
1703
+ "bk_mdi_laptop_mac",
1704
+ "bk_mdi_lightbulb",
1705
+ "bk_mdi_link",
1706
+ "bk_mdi_lists",
1707
+ "bk_mdi_lock",
1708
+ "bk_mdi_logo_dev",
1709
+ "bk_mdi_mark_chat_read",
1710
+ "bk_mdi_menu",
1711
+ "bk_mdi_mobile",
1712
+ "bk_mdi_mobile_rotate",
1713
+ "bk_mdi_monitor",
1714
+ "bk_mdi_newspaper",
1715
+ "bk_mdi_notifications",
1716
+ "bk_mdi_open_in_new",
1717
+ "bk_mdi_palette",
1718
+ "bk_mdi_person",
1719
+ "bk_mdi_person-fill",
1720
+ "bk_mdi_person_search",
1721
+ "bk_mdi_pie_chart",
1722
+ "bk_mdi_play_circle",
1723
+ "bk_mdi_priority_high",
1724
+ "bk_mdi_publish",
1725
+ "bk_mdi_qr_code",
1726
+ "bk_mdi_question_mark",
1727
+ "bk_mdi_radar",
1728
+ "bk_mdi_radio_button_checked",
1729
+ "bk_mdi_redo",
1730
+ "bk_mdi_remove",
1731
+ "bk_mdi_replay",
1732
+ "bk_mdi_reply",
1733
+ "bk_mdi_resize",
1734
+ "bk_mdi_robot",
1735
+ "bk_mdi_save",
1736
+ "bk_mdi_school-fill",
1737
+ "bk_mdi_search",
1738
+ "bk_mdi_select",
1739
+ "bk_mdi_select_all",
1740
+ "bk_mdi_select_check_box",
1741
+ "bk_mdi_sentiment_dissatisfied",
1742
+ "bk_mdi_sentiment_worried",
1743
+ "bk_mdi_settings",
1744
+ "bk_mdi_show_chart",
1745
+ "bk_mdi_speed",
1746
+ "bk_mdi_stack_group",
1747
+ "bk_mdi_stop",
1748
+ "bk_mdi_stream",
1749
+ "bk_mdi_swap_horiz",
1750
+ "bk_mdi_swap_horizontal_circle",
1751
+ "bk_mdi_swap_vert",
1752
+ "bk_mdi_table_convert",
1753
+ "bk_mdi_tablet",
1754
+ "bk_mdi_text_compare",
1755
+ "bk_mdi_text_select_end",
1756
+ "bk_mdi_texture",
1757
+ "bk_mdi_thumb_down",
1758
+ "bk_mdi_thumb_up",
1759
+ "bk_mdi_thumbs_up_double",
1760
+ "bk_mdi_title",
1761
+ "bk_mdi_track_changes",
1762
+ "bk_mdi_trackpad_input",
1763
+ "bk_mdi_translate",
1764
+ "bk_mdi_tune",
1765
+ "bk_mdi_undo",
1766
+ "bk_mdi_unpublished",
1767
+ "bk_mdi_upload",
1768
+ "bk_mdi_verified",
1769
+ "bk_mdi_video_camera_back",
1770
+ "bk_mdi_visibility",
1771
+ "bk_mdi_visibility_off",
1772
+ "bk_mdi_warning",
1773
+ "bk_mdi_web_traffic",
1774
+ "bk_mdi_widgets",
1775
+ "bk_mdi_workspaces",
1776
+ "bk_mdi_zoom_in"
1777
+ ];
1778
+
1779
+ function getIconsFromOptions(options) {
1780
+ return Object.values(options ?? {}).flatMap((option) => {
1781
+ if (option.type === "radios" && option.displayAs === "icons") {
1782
+ return Object.values(option.options ?? {}).map((v) => v.icon);
1783
+ }
1784
+ }).filter(falsy);
1785
+ }
1786
+ const icons = defineCodeTemplate(
1787
+ "icons",
1788
+ (ctx) => {
1789
+ const imports = /* @__PURE__ */ new Map();
1790
+ const icons = /* @__PURE__ */ new Map();
1791
+ const files = ctx.icons.files.values();
1792
+ const blockIcons = [...ctx.blocks.files.values()].flatMap((v) => {
1793
+ const icon = v.definition?.editor?.icon;
1794
+ return [icon, ...getIconsFromOptions(v.definition?.options)];
1795
+ });
1796
+ const featureIcons = [...ctx.features.files.values()].map(
1797
+ (v) => v.getDefinition()?.definition.icon
1798
+ );
1799
+ const globalOptionsIcons = getIconsFromOptions(
1800
+ ctx.helper.options.globalOptions
1801
+ );
1802
+ const definitionIcons = [
1803
+ ...blockIcons,
1804
+ ...featureIcons,
1805
+ ...USED_MATERIAL_ICONS,
1806
+ ...globalOptionsIcons,
1807
+ ...ctx.getAdditionalIcons()
1808
+ ].filter(falsy).filter(onlyUnique);
1809
+ for (const file of files) {
1810
+ const name = basename(file.filePath, ".svg").toLowerCase();
1811
+ const importName = "icon_" + toValidVariableName(name);
1812
+ const realtivePath = ctx.helper.toModuleBuildRelative(file.filePath);
1813
+ imports.set(importName, `${realtivePath}?raw`);
1814
+ icons.set(name, importName);
1815
+ }
1816
+ const materialIcons = definitionIcons.filter(
1817
+ (v) => v.startsWith("bk_mdi_") && ctx.icons.isValidIconName(v)
1818
+ );
1819
+ for (const icon of materialIcons) {
1820
+ const importName = "icon_" + toValidVariableName(icon);
1821
+ const mdiImportName = icon.replace("bk_mdi_", "");
1822
+ imports.set(
1823
+ importName,
1824
+ `@material-symbols/svg-600/rounded/${mdiImportName}.svg?raw`
1825
+ );
1826
+ icons.set(icon, importName);
1827
+ }
1828
+ return `${toImports(imports)}
1829
+
1830
+ ${toObject("icons", icons)}
1831
+ `;
1832
+ },
1833
+ (ctx) => {
1834
+ const allIconNames = [...ctx.icons.files.values()].map((file) => {
1835
+ return basename(file.filePath, ".svg").toLowerCase();
1836
+ }).sort().map((name) => `"${name}"`).join("\n | ") || "'never'";
1837
+ return `
1838
+ import type { MaterialIconName } from './material-icons.d'
1839
+
1840
+ type ProvidedIconName =
1841
+ | ${allIconNames}
1842
+
1843
+ export type BlokkliIcon = MaterialIconName | ProvidedIconName
1844
+ export declare const icons: Record<BlokkliIcon, string>
1845
+ `;
1846
+ },
1847
+ {
1848
+ dependencies: ["icons", "block-content"]
1849
+ }
1850
+ );
1851
+
1852
+ const features = defineCodeTemplate(
1853
+ "features",
1854
+ (ctx) => {
1855
+ const features = ctx.features.getEnabledFeatures().sort((a, b) => b.id.localeCompare(a.id));
1856
+ const featuresComponents = /* @__PURE__ */ new Map();
1857
+ const definitions = [];
1858
+ const declarations = [];
1859
+ const imports = /* @__PURE__ */ new Map();
1860
+ for (const feature of features) {
1861
+ if (feature.definition.devOnly && !ctx.helper.isDev) {
1862
+ continue;
1863
+ }
1864
+ const componentVarName = toValidVariableName(`component_${feature.id}`);
1865
+ const declarationVarName = toValidVariableName(`feature_${feature.id}`);
1866
+ declarations.push(
1867
+ `const ${declarationVarName} = ${feature.definitionSource}`
1868
+ );
1869
+ definitions.push(declarationVarName);
1870
+ imports.set(componentVarName, feature.componentPath);
1871
+ featuresComponents.set(feature.id, componentVarName);
1872
+ }
1873
+ const availableFeaturesAtBuild = features.map((v) => v.id);
1874
+ return `${toImports(imports)}
1875
+
1876
+ export const availableFeaturesAtBuild = ${JSON.stringify(
1877
+ availableFeaturesAtBuild.sort()
1878
+ )}
1879
+
1880
+ ${toObject("featureComponents", featuresComponents)}
1881
+
1882
+ ${declarations.join("\n\n")}
1883
+
1884
+ export const featureDefinitions = [
1885
+ ${definitions.join(",\n ")}
1886
+ ]
1887
+ `;
1888
+ },
1889
+ (ctx) => {
1890
+ const features = ctx.features.getEnabledFeatures();
1891
+ const availableFeaturesAtBuild = features.map((v) => v.id);
1892
+ const typeImports = [];
1893
+ for (const feature of features) {
1894
+ const typesPath = feature.componentPath.replace("/index.vue", "/types.ts");
1895
+ if (existsSync(typesPath)) {
1896
+ const relativePath = ctx.helper.toModuleBuildRelative(
1897
+ feature.componentPath.replace("/index.vue", "/types")
1898
+ );
1899
+ typeImports.push(`import '${relativePath}'`);
1900
+ }
1901
+ }
1902
+ const typeImportsCode = typeImports.length > 0 ? "\n" + typeImports.join("\n") + "\n" : "";
1903
+ return `import type { FeatureDefinition } from '${ctx.helper.relativePaths.TYPES}'
1904
+ import type { Component } from 'vue'
1905
+ ${typeImportsCode}
1906
+ export type ValidFeatureKey = ${availableFeaturesAtBuild.map((v) => '"' + v + '"').join(" | ")}
1907
+
1908
+ export declare const featureComponents: Record<ValidFeatureKey, Component>
1909
+ export declare const featureDefinitions: FeatureDefinition[]
1910
+ export declare const availableFeaturesAtBuild: ValidFeatureKey[]
1911
+ `;
1912
+ },
1913
+ {
1914
+ dependencies: ["features"]
1915
+ }
1916
+ );
1917
+
1918
+ const featuresJson = defineFileTemplate("features-data.json", async (ctx) => {
1919
+ const features = [...ctx.features.files.values()];
1920
+ const featuresData = await Promise.all(
1921
+ features.map(async (v) => {
1922
+ const docsPath = v.filePath.replace("index.vue", "docs.md");
1923
+ let docs = "";
1924
+ if (ctx.helper.fileCache.fileExists(docsPath)) {
1925
+ docs = await ctx.helper.fileCache.read(docsPath);
1926
+ }
1927
+ return {
1928
+ definition: v.getDefinition()?.definition,
1929
+ repoRelativePath: v.filePath.replace(/.*\/src/, "/src"),
1930
+ docs
1931
+ };
1932
+ })
1933
+ );
1934
+ return JSON.stringify(featuresData, null, 2);
1935
+ });
1936
+
1937
+ const TRANSLATIONS_DIR = "./runtime/editor/translations";
1938
+ const translations = defineCodeTemplate(
1939
+ "translations",
1940
+ (ctx) => {
1941
+ const userTranslations = ctx.helper.options.translations;
1942
+ const hasUserTranslations = userTranslations && Object.keys(userTranslations).length > 0;
1943
+ const loaderEntries = TRANSLATION_LANGUAGES.map((lang) => {
1944
+ const relativePath = ctx.helper.toModuleBuildRelative(
1945
+ ctx.helper.resolvers.module.resolve(`${TRANSLATIONS_DIR}/${lang}.json`)
1946
+ );
1947
+ const body = hasUserTranslations ? `defu(userTranslations['${lang}'] ?? {}, mod.default)` : `mod.default`;
1948
+ return ` '${lang}': async () => {
1949
+ const mod = await import('${relativePath}')
1950
+ return ${body}
1951
+ }`;
1952
+ }).join(",\n");
1953
+ const preamble = hasUserTranslations ? `import { defu } from 'defu'
1954
+
1955
+ const userTranslations = ${JSON.stringify(userTranslations)}
1956
+
1957
+ ` : "";
1958
+ return `${preamble}export const translationLoaders = {
1959
+ ${loaderEntries}
1960
+ }
1961
+ `;
1962
+ },
1963
+ () => {
1964
+ const typeUnion = ["en", ...TRANSLATION_LANGUAGES].map((lang) => `'${lang}'`).join(" | ");
1965
+ return `
1966
+ export type InterfaceLanguage = ${typeUnion}
1967
+ export type TranslationMap = Record<string, string>
1968
+ export type TranslationLoaders = Partial<Record<InterfaceLanguage, () => Promise<TranslationMap>>>
1969
+ export const translationLoaders: TranslationLoaders
1970
+ `;
1971
+ }
1972
+ );
1973
+
1974
+ const editAdapter = defineCodeTemplate(
1975
+ "edit-adapter",
1976
+ (ctx) => {
1977
+ const pathRelative = ctx.helper.toModuleBuildRelative(
1978
+ ctx.helper.paths.editAdapter
1979
+ );
1980
+ return `
1981
+ import adapter from '${pathRelative}'
1982
+
1983
+ export default adapter
1984
+ `;
1985
+ },
1986
+ (ctx) => {
1987
+ return `
1988
+ import type { BlokkliAdapterFactory } from '${ctx.helper.relativePaths.ADAPTER}'
1989
+
1990
+ const adapter: BlokkliAdapterFactory<any>
1991
+
1992
+ export default adapter
1993
+ `;
1994
+ },
1995
+ {
1996
+ write: true
1997
+ }
1998
+ );
1999
+
2000
+ const adapterExtensions = defineCodeTemplate(
2001
+ "adapter-extensions",
2002
+ (ctx) => {
2003
+ const extensions = ctx.getAdapterExtensions();
2004
+ if (extensions.length === 0) {
2005
+ return `export default []`;
2006
+ }
2007
+ const imports = extensions.map(
2008
+ (ext, i) => `import ext${i} from '${ctx.helper.toModuleBuildRelative(ext.path)}'`
2009
+ ).join("\n");
2010
+ return `
2011
+ ${imports}
2012
+
2013
+ export default [
2014
+ ${extensions.map((ext, i) => `{ namespace: '${ext.namespace}', factory: ext${i} }`).join(",\n ")}
2015
+ ]
2016
+ `;
2017
+ },
2018
+ (ctx) => {
2019
+ return `
2020
+ import type { AdapterExtensionDefinition } from '${ctx.helper.toModuleBuildRelative(ctx.helper.resolvers.module.resolve("./runtime/editor/providers/adapters.ts"))}'
2021
+
2022
+ const adapterExtensions: AdapterExtensionDefinition[]
2023
+
2024
+ export default adapterExtensions
2025
+ `;
2026
+ },
2027
+ {
2028
+ write: true
2029
+ }
2030
+ );
2031
+
2032
+ const logger$2 = useLogger("@blokkli/editor");
2033
+ let processor = null;
2034
+ let processorUnavailable = false;
2035
+ function postcssMangleClasses(selectorParser) {
2036
+ const plugin = () => ({
2037
+ postcssPlugin: "postcss-mangle-blokkli-classes",
2038
+ OnceExit(root) {
2039
+ root.walkRules((rule) => {
2040
+ if (rule.parent && rule.parent.type === "atrule" && rule.parent.name === "keyframes") {
2041
+ return;
2042
+ }
2043
+ rule.selector = selectorParser((selectors) => {
2044
+ selectors.each((selector) => {
2045
+ let hasMangled = false;
2046
+ let hasBk = false;
2047
+ selector.walkClasses((classNode) => {
2048
+ if (classNode.value === "bk") {
2049
+ hasBk = true;
2050
+ return;
2051
+ }
2052
+ if (classNode.value.startsWith("bk-")) return;
2053
+ if (classNode.value.startsWith("_bk_")) {
2054
+ hasMangled = true;
2055
+ return;
2056
+ }
2057
+ classNode.value = "_bk_" + classNode.value;
2058
+ hasMangled = true;
2059
+ });
2060
+ if (hasMangled && !hasBk) {
2061
+ const descendant = selector.clone();
2062
+ descendant.prepend(selectorParser.combinator({ value: " " }));
2063
+ descendant.prepend(selectorParser.className({ value: "bk" }));
2064
+ const compound = selector.clone();
2065
+ compound.prepend(selectorParser.className({ value: "bk" }));
2066
+ selector.replaceWith(descendant, compound);
2067
+ }
2068
+ });
2069
+ }).processSync(rule.selector);
2070
+ });
2071
+ }
2072
+ });
2073
+ plugin.postcss = true;
2074
+ return plugin;
2075
+ }
2076
+ async function ensureProcessor() {
2077
+ if (processor || processorUnavailable) return processor;
2078
+ processor = await createProcessor();
2079
+ return processor;
2080
+ }
2081
+ async function processCSS(css, from, contentPaths) {
2082
+ const proc = await ensureProcessor();
2083
+ if (!proc) return css;
2084
+ const sourceDirectives = contentPaths?.length ? "\n" + contentPaths.map((dir) => `@source "${dir}/**/*.vue";`).join("\n") : "";
2085
+ const result = await proc.process(css + sourceDirectives, {
2086
+ from: from || "module.css"
2087
+ });
2088
+ return result.css;
2089
+ }
2090
+ function resetProcessor() {
2091
+ processor = null;
2092
+ }
2093
+ async function createProcessor() {
2094
+ const _require = createRequire(import.meta.url);
2095
+ try {
2096
+ const postcss = _require("postcss");
2097
+ const postcssImport = _require("postcss-import");
2098
+ const postcssNesting = _require("postcss-nesting");
2099
+ const tailwindPostcss = _require("@tailwindcss/postcss");
2100
+ const selectorParser = _require("postcss-selector-parser");
2101
+ const postcssReplace = _require("postcss-replace");
2102
+ const remToPx = _require("@thedutchcoder/postcss-rem-to-px");
2103
+ const plugins = [
2104
+ (postcssImport.default || postcssImport)(),
2105
+ (postcssNesting.default || postcssNesting)(),
2106
+ (tailwindPostcss.default || tailwindPostcss)(),
2107
+ postcssMangleClasses(selectorParser)(),
2108
+ // Same scoping rules as postcss.config.cjs: scope selectors to .bk
2109
+ // and rename Tailwind CSS variables from --tw-* to --bk-tw-*.
2110
+ (postcssReplace.default || postcssReplace)({
2111
+ pattern: /(--tw|\*, ::before, ::after)/g,
2112
+ data: {
2113
+ "--tw": "--bk-tw",
2114
+ "*, ::before, ::after": ".bk, .bk *, .bk-sidebar, .bk ::before, .bk ::after, .bk-vars, .bk-vars ::before, .bk-vars ::after",
2115
+ "::backdrop": ".bk::backdrop, .bk ::backdrop"
2116
+ }
2117
+ }),
2118
+ (remToPx.default || remToPx)({ baseValue: 16 })
2119
+ ];
2120
+ return postcss(plugins);
2121
+ } catch (e) {
2122
+ if (e.code === "MODULE_NOT_FOUND") {
2123
+ processorUnavailable = true;
2124
+ const missing = e.message.match(/Cannot find module '([^']+)'/)?.[1] || "unknown";
2125
+ logger$2.warn(
2126
+ `bl\xF6kkli's PostCSS pipeline is disabled \u2014 missing dependency "${missing}". This is only required if you author custom bl\xF6kkli modules or features that use Tailwind v4 \`@apply\` / \`theme()\` in their <style> blocks. To enable it, install:
2127
+ npm install -D postcss tailwindcss @tailwindcss/postcss postcss-import postcss-nesting postcss-replace @thedutchcoder/postcss-rem-to-px`
2128
+ );
2129
+ return null;
2130
+ }
2131
+ throw e;
2132
+ }
2133
+ }
2134
+
2135
+ function mangleClassName(name) {
2136
+ if (name === "bk" || name.startsWith("bk-") || name.startsWith("_bk_")) {
2137
+ return name;
2138
+ }
2139
+ return "_bk_" + name;
2140
+ }
2141
+ function mangleClassString(str) {
2142
+ return str.split(/\s+/).filter(Boolean).map(mangleClassName).join(" ");
2143
+ }
2144
+
2145
+ function collectClassReplacements(node, out) {
2146
+ switch (node.type) {
2147
+ case "Literal":
2148
+ if (typeof node.value === "string" && node.value) {
2149
+ const mangled = mangleClassString(node.value);
2150
+ if (mangled !== node.value) {
2151
+ out.push({ start: node.start + 1, end: node.end - 1, value: mangled });
2152
+ }
2153
+ }
2154
+ break;
2155
+ case "ObjectExpression":
2156
+ for (const prop of node.properties) {
2157
+ if (prop.type === "Property") {
2158
+ if (prop.key.type === "Literal" && typeof prop.key.value === "string") {
2159
+ const mangled = mangleClassString(prop.key.value);
2160
+ if (mangled !== prop.key.value) {
2161
+ out.push({
2162
+ start: prop.key.start + 1,
2163
+ end: prop.key.end - 1,
2164
+ value: mangled
2165
+ });
2166
+ }
2167
+ } else if (prop.computed) {
2168
+ collectClassReplacements(prop.key, out);
2169
+ }
2170
+ }
2171
+ }
2172
+ break;
2173
+ case "ArrayExpression":
2174
+ for (const el of node.elements) {
2175
+ if (el) collectClassReplacements(el, out);
2176
+ }
2177
+ break;
2178
+ case "ConditionalExpression":
2179
+ collectClassReplacements(node.consequent, out);
2180
+ collectClassReplacements(node.alternate, out);
2181
+ break;
2182
+ case "LogicalExpression":
2183
+ collectClassReplacements(node.left, out);
2184
+ collectClassReplacements(node.right, out);
2185
+ break;
2186
+ case "CallExpression":
2187
+ if (node.callee.type === "Identifier" && node.callee.name === "tw") {
2188
+ for (const arg of node.arguments) {
2189
+ if (arg.type === "Literal" && typeof arg.value === "string") {
2190
+ const mangled = mangleClassString(arg.value);
2191
+ if (mangled !== arg.value) {
2192
+ out.push({
2193
+ start: arg.start + 1,
2194
+ end: arg.end - 1,
2195
+ value: mangled
2196
+ });
2197
+ }
2198
+ }
2199
+ }
2200
+ }
2201
+ break;
2202
+ }
2203
+ }
2204
+ function mangleClassExpression(expr) {
2205
+ let ast;
2206
+ try {
2207
+ ast = acorn.parse("(" + expr + ")", {
2208
+ ecmaVersion: 2022,
2209
+ sourceType: "module"
2210
+ });
2211
+ } catch {
2212
+ return expr;
2213
+ }
2214
+ const body = ast.body[0];
2215
+ if (!body || body.type !== "ExpressionStatement") return expr;
2216
+ const replacements = [];
2217
+ collectClassReplacements(body.expression, replacements);
2218
+ if (replacements.length === 0) return expr;
2219
+ replacements.sort((a, b) => b.start - a.start);
2220
+ let result = expr;
2221
+ for (const r of replacements) {
2222
+ result = result.slice(0, r.start - 1) + r.value + result.slice(r.end - 1);
2223
+ }
2224
+ return result;
2225
+ }
2226
+ const CLASS_BEARING_PROPS = ["button-class", "background-class"];
2227
+ function mangleTemplateAndScript(code) {
2228
+ let result = code;
2229
+ result = result.replace(
2230
+ /(?<![-:.])\bclass="([^"]*)"/g,
2231
+ (_match, value) => `class="${mangleClassString(value)}"`
2232
+ );
2233
+ for (const prop of CLASS_BEARING_PROPS) {
2234
+ const staticAttr = new RegExp(`(?<![:.])\\b${prop}="([^"]*)"`, "g");
2235
+ result = result.replace(
2236
+ staticAttr,
2237
+ (_match, value) => `${prop}="${mangleClassString(value)}"`
2238
+ );
2239
+ }
2240
+ result = result.replace(
2241
+ /\btw\(\s*(['"])([\s\S]*?)\1\s*\)/g,
2242
+ (_match, quote, value) => `tw(${quote}${mangleClassString(value)}${quote})`
2243
+ );
2244
+ result = result.replace(
2245
+ /(?::|v-bind:)class="([^"]*)"/g,
2246
+ (_match, expr) => `:class="${mangleClassExpression(expr)}"`
2247
+ );
2248
+ for (const prop of CLASS_BEARING_PROPS) {
2249
+ const boundAttr = new RegExp(`(:|v-bind:)${prop}="([^"]*)"`, "g");
2250
+ result = result.replace(
2251
+ boundAttr,
2252
+ (_match, prefix, expr) => `${prefix}${prop}="${mangleClassExpression(expr)}"`
2253
+ );
2254
+ }
2255
+ return result;
2256
+ }
2257
+ function withTailwindConfig(cssContent, tailwindConfigPath) {
2258
+ if (cssContent.includes("@reference") || cssContent.includes("@config")) {
2259
+ return cssContent;
2260
+ }
2261
+ const leadingPattern = /^(?:\s*(?:\/\*[\s\S]*?\*\/|@charset[^;]*;|@import[^;]*;|@layer\s[\w\s,-]+;))*\s*/;
2262
+ const match = cssContent.match(leadingPattern);
2263
+ const insertAt = match ? match[0].length : 0;
2264
+ const injection = `@reference 'tailwindcss';
2265
+ @config '${tailwindConfigPath}';
2266
+ `;
2267
+ return cssContent.slice(0, insertAt) + injection + cssContent.slice(insertAt);
2268
+ }
2269
+ let stripProcessor = null;
2270
+ async function stripDistBoilerplate(css) {
2271
+ if (!stripProcessor) {
2272
+ const _require = createRequire(import.meta.url);
2273
+ const postcss = _require("postcss");
2274
+ const plugin = () => ({
2275
+ postcssPlugin: "postcss-strip-blokkli-dist-boilerplate",
2276
+ Once(root) {
2277
+ const toUnwrap = [];
2278
+ const toRemove = [];
2279
+ root.walkAtRules("layer", (atRule) => {
2280
+ if (!atRule.nodes) {
2281
+ toRemove.push(atRule);
2282
+ return;
2283
+ }
2284
+ const name = atRule.params.trim();
2285
+ if (name === "base" || name === "theme" || name === "properties") {
2286
+ toRemove.push(atRule);
2287
+ } else if (name === "components" || name === "utilities") {
2288
+ toUnwrap.push(atRule);
2289
+ }
2290
+ });
2291
+ root.walkAtRules("property", (atRule) => {
2292
+ if (atRule.params.startsWith("--bk-tw-")) {
2293
+ toRemove.push(atRule);
2294
+ }
2295
+ });
2296
+ for (const r of toUnwrap) r.replaceWith(r.nodes);
2297
+ for (const r of toRemove) r.remove();
2298
+ }
2299
+ });
2300
+ plugin.postcss = true;
2301
+ stripProcessor = postcss([plugin()]);
2302
+ }
2303
+ const result = await stripProcessor.process(css, { from: void 0 });
2304
+ return result.css;
2305
+ }
2306
+ async function processStyleBlocks(code, filePath, tailwindConfigPath) {
2307
+ if (!await ensureProcessor()) return code;
2308
+ const styleRegex = /<style([^>]*)>([\s\S]*?)<\/style>/g;
2309
+ let result = code;
2310
+ let styleMatch;
2311
+ while ((styleMatch = styleRegex.exec(result)) !== null) {
2312
+ const fullMatch = styleMatch[0];
2313
+ const attrs = styleMatch[1] || "";
2314
+ const cssContent = styleMatch[2] || "";
2315
+ if (cssContent.trim()) {
2316
+ const withConfig = withTailwindConfig(cssContent, tailwindConfigPath);
2317
+ const processed = await processCSS(withConfig, filePath);
2318
+ const stripped = await stripDistBoilerplate(processed);
2319
+ const cleanAttrs = attrs.replace(/\s*lang=["']postcss["']/g, "");
2320
+ const replacement = `<style${cleanAttrs}>${stripped}</style>`;
2321
+ result = result.slice(0, styleMatch.index) + replacement + result.slice(styleMatch.index + fullMatch.length);
2322
+ styleRegex.lastIndex = styleMatch.index + replacement.length;
2323
+ }
2324
+ }
2325
+ return result;
2326
+ }
2327
+ async function mangleVueSFC(code, id, tailwindConfigPath) {
2328
+ let result = mangleTemplateAndScript(code);
2329
+ result = await processStyleBlocks(result, id, tailwindConfigPath);
2330
+ if (result === code) return null;
2331
+ return result;
2332
+ }
2333
+
2334
+ const logger$1 = useLogger("@blokkli/editor");
2335
+ const styles = defineFileTemplate(
2336
+ "styles.css",
2337
+ async (ctx) => {
2338
+ const cssFilePath = ctx.helper.resolvers.module.resolve(
2339
+ "./runtime/editor/css/output.css"
2340
+ );
2341
+ let moduleCSS = "";
2342
+ const tailwindConfigPath = ctx.helper.getTailwindConfigPath();
2343
+ const cssFiles = ctx.getCSSFiles();
2344
+ if (cssFiles.length > 0) {
2345
+ resetProcessor();
2346
+ const processed = [];
2347
+ for (const filePath of cssFiles) {
2348
+ const content = await ctx.helper.fileCache.read(filePath);
2349
+ const withConfig = withTailwindConfig(content, tailwindConfigPath);
2350
+ try {
2351
+ const result = await processCSS(withConfig, filePath);
2352
+ processed.push(result);
2353
+ } catch (e) {
2354
+ logger$1.error(
2355
+ `Failed to process module CSS "${filePath}":
2356
+ ${e.message}`
2357
+ );
2358
+ }
2359
+ }
2360
+ if (processed.length > 0) {
2361
+ moduleCSS = "\n/* Module CSS */\n" + processed.join("\n");
2362
+ }
2363
+ }
2364
+ const editorOwnRuntime = ctx.helper.resolvers.module.resolve("./runtime");
2365
+ const editorOwnModules = ctx.helper.resolvers.module.resolve("./modules");
2366
+ const contentPaths = ctx.getContentPaths().filter(
2367
+ (p) => !p.startsWith(editorOwnRuntime) && !p.startsWith(editorOwnModules)
2368
+ );
2369
+ if (contentPaths.length > 0) {
2370
+ try {
2371
+ const utilities = await processCSS(
2372
+ `@layer theme, base, components, utilities;
2373
+ @import 'tailwindcss/theme.css' layer(theme);
2374
+ @import 'tailwindcss/utilities.css' layer(utilities);
2375
+ @config '${tailwindConfigPath}';`,
2376
+ "module-utilities.css",
2377
+ contentPaths
2378
+ );
2379
+ if (utilities.trim()) {
2380
+ moduleCSS += "\n/* Module Utilities */\n" + utilities;
2381
+ }
2382
+ } catch (e) {
2383
+ logger$1.error(
2384
+ `Failed to generate utilities for module content paths:
2385
+ ${e.message}`
2386
+ );
2387
+ }
2388
+ }
2389
+ return `
2390
+ @import url("${cssFilePath}");
2391
+
2392
+ ${ctx.theme.css}
2393
+ ${moduleCSS}
2394
+ `;
2395
+ },
2396
+ { dependencies: ["module-css"] }
2397
+ );
2398
+
2399
+ function buildColorPalette(ctx) {
2400
+ const palette = [];
2401
+ for (const [id, option] of Object.entries(
2402
+ ctx.helper.options.colorOptions || {}
2403
+ )) {
2404
+ if ("shades" in option) {
2405
+ palette.push(`${id}.${option.mainShade}`);
2406
+ } else {
2407
+ palette.push(id);
2408
+ }
2409
+ }
2410
+ return palette;
2411
+ }
2412
+ function mapVars(ctx) {
2413
+ return {
2414
+ itemEntityType: JSON.stringify(
2415
+ ctx.helper.options.itemEntityType ?? "block"
2416
+ ),
2417
+ fromLibraryBlockBundle: JSON.stringify(
2418
+ ctx.helper.options.fromLibraryBlockBundle ?? "from_library"
2419
+ ),
2420
+ fragmentBlockBundle: JSON.stringify(
2421
+ ctx.helper.options.fragmentBlockBundle ?? "blokkli_fragment"
2422
+ ),
2423
+ colorPalette: JSON.stringify(buildColorPalette(ctx))
2424
+ };
2425
+ }
2426
+ const config = defineCodeTemplate(
2427
+ "config",
2428
+ (ctx) => {
2429
+ const vars = mapVars(ctx);
2430
+ return `
2431
+ export const itemEntityType = ${vars.itemEntityType}
2432
+
2433
+ export const fromLibraryBlockBundle = ${vars.fromLibraryBlockBundle}
2434
+
2435
+ export const fragmentBlockBundle = ${vars.fragmentBlockBundle}
2436
+
2437
+ export const colorPalette = ${vars.colorPalette}
2438
+ `;
2439
+ },
2440
+ (ctx) => {
2441
+ const vars = mapVars(ctx);
2442
+ return `
2443
+ /**
2444
+ * The block item entity type.
2445
+ */
2446
+ export declare const itemEntityType: ${vars.itemEntityType}
2447
+
2448
+ export declare const fromLibraryBlockBundle: ${vars.fromLibraryBlockBundle}
2449
+ export declare const fragmentBlockBundle: ${vars.fragmentBlockBundle}
2450
+
2451
+ /**
2452
+ * Ordered list of canonical default color ids \u2014 one per declared family,
2453
+ * in declaration order. Flat colors appear as bare ids, ramped colors as
2454
+ * \`<id>.<mainShade>\`. Runtime consumers cycle through this to assign
2455
+ * default colors (e.g. dynamic chart series); the runtime composable also
2456
+ * walks it as a fallback cascade when a requested id can't be resolved.
2457
+ */
2458
+ export declare const colorPalette: string[]
2459
+ `;
2460
+ }
2461
+ );
2462
+
2463
+ const accent$4 = {
2464
+ "50": [
2465
+ 237,
2466
+ 247,
2467
+ 255
2468
+ ],
2469
+ "100": [
2470
+ 215,
2471
+ 236,
2472
+ 255
2473
+ ],
2474
+ "200": [
2475
+ 183,
2476
+ 223,
2477
+ 255
2478
+ ],
2479
+ "300": [
2480
+ 134,
2481
+ 205,
2482
+ 255
2483
+ ],
2484
+ "400": [
2485
+ 76,
2486
+ 176,
2487
+ 255
2488
+ ],
2489
+ "500": [
2490
+ 35,
2491
+ 140,
2492
+ 255
2493
+ ],
2494
+ "600": [
2495
+ 12,
2496
+ 107,
2497
+ 255
2498
+ ],
2499
+ "700": [
2500
+ 5,
2501
+ 80,
2502
+ 230
2503
+ ],
2504
+ "800": [
2505
+ 12,
2506
+ 67,
2507
+ 193
2508
+ ],
2509
+ "900": [
2510
+ 16,
2511
+ 61,
2512
+ 152
2513
+ ],
2514
+ "950": [
2515
+ 15,
2516
+ 38,
2517
+ 92
2518
+ ]
2519
+ };
2520
+ const mono$4 = {
2521
+ "50": [
2522
+ 248,
2523
+ 250,
2524
+ 252
2525
+ ],
2526
+ "100": [
2527
+ 241,
2528
+ 245,
2529
+ 249
2530
+ ],
2531
+ "200": [
2532
+ 226,
2533
+ 232,
2534
+ 240
2535
+ ],
2536
+ "300": [
2537
+ 203,
2538
+ 213,
2539
+ 225
2540
+ ],
2541
+ "400": [
2542
+ 148,
2543
+ 163,
2544
+ 184
2545
+ ],
2546
+ "500": [
2547
+ 100,
2548
+ 116,
2549
+ 139
2550
+ ],
2551
+ "600": [
2552
+ 71,
2553
+ 85,
2554
+ 105
2555
+ ],
2556
+ "700": [
2557
+ 51,
2558
+ 65,
2559
+ 85
2560
+ ],
2561
+ "800": [
2562
+ 30,
2563
+ 41,
2564
+ 59
2565
+ ],
2566
+ "900": [
2567
+ 15,
2568
+ 23,
2569
+ 42
2570
+ ],
2571
+ "950": [
2572
+ 2,
2573
+ 6,
2574
+ 23
2575
+ ]
2576
+ };
2577
+ const teal$4 = {
2578
+ light: [
2579
+ 204,
2580
+ 251,
2581
+ 241
2582
+ ],
2583
+ normal: [
2584
+ 45,
2585
+ 212,
2586
+ 191
2587
+ ],
2588
+ dark: [
2589
+ 19,
2590
+ 78,
2591
+ 74
2592
+ ]
2593
+ };
2594
+ const yellow$4 = {
2595
+ light: [
2596
+ 254,
2597
+ 252,
2598
+ 232
2599
+ ],
2600
+ normal: [
2601
+ 250,
2602
+ 204,
2603
+ 21
2604
+ ],
2605
+ dark: [
2606
+ 113,
2607
+ 63,
2608
+ 18
2609
+ ]
2610
+ };
2611
+ const orange$1 = {
2612
+ light: [
2613
+ 254,
2614
+ 243,
2615
+ 198
2616
+ ],
2617
+ normal: [
2618
+ 254,
2619
+ 154,
2620
+ 0
2621
+ ],
2622
+ dark: [
2623
+ 70,
2624
+ 25,
2625
+ 1
2626
+ ]
2627
+ };
2628
+ const red$4 = {
2629
+ light: [
2630
+ 254,
2631
+ 242,
2632
+ 242
2633
+ ],
2634
+ normal: [
2635
+ 239,
2636
+ 68,
2637
+ 68
2638
+ ],
2639
+ dark: [
2640
+ 127,
2641
+ 29,
2642
+ 29
2643
+ ]
2644
+ };
2645
+ const lime$4 = {
2646
+ light: [
2647
+ 236,
2648
+ 252,
2649
+ 203
2650
+ ],
2651
+ normal: [
2652
+ 122,
2653
+ 196,
2654
+ 18
2655
+ ],
2656
+ dark: [
2657
+ 81,
2658
+ 129,
2659
+ 19
2660
+ ]
2661
+ };
2662
+ const arctic = {
2663
+ accent: accent$4,
2664
+ mono: mono$4,
2665
+ teal: teal$4,
2666
+ yellow: yellow$4,
2667
+ orange: orange$1,
2668
+ red: red$4,
2669
+ lime: lime$4
2670
+ };
2671
+
2672
+ const accent$3 = {
2673
+ "50": [
2674
+ 251,
2675
+ 245,
2676
+ 246
2677
+ ],
2678
+ "100": [
2679
+ 248,
2680
+ 235,
2681
+ 238
2682
+ ],
2683
+ "200": [
2684
+ 242,
2685
+ 217,
2686
+ 223
2687
+ ],
2688
+ "300": [
2689
+ 230,
2690
+ 187,
2691
+ 197
2692
+ ],
2693
+ "400": [
2694
+ 211,
2695
+ 134,
2696
+ 155
2697
+ ],
2698
+ "500": [
2699
+ 198,
2700
+ 109,
2701
+ 135
2702
+ ],
2703
+ "600": [
2704
+ 175,
2705
+ 79,
2706
+ 112
2707
+ ],
2708
+ "700": [
2709
+ 146,
2710
+ 62,
2711
+ 93
2712
+ ],
2713
+ "800": [
2714
+ 123,
2715
+ 54,
2716
+ 82
2717
+ ],
2718
+ "900": [
2719
+ 123,
2720
+ 54,
2721
+ 82
2722
+ ],
2723
+ "950": [
2724
+ 58,
2725
+ 23,
2726
+ 37
2727
+ ]
2728
+ };
2729
+ const mono$3 = {
2730
+ "50": [
2731
+ 254,
2732
+ 253,
2733
+ 251
2734
+ ],
2735
+ "100": [
2736
+ 251,
2737
+ 248,
2738
+ 239
2739
+ ],
2740
+ "200": [
2741
+ 234,
2742
+ 230,
2743
+ 220
2744
+ ],
2745
+ "300": [
2746
+ 230,
2747
+ 222,
2748
+ 209
2749
+ ],
2750
+ "400": [
2751
+ 168,
2752
+ 153,
2753
+ 132
2754
+ ],
2755
+ "500": [
2756
+ 124,
2757
+ 103,
2758
+ 100
2759
+ ],
2760
+ "600": [
2761
+ 102,
2762
+ 92,
2763
+ 84
2764
+ ],
2765
+ "700": [
2766
+ 80,
2767
+ 73,
2768
+ 69
2769
+ ],
2770
+ "800": [
2771
+ 50,
2772
+ 48,
2773
+ 39
2774
+ ],
2775
+ "900": [
2776
+ 40,
2777
+ 40,
2778
+ 40
2779
+ ],
2780
+ "950": [
2781
+ 29,
2782
+ 32,
2783
+ 33
2784
+ ]
2785
+ };
2786
+ const teal$3 = {
2787
+ light: [
2788
+ 216,
2789
+ 243,
2790
+ 233
2791
+ ],
2792
+ normal: [
2793
+ 131,
2794
+ 165,
2795
+ 152
2796
+ ],
2797
+ dark: [
2798
+ 38,
2799
+ 59,
2800
+ 51
2801
+ ]
2802
+ };
2803
+ const yellow$3 = {
2804
+ light: [
2805
+ 251,
2806
+ 241,
2807
+ 199
2808
+ ],
2809
+ normal: [
2810
+ 250,
2811
+ 189,
2812
+ 47
2813
+ ],
2814
+ dark: [
2815
+ 144,
2816
+ 106,
2817
+ 20
2818
+ ]
2819
+ };
2820
+ const red$3 = {
2821
+ light: [
2822
+ 255,
2823
+ 218,
2824
+ 214
2825
+ ],
2826
+ normal: [
2827
+ 251,
2828
+ 73,
2829
+ 52
2830
+ ],
2831
+ dark: [
2832
+ 142,
2833
+ 24,
2834
+ 11
2835
+ ]
2836
+ };
2837
+ const lime$3 = {
2838
+ light: [
2839
+ 236,
2840
+ 236,
2841
+ 197
2842
+ ],
2843
+ normal: [
2844
+ 184,
2845
+ 187,
2846
+ 38
2847
+ ],
2848
+ dark: [
2849
+ 80,
2850
+ 80,
2851
+ 12
2852
+ ]
2853
+ };
2854
+ const gruvbox = {
2855
+ accent: accent$3,
2856
+ mono: mono$3,
2857
+ teal: teal$3,
2858
+ yellow: yellow$3,
2859
+ red: red$3,
2860
+ lime: lime$3
2861
+ };
2862
+
2863
+ const accent$2 = {
2864
+ "50": [
2865
+ 254,
2866
+ 247,
2867
+ 238
2868
+ ],
2869
+ "100": [
2870
+ 254,
2871
+ 237,
2872
+ 214
2873
+ ],
2874
+ "200": [
2875
+ 251,
2876
+ 215,
2877
+ 173
2878
+ ],
2879
+ "300": [
2880
+ 249,
2881
+ 186,
2882
+ 120
2883
+ ],
2884
+ "400": [
2885
+ 245,
2886
+ 147,
2887
+ 66
2888
+ ],
2889
+ "500": [
2890
+ 242,
2891
+ 116,
2892
+ 29
2893
+ ],
2894
+ "600": [
2895
+ 228,
2896
+ 91,
2897
+ 19
2898
+ ],
2899
+ "700": [
2900
+ 188,
2901
+ 67,
2902
+ 18
2903
+ ],
2904
+ "800": [
2905
+ 150,
2906
+ 54,
2907
+ 22
2908
+ ],
2909
+ "900": [
2910
+ 121,
2911
+ 47,
2912
+ 21
2913
+ ],
2914
+ "950": [
2915
+ 65,
2916
+ 21,
2917
+ 9
2918
+ ]
2919
+ };
2920
+ const mono$2 = {
2921
+ "50": [
2922
+ 250,
2923
+ 250,
2924
+ 249
2925
+ ],
2926
+ "100": [
2927
+ 245,
2928
+ 245,
2929
+ 244
2930
+ ],
2931
+ "200": [
2932
+ 231,
2933
+ 229,
2934
+ 228
2935
+ ],
2936
+ "300": [
2937
+ 214,
2938
+ 211,
2939
+ 209
2940
+ ],
2941
+ "400": [
2942
+ 168,
2943
+ 162,
2944
+ 158
2945
+ ],
2946
+ "500": [
2947
+ 120,
2948
+ 113,
2949
+ 108
2950
+ ],
2951
+ "600": [
2952
+ 87,
2953
+ 83,
2954
+ 78
2955
+ ],
2956
+ "700": [
2957
+ 68,
2958
+ 64,
2959
+ 60
2960
+ ],
2961
+ "800": [
2962
+ 41,
2963
+ 37,
2964
+ 36
2965
+ ],
2966
+ "900": [
2967
+ 28,
2968
+ 25,
2969
+ 23
2970
+ ],
2971
+ "950": [
2972
+ 12,
2973
+ 10,
2974
+ 9
2975
+ ]
2976
+ };
2977
+ const teal$2 = {
2978
+ light: [
2979
+ 217,
2980
+ 239,
2981
+ 242
2982
+ ],
2983
+ normal: [
2984
+ 82,
2985
+ 179,
2986
+ 188
2987
+ ],
2988
+ dark: [
2989
+ 3,
2990
+ 26,
2991
+ 28
2992
+ ]
2993
+ };
2994
+ const yellow$2 = {
2995
+ light: [
2996
+ 242,
2997
+ 232,
2998
+ 202
2999
+ ],
3000
+ normal: [
3001
+ 238,
3002
+ 192,
3003
+ 59
3004
+ ],
3005
+ dark: [
3006
+ 79,
3007
+ 64,
3008
+ 17
3009
+ ]
3010
+ };
3011
+ const red$2 = {
3012
+ light: [
3013
+ 254,
3014
+ 242,
3015
+ 242
3016
+ ],
3017
+ normal: [
3018
+ 239,
3019
+ 68,
3020
+ 68
3021
+ ],
3022
+ dark: [
3023
+ 127,
3024
+ 29,
3025
+ 29
3026
+ ]
3027
+ };
3028
+ const lime$2 = {
3029
+ light: [
3030
+ 238,
3031
+ 243,
3032
+ 237
3033
+ ],
3034
+ normal: [
3035
+ 103,
3036
+ 148,
3037
+ 88
3038
+ ],
3039
+ dark: [
3040
+ 56,
3041
+ 80,
3042
+ 48
3043
+ ]
3044
+ };
3045
+ const fire = {
3046
+ accent: accent$2,
3047
+ mono: mono$2,
3048
+ teal: teal$2,
3049
+ yellow: yellow$2,
3050
+ red: red$2,
3051
+ lime: lime$2
3052
+ };
3053
+
3054
+ const accent$1 = {
3055
+ "50": [
3056
+ 230,
3057
+ 255,
3058
+ 245
3059
+ ],
3060
+ "100": [
3061
+ 210,
3062
+ 255,
3063
+ 237
3064
+ ],
3065
+ "200": [
3066
+ 169,
3067
+ 255,
3068
+ 220
3069
+ ],
3070
+ "300": [
3071
+ 128,
3072
+ 255,
3073
+ 203
3074
+ ],
3075
+ "400": [
3076
+ 87,
3077
+ 255,
3078
+ 186
3079
+ ],
3080
+ "500": [
3081
+ 47,
3082
+ 255,
3083
+ 170
3084
+ ],
3085
+ "600": [
3086
+ 6,
3087
+ 255,
3088
+ 153
3089
+ ],
3090
+ "700": [
3091
+ 0,
3092
+ 220,
3093
+ 130
3094
+ ],
3095
+ "800": [
3096
+ 0,
3097
+ 164,
3098
+ 97
3099
+ ],
3100
+ "900": [
3101
+ 0,
3102
+ 108,
3103
+ 64
3104
+ ],
3105
+ "950": [
3106
+ 0,
3107
+ 80,
3108
+ 47
3109
+ ]
3110
+ };
3111
+ const mono$1 = {
3112
+ "50": [
3113
+ 248,
3114
+ 250,
3115
+ 252
3116
+ ],
3117
+ "100": [
3118
+ 249,
3119
+ 249,
3120
+ 251
3121
+ ],
3122
+ "200": [
3123
+ 238,
3124
+ 240,
3125
+ 246
3126
+ ],
3127
+ "300": [
3128
+ 231,
3129
+ 233,
3130
+ 243
3131
+ ],
3132
+ "400": [
3133
+ 197,
3134
+ 200,
3135
+ 221
3136
+ ],
3137
+ "500": [
3138
+ 95,
3139
+ 97,
3140
+ 119
3141
+ ],
3142
+ "600": [
3143
+ 56,
3144
+ 58,
3145
+ 82
3146
+ ],
3147
+ "700": [
3148
+ 48,
3149
+ 50,
3150
+ 80
3151
+ ],
3152
+ "800": [
3153
+ 14,
3154
+ 16,
3155
+ 53
3156
+ ],
3157
+ "900": [
3158
+ 7,
3159
+ 9,
3160
+ 44
3161
+ ],
3162
+ "950": [
3163
+ 0,
3164
+ 1,
3165
+ 15
3166
+ ]
3167
+ };
3168
+ const teal$1 = {
3169
+ light: [
3170
+ 211,
3171
+ 239,
3172
+ 248
3173
+ ],
3174
+ normal: [
3175
+ 92,
3176
+ 174,
3177
+ 201
3178
+ ],
3179
+ dark: [
3180
+ 21,
3181
+ 43,
3182
+ 50
3183
+ ]
3184
+ };
3185
+ const yellow$1 = {
3186
+ light: [
3187
+ 254,
3188
+ 252,
3189
+ 232
3190
+ ],
3191
+ normal: [
3192
+ 233,
3193
+ 182,
3194
+ 63
3195
+ ],
3196
+ dark: [
3197
+ 95,
3198
+ 72,
3199
+ 17
3200
+ ]
3201
+ };
3202
+ const red$1 = {
3203
+ light: [
3204
+ 243,
3205
+ 221,
3206
+ 216
3207
+ ],
3208
+ normal: [
3209
+ 220,
3210
+ 79,
3211
+ 48
3212
+ ],
3213
+ dark: [
3214
+ 163,
3215
+ 63,
3216
+ 41
3217
+ ]
3218
+ };
3219
+ const lime$1 = {
3220
+ light: [
3221
+ 230,
3222
+ 255,
3223
+ 245
3224
+ ],
3225
+ normal: [
3226
+ 0,
3227
+ 164,
3228
+ 97
3229
+ ],
3230
+ dark: [
3231
+ 0,
3232
+ 80,
3233
+ 47
3234
+ ]
3235
+ };
3236
+ const nuxt = {
3237
+ accent: accent$1,
3238
+ mono: mono$1,
3239
+ teal: teal$1,
3240
+ yellow: yellow$1,
3241
+ red: red$1,
3242
+ lime: lime$1
3243
+ };
3244
+
3245
+ const accent = {
3246
+ "50": [
3247
+ 245,
3248
+ 243,
3249
+ 255
3250
+ ],
3251
+ "100": [
3252
+ 237,
3253
+ 233,
3254
+ 254
3255
+ ],
3256
+ "200": [
3257
+ 221,
3258
+ 214,
3259
+ 255
3260
+ ],
3261
+ "300": [
3262
+ 196,
3263
+ 180,
3264
+ 255
3265
+ ],
3266
+ "400": [
3267
+ 166,
3268
+ 132,
3269
+ 255
3270
+ ],
3271
+ "500": [
3272
+ 142,
3273
+ 81,
3274
+ 255
3275
+ ],
3276
+ "600": [
3277
+ 127,
3278
+ 34,
3279
+ 254
3280
+ ],
3281
+ "700": [
3282
+ 112,
3283
+ 8,
3284
+ 231
3285
+ ],
3286
+ "800": [
3287
+ 93,
3288
+ 14,
3289
+ 192
3290
+ ],
3291
+ "900": [
3292
+ 77,
3293
+ 23,
3294
+ 154
3295
+ ],
3296
+ "950": [
3297
+ 47,
3298
+ 13,
3299
+ 104
3300
+ ]
3301
+ };
3302
+ const mono = {
3303
+ "50": [
3304
+ 246,
3305
+ 245,
3306
+ 249
3307
+ ],
3308
+ "100": [
3309
+ 243,
3310
+ 241,
3311
+ 252
3312
+ ],
3313
+ "200": [
3314
+ 237,
3315
+ 236,
3316
+ 243
3317
+ ],
3318
+ "300": [
3319
+ 218,
3320
+ 217,
3321
+ 226
3322
+ ],
3323
+ "400": [
3324
+ 164,
3325
+ 163,
3326
+ 177
3327
+ ],
3328
+ "500": [
3329
+ 115,
3330
+ 114,
3331
+ 131
3332
+ ],
3333
+ "600": [
3334
+ 81,
3335
+ 80,
3336
+ 99
3337
+ ],
3338
+ "700": [
3339
+ 59,
3340
+ 54,
3341
+ 76
3342
+ ],
3343
+ "800": [
3344
+ 44,
3345
+ 28,
3346
+ 101
3347
+ ],
3348
+ "900": [
3349
+ 22,
3350
+ 12,
3351
+ 55
3352
+ ],
3353
+ "950": [
3354
+ 11,
3355
+ 5,
3356
+ 34
3357
+ ]
3358
+ };
3359
+ const teal = {
3360
+ light: [
3361
+ 218,
3362
+ 247,
3363
+ 248
3364
+ ],
3365
+ normal: [
3366
+ 48,
3367
+ 177,
3368
+ 196
3369
+ ],
3370
+ dark: [
3371
+ 0,
3372
+ 67,
3373
+ 81
3374
+ ]
3375
+ };
3376
+ const yellow = {
3377
+ light: [
3378
+ 255,
3379
+ 253,
3380
+ 211
3381
+ ],
3382
+ normal: [
3383
+ 229,
3384
+ 218,
3385
+ 31
3386
+ ],
3387
+ dark: [
3388
+ 86,
3389
+ 79,
3390
+ 0
3391
+ ]
3392
+ };
3393
+ const red = {
3394
+ light: [
3395
+ 255,
3396
+ 219,
3397
+ 211
3398
+ ],
3399
+ normal: [
3400
+ 231,
3401
+ 0,
3402
+ 11
3403
+ ],
3404
+ dark: [
3405
+ 127,
3406
+ 0,
3407
+ 0
3408
+ ]
3409
+ };
3410
+ const lime = {
3411
+ light: [
3412
+ 221,
3413
+ 255,
3414
+ 221
3415
+ ],
3416
+ normal: [
3417
+ 69,
3418
+ 186,
3419
+ 80
3420
+ ],
3421
+ dark: [
3422
+ 13,
3423
+ 81,
3424
+ 23
3425
+ ]
3426
+ };
3427
+ const orange = {
3428
+ light: [
3429
+ 255,
3430
+ 235,
3431
+ 204
3432
+ ],
3433
+ normal: [
3434
+ 250,
3435
+ 124,
3436
+ 32
3437
+ ],
3438
+ dark: [
3439
+ 134,
3440
+ 49,
3441
+ 0
3442
+ ]
3443
+ };
3444
+ const revenexx = {
3445
+ accent: accent,
3446
+ mono: mono,
3447
+ teal: teal,
3448
+ yellow: yellow,
3449
+ red: red,
3450
+ lime: lime,
3451
+ orange: orange
3452
+ };
3453
+
3454
+ const themes = {
3455
+ fire,
3456
+ arctic,
3457
+ gruvbox,
3458
+ nuxt,
3459
+ revenexx
3460
+ };
3461
+ const getTheme = (v) => {
3462
+ if (typeof v === "string") {
3463
+ if (v === "arctic") {
3464
+ return themes.arctic;
3465
+ } else if (v === "gruvbox") {
3466
+ return themes.gruvbox;
3467
+ } else if (v === "fire") {
3468
+ return themes.fire;
3469
+ } else if (v === "nuxt") {
3470
+ return themes.nuxt;
3471
+ } else if (v === "revenexx") {
3472
+ return themes.revenexx;
3473
+ }
3474
+ throw new Error(`Invalid theme name: ${v}`);
3475
+ }
3476
+ return v || {};
3477
+ };
3478
+
3479
+ const editorConfig = defineCodeTemplate(
3480
+ "editor-config",
3481
+ (ctx) => {
3482
+ const settingsOverride = ctx.helper.options.settingsOverride || {};
3483
+ const colorOptions = ctx.helper.options.colorOptions || {};
3484
+ const featureFragmentNames = ctx.getFeatureFragmentNames();
3485
+ return `
3486
+ export const hasCustomTheme = ${JSON.stringify(ctx.theme.hasCustomTheme)}
3487
+
3488
+ export const themes = ${JSON.stringify(themes, null, 2)}
3489
+
3490
+ export const theme = ${JSON.stringify(ctx.theme.fullTheme, null, 2)}
3491
+
3492
+ export const colorOptions = ${JSON.stringify(colorOptions, null, 2)}
3493
+
3494
+ export const settingsOverride = ${JSON.stringify(settingsOverride)}
3495
+
3496
+ export const blokkliVersion = ${JSON.stringify(version)}
3497
+
3498
+ export const templateEntityType = ${JSON.stringify(ctx.helper.options.templateEntityType ?? null)}
3499
+
3500
+ export const storageDefaults = ${JSON.stringify(
3501
+ ctx.helper.options.storageDefaults || {}
3502
+ )}
3503
+ export const defaultLanguage = ${JSON.stringify(
3504
+ ctx.helper.options.defaultLanguage || "en"
3505
+ )}
3506
+ export const forceDefaultLanguage = ${JSON.stringify(
3507
+ !!ctx.helper.options.forceDefaultLanguage
3508
+ )}
3509
+
3510
+ export const featureFragmentNames = ${JSON.stringify(featureFragmentNames)}
3511
+
3512
+ export const textAutoReplace = ${(() => {
3513
+ const opt = ctx.helper.options.textAutoReplace;
3514
+ const all = opt === void 0 || opt === true;
3515
+ const obj = typeof opt === "object" && opt !== null ? opt : null;
3516
+ return JSON.stringify({
3517
+ quotes: obj ? obj.quotes ?? true : all,
3518
+ ellipsis: obj ? obj.ellipsis ?? true : all,
3519
+ enDash: obj ? obj.enDash ?? true : all
3520
+ });
3521
+ })()}
3522
+ `;
3523
+ },
3524
+ (ctx) => {
3525
+ const validColorOptions = Object.keys(ctx.helper.options.colorOptions || {}).map((v) => `'${v}'`).join(" | ");
3526
+ return `
3527
+ import type { Theme } from '${ctx.helper.relativePaths.TYPES_THEME}'
3528
+ import type { ModuleOptionsSettings } from '#blokkli-build/module-types'
3529
+ import type { InterfaceLanguage } from '#blokkli-build/translations'
3530
+
3531
+ export type ValidColorOption = ${validColorOptions}
3532
+
3533
+ export type GeneratedColorOption =
3534
+ | { label: string; hex: string }
3535
+ | { label: string; shades: Record<string, string>; mainShade: string }
3536
+
3537
+ /**
3538
+ * Whether the app uses a custom theme.
3539
+ */
3540
+ export declare const hasCustomTheme: boolean
3541
+
3542
+ /**
3543
+ * All available themes.
3544
+ */
3545
+ export declare const themes: Record<string, Theme>
3546
+
3547
+ /**
3548
+ * The available color options.
3549
+ */
3550
+ export declare const colorOptions: Record<ValidColorOption, GeneratedColorOption>
3551
+
3552
+ /**
3553
+ * The default theme.
3554
+ */
3555
+ export declare const theme: Theme
3556
+
3557
+ /**
3558
+ * Overrides for settings.
3559
+ */
3560
+ export declare const settingsOverride: ModuleOptionsSettings
3561
+
3562
+ /**
3563
+ * The version of the @blokkli/editor package.
3564
+ */
3565
+ export declare const blokkliVersion: string
3566
+
3567
+ /**
3568
+ * Default storage settings.
3569
+ */
3570
+ export declare const storageDefaults: Record<string, string | boolean | string[]>
3571
+
3572
+ /**
3573
+ * The default/fallback language.
3574
+ */
3575
+ export declare const defaultLanguage: InterfaceLanguage
3576
+
3577
+ /**
3578
+ * The entity type of templates.
3579
+ */
3580
+ export declare const templateEntityType: string | null
3581
+
3582
+ /**
3583
+ * Whether to always force the default language, even on translation pages.
3584
+ */
3585
+ export declare const forceDefaultLanguage: boolean
3586
+
3587
+ /**
3588
+ * The fragment names provided by features.
3589
+ */
3590
+ export declare const featureFragmentNames: string[]
3591
+
3592
+ /**
3593
+ * Text auto-replace configuration.
3594
+ */
3595
+ export declare const textAutoReplace: {
3596
+ quotes: boolean
3597
+ ellipsis: boolean
3598
+ enDash: boolean
3599
+ }
3600
+ `;
3601
+ },
3602
+ {
3603
+ context: "both",
3604
+ write: true
3605
+ }
3606
+ );
3607
+
3608
+ function transformGlobalOptionsForType(globalOptions) {
3609
+ const result = {};
3610
+ for (const [key, option] of Object.entries(globalOptions)) {
3611
+ const entry = { type: option.type };
3612
+ if (option.type === "radios" || option.type === "checkboxes") {
3613
+ if (option.options && Object.keys(option.options).length > 0) {
3614
+ entry.options = Object.fromEntries(
3615
+ Object.keys(option.options).map((k) => [k, null])
3616
+ );
3617
+ } else {
3618
+ entry.options = "__RECORD_STRING_UNKNOWN__";
3619
+ }
3620
+ }
3621
+ result[key] = entry;
3622
+ }
3623
+ return result;
3624
+ }
3625
+ function generateGlobalOptionsType(globalOptions) {
3626
+ const transformed = transformGlobalOptionsForType(globalOptions);
3627
+ return toTypeLiteral(transformed).replaceAll(
3628
+ '"__RECORD_STRING_UNKNOWN__"',
3629
+ "Record<string, unknown>"
3630
+ );
3631
+ }
3632
+ const definitions = defineCodeTemplate(
3633
+ "definitions",
3634
+ (ctx) => {
3635
+ const blocks = [];
3636
+ const fragments = [];
3637
+ const providers = [];
3638
+ const icons = /* @__PURE__ */ new Map();
3639
+ const images = /* @__PURE__ */ new Map();
3640
+ const definitions = [];
3641
+ const files = [...ctx.blocks.files.values()].sort(
3642
+ (a, b) => b.identifier.localeCompare(a.identifier)
3643
+ );
3644
+ let key = "";
3645
+ files.forEach((file) => {
3646
+ if (!file.definition || !file.definitionSource) {
3647
+ return;
3648
+ }
3649
+ const identifier = file.identifier;
3650
+ key += identifier;
3651
+ definitions.push(`const ${identifier} = ${file.definitionSource}`);
3652
+ if (isBlock(file.definition)) {
3653
+ blocks.push(identifier);
3654
+ if (file.iconContents) {
3655
+ icons.set(file.definition.bundle, JSON.stringify(file.iconContents));
3656
+ }
3657
+ if (file.imagePath) {
3658
+ images.set(file.definition.bundle, file.imagePath);
3659
+ }
3660
+ } else if (isFragment(file.definition)) {
3661
+ fragments.push(identifier);
3662
+ } else {
3663
+ providers.push(identifier);
3664
+ }
3665
+ });
3666
+ const renderKey = hash(key);
3667
+ const imageImports = [...images.entries()].map(([bundle, imagePath]) => {
3668
+ return `import image_${bundle} from '${imagePath}?url'`;
3669
+ }).join("\n");
3670
+ const imageObject = [...images.keys()].map((bundle) => {
3671
+ return `${bundle}: image_${bundle}`;
3672
+ }).join(",\n ");
3673
+ return `
3674
+ ${imageImports}
3675
+
3676
+ ${definitions.join("\n\n")}
3677
+
3678
+ const images = {
3679
+ ${imageObject}
3680
+ }
3681
+
3682
+ const blocks = [
3683
+ ${blocks.join(",\n ")}
3684
+ ]
3685
+
3686
+ const fragments = [
3687
+ ${fragments.join(",\n ")}
3688
+ ]
3689
+
3690
+ const providers = [
3691
+ ${providers.join(",\n ")}
3692
+ ]
3693
+
3694
+ ${toObject("icons", icons, true)}
3695
+
3696
+
3697
+ const globalOptions = ${JSON.stringify(ctx.helper.options.globalOptions || {})}
3698
+
3699
+ const renderKey = "${renderKey}"
3700
+
3701
+ const definitions = {
3702
+ blocks,
3703
+ fragments,
3704
+ providers,
3705
+ icons,
3706
+ images,
3707
+ globalOptions,
3708
+ renderKey
3709
+ }
3710
+
3711
+ export default definitions
3712
+ `;
3713
+ },
3714
+ (ctx) => {
3715
+ const fragmentNames = [];
3716
+ for (const file of ctx.blocks.files.values()) {
3717
+ if (!file.definition) {
3718
+ continue;
3719
+ }
3720
+ if (isFragment(file.definition)) {
3721
+ fragmentNames.push(`'${file.definition.name}'`);
3722
+ }
3723
+ }
3724
+ return `
3725
+ import type { GlobalOptionsKey } from '#blokkli-build/generated-types'
3726
+ import type { BlockDefinitionInput, BlockDefinitionOptionsInput, FragmentDefinitionInput, ProviderDefinitionInput } from '${ctx.helper.relativePaths.TYPES_DEFINITIONS}'
3727
+
3728
+ export type BlockDefinition = BlockDefinitionInput<BlockDefinitionOptionsInput, GlobalOptionsKey[]>
3729
+ export type FragmentDefinition = FragmentDefinitionInput<Record<string, any>, GlobalOptionsKey[]>
3730
+ export type ProviderDefinition = ProviderDefinitionInput<Record<string, any>, GlobalOptionsKey[]>
3731
+
3732
+ export type BlokkliFragmentName = ${fragmentNames.join(" | ") || "never"}
3733
+
3734
+ export type GlobalOptionsType = ${generateGlobalOptionsType(ctx.helper.options.globalOptions || {})}
3735
+
3736
+ export type Definitions = {
3737
+ blocks: BlockDefinition[]
3738
+ fragments: FragmentDefinition[]
3739
+ providers: ProviderDefinition[]
3740
+ icons: Record<string, string>
3741
+ images: Record<string, string>
3742
+ globalOptions: BlockDefinitionOptionsInput
3743
+ renderKey: string
3744
+ }
3745
+
3746
+ const definitions: Definitions
3747
+
3748
+ export default definitions
3749
+ `;
3750
+ },
3751
+ {
3752
+ dependencies: ["block-content", "block-path"]
3753
+ }
3754
+ );
3755
+
3756
+ const moduleTypes = defineCodeTemplate(
3757
+ "module-types",
3758
+ () => {
3759
+ return `export {}`;
3760
+ },
3761
+ (ctx) => {
3762
+ const features = ctx.features.getEnabledFeatures();
3763
+ const settings = [];
3764
+ features.forEach((feature) => {
3765
+ if (feature.definition.settings) {
3766
+ Object.entries(feature.definition.settings).sort((a, b) => a[0].localeCompare(b[0])).forEach(([key, setting]) => {
3767
+ const settingsKey = `feature:${feature.id}:${key}`;
3768
+ settings.push(`/** ${setting.label} */`);
3769
+ if (setting.type === "radios") {
3770
+ const type = Object.keys(setting.options).map((v) => `'${v}'`).join(" | ");
3771
+ settings.push(
3772
+ `'${settingsKey}'?: { disable?: boolean, default?: ${type} }
3773
+ `
3774
+ );
3775
+ } else if (setting.type === "checkbox") {
3776
+ settings.push(
3777
+ `'${settingsKey}'?: { disable?: boolean, default?: boolean }
3778
+ `
3779
+ );
3780
+ } else if (setting.type === "slider") {
3781
+ settings.push(
3782
+ `'${settingsKey}'?: { disable?: boolean, default?: number }
3783
+ `
3784
+ );
3785
+ } else {
3786
+ settings.push(`'${settingsKey}'?: { disable?: boolean }
3787
+ `);
3788
+ }
3789
+ });
3790
+ }
3791
+ });
3792
+ return `
3793
+ export type ModuleOptionsSettings = {
3794
+ ${settings.join("\n ")}
3795
+ }
3796
+ `;
3797
+ },
3798
+ {
3799
+ dependencies: ["features"]
3800
+ }
3801
+ );
3802
+
3803
+ function toRuntimeOptionArray(option) {
3804
+ if (option.type === "radios") {
3805
+ return [option.type, option.default, Object.keys(option.options)];
3806
+ } else if (option.type === "checkboxes") {
3807
+ return [option.type, option.default, Object.keys(option.options)];
3808
+ } else if (option.type === "number") {
3809
+ const hasBounds = option.min !== void 0 || option.max !== void 0;
3810
+ if (option.nullable) {
3811
+ return [option.type, option.default, [option.min, option.max], true];
3812
+ }
3813
+ if (hasBounds) {
3814
+ return [option.type, option.default, [option.min, option.max]];
3815
+ }
3816
+ return [option.type, option.default];
3817
+ } else if (option.type === "range") {
3818
+ return [option.type, option.default, [option.min, option.max]];
3819
+ } else if (option.type === "datetime-local") {
3820
+ if (option.min !== void 0 || option.max !== void 0) {
3821
+ return [option.type, option.default, [option.min, option.max]];
3822
+ }
3823
+ return [option.type, option.default];
3824
+ } else if (option.type === "checkbox") {
3825
+ return [option.type, option.default];
3826
+ } else if (option.type === "color") {
3827
+ return [option.type, option.default];
3828
+ } else if (option.type === "json") {
3829
+ if (option.dataType) {
3830
+ return [option.type, option.default, option.dataType];
3831
+ }
3832
+ return [option.type, option.default];
3833
+ }
3834
+ return [option.type, option.default];
3835
+ }
3836
+
3837
+ const runtimeOptions = defineCodeTemplate(
3838
+ "runtime-options",
3839
+ (ctx) => {
3840
+ const globalOptions = ctx.helper.options.globalOptions || {};
3841
+ const files = [...ctx.blocks.files.values()];
3842
+ const items = files.map((v) => {
3843
+ if (v.definition && v.identifier) {
3844
+ return {
3845
+ varName: v.identifier,
3846
+ definition: v.definition,
3847
+ variations: v.variations
3848
+ };
3849
+ }
3850
+ return null;
3851
+ }).filter(falsy);
3852
+ const declarations = [];
3853
+ const OPTIONS = /* @__PURE__ */ new Map();
3854
+ const FIELD_MAPPING = /* @__PURE__ */ new Map();
3855
+ for (const item of items) {
3856
+ const optionDefinitions = Object.entries(item.definition.options || {});
3857
+ const options = {};
3858
+ if (item.definition.globalOptions) {
3859
+ item.definition.globalOptions.forEach((name) => {
3860
+ const option = globalOptions[name];
3861
+ if (option) {
3862
+ options[name] = toRuntimeOptionArray(option);
3863
+ }
3864
+ });
3865
+ }
3866
+ optionDefinitions.forEach(([name, option]) => {
3867
+ options[name] = toRuntimeOptionArray(option);
3868
+ });
3869
+ const hasOptions = Object.keys(options).length > 0;
3870
+ if (hasOptions) {
3871
+ declarations.push(`const ${item.varName} = ${JSON.stringify(options)}`);
3872
+ OPTIONS.set(item.varName, item.varName);
3873
+ }
3874
+ item.variations.forEach((variation) => {
3875
+ if (hasOptions) {
3876
+ OPTIONS.set(variation, item.varName);
3877
+ }
3878
+ });
3879
+ if (isBlock(item.definition)) {
3880
+ if (item.definition.propsFieldMapping) {
3881
+ const mapping = Object.entries(
3882
+ item.definition.propsFieldMapping
3883
+ ).reduce(
3884
+ (acc, [propName, mapping2]) => {
3885
+ if (mapping2) {
3886
+ acc[propName] = [mapping2.type, mapping2.name];
3887
+ }
3888
+ return acc;
3889
+ },
3890
+ {}
3891
+ );
3892
+ FIELD_MAPPING.set(
3893
+ item.definition.bundle,
3894
+ JSON.stringify(mapping, null, 2)
3895
+ );
3896
+ }
3897
+ }
3898
+ }
3899
+ return `
3900
+ ${declarations.join("\n")}
3901
+
3902
+ ${toObject("OPTIONS", OPTIONS)}
3903
+ ${toObject("FIELD_MAPPING", FIELD_MAPPING)}
3904
+ `;
3905
+ },
3906
+ (ctx) => {
3907
+ const globalOptions = ctx.helper.options.globalOptions || {};
3908
+ const blocks = [...ctx.blocks.files.values()].map((v) => {
3909
+ if (v.definition && isBlock(v.definition)) {
3910
+ return v.definition;
3911
+ }
3912
+ return null;
3913
+ }).filter(falsy);
3914
+ function getOptionTypes(definition) {
3915
+ const definedOptions = definition.options || {};
3916
+ const blockGlobalOptions = definition.globalOptions || [];
3917
+ blockGlobalOptions.forEach((key) => {
3918
+ if (globalOptions[key]) {
3919
+ definedOptions[key] = globalOptions[key];
3920
+ }
3921
+ });
3922
+ return Object.entries(definedOptions || {}).map(([key, option]) => {
3923
+ if (option.type === "text" || option.type === "datetime-local") {
3924
+ return `${key}: string`;
3925
+ } else if (option.type === "checkbox") {
3926
+ return `${key}: boolean`;
3927
+ } else if (option.type === "checkboxes") {
3928
+ const possibleValues = Object.keys(option.options).map((v) => `'${v}'`).join(" | ") || "string";
3929
+ return `${key}: Array<${possibleValues}>`;
3930
+ } else if (option.type === "radios") {
3931
+ const possibleValues = Object.keys(option.options).map((v) => `'${v}'`).join(" | ") || "string";
3932
+ return `${key}: ${possibleValues}`;
3933
+ } else if (option.type === "color") {
3934
+ return key + ": `#${string}`";
3935
+ } else if (option.type === "range") {
3936
+ return `${key}: number`;
3937
+ } else if (option.type === "number") {
3938
+ return option.nullable ? `${key}: number | undefined` : `${key}: number`;
3939
+ }
3940
+ });
3941
+ }
3942
+ const runtimeMappedOptionTypes = blocks.map((definition) => {
3943
+ if (definition.renderFor) {
3944
+ return null;
3945
+ }
3946
+ const bundle = definition.bundle;
3947
+ const options = getOptionTypes(definition).join("\n ");
3948
+ if (!options) {
3949
+ return ` ${bundle}: {}`;
3950
+ }
3951
+ return ` ${bundle}: {
3952
+ ${options}
3953
+ }`;
3954
+ }).filter(falsy).join(",\n");
3955
+ return `
3956
+ import type { BlockOptionDefinition } from '${ctx.helper.relativePaths.TYPES_BLOKK_OPTIONS}'
3957
+
3958
+ export type RuntimeBlockOptions = {
3959
+ ${runtimeMappedOptionTypes}
3960
+ }
3961
+
3962
+ export type PropsFieldMappingType = 'editable' | 'droppable' | 'field'
3963
+
3964
+ export declare const OPTIONS: Record<string, Record<string, RuntimeBlockOptionArray>>
3965
+ export declare const FIELD_MAPPING: Record<string, Record<string, [PropsFieldMappingType, string]>>
3966
+ `;
3967
+ },
3968
+ {
3969
+ dependencies: ["block-content", "block-path"]
3970
+ }
3971
+ );
3972
+
3973
+ const editComponents = defineCodeTemplate(
3974
+ "edit-components",
3975
+ (ctx) => {
3976
+ const imports = {};
3977
+ const proxyComponents = /* @__PURE__ */ new Map();
3978
+ const diffComponents = /* @__PURE__ */ new Map();
3979
+ for (const file of ctx.blocks.files.values()) {
3980
+ if (!file.definition || !isBlock(file.definition)) {
3981
+ continue;
3982
+ }
3983
+ const { bundle } = file.definition;
3984
+ if (file.proxyComponentPath) {
3985
+ const importName = "proxy_" + bundle;
3986
+ imports[importName] = file.proxyComponentPath;
3987
+ proxyComponents.set(bundle, importName);
3988
+ } else if (file.diffComponentPath) {
3989
+ const importName = "diff_" + file.definition.bundle;
3990
+ imports[importName] = file.diffComponentPath;
3991
+ diffComponents.set(bundle, importName);
3992
+ }
3993
+ }
3994
+ const importLines = Object.entries(imports).map(([variableName, path]) => {
3995
+ return `import ${variableName} from '${path}'`;
3996
+ }).join("\n");
3997
+ return `
3998
+ ${importLines}
3999
+
4000
+ ${toObject("PROXY_COMPONENTS", proxyComponents)}
4001
+
4002
+ ${toObject("DIFF_COMPONENTS", diffComponents)}
4003
+ `;
4004
+ },
4005
+ () => {
4006
+ return `
4007
+ export declare const PROXY_COMPONENTS: Record<string, any>
4008
+ export declare const DIFF_COMPONENTS: Record<string, any>
4009
+ `;
4010
+ },
4011
+ {
4012
+ dependencies: ["block-path"]
4013
+ }
4014
+ );
4015
+
4016
+ function toStringUnion(strings) {
4017
+ return strings.sort().map((v) => `'${v}'`).join(" | ") || "never";
4018
+ }
4019
+ function getOptionTypes(definition, globalOptions) {
4020
+ const definedOptions = { ...definition.options || {} };
4021
+ const blockGlobalOptions = definition.globalOptions || [];
4022
+ blockGlobalOptions.forEach((key) => {
4023
+ if (globalOptions[key]) {
4024
+ definedOptions[key] = globalOptions[key];
4025
+ }
4026
+ });
4027
+ const options = Object.entries(definedOptions || {}).map(([key, option]) => {
4028
+ if (option.type === "checkbox") {
4029
+ return `${key}: '1' | '0' | undefined`;
4030
+ } else if (option.type === "text" || option.type === "radios" || option.type === "checkboxes" || option.type === "color" || option.type === "datetime-local") {
4031
+ return `${key}: string | undefined`;
4032
+ } else if (option.type === "range" || option.type === "number") {
4033
+ return `${key}: number | string | undefined`;
4034
+ }
4035
+ }).join("\n ");
4036
+ return `{
4037
+ ${options}
4038
+ }`;
4039
+ }
4040
+ const generatedTypes = defineCodeTemplate(
4041
+ "generated-types",
4042
+ () => {
4043
+ return `export {}`;
4044
+ },
4045
+ (ctx) => {
4046
+ const fromLibraryBlockBundle = ctx.helper.options.fromLibraryBlockBundle;
4047
+ const fragmentBlockBundle = ctx.helper.options.fragmentBlockBundle;
4048
+ const mappedGetBundlePropsType = (bundle, file) => {
4049
+ if (bundle === fromLibraryBlockBundle || bundle === fragmentBlockBundle) {
4050
+ return {
4051
+ typeName: "Props",
4052
+ from: file.filePath
4053
+ };
4054
+ } else if (ctx.helper.options.getBundlePropsType) {
4055
+ return ctx.helper.options.getBundlePropsType(bundle, file);
4056
+ }
4057
+ return null;
4058
+ };
4059
+ const chunkNames = ctx.helper.options.chunkNames || ["global"];
4060
+ const fieldListTypes = ctx.helper.options.fieldListTypes || ["default"];
4061
+ const providerTypes = ctx.helper.options.providerTypes || ["default"];
4062
+ const globalOptions = ctx.helper.options.globalOptions || {};
4063
+ const validGlobalOptions = Object.keys(globalOptions);
4064
+ const blockBundlesWithNested = [];
4065
+ const validBlockBundles = [];
4066
+ const propTypeImports = {};
4067
+ const propTypes = {};
4068
+ const typedFieldListItems = [];
4069
+ for (const file of ctx.blocks.files.values()) {
4070
+ if (!file.definition || !isBlock(file.definition)) {
4071
+ continue;
4072
+ }
4073
+ if (file.hasBlokkliField) {
4074
+ blockBundlesWithNested.push(file.definition.bundle);
4075
+ }
4076
+ if (file.definition.bundle !== ctx.helper.options.fromLibraryBlockBundle && !validBlockBundles.includes(file.definition.bundle)) {
4077
+ validBlockBundles.push(file.definition.bundle);
4078
+ }
4079
+ if (!file.definition.renderFor) {
4080
+ const bundle = file.definition.bundle;
4081
+ const options = getOptionTypes(file.definition, globalOptions);
4082
+ const generatedTypeName = `FieldListItem_${bundle}`;
4083
+ const lines = [` bundle: '${bundle}'`, `options: ${options}`];
4084
+ const bundlePropsType = mappedGetBundlePropsType(bundle, file);
4085
+ if (bundlePropsType) {
4086
+ const { typeName, from } = bundlePropsType;
4087
+ if (!propTypeImports[from]) {
4088
+ propTypeImports[from] = [];
4089
+ }
4090
+ propTypeImports[from].push({ bundle, typeName });
4091
+ const tsTypeName = `Bundle_${bundle}_Props`;
4092
+ lines.push(`props: ${tsTypeName}`);
4093
+ propTypes[bundle] = tsTypeName;
4094
+ }
4095
+ const typeDefinition = `
4096
+ type ${generatedTypeName} = {
4097
+ ${lines.join("\n ")}
4098
+ }`;
4099
+ typedFieldListItems.push({
4100
+ typeName: generatedTypeName,
4101
+ typeDefinition
4102
+ });
4103
+ }
4104
+ }
4105
+ const propTypeImportStatements = Object.entries(propTypeImports).map(([from, items]) => {
4106
+ const imports = items.map((v) => {
4107
+ return `${v.typeName} as Bundle_${v.bundle}_Props`;
4108
+ }).join(", ");
4109
+ const importPath = from.startsWith("/") ? ctx.helper.toModuleBuildRelative(from) : from;
4110
+ return `import type { ${imports} } from '${importPath}'`;
4111
+ }).join("\n");
4112
+ const BundleProps = Object.entries(propTypes).map(([key, type]) => {
4113
+ return `'${key}': ${type}`;
4114
+ }).join("\n ");
4115
+ return `
4116
+ ${propTypeImportStatements}
4117
+ import type { FieldListItem } from "${ctx.helper.relativePaths.TYPES}"
4118
+
4119
+ export type ValidFieldListTypes = ${toStringUnion(fieldListTypes)}
4120
+
4121
+ export type ValidProviderTypes = ${toStringUnion(providerTypes)}
4122
+
4123
+ export type BlockBundle = ${toStringUnion(validBlockBundles)}
4124
+
4125
+ export type BlockBundleWithNested = ${toStringUnion(blockBundlesWithNested)}
4126
+
4127
+ export type ValidChunkNames = ${toStringUnion(chunkNames)}
4128
+
4129
+ export type BundleProps = {
4130
+ ${BundleProps}
4131
+ }
4132
+
4133
+ export type GlobalOptionsKey = ${toStringUnion(validGlobalOptions)}
4134
+
4135
+ export type ValidGlobalConfigKeys = Array<GlobalOptionsKey>
4136
+
4137
+ ${typedFieldListItems.map((v) => v.typeDefinition).join("\n\n")}
4138
+
4139
+ export type FieldListItemTyped = Omit<FieldListItem, 'props'> & (${typedFieldListItems.map((v) => v.typeName).sort().join(" | ")})
4140
+ export type FieldListItemTypedArray = Array<FieldListItemTyped>
4141
+ `;
4142
+ },
4143
+ {
4144
+ dependencies: ["block-path"]
4145
+ }
4146
+ );
4147
+
4148
+ const defaultGlobalOptions = defineCodeTemplate(
4149
+ "default-global-options",
4150
+ (ctx) => {
4151
+ const globalOptions = ctx.helper.options.globalOptions || {};
4152
+ const defaults = Object.entries(globalOptions).reduce(
4153
+ (acc, [key, option]) => {
4154
+ if (option.default !== void 0 && option.default !== null) {
4155
+ acc[key] = {
4156
+ default: option.default,
4157
+ type: option.type
4158
+ };
4159
+ }
4160
+ return acc;
4161
+ },
4162
+ {}
4163
+ );
4164
+ const bundlesWithVisibleLanguage = [];
4165
+ const bundlesWithHiddenGlobally = [];
4166
+ for (const file of ctx.blocks.files.values()) {
4167
+ if (!file.definition || !isBlock(file.definition)) {
4168
+ continue;
4169
+ }
4170
+ const usedGlobalOptions = file.definition.globalOptions || [];
4171
+ if (usedGlobalOptions.includes(BK_VISIBLE_LANGUAGES)) {
4172
+ bundlesWithVisibleLanguage.push(file.definition.bundle);
4173
+ }
4174
+ if (usedGlobalOptions.includes(BK_HIDDEN_GLOBALLY)) {
4175
+ bundlesWithHiddenGlobally.push(file.definition.bundle);
4176
+ }
4177
+ }
4178
+ return `
4179
+ export const bundlesWithVisibleLanguage = ${JSON.stringify(bundlesWithVisibleLanguage.sort())}
4180
+ export const bundlesWithHiddenGlobally = ${JSON.stringify(bundlesWithHiddenGlobally.sort())}
4181
+
4182
+ export const globalOptionsDefaults = ${JSON.stringify(defaults, null, 2)}`;
4183
+ },
4184
+ (ctx) => {
4185
+ return `
4186
+ import type { BlockOptionDefinition } from '${ctx.helper.relativePaths.TYPES_BLOKK_OPTIONS}'
4187
+
4188
+ type GlobalOptionsDefaults = {
4189
+ type: BlockOptionDefinition['type']
4190
+ default: any
4191
+ }
4192
+
4193
+ export declare const bundlesWithVisibleLanguage: string[]
4194
+ export declare const bundlesWithHiddenGlobally: string[]
4195
+
4196
+ export declare const globalOptionsDefaults: Record<string, GlobalOptionsDefaults>
4197
+ `;
4198
+ },
4199
+ {
4200
+ dependencies: ["block-path"]
4201
+ }
4202
+ );
4203
+
4204
+ const imports = defineCodeTemplate(
4205
+ "imports",
4206
+ (ctx) => {
4207
+ const chunkMapping = {};
4208
+ for (const file of ctx.blocks.files.values()) {
4209
+ if (!file.definition) {
4210
+ continue;
4211
+ }
4212
+ file.variations.forEach((variation) => {
4213
+ chunkMapping[variation] = file.chunkName;
4214
+ });
4215
+ }
4216
+ const lines = Object.entries(chunkMapping).map(
4217
+ ([variation, importName]) => {
4218
+ return `'${variation}': '${importName}'`;
4219
+ }
4220
+ );
4221
+ const chunks = ctx.helper.getChunkNames().map((chunkName) => {
4222
+ if (chunkName === "global") {
4223
+ return null;
4224
+ }
4225
+ return `${chunkName}: () => import('#blokkli-build/chunk-${chunkName}.js').then(v => v['${chunkName}'])`;
4226
+ }).filter(falsy).sort().join(",\n ");
4227
+ return `
4228
+ import { global } from '#blokkli-build/chunk-global.js'
4229
+
4230
+ export const chunks = {
4231
+ global,
4232
+ ${chunks}
4233
+ }
4234
+
4235
+ export const chunkMapping = {
4236
+ ${lines.sort().join(",\n ")}
4237
+ }
4238
+ `;
4239
+ },
4240
+ () => {
4241
+ return `
4242
+ import type { Component } from 'vue'
4243
+
4244
+ export type ChunkGroup = Record<string, Component | { loadComponent: () => Promise<Component> } >
4245
+ export type ChunkGroupEntry = ChunkGroup | (() => Promise<ChunkGroup>)
4246
+
4247
+ /**
4248
+ * Mapping of block/fragment variation ID to a chunk group.
4249
+ *
4250
+ * The variation is only present if its chunkName is not 'global'.
4251
+ */
4252
+ export declare const chunkMapping: Record<string, string>
4253
+
4254
+ /**
4255
+ * All available chunks.
4256
+ */
4257
+ export declare const chunks: Record<string, ChunkGroupEntry>
4258
+ `;
4259
+ },
4260
+ {
4261
+ dependencies: ["block-path", "block-content"]
4262
+ }
4263
+ );
4264
+
4265
+ const optionsSchema = withHelper((helper) => {
4266
+ let fileName = "options-schema.json";
4267
+ const outputPath = helper.options.schemaOptionsPath;
4268
+ if (outputPath) {
4269
+ const resolved = resolveAlias(outputPath);
4270
+ fileName = helper.resolvers.src.resolve(resolved);
4271
+ }
4272
+ return defineFileTemplate(fileName, (ctx) => {
4273
+ const globalOptions = ctx.helper.options.globalOptions || {};
4274
+ const blocks = [...ctx.blocks.files.values()];
4275
+ const schema = blocks.reduce((acc, v) => {
4276
+ if (v.definition && isBlock(v.definition)) {
4277
+ const bundle = v.definition.bundle;
4278
+ const existing = acc[v.definition.bundle] || {};
4279
+ acc[v.definition.bundle] = defu(existing, v.definition.options || {});
4280
+ const globalOptionKeys = v.definition.globalOptions || [];
4281
+ globalOptionKeys.forEach((name) => {
4282
+ if (globalOptions[name]) {
4283
+ acc[bundle][name] = globalOptions[name];
4284
+ }
4285
+ });
4286
+ }
4287
+ return acc;
4288
+ }, {});
4289
+ const sorted = sortObjectKeys(schema);
4290
+ return JSON.stringify(sorted, null, 2);
4291
+ });
4292
+ });
4293
+
4294
+ const chunkGroup = withHelper((helper) => {
4295
+ return helper.getChunkNames().map((chunkName) => {
4296
+ return defineCodeTemplate(
4297
+ "chunk-" + chunkName,
4298
+ (ctx) => {
4299
+ const imports = [];
4300
+ const map = {};
4301
+ for (const file of ctx.blocks.files.values()) {
4302
+ if (!file.definition) {
4303
+ continue;
4304
+ }
4305
+ if (file.type === "provider") {
4306
+ continue;
4307
+ }
4308
+ if (!fs__default.existsSync(file.filePath)) {
4309
+ continue;
4310
+ }
4311
+ if (file.chunkName !== chunkName) {
4312
+ continue;
4313
+ }
4314
+ if (helper.isDev) {
4315
+ imports.push(
4316
+ `const ${file.identifier} = () => import('${file.filePath}').then(v => v.default)`
4317
+ );
4318
+ file.variations.forEach((variation) => {
4319
+ map[variation] = `{ loadComponent: ${file.identifier} }`;
4320
+ });
4321
+ } else {
4322
+ imports.push(`import ${file.identifier} from '${file.filePath}'`);
4323
+ file.variations.forEach((variation) => {
4324
+ map[variation] = file.identifier;
4325
+ });
4326
+ }
4327
+ }
4328
+ const lines = Object.entries(map).map(([variation, importName]) => {
4329
+ return `'${variation}': ${importName}`;
4330
+ });
4331
+ return `
4332
+ ${imports.sort().join("\n")}
4333
+
4334
+ export const ${chunkName} = {
4335
+ ${lines.sort().join(",\n ")}
4336
+ }
4337
+ `;
4338
+ },
4339
+ () => {
4340
+ return `
4341
+ import type { Component } from 'vue'
4342
+ export declare const ${chunkName}: Record<string, { loadComponent: () => Promise<Component> } | Component>
4343
+ `;
4344
+ },
4345
+ {
4346
+ dependencies: ["block-path", "block-content"]
4347
+ }
4348
+ );
4349
+ });
4350
+ });
4351
+
4352
+ const chunkEditing = defineCodeTemplate(
4353
+ "chunk-editing",
4354
+ (ctx) => {
4355
+ const imports = [];
4356
+ const map = /* @__PURE__ */ new Map();
4357
+ for (const file of ctx.blocks.files.values()) {
4358
+ if (!file.definition) {
4359
+ continue;
4360
+ }
4361
+ if (file.type === "provider") {
4362
+ continue;
4363
+ }
4364
+ if (!fs__default.existsSync(file.filePath)) {
4365
+ continue;
4366
+ }
4367
+ imports.push(
4368
+ `import ${file.identifier} from '${file.filePath}?blokkliEditing=true'`
4369
+ );
4370
+ file.variations.forEach((variation) => {
4371
+ map.set(variation, file.identifier);
4372
+ });
4373
+ }
4374
+ return `
4375
+ ${imports.sort().join("\n")}
4376
+
4377
+ ${toObject("allComponents", map)}
4378
+ `;
4379
+ },
4380
+ () => {
4381
+ return `
4382
+ import type { Component } from 'vue'
4383
+
4384
+ /**
4385
+ * A map of block import identifier and block component.
4386
+ *
4387
+ * This should ONLY be imported in editor code, since it imports ALL block components.
4388
+ */
4389
+ export declare const allComponents: Record<string, Component>
4390
+ `;
4391
+ },
4392
+ {
4393
+ dependencies: ["block-path", "block-content"]
4394
+ }
4395
+ );
4396
+
4397
+ const importMeta = defineFileTemplate("import-meta.d.ts", () => {
4398
+ return `declare global {
4399
+ interface ImportMeta {
4400
+ /**
4401
+ * Whether this block or fragment component is rendered in the editor
4402
+ * bundle.
4403
+ *
4404
+ * This only works in components that either contain defineBlokkli or
4405
+ * defineBlokkliFragment or in components that are imported by any of these
4406
+ * components.
4407
+ *
4408
+ * It will always resolve to "false" if used in any other place.
4409
+ */
4410
+ readonly blokkliEditing: boolean
4411
+ }
4412
+ }
4413
+
4414
+ export {}
4415
+ `;
4416
+ });
4417
+
4418
+ const materialIcons = defineFileTemplate("material-icons.d.ts", (ctx) => {
4419
+ const iconNames = ctx.icons.getValidMaterialIconNames();
4420
+ return `
4421
+ /**
4422
+ * All available Material Symbols icon names (rounded style).
4423
+ */
4424
+ export type MaterialIconName =
4425
+ ${iconNames.map((name) => ` | '${name}'`).join("\n")}
4426
+ `;
4427
+ });
4428
+
4429
+ const complexOptionTypes = defineCodeTemplate(
4430
+ "complex-option-types",
4431
+ (ctx) => {
4432
+ const types = ctx.getComplexOptionTypes();
4433
+ if (types.length === 0) {
4434
+ return `export const COMPLEX_OPTION_TYPES = {}`;
4435
+ }
4436
+ const entries = types.map(
4437
+ (t) => ` '${t.id}': {
4438
+ editorComponent: defineAsyncComponent(() => import('${ctx.helper.toModuleBuildRelative(t.editorComponentPath)}')),
4439
+ editTitle: ${JSON.stringify(t.editTitle)},
4440
+ editorIcon: '${t.editorIcon}',
4441
+ }`
4442
+ ).join(",\n");
4443
+ return `import { defineAsyncComponent } from 'vue'
4444
+
4445
+ export const COMPLEX_OPTION_TYPES = {
4446
+ ${entries}
4447
+ }`;
4448
+ },
4449
+ (ctx) => {
4450
+ const types = ctx.getComplexOptionTypes();
4451
+ if (types.length === 0) {
4452
+ return `export interface ComplexOptionTypeMap {}
4453
+ export const COMPLEX_OPTION_TYPES: Record<string, never>`;
4454
+ }
4455
+ const imports = types.map(
4456
+ (t) => `import type { ${t.typeName} } from '${ctx.helper.toModuleBuildRelative(t.typePath)}'`
4457
+ ).join("\n");
4458
+ const entries = types.map((t) => ` '${t.id}': ${t.typeName}`).join("\n");
4459
+ return `${imports}
4460
+ import type { BlokkliIcon } from './icons'
4461
+ import type { Component } from 'vue'
4462
+
4463
+ export interface ComplexOptionTypeMap {
4464
+ ${entries}
4465
+ }
4466
+
4467
+ export const COMPLEX_OPTION_TYPES: Record<string, {
4468
+ editorComponent: Component
4469
+ editTitle: { key: string; defaultTranslation: string }
4470
+ editorIcon: BlokkliIcon
4471
+ }>`;
4472
+ },
4473
+ {
4474
+ write: true
4475
+ }
4476
+ );
4477
+
4478
+ const TEMPLATES = [
4479
+ icons,
4480
+ features,
4481
+ featuresJson,
4482
+ translations,
4483
+ editAdapter,
4484
+ adapterExtensions,
4485
+ styles,
4486
+ config,
4487
+ editorConfig,
4488
+ definitions,
4489
+ moduleTypes,
4490
+ runtimeOptions,
4491
+ editComponents,
4492
+ generatedTypes,
4493
+ defaultGlobalOptions,
4494
+ imports,
4495
+ optionsSchema,
4496
+ chunkGroup,
4497
+ chunkEditing,
4498
+ importMeta,
4499
+ materialIcons,
4500
+ complexOptionTypes
4501
+ ];
4502
+
4503
+ class CollectedFeatureFile extends CollectedFile {
4504
+ definition = null;
4505
+ composableName = "defineBlokkliFeature";
4506
+ enabled = true;
4507
+ objectLiteral = void 0;
4508
+ getDefinition() {
4509
+ return this.definition;
4510
+ }
4511
+ async handleChange() {
4512
+ const objectLiteral = extractObjectLiteral(this.fileContents, [
4513
+ this.composableName
4514
+ ]);
4515
+ if (this.objectLiteral === objectLiteral) {
4516
+ return false;
4517
+ }
4518
+ this.objectLiteral = objectLiteral;
4519
+ if (!this.objectLiteral) {
4520
+ return false;
4521
+ }
4522
+ try {
4523
+ const { object: definition, source } = parseTsObject(this.objectLiteral);
4524
+ const regex = /\/Features\/([^/]+)\//;
4525
+ const componentName = this.filePath.match(regex)?.[1] || "";
4526
+ this.definition = {
4527
+ id: definition.id,
4528
+ componentName,
4529
+ componentPath: this.filePath,
4530
+ definition,
4531
+ definitionSource: source
4532
+ };
4533
+ } catch (e) {
4534
+ console.error(
4535
+ `Failed to parse component "${this.filePath}": ${this.composableName} does not contain a valid object literal. No variables and methods are allowed inside ${this.composableName}().`,
4536
+ e
4537
+ );
4538
+ }
4539
+ return Promise.resolve(true);
4540
+ }
4541
+ isEnabled() {
4542
+ return this.enabled;
4543
+ }
4544
+ /**
4545
+ * Disable the feature.
4546
+ */
4547
+ disable() {
4548
+ this.enabled = false;
4549
+ }
4550
+ }
4551
+ class FeatureCollector extends Collector {
4552
+ needsFileContents = true;
4553
+ disabledFeatures = /* @__PURE__ */ new Set();
4554
+ srcFromModule;
4555
+ srcFromBlokkliDir;
4556
+ constructor(helper) {
4557
+ super(helper);
4558
+ this.srcFromModule = helper.resolvers.module.resolve(
4559
+ "./runtime/editor/features"
4560
+ );
4561
+ this.srcFromBlokkliDir = helper.resolvers.root.resolve("./blokkli/features");
4562
+ }
4563
+ getEnabledFeatures() {
4564
+ return [...this.files.values()].filter((v) => v.isEnabled()).map((v) => v.getDefinition()).filter(falsy).filter((v) => !this.disabledFeatures.has(v.id));
4565
+ }
4566
+ async init() {
4567
+ const builtinFeatures = await resolveFiles(
4568
+ this.srcFromModule,
4569
+ ["*/index.vue"],
4570
+ {
4571
+ followSymbolicLinks: false
4572
+ }
4573
+ );
4574
+ const blokkliDirFeatures = await resolveFiles(
4575
+ this.srcFromBlokkliDir,
4576
+ ["*/index.vue"],
4577
+ {
4578
+ followSymbolicLinks: false
4579
+ }
4580
+ );
4581
+ const customFeatures = this.helper.options.featureImports ? await resolveFiles(
4582
+ this.helper.paths.srcDir,
4583
+ this.helper.options.featureImports,
4584
+ {
4585
+ followSymbolicLinks: false
4586
+ }
4587
+ ) : [];
4588
+ await Promise.all(
4589
+ [...builtinFeatures, ...blokkliDirFeatures, ...customFeatures].map(
4590
+ (v) => this.addFile(v)
4591
+ )
4592
+ );
4593
+ const features = [...this.files.values()];
4594
+ if (!this.helper.options.enableThemeEditor) {
4595
+ const themeFeature = features.find(
4596
+ (v) => v.getDefinition()?.id === "theme"
4597
+ );
4598
+ if (themeFeature) {
4599
+ themeFeature.disable();
4600
+ }
4601
+ }
4602
+ }
4603
+ runHooks() {
4604
+ return this.helper.nuxt.hooks.callHook("blokkli:alter-features", {
4605
+ features: [...this.files.values()]
4606
+ });
4607
+ }
4608
+ createCollectedFile(filePath, fileContents = "") {
4609
+ return new CollectedFeatureFile(filePath, fileContents);
4610
+ }
4611
+ applies(filePath) {
4612
+ return Promise.resolve(
4613
+ filePath.startsWith(this.srcFromModule) || micromatch.isMatch(filePath, "icon-blokkli-*.svg")
4614
+ );
4615
+ }
4616
+ getDependencyTypes() {
4617
+ return ["features"];
4618
+ }
4619
+ disableFeature(id) {
4620
+ this.disabledFeatures.add(id);
4621
+ }
4622
+ }
4623
+
4624
+ function hexToRgb(hex) {
4625
+ if (hex.startsWith("#")) {
4626
+ hex = hex.slice(1);
4627
+ }
4628
+ if (hex.length === 3) {
4629
+ hex = hex.split("").map((char) => char + char).join("");
4630
+ }
4631
+ const r = Number.parseInt(hex.slice(0, 2), 16);
4632
+ const g = Number.parseInt(hex.slice(2, 4), 16);
4633
+ const b = Number.parseInt(hex.slice(4, 6), 16);
4634
+ return [r, g, b];
4635
+ }
4636
+ const buildThemeData = (themeOption) => {
4637
+ const hasCustomTheme = !!themeOption;
4638
+ const mergeTheme = createDefu((obj, key, value) => {
4639
+ if (Array.isArray(obj[key])) {
4640
+ obj[key] = value;
4641
+ return true;
4642
+ }
4643
+ });
4644
+ const theme = mergeTheme(getTheme(themeOption), themes.arctic);
4645
+ const vars = Object.entries(theme).map(([group, colors]) => {
4646
+ return Object.entries(colors).map(([shade, color]) => {
4647
+ const rgb = typeof color === "string" ? hexToRgb(color) : color;
4648
+ return `--bk-theme-${group}-${shade}: ${rgb[0]} ${rgb[1]} ${rgb[2]}`;
4649
+ });
4650
+ }).flat().join(";\n");
4651
+ const themeCss = `
4652
+ :root {
4653
+ ${vars}
4654
+ }
4655
+ `;
4656
+ const fullTheme = Object.entries(theme).reduce(
4657
+ (acc, [group, colors]) => {
4658
+ acc[group] = Object.entries(colors).reduce(
4659
+ (colorAcc, [key, color]) => {
4660
+ const rgb = typeof color === "string" ? hexToRgb(color) : color;
4661
+ colorAcc[key] = rgb;
4662
+ return colorAcc;
4663
+ },
4664
+ {}
4665
+ );
4666
+ return acc;
4667
+ },
4668
+ {}
4669
+ );
4670
+ return { themeCss, fullTheme, hasCustomTheme };
4671
+ };
4672
+ class ThemeData {
4673
+ css;
4674
+ fullTheme;
4675
+ hasCustomTheme;
4676
+ constructor(helper) {
4677
+ const data = buildThemeData(helper.options.theme);
4678
+ this.css = data.themeCss;
4679
+ this.fullTheme = data.fullTheme;
4680
+ this.hasCustomTheme = data.hasCustomTheme;
4681
+ }
4682
+ }
4683
+
4684
+ const logger = useLogger("@blokkli/editor");
4685
+ const module$1 = defineNuxtModule({
4686
+ meta: {
4687
+ name,
4688
+ configKey: "blokkli",
4689
+ version,
4690
+ compatibility: {
4691
+ nuxt: ">=3.15.0"
4692
+ }
4693
+ },
4694
+ defaults: {
4695
+ globalOptions: {
4696
+ [BK_VISIBLE_LANGUAGES]: {
4697
+ type: "checkboxes",
4698
+ label: "Visible languages",
4699
+ description: "Only show on specific languages.",
4700
+ options: {},
4701
+ default: []
4702
+ },
4703
+ [BK_HIDDEN_GLOBALLY]: {
4704
+ type: "checkbox",
4705
+ label: "Hide globally",
4706
+ description: "Always hides the block.",
4707
+ default: false
4708
+ }
4709
+ },
4710
+ chunkNames: ["global"],
4711
+ fromLibraryBlockBundle: "from_library",
4712
+ fragmentBlockBundle: "blokkli_fragment"
4713
+ },
4714
+ async setup(moduleOptions, nuxt) {
4715
+ const blokkliModules = moduleOptions.modules || [];
4716
+ for (const module of blokkliModules) {
4717
+ if (module.init.alterOptions) {
4718
+ module.init.alterOptions(moduleOptions);
4719
+ }
4720
+ }
4721
+ const helper = new ModuleHelper(
4722
+ nuxt,
4723
+ logger,
4724
+ import.meta.url,
4725
+ moduleOptions
4726
+ );
4727
+ const colorOptions = {};
4728
+ for (const [id, option] of Object.entries(
4729
+ helper.options.colorOptions || {}
4730
+ )) {
4731
+ if ("shades" in option) {
4732
+ colorOptions[id] = option.shades[option.mainShade];
4733
+ for (const [shadeId, hex] of Object.entries(option.shades)) {
4734
+ colorOptions[`${id}.${shadeId}`] = hex;
4735
+ }
4736
+ } else {
4737
+ colorOptions[id] = option.hex;
4738
+ }
4739
+ }
4740
+ nuxt.options.appConfig.blokkli = {
4741
+ // @ts-expect-error generic type vs runtime derived type.
4742
+ colorOptions
4743
+ };
4744
+ const theme = new ThemeData(helper);
4745
+ const iconCollector = new IconCollector(helper);
4746
+ const featureCollector = new FeatureCollector(helper);
4747
+ const blockCollector = new BlockCollector(helper, iconCollector);
4748
+ const collectors = [
4749
+ iconCollector,
4750
+ featureCollector,
4751
+ blockCollector
4752
+ ];
4753
+ const context = new ModuleContext(
4754
+ helper,
4755
+ iconCollector,
4756
+ featureCollector,
4757
+ blockCollector,
4758
+ theme
4759
+ );
4760
+ const distMarker = helper.resolvers.module.resolve(
4761
+ "./modules/tailwind/index.mjs"
4762
+ );
4763
+ const isRunningFromDist = helper.fileCache.fileExists(distMarker);
4764
+ if (!isRunningFromDist) {
4765
+ context.addContentPath(helper.resolvers.module.resolve("./runtime"));
4766
+ context.addContentPath(helper.resolvers.module.resolve("./modules"));
4767
+ }
4768
+ const app = {
4769
+ helper,
4770
+ context,
4771
+ $t: (key, defaultText) => ({
4772
+ key,
4773
+ defaultTranslation: defaultText
4774
+ })
4775
+ };
4776
+ for (const module of blokkliModules) {
4777
+ await module.init.setup(app, module.options);
4778
+ }
4779
+ app.context.collectors.forEach((collector) => {
4780
+ collectors.push(collector);
4781
+ });
4782
+ await Promise.all(collectors.map((v) => v.init()));
4783
+ await Promise.all(collectors.map((v) => v.runHooks()));
4784
+ const hasErrors = [...collectors, helper].flatMap((v) => v.validate(iconCollector)).some((v) => v);
4785
+ if (!helper.isDev && !helper.isPrepare && hasErrors) {
4786
+ throw new Error("Failed to build bl\xF6kkli due to validation errors.");
4787
+ }
4788
+ TEMPLATES.forEach((v) => {
4789
+ if (typeof v === "function") {
4790
+ const result = v(helper);
4791
+ const templates = Array.isArray(result) ? result : [result];
4792
+ templates.forEach((template) => {
4793
+ context.addTemplate(template);
4794
+ });
4795
+ } else {
4796
+ context.addTemplate(v);
4797
+ }
4798
+ });
4799
+ await context.generateTemplates();
4800
+ helper.addAlias("#blokkli-build", helper.paths.blokkliBuildDir);
4801
+ helper.inlineForNitro(helper.paths.blokkliBuildDir);
4802
+ const moduleDir = import.meta.url;
4803
+ const resolver = createResolver(moduleDir);
4804
+ nuxt.options.build.transpile.push(resolver.resolve("runtime"));
4805
+ nuxt.options.vite.optimizeDeps ??= {};
4806
+ nuxt.options.vite.optimizeDeps.include ??= [];
4807
+ nuxt.options.vite.optimizeDeps.include.push("papaparse", "pofile");
4808
+ helper.addComponent("BlokkliField");
4809
+ helper.addComponent("BlokkliEditable");
4810
+ helper.addComponent("BlokkliProvider");
4811
+ helper.addComponent("BlokkliItem");
4812
+ helper.addComposable("defineBlokkli");
4813
+ helper.addComposable("defineBlokkliFragment");
4814
+ helper.addComposable("defineBlokkliFeature");
4815
+ helper.addComposable("defineBlokkliProvider");
4816
+ helper.addComposable("useBlokkli");
4817
+ helper.addComposable("useBlokkliHelper");
4818
+ helper.addComposable("useBlokkliRuntimeConfig");
4819
+ helper.addAlias(
4820
+ "#blokkli/analyzer",
4821
+ resolver.resolve("runtime/editor/features/analyze/analyzers")
4822
+ );
4823
+ helper.addAlias("#blokkli-build", helper.paths.blokkliBuildDir);
4824
+ helper.addAlias("#blokkli/types", resolver.resolve("runtime/types"));
4825
+ helper.addAlias("#blokkli/constants", resolver.resolve("runtime/constants"));
4826
+ helper.addAlias("#blokkli/editor", resolver.resolve("runtime/editor"));
4827
+ helper.addAlias("#blokkli/helpers", resolver.resolve("runtime/helpers"));
4828
+ helper.addAlias(
4829
+ "#blokkli/runtime-helpers",
4830
+ resolver.resolve("runtime/helpers/runtimeHelpers")
4831
+ );
4832
+ const blokkliModulesDir = resolve$1(nuxt.options.rootDir, "blokkli/modules");
4833
+ helper.addAppTsInclude(join(blokkliModulesDir, "*/app"));
4834
+ helper.addServerTsInclude(join(blokkliModulesDir, "*/server"));
4835
+ const blokkliFeaturesDir = helper.resolvers.root.resolve("./blokkli/features");
4836
+ context.addContentPath(blokkliFeaturesDir);
4837
+ nuxt.hook("nitro:config", (nitroConfig) => {
4838
+ nitroConfig.publicAssets ||= [];
4839
+ nitroConfig.publicAssets.push({
4840
+ dir: resolver.resolve("./runtime/public"),
4841
+ maxAge: 60 * 60 * 24 * 365
4842
+ // 1 year
4843
+ });
4844
+ });
4845
+ addPlugin({
4846
+ src: resolver.resolve("./runtime/plugins/blokkliDirectives")
4847
+ });
4848
+ addBuildPlugin(RuntimeDefinitionPlugin(nuxt, helper, "defineBlokkli"));
4849
+ addBuildPlugin(
4850
+ RuntimeDefinitionPlugin(nuxt, helper, "defineBlokkliFragment")
4851
+ );
4852
+ addBuildPlugin(
4853
+ RuntimeDefinitionPlugin(nuxt, helper, "defineBlokkliProvider", 1)
4854
+ );
4855
+ addBuildPlugin(BlokkliEditingPlugin(nuxt));
4856
+ const contentPaths = context.getContentPaths();
4857
+ if (contentPaths.length > 0) {
4858
+ const tailwindConfigPath = helper.getTailwindConfigPath();
4859
+ addVitePlugin({
4860
+ name: "blokkli-mangle-module-classes",
4861
+ enforce: "pre",
4862
+ async transform(code, id) {
4863
+ if (!id.endsWith(".vue")) return null;
4864
+ if (!contentPaths.some((dir) => id.startsWith(dir))) return null;
4865
+ const result = await mangleVueSFC(code, id, tailwindConfigPath);
4866
+ return result ? { code: result, map: null } : null;
4867
+ },
4868
+ hotUpdate: {
4869
+ order: "post",
4870
+ async handler({ file, server, modules: hmrModules }) {
4871
+ if (!file.endsWith(".vue")) return;
4872
+ if (!contentPaths.some((dir) => file.startsWith(dir))) return;
4873
+ const environment = server.environments["client"];
4874
+ if (!environment) return;
4875
+ const modules = environment.moduleGraph.getModulesByFile(file);
4876
+ if (!modules || modules.size === 0) return;
4877
+ const mainModule = [...modules].find((m) => !m.url.includes("?"));
4878
+ if (mainModule) {
4879
+ environment.moduleGraph.invalidateModule(mainModule);
4880
+ await environment.transformRequest(mainModule.url);
4881
+ }
4882
+ const styleModules = [...modules].filter(
4883
+ (m) => m.url.includes("type=style")
4884
+ );
4885
+ if (styleModules.length) {
4886
+ for (const styleMod of styleModules) {
4887
+ environment.moduleGraph.invalidateModule(styleMod);
4888
+ }
4889
+ const result = [...hmrModules];
4890
+ for (const styleMod of styleModules) {
4891
+ if (!result.some((m) => m.url === styleMod.url)) {
4892
+ result.push(styleMod);
4893
+ }
4894
+ }
4895
+ return result;
4896
+ }
4897
+ }
4898
+ }
4899
+ });
4900
+ }
4901
+ if (nuxt.options.dev) {
4902
+ for (const cssFile of context.getCSSFiles()) {
4903
+ nuxt.options.watch.push(dirname$1(cssFile));
4904
+ }
4905
+ nuxt.hook("builder:watch", async (event, providedFilePath) => {
4906
+ const filePath = providedFilePath.startsWith("/") ? providedFilePath : helper.resolvers.src.resolve(providedFilePath);
4907
+ helper.fileCache.handleWatchEvent(event, filePath);
4908
+ const dependenciesToUpdate = [];
4909
+ for (const collector of collectors) {
4910
+ const result = await collector.handleWatchEvent(event, filePath);
4911
+ if (result.hasChanged) {
4912
+ collector.validate(iconCollector);
4913
+ dependenciesToUpdate.push(...collector.getDependencyTypes());
4914
+ }
4915
+ }
4916
+ const cssFiles = context.getCSSFiles();
4917
+ if (cssFiles.length > 0) {
4918
+ const cssFileDirs = cssFiles.map((f) => dirname$1(f));
4919
+ const isModuleCSSRelated = cssFiles.some(
4920
+ (cssFile, i) => filePath === cssFile || filePath.startsWith(cssFileDirs[i] + "/")
4921
+ );
4922
+ if (isModuleCSSRelated) {
4923
+ dependenciesToUpdate.push("module-css");
4924
+ }
4925
+ }
4926
+ if (dependenciesToUpdate.length) {
4927
+ await context.generateTemplates(dependenciesToUpdate);
4928
+ await updateTemplates();
4929
+ }
4930
+ });
4931
+ }
4932
+ }
4933
+ });
4934
+
4935
+ export { module$1 as default };