@blokkli/editor 2.0.0-alpha.51 → 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.d.vue.ts +2 -1
- package/dist/runtime/components/BlokkliEditable.vue +58 -42
- package/dist/runtime/components/BlokkliEditable.vue.d.ts +2 -1
- package/dist/runtime/components/BlokkliItem.d.vue.ts +1 -1
- package/dist/runtime/components/BlokkliItem.vue.d.ts +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
|
@@ -69,6 +69,10 @@ export type GetEditStatesItem = {
|
|
|
69
69
|
hostEntityUuid: string;
|
|
70
70
|
entity: EditEntity;
|
|
71
71
|
currentUserIsOwner: boolean;
|
|
72
|
+
lastChanged: string;
|
|
73
|
+
pendingChanges: number;
|
|
74
|
+
ownerName: string;
|
|
75
|
+
url: string;
|
|
72
76
|
};
|
|
73
77
|
export type BlokkliAdapterGetEditStatesResult = BlokkliAdapterSearchResults<GetEditStatesItem>;
|
|
74
78
|
declare module '#blokkli/editor/adapter' {
|
|
@@ -92,7 +96,7 @@ declare module '#blokkli/editor/adapter' {
|
|
|
92
96
|
/**
|
|
93
97
|
* Search for edit states.
|
|
94
98
|
*/
|
|
95
|
-
getEditStates?: (
|
|
99
|
+
getEditStates?: (e?: AdapterSearchArguments) => Promise<BlokkliAdapterGetEditStatesResult>;
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
declare module '#blokkli/editor/events' {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReferencedEntity } from '../../types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ReferencedEntity, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ReferencedEntity> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a
|
|
3
|
+
ref="rootEl"
|
|
4
|
+
:href="editUrl"
|
|
5
|
+
target="_blank"
|
|
6
|
+
rel="noopener"
|
|
7
|
+
class="_bk_flex _bk_px-10 _bk_py-8 _bk_hover:bg-mono-600"
|
|
8
|
+
@click.prevent="isEditing = true"
|
|
9
|
+
>
|
|
10
|
+
<div class="_bk_text-mono-200 _bk_flex _bk_items-center _bk_gap-10 _bk_pl-2">
|
|
11
|
+
<div
|
|
12
|
+
class="_bk_size-30 _bk_bg-mono-600 _bk_text-mono-100 _bk_border _bk_border-mono-300 _bk_flex _bk_items-center _bk_justify-center _bk_rounded-md"
|
|
13
|
+
>
|
|
14
|
+
<Icon :name="icon" class="_bk_size-20" />
|
|
15
|
+
</div>
|
|
16
|
+
<div>
|
|
17
|
+
<div class="_bk_text-sm _bk_font-bold _bk_max-w-[280px] _bk_truncate _bk_leading-none">
|
|
18
|
+
{{ label }}
|
|
19
|
+
</div>
|
|
20
|
+
<div class="_bk_text-xs">
|
|
21
|
+
<span>{{ bundleLabel }}</span>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</a>
|
|
26
|
+
<NestedEditorOverlay
|
|
27
|
+
v-if="editUrl && isEditing"
|
|
28
|
+
:url="editUrl"
|
|
29
|
+
:uuid="entityUuid"
|
|
30
|
+
:element
|
|
31
|
+
:title="editorOverlayTitle"
|
|
32
|
+
theme="accent"
|
|
33
|
+
:icon
|
|
34
|
+
@close="onSubmitEdit"
|
|
35
|
+
@submit="onSubmitEdit"
|
|
36
|
+
/>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script setup>
|
|
40
|
+
import { computed, useBlokkli, ref, useTemplateRef } from "#imports";
|
|
41
|
+
import { NestedEditorOverlay, Icon } from "#blokkli/editor/components";
|
|
42
|
+
const props = defineProps({
|
|
43
|
+
editUrl: { type: String, required: true },
|
|
44
|
+
entityBundle: { type: String, required: true },
|
|
45
|
+
entityType: { type: String, required: true },
|
|
46
|
+
entityUuid: { type: String, required: true },
|
|
47
|
+
label: { type: String, required: true },
|
|
48
|
+
uuids: { type: Array, required: true }
|
|
49
|
+
});
|
|
50
|
+
const { adapter, $t, eventBus } = useBlokkli();
|
|
51
|
+
const isEditing = ref(false);
|
|
52
|
+
const element = useTemplateRef("rootEl");
|
|
53
|
+
const bundleLabel = computed(() => {
|
|
54
|
+
if (!adapter.getEntityBundleInfo) {
|
|
55
|
+
return props.entityBundle;
|
|
56
|
+
}
|
|
57
|
+
return adapter.getEntityBundleInfo(props.entityType, props.entityBundle)?.label ?? props.entityBundle;
|
|
58
|
+
});
|
|
59
|
+
const editorOverlayTitle = computed(() => {
|
|
60
|
+
return $t("referencedEntitiesEditorOverlayTitle", 'Edit "@label"').replace(
|
|
61
|
+
"@label",
|
|
62
|
+
props.label
|
|
63
|
+
);
|
|
64
|
+
});
|
|
65
|
+
const icon = computed(() => {
|
|
66
|
+
if (props.entityBundle.includes("image")) {
|
|
67
|
+
return "bk_mdi_image";
|
|
68
|
+
} else if (props.entityBundle.includes("video")) {
|
|
69
|
+
return "bk_mdi_play_circle";
|
|
70
|
+
} else if (props.entityBundle === "document" || props.entityBundle === "file") {
|
|
71
|
+
return "bk_mdi_docs";
|
|
72
|
+
} else if (props.entityBundle.includes("person") || props.entityBundle.includes("contact")) {
|
|
73
|
+
return "bk_mdi_person-fill";
|
|
74
|
+
}
|
|
75
|
+
return "bk_mdi_join";
|
|
76
|
+
});
|
|
77
|
+
function onSubmitEdit() {
|
|
78
|
+
eventBus.emit("reloadState");
|
|
79
|
+
isEditing.value = false;
|
|
80
|
+
}
|
|
81
|
+
</script>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReferencedEntity } from '../../types.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ReferencedEntity, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ReferencedEntity> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReferencedEntity } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
uuids: string[];
|
|
4
|
+
getCache: () => {
|
|
5
|
+
loadedUuids: Set<string>;
|
|
6
|
+
entities: Map<string, ReferencedEntity>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
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>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="_bk_order-last _bk_bg-mono-700">
|
|
3
|
+
<div class="_bk_px-10 _bk_py-5 _bk_group/tooltip _bk_relative">
|
|
4
|
+
<span
|
|
5
|
+
class="_bk_uppercase _bk_font-semibold _bk_tracking-wide _bk_text-mono-300 _bk_text-xs"
|
|
6
|
+
>{{ $t("relatedContent", "Related Content") }}</span
|
|
7
|
+
>
|
|
8
|
+
<Tooltip
|
|
9
|
+
:label="
|
|
10
|
+
$t(
|
|
11
|
+
'relatedContentTooltip',
|
|
12
|
+
'Content like pages or images referenced or linked by this block.'
|
|
13
|
+
)
|
|
14
|
+
"
|
|
15
|
+
placement="center-after"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
<div
|
|
19
|
+
v-if="isLoading || !entities.length"
|
|
20
|
+
class="_bk_flex _bk_gap-10 _bk_px-10 _bk_pt-5 _bk_pb-10 _bk_items-center _bk_text-sm"
|
|
21
|
+
>
|
|
22
|
+
<Icon v-if="isLoading" name="spinner" class="_bk_animate-spin _bk_size-15" />
|
|
23
|
+
<span v-if="isLoading" class="_bk_font-semibold">{{
|
|
24
|
+
$t("loading", "Loading...")
|
|
25
|
+
}}</span>
|
|
26
|
+
<span v-else>{{
|
|
27
|
+
$t("relatedContentNoEntitiesFound", "No related content found")
|
|
28
|
+
}}</span>
|
|
29
|
+
</div>
|
|
30
|
+
<ol v-else-if="entities.length">
|
|
31
|
+
<li v-for="entity in entities" :key="entity.entityUuid">
|
|
32
|
+
<Item v-bind="entity" />
|
|
33
|
+
</li>
|
|
34
|
+
</ol>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup>
|
|
39
|
+
import { useBlokkli, ref, onMounted } from "#imports";
|
|
40
|
+
import { Tooltip, Icon } from "#blokkli/editor/components";
|
|
41
|
+
import Item from "./Item/index.vue";
|
|
42
|
+
const props = defineProps({
|
|
43
|
+
uuids: { type: Array, required: true },
|
|
44
|
+
getCache: { type: Function, required: true }
|
|
45
|
+
});
|
|
46
|
+
const { $t, adapter } = useBlokkli();
|
|
47
|
+
const isLoading = ref(false);
|
|
48
|
+
const entities = ref([]);
|
|
49
|
+
onMounted(async () => {
|
|
50
|
+
const cache = props.getCache();
|
|
51
|
+
const uncachedUuids = props.uuids.filter(
|
|
52
|
+
(uuid) => !cache.loadedUuids.has(uuid)
|
|
53
|
+
);
|
|
54
|
+
if (uncachedUuids.length && adapter.getReferencedEntities) {
|
|
55
|
+
isLoading.value = true;
|
|
56
|
+
const results = await adapter.getReferencedEntities(uncachedUuids);
|
|
57
|
+
for (const entity of results) {
|
|
58
|
+
const existing = cache.entities.get(entity.entityUuid);
|
|
59
|
+
if (existing) {
|
|
60
|
+
for (const uuid of entity.uuids) {
|
|
61
|
+
if (!existing.uuids.includes(uuid)) {
|
|
62
|
+
existing.uuids.push(uuid);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
} else {
|
|
66
|
+
cache.entities.set(entity.entityUuid, entity);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
for (const uuid of uncachedUuids) {
|
|
70
|
+
cache.loadedUuids.add(uuid);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
isLoading.value = false;
|
|
74
|
+
entities.value = [...cache.entities.values()].filter(
|
|
75
|
+
(entity) => entity.uuids.some((uuid) => props.uuids.includes(uuid))
|
|
76
|
+
);
|
|
77
|
+
});
|
|
78
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReferencedEntity } from '../types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
uuids: string[];
|
|
4
|
+
getCache: () => {
|
|
5
|
+
loadedUuids: Set<string>;
|
|
6
|
+
entities: Map<string, ReferencedEntity>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
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>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Teleport to="#bk-blokkli-item-actions-dropdown" defer>
|
|
3
|
+
<List
|
|
4
|
+
v-if="uuids.length && uuids.length <= 5 && ui.itemActionsOpen.value"
|
|
5
|
+
:uuids
|
|
6
|
+
:get-cache
|
|
7
|
+
/>
|
|
8
|
+
</Teleport>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup>
|
|
12
|
+
import { useBlokkli, defineBlokkliFeature, computed } from "#imports";
|
|
13
|
+
import { useStateBasedCache } from "#blokkli/editor/composables";
|
|
14
|
+
import List from "./List/index.vue";
|
|
15
|
+
defineBlokkliFeature({
|
|
16
|
+
id: "referenced-entities",
|
|
17
|
+
label: "Referenced Entities",
|
|
18
|
+
icon: "bk_mdi_join",
|
|
19
|
+
description: "Renders referenced entities of blocks.",
|
|
20
|
+
requiredAdapterMethods: ["getReferencedEntities"]
|
|
21
|
+
});
|
|
22
|
+
const { selection, ui } = useBlokkli();
|
|
23
|
+
const uuids = computed(() => {
|
|
24
|
+
return selection.uuids.value;
|
|
25
|
+
});
|
|
26
|
+
const getCache = useStateBasedCache(() => ({
|
|
27
|
+
loadedUuids: /* @__PURE__ */ new Set(),
|
|
28
|
+
entities: /* @__PURE__ */ new Map()
|
|
29
|
+
}));
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<script>
|
|
33
|
+
export default {
|
|
34
|
+
name: "ReferencedEntities"
|
|
35
|
+
};
|
|
36
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ReferencedEntity = {
|
|
2
|
+
editUrl: string;
|
|
3
|
+
entityBundle: string;
|
|
4
|
+
entityType: string;
|
|
5
|
+
entityUuid: string;
|
|
6
|
+
label: string;
|
|
7
|
+
uuids: string[];
|
|
8
|
+
};
|
|
9
|
+
declare module '#blokkli/editor/adapter' {
|
|
10
|
+
interface BlokkliAdapter<T> {
|
|
11
|
+
getReferencedEntities?(uuids: string[]): Promise<ReferencedEntity[]>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -74,3 +74,191 @@ onBeforeUnmount(() => {
|
|
|
74
74
|
broadcast.off("previewFocused", onPreviewFocused);
|
|
75
75
|
});
|
|
76
76
|
</script>
|
|
77
|
+
|
|
78
|
+
<style>
|
|
79
|
+
.bk .bk-preview {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 0px;
|
|
82
|
+
left: 0px;
|
|
83
|
+
display: flex;
|
|
84
|
+
height: 100%;
|
|
85
|
+
width: 100%;
|
|
86
|
+
flex-direction: column
|
|
87
|
+
}
|
|
88
|
+
.bk .bk-preview .bk-preview-iframe {
|
|
89
|
+
position: relative;
|
|
90
|
+
width: 100%;
|
|
91
|
+
flex: 1 1 0%
|
|
92
|
+
}
|
|
93
|
+
.bk .bk-preview .bk-preview-iframe iframe {
|
|
94
|
+
display: block;
|
|
95
|
+
height: 100%;
|
|
96
|
+
width: 100%;
|
|
97
|
+
--bk-tw-bg-opacity: 1;
|
|
98
|
+
background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1));
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
overflow-y: auto
|
|
101
|
+
}
|
|
102
|
+
.bk .bk-preview .bk-preview-loading {
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 0px;
|
|
105
|
+
left: 0px;
|
|
106
|
+
z-index: 50;
|
|
107
|
+
display: flex;
|
|
108
|
+
height: 100%;
|
|
109
|
+
width: 100%;
|
|
110
|
+
align-items: center;
|
|
111
|
+
justify-content: center;
|
|
112
|
+
background-color: rgb(255 255 255 / 0.9);
|
|
113
|
+
--bk-tw-backdrop-blur: blur(16px);
|
|
114
|
+
-webkit-backdrop-filter: var(--bk-tw-backdrop-blur) var(--bk-tw-backdrop-brightness) var(--bk-tw-backdrop-contrast) var(--bk-tw-backdrop-grayscale) var(--bk-tw-backdrop-hue-rotate) var(--bk-tw-backdrop-invert) var(--bk-tw-backdrop-opacity) var(--bk-tw-backdrop-saturate) var(--bk-tw-backdrop-sepia);
|
|
115
|
+
backdrop-filter: var(--bk-tw-backdrop-blur) var(--bk-tw-backdrop-brightness) var(--bk-tw-backdrop-contrast) var(--bk-tw-backdrop-grayscale) var(--bk-tw-backdrop-hue-rotate) var(--bk-tw-backdrop-invert) var(--bk-tw-backdrop-opacity) var(--bk-tw-backdrop-saturate) var(--bk-tw-backdrop-sepia)
|
|
116
|
+
}
|
|
117
|
+
.bk .bk-preview .bk-preview-loading svg {
|
|
118
|
+
height: 100px;
|
|
119
|
+
width: 100px
|
|
120
|
+
}
|
|
121
|
+
@keyframes spin {
|
|
122
|
+
to {
|
|
123
|
+
transform: rotate(360deg)
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.bk .bk-preview .bk-preview-loading svg {
|
|
127
|
+
animation: spin 1s linear infinite;
|
|
128
|
+
fill: rgb(var(--bk-theme-mono-900) / 1);
|
|
129
|
+
--bk-tw-text-opacity: 1;
|
|
130
|
+
color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-text-opacity, 1))
|
|
131
|
+
}
|
|
132
|
+
.bk .bk-preview-controls {
|
|
133
|
+
display: flex;
|
|
134
|
+
height: 50px;
|
|
135
|
+
--bk-tw-bg-opacity: 1;
|
|
136
|
+
background-color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-bg-opacity, 1))
|
|
137
|
+
}
|
|
138
|
+
.bk .bk-preview-controls button,
|
|
139
|
+
.bk .bk-preview-controls label {
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
--bk-tw-bg-opacity: 1;
|
|
142
|
+
background-color: rgb(var(--bk-theme-mono-200) / var(--bk-tw-bg-opacity, 1));
|
|
143
|
+
--bk-tw-text-opacity: 1;
|
|
144
|
+
color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1))
|
|
145
|
+
}
|
|
146
|
+
.bk .bk-preview-controls button:hover,
|
|
147
|
+
.bk .bk-preview-controls label:hover {
|
|
148
|
+
--bk-tw-bg-opacity: 1;
|
|
149
|
+
background-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-bg-opacity, 1))
|
|
150
|
+
}
|
|
151
|
+
.bk .bk-preview-controls button {
|
|
152
|
+
display: flex;
|
|
153
|
+
min-width: 50px
|
|
154
|
+
}
|
|
155
|
+
.bk .bk-preview-controls button:disabled {
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
--bk-tw-text-opacity: 1;
|
|
158
|
+
color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-text-opacity, 1))
|
|
159
|
+
}
|
|
160
|
+
.bk .bk-preview-controls button.bk-is-rotate {
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center
|
|
163
|
+
}
|
|
164
|
+
.bk .bk-preview-controls button.bk-is-rotate svg {
|
|
165
|
+
height: 20px;
|
|
166
|
+
width: 20px;
|
|
167
|
+
fill: currentColor
|
|
168
|
+
}
|
|
169
|
+
.bk .bk-preview-controls .bk-dropdown {
|
|
170
|
+
position: relative;
|
|
171
|
+
flex: 1 1 0%
|
|
172
|
+
}
|
|
173
|
+
.bk .bk-preview-controls .bk-dropdown button {
|
|
174
|
+
display: flex;
|
|
175
|
+
height: 100%;
|
|
176
|
+
width: 100%;
|
|
177
|
+
align-items: center;
|
|
178
|
+
padding-right: 15px
|
|
179
|
+
}
|
|
180
|
+
.bk .bk-preview-controls .bk-dropdown button > .bk-icon svg {
|
|
181
|
+
height: 15px;
|
|
182
|
+
width: 15px;
|
|
183
|
+
fill: currentColor
|
|
184
|
+
}
|
|
185
|
+
.bk .bk-preview-controls .bk-dropdown button.bk-is-open > .bk-icon {
|
|
186
|
+
--bk-tw-rotate: 180deg;
|
|
187
|
+
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))
|
|
188
|
+
}
|
|
189
|
+
.bk .bk-preview-controls .bk-dropdown label {
|
|
190
|
+
display: block
|
|
191
|
+
}
|
|
192
|
+
.bk .bk-preview-controls .bk-dropdown input:not(:checked) + .bk-preview-viewport-option {
|
|
193
|
+
--bk-tw-text-opacity: 1;
|
|
194
|
+
color: rgb(var(--bk-theme-mono-400) / var(--bk-tw-text-opacity, 1))
|
|
195
|
+
}
|
|
196
|
+
.bk .bk-preview-controls .bk-dropdown .bk-dropdown-content {
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: 100%;
|
|
199
|
+
left: 0px;
|
|
200
|
+
z-index: 50;
|
|
201
|
+
width: 100%;
|
|
202
|
+
--bk-tw-bg-opacity: 1;
|
|
203
|
+
background-color: rgb(var(--bk-theme-mono-800) / var(--bk-tw-bg-opacity, 1))
|
|
204
|
+
}
|
|
205
|
+
.bk .bk-preview-controls .bk-dropdown .bk-dropdown-content input {
|
|
206
|
+
position: absolute;
|
|
207
|
+
opacity: 0
|
|
208
|
+
}
|
|
209
|
+
.bk .bk-preview-controls .bk-preview-viewport-option {
|
|
210
|
+
display: flex;
|
|
211
|
+
width: 100%;
|
|
212
|
+
align-items: center;
|
|
213
|
+
gap: 10px;
|
|
214
|
+
padding-top: 10px;
|
|
215
|
+
padding-bottom: 10px;
|
|
216
|
+
padding-left: 10px;
|
|
217
|
+
padding-right: 10px;
|
|
218
|
+
text-align: left;
|
|
219
|
+
font-size: 12px;
|
|
220
|
+
line-height: 16px;
|
|
221
|
+
line-height: 1
|
|
222
|
+
}
|
|
223
|
+
.bk .bk-preview-controls .bk-preview-viewport-option strong {
|
|
224
|
+
margin-bottom: 5px;
|
|
225
|
+
display: block
|
|
226
|
+
}
|
|
227
|
+
.bk .bk-preview-controls .bk-preview-viewport-option .bk-icon {
|
|
228
|
+
height: 25px;
|
|
229
|
+
width: 25px;
|
|
230
|
+
fill: currentColor
|
|
231
|
+
}
|
|
232
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls {
|
|
233
|
+
--bk-tw-bg-opacity: 1;
|
|
234
|
+
background-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-bg-opacity, 1))
|
|
235
|
+
}
|
|
236
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls button,
|
|
237
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls label {
|
|
238
|
+
--bk-tw-bg-opacity: 1;
|
|
239
|
+
background-color: rgb(var(--bk-theme-mono-800) / var(--bk-tw-bg-opacity, 1));
|
|
240
|
+
--bk-tw-text-opacity: 1;
|
|
241
|
+
color: rgb(255 255 255 / var(--bk-tw-text-opacity, 1))
|
|
242
|
+
}
|
|
243
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls button:hover,
|
|
244
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls label:hover {
|
|
245
|
+
--bk-tw-bg-opacity: 1;
|
|
246
|
+
background-color: rgb(var(--bk-theme-mono-700) / var(--bk-tw-bg-opacity, 1))
|
|
247
|
+
}
|
|
248
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls .bk-is-rotate {
|
|
249
|
+
--bk-tw-border-opacity: 1;
|
|
250
|
+
border-right-color: rgb(var(--bk-theme-mono-700) / var(--bk-tw-border-opacity, 1))
|
|
251
|
+
}
|
|
252
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls .bk-is-rotate:disabled {
|
|
253
|
+
--bk-tw-text-opacity: 1;
|
|
254
|
+
color: rgb(var(--bk-theme-mono-600) / var(--bk-tw-text-opacity, 1))
|
|
255
|
+
}
|
|
256
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls input:not(:checked) + .bk-preview-viewport-option {
|
|
257
|
+
--bk-tw-text-opacity: 1;
|
|
258
|
+
color: rgb(var(--bk-theme-mono-500) / var(--bk-tw-text-opacity, 1))
|
|
259
|
+
}
|
|
260
|
+
.bk .bk-sidebar-detached.bk-is-focused .bk-preview-controls label:hover input:not(:checked) + .bk-preview-viewport-option {
|
|
261
|
+
--bk-tw-text-opacity: 1;
|
|
262
|
+
color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-text-opacity, 1))
|
|
263
|
+
}
|
|
264
|
+
</style>
|