@ecsplico/editor 0.0.0-stage → 2.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/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +232 -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 +10 -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 +502 -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 +10 -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 +62 -0
- package/dist/nuxt/module.js +101 -0
- package/dist/nuxt/module.js.map +1 -0
- package/dist/nuxt/runtime/install-context.d.ts +16 -0
- package/dist/nuxt/runtime/install-context.js +25 -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/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 +42 -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/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 +619 -4
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
2
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
3
|
+
import { setCompositeDescription } from "../rows.js";
|
|
4
|
+
import { createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, onBeforeUnmount, openBlock, ref, toDisplayString, unref, watch } from "vue";
|
|
5
|
+
//#region src/features/composites/components/CompositeSummaryEditor.vue
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 2,
|
|
8
|
+
class: "text-sm text-[var(--sk-muted)]"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = { class: "mt-1 block text-xs text-[var(--sk-fg-dimmed)]" };
|
|
11
|
+
/**
|
|
12
|
+
* The summary (description) of one Baustein as a textarea, written through `setCompositeDescription`. Local draft with
|
|
13
|
+
* debounced commit, like `CompositeFieldEditor`; refuses to touch a summary that holds formatting or mentions, and
|
|
14
|
+
* shows plain text while `readonly`.
|
|
15
|
+
*/
|
|
16
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
17
|
+
__name: "CompositeSummaryEditor",
|
|
18
|
+
props: {
|
|
19
|
+
editor: {},
|
|
20
|
+
row: {},
|
|
21
|
+
readonly: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const { Textarea: UTextarea } = useUiKit();
|
|
26
|
+
const { t } = useEditorI18n();
|
|
27
|
+
const draft = ref(props.row.description);
|
|
28
|
+
const typing = ref(false);
|
|
29
|
+
let dirty = false;
|
|
30
|
+
let timer;
|
|
31
|
+
watch(() => props.row.description, (value) => {
|
|
32
|
+
if (!typing.value && !dirty) draft.value = value;
|
|
33
|
+
});
|
|
34
|
+
function commit() {
|
|
35
|
+
clearTimeout(timer);
|
|
36
|
+
if (!dirty) return;
|
|
37
|
+
dirty = false;
|
|
38
|
+
if (!props.editor.isDestroyed) setCompositeDescription(props.editor, props.row, draft.value);
|
|
39
|
+
}
|
|
40
|
+
function onInput(value) {
|
|
41
|
+
draft.value = typeof value === "string" ? value : "";
|
|
42
|
+
dirty = true;
|
|
43
|
+
clearTimeout(timer);
|
|
44
|
+
timer = setTimeout(commit, 500);
|
|
45
|
+
}
|
|
46
|
+
function onBlur() {
|
|
47
|
+
typing.value = false;
|
|
48
|
+
commit();
|
|
49
|
+
}
|
|
50
|
+
onBeforeUnmount(commit);
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return __props.row.descriptionTextOnly && !__props.readonly ? (openBlock(), createBlock(unref(UTextarea), {
|
|
53
|
+
key: 0,
|
|
54
|
+
"model-value": draft.value,
|
|
55
|
+
placeholder: unref(t)("composites.summary.placeholder"),
|
|
56
|
+
"aria-label": unref(t)("composites.summary.label"),
|
|
57
|
+
size: "sm",
|
|
58
|
+
autoresize: "",
|
|
59
|
+
rows: 2,
|
|
60
|
+
maxrows: 6,
|
|
61
|
+
class: "w-full",
|
|
62
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => typing.value = true),
|
|
63
|
+
onBlur,
|
|
64
|
+
"onUpdate:modelValue": onInput
|
|
65
|
+
}, null, 8, [
|
|
66
|
+
"model-value",
|
|
67
|
+
"placeholder",
|
|
68
|
+
"aria-label"
|
|
69
|
+
])) : __props.readonly ? (openBlock(), createElementBlock("p", {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: normalizeClass(["text-sm", __props.row.description ? "text-[var(--sk-fg)]" : "text-[var(--sk-fg-dimmed)]"])
|
|
72
|
+
}, toDisplayString(__props.row.description || unref(t)("composites.summary.none")), 3)) : (openBlock(), createElementBlock("p", _hoisted_1, [createTextVNode(toDisplayString(__props.row.description) + " ", 1), createElementVNode("span", _hoisted_2, toDisplayString(unref(t)("composites.summary.formatted")), 1)]));
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
export { _sfc_main as default };
|
|
78
|
+
|
|
79
|
+
//# sourceMappingURL=CompositeSummaryEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeSummaryEditor.js","names":["_openBlock","_createBlock","_unref","_createElementBlock","_normalizeClass","_toDisplayString","_createTextVNode","_createElementVNode"],"sources":["../../../../src/features/composites/components/CompositeSummaryEditor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Editor } from '@tiptap/core'\nimport { onBeforeUnmount, ref, watch } from 'vue'\nimport { useUiKit } from '../../../vue/kit/use-ui-kit'\nimport { useEditorI18n } from '../../../vue/use-editor-i18n'\nimport { type CompositeRow, setCompositeDescription } from '../rows'\n\n/**\n * The summary (description) of one Baustein as a textarea, written through `setCompositeDescription`. Local draft with\n * debounced commit, like `CompositeFieldEditor`; refuses to touch a summary that holds formatting or mentions, and\n * shows plain text while `readonly`.\n */\nconst props = defineProps<{ editor: Editor, row: CompositeRow, readonly?: boolean }>()\n\nconst { Textarea: UTextarea } = useUiKit()\nconst { t } = useEditorI18n()\n\nconst draft = ref(props.row.description)\nconst typing = ref(false)\nlet dirty = false\nlet timer: ReturnType<typeof setTimeout> | undefined\n\nwatch(() => props.row.description, (value) => {\n if (!typing.value && !dirty) draft.value = value\n})\n\nfunction commit() {\n clearTimeout(timer)\n if (!dirty) return\n dirty = false\n if (!props.editor.isDestroyed) setCompositeDescription(props.editor, props.row, draft.value)\n}\n\nfunction onInput(value: unknown) {\n draft.value = typeof value === 'string' ? value : ''\n dirty = true\n clearTimeout(timer)\n timer = setTimeout(commit, 500)\n}\n\nfunction onBlur() {\n typing.value = false\n commit()\n}\n\nonBeforeUnmount(commit)\n</script>\n\n<template>\n <UTextarea\n v-if=\"row.descriptionTextOnly && !readonly\"\n :model-value=\"draft\"\n :placeholder=\"t('composites.summary.placeholder')\"\n :aria-label=\"t('composites.summary.label')\"\n size=\"sm\"\n autoresize\n :rows=\"2\"\n :maxrows=\"6\"\n class=\"w-full\"\n @focus=\"typing = true\"\n @blur=\"onBlur\"\n @update:model-value=\"onInput\"\n />\n <p v-else-if=\"readonly\" :class=\"['text-sm', row.description ? 'text-[var(--sk-fg)]' : 'text-[var(--sk-fg-dimmed)]']\">\n {{ row.description || t('composites.summary.none') }}\n </p>\n <p v-else class=\"text-sm text-[var(--sk-muted)]\">\n {{ row.description }}\n <span class=\"mt-1 block text-xs text-[var(--sk-fg-dimmed)]\">{{ t('composites.summary.formatted') }}</span>\n </p>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EAEd,MAAM,EAAE,UAAU,cAAc,SAAS;EACzC,MAAM,EAAE,MAAM,cAAc;EAE5B,MAAM,QAAQ,IAAI,MAAM,IAAI,WAAW;EACvC,MAAM,SAAS,IAAI,KAAK;EACxB,IAAI,QAAQ;EACZ,IAAI;EAEJ,YAAY,MAAM,IAAI,cAAc,UAAU;GAC5C,IAAI,CAAC,OAAO,SAAS,CAAC,OAAO,MAAM,QAAQ;EAC7C,CAAC;EAED,SAAS,SAAS;GAChB,aAAa,KAAK;GAClB,IAAI,CAAC,OAAO;GACZ,QAAQ;GACR,IAAI,CAAC,MAAM,OAAO,aAAa,wBAAwB,MAAM,QAAQ,MAAM,KAAK,MAAM,KAAK;EAC7F;EAEA,SAAS,QAAQ,OAAgB;GAC/B,MAAM,QAAQ,OAAO,UAAU,WAAW,QAAQ;GAClD,QAAQ;GACR,aAAa,KAAK;GAClB,QAAQ,WAAW,QAAQ,GAAG;EAChC;EAEA,SAAS,SAAS;GAChB,OAAO,QAAQ;GACf,OAAO;EACT;EAEA,gBAAgB,MAAM;;GAKZ,OAAA,QAAA,IAAI,uBAAmB,CAAK,QAAA,YADpCA,UAAA,GAAAC,YAaEC,MAAA,SAAA,GAAA;;IAXC,eAAa,MAAA;IACb,aAAaA,MAAA,CAAA,CAAC,CAAA,gCAAA;IACd,cAAYA,MAAA,CAAA,CAAC,CAAA,0BAAA;IACd,MAAK;IACL,YAAA;IACC,MAAM;IACN,SAAS;IACV,OAAM;IACL,SAAK,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,QAAM;IACP;IACN,uBAAoB;;;;;GAET,CAAA,KAAA,QAAA,YAAdF,UAAA,GAAAG,mBAEI,KAAA;;IAFqB,OAAKC,eAAA,CAAA,WAAc,QAAA,IAAI,cAAW,wBAAA,4BAAA,CAAA;GACtD,GAAAC,gBAAA,QAAA,IAAI,eAAeH,MAAA,CAAA,CAAC,CAAA,yBAAA,CAAA,GAAA,CAAA,MAEzBF,UAAA,GAAAG,mBAGI,KAHJ,YAGI,CAFCG,gBAAAD,gBAAA,QAAA,IAAI,WAAW,IAAG,KACrB,CAAA,GAAAE,mBAA0G,QAA1G,YAA0GF,gBAA3CH,MAAA,CAAA,CAAC,CAAA,8BAAA,CAAA,GAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CompositeRow } from "../rows.js";
|
|
2
|
+
import { Editor } from "@tiptap/core";
|
|
3
|
+
//#region src/features/composites/components/CompositeSummaryEditor.vue.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* The summary (description) of one Baustein as a textarea, written through `setCompositeDescription`. Local draft with
|
|
6
|
+
* debounced commit, like `CompositeFieldEditor`; refuses to touch a summary that holds formatting or mentions, and
|
|
7
|
+
* shows plain text while `readonly`.
|
|
8
|
+
*/
|
|
9
|
+
type __VLS_Props = {
|
|
10
|
+
editor: Editor;
|
|
11
|
+
row: CompositeRow;
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
};
|
|
14
|
+
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>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { _default as default };
|
|
18
|
+
//# sourceMappingURL=CompositeSummaryEditor.vue.d.ts.map
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
2
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
3
|
+
import { FILTER_ALL, columnSpecsOf, fieldColumnsOf, fieldOf, fieldText, hasText, isLongText, sortRows, toggled } from "../table-model.js";
|
|
4
|
+
import { useCompositeRows } from "../use-composite-rows.js";
|
|
5
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, ref, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
6
|
+
//#region src/features/composites/components/CompositeTable.vue
|
|
7
|
+
const _hoisted_1 = ["aria-label"];
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "mx-auto flex max-w-sm flex-1 flex-col items-center justify-center gap-2 py-16 text-center"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_3 = { class: "text-sm font-medium text-[var(--sk-fg-highlighted)]" };
|
|
13
|
+
const _hoisted_4 = { class: "text-sm text-[var(--sk-muted)]" };
|
|
14
|
+
const _hoisted_5 = { class: "flex flex-col gap-2" };
|
|
15
|
+
const _hoisted_6 = { class: "flex flex-wrap items-center gap-2" };
|
|
16
|
+
const _hoisted_7 = {
|
|
17
|
+
class: "text-sm text-[var(--sk-muted)]",
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_8 = {
|
|
21
|
+
class: "ml-auto text-xs tabular-nums text-[var(--sk-muted)]",
|
|
22
|
+
role: "status"
|
|
23
|
+
};
|
|
24
|
+
const _hoisted_9 = ["aria-label"];
|
|
25
|
+
const _hoisted_10 = ["aria-label"];
|
|
26
|
+
const _hoisted_11 = ["onClick"];
|
|
27
|
+
const _hoisted_12 = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "truncate font-medium text-[var(--sk-fg-highlighted)]"
|
|
30
|
+
};
|
|
31
|
+
const _hoisted_13 = {
|
|
32
|
+
key: 1,
|
|
33
|
+
class: "truncate text-[var(--sk-muted)]"
|
|
34
|
+
};
|
|
35
|
+
const _hoisted_14 = ["title"];
|
|
36
|
+
const _hoisted_15 = { class: "sr-only" };
|
|
37
|
+
const _hoisted_16 = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "flex flex-wrap gap-1"
|
|
40
|
+
};
|
|
41
|
+
const _hoisted_17 = { class: "sr-only" };
|
|
42
|
+
const _hoisted_18 = ["title"];
|
|
43
|
+
const _hoisted_19 = { class: "sr-only" };
|
|
44
|
+
const _hoisted_20 = { class: "sr-only" };
|
|
45
|
+
const _hoisted_21 = { class: "flex flex-col items-center gap-2 py-6" };
|
|
46
|
+
const _hoisted_22 = { class: "text-sm text-[var(--sk-muted)]" };
|
|
47
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
48
|
+
__name: "CompositeTable",
|
|
49
|
+
props: { editor: {} },
|
|
50
|
+
emits: ["select"],
|
|
51
|
+
setup(__props, { emit: __emit }) {
|
|
52
|
+
const props = __props;
|
|
53
|
+
const emit = __emit;
|
|
54
|
+
const { Badge: UBadge, Button: UButton, Icon: UIcon, Input: UInput, Select: USelect, Table: UTable } = useUiKit();
|
|
55
|
+
const { t } = useEditorI18n();
|
|
56
|
+
const { rows, tags, kinds } = useCompositeRows(() => props.editor);
|
|
57
|
+
const fieldColumns = computed(() => fieldColumnsOf(rows.value, kinds.value));
|
|
58
|
+
const specs = computed(() => columnSpecsOf(fieldColumns.value, t));
|
|
59
|
+
const columns = computed(() => specs.value.map((spec) => ({
|
|
60
|
+
id: spec.id,
|
|
61
|
+
header: spec.label,
|
|
62
|
+
accessorFn: spec.sort,
|
|
63
|
+
enableSorting: true,
|
|
64
|
+
meta: { class: {
|
|
65
|
+
th: [spec.id === "title" ? "min-w-56" : "", spec.align === "end" ? "text-right" : ""].join(" "),
|
|
66
|
+
td: spec.align === "end" ? "text-right" : ""
|
|
67
|
+
} }
|
|
68
|
+
})));
|
|
69
|
+
const search = ref("");
|
|
70
|
+
const pickedKinds = ref([]);
|
|
71
|
+
const pickedTags = ref([]);
|
|
72
|
+
const pickedOptions = ref({});
|
|
73
|
+
/** One select per `select` field in use; its choices are the union of the options of all kinds that have the key. */
|
|
74
|
+
const selectFilters = computed(() => fieldColumns.value.flatMap((column) => {
|
|
75
|
+
if (column.field.type !== "select") return [];
|
|
76
|
+
const options = /* @__PURE__ */ new Map();
|
|
77
|
+
for (const row of rows.value) for (const option of fieldOf(row, column.field.key)?.options ?? []) if (!options.has(option.value)) options.set(option.value, option.label);
|
|
78
|
+
return [{
|
|
79
|
+
key: column.field.key,
|
|
80
|
+
label: column.field.label,
|
|
81
|
+
items: [{
|
|
82
|
+
label: t("composites.table.filter.all"),
|
|
83
|
+
value: FILTER_ALL
|
|
84
|
+
}, ...[...options].map(([value, label]) => ({
|
|
85
|
+
label,
|
|
86
|
+
value
|
|
87
|
+
}))]
|
|
88
|
+
}];
|
|
89
|
+
}));
|
|
90
|
+
const activeKinds = computed(() => pickedKinds.value.filter((id) => kinds.value.some((kind) => kind.id === id)));
|
|
91
|
+
const activeTags = computed(() => pickedTags.value.filter((tag) => tags.value.includes(tag)));
|
|
92
|
+
const activeOptions = computed(() => selectFilters.value.flatMap((filter) => {
|
|
93
|
+
const value = pickedOptions.value[filter.key];
|
|
94
|
+
return value && filter.items.some((item) => item.value === value && value !== "__all__") ? [[filter.key, value]] : [];
|
|
95
|
+
}));
|
|
96
|
+
const needle = computed(() => search.value.trim().toLowerCase());
|
|
97
|
+
const filterActive = computed(() => activeKinds.value.length > 0 || activeTags.value.length > 0 || activeOptions.value.length > 0 || needle.value !== "");
|
|
98
|
+
function resetFilters() {
|
|
99
|
+
search.value = "";
|
|
100
|
+
pickedKinds.value = [];
|
|
101
|
+
pickedTags.value = [];
|
|
102
|
+
pickedOptions.value = {};
|
|
103
|
+
}
|
|
104
|
+
const filtered = computed(() => rows.value.filter((row) => {
|
|
105
|
+
if (activeKinds.value.length && !activeKinds.value.includes(row.kind)) return false;
|
|
106
|
+
if (activeTags.value.length && !activeTags.value.every((tag) => row.tags.includes(tag))) return false;
|
|
107
|
+
if (activeOptions.value.some(([key, value]) => row.meta[key] !== value)) return false;
|
|
108
|
+
if (needle.value) {
|
|
109
|
+
if (!`${row.title}\n${row.description}\n${row.tags.map((tag) => `#${tag}`).join(" ")}`.toLowerCase().includes(needle.value)) return false;
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
}));
|
|
113
|
+
const sorting = ref([]);
|
|
114
|
+
const activeSort = computed(() => {
|
|
115
|
+
const entry = sorting.value[0];
|
|
116
|
+
const spec = entry && specs.value.find((item) => item.id === entry.id);
|
|
117
|
+
return entry && spec ? {
|
|
118
|
+
id: entry.id,
|
|
119
|
+
desc: entry.desc,
|
|
120
|
+
sort: spec.sort
|
|
121
|
+
} : null;
|
|
122
|
+
});
|
|
123
|
+
/** Header click cycles ascending → descending → unsorted. */
|
|
124
|
+
function cycleSort(id) {
|
|
125
|
+
const current = sorting.value[0];
|
|
126
|
+
if (current?.id !== id) sorting.value = [{
|
|
127
|
+
id,
|
|
128
|
+
desc: false
|
|
129
|
+
}];
|
|
130
|
+
else sorting.value = current.desc ? [] : [{
|
|
131
|
+
id,
|
|
132
|
+
desc: true
|
|
133
|
+
}];
|
|
134
|
+
}
|
|
135
|
+
const sortIcon = (id) => {
|
|
136
|
+
const current = sorting.value[0];
|
|
137
|
+
if (current?.id !== id) return "i-lucide-chevrons-up-down";
|
|
138
|
+
return current.desc ? "i-lucide-arrow-down" : "i-lucide-arrow-up";
|
|
139
|
+
};
|
|
140
|
+
const sorted = computed(() => {
|
|
141
|
+
const sort = activeSort.value;
|
|
142
|
+
return sort ? sortRows(filtered.value, sort.sort, sort.desc) : filtered.value;
|
|
143
|
+
});
|
|
144
|
+
const countLabel = computed(() => t(rows.value.length === 1 ? "composites.table.count.one" : "composites.table.count.other", {
|
|
145
|
+
n: sorted.value.length,
|
|
146
|
+
total: rows.value.length
|
|
147
|
+
}));
|
|
148
|
+
return (_ctx, _cache) => {
|
|
149
|
+
return openBlock(), createElementBlock("section", {
|
|
150
|
+
class: "flex min-h-0 flex-col gap-3",
|
|
151
|
+
"aria-label": unref(t)("composites.table.label")
|
|
152
|
+
}, [!unref(rows).length ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
153
|
+
createVNode(unref(UIcon), {
|
|
154
|
+
name: "i-lucide-table-2",
|
|
155
|
+
class: "size-8 text-[var(--sk-fg-dimmed)]"
|
|
156
|
+
}),
|
|
157
|
+
createElementVNode("p", _hoisted_3, toDisplayString(unref(t)("composites.table.emptyTitle")), 1),
|
|
158
|
+
createElementVNode("p", _hoisted_4, toDisplayString(unref(t)("composites.table.emptyText")), 1)
|
|
159
|
+
])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createElementVNode("div", _hoisted_5, [
|
|
160
|
+
createElementVNode("div", _hoisted_6, [
|
|
161
|
+
createVNode(unref(UInput), {
|
|
162
|
+
modelValue: search.value,
|
|
163
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => search.value = $event),
|
|
164
|
+
class: "w-64",
|
|
165
|
+
size: "sm",
|
|
166
|
+
icon: "i-lucide-search",
|
|
167
|
+
placeholder: unref(t)("composites.table.search.placeholder"),
|
|
168
|
+
"aria-label": unref(t)("composites.table.search.label")
|
|
169
|
+
}, createSlots({ _: 2 }, [search.value ? {
|
|
170
|
+
name: "trailing",
|
|
171
|
+
fn: withCtx(() => [createVNode(unref(UButton), {
|
|
172
|
+
color: "neutral",
|
|
173
|
+
variant: "link",
|
|
174
|
+
size: "xs",
|
|
175
|
+
icon: "i-lucide-x",
|
|
176
|
+
"aria-label": unref(t)("composites.table.search.clear"),
|
|
177
|
+
onClick: _cache[0] || (_cache[0] = ($event) => search.value = "")
|
|
178
|
+
}, null, 8, ["aria-label"])]),
|
|
179
|
+
key: "0"
|
|
180
|
+
} : void 0]), 1032, [
|
|
181
|
+
"modelValue",
|
|
182
|
+
"placeholder",
|
|
183
|
+
"aria-label"
|
|
184
|
+
]),
|
|
185
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(selectFilters.value, (filter) => {
|
|
186
|
+
return openBlock(), createElementBlock("div", {
|
|
187
|
+
key: filter.key,
|
|
188
|
+
class: "flex items-center gap-1.5"
|
|
189
|
+
}, [createElementVNode("span", _hoisted_7, toDisplayString(filter.label), 1), createVNode(unref(USelect), {
|
|
190
|
+
"model-value": pickedOptions.value[filter.key] ?? unref("__all__"),
|
|
191
|
+
class: "w-36",
|
|
192
|
+
size: "sm",
|
|
193
|
+
items: filter.items,
|
|
194
|
+
"aria-label": filter.label,
|
|
195
|
+
"onUpdate:modelValue": ($event) => pickedOptions.value = {
|
|
196
|
+
...pickedOptions.value,
|
|
197
|
+
[filter.key]: String($event)
|
|
198
|
+
}
|
|
199
|
+
}, null, 8, [
|
|
200
|
+
"model-value",
|
|
201
|
+
"items",
|
|
202
|
+
"aria-label",
|
|
203
|
+
"onUpdate:modelValue"
|
|
204
|
+
])]);
|
|
205
|
+
}), 128)),
|
|
206
|
+
filterActive.value ? (openBlock(), createBlock(unref(UButton), {
|
|
207
|
+
key: 0,
|
|
208
|
+
size: "sm",
|
|
209
|
+
color: "neutral",
|
|
210
|
+
variant: "ghost",
|
|
211
|
+
icon: "i-lucide-filter-x",
|
|
212
|
+
label: unref(t)("composites.table.filter.reset"),
|
|
213
|
+
onClick: resetFilters
|
|
214
|
+
}, null, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
215
|
+
createElementVNode("span", _hoisted_8, toDisplayString(countLabel.value), 1)
|
|
216
|
+
]),
|
|
217
|
+
unref(kinds).length > 1 ? (openBlock(), createElementBlock("div", {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: "flex flex-wrap items-center gap-1",
|
|
220
|
+
role: "group",
|
|
221
|
+
"aria-label": unref(t)("composites.table.filter.byKind")
|
|
222
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(kinds), (kind) => {
|
|
223
|
+
return openBlock(), createBlock(unref(UButton), {
|
|
224
|
+
key: kind.id,
|
|
225
|
+
size: "xs",
|
|
226
|
+
color: "neutral",
|
|
227
|
+
variant: activeKinds.value.includes(kind.id) ? "solid" : "outline",
|
|
228
|
+
icon: kind.icon,
|
|
229
|
+
label: kind.label,
|
|
230
|
+
"aria-pressed": activeKinds.value.includes(kind.id),
|
|
231
|
+
onClick: ($event) => pickedKinds.value = unref(toggled)(pickedKinds.value, kind.id)
|
|
232
|
+
}, null, 8, [
|
|
233
|
+
"variant",
|
|
234
|
+
"icon",
|
|
235
|
+
"label",
|
|
236
|
+
"aria-pressed",
|
|
237
|
+
"onClick"
|
|
238
|
+
]);
|
|
239
|
+
}), 128))], 8, _hoisted_9)) : createCommentVNode("v-if", true),
|
|
240
|
+
unref(tags).length ? (openBlock(), createElementBlock("div", {
|
|
241
|
+
key: 1,
|
|
242
|
+
class: "flex flex-wrap items-center gap-1",
|
|
243
|
+
role: "group",
|
|
244
|
+
"aria-label": unref(t)("composites.table.filter.byTag")
|
|
245
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(tags), (tag) => {
|
|
246
|
+
return openBlock(), createBlock(unref(UButton), {
|
|
247
|
+
key: tag,
|
|
248
|
+
size: "xs",
|
|
249
|
+
color: "neutral",
|
|
250
|
+
variant: activeTags.value.includes(tag) ? "solid" : "outline",
|
|
251
|
+
label: `#${tag}`,
|
|
252
|
+
"aria-pressed": activeTags.value.includes(tag),
|
|
253
|
+
onClick: ($event) => pickedTags.value = unref(toggled)(pickedTags.value, tag)
|
|
254
|
+
}, null, 8, [
|
|
255
|
+
"variant",
|
|
256
|
+
"label",
|
|
257
|
+
"aria-pressed",
|
|
258
|
+
"onClick"
|
|
259
|
+
]);
|
|
260
|
+
}), 128))], 8, _hoisted_10)) : createCommentVNode("v-if", true)
|
|
261
|
+
]), createVNode(unref(UTable), {
|
|
262
|
+
sorting: sorting.value,
|
|
263
|
+
"onUpdate:sorting": _cache[2] || (_cache[2] = ($event) => sorting.value = $event),
|
|
264
|
+
data: sorted.value,
|
|
265
|
+
columns: columns.value,
|
|
266
|
+
"get-row-id": (row) => row.key,
|
|
267
|
+
ui: {
|
|
268
|
+
th: "px-3 py-2 text-sm",
|
|
269
|
+
td: "px-3 py-2"
|
|
270
|
+
},
|
|
271
|
+
sticky: "",
|
|
272
|
+
class: "min-h-0 flex-1 rounded-md border border-[var(--sk-border)]",
|
|
273
|
+
onSelect: _cache[3] || (_cache[3] = (_event, row) => emit("select", row.original))
|
|
274
|
+
}, createSlots({
|
|
275
|
+
"title-cell": withCtx(({ row }) => [createElementVNode("div", {
|
|
276
|
+
class: "flex min-w-0 items-center gap-1.5",
|
|
277
|
+
style: normalizeStyle({ paddingLeft: `${row.original.depth * 1.25}rem` })
|
|
278
|
+
}, [createVNode(unref(UIcon), {
|
|
279
|
+
name: row.original.icon,
|
|
280
|
+
class: "size-4 shrink-0 text-[var(--sk-muted)]"
|
|
281
|
+
}, null, 8, ["name"]), unref(hasText)(row.original.title) ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(row.original.title), 1)) : (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(unref(t)("composites.untitled")), 1))], 4)]),
|
|
282
|
+
"kind-cell": withCtx(({ row }) => [createTextVNode(toDisplayString(row.original.kindLabel), 1)]),
|
|
283
|
+
"tags-cell": withCtx(({ row }) => [row.original.tags.length ? (openBlock(), createElementBlock("div", _hoisted_16, [(openBlock(true), createElementBlock(Fragment, null, renderList(row.original.tags, (tag) => {
|
|
284
|
+
return openBlock(), createBlock(unref(UBadge), {
|
|
285
|
+
key: tag,
|
|
286
|
+
color: "neutral",
|
|
287
|
+
variant: "subtle",
|
|
288
|
+
size: "sm",
|
|
289
|
+
label: `#${tag}`
|
|
290
|
+
}, null, 8, ["label"]);
|
|
291
|
+
}), 128))])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[5] || (_cache[5] = createElementVNode("span", {
|
|
292
|
+
class: "text-[var(--sk-fg-dimmed)]",
|
|
293
|
+
"aria-hidden": "true"
|
|
294
|
+
}, "–", -1)), createElementVNode("span", _hoisted_17, toDisplayString(unref(t)("composites.table.noTags")), 1)], 64))]),
|
|
295
|
+
"summary-cell": withCtx(({ row }) => [unref(hasText)(row.original.description) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", {
|
|
296
|
+
class: "inline-block size-2 rounded-full bg-[var(--sk-primary)]",
|
|
297
|
+
"aria-hidden": "true",
|
|
298
|
+
title: row.original.description
|
|
299
|
+
}, null, 8, _hoisted_18), createElementVNode("span", _hoisted_19, toDisplayString(unref(t)("composites.table.summaryPresent")), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[6] || (_cache[6] = createElementVNode("span", {
|
|
300
|
+
class: "text-[var(--sk-fg-dimmed)]",
|
|
301
|
+
"aria-hidden": "true"
|
|
302
|
+
}, "–", -1)), createElementVNode("span", _hoisted_20, toDisplayString(unref(t)("composites.summary.none")), 1)], 64))]),
|
|
303
|
+
empty: withCtx(() => [createElementVNode("div", _hoisted_21, [createElementVNode("p", _hoisted_22, toDisplayString(unref(t)("composites.table.filter.noMatch")), 1), createVNode(unref(UButton), {
|
|
304
|
+
size: "sm",
|
|
305
|
+
color: "neutral",
|
|
306
|
+
variant: "outline",
|
|
307
|
+
icon: "i-lucide-filter-x",
|
|
308
|
+
label: unref(t)("composites.table.filter.reset"),
|
|
309
|
+
onClick: resetFilters
|
|
310
|
+
}, null, 8, ["label"])])]),
|
|
311
|
+
_: 2
|
|
312
|
+
}, [renderList(specs.value, (spec) => {
|
|
313
|
+
return {
|
|
314
|
+
name: `${spec.id}-header`,
|
|
315
|
+
fn: withCtx(() => [createElementVNode("button", {
|
|
316
|
+
type: "button",
|
|
317
|
+
class: "-mx-1.5 inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-semibold hover:bg-[var(--sk-bg-elevated)] focus-visible:outline-2 focus-visible:outline-[var(--sk-primary)]",
|
|
318
|
+
onClick: ($event) => cycleSort(spec.id)
|
|
319
|
+
}, [createTextVNode(toDisplayString(spec.label) + " ", 1), createVNode(unref(UIcon), {
|
|
320
|
+
name: sortIcon(spec.id),
|
|
321
|
+
class: normalizeClass(["size-3.5", activeSort.value?.id === spec.id ? "text-[var(--sk-fg-highlighted)]" : "text-[var(--sk-fg-dimmed)]"])
|
|
322
|
+
}, null, 8, ["name", "class"])], 8, _hoisted_11)])
|
|
323
|
+
};
|
|
324
|
+
}), renderList(fieldColumns.value, (column) => {
|
|
325
|
+
return {
|
|
326
|
+
name: `${column.id}-cell`,
|
|
327
|
+
fn: withCtx(({ row }) => [unref(fieldText)(row.original, column.field.key) ? (openBlock(), createElementBlock("span", {
|
|
328
|
+
key: 0,
|
|
329
|
+
class: normalizeClass(["block", [column.field.type === "number" || column.field.type === "date" ? "tabular-nums" : "", unref(isLongText)(column.field) ? "max-w-64 truncate" : ""]]),
|
|
330
|
+
title: unref(isLongText)(column.field) ? unref(fieldText)(row.original, column.field.key) : void 0
|
|
331
|
+
}, toDisplayString(unref(fieldText)(row.original, column.field.key)), 11, _hoisted_14)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [_cache[4] || (_cache[4] = createElementVNode("span", {
|
|
332
|
+
class: "text-[var(--sk-fg-dimmed)]",
|
|
333
|
+
"aria-hidden": "true"
|
|
334
|
+
}, "–", -1)), createElementVNode("span", _hoisted_15, toDisplayString(unref(t)("composites.table.noValue")), 1)], 64))])
|
|
335
|
+
};
|
|
336
|
+
})]), 1032, [
|
|
337
|
+
"sorting",
|
|
338
|
+
"data",
|
|
339
|
+
"columns",
|
|
340
|
+
"get-row-id"
|
|
341
|
+
])], 64))], 8, _hoisted_1);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
});
|
|
345
|
+
//#endregion
|
|
346
|
+
export { _sfc_main as default };
|
|
347
|
+
|
|
348
|
+
//# sourceMappingURL=CompositeTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeTable.js","names":["_openBlock","_createElementBlock","_unref","_createVNode","_createElementVNode","_toDisplayString","_Fragment","_createSlots","_withCtx","_renderList","_createBlock","_createCommentVNode","_normalizeStyle","_createTextVNode","_normalizeClass"],"sources":["../../../../src/features/composites/components/CompositeTable.vue"],"sourcesContent":["<script setup lang=\"ts\">\n// All Bausteine of an editor's document as a sortable, filterable table. Columns beyond the fixed ones derive from the\n// meta fields of the kinds present in the document, so a host kind with fields gets its columns without code changes.\nimport type { Editor } from '@tiptap/core'\nimport { computed, ref } from 'vue'\nimport type { TableColumn } from '../../../vue/kit/types'\nimport { useUiKit } from '../../../vue/kit/use-ui-kit'\nimport { useEditorI18n } from '../../../vue/use-editor-i18n'\nimport type { CompositeRow } from '../rows'\nimport { columnSpecsOf, FILTER_ALL, fieldColumnsOf, fieldOf, fieldText, hasText, isLongText, sortRows, toggled } from '../table-model'\nimport { useCompositeRows } from '../use-composite-rows'\n\nconst props = defineProps<{ editor?: Editor }>()\nconst emit = defineEmits<{ select: [row: CompositeRow] }>()\n\nconst { Badge: UBadge, Button: UButton, Icon: UIcon, Input: UInput, Select: USelect, Table: UTable } = useUiKit()\nconst { t } = useEditorI18n()\n\nconst { rows, tags, kinds } = useCompositeRows(() => props.editor)\n\n// --- Columns ----------------------------------------------------------------------------------------------------\n\nconst fieldColumns = computed(() => fieldColumnsOf(rows.value, kinds.value))\nconst specs = computed(() => columnSpecsOf(fieldColumns.value, t))\n\nconst columns = computed<TableColumn<CompositeRow>[]>(() => specs.value.map(spec => ({\n id: spec.id,\n header: spec.label,\n accessorFn: spec.sort,\n // The table reports `aria-sort` on the header cell only for columns that opt in.\n enableSorting: true,\n meta: { class: {\n th: [spec.id === 'title' ? 'min-w-56' : '', spec.align === 'end' ? 'text-right' : ''].join(' '),\n td: spec.align === 'end' ? 'text-right' : '',\n } },\n})))\n\n// --- Filter -----------------------------------------------------------------------------------------------------\n\nconst search = ref('')\nconst pickedKinds = ref<string[]>([])\nconst pickedTags = ref<string[]>([])\nconst pickedOptions = ref<Record<string, string>>({})\n\n/** One select per `select` field in use; its choices are the union of the options of all kinds that have the key. */\nconst selectFilters = computed(() => fieldColumns.value.flatMap((column) => {\n if (column.field.type !== 'select') return []\n const options = new Map<string, string>()\n for (const row of rows.value) {\n for (const option of fieldOf(row, column.field.key)?.options ?? []) if (!options.has(option.value)) options.set(option.value, option.label)\n }\n return [{\n key: column.field.key,\n label: column.field.label,\n items: [{ label: t('composites.table.filter.all'), value: FILTER_ALL }, ...[...options].map(([value, label]) => ({ label, value }))],\n }]\n}))\n\n// A kind, tag or option that vanished from the document can no longer be unpicked in the UI, so it must not filter either.\nconst activeKinds = computed(() => pickedKinds.value.filter(id => kinds.value.some(kind => kind.id === id)))\nconst activeTags = computed(() => pickedTags.value.filter(tag => tags.value.includes(tag)))\nconst activeOptions = computed(() => selectFilters.value.flatMap((filter) => {\n const value = pickedOptions.value[filter.key]\n return value && filter.items.some(item => item.value === value && value !== FILTER_ALL) ? [[filter.key, value] as const] : []\n}))\nconst needle = computed(() => search.value.trim().toLowerCase())\nconst filterActive = computed(() => activeKinds.value.length > 0 || activeTags.value.length > 0 || activeOptions.value.length > 0 || needle.value !== '')\n\nfunction resetFilters() {\n search.value = ''\n pickedKinds.value = []\n pickedTags.value = []\n pickedOptions.value = {}\n}\n\nconst filtered = computed(() => rows.value.filter((row) => {\n if (activeKinds.value.length && !activeKinds.value.includes(row.kind)) return false\n if (activeTags.value.length && !activeTags.value.every(tag => row.tags.includes(tag))) return false\n if (activeOptions.value.some(([key, value]) => row.meta[key] !== value)) return false\n if (needle.value) {\n const haystack = `${row.title}\\n${row.description}\\n${row.tags.map(tag => `#${tag}`).join(' ')}`.toLowerCase()\n if (!haystack.includes(needle.value)) return false\n }\n return true\n}))\n\n// --- Sorting (client side; the table only reports the state, so the data is ordered here) -------------------------\n\nconst sorting = ref<{ id: string, desc: boolean }[]>([])\nconst activeSort = computed(() => {\n const entry = sorting.value[0]\n const spec = entry && specs.value.find(item => item.id === entry.id)\n return entry && spec ? { id: entry.id, desc: entry.desc, sort: spec.sort } : null\n})\n\n/** Header click cycles ascending → descending → unsorted. */\nfunction cycleSort(id: string) {\n const current = sorting.value[0]\n if (current?.id !== id) sorting.value = [{ id, desc: false }]\n else sorting.value = current.desc ? [] : [{ id, desc: true }]\n}\nconst sortIcon = (id: string) => {\n const current = sorting.value[0]\n if (current?.id !== id) return 'i-lucide-chevrons-up-down'\n return current.desc ? 'i-lucide-arrow-down' : 'i-lucide-arrow-up'\n}\n\nconst sorted = computed(() => {\n const sort = activeSort.value\n return sort ? sortRows(filtered.value, sort.sort, sort.desc) : filtered.value\n})\n\nconst countLabel = computed(() => t(rows.value.length === 1 ? 'composites.table.count.one' : 'composites.table.count.other', { n: sorted.value.length, total: rows.value.length }))\n</script>\n\n<template>\n <section class=\"flex min-h-0 flex-col gap-3\" :aria-label=\"t('composites.table.label')\">\n <div v-if=\"!rows.length\" class=\"mx-auto flex max-w-sm flex-1 flex-col items-center justify-center gap-2 py-16 text-center\">\n <UIcon name=\"i-lucide-table-2\" class=\"size-8 text-[var(--sk-fg-dimmed)]\" />\n <p class=\"text-sm font-medium text-[var(--sk-fg-highlighted)]\">\n {{ t('composites.table.emptyTitle') }}\n </p>\n <p class=\"text-sm text-[var(--sk-muted)]\">\n {{ t('composites.table.emptyText') }}\n </p>\n </div>\n\n <template v-else>\n <div class=\"flex flex-col gap-2\">\n <div class=\"flex flex-wrap items-center gap-2\">\n <UInput\n v-model=\"search\"\n class=\"w-64\"\n size=\"sm\"\n icon=\"i-lucide-search\"\n :placeholder=\"t('composites.table.search.placeholder')\"\n :aria-label=\"t('composites.table.search.label')\"\n >\n <template v-if=\"search\" #trailing>\n <UButton\n color=\"neutral\"\n variant=\"link\"\n size=\"xs\"\n icon=\"i-lucide-x\"\n :aria-label=\"t('composites.table.search.clear')\"\n @click=\"search = ''\"\n />\n </template>\n </UInput>\n\n <div v-for=\"filter in selectFilters\" :key=\"filter.key\" class=\"flex items-center gap-1.5\">\n <span class=\"text-sm text-[var(--sk-muted)]\" aria-hidden=\"true\">{{ filter.label }}</span>\n <USelect\n :model-value=\"pickedOptions[filter.key] ?? FILTER_ALL\"\n class=\"w-36\"\n size=\"sm\"\n :items=\"filter.items\"\n :aria-label=\"filter.label\"\n @update:model-value=\"pickedOptions = { ...pickedOptions, [filter.key]: String($event) }\"\n />\n </div>\n\n <UButton\n v-if=\"filterActive\"\n size=\"sm\"\n color=\"neutral\"\n variant=\"ghost\"\n icon=\"i-lucide-filter-x\"\n :label=\"t('composites.table.filter.reset')\"\n @click=\"resetFilters\"\n />\n <span class=\"ml-auto text-xs tabular-nums text-[var(--sk-muted)]\" role=\"status\">{{ countLabel }}</span>\n </div>\n\n <div v-if=\"kinds.length > 1\" class=\"flex flex-wrap items-center gap-1\" role=\"group\" :aria-label=\"t('composites.table.filter.byKind')\">\n <UButton\n v-for=\"kind in kinds\"\n :key=\"kind.id\"\n size=\"xs\"\n color=\"neutral\"\n :variant=\"activeKinds.includes(kind.id) ? 'solid' : 'outline'\"\n :icon=\"kind.icon\"\n :label=\"kind.label\"\n :aria-pressed=\"activeKinds.includes(kind.id)\"\n @click=\"pickedKinds = toggled(pickedKinds, kind.id)\"\n />\n </div>\n\n <div v-if=\"tags.length\" class=\"flex flex-wrap items-center gap-1\" role=\"group\" :aria-label=\"t('composites.table.filter.byTag')\">\n <UButton\n v-for=\"tag in tags\"\n :key=\"tag\"\n size=\"xs\"\n color=\"neutral\"\n :variant=\"activeTags.includes(tag) ? 'solid' : 'outline'\"\n :label=\"`#${tag}`\"\n :aria-pressed=\"activeTags.includes(tag)\"\n @click=\"pickedTags = toggled(pickedTags, tag)\"\n />\n </div>\n </div>\n\n <UTable\n v-model:sorting=\"sorting\"\n :data=\"sorted\"\n :columns=\"columns\"\n :get-row-id=\"(row: CompositeRow) => row.key\"\n :ui=\"{ th: 'px-3 py-2 text-sm', td: 'px-3 py-2' }\"\n sticky\n class=\"min-h-0 flex-1 rounded-md border border-[var(--sk-border)]\"\n @select=\"(_event: Event, row: { original: CompositeRow }) => emit('select', row.original)\"\n >\n <template v-for=\"spec in specs\" :key=\"spec.id\" #[`${spec.id}-header`]>\n <button\n type=\"button\"\n class=\"-mx-1.5 inline-flex cursor-pointer items-center gap-1 rounded px-1.5 py-0.5 font-semibold hover:bg-[var(--sk-bg-elevated)] focus-visible:outline-2 focus-visible:outline-[var(--sk-primary)]\"\n @click=\"cycleSort(spec.id)\"\n >\n {{ spec.label }}\n <UIcon :name=\"sortIcon(spec.id)\" class=\"size-3.5\" :class=\"activeSort?.id === spec.id ? 'text-[var(--sk-fg-highlighted)]' : 'text-[var(--sk-fg-dimmed)]'\" />\n </button>\n </template>\n\n <template #title-cell=\"{ row }: { row: { original: CompositeRow } }\">\n <div class=\"flex min-w-0 items-center gap-1.5\" :style=\"{ paddingLeft: `${row.original.depth * 1.25}rem` }\">\n <UIcon :name=\"row.original.icon\" class=\"size-4 shrink-0 text-[var(--sk-muted)]\" />\n <span v-if=\"hasText(row.original.title)\" class=\"truncate font-medium text-[var(--sk-fg-highlighted)]\">{{ row.original.title }}</span>\n <span v-else class=\"truncate text-[var(--sk-muted)]\">{{ t('composites.untitled') }}</span>\n </div>\n </template>\n <template #kind-cell=\"{ row }: { row: { original: CompositeRow } }\">\n {{ row.original.kindLabel }}\n </template>\n <template v-for=\"column in fieldColumns\" :key=\"column.id\" #[`${column.id}-cell`]=\"{ row }: { row: { original: CompositeRow } }\">\n <span\n v-if=\"fieldText(row.original, column.field.key)\"\n class=\"block\"\n :class=\"[column.field.type === 'number' || column.field.type === 'date' ? 'tabular-nums' : '', isLongText(column.field) ? 'max-w-64 truncate' : '']\"\n :title=\"isLongText(column.field) ? fieldText(row.original, column.field.key) : undefined\"\n >{{ fieldText(row.original, column.field.key) }}</span>\n <template v-else>\n <span class=\"text-[var(--sk-fg-dimmed)]\" aria-hidden=\"true\">–</span>\n <span class=\"sr-only\">{{ t('composites.table.noValue') }}</span>\n </template>\n </template>\n <template #tags-cell=\"{ row }: { row: { original: CompositeRow } }\">\n <div v-if=\"row.original.tags.length\" class=\"flex flex-wrap gap-1\">\n <UBadge v-for=\"tag in row.original.tags\" :key=\"tag\" color=\"neutral\" variant=\"subtle\" size=\"sm\" :label=\"`#${tag}`\" />\n </div>\n <template v-else>\n <span class=\"text-[var(--sk-fg-dimmed)]\" aria-hidden=\"true\">–</span>\n <span class=\"sr-only\">{{ t('composites.table.noTags') }}</span>\n </template>\n </template>\n <template #summary-cell=\"{ row }: { row: { original: CompositeRow } }\">\n <template v-if=\"hasText(row.original.description)\">\n <span class=\"inline-block size-2 rounded-full bg-[var(--sk-primary)]\" aria-hidden=\"true\" :title=\"row.original.description\" />\n <span class=\"sr-only\">{{ t('composites.table.summaryPresent') }}</span>\n </template>\n <template v-else>\n <span class=\"text-[var(--sk-fg-dimmed)]\" aria-hidden=\"true\">–</span>\n <span class=\"sr-only\">{{ t('composites.summary.none') }}</span>\n </template>\n </template>\n\n <template #empty>\n <div class=\"flex flex-col items-center gap-2 py-6\">\n <p class=\"text-sm text-[var(--sk-muted)]\">\n {{ t('composites.table.filter.noMatch') }}\n </p>\n <UButton\n size=\"sm\"\n color=\"neutral\"\n variant=\"outline\"\n icon=\"i-lucide-filter-x\"\n :label=\"t('composites.table.filter.reset')\"\n @click=\"resetFilters\"\n />\n </div>\n </template>\n </UTable>\n </template>\n </section>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYA,MAAM,QAAQ;EACd,MAAM,OAAO;EAEb,MAAM,EAAE,OAAO,QAAQ,QAAQ,SAAS,MAAM,OAAO,OAAO,QAAQ,QAAQ,SAAS,OAAO,WAAW,SAAS;EAChH,MAAM,EAAE,MAAM,cAAc;EAE5B,MAAM,EAAE,MAAM,MAAM,UAAU,uBAAuB,MAAM,MAAM;EAIjE,MAAM,eAAe,eAAe,eAAe,KAAK,OAAO,MAAM,KAAK,CAAC;EAC3E,MAAM,QAAQ,eAAe,cAAc,aAAa,OAAO,CAAC,CAAC;EA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/components/CompositeTable.vue.d.ts
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
editor?: Editor;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
select: (row: CompositeRow) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
onSelect?: ((row: CompositeRow) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { _default as default };
|
|
15
|
+
//# sourceMappingURL=CompositeTable.vue.d.ts.map
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { metadataOf } from "../../../core/metadata.js";
|
|
2
|
+
import { METADATA_LIST } from "../../../core/metadata-types.js";
|
|
3
|
+
import { useUiKit } from "../../../vue/kit/use-ui-kit.js";
|
|
4
|
+
import { useEditorI18n } from "../../../vue/use-editor-i18n.js";
|
|
5
|
+
import { setCompositeTags } from "../rows.js";
|
|
6
|
+
import { normalizeTagName } from "../../../core/tag-name.js";
|
|
7
|
+
import { Fragment, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, onBeforeUnmount, openBlock, ref, toDisplayString, unref, watch, withCtx } from "vue";
|
|
8
|
+
//#region src/features/composites/components/CompositeTagsEditor.vue
|
|
9
|
+
/** Tags of one Baustein as an input menu with suggestions from the metadata registry, writing through `setCompositeTags`. */
|
|
10
|
+
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
11
|
+
__name: "CompositeTagsEditor",
|
|
12
|
+
props: {
|
|
13
|
+
editor: {},
|
|
14
|
+
row: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { InputMenu: UInputMenu } = useUiKit();
|
|
19
|
+
const { t } = useEditorI18n();
|
|
20
|
+
const term = ref("");
|
|
21
|
+
const items = ref([]);
|
|
22
|
+
let timer;
|
|
23
|
+
let pending;
|
|
24
|
+
function scheduleSearch() {
|
|
25
|
+
clearTimeout(timer);
|
|
26
|
+
timer = setTimeout(async () => {
|
|
27
|
+
pending?.abort();
|
|
28
|
+
const controller = pending = new AbortController();
|
|
29
|
+
try {
|
|
30
|
+
const found = await metadataOf(props.editor).search(METADATA_LIST.hashtags, {
|
|
31
|
+
query: term.value,
|
|
32
|
+
editor: props.editor,
|
|
33
|
+
signal: controller.signal
|
|
34
|
+
});
|
|
35
|
+
if (!controller.signal.aborted) items.value = found.map((item) => item.label);
|
|
36
|
+
} catch (error) {
|
|
37
|
+
if (!controller.signal.aborted) console.warn("Tag-Vorschläge konnten nicht geladen werden", error);
|
|
38
|
+
}
|
|
39
|
+
}, 150);
|
|
40
|
+
}
|
|
41
|
+
watch(term, scheduleSearch);
|
|
42
|
+
onBeforeUnmount(() => {
|
|
43
|
+
clearTimeout(timer);
|
|
44
|
+
pending?.abort();
|
|
45
|
+
});
|
|
46
|
+
function onTags(value) {
|
|
47
|
+
setCompositeTags(props.editor, props.row, Array.isArray(value) ? value.filter((tag) => typeof tag === "string") : []);
|
|
48
|
+
}
|
|
49
|
+
function onCreate(raw) {
|
|
50
|
+
const name = normalizeTagName(raw);
|
|
51
|
+
term.value = "";
|
|
52
|
+
if (!name || props.row.tags.includes(name)) return;
|
|
53
|
+
setCompositeTags(props.editor, props.row, [...props.row.tags, name]);
|
|
54
|
+
if (!items.value.includes(name)) metadataOf(props.editor).create(METADATA_LIST.hashtags, {
|
|
55
|
+
id: name,
|
|
56
|
+
label: name
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" `position` is required in the object form of `create-item`: InputMenu renders the create row only for 'top' or 'bottom'. "), createVNode(unref(UInputMenu), {
|
|
61
|
+
"search-term": term.value,
|
|
62
|
+
"onUpdate:searchTerm": _cache[0] || (_cache[0] = ($event) => term.value = $event),
|
|
63
|
+
multiple: "",
|
|
64
|
+
"create-item": {
|
|
65
|
+
position: "bottom",
|
|
66
|
+
when: "always"
|
|
67
|
+
},
|
|
68
|
+
"model-value": __props.row.tags,
|
|
69
|
+
items: items.value,
|
|
70
|
+
"ignore-filter": "",
|
|
71
|
+
placeholder: unref(t)("composites.tags.placeholder"),
|
|
72
|
+
"aria-label": unref(t)("composites.tags.label"),
|
|
73
|
+
size: "sm",
|
|
74
|
+
icon: "i-lucide-hash",
|
|
75
|
+
class: "w-full",
|
|
76
|
+
"onUpdate:modelValue": onTags,
|
|
77
|
+
"onUpdate:open": _cache[1] || (_cache[1] = (open) => open && scheduleSearch()),
|
|
78
|
+
onCreate
|
|
79
|
+
}, {
|
|
80
|
+
"create-item-label": withCtx(({ item }) => [createTextVNode(toDisplayString(unref(t)("composites.tags.create", { tag: unref(normalizeTagName)(item) || item })), 1)]),
|
|
81
|
+
_: 1
|
|
82
|
+
}, 8, [
|
|
83
|
+
"search-term",
|
|
84
|
+
"model-value",
|
|
85
|
+
"items",
|
|
86
|
+
"placeholder",
|
|
87
|
+
"aria-label"
|
|
88
|
+
])], 2112);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
//#endregion
|
|
93
|
+
export { _sfc_main as default };
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=CompositeTagsEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeTagsEditor.js","names":["_openBlock","_createElementBlock","_Fragment","_createCommentVNode","_createVNode","_unref","_withCtx","_createTextVNode","_toDisplayString"],"sources":["../../../../src/features/composites/components/CompositeTagsEditor.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Editor } from '@tiptap/core'\nimport { onBeforeUnmount, ref, watch } from 'vue'\nimport { metadataOf } from '../../../core/metadata'\nimport { METADATA_LIST } from '../../../core/metadata-types'\nimport { normalizeTagName } from '../../../core/tag-name'\nimport { useUiKit } from '../../../vue/kit/use-ui-kit'\nimport { useEditorI18n } from '../../../vue/use-editor-i18n'\nimport { type CompositeRow, setCompositeTags } from '../rows'\n\n/** Tags of one Baustein as an input menu with suggestions from the metadata registry, writing through `setCompositeTags`. */\nconst props = defineProps<{ editor: Editor, row: CompositeRow }>()\n\nconst { InputMenu: UInputMenu } = useUiKit()\nconst { t } = useEditorI18n()\n\nconst term = ref('')\nconst items = ref<string[]>([])\n// Suggestions are loaded when the menu opens and 150 ms after typing pauses; a newer search aborts the older one.\nlet timer: ReturnType<typeof setTimeout> | undefined\nlet pending: AbortController | undefined\n\nfunction scheduleSearch() {\n clearTimeout(timer)\n timer = setTimeout(async () => {\n pending?.abort()\n const controller = pending = new AbortController()\n try {\n const found = await metadataOf(props.editor).search(METADATA_LIST.hashtags, { query: term.value, editor: props.editor, signal: controller.signal })\n if (!controller.signal.aborted) items.value = found.map(item => item.label)\n }\n catch (error) {\n if (!controller.signal.aborted) console.warn('Tag-Vorschläge konnten nicht geladen werden', error)\n }\n }, 150)\n}\nwatch(term, scheduleSearch)\nonBeforeUnmount(() => {\n clearTimeout(timer)\n pending?.abort()\n})\n\nfunction onTags(value: unknown) {\n setCompositeTags(props.editor, props.row, Array.isArray(value) ? value.filter((tag): tag is string => typeof tag === 'string') : [])\n}\n\n// „Neu Tag“ → `neu-tag`; a name that is already set is ignored.\nfunction onCreate(raw: string) {\n const name = normalizeTagName(raw)\n term.value = ''\n if (!name || props.row.tags.includes(name)) return\n setCompositeTags(props.editor, props.row, [...props.row.tags, name])\n if (!items.value.includes(name)) metadataOf(props.editor).create(METADATA_LIST.hashtags, { id: name, label: name })\n}\n</script>\n\n<template>\n <!-- `position` is required in the object form of `create-item`: InputMenu renders the create row only for 'top' or 'bottom'. -->\n <UInputMenu\n v-model:search-term=\"term\"\n multiple\n :create-item=\"{ position: 'bottom', when: 'always' }\"\n :model-value=\"row.tags\"\n :items=\"items\"\n ignore-filter\n :placeholder=\"t('composites.tags.placeholder')\"\n :aria-label=\"t('composites.tags.label')\"\n size=\"sm\"\n icon=\"i-lucide-hash\"\n class=\"w-full\"\n @update:model-value=\"onTags\"\n @update:open=\"(open: boolean) => open && scheduleSearch()\"\n @create=\"onCreate\"\n >\n <template #create-item-label=\"{ item }: { item: string }\">\n {{ t('composites.tags.create', { tag: normalizeTagName(item) || item }) }}\n </template>\n </UInputMenu>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;EAWA,MAAM,QAAQ;EAEd,MAAM,EAAE,WAAW,eAAe,SAAS;EAC3C,MAAM,EAAE,MAAM,cAAc;EAE5B,MAAM,OAAO,IAAI,EAAE;EACnB,MAAM,QAAQ,IAAc,CAAC,CAAC;EAE9B,IAAI;EACJ,IAAI;EAEJ,SAAS,iBAAiB;GACxB,aAAa,KAAK;GAClB,QAAQ,WAAW,YAAY;IAC7B,SAAS,MAAM;IACf,MAAM,aAAa,UAAU,IAAI,gBAAgB;IACjD,IAAI;KACF,MAAM,QAAQ,MAAM,WAAW,MAAM,MAAM,CAAC,CAAC,OAAO,cAAc,UAAU;MAAE,OAAO,KAAK;MAAO,QAAQ,MAAM;MAAQ,QAAQ,WAAW;KAAO,CAAC;KAClJ,IAAI,CAAC,WAAW,OAAO,SAAS,MAAM,QAAQ,MAAM,KAAI,SAAQ,KAAK,KAAK;IAC5E,SACO,OAAO;KACZ,IAAI,CAAC,WAAW,OAAO,SAAS,QAAQ,KAAK,+CAA+C,KAAK;IACnG;GACF,GAAG,GAAG;EACR;EACA,MAAM,MAAM,cAAc;EAC1B,sBAAsB;GACpB,aAAa,KAAK;GAClB,SAAS,MAAM;EACjB,CAAC;EAED,SAAS,OAAO,OAAgB;GAC9B,iBAAiB,MAAM,QAAQ,MAAM,KAAK,MAAM,QAAQ,KAAK,IAAI,MAAM,QAAQ,QAAuB,OAAO,QAAQ,QAAQ,IAAI,CAAC,CAAC;EACrI;EAGA,SAA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