eddyter 1.3.67 → 1.3.69

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { y as a, z as r, G as t, H as s, I as o, J as d, K as v, M as u, N as f, O as n, P as l, Q as w } from "./index-ZDUb0XYv.js";
1
+ import { y as a, z as r, G as t, H as s, I as o, J as d, K as v, M as u, N as f, O as n, P as l, Q as w } from "./index-D0EB4Nvn.js";
2
2
  export {
3
3
  a as ConfigurableEditor,
4
4
  r as ConfigurableEditorWithAuth,
@@ -17,6 +17,8 @@ export declare class CommentedTextNode extends TextNode {
17
17
  exportJSON(): SerializedCommentedTextNode;
18
18
  createDOM(config: EditorConfig): HTMLElement;
19
19
  updateDOM(): false;
20
+ canInsertTextBefore(): boolean;
21
+ canInsertTextAfter(): boolean;
20
22
  static importDOM(): DOMConversionMap | null;
21
23
  exportDOM(): DOMExportOutput;
22
24
  getCommentId(): string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Dynamic font loader for the editor package.
3
+ *
4
+ * When the editor is integrated into an external project, that project may not
5
+ * load the Google Fonts the editor uses (Geist for UI, Inter/Manrope/etc. for
6
+ * content). This utility detects which fonts are missing and injects a single
7
+ * <link> to the Google Fonts API so they become available everywhere in the
8
+ * editor — toolbars, dropdowns, slash-commands, content area, etc.
9
+ *
10
+ */
11
+ /**
12
+ * Load all Google Fonts required by the editor.
13
+ *
14
+ * @param contentFonts - Font names used for content (from the font-family
15
+ * dropdown, editorConfig, etc.). System fonts are filtered out automatically.
16
+ */
17
+ export declare function loadEditorFonts(contentFonts?: string[]): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eddyter",
3
3
  "private": false,
4
- "version": "1.3.67",
4
+ "version": "1.3.69",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "keywords": [
@@ -41,8 +41,8 @@
41
41
  "./style.css": "./dist/assets/style.css"
42
42
  },
43
43
  "peerDependencies": {
44
- "react": "^18.2.0",
45
- "react-dom": "^18.2.0"
44
+ "react": "^18.2.0 || ^19.0.0",
45
+ "react-dom": "^18.2.0 || ^19.0.0"
46
46
  },
47
47
  "scripts": {
48
48
  "dev": "vite",