@skaile/forge-editor 6.4.0 → 6.4.2
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 +16 -0
- package/dist/code/CodeSurface.vue.d.ts +2 -2
- package/dist/core/block-index.js +3 -2
- package/dist/core/block-index.js.map +1 -1
- package/dist/core/document-markdown.d.ts +11 -6
- package/dist/core/document-markdown.js +34 -23
- package/dist/core/document-markdown.js.map +1 -1
- package/dist/core/soft-line-breaks.js +44 -0
- package/dist/core/soft-line-breaks.js.map +1 -0
- package/dist/document/DocumentSurface.vue.d.ts +2 -2
- package/dist/features/ai/components/AiReviewBar.js +1 -1
- package/dist/features/ai/components/AiSelectionMenu.js +1 -1
- package/dist/features/ai/components/AiSidebar.js +2 -2
- package/dist/features/ai/components/DocumentChatAnswer.js +1 -1
- package/dist/features/ai/components/SettingsModelProfiles.js +1 -1
- package/dist/features/ai/feature.js +1 -1
- package/dist/features/ai/index.js +7 -7
- package/dist/features/ai/react/AiSelectionMenu.js +4 -4
- package/dist/features/ai/react/AiSidebar.js +4 -4
- package/dist/features/ai/react/DocumentChatOps.js +1 -1
- package/dist/features/ai/react/ModelQuickSwitch.js +1 -1
- package/dist/features/ai/react/SettingsModelProfiles.js +1 -1
- package/dist/features/ai/react/use-ai-assistant.js +1 -1
- package/dist/features/ai/react/use-document-chat.js +1 -1
- package/dist/features/ai/use-ai-assistant.js +2 -2
- package/dist/features/ai/use-document-chat.js +1 -1
- package/dist/features/ai/vue.js +1 -1
- package/dist/features/authors/components/AuthorColorsPanel.js +1 -1
- package/dist/features/authors/components/SettingsAuthorsTab.js +1 -1
- package/dist/features/authors/index.js +1 -1
- package/dist/features/authors/react/AuthorColorsPanel.js +2 -2
- package/dist/features/authors/react/SettingsAuthorsTab.js +1 -1
- package/dist/features/authors/vue.js +1 -1
- package/dist/features/block-ui/index.js +1 -1
- package/dist/features/block-ui/react/BlockActionsOverlay.js +1 -1
- package/dist/features/block-ui/vue.js +1 -1
- package/dist/features/comments/react/CommentThreadView.js +1 -1
- package/dist/features/composites/components/ReferenceListFieldEditor.js +1 -1
- package/dist/features/composites/components/SettingsEditingTab.js +1 -1
- package/dist/features/composites/index.js +5 -5
- package/dist/features/composites/react/BibliographyEditor.js +1 -1
- package/dist/features/composites/react/CompositeChrome.js +1 -1
- package/dist/features/composites/react/CompositeDetails.js +1 -1
- package/dist/features/composites/react/CompositeInspector.js +3 -3
- package/dist/features/composites/react/CompositeTable.js +1 -1
- package/dist/features/composites/react/ReferenceListFieldEditor.js +1 -1
- package/dist/features/composites/react/ReferenceView.js +1 -1
- package/dist/features/composites/react/SettingsEditingTab.js +3 -3
- package/dist/features/composites/react.js +2 -2
- package/dist/features/composites/vue.js +1 -1
- package/dist/features/pruefung/vue.js +1 -1
- package/dist/features/themes/vue.js +1 -1
- package/dist/features/transfer/vue.js +1 -1
- package/dist/integrations/composite-ai/index.js +1 -1
- package/dist/markdown/MarkdownSurface.vue.d.ts +6 -6
- package/dist/react/EditorToolbar.js +2 -2
- package/dist/react/compose.js +2 -2
- package/dist/react/index.js +1 -1
- package/dist/search/react/SearchPanel.js +1 -1
- package/dist/server/document-tools.js +2 -18
- package/dist/server/document-tools.js.map +1 -1
- package/dist/tree/react/DocumentTree.js +3 -3
- package/dist/tree/react/use-tree-model.js +2 -2
- package/dist/vue/AdvancedEditor.vue.d.ts +4 -4
- package/dist/vue/SimpleEditor.vue.d.ts +4 -4
- package/dist/vue/components/EditorSurface.vue.d.ts +4 -4
- package/dist/vue/compose.js +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@ import { useEditorContext } from "../../react/context.js";
|
|
|
2
2
|
import { Icon } from "../../react/Icon.js";
|
|
3
3
|
import { useEditorI18n } from "../../react/use-editor-i18n.js";
|
|
4
4
|
import { useEditorSettings } from "../../react/settings.js";
|
|
5
|
-
import { useNotifier } from "../../react/use-notifier.js";
|
|
6
|
-
import { useFileImport } from "../../features/media/react.js";
|
|
7
5
|
import { treeView } from "../tree-view-model.js";
|
|
8
6
|
import { createTreeModel } from "../tree-model.js";
|
|
7
|
+
import { useNotifier } from "../../react/use-notifier.js";
|
|
8
|
+
import { useFileImport } from "../../features/media/react.js";
|
|
9
9
|
import { createTreeExecutor, treeEditorOf } from "../tree-host.js";
|
|
10
10
|
import { createElement, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { toast } from "sonner";
|
|
@@ -82,21 +82,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
82
82
|
editor: import("vue").ComputedRef<Editor | undefined>;
|
|
83
83
|
preset: ComposedEditor<Component>;
|
|
84
84
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
85
|
+
settingsOpen: (tab?: string | undefined) => any;
|
|
85
86
|
"update:sidebarOpen": (value: boolean) => any;
|
|
86
87
|
"update:commentsOpen": (value: boolean) => any;
|
|
87
|
-
ready: (editor: Editor) => any;
|
|
88
88
|
"update:modelValue": (content: JSONContent) => any;
|
|
89
|
+
ready: (editor: Editor) => any;
|
|
89
90
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
90
91
|
contentError: (error: Error) => any;
|
|
91
|
-
settingsOpen: (tab?: string | undefined) => any;
|
|
92
92
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
93
|
+
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
93
94
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
94
95
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
95
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
96
96
|
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
97
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
97
98
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
98
99
|
onContentError?: ((error: Error) => any) | undefined;
|
|
99
|
-
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
100
100
|
}>, {
|
|
101
101
|
content: ContentLevel | readonly FeatureId[];
|
|
102
102
|
ai: boolean;
|
|
@@ -41,21 +41,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
41
41
|
editor: import("vue").ComputedRef<Editor | undefined>;
|
|
42
42
|
preset: EditorPreset<Component>;
|
|
43
43
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
44
|
+
settingsOpen: (tab?: string | undefined) => any;
|
|
44
45
|
"update:sidebarOpen": (value: boolean) => any;
|
|
45
46
|
"update:commentsOpen": (value: boolean) => any;
|
|
46
|
-
ready: (editor: Editor) => any;
|
|
47
47
|
"update:modelValue": (content: JSONContent) => any;
|
|
48
|
+
ready: (editor: Editor) => any;
|
|
48
49
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
49
50
|
contentError: (error: Error) => any;
|
|
50
|
-
settingsOpen: (tab?: string | undefined) => any;
|
|
51
51
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
52
|
+
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
52
53
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
53
54
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
54
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
55
55
|
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
56
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
56
57
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
57
58
|
onContentError?: ((error: Error) => any) | undefined;
|
|
58
|
-
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
editable: boolean;
|
|
61
61
|
settingsUi: "internal" | "external";
|
|
@@ -43,21 +43,21 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
43
43
|
settingsOpen: import("vue").Ref<boolean, boolean>;
|
|
44
44
|
settingsTab: import("vue").Ref<string | undefined, string | undefined>;
|
|
45
45
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
46
|
+
settingsOpen: (tab?: string | undefined) => any;
|
|
46
47
|
"update:sidebarOpen": (value: boolean) => any;
|
|
47
48
|
"update:commentsOpen": (value: boolean) => any;
|
|
48
|
-
ready: (editor: Editor) => any;
|
|
49
49
|
"update:modelValue": (content: JSONContent) => any;
|
|
50
|
+
ready: (editor: Editor) => any;
|
|
50
51
|
metadataCreate: (list: string, item: MetadataItem) => any;
|
|
51
52
|
contentError: (error: Error) => any;
|
|
52
|
-
settingsOpen: (tab?: string | undefined) => any;
|
|
53
53
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
54
|
+
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
54
55
|
"onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
|
|
55
56
|
"onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
|
|
56
|
-
onReady?: ((editor: Editor) => any) | undefined;
|
|
57
57
|
"onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
|
|
58
|
+
onReady?: ((editor: Editor) => any) | undefined;
|
|
58
59
|
onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
|
|
59
60
|
onContentError?: ((error: Error) => any) | undefined;
|
|
60
|
-
onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
|
|
61
61
|
}>, {
|
|
62
62
|
editable: boolean;
|
|
63
63
|
settingsUi: "internal" | "external";
|
package/dist/vue/compose.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { coreUiFeature } from "../core/core-feature.js";
|
|
2
|
-
import { AI_BINDINGS, layerCompositions } from "../presets/layer.js";
|
|
3
2
|
import { mediaFeature } from "../features/media/vue.js";
|
|
4
3
|
import _sfc_main from "./components/EditorCommandPalette.js";
|
|
5
4
|
import { aiFeature } from "../features/ai/vue.js";
|
|
@@ -13,6 +12,7 @@ import { pruefungFeature } from "../features/pruefung/vue.js";
|
|
|
13
12
|
import { exploreFeature } from "../features/explore/vue.js";
|
|
14
13
|
import { transferFeature } from "../features/transfer/vue.js";
|
|
15
14
|
import { transcriptFeature } from "../features/transcript/vue.js";
|
|
15
|
+
import { AI_BINDINGS, layerCompositions } from "../presets/layer.js";
|
|
16
16
|
//#region src/vue/compose.ts
|
|
17
17
|
/** The Vue bindings of the UI-bound catalog features (`presets/catalog`: the rows with a `ui` part). */
|
|
18
18
|
const VUE_BINDINGS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skaile/forge-editor",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vue and React editor library on TipTap v3 (Vue: Nuxt UI; React: shadcn/ui): framework-free features with Vue and React bindings, simple and advanced presets, tree-shakeable entries. Built ESM with type declarations.",
|
|
6
6
|
"license": "MIT",
|