@clevertask/scribe 0.0.15 → 0.1.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/README.md +77 -27
- package/dist/BarMenu-DaKIz3zZ.js +327 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Menu/BarMenu.d.ts +0 -1
- package/dist/components/Menu/BarMenu.d.ts.map +1 -1
- package/dist/components/Menu/BarMenu.js +8 -140
- package/dist/components/Menu/BubbleMenu.d.ts.map +1 -1
- package/dist/components/Menu/BubbleMenu.js +2074 -159
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts.map +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.js +42 -22
- package/dist/components/Scribe/extension/emoji/EmojiList.d.ts +19 -1
- package/dist/components/Scribe/extension/emoji/EmojiList.d.ts.map +1 -1
- package/dist/components/Scribe/extension/emoji/EmojiList.js +42 -42
- package/dist/components/Scribe/extension/emoji/suggest.d.ts +2 -4
- package/dist/components/Scribe/extension/emoji/suggest.d.ts.map +1 -1
- package/dist/components/Scribe/extension/emoji/suggest.js +20 -15
- package/dist/components/Scribe/extension/extension-link.js +2 -984
- package/dist/components/Scribe/extension/extension-markdown-paste.js +4 -4
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/getPopupMountTarget.d.ts +3 -0
- package/dist/components/Scribe/extension/getPopupMountTarget.d.ts.map +1 -0
- package/dist/components/Scribe/extension/getPopupMountTarget.js +16 -0
- package/dist/components/Scribe/extension/index.d.ts +16 -2
- package/dist/components/Scribe/extension/index.d.ts.map +1 -1
- package/dist/components/Scribe/extension/index.js +37122 -34
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts +4 -1
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.d.ts.map +1 -1
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +3730 -14
- package/dist/components/Scribe/extension/slashCommand/index.js +2 -2
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +1 -1
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts.map +1 -1
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +21 -16
- package/dist/components/Scribe/extension/tableOfContents.d.ts +48 -0
- package/dist/components/Scribe/extension/tableOfContents.d.ts.map +1 -0
- package/dist/components/Scribe/extension/tableOfContents.js +180 -0
- package/dist/components/Scribe/index.d.ts +12 -1
- package/dist/components/Scribe/index.d.ts.map +1 -1
- package/dist/components/Scribe/index.js +133 -87
- package/dist/extension-link-Ch_T7WWG.js +1030 -0
- package/dist/icons/ToolbarIcons.d.ts +19 -0
- package/dist/icons/ToolbarIcons.d.ts.map +1 -0
- package/dist/icons/ToolbarIcons.js +135 -0
- package/dist/{index-BKFDqQPh.js → index-BiBV5TQx.js} +6598 -5432
- package/dist/index-CqzMmrnw.js +1410 -0
- package/dist/index-DxF-1P4n.js +834 -0
- package/dist/index-V-gN11Y9.js +249 -0
- package/dist/main.css +200 -1123
- package/dist/main.js +1 -1
- package/dist/markdown-to-html-pL7ckd-m.js +1135 -0
- package/dist/purify.es-exIQuqhb.js +595 -0
- package/dist/tippy.esm-DLHdsnfG.js +1711 -0
- package/dist/utils/create-scribe-editor.d.ts +2 -2
- package/dist/utils/create-scribe-editor.d.ts.map +1 -1
- package/dist/utils/create-scribe-editor.js +3 -3
- package/dist/utils/html-to-markdown.d.ts.map +1 -1
- package/dist/utils/html-to-markdown.js +583 -18
- package/dist/utils/index.js +1 -1
- package/dist/utils/markdown-to-html.js +2 -2
- package/package.json +34 -37
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/index-CL2WLiGu.js +0 -159
- package/dist/index-Cxf4VEm1.js +0 -50957
- package/dist/index-PzbCrHp0.js +0 -2349
- package/dist/markdown-to-html-__93dwok.js +0 -1557
- package/dist/purify.es-BPDBzHtc.js +0 -552
- package/dist/turndown.browser.es-RmA_HBaI.js +0 -649
|
@@ -0,0 +1,834 @@
|
|
|
1
|
+
import R, { useState as ce, useDebugValue as fe, forwardRef as le, version as k, useLayoutEffect as de, useEffect as pe, useContext as U, createContext as B, useMemo as z } from "react";
|
|
2
|
+
import he, { flushSync as me } from "react-dom";
|
|
3
|
+
import { jsx as w, jsxs as Ee, Fragment as ie } from "react/jsx-runtime";
|
|
4
|
+
var L = { exports: {} }, D = {};
|
|
5
|
+
var K;
|
|
6
|
+
function ve() {
|
|
7
|
+
if (K) return D;
|
|
8
|
+
K = 1;
|
|
9
|
+
var e = R;
|
|
10
|
+
function t(d, E) {
|
|
11
|
+
return d === E && (d !== 0 || 1 / d === 1 / E) || d !== d && E !== E;
|
|
12
|
+
}
|
|
13
|
+
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, o = e.useEffect, a = e.useLayoutEffect, u = e.useDebugValue;
|
|
14
|
+
function s(d, E) {
|
|
15
|
+
var c = E(), l = n({ inst: { value: c, getSnapshot: E } }), h = l[0].inst, i = l[1];
|
|
16
|
+
return a(
|
|
17
|
+
function() {
|
|
18
|
+
h.value = c, h.getSnapshot = E, y(h) && i({ inst: h });
|
|
19
|
+
},
|
|
20
|
+
[d, c, E]
|
|
21
|
+
), o(
|
|
22
|
+
function() {
|
|
23
|
+
return y(h) && i({ inst: h }), d(function() {
|
|
24
|
+
y(h) && i({ inst: h });
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
[d]
|
|
28
|
+
), u(c), c;
|
|
29
|
+
}
|
|
30
|
+
function y(d) {
|
|
31
|
+
var E = d.getSnapshot;
|
|
32
|
+
d = d.value;
|
|
33
|
+
try {
|
|
34
|
+
var c = E();
|
|
35
|
+
return !r(d, c);
|
|
36
|
+
} catch {
|
|
37
|
+
return !0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function v(d, E) {
|
|
41
|
+
return E();
|
|
42
|
+
}
|
|
43
|
+
var p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : s;
|
|
44
|
+
return D.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : p, D;
|
|
45
|
+
}
|
|
46
|
+
var I = {};
|
|
47
|
+
var H;
|
|
48
|
+
function ye() {
|
|
49
|
+
return H || (H = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
|
+
function e(c, l) {
|
|
51
|
+
return c === l && (c !== 0 || 1 / c === 1 / l) || c !== c && l !== l;
|
|
52
|
+
}
|
|
53
|
+
function t(c, l) {
|
|
54
|
+
p || o.startTransition === void 0 || (p = !0, console.error(
|
|
55
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
56
|
+
));
|
|
57
|
+
var h = l();
|
|
58
|
+
if (!d) {
|
|
59
|
+
var i = l();
|
|
60
|
+
a(h, i) || (console.error(
|
|
61
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
62
|
+
), d = !0);
|
|
63
|
+
}
|
|
64
|
+
i = u({
|
|
65
|
+
inst: { value: h, getSnapshot: l }
|
|
66
|
+
});
|
|
67
|
+
var f = i[0].inst, m = i[1];
|
|
68
|
+
return y(
|
|
69
|
+
function() {
|
|
70
|
+
f.value = h, f.getSnapshot = l, r(f) && m({ inst: f });
|
|
71
|
+
},
|
|
72
|
+
[c, h, l]
|
|
73
|
+
), s(
|
|
74
|
+
function() {
|
|
75
|
+
return r(f) && m({ inst: f }), c(function() {
|
|
76
|
+
r(f) && m({ inst: f });
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
[c]
|
|
80
|
+
), v(h), h;
|
|
81
|
+
}
|
|
82
|
+
function r(c) {
|
|
83
|
+
var l = c.getSnapshot;
|
|
84
|
+
c = c.value;
|
|
85
|
+
try {
|
|
86
|
+
var h = l();
|
|
87
|
+
return !a(c, h);
|
|
88
|
+
} catch {
|
|
89
|
+
return !0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function n(c, l) {
|
|
93
|
+
return l();
|
|
94
|
+
}
|
|
95
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
96
|
+
var o = R, a = typeof Object.is == "function" ? Object.is : e, u = o.useState, s = o.useEffect, y = o.useLayoutEffect, v = o.useDebugValue, p = !1, d = !1, E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : t;
|
|
97
|
+
I.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : E, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
98
|
+
})()), I;
|
|
99
|
+
}
|
|
100
|
+
var F;
|
|
101
|
+
function $() {
|
|
102
|
+
return F || (F = 1, process.env.NODE_ENV === "production" ? L.exports = ve() : L.exports = ye()), L.exports;
|
|
103
|
+
}
|
|
104
|
+
var _e = $();
|
|
105
|
+
const { getOwnPropertyNames: Se, getOwnPropertySymbols: Oe } = Object, { hasOwnProperty: ge } = Object.prototype;
|
|
106
|
+
function x(e, t) {
|
|
107
|
+
return function(n, o, a) {
|
|
108
|
+
return e(n, o, a) && t(n, o, a);
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function q(e) {
|
|
112
|
+
return function(r, n, o) {
|
|
113
|
+
if (!r || !n || typeof r != "object" || typeof n != "object")
|
|
114
|
+
return e(r, n, o);
|
|
115
|
+
const { cache: a } = o, u = a.get(r), s = a.get(n);
|
|
116
|
+
if (u && s)
|
|
117
|
+
return u === n && s === r;
|
|
118
|
+
a.set(r, n), a.set(n, r);
|
|
119
|
+
const y = e(r, n, o);
|
|
120
|
+
return a.delete(r), a.delete(n), y;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function Ae(e) {
|
|
124
|
+
return e?.[Symbol.toStringTag];
|
|
125
|
+
}
|
|
126
|
+
function Y(e) {
|
|
127
|
+
return Se(e).concat(Oe(e));
|
|
128
|
+
}
|
|
129
|
+
const Re = (
|
|
130
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
131
|
+
Object.hasOwn || ((e, t) => ge.call(e, t))
|
|
132
|
+
);
|
|
133
|
+
function T(e, t) {
|
|
134
|
+
return e === t || !e && !t && e !== e && t !== t;
|
|
135
|
+
}
|
|
136
|
+
const we = "__v", be = "__o", Te = "_owner", { getOwnPropertyDescriptor: J, keys: X } = Object;
|
|
137
|
+
function Ce(e, t) {
|
|
138
|
+
return e.byteLength === t.byteLength && V(new Uint8Array(e), new Uint8Array(t));
|
|
139
|
+
}
|
|
140
|
+
function je(e, t, r) {
|
|
141
|
+
let n = e.length;
|
|
142
|
+
if (t.length !== n)
|
|
143
|
+
return !1;
|
|
144
|
+
for (; n-- > 0; )
|
|
145
|
+
if (!r.equals(e[n], t[n], n, n, e, t, r))
|
|
146
|
+
return !1;
|
|
147
|
+
return !0;
|
|
148
|
+
}
|
|
149
|
+
function Le(e, t) {
|
|
150
|
+
return e.byteLength === t.byteLength && V(new Uint8Array(e.buffer, e.byteOffset, e.byteLength), new Uint8Array(t.buffer, t.byteOffset, t.byteLength));
|
|
151
|
+
}
|
|
152
|
+
function qe(e, t) {
|
|
153
|
+
return T(e.getTime(), t.getTime());
|
|
154
|
+
}
|
|
155
|
+
function Ne(e, t) {
|
|
156
|
+
return e.name === t.name && e.message === t.message && e.cause === t.cause && e.stack === t.stack;
|
|
157
|
+
}
|
|
158
|
+
function Ve(e, t) {
|
|
159
|
+
return e === t;
|
|
160
|
+
}
|
|
161
|
+
function Z(e, t, r) {
|
|
162
|
+
const n = e.size;
|
|
163
|
+
if (n !== t.size)
|
|
164
|
+
return !1;
|
|
165
|
+
if (!n)
|
|
166
|
+
return !0;
|
|
167
|
+
const o = new Array(n), a = e.entries();
|
|
168
|
+
let u, s, y = 0;
|
|
169
|
+
for (; (u = a.next()) && !u.done; ) {
|
|
170
|
+
const v = t.entries();
|
|
171
|
+
let p = !1, d = 0;
|
|
172
|
+
for (; (s = v.next()) && !s.done; ) {
|
|
173
|
+
if (o[d]) {
|
|
174
|
+
d++;
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
const E = u.value, c = s.value;
|
|
178
|
+
if (r.equals(E[0], c[0], y, d, e, t, r) && r.equals(E[1], c[1], E[0], c[0], e, t, r)) {
|
|
179
|
+
p = o[d] = !0;
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
d++;
|
|
183
|
+
}
|
|
184
|
+
if (!p)
|
|
185
|
+
return !1;
|
|
186
|
+
y++;
|
|
187
|
+
}
|
|
188
|
+
return !0;
|
|
189
|
+
}
|
|
190
|
+
const De = T;
|
|
191
|
+
function Ie(e, t, r) {
|
|
192
|
+
const n = X(e);
|
|
193
|
+
let o = n.length;
|
|
194
|
+
if (X(t).length !== o)
|
|
195
|
+
return !1;
|
|
196
|
+
for (; o-- > 0; )
|
|
197
|
+
if (!ue(e, t, r, n[o]))
|
|
198
|
+
return !1;
|
|
199
|
+
return !0;
|
|
200
|
+
}
|
|
201
|
+
function j(e, t, r) {
|
|
202
|
+
const n = Y(e);
|
|
203
|
+
let o = n.length;
|
|
204
|
+
if (Y(t).length !== o)
|
|
205
|
+
return !1;
|
|
206
|
+
let a, u, s;
|
|
207
|
+
for (; o-- > 0; )
|
|
208
|
+
if (a = n[o], !ue(e, t, r, a) || (u = J(e, a), s = J(t, a), (u || s) && (!u || !s || u.configurable !== s.configurable || u.enumerable !== s.enumerable || u.writable !== s.writable)))
|
|
209
|
+
return !1;
|
|
210
|
+
return !0;
|
|
211
|
+
}
|
|
212
|
+
function xe(e, t) {
|
|
213
|
+
return T(e.valueOf(), t.valueOf());
|
|
214
|
+
}
|
|
215
|
+
function Me(e, t) {
|
|
216
|
+
return e.source === t.source && e.flags === t.flags;
|
|
217
|
+
}
|
|
218
|
+
function Q(e, t, r) {
|
|
219
|
+
const n = e.size;
|
|
220
|
+
if (n !== t.size)
|
|
221
|
+
return !1;
|
|
222
|
+
if (!n)
|
|
223
|
+
return !0;
|
|
224
|
+
const o = new Array(n), a = e.values();
|
|
225
|
+
let u, s;
|
|
226
|
+
for (; (u = a.next()) && !u.done; ) {
|
|
227
|
+
const y = t.values();
|
|
228
|
+
let v = !1, p = 0;
|
|
229
|
+
for (; (s = y.next()) && !s.done; ) {
|
|
230
|
+
if (!o[p] && r.equals(u.value, s.value, u.value, s.value, e, t, r)) {
|
|
231
|
+
v = o[p] = !0;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
p++;
|
|
235
|
+
}
|
|
236
|
+
if (!v)
|
|
237
|
+
return !1;
|
|
238
|
+
}
|
|
239
|
+
return !0;
|
|
240
|
+
}
|
|
241
|
+
function V(e, t) {
|
|
242
|
+
let r = e.byteLength;
|
|
243
|
+
if (t.byteLength !== r || e.byteOffset !== t.byteOffset)
|
|
244
|
+
return !1;
|
|
245
|
+
for (; r-- > 0; )
|
|
246
|
+
if (e[r] !== t[r])
|
|
247
|
+
return !1;
|
|
248
|
+
return !0;
|
|
249
|
+
}
|
|
250
|
+
function Ge(e, t) {
|
|
251
|
+
return e.hostname === t.hostname && e.pathname === t.pathname && e.protocol === t.protocol && e.port === t.port && e.hash === t.hash && e.username === t.username && e.password === t.password;
|
|
252
|
+
}
|
|
253
|
+
function ue(e, t, r, n) {
|
|
254
|
+
return (n === Te || n === be || n === we) && (e.$$typeof || t.$$typeof) ? !0 : Re(t, n) && r.equals(e[n], t[n], n, n, e, t, r);
|
|
255
|
+
}
|
|
256
|
+
const Ue = "[object ArrayBuffer]", Be = "[object Arguments]", $e = "[object Boolean]", Pe = "[object DataView]", We = "[object Date]", ke = "[object Error]", ze = "[object Map]", Ke = "[object Number]", He = "[object Object]", Fe = "[object RegExp]", Ye = "[object Set]", Je = "[object String]", Xe = {
|
|
257
|
+
"[object Int8Array]": !0,
|
|
258
|
+
"[object Uint8Array]": !0,
|
|
259
|
+
"[object Uint8ClampedArray]": !0,
|
|
260
|
+
"[object Int16Array]": !0,
|
|
261
|
+
"[object Uint16Array]": !0,
|
|
262
|
+
"[object Int32Array]": !0,
|
|
263
|
+
"[object Uint32Array]": !0,
|
|
264
|
+
"[object Float16Array]": !0,
|
|
265
|
+
"[object Float32Array]": !0,
|
|
266
|
+
"[object Float64Array]": !0,
|
|
267
|
+
"[object BigInt64Array]": !0,
|
|
268
|
+
"[object BigUint64Array]": !0
|
|
269
|
+
}, Ze = "[object URL]", Qe = Object.prototype.toString;
|
|
270
|
+
function et({ areArrayBuffersEqual: e, areArraysEqual: t, areDataViewsEqual: r, areDatesEqual: n, areErrorsEqual: o, areFunctionsEqual: a, areMapsEqual: u, areNumbersEqual: s, areObjectsEqual: y, arePrimitiveWrappersEqual: v, areRegExpsEqual: p, areSetsEqual: d, areTypedArraysEqual: E, areUrlsEqual: c, unknownTagComparators: l }) {
|
|
271
|
+
return function(i, f, m) {
|
|
272
|
+
if (i === f)
|
|
273
|
+
return !0;
|
|
274
|
+
if (i == null || f == null)
|
|
275
|
+
return !1;
|
|
276
|
+
const A = typeof i;
|
|
277
|
+
if (A !== typeof f)
|
|
278
|
+
return !1;
|
|
279
|
+
if (A !== "object")
|
|
280
|
+
return A === "number" ? s(i, f, m) : A === "function" ? a(i, f, m) : !1;
|
|
281
|
+
const O = i.constructor;
|
|
282
|
+
if (O !== f.constructor)
|
|
283
|
+
return !1;
|
|
284
|
+
if (O === Object)
|
|
285
|
+
return y(i, f, m);
|
|
286
|
+
if (Array.isArray(i))
|
|
287
|
+
return t(i, f, m);
|
|
288
|
+
if (O === Date)
|
|
289
|
+
return n(i, f, m);
|
|
290
|
+
if (O === RegExp)
|
|
291
|
+
return p(i, f, m);
|
|
292
|
+
if (O === Map)
|
|
293
|
+
return u(i, f, m);
|
|
294
|
+
if (O === Set)
|
|
295
|
+
return d(i, f, m);
|
|
296
|
+
const S = Qe.call(i);
|
|
297
|
+
if (S === We)
|
|
298
|
+
return n(i, f, m);
|
|
299
|
+
if (S === Fe)
|
|
300
|
+
return p(i, f, m);
|
|
301
|
+
if (S === ze)
|
|
302
|
+
return u(i, f, m);
|
|
303
|
+
if (S === Ye)
|
|
304
|
+
return d(i, f, m);
|
|
305
|
+
if (S === He)
|
|
306
|
+
return typeof i.then != "function" && typeof f.then != "function" && y(i, f, m);
|
|
307
|
+
if (S === Ze)
|
|
308
|
+
return c(i, f, m);
|
|
309
|
+
if (S === ke)
|
|
310
|
+
return o(i, f, m);
|
|
311
|
+
if (S === Be)
|
|
312
|
+
return y(i, f, m);
|
|
313
|
+
if (Xe[S])
|
|
314
|
+
return E(i, f, m);
|
|
315
|
+
if (S === Ue)
|
|
316
|
+
return e(i, f, m);
|
|
317
|
+
if (S === Pe)
|
|
318
|
+
return r(i, f, m);
|
|
319
|
+
if (S === $e || S === Ke || S === Je)
|
|
320
|
+
return v(i, f, m);
|
|
321
|
+
if (l) {
|
|
322
|
+
let _ = l[S];
|
|
323
|
+
if (!_) {
|
|
324
|
+
const g = Ae(i);
|
|
325
|
+
g && (_ = l[g]);
|
|
326
|
+
}
|
|
327
|
+
if (_)
|
|
328
|
+
return _(i, f, m);
|
|
329
|
+
}
|
|
330
|
+
return !1;
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function tt({ circular: e, createCustomConfig: t, strict: r }) {
|
|
334
|
+
let n = {
|
|
335
|
+
areArrayBuffersEqual: Ce,
|
|
336
|
+
areArraysEqual: r ? j : je,
|
|
337
|
+
areDataViewsEqual: Le,
|
|
338
|
+
areDatesEqual: qe,
|
|
339
|
+
areErrorsEqual: Ne,
|
|
340
|
+
areFunctionsEqual: Ve,
|
|
341
|
+
areMapsEqual: r ? x(Z, j) : Z,
|
|
342
|
+
areNumbersEqual: De,
|
|
343
|
+
areObjectsEqual: r ? j : Ie,
|
|
344
|
+
arePrimitiveWrappersEqual: xe,
|
|
345
|
+
areRegExpsEqual: Me,
|
|
346
|
+
areSetsEqual: r ? x(Q, j) : Q,
|
|
347
|
+
areTypedArraysEqual: r ? x(V, j) : V,
|
|
348
|
+
areUrlsEqual: Ge,
|
|
349
|
+
unknownTagComparators: void 0
|
|
350
|
+
};
|
|
351
|
+
if (t && (n = Object.assign({}, n, t(n))), e) {
|
|
352
|
+
const o = q(n.areArraysEqual), a = q(n.areMapsEqual), u = q(n.areObjectsEqual), s = q(n.areSetsEqual);
|
|
353
|
+
n = Object.assign({}, n, {
|
|
354
|
+
areArraysEqual: o,
|
|
355
|
+
areMapsEqual: a,
|
|
356
|
+
areObjectsEqual: u,
|
|
357
|
+
areSetsEqual: s
|
|
358
|
+
});
|
|
359
|
+
}
|
|
360
|
+
return n;
|
|
361
|
+
}
|
|
362
|
+
function rt(e) {
|
|
363
|
+
return function(t, r, n, o, a, u, s) {
|
|
364
|
+
return e(t, r, s);
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
function nt({ circular: e, comparator: t, createState: r, equals: n, strict: o }) {
|
|
368
|
+
if (r)
|
|
369
|
+
return function(s, y) {
|
|
370
|
+
const { cache: v = e ? /* @__PURE__ */ new WeakMap() : void 0, meta: p } = r();
|
|
371
|
+
return t(s, y, {
|
|
372
|
+
cache: v,
|
|
373
|
+
equals: n,
|
|
374
|
+
meta: p,
|
|
375
|
+
strict: o
|
|
376
|
+
});
|
|
377
|
+
};
|
|
378
|
+
if (e)
|
|
379
|
+
return function(s, y) {
|
|
380
|
+
return t(s, y, {
|
|
381
|
+
cache: /* @__PURE__ */ new WeakMap(),
|
|
382
|
+
equals: n,
|
|
383
|
+
meta: void 0,
|
|
384
|
+
strict: o
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
const a = {
|
|
388
|
+
cache: void 0,
|
|
389
|
+
equals: n,
|
|
390
|
+
meta: void 0,
|
|
391
|
+
strict: o
|
|
392
|
+
};
|
|
393
|
+
return function(s, y) {
|
|
394
|
+
return t(s, y, a);
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
const ot = b();
|
|
398
|
+
b({ strict: !0 });
|
|
399
|
+
b({ circular: !0 });
|
|
400
|
+
b({
|
|
401
|
+
circular: !0,
|
|
402
|
+
strict: !0
|
|
403
|
+
});
|
|
404
|
+
b({
|
|
405
|
+
createInternalComparator: () => T
|
|
406
|
+
});
|
|
407
|
+
b({
|
|
408
|
+
strict: !0,
|
|
409
|
+
createInternalComparator: () => T
|
|
410
|
+
});
|
|
411
|
+
b({
|
|
412
|
+
circular: !0,
|
|
413
|
+
createInternalComparator: () => T
|
|
414
|
+
});
|
|
415
|
+
b({
|
|
416
|
+
circular: !0,
|
|
417
|
+
createInternalComparator: () => T,
|
|
418
|
+
strict: !0
|
|
419
|
+
});
|
|
420
|
+
function b(e = {}) {
|
|
421
|
+
const { circular: t = !1, createInternalComparator: r, createState: n, strict: o = !1 } = e, a = tt(e), u = et(a), s = r ? r(u) : rt(u);
|
|
422
|
+
return nt({ circular: t, comparator: u, createState: n, equals: s, strict: o });
|
|
423
|
+
}
|
|
424
|
+
var N = { exports: {} }, M = {};
|
|
425
|
+
var ee;
|
|
426
|
+
function it() {
|
|
427
|
+
if (ee) return M;
|
|
428
|
+
ee = 1;
|
|
429
|
+
var e = R, t = $();
|
|
430
|
+
function r(v, p) {
|
|
431
|
+
return v === p && (v !== 0 || 1 / v === 1 / p) || v !== v && p !== p;
|
|
432
|
+
}
|
|
433
|
+
var n = typeof Object.is == "function" ? Object.is : r, o = t.useSyncExternalStore, a = e.useRef, u = e.useEffect, s = e.useMemo, y = e.useDebugValue;
|
|
434
|
+
return M.useSyncExternalStoreWithSelector = function(v, p, d, E, c) {
|
|
435
|
+
var l = a(null);
|
|
436
|
+
if (l.current === null) {
|
|
437
|
+
var h = { hasValue: !1, value: null };
|
|
438
|
+
l.current = h;
|
|
439
|
+
} else h = l.current;
|
|
440
|
+
l = s(
|
|
441
|
+
function() {
|
|
442
|
+
function f(_) {
|
|
443
|
+
if (!m) {
|
|
444
|
+
if (m = !0, A = _, _ = E(_), c !== void 0 && h.hasValue) {
|
|
445
|
+
var g = h.value;
|
|
446
|
+
if (c(g, _))
|
|
447
|
+
return O = g;
|
|
448
|
+
}
|
|
449
|
+
return O = _;
|
|
450
|
+
}
|
|
451
|
+
if (g = O, n(A, _)) return g;
|
|
452
|
+
var C = E(_);
|
|
453
|
+
return c !== void 0 && c(g, C) ? (A = _, g) : (A = _, O = C);
|
|
454
|
+
}
|
|
455
|
+
var m = !1, A, O, S = d === void 0 ? null : d;
|
|
456
|
+
return [
|
|
457
|
+
function() {
|
|
458
|
+
return f(p());
|
|
459
|
+
},
|
|
460
|
+
S === null ? void 0 : function() {
|
|
461
|
+
return f(S());
|
|
462
|
+
}
|
|
463
|
+
];
|
|
464
|
+
},
|
|
465
|
+
[p, d, E, c]
|
|
466
|
+
);
|
|
467
|
+
var i = o(v, l[0], l[1]);
|
|
468
|
+
return u(
|
|
469
|
+
function() {
|
|
470
|
+
h.hasValue = !0, h.value = i;
|
|
471
|
+
},
|
|
472
|
+
[i]
|
|
473
|
+
), y(i), i;
|
|
474
|
+
}, M;
|
|
475
|
+
}
|
|
476
|
+
var G = {};
|
|
477
|
+
var te;
|
|
478
|
+
function ut() {
|
|
479
|
+
return te || (te = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
480
|
+
function e(v, p) {
|
|
481
|
+
return v === p && (v !== 0 || 1 / v === 1 / p) || v !== v && p !== p;
|
|
482
|
+
}
|
|
483
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
484
|
+
var t = R, r = $(), n = typeof Object.is == "function" ? Object.is : e, o = r.useSyncExternalStore, a = t.useRef, u = t.useEffect, s = t.useMemo, y = t.useDebugValue;
|
|
485
|
+
G.useSyncExternalStoreWithSelector = function(v, p, d, E, c) {
|
|
486
|
+
var l = a(null);
|
|
487
|
+
if (l.current === null) {
|
|
488
|
+
var h = { hasValue: !1, value: null };
|
|
489
|
+
l.current = h;
|
|
490
|
+
} else h = l.current;
|
|
491
|
+
l = s(
|
|
492
|
+
function() {
|
|
493
|
+
function f(_) {
|
|
494
|
+
if (!m) {
|
|
495
|
+
if (m = !0, A = _, _ = E(_), c !== void 0 && h.hasValue) {
|
|
496
|
+
var g = h.value;
|
|
497
|
+
if (c(g, _))
|
|
498
|
+
return O = g;
|
|
499
|
+
}
|
|
500
|
+
return O = _;
|
|
501
|
+
}
|
|
502
|
+
if (g = O, n(A, _))
|
|
503
|
+
return g;
|
|
504
|
+
var C = E(_);
|
|
505
|
+
return c !== void 0 && c(g, C) ? (A = _, g) : (A = _, O = C);
|
|
506
|
+
}
|
|
507
|
+
var m = !1, A, O, S = d === void 0 ? null : d;
|
|
508
|
+
return [
|
|
509
|
+
function() {
|
|
510
|
+
return f(p());
|
|
511
|
+
},
|
|
512
|
+
S === null ? void 0 : function() {
|
|
513
|
+
return f(S());
|
|
514
|
+
}
|
|
515
|
+
];
|
|
516
|
+
},
|
|
517
|
+
[p, d, E, c]
|
|
518
|
+
);
|
|
519
|
+
var i = o(v, l[0], l[1]);
|
|
520
|
+
return u(
|
|
521
|
+
function() {
|
|
522
|
+
h.hasValue = !0, h.value = i;
|
|
523
|
+
},
|
|
524
|
+
[i]
|
|
525
|
+
), y(i), i;
|
|
526
|
+
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
527
|
+
})()), G;
|
|
528
|
+
}
|
|
529
|
+
var re;
|
|
530
|
+
function st() {
|
|
531
|
+
return re || (re = 1, process.env.NODE_ENV === "production" ? N.exports = it() : N.exports = ut()), N.exports;
|
|
532
|
+
}
|
|
533
|
+
var at = st(), ct = (...e) => (t) => {
|
|
534
|
+
e.forEach((r) => {
|
|
535
|
+
typeof r == "function" ? r(t) : r && (r.current = t);
|
|
536
|
+
});
|
|
537
|
+
}, ft = ({ contentComponent: e }) => {
|
|
538
|
+
const t = _e.useSyncExternalStore(
|
|
539
|
+
e.subscribe,
|
|
540
|
+
e.getSnapshot,
|
|
541
|
+
e.getServerSnapshot
|
|
542
|
+
);
|
|
543
|
+
return /* @__PURE__ */ w(ie, { children: Object.values(t) });
|
|
544
|
+
};
|
|
545
|
+
function lt() {
|
|
546
|
+
const e = /* @__PURE__ */ new Set();
|
|
547
|
+
let t = {};
|
|
548
|
+
return {
|
|
549
|
+
/**
|
|
550
|
+
* Subscribe to the editor instance's changes.
|
|
551
|
+
*/
|
|
552
|
+
subscribe(r) {
|
|
553
|
+
return e.add(r), () => {
|
|
554
|
+
e.delete(r);
|
|
555
|
+
};
|
|
556
|
+
},
|
|
557
|
+
getSnapshot() {
|
|
558
|
+
return t;
|
|
559
|
+
},
|
|
560
|
+
getServerSnapshot() {
|
|
561
|
+
return t;
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
* Adds a new NodeView Renderer to the editor.
|
|
565
|
+
*/
|
|
566
|
+
setRenderer(r, n) {
|
|
567
|
+
t = {
|
|
568
|
+
...t,
|
|
569
|
+
[r]: he.createPortal(n.reactElement, n.element, r)
|
|
570
|
+
}, e.forEach((o) => o());
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
* Removes a NodeView Renderer from the editor.
|
|
574
|
+
*/
|
|
575
|
+
removeRenderer(r) {
|
|
576
|
+
const n = { ...t };
|
|
577
|
+
delete n[r], t = n, e.forEach((o) => o());
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
var dt = class extends R.Component {
|
|
582
|
+
constructor(e) {
|
|
583
|
+
super(e), this.editorContentRef = R.createRef();
|
|
584
|
+
}
|
|
585
|
+
componentDidMount() {
|
|
586
|
+
this.init();
|
|
587
|
+
}
|
|
588
|
+
componentDidUpdate() {
|
|
589
|
+
this.init();
|
|
590
|
+
}
|
|
591
|
+
init() {
|
|
592
|
+
var e;
|
|
593
|
+
const t = this.props.editor;
|
|
594
|
+
if (t && !t.isDestroyed && ((e = t.view.dom) != null && e.parentNode)) {
|
|
595
|
+
if (t.contentComponent)
|
|
596
|
+
return;
|
|
597
|
+
const r = this.editorContentRef.current;
|
|
598
|
+
r.append(...t.view.dom.parentNode.childNodes), t.setOptions({
|
|
599
|
+
element: r
|
|
600
|
+
}), t.contentComponent = lt(), t.createNodeViews(), t.isEditorContentInitialized = !0, this.forceUpdate();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
componentWillUnmount() {
|
|
604
|
+
var e;
|
|
605
|
+
const t = this.props.editor;
|
|
606
|
+
if (t) {
|
|
607
|
+
t.isEditorContentInitialized = !1, t.isDestroyed || t.view.setProps({
|
|
608
|
+
nodeViews: {}
|
|
609
|
+
}), t.contentComponent = null;
|
|
610
|
+
try {
|
|
611
|
+
if (!((e = t.view.dom) != null && e.parentNode))
|
|
612
|
+
return;
|
|
613
|
+
const r = document.createElement("div");
|
|
614
|
+
r.append(...t.view.dom.parentNode.childNodes), t.setOptions({
|
|
615
|
+
element: r
|
|
616
|
+
});
|
|
617
|
+
} catch {
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
render() {
|
|
622
|
+
const { editor: e, innerRef: t, ...r } = this.props;
|
|
623
|
+
return /* @__PURE__ */ Ee(ie, { children: [
|
|
624
|
+
/* @__PURE__ */ w("div", { ref: ct(t, this.editorContentRef), ...r }),
|
|
625
|
+
e?.contentComponent && /* @__PURE__ */ w(ft, { contentComponent: e.contentComponent })
|
|
626
|
+
] });
|
|
627
|
+
}
|
|
628
|
+
}, pt = le(
|
|
629
|
+
(e, t) => {
|
|
630
|
+
const r = R.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
|
|
631
|
+
return R.createElement(dt, {
|
|
632
|
+
key: r,
|
|
633
|
+
innerRef: t,
|
|
634
|
+
...e
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
), ht = R.memo(pt), mt = typeof window < "u" ? de : pe, Et = class {
|
|
638
|
+
constructor(e) {
|
|
639
|
+
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = e, this.lastSnapshot = { editor: e, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Get the current editor instance.
|
|
643
|
+
*/
|
|
644
|
+
getSnapshot() {
|
|
645
|
+
return this.transactionNumber === this.lastTransactionNumber ? this.lastSnapshot : (this.lastTransactionNumber = this.transactionNumber, this.lastSnapshot = { editor: this.editor, transactionNumber: this.transactionNumber }, this.lastSnapshot);
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Always disable the editor on the server-side.
|
|
649
|
+
*/
|
|
650
|
+
getServerSnapshot() {
|
|
651
|
+
return { editor: null, transactionNumber: 0 };
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* Subscribe to the editor instance's changes.
|
|
655
|
+
*/
|
|
656
|
+
subscribe(e) {
|
|
657
|
+
return this.subscribers.add(e), () => {
|
|
658
|
+
this.subscribers.delete(e);
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Watch the editor instance for changes.
|
|
663
|
+
*/
|
|
664
|
+
watch(e) {
|
|
665
|
+
if (this.editor = e, this.editor) {
|
|
666
|
+
const t = () => {
|
|
667
|
+
this.transactionNumber += 1, this.subscribers.forEach((n) => n());
|
|
668
|
+
}, r = this.editor;
|
|
669
|
+
return r.on("transaction", t), () => {
|
|
670
|
+
r.off("transaction", t);
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
function bt(e) {
|
|
676
|
+
var t;
|
|
677
|
+
const [r] = ce(() => new Et(e.editor)), n = at.useSyncExternalStoreWithSelector(
|
|
678
|
+
r.subscribe,
|
|
679
|
+
r.getSnapshot,
|
|
680
|
+
r.getServerSnapshot,
|
|
681
|
+
e.selector,
|
|
682
|
+
(t = e.equalityFn) != null ? t : ot
|
|
683
|
+
);
|
|
684
|
+
return mt(() => r.watch(e.editor), [e.editor, r]), fe(n), n;
|
|
685
|
+
}
|
|
686
|
+
process.env.NODE_ENV;
|
|
687
|
+
var P = B({
|
|
688
|
+
editor: null
|
|
689
|
+
});
|
|
690
|
+
P.Consumer;
|
|
691
|
+
var Tt = () => U(P), vt = B({
|
|
692
|
+
onDragStart: () => {
|
|
693
|
+
},
|
|
694
|
+
nodeViewContentChildren: void 0,
|
|
695
|
+
nodeViewContentRef: () => {
|
|
696
|
+
}
|
|
697
|
+
}), yt = () => U(vt);
|
|
698
|
+
R.forwardRef((e, t) => {
|
|
699
|
+
const { onDragStart: r } = yt(), n = e.as || "div";
|
|
700
|
+
return (
|
|
701
|
+
// @ts-ignore
|
|
702
|
+
/* @__PURE__ */ w(
|
|
703
|
+
n,
|
|
704
|
+
{
|
|
705
|
+
...e,
|
|
706
|
+
ref: t,
|
|
707
|
+
"data-node-view-wrapper": "",
|
|
708
|
+
onDragStart: r,
|
|
709
|
+
style: {
|
|
710
|
+
whiteSpace: "normal",
|
|
711
|
+
...e.style
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
)
|
|
715
|
+
);
|
|
716
|
+
});
|
|
717
|
+
function ne(e) {
|
|
718
|
+
return !!(typeof e == "function" && e.prototype && e.prototype.isReactComponent);
|
|
719
|
+
}
|
|
720
|
+
function oe(e) {
|
|
721
|
+
return !!(typeof e == "object" && e.$$typeof && (e.$$typeof.toString() === "Symbol(react.forward_ref)" || e.$$typeof.description === "react.forward_ref"));
|
|
722
|
+
}
|
|
723
|
+
function _t(e) {
|
|
724
|
+
return !!(typeof e == "object" && e.$$typeof && (e.$$typeof.toString() === "Symbol(react.memo)" || e.$$typeof.description === "react.memo"));
|
|
725
|
+
}
|
|
726
|
+
function St(e) {
|
|
727
|
+
if (ne(e) || oe(e))
|
|
728
|
+
return !0;
|
|
729
|
+
if (_t(e)) {
|
|
730
|
+
const t = e.type;
|
|
731
|
+
if (t)
|
|
732
|
+
return ne(t) || oe(t);
|
|
733
|
+
}
|
|
734
|
+
return !1;
|
|
735
|
+
}
|
|
736
|
+
function Ot() {
|
|
737
|
+
try {
|
|
738
|
+
if (k)
|
|
739
|
+
return parseInt(k.split(".")[0], 10) >= 19;
|
|
740
|
+
} catch {
|
|
741
|
+
}
|
|
742
|
+
return !1;
|
|
743
|
+
}
|
|
744
|
+
var Ct = class {
|
|
745
|
+
/**
|
|
746
|
+
* Immediately creates element and renders the provided React component.
|
|
747
|
+
*/
|
|
748
|
+
constructor(e, { editor: t, props: r = {}, as: n = "div", className: o = "" }) {
|
|
749
|
+
this.ref = null, this.destroyed = !1, this.id = Math.floor(Math.random() * 4294967295).toString(), this.component = e, this.editor = t, this.props = r, this.element = document.createElement(n), this.element.classList.add("react-renderer"), o && this.element.classList.add(...o.split(" ")), this.editor.isEditorContentInitialized ? me(() => {
|
|
750
|
+
this.render();
|
|
751
|
+
}) : queueMicrotask(() => {
|
|
752
|
+
this.destroyed || this.render();
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* Render the React component.
|
|
757
|
+
*/
|
|
758
|
+
render() {
|
|
759
|
+
var e;
|
|
760
|
+
if (this.destroyed)
|
|
761
|
+
return;
|
|
762
|
+
const t = this.component, r = this.props, n = this.editor, o = Ot(), a = St(t), u = { ...r };
|
|
763
|
+
u.ref && !(o || a) && delete u.ref, !u.ref && (o || a) && (u.ref = (s) => {
|
|
764
|
+
this.ref = s;
|
|
765
|
+
}), this.reactElement = /* @__PURE__ */ w(t, { ...u }), (e = n?.contentComponent) == null || e.setRenderer(this.id, this);
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Re-renders the React component with new props.
|
|
769
|
+
*/
|
|
770
|
+
updateProps(e = {}) {
|
|
771
|
+
this.destroyed || (this.props = {
|
|
772
|
+
...this.props,
|
|
773
|
+
...e
|
|
774
|
+
}, this.render());
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Destroy the React component.
|
|
778
|
+
*/
|
|
779
|
+
destroy() {
|
|
780
|
+
var e;
|
|
781
|
+
this.destroyed = !0;
|
|
782
|
+
const t = this.editor;
|
|
783
|
+
(e = t?.contentComponent) == null || e.removeRenderer(this.id);
|
|
784
|
+
try {
|
|
785
|
+
this.element && this.element.parentNode && this.element.parentNode.removeChild(this.element);
|
|
786
|
+
} catch {
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Update the attributes of the element that holds the React component.
|
|
791
|
+
*/
|
|
792
|
+
updateAttributes(e) {
|
|
793
|
+
Object.keys(e).forEach((t) => {
|
|
794
|
+
this.element.setAttribute(t, e[t]);
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
R.createContext({
|
|
799
|
+
markViewContentRef: () => {
|
|
800
|
+
}
|
|
801
|
+
});
|
|
802
|
+
var W = B({
|
|
803
|
+
get editor() {
|
|
804
|
+
throw new Error("useTiptap must be used within a <Tiptap> provider");
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
W.displayName = "TiptapContext";
|
|
808
|
+
var gt = () => U(W);
|
|
809
|
+
function se({ editor: e, instance: t, children: r }) {
|
|
810
|
+
const n = e ?? t;
|
|
811
|
+
if (!n)
|
|
812
|
+
throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");
|
|
813
|
+
const o = z(() => ({ editor: n }), [n]), a = z(() => ({ editor: n }), [n]);
|
|
814
|
+
return /* @__PURE__ */ w(P.Provider, { value: a, children: /* @__PURE__ */ w(W.Provider, { value: o, children: r }) });
|
|
815
|
+
}
|
|
816
|
+
se.displayName = "Tiptap";
|
|
817
|
+
function ae({ ...e }) {
|
|
818
|
+
const { editor: t } = gt();
|
|
819
|
+
return /* @__PURE__ */ w(ht, { editor: t, ...e });
|
|
820
|
+
}
|
|
821
|
+
ae.displayName = "Tiptap.Content";
|
|
822
|
+
Object.assign(se, {
|
|
823
|
+
/**
|
|
824
|
+
* The Tiptap Content component that renders the EditorContent with the editor instance from the context.
|
|
825
|
+
* @see TiptapContent
|
|
826
|
+
*/
|
|
827
|
+
Content: ae
|
|
828
|
+
});
|
|
829
|
+
export {
|
|
830
|
+
ht as E,
|
|
831
|
+
Ct as R,
|
|
832
|
+
Tt as a,
|
|
833
|
+
bt as u
|
|
834
|
+
};
|