@blokkli/editor 2.0.0-alpha.58 → 2.0.0-alpha.59
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.
- package/dist/global/types/blockOptions.d.ts +36 -9
- package/dist/global/types/colorOptions.d.ts +4 -0
- package/dist/module.d.mts +3 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +349 -166
- package/dist/modules/agent/index.d.mts +2 -1
- package/dist/modules/agent/index.mjs +14 -7
- package/dist/modules/agent/runtime/app/components/Attachment/PreviewCode/index.vue +11 -0
- package/dist/modules/agent/runtime/app/components/Attachment/PreviewCsv/index.vue +56 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel/Attachment/PreviewCode → components/Attachment/PreviewHtml}/index.vue +1 -1
- package/dist/modules/agent/runtime/app/components/Attachment/PreviewMarkdown/index.vue +10 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/index.d.vue.ts +1 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/index.vue +22 -10
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/index.vue.d.ts +1 -0
- package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.d.vue.ts +7 -0
- package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.vue +40 -0
- package/dist/modules/agent/runtime/app/components/Conversation/InlineFeedback/index.vue.d.ts +7 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/Assistant/index.vue +24 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.d.vue.ts +20 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.vue +52 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/Bubble/Tool/index.vue.d.ts +20 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Error/index.d.vue.ts +2 -1
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Error/index.vue +4 -14
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Error/index.vue.d.ts +2 -1
- package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.d.vue.ts +11 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.vue +29 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/ErrorBubble/index.vue.d.ts +11 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/ServerTool/index.d.vue.ts +2 -1
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/ServerTool/index.vue +10 -23
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/ServerTool/index.vue.d.ts +2 -1
- package/dist/modules/agent/runtime/app/components/Conversation/Item/Tool/index.vue +36 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Unknown/index.vue +2 -5
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/User/index.d.vue.ts +2 -0
- package/dist/modules/agent/runtime/app/components/Conversation/Item/User/index.vue +144 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/User/index.vue.d.ts +2 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Thinking/index.vue +3 -3
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/index.d.vue.ts +2 -0
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/index.vue +27 -11
- package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/index.vue.d.ts +2 -0
- package/dist/modules/agent/runtime/app/{tools/delegate_text_rewrite/Details → components/FieldDiffDetails}/index.d.vue.ts +15 -0
- package/dist/modules/agent/runtime/app/{tools/delegate_text_rewrite/Details → components/FieldDiffDetails}/index.vue.d.ts +15 -0
- package/dist/modules/agent/runtime/app/components/Markdown/index.d.vue.ts +6 -0
- package/dist/modules/agent/runtime/app/components/Markdown/index.vue +14 -0
- package/dist/modules/agent/runtime/app/components/Markdown/index.vue.d.ts +6 -0
- package/dist/modules/agent/runtime/app/composables/index.d.ts +5 -1
- package/dist/modules/agent/runtime/app/composables/index.js +2 -0
- package/dist/modules/agent/runtime/app/composables/useAgent.d.ts +2 -1
- package/dist/modules/agent/runtime/app/composables/useAgent.js +5 -2
- package/dist/modules/agent/runtime/app/composables/useAgentFeedbackOptions.d.ts +11 -0
- package/dist/modules/agent/runtime/app/composables/useAgentFeedbackOptions.js +24 -0
- package/dist/modules/agent/runtime/app/composables/useAgentPaginatedQuery.d.ts +29 -0
- package/dist/modules/agent/runtime/app/composables/useAgentPaginatedQuery.js +30 -0
- package/dist/modules/agent/runtime/app/features/agent/Container.d.vue.ts +0 -2
- package/dist/modules/agent/runtime/app/features/agent/Container.vue +39 -101
- package/dist/modules/agent/runtime/app/features/agent/Container.vue.d.ts +0 -2
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.d.vue.ts +13 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue +46 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/Item.vue.d.ts +13 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/ConversationsTab/index.vue +74 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.d.vue.ts +11 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue +55 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/Item.vue.d.ts +11 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.d.vue.ts +3 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.vue +116 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/RatingsTab/index.vue.d.ts +3 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.d.vue.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue +61 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/ConversationDetail.vue.d.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.d.vue.ts +38 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue +137 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/SplitView/index.vue.d.ts +38 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.d.vue.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.vue +45 -0
- package/dist/modules/agent/runtime/app/features/agent/ConversationsAdmin/index.vue.d.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.d.vue.ts +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.vue +23 -36
- package/dist/modules/agent/runtime/app/features/agent/Panel/ConversationList/index.vue.d.ts +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +11 -28
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.d.vue.ts +8 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.vue +20 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Item.vue.d.ts +8 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.d.vue.ts +3 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.vue +3 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/Separator.vue.d.ts +3 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/TokenUsage/index.vue +31 -31
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +55 -9
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/index.vue +12 -6
- package/dist/modules/agent/runtime/app/features/agent/Panel/PendingMutation/index.vue +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/Plan/index.vue +13 -10
- package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.d.vue.ts +3 -3
- package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue +18 -16
- package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue.d.ts +3 -3
- package/dist/modules/agent/runtime/app/features/agent/Panel/Welcome/index.vue +44 -13
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.d.vue.ts +1 -61
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +145 -142
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +1 -61
- package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.d.vue.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue +41 -0
- package/dist/modules/agent/runtime/app/features/agent/Transcript/MessageContent.vue.d.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Transcript/index.vue +83 -122
- package/dist/modules/agent/runtime/app/features/agent/index.vue +101 -4
- package/dist/modules/agent/runtime/app/features/agent/types.d.ts +85 -18
- package/dist/modules/agent/runtime/app/helpers/historySignature.d.ts +14 -0
- package/dist/modules/agent/runtime/app/helpers/historySignature.js +13 -0
- package/dist/modules/agent/runtime/app/helpers/id.d.ts +6 -0
- package/dist/modules/agent/runtime/app/helpers/id.js +3 -0
- package/dist/modules/agent/runtime/app/helpers/index.d.ts +0 -14
- package/dist/modules/agent/runtime/app/helpers/index.js +1 -19
- package/dist/modules/agent/runtime/app/helpers/markdown.d.ts +7 -0
- package/dist/modules/agent/runtime/app/helpers/markdown.js +5 -0
- package/dist/modules/agent/runtime/app/helpers/pageStructure.js +7 -19
- package/dist/modules/agent/runtime/app/helpers/parseConversationData.d.ts +27 -0
- package/dist/modules/agent/runtime/app/helpers/parseConversationData.js +42 -0
- package/dist/modules/agent/runtime/app/prompts/fixReadability.js +5 -4
- package/dist/modules/agent/runtime/app/providers/agentProvider.d.ts +24 -2
- package/dist/modules/agent/runtime/app/providers/agentProvider.js +138 -53
- package/dist/modules/agent/runtime/app/providers/conversationProvider.d.ts +9 -10
- package/dist/modules/agent/runtime/app/providers/conversationProvider.js +10 -39
- package/dist/modules/agent/runtime/app/providers/toolsProvider.js +43 -40
- package/dist/modules/agent/runtime/app/tools/{add_content_search_paragraph → add_content_search_paragraphs}/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +4 -2
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +37 -28
- package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +10 -10
- package/dist/modules/agent/runtime/app/tools/add_template/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/ask_question/Component.vue +25 -15
- package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +1 -1
- package/dist/modules/agent/runtime/app/tools/ask_question/index.js +5 -4
- package/dist/modules/agent/runtime/app/tools/{check_readability → check_readability_for_texts}/index.js +16 -23
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.d.vue.ts +4 -23
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +80 -594
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue.d.ts +4 -23
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +18 -17
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +56 -47
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/useFieldRewriteStream.d.ts +64 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/useFieldRewriteStream.js +502 -0
- package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.js +4 -2
- package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +8 -8
- package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.d.ts +49 -0
- package/dist/modules/agent/runtime/app/tools/fieldDiffApproval.js +64 -0
- package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.js +14 -13
- package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.js +12 -18
- package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +21 -22
- package/dist/modules/agent/runtime/app/tools/get_content_fields/index.js +20 -24
- package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.js +5 -3
- package/dist/modules/agent/runtime/app/tools/get_page_structure/index.js +3 -1
- package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +35 -49
- package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.js +8 -11
- package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.js +8 -4
- package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.js +4 -2
- package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.js +3 -1
- package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.js +6 -2
- package/dist/modules/agent/runtime/app/tools/helpers.d.ts +28 -22
- package/dist/modules/agent/runtime/app/tools/helpers.js +64 -39
- package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +36 -4
- package/dist/modules/agent/runtime/app/tools/readability.d.ts +45 -0
- package/dist/modules/agent/runtime/app/tools/readability.js +51 -0
- package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.js +8 -7
- package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.js +2 -1
- package/dist/modules/agent/runtime/app/tools/replace_media_field/index.js +1 -1
- package/dist/modules/agent/runtime/app/tools/schemas.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/schemas.js +27 -0
- package/dist/modules/agent/runtime/app/tools/search_content/index.js +3 -1
- package/dist/modules/agent/runtime/app/tools/search_media/index.js +1 -1
- package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.js +11 -10
- package/dist/modules/agent/runtime/app/tools/search_templates/index.js +3 -1
- package/dist/modules/agent/runtime/app/tools/search_text/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/select_media/Component.vue +22 -8
- package/dist/modules/agent/runtime/app/tools/select_media/index.js +1 -1
- package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +9 -14
- package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.js +9 -9
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.d.vue.ts +6 -15
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue +48 -92
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Component.vue.d.ts +6 -15
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +34 -13
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.js +84 -52
- package/dist/modules/agent/runtime/app/tools/web_fetch/index.js +1 -1
- package/dist/modules/agent/runtime/app/types/index.d.ts +55 -7
- package/dist/modules/agent/runtime/app/types/index.js +55 -8
- package/dist/modules/agent/runtime/server/agent.js +4 -3
- package/dist/modules/agent/runtime/server/classes/ConversationHistory/index.d.ts +93 -0
- package/dist/modules/agent/runtime/server/classes/ConversationHistory/index.js +241 -0
- package/dist/modules/agent/runtime/server/classes/ConversationMessage/index.d.ts +102 -0
- package/dist/modules/agent/runtime/server/classes/ConversationMessage/index.js +156 -0
- package/dist/modules/agent/runtime/server/{Session.d.ts → classes/Session/index.d.ts} +46 -14
- package/dist/modules/agent/runtime/server/{Session.js → classes/Session/index.js} +350 -382
- package/dist/modules/agent/runtime/server/{SessionManager.d.ts → classes/SessionManager/index.d.ts} +2 -2
- package/dist/modules/agent/runtime/server/{SessionManager.js → classes/SessionManager/index.js} +4 -19
- package/dist/modules/agent/runtime/server/classes/StreamAccumulator/index.d.ts +58 -0
- package/dist/modules/agent/runtime/server/classes/StreamAccumulator/index.js +72 -0
- package/dist/modules/agent/runtime/server/default-skills/adding-new-paragraphs.js +0 -1
- package/dist/modules/agent/runtime/server/default-skills/fixReadability.js +1 -1
- package/dist/modules/agent/runtime/server/default-skills/rewriteAndTranslate.js +8 -8
- package/dist/modules/agent/runtime/server/default-system-prompts/introduction.js +1 -1
- package/dist/modules/agent/runtime/server/default-system-prompts/workflow.js +0 -1
- package/dist/modules/agent/runtime/server/{agentPrompt.d.ts → helpers/agentPrompt.d.ts} +3 -3
- package/dist/modules/agent/runtime/server/helpers/errors.d.ts +10 -0
- package/dist/modules/agent/runtime/server/helpers/errors.js +63 -0
- package/dist/modules/agent/runtime/server/helpers/messages.d.ts +6 -0
- package/dist/modules/agent/runtime/server/helpers/messages.js +70 -0
- package/dist/modules/agent/runtime/server/helpers/models.d.ts +20 -0
- package/dist/modules/agent/runtime/server/helpers/models.js +15 -0
- package/dist/modules/agent/runtime/server/{routing.d.ts → helpers/routing.d.ts} +2 -2
- package/dist/modules/agent/runtime/server/{routing.js → helpers/routing.js} +2 -9
- package/dist/modules/agent/runtime/server/helpers/security.d.ts +22 -0
- package/dist/modules/agent/runtime/server/helpers/security.js +44 -0
- package/dist/modules/agent/runtime/server/helpers/skills.d.ts +14 -0
- package/dist/modules/agent/runtime/server/helpers/skills.js +22 -0
- package/dist/modules/agent/runtime/server/helpers/socket.d.ts +4 -0
- package/dist/modules/agent/runtime/server/helpers/socket.js +3 -0
- package/dist/modules/agent/runtime/server/helpers/text.d.ts +5 -0
- package/dist/modules/agent/runtime/server/helpers/text.js +3 -0
- package/dist/modules/agent/runtime/server/providers/anthropic.js +22 -3
- package/dist/modules/agent/runtime/server/providers/openai.js +4 -0
- package/dist/modules/agent/runtime/server/route.js +2 -2
- package/dist/modules/agent/runtime/server/server-tools/index.d.ts +2 -0
- package/dist/modules/agent/runtime/server/server-tools/load_tools/index.js +1 -5
- package/dist/modules/agent/runtime/server/stream.js +6 -29
- package/dist/modules/agent/runtime/shared/toolParams.d.ts +28 -0
- package/dist/modules/agent/runtime/shared/toolParams.js +27 -0
- package/dist/modules/agent/runtime/shared/toolResult.d.ts +94 -0
- package/dist/modules/agent/runtime/shared/toolResult.js +155 -0
- package/dist/modules/agent/runtime/shared/types.d.ts +1 -3
- package/dist/modules/agent/runtime/shared/types.js +8 -1
- package/dist/modules/charts/index.d.mts +3 -17
- package/dist/modules/charts/index.mjs +241 -16
- package/dist/modules/charts/runtime/blokkli/chart-types/advanced/definition.d.ts +5 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/advanced/definition.js +26 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.vue +120 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/advanced/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/definition.d.ts +6 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/definition.js +40 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.vue +41 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.vue +94 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/agePyramid/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/definition.d.ts +7 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/definition.js +49 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.vue +56 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/render.vue +99 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/area/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/{chartTypes/bar.d.ts → blokkli/chart-types/bar/definition.d.ts} +3 -3
- package/dist/modules/charts/runtime/{chartTypes/bar.js → blokkli/chart-types/bar/definition.js} +12 -31
- package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.vue +34 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/bar/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.vue +107 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/bar/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/definition.d.ts +7 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/definition.js +35 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.vue +35 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.vue +87 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/donut/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/{chartTypes/heatmap.d.ts → blokkli/chart-types/heatmap/definition.d.ts} +3 -3
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/definition.js +29 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.vue +27 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.vue +113 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/heatmap/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/definition.d.ts +7 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/definition.js +49 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.vue +59 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/render.vue +98 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/line/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/definition.d.ts +6 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/definition.js +29 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.vue +20 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.vue +71 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/pie/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/definition.d.ts +7 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/definition.js +45 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.vue +60 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.vue +95 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radar/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/definition.d.ts +6 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/definition.js +29 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.vue +32 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/illustration.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.d.vue.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.vue +77 -0
- package/dist/modules/charts/runtime/blokkli/chart-types/radialBar/render.vue.d.ts +3 -0
- package/dist/modules/charts/runtime/blokkli/skills/charts.js +36 -2
- package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.d.ts +81 -19
- package/dist/modules/charts/runtime/blokkli/tools/chart_schemas.js +79 -32
- package/dist/modules/charts/runtime/blokkli/tools/create_advanced_chart/index.d.ts +2 -0
- package/dist/modules/charts/runtime/blokkli/tools/create_advanced_chart/index.js +88 -0
- package/dist/modules/charts/runtime/blokkli/tools/create_chart/index.js +8 -4
- package/dist/modules/charts/runtime/blokkli/tools/get_advanced_chart_config/index.d.ts +2 -0
- package/dist/modules/charts/runtime/blokkli/tools/get_advanced_chart_config/index.js +65 -0
- package/dist/modules/charts/runtime/blokkli/tools/get_chart_data/index.js +36 -8
- package/dist/modules/charts/runtime/blokkli/tools/get_chart_type_options/index.js +4 -2
- package/dist/modules/charts/runtime/blokkli/tools/update_advanced_chart/index.d.ts +2 -0
- package/dist/modules/charts/runtime/blokkli/tools/update_advanced_chart/index.js +73 -0
- package/dist/modules/charts/runtime/blokkli/tools/update_chart/index.js +43 -20
- package/dist/modules/charts/runtime/chart-types/definition/index.d.ts +7 -0
- package/dist/modules/charts/runtime/chart-types/definition/index.js +3 -0
- package/dist/modules/charts/runtime/chart-types/definition/options/index.d.ts +43 -0
- package/dist/modules/charts/runtime/{chartTypes/shared.js → chart-types/definition/options/index.js} +30 -23
- package/dist/modules/charts/runtime/chart-types/index.d.ts +21 -0
- package/dist/modules/charts/runtime/chart-types/index.js +25 -0
- package/dist/modules/charts/runtime/components/ChartRenderer/index.d.vue.ts +19 -145
- package/dist/modules/charts/runtime/components/ChartRenderer/index.vue +193 -99
- package/dist/modules/charts/runtime/components/ChartRenderer/index.vue.d.ts +19 -145
- package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.d.vue.ts +11 -0
- package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue +149 -0
- package/dist/modules/charts/runtime/features/charts/Editor/AdvancedConfigPanel/index.vue.d.ts +11 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.d.vue.ts +11 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.vue +62 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CategoryColorOverridesPanel/index.vue.d.ts +11 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.d.vue.ts +14 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue +89 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/Field.vue.d.ts +14 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.d.vue.ts +3 -3
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue +45 -52
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypeOptions/index.vue.d.ts +3 -3
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.d.vue.ts +7 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.vue +55 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeCard.vue.d.ts +7 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.d.vue.ts +11 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.vue +24 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/TypeGrid.vue.d.ts +11 -0
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.d.vue.ts +2 -2
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +48 -26
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue.d.ts +2 -2
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.d.vue.ts +0 -2
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +64 -20
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue.d.ts +0 -2
- package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.d.vue.ts +9 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.vue +55 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvExport/index.vue.d.ts +9 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.d.vue.ts +16 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.vue +88 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FilterEditor/index.vue.d.ts +16 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.d.vue.ts +13 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.vue +111 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/FiltersSection/index.vue.d.ts +13 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.d.vue.ts +14 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.vue +100 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/GroupBySection/index.vue.d.ts +14 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.d.vue.ts +17 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue +152 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/OutputPreviewTable/index.vue.d.ts +17 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.d.vue.ts +14 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.vue +340 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/PreviewDialog.vue.d.ts +14 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.d.ts +69 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/csvHelpers.js +368 -0
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.d.vue.ts +6 -17
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue +37 -64
- package/dist/modules/charts/runtime/features/charts/Editor/CsvImport/index.vue.d.ts +6 -17
- package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.d.vue.ts +16 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.vue +80 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DataSourcePicker/index.vue.d.ts +16 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.d.vue.ts +3 -3
- package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue +29 -18
- package/dist/modules/charts/runtime/features/charts/Editor/DataTable/index.vue.d.ts +3 -3
- package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.d.vue.ts +13 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.vue +71 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DateFormatEditor/index.vue.d.ts +13 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.d.vue.ts +16 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.vue +57 -0
- package/dist/modules/charts/runtime/features/charts/Editor/DynamicPreviewStatus/index.vue.d.ts +16 -0
- package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.d.vue.ts +4 -5
- package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue +63 -51
- package/dist/modules/charts/runtime/features/charts/Editor/FootnoteEditor/index.vue.d.ts +4 -5
- package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.d.vue.ts +21 -0
- package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue +120 -0
- package/dist/modules/charts/runtime/features/charts/Editor/NumberFormatEditor/index.vue.d.ts +21 -0
- package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.d.vue.ts +18 -0
- package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.vue +65 -0
- package/dist/modules/charts/runtime/features/charts/Editor/OrphanOverridesWarning/index.vue.d.ts +18 -0
- package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.d.vue.ts +2 -1
- package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue +8 -2
- package/dist/modules/charts/runtime/features/charts/Editor/Preview/index.vue.d.ts +2 -1
- package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.d.vue.ts +13 -0
- package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.vue +95 -0
- package/dist/modules/charts/runtime/features/charts/Editor/SeriesOverridesPanel/index.vue.d.ts +13 -0
- package/dist/{runtime/editor/components/AutoHeight → modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow}/index.d.vue.ts +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow/index.vue +19 -0
- package/dist/{runtime/editor/components/AutoHeight → modules/charts/runtime/features/charts/Editor/TranslationsEditor/TranslationRow}/index.vue.d.ts +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.d.vue.ts +17 -0
- package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.vue +264 -0
- package/dist/modules/charts/runtime/features/charts/Editor/TranslationsEditor/index.vue.d.ts +17 -0
- package/dist/modules/charts/runtime/features/charts/Editor/index.d.vue.ts +1 -0
- package/dist/modules/charts/runtime/features/charts/Editor/index.vue +477 -141
- package/dist/modules/charts/runtime/features/charts/Editor/index.vue.d.ts +1 -0
- package/dist/modules/charts/runtime/features/charts/Editor/useChartDataSourcePreview.d.ts +6 -0
- package/dist/modules/charts/runtime/features/charts/Editor/useChartDataSourcePreview.js +17 -0
- package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.d.ts +8 -2
- package/dist/modules/charts/runtime/features/charts/Editor/useChartEditorState.js +85 -5
- package/dist/modules/charts/runtime/helpers/adapterTypes.d.ts +38 -0
- package/dist/modules/charts/runtime/helpers/adapterTypes.js +1 -0
- package/dist/modules/charts/runtime/helpers/dateFormat.d.ts +20 -0
- package/dist/modules/charts/runtime/helpers/dateFormat.js +121 -0
- package/dist/modules/charts/runtime/helpers/echarts.d.ts +6 -0
- package/dist/modules/charts/runtime/helpers/echarts.js +5 -0
- package/dist/modules/charts/runtime/helpers/index.d.ts +17 -14
- package/dist/modules/charts/runtime/helpers/index.js +24 -27
- package/dist/modules/charts/runtime/helpers/nextCategoryValue.d.ts +19 -0
- package/dist/modules/charts/runtime/helpers/nextCategoryValue.js +160 -0
- package/dist/modules/charts/runtime/helpers/numberFormat.d.ts +13 -0
- package/dist/modules/charts/runtime/helpers/numberFormat.js +31 -0
- package/dist/modules/charts/runtime/helpers/previewInjection.d.ts +14 -0
- package/dist/modules/charts/runtime/helpers/previewInjection.js +3 -0
- package/dist/modules/charts/runtime/types.d.ts +238 -15
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliMutationItem.graphql +23 -0
- package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +12 -3
- package/dist/modules/drupal/graphql/base/query.pbUsers.graphql +10 -0
- package/dist/modules/drupal/graphql/features/agent.graphql +75 -23
- package/dist/modules/drupal/graphql/features/block-transfer.graphql +42 -0
- package/dist/modules/drupal/graphql/features/comments.graphql +81 -11
- package/dist/modules/drupal/index.d.mts +2 -1
- package/dist/modules/drupal/index.mjs +8 -0
- package/dist/modules/drupal/runtime/adapter/index.js +221 -34
- package/dist/modules/iframes/index.d.mts +2 -1
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +4 -2
- package/dist/modules/index.d.mts +2 -1
- package/dist/modules/readability/index.d.mts +2 -1
- package/dist/modules/table-of-contents/index.d.mts +2 -1
- package/dist/modules/tailwind/index.d.mts +2 -2
- package/dist/modules/tailwind/index.mjs +228 -2
- package/dist/runtime/components/Blocks/NotImplemented/index.vue +24 -51
- package/dist/runtime/components/BlokkliItem.vue +3 -31
- package/dist/runtime/editor/adapter/index.d.ts +16 -0
- package/dist/runtime/editor/components/Actions/Interactions/Button.d.vue.ts +9 -0
- package/dist/runtime/editor/components/Actions/Interactions/Button.vue +19 -0
- package/dist/runtime/editor/components/Actions/Interactions/Button.vue.d.ts +9 -0
- package/dist/runtime/editor/components/Actions/Interactions/index.vue +24 -88
- package/dist/runtime/editor/components/Actions/ItemDropdown/Item.d.vue.ts +7 -0
- package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue +50 -0
- package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue.d.ts +7 -0
- package/dist/runtime/editor/components/Actions/ItemDropdown/index.vue +4 -22
- package/dist/runtime/editor/components/Actions/Title/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/Actions/Title/index.vue +295 -0
- package/dist/runtime/editor/components/Actions/Title/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Actions/index.vue +24 -779
- package/dist/runtime/editor/components/AddListItem/index.vue +2 -0
- package/dist/runtime/editor/components/AnimationCanvas/index.vue +4 -2
- package/dist/runtime/editor/components/AppMenu/Inner.vue +12 -7
- package/dist/runtime/editor/components/AppMenu/MenuButton.d.vue.ts +4 -9
- package/dist/runtime/editor/components/AppMenu/MenuButton.vue +56 -194
- package/dist/runtime/editor/components/AppMenu/MenuButton.vue.d.ts +4 -9
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +120 -145
- package/dist/runtime/editor/components/Avatar/index.d.vue.ts +30 -0
- package/dist/runtime/editor/components/Avatar/index.vue +120 -0
- package/dist/runtime/editor/components/Avatar/index.vue.d.ts +30 -0
- package/dist/runtime/editor/components/Banner/Inner.vue +1 -1
- package/dist/runtime/editor/components/Banner/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/Banner/index.vue +21 -18
- package/dist/runtime/editor/components/Banner/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/BlockPreviewItem/index.vue +35 -41
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +13 -19
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/BlockProxy/index.vue +56 -130
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +117 -48
- package/dist/runtime/editor/components/BundleSelector/Group.d.vue.ts +12 -0
- package/dist/runtime/editor/components/BundleSelector/Group.vue +28 -0
- package/dist/runtime/editor/components/BundleSelector/Group.vue.d.ts +12 -0
- package/dist/runtime/editor/components/BundleSelector/index.vue +31 -211
- package/dist/runtime/editor/components/BundleSelector/types.d.ts +21 -0
- package/dist/runtime/editor/components/BundleSelector/types.js +0 -0
- package/dist/runtime/editor/components/Button/index.d.vue.ts +29 -0
- package/dist/runtime/editor/components/Button/index.vue +36 -0
- package/dist/runtime/editor/components/Button/index.vue.d.ts +29 -0
- package/dist/runtime/editor/components/ButtonAction/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/ButtonAction/index.vue +25 -0
- package/dist/runtime/editor/components/ButtonAction/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/Dialog/index.d.vue.ts +11 -2
- package/dist/runtime/editor/components/Dialog/index.vue +164 -241
- package/dist/runtime/editor/components/Dialog/index.vue.d.ts +11 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +6 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +28 -19
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +6 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +7 -119
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +11 -2
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +115 -248
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +11 -2
- package/dist/runtime/editor/components/DiffApproval/index.d.vue.ts +16 -0
- package/dist/runtime/editor/components/DiffApproval/index.vue +6 -1
- package/dist/runtime/editor/components/DiffApproval/index.vue.d.ts +16 -0
- package/dist/runtime/editor/components/DiffViewer/DiffDisplay/index.vue +1 -1
- package/dist/runtime/editor/components/DiffViewer/State.vue +294 -297
- package/dist/runtime/editor/{features/analyze/Summary/Chart.d.vue.ts → components/DonutChart/index.d.vue.ts} +4 -4
- package/dist/runtime/editor/{features/analyze/Summary/Chart.vue → components/DonutChart/index.vue} +4 -3
- package/dist/runtime/editor/{features/analyze/Summary/Chart.vue.d.ts → components/DonutChart/index.vue.d.ts} +4 -4
- package/dist/runtime/editor/components/DraggableList.vue +71 -84
- package/dist/runtime/editor/components/Dropdown/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/Dropdown/index.vue +91 -89
- package/dist/runtime/editor/components/Dropdown/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/EditIndicator.d.vue.ts +0 -1
- package/dist/runtime/editor/components/EditIndicator.vue +105 -37
- package/dist/runtime/editor/components/EditIndicator.vue.d.ts +0 -1
- package/dist/runtime/editor/components/EditProvider.vue +29 -35
- package/dist/runtime/editor/components/FileDropHandler/index.vue +24 -20
- package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/FlexTextarea/index.vue +8 -4
- package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Form/Checkboxes/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Form/Checkboxes/index.vue +2 -2
- package/dist/runtime/editor/components/Form/Checkboxes/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Form/Datepicker/index.vue +29 -175
- package/dist/runtime/editor/components/Form/Number/index.d.vue.ts +36 -0
- package/dist/runtime/editor/components/Form/Number/index.vue +79 -0
- package/dist/runtime/editor/components/Form/Number/index.vue.d.ts +36 -0
- package/dist/runtime/editor/components/Form/Radio/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Form/Radio/index.vue +2 -2
- package/dist/runtime/editor/components/Form/Radio/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Form/RadioBox/index.d.vue.ts +33 -0
- package/dist/runtime/editor/components/Form/RadioBox/index.vue +40 -0
- package/dist/runtime/editor/components/Form/RadioBox/index.vue.d.ts +33 -0
- package/dist/runtime/editor/components/Form/RadioTabs/index.vue +55 -0
- package/dist/runtime/editor/components/Form/Search/index.d.vue.ts +88 -0
- package/dist/runtime/editor/components/Form/Search/index.vue +289 -0
- package/dist/runtime/editor/components/Form/Search/index.vue.d.ts +88 -0
- package/dist/runtime/editor/components/Form/Search/types.d.ts +19 -0
- package/dist/runtime/editor/components/Form/Search/types.js +0 -0
- package/dist/runtime/editor/components/Form/Text/index.d.vue.ts +6 -2
- package/dist/runtime/editor/components/Form/Text/index.vue +12 -4
- package/dist/runtime/editor/components/Form/Text/index.vue.d.ts +6 -2
- package/dist/runtime/editor/components/Form/TextDark/index.d.vue.ts +24 -0
- package/dist/runtime/editor/components/Form/TextDark/index.vue +56 -0
- package/dist/runtime/editor/components/Form/TextDark/index.vue.d.ts +24 -0
- package/dist/runtime/editor/components/Form/Textarea/index.d.vue.ts +2 -0
- package/dist/runtime/editor/components/Form/Textarea/index.vue +13 -4
- package/dist/runtime/editor/components/Form/Textarea/index.vue.d.ts +2 -0
- package/dist/runtime/editor/components/Form/Toggle/index.d.vue.ts +12 -1
- package/dist/runtime/editor/components/Form/Toggle/index.vue +66 -216
- package/dist/runtime/editor/components/Form/Toggle/index.vue.d.ts +12 -1
- package/dist/runtime/editor/components/FormOverlay/index.vue +17 -25
- package/dist/runtime/editor/components/Icon/index.vue +9 -3
- package/dist/runtime/editor/components/Indicators/index.vue +74 -147
- package/dist/runtime/editor/components/InfoBox/index.d.vue.ts +7 -4
- package/dist/runtime/editor/components/InfoBox/index.vue +18 -69
- package/dist/runtime/editor/components/InfoBox/index.vue.d.ts +7 -4
- package/dist/runtime/editor/components/InlineActions/Button/index.d.vue.ts +19 -0
- package/dist/runtime/editor/components/InlineActions/Button/index.vue +27 -0
- package/dist/runtime/editor/components/InlineActions/Button/index.vue.d.ts +19 -0
- package/dist/runtime/editor/components/InlineActions/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/InlineActions/index.vue +5 -0
- package/dist/runtime/editor/components/InlineActions/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/Konami/Game/index.vue +56 -65
- package/dist/runtime/editor/components/Messages/Item/index.vue +1 -1
- package/dist/runtime/editor/components/Messages/index.vue +65 -74
- package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +2 -1
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +43 -209
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +2 -1
- package/dist/runtime/editor/components/Overlay/index.vue +52 -75
- package/dist/runtime/editor/components/Pagination/index.vue +18 -24
- package/dist/runtime/editor/components/Panel/Action/index.d.vue.ts +11 -0
- package/dist/runtime/editor/components/Panel/Action/index.vue +25 -0
- package/dist/runtime/editor/components/Panel/Action/index.vue.d.ts +11 -0
- package/dist/runtime/editor/components/Panel/AddButton/index.d.vue.ts +8 -0
- package/dist/runtime/editor/components/Panel/AddButton/index.vue +17 -0
- package/dist/runtime/editor/components/Panel/AddButton/index.vue.d.ts +8 -0
- package/dist/runtime/editor/components/Panel/Details/index.d.vue.ts +25 -0
- package/dist/runtime/editor/components/Panel/Details/index.vue +45 -0
- package/dist/runtime/editor/components/Panel/Details/index.vue.d.ts +25 -0
- package/dist/runtime/editor/components/Panel/Item/index.d.vue.ts +65 -0
- package/dist/runtime/editor/components/Panel/Item/index.vue +99 -0
- package/dist/runtime/editor/components/Panel/Item/index.vue.d.ts +65 -0
- package/dist/runtime/editor/components/Panel/Section/index.d.vue.ts +26 -0
- package/dist/runtime/editor/components/Panel/Section/index.vue +94 -0
- package/dist/runtime/editor/components/Panel/Section/index.vue.d.ts +26 -0
- package/dist/runtime/editor/components/Panel/Sheet/index.d.vue.ts +20 -0
- package/dist/runtime/editor/components/Panel/Sheet/index.vue +34 -0
- package/dist/runtime/editor/components/Panel/Sheet/index.vue.d.ts +20 -0
- package/dist/runtime/editor/components/Panel/Tabs/index.d.vue.ts +28 -0
- package/dist/runtime/editor/components/Panel/Tabs/index.vue +25 -0
- package/dist/runtime/editor/components/Panel/Tabs/index.vue.d.ts +28 -0
- package/dist/runtime/editor/components/Pill/index.d.vue.ts +28 -0
- package/dist/runtime/editor/components/Pill/index.vue +37 -0
- package/dist/runtime/editor/components/Pill/index.vue.d.ts +28 -0
- package/dist/runtime/editor/components/PluginConfigForm/index.vue +15 -16
- package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +116 -248
- package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +43 -58
- package/dist/runtime/editor/components/Popup/index.vue +56 -47
- package/dist/runtime/editor/components/PreviewProvider.vue +3 -3
- package/dist/runtime/editor/components/Reorder/index.d.vue.ts +53 -0
- package/dist/runtime/editor/components/Reorder/index.vue +123 -0
- package/dist/runtime/editor/components/Reorder/index.vue.d.ts +53 -0
- package/dist/runtime/editor/components/Resizable/index.d.vue.ts +10 -2
- package/dist/runtime/editor/components/Resizable/index.vue +84 -79
- package/dist/runtime/editor/components/Resizable/index.vue.d.ts +10 -2
- package/dist/runtime/editor/components/ResizableEditorView/index.d.vue.ts +26 -0
- package/dist/runtime/editor/components/ResizableEditorView/index.vue +76 -0
- package/dist/runtime/editor/components/ResizableEditorView/index.vue.d.ts +26 -0
- package/dist/runtime/editor/components/RichText/Editor/CleanTaskItem.d.ts +10 -0
- package/dist/runtime/editor/components/RichText/Editor/CleanTaskItem.js +59 -0
- package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.d.vue.ts +19 -0
- package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.vue +67 -0
- package/dist/runtime/editor/components/RichText/Editor/Panel/Link/index.vue.d.ts +19 -0
- package/dist/runtime/editor/components/RichText/Editor/Panel/index.d.vue.ts +20 -0
- package/dist/runtime/editor/components/RichText/Editor/Panel/index.vue +35 -0
- package/dist/runtime/editor/components/RichText/Editor/Panel/index.vue.d.ts +20 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.d.vue.ts +24 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.vue +44 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Emojis.vue.d.ts +24 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.d.vue.ts +23 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.vue +35 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/Mentions.vue.d.ts +23 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.d.vue.ts +30 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.vue +69 -0
- package/dist/runtime/editor/components/RichText/Editor/SuggestionList/index.vue.d.ts +30 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.d.vue.ts +18 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.vue +31 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/Button/index.vue.d.ts +18 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.vue +13 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/Group/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.vue +7 -0
- package/dist/runtime/editor/components/RichText/Editor/Toolbar/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/RichText/Editor/index.d.vue.ts +31 -0
- package/dist/runtime/editor/components/RichText/Editor/index.vue +386 -0
- package/dist/runtime/editor/components/RichText/Editor/index.vue.d.ts +31 -0
- package/dist/runtime/editor/components/RichText/Renderer/enrichRichContent.d.ts +12 -0
- package/dist/runtime/editor/components/RichText/Renderer/enrichRichContent.js +42 -0
- package/dist/runtime/editor/components/RichText/Renderer/index.d.vue.ts +23 -0
- package/dist/runtime/editor/components/RichText/Renderer/index.vue +39 -0
- package/dist/runtime/editor/components/RichText/Renderer/index.vue.d.ts +23 -0
- package/dist/runtime/editor/components/ScaleToFit/index.vue +18 -21
- package/dist/runtime/editor/components/ScheduleDate/index.d.vue.ts +2 -2
- package/dist/runtime/editor/components/ScheduleDate/index.vue +21 -12
- package/dist/runtime/editor/components/ScheduleDate/index.vue.d.ts +2 -2
- package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +3 -3
- package/dist/runtime/editor/components/SearchOverlay/index.vue +31 -112
- package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +3 -3
- package/dist/runtime/editor/components/SidebarFloater/index.d.vue.ts +16 -0
- package/dist/runtime/editor/components/SidebarFloater/index.vue +45 -0
- package/dist/runtime/editor/components/SidebarFloater/index.vue.d.ts +16 -0
- package/dist/runtime/editor/components/StatusIcon/index.vue +42 -91
- package/dist/runtime/editor/components/SystemRequirements/index.vue +40 -46
- package/dist/runtime/editor/components/Tabs/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/Tabs/index.vue +5 -3
- package/dist/runtime/editor/components/Tabs/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/Toolbar/index.vue +155 -138
- package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Tooltip/index.vue +15 -5
- package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Transition/Collapse/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/Transition/Collapse/index.vue +20 -0
- package/dist/runtime/editor/components/Transition/Collapse/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/Transition/List/index.d.vue.ts +21 -0
- package/dist/runtime/editor/components/Transition/List/index.vue +31 -0
- package/dist/runtime/editor/components/Transition/List/index.vue.d.ts +21 -0
- package/dist/runtime/editor/components/Transition/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Transition/index.vue +2 -1
- package/dist/runtime/editor/components/Transition/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/index.d.ts +11 -2
- package/dist/runtime/editor/components/index.js +10 -4
- package/dist/runtime/editor/composables/defineEditorComponent.d.ts +126 -0
- package/dist/runtime/editor/composables/defineEditorComponent.js +6 -0
- package/dist/runtime/editor/composables/index.d.ts +1 -0
- package/dist/runtime/editor/composables/index.js +4 -0
- package/dist/runtime/editor/composables/useDialog.d.ts +1 -1
- package/dist/runtime/editor/composables/useDialog.js +2 -2
- package/dist/runtime/editor/composables/useEditableFieldOverride.js +16 -8
- package/dist/runtime/editor/composables/useGlobalBlokkliObject.d.ts +17 -3
- package/dist/runtime/editor/composables/useGlobalBlokkliObject.js +6 -0
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/events/index.d.ts +22 -2
- package/dist/runtime/editor/features/add-list/Actions/index.vue +5 -1
- package/dist/runtime/editor/features/add-list/Blocks/index.vue +6 -1
- package/dist/runtime/editor/features/add-list/Help/Item.vue +16 -5
- package/dist/runtime/editor/features/add-list/Help/index.vue +127 -168
- package/dist/runtime/editor/features/add-list/index.vue +171 -324
- package/dist/runtime/editor/features/analyze/Ignored/index.vue +6 -22
- package/dist/runtime/editor/features/analyze/Main.vue +49 -43
- package/dist/runtime/editor/features/analyze/Results/Results.vue +6 -28
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +19 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +23 -6
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +2 -4
- package/dist/runtime/editor/features/analyze/Results/Section.d.vue.ts +10 -0
- package/dist/runtime/editor/features/analyze/Results/Section.vue +42 -0
- package/dist/runtime/editor/features/analyze/Results/Section.vue.d.ts +10 -0
- package/dist/runtime/editor/features/analyze/Results/Status.vue +12 -6
- package/dist/runtime/editor/features/analyze/Summary/index.vue +19 -8
- package/dist/runtime/editor/features/analyze/index.vue +3 -454
- package/dist/runtime/editor/features/anchors/Overlay/index.vue +3 -11
- package/dist/runtime/editor/features/artboard/Overview/index.vue +6 -8
- package/dist/runtime/editor/features/artboard/Renderer.vue +40 -28
- package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +22 -63
- package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.d.vue.ts +3 -0
- package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue +38 -25
- package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue.d.ts +3 -0
- package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +21 -85
- package/dist/runtime/editor/features/block-scheduler/index.vue +9 -65
- package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.d.vue.ts +11 -0
- package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue +188 -0
- package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue.d.ts +11 -0
- package/dist/runtime/editor/features/block-transfer/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/block-transfer/index.vue +235 -0
- package/dist/runtime/editor/features/block-transfer/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/block-transfer/types.d.ts +101 -0
- package/dist/runtime/editor/features/block-transfer/types.js +0 -0
- package/dist/runtime/editor/features/breadcrumbs/Crumb/index.d.vue.ts +31 -0
- package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue +105 -0
- package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue.d.ts +31 -0
- package/dist/runtime/editor/features/breadcrumbs/index.vue +56 -195
- package/dist/runtime/editor/features/breadcrumbs/types.d.ts +17 -0
- package/dist/runtime/editor/features/breadcrumbs/types.js +0 -0
- package/dist/runtime/editor/features/changelog/Dialog/index.vue +14 -68
- package/dist/runtime/editor/features/changelog/changelog.json +8 -0
- package/dist/runtime/editor/features/changelog/index.vue +1 -1
- package/dist/runtime/editor/features/clipboard/DropElement/index.vue +137 -152
- package/dist/runtime/editor/features/clipboard/index.vue +24 -143
- package/dist/runtime/editor/features/clipboard/types.d.ts +9 -0
- package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +6 -3
- package/dist/runtime/editor/features/command-palette/Palette/index.vue +4 -1
- package/dist/runtime/editor/features/comments/AddForm/index.vue +25 -14
- package/dist/runtime/editor/features/comments/Comment/Actions/index.d.vue.ts +27 -0
- package/dist/runtime/editor/features/comments/Comment/Actions/index.vue +93 -0
- package/dist/runtime/editor/features/comments/Comment/Actions/index.vue.d.ts +27 -0
- package/dist/runtime/editor/features/comments/Comment/EditForm/index.d.vue.ts +15 -0
- package/dist/runtime/editor/features/comments/Comment/EditForm/index.vue +38 -0
- package/dist/runtime/editor/features/comments/Comment/EditForm/index.vue.d.ts +15 -0
- package/dist/runtime/editor/features/comments/Comment/Meta/index.d.vue.ts +12 -0
- package/dist/runtime/editor/features/comments/Comment/Meta/index.vue +30 -0
- package/dist/runtime/editor/features/comments/Comment/Meta/index.vue.d.ts +12 -0
- package/dist/runtime/editor/features/comments/Comment/index.d.vue.ts +16 -14
- package/dist/runtime/editor/features/comments/Comment/index.vue +112 -28
- package/dist/runtime/editor/features/comments/Comment/index.vue.d.ts +16 -14
- package/dist/runtime/editor/features/comments/CommentInput/index.d.vue.ts +25 -10
- package/dist/runtime/editor/features/comments/CommentInput/index.vue +77 -19
- package/dist/runtime/editor/features/comments/CommentInput/index.vue.d.ts +25 -10
- package/dist/runtime/editor/features/comments/Overlay/Item/index.d.vue.ts +32 -5
- package/dist/runtime/editor/features/comments/Overlay/Item/index.vue +85 -47
- package/dist/runtime/editor/features/comments/Overlay/Item/index.vue.d.ts +32 -5
- package/dist/runtime/editor/features/comments/Overlay/index.d.vue.ts +29 -7
- package/dist/runtime/editor/features/comments/Overlay/index.vue +42 -11
- package/dist/runtime/editor/features/comments/Overlay/index.vue.d.ts +29 -7
- package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.d.vue.ts +9 -0
- package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue +58 -0
- package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue.d.ts +9 -0
- package/dist/runtime/editor/features/comments/Sidebar/index.d.vue.ts +50 -0
- package/dist/runtime/editor/features/comments/Sidebar/index.vue +111 -0
- package/dist/runtime/editor/features/comments/Sidebar/index.vue.d.ts +50 -0
- package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.d.vue.ts +11 -0
- package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue +58 -0
- package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue.d.ts +11 -0
- package/dist/runtime/editor/features/comments/Thread/index.d.vue.ts +44 -0
- package/dist/runtime/editor/features/comments/Thread/index.vue +142 -0
- package/dist/runtime/editor/features/comments/Thread/index.vue.d.ts +44 -0
- package/dist/runtime/editor/features/comments/index.vue +85 -259
- package/dist/runtime/editor/features/comments/types.d.ts +42 -8
- package/dist/runtime/editor/features/debug/Main.vue +148 -146
- package/dist/runtime/editor/features/debug/Section/Logging.vue +5 -2
- package/dist/runtime/editor/features/debug/Section/Rendering.vue +3 -3
- package/dist/runtime/editor/features/delete/index.vue +1 -1
- package/dist/runtime/editor/features/dev-mode/index.vue +31 -35
- package/dist/runtime/editor/features/diff/index.vue +1 -1
- package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +123 -1
- package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +51 -0
- package/dist/runtime/editor/features/dragging-overlay/index.vue +143 -313
- package/dist/runtime/editor/features/dragging-overlay/types.d.ts +28 -0
- package/dist/runtime/editor/features/dragging-overlay/types.js +0 -0
- package/dist/runtime/editor/features/droppable-field-edit/Overlay/index.vue +26 -24
- package/dist/runtime/editor/features/edit/index.vue +3 -6
- package/dist/runtime/editor/features/edit-form/index.vue +1 -1
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +17 -15
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue +1 -0
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +48 -51
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +9 -1
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +137 -183
- package/dist/runtime/editor/features/editable-mask/index.vue +5 -5
- package/dist/runtime/editor/features/entity-title/index.vue +15 -3
- package/dist/runtime/editor/features/exit/index.vue +1 -1
- package/dist/runtime/editor/features/fragments/Dialog/index.vue +8 -91
- package/dist/runtime/editor/features/help/Shortcuts/index.vue +48 -60
- package/dist/runtime/editor/features/help/index.vue +10 -11
- package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +1 -1
- package/dist/runtime/editor/features/highlights/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/history/List/index.vue +217 -208
- package/dist/runtime/editor/features/history/index.vue +2 -2
- package/dist/runtime/editor/features/hover/Renderer/index.vue +4 -2
- package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +3 -1
- package/dist/runtime/editor/features/hover/index.vue +2 -2
- package/dist/runtime/editor/features/import-existing/Dialog/Item.vue +19 -32
- package/dist/runtime/editor/features/import-existing/Dialog/index.vue +39 -26
- package/dist/runtime/editor/features/import-existing/index.vue +1 -1
- package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/index.vue +2 -2
- package/dist/runtime/editor/features/library/{ReusableDialog → DialogMakeReusable}/index.vue +25 -22
- package/dist/runtime/editor/features/library/index.vue +4 -4
- package/dist/runtime/editor/features/media-library/Library/index.vue +1 -1
- package/dist/runtime/editor/features/media-library/index.vue +126 -182
- package/dist/runtime/editor/features/multi-select/index.vue +2 -6
- package/dist/runtime/editor/features/options/Form/Checkbox/index.d.vue.ts +2 -2
- package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +6 -3
- package/dist/runtime/editor/features/options/Form/Checkbox/index.vue.d.ts +2 -2
- package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +12 -7
- package/dist/runtime/editor/features/options/Form/Color/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +1 -0
- package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.vue +4 -1
- package/dist/runtime/editor/features/options/Form/Item.vue +6 -1
- package/dist/runtime/editor/features/options/Form/Number/index.d.vue.ts +10 -13
- package/dist/runtime/editor/features/options/Form/Number/index.vue +79 -13
- package/dist/runtime/editor/features/options/Form/Number/index.vue.d.ts +10 -13
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +1 -0
- package/dist/runtime/editor/features/options/Form/Range/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/Text/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/index.vue +34 -24
- package/dist/runtime/editor/features/options/index.vue +700 -695
- package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +17 -10
- package/dist/runtime/editor/features/preview-grant/index.vue +1 -0
- package/dist/runtime/editor/features/publish/Dialog/Item.vue +53 -9
- package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +36 -12
- package/dist/runtime/editor/features/publish/Dialog/Summary.vue +41 -30
- package/dist/runtime/editor/features/publish/Dialog/index.vue +141 -133
- package/dist/runtime/editor/features/publish/index.vue +3 -838
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +1 -1
- package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +163 -179
- package/dist/runtime/editor/features/revert/index.vue +1 -1
- package/dist/runtime/editor/features/search/Overlay/Results/Content/index.vue +1 -1
- package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +1 -1
- package/dist/runtime/editor/features/search/index.vue +340 -442
- package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +33 -58
- package/dist/runtime/editor/features/selection/AddButtons/index.vue +23 -7
- package/dist/runtime/editor/features/selection/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/selection/types.d.ts +22 -0
- package/dist/runtime/editor/features/selection/types.js +0 -0
- package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +30 -40
- package/dist/runtime/editor/features/settings/Dialog/index.vue +31 -24
- package/dist/runtime/editor/features/settings/index.vue +2 -151
- package/dist/runtime/editor/features/structure/List/Item/index.vue +3 -4
- package/dist/runtime/editor/features/structure/index.vue +132 -152
- package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/index.vue +1 -1
- package/dist/runtime/editor/features/templates/{CreateDialog → DialogCreateTemplate}/index.vue +11 -12
- package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/Item.vue +35 -30
- package/dist/runtime/editor/features/templates/DialogManageTemplates/index.vue +117 -0
- package/dist/runtime/editor/features/templates/index.vue +7 -5
- package/dist/runtime/editor/features/theme/index.vue +38 -56
- package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +15 -30
- package/dist/runtime/editor/features/tour/Overlay/index.vue +137 -196
- package/dist/runtime/editor/features/transform/Dialog/index.vue +102 -111
- package/dist/runtime/editor/features/translations/AutoTranslate/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/translations/AutoTranslate/index.vue +138 -0
- package/dist/runtime/editor/features/translations/AutoTranslate/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/translations/Banner/index.vue +13 -7
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +58 -46
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +51 -35
- package/dist/runtime/editor/features/translations/CsvDialog/index.vue +4 -5
- package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.d.vue.ts +13 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.vue +49 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/Dropdown/index.vue.d.ts +13 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.d.vue.ts +12 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.vue +48 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/InlineButtons/index.vue.d.ts +12 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/index.vue +64 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/types.d.ts +8 -0
- package/dist/runtime/editor/features/translations/LanguageSwitcher/types.js +0 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +5 -18
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue +18 -54
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +5 -18
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +123 -106
- package/dist/runtime/editor/features/translations/index.vue +26 -239
- package/dist/runtime/editor/features/validations/Overlay/index.vue +60 -117
- package/dist/runtime/editor/features/validations/index.vue +16 -35
- package/dist/runtime/editor/features/workspace/Overlay/Item.vue +9 -17
- package/dist/runtime/editor/features/workspace/Overlay/index.vue +4 -2
- package/dist/runtime/editor/features/workspace/index.vue +1 -1
- package/dist/runtime/editor/helpers/diff/index.d.ts +12 -0
- package/dist/runtime/editor/helpers/diff/index.js +9 -0
- package/dist/runtime/editor/helpers/options/index.js +7 -1
- package/dist/runtime/editor/helpers/string/index.d.ts +8 -0
- package/dist/runtime/editor/helpers/string/index.js +7 -0
- package/dist/runtime/editor/icons/svg/ghost.svg +1 -0
- package/dist/runtime/editor/plugins/BlockIndicator/index.vue +2 -0
- package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +3 -2
- package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +13 -3
- package/dist/runtime/editor/plugins/ItemAction/index.vue +36 -16
- package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +13 -3
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
- package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +3 -3
- package/dist/runtime/editor/plugins/Sidebar/index.vue +212 -302
- package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +3 -3
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue +4 -2
- package/dist/runtime/editor/plugins/ViewOption/index.vue +2 -0
- package/dist/runtime/editor/providers/config.d.ts +8 -0
- package/dist/runtime/editor/providers/config.js +18 -0
- package/dist/runtime/editor/providers/directive.d.ts +8 -0
- package/dist/runtime/editor/providers/directive.js +6 -0
- package/dist/runtime/editor/providers/state.d.ts +0 -16
- package/dist/runtime/editor/providers/state.js +1 -19
- package/dist/runtime/editor/providers/texts.d.ts +8 -1
- package/dist/runtime/editor/providers/texts.js +5 -2
- package/dist/runtime/editor/providers/ui.d.ts +43 -2
- package/dist/runtime/editor/providers/ui.js +43 -2
- package/dist/runtime/editor/providers/user.d.ts +20 -0
- package/dist/runtime/editor/providers/user.js +14 -0
- package/dist/runtime/editor/translations/de.json +310 -306
- package/dist/runtime/editor/translations/fr.json +38 -132
- package/dist/runtime/editor/translations/gsw_CH.json +250 -246
- package/dist/runtime/editor/translations/it.json +38 -132
- package/dist/runtime/editor/types/app.d.ts +4 -0
- package/dist/runtime/editor/types/clipboard.d.ts +53 -0
- package/dist/runtime/editor/types/clipboard.js +23 -0
- package/dist/runtime/editor/types/config.d.ts +5 -0
- package/dist/runtime/editor/types/config.js +0 -0
- package/dist/runtime/editor/types/permissions.d.ts +1 -0
- package/dist/runtime/editor/types/ui.d.ts +1 -0
- package/dist/runtime/editor/types/user.d.ts +9 -0
- package/dist/runtime/editor/types/user.js +0 -0
- package/dist/runtime/helpers/runtimeHelpers/index.d.ts +1 -1
- package/dist/runtime/helpers/runtimeHelpers/index.js +7 -0
- package/dist/runtime/types/definitions.d.ts +3 -0
- package/dist/shared/{editor.Bpw1EP57.d.mts → editor.D28NbXr3.d.mts} +20 -4
- package/dist/shared/{editor.FygP6XeF.mjs → editor.Gu7mgJ5Q.mjs} +33 -1
- package/dist/types.d.mts +1 -1
- package/package.json +29 -15
- package/dist/chunks/tailwindConfig.mjs +0 -222
- package/dist/modules/agent/runtime/app/features/agent/Panel/Attachment/PreviewCsv/index.vue +0 -31
- package/dist/modules/agent/runtime/app/features/agent/Panel/Attachment/PreviewHtml/index.vue +0 -12
- package/dist/modules/agent/runtime/app/features/agent/Panel/Attachment/PreviewMarkdown/index.vue +0 -17
- package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/Assistant/index.vue +0 -38
- package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/Tool/index.vue +0 -61
- package/dist/modules/agent/runtime/app/features/agent/Panel/Conversation/Item/User/index.vue +0 -28
- package/dist/modules/agent/runtime/app/features/agent/Panel/DebugGallery/index.vue +0 -161
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Details/index.d.vue.ts +0 -6
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Details/index.vue +0 -24
- package/dist/modules/agent/runtime/app/tools/update_text_fields/Details/index.vue.d.ts +0 -6
- package/dist/modules/agent/runtime/server/helpers.d.ts +0 -77
- package/dist/modules/agent/runtime/server/helpers.js +0 -354
- package/dist/modules/charts/runtime/chartTypes/area.d.ts +0 -7
- package/dist/modules/charts/runtime/chartTypes/area.js +0 -68
- package/dist/modules/charts/runtime/chartTypes/define.d.ts +0 -2
- package/dist/modules/charts/runtime/chartTypes/define.js +0 -3
- package/dist/modules/charts/runtime/chartTypes/donut.d.ts +0 -6
- package/dist/modules/charts/runtime/chartTypes/donut.js +0 -45
- package/dist/modules/charts/runtime/chartTypes/heatmap.js +0 -54
- package/dist/modules/charts/runtime/chartTypes/index.d.ts +0 -39
- package/dist/modules/charts/runtime/chartTypes/index.js +0 -47
- package/dist/modules/charts/runtime/chartTypes/line.d.ts +0 -7
- package/dist/modules/charts/runtime/chartTypes/line.js +0 -68
- package/dist/modules/charts/runtime/chartTypes/pie.d.ts +0 -5
- package/dist/modules/charts/runtime/chartTypes/pie.js +0 -28
- package/dist/modules/charts/runtime/chartTypes/radar.d.ts +0 -7
- package/dist/modules/charts/runtime/chartTypes/radar.js +0 -52
- package/dist/modules/charts/runtime/chartTypes/radialBar.d.ts +0 -6
- package/dist/modules/charts/runtime/chartTypes/radialBar.js +0 -44
- package/dist/modules/charts/runtime/chartTypes/shared.d.ts +0 -67
- package/dist/modules/charts/runtime/chartTypes/types.d.ts +0 -29
- package/dist/runtime/editor/components/AutoHeight/index.vue +0 -55
- package/dist/runtime/editor/features/templates/ManageDialog/index.vue +0 -128
- /package/dist/{modules/charts/runtime/chartTypes/types.js → global/types/colorOptions.js} +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCode/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCode/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCsv/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewCsv/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewHtml/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewHtml/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewMarkdown/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Attachment/PreviewMarkdown/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Assistant/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Assistant/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Tool/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Tool/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Unknown/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/Unknown/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/index.vue +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Item/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Thinking/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/{features/agent/Panel → components}/Conversation/Thinking/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/{tools/delegate_text_rewrite/Details → components/FieldDiffDetails}/index.vue +0 -0
- /package/dist/modules/agent/runtime/app/features/agent/{Panel/DebugGallery → ConversationsAdmin/ConversationsTab}/index.d.vue.ts +0 -0
- /package/dist/modules/agent/runtime/app/features/agent/{Panel/DebugGallery → ConversationsAdmin/ConversationsTab}/index.vue.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/tools/{add_content_search_paragraph → add_content_search_paragraphs}/index.d.ts +0 -0
- /package/dist/modules/agent/runtime/app/tools/{check_readability → check_readability_for_texts}/index.d.ts +0 -0
- /package/dist/modules/agent/runtime/server/{streamParser.d.ts → classes/FieldStreamParser/index.d.ts} +0 -0
- /package/dist/modules/agent/runtime/server/{streamParser.js → classes/FieldStreamParser/index.js} +0 -0
- /package/dist/modules/agent/runtime/server/{agentPrompt.js → helpers/agentPrompt.js} +0 -0
- /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/Item/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/Item/index.vue +0 -0
- /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/Item/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/library/{LibraryDialog → DialogBrowseLibrary}/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/library/{ReusableDialog → DialogMakeReusable}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/library/{ReusableDialog → DialogMakeReusable}/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/Item/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/Item/index.vue +0 -0
- /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/Item/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/templates/{Dialog → DialogBrowseTemplates}/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/templates/{CreateDialog → DialogCreateTemplate}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/templates/{CreateDialog → DialogCreateTemplate}/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/Item.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/Item.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/templates/{ManageDialog → DialogManageTemplates}/index.vue.d.ts +0 -0
package/dist/module.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import MagicString from 'magic-string';
|
|
|
5
5
|
import { walk } from 'estree-walker-ts';
|
|
6
6
|
import { pathToFileURL } from 'node:url';
|
|
7
7
|
import { parseURL, parseQuery } from 'ufo';
|
|
8
|
-
import { C as Collector, a as CollectedFile,
|
|
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
9
|
import { dirname, resolve, relative } from 'pathe';
|
|
10
10
|
import micromatch from 'micromatch';
|
|
11
11
|
import { hash } from 'ohash';
|
|
@@ -13,13 +13,13 @@ import fs__default, { readFileSync, existsSync, readdirSync } from 'node:fs';
|
|
|
13
13
|
import { TRANSLATION_LANGUAGES, BK_VISIBLE_LANGUAGES, BK_HIDDEN_GLOBALLY } from './global/constants';
|
|
14
14
|
import { createRequire } from 'node:module';
|
|
15
15
|
import { d as defineCodeTemplate, a as defineFileTemplate, w as withHelper } from './shared/editor.6D5vApr0.mjs';
|
|
16
|
-
import { defu, createDefu } from 'defu';
|
|
17
16
|
import * as acorn from 'acorn';
|
|
17
|
+
import { defu, createDefu } from 'defu';
|
|
18
18
|
import 'typescript';
|
|
19
19
|
import 'oxc-walker';
|
|
20
20
|
|
|
21
21
|
const name = "@blokkli/editor";
|
|
22
|
-
const version = "2.0.0-alpha.
|
|
22
|
+
const version = "2.0.0-alpha.59";
|
|
23
23
|
|
|
24
24
|
function validateOption(optionKey, option, icons) {
|
|
25
25
|
const errors = [];
|
|
@@ -71,6 +71,12 @@ function validateOption(optionKey, option, icons) {
|
|
|
71
71
|
const defaultValue = option.default;
|
|
72
72
|
const min = option.min;
|
|
73
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
|
+
}
|
|
74
80
|
if (typeof defaultValue === "number") {
|
|
75
81
|
if (typeof min === "number" && defaultValue < min) {
|
|
76
82
|
errors.push({
|
|
@@ -84,6 +90,11 @@ function validateOption(optionKey, option, icons) {
|
|
|
84
90
|
optionKey
|
|
85
91
|
});
|
|
86
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
|
+
});
|
|
87
98
|
}
|
|
88
99
|
break;
|
|
89
100
|
}
|
|
@@ -997,6 +1008,16 @@ class FileCache {
|
|
|
997
1008
|
}
|
|
998
1009
|
}
|
|
999
1010
|
|
|
1011
|
+
const defaultColorOptions = {
|
|
1012
|
+
blue: { hex: "#3b82f6", label: "Blue" },
|
|
1013
|
+
red: { hex: "#ef4444", label: "Red" },
|
|
1014
|
+
green: { hex: "#10b981", label: "Green" },
|
|
1015
|
+
amber: { hex: "#f59e0b", label: "Amber" },
|
|
1016
|
+
purple: { hex: "#8b5cf6", label: "Purple" },
|
|
1017
|
+
pink: { hex: "#ec4899", label: "Pink" },
|
|
1018
|
+
teal: { hex: "#14b8a6", label: "Teal" },
|
|
1019
|
+
orange: { hex: "#f97316", label: "Orange" }
|
|
1020
|
+
};
|
|
1000
1021
|
class ModuleHelper {
|
|
1001
1022
|
constructor(nuxt, logger, moduleUrl, providedOptions) {
|
|
1002
1023
|
this.nuxt = nuxt;
|
|
@@ -1009,7 +1030,8 @@ class ModuleHelper {
|
|
|
1009
1030
|
module: createResolver(moduleUrl),
|
|
1010
1031
|
build: createResolver(nuxt.options.buildDir),
|
|
1011
1032
|
src: createResolver(nuxt.options.srcDir),
|
|
1012
|
-
app: createResolver(nuxt.options.dir.app)
|
|
1033
|
+
app: createResolver(nuxt.options.dir.app),
|
|
1034
|
+
root: createResolver(nuxt.options.rootDir)
|
|
1013
1035
|
};
|
|
1014
1036
|
this.paths = {
|
|
1015
1037
|
blokkliBuildDir: this.resolvers.build.resolve("blokkli"),
|
|
@@ -1077,7 +1099,8 @@ class ModuleHelper {
|
|
|
1077
1099
|
pattern,
|
|
1078
1100
|
fieldListTypes: fieldListTypes.filter(onlyUnique),
|
|
1079
1101
|
providerTypes: providerTypes.filter(onlyUnique),
|
|
1080
|
-
chunkNames: chunkNames.filter(onlyUnique)
|
|
1102
|
+
chunkNames: chunkNames.filter(onlyUnique),
|
|
1103
|
+
colorOptions: providedOptions.colorOptions || defaultColorOptions
|
|
1081
1104
|
};
|
|
1082
1105
|
this.paths.editAdapter = this.findEditAdapterPath();
|
|
1083
1106
|
}
|
|
@@ -1099,6 +1122,23 @@ class ModuleHelper {
|
|
|
1099
1122
|
toModuleBuildRelative(path) {
|
|
1100
1123
|
return relative(this.paths.blokkliBuildDir, path);
|
|
1101
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* Path to the editor's compiled tailwind config. Used by the SFC mangle
|
|
1127
|
+
* pipeline and module CSS processing to inject `@config` so consumer-side
|
|
1128
|
+
* `@apply` resolves against the editor's theme + utilities.
|
|
1129
|
+
*
|
|
1130
|
+
* In dist (npm install): `dist/modules/tailwind/index.mjs`. In source (this
|
|
1131
|
+
* repo's playground): `tailwind.config.ts` at the repo root.
|
|
1132
|
+
*/
|
|
1133
|
+
getTailwindConfigPath() {
|
|
1134
|
+
const distPath = this.resolvers.module.resolve(
|
|
1135
|
+
"./modules/tailwind/index.mjs"
|
|
1136
|
+
);
|
|
1137
|
+
if (this.fileCache.fileExists(distPath)) {
|
|
1138
|
+
return distPath;
|
|
1139
|
+
}
|
|
1140
|
+
return this.resolvers.module.resolve("../tailwind.config.ts");
|
|
1141
|
+
}
|
|
1102
1142
|
findEditAdapterPath() {
|
|
1103
1143
|
const filePath = this.resolvers.app.resolve("blokkli.editAdapter.ts");
|
|
1104
1144
|
if (this.fileCache.fileExists(filePath)) {
|
|
@@ -1147,7 +1187,7 @@ class ModuleHelper {
|
|
|
1147
1187
|
* Add a directory to the app TypeScript tsconfig includes.
|
|
1148
1188
|
*/
|
|
1149
1189
|
addAppTsInclude(absolutePath) {
|
|
1150
|
-
const rel = relative(this.nuxt.options.buildDir, absolutePath);
|
|
1190
|
+
const rel = relative(this.nuxt.options.buildDir, absolutePath) + "/**/*";
|
|
1151
1191
|
this.nuxt.options.typescript.tsConfig ||= {};
|
|
1152
1192
|
this.nuxt.options.typescript.tsConfig.include ||= [];
|
|
1153
1193
|
this.nuxt.options.typescript.tsConfig.include.push(rel);
|
|
@@ -1156,7 +1196,7 @@ class ModuleHelper {
|
|
|
1156
1196
|
* Add a directory to the server/Nitro TypeScript tsconfig includes.
|
|
1157
1197
|
*/
|
|
1158
1198
|
addServerTsInclude(absolutePath) {
|
|
1159
|
-
const rel = relative(this.nuxt.options.buildDir, absolutePath);
|
|
1199
|
+
const rel = relative(this.nuxt.options.buildDir, absolutePath) + "/**/*";
|
|
1160
1200
|
this.nuxt.options.nitro.typescript ||= {};
|
|
1161
1201
|
this.nuxt.options.nitro.typescript.tsConfig ||= {};
|
|
1162
1202
|
this.nuxt.options.nitro.typescript.tsConfig.include ||= [];
|
|
@@ -1475,8 +1515,10 @@ const USED_MATERIAL_ICONS = [
|
|
|
1475
1515
|
"bk_mdi_anchor",
|
|
1476
1516
|
"bk_mdi_architecture",
|
|
1477
1517
|
"bk_mdi_area_chart",
|
|
1518
|
+
"bk_mdi_arrow_back",
|
|
1478
1519
|
"bk_mdi_arrow_downward",
|
|
1479
1520
|
"bk_mdi_arrow_drop_down",
|
|
1521
|
+
"bk_mdi_arrow_forward",
|
|
1480
1522
|
"bk_mdi_arrow_left",
|
|
1481
1523
|
"bk_mdi_arrow_left_alt",
|
|
1482
1524
|
"bk_mdi_arrow_right",
|
|
@@ -1494,41 +1536,54 @@ const USED_MATERIAL_ICONS = [
|
|
|
1494
1536
|
"bk_mdi_calendar_month",
|
|
1495
1537
|
"bk_mdi_campaign",
|
|
1496
1538
|
"bk_mdi_chat",
|
|
1539
|
+
"bk_mdi_chat_bubble-fill",
|
|
1497
1540
|
"bk_mdi_check",
|
|
1498
1541
|
"bk_mdi_check_box",
|
|
1499
1542
|
"bk_mdi_check_box_outline_blank",
|
|
1500
1543
|
"bk_mdi_check_circle",
|
|
1544
|
+
"bk_mdi_check_circle-fill",
|
|
1545
|
+
"bk_mdi_checklist",
|
|
1501
1546
|
"bk_mdi_chevron_backward",
|
|
1502
1547
|
"bk_mdi_chevron_forward",
|
|
1503
|
-
"bk_mdi_chevron_left",
|
|
1504
|
-
"bk_mdi_chevron_right",
|
|
1505
1548
|
"bk_mdi_close",
|
|
1549
|
+
"bk_mdi_code",
|
|
1506
1550
|
"bk_mdi_collapse_all",
|
|
1507
1551
|
"bk_mdi_comment",
|
|
1508
1552
|
"bk_mdi_construction",
|
|
1509
1553
|
"bk_mdi_content_copy",
|
|
1510
1554
|
"bk_mdi_content_paste",
|
|
1555
|
+
"bk_mdi_csv",
|
|
1511
1556
|
"bk_mdi_dashboard",
|
|
1557
|
+
"bk_mdi_data_object",
|
|
1512
1558
|
"bk_mdi_delete",
|
|
1513
1559
|
"bk_mdi_dock_to_left",
|
|
1514
1560
|
"bk_mdi_dock_to_right",
|
|
1515
1561
|
"bk_mdi_docs",
|
|
1516
1562
|
"bk_mdi_done_all",
|
|
1517
1563
|
"bk_mdi_donut_large",
|
|
1564
|
+
"bk_mdi_download",
|
|
1518
1565
|
"bk_mdi_drag_pan",
|
|
1519
1566
|
"bk_mdi_edit",
|
|
1520
1567
|
"bk_mdi_error",
|
|
1568
|
+
"bk_mdi_error-fill",
|
|
1521
1569
|
"bk_mdi_exit_to_app",
|
|
1522
1570
|
"bk_mdi_expand_all",
|
|
1523
1571
|
"bk_mdi_extension",
|
|
1524
1572
|
"bk_mdi_feature_search",
|
|
1525
1573
|
"bk_mdi_fit_screen",
|
|
1574
|
+
"bk_mdi_format_bold",
|
|
1575
|
+
"bk_mdi_format_italic",
|
|
1576
|
+
"bk_mdi_format_list_bulleted",
|
|
1577
|
+
"bk_mdi_format_list_numbered",
|
|
1578
|
+
"bk_mdi_format_quote",
|
|
1579
|
+
"bk_mdi_format_strikethrough",
|
|
1526
1580
|
"bk_mdi_forum",
|
|
1527
1581
|
"bk_mdi_fullscreen",
|
|
1528
1582
|
"bk_mdi_fullscreen_exit",
|
|
1529
1583
|
"bk_mdi_function",
|
|
1530
1584
|
"bk_mdi_grid_view",
|
|
1531
1585
|
"bk_mdi_grid_view-fill",
|
|
1586
|
+
"bk_mdi_groups_2",
|
|
1532
1587
|
"bk_mdi_help",
|
|
1533
1588
|
"bk_mdi_help-fill",
|
|
1534
1589
|
"bk_mdi_history",
|
|
@@ -1541,6 +1596,8 @@ const USED_MATERIAL_ICONS = [
|
|
|
1541
1596
|
"bk_mdi_keyboard_arrow_down",
|
|
1542
1597
|
"bk_mdi_keyboard_command_key",
|
|
1543
1598
|
"bk_mdi_laptop_mac",
|
|
1599
|
+
"bk_mdi_lightbulb",
|
|
1600
|
+
"bk_mdi_link",
|
|
1544
1601
|
"bk_mdi_lists",
|
|
1545
1602
|
"bk_mdi_lock",
|
|
1546
1603
|
"bk_mdi_logo_dev",
|
|
@@ -1553,6 +1610,7 @@ const USED_MATERIAL_ICONS = [
|
|
|
1553
1610
|
"bk_mdi_palette",
|
|
1554
1611
|
"bk_mdi_person",
|
|
1555
1612
|
"bk_mdi_person-fill",
|
|
1613
|
+
"bk_mdi_person_search",
|
|
1556
1614
|
"bk_mdi_pie_chart",
|
|
1557
1615
|
"bk_mdi_play_circle",
|
|
1558
1616
|
"bk_mdi_priority_high",
|
|
@@ -1564,6 +1622,7 @@ const USED_MATERIAL_ICONS = [
|
|
|
1564
1622
|
"bk_mdi_redo",
|
|
1565
1623
|
"bk_mdi_remove",
|
|
1566
1624
|
"bk_mdi_replay",
|
|
1625
|
+
"bk_mdi_reply",
|
|
1567
1626
|
"bk_mdi_resize",
|
|
1568
1627
|
"bk_mdi_robot",
|
|
1569
1628
|
"bk_mdi_save",
|
|
@@ -1583,6 +1642,7 @@ const USED_MATERIAL_ICONS = [
|
|
|
1583
1642
|
"bk_mdi_swap_horiz",
|
|
1584
1643
|
"bk_mdi_swap_horizontal_circle",
|
|
1585
1644
|
"bk_mdi_swap_vert",
|
|
1645
|
+
"bk_mdi_table_convert",
|
|
1586
1646
|
"bk_mdi_tablet",
|
|
1587
1647
|
"bk_mdi_text_compare",
|
|
1588
1648
|
"bk_mdi_text_select_end",
|
|
@@ -1596,12 +1656,14 @@ const USED_MATERIAL_ICONS = [
|
|
|
1596
1656
|
"bk_mdi_translate",
|
|
1597
1657
|
"bk_mdi_tune",
|
|
1598
1658
|
"bk_mdi_undo",
|
|
1659
|
+
"bk_mdi_unpublished",
|
|
1599
1660
|
"bk_mdi_upload",
|
|
1600
1661
|
"bk_mdi_video_camera_back",
|
|
1601
1662
|
"bk_mdi_visibility",
|
|
1602
1663
|
"bk_mdi_visibility_off",
|
|
1603
1664
|
"bk_mdi_warning",
|
|
1604
1665
|
"bk_mdi_web_traffic",
|
|
1666
|
+
"bk_mdi_widgets",
|
|
1605
1667
|
"bk_mdi_workspaces",
|
|
1606
1668
|
"bk_mdi_zoom_in"
|
|
1607
1669
|
];
|
|
@@ -1859,7 +1921,7 @@ export default adapterExtensions
|
|
|
1859
1921
|
}
|
|
1860
1922
|
);
|
|
1861
1923
|
|
|
1862
|
-
|
|
1924
|
+
let processor = null;
|
|
1863
1925
|
function postcssMangleClasses(selectorParser) {
|
|
1864
1926
|
const plugin = () => ({
|
|
1865
1927
|
postcssPlugin: "postcss-mangle-blokkli-classes",
|
|
@@ -1878,6 +1940,10 @@ function postcssMangleClasses(selectorParser) {
|
|
|
1878
1940
|
return;
|
|
1879
1941
|
}
|
|
1880
1942
|
if (classNode.value.startsWith("bk-")) return;
|
|
1943
|
+
if (classNode.value.startsWith("_bk_")) {
|
|
1944
|
+
hasMangled = true;
|
|
1945
|
+
return;
|
|
1946
|
+
}
|
|
1881
1947
|
classNode.value = "_bk_" + classNode.value;
|
|
1882
1948
|
hasMangled = true;
|
|
1883
1949
|
});
|
|
@@ -1898,34 +1964,36 @@ function postcssMangleClasses(selectorParser) {
|
|
|
1898
1964
|
return plugin;
|
|
1899
1965
|
}
|
|
1900
1966
|
async function processCSS(css, from, contentPaths) {
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
processors.set(key, await createProcessor(contentPaths));
|
|
1967
|
+
if (!processor) {
|
|
1968
|
+
processor = await createProcessor();
|
|
1904
1969
|
}
|
|
1905
|
-
const
|
|
1906
|
-
const result = await processor.process(css, {
|
|
1970
|
+
const sourceDirectives = contentPaths?.length ? "\n" + contentPaths.map((dir) => `@source "${dir}/**/*.vue";`).join("\n") : "";
|
|
1971
|
+
const result = await processor.process(css + sourceDirectives, {
|
|
1972
|
+
from: from || "module.css"
|
|
1973
|
+
});
|
|
1907
1974
|
return result.css;
|
|
1908
1975
|
}
|
|
1909
1976
|
function resetProcessor() {
|
|
1910
|
-
|
|
1977
|
+
processor = null;
|
|
1911
1978
|
}
|
|
1912
|
-
async function createProcessor(
|
|
1979
|
+
async function createProcessor() {
|
|
1913
1980
|
const _require = createRequire(import.meta.url);
|
|
1914
1981
|
try {
|
|
1915
1982
|
const postcss = _require("postcss");
|
|
1916
|
-
const
|
|
1917
|
-
const
|
|
1983
|
+
const postcssImport = _require("postcss-import");
|
|
1984
|
+
const postcssNesting = _require("postcss-nesting");
|
|
1985
|
+
const tailwindPostcss = _require("@tailwindcss/postcss");
|
|
1986
|
+
const selectorParser = _require("postcss-selector-parser");
|
|
1987
|
+
const postcssReplace = _require("postcss-replace");
|
|
1988
|
+
const remToPx = _require("@thedutchcoder/postcss-rem-to-px");
|
|
1918
1989
|
const plugins = [
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
content
|
|
1924
|
-
}),
|
|
1925
|
-
postcssMangleClasses(_require("postcss-selector-parser")),
|
|
1990
|
+
(postcssImport.default || postcssImport)(),
|
|
1991
|
+
(postcssNesting.default || postcssNesting)(),
|
|
1992
|
+
(tailwindPostcss.default || tailwindPostcss)(),
|
|
1993
|
+
postcssMangleClasses(selectorParser)(),
|
|
1926
1994
|
// Same scoping rules as postcss.config.cjs: scope selectors to .bk
|
|
1927
1995
|
// and rename Tailwind CSS variables from --tw-* to --bk-tw-*.
|
|
1928
|
-
|
|
1996
|
+
(postcssReplace.default || postcssReplace)({
|
|
1929
1997
|
pattern: /(--tw|\*, ::before, ::after)/g,
|
|
1930
1998
|
data: {
|
|
1931
1999
|
"--tw": "--bk-tw",
|
|
@@ -1933,7 +2001,7 @@ async function createProcessor(contentPaths) {
|
|
|
1933
2001
|
"::backdrop": ".bk::backdrop, .bk ::backdrop"
|
|
1934
2002
|
}
|
|
1935
2003
|
}),
|
|
1936
|
-
|
|
2004
|
+
(remToPx.default || remToPx)({ baseValue: 16 })
|
|
1937
2005
|
];
|
|
1938
2006
|
return postcss(plugins);
|
|
1939
2007
|
} catch (e) {
|
|
@@ -1942,13 +2010,196 @@ async function createProcessor(contentPaths) {
|
|
|
1942
2010
|
throw new Error(
|
|
1943
2011
|
`Missing dependency "${missing}" required for processing module CSS.
|
|
1944
2012
|
Install the required PostCSS packages:
|
|
1945
|
-
npm install -D postcss tailwindcss postcss-import postcss-replace @thedutchcoder/postcss-rem-to-px`
|
|
2013
|
+
npm install -D postcss tailwindcss @tailwindcss/postcss postcss-import postcss-nesting postcss-replace @thedutchcoder/postcss-rem-to-px`
|
|
1946
2014
|
);
|
|
1947
2015
|
}
|
|
1948
2016
|
throw e;
|
|
1949
2017
|
}
|
|
1950
2018
|
}
|
|
1951
2019
|
|
|
2020
|
+
function mangleClassName(name) {
|
|
2021
|
+
if (name === "bk" || name.startsWith("bk-") || name.startsWith("_bk_")) {
|
|
2022
|
+
return name;
|
|
2023
|
+
}
|
|
2024
|
+
return "_bk_" + name;
|
|
2025
|
+
}
|
|
2026
|
+
function mangleClassString(str) {
|
|
2027
|
+
return str.split(/\s+/).filter(Boolean).map(mangleClassName).join(" ");
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
function collectClassReplacements(node, out) {
|
|
2031
|
+
switch (node.type) {
|
|
2032
|
+
case "Literal":
|
|
2033
|
+
if (typeof node.value === "string" && node.value) {
|
|
2034
|
+
const mangled = mangleClassString(node.value);
|
|
2035
|
+
if (mangled !== node.value) {
|
|
2036
|
+
out.push({ start: node.start + 1, end: node.end - 1, value: mangled });
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
break;
|
|
2040
|
+
case "ObjectExpression":
|
|
2041
|
+
for (const prop of node.properties) {
|
|
2042
|
+
if (prop.type === "Property") {
|
|
2043
|
+
if (prop.key.type === "Literal" && typeof prop.key.value === "string") {
|
|
2044
|
+
const mangled = mangleClassString(prop.key.value);
|
|
2045
|
+
if (mangled !== prop.key.value) {
|
|
2046
|
+
out.push({
|
|
2047
|
+
start: prop.key.start + 1,
|
|
2048
|
+
end: prop.key.end - 1,
|
|
2049
|
+
value: mangled
|
|
2050
|
+
});
|
|
2051
|
+
}
|
|
2052
|
+
} else if (prop.computed) {
|
|
2053
|
+
collectClassReplacements(prop.key, out);
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
break;
|
|
2058
|
+
case "ArrayExpression":
|
|
2059
|
+
for (const el of node.elements) {
|
|
2060
|
+
if (el) collectClassReplacements(el, out);
|
|
2061
|
+
}
|
|
2062
|
+
break;
|
|
2063
|
+
case "ConditionalExpression":
|
|
2064
|
+
collectClassReplacements(node.consequent, out);
|
|
2065
|
+
collectClassReplacements(node.alternate, out);
|
|
2066
|
+
break;
|
|
2067
|
+
case "LogicalExpression":
|
|
2068
|
+
collectClassReplacements(node.left, out);
|
|
2069
|
+
collectClassReplacements(node.right, out);
|
|
2070
|
+
break;
|
|
2071
|
+
case "CallExpression":
|
|
2072
|
+
if (node.callee.type === "Identifier" && node.callee.name === "tw") {
|
|
2073
|
+
for (const arg of node.arguments) {
|
|
2074
|
+
if (arg.type === "Literal" && typeof arg.value === "string") {
|
|
2075
|
+
const mangled = mangleClassString(arg.value);
|
|
2076
|
+
if (mangled !== arg.value) {
|
|
2077
|
+
out.push({
|
|
2078
|
+
start: arg.start + 1,
|
|
2079
|
+
end: arg.end - 1,
|
|
2080
|
+
value: mangled
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
}
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
function mangleClassExpression(expr) {
|
|
2090
|
+
let ast;
|
|
2091
|
+
try {
|
|
2092
|
+
ast = acorn.parse("(" + expr + ")", {
|
|
2093
|
+
ecmaVersion: 2022,
|
|
2094
|
+
sourceType: "module"
|
|
2095
|
+
});
|
|
2096
|
+
} catch {
|
|
2097
|
+
return expr;
|
|
2098
|
+
}
|
|
2099
|
+
const body = ast.body[0];
|
|
2100
|
+
if (!body || body.type !== "ExpressionStatement") return expr;
|
|
2101
|
+
const replacements = [];
|
|
2102
|
+
collectClassReplacements(body.expression, replacements);
|
|
2103
|
+
if (replacements.length === 0) return expr;
|
|
2104
|
+
replacements.sort((a, b) => b.start - a.start);
|
|
2105
|
+
let result = expr;
|
|
2106
|
+
for (const r of replacements) {
|
|
2107
|
+
result = result.slice(0, r.start - 1) + r.value + result.slice(r.end - 1);
|
|
2108
|
+
}
|
|
2109
|
+
return result;
|
|
2110
|
+
}
|
|
2111
|
+
function mangleTemplateAndScript(code) {
|
|
2112
|
+
let result = code;
|
|
2113
|
+
result = result.replace(
|
|
2114
|
+
/(?<![-:.])\bclass="([^"]*)"/g,
|
|
2115
|
+
(_match, value) => `class="${mangleClassString(value)}"`
|
|
2116
|
+
);
|
|
2117
|
+
result = result.replace(
|
|
2118
|
+
/\btw\(\s*(['"])([\s\S]*?)\1\s*\)/g,
|
|
2119
|
+
(_match, quote, value) => `tw(${quote}${mangleClassString(value)}${quote})`
|
|
2120
|
+
);
|
|
2121
|
+
result = result.replace(
|
|
2122
|
+
/(?::|v-bind:)class="([^"]*)"/g,
|
|
2123
|
+
(_match, expr) => `:class="${mangleClassExpression(expr)}"`
|
|
2124
|
+
);
|
|
2125
|
+
return result;
|
|
2126
|
+
}
|
|
2127
|
+
function withTailwindConfig(cssContent, tailwindConfigPath) {
|
|
2128
|
+
if (cssContent.includes("@reference") || cssContent.includes("@config")) {
|
|
2129
|
+
return cssContent;
|
|
2130
|
+
}
|
|
2131
|
+
const leadingPattern = /^(?:\s*(?:\/\*[\s\S]*?\*\/|@charset[^;]*;|@import[^;]*;|@layer\s[\w\s,-]+;))*\s*/;
|
|
2132
|
+
const match = cssContent.match(leadingPattern);
|
|
2133
|
+
const insertAt = match ? match[0].length : 0;
|
|
2134
|
+
const injection = `@reference 'tailwindcss';
|
|
2135
|
+
@config '${tailwindConfigPath}';
|
|
2136
|
+
`;
|
|
2137
|
+
return cssContent.slice(0, insertAt) + injection + cssContent.slice(insertAt);
|
|
2138
|
+
}
|
|
2139
|
+
let stripProcessor = null;
|
|
2140
|
+
async function stripDistBoilerplate(css) {
|
|
2141
|
+
if (!stripProcessor) {
|
|
2142
|
+
const _require = createRequire(import.meta.url);
|
|
2143
|
+
const postcss = _require("postcss");
|
|
2144
|
+
const plugin = () => ({
|
|
2145
|
+
postcssPlugin: "postcss-strip-blokkli-dist-boilerplate",
|
|
2146
|
+
Once(root) {
|
|
2147
|
+
const toUnwrap = [];
|
|
2148
|
+
const toRemove = [];
|
|
2149
|
+
root.walkAtRules("layer", (atRule) => {
|
|
2150
|
+
if (!atRule.nodes) {
|
|
2151
|
+
toRemove.push(atRule);
|
|
2152
|
+
return;
|
|
2153
|
+
}
|
|
2154
|
+
const name = atRule.params.trim();
|
|
2155
|
+
if (name === "base" || name === "theme" || name === "properties") {
|
|
2156
|
+
toRemove.push(atRule);
|
|
2157
|
+
} else if (name === "components" || name === "utilities") {
|
|
2158
|
+
toUnwrap.push(atRule);
|
|
2159
|
+
}
|
|
2160
|
+
});
|
|
2161
|
+
root.walkAtRules("property", (atRule) => {
|
|
2162
|
+
if (atRule.params.startsWith("--bk-tw-")) {
|
|
2163
|
+
toRemove.push(atRule);
|
|
2164
|
+
}
|
|
2165
|
+
});
|
|
2166
|
+
for (const r of toUnwrap) r.replaceWith(r.nodes);
|
|
2167
|
+
for (const r of toRemove) r.remove();
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
plugin.postcss = true;
|
|
2171
|
+
stripProcessor = postcss([plugin()]);
|
|
2172
|
+
}
|
|
2173
|
+
const result = await stripProcessor.process(css, { from: void 0 });
|
|
2174
|
+
return result.css;
|
|
2175
|
+
}
|
|
2176
|
+
async function processStyleBlocks(code, filePath, tailwindConfigPath) {
|
|
2177
|
+
const styleRegex = /<style([^>]*)>([\s\S]*?)<\/style>/g;
|
|
2178
|
+
let result = code;
|
|
2179
|
+
let styleMatch;
|
|
2180
|
+
while ((styleMatch = styleRegex.exec(result)) !== null) {
|
|
2181
|
+
const fullMatch = styleMatch[0];
|
|
2182
|
+
const attrs = styleMatch[1] || "";
|
|
2183
|
+
const cssContent = styleMatch[2] || "";
|
|
2184
|
+
if (cssContent.trim()) {
|
|
2185
|
+
const withConfig = withTailwindConfig(cssContent, tailwindConfigPath);
|
|
2186
|
+
const processed = await processCSS(withConfig, filePath);
|
|
2187
|
+
const stripped = await stripDistBoilerplate(processed);
|
|
2188
|
+
const cleanAttrs = attrs.replace(/\s*lang=["']postcss["']/g, "");
|
|
2189
|
+
const replacement = `<style${cleanAttrs}>${stripped}</style>`;
|
|
2190
|
+
result = result.slice(0, styleMatch.index) + replacement + result.slice(styleMatch.index + fullMatch.length);
|
|
2191
|
+
styleRegex.lastIndex = styleMatch.index + replacement.length;
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
return result;
|
|
2195
|
+
}
|
|
2196
|
+
async function mangleVueSFC(code, id, tailwindConfigPath) {
|
|
2197
|
+
let result = mangleTemplateAndScript(code);
|
|
2198
|
+
result = await processStyleBlocks(result, id, tailwindConfigPath);
|
|
2199
|
+
if (result === code) return null;
|
|
2200
|
+
return result;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
1952
2203
|
const logger$1 = useLogger("@blokkli/editor");
|
|
1953
2204
|
const styles = defineFileTemplate(
|
|
1954
2205
|
"styles.css",
|
|
@@ -1957,14 +2208,16 @@ const styles = defineFileTemplate(
|
|
|
1957
2208
|
"./runtime/editor/css/output.css"
|
|
1958
2209
|
);
|
|
1959
2210
|
let moduleCSS = "";
|
|
2211
|
+
const tailwindConfigPath = ctx.helper.getTailwindConfigPath();
|
|
1960
2212
|
const cssFiles = ctx.getCSSFiles();
|
|
1961
2213
|
if (cssFiles.length > 0) {
|
|
1962
2214
|
resetProcessor();
|
|
1963
2215
|
const processed = [];
|
|
1964
2216
|
for (const filePath of cssFiles) {
|
|
1965
2217
|
const content = await ctx.helper.fileCache.read(filePath);
|
|
2218
|
+
const withConfig = withTailwindConfig(content, tailwindConfigPath);
|
|
1966
2219
|
try {
|
|
1967
|
-
const result = await processCSS(
|
|
2220
|
+
const result = await processCSS(withConfig, filePath);
|
|
1968
2221
|
processed.push(result);
|
|
1969
2222
|
} catch (e) {
|
|
1970
2223
|
logger$1.error(
|
|
@@ -1977,11 +2230,18 @@ ${e.message}`
|
|
|
1977
2230
|
moduleCSS = "\n/* Module CSS */\n" + processed.join("\n");
|
|
1978
2231
|
}
|
|
1979
2232
|
}
|
|
1980
|
-
const
|
|
2233
|
+
const editorOwnRuntime = ctx.helper.resolvers.module.resolve("./runtime");
|
|
2234
|
+
const editorOwnModules = ctx.helper.resolvers.module.resolve("./modules");
|
|
2235
|
+
const contentPaths = ctx.getContentPaths().filter(
|
|
2236
|
+
(p) => !p.startsWith(editorOwnRuntime) && !p.startsWith(editorOwnModules)
|
|
2237
|
+
);
|
|
1981
2238
|
if (contentPaths.length > 0) {
|
|
1982
2239
|
try {
|
|
1983
2240
|
const utilities = await processCSS(
|
|
1984
|
-
|
|
2241
|
+
`@layer theme, base, components, utilities;
|
|
2242
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
2243
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
2244
|
+
@config '${tailwindConfigPath}';`,
|
|
1985
2245
|
"module-utilities.css",
|
|
1986
2246
|
contentPaths
|
|
1987
2247
|
);
|
|
@@ -2852,6 +3112,7 @@ const editorConfig = defineCodeTemplate(
|
|
|
2852
3112
|
"editor-config",
|
|
2853
3113
|
(ctx) => {
|
|
2854
3114
|
const settingsOverride = ctx.helper.options.settingsOverride || {};
|
|
3115
|
+
const colorOptions = ctx.helper.options.colorOptions || {};
|
|
2855
3116
|
const featureFragmentNames = ctx.getFeatureFragmentNames();
|
|
2856
3117
|
return `
|
|
2857
3118
|
export const hasCustomTheme = ${JSON.stringify(ctx.theme.hasCustomTheme)}
|
|
@@ -2860,6 +3121,8 @@ export const themes = ${JSON.stringify(themes, null, 2)}
|
|
|
2860
3121
|
|
|
2861
3122
|
export const theme = ${JSON.stringify(ctx.theme.fullTheme, null, 2)}
|
|
2862
3123
|
|
|
3124
|
+
export const colorOptions = ${JSON.stringify(colorOptions, null, 2)}
|
|
3125
|
+
|
|
2863
3126
|
export const settingsOverride = ${JSON.stringify(settingsOverride)}
|
|
2864
3127
|
|
|
2865
3128
|
export const blokkliVersion = ${JSON.stringify(version)}
|
|
@@ -2891,11 +3154,14 @@ export const textAutoReplace = ${(() => {
|
|
|
2891
3154
|
`;
|
|
2892
3155
|
},
|
|
2893
3156
|
(ctx) => {
|
|
3157
|
+
const validColorOptions = Object.keys(ctx.helper.options.colorOptions || {}).map((v) => `'${v}'`).join(" | ");
|
|
2894
3158
|
return `
|
|
2895
3159
|
import type { Theme } from '${ctx.helper.relativePaths.TYPES_THEME}'
|
|
2896
3160
|
import type { ModuleOptionsSettings } from '#blokkli-build/module-types'
|
|
2897
3161
|
import type { InterfaceLanguage } from '#blokkli-build/translations'
|
|
2898
3162
|
|
|
3163
|
+
export type ValidColorOption = ${validColorOptions}
|
|
3164
|
+
|
|
2899
3165
|
/**
|
|
2900
3166
|
* Whether the app uses a custom theme.
|
|
2901
3167
|
*/
|
|
@@ -2906,6 +3172,11 @@ export declare const hasCustomTheme: boolean
|
|
|
2906
3172
|
*/
|
|
2907
3173
|
export declare const themes: Record<string, Theme>
|
|
2908
3174
|
|
|
3175
|
+
/**
|
|
3176
|
+
* The available color options.
|
|
3177
|
+
*/
|
|
3178
|
+
export declare const colorOptions: Record<ValidColorOption, { hex: string; label: string }>
|
|
3179
|
+
|
|
2909
3180
|
/**
|
|
2910
3181
|
* The default theme.
|
|
2911
3182
|
*/
|
|
@@ -2955,6 +3226,10 @@ export declare const textAutoReplace: {
|
|
|
2955
3226
|
enDash: boolean
|
|
2956
3227
|
}
|
|
2957
3228
|
`;
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
context: "both",
|
|
3232
|
+
write: true
|
|
2958
3233
|
}
|
|
2959
3234
|
);
|
|
2960
3235
|
|
|
@@ -3159,7 +3434,14 @@ function toRuntimeOptionArray(option) {
|
|
|
3159
3434
|
} else if (option.type === "checkboxes") {
|
|
3160
3435
|
return [option.type, option.default, Object.keys(option.options)];
|
|
3161
3436
|
} else if (option.type === "number") {
|
|
3162
|
-
|
|
3437
|
+
const hasBounds = option.min !== void 0 || option.max !== void 0;
|
|
3438
|
+
if (option.nullable) {
|
|
3439
|
+
return [option.type, option.default, [option.min, option.max], true];
|
|
3440
|
+
}
|
|
3441
|
+
if (hasBounds) {
|
|
3442
|
+
return [option.type, option.default, [option.min, option.max]];
|
|
3443
|
+
}
|
|
3444
|
+
return [option.type, option.default];
|
|
3163
3445
|
} else if (option.type === "range") {
|
|
3164
3446
|
return [option.type, option.default, [option.min, option.max]];
|
|
3165
3447
|
} else if (option.type === "datetime-local") {
|
|
@@ -3278,8 +3560,10 @@ ${toObject("FIELD_MAPPING", FIELD_MAPPING)}
|
|
|
3278
3560
|
return `${key}: ${possibleValues}`;
|
|
3279
3561
|
} else if (option.type === "color") {
|
|
3280
3562
|
return key + ": `#${string}`";
|
|
3281
|
-
} else if (option.type === "range"
|
|
3563
|
+
} else if (option.type === "range") {
|
|
3282
3564
|
return `${key}: number`;
|
|
3565
|
+
} else if (option.type === "number") {
|
|
3566
|
+
return option.nullable ? `${key}: number | undefined` : `${key}: number`;
|
|
3283
3567
|
}
|
|
3284
3568
|
});
|
|
3285
3569
|
}
|
|
@@ -3896,11 +4180,13 @@ class FeatureCollector extends Collector {
|
|
|
3896
4180
|
needsFileContents = true;
|
|
3897
4181
|
disabledFeatures = /* @__PURE__ */ new Set();
|
|
3898
4182
|
srcFromModule;
|
|
4183
|
+
srcFromBlokkliDir;
|
|
3899
4184
|
constructor(helper) {
|
|
3900
4185
|
super(helper);
|
|
3901
4186
|
this.srcFromModule = helper.resolvers.module.resolve(
|
|
3902
4187
|
"./runtime/editor/features"
|
|
3903
4188
|
);
|
|
4189
|
+
this.srcFromBlokkliDir = helper.resolvers.root.resolve("./blokkli/features");
|
|
3904
4190
|
}
|
|
3905
4191
|
getEnabledFeatures() {
|
|
3906
4192
|
return [...this.files.values()].filter((v) => v.isEnabled()).map((v) => v.getDefinition()).filter(falsy).filter((v) => !this.disabledFeatures.has(v.id));
|
|
@@ -3913,6 +4199,13 @@ class FeatureCollector extends Collector {
|
|
|
3913
4199
|
followSymbolicLinks: false
|
|
3914
4200
|
}
|
|
3915
4201
|
);
|
|
4202
|
+
const blokkliDirFeatures = await resolveFiles(
|
|
4203
|
+
this.srcFromBlokkliDir,
|
|
4204
|
+
["*/index.vue"],
|
|
4205
|
+
{
|
|
4206
|
+
followSymbolicLinks: false
|
|
4207
|
+
}
|
|
4208
|
+
);
|
|
3916
4209
|
const customFeatures = this.helper.options.featureImports ? await resolveFiles(
|
|
3917
4210
|
this.helper.paths.srcDir,
|
|
3918
4211
|
this.helper.options.featureImports,
|
|
@@ -3921,7 +4214,9 @@ class FeatureCollector extends Collector {
|
|
|
3921
4214
|
}
|
|
3922
4215
|
) : [];
|
|
3923
4216
|
await Promise.all(
|
|
3924
|
-
[...builtinFeatures, ...customFeatures].map(
|
|
4217
|
+
[...builtinFeatures, ...blokkliDirFeatures, ...customFeatures].map(
|
|
4218
|
+
(v) => this.addFile(v)
|
|
4219
|
+
)
|
|
3925
4220
|
);
|
|
3926
4221
|
const features = [...this.files.values()];
|
|
3927
4222
|
if (!this.helper.options.enableThemeEditor) {
|
|
@@ -4014,136 +4309,6 @@ class ThemeData {
|
|
|
4014
4309
|
}
|
|
4015
4310
|
}
|
|
4016
4311
|
|
|
4017
|
-
function mangleClassName(name) {
|
|
4018
|
-
if (name === "bk" || name.startsWith("bk-")) return name;
|
|
4019
|
-
return "_bk_" + name;
|
|
4020
|
-
}
|
|
4021
|
-
function mangleClassString(str) {
|
|
4022
|
-
return str.split(/\s+/).filter(Boolean).map(mangleClassName).join(" ");
|
|
4023
|
-
}
|
|
4024
|
-
|
|
4025
|
-
function collectClassReplacements(node, out) {
|
|
4026
|
-
switch (node.type) {
|
|
4027
|
-
case "Literal":
|
|
4028
|
-
if (typeof node.value === "string" && node.value) {
|
|
4029
|
-
const mangled = mangleClassString(node.value);
|
|
4030
|
-
if (mangled !== node.value) {
|
|
4031
|
-
out.push({ start: node.start + 1, end: node.end - 1, value: mangled });
|
|
4032
|
-
}
|
|
4033
|
-
}
|
|
4034
|
-
break;
|
|
4035
|
-
case "ObjectExpression":
|
|
4036
|
-
for (const prop of node.properties) {
|
|
4037
|
-
if (prop.type === "Property") {
|
|
4038
|
-
if (prop.key.type === "Literal" && typeof prop.key.value === "string") {
|
|
4039
|
-
const mangled = mangleClassString(prop.key.value);
|
|
4040
|
-
if (mangled !== prop.key.value) {
|
|
4041
|
-
out.push({
|
|
4042
|
-
start: prop.key.start + 1,
|
|
4043
|
-
end: prop.key.end - 1,
|
|
4044
|
-
value: mangled
|
|
4045
|
-
});
|
|
4046
|
-
}
|
|
4047
|
-
} else if (prop.computed) {
|
|
4048
|
-
collectClassReplacements(prop.key, out);
|
|
4049
|
-
}
|
|
4050
|
-
}
|
|
4051
|
-
}
|
|
4052
|
-
break;
|
|
4053
|
-
case "ArrayExpression":
|
|
4054
|
-
for (const el of node.elements) {
|
|
4055
|
-
if (el) collectClassReplacements(el, out);
|
|
4056
|
-
}
|
|
4057
|
-
break;
|
|
4058
|
-
case "ConditionalExpression":
|
|
4059
|
-
collectClassReplacements(node.consequent, out);
|
|
4060
|
-
collectClassReplacements(node.alternate, out);
|
|
4061
|
-
break;
|
|
4062
|
-
case "LogicalExpression":
|
|
4063
|
-
collectClassReplacements(node.left, out);
|
|
4064
|
-
collectClassReplacements(node.right, out);
|
|
4065
|
-
break;
|
|
4066
|
-
case "CallExpression":
|
|
4067
|
-
if (node.callee.type === "Identifier" && node.callee.name === "tw") {
|
|
4068
|
-
for (const arg of node.arguments) {
|
|
4069
|
-
if (arg.type === "Literal" && typeof arg.value === "string") {
|
|
4070
|
-
const mangled = mangleClassString(arg.value);
|
|
4071
|
-
if (mangled !== arg.value) {
|
|
4072
|
-
out.push({
|
|
4073
|
-
start: arg.start + 1,
|
|
4074
|
-
end: arg.end - 1,
|
|
4075
|
-
value: mangled
|
|
4076
|
-
});
|
|
4077
|
-
}
|
|
4078
|
-
}
|
|
4079
|
-
}
|
|
4080
|
-
}
|
|
4081
|
-
break;
|
|
4082
|
-
}
|
|
4083
|
-
}
|
|
4084
|
-
function mangleClassExpression(expr) {
|
|
4085
|
-
let ast;
|
|
4086
|
-
try {
|
|
4087
|
-
ast = acorn.parse("(" + expr + ")", {
|
|
4088
|
-
ecmaVersion: 2022,
|
|
4089
|
-
sourceType: "module"
|
|
4090
|
-
});
|
|
4091
|
-
} catch {
|
|
4092
|
-
return expr;
|
|
4093
|
-
}
|
|
4094
|
-
const body = ast.body[0];
|
|
4095
|
-
if (!body || body.type !== "ExpressionStatement") return expr;
|
|
4096
|
-
const replacements = [];
|
|
4097
|
-
collectClassReplacements(body.expression, replacements);
|
|
4098
|
-
if (replacements.length === 0) return expr;
|
|
4099
|
-
replacements.sort((a, b) => b.start - a.start);
|
|
4100
|
-
let result = expr;
|
|
4101
|
-
for (const r of replacements) {
|
|
4102
|
-
result = result.slice(0, r.start - 1) + r.value + result.slice(r.end - 1);
|
|
4103
|
-
}
|
|
4104
|
-
return result;
|
|
4105
|
-
}
|
|
4106
|
-
function mangleTemplateAndScript(code) {
|
|
4107
|
-
let result = code;
|
|
4108
|
-
result = result.replace(
|
|
4109
|
-
/(?<![-:.])\bclass="([^"]*)"/g,
|
|
4110
|
-
(_match, value) => `class="${mangleClassString(value)}"`
|
|
4111
|
-
);
|
|
4112
|
-
result = result.replace(
|
|
4113
|
-
/\btw\(\s*(['"])([\s\S]*?)\1\s*\)/g,
|
|
4114
|
-
(_match, quote, value) => `tw(${quote}${mangleClassString(value)}${quote})`
|
|
4115
|
-
);
|
|
4116
|
-
result = result.replace(
|
|
4117
|
-
/(?::|v-bind:)class="([^"]*)"/g,
|
|
4118
|
-
(_match, expr) => `:class="${mangleClassExpression(expr)}"`
|
|
4119
|
-
);
|
|
4120
|
-
return result;
|
|
4121
|
-
}
|
|
4122
|
-
async function processStyleBlocks(code, filePath) {
|
|
4123
|
-
const styleRegex = /<style([^>]*)>([\s\S]*?)<\/style>/g;
|
|
4124
|
-
let result = code;
|
|
4125
|
-
let styleMatch;
|
|
4126
|
-
while ((styleMatch = styleRegex.exec(result)) !== null) {
|
|
4127
|
-
const fullMatch = styleMatch[0];
|
|
4128
|
-
const attrs = styleMatch[1] || "";
|
|
4129
|
-
const cssContent = styleMatch[2] || "";
|
|
4130
|
-
if (cssContent.trim()) {
|
|
4131
|
-
const processed = await processCSS(cssContent, filePath);
|
|
4132
|
-
const cleanAttrs = attrs.replace(/\s*lang=["']postcss["']/g, "");
|
|
4133
|
-
const replacement = `<style${cleanAttrs}>${processed}</style>`;
|
|
4134
|
-
result = result.slice(0, styleMatch.index) + replacement + result.slice(styleMatch.index + fullMatch.length);
|
|
4135
|
-
styleRegex.lastIndex = styleMatch.index + replacement.length;
|
|
4136
|
-
}
|
|
4137
|
-
}
|
|
4138
|
-
return result;
|
|
4139
|
-
}
|
|
4140
|
-
async function mangleVueSFC(code, id) {
|
|
4141
|
-
let result = mangleTemplateAndScript(code);
|
|
4142
|
-
result = await processStyleBlocks(result, id);
|
|
4143
|
-
if (result === code) return null;
|
|
4144
|
-
return result;
|
|
4145
|
-
}
|
|
4146
|
-
|
|
4147
4312
|
const logger = useLogger("@blokkli/editor");
|
|
4148
4313
|
const module$1 = defineNuxtModule({
|
|
4149
4314
|
meta: {
|
|
@@ -4187,6 +4352,16 @@ const module$1 = defineNuxtModule({
|
|
|
4187
4352
|
import.meta.url,
|
|
4188
4353
|
moduleOptions
|
|
4189
4354
|
);
|
|
4355
|
+
const colorOptions = Object.entries(
|
|
4356
|
+
helper.options.colorOptions || {}
|
|
4357
|
+
).reduce((acc, entry) => {
|
|
4358
|
+
acc[entry[0]] = entry[1].hex;
|
|
4359
|
+
return acc;
|
|
4360
|
+
}, {});
|
|
4361
|
+
nuxt.options.appConfig.blokkli = {
|
|
4362
|
+
// @ts-expect-error The module config type defined a generic Record type, but in userland, this type will automatically contain the actual color keys as properties.
|
|
4363
|
+
colorOptions
|
|
4364
|
+
};
|
|
4190
4365
|
const theme = new ThemeData(helper);
|
|
4191
4366
|
const iconCollector = new IconCollector(helper);
|
|
4192
4367
|
const featureCollector = new FeatureCollector(helper);
|
|
@@ -4203,6 +4378,11 @@ const module$1 = defineNuxtModule({
|
|
|
4203
4378
|
blockCollector,
|
|
4204
4379
|
theme
|
|
4205
4380
|
);
|
|
4381
|
+
const moduleRoot = helper.resolvers.module.resolve(".");
|
|
4382
|
+
if (!moduleRoot.includes("/node_modules/")) {
|
|
4383
|
+
context.addContentPath(helper.resolvers.module.resolve("./runtime"));
|
|
4384
|
+
context.addContentPath(helper.resolvers.module.resolve("./modules"));
|
|
4385
|
+
}
|
|
4206
4386
|
const app = {
|
|
4207
4387
|
helper,
|
|
4208
4388
|
context,
|
|
@@ -4269,6 +4449,8 @@ const module$1 = defineNuxtModule({
|
|
|
4269
4449
|
const blokkliModulesDir = resolve$1(nuxt.options.rootDir, "blokkli/modules");
|
|
4270
4450
|
helper.addAppTsInclude(join(blokkliModulesDir, "*/app"));
|
|
4271
4451
|
helper.addServerTsInclude(join(blokkliModulesDir, "*/server"));
|
|
4452
|
+
const blokkliFeaturesDir = helper.resolvers.root.resolve("./blokkli/features");
|
|
4453
|
+
context.addContentPath(blokkliFeaturesDir);
|
|
4272
4454
|
nuxt.hook("nitro:config", (nitroConfig) => {
|
|
4273
4455
|
nitroConfig.publicAssets ||= [];
|
|
4274
4456
|
nitroConfig.publicAssets.push({
|
|
@@ -4290,13 +4472,14 @@ const module$1 = defineNuxtModule({
|
|
|
4290
4472
|
addBuildPlugin(BlokkliEditingPlugin(nuxt));
|
|
4291
4473
|
const contentPaths = context.getContentPaths();
|
|
4292
4474
|
if (contentPaths.length > 0) {
|
|
4475
|
+
const tailwindConfigPath = helper.getTailwindConfigPath();
|
|
4293
4476
|
addVitePlugin({
|
|
4294
4477
|
name: "blokkli-mangle-module-classes",
|
|
4295
4478
|
enforce: "pre",
|
|
4296
4479
|
async transform(code, id) {
|
|
4297
4480
|
if (!id.endsWith(".vue")) return null;
|
|
4298
4481
|
if (!contentPaths.some((dir) => id.startsWith(dir))) return null;
|
|
4299
|
-
const result = await mangleVueSFC(code, id);
|
|
4482
|
+
const result = await mangleVueSFC(code, id, tailwindConfigPath);
|
|
4300
4483
|
return result ? { code: result, map: null } : null;
|
|
4301
4484
|
},
|
|
4302
4485
|
hotUpdate: {
|