@skaile/forge-editor 6.0.0 → 6.0.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.0.1 - 2026-10-28
4
+
5
+ ### Fixed
6
+
7
+ - The optional `@skaile/forge-app-actions` peer accepts `^0.4.0`, so a host on forge-app-actions 0.4 (for example through `@skaile/forge-app`) installs the editor without an ERESOLVE override. Tested against 0.4.0.
8
+
3
9
  ## 6.0.0 - 2026-10-28
4
10
 
5
11
  ### Changed (breaking)
@@ -11,16 +11,16 @@ type __VLS_Props = {
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
12
12
  view: import("vue").ShallowRef<EditorView | undefined, EditorView | undefined>;
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ ready: (view: EditorView) => any;
14
15
  "update:modelValue": (text: string) => any;
15
16
  save: (text: string) => any;
16
- ready: (view: EditorView) => any;
17
17
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onReady?: ((view: EditorView) => any) | undefined;
18
19
  "onUpdate:modelValue"?: ((text: string) => any) | undefined;
19
20
  onSave?: ((text: string) => any) | undefined;
20
- onReady?: ((view: EditorView) => any) | undefined;
21
21
  }>, {
22
- modelValue: string;
23
22
  editable: boolean;
23
+ modelValue: string;
24
24
  wordWrap: boolean;
25
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  declare const _default: typeof __VLS_export;
@@ -32,16 +32,16 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
32
32
  binary?: (props: typeof __VLS_26) => any;
33
33
  };
34
34
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
+ ready: (target: DocumentSurfaceTarget) => any;
35
36
  "update:modelValue": (text: string) => any;
36
37
  save: (text: string) => any;
37
- ready: (target: DocumentSurfaceTarget) => any;
38
38
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
39
+ onReady?: ((target: DocumentSurfaceTarget) => any) | undefined;
39
40
  "onUpdate:modelValue"?: ((text: string) => any) | undefined;
40
41
  onSave?: ((text: string) => any) | undefined;
41
- onReady?: ((target: DocumentSurfaceTarget) => any) | undefined;
42
42
  }>, {
43
- modelValue: string;
44
43
  editable: boolean;
44
+ modelValue: string;
45
45
  wordWrap: boolean;
46
46
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
47
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -41,29 +41,29 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
41
41
  settingsOpen: import("vue").WritableComputedRef<boolean, boolean>;
42
42
  settingsTab: import("vue").WritableComputedRef<string | undefined, string | undefined>;
43
43
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
- "update:modelValue": (markdown: string) => any;
45
- ready: (editor: Editor) => any;
46
- settingsOpen: (tab?: string | undefined) => any;
47
44
  "update:sidebarOpen": (value: boolean) => any;
48
45
  "update:commentsOpen": (value: boolean) => any;
49
- frontmatter: (frontmatter: string | null) => any;
46
+ ready: (editor: Editor) => any;
47
+ "update:modelValue": (markdown: string) => any;
50
48
  metadataCreate: (list: string, item: MetadataItem) => any;
51
49
  contentError: (error: Error) => any;
50
+ settingsOpen: (tab?: string | undefined) => any;
51
+ frontmatter: (frontmatter: string | null) => any;
52
52
  diagnostics: (diagnostics: MarkdownDiagnostic[]) => any;
53
53
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
54
- "onUpdate:modelValue"?: ((markdown: string) => any) | undefined;
55
- onReady?: ((editor: Editor) => any) | undefined;
56
- onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
57
54
  "onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
58
55
  "onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
59
- onFrontmatter?: ((frontmatter: string | null) => any) | undefined;
56
+ onReady?: ((editor: Editor) => any) | undefined;
57
+ "onUpdate:modelValue"?: ((markdown: string) => any) | undefined;
60
58
  onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
61
59
  onContentError?: ((error: Error) => any) | undefined;
60
+ onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
61
+ onFrontmatter?: ((frontmatter: string | null) => any) | undefined;
62
62
  onDiagnostics?: ((diagnostics: MarkdownDiagnostic[]) => any) | undefined;
63
63
  }>, {
64
- modelValue: string;
65
64
  editable: boolean;
66
65
  settingsUi: "internal" | "external";
66
+ modelValue: string;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
68
68
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
69
69
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
1
  import { isTypedBlock, newTypedBlockJSON } from "../core/typed-block.js";
2
2
  import { findBlockById } from "../core/schema/block-ids.js";
3
3
  import { blockTypesOf, compositeBasketsOf } from "../features/composites/nodes.js";
4
+ import { revealBlockInEditor } from "../outline/heading-outline.js";
4
5
  import { pickFiles } from "../features/media/upload.js";
5
6
  import { compositeFocusOf } from "../features/composites/focus.js";
6
7
  import { moveBlockInto, moveIntoVerdict } from "../features/composites/outline.js";
7
- import { revealBlockInEditor } from "../outline/heading-outline.js";
8
8
  import { readOutline } from "./tree-items.js";
9
9
  //#region src/tree/tree-host.ts
10
10
  /** The model's view of `editor`: its Block types, outline and move verdicts (worded in the language of `t`), read live. Create it once per editor. */
@@ -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
- "update:modelValue": (content: JSONContent) => any;
86
- ready: (editor: Editor) => any;
87
- settingsOpen: (tab?: string | undefined) => any;
88
85
  "update:sidebarOpen": (value: boolean) => any;
89
86
  "update:commentsOpen": (value: boolean) => any;
87
+ ready: (editor: Editor) => any;
88
+ "update:modelValue": (content: JSONContent) => any;
90
89
  metadataCreate: (list: string, item: MetadataItem) => any;
91
90
  contentError: (error: Error) => any;
91
+ settingsOpen: (tab?: string | undefined) => any;
92
92
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
93
- "onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
94
- onReady?: ((editor: Editor) => any) | undefined;
95
- onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
96
93
  "onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
97
94
  "onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
95
+ onReady?: ((editor: Editor) => any) | undefined;
96
+ "onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
98
97
  onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
99
98
  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
- "update:modelValue": (content: JSONContent) => any;
45
- ready: (editor: Editor) => any;
46
- settingsOpen: (tab?: string | undefined) => any;
47
44
  "update:sidebarOpen": (value: boolean) => any;
48
45
  "update:commentsOpen": (value: boolean) => any;
46
+ ready: (editor: Editor) => any;
47
+ "update:modelValue": (content: JSONContent) => any;
49
48
  metadataCreate: (list: string, item: MetadataItem) => any;
50
49
  contentError: (error: Error) => any;
50
+ settingsOpen: (tab?: string | undefined) => any;
51
51
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
52
- "onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
53
- onReady?: ((editor: Editor) => any) | undefined;
54
- onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
55
52
  "onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
56
53
  "onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
54
+ onReady?: ((editor: Editor) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
57
56
  onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
58
57
  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
- "update:modelValue": (content: JSONContent) => any;
47
- ready: (editor: Editor) => any;
48
- settingsOpen: (tab?: string | undefined) => any;
49
46
  "update:sidebarOpen": (value: boolean) => any;
50
47
  "update:commentsOpen": (value: boolean) => any;
48
+ ready: (editor: Editor) => any;
49
+ "update:modelValue": (content: JSONContent) => any;
51
50
  metadataCreate: (list: string, item: MetadataItem) => any;
52
51
  contentError: (error: Error) => any;
52
+ settingsOpen: (tab?: string | undefined) => any;
53
53
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
54
- "onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
55
- onReady?: ((editor: Editor) => any) | undefined;
56
- onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
57
54
  "onUpdate:sidebarOpen"?: ((value: boolean) => any) | undefined;
58
55
  "onUpdate:commentsOpen"?: ((value: boolean) => any) | undefined;
56
+ onReady?: ((editor: Editor) => any) | undefined;
57
+ "onUpdate:modelValue"?: ((content: JSONContent) => any) | undefined;
59
58
  onMetadataCreate?: ((list: string, item: MetadataItem) => any) | undefined;
60
59
  onContentError?: ((error: Error) => any) | undefined;
60
+ onSettingsOpen?: ((tab?: string | undefined) => any) | undefined;
61
61
  }>, {
62
62
  editable: boolean;
63
63
  settingsUi: "internal" | "external";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skaile/forge-editor",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
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",
@@ -702,7 +702,7 @@
702
702
  "@iconify/vue": "^5.0.3",
703
703
  "@lezer/highlight": "^1.2.1",
704
704
  "@nuxt/ui": "^4.11.1",
705
- "@skaile/forge-app-actions": "^0.1.0 || ^0.2.0 || ^0.3.0",
705
+ "@skaile/forge-app-actions": "^0.1.0 || ^0.2.0 || ^0.3.0 || ^0.4.0",
706
706
  "@skaile/forge-chat": "^0.2.0",
707
707
  "@tiptap/core": "^3.31.3",
708
708
  "@tiptap/pm": "^3.31.3",
@@ -766,7 +766,7 @@
766
766
  "@iconify/react": "^6.0.2",
767
767
  "@iconify/vue": "^5.0.3",
768
768
  "@lezer/highlight": "^1.2.1",
769
- "@skaile/forge-app-actions": "^0.3.0",
769
+ "@skaile/forge-app-actions": "^0.4.0",
770
770
  "@skaile/forge-chat": "^0.2.3",
771
771
  "@tiptap/react": "3.31.3",
772
772
  "@types/react": "^19.3.0",