@ecsplico/editor 0.0.0-stage → 1.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/LICENSE +21 -0
- package/README.md +233 -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 +11 -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 +503 -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 +11 -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 +68 -0
- package/dist/nuxt/module.js +103 -0
- package/dist/nuxt/module.js.map +1 -0
- package/dist/nuxt/runtime/install-context.d.ts +17 -0
- package/dist/nuxt/runtime/install-context.js +26 -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/plugins/editor-context-primevue.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 +41 -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/primevue/Alert.js +49 -0
- package/dist/vue/kit/primevue/Alert.js.map +1 -0
- package/dist/vue/kit/primevue/Avatar.js +54 -0
- package/dist/vue/kit/primevue/Avatar.js.map +1 -0
- package/dist/vue/kit/primevue/Badge.js +41 -0
- package/dist/vue/kit/primevue/Badge.js.map +1 -0
- package/dist/vue/kit/primevue/Button.js +112 -0
- package/dist/vue/kit/primevue/Button.js.map +1 -0
- package/dist/vue/kit/primevue/Chip.js +38 -0
- package/dist/vue/kit/primevue/Chip.js.map +1 -0
- package/dist/vue/kit/primevue/DropdownMenu.js +98 -0
- package/dist/vue/kit/primevue/DropdownMenu.js.map +1 -0
- package/dist/vue/kit/primevue/FieldGroup.js +22 -0
- package/dist/vue/kit/primevue/FieldGroup.js.map +1 -0
- package/dist/vue/kit/primevue/FormField.js +56 -0
- package/dist/vue/kit/primevue/FormField.js.map +1 -0
- package/dist/vue/kit/primevue/Icon.js +23 -0
- package/dist/vue/kit/primevue/Icon.js.map +1 -0
- package/dist/vue/kit/primevue/Input.js +96 -0
- package/dist/vue/kit/primevue/Input.js.map +1 -0
- package/dist/vue/kit/primevue/InputMenu.js +122 -0
- package/dist/vue/kit/primevue/InputMenu.js.map +1 -0
- package/dist/vue/kit/primevue/Modal.js +59 -0
- package/dist/vue/kit/primevue/Modal.js.map +1 -0
- package/dist/vue/kit/primevue/Popover.js +135 -0
- package/dist/vue/kit/primevue/Popover.js.map +1 -0
- package/dist/vue/kit/primevue/RadioGroup.js +58 -0
- package/dist/vue/kit/primevue/RadioGroup.js.map +1 -0
- package/dist/vue/kit/primevue/Select.js +68 -0
- package/dist/vue/kit/primevue/Select.js.map +1 -0
- package/dist/vue/kit/primevue/SelectMenu.js +94 -0
- package/dist/vue/kit/primevue/SelectMenu.js.map +1 -0
- package/dist/vue/kit/primevue/Separator.js +16 -0
- package/dist/vue/kit/primevue/Separator.js.map +1 -0
- package/dist/vue/kit/primevue/Switch.js +46 -0
- package/dist/vue/kit/primevue/Switch.js.map +1 -0
- package/dist/vue/kit/primevue/Table.js +54 -0
- package/dist/vue/kit/primevue/Table.js.map +1 -0
- package/dist/vue/kit/primevue/Tabs.js +49 -0
- package/dist/vue/kit/primevue/Tabs.js.map +1 -0
- package/dist/vue/kit/primevue/Textarea.js +55 -0
- package/dist/vue/kit/primevue/Textarea.js.map +1 -0
- package/dist/vue/kit/primevue/Tooltip.js +43 -0
- package/dist/vue/kit/primevue/Tooltip.js.map +1 -0
- package/dist/vue/kit/primevue/Tree.js +75 -0
- package/dist/vue/kit/primevue/Tree.js.map +1 -0
- package/dist/vue/kit/primevue/select-options.js +55 -0
- package/dist/vue/kit/primevue/select-options.js.map +1 -0
- package/dist/vue/kit/primevue/shared.js +49 -0
- package/dist/vue/kit/primevue/shared.js.map +1 -0
- package/dist/vue/kit/primevue/trigger.js +25 -0
- package/dist/vue/kit/primevue/trigger.js.map +1 -0
- package/dist/vue/kit/primevue.css +86 -0
- package/dist/vue/kit/primevue.d.ts +33 -0
- package/dist/vue/kit/primevue.js +96 -0
- package/dist/vue/kit/primevue.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 +634 -4
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { parseBlocks } from "../../core/pipeline.js";
|
|
2
|
+
import { captureRange, releaseRanges, resolveRange } from "../../core/doc-anchors.js";
|
|
3
|
+
import { AI_LIMITS } from "../../features/ai/protocol/tasks.js";
|
|
4
|
+
import { notifyAiRateLimited } from "../../features/ai/rate-limit.js";
|
|
5
|
+
import { postAiSse } from "../../features/ai/ai-sse.js";
|
|
6
|
+
import "../../features/composites/nodes.js";
|
|
7
|
+
import { assetRefOf } from "../../features/media/assets.js";
|
|
8
|
+
import { Fragment } from "@tiptap/pm/model";
|
|
9
|
+
//#region src/integrations/composite-ai/composite-summary.ts
|
|
10
|
+
/** Index of a composite's first body block, after `compositeTitle`, `compositeDescription` and `compositeTags`. */
|
|
11
|
+
const COMPOSITE_BODY_START = 3;
|
|
12
|
+
function compositeBody(composite) {
|
|
13
|
+
if (composite.type.name !== "composite") return [];
|
|
14
|
+
const body = [];
|
|
15
|
+
composite.forEach((child, _offset, index) => {
|
|
16
|
+
if (index >= COMPOSITE_BODY_START) body.push(child);
|
|
17
|
+
});
|
|
18
|
+
return body;
|
|
19
|
+
}
|
|
20
|
+
/** Text of a composite's body blocks (empty for other nodes). */
|
|
21
|
+
function compositeBodyText(composite) {
|
|
22
|
+
return compositeBody(composite).map((child) => child.textContent).join("\n");
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* What a summary is made from: the text of a composite's body blocks, or, when the body holds no text (an audio or
|
|
26
|
+
* video `document`), its `meta.transcript`. Empty for other nodes.
|
|
27
|
+
*/
|
|
28
|
+
function compositeSourceText(composite) {
|
|
29
|
+
if (composite.type.name !== "composite") return "";
|
|
30
|
+
const text = compositeBodyText(composite);
|
|
31
|
+
return text.trim() ? text : String(composite.attrs.meta?.transcript ?? "");
|
|
32
|
+
}
|
|
33
|
+
/** The stored asset behind a composite's first `audio`/`video` body block; null when it has none. */
|
|
34
|
+
function mediaAssetOf(composite) {
|
|
35
|
+
for (const child of compositeBody(composite)) {
|
|
36
|
+
if (child.type.name !== "audio" && child.type.name !== "video") continue;
|
|
37
|
+
const ref = assetRefOf(String(child.attrs.src ?? ""));
|
|
38
|
+
if (ref) return ref;
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
/** Inline content of the first textblock of a parsed AI result. */
|
|
43
|
+
function firstInlineContent(editor, parsed) {
|
|
44
|
+
let doc;
|
|
45
|
+
try {
|
|
46
|
+
doc = editor.schema.nodeFromJSON(parsed);
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
let inline = null;
|
|
51
|
+
doc.descendants((node) => {
|
|
52
|
+
if (inline) return false;
|
|
53
|
+
if (node.isTextblock && node.content.size) inline = node.content;
|
|
54
|
+
return !inline;
|
|
55
|
+
});
|
|
56
|
+
return inline;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Streams an AI summary of the composite at `pos` (its body as Markdown, task `summarize`, `rewrite` model slot) into
|
|
60
|
+
* the composite's description, replacing what it held, and shows description and tags. The description is anchored
|
|
61
|
+
* when the request starts, so edits while it streams do not misplace the result. Notices go through `notify`, in the language of `t`.
|
|
62
|
+
*/
|
|
63
|
+
async function summarizeComposite(editor, pos, fetch, modelRef, notify, t) {
|
|
64
|
+
const composite = editor.state.doc.nodeAt(pos);
|
|
65
|
+
if (composite?.type.name !== "composite" || composite.childCount <= COMPOSITE_BODY_START) return;
|
|
66
|
+
const title = composite.child(0);
|
|
67
|
+
const description = composite.child(1);
|
|
68
|
+
const body = compositeBody(composite).map((child) => child.toJSON());
|
|
69
|
+
const bodyMarkdown = compositeBodyText(composite).trim() ? editor.markdown.serialize({
|
|
70
|
+
type: "doc",
|
|
71
|
+
content: body
|
|
72
|
+
}) : compositeSourceText(composite);
|
|
73
|
+
const descriptionPos = pos + 1 + title.nodeSize;
|
|
74
|
+
const anchor = captureRange(editor, {
|
|
75
|
+
from: descriptionPos + 1,
|
|
76
|
+
to: descriptionPos + 1 + description.content.size
|
|
77
|
+
});
|
|
78
|
+
const model = modelRef("rewrite");
|
|
79
|
+
const controller = new AbortController();
|
|
80
|
+
const abort = () => controller.abort();
|
|
81
|
+
editor.on("destroy", abort);
|
|
82
|
+
let output = "";
|
|
83
|
+
try {
|
|
84
|
+
const outcome = await postAiSse(fetch, "/api/ai/generate", {
|
|
85
|
+
task: "summarize",
|
|
86
|
+
prompt: "",
|
|
87
|
+
selection: bodyMarkdown.slice(0, AI_LIMITS.selection),
|
|
88
|
+
context: "",
|
|
89
|
+
model
|
|
90
|
+
}, {
|
|
91
|
+
signal: controller.signal,
|
|
92
|
+
t,
|
|
93
|
+
onDelta: (text) => {
|
|
94
|
+
output += text;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
if (outcome.status === "aborted" || editor.isDestroyed) return;
|
|
98
|
+
if (outcome.status === "rate-limited") {
|
|
99
|
+
notifyAiRateLimited(notify, t);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (outcome.status === "error") {
|
|
103
|
+
notify({
|
|
104
|
+
title: t("integrations.compositeSummary.failed"),
|
|
105
|
+
description: outcome.message,
|
|
106
|
+
kind: "error"
|
|
107
|
+
});
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (!output.trim()) {
|
|
111
|
+
notify({
|
|
112
|
+
title: t("integrations.compositeSummary.empty.title"),
|
|
113
|
+
description: t("integrations.compositeSummary.empty.description"),
|
|
114
|
+
kind: "error"
|
|
115
|
+
});
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const range = resolveRange(editor.state, anchor);
|
|
119
|
+
const $from = range && editor.state.doc.resolve(range.from);
|
|
120
|
+
if (!range || !$from || $from.parent.type.name !== "compositeDescription" || !$from.sameParent(editor.state.doc.resolve(range.to))) {
|
|
121
|
+
notify({
|
|
122
|
+
title: t("integrations.compositeSummary.gone.title"),
|
|
123
|
+
description: t("integrations.compositeSummary.gone.description"),
|
|
124
|
+
kind: "error"
|
|
125
|
+
});
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const inline = firstInlineContent(editor, parseBlocks(editor, output).parsed) ?? Fragment.from(editor.schema.text(output.trim()));
|
|
129
|
+
editor.view.dispatch(editor.state.tr.replaceWith(range.from, range.to, inline));
|
|
130
|
+
notify({
|
|
131
|
+
title: t("integrations.compositeSummary.done"),
|
|
132
|
+
kind: "success",
|
|
133
|
+
icon: "i-lucide-text-quote"
|
|
134
|
+
});
|
|
135
|
+
} finally {
|
|
136
|
+
editor.off("destroy", abort);
|
|
137
|
+
releaseRanges(editor, [anchor]);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
//#endregion
|
|
141
|
+
export { COMPOSITE_BODY_START, compositeSourceText, mediaAssetOf, summarizeComposite };
|
|
142
|
+
|
|
143
|
+
//# sourceMappingURL=composite-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-summary.js","names":[],"sources":["../../../src/integrations/composite-ai/composite-summary.ts"],"sourcesContent":["import type { Editor, JSONContent } from '@tiptap/core'\nimport { Fragment, type Node as PMNode } from '@tiptap/pm/model'\nimport type { $Fetch } from 'ofetch'\nimport { AI_LIMITS, type ModelRef, notifyAiRateLimited, postAiSse } from '../../features/ai'\nimport { COMPOSITE_CHROME_COUNT } from '../../features/composites/schema'\nimport { assetRefOf } from '../../features/media/schema'\nimport { captureRange, parseBlocks, releaseRanges, resolveRange } from '../../core'\nimport type { Translate } from '../../i18n'\nimport type { Notifier } from '../../core/notify'\n\n/** Index of a composite's first body block, after `compositeTitle`, `compositeDescription` and `compositeTags`. */\nexport const COMPOSITE_BODY_START = COMPOSITE_CHROME_COUNT\n\nfunction compositeBody(composite: PMNode): PMNode[] {\n if (composite.type.name !== 'composite') return []\n const body: PMNode[] = []\n composite.forEach((child, _offset, index) => {\n if (index >= COMPOSITE_BODY_START) body.push(child)\n })\n return body\n}\n\n/** Text of a composite's body blocks (empty for other nodes). */\nfunction compositeBodyText(composite: PMNode): string {\n return compositeBody(composite).map(child => child.textContent).join('\\n')\n}\n\n/**\n * What a summary is made from: the text of a composite's body blocks, or, when the body holds no text (an audio or\n * video `document`), its `meta.transcript`. Empty for other nodes.\n */\nexport function compositeSourceText(composite: PMNode): string {\n if (composite.type.name !== 'composite') return ''\n const text = compositeBodyText(composite)\n return text.trim() ? text : String(composite.attrs.meta?.transcript ?? '')\n}\n\n/** The stored asset behind a composite's first `audio`/`video` body block; null when it has none. */\nexport function mediaAssetOf(composite: PMNode): { documentId: string, name: string } | null {\n for (const child of compositeBody(composite)) {\n if (child.type.name !== 'audio' && child.type.name !== 'video') continue\n const ref = assetRefOf(String(child.attrs.src ?? ''))\n if (ref) return ref\n }\n return null\n}\n\n/** Inline content of the first textblock of a parsed AI result. */\nfunction firstInlineContent(editor: Editor, parsed: JSONContent): Fragment | null {\n let doc: PMNode\n try {\n doc = editor.schema.nodeFromJSON(parsed)\n }\n catch {\n return null\n }\n let inline: Fragment | null = null\n doc.descendants((node) => {\n if (inline) return false\n if (node.isTextblock && node.content.size) inline = node.content\n return !inline\n })\n return inline\n}\n\n/**\n * Streams an AI summary of the composite at `pos` (its body as Markdown, task `summarize`, `rewrite` model slot) into\n * the composite's description, replacing what it held, and shows description and tags. The description is anchored\n * when the request starts, so edits while it streams do not misplace the result. Notices go through `notify`, in the language of `t`.\n */\nexport async function summarizeComposite(editor: Editor, pos: number, fetch: $Fetch, modelRef: (slot: 'rewrite') => ModelRef, notify: Notifier, t: Translate): Promise<void> {\n const composite = editor.state.doc.nodeAt(pos)\n if (composite?.type.name !== 'composite' || composite.childCount <= COMPOSITE_BODY_START) return\n const title = composite.child(0)\n const description = composite.child(1)\n const body = compositeBody(composite).map(child => child.toJSON() as JSONContent)\n const bodyMarkdown = compositeBodyText(composite).trim()\n ? editor.markdown!.serialize({ type: 'doc', content: body })\n : compositeSourceText(composite)\n const descriptionPos = pos + 1 + title.nodeSize\n const anchor = captureRange(editor, { from: descriptionPos + 1, to: descriptionPos + 1 + description.content.size })\n const model = modelRef('rewrite')\n\n const controller = new AbortController()\n const abort = () => controller.abort()\n editor.on('destroy', abort)\n let output = ''\n try {\n const outcome = await postAiSse(fetch, '/api/ai/generate', {\n task: 'summarize',\n prompt: '',\n selection: bodyMarkdown.slice(0, AI_LIMITS.selection),\n context: '',\n model,\n }, { signal: controller.signal, t, onDelta: (text) => { output += text } })\n\n if (outcome.status === 'aborted' || editor.isDestroyed) return\n if (outcome.status === 'rate-limited') {\n notifyAiRateLimited(notify, t)\n return\n }\n if (outcome.status === 'error') {\n notify({ title: t('integrations.compositeSummary.failed'), description: outcome.message, kind: 'error' })\n return\n }\n if (!output.trim()) {\n notify({ title: t('integrations.compositeSummary.empty.title'), description: t('integrations.compositeSummary.empty.description'), kind: 'error' })\n return\n }\n\n const range = resolveRange(editor.state, anchor)\n const $from = range && editor.state.doc.resolve(range.from)\n if (!range || !$from || $from.parent.type.name !== 'compositeDescription' || !$from.sameParent(editor.state.doc.resolve(range.to))) {\n notify({ title: t('integrations.compositeSummary.gone.title'), description: t('integrations.compositeSummary.gone.description'), kind: 'error' })\n return\n }\n const inline = firstInlineContent(editor, parseBlocks(editor, output).parsed) ?? Fragment.from(editor.schema.text(output.trim()))\n editor.view.dispatch(editor.state.tr.replaceWith(range.from, range.to, inline))\n notify({ title: t('integrations.compositeSummary.done'), kind: 'success', icon: 'i-lucide-text-quote' })\n }\n finally {\n editor.off('destroy', abort)\n releaseRanges(editor, [anchor])\n }\n}\n"],"mappings":";;;;;;;;;;AAWA,MAAa,uBAAA;AAEb,SAAS,cAAc,WAA6B;CAClD,IAAI,UAAU,KAAK,SAAS,aAAa,OAAO,CAAC;CACjD,MAAM,OAAiB,CAAC;CACxB,UAAU,SAAS,OAAO,SAAS,UAAU;EAC3C,IAAI,SAAS,sBAAsB,KAAK,KAAK,KAAK;CACpD,CAAC;CACD,OAAO;AACT;;AAGA,SAAS,kBAAkB,WAA2B;CACpD,OAAO,cAAc,SAAS,CAAC,CAAC,KAAI,UAAS,MAAM,WAAW,CAAC,CAAC,KAAK,IAAI;AAC3E;;;;;AAMA,SAAgB,oBAAoB,WAA2B;CAC7D,IAAI,UAAU,KAAK,SAAS,aAAa,OAAO;CAChD,MAAM,OAAO,kBAAkB,SAAS;CACxC,OAAO,KAAK,KAAK,IAAI,OAAO,OAAO,UAAU,MAAM,MAAM,cAAc,EAAE;AAC3E;;AAGA,SAAgB,aAAa,WAAgE;CAC3F,KAAK,MAAM,SAAS,cAAc,SAAS,GAAG;EAC5C,IAAI,MAAM,KAAK,SAAS,WAAW,MAAM,KAAK,SAAS,SAAS;EAChE,MAAM,MAAM,WAAW,OAAO,MAAM,MAAM,OAAO,EAAE,CAAC;EACpD,IAAI,KAAK,OAAO;CAClB;CACA,OAAO;AACT;;AAGA,SAAS,mBAAmB,QAAgB,QAAsC;CAChF,IAAI;CACJ,IAAI;EACF,MAAM,OAAO,OAAO,aAAa,MAAM;CACzC,QACM;EACJ,OAAO;CACT;CACA,IAAI,SAA0B;CAC9B,IAAI,aAAa,SAAS;EACxB,IAAI,QAAQ,OAAO;EACnB,IAAI,KAAK,eAAe,KAAK,QAAQ,MAAM,SAAS,KAAK;EACzD,OAAO,CAAC;CACV,CAAC;CACD,OAAO;AACT;;;;;;AAOA,eAAsB,mBAAmB,QAAgB,KAAa,OAAe,UAAyC,QAAkB,GAA6B;CAC3K,MAAM,YAAY,OAAO,MAAM,IAAI,OAAO,GAAG;CAC7C,IAAI,WAAW,KAAK,SAAS,eAAe,UAAU,cAAc,sBAAsB;CAC1F,MAAM,QAAQ,UAAU,MAAM,CAAC;CAC/B,MAAM,cAAc,UAAU,MAAM,CAAC;CACrC,MAAM,OAAO,cAAc,SAAS,CAAC,CAAC,KAAI,UAAS,MAAM,OAAO,CAAgB;CAChF,MAAM,eAAe,kBAAkB,SAAS,CAAC,CAAC,KAAK,IACnD,OAAO,SAAU,UAAU;EAAE,MAAM;EAAO,SAAS;CAAK,CAAC,IACzD,oBAAoB,SAAS;CACjC,MAAM,iBAAiB,MAAM,IAAI,MAAM;CACvC,MAAM,SAAS,aAAa,QAAQ;EAAE,MAAM,iBAAiB;EAAG,IAAI,iBAAiB,IAAI,YAAY,QAAQ;CAAK,CAAC;CACnH,MAAM,QAAQ,SAAS,SAAS;CAEhC,MAAM,aAAa,IAAI,gBAAgB;CACvC,MAAM,cAAc,WAAW,MAAM;CACrC,OAAO,GAAG,WAAW,KAAK;CAC1B,IAAI,SAAS;CACb,IAAI;EACF,MAAM,UAAU,MAAM,UAAU,OAAO,oBAAoB;GACzD,MAAM;GACN,QAAQ;GACR,WAAW,aAAa,MAAM,GAAG,UAAU,SAAS;GACpD,SAAS;GACT;EACF,GAAG;GAAE,QAAQ,WAAW;GAAQ;GAAG,UAAU,SAAS;IAAE,UAAU;GAAK;EAAE,CAAC;EAE1E,IAAI,QAAQ,WAAW,aAAa,OAAO,aAAa;EACxD,IAAI,QAAQ,WAAW,gBAAgB;GACrC,oBAAoB,QAAQ,CAAC;GAC7B;EACF;EACA,IAAI,QAAQ,WAAW,SAAS;GAC9B,OAAO;IAAE,OAAO,EAAE,sCAAsC;IAAG,aAAa,QAAQ;IAAS,MAAM;GAAQ,CAAC;GACxG;EACF;EACA,IAAI,CAAC,OAAO,KAAK,GAAG;GAClB,OAAO;IAAE,OAAO,EAAE,2CAA2C;IAAG,aAAa,EAAE,iDAAiD;IAAG,MAAM;GAAQ,CAAC;GAClJ;EACF;EAEA,MAAM,QAAQ,aAAa,OAAO,OAAO,MAAM;EAC/C,MAAM,QAAQ,SAAS,OAAO,MAAM,IAAI,QAAQ,MAAM,IAAI;EAC1D,IAAI,CAAC,SAAS,CAAC,SAAS,MAAM,OAAO,KAAK,SAAS,0BAA0B,CAAC,MAAM,WAAW,OAAO,MAAM,IAAI,QAAQ,MAAM,EAAE,CAAC,GAAG;GAClI,OAAO;IAAE,OAAO,EAAE,0CAA0C;IAAG,aAAa,EAAE,gDAAgD;IAAG,MAAM;GAAQ,CAAC;GAChJ;EACF;EACA,MAAM,SAAS,mBAAmB,QAAQ,YAAY,QAAQ,MAAM,CAAC,CAAC,MAAM,KAAK,SAAS,KAAK,OAAO,OAAO,KAAK,OAAO,KAAK,CAAC,CAAC;EAChI,OAAO,KAAK,SAAS,OAAO,MAAM,GAAG,YAAY,MAAM,MAAM,MAAM,IAAI,MAAM,CAAC;EAC9E,OAAO;GAAE,OAAO,EAAE,oCAAoC;GAAG,MAAM;GAAW,MAAM;EAAsB,CAAC;CACzG,UACQ;EACN,OAAO,IAAI,WAAW,KAAK;EAC3B,cAAc,QAAQ,CAAC,MAAM,CAAC;CAChC;AACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Translate } from "../../i18n/index.js";
|
|
2
|
+
import { Notifier } from "../../core/notify.js";
|
|
3
|
+
import { Editor } from "@tiptap/core";
|
|
4
|
+
import { $Fetch } from "ofetch";
|
|
5
|
+
//#region src/integrations/composite-ai/document-transcribe.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Transcribes the audio/video of the `document` composite at `pos` (`POST /api/ai/transcribe`) and stores the text in its
|
|
8
|
+
* `meta.transcript`, showing the meta row. The composite is anchored through its description when the request starts,
|
|
9
|
+
* so edits while it runs do not misplace the result. Notices go through `notify`, in the language of `t`; the progress notice stays until the
|
|
10
|
+
* request ends (`notify.dismiss`).
|
|
11
|
+
*/
|
|
12
|
+
export declare function transcribeDocument(editor: Editor, pos: number, fetch: $Fetch, notify: Notifier, t: Translate): Promise<void>;
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=document-transcribe.d.ts.map
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { blockIdOf } from "../../core/schema/block-ids.js";
|
|
2
|
+
import { captureRange, releaseRanges, resolveRange } from "../../core/doc-anchors.js";
|
|
3
|
+
import { fetchErrorMessage } from "../../core/fetch-error.js";
|
|
4
|
+
import { isRateLimited, notifyAiRateLimited } from "../../features/ai/rate-limit.js";
|
|
5
|
+
import { COMPOSITE_BODY_START, mediaAssetOf } from "./composite-summary.js";
|
|
6
|
+
//#region src/integrations/composite-ai/document-transcribe.ts
|
|
7
|
+
/**
|
|
8
|
+
* Transcribes the audio/video of the `document` composite at `pos` (`POST /api/ai/transcribe`) and stores the text in its
|
|
9
|
+
* `meta.transcript`, showing the meta row. The composite is anchored through its description when the request starts,
|
|
10
|
+
* so edits while it runs do not misplace the result. Notices go through `notify`, in the language of `t`; the progress notice stays until the
|
|
11
|
+
* request ends (`notify.dismiss`).
|
|
12
|
+
*/
|
|
13
|
+
async function transcribeDocument(editor, pos, fetch, notify, t) {
|
|
14
|
+
const composite = editor.state.doc.nodeAt(pos);
|
|
15
|
+
const asset = composite && mediaAssetOf(composite);
|
|
16
|
+
if (composite?.type.name !== "composite" || !asset || composite.childCount < COMPOSITE_BODY_START) return;
|
|
17
|
+
const descriptionPos = pos + 1 + composite.child(0).nodeSize;
|
|
18
|
+
const anchor = captureRange(editor, {
|
|
19
|
+
from: descriptionPos + 1,
|
|
20
|
+
to: descriptionPos + 1 + composite.child(1).content.size
|
|
21
|
+
});
|
|
22
|
+
const toastId = `transcribe-${blockIdOf(composite) ?? asset.name}`;
|
|
23
|
+
const controller = new AbortController();
|
|
24
|
+
const abort = () => controller.abort();
|
|
25
|
+
editor.on("destroy", abort);
|
|
26
|
+
notify({
|
|
27
|
+
id: toastId,
|
|
28
|
+
title: t("integrations.documentTranscribe.running"),
|
|
29
|
+
kind: "info",
|
|
30
|
+
icon: "i-lucide-loader-circle",
|
|
31
|
+
duration: 0
|
|
32
|
+
});
|
|
33
|
+
try {
|
|
34
|
+
const { text } = await fetch("/api/ai/transcribe", {
|
|
35
|
+
method: "POST",
|
|
36
|
+
body: asset,
|
|
37
|
+
signal: controller.signal
|
|
38
|
+
});
|
|
39
|
+
if (editor.isDestroyed) return;
|
|
40
|
+
if (!text.trim()) {
|
|
41
|
+
notify({
|
|
42
|
+
title: t("integrations.documentTranscribe.empty.title"),
|
|
43
|
+
description: t("integrations.documentTranscribe.empty.description"),
|
|
44
|
+
kind: "error"
|
|
45
|
+
});
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const range = resolveRange(editor.state, anchor);
|
|
49
|
+
const $from = range && editor.state.doc.resolve(range.from);
|
|
50
|
+
if (!range || !$from || $from.parent.type.name !== "compositeDescription") {
|
|
51
|
+
notify({
|
|
52
|
+
title: t("integrations.documentTranscribe.gone.title"),
|
|
53
|
+
description: t("integrations.documentTranscribe.gone.description"),
|
|
54
|
+
kind: "error"
|
|
55
|
+
});
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const compositePos = $from.before($from.depth - 1);
|
|
59
|
+
const { attrs } = $from.node($from.depth - 1);
|
|
60
|
+
editor.view.dispatch(editor.state.tr.setNodeMarkup(compositePos, void 0, {
|
|
61
|
+
...attrs,
|
|
62
|
+
meta: {
|
|
63
|
+
...attrs.meta,
|
|
64
|
+
transcript: text.trim()
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
notify({
|
|
68
|
+
title: t("integrations.documentTranscribe.done"),
|
|
69
|
+
kind: "success",
|
|
70
|
+
icon: "i-lucide-captions"
|
|
71
|
+
});
|
|
72
|
+
} catch (err) {
|
|
73
|
+
if (controller.signal.aborted || editor.isDestroyed) return;
|
|
74
|
+
if (isRateLimited(err)) notifyAiRateLimited(notify, t);
|
|
75
|
+
else notify({
|
|
76
|
+
title: t("integrations.documentTranscribe.failed"),
|
|
77
|
+
description: fetchErrorMessage(err),
|
|
78
|
+
kind: "error"
|
|
79
|
+
});
|
|
80
|
+
} finally {
|
|
81
|
+
notify.dismiss?.(toastId);
|
|
82
|
+
editor.off("destroy", abort);
|
|
83
|
+
releaseRanges(editor, [anchor]);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//#endregion
|
|
87
|
+
export { transcribeDocument };
|
|
88
|
+
|
|
89
|
+
//# sourceMappingURL=document-transcribe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-transcribe.js","names":[],"sources":["../../../src/integrations/composite-ai/document-transcribe.ts"],"sourcesContent":["import type { Editor } from '@tiptap/core'\nimport type { $Fetch } from 'ofetch'\nimport { captureRange, fetchErrorMessage, releaseRanges, resolveRange } from '../../core'\nimport type { Translate } from '../../i18n'\nimport type { Notifier } from '../../core/notify'\nimport { blockIdOf } from '../../core/schema'\nimport { isRateLimited, notifyAiRateLimited } from '../../features/ai'\nimport { COMPOSITE_BODY_START, mediaAssetOf } from './composite-summary'\n\n/**\n * Transcribes the audio/video of the `document` composite at `pos` (`POST /api/ai/transcribe`) and stores the text in its\n * `meta.transcript`, showing the meta row. The composite is anchored through its description when the request starts,\n * so edits while it runs do not misplace the result. Notices go through `notify`, in the language of `t`; the progress notice stays until the\n * request ends (`notify.dismiss`).\n */\nexport async function transcribeDocument(editor: Editor, pos: number, fetch: $Fetch, notify: Notifier, t: Translate): Promise<void> {\n const composite = editor.state.doc.nodeAt(pos)\n const asset = composite && mediaAssetOf(composite)\n if (composite?.type.name !== 'composite' || !asset || composite.childCount < COMPOSITE_BODY_START) return\n const descriptionPos = pos + 1 + composite.child(0).nodeSize\n const anchor = captureRange(editor, { from: descriptionPos + 1, to: descriptionPos + 1 + composite.child(1).content.size })\n const toastId = `transcribe-${blockIdOf(composite) ?? asset.name}`\n\n const controller = new AbortController()\n const abort = () => controller.abort()\n editor.on('destroy', abort)\n notify({ id: toastId, title: t('integrations.documentTranscribe.running'), kind: 'info', icon: 'i-lucide-loader-circle', duration: 0 })\n try {\n const { text } = await fetch<{ text: string }>('/api/ai/transcribe', {\n method: 'POST',\n body: asset,\n signal: controller.signal,\n })\n if (editor.isDestroyed) return\n if (!text.trim()) {\n notify({ title: t('integrations.documentTranscribe.empty.title'), description: t('integrations.documentTranscribe.empty.description'), kind: 'error' })\n return\n }\n\n const range = resolveRange(editor.state, anchor)\n const $from = range && editor.state.doc.resolve(range.from)\n if (!range || !$from || $from.parent.type.name !== 'compositeDescription') {\n notify({ title: t('integrations.documentTranscribe.gone.title'), description: t('integrations.documentTranscribe.gone.description'), kind: 'error' })\n return\n }\n const compositePos = $from.before($from.depth - 1)\n const { attrs } = $from.node($from.depth - 1)\n editor.view.dispatch(editor.state.tr.setNodeMarkup(compositePos, undefined, {\n ...attrs,\n meta: { ...attrs.meta, transcript: text.trim() },\n }))\n notify({ title: t('integrations.documentTranscribe.done'), kind: 'success', icon: 'i-lucide-captions' })\n }\n catch (err) {\n if (controller.signal.aborted || editor.isDestroyed) return\n if (isRateLimited(err)) notifyAiRateLimited(notify, t)\n else notify({ title: t('integrations.documentTranscribe.failed'), description: fetchErrorMessage(err), kind: 'error' })\n }\n finally {\n notify.dismiss?.(toastId)\n editor.off('destroy', abort)\n releaseRanges(editor, [anchor])\n }\n}\n"],"mappings":";;;;;;;;;;;;AAeA,eAAsB,mBAAmB,QAAgB,KAAa,OAAe,QAAkB,GAA6B;CAClI,MAAM,YAAY,OAAO,MAAM,IAAI,OAAO,GAAG;CAC7C,MAAM,QAAQ,aAAa,aAAa,SAAS;CACjD,IAAI,WAAW,KAAK,SAAS,eAAe,CAAC,SAAS,UAAU,aAAa,sBAAsB;CACnG,MAAM,iBAAiB,MAAM,IAAI,UAAU,MAAM,CAAC,CAAC,CAAC;CACpD,MAAM,SAAS,aAAa,QAAQ;EAAE,MAAM,iBAAiB;EAAG,IAAI,iBAAiB,IAAI,UAAU,MAAM,CAAC,CAAC,CAAC,QAAQ;CAAK,CAAC;CAC1H,MAAM,UAAU,cAAc,UAAU,SAAS,KAAK,MAAM;CAE5D,MAAM,aAAa,IAAI,gBAAgB;CACvC,MAAM,cAAc,WAAW,MAAM;CACrC,OAAO,GAAG,WAAW,KAAK;CAC1B,OAAO;EAAE,IAAI;EAAS,OAAO,EAAE,yCAAyC;EAAG,MAAM;EAAQ,MAAM;EAA0B,UAAU;CAAE,CAAC;CACtI,IAAI;EACF,MAAM,EAAE,SAAS,MAAM,MAAwB,sBAAsB;GACnE,QAAQ;GACR,MAAM;GACN,QAAQ,WAAW;EACrB,CAAC;EACD,IAAI,OAAO,aAAa;EACxB,IAAI,CAAC,KAAK,KAAK,GAAG;GAChB,OAAO;IAAE,OAAO,EAAE,6CAA6C;IAAG,aAAa,EAAE,mDAAmD;IAAG,MAAM;GAAQ,CAAC;GACtJ;EACF;EAEA,MAAM,QAAQ,aAAa,OAAO,OAAO,MAAM;EAC/C,MAAM,QAAQ,SAAS,OAAO,MAAM,IAAI,QAAQ,MAAM,IAAI;EAC1D,IAAI,CAAC,SAAS,CAAC,SAAS,MAAM,OAAO,KAAK,SAAS,wBAAwB;GACzE,OAAO;IAAE,OAAO,EAAE,4CAA4C;IAAG,aAAa,EAAE,kDAAkD;IAAG,MAAM;GAAQ,CAAC;GACpJ;EACF;EACA,MAAM,eAAe,MAAM,OAAO,MAAM,QAAQ,CAAC;EACjD,MAAM,EAAE,UAAU,MAAM,KAAK,MAAM,QAAQ,CAAC;EAC5C,OAAO,KAAK,SAAS,OAAO,MAAM,GAAG,cAAc,cAAc,KAAA,GAAW;GAC1E,GAAG;GACH,MAAM;IAAE,GAAG,MAAM;IAAM,YAAY,KAAK,KAAK;GAAE;EACjD,CAAC,CAAC;EACF,OAAO;GAAE,OAAO,EAAE,sCAAsC;GAAG,MAAM;GAAW,MAAM;EAAoB,CAAC;CACzG,SACO,KAAK;EACV,IAAI,WAAW,OAAO,WAAW,OAAO,aAAa;EACrD,IAAI,cAAc,GAAG,GAAG,oBAAoB,QAAQ,CAAC;OAChD,OAAO;GAAE,OAAO,EAAE,wCAAwC;GAAG,aAAa,kBAAkB,GAAG;GAAG,MAAM;EAAQ,CAAC;CACxH,UACQ;EACN,OAAO,UAAU,OAAO;EACxB,OAAO,IAAI,WAAW,KAAK;EAC3B,cAAc,QAAQ,CAAC,MAAM,CAAC;CAChC;AACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EditorFeature } from "../../core/feature.js";
|
|
2
|
+
import "../../core/index.js";
|
|
3
|
+
import { fillComposite } from "./composite-fill.js";
|
|
4
|
+
import { COMPOSITE_BODY_START, compositeSourceText, mediaAssetOf, summarizeComposite } from "./composite-summary.js";
|
|
5
|
+
import { transcribeDocument } from "./document-transcribe.js";
|
|
6
|
+
//#region src/integrations/composite-ai/index.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* AI on composites (requires `composites`, `ai`, `media`): the „Baustein füllen (KI)“ block action (on composites of
|
|
9
|
+
* kinds with an `ai` configuration: brief + document → task `fill-block`, the result opens the diff review over the
|
|
10
|
+
* body), the „Zusammenfassung erzeugen“ block action (streams a
|
|
11
|
+
* summary of a composite's body or transcript into its description), the „Transkribieren“ action of a `document`
|
|
12
|
+
* composite with an audio/video asset (`POST /api/ai/transcribe`, shown only when the app's public AI configuration
|
|
13
|
+
* enables transcription), and the composite-structure form of AI results: with `composite` structure an AI result that
|
|
14
|
+
* has a heading is inserted as a `section` composite fence, otherwise (and in flat structure) the base AI heading
|
|
15
|
+
* is used. It is the preset's single `formatAiResult` contributor. The base AI feature and the composites feature do
|
|
16
|
+
* not know it. Framework-free: notices go through the surface's `ctx.notify`, the model through the app's
|
|
17
|
+
* `modelProfiles(ctx.app)`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function compositeAiFeature(): EditorFeature<never>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { COMPOSITE_BODY_START, compositeSourceText, fillComposite, mediaAssetOf, summarizeComposite, transcribeDocument };
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ABILITY } from "../../core/schema/abilities.js";
|
|
2
|
+
import { withHeading } from "../../features/ai/protocol/tasks.js";
|
|
3
|
+
import { modelProfiles } from "../../features/ai/model-profiles.js";
|
|
4
|
+
import { compositeKind } from "../../features/composites/kinds.js";
|
|
5
|
+
import { compositeFence } from "../../features/composites/fences.js";
|
|
6
|
+
import { compositeKindsOf } from "../../features/composites/nodes.js";
|
|
7
|
+
import { structureOf } from "../../features/composites/structure.js";
|
|
8
|
+
import { fillComposite } from "./composite-fill.js";
|
|
9
|
+
import { COMPOSITE_BODY_START, compositeSourceText, mediaAssetOf, summarizeComposite } from "./composite-summary.js";
|
|
10
|
+
import { transcribeDocument } from "./document-transcribe.js";
|
|
11
|
+
//#region src/integrations/composite-ai/index.ts
|
|
12
|
+
function compositeAiActions(ctx) {
|
|
13
|
+
return [
|
|
14
|
+
{
|
|
15
|
+
id: "composite-fill",
|
|
16
|
+
label: ctx.t("integrations.compositeFill.action"),
|
|
17
|
+
icon: "i-lucide-wand-sparkles",
|
|
18
|
+
ability: ABILITY.aiGenerate,
|
|
19
|
+
order: 25,
|
|
20
|
+
isVisible: ({ editor, node }) => node.type.name === "composite" && compositeKind(compositeKindsOf(editor), String(node.attrs.kind)).ai !== void 0,
|
|
21
|
+
run: ({ editor, pos }) => {
|
|
22
|
+
fillComposite(editor, pos, ctx.fetch, modelProfiles(ctx.app).modelRef, ctx.notify, ctx.t);
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "composite-summarize",
|
|
27
|
+
label: ctx.t("integrations.compositeSummary.action"),
|
|
28
|
+
icon: "i-lucide-text-quote",
|
|
29
|
+
ability: ABILITY.compositeSummarize,
|
|
30
|
+
order: 30,
|
|
31
|
+
isVisible: ({ node }) => compositeSourceText(node).trim().length > 0,
|
|
32
|
+
run: ({ editor, pos }) => {
|
|
33
|
+
summarizeComposite(editor, pos, ctx.fetch, modelProfiles(ctx.app).modelRef, ctx.notify, ctx.t);
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "document-transcribe",
|
|
38
|
+
label: ctx.t("integrations.documentTranscribe.action"),
|
|
39
|
+
icon: "i-lucide-captions",
|
|
40
|
+
ability: ABILITY.compositeTranscribe,
|
|
41
|
+
order: 450,
|
|
42
|
+
isVisible: ({ node }) => node.attrs.kind === "document" && !!ctx.ai?.transcription && mediaAssetOf(node) !== null,
|
|
43
|
+
run: ({ editor, pos }) => {
|
|
44
|
+
transcribeDocument(editor, pos, ctx.fetch, ctx.notify, ctx.t);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* AI on composites (requires `composites`, `ai`, `media`): the „Baustein füllen (KI)“ block action (on composites of
|
|
51
|
+
* kinds with an `ai` configuration: brief + document → task `fill-block`, the result opens the diff review over the
|
|
52
|
+
* body), the „Zusammenfassung erzeugen“ block action (streams a
|
|
53
|
+
* summary of a composite's body or transcript into its description), the „Transkribieren“ action of a `document`
|
|
54
|
+
* composite with an audio/video asset (`POST /api/ai/transcribe`, shown only when the app's public AI configuration
|
|
55
|
+
* enables transcription), and the composite-structure form of AI results: with `composite` structure an AI result that
|
|
56
|
+
* has a heading is inserted as a `section` composite fence, otherwise (and in flat structure) the base AI heading
|
|
57
|
+
* is used. It is the preset's single `formatAiResult` contributor. The base AI feature and the composites feature do
|
|
58
|
+
* not know it. Framework-free: notices go through the surface's `ctx.notify`, the model through the app's
|
|
59
|
+
* `modelProfiles(ctx.app)`.
|
|
60
|
+
*/
|
|
61
|
+
function compositeAiFeature() {
|
|
62
|
+
return {
|
|
63
|
+
id: "composite-ai",
|
|
64
|
+
requires: [
|
|
65
|
+
"composites",
|
|
66
|
+
"ai",
|
|
67
|
+
"media"
|
|
68
|
+
],
|
|
69
|
+
blockActions: compositeAiActions,
|
|
70
|
+
formatAiResult: (editor, markdown, heading) => {
|
|
71
|
+
if (!heading) return markdown;
|
|
72
|
+
const text = withHeading(heading, markdown);
|
|
73
|
+
return structureOf(editor) === "composite" ? compositeFence("section", {}, text) : text;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { COMPOSITE_BODY_START, compositeAiFeature, compositeSourceText, fillComposite, mediaAssetOf, summarizeComposite, transcribeDocument };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/integrations/composite-ai/index.ts"],"sourcesContent":["import type { BlockAction, EditorFeature, FeatureContext } from '../../core'\nimport { ABILITY } from '../../core/schema'\nimport { modelProfiles, withHeading } from '../../features/ai'\nimport { structureOf } from '../../features/composites'\nimport { compositeFence, compositeKind, compositeKindsOf } from '../../features/composites/schema'\nimport { fillComposite } from './composite-fill'\nimport { compositeSourceText, mediaAssetOf, summarizeComposite } from './composite-summary'\nimport { transcribeDocument } from './document-transcribe'\n\nexport { fillComposite } from './composite-fill'\nexport { COMPOSITE_BODY_START, compositeSourceText, mediaAssetOf, summarizeComposite } from './composite-summary'\nexport { transcribeDocument } from './document-transcribe'\n\nfunction compositeAiActions(ctx: FeatureContext): BlockAction[] {\n return [\n {\n id: 'composite-fill',\n label: ctx.t('integrations.compositeFill.action'),\n icon: 'i-lucide-wand-sparkles',\n ability: ABILITY.aiGenerate,\n order: 25,\n isVisible: ({ editor, node }) => node.type.name === 'composite' && compositeKind(compositeKindsOf(editor), String(node.attrs.kind)).ai !== undefined,\n run: ({ editor, pos }) => {\n void fillComposite(editor, pos, ctx.fetch, modelProfiles(ctx.app).modelRef, ctx.notify, ctx.t)\n },\n },\n {\n id: 'composite-summarize',\n label: ctx.t('integrations.compositeSummary.action'),\n icon: 'i-lucide-text-quote',\n ability: ABILITY.compositeSummarize,\n order: 30,\n isVisible: ({ node }) => compositeSourceText(node).trim().length > 0,\n run: ({ editor, pos }) => {\n void summarizeComposite(editor, pos, ctx.fetch, modelProfiles(ctx.app).modelRef, ctx.notify, ctx.t)\n },\n },\n {\n id: 'document-transcribe',\n label: ctx.t('integrations.documentTranscribe.action'),\n icon: 'i-lucide-captions',\n ability: ABILITY.compositeTranscribe,\n order: 450,\n isVisible: ({ node }) => node.attrs.kind === 'document' && !!ctx.ai?.transcription && mediaAssetOf(node) !== null,\n run: ({ editor, pos }) => {\n void transcribeDocument(editor, pos, ctx.fetch, ctx.notify, ctx.t)\n },\n },\n ]\n}\n\n/**\n * AI on composites (requires `composites`, `ai`, `media`): the „Baustein füllen (KI)“ block action (on composites of\n * kinds with an `ai` configuration: brief + document → task `fill-block`, the result opens the diff review over the\n * body), the „Zusammenfassung erzeugen“ block action (streams a\n * summary of a composite's body or transcript into its description), the „Transkribieren“ action of a `document`\n * composite with an audio/video asset (`POST /api/ai/transcribe`, shown only when the app's public AI configuration\n * enables transcription), and the composite-structure form of AI results: with `composite` structure an AI result that\n * has a heading is inserted as a `section` composite fence, otherwise (and in flat structure) the base AI heading\n * is used. It is the preset's single `formatAiResult` contributor. The base AI feature and the composites feature do\n * not know it. Framework-free: notices go through the surface's `ctx.notify`, the model through the app's\n * `modelProfiles(ctx.app)`.\n */\nexport function compositeAiFeature(): EditorFeature<never> {\n return {\n id: 'composite-ai',\n requires: ['composites', 'ai', 'media'],\n blockActions: compositeAiActions,\n formatAiResult: (editor, markdown, heading) => {\n if (!heading) return markdown\n const text = withHeading(heading, markdown)\n return structureOf(editor) === 'composite' ? compositeFence('section', {}, text) : text\n },\n }\n}\n"],"mappings":";;;;;;;;;;;AAaA,SAAS,mBAAmB,KAAoC;CAC9D,OAAO;EACL;GACE,IAAI;GACJ,OAAO,IAAI,EAAE,mCAAmC;GAChD,MAAM;GACN,SAAS,QAAQ;GACjB,OAAO;GACP,YAAY,EAAE,QAAQ,WAAW,KAAK,KAAK,SAAS,eAAe,cAAc,iBAAiB,MAAM,GAAG,OAAO,KAAK,MAAM,IAAI,CAAC,CAAC,CAAC,OAAO,KAAA;GAC3I,MAAM,EAAE,QAAQ,UAAU;IACxB,cAAmB,QAAQ,KAAK,IAAI,OAAO,cAAc,IAAI,GAAG,CAAC,CAAC,UAAU,IAAI,QAAQ,IAAI,CAAC;GAC/F;EACF;EACA;GACE,IAAI;GACJ,OAAO,IAAI,EAAE,sCAAsC;GACnD,MAAM;GACN,SAAS,QAAQ;GACjB,OAAO;GACP,YAAY,EAAE,WAAW,oBAAoB,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS;GACnE,MAAM,EAAE,QAAQ,UAAU;IACxB,mBAAwB,QAAQ,KAAK,IAAI,OAAO,cAAc,IAAI,GAAG,CAAC,CAAC,UAAU,IAAI,QAAQ,IAAI,CAAC;GACpG;EACF;EACA;GACE,IAAI;GACJ,OAAO,IAAI,EAAE,wCAAwC;GACrD,MAAM;GACN,SAAS,QAAQ;GACjB,OAAO;GACP,YAAY,EAAE,WAAW,KAAK,MAAM,SAAS,cAAc,CAAC,CAAC,IAAI,IAAI,iBAAiB,aAAa,IAAI,MAAM;GAC7G,MAAM,EAAE,QAAQ,UAAU;IACxB,mBAAwB,QAAQ,KAAK,IAAI,OAAO,IAAI,QAAQ,IAAI,CAAC;GACnE;EACF;CACF;AACF;;;;;;;;;;;;;AAcA,SAAgB,qBAA2C;CACzD,OAAO;EACL,IAAI;EACJ,UAAU;GAAC;GAAc;GAAM;EAAO;EACtC,cAAc;EACd,iBAAiB,QAAQ,UAAU,YAAY;GAC7C,IAAI,CAAC,SAAS,OAAO;GACrB,MAAM,OAAO,YAAY,SAAS,QAAQ;GAC1C,OAAO,YAAY,MAAM,MAAM,cAAc,eAAe,WAAW,CAAC,GAAG,IAAI,IAAI;EACrF;CACF;AACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EditorFeature } from "../../core/feature.js";
|
|
2
|
+
import "../../core/index.js";
|
|
3
|
+
//#region src/integrations/composite-media/index.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* File import into composites. Needs the `composites` and `media` features; neither imports this one.
|
|
6
|
+
*
|
|
7
|
+
* - **Wrapping:** the `wrapImport` stage puts the blocks of every imported file (parsed text or Markdown, or the
|
|
8
|
+
* uploaded media or file block; drop, paste, picker and recorder alike) into one `document` composite titled with the
|
|
9
|
+
* file's name stem and carrying its filename, type, size and import date as meta. Without this feature the blocks are
|
|
10
|
+
* inserted as they are.
|
|
11
|
+
* - **Action:** the `/` command „Datei importieren“ (`datei`, ability `composite`) picks any files and imports them
|
|
12
|
+
* through `editor.storage.media.importFiles` at the caret.
|
|
13
|
+
*
|
|
14
|
+
* Install it anywhere after `composites` and `media`; the `/` entry follows the order of the feature list. Framework-free
|
|
15
|
+
* (`EditorFeature<never>`: no component slots), so one instance serves the Vue and the React surface.
|
|
16
|
+
*/
|
|
17
|
+
export declare function compositeMediaFeature(): EditorFeature<never>;
|
|
18
|
+
//#endregion
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ABILITY } from "../../core/schema/abilities.js";
|
|
2
|
+
import { compositeJSON } from "../../features/composites/nodes.js";
|
|
3
|
+
import { mediaMime } from "../../features/media/schema.js";
|
|
4
|
+
import { pickFiles } from "../../features/media/upload.js";
|
|
5
|
+
import { isTextFile } from "../../features/media/file-import.js";
|
|
6
|
+
//#region src/integrations/composite-media/index.ts
|
|
7
|
+
/** The file name without its last extension; the whole name when nothing else is left (`.env`). */
|
|
8
|
+
function stemOf(name) {
|
|
9
|
+
const dot = name.lastIndexOf(".");
|
|
10
|
+
return dot > 0 ? name.slice(0, dot) : name;
|
|
11
|
+
}
|
|
12
|
+
/** A `document` composite titled with the stem of `file`'s name, holding its original name, type, size and import date. */
|
|
13
|
+
function documentComposite(file, text, body) {
|
|
14
|
+
const composite = compositeJSON("document", body);
|
|
15
|
+
const [title, ...rest] = composite.content;
|
|
16
|
+
const stem = stemOf(file.name);
|
|
17
|
+
return {
|
|
18
|
+
...composite,
|
|
19
|
+
attrs: {
|
|
20
|
+
kind: "document",
|
|
21
|
+
meta: {
|
|
22
|
+
filename: file.name,
|
|
23
|
+
mimeType: mediaMime(file.type) || (text ? "text/markdown" : "application/octet-stream"),
|
|
24
|
+
size: file.size,
|
|
25
|
+
importedAt: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10)
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
content: [stem ? {
|
|
29
|
+
...title,
|
|
30
|
+
content: [{
|
|
31
|
+
type: "text",
|
|
32
|
+
text: stem
|
|
33
|
+
}]
|
|
34
|
+
} : title, ...rest]
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* File import into composites. Needs the `composites` and `media` features; neither imports this one.
|
|
39
|
+
*
|
|
40
|
+
* - **Wrapping:** the `wrapImport` stage puts the blocks of every imported file (parsed text or Markdown, or the
|
|
41
|
+
* uploaded media or file block; drop, paste, picker and recorder alike) into one `document` composite titled with the
|
|
42
|
+
* file's name stem and carrying its filename, type, size and import date as meta. Without this feature the blocks are
|
|
43
|
+
* inserted as they are.
|
|
44
|
+
* - **Action:** the `/` command „Datei importieren“ (`datei`, ability `composite`) picks any files and imports them
|
|
45
|
+
* through `editor.storage.media.importFiles` at the caret.
|
|
46
|
+
*
|
|
47
|
+
* Install it anywhere after `composites` and `media`; the `/` entry follows the order of the feature list. Framework-free
|
|
48
|
+
* (`EditorFeature<never>`: no component slots), so one instance serves the Vue and the React surface.
|
|
49
|
+
*/
|
|
50
|
+
function compositeMediaFeature() {
|
|
51
|
+
return {
|
|
52
|
+
id: "composite-media",
|
|
53
|
+
requires: ["composites", "media"],
|
|
54
|
+
blocks: { wrapImport: (_editor, file, blocks) => [documentComposite(file, isTextFile(file), blocks)] },
|
|
55
|
+
slashCommands: (ctx) => [{
|
|
56
|
+
id: "datei",
|
|
57
|
+
label: ctx.t("integrations.compositeMedia.import"),
|
|
58
|
+
icon: "i-lucide-file-up",
|
|
59
|
+
ability: ABILITY.composite,
|
|
60
|
+
run: (editor) => {
|
|
61
|
+
const pos = editor.state.selection.from;
|
|
62
|
+
pickFiles("*/*").then((files) => {
|
|
63
|
+
if (files.length && !editor.isDestroyed) return editor.storage.media.importFiles(editor, files, pos);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { compositeMediaFeature };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/integrations/composite-media/index.ts"],"sourcesContent":["import type { JSONContent } from '@tiptap/core'\nimport type { EditorFeature, SlashCommandItem } from '../../core'\nimport { ABILITY } from '../../core/schema'\nimport { compositeJSON } from '../../features/composites/schema'\nimport { isTextFile, pickFiles } from '../../features/media'\nimport { mediaMime } from '../../features/media/schema'\n\n/** The file name without its last extension; the whole name when nothing else is left (`.env`). */\nfunction stemOf(name: string): string {\n const dot = name.lastIndexOf('.')\n return dot > 0 ? name.slice(0, dot) : name\n}\n\n/** A `document` composite titled with the stem of `file`'s name, holding its original name, type, size and import date. */\nfunction documentComposite(file: File, text: boolean, body: JSONContent[]): JSONContent {\n const composite = compositeJSON('document', body)\n const [title, ...rest] = composite.content!\n const stem = stemOf(file.name)\n return {\n ...composite,\n attrs: {\n kind: 'document',\n meta: {\n filename: file.name,\n mimeType: mediaMime(file.type) || (text ? 'text/markdown' : 'application/octet-stream'),\n size: file.size,\n importedAt: new Date().toISOString().slice(0, 10),\n },\n },\n content: [stem ? { ...title!, content: [{ type: 'text', text: stem }] } : title!, ...rest],\n }\n}\n\n/**\n * File import into composites. Needs the `composites` and `media` features; neither imports this one.\n *\n * - **Wrapping:** the `wrapImport` stage puts the blocks of every imported file (parsed text or Markdown, or the\n * uploaded media or file block; drop, paste, picker and recorder alike) into one `document` composite titled with the\n * file's name stem and carrying its filename, type, size and import date as meta. Without this feature the blocks are\n * inserted as they are.\n * - **Action:** the `/` command „Datei importieren“ (`datei`, ability `composite`) picks any files and imports them\n * through `editor.storage.media.importFiles` at the caret.\n *\n * Install it anywhere after `composites` and `media`; the `/` entry follows the order of the feature list. Framework-free\n * (`EditorFeature<never>`: no component slots), so one instance serves the Vue and the React surface.\n */\nexport function compositeMediaFeature(): EditorFeature<never> {\n return {\n id: 'composite-media',\n requires: ['composites', 'media'],\n blocks: { wrapImport: (_editor, file, blocks) => [documentComposite(file, isTextFile(file), blocks)] },\n slashCommands: (ctx): SlashCommandItem[] => [{\n id: 'datei',\n label: ctx.t('integrations.compositeMedia.import'),\n icon: 'i-lucide-file-up',\n ability: ABILITY.composite,\n run: (editor) => {\n const pos = editor.state.selection.from\n void pickFiles('*/*').then((files) => {\n if (files.length && !editor.isDestroyed) return editor.storage.media.importFiles(editor, files, pos)\n })\n },\n }],\n }\n}\n"],"mappings":";;;;;;;AAQA,SAAS,OAAO,MAAsB;CACpC,MAAM,MAAM,KAAK,YAAY,GAAG;CAChC,OAAO,MAAM,IAAI,KAAK,MAAM,GAAG,GAAG,IAAI;AACxC;;AAGA,SAAS,kBAAkB,MAAY,MAAe,MAAkC;CACtF,MAAM,YAAY,cAAc,YAAY,IAAI;CAChD,MAAM,CAAC,OAAO,GAAG,QAAQ,UAAU;CACnC,MAAM,OAAO,OAAO,KAAK,IAAI;CAC7B,OAAO;EACL,GAAG;EACH,OAAO;GACL,MAAM;GACN,MAAM;IACJ,UAAU,KAAK;IACf,UAAU,UAAU,KAAK,IAAI,MAAM,OAAO,kBAAkB;IAC5D,MAAM,KAAK;IACX,6BAAY,IAAI,KAAK,EAAA,CAAE,YAAY,CAAC,CAAC,MAAM,GAAG,EAAE;GAClD;EACF;EACA,SAAS,CAAC,OAAO;GAAE,GAAG;GAAQ,SAAS,CAAC;IAAE,MAAM;IAAQ,MAAM;GAAK,CAAC;EAAE,IAAI,OAAQ,GAAG,IAAI;CAC3F;AACF;;;;;;;;;;;;;;AAeA,SAAgB,wBAA8C;CAC5D,OAAO;EACL,IAAI;EACJ,UAAU,CAAC,cAAc,OAAO;EAChC,QAAQ,EAAE,aAAa,SAAS,MAAM,WAAW,CAAC,kBAAkB,MAAM,WAAW,IAAI,GAAG,MAAM,CAAC,EAAE;EACrG,gBAAgB,QAA4B,CAAC;GAC3C,IAAI;GACJ,OAAO,IAAI,EAAE,oCAAoC;GACjD,MAAM;GACN,SAAS,QAAQ;GACjB,MAAM,WAAW;IACf,MAAM,MAAM,OAAO,MAAM,UAAU;IACnC,UAAe,KAAK,CAAC,CAAC,MAAM,UAAU;KACpC,IAAI,MAAM,UAAU,CAAC,OAAO,aAAa,OAAO,OAAO,QAAQ,MAAM,YAAY,QAAQ,OAAO,GAAG;IACrG,CAAC;GACH;EACF,CAAC;CACH;AACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EditorFeature } from "../../core/feature.js";
|
|
2
|
+
import "../../core/index.js";
|
|
3
|
+
import { TranscriptCleanup, TranscriptCleanupScope, createTranscriptCleanup, hasTranscriptSegments } from "./transcript-cleanup.js";
|
|
4
|
+
//#region src/integrations/transcript-ai/index.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Speaker-aware AI on transcripts (requires `transcript`, `ai`): „Transkript bereinigen“ removes fillers, repairs
|
|
7
|
+
* punctuation and joins fragments per speaker segment (`POST /api/ai/transcript-cleanup`) and opens the result as an
|
|
8
|
+
* in-document AI review. Offered as a block action on a segment or a block holding segments, and as a row of the AI
|
|
9
|
+
* selection menu over a selection that overlaps segments. Without this feature neither exists. Framework-free
|
|
10
|
+
* (`EditorFeature<never>`): notices go through the surface's `ctx.notify`, the model through `modelProfiles(ctx.app)`,
|
|
11
|
+
* and a running request is aborted when the surface goes away (`setup` teardown).
|
|
12
|
+
*/
|
|
13
|
+
export declare function transcriptAiFeature(): EditorFeature<never>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { type TranscriptCleanup, type TranscriptCleanupScope, createTranscriptCleanup, hasTranscriptSegments };
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ABILITY } from "../../core/schema/abilities.js";
|
|
2
|
+
import { modelProfiles } from "../../features/ai/model-profiles.js";
|
|
3
|
+
import { createTranscriptCleanup, hasTranscriptSegments } from "./transcript-cleanup.js";
|
|
4
|
+
import { Extension } from "@tiptap/core";
|
|
5
|
+
//#region src/integrations/transcript-ai/index.ts
|
|
6
|
+
const surfaces = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
function cleanupOf(ctx) {
|
|
8
|
+
let cleanup = surfaces.get(ctx);
|
|
9
|
+
if (!cleanup) {
|
|
10
|
+
cleanup = createTranscriptCleanup(modelProfiles(ctx.app).modelRef, ctx.fetch, ctx.notify, ctx.t);
|
|
11
|
+
surfaces.set(ctx, cleanup);
|
|
12
|
+
}
|
|
13
|
+
return cleanup;
|
|
14
|
+
}
|
|
15
|
+
function menuExtension(cleanup, t) {
|
|
16
|
+
const aiMenuActions = [{
|
|
17
|
+
id: "transcript-cleanup",
|
|
18
|
+
label: t("integrations.transcriptCleanup.action"),
|
|
19
|
+
icon: "i-lucide-eraser",
|
|
20
|
+
available: (editor, range) => !cleanup.running.get() && hasTranscriptSegments(editor.state.doc, range),
|
|
21
|
+
run: (editor, range) => cleanup.cleanup(editor, range)
|
|
22
|
+
}];
|
|
23
|
+
return Extension.create({
|
|
24
|
+
name: "transcriptCleanupMenu",
|
|
25
|
+
aiMenuActions
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function cleanupActions(ctx) {
|
|
29
|
+
const scope = (pos, size) => ({
|
|
30
|
+
from: pos,
|
|
31
|
+
to: pos + size
|
|
32
|
+
});
|
|
33
|
+
return [{
|
|
34
|
+
id: "transcript-cleanup",
|
|
35
|
+
label: ctx.t("integrations.transcriptCleanup.actionAi"),
|
|
36
|
+
icon: "i-lucide-eraser",
|
|
37
|
+
ability: ABILITY.aiRewrite,
|
|
38
|
+
order: 20,
|
|
39
|
+
isVisible: ({ editor, node, pos }) => hasTranscriptSegments(editor.state.doc, scope(pos, node.nodeSize)),
|
|
40
|
+
run: ({ editor, node, pos }) => void cleanupOf(ctx).cleanup(editor, scope(pos, node.nodeSize))
|
|
41
|
+
}];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Speaker-aware AI on transcripts (requires `transcript`, `ai`): „Transkript bereinigen“ removes fillers, repairs
|
|
45
|
+
* punctuation and joins fragments per speaker segment (`POST /api/ai/transcript-cleanup`) and opens the result as an
|
|
46
|
+
* in-document AI review. Offered as a block action on a segment or a block holding segments, and as a row of the AI
|
|
47
|
+
* selection menu over a selection that overlaps segments. Without this feature neither exists. Framework-free
|
|
48
|
+
* (`EditorFeature<never>`): notices go through the surface's `ctx.notify`, the model through `modelProfiles(ctx.app)`,
|
|
49
|
+
* and a running request is aborted when the surface goes away (`setup` teardown).
|
|
50
|
+
*/
|
|
51
|
+
function transcriptAiFeature() {
|
|
52
|
+
return {
|
|
53
|
+
id: "transcript-ai",
|
|
54
|
+
requires: ["transcript", "ai"],
|
|
55
|
+
extensions: (ctx) => [menuExtension(cleanupOf(ctx), ctx.t)],
|
|
56
|
+
setup: (ctx) => () => cleanupOf(ctx).abort(),
|
|
57
|
+
blockActions: cleanupActions
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { createTranscriptCleanup, hasTranscriptSegments, transcriptAiFeature };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/integrations/transcript-ai/index.ts"],"sourcesContent":["import { type AnyExtension, Extension } from '@tiptap/core'\nimport type { BlockAction, EditorFeature, FeatureContext } from '../../core'\nimport { ABILITY } from '../../core/schema'\nimport type { Translate } from '../../i18n'\nimport { type AiMenuAction, modelProfiles } from '../../features/ai'\nimport { createTranscriptCleanup, hasTranscriptSegments, type TranscriptCleanup, type TranscriptCleanupScope } from './transcript-cleanup'\n\nexport { createTranscriptCleanup, hasTranscriptSegments, type TranscriptCleanup, type TranscriptCleanupScope } from './transcript-cleanup'\n\n// Per surface: a preset (and so this feature object) may be shared by several editors, each with its own running state.\nconst surfaces = new WeakMap<FeatureContext, TranscriptCleanup>()\n\nfunction cleanupOf(ctx: FeatureContext): TranscriptCleanup {\n let cleanup = surfaces.get(ctx)\n if (!cleanup) {\n cleanup = createTranscriptCleanup(modelProfiles(ctx.app).modelRef, ctx.fetch, ctx.notify, ctx.t)\n surfaces.set(ctx, cleanup)\n }\n return cleanup\n}\n\nfunction menuExtension(cleanup: TranscriptCleanup, t: Translate): AnyExtension {\n const aiMenuActions: AiMenuAction[] = [{\n id: 'transcript-cleanup',\n label: t('integrations.transcriptCleanup.action'),\n icon: 'i-lucide-eraser',\n available: (editor, range) => !cleanup.running.get() && hasTranscriptSegments(editor.state.doc, range),\n run: (editor, range) => cleanup.cleanup(editor, range),\n }]\n return Extension.create({ name: 'transcriptCleanupMenu', aiMenuActions })\n}\n\nfunction cleanupActions(ctx: FeatureContext): BlockAction[] {\n const scope = (pos: number, size: number): TranscriptCleanupScope => ({ from: pos, to: pos + size })\n return [{\n id: 'transcript-cleanup',\n label: ctx.t('integrations.transcriptCleanup.actionAi'),\n icon: 'i-lucide-eraser',\n ability: ABILITY.aiRewrite,\n order: 20,\n // A speaker segment, or a block (composite, quote, list) holding some: cleans exactly those segments.\n isVisible: ({ editor, node, pos }) => hasTranscriptSegments(editor.state.doc, scope(pos, node.nodeSize)),\n run: ({ editor, node, pos }) => void cleanupOf(ctx).cleanup(editor, scope(pos, node.nodeSize)),\n }]\n}\n\n/**\n * Speaker-aware AI on transcripts (requires `transcript`, `ai`): „Transkript bereinigen“ removes fillers, repairs\n * punctuation and joins fragments per speaker segment (`POST /api/ai/transcript-cleanup`) and opens the result as an\n * in-document AI review. Offered as a block action on a segment or a block holding segments, and as a row of the AI\n * selection menu over a selection that overlaps segments. Without this feature neither exists. Framework-free\n * (`EditorFeature<never>`): notices go through the surface's `ctx.notify`, the model through `modelProfiles(ctx.app)`,\n * and a running request is aborted when the surface goes away (`setup` teardown).\n */\nexport function transcriptAiFeature(): EditorFeature<never> {\n return {\n id: 'transcript-ai',\n requires: ['transcript', 'ai'],\n extensions: ctx => [menuExtension(cleanupOf(ctx), ctx.t)],\n setup: ctx => () => cleanupOf(ctx).abort(),\n blockActions: cleanupActions,\n }\n}\n"],"mappings":";;;;;AAUA,MAAM,2BAAW,IAAI,QAA2C;AAEhE,SAAS,UAAU,KAAwC;CACzD,IAAI,UAAU,SAAS,IAAI,GAAG;CAC9B,IAAI,CAAC,SAAS;EACZ,UAAU,wBAAwB,cAAc,IAAI,GAAG,CAAC,CAAC,UAAU,IAAI,OAAO,IAAI,QAAQ,IAAI,CAAC;EAC/F,SAAS,IAAI,KAAK,OAAO;CAC3B;CACA,OAAO;AACT;AAEA,SAAS,cAAc,SAA4B,GAA4B;CAC7E,MAAM,gBAAgC,CAAC;EACrC,IAAI;EACJ,OAAO,EAAE,uCAAuC;EAChD,MAAM;EACN,YAAY,QAAQ,UAAU,CAAC,QAAQ,QAAQ,IAAI,KAAK,sBAAsB,OAAO,MAAM,KAAK,KAAK;EACrG,MAAM,QAAQ,UAAU,QAAQ,QAAQ,QAAQ,KAAK;CACvD,CAAC;CACD,OAAO,UAAU,OAAO;EAAE,MAAM;EAAyB;CAAc,CAAC;AAC1E;AAEA,SAAS,eAAe,KAAoC;CAC1D,MAAM,SAAS,KAAa,UAA0C;EAAE,MAAM;EAAK,IAAI,MAAM;CAAK;CAClG,OAAO,CAAC;EACN,IAAI;EACJ,OAAO,IAAI,EAAE,yCAAyC;EACtD,MAAM;EACN,SAAS,QAAQ;EACjB,OAAO;EAEP,YAAY,EAAE,QAAQ,MAAM,UAAU,sBAAsB,OAAO,MAAM,KAAK,MAAM,KAAK,KAAK,QAAQ,CAAC;EACvG,MAAM,EAAE,QAAQ,MAAM,UAAU,KAAK,UAAU,GAAG,CAAC,CAAC,QAAQ,QAAQ,MAAM,KAAK,KAAK,QAAQ,CAAC;CAC/F,CAAC;AACH;;;;;;;;;AAUA,SAAgB,sBAA4C;CAC1D,OAAO;EACL,IAAI;EACJ,UAAU,CAAC,cAAc,IAAI;EAC7B,aAAY,QAAO,CAAC,cAAc,UAAU,GAAG,GAAG,IAAI,CAAC,CAAC;EACxD,QAAO,cAAa,UAAU,GAAG,CAAC,CAAC,MAAM;EACzC,cAAc;CAChB;AACF"}
|