@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
|
@@ -5,19 +5,27 @@
|
|
|
5
5
|
:title="streamingTitle"
|
|
6
6
|
@cancel="onCancel"
|
|
7
7
|
>
|
|
8
|
-
<div class="
|
|
8
|
+
<div class="_bk_flex _bk_flex-col _bk_gap-3 _bk_px-10 _bk_py-10">
|
|
9
9
|
<div
|
|
10
10
|
v-for="field in fieldStates"
|
|
11
11
|
:key="field.uuid + field.fieldName"
|
|
12
|
-
class="
|
|
12
|
+
class="_bk_flex _bk_items-center _bk_gap-5 _bk_text-sm _bk_text-mono-600"
|
|
13
13
|
:class="{
|
|
14
|
-
'
|
|
15
|
-
'
|
|
14
|
+
'_bk_text-accent-700 _bk_font-medium': field.status === 'streaming',
|
|
15
|
+
'_bk_text-lime-dark': field.status === 'done'
|
|
16
16
|
}"
|
|
17
17
|
>
|
|
18
|
-
<Icon
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
<Icon
|
|
19
|
+
v-if="field.status === 'done'"
|
|
20
|
+
name="bk_mdi_check"
|
|
21
|
+
class="_bk_size-15"
|
|
22
|
+
/>
|
|
23
|
+
<Icon
|
|
24
|
+
v-else-if="field.status === 'streaming'"
|
|
25
|
+
name="bk_mdi_edit"
|
|
26
|
+
class="_bk_size-15"
|
|
27
|
+
/>
|
|
28
|
+
<Icon v-else name="bk_mdi_hourglass_empty" class="_bk_size-15" />
|
|
21
29
|
<span>{{ field.fieldLabel }}</span>
|
|
22
30
|
</div>
|
|
23
31
|
</div>
|
|
@@ -26,13 +34,14 @@
|
|
|
26
34
|
<DiffApproval
|
|
27
35
|
v-else-if="phase === 'approval' && completedItems.length > 0"
|
|
28
36
|
:items="completedItems"
|
|
37
|
+
show-reason
|
|
29
38
|
@apply="applySelected"
|
|
30
39
|
/>
|
|
31
40
|
|
|
32
41
|
<ToolCard
|
|
33
42
|
v-if="phase === 'error'"
|
|
34
43
|
icon="bk_mdi_error"
|
|
35
|
-
:title="$t('
|
|
44
|
+
:title="$t('rewritingFailed', 'Rewriting failed')"
|
|
36
45
|
@cancel="finishWithError"
|
|
37
46
|
>
|
|
38
47
|
<p>{{ errorMessage }}</p>
|
|
@@ -40,512 +49,51 @@
|
|
|
40
49
|
</template>
|
|
41
50
|
|
|
42
51
|
<script setup>
|
|
43
|
-
import { useBlokkli, ref,
|
|
52
|
+
import { useBlokkli, ref, onMounted, onBeforeUnmount } from "#imports";
|
|
44
53
|
import { Icon, DiffApproval } from "#blokkli/editor/components";
|
|
45
54
|
import ToolCard from "../../features/agent/Panel/ToolCard/index.vue";
|
|
46
|
-
import { itemEntityType } from "#blokkli-build/config";
|
|
47
|
-
import { routeStream } from "#blokkli-build/agent-client";
|
|
48
|
-
import { useEditableFieldOverride } from "#blokkli/editor/composables";
|
|
49
55
|
import { applyOperations } from "../helpers";
|
|
56
|
+
import {
|
|
57
|
+
applyFieldDiffs,
|
|
58
|
+
rejectedWithoutReasonMessage,
|
|
59
|
+
skippedFieldsMessage,
|
|
60
|
+
appendAgentNote
|
|
61
|
+
} from "../fieldDiffApproval";
|
|
62
|
+
import { useFieldRewriteStream } from "./useFieldRewriteStream";
|
|
50
63
|
const props = defineProps({
|
|
51
64
|
context: { type: null, required: true },
|
|
52
65
|
params: { type: Object, required: true }
|
|
53
66
|
});
|
|
54
67
|
const emit = defineEmits(["done"]);
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
} = useBlokkli();
|
|
63
|
-
const phase = ref("streaming");
|
|
64
|
-
const errorMessage = ref("");
|
|
65
|
-
const streamUsage = ref();
|
|
66
|
-
const MAX_READABILITY_RETRIES = 10;
|
|
67
|
-
const isFixReadability = props.params.template === "fix_readability";
|
|
68
|
-
const retryAttempt = ref(0);
|
|
69
|
-
const streamingTitle = ref(
|
|
70
|
-
$t("aiAgentDelegateRewriteStreaming", "Rewriting @count fields...").replace(
|
|
71
|
-
"@count",
|
|
72
|
-
String(props.params.fields.length)
|
|
73
|
-
)
|
|
74
|
-
);
|
|
75
|
-
const fieldStates = reactive(
|
|
76
|
-
props.params.fields.map((f) => ({
|
|
77
|
-
uuid: f.uuid,
|
|
78
|
-
fieldName: f.fieldName,
|
|
79
|
-
fieldLabel: resolveFieldLabel(f.uuid, f.fieldName),
|
|
80
|
-
status: "pending",
|
|
81
|
-
mode: null,
|
|
82
|
-
fullValue: "",
|
|
83
|
-
operations: [],
|
|
84
|
-
allOperations: [],
|
|
85
|
-
currentSearch: "",
|
|
86
|
-
baseValue: f.currentValue,
|
|
87
|
-
originalBaseValue: f.currentValue
|
|
88
|
-
}))
|
|
89
|
-
);
|
|
90
|
-
const overrides = [];
|
|
91
|
-
let abortController = null;
|
|
92
|
-
const completedItems = ref([]);
|
|
93
|
-
const beforeValues = /* @__PURE__ */ new Map();
|
|
94
|
-
function resolveHost(uuid) {
|
|
95
|
-
if (uuid === editorContext.value.entityUuid) {
|
|
96
|
-
return {
|
|
97
|
-
type: editorContext.value.entityType,
|
|
98
|
-
bundle: editorContext.value.entityBundle,
|
|
99
|
-
uuid
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
const block = blocks.getBlock(uuid);
|
|
103
|
-
if (!block) return null;
|
|
104
|
-
return { type: itemEntityType, bundle: block.bundle, uuid };
|
|
105
|
-
}
|
|
106
|
-
function resolveFieldLabel(uuid, fieldName) {
|
|
107
|
-
const host = resolveHost(uuid);
|
|
108
|
-
if (!host) return fieldName;
|
|
109
|
-
const config = types.editableFieldConfig.forName(
|
|
110
|
-
host.type,
|
|
111
|
-
host.bundle,
|
|
112
|
-
fieldName
|
|
113
|
-
);
|
|
114
|
-
return config?.label || fieldName;
|
|
115
|
-
}
|
|
116
|
-
for (const field of props.params.fields) {
|
|
117
|
-
const host = resolveHost(field.uuid);
|
|
118
|
-
if (!host) continue;
|
|
119
|
-
const override = useEditableFieldOverride(field.fieldName, host);
|
|
120
|
-
overrides.push({
|
|
121
|
-
uuid: field.uuid,
|
|
122
|
-
fieldName: field.fieldName,
|
|
123
|
-
element: override.element,
|
|
124
|
-
setValue: override.setValue,
|
|
125
|
-
restore: override.restore,
|
|
126
|
-
originalValue: override.originalValue
|
|
68
|
+
const blokkli = useBlokkli();
|
|
69
|
+
const { $t, state } = blokkli;
|
|
70
|
+
const skippedNote = skippedFieldsMessage(props.params.skipped);
|
|
71
|
+
function emitDone(result) {
|
|
72
|
+
emit("done", {
|
|
73
|
+
...result,
|
|
74
|
+
agentMessage: appendAgentNote(result.agentMessage, skippedNote)
|
|
127
75
|
});
|
|
128
76
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
clearTimeout(markupFlushTimer);
|
|
150
|
-
markupFlushTimer = null;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function getFieldType(uuid, fieldName) {
|
|
154
|
-
const field = props.params.fields.find(
|
|
155
|
-
(f) => f.uuid === uuid && f.fieldName === fieldName
|
|
156
|
-
);
|
|
157
|
-
return field?.fieldType || "plain";
|
|
158
|
-
}
|
|
159
|
-
function applyDelta(uuid, fieldName, value) {
|
|
160
|
-
const fieldType = getFieldType(uuid, fieldName);
|
|
161
|
-
if (fieldType === "markup") {
|
|
162
|
-
markupBuffer = value;
|
|
163
|
-
markupBufferField = { uuid, fieldName };
|
|
164
|
-
if (value.endsWith(">")) {
|
|
165
|
-
flushMarkupBuffer();
|
|
166
|
-
} else {
|
|
167
|
-
if (markupFlushTimer) clearTimeout(markupFlushTimer);
|
|
168
|
-
markupFlushTimer = setTimeout(flushMarkupBuffer, 100);
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
const override = findOverride(uuid, fieldName);
|
|
172
|
-
if (override) {
|
|
173
|
-
override.setValue(value);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
function computePatchPreview(baseValue, operations, currentSearch, partialReplace) {
|
|
178
|
-
let result = applyOperations(baseValue, operations);
|
|
179
|
-
if (currentSearch && partialReplace) {
|
|
180
|
-
const idx = result.indexOf(currentSearch);
|
|
181
|
-
if (idx !== -1) {
|
|
182
|
-
result = result.slice(0, idx) + partialReplace + result.slice(idx + currentSearch.length);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
return result;
|
|
186
|
-
}
|
|
187
|
-
function getProposedValue(fs) {
|
|
188
|
-
if (fs.status !== "done") return fs.baseValue;
|
|
189
|
-
if (fs.mode === "patch") {
|
|
190
|
-
return applyOperations(fs.baseValue, fs.operations);
|
|
191
|
-
}
|
|
192
|
-
return fs.fullValue;
|
|
193
|
-
}
|
|
194
|
-
async function analyzeReadability() {
|
|
195
|
-
const textFields = [];
|
|
196
|
-
for (const fs of fieldStates) {
|
|
197
|
-
if (fs.status !== "done") continue;
|
|
198
|
-
const field = props.params.fields.find(
|
|
199
|
-
(f) => f.uuid === fs.uuid && f.fieldName === fs.fieldName
|
|
200
|
-
);
|
|
201
|
-
if (!field) continue;
|
|
202
|
-
textFields.push({
|
|
203
|
-
uuid: fs.uuid,
|
|
204
|
-
fieldName: fs.fieldName,
|
|
205
|
-
value: getProposedValue(fs),
|
|
206
|
-
fieldType: field.fieldType,
|
|
207
|
-
entityType: field.entityType,
|
|
208
|
-
entityBundle: field.entityBundle
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
const rawAnalysis = await props.context.app.readability.analyzeFieldValues(textFields);
|
|
212
|
-
const bandOrder = { easy: 0, ok: 1, hard: 2 };
|
|
213
|
-
const fieldMap = /* @__PURE__ */ new Map();
|
|
214
|
-
for (const fs of fieldStates) {
|
|
215
|
-
const key = fs.uuid + ":" + fs.fieldName;
|
|
216
|
-
const analysisKey = fs.uuid + "/" + fs.fieldName;
|
|
217
|
-
const fieldResult = rawAnalysis[analysisKey];
|
|
218
|
-
const chunks = fieldResult?.chunks ?? [];
|
|
219
|
-
const issues = chunks.filter(
|
|
220
|
-
(c) => c.score !== null && (c.band === "hard" || c.band === "ok")
|
|
221
|
-
).map((c) => ({ text: c.text, impact: c.impact, score: c.score }));
|
|
222
|
-
let worstBandValue = -1;
|
|
223
|
-
let worstScore;
|
|
224
|
-
for (const chunk of chunks) {
|
|
225
|
-
if (chunk.band === null || chunk.score === null) continue;
|
|
226
|
-
const value = bandOrder[chunk.band] ?? 0;
|
|
227
|
-
if (value > worstBandValue) {
|
|
228
|
-
worstBandValue = value;
|
|
229
|
-
worstScore = chunk.score;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
const worstLevel = worstBandValue >= 2 ? "hard" : worstBandValue >= 1 ? "ok" : "good";
|
|
233
|
-
fieldMap.set(key, { issues, worstLevel, worstScore });
|
|
234
|
-
}
|
|
235
|
-
return fieldMap;
|
|
236
|
-
}
|
|
237
|
-
function addUsage(usage) {
|
|
238
|
-
if (!streamUsage.value) {
|
|
239
|
-
streamUsage.value = { ...usage };
|
|
240
|
-
} else {
|
|
241
|
-
streamUsage.value.inputTokens += usage.inputTokens;
|
|
242
|
-
streamUsage.value.outputTokens += usage.outputTokens;
|
|
243
|
-
streamUsage.value.cacheCreationInputTokens += usage.cacheCreationInputTokens;
|
|
244
|
-
streamUsage.value.cacheReadInputTokens += usage.cacheReadInputTokens;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function findBlockElementForText(fieldElement, text) {
|
|
248
|
-
const blockTags = /* @__PURE__ */ new Set([
|
|
249
|
-
"P",
|
|
250
|
-
"H1",
|
|
251
|
-
"H2",
|
|
252
|
-
"H3",
|
|
253
|
-
"H4",
|
|
254
|
-
"H5",
|
|
255
|
-
"H6",
|
|
256
|
-
"LI",
|
|
257
|
-
"BLOCKQUOTE"
|
|
258
|
-
]);
|
|
259
|
-
for (const child of fieldElement.children) {
|
|
260
|
-
if (blockTags.has(child.tagName) && child.textContent?.includes(text.slice(0, 40))) {
|
|
261
|
-
return child;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return fieldElement;
|
|
265
|
-
}
|
|
266
|
-
let lastScrollTarget = "";
|
|
267
|
-
function scrollToFieldText(uuid, fieldName, text) {
|
|
268
|
-
const override = findOverride(uuid, fieldName);
|
|
269
|
-
if (!override?.element) {
|
|
270
|
-
eventBus.emit("scrollIntoView", { uuid, immediate: false });
|
|
271
|
-
return;
|
|
272
|
-
}
|
|
273
|
-
const target = text && override.element ? findBlockElementForText(override.element, text) : override.element;
|
|
274
|
-
const key = uuid + ":" + fieldName + ":" + (target?.textContent?.slice(0, 20) || "");
|
|
275
|
-
if (key === lastScrollTarget) return;
|
|
276
|
-
lastScrollTarget = key;
|
|
277
|
-
eventBus.emit("scrollIntoView", { element: target, immediate: false });
|
|
278
|
-
}
|
|
279
|
-
function handleSSEEvent(eventType, data) {
|
|
280
|
-
try {
|
|
281
|
-
const parsed = JSON.parse(data);
|
|
282
|
-
switch (eventType) {
|
|
283
|
-
case "field_start": {
|
|
284
|
-
const fs = findFieldState(parsed.uuid, parsed.fieldName);
|
|
285
|
-
if (fs) {
|
|
286
|
-
fs.status = "streaming";
|
|
287
|
-
fs.mode = parsed.mode || "full";
|
|
288
|
-
}
|
|
289
|
-
lastScrollTarget = "";
|
|
290
|
-
scrollToFieldText(parsed.uuid, parsed.fieldName);
|
|
291
|
-
break;
|
|
292
|
-
}
|
|
293
|
-
case "field_delta": {
|
|
294
|
-
const fs = findFieldState(parsed.uuid, parsed.fieldName);
|
|
295
|
-
if (fs) fs.fullValue = parsed.value;
|
|
296
|
-
applyDelta(parsed.uuid, parsed.fieldName, parsed.value);
|
|
297
|
-
break;
|
|
298
|
-
}
|
|
299
|
-
case "replace_delta": {
|
|
300
|
-
const fs = findFieldState(parsed.uuid, parsed.fieldName);
|
|
301
|
-
if (fs) {
|
|
302
|
-
if (parsed.search !== fs.currentSearch) {
|
|
303
|
-
scrollToFieldText(parsed.uuid, parsed.fieldName, parsed.search);
|
|
304
|
-
}
|
|
305
|
-
fs.currentSearch = parsed.search;
|
|
306
|
-
const preview = computePatchPreview(
|
|
307
|
-
fs.baseValue,
|
|
308
|
-
fs.operations,
|
|
309
|
-
parsed.search,
|
|
310
|
-
parsed.value
|
|
311
|
-
);
|
|
312
|
-
applyDelta(parsed.uuid, parsed.fieldName, preview);
|
|
313
|
-
}
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
case "operation_end": {
|
|
317
|
-
const fs = findFieldState(parsed.uuid, parsed.fieldName);
|
|
318
|
-
if (fs) {
|
|
319
|
-
fs.operations.push({
|
|
320
|
-
search: parsed.search,
|
|
321
|
-
replace: parsed.replace
|
|
322
|
-
});
|
|
323
|
-
fs.currentSearch = "";
|
|
324
|
-
const value = applyOperations(fs.baseValue, fs.operations);
|
|
325
|
-
applyDelta(parsed.uuid, parsed.fieldName, value);
|
|
326
|
-
}
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
case "field_end": {
|
|
330
|
-
if (markupBufferField && markupBufferField.uuid === parsed.uuid && markupBufferField.fieldName === parsed.fieldName) {
|
|
331
|
-
flushMarkupBuffer();
|
|
332
|
-
}
|
|
333
|
-
const fs = findFieldState(parsed.uuid, parsed.fieldName);
|
|
334
|
-
if (fs) {
|
|
335
|
-
fs.status = "done";
|
|
336
|
-
const override = findOverride(parsed.uuid, parsed.fieldName);
|
|
337
|
-
if (override) {
|
|
338
|
-
let finalValue;
|
|
339
|
-
if (fs.mode === "patch") {
|
|
340
|
-
finalValue = applyOperations(fs.baseValue, fs.operations);
|
|
341
|
-
} else {
|
|
342
|
-
finalValue = fs.fullValue;
|
|
343
|
-
}
|
|
344
|
-
override.setValue(finalValue);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
case "error": {
|
|
350
|
-
phase.value = "error";
|
|
351
|
-
errorMessage.value = parsed.message || "Stream error";
|
|
352
|
-
break;
|
|
353
|
-
}
|
|
354
|
-
case "done": {
|
|
355
|
-
if (parsed.usage) {
|
|
356
|
-
addUsage(parsed.usage);
|
|
357
|
-
}
|
|
358
|
-
break;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
} catch {
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
async function fetchStream(authToken, requestFields, templateParams) {
|
|
365
|
-
abortController = new AbortController();
|
|
366
|
-
try {
|
|
367
|
-
const response = await fetch(routeStream, {
|
|
368
|
-
method: "POST",
|
|
369
|
-
headers: { "Content-Type": "application/json" },
|
|
370
|
-
body: JSON.stringify({
|
|
371
|
-
authToken,
|
|
372
|
-
template: props.params.template,
|
|
373
|
-
templateParams,
|
|
374
|
-
fields: requestFields,
|
|
375
|
-
pageContext: props.context.pageContext
|
|
376
|
-
}),
|
|
377
|
-
signal: abortController.signal
|
|
378
|
-
});
|
|
379
|
-
if (!response.ok || !response.body) {
|
|
380
|
-
phase.value = "error";
|
|
381
|
-
errorMessage.value = `Server returned ${response.status}`;
|
|
382
|
-
return false;
|
|
383
|
-
}
|
|
384
|
-
const reader = response.body.getReader();
|
|
385
|
-
const decoder = new TextDecoder();
|
|
386
|
-
let buffer = "";
|
|
387
|
-
while (true) {
|
|
388
|
-
const { done, value } = await reader.read();
|
|
389
|
-
if (done) break;
|
|
390
|
-
buffer += decoder.decode(value, { stream: true });
|
|
391
|
-
const lines = buffer.split("\n");
|
|
392
|
-
buffer = lines.pop() || "";
|
|
393
|
-
let eventType = "";
|
|
394
|
-
let eventData = "";
|
|
395
|
-
for (const line of lines) {
|
|
396
|
-
if (line.startsWith("event: ")) {
|
|
397
|
-
eventType = line.slice(7);
|
|
398
|
-
} else if (line.startsWith("data: ")) {
|
|
399
|
-
eventData = line.slice(6);
|
|
400
|
-
} else if (line === "" && eventType && eventData) {
|
|
401
|
-
handleSSEEvent(eventType, eventData);
|
|
402
|
-
eventType = "";
|
|
403
|
-
eventData = "";
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
flushMarkupBuffer();
|
|
408
|
-
return true;
|
|
409
|
-
} catch (error) {
|
|
410
|
-
if (abortController?.signal.aborted) {
|
|
411
|
-
restoreAll();
|
|
412
|
-
emit("done", {
|
|
413
|
-
acceptedCount: 0,
|
|
414
|
-
rejectedByUser: {},
|
|
415
|
-
label: $t("aiAgentDelegateRewriteCancelled", "Rewriting cancelled"),
|
|
416
|
-
agentMessage: "Rewriting was cancelled by the user.",
|
|
417
|
-
_usage: streamUsage.value
|
|
418
|
-
});
|
|
419
|
-
return false;
|
|
420
|
-
}
|
|
421
|
-
phase.value = "error";
|
|
422
|
-
errorMessage.value = error instanceof Error ? error.message : "Unknown error";
|
|
423
|
-
return false;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
async function readabilityRetryLoop(authToken) {
|
|
427
|
-
for (let attempt = 0; attempt < MAX_READABILITY_RETRIES; attempt++) {
|
|
428
|
-
streamingTitle.value = $t(
|
|
429
|
-
"aiAgentDelegateRewriteChecking",
|
|
430
|
-
"Checking readability..."
|
|
431
|
-
);
|
|
432
|
-
const analysis = await analyzeReadability();
|
|
433
|
-
const failing = [];
|
|
434
|
-
const passing = [];
|
|
435
|
-
for (const fs of fieldStates) {
|
|
436
|
-
if (fs.status !== "done") continue;
|
|
437
|
-
const field = props.params.fields.find(
|
|
438
|
-
(f) => f.uuid === fs.uuid && f.fieldName === fs.fieldName
|
|
439
|
-
);
|
|
440
|
-
if (!field) continue;
|
|
441
|
-
const key = fs.uuid + ":" + fs.fieldName;
|
|
442
|
-
const entry = analysis.get(key);
|
|
443
|
-
const level = entry?.worstLevel ?? "good";
|
|
444
|
-
const score = entry?.worstScore;
|
|
445
|
-
const issues = entry?.issues ?? [];
|
|
446
|
-
const proposedValue = getProposedValue(fs);
|
|
447
|
-
const check = {
|
|
448
|
-
fs,
|
|
449
|
-
fieldType: field.fieldType,
|
|
450
|
-
proposedValue,
|
|
451
|
-
level,
|
|
452
|
-
score,
|
|
453
|
-
issues
|
|
454
|
-
};
|
|
455
|
-
if (level === "hard" || level === "ok") {
|
|
456
|
-
failing.push(check);
|
|
457
|
-
} else {
|
|
458
|
-
passing.push(check);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
if (failing.length === 0) break;
|
|
462
|
-
if (attempt === MAX_READABILITY_RETRIES - 1) break;
|
|
463
|
-
const retryFieldsData = failing.map((f, i) => ({
|
|
464
|
-
fieldIndex: i,
|
|
465
|
-
fieldLabel: f.fs.fieldLabel,
|
|
466
|
-
originalValue: f.fs.originalBaseValue,
|
|
467
|
-
previousAttempt: f.proposedValue,
|
|
468
|
-
score: f.score
|
|
469
|
-
}));
|
|
470
|
-
const passingFieldsData = passing.map((p) => ({
|
|
471
|
-
fieldLabel: p.fs.fieldLabel,
|
|
472
|
-
value: p.proposedValue,
|
|
473
|
-
score: p.score
|
|
474
|
-
}));
|
|
475
|
-
for (const f of failing) {
|
|
476
|
-
f.fs.allOperations.push(...f.fs.operations);
|
|
477
|
-
f.fs.status = "pending";
|
|
478
|
-
f.fs.mode = null;
|
|
479
|
-
f.fs.baseValue = f.proposedValue;
|
|
480
|
-
f.fs.fullValue = "";
|
|
481
|
-
f.fs.operations = [];
|
|
482
|
-
f.fs.currentSearch = "";
|
|
483
|
-
}
|
|
484
|
-
retryAttempt.value = attempt + 1;
|
|
485
|
-
const retryFields = failing.map((f) => ({
|
|
486
|
-
uuid: f.fs.uuid,
|
|
487
|
-
fieldName: f.fs.fieldName,
|
|
488
|
-
currentValue: f.proposedValue,
|
|
489
|
-
fieldType: f.fieldType
|
|
490
|
-
}));
|
|
491
|
-
const retryIssues = [];
|
|
492
|
-
for (let i = 0; i < failing.length; i++) {
|
|
493
|
-
for (const issue of failing[i].issues) {
|
|
494
|
-
retryIssues.push({
|
|
495
|
-
fieldIndex: i,
|
|
496
|
-
text: issue.text,
|
|
497
|
-
impact: issue.impact || "critical",
|
|
498
|
-
score: issue.score ?? 0
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
streamingTitle.value = $t(
|
|
503
|
-
"aiAgentDelegateRewriteRetrying",
|
|
504
|
-
"Retrying @count fields (attempt @attempt)..."
|
|
505
|
-
).replace("@count", String(failing.length)).replace("@attempt", String(retryAttempt.value + 1));
|
|
506
|
-
let retryToken = authToken;
|
|
507
|
-
if (props.context.adapter.getAgentAuthToken) {
|
|
508
|
-
const fresh = await props.context.adapter.getAgentAuthToken();
|
|
509
|
-
if (fresh) retryToken = fresh;
|
|
510
|
-
}
|
|
511
|
-
const retrySuccess = await fetchStream(retryToken, retryFields, {
|
|
512
|
-
issues: retryIssues,
|
|
513
|
-
scoreLabel: props.context.app.readability.scoreLabel.value,
|
|
514
|
-
scoreReference: props.context.app.readability.getAgentContext(),
|
|
515
|
-
retryFields: retryFieldsData,
|
|
516
|
-
passingFields: passingFieldsData
|
|
517
|
-
});
|
|
518
|
-
if (!retrySuccess) return;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
async function startStreaming() {
|
|
522
|
-
let authToken = null;
|
|
523
|
-
if (props.context.adapter.getAgentAuthToken) {
|
|
524
|
-
authToken = await props.context.adapter.getAgentAuthToken();
|
|
525
|
-
}
|
|
526
|
-
if (!authToken) {
|
|
527
|
-
phase.value = "error";
|
|
528
|
-
errorMessage.value = "Failed to get authentication token";
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
const requestFields = props.params.fields.map((f) => ({
|
|
532
|
-
uuid: f.uuid,
|
|
533
|
-
fieldName: f.fieldName,
|
|
534
|
-
currentValue: f.currentValue,
|
|
535
|
-
fieldType: f.fieldType
|
|
536
|
-
}));
|
|
537
|
-
const success = await fetchStream(
|
|
538
|
-
authToken,
|
|
539
|
-
requestFields,
|
|
540
|
-
props.params.templateParams
|
|
541
|
-
);
|
|
542
|
-
if (!success) return;
|
|
543
|
-
if (isFixReadability) {
|
|
544
|
-
await readabilityRetryLoop(authToken);
|
|
545
|
-
if (phase.value !== "streaming") return;
|
|
546
|
-
}
|
|
547
|
-
transitionToApproval();
|
|
548
|
-
}
|
|
77
|
+
const completedItems = ref([]);
|
|
78
|
+
const beforeValues = /* @__PURE__ */ new Map();
|
|
79
|
+
const stream = useFieldRewriteStream({
|
|
80
|
+
context: props.context,
|
|
81
|
+
params: props.params,
|
|
82
|
+
onComplete: () => transitionToApproval()
|
|
83
|
+
});
|
|
84
|
+
const {
|
|
85
|
+
phase,
|
|
86
|
+
errorMessage,
|
|
87
|
+
streamingTitle,
|
|
88
|
+
streamUsage,
|
|
89
|
+
fieldStates,
|
|
90
|
+
findFieldState,
|
|
91
|
+
findOverride,
|
|
92
|
+
start,
|
|
93
|
+
restoreAll,
|
|
94
|
+
abort,
|
|
95
|
+
dispose
|
|
96
|
+
} = stream;
|
|
549
97
|
function transitionToApproval() {
|
|
550
98
|
let idCounter = 0;
|
|
551
99
|
const items = [];
|
|
@@ -572,7 +120,7 @@ function transitionToApproval() {
|
|
|
572
120
|
}
|
|
573
121
|
if (items.length === 0) {
|
|
574
122
|
restoreAll();
|
|
575
|
-
|
|
123
|
+
emitDone({
|
|
576
124
|
acceptedCount: 0,
|
|
577
125
|
rejectedByUser: {},
|
|
578
126
|
label: $t("aiAgentDelegateRewriteNoChanges", "No changes detected"),
|
|
@@ -585,17 +133,10 @@ function transitionToApproval() {
|
|
|
585
133
|
completedItems.value = items;
|
|
586
134
|
phase.value = "approval";
|
|
587
135
|
}
|
|
588
|
-
function restoreAll() {
|
|
589
|
-
for (const override of overrides) {
|
|
590
|
-
override.restore();
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
136
|
function onCancel() {
|
|
594
|
-
|
|
595
|
-
abortController.abort();
|
|
596
|
-
}
|
|
137
|
+
abort();
|
|
597
138
|
restoreAll();
|
|
598
|
-
|
|
139
|
+
emitDone({
|
|
599
140
|
acceptedCount: 0,
|
|
600
141
|
rejectedByUser: {},
|
|
601
142
|
label: $t("aiAgentDelegateRewriteCancelled", "Rewriting cancelled"),
|
|
@@ -605,54 +146,23 @@ function onCancel() {
|
|
|
605
146
|
}
|
|
606
147
|
function finishWithError() {
|
|
607
148
|
restoreAll();
|
|
608
|
-
|
|
149
|
+
emitDone({
|
|
609
150
|
acceptedCount: 0,
|
|
610
151
|
rejectedByUser: {},
|
|
611
|
-
label: $t("
|
|
152
|
+
label: $t("rewritingFailed", "Rewriting failed"),
|
|
612
153
|
agentMessage: `Rewriting failed: ${errorMessage.value}`,
|
|
613
154
|
_usage: streamUsage.value
|
|
614
155
|
});
|
|
615
156
|
}
|
|
616
157
|
async function applySelected(data) {
|
|
617
158
|
const { selected, reasons } = data;
|
|
618
|
-
const rejectedByUser =
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
const fields = rejectedByUser[item.uuid] ?? {};
|
|
625
|
-
fields[item.fieldName] = { reasonForRejection: reasons[item.id] || "" };
|
|
626
|
-
rejectedByUser[item.uuid] = fields;
|
|
627
|
-
continue;
|
|
628
|
-
}
|
|
629
|
-
if (item.uuid === entityUuid) {
|
|
630
|
-
entityItems.push({
|
|
631
|
-
fieldName: item.fieldName,
|
|
632
|
-
fieldValue: item.value
|
|
633
|
-
});
|
|
634
|
-
} else {
|
|
635
|
-
batchItems.push({
|
|
636
|
-
uuid: item.uuid,
|
|
637
|
-
fieldName: item.fieldName,
|
|
638
|
-
fieldValue: item.value
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
await state.mutateWithLoadingState(
|
|
643
|
-
() => props.context.adapter.updateFieldValueBatched({
|
|
644
|
-
items: batchItems,
|
|
645
|
-
entityItems
|
|
646
|
-
})
|
|
159
|
+
const { acceptedCount, rejectedByUser, label } = await applyFieldDiffs(
|
|
160
|
+
blokkli,
|
|
161
|
+
props.context.adapter,
|
|
162
|
+
completedItems.value,
|
|
163
|
+
selected,
|
|
164
|
+
reasons
|
|
647
165
|
);
|
|
648
|
-
const acceptedCount = batchItems.length + entityItems.length;
|
|
649
|
-
const label = acceptedCount === completedItems.value.length ? $t(
|
|
650
|
-
"aiAgentBatchRewriteAllApplied",
|
|
651
|
-
"All @count changes applied"
|
|
652
|
-
).replace("@count", String(acceptedCount)) : $t(
|
|
653
|
-
"aiAgentBatchRewriteSomeApplied",
|
|
654
|
-
"@applied of @total changes applied"
|
|
655
|
-
).replace("@applied", String(acceptedCount)).replace("@total", String(completedItems.value.length));
|
|
656
166
|
const parts = [];
|
|
657
167
|
const acceptedItems = completedItems.value.filter((item) => selected[item.id]);
|
|
658
168
|
if (acceptedItems.length > 0) {
|
|
@@ -674,21 +184,8 @@ async function applySelected(data) {
|
|
|
674
184
|
}
|
|
675
185
|
}
|
|
676
186
|
let agentMessage = parts.join("\n");
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
for (const [fieldName, v] of Object.entries(fields)) {
|
|
680
|
-
if (!v?.reasonForRejection) {
|
|
681
|
-
rejectedWithoutReason.push({ uuid, fieldName });
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
if (rejectedWithoutReason.length === 1 || rejectedWithoutReason.length === 2) {
|
|
686
|
-
const fieldList = rejectedWithoutReason.map((r) => `"${r.fieldName}" of paragraph ${r.uuid}`).join(" and ");
|
|
687
|
-
agentMessage += `
|
|
688
|
-
The user rejected ${fieldList} without a reason. Use the ask_question tool to present the user with 2 or more alternative texts for each rejected field.`;
|
|
689
|
-
} else if (rejectedWithoutReason.length > 2) {
|
|
690
|
-
agentMessage += "\nSome changes were rejected without a reason. Ask the user what they would like to change instead.";
|
|
691
|
-
}
|
|
187
|
+
const followUp = rejectedWithoutReasonMessage(rejectedByUser);
|
|
188
|
+
if (followUp) agentMessage += "\n" + followUp;
|
|
692
189
|
const _details = completedItems.value.filter((item) => selected[item.id]).map((item) => {
|
|
693
190
|
const fs = findFieldState(item.uuid, item.fieldName);
|
|
694
191
|
const hadRetries = fs ? fs.allOperations.length > 0 : false;
|
|
@@ -701,7 +198,7 @@ The user rejected ${fieldList} without a reason. Use the ask_question tool to pr
|
|
|
701
198
|
operations
|
|
702
199
|
};
|
|
703
200
|
});
|
|
704
|
-
|
|
201
|
+
emitDone({
|
|
705
202
|
acceptedCount,
|
|
706
203
|
rejectedByUser,
|
|
707
204
|
label,
|
|
@@ -709,38 +206,27 @@ The user rejected ${fieldList} without a reason. Use the ask_question tool to pr
|
|
|
709
206
|
historyIndex: state.currentMutationIndex.value,
|
|
710
207
|
_details,
|
|
711
208
|
_usage: streamUsage.value,
|
|
712
|
-
|
|
209
|
+
// Let the agent respond if anything was rejected or skipped, so it can
|
|
210
|
+
// retry the skipped references.
|
|
211
|
+
_skipLlmResponse: rejectedItems.length === 0 && !skippedNote
|
|
713
212
|
});
|
|
714
213
|
}
|
|
715
|
-
async
|
|
716
|
-
await
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
214
|
+
onMounted(async () => {
|
|
215
|
+
const { cancelled } = await start();
|
|
216
|
+
if (cancelled) {
|
|
217
|
+
emitDone({
|
|
218
|
+
acceptedCount: 0,
|
|
219
|
+
rejectedByUser: {},
|
|
220
|
+
label: $t("aiAgentDelegateRewriteCancelled", "Rewriting cancelled"),
|
|
221
|
+
agentMessage: "Rewriting was cancelled by the user.",
|
|
222
|
+
_usage: streamUsage.value
|
|
223
|
+
});
|
|
722
224
|
}
|
|
723
|
-
emit("done", {
|
|
724
|
-
acceptedCount: 0,
|
|
725
|
-
rejectedByUser,
|
|
726
|
-
label: $t("aiAgentBatchRewriteAllRejected", "All changes rejected"),
|
|
727
|
-
agentMessage: "All changes were rejected by the user. Ask the user what they would like to change instead.",
|
|
728
|
-
_usage: streamUsage.value
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
onMounted(() => {
|
|
732
|
-
startStreaming();
|
|
733
225
|
});
|
|
734
226
|
onBeforeUnmount(() => {
|
|
735
|
-
|
|
736
|
-
abortController.abort();
|
|
737
|
-
}
|
|
227
|
+
dispose();
|
|
738
228
|
if (phase.value === "streaming") {
|
|
739
229
|
restoreAll();
|
|
740
230
|
}
|
|
741
|
-
state.flushDirty();
|
|
742
|
-
if (markupFlushTimer) {
|
|
743
|
-
clearTimeout(markupFlushTimer);
|
|
744
|
-
}
|
|
745
231
|
});
|
|
746
232
|
</script>
|