@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,147 @@
|
|
|
1
|
+
import { captureRange, releaseRanges, resolveRange } from "../../../core/doc-anchors.js";
|
|
2
|
+
import { fetchErrorMessage } from "../../../core/fetch-error.js";
|
|
3
|
+
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
4
|
+
import { cn } from "../../../react/ui/utils.js";
|
|
5
|
+
import { Icon } from "../../../react/Icon.js";
|
|
6
|
+
import { Button } from "../../../react/ui/button.js";
|
|
7
|
+
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "../../../react/ui/dialog.js";
|
|
8
|
+
import "../upload.js";
|
|
9
|
+
import { useNotifier } from "../../../react/use-notifier.js";
|
|
10
|
+
import { useAudioRecorder } from "./use-audio-recorder.js";
|
|
11
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
//#region src/features/media/react/AudioRecorderModal.tsx
|
|
14
|
+
/**
|
|
15
|
+
* „Audio aufnehmen“, opened by `openAudioRecorder(editor)` (toolbar „Aufnahme“): records in the browser and imports the
|
|
16
|
+
* file through `importFiles` (upload, wrapped by the pipeline's `wrapImport` stage) where the caret was when the modal opened.
|
|
17
|
+
* Nothing enters the (possibly shared) document before the upload succeeded.
|
|
18
|
+
*/
|
|
19
|
+
function AudioRecorderModal({ editor }) {
|
|
20
|
+
const { state, seconds, start, stop, cancel } = useAudioRecorder();
|
|
21
|
+
const [open, setOpen] = useState(false);
|
|
22
|
+
/** Stopping, uploading and inserting a recording. */
|
|
23
|
+
const [inserting, setInserting] = useState(false);
|
|
24
|
+
/** The recording once stopped; kept after a failed upload so „Erneut hochladen“ can retry it. */
|
|
25
|
+
const [recorded, setRecorded] = useState(null);
|
|
26
|
+
const flow = useRef({
|
|
27
|
+
open: false,
|
|
28
|
+
inserting: false,
|
|
29
|
+
recorded: null,
|
|
30
|
+
anchor: null
|
|
31
|
+
});
|
|
32
|
+
const { t } = useEditorI18n();
|
|
33
|
+
const notify = useNotifier(editor);
|
|
34
|
+
const notice = state === "denied" ? t("media.recorder.denied") : state === "unsupported" ? t("media.recorder.unsupported") : null;
|
|
35
|
+
const clock = `${String(Math.floor(seconds / 60)).padStart(2, "0")}:${String(seconds % 60).padStart(2, "0")}`;
|
|
36
|
+
/** Ends the flow: discards a running or unsent recording and releases the caret anchor. */
|
|
37
|
+
const close = useCallback(() => {
|
|
38
|
+
cancel();
|
|
39
|
+
flow.current.recorded = null;
|
|
40
|
+
setRecorded(null);
|
|
41
|
+
if (flow.current.anchor) releaseRanges(editor, [flow.current.anchor]);
|
|
42
|
+
flow.current.anchor = null;
|
|
43
|
+
flow.current.open = false;
|
|
44
|
+
setOpen(false);
|
|
45
|
+
}, [cancel, editor]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const onTransaction = ({ transaction }) => {
|
|
48
|
+
if (!transaction.getMeta("audioRecorderOpen") || flow.current.open || !editor.isEditable) return;
|
|
49
|
+
const { head } = editor.state.selection;
|
|
50
|
+
flow.current.anchor = captureRange(editor, {
|
|
51
|
+
from: head,
|
|
52
|
+
to: head
|
|
53
|
+
});
|
|
54
|
+
flow.current.open = true;
|
|
55
|
+
setOpen(true);
|
|
56
|
+
};
|
|
57
|
+
editor.on("transaction", onTransaction);
|
|
58
|
+
return () => {
|
|
59
|
+
editor.off("transaction", onTransaction);
|
|
60
|
+
if (flow.current.anchor) releaseRanges(editor, [flow.current.anchor]);
|
|
61
|
+
flow.current.anchor = null;
|
|
62
|
+
};
|
|
63
|
+
}, [editor]);
|
|
64
|
+
async function record() {
|
|
65
|
+
try {
|
|
66
|
+
await start();
|
|
67
|
+
} catch (error) {
|
|
68
|
+
notify({
|
|
69
|
+
title: t("media.recorder.failed"),
|
|
70
|
+
description: fetchErrorMessage(error),
|
|
71
|
+
kind: "error"
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
async function insert() {
|
|
76
|
+
if (flow.current.inserting) return;
|
|
77
|
+
flow.current.inserting = true;
|
|
78
|
+
setInserting(true);
|
|
79
|
+
try {
|
|
80
|
+
const file = flow.current.recorded ?? await stop();
|
|
81
|
+
if (!file) return;
|
|
82
|
+
flow.current.recorded = file;
|
|
83
|
+
setRecorded(file);
|
|
84
|
+
const pos = flow.current.anchor ? resolveRange(editor.state, flow.current.anchor)?.from : void 0;
|
|
85
|
+
if (!await editor.storage.media.importFiles(editor, [file], pos)) return;
|
|
86
|
+
if (!editor.isDestroyed) close();
|
|
87
|
+
} catch (error) {
|
|
88
|
+
notify({
|
|
89
|
+
title: t("media.recorder.failed"),
|
|
90
|
+
description: fetchErrorMessage(error),
|
|
91
|
+
kind: "error"
|
|
92
|
+
});
|
|
93
|
+
} finally {
|
|
94
|
+
flow.current.inserting = false;
|
|
95
|
+
setInserting(false);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return /* @__PURE__ */ jsx(Dialog, {
|
|
99
|
+
open,
|
|
100
|
+
onOpenChange: (value) => {
|
|
101
|
+
if (!value && !flow.current.inserting) close();
|
|
102
|
+
},
|
|
103
|
+
children: /* @__PURE__ */ jsxs(DialogContent, {
|
|
104
|
+
showCloseButton: !inserting,
|
|
105
|
+
"aria-describedby": void 0,
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsx(DialogTitle, { children: t("media.recorder.title") }) }),
|
|
108
|
+
/* @__PURE__ */ jsxs("div", {
|
|
109
|
+
className: "flex flex-col items-center gap-3 py-2",
|
|
110
|
+
children: [notice && /* @__PURE__ */ jsx("p", {
|
|
111
|
+
className: "text-sm text-destructive",
|
|
112
|
+
children: notice
|
|
113
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
114
|
+
className: cn("flex items-center gap-2 font-mono text-3xl tabular-nums", state === "recording" ? "text-foreground" : "text-muted-foreground"),
|
|
115
|
+
role: "timer",
|
|
116
|
+
"aria-label": t("media.recorder.duration"),
|
|
117
|
+
children: [state === "recording" && /* @__PURE__ */ jsx("span", { className: "size-2.5 animate-pulse rounded-full bg-destructive" }), clock]
|
|
118
|
+
})]
|
|
119
|
+
}),
|
|
120
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [/* @__PURE__ */ jsx(Button, {
|
|
121
|
+
variant: "ghost",
|
|
122
|
+
disabled: inserting,
|
|
123
|
+
onClick: close,
|
|
124
|
+
children: t("media.recorder.cancel")
|
|
125
|
+
}), state === "recording" || inserting ? /* @__PURE__ */ jsxs(Button, {
|
|
126
|
+
disabled: inserting,
|
|
127
|
+
onClick: () => void insert(),
|
|
128
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
129
|
+
name: inserting ? "i-lucide-loader-circle" : "i-lucide-square",
|
|
130
|
+
className: cn(inserting && "animate-spin")
|
|
131
|
+
}), t("media.recorder.stopInsert")]
|
|
132
|
+
}) : recorded ? /* @__PURE__ */ jsxs(Button, {
|
|
133
|
+
onClick: () => void insert(),
|
|
134
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "i-lucide-upload" }), t("media.recorder.retry")]
|
|
135
|
+
}) : /* @__PURE__ */ jsxs(Button, {
|
|
136
|
+
disabled: state === "unsupported",
|
|
137
|
+
onClick: () => void record(),
|
|
138
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "i-lucide-mic" }), t("media.recorder.start")]
|
|
139
|
+
})] })
|
|
140
|
+
]
|
|
141
|
+
})
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
export { AudioRecorderModal };
|
|
146
|
+
|
|
147
|
+
//# sourceMappingURL=AudioRecorderModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioRecorderModal.js","names":[],"sources":["../../../../src/features/media/react/AudioRecorderModal.tsx"],"sourcesContent":["import type { Editor, EditorEvents } from '@tiptap/core'\nimport { useCallback, useEffect, useRef, useState } from 'react'\nimport { captureRange, type DocAnchor, fetchErrorMessage, releaseRanges, resolveRange } from '../../../core'\nimport { Icon } from '../../../react/Icon'\nimport { useEditorI18n } from '../../../react/use-editor-i18n'\nimport { useNotifier } from '../../../react/use-notifier'\nimport { Button } from '../../../react/ui/button'\nimport { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '../../../react/ui/dialog'\nimport { cn } from '../../../react/ui/utils'\nimport { AUDIO_RECORDER_OPEN } from '../upload'\nimport { useAudioRecorder } from './use-audio-recorder'\n\n/**\n * „Audio aufnehmen“, opened by `openAudioRecorder(editor)` (toolbar „Aufnahme“): records in the browser and imports the\n * file through `importFiles` (upload, wrapped by the pipeline's `wrapImport` stage) where the caret was when the modal opened.\n * Nothing enters the (possibly shared) document before the upload succeeded.\n */\nexport function AudioRecorderModal({ editor }: { editor: Editor }) {\n const { state, seconds, start, stop, cancel } = useAudioRecorder()\n const [open, setOpen] = useState(false)\n /** Stopping, uploading and inserting a recording. */\n const [inserting, setInserting] = useState(false)\n /** The recording once stopped; kept after a failed upload so „Erneut hochladen“ can retry it. */\n const [recorded, setRecorded] = useState<File | null>(null)\n // The flow below runs across awaits and editor events: it reads the current values from refs, not from a render's closure.\n const flow = useRef({ open: false, inserting: false, recorded: null as File | null, anchor: null as DocAnchor | null })\n\n const { t } = useEditorI18n()\n const notify = useNotifier(editor)\n\n const notice = state === 'denied'\n ? t('media.recorder.denied')\n : state === 'unsupported' ? t('media.recorder.unsupported') : null\n const clock = `${String(Math.floor(seconds / 60)).padStart(2, '0')}:${String(seconds % 60).padStart(2, '0')}`\n\n /** Ends the flow: discards a running or unsent recording and releases the caret anchor. */\n const close = useCallback(() => {\n cancel()\n flow.current.recorded = null\n setRecorded(null)\n if (flow.current.anchor) releaseRanges(editor, [flow.current.anchor])\n flow.current.anchor = null\n flow.current.open = false\n setOpen(false)\n }, [cancel, editor])\n\n useEffect(() => {\n const onTransaction = ({ transaction }: EditorEvents['transaction']) => {\n if (!transaction.getMeta(AUDIO_RECORDER_OPEN) || flow.current.open || !editor.isEditable) return\n const { head } = editor.state.selection\n flow.current.anchor = captureRange(editor, { from: head, to: head })\n flow.current.open = true\n setOpen(true)\n }\n editor.on('transaction', onTransaction)\n return () => {\n editor.off('transaction', onTransaction)\n if (flow.current.anchor) releaseRanges(editor, [flow.current.anchor])\n flow.current.anchor = null\n }\n }, [editor])\n\n async function record() {\n try {\n await start()\n }\n catch (error) {\n notify({ title: t('media.recorder.failed'), description: fetchErrorMessage(error), kind: 'error' })\n }\n }\n\n async function insert() {\n if (flow.current.inserting) return\n flow.current.inserting = true\n setInserting(true)\n try {\n const file = flow.current.recorded ?? await stop()\n if (!file) return\n flow.current.recorded = file\n setRecorded(file)\n const pos = flow.current.anchor ? resolveRange(editor.state, flow.current.anchor)?.from : undefined\n // `importFiles` reports its own failures; the modal stays open with the recording so the upload can be retried.\n if (!await editor.storage.media.importFiles(editor, [file], pos)) return\n if (!editor.isDestroyed) close()\n }\n catch (error) {\n notify({ title: t('media.recorder.failed'), description: fetchErrorMessage(error), kind: 'error' })\n }\n finally {\n flow.current.inserting = false\n setInserting(false)\n }\n }\n\n return (\n <Dialog open={open} onOpenChange={(value) => { if (!value && !flow.current.inserting) close() }}>\n <DialogContent showCloseButton={!inserting} aria-describedby={undefined}>\n <DialogHeader>\n <DialogTitle>{t('media.recorder.title')}</DialogTitle>\n </DialogHeader>\n <div className=\"flex flex-col items-center gap-3 py-2\">\n {notice && <p className=\"text-sm text-destructive\">{notice}</p>}\n <div\n className={cn('flex items-center gap-2 font-mono text-3xl tabular-nums', state === 'recording' ? 'text-foreground' : 'text-muted-foreground')}\n role=\"timer\"\n aria-label={t('media.recorder.duration')}\n >\n {state === 'recording' && <span className=\"size-2.5 animate-pulse rounded-full bg-destructive\" />}\n {clock}\n </div>\n </div>\n <DialogFooter>\n <Button variant=\"ghost\" disabled={inserting} onClick={close}>{t('media.recorder.cancel')}</Button>\n {state === 'recording' || inserting\n ? (\n <Button disabled={inserting} onClick={() => void insert()}>\n <Icon name={inserting ? 'i-lucide-loader-circle' : 'i-lucide-square'} className={cn(inserting && 'animate-spin')} />\n {t('media.recorder.stopInsert')}\n </Button>\n )\n : recorded\n ? (\n <Button onClick={() => void insert()}>\n <Icon name=\"i-lucide-upload\" />\n {t('media.recorder.retry')}\n </Button>\n )\n : (\n <Button disabled={state === 'unsupported'} onClick={() => void record()}>\n <Icon name=\"i-lucide-mic\" />\n {t('media.recorder.start')}\n </Button>\n )}\n </DialogFooter>\n </DialogContent>\n </Dialog>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAiBA,SAAgB,mBAAmB,EAAE,UAA8B;CACjE,MAAM,EAAE,OAAO,SAAS,OAAO,MAAM,WAAW,iBAAiB;CACjE,MAAM,CAAC,MAAM,WAAW,SAAS,KAAK;;CAEtC,MAAM,CAAC,WAAW,gBAAgB,SAAS,KAAK;;CAEhD,MAAM,CAAC,UAAU,eAAe,SAAsB,IAAI;CAE1D,MAAM,OAAO,OAAO;EAAE,MAAM;EAAO,WAAW;EAAO,UAAU;EAAqB,QAAQ;CAAyB,CAAC;CAEtH,MAAM,EAAE,MAAM,cAAc;CAC5B,MAAM,SAAS,YAAY,MAAM;CAEjC,MAAM,SAAS,UAAU,WACrB,EAAE,uBAAuB,IACzB,UAAU,gBAAgB,EAAE,4BAA4B,IAAI;CAChE,MAAM,QAAQ,GAAG,OAAO,KAAK,MAAM,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,EAAE,GAAG,OAAO,UAAU,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;;CAG1G,MAAM,QAAQ,kBAAkB;EAC9B,OAAO;EACP,KAAK,QAAQ,WAAW;EACxB,YAAY,IAAI;EAChB,IAAI,KAAK,QAAQ,QAAQ,cAAc,QAAQ,CAAC,KAAK,QAAQ,MAAM,CAAC;EACpE,KAAK,QAAQ,SAAS;EACtB,KAAK,QAAQ,OAAO;EACpB,QAAQ,KAAK;CACf,GAAG,CAAC,QAAQ,MAAM,CAAC;CAEnB,gBAAgB;EACd,MAAM,iBAAiB,EAAE,kBAA+C;GACtE,IAAI,CAAC,YAAY,QAAA,mBAA2B,KAAK,KAAK,QAAQ,QAAQ,CAAC,OAAO,YAAY;GAC1F,MAAM,EAAE,SAAS,OAAO,MAAM;GAC9B,KAAK,QAAQ,SAAS,aAAa,QAAQ;IAAE,MAAM;IAAM,IAAI;GAAK,CAAC;GACnE,KAAK,QAAQ,OAAO;GACpB,QAAQ,IAAI;EACd;EACA,OAAO,GAAG,eAAe,aAAa;EACtC,aAAa;GACX,OAAO,IAAI,eAAe,aAAa;GACvC,IAAI,KAAK,QAAQ,QAAQ,cAAc,QAAQ,CAAC,KAAK,QAAQ,MAAM,CAAC;GACpE,KAAK,QAAQ,SAAS;EACxB;CACF,GAAG,CAAC,MAAM,CAAC;CAEX,eAAe,SAAS;EACtB,IAAI;GACF,MAAM,MAAM;EACd,SACO,OAAO;GACZ,OAAO;IAAE,OAAO,EAAE,uBAAuB;IAAG,aAAa,kBAAkB,KAAK;IAAG,MAAM;GAAQ,CAAC;EACpG;CACF;CAEA,eAAe,SAAS;EACtB,IAAI,KAAK,QAAQ,WAAW;EAC5B,KAAK,QAAQ,YAAY;EACzB,aAAa,IAAI;EACjB,IAAI;GACF,MAAM,OAAO,KAAK,QAAQ,YAAY,MAAM,KAAK;GACjD,IAAI,CAAC,MAAM;GACX,KAAK,QAAQ,WAAW;GACxB,YAAY,IAAI;GAChB,MAAM,MAAM,KAAK,QAAQ,SAAS,aAAa,OAAO,OAAO,KAAK,QAAQ,MAAM,CAAC,EAAE,OAAO,KAAA;GAE1F,IAAI,CAAC,MAAM,OAAO,QAAQ,MAAM,YAAY,QAAQ,CAAC,IAAI,GAAG,GAAG,GAAG;GAClE,IAAI,CAAC,OAAO,aAAa,MAAM;EACjC,SACO,OAAO;GACZ,OAAO;IAAE,OAAO,EAAE,uBAAuB;IAAG,aAAa,kBAAkB,KAAK;IAAG,MAAM;GAAQ,CAAC;EACpG,UACQ;GACN,KAAK,QAAQ,YAAY;GACzB,aAAa,KAAK;EACpB;CACF;CAEA,OACE,oBAAC,QAAD;EAAc;EAAM,eAAe,UAAU;GAAE,IAAI,CAAC,SAAS,CAAC,KAAK,QAAQ,WAAW,MAAM;EAAE;EAC5F,UAAA,qBAAC,eAAD;GAAe,iBAAiB,CAAC;GAAW,oBAAkB,KAAA;GAA9D,UAAA;IACE,oBAAC,cAAD,EAAA,UACE,oBAAC,aAAD,EAAA,UAAc,EAAE,sBAAsB,EAAe,CAAA,EACzC,CAAA;IACd,qBAAC,OAAD;KAAK,WAAU;KAAf,UAAA,CACG,UAAU,oBAAC,KAAD;MAAG,WAAU;MAA4B,UAAA;KAAU,CAAA,GAC9D,qBAAC,OAAD;MACE,WAAW,GAAG,2DAA2D,UAAU,cAAc,oBAAoB,uBAAuB;MAC5I,MAAK;MACL,cAAY,EAAE,yBAAyB;MAHzC,UAAA,CAKG,UAAU,eAAe,oBAAC,QAAD,EAAM,WAAU,qDAAsD,CAAA,GAC/F,KACE;KACF,CAAA,CAAA;;IACL,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,QAAD;KAAQ,SAAQ;KAAQ,UAAU;KAAW,SAAS;KAAQ,UAAA,EAAE,uBAAuB;IAAU,CAAA,GAChG,UAAU,eAAe,YAEpB,qBAAC,QAAD;KAAQ,UAAU;KAAW,eAAe,KAAK,OAAO;KAAxD,UAAA,CACE,oBAAC,MAAD;MAAM,MAAM,YAAY,2BAA2B;MAAmB,WAAW,GAAG,aAAa,cAAc;KAAI,CAAA,GAClH,EAAE,2BAA2B,CACxB;IAEV,CAAA,IAAA,WAEI,qBAAC,QAAD;KAAQ,eAAe,KAAK,OAAO;KAAnC,UAAA,CACE,oBAAC,MAAD,EAAM,MAAK,kBAAmB,CAAA,GAC7B,EAAE,sBAAsB,CACnB;IAGR,CAAA,IAAA,qBAAC,QAAD;KAAQ,UAAU,UAAU;KAAe,eAAe,KAAK,OAAO;KAAtE,UAAA,CACE,oBAAC,MAAD,EAAM,MAAK,eAAgB,CAAA,GAC1B,EAAE,sBAAsB,CACnB;IAEJ,CAAA,CAAA,EAAA,CAAA;GACD;;CACT,CAAA;AAEZ"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
2
|
+
import { cn } from "../../../react/ui/utils.js";
|
|
3
|
+
import { TitleField } from "./TitleField.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { NodeViewWrapper } from "@tiptap/react";
|
|
6
|
+
//#region src/features/media/react/AudioView.tsx
|
|
7
|
+
/** The audio block: player plus caption field. Same events as the Vue view (`playerOptions` keeps the player's own). */
|
|
8
|
+
function AudioView({ node, selected, editor, updateAttributes }) {
|
|
9
|
+
const { t } = useEditorI18n();
|
|
10
|
+
return /* @__PURE__ */ jsxs(NodeViewWrapper, {
|
|
11
|
+
as: "figure",
|
|
12
|
+
className: cn("media-block flex flex-col gap-1", selected && "is-selected"),
|
|
13
|
+
"data-id": node.attrs.id || void 0,
|
|
14
|
+
children: [/* @__PURE__ */ jsx("audio", {
|
|
15
|
+
controls: true,
|
|
16
|
+
preload: "metadata",
|
|
17
|
+
src: node.attrs.src,
|
|
18
|
+
className: "w-full"
|
|
19
|
+
}), /* @__PURE__ */ jsx(TitleField, {
|
|
20
|
+
value: node.attrs.title,
|
|
21
|
+
placeholder: t("media.view.title"),
|
|
22
|
+
label: t("media.view.title"),
|
|
23
|
+
readOnly: !editor.isEditable,
|
|
24
|
+
className: "w-full",
|
|
25
|
+
onChange: (title) => updateAttributes({ title })
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { AudioView };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=AudioView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AudioView.js","names":[],"sources":["../../../../src/features/media/react/AudioView.tsx"],"sourcesContent":["import { NodeViewWrapper, type NodeViewProps } from '@tiptap/react'\nimport { useEditorI18n } from '../../../react/use-editor-i18n'\nimport { cn } from '../../../react/ui/utils'\nimport { TitleField } from './TitleField'\n\n/** The audio block: player plus caption field. Same events as the Vue view (`playerOptions` keeps the player's own). */\nexport function AudioView({ node, selected, editor, updateAttributes }: NodeViewProps) {\n const { t } = useEditorI18n()\n return (\n <NodeViewWrapper\n as=\"figure\"\n className={cn('media-block flex flex-col gap-1', selected && 'is-selected')}\n data-id={node.attrs.id || undefined}\n >\n <audio controls preload=\"metadata\" src={node.attrs.src} className=\"w-full\" />\n <TitleField\n value={node.attrs.title}\n placeholder={t('media.view.title')}\n label={t('media.view.title')}\n readOnly={!editor.isEditable}\n className=\"w-full\"\n onChange={title => updateAttributes({ title })}\n />\n </NodeViewWrapper>\n )\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,UAAU,EAAE,MAAM,UAAU,QAAQ,oBAAmC;CACrF,MAAM,EAAE,MAAM,cAAc;CAC5B,OACE,qBAAC,iBAAD;EACE,IAAG;EACH,WAAW,GAAG,mCAAmC,YAAY,aAAa;EAC1E,WAAS,KAAK,MAAM,MAAM,KAAA;EAH5B,UAAA,CAKE,oBAAC,SAAD;GAAO,UAAA;GAAS,SAAQ;GAAW,KAAK,KAAK,MAAM;GAAK,WAAU;EAAU,CAAA,GAC5E,oBAAC,YAAD;GACE,OAAO,KAAK,MAAM;GAClB,aAAa,EAAE,kBAAkB;GACjC,OAAO,EAAE,kBAAkB;GAC3B,UAAU,CAAC,OAAO;GAClB,WAAU;GACV,WAAU,UAAS,iBAAiB,EAAE,MAAM,CAAC;EAC9C,CAAA,CACc;;AAErB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
2
|
+
import { cn } from "../../../react/ui/utils.js";
|
|
3
|
+
import { Icon } from "../../../react/Icon.js";
|
|
4
|
+
import { Button } from "../../../react/ui/button.js";
|
|
5
|
+
import { formatBytes } from "../upload.js";
|
|
6
|
+
import { TitleField } from "./TitleField.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { NodeViewWrapper } from "@tiptap/react";
|
|
9
|
+
//#region src/features/media/react/FileView.tsx
|
|
10
|
+
/** The file block: icon, name field, size and „Öffnen“ link; PDFs are embedded below. */
|
|
11
|
+
function FileView({ node, selected, editor, updateAttributes }) {
|
|
12
|
+
const { t } = useEditorI18n();
|
|
13
|
+
const isPdf = node.attrs.mimeType === "application/pdf";
|
|
14
|
+
return /* @__PURE__ */ jsxs(NodeViewWrapper, {
|
|
15
|
+
as: "figure",
|
|
16
|
+
className: cn("media-block flex flex-col gap-1", selected && "is-selected"),
|
|
17
|
+
"data-id": node.attrs.id || void 0,
|
|
18
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "flex items-center gap-2",
|
|
20
|
+
contentEditable: false,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
23
|
+
name: isPdf ? "i-lucide-file-text" : "i-lucide-file",
|
|
24
|
+
className: "size-5 text-muted-foreground"
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx(TitleField, {
|
|
27
|
+
value: node.attrs.title,
|
|
28
|
+
placeholder: t("media.view.fileName"),
|
|
29
|
+
label: t("media.view.fileName"),
|
|
30
|
+
readOnly: !editor.isEditable,
|
|
31
|
+
className: "min-w-0 flex-1",
|
|
32
|
+
onChange: (title) => updateAttributes({ title })
|
|
33
|
+
}),
|
|
34
|
+
node.attrs.size ? /* @__PURE__ */ jsx("span", {
|
|
35
|
+
className: "shrink-0 text-xs text-muted-foreground/60",
|
|
36
|
+
children: formatBytes(node.attrs.size)
|
|
37
|
+
}) : null,
|
|
38
|
+
/* @__PURE__ */ jsx(Button, {
|
|
39
|
+
asChild: true,
|
|
40
|
+
size: "xs",
|
|
41
|
+
variant: "secondary",
|
|
42
|
+
children: /* @__PURE__ */ jsxs("a", {
|
|
43
|
+
href: node.attrs.src,
|
|
44
|
+
target: "_blank",
|
|
45
|
+
rel: "noopener noreferrer",
|
|
46
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "i-lucide-external-link" }), t("media.view.open")]
|
|
47
|
+
})
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}), isPdf && node.attrs.src ? /* @__PURE__ */ jsx("object", {
|
|
51
|
+
data: node.attrs.src,
|
|
52
|
+
type: "application/pdf",
|
|
53
|
+
contentEditable: false,
|
|
54
|
+
className: "mt-2 h-[480px] w-full rounded-md border border-border"
|
|
55
|
+
}) : null]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { FileView };
|
|
60
|
+
|
|
61
|
+
//# sourceMappingURL=FileView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileView.js","names":[],"sources":["../../../../src/features/media/react/FileView.tsx"],"sourcesContent":["import { NodeViewWrapper, type NodeViewProps } from '@tiptap/react'\nimport { Icon } from '../../../react/Icon'\nimport { Button } from '../../../react/ui/button'\nimport { cn } from '../../../react/ui/utils'\nimport { useEditorI18n } from '../../../react/use-editor-i18n'\nimport { formatBytes } from '../upload'\nimport { TitleField } from './TitleField'\n\n/** The file block: icon, name field, size and „Öffnen“ link; PDFs are embedded below. */\nexport function FileView({ node, selected, editor, updateAttributes }: NodeViewProps) {\n const { t } = useEditorI18n()\n const isPdf = node.attrs.mimeType === 'application/pdf'\n return (\n <NodeViewWrapper\n as=\"figure\"\n className={cn('media-block flex flex-col gap-1', selected && 'is-selected')}\n data-id={node.attrs.id || undefined}\n >\n <div className=\"flex items-center gap-2\" contentEditable={false}>\n <Icon name={isPdf ? 'i-lucide-file-text' : 'i-lucide-file'} className=\"size-5 text-muted-foreground\" />\n <TitleField\n value={node.attrs.title}\n placeholder={t('media.view.fileName')}\n label={t('media.view.fileName')}\n readOnly={!editor.isEditable}\n className=\"min-w-0 flex-1\"\n onChange={title => updateAttributes({ title })}\n />\n {node.attrs.size ? <span className=\"shrink-0 text-xs text-muted-foreground/60\">{formatBytes(node.attrs.size)}</span> : null}\n <Button asChild size=\"xs\" variant=\"secondary\">\n <a href={node.attrs.src} target=\"_blank\" rel=\"noopener noreferrer\">\n <Icon name=\"i-lucide-external-link\" />\n {t('media.view.open')}\n </a>\n </Button>\n </div>\n {isPdf && node.attrs.src\n ? <object data={node.attrs.src} type=\"application/pdf\" contentEditable={false} className=\"mt-2 h-[480px] w-full rounded-md border border-border\" />\n : null}\n </NodeViewWrapper>\n )\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,SAAS,EAAE,MAAM,UAAU,QAAQ,oBAAmC;CACpF,MAAM,EAAE,MAAM,cAAc;CAC5B,MAAM,QAAQ,KAAK,MAAM,aAAa;CACtC,OACE,qBAAC,iBAAD;EACE,IAAG;EACH,WAAW,GAAG,mCAAmC,YAAY,aAAa;EAC1E,WAAS,KAAK,MAAM,MAAM,KAAA;EAH5B,UAAA,CAKE,qBAAC,OAAD;GAAK,WAAU;GAA0B,iBAAiB;GAA1D,UAAA;IACE,oBAAC,MAAD;KAAM,MAAM,QAAQ,uBAAuB;KAAiB,WAAU;IAAgC,CAAA;IACtG,oBAAC,YAAD;KACE,OAAO,KAAK,MAAM;KAClB,aAAa,EAAE,qBAAqB;KACpC,OAAO,EAAE,qBAAqB;KAC9B,UAAU,CAAC,OAAO;KAClB,WAAU;KACV,WAAU,UAAS,iBAAiB,EAAE,MAAM,CAAC;IAC9C,CAAA;IACA,KAAK,MAAM,OAAO,oBAAC,QAAD;KAAM,WAAU;KAA6C,UAAA,YAAY,KAAK,MAAM,IAAI;IAAQ,CAAA,IAAI;IACvH,oBAAC,QAAD;KAAQ,SAAA;KAAQ,MAAK;KAAK,SAAQ;KAChC,UAAA,qBAAC,KAAD;MAAG,MAAM,KAAK,MAAM;MAAK,QAAO;MAAS,KAAI;MAA7C,UAAA,CACE,oBAAC,MAAD,EAAM,MAAK,yBAA0B,CAAA,GACpC,EAAE,iBAAiB,CACnB;;IACG,CAAA;GACL;EACJ,CAAA,GAAA,SAAS,KAAK,MAAM,MACjB,oBAAC,UAAD;GAAQ,MAAM,KAAK,MAAM;GAAK,MAAK;GAAkB,iBAAiB;GAAO,WAAU;EAAyD,CAAA,IAChJ,IACW;;AAErB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { cn } from "../../../react/ui/utils.js";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/features/media/react/TitleField.tsx
|
|
5
|
+
/**
|
|
6
|
+
* The editable caption of a media block (`AudioView`, `VideoView`, `FileView`): a plain input that writes the node
|
|
7
|
+
* attribute on every keystroke. It keeps the typed text locally, so the caret does not jump while the node view
|
|
8
|
+
* re-renders from the changed attribute, and follows the attribute when it changes from outside (collaboration, undo).
|
|
9
|
+
*/
|
|
10
|
+
function TitleField({ value, placeholder, label, readOnly, className, onChange }) {
|
|
11
|
+
const [text, setText] = useState(value ?? "");
|
|
12
|
+
useEffect(() => setText(value ?? ""), [value]);
|
|
13
|
+
return /* @__PURE__ */ jsx("input", {
|
|
14
|
+
value: text,
|
|
15
|
+
contentEditable: false,
|
|
16
|
+
placeholder,
|
|
17
|
+
"aria-label": label,
|
|
18
|
+
autoComplete: "off",
|
|
19
|
+
readOnly,
|
|
20
|
+
className: cn("rounded bg-transparent px-1 text-sm text-muted-foreground outline-none placeholder:text-muted-foreground/60 focus:bg-muted focus:text-foreground", className),
|
|
21
|
+
onChange: (event) => {
|
|
22
|
+
setText(event.target.value);
|
|
23
|
+
onChange(event.target.value);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { TitleField };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=TitleField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleField.js","names":[],"sources":["../../../../src/features/media/react/TitleField.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\nimport { cn } from '../../../react/ui/utils'\n\n/**\n * The editable caption of a media block (`AudioView`, `VideoView`, `FileView`): a plain input that writes the node\n * attribute on every keystroke. It keeps the typed text locally, so the caret does not jump while the node view\n * re-renders from the changed attribute, and follows the attribute when it changes from outside (collaboration, undo).\n */\nexport function TitleField({ value, placeholder, label, readOnly, className, onChange }: {\n value: string | undefined\n placeholder: string\n label: string\n readOnly: boolean\n className?: string\n onChange: (value: string) => void\n}) {\n const [text, setText] = useState(value ?? '')\n useEffect(() => setText(value ?? ''), [value])\n return (\n <input\n value={text}\n contentEditable={false}\n placeholder={placeholder}\n aria-label={label}\n autoComplete=\"off\"\n readOnly={readOnly}\n className={cn('rounded bg-transparent px-1 text-sm text-muted-foreground outline-none placeholder:text-muted-foreground/60 focus:bg-muted focus:text-foreground', className)}\n onChange={(event) => {\n setText(event.target.value)\n onChange(event.target.value)\n }}\n />\n )\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,WAAW,EAAE,OAAO,aAAa,OAAO,UAAU,WAAW,YAO1E;CACD,MAAM,CAAC,MAAM,WAAW,SAAS,SAAS,EAAE;CAC5C,gBAAgB,QAAQ,SAAS,EAAE,GAAG,CAAC,KAAK,CAAC;CAC7C,OACE,oBAAC,SAAD;EACE,OAAO;EACP,iBAAiB;EACJ;EACb,cAAY;EACZ,cAAa;EACH;EACV,WAAW,GAAG,oJAAoJ,SAAS;EAC3K,WAAW,UAAU;GACnB,QAAQ,MAAM,OAAO,KAAK;GAC1B,SAAS,MAAM,OAAO,KAAK;EAC7B;CACD,CAAA;AAEL"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useEditorI18n } from "../../../react/use-editor-i18n.js";
|
|
2
|
+
import { cn } from "../../../react/ui/utils.js";
|
|
3
|
+
import { TitleField } from "./TitleField.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { NodeViewWrapper } from "@tiptap/react";
|
|
6
|
+
//#region src/features/media/react/VideoView.tsx
|
|
7
|
+
/** The video block: player plus caption field. Same events as the Vue view (`playerOptions` keeps the player's own). */
|
|
8
|
+
function VideoView({ node, selected, editor, updateAttributes }) {
|
|
9
|
+
const { t } = useEditorI18n();
|
|
10
|
+
return /* @__PURE__ */ jsxs(NodeViewWrapper, {
|
|
11
|
+
as: "figure",
|
|
12
|
+
className: cn("media-block flex flex-col gap-1", selected && "is-selected"),
|
|
13
|
+
"data-id": node.attrs.id || void 0,
|
|
14
|
+
children: [/* @__PURE__ */ jsx("video", {
|
|
15
|
+
controls: true,
|
|
16
|
+
preload: "metadata",
|
|
17
|
+
playsInline: true,
|
|
18
|
+
src: node.attrs.src,
|
|
19
|
+
className: "max-w-full rounded-md"
|
|
20
|
+
}), /* @__PURE__ */ jsx(TitleField, {
|
|
21
|
+
value: node.attrs.title,
|
|
22
|
+
placeholder: t("media.view.title"),
|
|
23
|
+
label: t("media.view.title"),
|
|
24
|
+
readOnly: !editor.isEditable,
|
|
25
|
+
className: "w-full",
|
|
26
|
+
onChange: (title) => updateAttributes({ title })
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { VideoView };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=VideoView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoView.js","names":[],"sources":["../../../../src/features/media/react/VideoView.tsx"],"sourcesContent":["import { NodeViewWrapper, type NodeViewProps } from '@tiptap/react'\nimport { useEditorI18n } from '../../../react/use-editor-i18n'\nimport { cn } from '../../../react/ui/utils'\nimport { TitleField } from './TitleField'\n\n/** The video block: player plus caption field. Same events as the Vue view (`playerOptions` keeps the player's own). */\nexport function VideoView({ node, selected, editor, updateAttributes }: NodeViewProps) {\n const { t } = useEditorI18n()\n return (\n <NodeViewWrapper\n as=\"figure\"\n className={cn('media-block flex flex-col gap-1', selected && 'is-selected')}\n data-id={node.attrs.id || undefined}\n >\n <video controls preload=\"metadata\" playsInline src={node.attrs.src} className=\"max-w-full rounded-md\" />\n <TitleField\n value={node.attrs.title}\n placeholder={t('media.view.title')}\n label={t('media.view.title')}\n readOnly={!editor.isEditable}\n className=\"w-full\"\n onChange={title => updateAttributes({ title })}\n />\n </NodeViewWrapper>\n )\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,UAAU,EAAE,MAAM,UAAU,QAAQ,oBAAmC;CACrF,MAAM,EAAE,MAAM,cAAc;CAC5B,OACE,qBAAC,iBAAD;EACE,IAAG;EACH,WAAW,GAAG,mCAAmC,YAAY,aAAa;EAC1E,WAAS,KAAK,MAAM,MAAM,KAAA;EAH5B,UAAA,CAKE,oBAAC,SAAD;GAAO,UAAA;GAAS,SAAQ;GAAW,aAAA;GAAY,KAAK,KAAK,MAAM;GAAK,WAAU;EAAyB,CAAA,GACvG,oBAAC,YAAD;GACE,OAAO,KAAK,MAAM;GAClB,aAAa,EAAE,kBAAkB;GACjC,OAAO,EAAE,kBAAkB;GAC3B,UAAU,CAAC,OAAO;GAClB,WAAU;GACV,WAAU,UAAS,iBAAiB,EAAE,MAAM,CAAC;EAC9C,CAAA,CACc;;AAErB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AudioRecorder, AudioRecorderStatus } from "../audio-recorder.js";
|
|
2
|
+
//#region src/features/media/react/use-audio-recorder.d.ts
|
|
3
|
+
export interface ReactAudioRecorder extends Pick<AudioRecorder, 'start' | 'stop' | 'cancel'> {
|
|
4
|
+
state: AudioRecorderStatus;
|
|
5
|
+
/** Whole seconds recorded so far. */
|
|
6
|
+
seconds: number;
|
|
7
|
+
}
|
|
8
|
+
/** The audio recorder model (`createAudioRecorder`) as component state; the microphone is released when the component unmounts. */
|
|
9
|
+
export declare function useAudioRecorder(): ReactAudioRecorder;
|
|
10
|
+
//#endregion
|
|
11
|
+
//# sourceMappingURL=use-audio-recorder.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useStore } from "../../../react/use-store.js";
|
|
2
|
+
import { createAudioRecorder } from "../audio-recorder.js";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
//#region src/features/media/react/use-audio-recorder.ts
|
|
5
|
+
/** The audio recorder model (`createAudioRecorder`) as component state; the microphone is released when the component unmounts. */
|
|
6
|
+
function useAudioRecorder() {
|
|
7
|
+
const [recorder] = useState(createAudioRecorder);
|
|
8
|
+
const { status, seconds } = useStore(recorder.state);
|
|
9
|
+
useEffect(() => () => recorder.dispose(), [recorder]);
|
|
10
|
+
return {
|
|
11
|
+
state: status,
|
|
12
|
+
seconds,
|
|
13
|
+
start: recorder.start,
|
|
14
|
+
stop: recorder.stop,
|
|
15
|
+
cancel: recorder.cancel
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { useAudioRecorder };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=use-audio-recorder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-audio-recorder.js","names":[],"sources":["../../../../src/features/media/react/use-audio-recorder.ts"],"sourcesContent":["import { useEffect, useState } from 'react'\nimport { useStore } from '../../../react/use-store'\nimport { type AudioRecorder, type AudioRecorderStatus, createAudioRecorder } from '../audio-recorder'\n\nexport interface ReactAudioRecorder extends Pick<AudioRecorder, 'start' | 'stop' | 'cancel'> {\n state: AudioRecorderStatus\n /** Whole seconds recorded so far. */\n seconds: number\n}\n\n/** The audio recorder model (`createAudioRecorder`) as component state; the microphone is released when the component unmounts. */\nexport function useAudioRecorder(): ReactAudioRecorder {\n const [recorder] = useState(createAudioRecorder)\n const { status, seconds } = useStore(recorder.state)\n // `dispose` is a `cancel`: idempotent, so StrictMode's mount, cleanup, mount leaves a usable recorder.\n useEffect(() => () => recorder.dispose(), [recorder])\n return { state: status, seconds, start: recorder.start, stop: recorder.stop, cancel: recorder.cancel }\n}\n"],"mappings":";;;;;AAWA,SAAgB,mBAAuC;CACrD,MAAM,CAAC,YAAY,SAAS,mBAAmB;CAC/C,MAAM,EAAE,QAAQ,YAAY,SAAS,SAAS,KAAK;CAEnD,sBAAsB,SAAS,QAAQ,GAAG,CAAC,QAAQ,CAAC;CACpD,OAAO;EAAE,OAAO;EAAQ;EAAS,OAAO,SAAS;EAAO,MAAM,SAAS;EAAM,QAAQ,SAAS;CAAO;AACvG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactFeature } from "../../react/EditorSurface.js";
|
|
2
|
+
import "../../react/index.js";
|
|
3
|
+
import { ImportFilesFn } from "./upload.js";
|
|
4
|
+
import { AudioRecorderModal } from "./react/AudioRecorderModal.js";
|
|
5
|
+
import { ReactAudioRecorder, useAudioRecorder } from "./react/use-audio-recorder.js";
|
|
6
|
+
import { Editor } from "@tiptap/core";
|
|
7
|
+
//#region src/features/media/react.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* `importFiles` with the failures sent to `editor`'s surface notifier, else the app's (see `fileImport`, `useNotifier`),
|
|
10
|
+
* for your own buttons; stable across renders.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useFileImport(editor?: Editor): {
|
|
13
|
+
importFiles: ImportFilesFn;
|
|
14
|
+
};
|
|
15
|
+
/** The React media feature: React node views for audio, video and file blocks and the shadcn recorder modal. */
|
|
16
|
+
export declare function mediaFeature(): ReactFeature;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AudioRecorderModal, type ReactAudioRecorder, useAudioRecorder };
|
|
19
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useEditorI18n } from "../../react/use-editor-i18n.js";
|
|
2
|
+
import { fileImport } from "./file-import.js";
|
|
3
|
+
import { playerOptions } from "./node-views.js";
|
|
4
|
+
import { mediaFeatureCore } from "./feature.js";
|
|
5
|
+
import { useNotifier } from "../../react/use-notifier.js";
|
|
6
|
+
import { useAudioRecorder } from "./react/use-audio-recorder.js";
|
|
7
|
+
import { AudioRecorderModal } from "./react/AudioRecorderModal.js";
|
|
8
|
+
import { AudioView } from "./react/AudioView.js";
|
|
9
|
+
import { FileView } from "./react/FileView.js";
|
|
10
|
+
import { VideoView } from "./react/VideoView.js";
|
|
11
|
+
import { useMemo } from "react";
|
|
12
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
13
|
+
//#region src/features/media/react.ts
|
|
14
|
+
/**
|
|
15
|
+
* `importFiles` with the failures sent to `editor`'s surface notifier, else the app's (see `fileImport`, `useNotifier`),
|
|
16
|
+
* for your own buttons; stable across renders.
|
|
17
|
+
*/
|
|
18
|
+
function useFileImport(editor) {
|
|
19
|
+
const notify = useNotifier(editor);
|
|
20
|
+
const { t } = useEditorI18n();
|
|
21
|
+
return useMemo(() => fileImport(notify, t), [notify, t]);
|
|
22
|
+
}
|
|
23
|
+
/** The React media feature: React node views for audio, video and file blocks and the shadcn recorder modal. */
|
|
24
|
+
function mediaFeature() {
|
|
25
|
+
return mediaFeatureCore({
|
|
26
|
+
recorderModal: AudioRecorderModal,
|
|
27
|
+
nodeViews: {
|
|
28
|
+
audio: ReactNodeViewRenderer(AudioView, playerOptions),
|
|
29
|
+
video: ReactNodeViewRenderer(VideoView, playerOptions),
|
|
30
|
+
file: ReactNodeViewRenderer(FileView, playerOptions)
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { AudioRecorderModal, mediaFeature, useAudioRecorder, useFileImport };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","names":[],"sources":["../../../src/features/media/react.ts"],"sourcesContent":["import { ReactNodeViewRenderer } from '@tiptap/react'\nimport { type ComponentType, useMemo } from 'react'\nimport type { Editor } from '@tiptap/core'\nimport type { ReactFeature } from '../../react'\nimport { useEditorI18n } from '../../react/use-editor-i18n'\nimport { useNotifier } from '../../react/use-notifier'\nimport { mediaFeatureCore } from './feature'\nimport { fileImport } from './file-import'\nimport { playerOptions } from './node-views'\nimport { AudioRecorderModal } from './react/AudioRecorderModal'\nimport { AudioView } from './react/AudioView'\nimport { FileView } from './react/FileView'\nimport { VideoView } from './react/VideoView'\nimport type { ImportFilesFn } from './upload'\n\nexport { AudioRecorderModal } from './react/AudioRecorderModal'\nexport { useAudioRecorder, type ReactAudioRecorder } from './react/use-audio-recorder'\n\n/**\n * `importFiles` with the failures sent to `editor`'s surface notifier, else the app's (see `fileImport`, `useNotifier`),\n * for your own buttons; stable across renders.\n */\nexport function useFileImport(editor?: Editor): { importFiles: ImportFilesFn } {\n const notify = useNotifier(editor)\n const { t } = useEditorI18n()\n return useMemo(() => fileImport(notify, t), [notify, t])\n}\n\n/** The React media feature: React node views for audio, video and file blocks and the shadcn recorder modal. */\nexport function mediaFeature(): ReactFeature {\n return mediaFeatureCore<ComponentType<{ editor: Editor }>>({\n recorderModal: AudioRecorderModal,\n nodeViews: {\n audio: ReactNodeViewRenderer(AudioView, playerOptions),\n video: ReactNodeViewRenderer(VideoView, playerOptions),\n file: ReactNodeViewRenderer(FileView, playerOptions),\n },\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAsBA,SAAgB,cAAc,QAAiD;CAC7E,MAAM,SAAS,YAAY,MAAM;CACjC,MAAM,EAAE,MAAM,cAAc;CAC5B,OAAO,cAAc,WAAW,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACzD;;AAGA,SAAgB,eAA6B;CAC3C,OAAO,iBAAoD;EACzD,eAAe;EACf,WAAW;GACT,OAAO,sBAAsB,WAAW,aAAa;GACrD,OAAO,sBAAsB,WAAW,aAAa;GACrD,MAAM,sBAAsB,UAAU,aAAa;EACrD;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ASSET_DOCUMENT_ID, ASSET_NAME, AssetManifest, AssetRecord, SCRATCH_DOCUMENT_ID, assetRefOf, assetUrl } from "./assets.js";
|
|
2
|
+
import { AnyExtension, Node } from "@tiptap/core";
|
|
3
|
+
//#region src/features/media/schema.d.ts
|
|
4
|
+
/** The media nodes (image, audio, video, file) of the document schema. */
|
|
5
|
+
export declare const mediaSchemaExtensions: () => AnyExtension[];
|
|
6
|
+
export type MediaKind = 'image' | 'audio' | 'video' | 'file';
|
|
7
|
+
/** Uploadable MIME types → file extension on disk and media kind. `<uuid>.<ext>` asset names derive from this. */
|
|
8
|
+
export declare const MEDIA_TYPES: Readonly<Record<string, {
|
|
9
|
+
ext: string;
|
|
10
|
+
kind: MediaKind;
|
|
11
|
+
}>>;
|
|
12
|
+
/** Upload size limit per kind. */
|
|
13
|
+
export declare const MAX_MEDIA_BYTES: Readonly<Record<MediaKind, number>>;
|
|
14
|
+
/** `type` without parameters, lowercased (`audio/webm;codecs=opus` → `audio/webm`): the key into `MEDIA_TYPES`. */
|
|
15
|
+
export declare const mediaMime: (type: string) => string;
|
|
16
|
+
/** Kind of an uploadable MIME type (parameters such as `;codecs=…` ignored); null when uploads do not accept it. */
|
|
17
|
+
export declare function mediaKindOf(mime: string): MediaKind | null;
|
|
18
|
+
/** `accept` value of a file input for one kind: its MIME types, comma-joined. */
|
|
19
|
+
export declare function acceptFor(kind: MediaKind): string;
|
|
20
|
+
/** Attributes of an audio/video node; `title` is the editable caption, `mimeType` the uploaded file's base type. */
|
|
21
|
+
export interface MediaAttrs {
|
|
22
|
+
src: string;
|
|
23
|
+
title?: string;
|
|
24
|
+
mimeType?: string;
|
|
25
|
+
}
|
|
26
|
+
declare module '@tiptap/core' {
|
|
27
|
+
interface Commands<ReturnType> {
|
|
28
|
+
audio: {
|
|
29
|
+
/** Inserts an audio block at the selection. */
|
|
30
|
+
insertAudio: (attrs: MediaAttrs) => ReturnType;
|
|
31
|
+
};
|
|
32
|
+
video: {
|
|
33
|
+
/** Inserts a video block at the selection. */
|
|
34
|
+
insertVideo: (attrs: MediaAttrs) => ReturnType;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export declare const AudioNode: Node<any, any>;
|
|
39
|
+
export declare const VideoNode: Node<any, any>;
|
|
40
|
+
declare module '@tiptap/core' {
|
|
41
|
+
interface Commands<ReturnType> {
|
|
42
|
+
file: {
|
|
43
|
+
/** Inserts a file block (download link, PDF preview) at the selection. */
|
|
44
|
+
insertFile: (attrs: FileAttrs) => ReturnType;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
/** Attributes of a file block; `title` is the editable file name, `size` the byte count. */
|
|
49
|
+
export interface FileAttrs {
|
|
50
|
+
src: string;
|
|
51
|
+
title?: string;
|
|
52
|
+
mimeType?: string;
|
|
53
|
+
size?: number;
|
|
54
|
+
}
|
|
55
|
+
/** A generic uploaded file (PDF, office document, …) that has no player: shown as a card with an open button. */
|
|
56
|
+
export declare const FileNode: Node<any, any>;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { ASSET_DOCUMENT_ID, ASSET_NAME, AssetManifest, AssetRecord, SCRATCH_DOCUMENT_ID, assetRefOf, assetUrl };
|
|
59
|
+
//# sourceMappingURL=schema.d.ts.map
|