@ecsplico/editor 0.0.0-stage → 2.0.0
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/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +232 -2
- package/dist/code/CodeSurface.d.ts +24 -0
- package/dist/code/CodeSurface.js +57 -0
- package/dist/code/CodeSurface.js.map +1 -0
- package/dist/code/CodeSurface.vue.d.ts +29 -0
- package/dist/code/CodeSurface2.js +75 -0
- package/dist/code/CodeSurface2.js.map +1 -0
- package/dist/code/chrome-theme.js +76 -0
- package/dist/code/chrome-theme.js.map +1 -0
- package/dist/code/compartments.js +19 -0
- package/dist/code/compartments.js.map +1 -0
- package/dist/code/editor-factory.d.ts +41 -0
- package/dist/code/editor-factory.js +126 -0
- package/dist/code/editor-factory.js.map +1 -0
- package/dist/code/format-json.d.ts +27 -0
- package/dist/code/format-json.js +94 -0
- package/dist/code/format-json.js.map +1 -0
- package/dist/code/highlight-style.js +118 -0
- package/dist/code/highlight-style.js.map +1 -0
- package/dist/code/index.d.ts +6 -0
- package/dist/code/index.js +6 -0
- package/dist/code/jsonl-language.d.ts +6 -0
- package/dist/code/jsonl-language.js +33 -0
- package/dist/code/jsonl-language.js.map +1 -0
- package/dist/code/kind.d.ts +15 -0
- package/dist/code/kind.js +142 -0
- package/dist/code/kind.js.map +1 -0
- package/dist/code/lang-registry.d.ts +31 -0
- package/dist/code/lang-registry.js +54 -0
- package/dist/code/lang-registry.js.map +1 -0
- package/dist/code/react.d.ts +2 -0
- package/dist/code/react.js +1 -0
- package/dist/code/vue.d.ts +2 -0
- package/dist/code/vue.js +1 -0
- package/dist/core/abilities.d.ts +32 -0
- package/dist/core/abilities.js +160 -0
- package/dist/core/abilities.js.map +1 -0
- package/dist/core/block-convert.d.ts +59 -0
- package/dist/core/block-convert.js +164 -0
- package/dist/core/block-convert.js.map +1 -0
- package/dist/core/block-drag.d.ts +12 -0
- package/dist/core/block-drag.js +62 -0
- package/dist/core/block-drag.js.map +1 -0
- package/dist/core/block-flash.d.ts +19 -0
- package/dist/core/block-flash.js +66 -0
- package/dist/core/block-flash.js.map +1 -0
- package/dist/core/context.d.ts +63 -0
- package/dist/core/context.js +108 -0
- package/dist/core/context.js.map +1 -0
- package/dist/core/convert.d.ts +96 -0
- package/dist/core/convert.js +241 -0
- package/dist/core/convert.js.map +1 -0
- package/dist/core/core-feature.d.ts +17 -0
- package/dist/core/core-feature.js +100 -0
- package/dist/core/core-feature.js.map +1 -0
- package/dist/core/define-editor.d.ts +23 -0
- package/dist/core/define-editor.js +110 -0
- package/dist/core/define-editor.js.map +1 -0
- package/dist/core/doc-anchors.d.ts +67 -0
- package/dist/core/doc-anchors.js +112 -0
- package/dist/core/doc-anchors.js.map +1 -0
- package/dist/core/document-markdown.d.ts +13 -0
- package/dist/core/document-markdown.js +31 -0
- package/dist/core/document-markdown.js.map +1 -0
- package/dist/core/download.d.ts +5 -0
- package/dist/core/download.js +16 -0
- package/dist/core/download.js.map +1 -0
- package/dist/core/editor-ui.d.ts +45 -0
- package/dist/core/editor-ui.js +38 -0
- package/dist/core/editor-ui.js.map +1 -0
- package/dist/core/extension-points.d.ts +64 -0
- package/dist/core/feature-context.d.ts +32 -0
- package/dist/core/feature-context.js +46 -0
- package/dist/core/feature-context.js.map +1 -0
- package/dist/core/feature.d.ts +234 -0
- package/dist/core/feature.js +13 -0
- package/dist/core/feature.js.map +1 -0
- package/dist/core/fences.d.ts +16 -0
- package/dist/core/fences.js +105 -0
- package/dist/core/fences.js.map +1 -0
- package/dist/core/fetch-error.d.ts +5 -0
- package/dist/core/fetch-error.js +11 -0
- package/dist/core/fetch-error.js.map +1 -0
- package/dist/core/index.d.ts +28 -0
- package/dist/core/index.js +27 -0
- package/dist/core/metadata-types.d.ts +27 -0
- package/dist/core/metadata-types.js +10 -0
- package/dist/core/metadata-types.js.map +1 -0
- package/dist/core/metadata.d.ts +39 -0
- package/dist/core/metadata.js +76 -0
- package/dist/core/metadata.js.map +1 -0
- package/dist/core/notify.d.ts +31 -0
- package/dist/core/notify.js +7 -0
- package/dist/core/notify.js.map +1 -0
- package/dist/core/pipeline.d.ts +52 -0
- package/dist/core/pipeline.js +78 -0
- package/dist/core/pipeline.js.map +1 -0
- package/dist/core/schema/abilities.d.ts +55 -0
- package/dist/core/schema/abilities.js +113 -0
- package/dist/core/schema/abilities.js.map +1 -0
- package/dist/core/schema/block-ids.d.ts +29 -0
- package/dist/core/schema/block-ids.js +134 -0
- package/dist/core/schema/block-ids.js.map +1 -0
- package/dist/core/schema/hex-color.d.ts +5 -0
- package/dist/core/schema/hex-color.js +7 -0
- package/dist/core/schema/hex-color.js.map +1 -0
- package/dist/core/schema/index.d.ts +21 -0
- package/dist/core/schema/index.js +33 -0
- package/dist/core/schema/index.js.map +1 -0
- package/dist/core/schema/mark-flags.d.ts +12 -0
- package/dist/core/schema/node-flags.d.ts +23 -0
- package/dist/core/schema/node-flags.js +34 -0
- package/dist/core/schema/node-flags.js.map +1 -0
- package/dist/core/schema/opaque-fence.d.ts +11 -0
- package/dist/core/schema/opaque-fence.js +57 -0
- package/dist/core/schema/opaque-fence.js.map +1 -0
- package/dist/core/schema/strike.d.ts +4 -0
- package/dist/core/schema/strike.js +9 -0
- package/dist/core/schema/strike.js.map +1 -0
- package/dist/core/selection-range.d.ts +13 -0
- package/dist/core/selection-range.js +28 -0
- package/dist/core/selection-range.js.map +1 -0
- package/dist/core/slash.d.ts +24 -0
- package/dist/core/slash.js +60 -0
- package/dist/core/slash.js.map +1 -0
- package/dist/core/store.d.ts +22 -0
- package/dist/core/store.js +61 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/suggestion-popup.d.ts +63 -0
- package/dist/core/suggestion-popup.js +57 -0
- package/dist/core/suggestion-popup.js.map +1 -0
- package/dist/core/tag-name.js +11 -0
- package/dist/core/tag-name.js.map +1 -0
- package/dist/core/toolbar-items.d.ts +10 -0
- package/dist/core/toolbar-items.js +206 -0
- package/dist/core/toolbar-items.js.map +1 -0
- package/dist/core/toolbar.d.ts +74 -0
- package/dist/core/toolbar.js +45 -0
- package/dist/core/toolbar.js.map +1 -0
- package/dist/document/DocumentSurface.d.ts +38 -0
- package/dist/document/DocumentSurface.js +44 -0
- package/dist/document/DocumentSurface.js.map +1 -0
- package/dist/document/DocumentSurface.vue.d.ts +56 -0
- package/dist/document/DocumentSurface2.js +71 -0
- package/dist/document/DocumentSurface2.js.map +1 -0
- package/dist/document/react.d.ts +2 -0
- package/dist/document/react.js +1 -0
- package/dist/document/vue.d.ts +2 -0
- package/dist/document/vue.js +1 -0
- package/dist/features/ai/agent-op-review.d.ts +69 -0
- package/dist/features/ai/agent-op-review.js +182 -0
- package/dist/features/ai/agent-op-review.js.map +1 -0
- package/dist/features/ai/agent-ops.d.ts +15 -0
- package/dist/features/ai/agent-ops.js +228 -0
- package/dist/features/ai/agent-ops.js.map +1 -0
- package/dist/features/ai/ai-apply.d.ts +76 -0
- package/dist/features/ai/ai-apply.js +193 -0
- package/dist/features/ai/ai-apply.js.map +1 -0
- package/dist/features/ai/ai-menu.d.ts +38 -0
- package/dist/features/ai/ai-menu.js +20 -0
- package/dist/features/ai/ai-menu.js.map +1 -0
- package/dist/features/ai/ai-review.d.ts +136 -0
- package/dist/features/ai/ai-review.js +543 -0
- package/dist/features/ai/ai-review.js.map +1 -0
- package/dist/features/ai/ai-selection-highlight.d.ts +21 -0
- package/dist/features/ai/ai-selection-highlight.js +44 -0
- package/dist/features/ai/ai-selection-highlight.js.map +1 -0
- package/dist/features/ai/ai-sse.d.ts +28 -0
- package/dist/features/ai/ai-sse.js +82 -0
- package/dist/features/ai/ai-sse.js.map +1 -0
- package/dist/features/ai/assistant.d.ts +53 -0
- package/dist/features/ai/assistant.js +82 -0
- package/dist/features/ai/assistant.js.map +1 -0
- package/dist/features/ai/block-actions.d.ts +20 -0
- package/dist/features/ai/block-actions.js +55 -0
- package/dist/features/ai/block-actions.js.map +1 -0
- package/dist/features/ai/components/AiReviewBar.js +145 -0
- package/dist/features/ai/components/AiReviewBar.js.map +1 -0
- package/dist/features/ai/components/AiReviewBar.vue.d.ts +15 -0
- package/dist/features/ai/components/AiSelectionMenu.js +519 -0
- package/dist/features/ai/components/AiSelectionMenu.js.map +1 -0
- package/dist/features/ai/components/AiSelectionMenu.vue.d.ts +17 -0
- package/dist/features/ai/components/AiSidebar.js +378 -0
- package/dist/features/ai/components/AiSidebar.js.map +1 -0
- package/dist/features/ai/components/AiSidebar.vue.d.ts +26 -0
- package/dist/features/ai/components/DocumentChatAnswer.js +67 -0
- package/dist/features/ai/components/DocumentChatAnswer.js.map +1 -0
- package/dist/features/ai/components/DocumentChatAnswer.vue.d.ts +13 -0
- package/dist/features/ai/components/DocumentChatOps.js +113 -0
- package/dist/features/ai/components/DocumentChatOps.js.map +1 -0
- package/dist/features/ai/components/DocumentChatOps.vue.d.ts +27 -0
- package/dist/features/ai/components/ModelQuickSwitch.js +84 -0
- package/dist/features/ai/components/ModelQuickSwitch.js.map +1 -0
- package/dist/features/ai/components/ModelQuickSwitch.vue.d.ts +23 -0
- package/dist/features/ai/components/SettingsAiTab.js +88 -0
- package/dist/features/ai/components/SettingsAiTab.js.map +1 -0
- package/dist/features/ai/components/SettingsAiTab.vue.d.ts +6 -0
- package/dist/features/ai/components/SettingsModelProfiles.js +260 -0
- package/dist/features/ai/components/SettingsModelProfiles.js.map +1 -0
- package/dist/features/ai/components/SettingsModelProfiles.vue.d.ts +6 -0
- package/dist/features/ai/document-chat-model.d.ts +88 -0
- package/dist/features/ai/document-chat-model.js +190 -0
- package/dist/features/ai/document-chat-model.js.map +1 -0
- package/dist/features/ai/document-chat.d.ts +17 -0
- package/dist/features/ai/document-chat.js +112 -0
- package/dist/features/ai/document-chat.js.map +1 -0
- package/dist/features/ai/feature.d.ts +25 -0
- package/dist/features/ai/feature.js +89 -0
- package/dist/features/ai/feature.js.map +1 -0
- package/dist/features/ai/ghost-autocomplete.d.ts +47 -0
- package/dist/features/ai/ghost-autocomplete.js +204 -0
- package/dist/features/ai/ghost-autocomplete.js.map +1 -0
- package/dist/features/ai/index.d.ts +24 -0
- package/dist/features/ai/index.js +23 -0
- package/dist/features/ai/model-profiles.d.ts +36 -0
- package/dist/features/ai/model-profiles.js +111 -0
- package/dist/features/ai/model-profiles.js.map +1 -0
- package/dist/features/ai/preview-extensions.js +14 -0
- package/dist/features/ai/preview-extensions.js.map +1 -0
- package/dist/features/ai/protocol/agent-ops.d.ts +120 -0
- package/dist/features/ai/protocol/agent-ops.js +298 -0
- package/dist/features/ai/protocol/agent-ops.js.map +1 -0
- package/dist/features/ai/protocol/chat.d.ts +57 -0
- package/dist/features/ai/protocol/chat.js +146 -0
- package/dist/features/ai/protocol/chat.js.map +1 -0
- package/dist/features/ai/protocol/complete.d.ts +21 -0
- package/dist/features/ai/protocol/complete.js +81 -0
- package/dist/features/ai/protocol/complete.js.map +1 -0
- package/dist/features/ai/protocol/index.d.ts +7 -0
- package/dist/features/ai/protocol/index.js +7 -0
- package/dist/features/ai/protocol/models.d.ts +48 -0
- package/dist/features/ai/protocol/models.js +41 -0
- package/dist/features/ai/protocol/models.js.map +1 -0
- package/dist/features/ai/protocol/schemas.d.ts +36 -0
- package/dist/features/ai/protocol/schemas.js +40 -0
- package/dist/features/ai/protocol/schemas.js.map +1 -0
- package/dist/features/ai/protocol/tasks.d.ts +107 -0
- package/dist/features/ai/protocol/tasks.js +227 -0
- package/dist/features/ai/protocol/tasks.js.map +1 -0
- package/dist/features/ai/rate-limit.d.ts +9 -0
- package/dist/features/ai/rate-limit.js +20 -0
- package/dist/features/ai/rate-limit.js.map +1 -0
- package/dist/features/ai/react/AiReviewBar.d.ts +12 -0
- package/dist/features/ai/react/AiReviewBar.js +156 -0
- package/dist/features/ai/react/AiReviewBar.js.map +1 -0
- package/dist/features/ai/react/AiSelectionMenu.d.ts +14 -0
- package/dist/features/ai/react/AiSelectionMenu.js +513 -0
- package/dist/features/ai/react/AiSelectionMenu.js.map +1 -0
- package/dist/features/ai/react/AiSidebar.d.ts +19 -0
- package/dist/features/ai/react/AiSidebar.js +339 -0
- package/dist/features/ai/react/AiSidebar.js.map +1 -0
- package/dist/features/ai/react/DocumentChatAnswer.d.ts +10 -0
- package/dist/features/ai/react/DocumentChatAnswer.js +70 -0
- package/dist/features/ai/react/DocumentChatAnswer.js.map +1 -0
- package/dist/features/ai/react/DocumentChatOps.d.ts +19 -0
- package/dist/features/ai/react/DocumentChatOps.js +111 -0
- package/dist/features/ai/react/DocumentChatOps.js.map +1 -0
- package/dist/features/ai/react/ModelQuickSwitch.d.ts +19 -0
- package/dist/features/ai/react/ModelQuickSwitch.js +89 -0
- package/dist/features/ai/react/ModelQuickSwitch.js.map +1 -0
- package/dist/features/ai/react/SettingsAiTab.d.ts +5 -0
- package/dist/features/ai/react/SettingsAiTab.js +103 -0
- package/dist/features/ai/react/SettingsAiTab.js.map +1 -0
- package/dist/features/ai/react/SettingsModelProfiles.d.ts +8 -0
- package/dist/features/ai/react/SettingsModelProfiles.js +318 -0
- package/dist/features/ai/react/SettingsModelProfiles.js.map +1 -0
- package/dist/features/ai/react/use-ai-assistant.d.ts +22 -0
- package/dist/features/ai/react/use-ai-assistant.js +36 -0
- package/dist/features/ai/react/use-ai-assistant.js.map +1 -0
- package/dist/features/ai/react/use-document-chat.d.ts +32 -0
- package/dist/features/ai/react/use-document-chat.js +43 -0
- package/dist/features/ai/react/use-document-chat.js.map +1 -0
- package/dist/features/ai/react/use-model-profiles.d.ts +20 -0
- package/dist/features/ai/react/use-model-profiles.js +33 -0
- package/dist/features/ai/react/use-model-profiles.js.map +1 -0
- package/dist/features/ai/react.d.ts +23 -0
- package/dist/features/ai/react.js +28 -0
- package/dist/features/ai/react.js.map +1 -0
- package/dist/features/ai/sidebar-flow.d.ts +61 -0
- package/dist/features/ai/sidebar-flow.js +125 -0
- package/dist/features/ai/sidebar-flow.js.map +1 -0
- package/dist/features/ai/use-ai-assistant.d.ts +22 -0
- package/dist/features/ai/use-ai-assistant.js +39 -0
- package/dist/features/ai/use-ai-assistant.js.map +1 -0
- package/dist/features/ai/use-document-chat.d.ts +33 -0
- package/dist/features/ai/use-document-chat.js +45 -0
- package/dist/features/ai/use-document-chat.js.map +1 -0
- package/dist/features/ai/use-model-profiles.d.ts +23 -0
- package/dist/features/ai/use-model-profiles.js +50 -0
- package/dist/features/ai/use-model-profiles.js.map +1 -0
- package/dist/features/ai/vue.d.ts +21 -0
- package/dist/features/ai/vue.js +28 -0
- package/dist/features/ai/vue.js.map +1 -0
- package/dist/features/authors/attribution.d.ts +36 -0
- package/dist/features/authors/attribution.js +94 -0
- package/dist/features/authors/attribution.js.map +1 -0
- package/dist/features/authors/author-color-styles.d.ts +12 -0
- package/dist/features/authors/author-color-styles.js +24 -0
- package/dist/features/authors/author-color-styles.js.map +1 -0
- package/dist/features/authors/components/AuthorColorsButton.js +50 -0
- package/dist/features/authors/components/AuthorColorsButton.js.map +1 -0
- package/dist/features/authors/components/AuthorColorsButton.vue.d.ts +11 -0
- package/dist/features/authors/components/AuthorColorsPanel.js +72 -0
- package/dist/features/authors/components/AuthorColorsPanel.js.map +1 -0
- package/dist/features/authors/components/AuthorColorsPanel.vue.d.ts +11 -0
- package/dist/features/authors/components/SettingsAuthorsTab.js +49 -0
- package/dist/features/authors/components/SettingsAuthorsTab.js.map +1 -0
- package/dist/features/authors/components/SettingsAuthorsTab.vue.d.ts +6 -0
- package/dist/features/authors/feature.d.ts +22 -0
- package/dist/features/authors/feature.js +47 -0
- package/dist/features/authors/feature.js.map +1 -0
- package/dist/features/authors/index.d.ts +7 -0
- package/dist/features/authors/index.js +6 -0
- package/dist/features/authors/react/AuthorColorsButton.d.ts +8 -0
- package/dist/features/authors/react/AuthorColorsButton.js +41 -0
- package/dist/features/authors/react/AuthorColorsButton.js.map +1 -0
- package/dist/features/authors/react/AuthorColorsPanel.d.ts +8 -0
- package/dist/features/authors/react/AuthorColorsPanel.js +125 -0
- package/dist/features/authors/react/AuthorColorsPanel.js.map +1 -0
- package/dist/features/authors/react/SettingsAuthorsTab.d.ts +5 -0
- package/dist/features/authors/react/SettingsAuthorsTab.js +92 -0
- package/dist/features/authors/react/SettingsAuthorsTab.js.map +1 -0
- package/dist/features/authors/react.d.ts +11 -0
- package/dist/features/authors/react.js +16 -0
- package/dist/features/authors/react.js.map +1 -0
- package/dist/features/authors/schema.d.ts +22 -0
- package/dist/features/authors/schema.js +70 -0
- package/dist/features/authors/schema.js.map +1 -0
- package/dist/features/authors/vue.d.ts +10 -0
- package/dist/features/authors/vue.js +16 -0
- package/dist/features/authors/vue.js.map +1 -0
- package/dist/features/block-ui/block-actions.d.ts +17 -0
- package/dist/features/block-ui/block-actions.js +37 -0
- package/dist/features/block-ui/block-actions.js.map +1 -0
- package/dist/features/block-ui/components/BlockActionsOverlay.js +142 -0
- package/dist/features/block-ui/components/BlockActionsOverlay.js.map +1 -0
- package/dist/features/block-ui/components/BlockActionsOverlay.vue.d.ts +25 -0
- package/dist/features/block-ui/components/BlockHandles.js +113 -0
- package/dist/features/block-ui/components/BlockHandles.js.map +1 -0
- package/dist/features/block-ui/components/BlockUi.js +181 -0
- package/dist/features/block-ui/components/BlockUi.js.map +1 -0
- package/dist/features/block-ui/components/BlockUi.vue.d.ts +17 -0
- package/dist/features/block-ui/feature.d.ts +21 -0
- package/dist/features/block-ui/feature.js +23 -0
- package/dist/features/block-ui/feature.js.map +1 -0
- package/dist/features/block-ui/handle-geometry.js +52 -0
- package/dist/features/block-ui/handle-geometry.js.map +1 -0
- package/dist/features/block-ui/index.d.ts +3 -0
- package/dist/features/block-ui/index.js +3 -0
- package/dist/features/block-ui/react/BlockActionsOverlay.d.ts +19 -0
- package/dist/features/block-ui/react/BlockActionsOverlay.js +142 -0
- package/dist/features/block-ui/react/BlockActionsOverlay.js.map +1 -0
- package/dist/features/block-ui/react/BlockHandles.d.ts +15 -0
- package/dist/features/block-ui/react/BlockHandles.js +104 -0
- package/dist/features/block-ui/react/BlockHandles.js.map +1 -0
- package/dist/features/block-ui/react/BlockUi.d.ts +14 -0
- package/dist/features/block-ui/react/BlockUi.js +174 -0
- package/dist/features/block-ui/react/BlockUi.js.map +1 -0
- package/dist/features/block-ui/react.d.ts +11 -0
- package/dist/features/block-ui/react.js +13 -0
- package/dist/features/block-ui/react.js.map +1 -0
- package/dist/features/block-ui/vue.d.ts +9 -0
- package/dist/features/block-ui/vue.js +12 -0
- package/dist/features/block-ui/vue.js.map +1 -0
- package/dist/features/collab/anchor-resolver.d.ts +7 -0
- package/dist/features/collab/anchor-resolver.js +92 -0
- package/dist/features/collab/anchor-resolver.js.map +1 -0
- package/dist/features/collab/feature.d.ts +22 -0
- package/dist/features/collab/feature.js +36 -0
- package/dist/features/collab/feature.js.map +1 -0
- package/dist/features/collab/index.d.ts +3 -0
- package/dist/features/collab/index.js +3 -0
- package/dist/features/collab/react.d.ts +7 -0
- package/dist/features/collab/react.js +10 -0
- package/dist/features/collab/react.js.map +1 -0
- package/dist/features/collab/vue.d.ts +6 -0
- package/dist/features/collab/vue.js +37 -0
- package/dist/features/collab/vue.js.map +1 -0
- package/dist/features/comments/comments-plugin.d.ts +71 -0
- package/dist/features/comments/comments-plugin.js +185 -0
- package/dist/features/comments/comments-plugin.js.map +1 -0
- package/dist/features/comments/components/CommentBubble.js +54 -0
- package/dist/features/comments/components/CommentBubble.js.map +1 -0
- package/dist/features/comments/components/CommentBubble.vue.d.ts +14 -0
- package/dist/features/comments/components/CommentComposer.js +87 -0
- package/dist/features/comments/components/CommentComposer.js.map +1 -0
- package/dist/features/comments/components/CommentComposer.vue.d.ts +21 -0
- package/dist/features/comments/components/CommentThreadView.js +255 -0
- package/dist/features/comments/components/CommentThreadView.js.map +1 -0
- package/dist/features/comments/components/CommentThreadView.vue.d.ts +29 -0
- package/dist/features/comments/components/CommentsListMenu.js +134 -0
- package/dist/features/comments/components/CommentsListMenu.js.map +1 -0
- package/dist/features/comments/components/CommentsListMenu.vue.d.ts +10 -0
- package/dist/features/comments/components/CommentsMargin.js +291 -0
- package/dist/features/comments/components/CommentsMargin.js.map +1 -0
- package/dist/features/comments/components/CommentsMargin.vue.d.ts +16 -0
- package/dist/features/comments/components/CommentsOverlay.js +39 -0
- package/dist/features/comments/components/CommentsOverlay.js.map +1 -0
- package/dist/features/comments/components/CommentsPopover.js +124 -0
- package/dist/features/comments/components/CommentsPopover.js.map +1 -0
- package/dist/features/comments/components/CommentsPopover.vue.d.ts +10 -0
- package/dist/features/comments/components/CommentsToolbarButton.js +61 -0
- package/dist/features/comments/components/CommentsToolbarButton.js.map +1 -0
- package/dist/features/comments/components/SettingsCommentsTab.js +46 -0
- package/dist/features/comments/components/SettingsCommentsTab.js.map +1 -0
- package/dist/features/comments/components/SettingsCommentsTab.vue.d.ts +6 -0
- package/dist/features/comments/feature.d.ts +39 -0
- package/dist/features/comments/feature.js +128 -0
- package/dist/features/comments/feature.js.map +1 -0
- package/dist/features/comments/index.d.ts +6 -0
- package/dist/features/comments/index.js +6 -0
- package/dist/features/comments/model.d.ts +87 -0
- package/dist/features/comments/model.js +390 -0
- package/dist/features/comments/model.js.map +1 -0
- package/dist/features/comments/react/CommentAvatar.js +24 -0
- package/dist/features/comments/react/CommentAvatar.js.map +1 -0
- package/dist/features/comments/react/CommentBubble.d.ts +11 -0
- package/dist/features/comments/react/CommentBubble.js +43 -0
- package/dist/features/comments/react/CommentBubble.js.map +1 -0
- package/dist/features/comments/react/CommentComposer.d.ts +15 -0
- package/dist/features/comments/react/CommentComposer.js +69 -0
- package/dist/features/comments/react/CommentComposer.js.map +1 -0
- package/dist/features/comments/react/CommentThreadView.d.ts +24 -0
- package/dist/features/comments/react/CommentThreadView.js +249 -0
- package/dist/features/comments/react/CommentThreadView.js.map +1 -0
- package/dist/features/comments/react/CommentsListMenu.d.ts +8 -0
- package/dist/features/comments/react/CommentsListMenu.js +115 -0
- package/dist/features/comments/react/CommentsListMenu.js.map +1 -0
- package/dist/features/comments/react/CommentsMargin.d.ts +16 -0
- package/dist/features/comments/react/CommentsMargin.js +294 -0
- package/dist/features/comments/react/CommentsMargin.js.map +1 -0
- package/dist/features/comments/react/CommentsOverlay.d.ts +11 -0
- package/dist/features/comments/react/CommentsOverlay.js +52 -0
- package/dist/features/comments/react/CommentsOverlay.js.map +1 -0
- package/dist/features/comments/react/CommentsPopover.d.ts +15 -0
- package/dist/features/comments/react/CommentsPopover.js +107 -0
- package/dist/features/comments/react/CommentsPopover.js.map +1 -0
- package/dist/features/comments/react/CommentsToolbarButton.d.ts +12 -0
- package/dist/features/comments/react/CommentsToolbarButton.js +52 -0
- package/dist/features/comments/react/CommentsToolbarButton.js.map +1 -0
- package/dist/features/comments/react/SettingsCommentsTab.d.ts +5 -0
- package/dist/features/comments/react/SettingsCommentsTab.js +77 -0
- package/dist/features/comments/react/SettingsCommentsTab.js.map +1 -0
- package/dist/features/comments/react/use-comments.d.ts +17 -0
- package/dist/features/comments/react/use-comments.js +37 -0
- package/dist/features/comments/react/use-comments.js.map +1 -0
- package/dist/features/comments/react.d.ts +23 -0
- package/dist/features/comments/react.js +28 -0
- package/dist/features/comments/react.js.map +1 -0
- package/dist/features/comments/schema.d.ts +51 -0
- package/dist/features/comments/schema.js +41 -0
- package/dist/features/comments/schema.js.map +1 -0
- package/dist/features/comments/shortcuts.js +34 -0
- package/dist/features/comments/shortcuts.js.map +1 -0
- package/dist/features/comments/use-comments.d.ts +37 -0
- package/dist/features/comments/use-comments.js +45 -0
- package/dist/features/comments/use-comments.js.map +1 -0
- package/dist/features/comments/vue.d.ts +20 -0
- package/dist/features/comments/vue.js +28 -0
- package/dist/features/comments/vue.js.map +1 -0
- package/dist/features/composites/ai-brief.d.ts +31 -0
- package/dist/features/composites/ai-brief.js +56 -0
- package/dist/features/composites/ai-brief.js.map +1 -0
- package/dist/features/composites/anchors.d.ts +47 -0
- package/dist/features/composites/anchors.js +137 -0
- package/dist/features/composites/anchors.js.map +1 -0
- package/dist/features/composites/components/CompositeChrome.js +243 -0
- package/dist/features/composites/components/CompositeChrome.js.map +1 -0
- package/dist/features/composites/components/CompositeChrome.vue.d.ts +19 -0
- package/dist/features/composites/components/CompositeDetails.js +158 -0
- package/dist/features/composites/components/CompositeDetails.js.map +1 -0
- package/dist/features/composites/components/CompositeDetails.vue.d.ts +19 -0
- package/dist/features/composites/components/CompositeFieldEditor.js +114 -0
- package/dist/features/composites/components/CompositeFieldEditor.js.map +1 -0
- package/dist/features/composites/components/CompositeFieldEditor.vue.d.ts +23 -0
- package/dist/features/composites/components/CompositeInspector.js +439 -0
- package/dist/features/composites/components/CompositeInspector.js.map +1 -0
- package/dist/features/composites/components/CompositeInspector.vue.d.ts +32 -0
- package/dist/features/composites/components/CompositeStatusMenu.js +51 -0
- package/dist/features/composites/components/CompositeStatusMenu.js.map +1 -0
- package/dist/features/composites/components/CompositeStatusMenu.vue.d.ts +28 -0
- package/dist/features/composites/components/CompositeSummaryEditor.js +79 -0
- package/dist/features/composites/components/CompositeSummaryEditor.js.map +1 -0
- package/dist/features/composites/components/CompositeSummaryEditor.vue.d.ts +18 -0
- package/dist/features/composites/components/CompositeTable.js +348 -0
- package/dist/features/composites/components/CompositeTable.js.map +1 -0
- package/dist/features/composites/components/CompositeTable.vue.d.ts +15 -0
- package/dist/features/composites/components/CompositeTagsEditor.js +95 -0
- package/dist/features/composites/components/CompositeTagsEditor.js.map +1 -0
- package/dist/features/composites/components/CompositeTagsEditor.vue.d.ts +13 -0
- package/dist/features/composites/components/CompositeView.js +46 -0
- package/dist/features/composites/components/CompositeView.js.map +1 -0
- package/dist/features/composites/components/CompositeView.vue.d.ts +96 -0
- package/dist/features/composites/components/SettingsEditingTab.js +119 -0
- package/dist/features/composites/components/SettingsEditingTab.js.map +1 -0
- package/dist/features/composites/components/SettingsEditingTab.vue.d.ts +11 -0
- package/dist/features/composites/convert.d.ts +24 -0
- package/dist/features/composites/convert.js +145 -0
- package/dist/features/composites/convert.js.map +1 -0
- package/dist/features/composites/editing-settings-keys.js +47 -0
- package/dist/features/composites/editing-settings-keys.js.map +1 -0
- package/dist/features/composites/feature.d.ts +30 -0
- package/dist/features/composites/feature.js +305 -0
- package/dist/features/composites/feature.js.map +1 -0
- package/dist/features/composites/fences.d.ts +20 -0
- package/dist/features/composites/fences.js +86 -0
- package/dist/features/composites/fences.js.map +1 -0
- package/dist/features/composites/heading-composites.d.ts +36 -0
- package/dist/features/composites/heading-composites.js +140 -0
- package/dist/features/composites/heading-composites.js.map +1 -0
- package/dist/features/composites/index.d.ts +20 -0
- package/dist/features/composites/index.js +20 -0
- package/dist/features/composites/kinds.d.ts +49 -0
- package/dist/features/composites/kinds.js +131 -0
- package/dist/features/composites/kinds.js.map +1 -0
- package/dist/features/composites/legacy.d.ts +8 -0
- package/dist/features/composites/legacy.js +25 -0
- package/dist/features/composites/legacy.js.map +1 -0
- package/dist/features/composites/markdown-export.d.ts +17 -0
- package/dist/features/composites/markdown-export.js +49 -0
- package/dist/features/composites/markdown-export.js.map +1 -0
- package/dist/features/composites/meta-display.js +46 -0
- package/dist/features/composites/meta-display.js.map +1 -0
- package/dist/features/composites/node-views.d.ts +17 -0
- package/dist/features/composites/node-views.js +18 -0
- package/dist/features/composites/node-views.js.map +1 -0
- package/dist/features/composites/nodes.d.ts +56 -0
- package/dist/features/composites/nodes.js +480 -0
- package/dist/features/composites/nodes.js.map +1 -0
- package/dist/features/composites/outline.d.ts +35 -0
- package/dist/features/composites/outline.js +69 -0
- package/dist/features/composites/outline.js.map +1 -0
- package/dist/features/composites/react/CompositeChrome.d.ts +16 -0
- package/dist/features/composites/react/CompositeChrome.js +234 -0
- package/dist/features/composites/react/CompositeChrome.js.map +1 -0
- package/dist/features/composites/react/CompositeDetails.d.ts +16 -0
- package/dist/features/composites/react/CompositeDetails.js +149 -0
- package/dist/features/composites/react/CompositeDetails.js.map +1 -0
- package/dist/features/composites/react/CompositeFieldEditor.d.ts +18 -0
- package/dist/features/composites/react/CompositeFieldEditor.js +131 -0
- package/dist/features/composites/react/CompositeFieldEditor.js.map +1 -0
- package/dist/features/composites/react/CompositeInspector.d.ts +23 -0
- package/dist/features/composites/react/CompositeInspector.js +506 -0
- package/dist/features/composites/react/CompositeInspector.js.map +1 -0
- package/dist/features/composites/react/CompositeStatusMenu.d.ts +15 -0
- package/dist/features/composites/react/CompositeStatusMenu.js +36 -0
- package/dist/features/composites/react/CompositeStatusMenu.js.map +1 -0
- package/dist/features/composites/react/CompositeSummaryEditor.d.ts +15 -0
- package/dist/features/composites/react/CompositeSummaryEditor.js +85 -0
- package/dist/features/composites/react/CompositeSummaryEditor.js.map +1 -0
- package/dist/features/composites/react/CompositeTable.d.ts +11 -0
- package/dist/features/composites/react/CompositeTable.js +342 -0
- package/dist/features/composites/react/CompositeTable.js.map +1 -0
- package/dist/features/composites/react/CompositeTagsEditor.d.ts +10 -0
- package/dist/features/composites/react/CompositeTagsEditor.js +122 -0
- package/dist/features/composites/react/CompositeTagsEditor.js.map +1 -0
- package/dist/features/composites/react/CompositeView.d.ts +6 -0
- package/dist/features/composites/react/CompositeView.js +30 -0
- package/dist/features/composites/react/CompositeView.js.map +1 -0
- package/dist/features/composites/react/SettingsEditingTab.d.ts +8 -0
- package/dist/features/composites/react/SettingsEditingTab.js +153 -0
- package/dist/features/composites/react/SettingsEditingTab.js.map +1 -0
- package/dist/features/composites/react/use-composite-anchors.d.ts +17 -0
- package/dist/features/composites/react/use-composite-anchors.js +46 -0
- package/dist/features/composites/react/use-composite-anchors.js.map +1 -0
- package/dist/features/composites/react/use-composite-rows.d.ts +11 -0
- package/dist/features/composites/react/use-composite-rows.js +26 -0
- package/dist/features/composites/react/use-composite-rows.js.map +1 -0
- package/dist/features/composites/react.d.ts +24 -0
- package/dist/features/composites/react.js +30 -0
- package/dist/features/composites/react.js.map +1 -0
- package/dist/features/composites/rows-model.d.ts +38 -0
- package/dist/features/composites/rows-model.js +92 -0
- package/dist/features/composites/rows-model.js.map +1 -0
- package/dist/features/composites/rows.d.ts +76 -0
- package/dist/features/composites/rows.js +159 -0
- package/dist/features/composites/rows.js.map +1 -0
- package/dist/features/composites/schema.d.ts +21 -0
- package/dist/features/composites/schema.js +26 -0
- package/dist/features/composites/schema.js.map +1 -0
- package/dist/features/composites/structure-mode.d.ts +11 -0
- package/dist/features/composites/structure-mode.js +16 -0
- package/dist/features/composites/structure-mode.js.map +1 -0
- package/dist/features/composites/structure.d.ts +19 -0
- package/dist/features/composites/structure.js +19 -0
- package/dist/features/composites/structure.js.map +1 -0
- package/dist/features/composites/table-model.js +117 -0
- package/dist/features/composites/table-model.js.map +1 -0
- package/dist/features/composites/tree-root.d.ts +11 -0
- package/dist/features/composites/tree-root.js +16 -0
- package/dist/features/composites/tree-root.js.map +1 -0
- package/dist/features/composites/use-composite-anchors.d.ts +18 -0
- package/dist/features/composites/use-composite-anchors.js +42 -0
- package/dist/features/composites/use-composite-anchors.js.map +1 -0
- package/dist/features/composites/use-composite-rows.d.ts +25 -0
- package/dist/features/composites/use-composite-rows.js +28 -0
- package/dist/features/composites/use-composite-rows.js.map +1 -0
- package/dist/features/composites/vue.d.ts +23 -0
- package/dist/features/composites/vue.js +30 -0
- package/dist/features/composites/vue.js.map +1 -0
- package/dist/features/media/assets.d.ts +30 -0
- package/dist/features/media/assets.js +26 -0
- package/dist/features/media/assets.js.map +1 -0
- package/dist/features/media/audio-recorder.d.ts +25 -0
- package/dist/features/media/audio-recorder.js +123 -0
- package/dist/features/media/audio-recorder.js.map +1 -0
- package/dist/features/media/components/AudioRecorderModal.js +152 -0
- package/dist/features/media/components/AudioRecorderModal.js.map +1 -0
- package/dist/features/media/components/AudioRecorderModal.vue.d.ts +15 -0
- package/dist/features/media/components/AudioView.js +46 -0
- package/dist/features/media/components/AudioView.js.map +1 -0
- package/dist/features/media/components/FileView.js +73 -0
- package/dist/features/media/components/FileView.js.map +1 -0
- package/dist/features/media/components/VideoView.js +47 -0
- package/dist/features/media/components/VideoView.js.map +1 -0
- package/dist/features/media/feature.d.ts +22 -0
- package/dist/features/media/feature.js +101 -0
- package/dist/features/media/feature.js.map +1 -0
- package/dist/features/media/file-import.d.ts +21 -0
- package/dist/features/media/file-import.js +76 -0
- package/dist/features/media/file-import.js.map +1 -0
- package/dist/features/media/index.d.ts +7 -0
- package/dist/features/media/index.js +7 -0
- package/dist/features/media/node-views.d.ts +28 -0
- package/dist/features/media/node-views.js +28 -0
- package/dist/features/media/node-views.js.map +1 -0
- package/dist/features/media/react/AudioRecorderModal.d.ts +12 -0
- package/dist/features/media/react/AudioRecorderModal.js +147 -0
- package/dist/features/media/react/AudioRecorderModal.js.map +1 -0
- package/dist/features/media/react/AudioView.js +32 -0
- package/dist/features/media/react/AudioView.js.map +1 -0
- package/dist/features/media/react/FileView.js +61 -0
- package/dist/features/media/react/FileView.js.map +1 -0
- package/dist/features/media/react/TitleField.js +30 -0
- package/dist/features/media/react/TitleField.js.map +1 -0
- package/dist/features/media/react/VideoView.js +33 -0
- package/dist/features/media/react/VideoView.js.map +1 -0
- package/dist/features/media/react/use-audio-recorder.d.ts +11 -0
- package/dist/features/media/react/use-audio-recorder.js +21 -0
- package/dist/features/media/react/use-audio-recorder.js.map +1 -0
- package/dist/features/media/react.d.ts +19 -0
- package/dist/features/media/react.js +37 -0
- package/dist/features/media/react.js.map +1 -0
- package/dist/features/media/schema.d.ts +59 -0
- package/dist/features/media/schema.js +194 -0
- package/dist/features/media/schema.js.map +1 -0
- package/dist/features/media/upload.d.ts +41 -0
- package/dist/features/media/upload.js +106 -0
- package/dist/features/media/upload.js.map +1 -0
- package/dist/features/media/use-audio-recorder.d.ts +12 -0
- package/dist/features/media/use-audio-recorder.js +21 -0
- package/dist/features/media/use-audio-recorder.js.map +1 -0
- package/dist/features/media/vue.d.ts +19 -0
- package/dist/features/media/vue.js +35 -0
- package/dist/features/media/vue.js.map +1 -0
- package/dist/features/mentions/index.d.ts +22 -0
- package/dist/features/mentions/index.js +34 -0
- package/dist/features/mentions/index.js.map +1 -0
- package/dist/features/mentions/mention-suggestion.d.ts +11 -0
- package/dist/features/mentions/mention-suggestion.js +34 -0
- package/dist/features/mentions/mention-suggestion.js.map +1 -0
- package/dist/features/mentions/mention-text.d.ts +18 -0
- package/dist/features/mentions/mention-text.js +75 -0
- package/dist/features/mentions/mention-text.js.map +1 -0
- package/dist/features/mentions/mention.d.ts +20 -0
- package/dist/features/mentions/mention.js +33 -0
- package/dist/features/mentions/mention.js.map +1 -0
- package/dist/features/mentions/metadata-defaults.d.ts +8 -0
- package/dist/features/mentions/metadata-defaults.js +30 -0
- package/dist/features/mentions/metadata-defaults.js.map +1 -0
- package/dist/features/mentions/normalize.d.ts +10 -0
- package/dist/features/mentions/normalize.js +31 -0
- package/dist/features/mentions/normalize.js.map +1 -0
- package/dist/features/mentions/schema.d.ts +10 -0
- package/dist/features/mentions/schema.js +10 -0
- package/dist/features/mentions/schema.js.map +1 -0
- package/dist/features/mentions/tag-suggestion.d.ts +11 -0
- package/dist/features/mentions/tag-suggestion.js +45 -0
- package/dist/features/mentions/tag-suggestion.js.map +1 -0
- package/dist/features/mentions/tag.d.ts +43 -0
- package/dist/features/mentions/tag.js +155 -0
- package/dist/features/mentions/tag.js.map +1 -0
- package/dist/features/tables/feature.d.ts +14 -0
- package/dist/features/tables/feature.js +100 -0
- package/dist/features/tables/feature.js.map +1 -0
- package/dist/features/tables/index.d.ts +3 -0
- package/dist/features/tables/index.js +3 -0
- package/dist/features/tables/schema.d.ts +6 -0
- package/dist/features/tables/schema.js +27 -0
- package/dist/features/tables/schema.js.map +1 -0
- package/dist/features/themes/components/SettingsAppearanceTab.js +227 -0
- package/dist/features/themes/components/SettingsAppearanceTab.js.map +1 -0
- package/dist/features/themes/components/SettingsAppearanceTab.vue.d.ts +6 -0
- package/dist/features/themes/feature.d.ts +24 -0
- package/dist/features/themes/feature.js +25 -0
- package/dist/features/themes/feature.js.map +1 -0
- package/dist/features/themes/index.d.ts +6 -0
- package/dist/features/themes/index.js +6 -0
- package/dist/features/themes/react/SettingsAppearanceTab.d.ts +5 -0
- package/dist/features/themes/react/SettingsAppearanceTab.js +221 -0
- package/dist/features/themes/react/SettingsAppearanceTab.js.map +1 -0
- package/dist/features/themes/react.d.ts +13 -0
- package/dist/features/themes/react.js +15 -0
- package/dist/features/themes/react.js.map +1 -0
- package/dist/features/themes/schema.d.ts +21 -0
- package/dist/features/themes/schema.js +16 -0
- package/dist/features/themes/schema.js.map +1 -0
- package/dist/features/themes/scope-css.d.ts +5 -0
- package/dist/features/themes/scope-css.js +142 -0
- package/dist/features/themes/scope-css.js.map +1 -0
- package/dist/features/themes/theme-runtime.d.ts +14 -0
- package/dist/features/themes/theme-runtime.js +147 -0
- package/dist/features/themes/theme-runtime.js.map +1 -0
- package/dist/features/themes/vue.d.ts +13 -0
- package/dist/features/themes/vue.js +29 -0
- package/dist/features/themes/vue.js.map +1 -0
- package/dist/features/transcript/TranscriptSegmentView.js +169 -0
- package/dist/features/transcript/TranscriptSegmentView.js.map +1 -0
- package/dist/features/transcript/TranscriptSegmentView.vue.d.ts +96 -0
- package/dist/features/transcript/convert.d.ts +11 -0
- package/dist/features/transcript/convert.js +40 -0
- package/dist/features/transcript/convert.js.map +1 -0
- package/dist/features/transcript/feature.d.ts +25 -0
- package/dist/features/transcript/feature.js +59 -0
- package/dist/features/transcript/feature.js.map +1 -0
- package/dist/features/transcript/index.d.ts +7 -0
- package/dist/features/transcript/index.js +7 -0
- package/dist/features/transcript/react/TranscriptSegmentView.d.ts +6 -0
- package/dist/features/transcript/react/TranscriptSegmentView.js +155 -0
- package/dist/features/transcript/react/TranscriptSegmentView.js.map +1 -0
- package/dist/features/transcript/react.d.ts +9 -0
- package/dist/features/transcript/react.js +12 -0
- package/dist/features/transcript/react.js.map +1 -0
- package/dist/features/transcript/schema.d.ts +9 -0
- package/dist/features/transcript/schema.js +9 -0
- package/dist/features/transcript/schema.js.map +1 -0
- package/dist/features/transcript/segment-node.d.ts +21 -0
- package/dist/features/transcript/segment-node.js +113 -0
- package/dist/features/transcript/segment-node.js.map +1 -0
- package/dist/features/transcript/segment.d.ts +10 -0
- package/dist/features/transcript/segment.js +26 -0
- package/dist/features/transcript/segment.js.map +1 -0
- package/dist/features/transcript/speakers.d.ts +8 -0
- package/dist/features/transcript/speakers.js +22 -0
- package/dist/features/transcript/speakers.js.map +1 -0
- package/dist/features/transcript/vue.d.ts +8 -0
- package/dist/features/transcript/vue.js +12 -0
- package/dist/features/transcript/vue.js.map +1 -0
- package/dist/i18n/de/ai.js +168 -0
- package/dist/i18n/de/ai.js.map +1 -0
- package/dist/i18n/de/authors.js +21 -0
- package/dist/i18n/de/authors.js.map +1 -0
- package/dist/i18n/de/block.js +16 -0
- package/dist/i18n/de/block.js.map +1 -0
- package/dist/i18n/de/comments.js +35 -0
- package/dist/i18n/de/comments.js.map +1 -0
- package/dist/i18n/de/common.js +10 -0
- package/dist/i18n/de/common.js.map +1 -0
- package/dist/i18n/de/composites.js +147 -0
- package/dist/i18n/de/composites.js.map +1 -0
- package/dist/i18n/de/integrations.js +42 -0
- package/dist/i18n/de/integrations.js.map +1 -0
- package/dist/i18n/de/markdown.js +16 -0
- package/dist/i18n/de/markdown.js.map +1 -0
- package/dist/i18n/de/media.js +27 -0
- package/dist/i18n/de/media.js.map +1 -0
- package/dist/i18n/de/mentions.js +10 -0
- package/dist/i18n/de/mentions.js.map +1 -0
- package/dist/i18n/de/outline.js +9 -0
- package/dist/i18n/de/outline.js.map +1 -0
- package/dist/i18n/de/settings.js +12 -0
- package/dist/i18n/de/settings.js.map +1 -0
- package/dist/i18n/de/tables.js +15 -0
- package/dist/i18n/de/tables.js.map +1 -0
- package/dist/i18n/de/themes.js +26 -0
- package/dist/i18n/de/themes.js.map +1 -0
- package/dist/i18n/de/toolbar.js +22 -0
- package/dist/i18n/de/toolbar.js.map +1 -0
- package/dist/i18n/de/transcript.js +10 -0
- package/dist/i18n/de/transcript.js.map +1 -0
- package/dist/i18n/de/tree.js +31 -0
- package/dist/i18n/de/tree.js.map +1 -0
- package/dist/i18n/de.d.ts +502 -0
- package/dist/i18n/de.js +42 -0
- package/dist/i18n/de.js.map +1 -0
- package/dist/i18n/en/ai.js +168 -0
- package/dist/i18n/en/ai.js.map +1 -0
- package/dist/i18n/en/authors.js +21 -0
- package/dist/i18n/en/authors.js.map +1 -0
- package/dist/i18n/en/block.js +16 -0
- package/dist/i18n/en/block.js.map +1 -0
- package/dist/i18n/en/comments.js +35 -0
- package/dist/i18n/en/comments.js.map +1 -0
- package/dist/i18n/en/common.js +10 -0
- package/dist/i18n/en/common.js.map +1 -0
- package/dist/i18n/en/composites.js +145 -0
- package/dist/i18n/en/composites.js.map +1 -0
- package/dist/i18n/en/integrations.js +42 -0
- package/dist/i18n/en/integrations.js.map +1 -0
- package/dist/i18n/en/markdown.js +16 -0
- package/dist/i18n/en/markdown.js.map +1 -0
- package/dist/i18n/en/media.js +27 -0
- package/dist/i18n/en/media.js.map +1 -0
- package/dist/i18n/en/mentions.js +10 -0
- package/dist/i18n/en/mentions.js.map +1 -0
- package/dist/i18n/en/outline.js +9 -0
- package/dist/i18n/en/outline.js.map +1 -0
- package/dist/i18n/en/settings.js +12 -0
- package/dist/i18n/en/settings.js.map +1 -0
- package/dist/i18n/en/tables.js +15 -0
- package/dist/i18n/en/tables.js.map +1 -0
- package/dist/i18n/en/themes.js +26 -0
- package/dist/i18n/en/themes.js.map +1 -0
- package/dist/i18n/en/toolbar.js +22 -0
- package/dist/i18n/en/toolbar.js.map +1 -0
- package/dist/i18n/en/transcript.js +10 -0
- package/dist/i18n/en/transcript.js.map +1 -0
- package/dist/i18n/en/tree.js +31 -0
- package/dist/i18n/en/tree.js.map +1 -0
- package/dist/i18n/en.js +42 -0
- package/dist/i18n/en.js.map +1 -0
- package/dist/i18n/index.d.ts +24 -0
- package/dist/i18n/index.js +31 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +0 -0
- package/dist/integrations/composite-ai/composite-fill.d.ts +17 -0
- package/dist/integrations/composite-ai/composite-fill.js +129 -0
- package/dist/integrations/composite-ai/composite-fill.js.map +1 -0
- package/dist/integrations/composite-ai/composite-summary.d.ts +28 -0
- package/dist/integrations/composite-ai/composite-summary.js +143 -0
- package/dist/integrations/composite-ai/composite-summary.js.map +1 -0
- package/dist/integrations/composite-ai/document-transcribe.d.ts +14 -0
- package/dist/integrations/composite-ai/document-transcribe.js +89 -0
- package/dist/integrations/composite-ai/document-transcribe.js.map +1 -0
- package/dist/integrations/composite-ai/index.d.ts +22 -0
- package/dist/integrations/composite-ai/index.js +80 -0
- package/dist/integrations/composite-ai/index.js.map +1 -0
- package/dist/integrations/composite-media/index.d.ts +19 -0
- package/dist/integrations/composite-media/index.js +72 -0
- package/dist/integrations/composite-media/index.js.map +1 -0
- package/dist/integrations/transcript-ai/index.d.ts +16 -0
- package/dist/integrations/transcript-ai/index.js +63 -0
- package/dist/integrations/transcript-ai/index.js.map +1 -0
- package/dist/integrations/transcript-ai/protocol.d.ts +68 -0
- package/dist/integrations/transcript-ai/protocol.js +132 -0
- package/dist/integrations/transcript-ai/protocol.js.map +1 -0
- package/dist/integrations/transcript-ai/transcript-cleanup.d.ts +35 -0
- package/dist/integrations/transcript-ai/transcript-cleanup.js +169 -0
- package/dist/integrations/transcript-ai/transcript-cleanup.js.map +1 -0
- package/dist/markdown/MarkdownSurface.d.ts +25 -0
- package/dist/markdown/MarkdownSurface.js +93 -0
- package/dist/markdown/MarkdownSurface.js.map +1 -0
- package/dist/markdown/MarkdownSurface.vue.d.ts +76 -0
- package/dist/markdown/MarkdownSurface2.js +237 -0
- package/dist/markdown/MarkdownSurface2.js.map +1 -0
- package/dist/markdown/clipboard.d.ts +17 -0
- package/dist/markdown/clipboard.js +125 -0
- package/dist/markdown/clipboard.js.map +1 -0
- package/dist/markdown/document.d.ts +36 -0
- package/dist/markdown/document.js +100 -0
- package/dist/markdown/document.js.map +1 -0
- package/dist/markdown/frontmatter.d.ts +18 -0
- package/dist/markdown/frontmatter.js +32 -0
- package/dist/markdown/frontmatter.js.map +1 -0
- package/dist/markdown/index.d.ts +6 -0
- package/dist/markdown/index.js +6 -0
- package/dist/markdown/policy.d.ts +34 -0
- package/dist/markdown/policy.js +78 -0
- package/dist/markdown/policy.js.map +1 -0
- package/dist/markdown/react.d.ts +2 -0
- package/dist/markdown/react.js +1 -0
- package/dist/markdown/source-mode.d.ts +49 -0
- package/dist/markdown/source-mode.js +86 -0
- package/dist/markdown/source-mode.js.map +1 -0
- package/dist/markdown/vue.d.ts +2 -0
- package/dist/markdown/vue.js +1 -0
- package/dist/nuxt/module.d.ts +62 -0
- package/dist/nuxt/module.js +101 -0
- package/dist/nuxt/module.js.map +1 -0
- package/dist/nuxt/runtime/install-context.d.ts +16 -0
- package/dist/nuxt/runtime/install-context.js +25 -0
- package/dist/nuxt/runtime/install-context.js.map +1 -0
- package/dist/nuxt/runtime/plugins/editor-context-nuxt-ui.client.ts +8 -0
- package/dist/nuxt/runtime/server/api/ai/chat.post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/ai/chat.post.js +8 -0
- package/dist/nuxt/runtime/server/api/ai/chat.post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/ai/complete.post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/ai/complete.post.js +8 -0
- package/dist/nuxt/runtime/server/api/ai/complete.post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/ai/generate.post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/ai/generate.post.js +8 -0
- package/dist/nuxt/runtime/server/api/ai/generate.post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/ai/models.get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/ai/models.get.js +8 -0
- package/dist/nuxt/runtime/server/api/ai/models.get.js.map +1 -0
- package/dist/nuxt/runtime/server/api/ai/transcribe.post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/ai/transcribe.post.js +8 -0
- package/dist/nuxt/runtime/server/api/ai/transcribe.post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/ai/transcript-cleanup.post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/ai/transcript-cleanup.post.js +8 -0
- package/dist/nuxt/runtime/server/api/ai/transcript-cleanup.post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/assets/[id]/[name].get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/assets/[id]/[name].get.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/assets/[id]/[name].get.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/assets/[id].post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/assets/[id].post.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/assets/[id].post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/settings.get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/settings.get.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/settings.get.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/settings.put.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/settings.put.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/settings.put.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/tags.get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/tags.get.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/tags.get.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/themes/[id].delete.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/themes/[id].delete.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/themes/[id].delete.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/themes/[id].get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/themes/[id].get.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/themes/[id].get.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/themes/index.get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/themes/index.get.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/themes/index.get.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/themes/index.post.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/themes/index.post.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/themes/index.post.js.map +1 -0
- package/dist/nuxt/runtime/server/api/editor/users.get.d.ts +5 -0
- package/dist/nuxt/runtime/server/api/editor/users.get.js +8 -0
- package/dist/nuxt/runtime/server/api/editor/users.get.js.map +1 -0
- package/dist/nuxt/runtime/server/plugins/collab.d.ts +5 -0
- package/dist/nuxt/runtime/server/plugins/collab.js +10 -0
- package/dist/nuxt/runtime/server/plugins/collab.js.map +1 -0
- package/dist/nuxt/runtime/server/plugins/editor-server.d.ts +5 -0
- package/dist/nuxt/runtime/server/plugins/editor-server.js +20 -0
- package/dist/nuxt/runtime/server/plugins/editor-server.js.map +1 -0
- package/dist/nuxt/runtime/server/routes/collab/[id].d.ts +5 -0
- package/dist/nuxt/runtime/server/routes/collab/[id].js +35 -0
- package/dist/nuxt/runtime/server/routes/collab/[id].js.map +1 -0
- package/dist/nuxt/runtime/server/utils/editor-route.d.ts +11 -0
- package/dist/nuxt/runtime/server/utils/editor-route.js +49 -0
- package/dist/nuxt/runtime/server/utils/editor-route.js.map +1 -0
- package/dist/outline/EditorOutline.js +124 -0
- package/dist/outline/EditorOutline.js.map +1 -0
- package/dist/outline/EditorOutline.vue.d.ts +15 -0
- package/dist/outline/heading-outline.d.ts +26 -0
- package/dist/outline/heading-outline.js +46 -0
- package/dist/outline/heading-outline.js.map +1 -0
- package/dist/outline/index.d.ts +2 -0
- package/dist/outline/index.js +1 -0
- package/dist/outline/react/EditorOutline.d.ts +12 -0
- package/dist/outline/react/EditorOutline.js +112 -0
- package/dist/outline/react/EditorOutline.js.map +1 -0
- package/dist/outline/react.d.ts +2 -0
- package/dist/outline/react.js +1 -0
- package/dist/outline/vue.d.ts +2 -0
- package/dist/outline/vue.js +1 -0
- package/dist/presets/advanced.d.ts +33 -0
- package/dist/presets/advanced.js +50 -0
- package/dist/presets/advanced.js.map +1 -0
- package/dist/presets/simple.d.ts +9 -0
- package/dist/presets/simple.js +12 -0
- package/dist/presets/simple.js.map +1 -0
- package/dist/react/AdvancedEditor.d.ts +23 -0
- package/dist/react/AdvancedEditor.js +24 -0
- package/dist/react/AdvancedEditor.js.map +1 -0
- package/dist/react/EditorSettingsModal.d.ts +14 -0
- package/dist/react/EditorSettingsModal.js +40 -0
- package/dist/react/EditorSettingsModal.js.map +1 -0
- package/dist/react/EditorSettingsPanel.d.ts +18 -0
- package/dist/react/EditorSettingsPanel.js +40 -0
- package/dist/react/EditorSettingsPanel.js.map +1 -0
- package/dist/react/EditorSurface.d.ts +61 -0
- package/dist/react/EditorSurface.js +277 -0
- package/dist/react/EditorSurface.js.map +1 -0
- package/dist/react/EditorToolbar.d.ts +15 -0
- package/dist/react/EditorToolbar.js +182 -0
- package/dist/react/EditorToolbar.js.map +1 -0
- package/dist/react/Icon.d.ts +13 -0
- package/dist/react/Icon.js +19 -0
- package/dist/react/Icon.js.map +1 -0
- package/dist/react/SettingsSection.d.ts +10 -0
- package/dist/react/SettingsSection.js +22 -0
- package/dist/react/SettingsSection.js.map +1 -0
- package/dist/react/SimpleEditor.d.ts +27 -0
- package/dist/react/SimpleEditor.js +22 -0
- package/dist/react/SimpleEditor.js.map +1 -0
- package/dist/react/advanced-preset.d.ts +11 -0
- package/dist/react/advanced-preset.js +31 -0
- package/dist/react/advanced-preset.js.map +1 -0
- package/dist/react/advanced.d.ts +4 -0
- package/dist/react/advanced.js +3 -0
- package/dist/react/context.d.ts +12 -0
- package/dist/react/context.js +21 -0
- package/dist/react/context.js.map +1 -0
- package/dist/react/editor-ui.d.ts +14 -0
- package/dist/react/editor-ui.js +20 -0
- package/dist/react/editor-ui.js.map +1 -0
- package/dist/react/index.d.ts +17 -0
- package/dist/react/index.js +17 -0
- package/dist/react/notify.d.ts +6 -0
- package/dist/react/notify.js +25 -0
- package/dist/react/notify.js.map +1 -0
- package/dist/react/settings.d.ts +17 -0
- package/dist/react/settings.js +27 -0
- package/dist/react/settings.js.map +1 -0
- package/dist/react/simple.d.ts +2 -0
- package/dist/react/simple.js +1 -0
- package/dist/react/styles/advanced.css +18 -0
- package/dist/react/styles/themes-bridge.css +26 -0
- package/dist/react/styles/ui-vars.css +20 -0
- package/dist/react/suggestion-renderer.d.ts +12 -0
- package/dist/react/suggestion-renderer.js +90 -0
- package/dist/react/suggestion-renderer.js.map +1 -0
- package/dist/react/ui/alert.js +38 -0
- package/dist/react/ui/alert.js.map +1 -0
- package/dist/react/ui/avatar.js +24 -0
- package/dist/react/ui/avatar.js.map +1 -0
- package/dist/react/ui/badge.js +30 -0
- package/dist/react/ui/badge.js.map +1 -0
- package/dist/react/ui/button.js +50 -0
- package/dist/react/ui/button.js.map +1 -0
- package/dist/react/ui/collapsible.js +19 -0
- package/dist/react/ui/collapsible.js.map +1 -0
- package/dist/react/ui/command.js +47 -0
- package/dist/react/ui/command.js.map +1 -0
- package/dist/react/ui/dialog.js +88 -0
- package/dist/react/ui/dialog.js.map +1 -0
- package/dist/react/ui/dropdown-menu.js +70 -0
- package/dist/react/ui/dropdown-menu.js.map +1 -0
- package/dist/react/ui/input-group.js +57 -0
- package/dist/react/ui/input-group.js.map +1 -0
- package/dist/react/ui/input.js +16 -0
- package/dist/react/ui/input.js.map +1 -0
- package/dist/react/ui/label.js +17 -0
- package/dist/react/ui/label.js.map +1 -0
- package/dist/react/ui/popover.js +36 -0
- package/dist/react/ui/popover.js.map +1 -0
- package/dist/react/ui/radio-group.js +29 -0
- package/dist/react/ui/radio-group.js.map +1 -0
- package/dist/react/ui/select.js +88 -0
- package/dist/react/ui/select.js.map +1 -0
- package/dist/react/ui/separator.js +18 -0
- package/dist/react/ui/separator.js.map +1 -0
- package/dist/react/ui/switch.js +21 -0
- package/dist/react/ui/switch.js.map +1 -0
- package/dist/react/ui/table.js +44 -0
- package/dist/react/ui/table.js.map +1 -0
- package/dist/react/ui/tabs.js +41 -0
- package/dist/react/ui/tabs.js.map +1 -0
- package/dist/react/ui/textarea.js +15 -0
- package/dist/react/ui/textarea.js.map +1 -0
- package/dist/react/ui/tooltip.js +37 -0
- package/dist/react/ui/tooltip.js.map +1 -0
- package/dist/react/ui/utils.d.ts +5 -0
- package/dist/react/ui/utils.js +10 -0
- package/dist/react/ui/utils.js.map +1 -0
- package/dist/react/use-editor-i18n.d.ts +12 -0
- package/dist/react/use-editor-i18n.js +17 -0
- package/dist/react/use-editor-i18n.js.map +1 -0
- package/dist/react/use-notifier.d.ts +11 -0
- package/dist/react/use-notifier.js +25 -0
- package/dist/react/use-notifier.js.map +1 -0
- package/dist/react/use-store.d.ts +6 -0
- package/dist/react/use-store.js +10 -0
- package/dist/react/use-store.js.map +1 -0
- package/dist/schema/advanced.d.ts +14 -0
- package/dist/schema/advanced.js +43 -0
- package/dist/schema/advanced.js.map +1 -0
- package/dist/schema/simple.d.ts +10 -0
- package/dist/schema/simple.js +13 -0
- package/dist/schema/simple.js.map +1 -0
- package/dist/server/adapter.d.ts +101 -0
- package/dist/server/ai.d.ts +101 -0
- package/dist/server/ai.js +105 -0
- package/dist/server/ai.js.map +1 -0
- package/dist/server/collab-state.d.ts +16 -0
- package/dist/server/collab-state.js +43 -0
- package/dist/server/collab-state.js.map +1 -0
- package/dist/server/collab.d.ts +68 -0
- package/dist/server/collab.js +187 -0
- package/dist/server/collab.js.map +1 -0
- package/dist/server/errors.d.ts +17 -0
- package/dist/server/errors.js +26 -0
- package/dist/server/errors.js.map +1 -0
- package/dist/server/handlers/ai.d.ts +223 -0
- package/dist/server/handlers/ai.js +422 -0
- package/dist/server/handlers/ai.js.map +1 -0
- package/dist/server/handlers/context.d.ts +64 -0
- package/dist/server/handlers/context.js +85 -0
- package/dist/server/handlers/context.js.map +1 -0
- package/dist/server/handlers/editor.d.ts +107 -0
- package/dist/server/handlers/editor.js +241 -0
- package/dist/server/handlers/editor.js.map +1 -0
- package/dist/server/handlers/index.d.ts +4 -0
- package/dist/server/handlers/index.js +4 -0
- package/dist/server/host.d.ts +61 -0
- package/dist/server/host.js +105 -0
- package/dist/server/host.js.map +1 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +7 -0
- package/dist/server/node.d.ts +24 -0
- package/dist/server/node.js +54 -0
- package/dist/server/node.js.map +1 -0
- package/dist/server/rate-limit.d.ts +22 -0
- package/dist/server/rate-limit.js +34 -0
- package/dist/server/rate-limit.js.map +1 -0
- package/dist/settings/index.d.ts +110 -0
- package/dist/settings/index.js +114 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/values.d.ts +35 -0
- package/dist/settings/values.js +41 -0
- package/dist/settings/values.js.map +1 -0
- package/dist/styles/ai.css +77 -0
- package/dist/styles/authors.css +18 -0
- package/dist/styles/block-ui.css +16 -0
- package/dist/styles/collab.css +26 -0
- package/dist/styles/comments.css +11 -0
- package/dist/styles/composites.css +56 -0
- package/dist/styles/core.css +99 -0
- package/dist/styles/media.css +8 -0
- package/dist/styles/mentions.css +24 -0
- package/dist/styles/tables.css +25 -0
- package/dist/styles/themes.css +622 -0
- package/dist/styles/tokens.css +29 -0
- package/dist/styles/transcript.css +13 -0
- package/dist/tree/DocumentTree.js +595 -0
- package/dist/tree/DocumentTree.js.map +1 -0
- package/dist/tree/DocumentTree.vue.d.ts +36 -0
- package/dist/tree/folder-paths.js +11 -0
- package/dist/tree/folder-paths.js.map +1 -0
- package/dist/tree/index.d.ts +4 -0
- package/dist/tree/index.js +1 -0
- package/dist/tree/react/DocumentTree.d.ts +24 -0
- package/dist/tree/react/DocumentTree.js +579 -0
- package/dist/tree/react/DocumentTree.js.map +1 -0
- package/dist/tree/react/use-tree-view.d.ts +14 -0
- package/dist/tree/react/use-tree-view.js +21 -0
- package/dist/tree/react/use-tree-view.js.map +1 -0
- package/dist/tree/react.d.ts +3 -0
- package/dist/tree/react.js +3 -0
- package/dist/tree/store.d.ts +45 -0
- package/dist/tree/tree-items.js +221 -0
- package/dist/tree/tree-items.js.map +1 -0
- package/dist/tree/tree-view-model.d.ts +29 -0
- package/dist/tree/tree-view-model.js +71 -0
- package/dist/tree/tree-view-model.js.map +1 -0
- package/dist/tree/tree-view.d.ts +15 -0
- package/dist/tree/tree-view.js +21 -0
- package/dist/tree/tree-view.js.map +1 -0
- package/dist/tree/types.d.ts +23 -0
- package/dist/tree/types.js +0 -0
- package/dist/tree/vue.d.ts +3 -0
- package/dist/tree/vue.js +3 -0
- package/dist/vue/AdvancedEditor.js +100 -0
- package/dist/vue/AdvancedEditor.js.map +1 -0
- package/dist/vue/AdvancedEditor.vue.d.ts +71 -0
- package/dist/vue/SimpleEditor.js +61 -0
- package/dist/vue/SimpleEditor.js.map +1 -0
- package/dist/vue/SimpleEditor.vue.d.ts +36 -0
- package/dist/vue/advanced-preset.d.ts +13 -0
- package/dist/vue/advanced-preset.js +33 -0
- package/dist/vue/advanced-preset.js.map +1 -0
- package/dist/vue/advanced.d.ts +3 -0
- package/dist/vue/advanced.js +3 -0
- package/dist/vue/components/EditorSettingsModal.js +69 -0
- package/dist/vue/components/EditorSettingsModal.js.map +1 -0
- package/dist/vue/components/EditorSettingsModal.vue.d.ts +24 -0
- package/dist/vue/components/EditorSettingsPanel.js +58 -0
- package/dist/vue/components/EditorSettingsPanel.js.map +1 -0
- package/dist/vue/components/EditorSettingsPanel.vue.d.ts +29 -0
- package/dist/vue/components/EditorSurface.js +229 -0
- package/dist/vue/components/EditorSurface.js.map +1 -0
- package/dist/vue/components/EditorSurface.vue.d.ts +68 -0
- package/dist/vue/components/EditorToolbar.js +189 -0
- package/dist/vue/components/EditorToolbar.js.map +1 -0
- package/dist/vue/components/EditorToolbar.vue.d.ts +17 -0
- package/dist/vue/components/SettingsSection.js +26 -0
- package/dist/vue/components/SettingsSection.js.map +1 -0
- package/dist/vue/components/SettingsSection.vue.d.ts +21 -0
- package/dist/vue/components/SuggestionList.js +91 -0
- package/dist/vue/components/SuggestionList.js.map +1 -0
- package/dist/vue/components/SuggestionList.vue.d.ts +19 -0
- package/dist/vue/context.d.ts +24 -0
- package/dist/vue/context.js +42 -0
- package/dist/vue/context.js.map +1 -0
- package/dist/vue/index.d.ts +26 -0
- package/dist/vue/index.js +16 -0
- package/dist/vue/kit/index.d.ts +3 -0
- package/dist/vue/kit/index.js +1 -0
- package/dist/vue/kit/nuxt-ui.css +24 -0
- package/dist/vue/kit/nuxt-ui.d.ts +31 -0
- package/dist/vue/kit/nuxt-ui.js +101 -0
- package/dist/vue/kit/nuxt-ui.js.map +1 -0
- package/dist/vue/kit/types.d.ts +370 -0
- package/dist/vue/kit/use-ui-kit.d.ts +12 -0
- package/dist/vue/kit/use-ui-kit.js +17 -0
- package/dist/vue/kit/use-ui-kit.js.map +1 -0
- package/dist/vue/notify.d.ts +12 -0
- package/dist/vue/notify.js +27 -0
- package/dist/vue/notify.js.map +1 -0
- package/dist/vue/settings.d.ts +16 -0
- package/dist/vue/settings.js +64 -0
- package/dist/vue/settings.js.map +1 -0
- package/dist/vue/simple.d.ts +2 -0
- package/dist/vue/simple.js +1 -0
- package/dist/vue/store-ref.d.ts +20 -0
- package/dist/vue/store-ref.js +59 -0
- package/dist/vue/store-ref.js.map +1 -0
- package/dist/vue/suggestion-renderer.d.ts +6 -0
- package/dist/vue/suggestion-renderer.js +20 -0
- package/dist/vue/suggestion-renderer.js.map +1 -0
- package/dist/vue/use-editor-i18n.d.ts +12 -0
- package/dist/vue/use-editor-i18n.js +17 -0
- package/dist/vue/use-editor-i18n.js.map +1 -0
- package/dist/vue/use-editor-ui.d.ts +15 -0
- package/dist/vue/use-editor-ui.js +23 -0
- package/dist/vue/use-editor-ui.js.map +1 -0
- package/dist/vue/use-notifier.d.ts +11 -0
- package/dist/vue/use-notifier.js +19 -0
- package/dist/vue/use-notifier.js.map +1 -0
- package/docs/extending.md +538 -0
- package/docs/integration.md +537 -0
- package/docs/llms.md +375 -0
- package/docs/usage.md +1071 -0
- package/package.json +619 -4
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { conversionsOf } from "../../../core/pipeline.js";
|
|
2
|
+
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
3
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
4
|
+
import { CHAT_LIMITS } from "../protocol/chat.js";
|
|
5
|
+
import { AI_LIMITS, blockTasks, withTaskHeading } from "../protocol/tasks.js";
|
|
6
|
+
import { selectionScope } from "../agent-ops.js";
|
|
7
|
+
import { createAiSidebarFlow } from "../sidebar-flow.js";
|
|
8
|
+
import { useNotifier } from "../../../vue/use-notifier.js";
|
|
9
|
+
import { useAiAssistant } from "../use-ai-assistant.js";
|
|
10
|
+
import _sfc_main$1 from "./ModelQuickSwitch.js";
|
|
11
|
+
import { useDocumentChat } from "../use-document-chat.js";
|
|
12
|
+
import _sfc_main$2 from "./DocumentChatAnswer.js";
|
|
13
|
+
import _sfc_main$3 from "./DocumentChatOps.js";
|
|
14
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, nextTick, onBeforeUnmount, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
15
|
+
//#region src/features/ai/components/AiSidebar.vue
|
|
16
|
+
const _hoisted_1 = ["aria-label"];
|
|
17
|
+
const _hoisted_2 = { class: "flex flex-col gap-2 border-b border-[var(--sk-border)] p-3" };
|
|
18
|
+
const _hoisted_3 = { class: "flex items-center gap-2" };
|
|
19
|
+
const _hoisted_4 = { class: "font-semibold text-[var(--sk-fg-highlighted)]" };
|
|
20
|
+
const _hoisted_5 = {
|
|
21
|
+
key: 0,
|
|
22
|
+
class: "flex items-center gap-1"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_6 = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "text-sm text-[var(--sk-muted)]"
|
|
27
|
+
};
|
|
28
|
+
const _hoisted_7 = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "max-w-[85%] self-end whitespace-pre-wrap rounded-lg bg-[var(--sk-bg-elevated)] px-3 py-2 text-sm"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_8 = {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: "flex flex-col gap-2 rounded-lg border border-[var(--sk-border)] p-3 text-sm"
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_9 = { class: "flex items-center gap-1.5 text-xs font-medium text-[var(--sk-muted)]" };
|
|
37
|
+
const _hoisted_10 = { class: "truncate" };
|
|
38
|
+
const _hoisted_11 = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "whitespace-pre-wrap text-xs text-[var(--sk-muted)]"
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_12 = { class: "flex justify-end gap-2" };
|
|
43
|
+
const _hoisted_13 = {
|
|
44
|
+
key: 2,
|
|
45
|
+
class: "text-sm"
|
|
46
|
+
};
|
|
47
|
+
const _hoisted_14 = { class: "flex flex-col gap-2 border-t border-[var(--sk-border)] p-3" };
|
|
48
|
+
const _hoisted_15 = ["aria-label"];
|
|
49
|
+
const _hoisted_16 = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "flex items-center gap-1"
|
|
52
|
+
};
|
|
53
|
+
const _hoisted_17 = { class: "flex justify-end gap-2" };
|
|
54
|
+
/**
|
|
55
|
+
* Docked AI sidebar „KI“: a plain `aside` the host places beside the editor (no overlay, no focus trap), so text can be
|
|
56
|
+
* selected and changes reviewed next to it. Document chat: questions about the open document, answers stream in with
|
|
57
|
+
* quote links; edit requests come back as operations shown in the in-document review, limited to the selected blocks
|
|
58
|
+
* while text is selected. Block generation: quick actions (`blockTasks()`) stream their result into the conversation,
|
|
59
|
+
* where „Übernehmen“ inserts it after the caret's block (or at the document's end) and „Verwerfen“ drops it.
|
|
60
|
+
* Unmounting ends both: hosts hide it with `v-show` so the conversation survives closing.
|
|
61
|
+
*/
|
|
62
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
63
|
+
__name: "AiSidebar",
|
|
64
|
+
props: /*@__PURE__*/ mergeModels({ editor: {} }, {
|
|
65
|
+
"open": { type: Boolean },
|
|
66
|
+
"openModifiers": {}
|
|
67
|
+
}),
|
|
68
|
+
emits: ["update:open"],
|
|
69
|
+
setup(__props) {
|
|
70
|
+
const props = __props;
|
|
71
|
+
const open = useModel(__props, "open");
|
|
72
|
+
const { Alert: UAlert, Badge: UBadge, Button: UButton, Icon: UIcon, Input: UInput, Textarea: UTextarea, Tooltip: UTooltip } = useUiKit();
|
|
73
|
+
const { t } = useEditorI18n();
|
|
74
|
+
const { model: chat, messages, ops, streaming, error, abort, decide, reveal } = useDocumentChat(() => props.editor);
|
|
75
|
+
const { model: assistant, status: generationStatus, output, error: generationError, abort: abortGeneration } = useAiAssistant(() => props.editor);
|
|
76
|
+
const question = ref("");
|
|
77
|
+
const scroller = ref();
|
|
78
|
+
const notify = useNotifier(() => props.editor);
|
|
79
|
+
const flow = createAiSidebarFlow({
|
|
80
|
+
chat,
|
|
81
|
+
assistant,
|
|
82
|
+
notify,
|
|
83
|
+
t,
|
|
84
|
+
editor: () => props.editor
|
|
85
|
+
});
|
|
86
|
+
const scope = computed(() => props.editor && !props.editor.isDestroyed ? selectionScope(props.editor.state) : null);
|
|
87
|
+
const providers = computed(() => props.editor ? conversionsOf(props.editor) : []);
|
|
88
|
+
const quickActions = blockTasks().filter((task) => !task.caretMenu);
|
|
89
|
+
/** The task whose inline prompt field is open (tasks with `needsPrompt`, i.e. `generate`); null while closed. */
|
|
90
|
+
const promptTask = shallowRef(null);
|
|
91
|
+
const prompt = ref("");
|
|
92
|
+
/** The generation streaming right now (a turn in `messages`); null while none runs. */
|
|
93
|
+
const running = shallowRef(flow.running.get());
|
|
94
|
+
const stopRunning = flow.running.subscribe((value) => {
|
|
95
|
+
running.value = value;
|
|
96
|
+
});
|
|
97
|
+
const busy = computed(() => streaming.value || generationStatus.value === "streaming");
|
|
98
|
+
async function send() {
|
|
99
|
+
const text = question.value.trim();
|
|
100
|
+
if (!text || !flow.canRun()) return;
|
|
101
|
+
question.value = "";
|
|
102
|
+
if (!await flow.send(text) && !question.value) question.value = text;
|
|
103
|
+
}
|
|
104
|
+
function clearSelection() {
|
|
105
|
+
const editor = props.editor;
|
|
106
|
+
if (editor) editor.commands.setTextSelection(editor.state.selection.to);
|
|
107
|
+
}
|
|
108
|
+
function onReveal(op) {
|
|
109
|
+
if (props.editor && !reveal(props.editor, op)) notify({
|
|
110
|
+
title: t("ai.sidebar.revealMissing"),
|
|
111
|
+
kind: "warning",
|
|
112
|
+
icon: "i-lucide-search-x"
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function onKeydown(event) {
|
|
116
|
+
if (event.key !== "Enter" || event.shiftKey || event.isComposing) return;
|
|
117
|
+
event.preventDefault();
|
|
118
|
+
send();
|
|
119
|
+
}
|
|
120
|
+
/** Quick action chip: a task with a prompt opens (or closes) its inline prompt field, the others run right away. */
|
|
121
|
+
function pick(task) {
|
|
122
|
+
if (task.needsPrompt) promptTask.value = promptTask.value === task ? null : task;
|
|
123
|
+
else flow.generate(task);
|
|
124
|
+
}
|
|
125
|
+
async function submitPrompt() {
|
|
126
|
+
const task = promptTask.value;
|
|
127
|
+
const text = prompt.value.trim();
|
|
128
|
+
if (!task || !text || !flow.canRun()) return;
|
|
129
|
+
prompt.value = "";
|
|
130
|
+
promptTask.value = null;
|
|
131
|
+
if (!await flow.generate(task, text) && !prompt.value) {
|
|
132
|
+
prompt.value = text;
|
|
133
|
+
promptTask.value = task;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function onPromptKeydown(event) {
|
|
137
|
+
if (event.isComposing) return;
|
|
138
|
+
if (event.key === "Escape") {
|
|
139
|
+
event.preventDefault();
|
|
140
|
+
promptTask.value = null;
|
|
141
|
+
} else if (event.key === "Enter") {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
submitPrompt();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/** The streamed result while `generation` runs, else its final Markdown. */
|
|
147
|
+
function generationMarkdown(generation) {
|
|
148
|
+
return generation === running.value ? output.value : generation.markdown;
|
|
149
|
+
}
|
|
150
|
+
watch(() => [
|
|
151
|
+
messages.value.length,
|
|
152
|
+
messages.value.at(-1)?.content,
|
|
153
|
+
messages.value.at(-1)?.ops?.length,
|
|
154
|
+
output.value
|
|
155
|
+
], async () => {
|
|
156
|
+
await nextTick();
|
|
157
|
+
scroller.value?.scrollTo({ top: scroller.value.scrollHeight });
|
|
158
|
+
});
|
|
159
|
+
onBeforeUnmount(() => {
|
|
160
|
+
flow.end();
|
|
161
|
+
stopRunning();
|
|
162
|
+
});
|
|
163
|
+
return (_ctx, _cache) => {
|
|
164
|
+
return openBlock(), createElementBlock("aside", {
|
|
165
|
+
class: "flex min-h-0 flex-col",
|
|
166
|
+
"aria-label": unref(t)("ai.sidebar.label")
|
|
167
|
+
}, [
|
|
168
|
+
createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [
|
|
169
|
+
createElementVNode("h2", _hoisted_4, toDisplayString(unref(t)("ai.sidebar.title")), 1),
|
|
170
|
+
createVNode(_sfc_main$1, {
|
|
171
|
+
slot: "generate",
|
|
172
|
+
size: "xs",
|
|
173
|
+
editor: __props.editor,
|
|
174
|
+
class: "min-w-0 flex-1"
|
|
175
|
+
}, null, 8, ["editor"]),
|
|
176
|
+
createVNode(unref(UTooltip), { text: unref(t)("ai.sidebar.newConversation") }, {
|
|
177
|
+
default: withCtx(() => [createVNode(unref(UButton), {
|
|
178
|
+
size: "sm",
|
|
179
|
+
color: "neutral",
|
|
180
|
+
variant: "ghost",
|
|
181
|
+
icon: "i-lucide-message-square-plus",
|
|
182
|
+
"aria-label": unref(t)("ai.sidebar.newConversation"),
|
|
183
|
+
disabled: !unref(messages).length && !unref(error) && !unref(generationError),
|
|
184
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(flow).newConversation())
|
|
185
|
+
}, null, 8, ["aria-label", "disabled"])]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["text"]),
|
|
188
|
+
createVNode(unref(UButton), {
|
|
189
|
+
size: "sm",
|
|
190
|
+
color: "neutral",
|
|
191
|
+
variant: "ghost",
|
|
192
|
+
icon: "i-lucide-x",
|
|
193
|
+
"aria-label": unref(t)("ai.sidebar.close"),
|
|
194
|
+
onClick: _cache[1] || (_cache[1] = ($event) => open.value = false)
|
|
195
|
+
}, null, 8, ["aria-label"])
|
|
196
|
+
]), scope.value ? (openBlock(), createElementBlock("div", _hoisted_5, [createVNode(unref(UBadge), {
|
|
197
|
+
color: "primary",
|
|
198
|
+
variant: "subtle",
|
|
199
|
+
icon: "i-lucide-text-select",
|
|
200
|
+
label: unref(t)(scope.value.blocks === 1 ? "ai.sidebar.selection.one" : "ai.sidebar.selection.other", { n: scope.value.blocks }),
|
|
201
|
+
title: unref(t)("ai.sidebar.selection.title")
|
|
202
|
+
}, null, 8, ["label", "title"]), createVNode(unref(UButton), {
|
|
203
|
+
size: "xs",
|
|
204
|
+
color: "neutral",
|
|
205
|
+
variant: "ghost",
|
|
206
|
+
icon: "i-lucide-x",
|
|
207
|
+
"aria-label": unref(t)("ai.sidebar.selection.clear"),
|
|
208
|
+
onClick: clearSelection
|
|
209
|
+
}, null, 8, ["aria-label"])])) : createCommentVNode("v-if", true)]),
|
|
210
|
+
createElementVNode("div", {
|
|
211
|
+
ref_key: "scroller",
|
|
212
|
+
ref: scroller,
|
|
213
|
+
class: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4"
|
|
214
|
+
}, [
|
|
215
|
+
!unref(messages).length ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(unref(t)("ai.sidebar.intro")), 1)) : createCommentVNode("v-if", true),
|
|
216
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(messages), (message, index) => {
|
|
217
|
+
return openBlock(), createElementBlock(Fragment, { key: index }, [message.role === "user" ? (openBlock(), createElementBlock("div", _hoisted_7, toDisplayString(message.content), 1)) : message.generation ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
218
|
+
createElementVNode("div", _hoisted_9, [createVNode(unref(UIcon), {
|
|
219
|
+
name: message.generation.task.icon,
|
|
220
|
+
class: "size-4 shrink-0"
|
|
221
|
+
}, null, 8, ["name"]), createElementVNode("span", _hoisted_10, toDisplayString(unref(t)(message.generation.task.labelKey)), 1)]),
|
|
222
|
+
message.generation.prompt ? (openBlock(), createElementBlock("p", _hoisted_11, toDisplayString(message.generation.prompt), 1)) : createCommentVNode("v-if", true),
|
|
223
|
+
generationMarkdown(message.generation) ? (openBlock(), createBlock(_sfc_main$2, {
|
|
224
|
+
key: 1,
|
|
225
|
+
markdown: unref(withTaskHeading)(message.generation.task, generationMarkdown(message.generation), unref(t)),
|
|
226
|
+
editor: __props.editor
|
|
227
|
+
}, null, 8, ["markdown", "editor"])) : (openBlock(), createBlock(unref(UIcon), {
|
|
228
|
+
key: 2,
|
|
229
|
+
name: "i-lucide-loader-circle",
|
|
230
|
+
class: "size-4 animate-spin text-[var(--sk-muted)]"
|
|
231
|
+
})),
|
|
232
|
+
createElementVNode("div", _hoisted_12, [message.generation === running.value ? (openBlock(), createBlock(unref(UButton), {
|
|
233
|
+
key: 0,
|
|
234
|
+
size: "xs",
|
|
235
|
+
color: "neutral",
|
|
236
|
+
variant: "outline",
|
|
237
|
+
icon: "i-lucide-square",
|
|
238
|
+
label: unref(t)("ai.sidebar.stop"),
|
|
239
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(abortGeneration)())
|
|
240
|
+
}, null, 8, ["label"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(unref(UButton), {
|
|
241
|
+
size: "xs",
|
|
242
|
+
color: "neutral",
|
|
243
|
+
variant: "ghost",
|
|
244
|
+
label: unref(t)("ai.sidebar.discard"),
|
|
245
|
+
onClick: ($event) => unref(flow).drop(message.generation)
|
|
246
|
+
}, null, 8, ["label", "onClick"]), createVNode(unref(UButton), {
|
|
247
|
+
size: "xs",
|
|
248
|
+
label: unref(t)("ai.sidebar.apply"),
|
|
249
|
+
disabled: !__props.editor || !message.generation.done,
|
|
250
|
+
onClick: ($event) => unref(flow).apply(message.generation)
|
|
251
|
+
}, null, 8, [
|
|
252
|
+
"label",
|
|
253
|
+
"disabled",
|
|
254
|
+
"onClick"
|
|
255
|
+
])], 64))])
|
|
256
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_13, [message.content ? (openBlock(), createBlock(_sfc_main$2, {
|
|
257
|
+
key: 0,
|
|
258
|
+
markdown: message.content,
|
|
259
|
+
editor: __props.editor
|
|
260
|
+
}, null, 8, ["markdown", "editor"])) : createCommentVNode("v-if", true), message.ops?.length || message.problems?.length ? (openBlock(), createBlock(_sfc_main$3, {
|
|
261
|
+
key: 1,
|
|
262
|
+
ops: message.ops ?? [],
|
|
263
|
+
states: unref(ops),
|
|
264
|
+
problems: message.problems,
|
|
265
|
+
providers: providers.value,
|
|
266
|
+
onDecide: _cache[3] || (_cache[3] = (id, accept) => __props.editor && unref(decide)(__props.editor, id, accept)),
|
|
267
|
+
onReveal
|
|
268
|
+
}, null, 8, [
|
|
269
|
+
"ops",
|
|
270
|
+
"states",
|
|
271
|
+
"problems",
|
|
272
|
+
"providers"
|
|
273
|
+
])) : !message.content ? (openBlock(), createBlock(unref(UIcon), {
|
|
274
|
+
key: 2,
|
|
275
|
+
name: "i-lucide-loader-circle",
|
|
276
|
+
class: "size-4 animate-spin text-[var(--sk-muted)]"
|
|
277
|
+
})) : createCommentVNode("v-if", true)]))], 64);
|
|
278
|
+
}), 128)),
|
|
279
|
+
unref(error) ? (openBlock(), createBlock(unref(UAlert), {
|
|
280
|
+
key: 1,
|
|
281
|
+
color: "error",
|
|
282
|
+
variant: "subtle",
|
|
283
|
+
title: unref(error)
|
|
284
|
+
}, null, 8, ["title"])) : createCommentVNode("v-if", true),
|
|
285
|
+
unref(generationError) ? (openBlock(), createBlock(unref(UAlert), {
|
|
286
|
+
key: 2,
|
|
287
|
+
color: "error",
|
|
288
|
+
variant: "subtle",
|
|
289
|
+
title: unref(generationError)
|
|
290
|
+
}, null, 8, ["title"])) : createCommentVNode("v-if", true)
|
|
291
|
+
], 512),
|
|
292
|
+
createElementVNode("div", _hoisted_14, [
|
|
293
|
+
createElementVNode("div", {
|
|
294
|
+
class: "flex flex-wrap gap-1",
|
|
295
|
+
role: "group",
|
|
296
|
+
"aria-label": unref(t)("ai.sidebar.generateGroup")
|
|
297
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(quickActions), (task) => {
|
|
298
|
+
return openBlock(), createBlock(unref(UButton), {
|
|
299
|
+
key: task.id,
|
|
300
|
+
size: "xs",
|
|
301
|
+
color: "neutral",
|
|
302
|
+
variant: "soft",
|
|
303
|
+
"active-color": "primary",
|
|
304
|
+
active: promptTask.value === task,
|
|
305
|
+
icon: task.icon,
|
|
306
|
+
label: unref(t)(task.labelKey),
|
|
307
|
+
disabled: !__props.editor || busy.value,
|
|
308
|
+
onClick: ($event) => pick(task)
|
|
309
|
+
}, null, 8, [
|
|
310
|
+
"active",
|
|
311
|
+
"icon",
|
|
312
|
+
"label",
|
|
313
|
+
"disabled",
|
|
314
|
+
"onClick"
|
|
315
|
+
]);
|
|
316
|
+
}), 128))], 8, _hoisted_15),
|
|
317
|
+
promptTask.value ? (openBlock(), createElementBlock("div", _hoisted_16, [createVNode(unref(UInput), {
|
|
318
|
+
modelValue: prompt.value,
|
|
319
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => prompt.value = $event),
|
|
320
|
+
size: "sm",
|
|
321
|
+
autofocus: "",
|
|
322
|
+
placeholder: promptTask.value.promptLabelKey && unref(t)(promptTask.value.promptLabelKey),
|
|
323
|
+
maxlength: unref(AI_LIMITS).prompt,
|
|
324
|
+
"aria-label": promptTask.value.promptLabelKey && unref(t)(promptTask.value.promptLabelKey),
|
|
325
|
+
class: "min-w-0 flex-1",
|
|
326
|
+
onKeydown: onPromptKeydown
|
|
327
|
+
}, null, 8, [
|
|
328
|
+
"modelValue",
|
|
329
|
+
"placeholder",
|
|
330
|
+
"maxlength",
|
|
331
|
+
"aria-label"
|
|
332
|
+
]), createVNode(unref(UButton), {
|
|
333
|
+
size: "sm",
|
|
334
|
+
icon: "i-lucide-sparkles",
|
|
335
|
+
label: unref(t)("ai.sidebar.generate"),
|
|
336
|
+
disabled: !__props.editor || busy.value || !prompt.value.trim(),
|
|
337
|
+
onClick: submitPrompt
|
|
338
|
+
}, null, 8, ["label", "disabled"])])) : createCommentVNode("v-if", true),
|
|
339
|
+
createVNode(unref(UTextarea), {
|
|
340
|
+
modelValue: question.value,
|
|
341
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => question.value = $event),
|
|
342
|
+
placeholder: unref(t)("ai.sidebar.placeholder"),
|
|
343
|
+
rows: 2,
|
|
344
|
+
autoresize: "",
|
|
345
|
+
maxrows: 6,
|
|
346
|
+
maxlength: unref(CHAT_LIMITS).message,
|
|
347
|
+
class: "w-full",
|
|
348
|
+
"aria-label": unref(t)("ai.sidebar.messageLabel"),
|
|
349
|
+
onKeydown
|
|
350
|
+
}, null, 8, [
|
|
351
|
+
"modelValue",
|
|
352
|
+
"placeholder",
|
|
353
|
+
"maxlength",
|
|
354
|
+
"aria-label"
|
|
355
|
+
]),
|
|
356
|
+
createElementVNode("div", _hoisted_17, [unref(streaming) ? (openBlock(), createBlock(unref(UButton), {
|
|
357
|
+
key: 0,
|
|
358
|
+
color: "neutral",
|
|
359
|
+
variant: "outline",
|
|
360
|
+
icon: "i-lucide-square",
|
|
361
|
+
label: unref(t)("ai.sidebar.stop"),
|
|
362
|
+
onClick: _cache[6] || (_cache[6] = ($event) => unref(abort)())
|
|
363
|
+
}, null, 8, ["label"])) : (openBlock(), createBlock(unref(UButton), {
|
|
364
|
+
key: 1,
|
|
365
|
+
icon: "i-lucide-send",
|
|
366
|
+
label: unref(t)("ai.sidebar.send"),
|
|
367
|
+
disabled: !__props.editor || busy.value || !question.value.trim(),
|
|
368
|
+
onClick: send
|
|
369
|
+
}, null, 8, ["label", "disabled"]))])
|
|
370
|
+
])
|
|
371
|
+
], 8, _hoisted_1);
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
//#endregion
|
|
376
|
+
export { _sfc_main as default };
|
|
377
|
+
|
|
378
|
+
//# sourceMappingURL=AiSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiSidebar.js","names":["_useModel","_openBlock","_createElementBlock","_unref","_createElementVNode","_toDisplayString","_createVNode","ModelQuickSwitch","_withCtx","_createCommentVNode","_Fragment","_renderList","_createBlock","DocumentChatAnswer","DocumentChatOps"],"sources":["../../../../src/features/ai/components/AiSidebar.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Editor } from '@tiptap/vue-3'\nimport { computed, nextTick, onBeforeUnmount, ref, shallowRef, watch } from 'vue'\nimport { conversionsOf } from '../../../core'\nimport { useUiKit } from '../../../vue/kit/use-ui-kit'\nimport { useNotifier } from '../../../vue/use-notifier'\nimport { useEditorI18n } from '../../../vue/use-editor-i18n'\nimport { selectionScope } from '../agent-ops'\nimport { type AgentOp, AI_LIMITS, type AiTask, blockTasks, CHAT_LIMITS, withTaskHeading } from '../protocol'\nimport { createAiSidebarFlow } from '../sidebar-flow'\nimport { useAiAssistant } from '../use-ai-assistant'\nimport { type DocumentChatGeneration, useDocumentChat } from '../use-document-chat'\nimport DocumentChatAnswer from './DocumentChatAnswer.vue'\nimport DocumentChatOps from './DocumentChatOps.vue'\nimport ModelQuickSwitch from './ModelQuickSwitch.vue'\n\n/**\n * Docked AI sidebar „KI“: a plain `aside` the host places beside the editor (no overlay, no focus trap), so text can be\n * selected and changes reviewed next to it. Document chat: questions about the open document, answers stream in with\n * quote links; edit requests come back as operations shown in the in-document review, limited to the selected blocks\n * while text is selected. Block generation: quick actions (`blockTasks()`) stream their result into the conversation,\n * where „Übernehmen“ inserts it after the caret's block (or at the document's end) and „Verwerfen“ drops it.\n * Unmounting ends both: hosts hide it with `v-show` so the conversation survives closing.\n */\nconst props = defineProps<{ editor: Editor | undefined }>()\n\nconst open = defineModel<boolean>('open')\n\nconst { Alert: UAlert, Badge: UBadge, Button: UButton, Icon: UIcon, Input: UInput, Textarea: UTextarea, Tooltip: UTooltip } = useUiKit()\nconst { t } = useEditorI18n()\n\nconst { model: chat, messages, ops, streaming, error, abort, decide, reveal } = useDocumentChat(() => props.editor)\nconst { model: assistant, status: generationStatus, output, error: generationError, abort: abortGeneration } = useAiAssistant(() => props.editor)\nconst question = ref('')\nconst scroller = ref<HTMLElement>()\nconst notify = useNotifier(() => props.editor)\nconst flow = createAiSidebarFlow({ chat, assistant, notify, t, editor: () => props.editor })\n// The vue-3 Editor's `state` is reactive, so this follows every selection change.\nconst scope = computed(() => props.editor && !props.editor.isDestroyed ? selectionScope(props.editor.state) : null)\nconst providers = computed(() => props.editor ? conversionsOf(props.editor) : [])\n\n// Caret-only tasks (`continue`) stay in the AI menu at the caret, which knows where the text ends.\nconst quickActions = blockTasks().filter(task => !task.caretMenu)\n/** The task whose inline prompt field is open (tasks with `needsPrompt`, i.e. `generate`); null while closed. */\nconst promptTask = shallowRef<AiTask | null>(null)\nconst prompt = ref('')\n/** The generation streaming right now (a turn in `messages`); null while none runs. */\nconst running = shallowRef(flow.running.get())\nconst stopRunning = flow.running.subscribe((value) => { running.value = value })\n// One request at a time: a failed chat answer removes the last two turns, which must still be its own.\nconst busy = computed(() => streaming.value || generationStatus.value === 'streaming')\n\nasync function send() {\n const text = question.value.trim()\n if (!text || !flow.canRun()) return\n question.value = ''\n const answered = await flow.send(text)\n if (!answered && !question.value) question.value = text\n}\n\nfunction clearSelection() {\n const editor = props.editor\n if (editor) editor.commands.setTextSelection(editor.state.selection.to)\n}\n\nfunction onReveal(op: AgentOp) {\n if (props.editor && !reveal(props.editor, op)) {\n notify({ title: t('ai.sidebar.revealMissing'), kind: 'warning', icon: 'i-lucide-search-x' })\n }\n}\n\nfunction onKeydown(event: KeyboardEvent) {\n if (event.key !== 'Enter' || event.shiftKey || event.isComposing) return\n event.preventDefault()\n void send()\n}\n\n/** Quick action chip: a task with a prompt opens (or closes) its inline prompt field, the others run right away. */\nfunction pick(task: AiTask) {\n if (task.needsPrompt) promptTask.value = promptTask.value === task ? null : task\n else void flow.generate(task)\n}\n\nasync function submitPrompt() {\n const task = promptTask.value\n const text = prompt.value.trim()\n if (!task || !text || !flow.canRun()) return\n prompt.value = ''\n promptTask.value = null\n const kept = await flow.generate(task, text)\n if (!kept && !prompt.value) {\n prompt.value = text\n promptTask.value = task\n }\n}\n\nfunction onPromptKeydown(event: KeyboardEvent) {\n if (event.isComposing) return\n if (event.key === 'Escape') {\n event.preventDefault()\n promptTask.value = null\n }\n else if (event.key === 'Enter') {\n event.preventDefault()\n void submitPrompt()\n }\n}\n\n/** The streamed result while `generation` runs, else its final Markdown. */\nfunction generationMarkdown(generation: DocumentChatGeneration): string {\n return generation === running.value ? output.value : generation.markdown\n}\n\n// Follow the conversation while it grows (new messages, streamed answers and generations, proposed edits).\nwatch(() => [messages.value.length, messages.value.at(-1)?.content, (messages.value.at(-1) as { ops?: unknown[] } | undefined)?.ops?.length, output.value], async () => {\n await nextTick()\n scroller.value?.scrollTo({ top: scroller.value.scrollHeight })\n})\n\nonBeforeUnmount(() => {\n flow.end()\n stopRunning()\n})\n</script>\n\n<template>\n <aside class=\"flex min-h-0 flex-col\" :aria-label=\"t('ai.sidebar.label')\">\n <div class=\"flex flex-col gap-2 border-b border-[var(--sk-border)] p-3\">\n <div class=\"flex items-center gap-2\">\n <h2 class=\"font-semibold text-[var(--sk-fg-highlighted)]\">\n {{ t('ai.sidebar.title') }}\n </h2>\n <ModelQuickSwitch slot=\"generate\" size=\"xs\" :editor=\"editor\" class=\"min-w-0 flex-1\" />\n <UTooltip :text=\"t('ai.sidebar.newConversation')\">\n <UButton\n size=\"sm\"\n color=\"neutral\"\n variant=\"ghost\"\n icon=\"i-lucide-message-square-plus\"\n :aria-label=\"t('ai.sidebar.newConversation')\"\n :disabled=\"!messages.length && !error && !generationError\"\n @click=\"flow.newConversation()\"\n />\n </UTooltip>\n <UButton size=\"sm\" color=\"neutral\" variant=\"ghost\" icon=\"i-lucide-x\" :aria-label=\"t('ai.sidebar.close')\" @click=\"open = false\" />\n </div>\n <div v-if=\"scope\" class=\"flex items-center gap-1\">\n <UBadge\n color=\"primary\"\n variant=\"subtle\"\n icon=\"i-lucide-text-select\"\n :label=\"t(scope.blocks === 1 ? 'ai.sidebar.selection.one' : 'ai.sidebar.selection.other', { n: scope.blocks })\"\n :title=\"t('ai.sidebar.selection.title')\"\n />\n <UButton size=\"xs\" color=\"neutral\" variant=\"ghost\" icon=\"i-lucide-x\" :aria-label=\"t('ai.sidebar.selection.clear')\" @click=\"clearSelection\" />\n </div>\n </div>\n\n <div ref=\"scroller\" class=\"flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4\">\n <p v-if=\"!messages.length\" class=\"text-sm text-[var(--sk-muted)]\">\n {{ t('ai.sidebar.intro') }}\n </p>\n <template v-for=\"(message, index) in messages\" :key=\"index\">\n <div v-if=\"message.role === 'user'\" class=\"max-w-[85%] self-end whitespace-pre-wrap rounded-lg bg-[var(--sk-bg-elevated)] px-3 py-2 text-sm\">\n {{ message.content }}\n </div>\n <div v-else-if=\"message.generation\" class=\"flex flex-col gap-2 rounded-lg border border-[var(--sk-border)] p-3 text-sm\">\n <div class=\"flex items-center gap-1.5 text-xs font-medium text-[var(--sk-muted)]\">\n <UIcon :name=\"message.generation.task.icon\" class=\"size-4 shrink-0\" />\n <span class=\"truncate\">{{ t(message.generation.task.labelKey) }}</span>\n </div>\n <p v-if=\"message.generation.prompt\" class=\"whitespace-pre-wrap text-xs text-[var(--sk-muted)]\">\n {{ message.generation.prompt }}\n </p>\n <DocumentChatAnswer\n v-if=\"generationMarkdown(message.generation)\"\n :markdown=\"withTaskHeading(message.generation.task, generationMarkdown(message.generation), t)\"\n :editor=\"editor\"\n />\n <UIcon v-else name=\"i-lucide-loader-circle\" class=\"size-4 animate-spin text-[var(--sk-muted)]\" />\n <div class=\"flex justify-end gap-2\">\n <UButton\n v-if=\"message.generation === running\"\n size=\"xs\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"i-lucide-square\"\n :label=\"t('ai.sidebar.stop')\"\n @click=\"abortGeneration()\"\n />\n <template v-else>\n <UButton size=\"xs\" color=\"neutral\" variant=\"ghost\" :label=\"t('ai.sidebar.discard')\" @click=\"flow.drop(message.generation)\" />\n <UButton\n size=\"xs\"\n :label=\"t('ai.sidebar.apply')\"\n :disabled=\"!editor || !message.generation.done\"\n @click=\"flow.apply(message.generation)\"\n />\n </template>\n </div>\n </div>\n <div v-else class=\"text-sm\">\n <DocumentChatAnswer v-if=\"message.content\" :markdown=\"message.content\" :editor=\"editor\" />\n <DocumentChatOps\n v-if=\"message.ops?.length || message.problems?.length\"\n :ops=\"message.ops ?? []\"\n :states=\"ops\"\n :problems=\"message.problems\"\n :providers=\"providers\"\n @decide=\"(id, accept) => editor && decide(editor, id, accept)\"\n @reveal=\"onReveal\"\n />\n <UIcon v-else-if=\"!message.content\" name=\"i-lucide-loader-circle\" class=\"size-4 animate-spin text-[var(--sk-muted)]\" />\n </div>\n </template>\n <UAlert v-if=\"error\" color=\"error\" variant=\"subtle\" :title=\"error\" />\n <UAlert v-if=\"generationError\" color=\"error\" variant=\"subtle\" :title=\"generationError\" />\n </div>\n\n <div class=\"flex flex-col gap-2 border-t border-[var(--sk-border)] p-3\">\n <div class=\"flex flex-wrap gap-1\" role=\"group\" :aria-label=\"t('ai.sidebar.generateGroup')\">\n <UButton\n v-for=\"task in quickActions\"\n :key=\"task.id\"\n size=\"xs\"\n color=\"neutral\"\n variant=\"soft\"\n active-color=\"primary\"\n :active=\"promptTask === task\"\n :icon=\"task.icon\"\n :label=\"t(task.labelKey)\"\n :disabled=\"!editor || busy\"\n @click=\"pick(task)\"\n />\n </div>\n <div v-if=\"promptTask\" class=\"flex items-center gap-1\">\n <UInput\n v-model=\"prompt\"\n size=\"sm\"\n autofocus\n :placeholder=\"promptTask.promptLabelKey && t(promptTask.promptLabelKey)\"\n :maxlength=\"AI_LIMITS.prompt\"\n :aria-label=\"promptTask.promptLabelKey && t(promptTask.promptLabelKey)\"\n class=\"min-w-0 flex-1\"\n @keydown=\"onPromptKeydown\"\n />\n <UButton\n size=\"sm\"\n icon=\"i-lucide-sparkles\"\n :label=\"t('ai.sidebar.generate')\"\n :disabled=\"!editor || busy || !prompt.trim()\"\n @click=\"submitPrompt\"\n />\n </div>\n <UTextarea\n v-model=\"question\"\n :placeholder=\"t('ai.sidebar.placeholder')\"\n :rows=\"2\"\n autoresize\n :maxrows=\"6\"\n :maxlength=\"CHAT_LIMITS.message\"\n class=\"w-full\"\n :aria-label=\"t('ai.sidebar.messageLabel')\"\n @keydown=\"onKeydown\"\n />\n <div class=\"flex justify-end gap-2\">\n <UButton v-if=\"streaming\" color=\"neutral\" variant=\"outline\" icon=\"i-lucide-square\" :label=\"t('ai.sidebar.stop')\" @click=\"abort()\" />\n <UButton v-else icon=\"i-lucide-send\" :label=\"t('ai.sidebar.send')\" :disabled=\"!editor || busy || !question.trim()\" @click=\"send\" />\n </div>\n </div>\n </aside>\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/vue-3";
|
|
2
|
+
//#region src/features/ai/components/AiSidebar.vue.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Docked AI sidebar „KI“: a plain `aside` the host places beside the editor (no overlay, no focus trap), so text can be
|
|
5
|
+
* selected and changes reviewed next to it. Document chat: questions about the open document, answers stream in with
|
|
6
|
+
* quote links; edit requests come back as operations shown in the in-document review, limited to the selected blocks
|
|
7
|
+
* while text is selected. Block generation: quick actions (`blockTasks()`) stream their result into the conversation,
|
|
8
|
+
* where „Übernehmen“ inserts it after the caret's block (or at the document's end) and „Verwerfen“ drops it.
|
|
9
|
+
* Unmounting ends both: hosts hide it with `v-show` so the conversation survives closing.
|
|
10
|
+
*/
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
editor: Editor | undefined;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
'open'?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:open": (value: boolean | undefined) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _default as default };
|
|
26
|
+
//# sourceMappingURL=AiSidebar.vue.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
2
|
+
import { citationBlockId } from "../protocol/chat.js";
|
|
3
|
+
import { documentChatAnswerContent } from "../document-chat.js";
|
|
4
|
+
import { previewExtensions } from "../preview-extensions.js";
|
|
5
|
+
import { useNotifier } from "../../../vue/use-notifier.js";
|
|
6
|
+
import { createBlock, createCommentVNode, createElementBlock, defineComponent, onBeforeUnmount, openBlock, unref, watch } from "vue";
|
|
7
|
+
import { EditorContent, useEditor } from "@tiptap/vue-3";
|
|
8
|
+
//#region src/features/ai/components/DocumentChatAnswer.vue
|
|
9
|
+
/** One chat answer, rendered read-only from Markdown; quote links reveal their block in `editor`. */
|
|
10
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
11
|
+
__name: "DocumentChatAnswer",
|
|
12
|
+
props: {
|
|
13
|
+
markdown: {},
|
|
14
|
+
editor: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const notify = useNotifier(() => props.editor);
|
|
19
|
+
const { t } = useEditorI18n();
|
|
20
|
+
const view = useEditor({
|
|
21
|
+
editable: false,
|
|
22
|
+
extensions: previewExtensions(props.editor),
|
|
23
|
+
editorProps: { attributes: { class: "tiptap" } }
|
|
24
|
+
});
|
|
25
|
+
function render() {
|
|
26
|
+
const instance = view.value;
|
|
27
|
+
if (instance) instance.commands.setContent(documentChatAnswerContent(props.editor ?? instance, props.markdown, props.editor?.state.doc), { emitUpdate: false });
|
|
28
|
+
}
|
|
29
|
+
let timer;
|
|
30
|
+
watch(() => props.markdown, () => {
|
|
31
|
+
if (timer) return;
|
|
32
|
+
timer = window.setTimeout(() => {
|
|
33
|
+
timer = void 0;
|
|
34
|
+
render();
|
|
35
|
+
}, 80);
|
|
36
|
+
});
|
|
37
|
+
watch(view, render);
|
|
38
|
+
onBeforeUnmount(() => {
|
|
39
|
+
clearTimeout(timer);
|
|
40
|
+
view.value?.destroy();
|
|
41
|
+
});
|
|
42
|
+
function onClick(event) {
|
|
43
|
+
const link = event.target.closest("a");
|
|
44
|
+
const id = citationBlockId(link?.getAttribute("href"));
|
|
45
|
+
if (id === null) return;
|
|
46
|
+
event.preventDefault();
|
|
47
|
+
if (!props.editor?.commands.revealBlock(id)) notify({
|
|
48
|
+
title: t("ai.sidebar.revealMissing"),
|
|
49
|
+
kind: "warning",
|
|
50
|
+
icon: "i-lucide-search-x"
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createElementBlock("div", {
|
|
55
|
+
class: "document-chat-answer",
|
|
56
|
+
onClick
|
|
57
|
+
}, [unref(view) ? (openBlock(), createBlock(unref(EditorContent), {
|
|
58
|
+
key: 0,
|
|
59
|
+
editor: unref(view)
|
|
60
|
+
}, null, 8, ["editor"])) : createCommentVNode("v-if", true)]);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
//#endregion
|
|
65
|
+
export { _sfc_main as default };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=DocumentChatAnswer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentChatAnswer.js","names":["_openBlock","_createElementBlock","_unref","_createBlock","_createCommentVNode"],"sources":["../../../../src/features/ai/components/DocumentChatAnswer.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { type Editor, EditorContent, useEditor } from '@tiptap/vue-3'\nimport { onBeforeUnmount, watch } from 'vue'\nimport { useNotifier } from '../../../vue/use-notifier'\nimport { useEditorI18n } from '../../../vue/use-editor-i18n'\nimport { documentChatAnswerContent } from '../document-chat'\nimport { previewExtensions } from '../preview-extensions'\nimport { citationBlockId } from '../protocol'\n\n/** One chat answer, rendered read-only from Markdown; quote links reveal their block in `editor`. */\nconst props = defineProps<{\n markdown: string\n /** The document editor the quotes link into. */\n editor: Editor | undefined\n}>()\n\nconst notify = useNotifier(() => props.editor)\nconst { t } = useEditorI18n()\n\nconst view = useEditor({\n editable: false,\n extensions: previewExtensions(props.editor),\n editorProps: { attributes: { class: 'tiptap' } },\n})\n\nfunction render() {\n const instance = view.value\n if (instance) instance.commands.setContent(documentChatAnswerContent(props.editor ?? instance, props.markdown, props.editor?.state.doc), { emitUpdate: false })\n}\n\n// Streamed deltas: re-parse at most every 80 ms.\nlet timer: number | undefined\nwatch(() => props.markdown, () => {\n if (timer) return\n timer = window.setTimeout(() => {\n timer = undefined\n render()\n }, 80)\n})\nwatch(view, render)\n\nonBeforeUnmount(() => {\n clearTimeout(timer)\n view.value?.destroy()\n})\n\nfunction onClick(event: MouseEvent) {\n const link = (event.target as HTMLElement).closest('a')\n const id = citationBlockId(link?.getAttribute('href'))\n if (id === null) return\n event.preventDefault()\n if (!props.editor?.commands.revealBlock(id)) {\n notify({ title: t('ai.sidebar.revealMissing'), kind: 'warning', icon: 'i-lucide-search-x' })\n }\n}\n</script>\n\n<template>\n <div class=\"document-chat-answer\" @click=\"onClick\">\n <EditorContent v-if=\"view\" :editor=\"view\" />\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAUA,MAAM,QAAQ;EAMd,MAAM,SAAS,kBAAkB,MAAM,MAAM;EAC7C,MAAM,EAAE,MAAM,cAAc;EAE5B,MAAM,OAAO,UAAU;GACrB,UAAU;GACV,YAAY,kBAAkB,MAAM,MAAM;GAC1C,aAAa,EAAE,YAAY,EAAE,OAAO,SAAS,EAAE;EACjD,CAAC;EAED,SAAS,SAAS;GAChB,MAAM,WAAW,KAAK;GACtB,IAAI,UAAU,SAAS,SAAS,WAAW,0BAA0B,MAAM,UAAU,UAAU,MAAM,UAAU,MAAM,QAAQ,MAAM,GAAG,GAAG,EAAE,YAAY,MAAM,CAAC;EAChK;EAGA,IAAI;EACJ,YAAY,MAAM,gBAAgB;GAChC,IAAI,OAAO;GACX,QAAQ,OAAO,iBAAiB;IAC9B,QAAQ,KAAA;IACR,OAAO;GACT,GAAG,EAAE;EACP,CAAC;EACD,MAAM,MAAM,MAAM;EAElB,sBAAsB;GACpB,aAAa,KAAK;GAClB,KAAK,OAAO,QAAQ;EACtB,CAAC;EAED,SAAS,QAAQ,OAAmB;GAClC,MAAM,OAAQ,MAAM,OAAuB,QAAQ,GAAG;GACtD,MAAM,KAAK,gBAAgB,MAAM,aAAa,MAAM,CAAC;GACrD,IAAI,OAAO,MAAM;GACjB,MAAM,eAAe;GACrB,IAAI,CAAC,MAAM,QAAQ,SAAS,YAAY,EAAE,GACxC,OAAO;IAAE,OAAO,EAAE,0BAA0B;IAAG,MAAM;IAAW,MAAM;GAAoB,CAAC;EAE/F;;GAIE,OAAAA,UAAA,GAAAC,mBAEM,OAAA;IAFD,OAAM;IAA+B;GACnB,GAAA,CAAAC,MAAA,IAAA,KAArBF,UAAA,GAAAG,YAA4CD,MAAA,aAAA,GAAA;;IAAhB,QAAQA,MAAA,IAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/vue-3";
|
|
2
|
+
//#region src/features/ai/components/DocumentChatAnswer.vue.d.ts
|
|
3
|
+
/** One chat answer, rendered read-only from Markdown; quote links reveal their block in `editor`. */
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
markdown: string;
|
|
6
|
+
/** The document editor the quotes link into. */
|
|
7
|
+
editor: Editor | undefined;
|
|
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
|
+
//#endregion
|
|
12
|
+
export { _default as default };
|
|
13
|
+
//# sourceMappingURL=DocumentChatAnswer.vue.d.ts.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { conversionLabel, parseConversionTarget } from "../../../core/block-convert.js";
|
|
2
|
+
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
3
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
4
|
+
import { AGENT_OP_OUTCOME_KEYS } from "../agent-ops.js";
|
|
5
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderList, toDisplayString, unref } from "vue";
|
|
6
|
+
//#region src/features/ai/components/DocumentChatOps.vue
|
|
7
|
+
const _hoisted_1 = { class: "mt-2 flex flex-col gap-1" };
|
|
8
|
+
const _hoisted_2 = ["data-agent-op"];
|
|
9
|
+
const _hoisted_3 = ["title", "onClick"];
|
|
10
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
11
|
+
__name: "DocumentChatOps",
|
|
12
|
+
props: {
|
|
13
|
+
ops: {},
|
|
14
|
+
states: {},
|
|
15
|
+
problems: {},
|
|
16
|
+
providers: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["decide", "reveal"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const { Alert: UAlert, Badge: UBadge, Button: UButton, Icon: UIcon } = useUiKit();
|
|
21
|
+
const { t } = useEditorI18n();
|
|
22
|
+
/** The edit operations of one chat answer with their review state; open ones can be decided right here. */
|
|
23
|
+
const props = __props;
|
|
24
|
+
const emit = __emit;
|
|
25
|
+
const ICONS = {
|
|
26
|
+
add: "i-lucide-plus",
|
|
27
|
+
update: "i-lucide-pencil",
|
|
28
|
+
delete: "i-lucide-trash-2",
|
|
29
|
+
convert: "i-lucide-replace"
|
|
30
|
+
};
|
|
31
|
+
const BADGE_COLORS = {
|
|
32
|
+
pending: "primary",
|
|
33
|
+
accepted: "success",
|
|
34
|
+
rejected: "neutral",
|
|
35
|
+
partial: "info",
|
|
36
|
+
invalid: "warning",
|
|
37
|
+
unchanged: "neutral",
|
|
38
|
+
missing: "warning",
|
|
39
|
+
overlap: "warning",
|
|
40
|
+
empty: "warning",
|
|
41
|
+
blocked: "warning"
|
|
42
|
+
};
|
|
43
|
+
function label(op, snippet) {
|
|
44
|
+
if (op.type === "add") return op.afterId === null ? t("ai.op.addAtStart") : t("ai.op.addAfter", { snippet });
|
|
45
|
+
if (op.type === "convert") {
|
|
46
|
+
const target = parseConversionTarget(props.providers, op.to);
|
|
47
|
+
return t("ai.op.convert", {
|
|
48
|
+
target: target ? conversionLabel(props.providers, target, t).label : op.to,
|
|
49
|
+
snippet
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return t(op.type === "update" ? "ai.op.update" : "ai.op.delete", { snippet });
|
|
53
|
+
}
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.ops, (op) => {
|
|
56
|
+
return openBlock(), createElementBlock("div", {
|
|
57
|
+
key: op.op,
|
|
58
|
+
class: "flex items-center gap-2 rounded-md border border-[var(--sk-border)] px-2 py-1",
|
|
59
|
+
"data-agent-op": op.op
|
|
60
|
+
}, [
|
|
61
|
+
createVNode(unref(UIcon), {
|
|
62
|
+
name: ICONS[op.type],
|
|
63
|
+
class: "size-4 shrink-0 text-[var(--sk-muted)]"
|
|
64
|
+
}, null, 8, ["name"]),
|
|
65
|
+
createElementVNode("button", {
|
|
66
|
+
type: "button",
|
|
67
|
+
class: "min-w-0 flex-1 truncate text-left text-xs hover:underline",
|
|
68
|
+
title: "markdown" in op ? op.markdown : void 0,
|
|
69
|
+
onClick: ($event) => emit("reveal", op)
|
|
70
|
+
}, toDisplayString(label(op, __props.states[op.op]?.snippet ?? "")), 9, _hoisted_3),
|
|
71
|
+
__props.states[op.op] ? (openBlock(), createBlock(unref(UBadge), {
|
|
72
|
+
key: 0,
|
|
73
|
+
size: "sm",
|
|
74
|
+
variant: "subtle",
|
|
75
|
+
color: BADGE_COLORS[__props.states[op.op].outcome],
|
|
76
|
+
label: unref(t)(unref(AGENT_OP_OUTCOME_KEYS)[__props.states[op.op].outcome].badge),
|
|
77
|
+
title: unref(t)(unref(AGENT_OP_OUTCOME_KEYS)[__props.states[op.op].outcome].hover)
|
|
78
|
+
}, null, 8, [
|
|
79
|
+
"color",
|
|
80
|
+
"label",
|
|
81
|
+
"title"
|
|
82
|
+
])) : createCommentVNode("v-if", true),
|
|
83
|
+
__props.states[op.op]?.outcome === "pending" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(unref(UButton), {
|
|
84
|
+
size: "xs",
|
|
85
|
+
color: "neutral",
|
|
86
|
+
variant: "ghost",
|
|
87
|
+
icon: "i-lucide-x",
|
|
88
|
+
"aria-label": unref(t)("ai.op.discard"),
|
|
89
|
+
onClick: ($event) => emit("decide", op.op, false)
|
|
90
|
+
}, null, 8, ["aria-label", "onClick"]), createVNode(unref(UButton), {
|
|
91
|
+
size: "xs",
|
|
92
|
+
color: "success",
|
|
93
|
+
variant: "ghost",
|
|
94
|
+
icon: "i-lucide-check",
|
|
95
|
+
"aria-label": unref(t)("ai.op.accept"),
|
|
96
|
+
onClick: ($event) => emit("decide", op.op, true)
|
|
97
|
+
}, null, 8, ["aria-label", "onClick"])], 64)) : createCommentVNode("v-if", true)
|
|
98
|
+
], 8, _hoisted_2);
|
|
99
|
+
}), 128)), __props.problems?.length ? (openBlock(), createBlock(unref(UAlert), {
|
|
100
|
+
key: 0,
|
|
101
|
+
color: "warning",
|
|
102
|
+
variant: "subtle",
|
|
103
|
+
icon: "i-lucide-triangle-alert",
|
|
104
|
+
title: __props.problems.length === 1 ? unref(t)("ai.op.problems.one") : unref(t)("ai.op.problems.other", { n: __props.problems.length }),
|
|
105
|
+
description: unref(t)("ai.op.problems.description")
|
|
106
|
+
}, null, 8, ["title", "description"])) : createCommentVNode("v-if", true)]);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { _sfc_main as default };
|
|
112
|
+
|
|
113
|
+
//# sourceMappingURL=DocumentChatOps.js.map
|