@layers-app/editor 0.0.1 → 0.0.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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as C } from "react/jsx-runtime";
2
2
  import { useMemo as I, useState as D, useRef as S, useCallback as $, useEffect as R } from "react";
3
- import { b as V, a as j, w as P, R as x, C as k, l as b, N as E, k as w, K as v, e as B, r as y, B as A, m as T, n as W } from "./DSD.BSMoqlgJ.js";
3
+ import { b as V, a as j, w as P, R as x, C as k, l as b, N as E, k as w, K as v, e as B, r as y, B as A, m as T, n as W } from "./DSD.BJ38UQLe.js";
4
4
  function O(...t) {
5
5
  return t.filter(Boolean).join(" ");
6
6
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as f, Fragment as L } from "react/jsx-runtime";
2
- import { u as j, a as M, b as U, w, R as _, C as B, $ as z, F as D, N as O, c as W, K as h, d as q, k as G, e as H, D as J, r as Q, t as V, L as X, f as Y, h as Z, g as K, i as ee, j as te, B as ne } from "./DSD.BSMoqlgJ.js";
3
- import { d as ae, P as le } from "./DSD.wx0g6wlB.js";
2
+ import { u as j, a as M, b as U, w, R as _, C as B, $ as z, F as D, N as O, c as W, K as h, d as q, k as G, e as H, D as J, r as Q, t as V, L as X, f as Y, h as Z, g as K, i as ee, j as te, B as ne } from "./DSD.BJ38UQLe.js";
3
+ import { d as ae, P as le } from "./DSD.CdYWFL0O.js";
4
4
  import { useRef as k, useState as E, useCallback as F, useEffect as oe, Suspense as ie } from "react";
5
5
  import { TextInput as re } from "@mantine/core";
6
6
  function se({
@@ -73,12 +73,12 @@ function me({
73
73
  nodeKey: o,
74
74
  onClose: t
75
75
  }) {
76
- const i = n.getEditorState().read(() => B(o)), [c, r] = E(i.getAltText()), [v, x] = E(i.getShowCaption()), [I, C] = E(i.getPosition()), b = (m) => {
76
+ const i = n.getEditorState().read(() => B(o)), [c, r] = E(i.getAltText()), [I, x] = E(i.getShowCaption()), [v, C] = E(i.getPosition()), b = (m) => {
77
77
  x(m.target.checked);
78
78
  }, d = (m) => {
79
79
  C(m.target.value);
80
80
  }, p = () => {
81
- const m = { altText: c, position: I, showCaption: v };
81
+ const m = { altText: c, position: v, showCaption: I };
82
82
  i && n.update(() => {
83
83
  i.update(m);
84
84
  }), t();
@@ -98,7 +98,7 @@ function me({
98
98
  ce,
99
99
  {
100
100
  style: { marginBottom: "1em", width: "208px" },
101
- value: I,
101
+ value: v,
102
102
  label: "Position",
103
103
  name: "position",
104
104
  id: "position-select",
@@ -116,7 +116,7 @@ function me({
116
116
  {
117
117
  id: "caption",
118
118
  type: "checkbox",
119
- checked: v,
119
+ checked: I,
120
120
  onChange: b
121
121
  }
122
122
  ),
@@ -125,7 +125,7 @@ function me({
125
125
  /* @__PURE__ */ e(te, { children: /* @__PURE__ */ e(ne, { "data-test-id": "image-modal-file-upload-btn", onClick: () => p(), children: "Применить" }) })
126
126
  ] });
127
127
  }
128
- function ve({
128
+ function Ie({
129
129
  src: n,
130
130
  altText: o,
131
131
  nodeKey: t,
@@ -133,9 +133,9 @@ function ve({
133
133
  height: i,
134
134
  showCaption: c,
135
135
  caption: r,
136
- position: v
136
+ position: I
137
137
  }) {
138
- const [x, I] = j(), C = k(null), b = k(null), [d, p, m] = M(t), [l] = U(), [$, A] = E(null), P = k(null), N = F(
138
+ const [x, v] = j(), C = k(null), b = k(null), [d, p, m] = M(t), [l] = U(), [$, A] = E(null), P = k(null), N = F(
139
139
  (s) => {
140
140
  if (d && w(_())) {
141
141
  s.preventDefault();
@@ -206,7 +206,7 @@ function ve({
206
206
  className: "image-edit-button",
207
207
  ref: b,
208
208
  onClick: () => {
209
- I("Update Inline Image", (s) => /* @__PURE__ */ e(
209
+ v("Update Inline Image", (s) => /* @__PURE__ */ e(
210
210
  me,
211
211
  {
212
212
  activeEditor: l,
@@ -227,7 +227,7 @@ function ve({
227
227
  imageRef: C,
228
228
  width: u,
229
229
  height: i,
230
- position: v
230
+ position: I
231
231
  }
232
232
  )
233
233
  ] }),
@@ -249,5 +249,5 @@ function ve({
249
249
  }
250
250
  export {
251
251
  me as UpdateInlineImageDialog,
252
- ve as default
252
+ Ie as default
253
253
  };
@@ -1,36 +1,36 @@
1
- import { a6 as u, a7 as k, m as E } from "./DSD.BSMoqlgJ.js";
1
+ import { a6 as p, a7 as k, m as E } from "./DSD.BJ38UQLe.js";
2
2
  import { useRef as O, useContext as P, useMemo as D, useEffect as h } from "react";
3
3
  import { jsx as _ } from "react/jsx-runtime";
4
4
  function K(e) {
5
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
+ return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  var C = K(function(e) {
8
8
  const t = new URLSearchParams();
9
9
  t.append("code", e);
10
- for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]);
10
+ for (let o = 1; o < arguments.length; o++) t.append("v", arguments[o]);
11
11
  throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
12
12
  });
13
13
  function m(e) {
14
14
  const t = e.transform();
15
15
  return t !== null ? /* @__PURE__ */ new Set([t]) : /* @__PURE__ */ new Set();
16
16
  }
17
- function S({ initialEditor: e, children: t, initialNodes: n, initialTheme: g, skipCollabChecks: v }) {
18
- const f = O(!1), i = P(u);
17
+ function S({ initialEditor: e, children: t, initialNodes: o, initialTheme: g, skipCollabChecks: v }) {
18
+ const f = O(!1), i = P(p);
19
19
  i == null && C(9);
20
20
  const [l, { getTheme: w }] = i, x = D(() => {
21
21
  const a = g || w() || void 0, y = k(i, a);
22
- if (a !== void 0 && (e._config.theme = a), e._parentEditor = l, n) for (let r of n) {
23
- let s = null, o = null;
22
+ if (a !== void 0 && (e._config.theme = a), e._parentEditor = l, o) for (let r of o) {
23
+ let s = null, n = null;
24
24
  if (typeof r != "function") {
25
25
  const d = r;
26
- r = d.replace, s = d.with, o = d.withKlass || null;
26
+ r = d.replace, s = d.with, n = d.withKlass || null;
27
27
  }
28
- const p = e._nodes.get(r.getType());
29
- e._nodes.set(r.getType(), { exportDOM: p ? p.exportDOM : void 0, klass: r, replace: s, replaceWithKlass: o, transforms: m(r) });
28
+ const u = e._nodes.get(r.getType());
29
+ e._nodes.set(r.getType(), { exportDOM: u ? u.exportDOM : void 0, klass: r, replace: s, replaceWithKlass: n, transforms: m(r) });
30
30
  }
31
31
  else {
32
32
  const r = e._nodes = new Map(l._nodes);
33
- for (const [s, o] of r) e._nodes.set(s, { exportDOM: o.exportDOM, klass: o.klass, replace: o.replace, replaceWithKlass: o.replaceWithKlass, transforms: m(o.klass) });
33
+ for (const [s, n] of r) e._nodes.set(s, { exportDOM: n.exportDOM, klass: n.klass, replace: n.replace, replaceWithKlass: n.replaceWithKlass, transforms: m(n.klass) });
34
34
  }
35
35
  return e._config.namespace = l._config.namespace, e._editable = l._editable, [e, y];
36
36
  }, []), { isCollabActive: M, yjsDocMap: b } = E(), c = v || f.current || b.has(e.getKey());
@@ -38,7 +38,7 @@ function S({ initialEditor: e, children: t, initialNodes: n, initialTheme: g, sk
38
38
  c && (f.current = !0);
39
39
  }, [c]), h(() => l.registerEditableListener((a) => {
40
40
  e.setEditable(a);
41
- }), [e, l]), _(u.Provider, { value: x, children: !M || c ? t : null });
41
+ }), [e, l]), _(p.Provider, { value: x, children: !M || c ? t : null });
42
42
  }
43
43
  function W({
44
44
  children: e,
@@ -1,13 +1,13 @@
1
1
  import { jsx as g, jsxs as $, Fragment as F } from "react/jsx-runtime";
2
2
  import { useState as U, useEffect as b, useMemo as V, Suspense as q, useLayoutEffect as Y, useRef as W } from "react";
3
- import { N as T, D as G, R as a, o as c, p as u, q as J, s as Q, v as A, x as Z, A as ee, z as te, H as ne, d as oe, y as M, e as re, E as S, k as se, G as ie, I as O, J as X, M as ae, O as ce, P as le, Q as ue, S as de, T as me, U as fe, V as ge, b as B, W as pe, X as Ce, Y as he, Z as ve, _ as ye, a0 as Ee, a1 as we, m as ke, a2 as De, a3 as be, a4 as Le, g as Re, i as Se, C as x, a5 as P } from "./DSD.BSMoqlgJ.js";
4
- import { d as xe, P as Pe } from "./DSD.wx0g6wlB.js";
3
+ import { N as T, D as G, R as a, o as c, p as u, q as J, s as Q, v as A, x as Z, A as ee, z as te, H as ne, d as re, y as M, e as oe, E as S, k as se, G as ie, I as O, J as X, M as ae, O as ce, P as le, Q as ue, S as de, T as fe, U as me, V as ge, b as B, W as pe, X as Ce, Y as he, Z as ye, _ as ve, a0 as Ee, a1 as we, m as ke, a2 as De, a3 as be, a4 as Le, g as Re, i as Se, C as x, a5 as P } from "./DSD.BJ38UQLe.js";
4
+ import { d as xe, P as Pe } from "./DSD.CdYWFL0O.js";
5
5
  import { flushSync as $e, createPortal as Ne } from "react-dom";
6
6
  const E = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Te = E && "documentMode" in document ? document.documentMode : null, Be = !(!E || !("InputEvent" in window) || Te) && "getTargetRanges" in new window.InputEvent("input"), _e = E && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), z = E && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, We = E && /^(?=.*Chrome).*/i.test(navigator.userAgent), Ae = E && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !We;
7
7
  function I(n, t) {
8
8
  t.update(() => {
9
9
  if (n !== null) {
10
- const e = fe(n, KeyboardEvent) ? null : n.clipboardData, s = a();
10
+ const e = me(n, KeyboardEvent) ? null : n.clipboardData, s = a();
11
11
  if (s !== null && e != null) {
12
12
  n.preventDefault();
13
13
  const i = ge(t);
@@ -20,7 +20,7 @@ function Me(n) {
20
20
  return T(n.registerCommand(S, (t) => {
21
21
  const e = a();
22
22
  return !!c(e) && (e.deleteCharacter(t), !0);
23
- }, u), n.registerCommand(me, (t) => {
23
+ }, u), n.registerCommand(fe, (t) => {
24
24
  const e = a();
25
25
  return !!c(e) && (e.deleteWord(t), !0);
26
26
  }, u), n.registerCommand(de, (t) => {
@@ -61,10 +61,10 @@ function Me(n) {
61
61
  }, u), n.registerCommand(se, (t) => {
62
62
  const e = a();
63
63
  return !!c(e) && (!z || navigator.language !== "ko-KR") && (t.preventDefault(), n.dispatchCommand(S, !0));
64
- }, u), n.registerCommand(re, (t) => {
64
+ }, u), n.registerCommand(oe, (t) => {
65
65
  const e = a();
66
66
  return !!c(e) && (t.preventDefault(), n.dispatchCommand(S, !1));
67
- }, u), n.registerCommand(oe, (t) => {
67
+ }, u), n.registerCommand(re, (t) => {
68
68
  const e = a();
69
69
  if (!c(e)) return !1;
70
70
  if (t !== null) {
@@ -79,16 +79,16 @@ function Me(n) {
79
79
  const e = a();
80
80
  return !!c(e) && (function(s, i) {
81
81
  I(s, i), i.update(() => {
82
- const r = a();
83
- c(r) && r.removeText();
82
+ const o = a();
83
+ c(o) && o.removeText();
84
84
  });
85
85
  }(t, n), !0);
86
86
  }, u), n.registerCommand(Q, (t) => {
87
87
  const e = a();
88
88
  return !!c(e) && (function(s, i) {
89
89
  s.preventDefault(), i.update(() => {
90
- const r = a(), { clipboardData: d } = s;
91
- d != null && c(r) && A(d, r);
90
+ const o = a(), { clipboardData: d } = s;
91
+ d != null && c(o) && A(d, o);
92
92
  }, { tag: "paste" });
93
93
  }(t, n), !0);
94
94
  }, u), n.registerCommand(J, (t) => {
@@ -104,41 +104,41 @@ function K(n) {
104
104
  return n.getEditorState().read(he(n.isComposing()));
105
105
  }
106
106
  function Oe({ contentEditable: n, placeholder: t = null, ErrorBoundary: e }) {
107
- const [s] = B(), i = function(r, d) {
108
- const [f, y] = U(() => r.getDecorators());
109
- return N(() => r.registerDecoratorListener((v) => {
107
+ const [s] = B(), i = function(o, d) {
108
+ const [m, v] = U(() => o.getDecorators());
109
+ return N(() => o.registerDecoratorListener((y) => {
110
110
  $e(() => {
111
- y(v);
111
+ v(y);
112
112
  });
113
- }), [r]), b(() => {
114
- y(r.getDecorators());
115
- }, [r]), V(() => {
116
- const v = [], w = Object.keys(f);
113
+ }), [o]), b(() => {
114
+ v(o.getDecorators());
115
+ }, [o]), V(() => {
116
+ const y = [], w = Object.keys(m);
117
117
  for (let k = 0; k < w.length; k++) {
118
- const D = w[k], R = g(d, { onError: (l) => r._onError(l), children: g(q, { fallback: null, children: f[D] }) }), o = r.getElementByKey(D);
119
- o !== null && v.push(Ne(R, o, D));
118
+ const D = w[k], R = g(d, { onError: (l) => o._onError(l), children: g(q, { fallback: null, children: m[D] }) }), r = o.getElementByKey(D);
119
+ r !== null && y.push(Ne(R, r, D));
120
120
  }
121
- return v;
122
- }, [d, f, r]);
121
+ return y;
122
+ }, [d, m, o]);
123
123
  }(s, e);
124
- return function(r) {
125
- N(() => T(Me(r), pe(r)), [r]);
124
+ return function(o) {
125
+ N(() => T(Me(o), pe(o)), [o]);
126
126
  }(s), $(F, { children: [n, g(Xe, { content: t }), i] });
127
127
  }
128
128
  function Xe({ content: n }) {
129
129
  const [t] = B(), e = function(i) {
130
- const [r, d] = U(() => K(i));
130
+ const [o, d] = U(() => K(i));
131
131
  return N(() => {
132
- function f() {
133
- const y = K(i);
134
- d(y);
132
+ function m() {
133
+ const v = K(i);
134
+ d(v);
135
135
  }
136
- return f(), T(i.registerUpdateListener(() => {
137
- f();
136
+ return m(), T(i.registerUpdateListener(() => {
137
+ m();
138
138
  }), i.registerEditableListener(() => {
139
- f();
139
+ m();
140
140
  }));
141
- }, [i]), r;
141
+ }, [i]), o;
142
142
  }(t), s = Ce();
143
143
  return e ? typeof n == "function" ? n(s) : n : null;
144
144
  }
@@ -147,7 +147,7 @@ new URLSearchParams(ze.search);
147
147
  const Ie = "https://wss.dudoc.io";
148
148
  function Ke(n, t) {
149
149
  let e = t.get(n);
150
- return e === void 0 ? (e = new ve(), t.set(n, e)) : e.load(), new ye(Ie, "/" + n, e, {
150
+ return e === void 0 ? (e = new ye(), t.set(n, e)) : e.load(), new ve(Ie, "/" + n, e, {
151
151
  connect: !1
152
152
  });
153
153
  }
@@ -156,8 +156,8 @@ const Ue = Ee ? Y : b, Ye = {
156
156
  paragraph: "StickyEditorTheme__paragraph"
157
157
  };
158
158
  function L(n, t) {
159
- const e = n.style, s = t.rootElementRect, i = s !== null ? s.left : 0, r = s !== null ? s.top : 0;
160
- e.top = r + t.y + "px", e.left = i + t.x + "px";
159
+ const e = n.style, s = t.rootElementRect, i = s !== null ? s.left : 0, o = s !== null ? s.top : 0;
160
+ e.top = o + t.y + "px", e.left = i + t.x + "px";
161
161
  }
162
162
  function Ge({
163
163
  x: n,
@@ -166,74 +166,74 @@ function Ge({
166
166
  color: s,
167
167
  caption: i
168
168
  }) {
169
- const [r] = B(), d = W(null), f = W({
169
+ const [o] = B(), d = W(null), m = W({
170
170
  isDragging: !1,
171
171
  offsetX: 0,
172
172
  offsetY: 0,
173
173
  rootElementRect: null,
174
174
  x: 0,
175
175
  y: 0
176
- }), { isCollabActive: y } = ke();
176
+ }), { isCollabActive: v } = ke();
177
177
  b(() => {
178
- const o = f.current;
179
- o.x = n, o.y = t;
178
+ const r = m.current;
179
+ r.x = n, r.y = t;
180
180
  const l = d.current;
181
- l !== null && L(l, o);
181
+ l !== null && L(l, r);
182
182
  }, [n, t]), Ue(() => {
183
- const o = f.current, l = new ResizeObserver((h) => {
183
+ const r = m.current, l = new ResizeObserver((h) => {
184
184
  for (let p = 0; p < h.length; p++) {
185
185
  const H = h[p], { target: j } = H;
186
- o.rootElementRect = j.getBoundingClientRect();
186
+ r.rootElementRect = j.getBoundingClientRect();
187
187
  const _ = d.current;
188
- _ !== null && L(_, o);
188
+ _ !== null && L(_, r);
189
189
  }
190
- }), m = r.registerRootListener((h, p) => {
190
+ }), f = o.registerRootListener((h, p) => {
191
191
  p !== null && l.unobserve(p), h !== null && l.observe(h);
192
192
  }), C = () => {
193
- const h = r.getRootElement(), p = d.current;
194
- h !== null && p !== null && (o.rootElementRect = h.getBoundingClientRect(), L(p, o));
193
+ const h = o.getRootElement(), p = d.current;
194
+ h !== null && p !== null && (r.rootElementRect = h.getBoundingClientRect(), L(p, r));
195
195
  };
196
196
  return window.addEventListener("resize", C), () => {
197
- window.removeEventListener("resize", C), m();
197
+ window.removeEventListener("resize", C), f();
198
198
  };
199
- }, [r]), b(() => {
200
- const o = d.current;
201
- o !== null && setTimeout(() => {
202
- o.style.setProperty("transition", "top 0.3s ease 0s, left 0.3s ease 0s");
199
+ }, [o]), b(() => {
200
+ const r = d.current;
201
+ r !== null && setTimeout(() => {
202
+ r.style.setProperty("transition", "top 0.3s ease 0s, left 0.3s ease 0s");
203
203
  }, 500);
204
204
  }, []);
205
- const v = (o) => {
206
- const l = d.current, m = f.current, C = m.rootElementRect;
207
- l !== null && m.isDragging && C !== null && (m.x = o.pageX - m.offsetX - C.left, m.y = o.pageY - m.offsetY - C.top, L(l, m));
205
+ const y = (r) => {
206
+ const l = d.current, f = m.current, C = f.rootElementRect;
207
+ l !== null && f.isDragging && C !== null && (f.x = r.pageX - f.offsetX - C.left, f.y = r.pageY - f.offsetY - C.top, L(l, f));
208
208
  }, w = () => {
209
- const o = d.current, l = f.current;
210
- o !== null && (l.isDragging = !1, o.classList.remove("dragging"), r.update(() => {
211
- const m = x(e);
212
- P(m) && m.setPosition(l.x, l.y);
213
- })), document.removeEventListener("pointermove", v), document.removeEventListener("pointerup", w);
209
+ const r = d.current, l = m.current;
210
+ r !== null && (l.isDragging = !1, r.classList.remove("dragging"), o.update(() => {
211
+ const f = x(e);
212
+ P(f) && f.setPosition(l.x, l.y);
213
+ })), document.removeEventListener("pointermove", y), document.removeEventListener("pointerup", w);
214
214
  }, k = () => {
215
- r.update(() => {
216
- const o = x(e);
217
- P(o) && o.remove();
215
+ o.update(() => {
216
+ const r = x(e);
217
+ P(r) && r.remove();
218
218
  });
219
219
  }, D = () => {
220
- r.update(() => {
221
- const o = x(e);
222
- P(o) && o.toggleColor();
220
+ o.update(() => {
221
+ const r = x(e);
222
+ P(r) && r.toggleColor();
223
223
  });
224
224
  }, { historyState: R } = De();
225
225
  return /* @__PURE__ */ g("div", { ref: d, className: "sticky-note-container", children: /* @__PURE__ */ $(
226
226
  "div",
227
227
  {
228
228
  className: `sticky-note ${s}`,
229
- onPointerDown: (o) => {
229
+ onPointerDown: (r) => {
230
230
  const l = d.current;
231
- if (l == null || o.button === 2 || o.target !== l.firstChild)
231
+ if (l == null || r.button === 2 || r.target !== l.firstChild)
232
232
  return;
233
- const m = l, C = f.current;
234
- if (m !== null) {
235
- const { top: h, left: p } = m.getBoundingClientRect();
236
- C.offsetX = o.clientX - p, C.offsetY = o.clientY - h, C.isDragging = !0, m.classList.add("dragging"), document.addEventListener("pointermove", v), document.addEventListener("pointerup", w), o.preventDefault();
233
+ const f = l, C = m.current;
234
+ if (f !== null) {
235
+ const { top: h, left: p } = f.getBoundingClientRect();
236
+ C.offsetX = r.clientX - p, C.offsetY = r.clientY - h, C.isDragging = !0, f.classList.add("dragging"), document.addEventListener("pointermove", y), document.addEventListener("pointerup", w), r.preventDefault();
237
237
  }
238
238
  },
239
239
  children: [
@@ -258,7 +258,7 @@ function Ge({
258
258
  }
259
259
  ),
260
260
  /* @__PURE__ */ $(xe, { initialEditor: i, initialTheme: Ye, children: [
261
- y ? /* @__PURE__ */ g(
261
+ v ? /* @__PURE__ */ g(
262
262
  be,
263
263
  {
264
264
  id: i.getKey(),
package/dist/index.d.ts CHANGED
@@ -12,10 +12,6 @@ export declare type ActiveUserProfile<DATA extends object> = EditorUser<DATA> &
12
12
 
13
13
  export { CLEAR_EDITOR_COMMAND }
14
14
 
15
- export declare const DocSpaceStylesProvider: ({ children }: {
16
- children: React.ReactNode;
17
- }) => JSX_2.Element;
18
-
19
15
  export { Dropzone }
20
16
 
21
17
  export declare const Editor: <USER_DATA extends object, CHILD_PAGE extends PageData>({ initialContent, onChange, outputFormat, mode, maxHeight, onBlur, onFocus, fetchUploadImage, fetchDeleteImage, maxImageSize, contentModalUploadImage, maxImageSizeError, debounce: debounceMs, disable, ws, excludeNodes, imagePickerSettings, childPages, language, editorRef }: EditorProps<USER_DATA, CHILD_PAGE>) => JSX_2.Element;
@@ -90,6 +86,10 @@ declare interface PageData {
90
86
 
91
87
  export declare type Root = SerializedEditorState<SerializedLexicalNode>;
92
88
 
89
+ export declare const StylesProvider: ({ children }: {
90
+ children: React.ReactNode;
91
+ }) => JSX_2.Element;
92
+
93
93
  declare type SuccessDeleteImage = () => void;
94
94
 
95
95
  declare type SuccessUploadImage = (url: string, id: string) => void;