@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,124 @@
|
|
|
1
|
+
import { useUiKit } from "../vue/kit/use-ui-kit.js";
|
|
2
|
+
import { useEditorI18n } from "../vue/use-editor-i18n.js";
|
|
3
|
+
import { headingOutline, revealBlockInEditor } from "./heading-outline.js";
|
|
4
|
+
import { computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, onScopeDispose, openBlock, ref, shallowRef, toDisplayString, unref, watch, withCtx } from "vue";
|
|
5
|
+
//#region src/outline/EditorOutline.vue
|
|
6
|
+
const _hoisted_1 = { class: "group flex w-full cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-sm select-none hover:bg-[color-mix(in_oklab,var(--sk-bg-elevated)_60%,transparent)]" };
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "size-3.5 shrink-0"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = ["title"];
|
|
12
|
+
const REFRESH_DEBOUNCE_MS = 150;
|
|
13
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
14
|
+
__name: "EditorOutline",
|
|
15
|
+
props: { editor: {} },
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { Icon: UIcon, Tree: UTree } = useUiKit();
|
|
19
|
+
const { t } = useEditorI18n();
|
|
20
|
+
const HEADING_ICONS = {
|
|
21
|
+
1: "i-lucide-heading-1",
|
|
22
|
+
2: "i-lucide-heading-2",
|
|
23
|
+
3: "i-lucide-heading-3",
|
|
24
|
+
4: "i-lucide-heading-4",
|
|
25
|
+
5: "i-lucide-heading-5",
|
|
26
|
+
6: "i-lucide-heading-6"
|
|
27
|
+
};
|
|
28
|
+
const nodes = shallowRef([]);
|
|
29
|
+
let timer;
|
|
30
|
+
function read(editor) {
|
|
31
|
+
nodes.value = editor && !editor.isDestroyed ? headingOutline(editor.state.doc, t("outline.untitled")) : [];
|
|
32
|
+
}
|
|
33
|
+
watch(() => props.editor, (editor, _previous, onCleanup) => {
|
|
34
|
+
read(editor);
|
|
35
|
+
if (!editor) return;
|
|
36
|
+
const onTransaction = ({ transaction }) => {
|
|
37
|
+
if (!transaction.docChanged) return;
|
|
38
|
+
clearTimeout(timer);
|
|
39
|
+
timer = setTimeout(() => read(editor), REFRESH_DEBOUNCE_MS);
|
|
40
|
+
};
|
|
41
|
+
const onDestroy = () => {
|
|
42
|
+
clearTimeout(timer);
|
|
43
|
+
nodes.value = [];
|
|
44
|
+
};
|
|
45
|
+
editor.on("transaction", onTransaction);
|
|
46
|
+
editor.on("destroy", onDestroy);
|
|
47
|
+
onCleanup(() => {
|
|
48
|
+
clearTimeout(timer);
|
|
49
|
+
editor.off("transaction", onTransaction);
|
|
50
|
+
editor.off("destroy", onDestroy);
|
|
51
|
+
});
|
|
52
|
+
}, { immediate: true });
|
|
53
|
+
onScopeDispose(() => clearTimeout(timer));
|
|
54
|
+
function toItem(node) {
|
|
55
|
+
return {
|
|
56
|
+
key: node.key,
|
|
57
|
+
label: node.text,
|
|
58
|
+
icon: HEADING_ICONS[node.level] ?? "i-lucide-heading",
|
|
59
|
+
...node.children.length && { children: node.children.map(toItem) },
|
|
60
|
+
onSelect: () => {
|
|
61
|
+
if (props.editor && !props.editor.isDestroyed) revealBlockInEditor(props.editor, node);
|
|
62
|
+
},
|
|
63
|
+
onToggle: (event) => event?.preventDefault()
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const items = computed(() => nodes.value.map(toItem));
|
|
67
|
+
function parentKeys(list, into = []) {
|
|
68
|
+
for (const item of list) {
|
|
69
|
+
if (!item.children?.length) continue;
|
|
70
|
+
into.push(item.key);
|
|
71
|
+
parentKeys(item.children, into);
|
|
72
|
+
}
|
|
73
|
+
return into;
|
|
74
|
+
}
|
|
75
|
+
const collapsed = ref([]);
|
|
76
|
+
const expanded = computed({
|
|
77
|
+
get: () => parentKeys(items.value).filter((key) => !collapsed.value.includes(key)),
|
|
78
|
+
set: (open) => {
|
|
79
|
+
collapsed.value = parentKeys(items.value).filter((key) => !open.includes(key));
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
function toggle(event, key) {
|
|
83
|
+
event.stopPropagation();
|
|
84
|
+
collapsed.value = collapsed.value.includes(key) ? collapsed.value.filter((k) => k !== key) : [...collapsed.value, key];
|
|
85
|
+
}
|
|
86
|
+
return (_ctx, _cache) => {
|
|
87
|
+
return openBlock(), createBlock(unref(UTree), {
|
|
88
|
+
expanded: expanded.value,
|
|
89
|
+
"onUpdate:expanded": _cache[0] || (_cache[0] = ($event) => expanded.value = $event),
|
|
90
|
+
items: items.value,
|
|
91
|
+
"get-key": (item) => item.key,
|
|
92
|
+
size: "sm",
|
|
93
|
+
"aria-label": unref(t)("outline.label")
|
|
94
|
+
}, {
|
|
95
|
+
"item-wrapper": withCtx(({ item, expanded: isOpen }) => [createElementVNode("div", _hoisted_1, [
|
|
96
|
+
item.children?.length ? (openBlock(), createBlock(unref(UIcon), {
|
|
97
|
+
key: 0,
|
|
98
|
+
name: "i-lucide-chevron-right",
|
|
99
|
+
class: normalizeClass(["size-3.5 shrink-0 text-[var(--sk-muted)] transition-transform", isOpen && "rotate-90"]),
|
|
100
|
+
onClick: ($event) => toggle($event, item.key)
|
|
101
|
+
}, null, 8, ["class", "onClick"])) : (openBlock(), createElementBlock("span", _hoisted_2)),
|
|
102
|
+
createVNode(unref(UIcon), {
|
|
103
|
+
name: item.icon,
|
|
104
|
+
class: "size-4 shrink-0"
|
|
105
|
+
}, null, 8, ["name"]),
|
|
106
|
+
createElementVNode("span", {
|
|
107
|
+
class: "min-w-0 flex-1 truncate",
|
|
108
|
+
title: item.label
|
|
109
|
+
}, toDisplayString(item.label), 9, _hoisted_3)
|
|
110
|
+
])]),
|
|
111
|
+
_: 1
|
|
112
|
+
}, 8, [
|
|
113
|
+
"expanded",
|
|
114
|
+
"items",
|
|
115
|
+
"get-key",
|
|
116
|
+
"aria-label"
|
|
117
|
+
]);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
//#endregion
|
|
122
|
+
export { _sfc_main as default };
|
|
123
|
+
|
|
124
|
+
//# sourceMappingURL=EditorOutline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorOutline.js","names":["_openBlock","_createBlock","_unref","_withCtx","_createElementVNode","_normalizeClass","_createElementBlock","_createVNode","_toDisplayString"],"sources":["../../src/outline/EditorOutline.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useUiKit } from '../vue/kit/use-ui-kit'\nimport type { Editor } from '@tiptap/core'\nimport { computed, onScopeDispose, ref, shallowRef, watch } from 'vue'\nimport { useEditorI18n } from '../vue/use-editor-i18n'\nimport { type HeadingOutlineNode, headingOutline, revealBlockInEditor } from './heading-outline'\n\n/**\n * The heading outline of an editor, placed anywhere on the page: nested headings in a tree, clicking one reveals it in\n * the editor (selection only, the document is never changed). Works on exactly the editor passed in (from the\n * surface's `ready` event); a missing or destroyed editor renders an empty outline.\n */\nconst props = defineProps<{ editor?: Editor }>()\nconst { Icon: UIcon, Tree: UTree } = useUiKit()\nconst { t } = useEditorI18n()\n\ninterface OutlineItem {\n key: string\n label: string\n icon: string\n children?: OutlineItem[]\n onSelect: () => void\n onToggle: (event?: Event) => void\n}\n\nconst REFRESH_DEBOUNCE_MS = 150\n\n// Spelled out (not built from the level) so bundlers that scan source for icon names find them.\nconst HEADING_ICONS: Record<number, string> = {\n 1: 'i-lucide-heading-1',\n 2: 'i-lucide-heading-2',\n 3: 'i-lucide-heading-3',\n 4: 'i-lucide-heading-4',\n 5: 'i-lucide-heading-5',\n 6: 'i-lucide-heading-6',\n}\n\n// Read from the editor on demand (not inside a computed: the editor's state is reactive and would re-run it on every\n// selection change) and refreshed, debounced, when the document changes (also an external `setContent`).\nconst nodes = shallowRef<HeadingOutlineNode[]>([])\nlet timer: ReturnType<typeof setTimeout> | undefined\n\nfunction read(editor: Editor | undefined) {\n nodes.value = editor && !editor.isDestroyed ? headingOutline(editor.state.doc, t('outline.untitled')) : []\n}\n\nwatch(() => props.editor, (editor, _previous, onCleanup) => {\n read(editor)\n if (!editor) return\n const onTransaction = ({ transaction }: { transaction: { docChanged: boolean } }) => {\n if (!transaction.docChanged) return\n clearTimeout(timer)\n timer = setTimeout(() => read(editor), REFRESH_DEBOUNCE_MS)\n }\n const onDestroy = () => {\n clearTimeout(timer)\n nodes.value = []\n }\n editor.on('transaction', onTransaction)\n editor.on('destroy', onDestroy)\n onCleanup(() => {\n clearTimeout(timer)\n editor.off('transaction', onTransaction)\n editor.off('destroy', onDestroy)\n })\n}, { immediate: true })\nonScopeDispose(() => clearTimeout(timer))\n\nfunction toItem(node: HeadingOutlineNode): OutlineItem {\n return {\n key: node.key,\n label: node.text,\n icon: HEADING_ICONS[node.level] ?? 'i-lucide-heading',\n ...(node.children.length && { children: node.children.map(toItem) }),\n onSelect: () => {\n if (props.editor && !props.editor.isDestroyed) revealBlockInEditor(props.editor, node)\n },\n onToggle: event => event?.preventDefault(), // the chevron toggles, a click reveals\n }\n}\n\nconst items = computed(() => nodes.value.map(toItem))\n\nfunction parentKeys(list: readonly OutlineItem[], into: string[] = []): string[] {\n for (const item of list) {\n if (!item.children?.length) continue\n into.push(item.key)\n parentKeys(item.children, into)\n }\n return into\n}\n\n// Entries start open: only the ones the user closed are remembered.\nconst collapsed = ref<string[]>([])\nconst expanded = computed({\n get: () => parentKeys(items.value).filter(key => !collapsed.value.includes(key)),\n set: (open: string[]) => {\n collapsed.value = parentKeys(items.value).filter(key => !open.includes(key))\n },\n})\n\nfunction toggle(event: Event, key: string) {\n event.stopPropagation()\n collapsed.value = collapsed.value.includes(key) ? collapsed.value.filter(k => k !== key) : [...collapsed.value, key]\n}\n</script>\n\n<template>\n <UTree v-model:expanded=\"expanded\" :items=\"items\" :get-key=\"(item: OutlineItem) => item.key\" size=\"sm\" :aria-label=\"t('outline.label')\">\n <template #item-wrapper=\"{ item, expanded: isOpen }: { item: OutlineItem, expanded: boolean }\">\n <div class=\"group flex w-full cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-sm select-none hover:bg-[color-mix(in_oklab,var(--sk-bg-elevated)_60%,transparent)]\">\n <UIcon\n v-if=\"item.children?.length\"\n name=\"i-lucide-chevron-right\"\n class=\"size-3.5 shrink-0 text-[var(--sk-muted)] transition-transform\"\n :class=\"isOpen && 'rotate-90'\"\n @click=\"toggle($event, item.key)\"\n />\n <span v-else class=\"size-3.5 shrink-0\" />\n <UIcon :name=\"item.icon\" class=\"size-4 shrink-0\" />\n <span class=\"min-w-0 flex-1 truncate\" :title=\"item.label\">{{ item.label }}</span>\n </div>\n </template>\n </UTree>\n</template>\n"],"mappings":";;;;;;;;;;;AAyBA,MAAM,sBAAsB;;;;;EAb5B,MAAM,QAAQ;EACd,MAAM,EAAE,MAAM,OAAO,MAAM,UAAU,SAAS;EAC9C,MAAM,EAAE,MAAM,cAAc;EAc5B,MAAM,gBAAwC;GAC5C,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;GACH,GAAG;EACL;EAIA,MAAM,QAAQ,WAAiC,CAAC,CAAC;EACjD,IAAI;EAEJ,SAAS,KAAK,QAA4B;GACxC,MAAM,QAAQ,UAAU,CAAC,OAAO,cAAc,eAAe,OAAO,MAAM,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC;EAC3G;EAEA,YAAY,MAAM,SAAS,QAAQ,WAAW,cAAc;GAC1D,KAAK,MAAM;GACX,IAAI,CAAC,QAAQ;GACb,MAAM,iBAAiB,EAAE,kBAA4D;IACnF,IAAI,CAAC,YAAY,YAAY;IAC7B,aAAa,KAAK;IAClB,QAAQ,iBAAiB,KAAK,MAAM,GAAG,mBAAmB;GAC5D;GACA,MAAM,kBAAkB;IACtB,aAAa,KAAK;IAClB,MAAM,QAAQ,CAAC;GACjB;GACA,OAAO,GAAG,eAAe,aAAa;GACtC,OAAO,GAAG,WAAW,SAAS;GAC9B,gBAAgB;IACd,aAAa,KAAK;IAClB,OAAO,IAAI,eAAe,aAAa;IACvC,OAAO,IAAI,WAAW,SAAS;GACjC,CAAC;EACH,GAAG,EAAE,WAAW,KAAK,CAAC;EACtB,qBAAqB,aAAa,KAAK,CAAC;EAExC,SAAS,OAAO,MAAuC;GACrD,OAAO;IACL,KAAK,KAAK;IACV,OAAO,KAAK;IACZ,MAAM,cAAc,KAAK,UAAU;IACnC,GAAI,KAAK,SAAS,UAAU,EAAE,UAAU,KAAK,SAAS,IAAI,MAAM,EAAE;IAClE,gBAAgB;KACd,IAAI,MAAM,UAAU,CAAC,MAAM,OAAO,aAAa,oBAAoB,MAAM,QAAQ,IAAI;IACvF;IACA,WAAU,UAAS,OAAO,eAAe;GAC3C;EACF;EAEA,MAAM,QAAQ,eAAe,MAAM,MAAM,IAAI,MAAM,CAAC;EAEpD,SAAS,WAAW,MAA8B,OAAiB,CAAC,GAAa;GAC/E,KAAK,MAAM,QAAQ,MAAM;IACvB,IAAI,CAAC,KAAK,UAAU,QAAQ;IAC5B,KAAK,KAAK,KAAK,GAAG;IAClB,WAAW,KAAK,UAAU,IAAI;GAChC;GACA,OAAO;EACT;EAGA,MAAM,YAAY,IAAc,CAAC,CAAC;EAClC,MAAM,WAAW,SAAS;GACxB,WAAW,WAAW,MAAM,KAAK,CAAC,CAAC,QAAO,QAAO,CAAC,UAAU,MAAM,SAAS,GAAG,CAAC;GAC/E,MAAM,SAAmB;IACvB,UAAU,QAAQ,WAAW,MAAM,KAAK,CAAC,CAAC,QAAO,QAAO,CAAC,KAAK,SAAS,GAAG,CAAC;GAC7E;EACF,CAAC;EAED,SAAS,OAAO,OAAc,KAAa;GACzC,MAAM,gBAAgB;GACtB,UAAU,QAAQ,UAAU,MAAM,SAAS,GAAG,IAAI,UAAU,MAAM,QAAO,MAAK,MAAM,GAAG,IAAI,CAAC,GAAG,UAAU,OAAO,GAAG;EACrH;;GAIE,OAAAA,UAAA,GAAAC,YAeQC,MAAA,KAAA,GAAA;IAfO,UAAU,SAAA;IAAA,qBAAA,OAAA,OAAA,OAAA,MAAA,WAAA,SAAQ,QAAA;IAAG,OAAO,MAAA;IAAQ,YAAU,SAAsB,KAAK;IAAK,MAAK;IAAM,cAAYA,MAAA,CAAA,CAAC,CAAA,eAAA;;IACxG,gBAAYC,SAYf,EAZmB,MAAI,UAAY,aAAM,CAC/CC,mBAWM,OAXN,YAWM;KATI,KAAK,UAAU,UADvBJ,UAAA,GAAAC,YAMEC,MAAA,KAAA,GAAA;;MAJA,MAAK;MACL,OAAKG,eAAA,CAAC,iEACE,UAAM,WAAA,CAAA;MACb,UAAK,WAAE,OAAO,QAAQ,KAAK,GAAG;KAEjC,GAAA,MAAA,GAAA,CAAA,SAAA,SAAA,CAAA,MAAAL,UAAA,GAAAM,mBAAyC,QAAzC,UAAyC;KACzCC,YAAmDL,MAAA,KAAA,GAAA;MAA3C,MAAM,KAAK;MAAM,OAAM;;KAC/BE,mBAAiF,QAAA;MAA3E,OAAM;MAA2B,OAAO,KAAK;KAAU,GAAAI,gBAAA,KAAK,KAAK,GAAA,GAAA,UAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/core";
|
|
2
|
+
//#region src/outline/EditorOutline.vue.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The heading outline of an editor, placed anywhere on the page: nested headings in a tree, clicking one reveals it in
|
|
5
|
+
* the editor (selection only, the document is never changed). Works on exactly the editor passed in (from the
|
|
6
|
+
* surface's `ready` event); a missing or destroyed editor renders an empty outline.
|
|
7
|
+
*/
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
editor?: Editor;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { _default as default };
|
|
15
|
+
//# sourceMappingURL=EditorOutline.vue.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/core";
|
|
2
|
+
import { Node as Node$1 } from "@tiptap/pm/model";
|
|
3
|
+
//#region src/outline/heading-outline.d.ts
|
|
4
|
+
/** One heading of a document's heading outline. */
|
|
5
|
+
export interface HeadingOutlineNode {
|
|
6
|
+
/** Block ID, or `pos:<pos>` for a heading without one yet; unique within the document. */
|
|
7
|
+
key: string;
|
|
8
|
+
id: string | null;
|
|
9
|
+
/** Position of the heading in the document it was read from. */
|
|
10
|
+
pos: number;
|
|
11
|
+
level: number;
|
|
12
|
+
text: string;
|
|
13
|
+
children: HeadingOutlineNode[];
|
|
14
|
+
}
|
|
15
|
+
/** The top-level headings of `doc`, a deeper heading nesting under the nearest shallower one before it; a heading without text is labelled `untitled`. */
|
|
16
|
+
export declare function headingOutline(doc: Node$1, untitled: string): HeadingOutlineNode[];
|
|
17
|
+
/**
|
|
18
|
+
* Scrolls to the block `node` (found by its ID, else by its position), flashes it and puts the caret into its first
|
|
19
|
+
* text (a heading's text, a composite's title). The document is not modified.
|
|
20
|
+
*/
|
|
21
|
+
export declare function revealBlockInEditor(editor: Editor, node: {
|
|
22
|
+
id: string | null;
|
|
23
|
+
pos: number;
|
|
24
|
+
}): void;
|
|
25
|
+
//#endregion
|
|
26
|
+
//# sourceMappingURL=heading-outline.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { blockIdOf, findBlockById } from "../core/schema/block-ids.js";
|
|
2
|
+
import { Selection } from "@tiptap/pm/state";
|
|
3
|
+
//#region src/outline/heading-outline.ts
|
|
4
|
+
/** The top-level headings of `doc`, a deeper heading nesting under the nearest shallower one before it; a heading without text is labelled `untitled`. */
|
|
5
|
+
function headingOutline(doc, untitled) {
|
|
6
|
+
const roots = [];
|
|
7
|
+
const stack = [];
|
|
8
|
+
doc.forEach((node, pos) => {
|
|
9
|
+
if (node.type.name !== "heading") return;
|
|
10
|
+
const id = blockIdOf(node);
|
|
11
|
+
const entry = {
|
|
12
|
+
key: id ?? `pos:${pos}`,
|
|
13
|
+
id,
|
|
14
|
+
pos,
|
|
15
|
+
level: Number(node.attrs.level),
|
|
16
|
+
text: node.textContent.trim() || untitled,
|
|
17
|
+
children: []
|
|
18
|
+
};
|
|
19
|
+
while (stack.length && stack[stack.length - 1].level >= entry.level) stack.pop();
|
|
20
|
+
const parent = stack[stack.length - 1];
|
|
21
|
+
if (parent) parent.children.push(entry);
|
|
22
|
+
else roots.push(entry);
|
|
23
|
+
stack.push(entry);
|
|
24
|
+
});
|
|
25
|
+
return roots;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Scrolls to the block `node` (found by its ID, else by its position), flashes it and puts the caret into its first
|
|
29
|
+
* text (a heading's text, a composite's title). The document is not modified.
|
|
30
|
+
*/
|
|
31
|
+
function revealBlockInEditor(editor, node) {
|
|
32
|
+
const { doc } = editor.state;
|
|
33
|
+
const found = node.id ? findBlockById(doc, node.id) : null;
|
|
34
|
+
const pos = found?.pos ?? node.pos;
|
|
35
|
+
if (!doc.nodeAt(pos)) return;
|
|
36
|
+
const caret = Selection.findFrom(doc.resolve(pos + 1), 1, true)?.from ?? pos + 1;
|
|
37
|
+
const chain = editor.chain().focus().setTextSelection(caret);
|
|
38
|
+
if (found && node.id) {
|
|
39
|
+
chain.run();
|
|
40
|
+
editor.commands.revealBlock(node.id);
|
|
41
|
+
} else chain.scrollIntoView().run();
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { headingOutline, revealBlockInEditor };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=heading-outline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading-outline.js","names":[],"sources":["../../src/outline/heading-outline.ts"],"sourcesContent":["import type { Editor } from '@tiptap/core'\nimport type { Node as PMNode } from '@tiptap/pm/model'\nimport { Selection } from '@tiptap/pm/state'\nimport { blockIdOf, findBlockById } from '../core/schema/block-ids'\n\n/** One heading of a document's heading outline. */\nexport interface HeadingOutlineNode {\n /** Block ID, or `pos:<pos>` for a heading without one yet; unique within the document. */\n key: string\n id: string | null\n /** Position of the heading in the document it was read from. */\n pos: number\n level: number\n text: string\n children: HeadingOutlineNode[]\n}\n\n/** The top-level headings of `doc`, a deeper heading nesting under the nearest shallower one before it; a heading without text is labelled `untitled`. */\nexport function headingOutline(doc: PMNode, untitled: string): HeadingOutlineNode[] {\n const roots: HeadingOutlineNode[] = []\n const stack: HeadingOutlineNode[] = []\n doc.forEach((node, pos) => {\n if (node.type.name !== 'heading') return\n const id = blockIdOf(node)\n const entry: HeadingOutlineNode = {\n key: id ?? `pos:${pos}`,\n id,\n pos,\n level: Number(node.attrs.level),\n text: node.textContent.trim() || untitled,\n children: [],\n }\n while (stack.length && stack[stack.length - 1]!.level >= entry.level) stack.pop()\n const parent = stack[stack.length - 1]\n if (parent) parent.children.push(entry)\n else roots.push(entry)\n stack.push(entry)\n })\n return roots\n}\n\n/**\n * Scrolls to the block `node` (found by its ID, else by its position), flashes it and puts the caret into its first\n * text (a heading's text, a composite's title). The document is not modified.\n */\nexport function revealBlockInEditor(editor: Editor, node: { id: string | null, pos: number }): void {\n const { doc } = editor.state\n const found = node.id ? findBlockById(doc, node.id) : null\n const pos = found?.pos ?? node.pos\n const block = doc.nodeAt(pos)\n if (!block) return\n const caret = Selection.findFrom(doc.resolve(pos + 1), 1, true)?.from ?? pos + 1\n const chain = editor.chain().focus().setTextSelection(caret)\n if (found && node.id) {\n chain.run()\n editor.commands.revealBlock(node.id)\n }\n else {\n chain.scrollIntoView().run()\n }\n}\n"],"mappings":";;;;AAkBA,SAAgB,eAAe,KAAa,UAAwC;CAClF,MAAM,QAA8B,CAAC;CACrC,MAAM,QAA8B,CAAC;CACrC,IAAI,SAAS,MAAM,QAAQ;EACzB,IAAI,KAAK,KAAK,SAAS,WAAW;EAClC,MAAM,KAAK,UAAU,IAAI;EACzB,MAAM,QAA4B;GAChC,KAAK,MAAM,OAAO;GAClB;GACA;GACA,OAAO,OAAO,KAAK,MAAM,KAAK;GAC9B,MAAM,KAAK,YAAY,KAAK,KAAK;GACjC,UAAU,CAAC;EACb;EACA,OAAO,MAAM,UAAU,MAAM,MAAM,SAAS,EAAE,CAAE,SAAS,MAAM,OAAO,MAAM,IAAI;EAChF,MAAM,SAAS,MAAM,MAAM,SAAS;EACpC,IAAI,QAAQ,OAAO,SAAS,KAAK,KAAK;OACjC,MAAM,KAAK,KAAK;EACrB,MAAM,KAAK,KAAK;CAClB,CAAC;CACD,OAAO;AACT;;;;;AAMA,SAAgB,oBAAoB,QAAgB,MAAgD;CAClG,MAAM,EAAE,QAAQ,OAAO;CACvB,MAAM,QAAQ,KAAK,KAAK,cAAc,KAAK,KAAK,EAAE,IAAI;CACtD,MAAM,MAAM,OAAO,OAAO,KAAK;CAE/B,IAAI,CADU,IAAI,OAAO,GAChB,GAAG;CACZ,MAAM,QAAQ,UAAU,SAAS,IAAI,QAAQ,MAAM,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,QAAQ,MAAM;CAC/E,MAAM,QAAQ,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,iBAAiB,KAAK;CAC3D,IAAI,SAAS,KAAK,IAAI;EACpB,MAAM,IAAI;EACV,OAAO,SAAS,YAAY,KAAK,EAAE;CACrC,OAEE,MAAM,eAAe,CAAC,CAAC,IAAI;AAE/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { headingOutline, revealBlockInEditor } from "./heading-outline.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/core";
|
|
2
|
+
//#region src/outline/react/EditorOutline.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The heading outline of an editor, placed anywhere on the page: nested headings in a tree, clicking one reveals it in
|
|
5
|
+
* the editor (selection only, the document is never changed). Works on exactly the editor passed in (from the
|
|
6
|
+
* surface's `onReady`); a missing or destroyed editor renders an empty outline.
|
|
7
|
+
*/
|
|
8
|
+
export declare function EditorOutline({ editor }: {
|
|
9
|
+
editor?: Editor;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
//# sourceMappingURL=EditorOutline.d.ts.map
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { headingOutline, revealBlockInEditor } from "../heading-outline.js";
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
//#region src/outline/react/EditorOutline.tsx
|
|
8
|
+
const REFRESH_DEBOUNCE_MS = 150;
|
|
9
|
+
const HEADING_ICONS = {
|
|
10
|
+
1: "i-lucide-heading-1",
|
|
11
|
+
2: "i-lucide-heading-2",
|
|
12
|
+
3: "i-lucide-heading-3",
|
|
13
|
+
4: "i-lucide-heading-4",
|
|
14
|
+
5: "i-lucide-heading-5",
|
|
15
|
+
6: "i-lucide-heading-6"
|
|
16
|
+
};
|
|
17
|
+
function read(editor, t) {
|
|
18
|
+
return editor && !editor.isDestroyed ? headingOutline(editor.state.doc, t("outline.untitled")) : [];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The heading outline of an editor, placed anywhere on the page: nested headings in a tree, clicking one reveals it in
|
|
22
|
+
* the editor (selection only, the document is never changed). Works on exactly the editor passed in (from the
|
|
23
|
+
* surface's `onReady`); a missing or destroyed editor renders an empty outline.
|
|
24
|
+
*/
|
|
25
|
+
function EditorOutline({ editor }) {
|
|
26
|
+
const { t } = useEditorI18n();
|
|
27
|
+
const [nodes, setNodes] = useState(() => read(editor, t));
|
|
28
|
+
const [collapsed, setCollapsed] = useState(/* @__PURE__ */ new Set());
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setNodes(read(editor, t));
|
|
31
|
+
if (!editor) return;
|
|
32
|
+
let timer;
|
|
33
|
+
const onTransaction = ({ transaction }) => {
|
|
34
|
+
if (!transaction.docChanged) return;
|
|
35
|
+
clearTimeout(timer);
|
|
36
|
+
timer = setTimeout(() => setNodes(read(editor, t)), REFRESH_DEBOUNCE_MS);
|
|
37
|
+
};
|
|
38
|
+
const onDestroy = () => {
|
|
39
|
+
clearTimeout(timer);
|
|
40
|
+
setNodes([]);
|
|
41
|
+
};
|
|
42
|
+
editor.on("transaction", onTransaction);
|
|
43
|
+
editor.on("destroy", onDestroy);
|
|
44
|
+
return () => {
|
|
45
|
+
clearTimeout(timer);
|
|
46
|
+
editor.off("transaction", onTransaction);
|
|
47
|
+
editor.off("destroy", onDestroy);
|
|
48
|
+
};
|
|
49
|
+
}, [editor, t]);
|
|
50
|
+
const toggle = (key) => setCollapsed((current) => {
|
|
51
|
+
const next = new Set(current);
|
|
52
|
+
if (!next.delete(key)) next.add(key);
|
|
53
|
+
return next;
|
|
54
|
+
});
|
|
55
|
+
const reveal = (node) => {
|
|
56
|
+
if (editor && !editor.isDestroyed) revealBlockInEditor(editor, node);
|
|
57
|
+
};
|
|
58
|
+
const onKeyDown = (event, node) => {
|
|
59
|
+
const parent = node.children.length > 0;
|
|
60
|
+
const open = !collapsed.has(node.key);
|
|
61
|
+
if (event.key === "Enter" || event.key === " ") reveal(node);
|
|
62
|
+
else if (event.key === "ArrowRight" && parent && !open) toggle(node.key);
|
|
63
|
+
else if (event.key === "ArrowLeft" && parent && open) toggle(node.key);
|
|
64
|
+
else return;
|
|
65
|
+
event.preventDefault();
|
|
66
|
+
};
|
|
67
|
+
const renderNodes = (list, level) => /* @__PURE__ */ jsx("ul", {
|
|
68
|
+
role: level === 0 ? "tree" : "group",
|
|
69
|
+
"aria-label": level === 0 ? t("outline.label") : void 0,
|
|
70
|
+
className: cn("m-0 list-none p-0 text-sm", level > 0 && "ml-3 border-l border-border pl-1"),
|
|
71
|
+
children: list.map((node) => {
|
|
72
|
+
const parent = node.children.length > 0;
|
|
73
|
+
const open = !collapsed.has(node.key);
|
|
74
|
+
return /* @__PURE__ */ jsxs("li", {
|
|
75
|
+
role: "none",
|
|
76
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
77
|
+
role: "treeitem",
|
|
78
|
+
tabIndex: 0,
|
|
79
|
+
"aria-level": level + 1,
|
|
80
|
+
"aria-expanded": parent ? open : void 0,
|
|
81
|
+
className: "group flex w-full cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-sm select-none outline-none hover:bg-muted/60 focus-visible:ring-1 focus-visible:ring-ring",
|
|
82
|
+
onClick: () => reveal(node),
|
|
83
|
+
onKeyDown: (event) => onKeyDown(event, node),
|
|
84
|
+
children: [
|
|
85
|
+
parent ? /* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: "flex shrink-0",
|
|
87
|
+
onClick: (event) => {
|
|
88
|
+
event.stopPropagation();
|
|
89
|
+
toggle(node.key);
|
|
90
|
+
},
|
|
91
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
92
|
+
name: "i-lucide-chevron-right",
|
|
93
|
+
className: cn("size-3.5 text-muted-foreground transition-transform", open && "rotate-90")
|
|
94
|
+
})
|
|
95
|
+
}) : /* @__PURE__ */ jsx("span", { className: "size-3.5 shrink-0" }),
|
|
96
|
+
/* @__PURE__ */ jsx(Icon, { name: HEADING_ICONS[node.level] ?? "i-lucide-heading" }),
|
|
97
|
+
/* @__PURE__ */ jsx("span", {
|
|
98
|
+
className: "min-w-0 flex-1 truncate",
|
|
99
|
+
title: node.text,
|
|
100
|
+
children: node.text
|
|
101
|
+
})
|
|
102
|
+
]
|
|
103
|
+
}), parent && open && renderNodes(node.children, level + 1)]
|
|
104
|
+
}, node.key);
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
return renderNodes(nodes, 0);
|
|
108
|
+
}
|
|
109
|
+
//#endregion
|
|
110
|
+
export { EditorOutline };
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=EditorOutline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorOutline.js","names":[],"sources":["../../../src/outline/react/EditorOutline.tsx"],"sourcesContent":["import type { Editor } from '@tiptap/core'\nimport { type KeyboardEvent, useEffect, useState } from 'react'\nimport { Icon } from '../../react/Icon'\nimport { useEditorI18n } from '../../react/use-editor-i18n'\nimport { cn } from '../../react/ui/utils'\nimport type { Translate } from '../../i18n'\nimport { type HeadingOutlineNode, headingOutline, revealBlockInEditor } from '../heading-outline'\n\nconst REFRESH_DEBOUNCE_MS = 150\n\n// Spelled out (not built from the level) so bundlers that scan source for icon names find them.\nconst HEADING_ICONS: Record<number, string> = {\n 1: 'i-lucide-heading-1',\n 2: 'i-lucide-heading-2',\n 3: 'i-lucide-heading-3',\n 4: 'i-lucide-heading-4',\n 5: 'i-lucide-heading-5',\n 6: 'i-lucide-heading-6',\n}\n\nfunction read(editor: Editor | undefined, t: Translate): HeadingOutlineNode[] {\n return editor && !editor.isDestroyed ? headingOutline(editor.state.doc, t('outline.untitled')) : []\n}\n\n/**\n * The heading outline of an editor, placed anywhere on the page: nested headings in a tree, clicking one reveals it in\n * the editor (selection only, the document is never changed). Works on exactly the editor passed in (from the\n * surface's `onReady`); a missing or destroyed editor renders an empty outline.\n */\nexport function EditorOutline({ editor }: { editor?: Editor }) {\n const { t } = useEditorI18n()\n // Read from the editor on demand and refreshed, debounced, when the document changes (also an external `setContent`).\n const [nodes, setNodes] = useState<HeadingOutlineNode[]>(() => read(editor, t))\n // Entries start open: only the ones the user closed are remembered.\n const [collapsed, setCollapsed] = useState<ReadonlySet<string>>(new Set())\n\n useEffect(() => {\n setNodes(read(editor, t))\n if (!editor) return\n let timer: ReturnType<typeof setTimeout> | undefined\n const onTransaction = ({ transaction }: { transaction: { docChanged: boolean } }) => {\n if (!transaction.docChanged) return\n clearTimeout(timer)\n timer = setTimeout(() => setNodes(read(editor, t)), REFRESH_DEBOUNCE_MS)\n }\n const onDestroy = () => {\n clearTimeout(timer)\n setNodes([])\n }\n editor.on('transaction', onTransaction)\n editor.on('destroy', onDestroy)\n return () => {\n clearTimeout(timer)\n editor.off('transaction', onTransaction)\n editor.off('destroy', onDestroy)\n }\n }, [editor, t])\n\n const toggle = (key: string) => setCollapsed((current) => {\n const next = new Set(current)\n if (!next.delete(key)) next.add(key)\n return next\n })\n\n const reveal = (node: HeadingOutlineNode) => {\n if (editor && !editor.isDestroyed) revealBlockInEditor(editor, node)\n }\n\n const onKeyDown = (event: KeyboardEvent, node: HeadingOutlineNode) => {\n const parent = node.children.length > 0\n const open = !collapsed.has(node.key)\n if (event.key === 'Enter' || event.key === ' ') reveal(node)\n else if (event.key === 'ArrowRight' && parent && !open) toggle(node.key)\n else if (event.key === 'ArrowLeft' && parent && open) toggle(node.key)\n else return\n event.preventDefault()\n }\n\n const renderNodes = (list: readonly HeadingOutlineNode[], level: number) => (\n <ul role={level === 0 ? 'tree' : 'group'} aria-label={level === 0 ? t('outline.label') : undefined} className={cn('m-0 list-none p-0 text-sm', level > 0 && 'ml-3 border-l border-border pl-1')}>\n {list.map((node) => {\n const parent = node.children.length > 0\n const open = !collapsed.has(node.key)\n return (\n <li key={node.key} role=\"none\">\n <div\n role=\"treeitem\"\n tabIndex={0}\n aria-level={level + 1}\n aria-expanded={parent ? open : undefined}\n className=\"group flex w-full cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-sm select-none outline-none hover:bg-muted/60 focus-visible:ring-1 focus-visible:ring-ring\"\n onClick={() => reveal(node)}\n onKeyDown={event => onKeyDown(event, node)}\n >\n {parent\n ? (\n // The chevron toggles, a click elsewhere on the row reveals.\n <span\n className=\"flex shrink-0\"\n onClick={(event) => {\n event.stopPropagation()\n toggle(node.key)\n }}\n >\n <Icon name=\"i-lucide-chevron-right\" className={cn('size-3.5 text-muted-foreground transition-transform', open && 'rotate-90')} />\n </span>\n )\n : <span className=\"size-3.5 shrink-0\" />}\n <Icon name={HEADING_ICONS[node.level] ?? 'i-lucide-heading'} />\n <span className=\"min-w-0 flex-1 truncate\" title={node.text}>{node.text}</span>\n </div>\n {parent && open && renderNodes(node.children, level + 1)}\n </li>\n )\n })}\n </ul>\n )\n\n return renderNodes(nodes, 0)\n}\n"],"mappings":";;;;;;;AAQA,MAAM,sBAAsB;AAG5B,MAAM,gBAAwC;CAC5C,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACL;AAEA,SAAS,KAAK,QAA4B,GAAoC;CAC5E,OAAO,UAAU,CAAC,OAAO,cAAc,eAAe,OAAO,MAAM,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC;AACpG;;;;;;AAOA,SAAgB,cAAc,EAAE,UAA+B;CAC7D,MAAM,EAAE,MAAM,cAAc;CAE5B,MAAM,CAAC,OAAO,YAAY,eAAqC,KAAK,QAAQ,CAAC,CAAC;CAE9E,MAAM,CAAC,WAAW,gBAAgB,yBAA8B,IAAI,IAAI,CAAC;CAEzE,gBAAgB;EACd,SAAS,KAAK,QAAQ,CAAC,CAAC;EACxB,IAAI,CAAC,QAAQ;EACb,IAAI;EACJ,MAAM,iBAAiB,EAAE,kBAA4D;GACnF,IAAI,CAAC,YAAY,YAAY;GAC7B,aAAa,KAAK;GAClB,QAAQ,iBAAiB,SAAS,KAAK,QAAQ,CAAC,CAAC,GAAG,mBAAmB;EACzE;EACA,MAAM,kBAAkB;GACtB,aAAa,KAAK;GAClB,SAAS,CAAC,CAAC;EACb;EACA,OAAO,GAAG,eAAe,aAAa;EACtC,OAAO,GAAG,WAAW,SAAS;EAC9B,aAAa;GACX,aAAa,KAAK;GAClB,OAAO,IAAI,eAAe,aAAa;GACvC,OAAO,IAAI,WAAW,SAAS;EACjC;CACF,GAAG,CAAC,QAAQ,CAAC,CAAC;CAEd,MAAM,UAAU,QAAgB,cAAc,YAAY;EACxD,MAAM,OAAO,IAAI,IAAI,OAAO;EAC5B,IAAI,CAAC,KAAK,OAAO,GAAG,GAAG,KAAK,IAAI,GAAG;EACnC,OAAO;CACT,CAAC;CAED,MAAM,UAAU,SAA6B;EAC3C,IAAI,UAAU,CAAC,OAAO,aAAa,oBAAoB,QAAQ,IAAI;CACrE;CAEA,MAAM,aAAa,OAAsB,SAA6B;EACpE,MAAM,SAAS,KAAK,SAAS,SAAS;EACtC,MAAM,OAAO,CAAC,UAAU,IAAI,KAAK,GAAG;EACpC,IAAI,MAAM,QAAQ,WAAW,MAAM,QAAQ,KAAK,OAAO,IAAI;OACtD,IAAI,MAAM,QAAQ,gBAAgB,UAAU,CAAC,MAAM,OAAO,KAAK,GAAG;OAClE,IAAI,MAAM,QAAQ,eAAe,UAAU,MAAM,OAAO,KAAK,GAAG;OAChE;EACL,MAAM,eAAe;CACvB;CAEA,MAAM,eAAe,MAAqC,UACxD,oBAAC,MAAD;EAAI,MAAM,UAAU,IAAI,SAAS;EAAS,cAAY,UAAU,IAAI,EAAE,eAAe,IAAI,KAAA;EAAW,WAAW,GAAG,6BAA6B,QAAQ,KAAK,kCAAkC;EAC3L,UAAA,KAAK,KAAK,SAAS;GAClB,MAAM,SAAS,KAAK,SAAS,SAAS;GACtC,MAAM,OAAO,CAAC,UAAU,IAAI,KAAK,GAAG;GACpC,OACE,qBAAC,MAAD;IAAmB,MAAK;IAAxB,UAAA,CACE,qBAAC,OAAD;KACE,MAAK;KACL,UAAU;KACV,cAAY,QAAQ;KACpB,iBAAe,SAAS,OAAO,KAAA;KAC/B,WAAU;KACV,eAAe,OAAO,IAAI;KAC1B,YAAW,UAAS,UAAU,OAAO,IAAI;KAP3C,UAAA;MASG,SAGK,oBAAC,QAAD;OACE,WAAU;OACV,UAAU,UAAU;QAClB,MAAM,gBAAgB;QACtB,OAAO,KAAK,GAAG;OACjB;OAEA,UAAA,oBAAC,MAAD;QAAM,MAAK;QAAyB,WAAW,GAAG,uDAAuD,QAAQ,WAAW;OAAI,CAAA;MAC5H,CAAA,IAER,oBAAC,QAAD,EAAM,WAAU,oBAAqB,CAAA;MACzC,oBAAC,MAAD,EAAM,MAAM,cAAc,KAAK,UAAU,mBAAqB,CAAA;MAC9D,oBAAC,QAAD;OAAM,WAAU;OAA0B,OAAO,KAAK;OAAO,UAAA,KAAK;MAAW,CAAA;KAC1E;IACJ,CAAA,GAAA,UAAU,QAAQ,YAAY,KAAK,UAAU,QAAQ,CAAC,CACrD;GA5BK,GAAA,KAAK,GA4BV;EAER,CAAC;CACC,CAAA;CAGN,OAAO,YAAY,OAAO,CAAC;AAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditorOutline } from "./react/EditorOutline.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EditorOutline } from "./EditorOutline.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EditorFeature, EditorPreset } from "../core/feature.js";
|
|
2
|
+
import { CompositeKind } from "../features/composites/kinds.js";
|
|
3
|
+
import { CompositeFeatureOptions } from "../features/composites/feature.js";
|
|
4
|
+
//#region src/presets/advanced.d.ts
|
|
5
|
+
/** Options of the advanced editor presets (`advancedEditor` of `./vue/advanced` and `./react/advanced`). */
|
|
6
|
+
export interface AdvancedEditorOptions {
|
|
7
|
+
/** The composite kinds („Bausteine“) offered in the editor (default: the built-in `defaultCompositeKinds(t)`); read once. */
|
|
8
|
+
compositeKinds?: readonly CompositeKind[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The feature ids of the advanced editor in schema order: core, media, transcript, composites, mentions, authors,
|
|
12
|
+
* comments, AI, collaboration, block UI, the three integrations (composite-media, composite-AI, transcript-AI) and
|
|
13
|
+
* themes last, in the order of the schema-bearing extensions of the advanced document model.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ADVANCED_FEATURE_IDS: readonly ["core", "media", "transcript", "composites", "mentions", "authors", "comments", "ai", "collab", "block-ui", "composite-media", "composite-ai", "transcript-ai", "themes"];
|
|
16
|
+
export type AdvancedFeatureId = (typeof ADVANCED_FEATURE_IDS)[number];
|
|
17
|
+
/** The ids a UI layer binds (components, node views, hooks); the other advanced features are framework-free. */
|
|
18
|
+
export type UiBoundFeatureId = Exclude<AdvancedFeatureId, 'core' | 'mentions' | 'composite-media' | 'composite-ai' | 'transcript-ai'>;
|
|
19
|
+
/**
|
|
20
|
+
* The features a UI layer binds, keyed by their id; a layer must bind every one (the compiler enforces it).
|
|
21
|
+
* `composites` is the layer's `compositeFeature`: `advancedEditorCore` calls it with the options' `compositeKinds`.
|
|
22
|
+
*/
|
|
23
|
+
export type AdvancedFeatures<C> = Record<Exclude<UiBoundFeatureId, 'composites'>, EditorFeature<C>> & {
|
|
24
|
+
composites: (options: CompositeFeatureOptions) => EditorFeature<C>;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Assembles the advanced editor from the features a UI layer has bound plus the framework-free ones (core, mentions and
|
|
28
|
+
* the integrations composite-media, composite-AI, transcript-AI), in `ADVANCED_FEATURE_IDS` order (the feature list
|
|
29
|
+
* order is the schema and toolbar order). `C` is the layer's component type.
|
|
30
|
+
*/
|
|
31
|
+
export declare function advancedEditorCore<C>(bound: AdvancedFeatures<C>, options?: AdvancedEditorOptions): EditorPreset<C>;
|
|
32
|
+
//#endregion
|
|
33
|
+
//# sourceMappingURL=advanced.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { coreFeature } from "../core/core-feature.js";
|
|
2
|
+
import { defineEditor } from "../core/define-editor.js";
|
|
3
|
+
import { mentionsFeature } from "../features/mentions/index.js";
|
|
4
|
+
import { compositeAiFeature } from "../integrations/composite-ai/index.js";
|
|
5
|
+
import { compositeMediaFeature } from "../integrations/composite-media/index.js";
|
|
6
|
+
import { transcriptAiFeature } from "../integrations/transcript-ai/index.js";
|
|
7
|
+
//#region src/presets/advanced.ts
|
|
8
|
+
/**
|
|
9
|
+
* The feature ids of the advanced editor in schema order: core, media, transcript, composites, mentions, authors,
|
|
10
|
+
* comments, AI, collaboration, block UI, the three integrations (composite-media, composite-AI, transcript-AI) and
|
|
11
|
+
* themes last, in the order of the schema-bearing extensions of the advanced document model.
|
|
12
|
+
*/
|
|
13
|
+
const ADVANCED_FEATURE_IDS = [
|
|
14
|
+
"core",
|
|
15
|
+
"media",
|
|
16
|
+
"transcript",
|
|
17
|
+
"composites",
|
|
18
|
+
"mentions",
|
|
19
|
+
"authors",
|
|
20
|
+
"comments",
|
|
21
|
+
"ai",
|
|
22
|
+
"collab",
|
|
23
|
+
"block-ui",
|
|
24
|
+
"composite-media",
|
|
25
|
+
"composite-ai",
|
|
26
|
+
"transcript-ai",
|
|
27
|
+
"themes"
|
|
28
|
+
];
|
|
29
|
+
/**
|
|
30
|
+
* Assembles the advanced editor from the features a UI layer has bound plus the framework-free ones (core, mentions and
|
|
31
|
+
* the integrations composite-media, composite-AI, transcript-AI), in `ADVANCED_FEATURE_IDS` order (the feature list
|
|
32
|
+
* order is the schema and toolbar order). `C` is the layer's component type.
|
|
33
|
+
*/
|
|
34
|
+
function advancedEditorCore(bound, options = {}) {
|
|
35
|
+
const { composites, ...uiBound } = bound;
|
|
36
|
+
const features = {
|
|
37
|
+
...uiBound,
|
|
38
|
+
"core": coreFeature(),
|
|
39
|
+
"mentions": mentionsFeature(),
|
|
40
|
+
"composites": composites(options.compositeKinds ? { kinds: options.compositeKinds } : {}),
|
|
41
|
+
"composite-media": compositeMediaFeature(),
|
|
42
|
+
"composite-ai": compositeAiFeature(),
|
|
43
|
+
"transcript-ai": transcriptAiFeature()
|
|
44
|
+
};
|
|
45
|
+
return defineEditor({ features: ADVANCED_FEATURE_IDS.map((id) => features[id]) });
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { ADVANCED_FEATURE_IDS, advancedEditorCore };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=advanced.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced.js","names":[],"sources":["../../src/presets/advanced.ts"],"sourcesContent":["import { coreFeature } from '../core/core-feature'\nimport { defineEditor } from '../core/define-editor'\nimport type { EditorFeature, EditorPreset } from '../core/feature'\nimport type { CompositeFeatureOptions } from '../features/composites/feature'\nimport type { CompositeKind } from '../features/composites/kinds'\nimport { mentionsFeature } from '../features/mentions'\nimport { compositeAiFeature } from '../integrations/composite-ai'\nimport { compositeMediaFeature } from '../integrations/composite-media'\nimport { transcriptAiFeature } from '../integrations/transcript-ai'\n\n/** Options of the advanced editor presets (`advancedEditor` of `./vue/advanced` and `./react/advanced`). */\nexport interface AdvancedEditorOptions {\n /** The composite kinds („Bausteine“) offered in the editor (default: the built-in `defaultCompositeKinds(t)`); read once. */\n compositeKinds?: readonly CompositeKind[]\n}\n\n/**\n * The feature ids of the advanced editor in schema order: core, media, transcript, composites, mentions, authors,\n * comments, AI, collaboration, block UI, the three integrations (composite-media, composite-AI, transcript-AI) and\n * themes last, in the order of the schema-bearing extensions of the advanced document model.\n */\nexport const ADVANCED_FEATURE_IDS = [\n 'core',\n 'media',\n 'transcript',\n 'composites',\n 'mentions',\n 'authors',\n 'comments',\n 'ai',\n 'collab',\n 'block-ui',\n 'composite-media',\n 'composite-ai',\n 'transcript-ai',\n 'themes',\n] as const\n\nexport type AdvancedFeatureId = (typeof ADVANCED_FEATURE_IDS)[number]\n\n/** The ids a UI layer binds (components, node views, hooks); the other advanced features are framework-free. */\nexport type UiBoundFeatureId = Exclude<AdvancedFeatureId, 'core' | 'mentions' | 'composite-media' | 'composite-ai' | 'transcript-ai'>\n\n/**\n * The features a UI layer binds, keyed by their id; a layer must bind every one (the compiler enforces it).\n * `composites` is the layer's `compositeFeature`: `advancedEditorCore` calls it with the options' `compositeKinds`.\n */\nexport type AdvancedFeatures<C> = Record<Exclude<UiBoundFeatureId, 'composites'>, EditorFeature<C>> & {\n composites: (options: CompositeFeatureOptions) => EditorFeature<C>\n}\n\n/**\n * Assembles the advanced editor from the features a UI layer has bound plus the framework-free ones (core, mentions and\n * the integrations composite-media, composite-AI, transcript-AI), in `ADVANCED_FEATURE_IDS` order (the feature list\n * order is the schema and toolbar order). `C` is the layer's component type.\n */\nexport function advancedEditorCore<C>(bound: AdvancedFeatures<C>, options: AdvancedEditorOptions = {}): EditorPreset<C> {\n const { composites, ...uiBound } = bound\n const features: Record<AdvancedFeatureId, EditorFeature<C>> = {\n ...uiBound,\n 'core': coreFeature(),\n 'mentions': mentionsFeature(),\n 'composites': composites(options.compositeKinds ? { kinds: options.compositeKinds } : {}),\n 'composite-media': compositeMediaFeature(),\n 'composite-ai': compositeAiFeature(),\n 'transcript-ai': transcriptAiFeature(),\n }\n return defineEditor({ features: ADVANCED_FEATURE_IDS.map(id => features[id]) })\n}\n"],"mappings":";;;;;;;;;;;;AAqBA,MAAa,uBAAuB;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;AAoBA,SAAgB,mBAAsB,OAA4B,UAAiC,CAAC,GAAoB;CACtH,MAAM,EAAE,YAAY,GAAG,YAAY;CACnC,MAAM,WAAwD;EAC5D,GAAG;EACH,QAAQ,YAAY;EACpB,YAAY,gBAAgB;EAC5B,cAAc,WAAW,QAAQ,iBAAiB,EAAE,OAAO,QAAQ,eAAe,IAAI,CAAC,CAAC;EACxF,mBAAmB,sBAAsB;EACzC,gBAAgB,mBAAmB;EACnC,iBAAiB,oBAAoB;CACvC;CACA,OAAO,aAAa,EAAE,UAAU,qBAAqB,KAAI,OAAM,SAAS,GAAG,EAAE,CAAC;AAChF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EditorPreset } from "../core/feature.js";
|
|
2
|
+
//#region src/presets/simple.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* The simple editor: the core feature only (formatting, headings, lists, quotes, code, undo/redo). No backend, no AI,
|
|
5
|
+
* no collaboration. Component-free (`EditorPreset<never>`), so both the Vue and the React surface accept it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const simpleEditor: () => EditorPreset<never>;
|
|
8
|
+
//#endregion
|
|
9
|
+
//# sourceMappingURL=simple.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { coreFeature } from "../core/core-feature.js";
|
|
2
|
+
import { defineEditor } from "../core/define-editor.js";
|
|
3
|
+
//#region src/presets/simple.ts
|
|
4
|
+
/**
|
|
5
|
+
* The simple editor: the core feature only (formatting, headings, lists, quotes, code, undo/redo). No backend, no AI,
|
|
6
|
+
* no collaboration. Component-free (`EditorPreset<never>`), so both the Vue and the React surface accept it.
|
|
7
|
+
*/
|
|
8
|
+
const simpleEditor = () => defineEditor({ features: [coreFeature()] });
|
|
9
|
+
//#endregion
|
|
10
|
+
export { simpleEditor };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=simple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple.js","names":[],"sources":["../../src/presets/simple.ts"],"sourcesContent":["import { coreFeature } from '../core/core-feature'\nimport { defineEditor } from '../core/define-editor'\nimport type { EditorPreset } from '../core/feature'\n\n/**\n * The simple editor: the core feature only (formatting, headings, lists, quotes, code, undo/redo). No backend, no AI,\n * no collaboration. Component-free (`EditorPreset<never>`), so both the Vue and the React surface accept it.\n */\nexport const simpleEditor = (): EditorPreset<never> => defineEditor({ features: [coreFeature()] })\n"],"mappings":";;;;;;;AAQA,MAAa,qBAA0C,aAAa,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EditorSurfaceHandle, EditorSurfaceProps } from "./EditorSurface.js";
|
|
2
|
+
import { CompositeKind } from "../features/composites/kinds.js";
|
|
3
|
+
//#region src/react/AdvancedEditor.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Props of the advanced editor: the surface's own (collaboration session or standalone `value`/`onChange`, metadata,
|
|
6
|
+
* abilities, extensions, block actions, slash commands, `documentId`/`upload`, `editable`, `settingsUi`, the open
|
|
7
|
+
* state of the sidebar and comments margin, `onReady` and the other callbacks) except the preset, which the advanced
|
|
8
|
+
* editor owns, plus the composite kinds.
|
|
9
|
+
*/
|
|
10
|
+
export interface AdvancedEditorProps extends Omit<EditorSurfaceProps, 'preset'> {
|
|
11
|
+
/** Composite kinds („Bausteine“) offered in the editor (default: `defaultCompositeKinds(t)`); read once at mount. */
|
|
12
|
+
compositeKinds?: readonly CompositeKind[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The advanced editor on the React surface: `advancedEditor()` mounted through `EditorSurface`. The feature list is
|
|
16
|
+
* fixed at mount like the kinds it is built from; hosts remount (`key`) to change either. Place `EditorToolbar`
|
|
17
|
+
* (with the same `preset`: build it with `advancedEditor()` and pass it to both) and, with `settingsUi: 'external'`,
|
|
18
|
+
* `EditorSettingsModal`/`EditorSettingsPanel` beside it; `useEditorUi(editor)` reaches the chrome of a ready editor.
|
|
19
|
+
* Collaboration is active only when a `collaboration` session is passed; mount `Toaster` once for notices.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AdvancedEditor: import("react").ForwardRefExoticComponent<AdvancedEditorProps & import("react").RefAttributes<EditorSurfaceHandle>>;
|
|
22
|
+
//#endregion
|
|
23
|
+
//# sourceMappingURL=AdvancedEditor.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EditorSurface } from "./EditorSurface.js";
|
|
2
|
+
import { advancedEditor } from "./advanced-preset.js";
|
|
3
|
+
import { forwardRef, useState } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/react/AdvancedEditor.tsx
|
|
6
|
+
/**
|
|
7
|
+
* The advanced editor on the React surface: `advancedEditor()` mounted through `EditorSurface`. The feature list is
|
|
8
|
+
* fixed at mount like the kinds it is built from; hosts remount (`key`) to change either. Place `EditorToolbar`
|
|
9
|
+
* (with the same `preset`: build it with `advancedEditor()` and pass it to both) and, with `settingsUi: 'external'`,
|
|
10
|
+
* `EditorSettingsModal`/`EditorSettingsPanel` beside it; `useEditorUi(editor)` reaches the chrome of a ready editor.
|
|
11
|
+
* Collaboration is active only when a `collaboration` session is passed; mount `Toaster` once for notices.
|
|
12
|
+
*/
|
|
13
|
+
const AdvancedEditor = forwardRef(function AdvancedEditor({ compositeKinds, ...surface }, ref) {
|
|
14
|
+
const [preset] = useState(() => advancedEditor(compositeKinds ? { compositeKinds } : {}));
|
|
15
|
+
return /* @__PURE__ */ jsx(EditorSurface, {
|
|
16
|
+
ref,
|
|
17
|
+
preset,
|
|
18
|
+
...surface
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { AdvancedEditor };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=AdvancedEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdvancedEditor.js","names":[],"sources":["../../src/react/AdvancedEditor.tsx"],"sourcesContent":["import { forwardRef, useState } from 'react'\nimport type { CompositeKind } from '../features/composites/kinds'\nimport { advancedEditor } from './advanced-preset'\nimport { EditorSurface, type EditorSurfaceHandle, type EditorSurfaceProps } from './EditorSurface'\n\n/**\n * Props of the advanced editor: the surface's own (collaboration session or standalone `value`/`onChange`, metadata,\n * abilities, extensions, block actions, slash commands, `documentId`/`upload`, `editable`, `settingsUi`, the open\n * state of the sidebar and comments margin, `onReady` and the other callbacks) except the preset, which the advanced\n * editor owns, plus the composite kinds.\n */\nexport interface AdvancedEditorProps extends Omit<EditorSurfaceProps, 'preset'> {\n /** Composite kinds („Bausteine“) offered in the editor (default: `defaultCompositeKinds(t)`); read once at mount. */\n compositeKinds?: readonly CompositeKind[]\n}\n\n/**\n * The advanced editor on the React surface: `advancedEditor()` mounted through `EditorSurface`. The feature list is\n * fixed at mount like the kinds it is built from; hosts remount (`key`) to change either. Place `EditorToolbar`\n * (with the same `preset`: build it with `advancedEditor()` and pass it to both) and, with `settingsUi: 'external'`,\n * `EditorSettingsModal`/`EditorSettingsPanel` beside it; `useEditorUi(editor)` reaches the chrome of a ready editor.\n * Collaboration is active only when a `collaboration` session is passed; mount `Toaster` once for notices.\n */\nexport const AdvancedEditor = forwardRef<EditorSurfaceHandle, AdvancedEditorProps>(function AdvancedEditor({ compositeKinds, ...surface }, ref) {\n const [preset] = useState(() => advancedEditor(compositeKinds ? { compositeKinds } : {}))\n return <EditorSurface ref={ref} preset={preset} {...surface} />\n})\n"],"mappings":";;;;;;;;;;;;AAuBA,MAAa,iBAAiB,WAAqD,SAAS,eAAe,EAAE,gBAAgB,GAAG,WAAW,KAAK;CAC9I,MAAM,CAAC,UAAU,eAAe,eAAe,iBAAiB,EAAE,eAAe,IAAI,CAAC,CAAC,CAAC;CACxF,OAAO,oBAAC,eAAD;EAAoB;EAAa;EAAQ,GAAI;CAAU,CAAA;AAChE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactPreset } from "./EditorSurface.js";
|
|
2
|
+
//#region src/react/EditorSettingsModal.d.ts
|
|
3
|
+
/** „Einstellungen“: `EditorSettingsPanel` in a modal. Renders nothing when the preset contributes no settings tab. */
|
|
4
|
+
export declare function EditorSettingsModal({ preset, open, onOpenChange, tab, onTabChange }: {
|
|
5
|
+
/** The preset whose features contribute the tabs (the surface's `preset`). */
|
|
6
|
+
preset: ReactPreset;
|
|
7
|
+
open: boolean;
|
|
8
|
+
onOpenChange: (open: boolean) => void;
|
|
9
|
+
/** Shown tab id (see `EditorSettingsPanel`). */
|
|
10
|
+
tab?: string;
|
|
11
|
+
onTabChange?: (tab: string) => void;
|
|
12
|
+
}): import("react").JSX.Element | null;
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=EditorSettingsModal.d.ts.map
|