@blokkli/editor 2.0.0-alpha.52 → 2.0.0-alpha.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/tailwindConfig.mjs +3 -3
- package/dist/global/types/blockOptions.d.ts +18 -2
- package/dist/module.d.mts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +281 -18
- package/dist/modules/agent/index.d.mts +1 -1
- package/dist/modules/agent/runtime/app/composables/agentProvider.d.ts +1 -0
- package/dist/modules/agent/runtime/app/composables/agentProvider.js +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.d.vue.ts +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue +14 -49
- package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue.d.ts +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.d.vue.ts +10 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +102 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue.d.ts +10 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +8 -5
- 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 +9 -5
- 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/index.d.vue.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +16 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/index.vue +29 -0
- package/dist/modules/agent/runtime/app/features/agent/types.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +3 -1
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +2 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +8 -1
- package/dist/modules/charts/index.d.mts +1 -1
- package/dist/modules/charts/index.mjs +2 -3
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +1 -1
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +16 -0
- package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +9 -0
- package/dist/modules/drupal/graphql/features/agent.graphql +20 -0
- package/dist/modules/drupal/graphql/features/publishNew.graphql +14 -0
- package/dist/modules/drupal/graphql/features/referenced-entities.graphql +21 -0
- package/dist/modules/drupal/graphql/features/textFieldValues.graphql +20 -0
- package/dist/modules/drupal/graphql/features/workspace.graphql +23 -0
- package/dist/modules/drupal/graphql/mutations/bulk_translate_field_values.graphql +19 -0
- package/dist/modules/drupal/graphql/mutations/clear_outdated_translation.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/ignore_analyze.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/request_translation.graphql +10 -0
- package/dist/modules/drupal/graphql/mutations/unignore_analyze.graphql +15 -0
- package/dist/modules/drupal/index.d.mts +1 -1
- package/dist/modules/drupal/index.mjs +16 -0
- package/dist/modules/drupal/runtime/adapter/index.js +180 -11
- package/dist/modules/iframes/index.d.mts +31 -0
- package/dist/modules/iframes/index.mjs +52 -0
- package/dist/modules/iframes/runtime/components/BlokkliIframe/index.d.vue.ts +18 -0
- package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue +61 -0
- package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue.d.ts +18 -0
- package/dist/modules/iframes/runtime/components/index.d.ts +1 -0
- package/dist/modules/iframes/runtime/components/index.js +1 -0
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.d.vue.ts +12 -0
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +220 -0
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue.d.ts +12 -0
- package/dist/modules/iframes/runtime/types.d.ts +10 -0
- package/dist/modules/index.d.mts +1 -1
- package/dist/modules/table-of-contents/index.d.mts +1 -1
- package/dist/runtime/components/Blocks/NotImplemented/index.vue +57 -0
- package/dist/runtime/components/BlokkliEditable.vue +1 -1
- package/dist/runtime/editor/adapter/index.d.ts +8 -1
- package/dist/runtime/editor/components/Actions/Interactions/index.vue +77 -17
- package/dist/runtime/editor/components/Actions/{ItemDropdown.vue → ItemDropdown/index.vue} +9 -10
- package/dist/runtime/editor/components/Actions/index.vue +586 -23
- package/dist/runtime/editor/components/AnimationCanvas/index.vue +1 -0
- package/dist/runtime/editor/components/AppMenu/MenuButton.vue +185 -1
- package/dist/runtime/editor/components/AppMenu/index.vue +24 -10
- package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +6 -2
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +223 -3
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +6 -2
- package/dist/runtime/editor/components/AutoHeight/index.vue +23 -0
- package/dist/runtime/editor/components/Banner/Inner.d.vue.ts +30 -0
- package/dist/runtime/editor/components/Banner/Inner.vue +32 -0
- package/dist/runtime/editor/components/Banner/Inner.vue.d.ts +30 -0
- package/dist/runtime/editor/components/Banner/index.d.vue.ts +3 -13
- package/dist/runtime/editor/components/Banner/index.vue +2 -14
- package/dist/runtime/editor/components/Banner/index.vue.d.ts +3 -13
- package/dist/runtime/editor/components/BetaIndicator/index.d.vue.ts +6 -0
- package/dist/runtime/editor/components/BetaIndicator/index.vue +16 -0
- package/dist/runtime/editor/components/BetaIndicator/index.vue.d.ts +6 -0
- package/dist/runtime/editor/components/BlockPreviewItem/index.vue +51 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +27 -1
- package/dist/runtime/editor/components/BlockProxy/index.vue +148 -1
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +59 -0
- package/dist/runtime/editor/components/BundleSelector/index.vue +170 -20
- package/dist/runtime/editor/components/Dialog/index.d.vue.ts +2 -0
- package/dist/runtime/editor/components/Dialog/index.vue +341 -0
- package/dist/runtime/editor/components/Dialog/index.vue.d.ts +2 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +117 -0
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +224 -28
- package/dist/runtime/editor/components/DiffViewer/DiffValue.d.vue.ts +1 -0
- package/dist/runtime/editor/components/DiffViewer/DiffValue.vue +5 -1
- package/dist/runtime/editor/components/DiffViewer/DiffValue.vue.d.ts +1 -0
- package/dist/runtime/editor/components/DiffViewer/State.vue +319 -0
- package/dist/runtime/editor/components/DraggableList.vue +103 -0
- package/dist/runtime/editor/components/Dropdown/index.vue +84 -0
- package/dist/runtime/editor/components/EditProvider.vue +72 -15
- package/dist/runtime/editor/components/FileDropHandler/index.d.vue.ts +23 -0
- package/dist/runtime/editor/components/FileDropHandler/index.vue +108 -0
- package/dist/runtime/editor/components/FileDropHandler/index.vue.d.ts +23 -0
- package/dist/runtime/editor/components/FlexTextarea/index.vue +4 -2
- package/dist/runtime/editor/components/Form/Datepicker/index.vue +149 -0
- package/dist/runtime/editor/components/Form/Toggle/index.vue +205 -1
- package/dist/runtime/editor/components/FormOverlay/index.vue +90 -0
- package/dist/runtime/editor/components/Icon/index.vue +6 -0
- package/dist/runtime/editor/components/Indicators/index.vue +161 -0
- package/dist/runtime/editor/components/InfoBox/index.vue +65 -0
- package/dist/runtime/editor/components/Konami/index.vue +119 -0
- package/dist/runtime/editor/components/Loading/index.d.vue.ts +6 -3
- package/dist/runtime/editor/components/Loading/index.vue +10 -5
- package/dist/runtime/editor/components/Loading/index.vue.d.ts +6 -3
- package/dist/runtime/editor/components/Messages/index.vue +131 -0
- package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +246 -12
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/NotEditStateInfo/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/NotEditStateInfo/index.vue +19 -0
- package/dist/runtime/editor/components/NotEditStateInfo/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Overlay/index.vue +84 -0
- package/dist/runtime/editor/components/Pagination/index.vue +41 -0
- package/dist/runtime/editor/components/PluginConfigForm/index.vue +23 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +429 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/index.d.vue.ts +22 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +150 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/index.vue.d.ts +22 -0
- package/dist/runtime/editor/components/Popup/index.vue +77 -2
- package/dist/runtime/editor/components/PreviewProvider.vue +7 -0
- package/dist/runtime/editor/components/Resizable/index.vue +90 -1
- package/dist/runtime/editor/components/ScaleToFit/index.vue +30 -1
- package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +43 -0
- package/dist/runtime/editor/components/SearchOverlay/index.vue +264 -0
- package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +43 -0
- package/dist/runtime/editor/components/StatusIcon/index.vue +104 -0
- package/dist/runtime/editor/components/StatusIndicator/index.d.vue.ts +9 -0
- package/dist/runtime/editor/components/StatusIndicator/index.vue +16 -0
- package/dist/runtime/editor/components/StatusIndicator/index.vue.d.ts +9 -0
- package/dist/runtime/editor/components/SystemRequirements/index.vue +57 -0
- package/dist/runtime/editor/components/Tabs/index.d.vue.ts +30 -0
- package/dist/runtime/editor/components/Tabs/index.vue +32 -0
- package/dist/runtime/editor/components/Tabs/index.vue.d.ts +30 -0
- package/dist/runtime/editor/components/Toolbar/index.vue +214 -3
- package/dist/runtime/editor/components/Tooltip/Context.d.vue.ts +7 -0
- package/dist/runtime/editor/components/Tooltip/Context.vue +13 -0
- package/dist/runtime/editor/components/Tooltip/Context.vue.d.ts +7 -0
- package/dist/runtime/editor/components/Tooltip/Status.d.vue.ts +8 -0
- package/dist/runtime/editor/components/Tooltip/Status.vue +27 -0
- package/dist/runtime/editor/components/Tooltip/Status.vue.d.ts +8 -0
- package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +27 -0
- package/dist/runtime/editor/components/Tooltip/index.vue +40 -0
- package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +27 -0
- package/dist/runtime/editor/components/index.d.ts +59 -49
- package/dist/runtime/editor/components/index.js +59 -98
- package/dist/runtime/editor/composables/defineHighlight.d.ts +2 -0
- package/dist/runtime/editor/composables/defineHighlight.js +10 -0
- package/dist/runtime/editor/composables/index.d.ts +1 -0
- package/dist/runtime/editor/composables/index.js +1 -0
- package/dist/runtime/editor/composables/useBlockRegistration.js +8 -0
- package/dist/runtime/editor/composables/useStickyToolbar.d.ts +1 -0
- package/dist/runtime/editor/composables/useStickyToolbar.js +16 -0
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/events/index.d.ts +10 -0
- package/dist/runtime/editor/features/add-list/Help/index.vue +193 -0
- package/dist/runtime/editor/features/add-list/index.vue +441 -0
- package/dist/runtime/editor/features/analyze/Ignored/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/analyze/Ignored/index.vue +35 -0
- package/dist/runtime/editor/features/analyze/Ignored/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/analyze/Main.vue +148 -24
- package/dist/runtime/editor/features/analyze/Results/Results.d.vue.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/Results.vue +0 -2
- package/dist/runtime/editor/features/analyze/Results/Results.vue.d.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.d.vue.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +1 -2
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue.d.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.d.vue.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +11 -8
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue.d.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.d.vue.ts +3 -10
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +63 -25
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue.d.ts +3 -10
- package/dist/runtime/editor/features/analyze/analyzers/altText.js +2 -0
- package/dist/runtime/editor/features/analyze/analyzers/headingStructure.js +3 -0
- package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.d.ts +7 -0
- package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.js +8 -0
- package/dist/runtime/editor/features/analyze/analyzers/readability.js +6 -12
- package/dist/runtime/editor/features/analyze/analyzers/types.d.ts +20 -0
- package/dist/runtime/editor/features/analyze/index.vue +458 -0
- package/dist/runtime/editor/features/analyze/types.d.ts +12 -0
- package/dist/runtime/editor/features/artboard/Overview/index.vue +37 -4
- package/dist/runtime/editor/features/artboard/Renderer.vue +79 -9
- package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +84 -0
- package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
- package/dist/runtime/editor/features/block-scheduler/index.vue +114 -0
- package/dist/runtime/editor/features/breadcrumbs/index.vue +150 -0
- package/dist/runtime/editor/features/changelog/Dialog/index.vue +62 -7
- package/dist/runtime/editor/features/changelog/changelog.json +9 -1
- package/dist/runtime/editor/features/clipboard/index.vue +153 -1
- package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +39 -16
- package/dist/runtime/editor/features/command-palette/Palette/index.vue +24 -130
- package/dist/runtime/editor/features/comments/index.vue +235 -0
- package/dist/runtime/editor/features/complex-options/index.vue +4 -1
- package/dist/runtime/editor/features/debug/Main.vue +1 -1
- package/dist/runtime/editor/features/debug/Section/Features.vue +2 -4
- package/dist/runtime/editor/features/debug/index.vue +168 -0
- package/dist/runtime/editor/features/dev-mode/index.vue +92 -27
- package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/dragging-overlay/index.vue +330 -0
- package/dist/runtime/editor/features/edit/index.vue +15 -17
- package/dist/runtime/editor/features/edit-form/Frame/index.vue +21 -4
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.d.vue.ts +9 -1
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +32 -3
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue.d.ts +9 -1
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +77 -0
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +55 -56
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +416 -8
- package/dist/runtime/editor/features/editable-mask/index.vue +9 -0
- package/dist/runtime/editor/features/entity-title/index.vue +40 -56
- package/dist/runtime/editor/features/fragments/Dialog/index.vue +90 -0
- package/dist/runtime/editor/features/help/Shortcuts/index.vue +71 -0
- package/dist/runtime/editor/features/help/index.vue +17 -0
- package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +89 -0
- package/dist/runtime/editor/features/highlights/Renderer/index.vue +408 -0
- package/dist/runtime/editor/features/highlights/Renderer/vertex.glsl +87 -0
- package/dist/runtime/editor/features/highlights/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/highlights/index.vue +20 -0
- package/dist/runtime/editor/features/highlights/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/history/List/index.vue +209 -0
- package/dist/runtime/editor/features/history/index.vue +0 -1
- package/dist/runtime/editor/features/hover/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +1 -1
- package/dist/runtime/editor/features/import-existing/Dialog/index.vue +18 -0
- package/dist/runtime/editor/features/media-library/Library/index.vue +10 -30
- package/dist/runtime/editor/features/media-library/index.vue +331 -0
- package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +6 -2
- package/dist/runtime/editor/features/options/Form/Item.vue +21 -18
- package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +6 -0
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +25 -6
- package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +6 -0
- package/dist/runtime/editor/features/options/Form/index.vue +1 -4
- package/dist/runtime/editor/features/options/index.vue +729 -0
- package/dist/runtime/editor/features/ownership/Banner/index.vue +9 -8
- package/dist/runtime/editor/features/ownership/index.vue +1 -1
- package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +8 -3
- package/dist/runtime/editor/features/publish/Dialog/Item.vue +18 -20
- package/dist/runtime/editor/features/publish/Dialog/index.vue +5 -1
- package/dist/runtime/editor/features/publish/index.vue +835 -0
- package/dist/runtime/editor/features/publish/types.d.ts +5 -1
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.d.vue.ts +4 -0
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +81 -0
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue.d.ts +4 -0
- package/dist/runtime/editor/features/referenced-entities/List/index.d.vue.ts +11 -0
- package/dist/runtime/editor/features/referenced-entities/List/index.vue +78 -0
- package/dist/runtime/editor/features/referenced-entities/List/index.vue.d.ts +11 -0
- package/dist/runtime/editor/features/referenced-entities/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/referenced-entities/index.vue +36 -0
- package/dist/runtime/editor/features/referenced-entities/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/referenced-entities/types.d.ts +13 -0
- package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +188 -0
- package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +1 -1
- package/dist/runtime/editor/features/search/index.vue +511 -0
- package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +58 -0
- package/dist/runtime/editor/features/selection/index.vue +47 -15
- package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +23 -0
- package/dist/runtime/editor/features/settings/Dialog/index.vue +5 -2
- package/dist/runtime/editor/features/settings/index.vue +152 -0
- package/dist/runtime/editor/features/structure/List/Item/index.vue +7 -0
- package/dist/runtime/editor/features/structure/index.vue +178 -0
- package/dist/runtime/editor/features/templates/ManageDialog/Item.vue +3 -3
- package/dist/runtime/editor/features/templates/ManageDialog/index.vue +24 -3
- package/dist/runtime/editor/features/theme/index.vue +94 -0
- package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +34 -0
- package/dist/runtime/editor/features/tour/Overlay/index.vue +243 -13
- package/dist/runtime/editor/features/transform/Dialog/index.vue +132 -1
- package/dist/runtime/editor/features/translations/Banner/index.d.vue.ts +14 -1
- package/dist/runtime/editor/features/translations/Banner/index.vue +139 -12
- package/dist/runtime/editor/features/translations/Banner/index.vue.d.ts +14 -1
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +272 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.d.vue.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +382 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue.d.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/csv.d.ts +22 -0
- package/dist/runtime/editor/features/translations/CsvDialog/csv.js +50 -0
- package/dist/runtime/editor/features/translations/CsvDialog/index.d.vue.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/index.vue +37 -0
- package/dist/runtime/editor/features/translations/CsvDialog/index.vue.d.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/po.d.ts +7 -0
- package/dist/runtime/editor/features/translations/CsvDialog/po.js +36 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +37 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue +102 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +37 -0
- package/dist/runtime/editor/features/translations/TranslateDialog/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +294 -0
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/translations/index.vue +276 -6
- package/dist/runtime/editor/features/translations/types.d.ts +47 -0
- package/dist/runtime/editor/features/validations/Overlay/index.vue +130 -0
- package/dist/runtime/editor/features/validations/index.vue +41 -0
- package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.d.vue.ts +2 -4
- package/dist/runtime/editor/features/workspace/Overlay/index.vue +177 -0
- package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.vue.d.ts +2 -4
- package/dist/runtime/editor/features/workspace/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/workspace/index.vue +46 -0
- package/dist/runtime/editor/features/workspace/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/workspace/types.d.ts +59 -0
- package/dist/runtime/editor/features/workspace/types.js +0 -0
- package/dist/runtime/editor/icons/svg/spinner.svg +2 -2
- package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +21 -7
- package/dist/runtime/editor/plugins/ContextMenu/index.vue +4 -0
- package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +9 -2
- package/dist/runtime/editor/plugins/ItemAction/index.vue +26 -16
- package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +9 -2
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue +24 -26
- package/dist/runtime/editor/plugins/Sidebar/index.vue +612 -27
- package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +13 -84
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue +36 -22
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +13 -84
- package/dist/runtime/editor/plugins/ViewOption/index.vue +13 -14
- package/dist/runtime/editor/providers/blocks.js +1 -0
- package/dist/runtime/editor/providers/cache.d.ts +23 -0
- package/dist/runtime/editor/providers/cache.js +29 -0
- package/dist/runtime/editor/providers/directive.d.ts +25 -0
- package/dist/runtime/editor/providers/directive.js +20 -0
- package/dist/runtime/editor/providers/fieldValue.d.ts +5 -5
- package/dist/runtime/editor/providers/fieldValue.js +8 -7
- package/dist/runtime/editor/providers/plugin.d.ts +14 -0
- package/dist/runtime/editor/providers/plugin.js +9 -0
- package/dist/runtime/editor/providers/readability.js +1 -1
- package/dist/runtime/editor/providers/selection.js +1 -1
- package/dist/runtime/editor/providers/state.d.ts +1 -0
- package/dist/runtime/editor/providers/state.js +1 -0
- package/dist/runtime/editor/providers/texts.js +11 -1
- package/dist/runtime/editor/providers/ui.d.ts +11 -0
- package/dist/runtime/editor/providers/ui.js +5 -1
- package/dist/runtime/editor/translations/de.json +316 -56
- package/dist/runtime/editor/translations/fr.json +310 -50
- package/dist/runtime/editor/translations/gsw_CH.json +311 -51
- package/dist/runtime/editor/translations/it.json +310 -50
- package/dist/runtime/editor/types/app.d.ts +2 -0
- package/dist/runtime/editor/types/definitions.d.ts +8 -0
- package/dist/runtime/editor/types/field.d.ts +1 -0
- package/dist/runtime/editor/types/state.d.ts +10 -0
- package/dist/runtime/editor/types/ui.d.ts +3 -1
- package/dist/runtime/helpers/tw.d.ts +15 -0
- package/dist/runtime/helpers/tw.js +3 -0
- package/dist/runtime/types/field.d.ts +1 -0
- package/dist/shared/{editor.DsGJIlGn.d.mts → editor.BTOBvmaz.d.mts} +20 -3
- package/dist/types.d.mts +1 -1
- package/package.json +16 -3
- package/dist/runtime/editor/features/analyze/Renderer/fragment.glsl +0 -74
- package/dist/runtime/editor/features/analyze/Renderer/index.d.vue.ts +0 -24
- package/dist/runtime/editor/features/analyze/Renderer/index.vue +0 -330
- package/dist/runtime/editor/features/analyze/Renderer/index.vue.d.ts +0 -24
- package/dist/runtime/editor/features/analyze/Renderer/vertex.glsl +0 -94
- package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.d.vue.ts +0 -7
- package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue +0 -17
- package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue.d.ts +0 -7
- package/dist/runtime/editor/features/assistant/Overlay/index.vue +0 -108
- package/dist/runtime/editor/features/assistant/docs.md +0 -7
- package/dist/runtime/editor/features/assistant/index.vue +0 -66
- package/dist/runtime/editor/features/assistant/types.d.ts +0 -37
- package/dist/runtime/editor/features/media-library/Library/FilterSelect/index.vue +0 -168
- package/dist/runtime/editor/providers/fieldValueAdapterTypes.d.ts +0 -13
- /package/dist/{runtime/editor/features/assistant → modules/iframes/runtime}/types.js +0 -0
- /package/dist/runtime/editor/components/Actions/{ItemDropdown.d.vue.ts → ItemDropdown/index.d.vue.ts} +0 -0
- /package/dist/runtime/editor/components/Actions/{ItemDropdown.vue.d.ts → ItemDropdown/index.vue.d.ts} +0 -0
- /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/{providers/fieldValueAdapterTypes.js → features/referenced-entities/types.js} +0 -0
|
@@ -9,27 +9,41 @@
|
|
|
9
9
|
}}
|
|
10
10
|
</div>
|
|
11
11
|
<div class="bk bk-diff-approval-toolbar bk-control">
|
|
12
|
-
<button
|
|
12
|
+
<button
|
|
13
|
+
class="bk-diff-approval-toolbar-nav _bk_group/tooltip"
|
|
14
|
+
@click="$emit('prev')"
|
|
15
|
+
>
|
|
13
16
|
<Icon name="bk_mdi_chevron_left" />
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
<Tooltip
|
|
18
|
+
:label="$t('aiAgentApprovalPrevChange', 'Previous change')"
|
|
19
|
+
placement="above-left"
|
|
20
|
+
>
|
|
21
|
+
<template #shortcut>
|
|
22
|
+
<ShortcutIndicator
|
|
23
|
+
key-code="ArrowLeft"
|
|
24
|
+
:label="$t('aiAgentApprovalPrevChange', 'Previous change')"
|
|
25
|
+
@pressed="$emit('prev')"
|
|
26
|
+
/>
|
|
27
|
+
</template>
|
|
28
|
+
</Tooltip>
|
|
22
29
|
</button>
|
|
23
|
-
<button
|
|
30
|
+
<button
|
|
31
|
+
class="bk-diff-approval-toolbar-nav _bk_group/tooltip"
|
|
32
|
+
@click="$emit('next')"
|
|
33
|
+
>
|
|
24
34
|
<Icon name="bk_mdi_chevron_right" />
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
<Tooltip
|
|
36
|
+
placement="above-left"
|
|
37
|
+
:label="$t('aiAgentApprovalNextChange', 'Next change')"
|
|
38
|
+
>
|
|
39
|
+
<template #shortcut>
|
|
40
|
+
<ShortcutIndicator
|
|
41
|
+
key-code="ArrowRight"
|
|
42
|
+
:label="$t('aiAgentApprovalNextChange', 'Next change')"
|
|
43
|
+
@pressed="$emit('next')"
|
|
44
|
+
/>
|
|
45
|
+
</template>
|
|
46
|
+
</Tooltip>
|
|
33
47
|
</button>
|
|
34
48
|
|
|
35
49
|
<div class="bk-diff-approval-toolbar-info">
|
|
@@ -42,20 +56,24 @@
|
|
|
42
56
|
</span>
|
|
43
57
|
</div>
|
|
44
58
|
|
|
45
|
-
<div class="bk-diff-approval-toolbar-toggle">
|
|
59
|
+
<div class="bk-diff-approval-toolbar-toggle _bk_group/tooltip">
|
|
46
60
|
<FormToggle
|
|
47
61
|
:model-value="selected[currentItem.id]"
|
|
48
62
|
:label="$t('aiAgentApprovalAccept', 'Accept')"
|
|
49
63
|
@update:model-value="toggleCurrent"
|
|
50
64
|
/>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
65
|
+
<Tooltip
|
|
66
|
+
:label="$t('aiAgentApprovalToggle', 'Toggle approval')"
|
|
67
|
+
placement="above-left"
|
|
68
|
+
>
|
|
69
|
+
<template #shortcut>
|
|
70
|
+
<ShortcutIndicator
|
|
71
|
+
key-code="Enter"
|
|
72
|
+
:label="$t('aiAgentApprovalToggle', 'Toggle approval')"
|
|
73
|
+
@pressed="toggleCurrent"
|
|
74
|
+
/>
|
|
75
|
+
</template>
|
|
76
|
+
</Tooltip>
|
|
59
77
|
</div>
|
|
60
78
|
|
|
61
79
|
<div
|
|
@@ -84,7 +102,12 @@
|
|
|
84
102
|
|
|
85
103
|
<script setup>
|
|
86
104
|
import { computed, useBlokkli } from "#imports";
|
|
87
|
-
import {
|
|
105
|
+
import {
|
|
106
|
+
Icon,
|
|
107
|
+
FormToggle,
|
|
108
|
+
ShortcutIndicator,
|
|
109
|
+
Tooltip
|
|
110
|
+
} from "#blokkli/editor/components";
|
|
88
111
|
const props = defineProps({
|
|
89
112
|
currentItem: { type: Object, required: true },
|
|
90
113
|
currentIndex: { type: Number, required: true },
|
|
@@ -111,3 +134,176 @@ function onReasonInput(event) {
|
|
|
111
134
|
emit("update:reasons", props.currentItem.id, value);
|
|
112
135
|
}
|
|
113
136
|
</script>
|
|
137
|
+
|
|
138
|
+
<style>
|
|
139
|
+
.bk.bk-diff-approval-toolbar-hint {
|
|
140
|
+
grid-area: mode;
|
|
141
|
+
align-self: flex-start;
|
|
142
|
+
justify-self: stretch;
|
|
143
|
+
display: flex;
|
|
144
|
+
height: 40px;
|
|
145
|
+
align-items: center;
|
|
146
|
+
padding-left: 10px;
|
|
147
|
+
padding-right: 10px;
|
|
148
|
+
padding-top: 5px;
|
|
149
|
+
padding-bottom: 5px;
|
|
150
|
+
--bk-tw-text-opacity: 1;
|
|
151
|
+
color: rgb(var(--bk-theme-mono-100) / var(--bk-tw-text-opacity, 1));
|
|
152
|
+
--bk-tw-bg-opacity: 1;
|
|
153
|
+
background-color: rgb(var(--bk-theme-mono-900) / var(--bk-tw-bg-opacity, 1));
|
|
154
|
+
border-top-width: 1px;
|
|
155
|
+
--bk-tw-border-opacity: 1;
|
|
156
|
+
border-top-color: rgb(var(--bk-theme-mono-600) / var(--bk-tw-border-opacity, 1));
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
line-height: 20px;
|
|
160
|
+
}
|
|
161
|
+
.bk.bk-diff-approval-toolbar {
|
|
162
|
+
grid-area: viewport;
|
|
163
|
+
align-self: end;
|
|
164
|
+
pointer-events: auto;
|
|
165
|
+
display: flex;
|
|
166
|
+
height: 50px;
|
|
167
|
+
align-items: center;
|
|
168
|
+
--bk-tw-bg-opacity: 1;
|
|
169
|
+
background-color: rgb(var(--bk-theme-mono-900) / var(--bk-tw-bg-opacity, 1));
|
|
170
|
+
--bk-tw-text-opacity: 1;
|
|
171
|
+
color: rgb(var(--bk-theme-mono-50) / var(--bk-tw-text-opacity, 1));
|
|
172
|
+
position: relative;
|
|
173
|
+
user-select: none;
|
|
174
|
+
margin-left: 15px;
|
|
175
|
+
margin-right: 15px;
|
|
176
|
+
margin-bottom: 15px;
|
|
177
|
+
border-radius: 6px;
|
|
178
|
+
--bk-tw-shadow: 0 0px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
179
|
+
--bk-tw-shadow-colored: 0 0px 25px -5px var(--bk-tw-shadow-color), 0 8px 10px -6px var(--bk-tw-shadow-color);
|
|
180
|
+
box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow);
|
|
181
|
+
outline-style: solid;
|
|
182
|
+
outline-width: 1px;
|
|
183
|
+
outline-color: rgb(var(--bk-theme-mono-400) / 1);
|
|
184
|
+
|
|
185
|
+
color-scheme: dark;
|
|
186
|
+
}
|
|
187
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-toggle,
|
|
188
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-nav {
|
|
189
|
+
position: relative;
|
|
190
|
+
height: 100%;
|
|
191
|
+
}
|
|
192
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-toggle {
|
|
193
|
+
margin-right: auto;
|
|
194
|
+
}
|
|
195
|
+
.bk.bk-diff-approval-toolbar > .bk-button {
|
|
196
|
+
border-top-left-radius: 0px;
|
|
197
|
+
border-bottom-left-radius: 0px;
|
|
198
|
+
}
|
|
199
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-nav {
|
|
200
|
+
display: flex;
|
|
201
|
+
width: 50px;
|
|
202
|
+
height: 50px;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
position: relative;
|
|
207
|
+
--bk-tw-text-opacity: 1;
|
|
208
|
+
color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-text-opacity, 1));
|
|
209
|
+
}
|
|
210
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-nav:hover {
|
|
211
|
+
--bk-tw-bg-opacity: 1;
|
|
212
|
+
background-color: rgb(var(--bk-theme-mono-800) / var(--bk-tw-bg-opacity, 1));
|
|
213
|
+
--bk-tw-text-opacity: 1;
|
|
214
|
+
color: rgb(255 255 255 / var(--bk-tw-text-opacity, 1));
|
|
215
|
+
}
|
|
216
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-nav:first-child {
|
|
217
|
+
border-top-left-radius: 6px;
|
|
218
|
+
border-bottom-left-radius: 6px;
|
|
219
|
+
}
|
|
220
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-nav svg {
|
|
221
|
+
width: 30px;
|
|
222
|
+
height: 30px;
|
|
223
|
+
fill: currentColor;
|
|
224
|
+
}
|
|
225
|
+
.bk.bk-diff-approval-toolbar .bk-checkbox-toggle {
|
|
226
|
+
margin-left: 15px;
|
|
227
|
+
margin-right: 15px;
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
--bk-tw-text-opacity: 1;
|
|
231
|
+
color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-text-opacity, 1));
|
|
232
|
+
}
|
|
233
|
+
.bk.bk-diff-approval-toolbar .bk-checkbox-toggle:hover {
|
|
234
|
+
--bk-tw-text-opacity: 1;
|
|
235
|
+
color: rgb(255 255 255 / var(--bk-tw-text-opacity, 1));
|
|
236
|
+
}
|
|
237
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-info {
|
|
238
|
+
display: flex;
|
|
239
|
+
align-items: center;
|
|
240
|
+
gap: 10px;
|
|
241
|
+
padding-left: 15px;
|
|
242
|
+
padding-right: 15px;
|
|
243
|
+
height: 100%;
|
|
244
|
+
border-left-width: 1px;
|
|
245
|
+
--bk-tw-border-opacity: 1;
|
|
246
|
+
border-left-color: rgb(var(--bk-theme-mono-600) / var(--bk-tw-border-opacity, 1));
|
|
247
|
+
}
|
|
248
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-counter {
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
--bk-tw-numeric-spacing: tabular-nums;
|
|
251
|
+
font-variant-numeric: var(--bk-tw-ordinal) var(--bk-tw-slashed-zero) var(--bk-tw-numeric-figure) var(--bk-tw-numeric-spacing) var(--bk-tw-numeric-fraction);
|
|
252
|
+
--bk-tw-text-opacity: 1;
|
|
253
|
+
color: rgb(var(--bk-theme-mono-400) / var(--bk-tw-text-opacity, 1));
|
|
254
|
+
}
|
|
255
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-label {
|
|
256
|
+
white-space: nowrap;
|
|
257
|
+
font-weight: 500;
|
|
258
|
+
}
|
|
259
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-reason {
|
|
260
|
+
min-width: 0px;
|
|
261
|
+
flex: 1 1 0%;
|
|
262
|
+
padding-left: 10px;
|
|
263
|
+
padding-right: 10px;
|
|
264
|
+
}
|
|
265
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-reason input {
|
|
266
|
+
height: 30px;
|
|
267
|
+
width: 100%;
|
|
268
|
+
border-radius: 4px;
|
|
269
|
+
--bk-tw-bg-opacity: 1;
|
|
270
|
+
background-color: rgb(var(--bk-theme-mono-800) / var(--bk-tw-bg-opacity, 1));
|
|
271
|
+
padding-left: 10px;
|
|
272
|
+
padding-right: 10px;
|
|
273
|
+
font-size: 14px;
|
|
274
|
+
line-height: 20px;
|
|
275
|
+
--bk-tw-text-opacity: 1;
|
|
276
|
+
color: rgb(var(--bk-theme-mono-100) / var(--bk-tw-text-opacity, 1));
|
|
277
|
+
border-width: 1px;
|
|
278
|
+
--bk-tw-border-opacity: 1;
|
|
279
|
+
border-color: rgb(var(--bk-theme-mono-600) / var(--bk-tw-border-opacity, 1));
|
|
280
|
+
outline: 2px solid transparent;
|
|
281
|
+
outline-offset: 2px;
|
|
282
|
+
}
|
|
283
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-reason input::placeholder {
|
|
284
|
+
--bk-tw-text-opacity: 1;
|
|
285
|
+
color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1));
|
|
286
|
+
}
|
|
287
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-reason input:focus {
|
|
288
|
+
--bk-tw-border-opacity: 1;
|
|
289
|
+
border-color: rgb(var(--bk-theme-mono-400) / var(--bk-tw-border-opacity, 1));
|
|
290
|
+
}
|
|
291
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-apply {
|
|
292
|
+
margin-left: auto;
|
|
293
|
+
margin-right: 10px;
|
|
294
|
+
height: 30px;
|
|
295
|
+
flex-shrink: 0;
|
|
296
|
+
border-radius: 4px;
|
|
297
|
+
padding-left: 10px;
|
|
298
|
+
padding-right: 10px;
|
|
299
|
+
font-weight: 500;
|
|
300
|
+
--bk-tw-bg-opacity: 1;
|
|
301
|
+
background-color: rgb(var(--bk-theme-lime-normal) / var(--bk-tw-bg-opacity, 1));
|
|
302
|
+
--bk-tw-text-opacity: 1;
|
|
303
|
+
color: rgb(var(--bk-theme-mono-950) / var(--bk-tw-text-opacity, 1));
|
|
304
|
+
}
|
|
305
|
+
.bk.bk-diff-approval-toolbar .bk-diff-approval-toolbar-apply:hover {
|
|
306
|
+
--bk-tw-brightness: brightness(1.1);
|
|
307
|
+
filter: var(--bk-tw-blur) var(--bk-tw-brightness) var(--bk-tw-contrast) var(--bk-tw-grayscale) var(--bk-tw-hue-rotate) var(--bk-tw-invert) var(--bk-tw-saturate) var(--bk-tw-sepia) var(--bk-tw-drop-shadow);
|
|
308
|
+
}
|
|
309
|
+
</style>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
before: string;
|
|
3
3
|
after: string;
|
|
4
|
+
afterOnly?: boolean;
|
|
4
5
|
};
|
|
5
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
7
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,9 +7,13 @@ import { computed } from "#imports";
|
|
|
7
7
|
import { computeDiff } from "#blokkli/editor/helpers/diff";
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
before: { type: String, required: true },
|
|
10
|
-
after: { type: String, required: true }
|
|
10
|
+
after: { type: String, required: true },
|
|
11
|
+
afterOnly: { type: Boolean, required: false }
|
|
11
12
|
});
|
|
12
13
|
const diffHtml = computed(() => {
|
|
14
|
+
if (props.afterOnly) {
|
|
15
|
+
return "<ins>" + props.after + "</ins>";
|
|
16
|
+
}
|
|
13
17
|
return computeDiff(props.before, props.after);
|
|
14
18
|
});
|
|
15
19
|
</script>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
before: string;
|
|
3
3
|
after: string;
|
|
4
|
+
afterOnly?: boolean;
|
|
4
5
|
};
|
|
5
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
7
|
declare const _default: typeof __VLS_export;
|
|
@@ -247,3 +247,322 @@ function scrollToBlock(uuid) {
|
|
|
247
247
|
eventBus.emit("select", uuid);
|
|
248
248
|
}
|
|
249
249
|
</script>
|
|
250
|
+
|
|
251
|
+
<style>
|
|
252
|
+
/* Diff display in the artboard (page content), outside the .bk editor scope. */
|
|
253
|
+
[data-bk-diff-active] del {
|
|
254
|
+
color: rgb(var(--bk-theme-red-normal) / 0.5);
|
|
255
|
+
text-decoration-line: line-through;
|
|
256
|
+
text-decoration-color: rgb(var(--bk-theme-red-normal) / 1);
|
|
257
|
+
}
|
|
258
|
+
[data-bk-diff-active] ins {
|
|
259
|
+
border-radius: 4px;
|
|
260
|
+
border-width: 1px;
|
|
261
|
+
border-color: rgb(var(--bk-theme-lime-normal) / 0.3);
|
|
262
|
+
--bk-tw-bg-opacity: 1;
|
|
263
|
+
background-color: rgb(var(--bk-theme-lime-light) / var(--bk-tw-bg-opacity, 1));
|
|
264
|
+
--bk-tw-text-opacity: 1;
|
|
265
|
+
color: rgb(var(--bk-theme-lime-dark) / var(--bk-tw-text-opacity, 1));
|
|
266
|
+
text-decoration-line: none;
|
|
267
|
+
}
|
|
268
|
+
.bk.bk-diff-sidebar-pane {
|
|
269
|
+
position: absolute;
|
|
270
|
+
top: 0px;
|
|
271
|
+
left: 0px;
|
|
272
|
+
height: 100%;
|
|
273
|
+
width: 100%;
|
|
274
|
+
overflow: auto;
|
|
275
|
+
overscroll-behavior: contain;
|
|
276
|
+
}
|
|
277
|
+
.bk.bk-diff-view {
|
|
278
|
+
user-select: text;
|
|
279
|
+
container-type: inline-size;
|
|
280
|
+
}
|
|
281
|
+
.bk.bk-diff-view .bk-blokkli-item-label {
|
|
282
|
+
flex: 1 1 0%;
|
|
283
|
+
font-weight: 600;
|
|
284
|
+
}
|
|
285
|
+
.bk.bk-diff-view .bk-blokkli-item-label span {
|
|
286
|
+
line-height: 1;
|
|
287
|
+
}
|
|
288
|
+
.bk.bk-diff-view .bk-blokkli-item-label[disabled] {
|
|
289
|
+
pointer-events: none;
|
|
290
|
+
}
|
|
291
|
+
.bk .bk-diff-mode-selector {
|
|
292
|
+
border-bottom-width: 1px;
|
|
293
|
+
--bk-tw-border-opacity: 1;
|
|
294
|
+
border-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
|
|
295
|
+
padding: 20px;
|
|
296
|
+
}
|
|
297
|
+
.bk .bk-diff-table {
|
|
298
|
+
width: 100%;
|
|
299
|
+
}
|
|
300
|
+
.bk .bk-diff-item {
|
|
301
|
+
width: 100%;
|
|
302
|
+
border-top-width: 1px;
|
|
303
|
+
--bk-tw-border-opacity: 1;
|
|
304
|
+
border-top-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
|
|
305
|
+
--bk-tw-text-opacity: 1;
|
|
306
|
+
color: rgb(var(--bk-theme-mono-900) / var(--bk-tw-text-opacity, 1));
|
|
307
|
+
}
|
|
308
|
+
.bk .bk-diff-item:hover {
|
|
309
|
+
--bk-tw-bg-opacity: 1;
|
|
310
|
+
background-color: rgb(var(--bk-theme-mono-100) / var(--bk-tw-bg-opacity, 1));
|
|
311
|
+
}
|
|
312
|
+
.bk .bk-diff-item.bk-is-muted .bk-diff-item-diffs,
|
|
313
|
+
.bk .bk-diff-item.bk-is-muted .bk-diff-status {
|
|
314
|
+
opacity: 0.5;
|
|
315
|
+
}
|
|
316
|
+
.bk .bk-diff-item.bk-is-muted .bk-blokkli-item-label span {
|
|
317
|
+
--bk-tw-text-opacity: 1;
|
|
318
|
+
color: rgb(var(--bk-theme-mono-400) / var(--bk-tw-text-opacity, 1));
|
|
319
|
+
}
|
|
320
|
+
.bk .bk-diff-item-diffs {
|
|
321
|
+
}
|
|
322
|
+
.bk .bk-diff-item-header {
|
|
323
|
+
display: flex;
|
|
324
|
+
width: 100%;
|
|
325
|
+
align-items: center;
|
|
326
|
+
padding: 20px;
|
|
327
|
+
}
|
|
328
|
+
.bk .bk-diff-item-header.bk-is-selected .bk-blokkli-item-label-icon {
|
|
329
|
+
border-color: rgb(var(--bk-theme-orange-dark) / 0.3);
|
|
330
|
+
--bk-tw-bg-opacity: 1;
|
|
331
|
+
background-color: rgb(var(--bk-theme-orange-normal) / var(--bk-tw-bg-opacity, 1));
|
|
332
|
+
--bk-tw-text-opacity: 1;
|
|
333
|
+
color: rgb(var(--bk-theme-orange-dark) / var(--bk-tw-text-opacity, 1));
|
|
334
|
+
}
|
|
335
|
+
.bk .bk-diff-prop-row {
|
|
336
|
+
padding-left: 20px;
|
|
337
|
+
padding-right: 20px;
|
|
338
|
+
margin-bottom: 20px;
|
|
339
|
+
}
|
|
340
|
+
.bk .bk-diff-prop-row h3 {
|
|
341
|
+
margin-bottom: 5px;
|
|
342
|
+
font-size: 14px;
|
|
343
|
+
line-height: 20px;
|
|
344
|
+
font-weight: 600;
|
|
345
|
+
}
|
|
346
|
+
.bk .bk-diff-monospace {
|
|
347
|
+
font-family: monospace;
|
|
348
|
+
font-size: 14px;
|
|
349
|
+
line-height: 20px;
|
|
350
|
+
}
|
|
351
|
+
.bk .bk-diff-markup-style p,
|
|
352
|
+
.bk .bk-diff-markup-style ul,
|
|
353
|
+
.bk .bk-diff-markup-style ol,
|
|
354
|
+
.bk .bk-diff-markup-style h1,
|
|
355
|
+
.bk .bk-diff-markup-style h2,
|
|
356
|
+
.bk .bk-diff-markup-style h3,
|
|
357
|
+
.bk .bk-diff-markup-style h4,
|
|
358
|
+
.bk .bk-diff-markup-style h5,
|
|
359
|
+
.bk .bk-diff-markup-style h6 {
|
|
360
|
+
margin-top: 20px;
|
|
361
|
+
margin-bottom: 20px;
|
|
362
|
+
}
|
|
363
|
+
.bk .bk-diff-markup-style p:first-child,
|
|
364
|
+
.bk .bk-diff-markup-style ul:first-child,
|
|
365
|
+
.bk .bk-diff-markup-style ol:first-child,
|
|
366
|
+
.bk .bk-diff-markup-style h1:first-child,
|
|
367
|
+
.bk .bk-diff-markup-style h2:first-child,
|
|
368
|
+
.bk .bk-diff-markup-style h3:first-child,
|
|
369
|
+
.bk .bk-diff-markup-style h4:first-child,
|
|
370
|
+
.bk .bk-diff-markup-style h5:first-child,
|
|
371
|
+
.bk .bk-diff-markup-style h6:first-child {
|
|
372
|
+
margin-top: 0px;
|
|
373
|
+
}
|
|
374
|
+
.bk .bk-diff-markup-style p:last-child,
|
|
375
|
+
.bk .bk-diff-markup-style ul:last-child,
|
|
376
|
+
.bk .bk-diff-markup-style ol:last-child,
|
|
377
|
+
.bk .bk-diff-markup-style h1:last-child,
|
|
378
|
+
.bk .bk-diff-markup-style h2:last-child,
|
|
379
|
+
.bk .bk-diff-markup-style h3:last-child,
|
|
380
|
+
.bk .bk-diff-markup-style h4:last-child,
|
|
381
|
+
.bk .bk-diff-markup-style h5:last-child,
|
|
382
|
+
.bk .bk-diff-markup-style h6:last-child {
|
|
383
|
+
margin-bottom: 0px;
|
|
384
|
+
}
|
|
385
|
+
.bk .bk-diff-markup-style h1,
|
|
386
|
+
.bk .bk-diff-markup-style h2,
|
|
387
|
+
.bk .bk-diff-markup-style h3,
|
|
388
|
+
.bk .bk-diff-markup-style h4,
|
|
389
|
+
.bk .bk-diff-markup-style h5,
|
|
390
|
+
.bk .bk-diff-markup-style h6 {
|
|
391
|
+
line-height: 1.25;
|
|
392
|
+
}
|
|
393
|
+
.bk .bk-diff-markup-style p,
|
|
394
|
+
.bk .bk-diff-markup-style ul,
|
|
395
|
+
.bk .bk-diff-markup-style ol {
|
|
396
|
+
line-height: 1.5;
|
|
397
|
+
}
|
|
398
|
+
.bk .bk-diff-markup-style h2 {
|
|
399
|
+
font-size: 1.7em;
|
|
400
|
+
font-weight: 700;
|
|
401
|
+
}
|
|
402
|
+
.bk .bk-diff-markup-style h3 {
|
|
403
|
+
font-size: 1.5em;
|
|
404
|
+
font-weight: 700;
|
|
405
|
+
}
|
|
406
|
+
.bk .bk-diff-markup-style h4 {
|
|
407
|
+
font-size: 1.3em;
|
|
408
|
+
font-weight: 700;
|
|
409
|
+
}
|
|
410
|
+
.bk .bk-diff-markup-style ul {
|
|
411
|
+
margin-left: 18px;
|
|
412
|
+
list-style-type: disc;
|
|
413
|
+
}
|
|
414
|
+
.bk .bk-diff-markup-style ol {
|
|
415
|
+
margin-left: 30px;
|
|
416
|
+
list-style-type: decimal;
|
|
417
|
+
}
|
|
418
|
+
.bk .bk-diff-markup-style a {
|
|
419
|
+
--bk-tw-text-opacity: 1;
|
|
420
|
+
color: rgb(var(--bk-theme-accent-700) / var(--bk-tw-text-opacity, 1));
|
|
421
|
+
text-decoration-line: underline;
|
|
422
|
+
}
|
|
423
|
+
.bk .bk-diff-markup-style blockquote {
|
|
424
|
+
border-left-width: 6px;
|
|
425
|
+
--bk-tw-border-opacity: 1;
|
|
426
|
+
border-left-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
|
|
427
|
+
padding-left: 20px;
|
|
428
|
+
}
|
|
429
|
+
.bk .bk-diff-markup-style pre {
|
|
430
|
+
width: 100%;
|
|
431
|
+
max-width: 100%;
|
|
432
|
+
white-space: break-spaces;
|
|
433
|
+
overflow-wrap: break-word;
|
|
434
|
+
word-break: break-all;
|
|
435
|
+
}
|
|
436
|
+
.bk .bk-diff-value {
|
|
437
|
+
display: inline;
|
|
438
|
+
word-break: break-word;
|
|
439
|
+
}
|
|
440
|
+
.bk .bk-diff-value .bk-is-clipped del {
|
|
441
|
+
overflow: hidden;
|
|
442
|
+
display: -webkit-box;
|
|
443
|
+
-webkit-box-orient: vertical;
|
|
444
|
+
-webkit-line-clamp: 4;
|
|
445
|
+
}
|
|
446
|
+
.bk .bk-diff-value del {
|
|
447
|
+
--bk-tw-text-opacity: 1;
|
|
448
|
+
color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1));
|
|
449
|
+
text-decoration-line: line-through;
|
|
450
|
+
}
|
|
451
|
+
.bk .bk-diff-value del:has(img) {
|
|
452
|
+
display: block;
|
|
453
|
+
max-width: 300px;
|
|
454
|
+
overflow: hidden;
|
|
455
|
+
--bk-tw-bg-opacity: 1;
|
|
456
|
+
background-color: rgb(var(--bk-theme-red-normal) / var(--bk-tw-bg-opacity, 1));
|
|
457
|
+
border-width: 2px;
|
|
458
|
+
--bk-tw-border-opacity: 1;
|
|
459
|
+
border-color: rgb(var(--bk-theme-red-normal) / var(--bk-tw-border-opacity, 1));
|
|
460
|
+
}
|
|
461
|
+
.bk .bk-diff-value del:has(img) img {
|
|
462
|
+
opacity: 0.7;
|
|
463
|
+
}
|
|
464
|
+
.bk .bk-diff-value ins {
|
|
465
|
+
border-radius: 4px;
|
|
466
|
+
border-width: 1px;
|
|
467
|
+
border-color: rgb(var(--bk-theme-lime-normal) / 0.3);
|
|
468
|
+
--bk-tw-bg-opacity: 1;
|
|
469
|
+
background-color: rgb(var(--bk-theme-lime-light) / var(--bk-tw-bg-opacity, 1));
|
|
470
|
+
--bk-tw-text-opacity: 1;
|
|
471
|
+
color: rgb(var(--bk-theme-lime-dark) / var(--bk-tw-text-opacity, 1));
|
|
472
|
+
text-decoration-line: none;
|
|
473
|
+
}
|
|
474
|
+
.bk .bk-diff-value ins:has(img) {
|
|
475
|
+
border-width: 2px;
|
|
476
|
+
--bk-tw-border-opacity: 1;
|
|
477
|
+
border-color: rgb(var(--bk-theme-lime-normal) / var(--bk-tw-border-opacity, 1));
|
|
478
|
+
display: block;
|
|
479
|
+
max-width: 300px;
|
|
480
|
+
overflow: hidden;
|
|
481
|
+
}
|
|
482
|
+
.bk .bk-diff-value del:has(img) + ins:has(img) {
|
|
483
|
+
margin-top: 15px;
|
|
484
|
+
}
|
|
485
|
+
.bk .bk-diff-prop-side-by-side {
|
|
486
|
+
display: grid;
|
|
487
|
+
gap: 10px;
|
|
488
|
+
}
|
|
489
|
+
@container (min-width: 700px) {
|
|
490
|
+
.bk .bk-diff-prop-side-by-side {
|
|
491
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-before,
|
|
495
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-after {
|
|
496
|
+
border-radius: 4px;
|
|
497
|
+
border-width: 1px;
|
|
498
|
+
--bk-tw-border-opacity: 1;
|
|
499
|
+
border-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
|
|
500
|
+
padding: 10px;
|
|
501
|
+
}
|
|
502
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-before {
|
|
503
|
+
background-color: rgb(var(--bk-theme-red-light) / 0.2);
|
|
504
|
+
}
|
|
505
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-before .bk-diff-prop-label {
|
|
506
|
+
--bk-tw-text-opacity: 1;
|
|
507
|
+
color: rgb(var(--bk-theme-red-normal) / var(--bk-tw-text-opacity, 1));
|
|
508
|
+
}
|
|
509
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-after {
|
|
510
|
+
background-color: rgb(var(--bk-theme-lime-light) / 0.2);
|
|
511
|
+
}
|
|
512
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-after .bk-diff-prop-label {
|
|
513
|
+
--bk-tw-text-opacity: 1;
|
|
514
|
+
color: rgb(var(--bk-theme-lime-normal) / var(--bk-tw-text-opacity, 1));
|
|
515
|
+
}
|
|
516
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-label {
|
|
517
|
+
margin-bottom: 5px;
|
|
518
|
+
font-size: 12px;
|
|
519
|
+
line-height: 16px;
|
|
520
|
+
font-weight: 600;
|
|
521
|
+
text-transform: uppercase;
|
|
522
|
+
letter-spacing: 0.05em;
|
|
523
|
+
--bk-tw-text-opacity: 1;
|
|
524
|
+
color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1));
|
|
525
|
+
}
|
|
526
|
+
.bk .bk-diff-prop-side-by-side .bk-diff-prop-content {
|
|
527
|
+
word-break: break-word;
|
|
528
|
+
}
|
|
529
|
+
.bk .bk-diff-prop-after-only .bk-diff-prop-content {
|
|
530
|
+
border-radius: 4px;
|
|
531
|
+
border-width: 1px;
|
|
532
|
+
border-color: rgb(var(--bk-theme-lime-normal) / 0.3);
|
|
533
|
+
background-color: rgb(var(--bk-theme-lime-light) / 0.2);
|
|
534
|
+
padding: 10px;
|
|
535
|
+
word-break: break-word;
|
|
536
|
+
}
|
|
537
|
+
.bk .bk-diff-status-label {
|
|
538
|
+
display: inline-block;
|
|
539
|
+
--bk-tw-translate-y: -3px;
|
|
540
|
+
transform: translate(var(--bk-tw-translate-x), var(--bk-tw-translate-y)) rotate(var(--bk-tw-rotate)) skewX(var(--bk-tw-skew-x)) skewY(var(--bk-tw-skew-y)) scaleX(var(--bk-tw-scale-x)) scaleY(var(--bk-tw-scale-y));
|
|
541
|
+
border-radius: 9999px;
|
|
542
|
+
padding-left: 7px;
|
|
543
|
+
padding-right: 7px;
|
|
544
|
+
padding-top: 2px;
|
|
545
|
+
padding-bottom: 2px;
|
|
546
|
+
font-size: 12px;
|
|
547
|
+
line-height: 16px;
|
|
548
|
+
font-weight: 600;
|
|
549
|
+
text-transform: uppercase;
|
|
550
|
+
letter-spacing: 0.05em;
|
|
551
|
+
--bk-tw-bg-opacity: 1;
|
|
552
|
+
background-color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-bg-opacity, 1));
|
|
553
|
+
--bk-tw-text-opacity: 1;
|
|
554
|
+
color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1));
|
|
555
|
+
}
|
|
556
|
+
.bk .bk-diff-status-label.bk-is-added {
|
|
557
|
+
--bk-tw-bg-opacity: 1;
|
|
558
|
+
background-color: rgb(var(--bk-theme-lime-normal) / var(--bk-tw-bg-opacity, 1));
|
|
559
|
+
--bk-tw-text-opacity: 1;
|
|
560
|
+
color: rgb(255 255 255 / var(--bk-tw-text-opacity, 1));
|
|
561
|
+
}
|
|
562
|
+
.bk .bk-diff-status-label.bk-is-removed {
|
|
563
|
+
--bk-tw-bg-opacity: 1;
|
|
564
|
+
background-color: rgb(var(--bk-theme-red-normal) / var(--bk-tw-bg-opacity, 1));
|
|
565
|
+
--bk-tw-text-opacity: 1;
|
|
566
|
+
color: rgb(255 255 255 / var(--bk-tw-text-opacity, 1));
|
|
567
|
+
}
|
|
568
|
+
</style>
|