@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 @@
|
|
|
1
|
+
{"version":3,"file":"heading-composites.js","names":[],"sources":["../../../src/features/composites/heading-composites.ts"],"sourcesContent":["import { Fragment, type Node as PMNode, type Schema } from '@tiptap/pm/model'\nimport { type CompositeKind, compositeKind } from './kinds'\nimport type { StructureMode } from '../../settings'\n\n// Node names hardcoded (not imported from composite.ts) so composite.ts can import this file without a cycle.\nconst HEADING = 'heading'\nconst COMPOSITE = 'composite'\nconst TITLE = 'compositeTitle'\nconst DESCRIPTION = 'compositeDescription'\nconst TAGS = 'compositeTags'\nconst PARAGRAPH = 'paragraph'\n/** Title, description and tags: the fixed children in front of a composite's body. */\nconst CHROME_COUNT = 3\n\n\nconst isHeading = (node: PMNode) => node.type.name === HEADING\nconst levelOf = (node: PMNode) => node.attrs.level as number\n\n/**\n * `blocks` (siblings) with headings grouped into composites of `kind`. Flat: only headings of the lowest level present\n * become composites; everything before the first such heading is kept. Recursive: bodies, the part before the first\n * heading and the bodies of existing composites are grouped the same way. `null` when nothing changed.\n */\nexport function groupHeadingsIntoComposites(schema: Schema, blocks: readonly PMNode[], recursive: boolean, kind: string): PMNode[] | null {\n let changed = false\n let input: PMNode[] = [...blocks]\n if (recursive) {\n input = input.map((block) => {\n if (block.type.name !== COMPOSITE) return block\n const children: PMNode[] = []\n block.forEach(child => children.push(child))\n const body = groupHeadingsIntoComposites(schema, children.slice(CHROME_COUNT), true, kind)\n if (!body) return block\n changed = true\n return block.copy(Fragment.from([...children.slice(0, CHROME_COUNT), ...body]))\n })\n }\n\n let minLevel = Infinity\n for (const block of input) if (isHeading(block)) minLevel = Math.min(minLevel, levelOf(block))\n if (minLevel === Infinity) return changed ? input : null\n\n const { nodes } = schema\n let preamble: PMNode[] = []\n const groups: { heading: PMNode, body: PMNode[] }[] = []\n for (const block of input) {\n if (isHeading(block) && levelOf(block) <= minLevel) groups.push({ heading: block, body: [] })\n else if (groups.length) groups[groups.length - 1]!.body.push(block)\n else preamble.push(block)\n }\n if (recursive) preamble = groupHeadingsIntoComposites(schema, preamble, true, kind) ?? preamble\n\n const composites = groups.map(({ heading, body }) => {\n let content = body\n if (recursive) content = groupHeadingsIntoComposites(schema, content, true, kind) ?? content\n if (!content.length) content = [nodes[PARAGRAPH]!.create()]\n return nodes[COMPOSITE]!.create({ kind }, [\n nodes[TITLE]!.create(null, heading.content), nodes[DESCRIPTION]!.create(), nodes[TAGS]!.create(), ...content,\n ])\n })\n return [...preamble, ...composites]\n}\n\n/** Index range `[from, to)` of the heading at `index` in `parent` plus its content: up to the next sibling heading of the same or a higher level. */\nexport function headingGroupRange(parent: PMNode, index: number): { from: number, to: number } {\n const level = levelOf(parent.child(index))\n for (let i = index + 1; i < parent.childCount; i++) {\n const child = parent.child(i)\n if (isHeading(child) && levelOf(child) <= level) return { from: index, to: i }\n }\n return { from: index, to: parent.childCount }\n}\n\n/**\n * Description, tags and meta of `composite` as plain paragraphs, in this order, each only when non-empty: the\n * description italic, the tags as tag chips (`#name` text without a `tag` node), the meta as one `Label: Wert · …` line\n * (labels and option labels from the composite's kind in `kinds`; raw keys and values for an unknown kind).\n */\nexport function compositeChromeBlocks(schema: Schema, composite: PMNode, kinds: readonly CompositeKind[]): PMNode[] {\n const n = schema.nodes\n const paragraph = n[PARAGRAPH]!\n const description = composite.child(1)\n const tags: unknown = composite.child(2).attrs.tags\n const blocks: PMNode[] = []\n if (description.content.size) {\n const italic = schema.marks.italic\n const content: PMNode[] = []\n description.forEach(child => content.push(italic && child.isText ? child.mark(italic.create().addToSet(child.marks)) : child))\n blocks.push(paragraph.create(null, content))\n }\n const names = Array.isArray(tags) ? tags.filter((tag): tag is string => typeof tag === 'string' && tag !== '') : []\n if (names.length) {\n const chips = names.flatMap((name, index) => [\n ...(index ? [schema.text(' ')] : []),\n n.tag ? n.tag.create({ name }) : schema.text(`#${name}`),\n ])\n blocks.push(paragraph.create(null, chips))\n }\n const kind = composite.attrs.kind as string\n const fields = kinds.some(known => known.id === kind) ? compositeKind(kinds, kind).fields : []\n const meta = (composite.attrs.meta ?? {}) as Record<string, unknown>\n const entries = Object.entries(meta)\n .filter(([, value]) => value !== '' && value !== null && value !== undefined)\n .map(([key, value]) => {\n const field = fields.find(candidate => candidate.key === key)\n const display = field?.options?.find(option => option.value === value)?.label ?? String(value)\n return `${field?.label ?? key}: ${display}`\n })\n if (entries.length) blocks.push(paragraph.create(null, schema.text(entries.join(' · '))))\n return blocks\n}\n\n/**\n * Inverse of `groupHeadingsIntoComposites`: every composite in `blocks` (siblings) becomes a heading of `level` (max 6)\n * with its title, then its chrome (`compositeChromeBlocks`), then its body (dropped when it is one empty paragraph).\n * Recursive: nested composites in bodies become headings of `level + 1` and so on; flat: they stay. `null` when\n * `blocks` holds no composite. Created blocks carry no id; carried-over body blocks keep theirs.\n */\nexport function flattenCompositesToHeadings(schema: Schema, blocks: readonly PMNode[], recursive: boolean, level: number, kinds: readonly CompositeKind[]): PMNode[] | null {\n if (!blocks.some(block => block.type.name === COMPOSITE)) return null\n const heading = schema.nodes[HEADING]!\n return blocks.flatMap((block) => {\n if (block.type.name !== COMPOSITE) return [block]\n let body: PMNode[] = []\n block.forEach((child, _offset, index) => {\n if (index >= CHROME_COUNT) body.push(child)\n })\n if (body.length === 1 && body[0]!.type.name === PARAGRAPH && !body[0]!.content.size) body = []\n if (recursive) body = flattenCompositesToHeadings(schema, body, true, level + 1, kinds) ?? body\n return [heading.create({ level: Math.min(level, 6) }, block.child(0).content), ...compositeChromeBlocks(schema, block, kinds), ...body]\n })\n}\n\n/**\n * `blocks` (siblings) in the preferred `structure`: `'composite'` groups headings into `section` composites at every\n * level, `'flat'` turns composites into headings starting at `level`. Unchanged blocks come back as a copy of the array.\n */\nexport function structureBlocks(schema: Schema, blocks: readonly PMNode[], structure: StructureMode, level: number, kinds: readonly CompositeKind[]): PMNode[] {\n if (structure === 'composite') return groupHeadingsIntoComposites(schema, blocks, true, 'section') ?? [...blocks]\n return flattenCompositesToHeadings(schema, blocks, true, level, kinds) ?? [...blocks]\n}\n"],"mappings":";;;AAKA,MAAM,UAAU;AAChB,MAAM,YAAY;AAClB,MAAM,QAAQ;AACd,MAAM,cAAc;AACpB,MAAM,OAAO;AACb,MAAM,YAAY;;AAElB,MAAM,eAAe;AAGrB,MAAM,aAAa,SAAiB,KAAK,KAAK,SAAS;AACvD,MAAM,WAAW,SAAiB,KAAK,MAAM;;;;;;AAO7C,SAAgB,4BAA4B,QAAgB,QAA2B,WAAoB,MAA+B;CACxI,IAAI,UAAU;CACd,IAAI,QAAkB,CAAC,GAAG,MAAM;CAChC,IAAI,WACF,QAAQ,MAAM,KAAK,UAAU;EAC3B,IAAI,MAAM,KAAK,SAAS,WAAW,OAAO;EAC1C,MAAM,WAAqB,CAAC;EAC5B,MAAM,SAAQ,UAAS,SAAS,KAAK,KAAK,CAAC;EAC3C,MAAM,OAAO,4BAA4B,QAAQ,SAAS,MAAM,YAAY,GAAG,MAAM,IAAI;EACzF,IAAI,CAAC,MAAM,OAAO;EAClB,UAAU;EACV,OAAO,MAAM,KAAK,SAAS,KAAK,CAAC,GAAG,SAAS,MAAM,GAAG,YAAY,GAAG,GAAG,IAAI,CAAC,CAAC;CAChF,CAAC;CAGH,IAAI,WAAW;CACf,KAAK,MAAM,SAAS,OAAO,IAAI,UAAU,KAAK,GAAG,WAAW,KAAK,IAAI,UAAU,QAAQ,KAAK,CAAC;CAC7F,IAAI,aAAa,UAAU,OAAO,UAAU,QAAQ;CAEpD,MAAM,EAAE,UAAU;CAClB,IAAI,WAAqB,CAAC;CAC1B,MAAM,SAAgD,CAAC;CACvD,KAAK,MAAM,SAAS,OAClB,IAAI,UAAU,KAAK,KAAK,QAAQ,KAAK,KAAK,UAAU,OAAO,KAAK;EAAE,SAAS;EAAO,MAAM,CAAC;CAAE,CAAC;MACvF,IAAI,OAAO,QAAQ,OAAO,OAAO,SAAS,EAAE,CAAE,KAAK,KAAK,KAAK;MAC7D,SAAS,KAAK,KAAK;CAE1B,IAAI,WAAW,WAAW,4BAA4B,QAAQ,UAAU,MAAM,IAAI,KAAK;CAEvF,MAAM,aAAa,OAAO,KAAK,EAAE,SAAS,WAAW;EACnD,IAAI,UAAU;EACd,IAAI,WAAW,UAAU,4BAA4B,QAAQ,SAAS,MAAM,IAAI,KAAK;EACrF,IAAI,CAAC,QAAQ,QAAQ,UAAU,CAAC,MAAM,UAAU,CAAE,OAAO,CAAC;EAC1D,OAAO,MAAM,UAAU,CAAE,OAAO,EAAE,KAAK,GAAG;GACxC,MAAM,MAAM,CAAE,OAAO,MAAM,QAAQ,OAAO;GAAG,MAAM,YAAY,CAAE,OAAO;GAAG,MAAM,KAAK,CAAE,OAAO;GAAG,GAAG;EACvG,CAAC;CACH,CAAC;CACD,OAAO,CAAC,GAAG,UAAU,GAAG,UAAU;AACpC;;AAGA,SAAgB,kBAAkB,QAAgB,OAA6C;CAC7F,MAAM,QAAQ,QAAQ,OAAO,MAAM,KAAK,CAAC;CACzC,KAAK,IAAI,IAAI,QAAQ,GAAG,IAAI,OAAO,YAAY,KAAK;EAClD,MAAM,QAAQ,OAAO,MAAM,CAAC;EAC5B,IAAI,UAAU,KAAK,KAAK,QAAQ,KAAK,KAAK,OAAO,OAAO;GAAE,MAAM;GAAO,IAAI;EAAE;CAC/E;CACA,OAAO;EAAE,MAAM;EAAO,IAAI,OAAO;CAAW;AAC9C;;;;;;AAOA,SAAgB,sBAAsB,QAAgB,WAAmB,OAA2C;CAClH,MAAM,IAAI,OAAO;CACjB,MAAM,YAAY,EAAE;CACpB,MAAM,cAAc,UAAU,MAAM,CAAC;CACrC,MAAM,OAAgB,UAAU,MAAM,CAAC,CAAC,CAAC,MAAM;CAC/C,MAAM,SAAmB,CAAC;CAC1B,IAAI,YAAY,QAAQ,MAAM;EAC5B,MAAM,SAAS,OAAO,MAAM;EAC5B,MAAM,UAAoB,CAAC;EAC3B,YAAY,SAAQ,UAAS,QAAQ,KAAK,UAAU,MAAM,SAAS,MAAM,KAAK,OAAO,OAAO,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC;EAC7H,OAAO,KAAK,UAAU,OAAO,MAAM,OAAO,CAAC;CAC7C;CACA,MAAM,QAAQ,MAAM,QAAQ,IAAI,IAAI,KAAK,QAAQ,QAAuB,OAAO,QAAQ,YAAY,QAAQ,EAAE,IAAI,CAAC;CAClH,IAAI,MAAM,QAAQ;EAChB,MAAM,QAAQ,MAAM,SAAS,MAAM,UAAU,CAC3C,GAAI,QAAQ,CAAC,OAAO,KAAK,GAAG,CAAC,IAAI,CAAC,GAClC,EAAE,MAAM,EAAE,IAAI,OAAO,EAAE,KAAK,CAAC,IAAI,OAAO,KAAK,IAAI,MAAM,CACzD,CAAC;EACD,OAAO,KAAK,UAAU,OAAO,MAAM,KAAK,CAAC;CAC3C;CACA,MAAM,OAAO,UAAU,MAAM;CAC7B,MAAM,SAAS,MAAM,MAAK,UAAS,MAAM,OAAO,IAAI,IAAI,cAAc,OAAO,IAAI,CAAC,CAAC,SAAS,CAAC;CAC7F,MAAM,OAAQ,UAAU,MAAM,QAAQ,CAAC;CACvC,MAAM,UAAU,OAAO,QAAQ,IAAI,CAAC,CACjC,QAAQ,GAAG,WAAW,UAAU,MAAM,UAAU,QAAQ,UAAU,KAAA,CAAS,CAAC,CAC5E,KAAK,CAAC,KAAK,WAAW;EACrB,MAAM,QAAQ,OAAO,MAAK,cAAa,UAAU,QAAQ,GAAG;EAC5D,MAAM,UAAU,OAAO,SAAS,MAAK,WAAU,OAAO,UAAU,KAAK,CAAC,EAAE,SAAS,OAAO,KAAK;EAC7F,OAAO,GAAG,OAAO,SAAS,IAAI,IAAI;CACpC,CAAC;CACH,IAAI,QAAQ,QAAQ,OAAO,KAAK,UAAU,OAAO,MAAM,OAAO,KAAK,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC;CACxF,OAAO;AACT;;;;;;;AAQA,SAAgB,4BAA4B,QAAgB,QAA2B,WAAoB,OAAe,OAAkD;CAC1K,IAAI,CAAC,OAAO,MAAK,UAAS,MAAM,KAAK,SAAS,SAAS,GAAG,OAAO;CACjE,MAAM,UAAU,OAAO,MAAM;CAC7B,OAAO,OAAO,SAAS,UAAU;EAC/B,IAAI,MAAM,KAAK,SAAS,WAAW,OAAO,CAAC,KAAK;EAChD,IAAI,OAAiB,CAAC;EACtB,MAAM,SAAS,OAAO,SAAS,UAAU;GACvC,IAAI,SAAS,cAAc,KAAK,KAAK,KAAK;EAC5C,CAAC;EACD,IAAI,KAAK,WAAW,KAAK,KAAK,EAAE,CAAE,KAAK,SAAS,aAAa,CAAC,KAAK,EAAE,CAAE,QAAQ,MAAM,OAAO,CAAC;EAC7F,IAAI,WAAW,OAAO,4BAA4B,QAAQ,MAAM,MAAM,QAAQ,GAAG,KAAK,KAAK;EAC3F,OAAO;GAAC,QAAQ,OAAO,EAAE,OAAO,KAAK,IAAI,OAAO,CAAC,EAAE,GAAG,MAAM,MAAM,CAAC,CAAC,CAAC,OAAO;GAAG,GAAG,sBAAsB,QAAQ,OAAO,KAAK;GAAG,GAAG;EAAI;CACxI,CAAC;AACH;;;;;AAMA,SAAgB,gBAAgB,QAAgB,QAA2B,WAA0B,OAAe,OAA2C;CAC7J,IAAI,cAAc,aAAa,OAAO,4BAA4B,QAAQ,QAAQ,MAAM,SAAS,KAAK,CAAC,GAAG,MAAM;CAChH,OAAO,4BAA4B,QAAQ,QAAQ,MAAM,OAAO,KAAK,KAAK,CAAC,GAAG,MAAM;AACtF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CompositeAiBrief, compositeAiBrief } from "./ai-brief.js";
|
|
2
|
+
import { CompositeKind, CompositeKindAi, CompositeMetaField, compositeKind, defaultCompositeKinds } from "./kinds.js";
|
|
3
|
+
import { CompositeMention, CompositeRow, compositeDescriptionText, compositeMetaWith, compositeOfRow, compositeRowAt, compositeRows, setCompositeDescription, setCompositeMetaField, setCompositeTags } from "./rows.js";
|
|
4
|
+
import { CompositeAnchor, CompositeAnchorsHandle, CompositeFrame, compositeSectionOf, observeCompositeAnchors } from "./anchors.js";
|
|
5
|
+
import { COMPOSITE_CHROME_COUNT, CompositeDescriptionNode, CompositeNode, CompositeOptions, CompositeStorage, CompositeTagsNode, CompositeTitleNode, compositeJSON, compositeKindsOf } from "./nodes.js";
|
|
6
|
+
import { CompositeNodeViews, compositeNodes } from "./node-views.js";
|
|
7
|
+
import { CompositeFeatureOptions, CompositesUi, compositeFeatureCore } from "./feature.js";
|
|
8
|
+
import { documentCompositeMarkdown, headingsMarkdown, markdownFileName } from "./markdown-export.js";
|
|
9
|
+
import { OutlineNode, canMoveBlockInto, compositeOutline, moveBlockInto } from "./outline.js";
|
|
10
|
+
import { CompositeKindCount, CompositeRowsHandle, CompositeRowsState, createCompositeRows } from "./rows-model.js";
|
|
11
|
+
import { Structure, StructureStorage, structureOf } from "./structure.js";
|
|
12
|
+
import { STRUCTURE_MODE_KEYS } from "./structure-mode.js";
|
|
13
|
+
import { TREE_ROOT_KEYS } from "./tree-root.js";
|
|
14
|
+
import { compositeConversions, convertCompositeBlocks } from "./convert.js";
|
|
15
|
+
import { CompositeFence, FenceSegment, splitCompositeFences } from "../../core/fences.js";
|
|
16
|
+
import { blocksFromMarkdown, compositeFence, compositeFromMarkdown } from "./fences.js";
|
|
17
|
+
import { compositeChromeBlocks, flattenCompositesToHeadings, groupHeadingsIntoComposites, headingGroupRange, structureBlocks } from "./heading-composites.js";
|
|
18
|
+
import { LEGACY_COMPOSITE_NODE, migrateLegacyContent } from "./legacy.js";
|
|
19
|
+
import { compositeSchemaExtensions } from "./schema.js";
|
|
20
|
+
export { COMPOSITE_CHROME_COUNT, type CompositeAiBrief, type CompositeAnchor, type CompositeAnchorsHandle, CompositeDescriptionNode, type CompositeFeatureOptions, type CompositeFence, type CompositeFrame, type CompositeKind, type CompositeKindAi, type CompositeKindCount, type CompositeMention, type CompositeMetaField, CompositeNode, type CompositeNodeViews, type CompositeOptions, type CompositeRow, type CompositeRowsHandle, type CompositeRowsState, type CompositeStorage, CompositeTagsNode, CompositeTitleNode, type CompositesUi, type FenceSegment, LEGACY_COMPOSITE_NODE, type OutlineNode, STRUCTURE_MODE_KEYS, Structure, type StructureStorage, TREE_ROOT_KEYS, blocksFromMarkdown, canMoveBlockInto, compositeAiBrief, compositeChromeBlocks, compositeConversions, compositeDescriptionText, compositeFeatureCore, compositeFence, compositeFromMarkdown, compositeJSON, compositeKind, compositeKindsOf, compositeMetaWith, compositeNodes, compositeOfRow, compositeOutline, compositeRowAt, compositeRows, compositeSchemaExtensions, compositeSectionOf, convertCompositeBlocks, createCompositeRows, defaultCompositeKinds, documentCompositeMarkdown, flattenCompositesToHeadings, groupHeadingsIntoComposites, headingGroupRange, headingsMarkdown, markdownFileName, migrateLegacyContent, moveBlockInto, observeCompositeAnchors, setCompositeDescription, setCompositeMetaField, setCompositeTags, splitCompositeFences, structureBlocks as structureCompositeBlocks, structureOf };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { splitCompositeFences } from "../../core/fences.js";
|
|
2
|
+
import { compositeKind, defaultCompositeKinds } from "./kinds.js";
|
|
3
|
+
import { blocksFromMarkdown, compositeFence, compositeFromMarkdown } from "./fences.js";
|
|
4
|
+
import { compositeChromeBlocks, flattenCompositesToHeadings, groupHeadingsIntoComposites, headingGroupRange, structureBlocks } from "./heading-composites.js";
|
|
5
|
+
import { COMPOSITE_CHROME_COUNT, CompositeDescriptionNode, CompositeNode, CompositeTagsNode, CompositeTitleNode, compositeJSON, compositeKindsOf } from "./nodes.js";
|
|
6
|
+
import { compositeAiBrief } from "./ai-brief.js";
|
|
7
|
+
import { compositeDescriptionText, compositeMetaWith, compositeOfRow, compositeRowAt, compositeRows, setCompositeDescription, setCompositeMetaField, setCompositeTags } from "./rows.js";
|
|
8
|
+
import { compositeSectionOf, observeCompositeAnchors } from "./anchors.js";
|
|
9
|
+
import { compositeConversions, convertCompositeBlocks } from "./convert.js";
|
|
10
|
+
import { LEGACY_COMPOSITE_NODE, migrateLegacyContent } from "./legacy.js";
|
|
11
|
+
import { documentCompositeMarkdown, headingsMarkdown, markdownFileName } from "./markdown-export.js";
|
|
12
|
+
import { compositeNodes } from "./node-views.js";
|
|
13
|
+
import { Structure, structureOf } from "./structure.js";
|
|
14
|
+
import { STRUCTURE_MODE_KEYS } from "./structure-mode.js";
|
|
15
|
+
import { compositeFeatureCore } from "./feature.js";
|
|
16
|
+
import { canMoveBlockInto, compositeOutline, moveBlockInto } from "./outline.js";
|
|
17
|
+
import { createCompositeRows } from "./rows-model.js";
|
|
18
|
+
import { TREE_ROOT_KEYS } from "./tree-root.js";
|
|
19
|
+
import { compositeSchemaExtensions } from "./schema.js";
|
|
20
|
+
export { COMPOSITE_CHROME_COUNT, CompositeDescriptionNode, CompositeNode, CompositeTagsNode, CompositeTitleNode, LEGACY_COMPOSITE_NODE, STRUCTURE_MODE_KEYS, Structure, TREE_ROOT_KEYS, blocksFromMarkdown, canMoveBlockInto, compositeAiBrief, compositeChromeBlocks, compositeConversions, compositeDescriptionText, compositeFeatureCore, compositeFence, compositeFromMarkdown, compositeJSON, compositeKind, compositeKindsOf, compositeMetaWith, compositeNodes, compositeOfRow, compositeOutline, compositeRowAt, compositeRows, compositeSchemaExtensions, compositeSectionOf, convertCompositeBlocks, createCompositeRows, defaultCompositeKinds, documentCompositeMarkdown, flattenCompositesToHeadings, groupHeadingsIntoComposites, headingGroupRange, headingsMarkdown, markdownFileName, migrateLegacyContent, moveBlockInto, observeCompositeAnchors, setCompositeDescription, setCompositeMetaField, setCompositeTags, splitCompositeFences, structureBlocks as structureCompositeBlocks, structureOf };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Translate } from "../../i18n/index.js";
|
|
2
|
+
//#region src/features/composites/kinds.d.ts
|
|
3
|
+
/** One metadata field of a composite kind, stored under `key` in the composite's `meta` attribute. */
|
|
4
|
+
export interface CompositeMetaField {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: 'text' | 'textarea' | 'date' | 'number' | 'select';
|
|
8
|
+
/** Choices of a `select` field. */
|
|
9
|
+
options?: {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* What a kind tells the model beyond its fields. `purpose` goes into every AI request's block model (chat, generate
|
|
16
|
+
* tasks); `instructions`, `instructionsField` and `skeleton` are read only by „Baustein füllen (KI)“ (`fillComposite`).
|
|
17
|
+
*/
|
|
18
|
+
export interface CompositeKindAi {
|
|
19
|
+
/** One or two German sentences: what a Baustein of this kind is for and what its body holds. */
|
|
20
|
+
purpose: string;
|
|
21
|
+
/** Default instruction for filling the body of a Baustein of this kind (what to write, structure, tone). */
|
|
22
|
+
instructions?: string;
|
|
23
|
+
/** Key of a `textarea` field of this kind; a Baustein whose value is non-empty replaces `instructions` with it. */
|
|
24
|
+
instructionsField?: string;
|
|
25
|
+
/** Target text (Vorlage) as Markdown; `{key}` placeholders are replaced by the Baustein's `meta[key]` before it goes to the model, unknown ones stay. */
|
|
26
|
+
skeleton?: string;
|
|
27
|
+
}
|
|
28
|
+
/** A composite kind: what its `kind` attribute selects (label, icon, chrome placeholders, meta fields). */
|
|
29
|
+
export interface CompositeKind {
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
titlePlaceholder: string;
|
|
34
|
+
descriptionPlaceholder: string;
|
|
35
|
+
fields: CompositeMetaField[];
|
|
36
|
+
/** Absent: the kind has no AI brief; „Baustein füllen (KI)“ is not offered for it. */
|
|
37
|
+
ai?: CompositeKindAi;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The built-in kinds in the language of `t`. The default set is produced from the translator (labels, placeholders, field
|
|
41
|
+
* labels and status choices are catalog messages), so it is built per translator and memoized; hosts that pass their own
|
|
42
|
+
* kinds (`compositeFeature({ kinds })`, `Composite.configure({ kinds })`) keep their labels untouched. Ids, field keys and
|
|
43
|
+
* stored values (`open`, `doing`, `done`) do not depend on the language.
|
|
44
|
+
*/
|
|
45
|
+
export declare function defaultCompositeKinds(t: Translate): readonly CompositeKind[];
|
|
46
|
+
/** Kind `id` from `kinds`; an unknown id gets the `section` kind's presentation (else the first kind's) under its own id and label. */
|
|
47
|
+
export declare function compositeKind(kinds: readonly CompositeKind[], id: string): CompositeKind;
|
|
48
|
+
//#endregion
|
|
49
|
+
//# sourceMappingURL=kinds.d.ts.map
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { createTranslator } from "../../i18n/index.js";
|
|
2
|
+
//#region src/features/composites/kinds.ts
|
|
3
|
+
/**
|
|
4
|
+
* The built-in kinds in the language of `t`. The default set is produced from the translator (labels, placeholders, field
|
|
5
|
+
* labels and status choices are catalog messages), so it is built per translator and memoized; hosts that pass their own
|
|
6
|
+
* kinds (`compositeFeature({ kinds })`, `Composite.configure({ kinds })`) keep their labels untouched. Ids, field keys and
|
|
7
|
+
* stored values (`open`, `doing`, `done`) do not depend on the language.
|
|
8
|
+
*/
|
|
9
|
+
function defaultCompositeKinds(t) {
|
|
10
|
+
let kinds = DEFAULT_KINDS.get(t);
|
|
11
|
+
if (!kinds) DEFAULT_KINDS.set(t, kinds = buildDefaultKinds(t));
|
|
12
|
+
return kinds;
|
|
13
|
+
}
|
|
14
|
+
const DEFAULT_KINDS = /* @__PURE__ */ new WeakMap();
|
|
15
|
+
function buildDefaultKinds(t) {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
id: "section",
|
|
19
|
+
label: t("composites.kind.section.label"),
|
|
20
|
+
icon: "i-lucide-layers",
|
|
21
|
+
titlePlaceholder: t("composites.kind.section.title"),
|
|
22
|
+
descriptionPlaceholder: t("composites.kind.section.description"),
|
|
23
|
+
fields: []
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "task",
|
|
27
|
+
label: t("composites.kind.task.label"),
|
|
28
|
+
icon: "i-lucide-square-check",
|
|
29
|
+
titlePlaceholder: t("composites.kind.task.title"),
|
|
30
|
+
descriptionPlaceholder: t("composites.kind.task.description"),
|
|
31
|
+
fields: [
|
|
32
|
+
{
|
|
33
|
+
key: "status",
|
|
34
|
+
label: t("composites.kind.task.field.status"),
|
|
35
|
+
type: "select",
|
|
36
|
+
options: [
|
|
37
|
+
{
|
|
38
|
+
value: "open",
|
|
39
|
+
label: t("composites.kind.task.status.open")
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: "doing",
|
|
43
|
+
label: t("composites.kind.task.status.doing")
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: "done",
|
|
47
|
+
label: t("composites.kind.task.status.done")
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: "due",
|
|
53
|
+
label: t("composites.kind.task.field.due"),
|
|
54
|
+
type: "date"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "assignee",
|
|
58
|
+
label: t("composites.kind.task.field.assignee"),
|
|
59
|
+
type: "text"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "note",
|
|
65
|
+
label: t("composites.kind.note.label"),
|
|
66
|
+
icon: "i-lucide-sticky-note",
|
|
67
|
+
titlePlaceholder: t("composites.kind.note.title"),
|
|
68
|
+
descriptionPlaceholder: t("composites.kind.note.description"),
|
|
69
|
+
fields: []
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "document",
|
|
73
|
+
label: t("composites.kind.document.label"),
|
|
74
|
+
icon: "i-lucide-file-text",
|
|
75
|
+
titlePlaceholder: t("composites.kind.document.title"),
|
|
76
|
+
descriptionPlaceholder: t("composites.kind.document.description"),
|
|
77
|
+
fields: [
|
|
78
|
+
{
|
|
79
|
+
key: "filename",
|
|
80
|
+
label: t("composites.kind.document.field.filename"),
|
|
81
|
+
type: "text"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: "mimeType",
|
|
85
|
+
label: t("composites.kind.document.field.mimeType"),
|
|
86
|
+
type: "text"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
key: "size",
|
|
90
|
+
label: t("composites.kind.document.field.size"),
|
|
91
|
+
type: "number"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
key: "importedAt",
|
|
95
|
+
label: t("composites.kind.document.field.importedAt"),
|
|
96
|
+
type: "date"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "transcript",
|
|
100
|
+
label: t("composites.kind.document.field.transcript"),
|
|
101
|
+
type: "textarea"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: "folder",
|
|
107
|
+
label: t("composites.kind.folder.label"),
|
|
108
|
+
icon: "i-lucide-folder",
|
|
109
|
+
titlePlaceholder: t("composites.kind.folder.title"),
|
|
110
|
+
descriptionPlaceholder: t("composites.kind.folder.description"),
|
|
111
|
+
fields: []
|
|
112
|
+
}
|
|
113
|
+
];
|
|
114
|
+
}
|
|
115
|
+
/** The built-in kinds in the default language, for server-side and context-free code (`Composite`'s default option, an editor without a context). */
|
|
116
|
+
const fallbackCompositeKinds = () => defaultCompositeKinds(DEFAULT_TRANSLATE);
|
|
117
|
+
const DEFAULT_TRANSLATE = createTranslator();
|
|
118
|
+
/** Kind `id` from `kinds`; an unknown id gets the `section` kind's presentation (else the first kind's) under its own id and label. */
|
|
119
|
+
function compositeKind(kinds, id) {
|
|
120
|
+
const known = kinds.find((kind) => kind.id === id);
|
|
121
|
+
if (known) return known;
|
|
122
|
+
return {
|
|
123
|
+
...kinds.find((kind) => kind.id === "section") ?? kinds[0] ?? fallbackCompositeKinds()[0],
|
|
124
|
+
id,
|
|
125
|
+
label: id
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
export { compositeKind, defaultCompositeKinds, fallbackCompositeKinds };
|
|
130
|
+
|
|
131
|
+
//# sourceMappingURL=kinds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kinds.js","names":[],"sources":["../../../src/features/composites/kinds.ts"],"sourcesContent":["// Vue-free and server-importable: the kind registry of the composite block family („Bausteine“).\nimport { createTranslator, type Translate } from '../../i18n'\n\n/** One metadata field of a composite kind, stored under `key` in the composite's `meta` attribute. */\nexport interface CompositeMetaField {\n key: string\n label: string\n type: 'text' | 'textarea' | 'date' | 'number' | 'select'\n /** Choices of a `select` field. */\n options?: { value: string, label: string }[]\n}\n\n/**\n * What a kind tells the model beyond its fields. `purpose` goes into every AI request's block model (chat, generate\n * tasks); `instructions`, `instructionsField` and `skeleton` are read only by „Baustein füllen (KI)“ (`fillComposite`).\n */\nexport interface CompositeKindAi {\n /** One or two German sentences: what a Baustein of this kind is for and what its body holds. */\n purpose: string\n /** Default instruction for filling the body of a Baustein of this kind (what to write, structure, tone). */\n instructions?: string\n /** Key of a `textarea` field of this kind; a Baustein whose value is non-empty replaces `instructions` with it. */\n instructionsField?: string\n /** Target text (Vorlage) as Markdown; `{key}` placeholders are replaced by the Baustein's `meta[key]` before it goes to the model, unknown ones stay. */\n skeleton?: string\n}\n\n/** A composite kind: what its `kind` attribute selects (label, icon, chrome placeholders, meta fields). */\nexport interface CompositeKind {\n id: string\n label: string\n icon: string\n titlePlaceholder: string\n descriptionPlaceholder: string\n fields: CompositeMetaField[]\n /** Absent: the kind has no AI brief; „Baustein füllen (KI)“ is not offered for it. */\n ai?: CompositeKindAi\n}\n\n/**\n * The built-in kinds in the language of `t`. The default set is produced from the translator (labels, placeholders, field\n * labels and status choices are catalog messages), so it is built per translator and memoized; hosts that pass their own\n * kinds (`compositeFeature({ kinds })`, `Composite.configure({ kinds })`) keep their labels untouched. Ids, field keys and\n * stored values (`open`, `doing`, `done`) do not depend on the language.\n */\nexport function defaultCompositeKinds(t: Translate): readonly CompositeKind[] {\n let kinds = DEFAULT_KINDS.get(t)\n if (!kinds) DEFAULT_KINDS.set(t, kinds = buildDefaultKinds(t))\n return kinds\n}\n\nconst DEFAULT_KINDS = new WeakMap<Translate, readonly CompositeKind[]>()\n\nfunction buildDefaultKinds(t: Translate): readonly CompositeKind[] {\n return [\n { id: 'section', label: t('composites.kind.section.label'), icon: 'i-lucide-layers', titlePlaceholder: t('composites.kind.section.title'), descriptionPlaceholder: t('composites.kind.section.description'), fields: [] },\n { id: 'task', label: t('composites.kind.task.label'), icon: 'i-lucide-square-check', titlePlaceholder: t('composites.kind.task.title'), descriptionPlaceholder: t('composites.kind.task.description'), fields: [\n { key: 'status', label: t('composites.kind.task.field.status'), type: 'select', options: [\n { value: 'open', label: t('composites.kind.task.status.open') },\n { value: 'doing', label: t('composites.kind.task.status.doing') },\n { value: 'done', label: t('composites.kind.task.status.done') },\n ] },\n { key: 'due', label: t('composites.kind.task.field.due'), type: 'date' },\n { key: 'assignee', label: t('composites.kind.task.field.assignee'), type: 'text' },\n ] },\n { id: 'note', label: t('composites.kind.note.label'), icon: 'i-lucide-sticky-note', titlePlaceholder: t('composites.kind.note.title'), descriptionPlaceholder: t('composites.kind.note.description'), fields: [] },\n { id: 'document', label: t('composites.kind.document.label'), icon: 'i-lucide-file-text', titlePlaceholder: t('composites.kind.document.title'), descriptionPlaceholder: t('composites.kind.document.description'), fields: [\n { key: 'filename', label: t('composites.kind.document.field.filename'), type: 'text' },\n { key: 'mimeType', label: t('composites.kind.document.field.mimeType'), type: 'text' },\n { key: 'size', label: t('composites.kind.document.field.size'), type: 'number' },\n { key: 'importedAt', label: t('composites.kind.document.field.importedAt'), type: 'date' },\n { key: 'transcript', label: t('composites.kind.document.field.transcript'), type: 'textarea' },\n ] },\n { id: 'folder', label: t('composites.kind.folder.label'), icon: 'i-lucide-folder', titlePlaceholder: t('composites.kind.folder.title'), descriptionPlaceholder: t('composites.kind.folder.description'), fields: [] },\n ]\n}\n\n/** The built-in kinds in the default language, for server-side and context-free code (`Composite`'s default option, an editor without a context). */\nexport const fallbackCompositeKinds = (): readonly CompositeKind[] => defaultCompositeKinds(DEFAULT_TRANSLATE)\n\nconst DEFAULT_TRANSLATE = createTranslator()\n\n/** Kind `id` from `kinds`; an unknown id gets the `section` kind's presentation (else the first kind's) under its own id and label. */\nexport function compositeKind(kinds: readonly CompositeKind[], id: string): CompositeKind {\n const known = kinds.find(kind => kind.id === id)\n if (known) return known\n const base = kinds.find(kind => kind.id === 'section') ?? kinds[0] ?? fallbackCompositeKinds()[0]!\n return { ...base, id, label: id }\n}\n"],"mappings":";;;;;;;;AA6CA,SAAgB,sBAAsB,GAAwC;CAC5E,IAAI,QAAQ,cAAc,IAAI,CAAC;CAC/B,IAAI,CAAC,OAAO,cAAc,IAAI,GAAG,QAAQ,kBAAkB,CAAC,CAAC;CAC7D,OAAO;AACT;AAEA,MAAM,gCAAgB,IAAI,QAA6C;AAEvE,SAAS,kBAAkB,GAAwC;CACjE,OAAO;EACL;GAAE,IAAI;GAAW,OAAO,EAAE,+BAA+B;GAAG,MAAM;GAAmB,kBAAkB,EAAE,+BAA+B;GAAG,wBAAwB,EAAE,qCAAqC;GAAG,QAAQ,CAAC;EAAE;EACxN;GAAE,IAAI;GAAQ,OAAO,EAAE,4BAA4B;GAAG,MAAM;GAAyB,kBAAkB,EAAE,4BAA4B;GAAG,wBAAwB,EAAE,kCAAkC;GAAG,QAAQ;IAC7M;KAAE,KAAK;KAAU,OAAO,EAAE,mCAAmC;KAAG,MAAM;KAAU,SAAS;MACvF;OAAE,OAAO;OAAQ,OAAO,EAAE,kCAAkC;MAAE;MAC9D;OAAE,OAAO;OAAS,OAAO,EAAE,mCAAmC;MAAE;MAChE;OAAE,OAAO;OAAQ,OAAO,EAAE,kCAAkC;MAAE;KAChE;IAAE;IACF;KAAE,KAAK;KAAO,OAAO,EAAE,gCAAgC;KAAG,MAAM;IAAO;IACvE;KAAE,KAAK;KAAY,OAAO,EAAE,qCAAqC;KAAG,MAAM;IAAO;GACnF;EAAE;EACF;GAAE,IAAI;GAAQ,OAAO,EAAE,4BAA4B;GAAG,MAAM;GAAwB,kBAAkB,EAAE,4BAA4B;GAAG,wBAAwB,EAAE,kCAAkC;GAAG,QAAQ,CAAC;EAAE;EACjN;GAAE,IAAI;GAAY,OAAO,EAAE,gCAAgC;GAAG,MAAM;GAAsB,kBAAkB,EAAE,gCAAgC;GAAG,wBAAwB,EAAE,sCAAsC;GAAG,QAAQ;IAC1N;KAAE,KAAK;KAAY,OAAO,EAAE,yCAAyC;KAAG,MAAM;IAAO;IACrF;KAAE,KAAK;KAAY,OAAO,EAAE,yCAAyC;KAAG,MAAM;IAAO;IACrF;KAAE,KAAK;KAAQ,OAAO,EAAE,qCAAqC;KAAG,MAAM;IAAS;IAC/E;KAAE,KAAK;KAAc,OAAO,EAAE,2CAA2C;KAAG,MAAM;IAAO;IACzF;KAAE,KAAK;KAAc,OAAO,EAAE,2CAA2C;KAAG,MAAM;IAAW;GAC/F;EAAE;EACF;GAAE,IAAI;GAAU,OAAO,EAAE,8BAA8B;GAAG,MAAM;GAAmB,kBAAkB,EAAE,8BAA8B;GAAG,wBAAwB,EAAE,oCAAoC;GAAG,QAAQ,CAAC;EAAE;CACtN;AACF;;AAGA,MAAa,+BAAyD,sBAAsB,iBAAiB;AAE7G,MAAM,oBAAoB,iBAAiB;;AAG3C,SAAgB,cAAc,OAAiC,IAA2B;CACxF,MAAM,QAAQ,MAAM,MAAK,SAAQ,KAAK,OAAO,EAAE;CAC/C,IAAI,OAAO,OAAO;CAElB,OAAO;EAAE,GADI,MAAM,MAAK,SAAQ,KAAK,OAAO,SAAS,KAAK,MAAM,MAAM,uBAAuB,CAAC,CAAC;EAC7E;EAAI,OAAO;CAAG;AAClC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSONContent } from "@tiptap/core";
|
|
2
|
+
//#region src/features/composites/legacy.d.ts
|
|
3
|
+
/** Legacy node name of the composite block; stored Yjs docs containing it are reseeded from migrated JSON. */
|
|
4
|
+
export declare const LEGACY_COMPOSITE_NODE = "section";
|
|
5
|
+
/** `json` with legacy node types renamed to the composite family (a legacy block becomes kind `section`); recursive, returns a copy. */
|
|
6
|
+
export declare function migrateLegacyContent(json: JSONContent): JSONContent;
|
|
7
|
+
//#endregion
|
|
8
|
+
//# sourceMappingURL=legacy.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/features/composites/legacy.ts
|
|
2
|
+
const LEGACY_RENAMES = {
|
|
3
|
+
section: "composite",
|
|
4
|
+
sectionTitle: "compositeTitle",
|
|
5
|
+
sectionSummary: "compositeDescription",
|
|
6
|
+
sectionTags: "compositeTags"
|
|
7
|
+
};
|
|
8
|
+
/** Legacy node name of the composite block; stored Yjs docs containing it are reseeded from migrated JSON. */
|
|
9
|
+
const LEGACY_COMPOSITE_NODE = "section";
|
|
10
|
+
/** `json` with legacy node types renamed to the composite family (a legacy block becomes kind `section`); recursive, returns a copy. */
|
|
11
|
+
function migrateLegacyContent(json) {
|
|
12
|
+
const renamed = json.type ? LEGACY_RENAMES[json.type] : void 0;
|
|
13
|
+
const result = { ...json };
|
|
14
|
+
if (renamed) result.type = renamed;
|
|
15
|
+
if (json.type === "section") result.attrs = {
|
|
16
|
+
...json.attrs,
|
|
17
|
+
kind: "section"
|
|
18
|
+
};
|
|
19
|
+
if (json.content) result.content = json.content.map(migrateLegacyContent);
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { LEGACY_COMPOSITE_NODE, migrateLegacyContent };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy.js","names":[],"sources":["../../../src/features/composites/legacy.ts"],"sourcesContent":["import type { JSONContent } from '@tiptap/core'\n\n// Node names of the former single-purpose block that the composite family replaced (dev data only).\nconst LEGACY_RENAMES: Readonly<Record<string, string>> = {\n section: 'composite',\n sectionTitle: 'compositeTitle',\n sectionSummary: 'compositeDescription',\n sectionTags: 'compositeTags',\n}\n\n/** Legacy node name of the composite block; stored Yjs docs containing it are reseeded from migrated JSON. */\nexport const LEGACY_COMPOSITE_NODE = 'section'\n\n/** `json` with legacy node types renamed to the composite family (a legacy block becomes kind `section`); recursive, returns a copy. */\nexport function migrateLegacyContent(json: JSONContent): JSONContent {\n const renamed = json.type ? LEGACY_RENAMES[json.type] : undefined\n const result: JSONContent = { ...json }\n if (renamed) result.type = renamed\n if (json.type === LEGACY_COMPOSITE_NODE) result.attrs = { ...json.attrs, kind: 'section' }\n if (json.content) result.content = json.content.map(migrateLegacyContent)\n return result\n}\n"],"mappings":";AAGA,MAAM,iBAAmD;CACvD,SAAS;CACT,cAAc;CACd,gBAAgB;CAChB,aAAa;AACf;;AAGA,MAAa,wBAAwB;;AAGrC,SAAgB,qBAAqB,MAAgC;CACnE,MAAM,UAAU,KAAK,OAAO,eAAe,KAAK,QAAQ,KAAA;CACxD,MAAM,SAAsB,EAAE,GAAG,KAAK;CACtC,IAAI,SAAS,OAAO,OAAO;CAC3B,IAAI,KAAK,SAAA,WAAgC,OAAO,QAAQ;EAAE,GAAG,KAAK;EAAO,MAAM;CAAU;CACzF,IAAI,KAAK,SAAS,OAAO,UAAU,KAAK,QAAQ,IAAI,oBAAoB;CACxE,OAAO;AACT"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/core";
|
|
2
|
+
import { Node as Node$1 } from "@tiptap/pm/model";
|
|
3
|
+
//#region src/features/composites/markdown-export.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* `blocks` as Markdown with every composite turned into a heading, the outermost at `level` (nested ones deeper), then
|
|
6
|
+
* its description, tags and meta line, then its body.
|
|
7
|
+
*/
|
|
8
|
+
export declare function headingsMarkdown(editor: Editor, blocks: readonly Node$1[], level: number): string;
|
|
9
|
+
/**
|
|
10
|
+
* A composite as a Markdown document: its title as `#` heading, description and tags (no meta line: the original file
|
|
11
|
+
* name, type and size describe the import, not the content), then the body with nested composites as `##`, `###`, ….
|
|
12
|
+
*/
|
|
13
|
+
export declare function documentCompositeMarkdown(editor: Editor, node: Node$1): string;
|
|
14
|
+
/** Download name for `node`'s Markdown: the imported file's name with its extension replaced by `.md`, else the title. */
|
|
15
|
+
export declare function markdownFileName(node: Node$1): string;
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=markdown-export.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { compositeChromeBlocks, flattenCompositesToHeadings } from "./heading-composites.js";
|
|
2
|
+
import { compositeKindsOf } from "./nodes.js";
|
|
3
|
+
//#region src/features/composites/markdown-export.ts
|
|
4
|
+
/**
|
|
5
|
+
* `blocks` as Markdown with every composite turned into a heading, the outermost at `level` (nested ones deeper), then
|
|
6
|
+
* its description, tags and meta line, then its body.
|
|
7
|
+
*/
|
|
8
|
+
function headingsMarkdown(editor, blocks, level) {
|
|
9
|
+
const nodes = flattenCompositesToHeadings(editor.schema, blocks, true, level, compositeKindsOf(editor)) ?? [...blocks];
|
|
10
|
+
return editor.markdown.serialize({
|
|
11
|
+
type: "doc",
|
|
12
|
+
content: nodes.map((node) => node.toJSON())
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A composite as a Markdown document: its title as `#` heading, description and tags (no meta line: the original file
|
|
17
|
+
* name, type and size describe the import, not the content), then the body with nested composites as `##`, `###`, ….
|
|
18
|
+
*/
|
|
19
|
+
function documentCompositeMarkdown(editor, node) {
|
|
20
|
+
const { schema } = editor;
|
|
21
|
+
const title = node.child(0);
|
|
22
|
+
const heading = title.content.size ? [schema.nodes.heading.create({ level: 1 }, title.content)] : [];
|
|
23
|
+
const withoutMeta = node.type.create({
|
|
24
|
+
...node.attrs,
|
|
25
|
+
meta: {}
|
|
26
|
+
}, node.content);
|
|
27
|
+
const chrome = compositeChromeBlocks(schema, withoutMeta, compositeKindsOf(editor));
|
|
28
|
+
let body = [];
|
|
29
|
+
node.forEach((child, _offset, index) => {
|
|
30
|
+
if (index >= 3) body.push(child);
|
|
31
|
+
});
|
|
32
|
+
if (body.length === 1 && body[0].type.name === "paragraph" && !body[0].content.size) body = [];
|
|
33
|
+
return headingsMarkdown(editor, [
|
|
34
|
+
...heading,
|
|
35
|
+
...chrome,
|
|
36
|
+
...body
|
|
37
|
+
], 2);
|
|
38
|
+
}
|
|
39
|
+
/** Download name for `node`'s Markdown: the imported file's name with its extension replaced by `.md`, else the title. */
|
|
40
|
+
function markdownFileName(node) {
|
|
41
|
+
const meta = node.attrs.meta ?? {};
|
|
42
|
+
const filename = typeof meta.filename === "string" ? meta.filename.trim() : "";
|
|
43
|
+
const dot = filename.lastIndexOf(".");
|
|
44
|
+
return `${filename ? dot > 0 ? filename.slice(0, dot) : filename : node.child(0).textContent.trim() || "dokument"}.md`.replace(/[\\/:*?"<>|]+/g, "-");
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { documentCompositeMarkdown, headingsMarkdown, markdownFileName };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=markdown-export.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-export.js","names":[],"sources":["../../../src/features/composites/markdown-export.ts"],"sourcesContent":["import type { Editor } from '@tiptap/core'\nimport type { Node as PMNode } from '@tiptap/pm/model'\nimport { compositeChromeBlocks, flattenCompositesToHeadings } from './heading-composites'\nimport { COMPOSITE_CHROME_COUNT, compositeKindsOf } from './nodes'\n\n/**\n * `blocks` as Markdown with every composite turned into a heading, the outermost at `level` (nested ones deeper), then\n * its description, tags and meta line, then its body.\n */\nexport function headingsMarkdown(editor: Editor, blocks: readonly PMNode[], level: number): string {\n const nodes = flattenCompositesToHeadings(editor.schema, blocks, true, level, compositeKindsOf(editor)) ?? [...blocks]\n return editor.markdown!.serialize({ type: 'doc', content: nodes.map(node => node.toJSON()) })\n}\n\n/**\n * A composite as a Markdown document: its title as `#` heading, description and tags (no meta line: the original file\n * name, type and size describe the import, not the content), then the body with nested composites as `##`, `###`, ….\n */\nexport function documentCompositeMarkdown(editor: Editor, node: PMNode): string {\n const { schema } = editor\n const title = node.child(0)\n const heading = title.content.size ? [schema.nodes.heading!.create({ level: 1 }, title.content)] : []\n const withoutMeta = node.type.create({ ...node.attrs, meta: {} }, node.content)\n const chrome = compositeChromeBlocks(schema, withoutMeta, compositeKindsOf(editor))\n let body: PMNode[] = []\n node.forEach((child, _offset, index) => {\n if (index >= COMPOSITE_CHROME_COUNT) body.push(child)\n })\n if (body.length === 1 && body[0]!.type.name === 'paragraph' && !body[0]!.content.size) body = []\n return headingsMarkdown(editor, [...heading, ...chrome, ...body], 2)\n}\n\n/** Download name for `node`'s Markdown: the imported file's name with its extension replaced by `.md`, else the title. */\nexport function markdownFileName(node: PMNode): string {\n const meta = (node.attrs.meta ?? {}) as Record<string, unknown>\n const filename = typeof meta.filename === 'string' ? meta.filename.trim() : ''\n const dot = filename.lastIndexOf('.')\n const stem = filename ? (dot > 0 ? filename.slice(0, dot) : filename) : node.child(0).textContent.trim() || 'dokument'\n return `${stem}.md`.replace(/[\\\\/:*?\"<>|]+/g, '-')\n}\n"],"mappings":";;;;;;;AASA,SAAgB,iBAAiB,QAAgB,QAA2B,OAAuB;CACjG,MAAM,QAAQ,4BAA4B,OAAO,QAAQ,QAAQ,MAAM,OAAO,iBAAiB,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM;CACrH,OAAO,OAAO,SAAU,UAAU;EAAE,MAAM;EAAO,SAAS,MAAM,KAAI,SAAQ,KAAK,OAAO,CAAC;CAAE,CAAC;AAC9F;;;;;AAMA,SAAgB,0BAA0B,QAAgB,MAAsB;CAC9E,MAAM,EAAE,WAAW;CACnB,MAAM,QAAQ,KAAK,MAAM,CAAC;CAC1B,MAAM,UAAU,MAAM,QAAQ,OAAO,CAAC,OAAO,MAAM,QAAS,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC;CACpG,MAAM,cAAc,KAAK,KAAK,OAAO;EAAE,GAAG,KAAK;EAAO,MAAM,CAAC;CAAE,GAAG,KAAK,OAAO;CAC9E,MAAM,SAAS,sBAAsB,QAAQ,aAAa,iBAAiB,MAAM,CAAC;CAClF,IAAI,OAAiB,CAAC;CACtB,KAAK,SAAS,OAAO,SAAS,UAAU;EACtC,IAAI,SAAA,GAAiC,KAAK,KAAK,KAAK;CACtD,CAAC;CACD,IAAI,KAAK,WAAW,KAAK,KAAK,EAAE,CAAE,KAAK,SAAS,eAAe,CAAC,KAAK,EAAE,CAAE,QAAQ,MAAM,OAAO,CAAC;CAC/F,OAAO,iBAAiB,QAAQ;EAAC,GAAG;EAAS,GAAG;EAAQ,GAAG;CAAI,GAAG,CAAC;AACrE;;AAGA,SAAgB,iBAAiB,MAAsB;CACrD,MAAM,OAAQ,KAAK,MAAM,QAAQ,CAAC;CAClC,MAAM,WAAW,OAAO,KAAK,aAAa,WAAW,KAAK,SAAS,KAAK,IAAI;CAC5E,MAAM,MAAM,SAAS,YAAY,GAAG;CAEpC,OAAO,GADM,WAAY,MAAM,IAAI,SAAS,MAAM,GAAG,GAAG,IAAI,WAAY,KAAK,MAAM,CAAC,CAAC,CAAC,YAAY,KAAK,KAAK,WAC7F,KAAK,QAAQ,kBAAkB,GAAG;AACnD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/features/composites/meta-display.ts
|
|
2
|
+
/** The stored value of a meta field as editable text (`''` when unset). */
|
|
3
|
+
function metaText(row, field) {
|
|
4
|
+
const value = row.meta[field.key];
|
|
5
|
+
return typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
6
|
+
}
|
|
7
|
+
/** Icon and color class of the known status values; unknown values read as neutral. */
|
|
8
|
+
const STATUS_STYLE = {
|
|
9
|
+
open: {
|
|
10
|
+
icon: "i-lucide-circle",
|
|
11
|
+
color: "text-[var(--sk-muted)]"
|
|
12
|
+
},
|
|
13
|
+
doing: {
|
|
14
|
+
icon: "i-lucide-circle-dot",
|
|
15
|
+
color: "text-[var(--sk-info)]"
|
|
16
|
+
},
|
|
17
|
+
done: {
|
|
18
|
+
icon: "i-lucide-circle-check",
|
|
19
|
+
color: "text-[var(--sk-success)]"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
const STATUS_UNSET = {
|
|
23
|
+
icon: "i-lucide-circle-dashed",
|
|
24
|
+
color: "text-[var(--sk-fg-dimmed)]"
|
|
25
|
+
};
|
|
26
|
+
const STATUS_OTHER = {
|
|
27
|
+
icon: "i-lucide-circle",
|
|
28
|
+
color: "text-[var(--sk-muted)]"
|
|
29
|
+
};
|
|
30
|
+
const statusStyle = (value) => STATUS_STYLE[value] ?? (value ? STATUS_OTHER : STATUS_UNSET);
|
|
31
|
+
/** The row's `status` select field with its current value, `null` for a kind without one; `t` words an unset status. */
|
|
32
|
+
function rowStatus(row, t) {
|
|
33
|
+
const field = row.fields.find((candidate) => candidate.key === "status" && candidate.type === "select");
|
|
34
|
+
if (!field) return null;
|
|
35
|
+
const value = metaText(row, field);
|
|
36
|
+
return {
|
|
37
|
+
field,
|
|
38
|
+
value,
|
|
39
|
+
label: field.options?.find((option) => option.value === value)?.label ?? (value || t("composites.status.none")),
|
|
40
|
+
...statusStyle(value)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { metaText, rowStatus, statusStyle };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=meta-display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta-display.js","names":[],"sources":["../../../src/features/composites/meta-display.ts"],"sourcesContent":["import type { Translate } from '../../i18n'\nimport type { CompositeMetaField } from './kinds'\nimport type { CompositeRow } from './rows'\n\n/** The stored value of a meta field as editable text (`''` when unset). */\nexport function metaText(row: Pick<CompositeRow, 'meta'>, field: Pick<CompositeMetaField, 'key'>): string {\n const value = row.meta[field.key]\n return typeof value === 'string' || typeof value === 'number' ? String(value) : ''\n}\n\n/** Icon and color class of the known status values; unknown values read as neutral. */\nconst STATUS_STYLE: Record<string, { icon: string, color: string }> = {\n open: { icon: 'i-lucide-circle', color: 'text-[var(--sk-muted)]' },\n doing: { icon: 'i-lucide-circle-dot', color: 'text-[var(--sk-info)]' },\n done: { icon: 'i-lucide-circle-check', color: 'text-[var(--sk-success)]' },\n}\nconst STATUS_UNSET = { icon: 'i-lucide-circle-dashed', color: 'text-[var(--sk-fg-dimmed)]' }\nconst STATUS_OTHER = { icon: 'i-lucide-circle', color: 'text-[var(--sk-muted)]' }\n\nexport const statusStyle = (value: string) => STATUS_STYLE[value] ?? (value ? STATUS_OTHER : STATUS_UNSET)\n\n/** A row's `status` field with its current value. */\nexport interface RowStatus {\n field: CompositeMetaField\n value: string\n label: string\n icon: string\n color: string\n}\n\n/** The row's `status` select field with its current value, `null` for a kind without one; `t` words an unset status. */\nexport function rowStatus(row: CompositeRow, t: Translate): RowStatus | null {\n const field = row.fields.find(candidate => candidate.key === 'status' && candidate.type === 'select')\n if (!field) return null\n const value = metaText(row, field)\n return { field, value, label: field.options?.find(option => option.value === value)?.label ?? (value || t('composites.status.none')), ...statusStyle(value) }\n}\n"],"mappings":";;AAKA,SAAgB,SAAS,KAAiC,OAAgD;CACxG,MAAM,QAAQ,IAAI,KAAK,MAAM;CAC7B,OAAO,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW,OAAO,KAAK,IAAI;AAClF;;AAGA,MAAM,eAAgE;CACpE,MAAM;EAAE,MAAM;EAAmB,OAAO;CAAyB;CACjE,OAAO;EAAE,MAAM;EAAuB,OAAO;CAAwB;CACrE,MAAM;EAAE,MAAM;EAAyB,OAAO;CAA2B;AAC3E;AACA,MAAM,eAAe;CAAE,MAAM;CAA0B,OAAO;AAA6B;AAC3F,MAAM,eAAe;CAAE,MAAM;CAAmB,OAAO;AAAyB;AAEhF,MAAa,eAAe,UAAkB,aAAa,WAAW,QAAQ,eAAe;;AAY7F,SAAgB,UAAU,KAAmB,GAAgC;CAC3E,MAAM,QAAQ,IAAI,OAAO,MAAK,cAAa,UAAU,QAAQ,YAAY,UAAU,SAAS,QAAQ;CACpG,IAAI,CAAC,OAAO,OAAO;CACnB,MAAM,QAAQ,SAAS,KAAK,KAAK;CACjC,OAAO;EAAE;EAAO;EAAO,OAAO,MAAM,SAAS,MAAK,WAAU,OAAO,UAAU,KAAK,CAAC,EAAE,UAAU,SAAS,EAAE,wBAAwB;EAAI,GAAG,YAAY,KAAK;CAAE;AAC9J"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CompositeOptions, CompositeStorage } from "./nodes.js";
|
|
2
|
+
import { NodeViewRenderer } from "@tiptap/core";
|
|
3
|
+
//#region src/features/composites/node-views.d.ts
|
|
4
|
+
/** The node view renderer a framework binding supplies for the composite block. */
|
|
5
|
+
export interface CompositeNodeViews {
|
|
6
|
+
composite: NodeViewRenderer;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The composite node with the node view of a framework binding, and the tags row (data: hidden, `CompositeChrome`
|
|
10
|
+
* shows and edits it, so it needs no node view). Configure the kinds with `Composite.configure({ kinds: [...defaultCompositeKinds(t), myKind] })`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function compositeNodes(nodeViews: CompositeNodeViews): {
|
|
13
|
+
Composite: import("@tiptap/core").Node<CompositeOptions, CompositeStorage>;
|
|
14
|
+
CompositeTags: import("@tiptap/core").Node<any, any>;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=node-views.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompositeNode, CompositeTagsNode } from "./nodes.js";
|
|
2
|
+
//#region src/features/composites/node-views.ts
|
|
3
|
+
/**
|
|
4
|
+
* The composite node with the node view of a framework binding, and the tags row (data: hidden, `CompositeChrome`
|
|
5
|
+
* shows and edits it, so it needs no node view). Configure the kinds with `Composite.configure({ kinds: [...defaultCompositeKinds(t), myKind] })`.
|
|
6
|
+
*/
|
|
7
|
+
function compositeNodes(nodeViews) {
|
|
8
|
+
return {
|
|
9
|
+
Composite: CompositeNode.extend({ addNodeView() {
|
|
10
|
+
return nodeViews.composite;
|
|
11
|
+
} }),
|
|
12
|
+
CompositeTags: CompositeTagsNode
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { compositeNodes };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=node-views.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-views.js","names":[],"sources":["../../../src/features/composites/node-views.ts"],"sourcesContent":["import type { NodeViewRenderer } from '@tiptap/core'\nimport { CompositeNode, CompositeTagsNode } from './nodes'\n\n/** The node view renderer a framework binding supplies for the composite block. */\nexport interface CompositeNodeViews {\n composite: NodeViewRenderer\n}\n\n/**\n * The composite node with the node view of a framework binding, and the tags row (data: hidden, `CompositeChrome`\n * shows and edits it, so it needs no node view). Configure the kinds with `Composite.configure({ kinds: [...defaultCompositeKinds(t), myKind] })`.\n */\nexport function compositeNodes(nodeViews: CompositeNodeViews) {\n return {\n // Explicit return type: the node views import `compositeKindsOf`, so inference would otherwise be circular.\n Composite: CompositeNode.extend({\n addNodeView(): NodeViewRenderer {\n return nodeViews.composite\n },\n }),\n CompositeTags: CompositeTagsNode,\n }\n}\n"],"mappings":";;;;;;AAYA,SAAgB,eAAe,WAA+B;CAC5D,OAAO;EAEL,WAAW,cAAc,OAAO,EAC9B,cAAgC;GAC9B,OAAO,UAAU;EACnB,EACF,CAAC;EACD,eAAe;CACjB;AACF"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { HeadingConversionScope } from "../../settings/values.js";
|
|
2
|
+
import "../../settings/index.js";
|
|
3
|
+
import { CompositeKind } from "./kinds.js";
|
|
4
|
+
import { Editor, JSONContent, Node } from "@tiptap/core";
|
|
5
|
+
//#region src/features/composites/nodes.d.ts
|
|
6
|
+
/** Options of the `composite` node: the kinds its `kind` attribute selects from. */
|
|
7
|
+
export interface CompositeOptions {
|
|
8
|
+
kinds: readonly CompositeKind[];
|
|
9
|
+
}
|
|
10
|
+
/** Storage of the `composite` node: mirrors `options.kinds` for code that only has the editor. */
|
|
11
|
+
export interface CompositeStorage {
|
|
12
|
+
kinds: readonly CompositeKind[];
|
|
13
|
+
}
|
|
14
|
+
declare module '@tiptap/core' {
|
|
15
|
+
interface Commands<ReturnType> {
|
|
16
|
+
composite: {
|
|
17
|
+
/** Insert an empty composite of `kind` after the caret's block (replacing an empty paragraph; at the body start from the composite chrome), caret in its title. */
|
|
18
|
+
insertComposite: (kind?: string) => ReturnType;
|
|
19
|
+
/** Wrap the selected blocks into a new composite of `kind`, caret in its title. */
|
|
20
|
+
wrapInComposite: (kind?: string) => ReturnType;
|
|
21
|
+
/** Leave the caret's innermost composite: new paragraph right after it (a trailing empty body paragraph is moved there). */
|
|
22
|
+
exitComposite: () => ReturnType;
|
|
23
|
+
/** Group headings in the selected blocks (or, without a selection, in `scope`) into composites of `kind`; `recursive` nests every heading level. False when the range holds no heading. */
|
|
24
|
+
convertHeadingsToComposites: (options: {
|
|
25
|
+
recursive: boolean;
|
|
26
|
+
scope: HeadingConversionScope;
|
|
27
|
+
kind?: string;
|
|
28
|
+
}) => ReturnType;
|
|
29
|
+
/** Turn composites among the selected blocks (or, without a selection, in `scope`) into headings of their nesting level, with description, tags and meta as text lines; `recursive` flattens every level. False when the range holds no composite. */
|
|
30
|
+
convertCompositesToHeadings: (options: {
|
|
31
|
+
recursive: boolean;
|
|
32
|
+
scope: HeadingConversionScope;
|
|
33
|
+
}) => ReturnType;
|
|
34
|
+
/** Switch the composite at `pos` (default: the caret's innermost composite) to `kind`; `meta` keeps only the target kind's fields. */
|
|
35
|
+
setCompositeKind: (kind: string, pos?: number) => ReturnType;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
interface Storage {
|
|
39
|
+
composite: CompositeStorage;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/** Title, description and tags: the fixed children in front of a composite's body. */
|
|
43
|
+
export declare const COMPOSITE_CHROME_COUNT = 3;
|
|
44
|
+
/**
|
|
45
|
+
* Composite kinds `editor` was configured with. An editor without the composite node gets the built-in kinds in the
|
|
46
|
+
* language of its surface (the default language without one).
|
|
47
|
+
*/
|
|
48
|
+
export declare function compositeKindsOf(editor: Editor): readonly CompositeKind[];
|
|
49
|
+
/** JSON of a fresh composite of `kind` (empty title/description/tags, hidden meta) with `body`. */
|
|
50
|
+
export declare function compositeJSON(kind: string, body?: JSONContent[]): JSONContent;
|
|
51
|
+
export declare const CompositeNode: Node<CompositeOptions, CompositeStorage>;
|
|
52
|
+
export declare const CompositeTitleNode: Node<any, any>;
|
|
53
|
+
export declare const CompositeDescriptionNode: Node<any, any>;
|
|
54
|
+
export declare const CompositeTagsNode: Node<any, any>;
|
|
55
|
+
//#endregion
|
|
56
|
+
//# sourceMappingURL=nodes.d.ts.map
|