@blokkli/editor 2.0.0-alpha.59 → 2.0.0-alpha.61
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/module.json +1 -1
- package/dist/module.mjs +28 -11
- package/dist/modules/agent/index.mjs +2 -5
- package/dist/modules/agent/runtime/app/features/agent/Container.vue +3 -3
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +15 -3
- package/dist/modules/agent/runtime/app/features/agent/index.vue +5 -1
- package/dist/modules/agent/runtime/app/features/agent/types.d.ts +2 -1
- package/dist/modules/agent/runtime/app/helpers/mutationResult.d.ts +38 -0
- package/dist/modules/agent/runtime/app/helpers/mutationResult.js +49 -0
- package/dist/modules/agent/runtime/app/prompts/fixReadability.js +3 -3
- package/dist/modules/agent/runtime/app/providers/agentProvider.d.ts +2 -1
- package/dist/modules/agent/runtime/app/providers/agentProvider.js +6 -6
- package/dist/modules/agent/runtime/app/providers/toolsProvider.js +3 -13
- package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.d.ts +25 -0
- package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_fragment/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.d.ts +24 -0
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +32 -0
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +6 -4
- package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_template/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/add_template/index.js +5 -3
- package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +3 -3
- package/dist/modules/agent/runtime/app/tools/ask_question/index.js +7 -6
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.d.vue.ts +29 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue +172 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue.d.ts +29 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +28 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.js +80 -0
- package/dist/modules/agent/runtime/app/tools/check_readability_for_texts/index.d.ts +17 -0
- package/dist/modules/agent/runtime/app/tools/check_readability_for_texts/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +16 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +10 -1
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +5 -3
- package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.d.ts +31 -0
- package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.js +7 -7
- package/dist/modules/agent/runtime/app/tools/get_all_fragments/index.d.ts +7 -0
- package/dist/modules/agent/runtime/app/tools/get_all_fragments/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.d.ts +10 -0
- package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.js +3 -3
- package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.d.ts +35 -0
- package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_child_paragraphs/index.d.ts +20 -0
- package/dist/modules/agent/runtime/app/tools/get_child_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_content_fields/index.d.ts +30 -0
- package/dist/modules/agent/runtime/app/tools/get_content_fields/index.js +15 -11
- package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.d.ts +25 -0
- package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_page_structure/index.d.ts +8 -0
- package/dist/modules/agent/runtime/app/tools/get_page_structure/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_page_text/index.d.ts +8 -0
- package/dist/modules/agent/runtime/app/tools/get_page_text/index.js +65 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.d.ts +81 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +20 -12
- package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.d.ts +14 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.d.ts +38 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.js +7 -6
- package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.d.ts +12 -0
- package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.js +62 -0
- package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.d.ts +9 -0
- package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/helpers.d.ts +8 -2
- package/dist/modules/agent/runtime/app/tools/helpers.js +9 -9
- package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.d.ts +21 -0
- package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.d.ts +20 -0
- package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/replace_media_field/index.d.ts +19 -0
- package/dist/modules/agent/runtime/app/tools/replace_media_field/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/schemas.d.ts +25 -5
- package/dist/modules/agent/runtime/app/tools/schemas.js +37 -10
- package/dist/modules/agent/runtime/app/tools/search_content/index.d.ts +15 -0
- package/dist/modules/agent/runtime/app/tools/search_content/index.js +8 -7
- package/dist/modules/agent/runtime/app/tools/search_media/index.d.ts +5 -1
- package/dist/modules/agent/runtime/app/tools/search_media/index.js +3 -3
- package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/search_templates/index.d.ts +13 -0
- package/dist/modules/agent/runtime/app/tools/search_templates/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/search_text/index.d.ts +15 -0
- package/dist/modules/agent/runtime/app/tools/search_text/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/select_media/Component.vue +1 -1
- package/dist/modules/agent/runtime/app/tools/select_media/index.d.ts +2 -2
- package/dist/modules/agent/runtime/app/tools/select_media/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.d.ts +19 -0
- package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.d.ts +17 -0
- package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +13 -4
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.js +8 -7
- package/dist/modules/agent/runtime/app/tools/web_fetch/index.d.ts +17 -0
- package/dist/modules/agent/runtime/app/tools/web_fetch/index.js +2 -2
- package/dist/modules/agent/runtime/app/types/index.d.ts +6 -9
- package/dist/modules/agent/runtime/app/types/index.js +4 -3
- package/dist/modules/agent/runtime/server/agent.js +1 -2
- package/dist/modules/agent/runtime/server/classes/Session/index.d.ts +2 -2
- package/dist/modules/agent/runtime/server/classes/Session/index.js +10 -5
- package/dist/modules/agent/runtime/server/default-system-prompts/important-rules.js +2 -1
- package/dist/modules/agent/runtime/shared/toolParams.d.ts +19 -0
- package/dist/modules/agent/runtime/shared/toolParams.js +6 -0
- package/dist/modules/agent/runtime/shared/toolResult.d.ts +4 -0
- package/dist/modules/agent/runtime/shared/toolResult.js +5 -0
- package/dist/modules/agent/runtime/shared/types.d.ts +23 -4
- package/dist/modules/agent/runtime/shared/types.js +6 -1
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +4 -13
- package/dist/modules/drupal/graphql/features/notifications.graphql +39 -0
- package/dist/modules/drupal/index.mjs +6 -1
- package/dist/modules/drupal/runtime/adapter/index.js +38 -0
- package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue +0 -1
- package/dist/runtime/editor/components/Actions/ScrollArrow/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue +52 -0
- package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/Actions/Title/index.vue +9 -8
- package/dist/runtime/editor/components/Actions/index.vue +47 -7
- package/dist/runtime/editor/components/Actions/useToolbarScroll.d.ts +25 -0
- package/dist/runtime/editor/components/Actions/useToolbarScroll.js +125 -0
- package/dist/runtime/editor/components/AddListItem/index.vue +0 -2
- package/dist/runtime/editor/components/AppMenu/MenuButton.vue +1 -3
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +4 -1
- package/dist/runtime/editor/components/Avatar/index.vue +0 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/BundleSelector/index.vue +0 -4
- package/dist/runtime/editor/components/Dialog/index.d.vue.ts +2 -2
- package/dist/runtime/editor/components/Dialog/index.vue +1 -3
- package/dist/runtime/editor/components/Dialog/index.vue.d.ts +2 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +12 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +14 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +2 -2
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +0 -2
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +2 -2
- package/dist/runtime/editor/components/DiffApproval/index.vue +3 -2
- package/dist/runtime/editor/components/Dropdown/index.vue +0 -39
- package/dist/runtime/editor/components/DropdownItem/index.d.vue.ts +12 -2
- package/dist/runtime/editor/components/DropdownItem/index.vue +46 -2
- package/dist/runtime/editor/components/DropdownItem/index.vue.d.ts +12 -2
- package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Form/Datepicker/index.vue +0 -1
- package/dist/runtime/editor/components/Form/TextDark/index.vue +0 -1
- package/dist/runtime/editor/components/Form/Textarea/index.vue +0 -1
- package/dist/runtime/editor/components/Form/Toggle/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/Form/Toggle/index.vue +9 -2
- package/dist/runtime/editor/components/Form/Toggle/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/FormOverlay/index.vue +0 -1
- package/dist/runtime/editor/components/Icon/index.vue +0 -2
- package/dist/runtime/editor/components/Messages/Item/index.vue +4 -1
- package/dist/runtime/editor/components/Messages/index.vue +3 -0
- package/dist/runtime/editor/components/Panel/Sheet/index.vue +1 -1
- package/dist/runtime/editor/components/Popup/index.vue +0 -2
- package/dist/runtime/editor/components/RichText/Editor/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/RichText/Editor/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/ScheduleDate/index.vue +1 -3
- package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +74 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.d.vue.ts +7 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue +16 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue.d.ts +7 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue +57 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/index.vue +3 -56
- package/dist/runtime/editor/components/ToolbarDropdown/index.d.vue.ts +21 -0
- package/dist/runtime/editor/components/ToolbarDropdown/index.vue +36 -0
- package/dist/runtime/editor/components/ToolbarDropdown/index.vue.d.ts +21 -0
- package/dist/runtime/editor/components/Tooltip/Context.vue +3 -1
- package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Tooltip/index.vue +4 -1
- package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/index.d.ts +1 -0
- package/dist/runtime/editor/components/index.js +1 -0
- package/dist/runtime/editor/composables/defineViewOption.d.ts +5 -0
- package/dist/runtime/editor/composables/defineViewOption.js +10 -0
- package/dist/runtime/editor/composables/index.d.ts +3 -0
- package/dist/runtime/editor/composables/index.js +2 -0
- package/dist/runtime/editor/composables/useDismiss.d.ts +30 -0
- package/dist/runtime/editor/composables/useDismiss.js +43 -0
- package/dist/runtime/editor/composables/useGlobalBlokkliObject.d.ts +3 -3
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/events/index.d.ts +23 -0
- package/dist/runtime/editor/features/add-list/Actions/index.vue +0 -1
- package/dist/runtime/editor/features/add-list/Blocks/index.vue +0 -1
- package/dist/runtime/editor/features/add-list/Help/Item.vue +2 -7
- package/dist/runtime/editor/features/add-list/Help/index.vue +1 -1
- package/dist/runtime/editor/features/add-list/index.vue +0 -2
- package/dist/runtime/editor/features/anchors/index.vue +11 -11
- package/dist/runtime/editor/features/anchors/types.d.ts +1 -0
- package/dist/runtime/editor/features/anchors/types.js +1 -0
- package/dist/runtime/editor/features/artboard/Renderer.vue +30 -28
- package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue +0 -3
- package/dist/runtime/editor/features/block-scheduler/index.vue +0 -1
- package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue +0 -4
- package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue +0 -5
- package/dist/runtime/editor/features/changelog/changelog.json +16 -0
- package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +0 -3
- package/dist/runtime/editor/features/command-palette/Palette/index.vue +0 -1
- package/dist/runtime/editor/features/comments/AddForm/index.vue +0 -1
- package/dist/runtime/editor/features/comments/Comment/Actions/index.vue +0 -4
- package/dist/runtime/editor/features/comments/Comment/index.d.vue.ts +14 -0
- package/dist/runtime/editor/features/comments/Comment/index.vue +29 -8
- package/dist/runtime/editor/features/comments/Comment/index.vue.d.ts +14 -0
- package/dist/runtime/editor/features/comments/CommentInput/index.d.vue.ts +1 -1
- package/dist/runtime/editor/features/comments/CommentInput/index.vue +0 -3
- package/dist/runtime/editor/features/comments/CommentInput/index.vue.d.ts +1 -1
- package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue +0 -1
- package/dist/runtime/editor/features/comments/Sidebar/index.d.vue.ts +16 -0
- package/dist/runtime/editor/features/comments/Sidebar/index.vue +13 -8
- package/dist/runtime/editor/features/comments/Sidebar/index.vue.d.ts +16 -0
- package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue +0 -1
- package/dist/runtime/editor/features/comments/Thread/index.d.vue.ts +16 -0
- package/dist/runtime/editor/features/comments/Thread/index.vue +26 -6
- package/dist/runtime/editor/features/comments/Thread/index.vue.d.ts +16 -0
- package/dist/runtime/editor/features/comments/index.vue +28 -3
- package/dist/runtime/editor/features/delete/types.d.ts +1 -0
- package/dist/runtime/editor/features/delete/types.js +1 -0
- package/dist/runtime/editor/features/dev-mode/index.vue +17 -15
- package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +1 -0
- package/dist/runtime/editor/features/duplicate/types.d.ts +1 -0
- package/dist/runtime/editor/features/duplicate/types.js +1 -0
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +0 -2
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue +0 -1
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +0 -5
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +0 -5
- package/dist/runtime/editor/features/editable-mask/index.vue +21 -20
- package/dist/runtime/editor/features/entity-title/index.vue +0 -4
- package/dist/runtime/editor/features/fragments/Dialog/index.vue +0 -4
- package/dist/runtime/editor/features/grid/index.vue +16 -15
- package/dist/runtime/editor/features/grid/types.d.ts +1 -0
- package/dist/runtime/editor/features/grid/types.js +1 -0
- package/dist/runtime/editor/features/help/Dialog/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/help/Dialog/index.vue +57 -0
- package/dist/runtime/editor/features/help/Dialog/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/help/index.vue +52 -47
- package/dist/runtime/editor/features/history/List/index.vue +2 -9
- package/dist/runtime/editor/features/history/types.d.ts +1 -0
- package/dist/runtime/editor/features/history/types.js +1 -0
- package/dist/runtime/editor/features/notifications/Item/index.d.vue.ts +4 -0
- package/dist/runtime/editor/features/notifications/Item/index.vue +96 -0
- package/dist/runtime/editor/features/notifications/Item/index.vue.d.ts +4 -0
- package/dist/runtime/editor/features/notifications/List/index.d.vue.ts +11 -0
- package/dist/runtime/editor/features/notifications/List/index.vue +126 -0
- package/dist/runtime/editor/features/notifications/List/index.vue.d.ts +11 -0
- package/dist/runtime/editor/features/notifications/docs.md +12 -0
- package/dist/runtime/editor/features/notifications/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/notifications/index.vue +123 -0
- package/dist/runtime/editor/features/notifications/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/notifications/types.d.ts +132 -0
- package/dist/runtime/editor/features/notifications/types.js +20 -0
- package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +6 -2
- package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +14 -4
- package/dist/runtime/editor/features/options/Form/Color/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +0 -1
- package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.vue +0 -1
- package/dist/runtime/editor/features/options/Form/Group.vue +3 -1
- package/dist/runtime/editor/features/options/Form/Item.vue +1 -2
- package/dist/runtime/editor/features/options/Form/Number/index.vue +9 -3
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +3 -2
- package/dist/runtime/editor/features/options/Form/Range/index.vue +8 -2
- package/dist/runtime/editor/features/options/Form/Text/index.vue +6 -2
- package/dist/runtime/editor/features/options/index.vue +7 -1
- package/dist/runtime/editor/features/ownership/Banner/index.vue +3 -1
- package/dist/runtime/editor/features/ownership/types.d.ts +1 -0
- package/dist/runtime/editor/features/ownership/types.js +1 -0
- package/dist/runtime/editor/features/preview-grant/types.d.ts +1 -0
- package/dist/runtime/editor/features/preview-grant/types.js +1 -0
- package/dist/runtime/editor/features/proxy-view/index.vue +24 -21
- package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +0 -2
- package/dist/runtime/editor/features/publish/Dialog/index.vue +1 -2
- package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +0 -1
- package/dist/runtime/editor/features/revert/types.d.ts +1 -0
- package/dist/runtime/editor/features/revert/types.js +1 -0
- package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +18 -8
- package/dist/runtime/editor/features/swap/types.d.ts +1 -0
- package/dist/runtime/editor/features/swap/types.js +1 -0
- package/dist/runtime/editor/features/translations/Banner/index.vue +4 -1
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +4 -1
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +7 -2
- package/dist/runtime/editor/plugins/BlockIndicator/index.vue +0 -2
- package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +4 -36
- package/dist/runtime/editor/plugins/ItemAction/index.vue +0 -1
- 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 +2 -2
- package/dist/runtime/editor/plugins/Sidebar/index.vue +7 -50
- package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +2 -2
- package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +8 -2
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue +122 -28
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +8 -2
- package/dist/runtime/editor/plugins/index.d.ts +1 -2
- package/dist/runtime/editor/plugins/index.js +1 -3
- package/dist/runtime/editor/providers/fieldValue.js +11 -13
- package/dist/runtime/editor/providers/plugin.d.ts +12 -0
- package/dist/runtime/editor/providers/plugin.js +9 -0
- package/dist/runtime/editor/translations/de.json +53 -19
- package/dist/runtime/editor/translations/fr.json +16 -4
- package/dist/runtime/editor/translations/gsw_CH.json +53 -19
- package/dist/runtime/editor/translations/it.json +16 -4
- package/package.json +6 -6
- package/dist/runtime/editor/plugins/ViewOption/index.d.vue.ts +0 -139
- package/dist/runtime/editor/plugins/ViewOption/index.vue +0 -99
- package/dist/runtime/editor/plugins/ViewOption/index.vue.d.ts +0 -139
|
@@ -1,2 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
includeParentChain: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
5
|
+
includeSiblings: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
6
|
+
includeChildren: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
7
|
+
includeContentFields: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
8
|
+
includeOptions: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const resultSchema: z.ZodObject<{
|
|
11
|
+
uuid: z.ZodString;
|
|
12
|
+
bundle: z.ZodString;
|
|
13
|
+
label: z.ZodString;
|
|
14
|
+
fragmentName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
nestingLevel: z.ZodNumber;
|
|
16
|
+
parent: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
uuid: z.ZodString;
|
|
19
|
+
field: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
parentChain: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
uuid: z.ZodString;
|
|
23
|
+
bundle: z.ZodString;
|
|
24
|
+
label: z.ZodString;
|
|
25
|
+
field: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
siblings: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
total: z.ZodNumber;
|
|
29
|
+
position: z.ZodNumber;
|
|
30
|
+
prev: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodString;
|
|
32
|
+
bundle: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
next: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
uuid: z.ZodString;
|
|
36
|
+
bundle: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
childFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
count: z.ZodNumber;
|
|
43
|
+
cardinality: z.ZodNumber;
|
|
44
|
+
bundles: z.ZodArray<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>>>;
|
|
46
|
+
contentFields: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
+
field: z.ZodString;
|
|
48
|
+
type: z.ZodLiteral<"plain">;
|
|
49
|
+
currentValue: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
field: z.ZodString;
|
|
52
|
+
type: z.ZodLiteral<"markup">;
|
|
53
|
+
currentValue: z.ZodString;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
field: z.ZodString;
|
|
56
|
+
label: z.ZodString;
|
|
57
|
+
type: z.ZodLiteral<"reference">;
|
|
58
|
+
allowed: z.ZodArray<z.ZodObject<{
|
|
59
|
+
type: z.ZodString;
|
|
60
|
+
bundles: z.ZodArray<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
field: z.ZodString;
|
|
64
|
+
label: z.ZodString;
|
|
65
|
+
type: z.ZodLiteral<"link">;
|
|
66
|
+
allowed: z.ZodArray<z.ZodObject<{
|
|
67
|
+
type: z.ZodString;
|
|
68
|
+
bundles: z.ZodArray<z.ZodString>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>], "type">>>;
|
|
71
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
72
|
+
type: z.ZodString;
|
|
73
|
+
label: z.ZodString;
|
|
74
|
+
description: z.ZodOptional<z.ZodString>;
|
|
75
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
76
|
+
min: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
77
|
+
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
78
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
currentValue: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodString>]>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
1
82
|
declare const _default: any;
|
|
2
83
|
export default _default;
|
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineBlokkliAgentTool } from "#blokkli/agent/app/composables";
|
|
3
3
|
import { parentSchema, blockOptionsMapSchema } from "../schemas.js";
|
|
4
|
-
import {
|
|
4
|
+
import { booleanParamWithDefault } from "../../../shared/toolParams.js";
|
|
5
5
|
import {
|
|
6
6
|
buildBlockOptionsMap,
|
|
7
7
|
getResolvedOptions,
|
|
8
8
|
readBlockContentFields
|
|
9
9
|
} from "../helpers.js";
|
|
10
10
|
import { fragmentBlockBundle } from "#blokkli-build/config";
|
|
11
|
-
const paramsSchema = z.object({
|
|
11
|
+
export const paramsSchema = z.object({
|
|
12
12
|
uuid: z.string().describe("The paragraph UUID"),
|
|
13
|
-
includeParentChain:
|
|
14
|
-
"Include ancestor parent paragraphs up to the page"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
)
|
|
21
|
-
|
|
13
|
+
includeParentChain: booleanParamWithDefault(
|
|
14
|
+
"Include ancestor parent paragraphs up to the page",
|
|
15
|
+
true
|
|
16
|
+
),
|
|
17
|
+
includeSiblings: booleanParamWithDefault(
|
|
18
|
+
"Include sibling paragraphs in the same field",
|
|
19
|
+
false
|
|
20
|
+
),
|
|
21
|
+
includeChildren: booleanParamWithDefault(
|
|
22
|
+
"Include child fields summary",
|
|
23
|
+
true
|
|
24
|
+
),
|
|
25
|
+
includeContentFields: booleanParamWithDefault(
|
|
26
|
+
"Include content fields (text, media, links) with values",
|
|
27
|
+
true
|
|
28
|
+
),
|
|
29
|
+
includeOptions: booleanParamWithDefault("Include paragraph options", true)
|
|
22
30
|
});
|
|
23
31
|
const parentChainItemSchema = z.object({
|
|
24
32
|
uuid: z.string().describe("The parent paragraph UUID"),
|
|
@@ -79,7 +87,7 @@ const contentFieldSchema = z.discriminatedUnion("type", [
|
|
|
79
87
|
).describe("Entity types and bundles this field accepts")
|
|
80
88
|
})
|
|
81
89
|
]);
|
|
82
|
-
const resultSchema = z.object({
|
|
90
|
+
export const resultSchema = z.object({
|
|
83
91
|
uuid: z.string().describe("The paragraph UUID"),
|
|
84
92
|
bundle: z.string().describe("The paragraph type"),
|
|
85
93
|
label: z.string().describe("Human-readable paragraph label"),
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuids: z.ZodArray<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const resultSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6
|
+
type: z.ZodString;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
|
+
min: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
11
|
+
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
12
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
currentValue: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodArray<z.ZodString>]>;
|
|
14
|
+
}, z.core.$strip>>>;
|
|
1
15
|
declare const _default: any;
|
|
2
16
|
export default _default;
|
|
@@ -2,10 +2,10 @@ import { z } from "zod";
|
|
|
2
2
|
import { defineBlokkliAgentTool } from "#blokkli/agent/app/composables";
|
|
3
3
|
import { blockOptionsMapSchema } from "../schemas.js";
|
|
4
4
|
import { buildBlockOptionsMap, getResolvedOptions } from "../helpers.js";
|
|
5
|
-
const paramsSchema = z.object({
|
|
5
|
+
export const paramsSchema = z.object({
|
|
6
6
|
uuids: z.array(z.string()).describe("The paragraph UUIDs to get options for")
|
|
7
7
|
});
|
|
8
|
-
const resultSchema = z.record(
|
|
8
|
+
export const resultSchema = z.record(
|
|
9
9
|
z.string().describe("Paragraph UUID"),
|
|
10
10
|
blockOptionsMapSchema.describe("Options for this paragraph")
|
|
11
11
|
);
|
|
@@ -1,2 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
maxNestingLevel: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4
|
+
includeDimensions: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
type BlockDimensions = {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
type NestedBlock = {
|
|
13
|
+
uuid: string;
|
|
14
|
+
bundle: string;
|
|
15
|
+
label: string;
|
|
16
|
+
dimensions?: BlockDimensions;
|
|
17
|
+
children?: Record<string, NestedBlock[]>;
|
|
18
|
+
};
|
|
19
|
+
export declare const resultSchema: z.ZodObject<{
|
|
20
|
+
paragraphs: z.ZodArray<z.ZodObject<{
|
|
21
|
+
uuid: z.ZodString;
|
|
22
|
+
bundle: z.ZodString;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
x: z.ZodNumber;
|
|
26
|
+
y: z.ZodNumber;
|
|
27
|
+
width: z.ZodNumber;
|
|
28
|
+
height: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
visibilityPercent: z.ZodNumber;
|
|
31
|
+
parent: z.ZodObject<{
|
|
32
|
+
type: z.ZodString;
|
|
33
|
+
uuid: z.ZodString;
|
|
34
|
+
field: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
children: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodType<NestedBlock, unknown, z.core.$ZodTypeInternals<NestedBlock, unknown>>>>>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
1
39
|
declare const _default: any;
|
|
2
40
|
export default _default;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineBlokkliAgentTool } from "#blokkli/agent/app/composables";
|
|
3
|
-
import {
|
|
4
|
-
const paramsSchema = z.object({
|
|
3
|
+
import { booleanParamWithDefault } from "../../../shared/toolParams.js";
|
|
4
|
+
export const paramsSchema = z.object({
|
|
5
5
|
maxNestingLevel: z.coerce.number().optional().describe(
|
|
6
6
|
"Maximum nesting depth to include (0 = only root paragraphs, 1 = root + direct children, etc.). Omit for unlimited depth."
|
|
7
7
|
),
|
|
8
|
-
includeDimensions:
|
|
9
|
-
"Include x, y, width, height for each paragraph (default: false)"
|
|
10
|
-
|
|
8
|
+
includeDimensions: booleanParamWithDefault(
|
|
9
|
+
"Include x, y, width, height for each paragraph (default: false)",
|
|
10
|
+
false
|
|
11
|
+
)
|
|
11
12
|
});
|
|
12
13
|
const dimensionsSchema = z.object({
|
|
13
14
|
x: z.number().describe("X position in artboard coordinates"),
|
|
@@ -35,7 +36,7 @@ const rootBlockSchema = z.object({
|
|
|
35
36
|
}).describe("Parent field information"),
|
|
36
37
|
children: z.record(z.string(), z.array(nestedBlockSchema)).optional().describe("Child paragraphs organized by field name")
|
|
37
38
|
});
|
|
38
|
-
const resultSchema = z.object({
|
|
39
|
+
export const resultSchema = z.object({
|
|
39
40
|
paragraphs: z.array(rootBlockSchema).describe("Root-level paragraphs currently visible in the viewport")
|
|
40
41
|
});
|
|
41
42
|
function getDimensions(app, uuid) {
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const resultSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6
|
+
fieldValue: z.ZodOptional<z.ZodString>;
|
|
7
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
8
|
+
text: z.ZodString;
|
|
9
|
+
impact: z.ZodOptional<z.ZodString>;
|
|
10
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
1
13
|
declare const _default: any;
|
|
2
14
|
export default _default;
|
|
@@ -10,12 +10,12 @@ const fieldResultSchema = z.object({
|
|
|
10
10
|
fieldValue: z.string().optional(),
|
|
11
11
|
issues: z.array(issueSchema)
|
|
12
12
|
});
|
|
13
|
-
const paramsSchema = z.object({
|
|
13
|
+
export const paramsSchema = z.object({
|
|
14
14
|
uuids: z.array(z.string()).optional().describe(
|
|
15
15
|
"Optional list of paragraph UUIDs to return results for. If omitted, returns results for all paragraphs."
|
|
16
16
|
)
|
|
17
17
|
});
|
|
18
|
-
const resultSchema = z.record(
|
|
18
|
+
export const resultSchema = z.record(
|
|
19
19
|
z.string(),
|
|
20
20
|
z.record(z.string(), fieldResultSchema)
|
|
21
21
|
);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuids: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodString>>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const resultSchema: z.ZodObject<{
|
|
6
|
+
entities: z.ZodArray<z.ZodObject<{
|
|
7
|
+
entityUuid: z.ZodString;
|
|
8
|
+
entityType: z.ZodString;
|
|
9
|
+
entityBundle: z.ZodString;
|
|
10
|
+
label: z.ZodString;
|
|
11
|
+
editUrl: z.ZodString;
|
|
12
|
+
referencedBy: z.ZodArray<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const _default: any;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { defineBlokkliAgentTool } from "#blokkli/agent/app/composables";
|
|
3
|
+
import { stringArrayParam } from "../schemas.js";
|
|
4
|
+
export const paramsSchema = z.object({
|
|
5
|
+
uuids: stringArrayParam(
|
|
6
|
+
"Paragraph UUIDs to resolve references for. Returns the entities (media, nodes, taxonomy terms, ...) currently referenced by these paragraphs via any of their reference fields."
|
|
7
|
+
)
|
|
8
|
+
});
|
|
9
|
+
export const resultSchema = z.object({
|
|
10
|
+
entities: z.array(
|
|
11
|
+
z.object({
|
|
12
|
+
entityUuid: z.string().describe(
|
|
13
|
+
'UUID of the referenced entity. Pass this as `mediaId` to replace_media_field when the entityType is "media".'
|
|
14
|
+
),
|
|
15
|
+
entityType: z.string().describe('e.g. "media", "node", "taxonomy_term"'),
|
|
16
|
+
entityBundle: z.string().describe(
|
|
17
|
+
'e.g. "image", "canto". Pass this as `mediaBundle` to replace_media_field when the entityType is "media".'
|
|
18
|
+
),
|
|
19
|
+
label: z.string().describe("Human-readable label of the entity"),
|
|
20
|
+
editUrl: z.string().describe("Backend edit URL of the entity"),
|
|
21
|
+
referencedBy: z.array(z.string()).describe(
|
|
22
|
+
"Paragraph UUIDs (from the input) that reference this entity"
|
|
23
|
+
)
|
|
24
|
+
})
|
|
25
|
+
)
|
|
26
|
+
});
|
|
27
|
+
export default defineBlokkliAgentTool({
|
|
28
|
+
name: "get_referenced_entities",
|
|
29
|
+
description: "Resolve which entities (media items, referenced nodes, taxonomy terms, etc.) are currently referenced by one or more paragraphs. Use this when get_content_fields shows a paragraph has a reference field but you need the actual referenced entity ID \u2014 for example, to copy a media reference from one paragraph into another field via replace_media_field.",
|
|
30
|
+
category: "query",
|
|
31
|
+
lazy: false,
|
|
32
|
+
volatile: true,
|
|
33
|
+
prunedSummary: (r) => `${r.entities?.length ?? 0} referenced entities`,
|
|
34
|
+
modes: ["readonly", "editing", "translating", "review"],
|
|
35
|
+
requiredAdapterMethods: ["getReferencedEntities"],
|
|
36
|
+
label($t) {
|
|
37
|
+
return $t("aiAgentGetReferencedEntitiesRunning", "Resolving references", {
|
|
38
|
+
more: true
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
paramsSchema,
|
|
42
|
+
resultSchema,
|
|
43
|
+
async execute(ctx, params) {
|
|
44
|
+
const { $t } = ctx.app;
|
|
45
|
+
const raw = await ctx.adapter.getReferencedEntities(params.uuids);
|
|
46
|
+
const result = {
|
|
47
|
+
entities: raw.map((e) => ({
|
|
48
|
+
entityUuid: e.entityUuid,
|
|
49
|
+
entityType: e.entityType,
|
|
50
|
+
entityBundle: e.entityBundle,
|
|
51
|
+
label: e.label,
|
|
52
|
+
editUrl: e.editUrl,
|
|
53
|
+
referencedBy: e.uuids
|
|
54
|
+
}))
|
|
55
|
+
};
|
|
56
|
+
const label = $t(
|
|
57
|
+
"aiAgentGetReferencedEntitiesDone",
|
|
58
|
+
"Resolved @count referenced entities"
|
|
59
|
+
).replace("@count", String(result.entities.length));
|
|
60
|
+
return { label, result, affectedUuids: params.uuids };
|
|
61
|
+
}
|
|
62
|
+
});
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{}, z.core.$strip>;
|
|
3
|
+
export declare const resultSchema: z.ZodObject<{
|
|
4
|
+
paragraphs: z.ZodArray<z.ZodObject<{
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
bundle: z.ZodString;
|
|
7
|
+
label: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
1
10
|
declare const _default: any;
|
|
2
11
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineBlokkliAgentTool } from "#blokkli/agent/app/composables";
|
|
3
|
-
const paramsSchema = z.object({});
|
|
3
|
+
export const paramsSchema = z.object({});
|
|
4
4
|
const paragraphSchema = z.object({
|
|
5
5
|
uuid: z.string().describe("The paragraph UUID"),
|
|
6
6
|
bundle: z.string().describe("The paragraph type"),
|
|
7
7
|
label: z.string().describe("Human-readable paragraph label")
|
|
8
8
|
});
|
|
9
|
-
const resultSchema = z.object({
|
|
9
|
+
export const resultSchema = z.object({
|
|
10
10
|
paragraphs: z.array(paragraphSchema).describe("Currently selected paragraphs")
|
|
11
11
|
});
|
|
12
12
|
export default defineBlokkliAgentTool({
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
index: z.ZodCoercedNumber<unknown>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
6
|
+
type: z.ZodEnum<{
|
|
7
|
+
rewrite: "rewrite";
|
|
8
|
+
delete: "delete";
|
|
9
|
+
add: "add";
|
|
10
|
+
move: "move";
|
|
11
|
+
options: "options";
|
|
12
|
+
}>;
|
|
13
|
+
label: z.ZodString;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
error: z.ZodString;
|
|
16
|
+
}, z.core.$strip>]>;
|
|
1
17
|
declare const _default: any;
|
|
2
18
|
export default _default;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineBlokkliAgentTool } from "#blokkli/agent/app/composables";
|
|
3
3
|
import { mutationResultSchema } from "../schemas.js";
|
|
4
|
-
const paramsSchema = z.object({
|
|
4
|
+
export const paramsSchema = z.object({
|
|
5
5
|
// Coerce so a numeric string (e.g. "5") is accepted — the LLM often sends the
|
|
6
6
|
// index as a string. A non-numeric string is still rejected.
|
|
7
7
|
index: z.coerce.number().describe(
|
|
8
8
|
"History index to navigate to (-1 = pristine state, 0+ = mutation index)"
|
|
9
9
|
)
|
|
10
10
|
});
|
|
11
|
+
export const resultSchema = mutationResultSchema;
|
|
11
12
|
export default defineBlokkliAgentTool({
|
|
12
13
|
name: "go_to_history_index",
|
|
13
14
|
description: `Navigate to a specific point in mutation history (undo/redo). -1 = pristine state, 0 = first mutation, etc.`,
|
|
@@ -21,7 +22,7 @@ export default defineBlokkliAgentTool({
|
|
|
21
22
|
});
|
|
22
23
|
},
|
|
23
24
|
paramsSchema,
|
|
24
|
-
resultSchema
|
|
25
|
+
resultSchema,
|
|
25
26
|
requiredAdapterMethods: ["setHistoryIndex"],
|
|
26
27
|
execute(ctx, params) {
|
|
27
28
|
const { $t, state } = ctx.app;
|
|
@@ -77,8 +77,14 @@ export declare function resolveHost(app: BlokkliApp, uuid: string): {
|
|
|
77
77
|
*/
|
|
78
78
|
export declare function getResolvedOptions(app: BlokkliApp, bundleOrBlock: Parameters<BlokkliApp['definitions']['getBlockDefinition']>[0], fieldListType: Parameters<BlokkliApp['definitions']['getBlockDefinition']>[1], parentBundle: Parameters<BlokkliApp['definitions']['getBlockDefinition']>[2]): OptionItem[] | null;
|
|
79
79
|
/**
|
|
80
|
-
* Read every editable content field of a block (or entity), skipping
|
|
81
|
-
*
|
|
80
|
+
* Read every editable content field of a block (or entity), skipping `table`
|
|
81
|
+
* fields (no text payload). Iterates the declared `editableFieldConfig` rather
|
|
82
|
+
* than the runtime `v-blokkli-editable` directive registry — the former is the
|
|
83
|
+
* canonical declaration (it sees fields exposed via `propsFieldMapping` even
|
|
84
|
+
* when no directive is present in the template), while the latter only sees
|
|
85
|
+
* fields whose template marks them with the directive. `fieldValue.readValue`
|
|
86
|
+
* already knows how to resolve a value through `propsFieldMapping`, so this
|
|
87
|
+
* one swap surfaces all editable fields to every caller.
|
|
82
88
|
*/
|
|
83
89
|
export declare function readBlockContentFields(app: BlokkliApp, uuid: string, entityType: string, bundle: string): Array<{
|
|
84
90
|
fieldName: string;
|
|
@@ -257,21 +257,21 @@ export function getResolvedOptions(app, bundleOrBlock, fieldListType, parentBund
|
|
|
257
257
|
}
|
|
258
258
|
export function readBlockContentFields(app, uuid, entityType, bundle) {
|
|
259
259
|
const result = [];
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
);
|
|
266
|
-
|
|
260
|
+
const configs = app.types.editableFieldConfig.forEntityTypeAndBundle(
|
|
261
|
+
entityType,
|
|
262
|
+
bundle
|
|
263
|
+
);
|
|
264
|
+
for (const cfg of configs) {
|
|
265
|
+
if (cfg.type === "table") continue;
|
|
266
|
+
const fieldType = cfg.type === "frame" || cfg.type === "markup" ? "markup" : "plain";
|
|
267
267
|
const value = app.fieldValue.readValue(
|
|
268
268
|
entityType,
|
|
269
269
|
uuid,
|
|
270
270
|
bundle,
|
|
271
|
-
|
|
271
|
+
cfg.name,
|
|
272
272
|
fieldType
|
|
273
273
|
);
|
|
274
|
-
result.push({ fieldName:
|
|
274
|
+
result.push({ fieldName: cfg.name, fieldType, value });
|
|
275
275
|
}
|
|
276
276
|
return result;
|
|
277
277
|
}
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuids: z.ZodArray<z.ZodString>;
|
|
4
|
+
parent: z.ZodObject<{
|
|
5
|
+
type: z.ZodString;
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
field: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
position: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
12
|
+
type: z.ZodEnum<{
|
|
13
|
+
rewrite: "rewrite";
|
|
14
|
+
delete: "delete";
|
|
15
|
+
add: "add";
|
|
16
|
+
move: "move";
|
|
17
|
+
options: "options";
|
|
18
|
+
}>;
|
|
19
|
+
label: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
error: z.ZodString;
|
|
22
|
+
}, z.core.$strip>]>;
|
|
1
23
|
declare const _default: any;
|
|
2
24
|
export default _default;
|
|
@@ -8,11 +8,12 @@ import {
|
|
|
8
8
|
validateFieldCardinality
|
|
9
9
|
} from "../../helpers/validation.js";
|
|
10
10
|
import { getFieldKey } from "#blokkli/helpers";
|
|
11
|
-
const paramsSchema = z.object({
|
|
11
|
+
export const paramsSchema = z.object({
|
|
12
12
|
uuids: z.array(z.string()).describe("The UUIDs of the paragraphs to move"),
|
|
13
13
|
parent: parentSchema.describe("The target parent entity"),
|
|
14
14
|
position: positionSchema
|
|
15
15
|
});
|
|
16
|
+
export const resultSchema = mutationResultSchema;
|
|
16
17
|
export default defineBlokkliAgentTool({
|
|
17
18
|
name: "move_paragraphs",
|
|
18
19
|
description: "Move one or more paragraphs to a different parent field. All paragraphs are moved to the same location and they KEEP their UUIDs!!",
|
|
@@ -24,7 +25,7 @@ export default defineBlokkliAgentTool({
|
|
|
24
25
|
return $t("aiAgentMoveBlocksRunning", "Moving blocks", { more: true });
|
|
25
26
|
},
|
|
26
27
|
paramsSchema,
|
|
27
|
-
resultSchema
|
|
28
|
+
resultSchema,
|
|
28
29
|
requiredAdapterMethods: ["moveMultipleBlocks"],
|
|
29
30
|
execute(ctx, params) {
|
|
30
31
|
const { blocks, types } = ctx.app;
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
parent: z.ZodObject<{
|
|
4
|
+
type: z.ZodString;
|
|
5
|
+
uuid: z.ZodString;
|
|
6
|
+
field: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
uuids: z.ZodArray<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
+
type: z.ZodEnum<{
|
|
12
|
+
rewrite: "rewrite";
|
|
13
|
+
delete: "delete";
|
|
14
|
+
add: "add";
|
|
15
|
+
move: "move";
|
|
16
|
+
options: "options";
|
|
17
|
+
}>;
|
|
18
|
+
label: z.ZodString;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
error: z.ZodString;
|
|
21
|
+
}, z.core.$strip>]>;
|
|
1
22
|
declare const _default: any;
|
|
2
23
|
export default _default;
|
|
@@ -6,12 +6,13 @@ import {
|
|
|
6
6
|
requireBundlePermission,
|
|
7
7
|
requireNoRestrictedAncestor
|
|
8
8
|
} from "../../helpers/validation.js";
|
|
9
|
-
const paramsSchema = z.object({
|
|
9
|
+
export const paramsSchema = z.object({
|
|
10
10
|
parent: parentSchema.describe("The parent field containing the paragraphs"),
|
|
11
11
|
uuids: z.array(z.string()).min(2).describe(
|
|
12
12
|
"The UUIDs of the paragraphs in the desired order. Must include ALL paragraphs currently in the field."
|
|
13
13
|
)
|
|
14
14
|
});
|
|
15
|
+
export const resultSchema = mutationResultSchema;
|
|
15
16
|
export default defineBlokkliAgentTool({
|
|
16
17
|
name: "rearrange_paragraphs",
|
|
17
18
|
description: "Rearrange paragraphs within a single field by specifying the desired order. You must provide ALL paragraph UUIDs that are currently in the field \u2014 use get_child_paragraphs to get them. This only reorders, it does not add or remove paragraphs.",
|
|
@@ -25,7 +26,7 @@ export default defineBlokkliAgentTool({
|
|
|
25
26
|
});
|
|
26
27
|
},
|
|
27
28
|
paramsSchema,
|
|
28
|
-
resultSchema
|
|
29
|
+
resultSchema,
|
|
29
30
|
requiredAdapterMethods: ["rearrangeBlocks"],
|
|
30
31
|
execute(ctx, params) {
|
|
31
32
|
const { blocks, types, state, $t } = ctx.app;
|
|
@@ -1,2 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
field: z.ZodString;
|
|
5
|
+
itemId: z.ZodString;
|
|
6
|
+
itemEntityType: z.ZodString;
|
|
7
|
+
itemEntityBundle: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
rewrite: "rewrite";
|
|
12
|
+
delete: "delete";
|
|
13
|
+
add: "add";
|
|
14
|
+
move: "move";
|
|
15
|
+
options: "options";
|
|
16
|
+
}>;
|
|
17
|
+
label: z.ZodString;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
error: z.ZodString;
|
|
20
|
+
}, z.core.$strip>]>;
|
|
1
21
|
declare const _default: any;
|
|
2
22
|
export default _default;
|
|
@@ -5,13 +5,14 @@ import {
|
|
|
5
5
|
requireBundlePermission,
|
|
6
6
|
requireNoRestrictedAncestor
|
|
7
7
|
} from "../../helpers/validation.js";
|
|
8
|
-
const paramsSchema = z.object({
|
|
8
|
+
export const paramsSchema = z.object({
|
|
9
9
|
uuid: z.string().describe("The paragraph UUID containing the content reference field"),
|
|
10
10
|
field: z.string().describe("The content field name (reference type)"),
|
|
11
11
|
itemId: z.string().describe("Content item ID from search_content_* results"),
|
|
12
12
|
itemEntityType: z.string().describe("Entity type of the content item"),
|
|
13
13
|
itemEntityBundle: z.string().describe("Entity bundle of the content item")
|
|
14
14
|
});
|
|
15
|
+
export const resultSchema = mutationResultSchema;
|
|
15
16
|
export default defineBlokkliAgentTool({
|
|
16
17
|
name: "replace_content_search_item",
|
|
17
18
|
description: "Replace a content reference on an existing paragraph field. Use get_content_fields first to see available reference fields, then search_content_* to find content items.",
|
|
@@ -27,7 +28,7 @@ export default defineBlokkliAgentTool({
|
|
|
27
28
|
},
|
|
28
29
|
lazy: true,
|
|
29
30
|
paramsSchema,
|
|
30
|
-
resultSchema
|
|
31
|
+
resultSchema,
|
|
31
32
|
requiredAdapterMethods: ["replaceContentSearchItem"],
|
|
32
33
|
execute(ctx, params) {
|
|
33
34
|
const { blocks, types, $t } = ctx.app;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const paramsSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
field: z.ZodString;
|
|
5
|
+
mediaId: z.ZodString;
|
|
6
|
+
mediaBundle: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
9
|
+
type: z.ZodEnum<{
|
|
10
|
+
rewrite: "rewrite";
|
|
11
|
+
delete: "delete";
|
|
12
|
+
add: "add";
|
|
13
|
+
move: "move";
|
|
14
|
+
options: "options";
|
|
15
|
+
}>;
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
error: z.ZodString;
|
|
19
|
+
}, z.core.$strip>]>;
|
|
1
20
|
declare const _default: any;
|
|
2
21
|
export default _default;
|