@fileverse-dev/ddoc 4.3.3 → 4.3.5

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as a, a as o, E as t, P as d, f as r, i, g as n, l as m, h as E, m as c, e as l, n as p, c as u, d as C, u as f, v as D } from "./index-OMWkDiQy.mjs";
1
+ import { D as a, a as o, E as t, P as d, f as r, i, g as n, l as m, h as E, m as c, e as l, n as p, c as u, d as C, u as f, v as D } from "./index-CQS9WbQc.mjs";
2
2
  export {
3
3
  a as DdocEditor,
4
4
  o as DdocExportModal,
@@ -1,9 +1,9 @@
1
1
  var Vr = Object.defineProperty;
2
2
  var Wr = (t, e, O) => e in t ? Vr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: O }) : t[e] = O;
3
3
  var gt = (t, e, O) => Wr(t, typeof e != "symbol" ? e + "" : e, O);
4
- import { j as Cr } from "./index-OMWkDiQy.mjs";
4
+ import { j as Cr } from "./index-CQS9WbQc.mjs";
5
5
  import { useRef as pe, useEffect as St } from "react";
6
- import { s as y, A as pO, T as dO, a as Gr, S as et, b as Lr, P as fO, E as j, i as QO, c as _, D as le, k as tt, F as Ar, M as Pt, W as Er, R as Ur, d as mO, N as oe, e as V, f as Mr, g as Ot, h as ce, p as $O, j as Y, t as h, l as Ir, I as rt, L as at, m as ye, n as ue, o as Qe, q as gO, r as te, u as SO, v as Br, w as Nr, x as PO, y as kO, z as Dr, B as Fr, C as Kr, G as Oe, H as ZO, J as Jr, K as kt, O as Hr, Q as ea, U as ta, V as Oa, X as ra, Y as aa, Z as ia, _ as sa, $ as na, a0 as la, a1 as oa, a2 as ca } from "./index-WQ6WhhB-.mjs";
6
+ import { s as y, A as pO, T as dO, a as Gr, S as et, b as Lr, P as fO, E as j, i as QO, c as _, D as le, k as tt, F as Ar, M as Pt, W as Er, R as Ur, d as mO, N as oe, e as V, f as Mr, g as Ot, h as ce, p as $O, j as Y, t as h, l as Ir, I as rt, L as at, m as ye, n as ue, o as Qe, q as gO, r as te, u as SO, v as Br, w as Nr, x as PO, y as kO, z as Dr, B as Fr, C as Kr, G as Oe, H as ZO, J as Jr, K as kt, O as Hr, Q as ea, U as ta, V as Oa, X as ra, Y as aa, Z as ia, _ as sa, $ as na, a0 as la, a1 as oa, a2 as ca } from "./index-C6k4W5mC.mjs";
7
7
  class ua {
8
8
  /**
9
9
  Create a new completion context. (Mostly useful for testing
@@ -1,7 +1,21 @@
1
- import { Editor, JSONContent } from '@tiptap/core';
1
+ import { AnyExtension, Editor, JSONContent } from '@tiptap/core';
2
2
 
3
3
  export declare const nameFormatter: (username: string) => string;
4
- export declare const EXTENSIONS_WITH_DUPLICATE_WARNINGS: string[];
4
+ /**
5
+ * `editor.extensionManager.extensions` is already resolved: it holds the parent
6
+ * kits (StarterKit, Markdown, ColumnExtension, ...) *and* the children they
7
+ * generate. Feeding that list straight into a new Editor re-runs every
8
+ * `addExtensions()`, so each child lands twice, and the Editor re-adds its own
9
+ * core extensions on top — which is what triggers tiptap's "Duplicate extension
10
+ * names" warning.
11
+ *
12
+ * Drop whatever the new Editor will recreate rather than maintaining a list of
13
+ * names by hand: a hardcoded list silently goes stale whenever tiptap adds a
14
+ * core extension (`delete`, `textDirection`) or StarterKit gains a child
15
+ * (`underline`, `listKeymap`). Parents keep their configured options, so the
16
+ * regenerated children are identical to the ones removed here.
17
+ */
18
+ export declare const dedupeResolvedExtensions: (extensions: AnyExtension[]) => AnyExtension[];
5
19
  export declare const getTemporaryEditor: (editor: Editor, content: JSONContent) => Editor;
6
20
  export declare const dateFormatter: (date: Date | string | number) => "" | import("react/jsx-runtime").JSX.Element;
7
21
  export declare const renderTextWithLinks: (text: string) => (string | import("react/jsx-runtime").JSX.Element)[];
@@ -1,7 +1,7 @@
1
- import { j as d } from "./index-OMWkDiQy.mjs";
1
+ import { j as d } from "./index-CQS9WbQc.mjs";
2
2
  import { useRef as I, useState as N, useEffect as D } from "react";
3
3
  import { DynamicDropdown as E, Tooltip as R, IconButton as O } from "@fileverse/ui";
4
- import { a3 as A, a4 as P, c as y } from "./index-WQ6WhhB-.mjs";
4
+ import { a3 as A, a4 as P, c as y } from "./index-C6k4W5mC.mjs";
5
5
  const p = (e, t, o = t) => {
6
6
  const { state: s } = e, l = s.changeByRange((n) => {
7
7
  const u = s.sliceDoc(n.from, n.to), r = s.sliceDoc(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "4.3.3",
5
+ "version": "4.3.5",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -121,7 +121,6 @@
121
121
  "y-indexeddb": "^9.0.12",
122
122
  "y-prosemirror": "^1.2.5",
123
123
  "y-protocols": "^1.0.6",
124
- "yjs": "^13.6.15",
125
124
  "zustand": "^5.0.12"
126
125
  },
127
126
  "peerDependencies": {
@@ -134,6 +133,7 @@
134
133
  "framer-motion": ">=11.2.10",
135
134
  "frimousse": ">=0.3.0",
136
135
  "mermaid": "11.14.0",
136
+ "yjs": ">=13.6.30 <14",
137
137
  "viem": ">=2.35.0"
138
138
  },
139
139
  "devDependencies": {
@@ -164,6 +164,7 @@
164
164
  "tailwindcss": "^3.4.3",
165
165
  "typescript": "^5.2.2",
166
166
  "vite": "^5.0.0",
167
- "vitest": "^2.1.0"
167
+ "vitest": "^2.1.0",
168
+ "yjs": "13.6.30"
168
169
  }
169
170
  }