@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,13 @@
|
|
|
1
|
+
import { CompositeRow } from "../rows.js";
|
|
2
|
+
import { Editor } from "@tiptap/core";
|
|
3
|
+
//#region src/features/composites/components/CompositeTagsEditor.vue.d.ts
|
|
4
|
+
/** Tags of one Baustein as an input menu with suggestions from the metadata registry, writing through `setCompositeTags`. */
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
row: CompositeRow;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { _default as default };
|
|
13
|
+
//# sourceMappingURL=CompositeTagsEditor.vue.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { compositeKind } from "../kinds.js";
|
|
2
|
+
import { compositeKindsOf } from "../nodes.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
4
|
+
import { NodeViewContent, NodeViewWrapper, nodeViewProps } from "@tiptap/vue-3";
|
|
5
|
+
//#region src/features/composites/components/CompositeView.vue
|
|
6
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
7
|
+
__name: "CompositeView",
|
|
8
|
+
props: nodeViewProps,
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const kind = computed(() => compositeKind(compositeKindsOf(props.editor), String(props.node.attrs.kind)));
|
|
12
|
+
/** `text` as a CSS string literal (for `content:`). */
|
|
13
|
+
const cssString = (text) => `"${text.replace(/["\\]/g, "\\$&").replace(/\n/g, "\\a ")}"`;
|
|
14
|
+
const placeholderVars = computed(() => ({ "--composite-title-placeholder": cssString(kind.value.titlePlaceholder) }));
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createBlock(unref(NodeViewWrapper), {
|
|
17
|
+
as: "section",
|
|
18
|
+
class: normalizeClass(["composite", { "is-selected rounded-md ring-1 ring-[var(--sk-primary)]": _ctx.selected }]),
|
|
19
|
+
"data-type": "composite",
|
|
20
|
+
"data-kind": _ctx.node.attrs.kind,
|
|
21
|
+
"data-id": _ctx.node.attrs.id || void 0,
|
|
22
|
+
style: normalizeStyle(placeholderVars.value)
|
|
23
|
+
}, {
|
|
24
|
+
default: withCtx(() => [
|
|
25
|
+
createCommentVNode(" Anchor of the kind icon on the left border: it only takes the icon's place and size. The composite chrome overlay\n measures it and draws the icon as the button that opens the details popover and drags the composite. "),
|
|
26
|
+
_cache[0] || (_cache[0] = createElementVNode("span", {
|
|
27
|
+
class: "composite__toggle",
|
|
28
|
+
contenteditable: "false",
|
|
29
|
+
"aria-hidden": "true"
|
|
30
|
+
}, null, -1)),
|
|
31
|
+
createVNode(unref(NodeViewContent), { class: "composite__content" })
|
|
32
|
+
]),
|
|
33
|
+
_: 1
|
|
34
|
+
}, 8, [
|
|
35
|
+
"class",
|
|
36
|
+
"data-kind",
|
|
37
|
+
"data-id",
|
|
38
|
+
"style"
|
|
39
|
+
]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { _sfc_main as default };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=CompositeView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeView.js","names":["selected","node","_openBlock","_createBlock","_unref","_normalizeClass","_normalizeStyle","_withCtx","_createCommentVNode","_createElementVNode","_createVNode"],"sources":["../../../../src/features/composites/components/CompositeView.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { NodeViewContent, NodeViewWrapper, nodeViewProps } from '@tiptap/vue-3'\nimport { computed } from 'vue'\nimport { compositeKind } from '../kinds'\nimport { compositeKindsOf } from '../nodes'\n\nconst props = defineProps(nodeViewProps)\n\nconst kind = computed(() => compositeKind(compositeKindsOf(props.editor), String(props.node.attrs.kind)))\n\n/** `text` as a CSS string literal (for `content:`). */\nconst cssString = (text: string) => `\"${text.replace(/[\"\\\\]/g, '\\\\$&').replace(/\\n/g, '\\\\a ')}\"`\n// Placeholder of the empty title (composites.css `content: var(…)`); a nested composite sets its own.\nconst placeholderVars = computed(() => ({\n '--composite-title-placeholder': cssString(kind.value.titlePlaceholder),\n}))\n</script>\n\n<template>\n <NodeViewWrapper\n as=\"section\"\n :class=\"['composite', { 'is-selected rounded-md ring-1 ring-[var(--sk-primary)]': selected }]\"\n data-type=\"composite\"\n :data-kind=\"node.attrs.kind\"\n :data-id=\"node.attrs.id || undefined\"\n :style=\"placeholderVars\"\n >\n <!-- Anchor of the kind icon on the left border: it only takes the icon's place and size. The composite chrome overlay\n measures it and draws the icon as the button that opens the details popover and drags the composite. -->\n <span class=\"composite__toggle\" contenteditable=\"false\" aria-hidden=\"true\" />\n <NodeViewContent class=\"composite__content\" />\n </NodeViewWrapper>\n</template>\n"],"mappings":";;;;;;;;;EAMA,MAAM,QAAQ;EAEd,MAAM,OAAO,eAAe,cAAc,iBAAiB,MAAM,MAAM,GAAG,OAAO,MAAM,KAAK,MAAM,IAAI,CAAC,CAAC;;EAGxG,MAAM,aAAa,SAAiB,IAAI,KAAK,QAAQ,UAAU,MAAM,CAAC,CAAC,QAAQ,OAAO,MAAM,EAAE;EAE9F,MAAM,kBAAkB,gBAAgB,EACtC,iCAAiC,UAAU,KAAK,MAAM,gBAAgB,EACxE,EAAE;;GAIA,OAAAE,UAAA,GAAAC,YAYkBC,MAAA,eAAA,GAAA;IAXhB,IAAG;IACF,OAAKC,eAAA,CAAA,aAAA,EAAA,0DAA4EL,KAAAA,SAAQ,CAAA,CAAA;IAC1F,aAAU;IACT,aAAWC,KAAAA,KAAK,MAAM;IACtB,WAASA,KAAAA,KAAK,MAAM,MAAM,KAAA;IAC1B,OAAKK,eAAE,gBAAA,KAAe;;IAEvB,SAAAC,cAC6G;KAD7GC,mBAAA,oOAAA;KAEA,OAAA,OAAA,OAAA,KAAAC,mBAA6E,QAAA;MAAvE,OAAM;MAAoB,iBAAgB;MAAQ,eAAY;;KACpEC,YAA8CN,MAAA,eAAA,GAAA,EAA7B,OAAM,qBAAoB,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//#region src/features/composites/components/CompositeView.vue.d.ts
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
editor: {
|
|
4
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
node: {
|
|
8
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
decorations: {
|
|
12
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
selected: {
|
|
16
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
extension: {
|
|
20
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
getPos: {
|
|
24
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
updateAttributes: {
|
|
28
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
deleteNode: {
|
|
32
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
view: {
|
|
36
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
innerDecorations: {
|
|
40
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
HTMLAttributes: {
|
|
44
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
|
+
editor: {
|
|
49
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
node: {
|
|
53
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["node"]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
decorations: {
|
|
57
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["decorations"]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
selected: {
|
|
61
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["selected"]>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
extension: {
|
|
65
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["extension"]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
getPos: {
|
|
69
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["getPos"]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
updateAttributes: {
|
|
73
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["updateAttributes"]>;
|
|
74
|
+
required: true;
|
|
75
|
+
};
|
|
76
|
+
deleteNode: {
|
|
77
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["deleteNode"]>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
view: {
|
|
81
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["view"]>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
innerDecorations: {
|
|
85
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["innerDecorations"]>;
|
|
86
|
+
required: true;
|
|
87
|
+
};
|
|
88
|
+
HTMLAttributes: {
|
|
89
|
+
type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
|
|
90
|
+
required: true;
|
|
91
|
+
};
|
|
92
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
|
+
declare const _default: typeof __VLS_export;
|
|
94
|
+
//#endregion
|
|
95
|
+
export { _default as default };
|
|
96
|
+
//# sourceMappingURL=CompositeView.vue.d.ts.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { DRAG_HANDLE_VISIBILITIES, HEADING_CONVERSION_SCOPES, KIND_ICON_VISIBILITIES, STRUCTURE_MODES, TREE_ROOTS } from "../../../settings/values.js";
|
|
2
|
+
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
3
|
+
import { useEditorSettings } from "../../../vue/settings.js";
|
|
4
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
5
|
+
import { STRUCTURE_MODE_KEYS } from "../structure-mode.js";
|
|
6
|
+
import { TREE_ROOT_KEYS } from "../tree-root.js";
|
|
7
|
+
import { DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, KIND_ICON_KEYS, optionItems } from "../editing-settings-keys.js";
|
|
8
|
+
import _sfc_main$1 from "../../../vue/components/SettingsSection.js";
|
|
9
|
+
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, unref, withCtx } from "vue";
|
|
10
|
+
//#region src/features/composites/components/SettingsEditingTab.vue
|
|
11
|
+
const _hoisted_1 = { class: "flex flex-col gap-8" };
|
|
12
|
+
const _hoisted_2 = { class: "py-3" };
|
|
13
|
+
const _hoisted_3 = { class: "py-3" };
|
|
14
|
+
const _hoisted_4 = { class: "py-3" };
|
|
15
|
+
const _hoisted_5 = { class: "py-3" };
|
|
16
|
+
const _hoisted_6 = { class: "py-3" };
|
|
17
|
+
/** „Bearbeiten“: Gliederung (structure mode, conversion scope), Bausteine defaults and the visibility of the block handles. */
|
|
18
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
19
|
+
__name: "SettingsEditingTab",
|
|
20
|
+
props: { kinds: {} },
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const { FormField: UFormField, RadioGroup: URadioGroup, Select: USelect } = useUiKit();
|
|
24
|
+
const { t } = useEditorI18n();
|
|
25
|
+
const { settings } = useEditorSettings();
|
|
26
|
+
const scopeItems = computed(() => optionItems(HEADING_CONVERSION_SCOPES, HEADING_SCOPE_KEYS, t));
|
|
27
|
+
const structureItems = computed(() => optionItems(STRUCTURE_MODES, STRUCTURE_MODE_KEYS, t));
|
|
28
|
+
const treeRootItems = computed(() => optionItems(TREE_ROOTS, TREE_ROOT_KEYS, t));
|
|
29
|
+
const kindIconItems = computed(() => optionItems(KIND_ICON_VISIBILITIES, KIND_ICON_KEYS, t));
|
|
30
|
+
const dragHandleItems = computed(() => optionItems(DRAG_HANDLE_VISIBILITIES, DRAG_HANDLE_KEYS, t));
|
|
31
|
+
const kindItems = computed(() => props.kinds.map((kind) => ({
|
|
32
|
+
label: kind.label,
|
|
33
|
+
icon: kind.icon,
|
|
34
|
+
value: kind.id
|
|
35
|
+
})));
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
38
|
+
createVNode(_sfc_main$1, { title: unref(t)("composites.settings.structure.title") }, {
|
|
39
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [createVNode(unref(URadioGroup), {
|
|
40
|
+
modelValue: unref(settings).blocks.structure,
|
|
41
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(settings).blocks.structure = $event),
|
|
42
|
+
legend: unref(t)("composites.settings.structure.legend"),
|
|
43
|
+
items: structureItems.value
|
|
44
|
+
}, null, 8, [
|
|
45
|
+
"modelValue",
|
|
46
|
+
"legend",
|
|
47
|
+
"items"
|
|
48
|
+
])]), createElementVNode("div", _hoisted_3, [createVNode(unref(URadioGroup), {
|
|
49
|
+
modelValue: unref(settings).editing.headingConversionScope,
|
|
50
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(settings).editing.headingConversionScope = $event),
|
|
51
|
+
legend: unref(t)("composites.settings.scope.legend"),
|
|
52
|
+
items: scopeItems.value
|
|
53
|
+
}, null, 8, [
|
|
54
|
+
"modelValue",
|
|
55
|
+
"legend",
|
|
56
|
+
"items"
|
|
57
|
+
])])]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["title"]),
|
|
60
|
+
createVNode(_sfc_main$1, { title: unref(t)("composites.settings.sidebar.title") }, {
|
|
61
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(unref(URadioGroup), {
|
|
62
|
+
modelValue: unref(settings).blocks.treeRoot,
|
|
63
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(settings).blocks.treeRoot = $event),
|
|
64
|
+
legend: unref(t)("composites.settings.treeRoot.legend"),
|
|
65
|
+
items: treeRootItems.value
|
|
66
|
+
}, null, 8, [
|
|
67
|
+
"modelValue",
|
|
68
|
+
"legend",
|
|
69
|
+
"items"
|
|
70
|
+
])])]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["title"]),
|
|
73
|
+
createVNode(_sfc_main$1, { title: unref(t)("composites.settings.composites.title") }, {
|
|
74
|
+
default: withCtx(() => [
|
|
75
|
+
createVNode(unref(UFormField), {
|
|
76
|
+
orientation: "horizontal",
|
|
77
|
+
class: "py-3",
|
|
78
|
+
label: unref(t)("composites.settings.defaultKind.label"),
|
|
79
|
+
description: unref(t)("composites.settings.defaultKind.description")
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [createVNode(unref(USelect), {
|
|
82
|
+
modelValue: unref(settings).blocks.defaultKind,
|
|
83
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => unref(settings).blocks.defaultKind = $event),
|
|
84
|
+
items: kindItems.value,
|
|
85
|
+
class: "w-64"
|
|
86
|
+
}, null, 8, ["modelValue", "items"])]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 8, ["label", "description"]),
|
|
89
|
+
createElementVNode("div", _hoisted_5, [createVNode(unref(URadioGroup), {
|
|
90
|
+
modelValue: unref(settings).blocks.kindIcon,
|
|
91
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => unref(settings).blocks.kindIcon = $event),
|
|
92
|
+
legend: unref(t)("composites.settings.kindIcon.legend"),
|
|
93
|
+
items: kindIconItems.value
|
|
94
|
+
}, null, 8, [
|
|
95
|
+
"modelValue",
|
|
96
|
+
"legend",
|
|
97
|
+
"items"
|
|
98
|
+
])]),
|
|
99
|
+
createElementVNode("div", _hoisted_6, [createVNode(unref(URadioGroup), {
|
|
100
|
+
modelValue: unref(settings).blocks.dragHandle,
|
|
101
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(settings).blocks.dragHandle = $event),
|
|
102
|
+
legend: unref(t)("composites.settings.dragHandle.legend"),
|
|
103
|
+
items: dragHandleItems.value
|
|
104
|
+
}, null, 8, [
|
|
105
|
+
"modelValue",
|
|
106
|
+
"legend",
|
|
107
|
+
"items"
|
|
108
|
+
])])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["title"])
|
|
112
|
+
]);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
//#endregion
|
|
117
|
+
export { _sfc_main as default };
|
|
118
|
+
|
|
119
|
+
//# sourceMappingURL=SettingsEditingTab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SettingsEditingTab.js","names":["_openBlock","_createElementBlock","_createVNode","SettingsSection","_unref","_withCtx","_createElementVNode"],"sources":["../../../../src/features/composites/components/SettingsEditingTab.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport SettingsSection from '../../../vue/components/SettingsSection.vue'\nimport { useUiKit } from '../../../vue/kit/use-ui-kit'\nimport { useEditorSettings } from '../../../vue/settings'\nimport { useEditorI18n } from '../../../vue/use-editor-i18n'\nimport { DRAG_HANDLE_VISIBILITIES, HEADING_CONVERSION_SCOPES, KIND_ICON_VISIBILITIES, STRUCTURE_MODES, TREE_ROOTS } from '../../../settings'\nimport { DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, KIND_ICON_KEYS, optionItems } from '../editing-settings-keys'\nimport type { CompositeKind } from '../kinds'\nimport { STRUCTURE_MODE_KEYS } from '../structure-mode'\nimport { TREE_ROOT_KEYS } from '../tree-root'\n\n/** „Bearbeiten“: Gliederung (structure mode, conversion scope), Bausteine defaults and the visibility of the block handles. */\nconst props = defineProps<{ kinds: readonly CompositeKind[] }>()\n\nconst { FormField: UFormField, RadioGroup: URadioGroup, Select: USelect } = useUiKit()\nconst { t } = useEditorI18n()\n\nconst { settings } = useEditorSettings()\n\nconst scopeItems = computed(() => optionItems(HEADING_CONVERSION_SCOPES, HEADING_SCOPE_KEYS, t))\nconst structureItems = computed(() => optionItems(STRUCTURE_MODES, STRUCTURE_MODE_KEYS, t))\nconst treeRootItems = computed(() => optionItems(TREE_ROOTS, TREE_ROOT_KEYS, t))\nconst kindIconItems = computed(() => optionItems(KIND_ICON_VISIBILITIES, KIND_ICON_KEYS, t))\nconst dragHandleItems = computed(() => optionItems(DRAG_HANDLE_VISIBILITIES, DRAG_HANDLE_KEYS, t))\n\nconst kindItems = computed(() => props.kinds.map(kind => ({ label: kind.label, icon: kind.icon, value: kind.id })))\n</script>\n\n<template>\n <div class=\"flex flex-col gap-8\">\n <SettingsSection :title=\"t('composites.settings.structure.title')\">\n <div class=\"py-3\">\n <URadioGroup v-model=\"settings.blocks.structure\" :legend=\"t('composites.settings.structure.legend')\" :items=\"structureItems\" />\n </div>\n <div class=\"py-3\">\n <URadioGroup\n v-model=\"settings.editing.headingConversionScope\"\n :legend=\"t('composites.settings.scope.legend')\"\n :items=\"scopeItems\"\n />\n </div>\n </SettingsSection>\n\n <SettingsSection :title=\"t('composites.settings.sidebar.title')\">\n <div class=\"py-3\">\n <URadioGroup v-model=\"settings.blocks.treeRoot\" :legend=\"t('composites.settings.treeRoot.legend')\" :items=\"treeRootItems\" />\n </div>\n </SettingsSection>\n\n <SettingsSection :title=\"t('composites.settings.composites.title')\">\n <UFormField\n orientation=\"horizontal\"\n class=\"py-3\"\n :label=\"t('composites.settings.defaultKind.label')\"\n :description=\"t('composites.settings.defaultKind.description')\"\n >\n <USelect v-model=\"settings.blocks.defaultKind\" :items=\"kindItems\" class=\"w-64\" />\n </UFormField>\n <div class=\"py-3\">\n <URadioGroup v-model=\"settings.blocks.kindIcon\" :legend=\"t('composites.settings.kindIcon.legend')\" :items=\"kindIconItems\" />\n </div>\n <div class=\"py-3\">\n <URadioGroup v-model=\"settings.blocks.dragHandle\" :legend=\"t('composites.settings.dragHandle.legend')\" :items=\"dragHandleItems\" />\n </div>\n </SettingsSection>\n </div>\n</template>\n"],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CompositeKind } from "../kinds.js";
|
|
2
|
+
//#region src/features/composites/components/SettingsEditingTab.vue.d.ts
|
|
3
|
+
/** „Bearbeiten“: Gliederung (structure mode, conversion scope), Bausteine defaults and the visibility of the block handles. */
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
kinds: readonly CompositeKind[];
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { _default as default };
|
|
11
|
+
//# sourceMappingURL=SettingsEditingTab.vue.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ConvertTarget } from "../../core/convert.js";
|
|
2
|
+
import { ConversionProvider } from "../../core/feature.js";
|
|
3
|
+
import { CompositeKind } from "./kinds.js";
|
|
4
|
+
import { Node, Schema } from "@tiptap/pm/model";
|
|
5
|
+
//#region src/features/composites/convert.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Blocks `nodes` (siblings) converted to `target`. A composite takes the first block as title and the rest as body;
|
|
8
|
+
* composites unwrap into the core targets (title first, description as italic paragraph, tags as a paragraph of tag
|
|
9
|
+
* chips, meta as a `Label: Wert` line); into a heading, nested composites become sub-headings. Null when nothing
|
|
10
|
+
* changes, the target is not a composite or core target or a node is not a textblock, list, quote or composite.
|
|
11
|
+
* Never looks outside `nodes`: a heading's group is the caller's business.
|
|
12
|
+
*/
|
|
13
|
+
export declare function convertCompositeBlocks(schema: Schema, nodes: Node[], target: ConvertTarget, kinds: readonly CompositeKind[]): Node[] | null;
|
|
14
|
+
/**
|
|
15
|
+
* The composite feature's providers, in menu order. The first claims composites as source blocks (`handlesSource`): it
|
|
16
|
+
* offers the core targets for them and executes every conversion of a composite, including kind changes. The second
|
|
17
|
+
* owns the `composite:<kind>` targets: blocks and kind switches. `kinds` are the host's configured kinds; without them the
|
|
18
|
+
* built-in kinds apply, and their labels (the menu entries) follow the language of the `t` the menu renders with. What
|
|
19
|
+
* a conversion writes into the document (the `Label: Wert` line of a composite's meta) uses the built-in kinds in the
|
|
20
|
+
* default language, since `convert` runs without a translator.
|
|
21
|
+
*/
|
|
22
|
+
export declare function compositeConversions(kinds?: readonly CompositeKind[]): readonly ConversionProvider[];
|
|
23
|
+
//#endregion
|
|
24
|
+
//# sourceMappingURL=convert.d.ts.map
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { CORE_TARGET_IDS, childrenOf, createConverter, finishConversion, isCoreTarget, isCurrentTarget, isListNode, isQuoteNode, isTextblockNode, parseCoreTarget, textblockSpecOf } from "../../core/convert.js";
|
|
2
|
+
import { compositeKind, defaultCompositeKinds, fallbackCompositeKinds } from "./kinds.js";
|
|
3
|
+
import { compositeChromeBlocks, flattenCompositesToHeadings, headingGroupRange } from "./heading-composites.js";
|
|
4
|
+
import "./nodes.js";
|
|
5
|
+
import { Fragment } from "@tiptap/pm/model";
|
|
6
|
+
//#region src/features/composites/convert.ts
|
|
7
|
+
const COMPOSITE = "composite";
|
|
8
|
+
const TITLE = "compositeTitle";
|
|
9
|
+
const COMPOSITE_PREFIX = "composite:";
|
|
10
|
+
const isComposite = (node) => node.type.name === COMPOSITE;
|
|
11
|
+
/** The conversion targets of the core provider, offered for composites (they unwrap into them). */
|
|
12
|
+
const UNWRAP_TARGETS = CORE_TARGET_IDS.flatMap((id) => parseCoreTarget(id) ?? []);
|
|
13
|
+
/**
|
|
14
|
+
* Blocks `nodes` (siblings) converted to `target`. A composite takes the first block as title and the rest as body;
|
|
15
|
+
* composites unwrap into the core targets (title first, description as italic paragraph, tags as a paragraph of tag
|
|
16
|
+
* chips, meta as a `Label: Wert` line); into a heading, nested composites become sub-headings. Null when nothing
|
|
17
|
+
* changes, the target is not a composite or core target or a node is not a textblock, list, quote or composite.
|
|
18
|
+
* Never looks outside `nodes`: a heading's group is the caller's business.
|
|
19
|
+
*/
|
|
20
|
+
function convertCompositeBlocks(schema, nodes, target, kinds) {
|
|
21
|
+
const first = nodes[0];
|
|
22
|
+
if (!first || !schema.nodes[target.type]) return null;
|
|
23
|
+
if (!nodes.every((node) => isTextblockNode(node) || isListNode(node) || isQuoteNode(node) || isComposite(node))) return null;
|
|
24
|
+
if (nodes.length === 1 && isCurrentTarget(first, target)) return null;
|
|
25
|
+
const n = schema.nodes;
|
|
26
|
+
const paragraph = n.paragraph;
|
|
27
|
+
/** A composite as plain blocks: title paragraph (an empty one only with `keepEmptyTitle`), description, tags, meta, body. */
|
|
28
|
+
function unwrapComposite(composite, keepEmptyTitle, headingLevel) {
|
|
29
|
+
const title = composite.child(0);
|
|
30
|
+
const blocks = [];
|
|
31
|
+
if (keepEmptyTitle || title.content.size) blocks.push(paragraph.create(null, title.content));
|
|
32
|
+
blocks.push(...compositeChromeBlocks(schema, composite, kinds));
|
|
33
|
+
let body = childrenOf(composite, 3);
|
|
34
|
+
if (headingLevel !== void 0) body = flattenCompositesToHeadings(schema, body, true, headingLevel + 1, kinds) ?? body;
|
|
35
|
+
return [...blocks, ...body];
|
|
36
|
+
}
|
|
37
|
+
const converter = createConverter(schema, {
|
|
38
|
+
is: isComposite,
|
|
39
|
+
unwrap: unwrapComposite
|
|
40
|
+
});
|
|
41
|
+
function toComposite(head, rest, kind) {
|
|
42
|
+
if (isComposite(head)) {
|
|
43
|
+
const keys = new Set(compositeKind(kinds, kind).fields.map((field) => field.key));
|
|
44
|
+
const meta = Object.fromEntries(Object.entries(head.attrs.meta).filter(([key]) => keys.has(key)));
|
|
45
|
+
return head.type.create({
|
|
46
|
+
...head.attrs,
|
|
47
|
+
kind,
|
|
48
|
+
meta
|
|
49
|
+
}, [...childrenOf(head), ...rest]);
|
|
50
|
+
}
|
|
51
|
+
let title = Fragment.empty;
|
|
52
|
+
let body = [];
|
|
53
|
+
if (isTextblockNode(head)) title = converter.inline(head, TITLE);
|
|
54
|
+
else if (isQuoteNode(head)) body = childrenOf(head);
|
|
55
|
+
else {
|
|
56
|
+
const [item, ...more] = childrenOf(head);
|
|
57
|
+
const [itemHead, ...itemRest] = item ? childrenOf(item) : [];
|
|
58
|
+
if (itemHead && isTextblockNode(itemHead)) title = converter.inline(itemHead, TITLE);
|
|
59
|
+
else if (itemHead) itemRest.unshift(itemHead);
|
|
60
|
+
body = [...itemRest, ...more.length ? [head.type.create(null, more)] : []];
|
|
61
|
+
}
|
|
62
|
+
body = [...body, ...rest];
|
|
63
|
+
if (!body.length) body = [paragraph.create()];
|
|
64
|
+
return n[COMPOSITE].create({ kind }, [
|
|
65
|
+
n[TITLE].create(null, title),
|
|
66
|
+
n.compositeDescription.create(),
|
|
67
|
+
n.compositeTags.create(),
|
|
68
|
+
...body
|
|
69
|
+
]);
|
|
70
|
+
}
|
|
71
|
+
let output;
|
|
72
|
+
if (target.type === "composite") output = [toComposite(first, nodes.slice(1), target.kind)];
|
|
73
|
+
else if (!isCoreTarget(target)) return null;
|
|
74
|
+
else if (target.type === "bulletList" || target.type === "orderedList") output = converter.toList(nodes, target.type);
|
|
75
|
+
else if (target.type === "blockquote") output = converter.toQuote(nodes);
|
|
76
|
+
else output = converter.toTextblocks(nodes, textblockSpecOf(target));
|
|
77
|
+
return finishConversion(nodes, output);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The conversion of the block right after `$start` into `target`: the range it replaces (a heading becoming a composite
|
|
81
|
+
* takes its group along, which turns into the composite's body) and the converted blocks.
|
|
82
|
+
*/
|
|
83
|
+
function convertAt(kinds) {
|
|
84
|
+
return (state, $start, target) => {
|
|
85
|
+
const parent = $start.parent;
|
|
86
|
+
const from = $start.index();
|
|
87
|
+
const to = target.type === "composite" && parent.child(from).type.name === "heading" ? headingGroupRange(parent, from).to : from + 1;
|
|
88
|
+
const nodes = [];
|
|
89
|
+
for (let index = from; index < to; index++) nodes.push(parent.child(index));
|
|
90
|
+
const blocks = convertCompositeBlocks(state.schema, nodes, target, kinds);
|
|
91
|
+
return blocks ? {
|
|
92
|
+
from: $start.pos,
|
|
93
|
+
to: nodes.reduce((end, node) => end + node.nodeSize, $start.pos),
|
|
94
|
+
blocks
|
|
95
|
+
} : null;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The composite feature's providers, in menu order. The first claims composites as source blocks (`handlesSource`): it
|
|
100
|
+
* offers the core targets for them and executes every conversion of a composite, including kind changes. The second
|
|
101
|
+
* owns the `composite:<kind>` targets: blocks and kind switches. `kinds` are the host's configured kinds; without them the
|
|
102
|
+
* built-in kinds apply, and their labels (the menu entries) follow the language of the `t` the menu renders with. What
|
|
103
|
+
* a conversion writes into the document (the `Label: Wert` line of a composite's meta) uses the built-in kinds in the
|
|
104
|
+
* default language, since `convert` runs without a translator.
|
|
105
|
+
*/
|
|
106
|
+
function compositeConversions(kinds) {
|
|
107
|
+
const structure = kinds ?? fallbackCompositeKinds();
|
|
108
|
+
const convert = convertAt(structure);
|
|
109
|
+
return [{
|
|
110
|
+
handlesSource: isComposite,
|
|
111
|
+
targets: (_editor, node) => isComposite(node) ? UNWRAP_TARGETS.filter((target) => node.type.schema.nodes[target.type]) : [],
|
|
112
|
+
parseTarget: () => null,
|
|
113
|
+
label: () => null,
|
|
114
|
+
convert
|
|
115
|
+
}, {
|
|
116
|
+
targets: (_editor, node) => {
|
|
117
|
+
if (!(isTextblockNode(node) || isListNode(node) || isQuoteNode(node) || isComposite(node)) || !node.type.schema.nodes[COMPOSITE]) return [];
|
|
118
|
+
return structure.map((kind) => ({
|
|
119
|
+
type: "composite",
|
|
120
|
+
kind: kind.id
|
|
121
|
+
})).filter((target) => !isCurrentTarget(node, target));
|
|
122
|
+
},
|
|
123
|
+
parseTarget: (id) => {
|
|
124
|
+
if (!id.startsWith(COMPOSITE_PREFIX)) return null;
|
|
125
|
+
const kind = id.slice(10);
|
|
126
|
+
return structure.some((known) => known.id === kind) ? {
|
|
127
|
+
type: "composite",
|
|
128
|
+
kind
|
|
129
|
+
} : null;
|
|
130
|
+
},
|
|
131
|
+
label: (target, t) => {
|
|
132
|
+
if (target.type !== "composite") return null;
|
|
133
|
+
const kind = compositeKind(kinds ?? defaultCompositeKinds(t), target.kind);
|
|
134
|
+
return {
|
|
135
|
+
label: t("composites.convert.kind", { kind: kind.label }),
|
|
136
|
+
icon: kind.icon
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
convert
|
|
140
|
+
}];
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
export { compositeConversions, convertCompositeBlocks };
|
|
144
|
+
|
|
145
|
+
//# sourceMappingURL=convert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert.js","names":[],"sources":["../../../src/features/composites/convert.ts"],"sourcesContent":["import { Fragment, type Node as PMNode, type Schema } from '@tiptap/pm/model'\nimport {\n CORE_TARGET_IDS,\n childrenOf,\n type ConvertTarget,\n createConverter,\n finishConversion,\n isCoreTarget,\n isCurrentTarget,\n isListNode,\n isQuoteNode,\n isTextblockNode,\n parseCoreTarget,\n textblockSpecOf,\n} from '../../core/convert'\nimport type { ConversionProvider } from '../../core/feature'\nimport { compositeChromeBlocks, flattenCompositesToHeadings, headingGroupRange } from './heading-composites'\nimport { type CompositeKind, compositeKind, defaultCompositeKinds, fallbackCompositeKinds } from './kinds'\nimport { COMPOSITE_CHROME_COUNT } from './nodes'\n\n// Vue-free and server-importable: the composite family's block conversions — wrapping blocks into a composite,\n// switching its kind and unwrapping it into plain blocks — as `ConversionProvider`s of the composite feature.\n\nconst COMPOSITE = 'composite'\nconst TITLE = 'compositeTitle'\nconst COMPOSITE_PREFIX = 'composite:'\n\nconst isComposite = (node: PMNode) => node.type.name === COMPOSITE\n\n/** The conversion targets of the core provider, offered for composites (they unwrap into them). */\nconst UNWRAP_TARGETS: readonly ConvertTarget[] = CORE_TARGET_IDS.flatMap(id => parseCoreTarget(id) ?? [])\n\n/**\n * Blocks `nodes` (siblings) converted to `target`. A composite takes the first block as title and the rest as body;\n * composites unwrap into the core targets (title first, description as italic paragraph, tags as a paragraph of tag\n * chips, meta as a `Label: Wert` line); into a heading, nested composites become sub-headings. Null when nothing\n * changes, the target is not a composite or core target or a node is not a textblock, list, quote or composite.\n * Never looks outside `nodes`: a heading's group is the caller's business.\n */\nexport function convertCompositeBlocks(schema: Schema, nodes: PMNode[], target: ConvertTarget, kinds: readonly CompositeKind[]): PMNode[] | null {\n const first = nodes[0]\n if (!first || !schema.nodes[target.type]) return null\n if (!nodes.every(node => isTextblockNode(node) || isListNode(node) || isQuoteNode(node) || isComposite(node))) return null\n if (nodes.length === 1 && isCurrentTarget(first, target)) return null\n const n = schema.nodes\n const paragraph = n.paragraph!\n\n /** A composite as plain blocks: title paragraph (an empty one only with `keepEmptyTitle`), description, tags, meta, body. */\n function unwrapComposite(composite: PMNode, keepEmptyTitle: boolean, headingLevel?: number): PMNode[] {\n const title = composite.child(0)\n const blocks: PMNode[] = []\n if (keepEmptyTitle || title.content.size) blocks.push(paragraph.create(null, title.content))\n blocks.push(...compositeChromeBlocks(schema, composite, kinds))\n let body = childrenOf(composite, COMPOSITE_CHROME_COUNT)\n if (headingLevel !== undefined) body = flattenCompositesToHeadings(schema, body, true, headingLevel + 1, kinds) ?? body\n return [...blocks, ...body]\n }\n\n const converter = createConverter(schema, { is: isComposite, unwrap: unwrapComposite })\n\n function toComposite(head: PMNode, rest: PMNode[], kind: string): PMNode {\n if (isComposite(head)) {\n // Another kind: the same node; `meta` keeps only the fields of the new kind. Further blocks join its body.\n const keys = new Set(compositeKind(kinds, kind).fields.map(field => field.key))\n const meta = Object.fromEntries(Object.entries(head.attrs.meta as Record<string, unknown>).filter(([key]) => keys.has(key)))\n return head.type.create({ ...head.attrs, kind, meta }, [...childrenOf(head), ...rest])\n }\n let title = Fragment.empty\n let body: PMNode[] = []\n if (isTextblockNode(head)) title = converter.inline(head, TITLE)\n else if (isQuoteNode(head)) body = childrenOf(head)\n else {\n // List: the first item's paragraph is the title, its other blocks and the remaining items (same list type) the body.\n const [item, ...more] = childrenOf(head)\n const [itemHead, ...itemRest] = item ? childrenOf(item) : []\n if (itemHead && isTextblockNode(itemHead)) title = converter.inline(itemHead, TITLE)\n else if (itemHead) itemRest.unshift(itemHead)\n body = [...itemRest, ...(more.length ? [head.type.create(null, more)] : [])]\n }\n body = [...body, ...rest]\n if (!body.length) body = [paragraph.create()]\n return n[COMPOSITE]!.create({ kind }, [n[TITLE]!.create(null, title), n.compositeDescription!.create(), n.compositeTags!.create(), ...body])\n }\n\n let output: PMNode[]\n if (target.type === 'composite') output = [toComposite(first, nodes.slice(1), target.kind)]\n else if (!isCoreTarget(target)) return null\n else if (target.type === 'bulletList' || target.type === 'orderedList') output = converter.toList(nodes, target.type)\n else if (target.type === 'blockquote') output = converter.toQuote(nodes)\n else output = converter.toTextblocks(nodes, textblockSpecOf(target))\n return finishConversion(nodes, output)\n}\n\n/**\n * The conversion of the block right after `$start` into `target`: the range it replaces (a heading becoming a composite\n * takes its group along, which turns into the composite's body) and the converted blocks.\n */\nfunction convertAt(kinds: readonly CompositeKind[]): ConversionProvider['convert'] {\n return (state, $start, target) => {\n const parent = $start.parent\n const from = $start.index()\n const to = target.type === 'composite' && parent.child(from).type.name === 'heading' ? headingGroupRange(parent, from).to : from + 1\n const nodes: PMNode[] = []\n for (let index = from; index < to; index++) nodes.push(parent.child(index))\n const blocks = convertCompositeBlocks(state.schema, nodes, target, kinds)\n return blocks ? { from: $start.pos, to: nodes.reduce((end, node) => end + node.nodeSize, $start.pos), blocks } : null\n }\n}\n\n/**\n * The composite feature's providers, in menu order. The first claims composites as source blocks (`handlesSource`): it\n * offers the core targets for them and executes every conversion of a composite, including kind changes. The second\n * owns the `composite:<kind>` targets: blocks and kind switches. `kinds` are the host's configured kinds; without them the\n * built-in kinds apply, and their labels (the menu entries) follow the language of the `t` the menu renders with. What\n * a conversion writes into the document (the `Label: Wert` line of a composite's meta) uses the built-in kinds in the\n * default language, since `convert` runs without a translator.\n */\nexport function compositeConversions(kinds?: readonly CompositeKind[]): readonly ConversionProvider[] {\n const structure = kinds ?? fallbackCompositeKinds()\n const convert = convertAt(structure)\n const unwrap: ConversionProvider = {\n handlesSource: isComposite,\n targets: (_editor, node) => isComposite(node) ? UNWRAP_TARGETS.filter(target => node.type.schema.nodes[target.type]) : [],\n parseTarget: () => null,\n label: () => null,\n convert,\n }\n const wrap: ConversionProvider = {\n targets: (_editor, node) => {\n if (!(isTextblockNode(node) || isListNode(node) || isQuoteNode(node) || isComposite(node)) || !node.type.schema.nodes[COMPOSITE]) return []\n return structure.map((kind): ConvertTarget => ({ type: 'composite', kind: kind.id })).filter(target => !isCurrentTarget(node, target))\n },\n parseTarget: (id) => {\n if (!id.startsWith(COMPOSITE_PREFIX)) return null\n const kind = id.slice(COMPOSITE_PREFIX.length)\n return structure.some(known => known.id === kind) ? { type: 'composite', kind } : null\n },\n label: (target, t) => {\n if (target.type !== 'composite') return null\n const kind = compositeKind(kinds ?? defaultCompositeKinds(t), target.kind)\n return { label: t('composites.convert.kind', { kind: kind.label }), icon: kind.icon }\n },\n convert,\n }\n return [unwrap, wrap]\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#region src/features/composites/editing-settings-keys.ts
|
|
2
|
+
const HEADING_SCOPE_KEYS = {
|
|
3
|
+
container: {
|
|
4
|
+
labelKey: "composites.settings.scope.container.label",
|
|
5
|
+
descriptionKey: "composites.settings.scope.container.description"
|
|
6
|
+
},
|
|
7
|
+
document: {
|
|
8
|
+
labelKey: "composites.settings.scope.document.label",
|
|
9
|
+
descriptionKey: "composites.settings.scope.document.description"
|
|
10
|
+
},
|
|
11
|
+
heading: {
|
|
12
|
+
labelKey: "composites.settings.scope.heading.label",
|
|
13
|
+
descriptionKey: "composites.settings.scope.heading.description"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const KIND_ICON_KEYS = {
|
|
17
|
+
always: {
|
|
18
|
+
labelKey: "composites.settings.kindIcon.always.label",
|
|
19
|
+
descriptionKey: "composites.settings.kindIcon.always.description"
|
|
20
|
+
},
|
|
21
|
+
hover: {
|
|
22
|
+
labelKey: "composites.settings.kindIcon.hover.label",
|
|
23
|
+
descriptionKey: "composites.settings.kindIcon.hover.description"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const DRAG_HANDLE_KEYS = {
|
|
27
|
+
hover: {
|
|
28
|
+
labelKey: "composites.settings.dragHandle.hover.label",
|
|
29
|
+
descriptionKey: "composites.settings.dragHandle.hover.description"
|
|
30
|
+
},
|
|
31
|
+
always: {
|
|
32
|
+
labelKey: "composites.settings.dragHandle.always.label",
|
|
33
|
+
descriptionKey: "composites.settings.dragHandle.always.description"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
/** The radio items of `values`, with the label and description of each resolved through `t`. */
|
|
37
|
+
function optionItems(values, keys, t) {
|
|
38
|
+
return values.map((value) => ({
|
|
39
|
+
value,
|
|
40
|
+
label: t(keys[value].labelKey),
|
|
41
|
+
description: t(keys[value].descriptionKey)
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { DRAG_HANDLE_KEYS, HEADING_SCOPE_KEYS, KIND_ICON_KEYS, optionItems };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=editing-settings-keys.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editing-settings-keys.js","names":[],"sources":["../../../src/features/composites/editing-settings-keys.ts"],"sourcesContent":["import type { MessageKey, Translate } from '../../i18n'\nimport type { DragHandleVisibility, HeadingConversionScope, KindIconVisibility } from '../../settings'\n\n/** Message keys of the labels of the „Bearbeiten“ settings radios (Vue and React); resolve them with `t`. The stored values stay the ids. */\nexport interface OptionKeys { labelKey: MessageKey, descriptionKey: MessageKey }\n\nexport const HEADING_SCOPE_KEYS: Record<HeadingConversionScope, OptionKeys> = {\n container: { labelKey: 'composites.settings.scope.container.label', descriptionKey: 'composites.settings.scope.container.description' },\n document: { labelKey: 'composites.settings.scope.document.label', descriptionKey: 'composites.settings.scope.document.description' },\n heading: { labelKey: 'composites.settings.scope.heading.label', descriptionKey: 'composites.settings.scope.heading.description' },\n}\n\nexport const KIND_ICON_KEYS: Record<KindIconVisibility, OptionKeys> = {\n always: { labelKey: 'composites.settings.kindIcon.always.label', descriptionKey: 'composites.settings.kindIcon.always.description' },\n hover: { labelKey: 'composites.settings.kindIcon.hover.label', descriptionKey: 'composites.settings.kindIcon.hover.description' },\n}\n\nexport const DRAG_HANDLE_KEYS: Record<DragHandleVisibility, OptionKeys> = {\n hover: { labelKey: 'composites.settings.dragHandle.hover.label', descriptionKey: 'composites.settings.dragHandle.hover.description' },\n always: { labelKey: 'composites.settings.dragHandle.always.label', descriptionKey: 'composites.settings.dragHandle.always.description' },\n}\n\n/** The radio items of `values`, with the label and description of each resolved through `t`. */\nexport function optionItems<T extends string>(values: readonly T[], keys: Record<T, OptionKeys>, t: Translate): { value: T, label: string, description: string }[] {\n return values.map(value => ({ value, label: t(keys[value].labelKey), description: t(keys[value].descriptionKey) }))\n}\n"],"mappings":";AAMA,MAAa,qBAAiE;CAC5E,WAAW;EAAE,UAAU;EAA6C,gBAAgB;CAAkD;CACtI,UAAU;EAAE,UAAU;EAA4C,gBAAgB;CAAiD;CACnI,SAAS;EAAE,UAAU;EAA2C,gBAAgB;CAAgD;AAClI;AAEA,MAAa,iBAAyD;CACpE,QAAQ;EAAE,UAAU;EAA6C,gBAAgB;CAAkD;CACnI,OAAO;EAAE,UAAU;EAA4C,gBAAgB;CAAiD;AAClI;AAEA,MAAa,mBAA6D;CACxE,OAAO;EAAE,UAAU;EAA8C,gBAAgB;CAAmD;CACpI,QAAQ;EAAE,UAAU;EAA+C,gBAAgB;CAAoD;AACzI;;AAGA,SAAgB,YAA8B,QAAsB,MAA6B,GAAkE;CACjK,OAAO,OAAO,KAAI,WAAU;EAAE;EAAO,OAAO,EAAE,KAAK,MAAM,CAAC,QAAQ;EAAG,aAAa,EAAE,KAAK,MAAM,CAAC,cAAc;CAAE,EAAE;AACpH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EditorFeature } from "../../core/feature.js";
|
|
2
|
+
import "../../core/index.js";
|
|
3
|
+
import { CompositeKind } from "./kinds.js";
|
|
4
|
+
import { CompositeNodeViews } from "./node-views.js";
|
|
5
|
+
//#region src/features/composites/feature.d.ts
|
|
6
|
+
/** What a framework binding supplies to the composites feature. */
|
|
7
|
+
export interface CompositesUi<C> {
|
|
8
|
+
/** The chips on each title line and the details popover on the kind icon; mounted as an overlay. */
|
|
9
|
+
chrome: C;
|
|
10
|
+
/** The „Bearbeiten“ settings tab; receives `{ kinds }` as props. */
|
|
11
|
+
settingsTab: C;
|
|
12
|
+
/** The composite block view of the framework. */
|
|
13
|
+
nodeViews: CompositeNodeViews;
|
|
14
|
+
}
|
|
15
|
+
/** Options of `compositeFeature`. */
|
|
16
|
+
export interface CompositeFeatureOptions {
|
|
17
|
+
/** The composite kinds („Bausteine“) offered in the editor, with their own labels (default: `defaultCompositeKinds(t)`, the built-in kinds in the editor's language); read once. */
|
|
18
|
+
kinds?: readonly CompositeKind[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Composites („Bausteine“): the node family with its node views, the toolbar group (insert, „In Baustein umwandeln“,
|
|
22
|
+
* „Gliederung umwandeln“), `/` commands, the conversion providers (wrap into / switch kind of / unwrap composites),
|
|
23
|
+
* Markdown `:::` fences, legacy `section` migration, the preferred-structure setting and its `editing` settings tab,
|
|
24
|
+
* the chips on each title line (status, tags) and the details popover on the kind icon (the binding's `chrome` overlay), and
|
|
25
|
+
* the AI view of kinds and structure. Contributes the `parseMarkdown`,
|
|
26
|
+
* `structure` and `migrateContent` stages. Imports no AI, media or transcript code.
|
|
27
|
+
*/
|
|
28
|
+
export declare function compositeFeatureCore<C>(ui: CompositesUi<C>, options?: CompositeFeatureOptions): EditorFeature<C>;
|
|
29
|
+
//#endregion
|
|
30
|
+
//# sourceMappingURL=feature.d.ts.map
|