@blocknote/ariakit 0.23.3 → 0.23.4
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,1655 +1,628 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { assertEmpty as
|
|
3
|
-
import { elementOverflow as
|
|
4
|
-
import { FormProvider as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
var Pe;
|
|
16
|
-
function Xr() {
|
|
17
|
-
if (Pe) return Y;
|
|
18
|
-
Pe = 1;
|
|
19
|
-
var t = Symbol.for("react.fragment");
|
|
20
|
-
return Y.Fragment = t, Y.jsxDEV = void 0, Y;
|
|
21
|
-
}
|
|
22
|
-
var G = {};
|
|
23
|
-
/**
|
|
24
|
-
* @license React
|
|
25
|
-
* react-jsx-dev-runtime.development.js
|
|
26
|
-
*
|
|
27
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28
|
-
*
|
|
29
|
-
* This source code is licensed under the MIT license found in the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/
|
|
32
|
-
var Ve;
|
|
33
|
-
function Zr() {
|
|
34
|
-
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
35
|
-
var t = Tr, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), h = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), M = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), $e = Symbol.for("react.offscreen"), ie = Symbol.iterator, We = "@@iterator";
|
|
36
|
-
function Ye(e) {
|
|
37
|
-
if (e === null || typeof e != "object")
|
|
38
|
-
return null;
|
|
39
|
-
var r = ie && e[ie] || e[We];
|
|
40
|
-
return typeof r == "function" ? r : null;
|
|
41
|
-
}
|
|
42
|
-
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
43
|
-
function T(e) {
|
|
44
|
-
{
|
|
45
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
46
|
-
i[u - 1] = arguments[u];
|
|
47
|
-
Ge("error", e, i);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function Ge(e, r, i) {
|
|
51
|
-
{
|
|
52
|
-
var u = C.ReactDebugCurrentFrame, b = u.getStackAddendum();
|
|
53
|
-
b !== "" && (r += "%s", i = i.concat([b]));
|
|
54
|
-
var g = i.map(function(k) {
|
|
55
|
-
return String(k);
|
|
56
|
-
});
|
|
57
|
-
g.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, g);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
var Ke = !1, qe = !1, He = !1, Je = !1, ze = !1, se;
|
|
61
|
-
se = Symbol.for("react.module.reference");
|
|
62
|
-
function Xe(e) {
|
|
63
|
-
return !!(typeof e == "string" || typeof e == "function" || e === n || e === c || ze || e === l || e === v || e === j || Je || e === $e || Ke || qe || He || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === M || e.$$typeof === f || e.$$typeof === h || e.$$typeof === d || // This needs to include all possible module reference object
|
|
64
|
-
// types supported by any Flight configuration anywhere since
|
|
65
|
-
// we don't know which Flight build this will end up being used
|
|
66
|
-
// with.
|
|
67
|
-
e.$$typeof === se || e.getModuleId !== void 0));
|
|
68
|
-
}
|
|
69
|
-
function Ze(e, r, i) {
|
|
70
|
-
var u = e.displayName;
|
|
71
|
-
if (u)
|
|
72
|
-
return u;
|
|
73
|
-
var b = r.displayName || r.name || "";
|
|
74
|
-
return b !== "" ? i + "(" + b + ")" : i;
|
|
75
|
-
}
|
|
76
|
-
function oe(e) {
|
|
77
|
-
return e.displayName || "Context";
|
|
78
|
-
}
|
|
79
|
-
function B(e) {
|
|
80
|
-
if (e == null)
|
|
81
|
-
return null;
|
|
82
|
-
if (typeof e.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
83
|
-
return e.displayName || e.name || null;
|
|
84
|
-
if (typeof e == "string")
|
|
85
|
-
return e;
|
|
86
|
-
switch (e) {
|
|
87
|
-
case n:
|
|
88
|
-
return "Fragment";
|
|
89
|
-
case o:
|
|
90
|
-
return "Portal";
|
|
91
|
-
case c:
|
|
92
|
-
return "Profiler";
|
|
93
|
-
case l:
|
|
94
|
-
return "StrictMode";
|
|
95
|
-
case v:
|
|
96
|
-
return "Suspense";
|
|
97
|
-
case j:
|
|
98
|
-
return "SuspenseList";
|
|
99
|
-
}
|
|
100
|
-
if (typeof e == "object")
|
|
101
|
-
switch (e.$$typeof) {
|
|
102
|
-
case h:
|
|
103
|
-
var r = e;
|
|
104
|
-
return oe(r) + ".Consumer";
|
|
105
|
-
case f:
|
|
106
|
-
var i = e;
|
|
107
|
-
return oe(i._context) + ".Provider";
|
|
108
|
-
case d:
|
|
109
|
-
return Ze(e, e.render, "ForwardRef");
|
|
110
|
-
case M:
|
|
111
|
-
var u = e.displayName || null;
|
|
112
|
-
return u !== null ? u : B(e.type) || "Memo";
|
|
113
|
-
case P: {
|
|
114
|
-
var b = e, g = b._payload, k = b._init;
|
|
115
|
-
try {
|
|
116
|
-
return B(k(g));
|
|
117
|
-
} catch {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
var V = Object.assign, I = 0, le, ce, ue, de, fe, me, ke;
|
|
125
|
-
function ve() {
|
|
126
|
-
}
|
|
127
|
-
ve.__reactDisabledLog = !0;
|
|
128
|
-
function Qe() {
|
|
129
|
-
{
|
|
130
|
-
if (I === 0) {
|
|
131
|
-
le = console.log, ce = console.info, ue = console.warn, de = console.error, fe = console.group, me = console.groupCollapsed, ke = console.groupEnd;
|
|
132
|
-
var e = {
|
|
133
|
-
configurable: !0,
|
|
134
|
-
enumerable: !0,
|
|
135
|
-
value: ve,
|
|
136
|
-
writable: !0
|
|
137
|
-
};
|
|
138
|
-
Object.defineProperties(console, {
|
|
139
|
-
info: e,
|
|
140
|
-
log: e,
|
|
141
|
-
warn: e,
|
|
142
|
-
error: e,
|
|
143
|
-
group: e,
|
|
144
|
-
groupCollapsed: e,
|
|
145
|
-
groupEnd: e
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
I++;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
function er() {
|
|
152
|
-
{
|
|
153
|
-
if (I--, I === 0) {
|
|
154
|
-
var e = {
|
|
155
|
-
configurable: !0,
|
|
156
|
-
enumerable: !0,
|
|
157
|
-
writable: !0
|
|
158
|
-
};
|
|
159
|
-
Object.defineProperties(console, {
|
|
160
|
-
log: V({}, e, {
|
|
161
|
-
value: le
|
|
162
|
-
}),
|
|
163
|
-
info: V({}, e, {
|
|
164
|
-
value: ce
|
|
165
|
-
}),
|
|
166
|
-
warn: V({}, e, {
|
|
167
|
-
value: ue
|
|
168
|
-
}),
|
|
169
|
-
error: V({}, e, {
|
|
170
|
-
value: de
|
|
171
|
-
}),
|
|
172
|
-
group: V({}, e, {
|
|
173
|
-
value: fe
|
|
174
|
-
}),
|
|
175
|
-
groupCollapsed: V({}, e, {
|
|
176
|
-
value: me
|
|
177
|
-
}),
|
|
178
|
-
groupEnd: V({}, e, {
|
|
179
|
-
value: ke
|
|
180
|
-
})
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
I < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
var q = C.ReactCurrentDispatcher, H;
|
|
187
|
-
function A(e, r, i) {
|
|
188
|
-
{
|
|
189
|
-
if (H === void 0)
|
|
190
|
-
try {
|
|
191
|
-
throw Error();
|
|
192
|
-
} catch (b) {
|
|
193
|
-
var u = b.stack.trim().match(/\n( *(at )?)/);
|
|
194
|
-
H = u && u[1] || "";
|
|
195
|
-
}
|
|
196
|
-
return `
|
|
197
|
-
` + H + e;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
var J = !1, L;
|
|
201
|
-
{
|
|
202
|
-
var rr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
203
|
-
L = new rr();
|
|
204
|
-
}
|
|
205
|
-
function pe(e, r) {
|
|
206
|
-
if (!e || J)
|
|
207
|
-
return "";
|
|
208
|
-
{
|
|
209
|
-
var i = L.get(e);
|
|
210
|
-
if (i !== void 0)
|
|
211
|
-
return i;
|
|
212
|
-
}
|
|
213
|
-
var u;
|
|
214
|
-
J = !0;
|
|
215
|
-
var b = Error.prepareStackTrace;
|
|
216
|
-
Error.prepareStackTrace = void 0;
|
|
217
|
-
var g;
|
|
218
|
-
g = q.current, q.current = null, Qe();
|
|
219
|
-
try {
|
|
220
|
-
if (r) {
|
|
221
|
-
var k = function() {
|
|
222
|
-
throw Error();
|
|
223
|
-
};
|
|
224
|
-
if (Object.defineProperty(k.prototype, "props", {
|
|
225
|
-
set: function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
}
|
|
228
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
229
|
-
try {
|
|
230
|
-
Reflect.construct(k, []);
|
|
231
|
-
} catch (S) {
|
|
232
|
-
u = S;
|
|
233
|
-
}
|
|
234
|
-
Reflect.construct(e, [], k);
|
|
235
|
-
} else {
|
|
236
|
-
try {
|
|
237
|
-
k.call();
|
|
238
|
-
} catch (S) {
|
|
239
|
-
u = S;
|
|
240
|
-
}
|
|
241
|
-
e.call(k.prototype);
|
|
242
|
-
}
|
|
243
|
-
} else {
|
|
244
|
-
try {
|
|
245
|
-
throw Error();
|
|
246
|
-
} catch (S) {
|
|
247
|
-
u = S;
|
|
248
|
-
}
|
|
249
|
-
e();
|
|
250
|
-
}
|
|
251
|
-
} catch (S) {
|
|
252
|
-
if (S && u && typeof S.stack == "string") {
|
|
253
|
-
for (var m = S.stack.split(`
|
|
254
|
-
`), y = u.stack.split(`
|
|
255
|
-
`), D = m.length - 1, E = y.length - 1; D >= 1 && E >= 0 && m[D] !== y[E]; )
|
|
256
|
-
E--;
|
|
257
|
-
for (; D >= 1 && E >= 0; D--, E--)
|
|
258
|
-
if (m[D] !== y[E]) {
|
|
259
|
-
if (D !== 1 || E !== 1)
|
|
260
|
-
do
|
|
261
|
-
if (D--, E--, E < 0 || m[D] !== y[E]) {
|
|
262
|
-
var R = `
|
|
263
|
-
` + m[D].replace(" at new ", " at ");
|
|
264
|
-
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, R), R;
|
|
265
|
-
}
|
|
266
|
-
while (D >= 1 && E >= 0);
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
} finally {
|
|
271
|
-
J = !1, q.current = g, er(), Error.prepareStackTrace = b;
|
|
272
|
-
}
|
|
273
|
-
var w = e ? e.displayName || e.name : "", _ = w ? A(w) : "";
|
|
274
|
-
return typeof e == "function" && L.set(e, _), _;
|
|
275
|
-
}
|
|
276
|
-
function nr(e, r, i) {
|
|
277
|
-
return pe(e, !1);
|
|
278
|
-
}
|
|
279
|
-
function tr(e) {
|
|
280
|
-
var r = e.prototype;
|
|
281
|
-
return !!(r && r.isReactComponent);
|
|
282
|
-
}
|
|
283
|
-
function $(e, r, i) {
|
|
284
|
-
if (e == null)
|
|
285
|
-
return "";
|
|
286
|
-
if (typeof e == "function")
|
|
287
|
-
return pe(e, tr(e));
|
|
288
|
-
if (typeof e == "string")
|
|
289
|
-
return A(e);
|
|
290
|
-
switch (e) {
|
|
291
|
-
case v:
|
|
292
|
-
return A("Suspense");
|
|
293
|
-
case j:
|
|
294
|
-
return A("SuspenseList");
|
|
295
|
-
}
|
|
296
|
-
if (typeof e == "object")
|
|
297
|
-
switch (e.$$typeof) {
|
|
298
|
-
case d:
|
|
299
|
-
return nr(e.render);
|
|
300
|
-
case M:
|
|
301
|
-
return $(e.type, r, i);
|
|
302
|
-
case P: {
|
|
303
|
-
var u = e, b = u._payload, g = u._init;
|
|
304
|
-
try {
|
|
305
|
-
return $(g(b), r, i);
|
|
306
|
-
} catch {
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
return "";
|
|
311
|
-
}
|
|
312
|
-
var O = Object.prototype.hasOwnProperty, be = {}, Ne = C.ReactDebugCurrentFrame;
|
|
313
|
-
function W(e) {
|
|
314
|
-
if (e) {
|
|
315
|
-
var r = e._owner, i = $(e.type, e._source, r ? r.type : null);
|
|
316
|
-
Ne.setExtraStackFrame(i);
|
|
317
|
-
} else
|
|
318
|
-
Ne.setExtraStackFrame(null);
|
|
319
|
-
}
|
|
320
|
-
function ar(e, r, i, u, b) {
|
|
321
|
-
{
|
|
322
|
-
var g = Function.call.bind(O);
|
|
323
|
-
for (var k in e)
|
|
324
|
-
if (g(e, k)) {
|
|
325
|
-
var m = void 0;
|
|
326
|
-
try {
|
|
327
|
-
if (typeof e[k] != "function") {
|
|
328
|
-
var y = Error((u || "React class") + ": " + i + " type `" + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[k] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
329
|
-
throw y.name = "Invariant Violation", y;
|
|
330
|
-
}
|
|
331
|
-
m = e[k](r, k, u, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
332
|
-
} catch (D) {
|
|
333
|
-
m = D;
|
|
334
|
-
}
|
|
335
|
-
m && !(m instanceof Error) && (W(b), T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", i, k, typeof m), W(null)), m instanceof Error && !(m.message in be) && (be[m.message] = !0, W(b), T("Failed %s type: %s", i, m.message), W(null));
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
var ir = Array.isArray;
|
|
340
|
-
function z(e) {
|
|
341
|
-
return ir(e);
|
|
342
|
-
}
|
|
343
|
-
function sr(e) {
|
|
344
|
-
{
|
|
345
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, i = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
346
|
-
return i;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
function or(e) {
|
|
350
|
-
try {
|
|
351
|
-
return ge(e), !1;
|
|
352
|
-
} catch {
|
|
353
|
-
return !0;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function ge(e) {
|
|
357
|
-
return "" + e;
|
|
358
|
-
}
|
|
359
|
-
function he(e) {
|
|
360
|
-
if (or(e))
|
|
361
|
-
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(e)), ge(e);
|
|
362
|
-
}
|
|
363
|
-
var F = C.ReactCurrentOwner, lr = {
|
|
364
|
-
key: !0,
|
|
365
|
-
ref: !0,
|
|
366
|
-
__self: !0,
|
|
367
|
-
__source: !0
|
|
368
|
-
}, xe, De, X;
|
|
369
|
-
X = {};
|
|
370
|
-
function cr(e) {
|
|
371
|
-
if (O.call(e, "ref")) {
|
|
372
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
373
|
-
if (r && r.isReactWarning)
|
|
374
|
-
return !1;
|
|
375
|
-
}
|
|
376
|
-
return e.ref !== void 0;
|
|
377
|
-
}
|
|
378
|
-
function ur(e) {
|
|
379
|
-
if (O.call(e, "key")) {
|
|
380
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
381
|
-
if (r && r.isReactWarning)
|
|
382
|
-
return !1;
|
|
383
|
-
}
|
|
384
|
-
return e.key !== void 0;
|
|
385
|
-
}
|
|
386
|
-
function dr(e, r) {
|
|
387
|
-
if (typeof e.ref == "string" && F.current && r && F.current.stateNode !== r) {
|
|
388
|
-
var i = B(F.current.type);
|
|
389
|
-
X[i] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(F.current.type), e.ref), X[i] = !0);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
function fr(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var i = function() {
|
|
395
|
-
xe || (xe = !0, T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
396
|
-
};
|
|
397
|
-
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: i,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function mr(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var i = function() {
|
|
406
|
-
De || (De = !0, T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
|
-
};
|
|
408
|
-
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: i,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var kr = function(e, r, i, u, b, g, k) {
|
|
415
|
-
var m = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: a,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: i,
|
|
422
|
-
props: k,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: g
|
|
425
|
-
};
|
|
426
|
-
return m._store = {}, Object.defineProperty(m._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(m, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: u
|
|
436
|
-
}), Object.defineProperty(m, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: b
|
|
441
|
-
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
442
|
-
};
|
|
443
|
-
function vr(e, r, i, u, b) {
|
|
444
|
-
{
|
|
445
|
-
var g, k = {}, m = null, y = null;
|
|
446
|
-
i !== void 0 && (he(i), m = "" + i), ur(r) && (he(r.key), m = "" + r.key), cr(r) && (y = r.ref, dr(r, b));
|
|
447
|
-
for (g in r)
|
|
448
|
-
O.call(r, g) && !lr.hasOwnProperty(g) && (k[g] = r[g]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var D = e.defaultProps;
|
|
451
|
-
for (g in D)
|
|
452
|
-
k[g] === void 0 && (k[g] = D[g]);
|
|
453
|
-
}
|
|
454
|
-
if (m || y) {
|
|
455
|
-
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
m && fr(k, E), y && mr(k, E);
|
|
457
|
-
}
|
|
458
|
-
return kr(e, m, y, b, u, F.current, k);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var Z = C.ReactCurrentOwner, Ee = C.ReactDebugCurrentFrame;
|
|
462
|
-
function U(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, i = $(e.type, e._source, r ? r.type : null);
|
|
465
|
-
Ee.setExtraStackFrame(i);
|
|
466
|
-
} else
|
|
467
|
-
Ee.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var Q;
|
|
470
|
-
Q = !1;
|
|
471
|
-
function ee(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === a;
|
|
473
|
-
}
|
|
474
|
-
function Te() {
|
|
475
|
-
{
|
|
476
|
-
if (Z.current) {
|
|
477
|
-
var e = B(Z.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function pr(e) {
|
|
487
|
-
{
|
|
488
|
-
if (e !== void 0) {
|
|
489
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
|
|
490
|
-
return `
|
|
491
|
-
|
|
492
|
-
Check your code at ` + r + ":" + i + ".";
|
|
493
|
-
}
|
|
494
|
-
return "";
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
var ye = {};
|
|
498
|
-
function br(e) {
|
|
499
|
-
{
|
|
500
|
-
var r = Te();
|
|
501
|
-
if (!r) {
|
|
502
|
-
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
-
i && (r = `
|
|
504
|
-
|
|
505
|
-
Check the top-level render call using <` + i + ">.");
|
|
506
|
-
}
|
|
507
|
-
return r;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function Se(e, r) {
|
|
511
|
-
{
|
|
512
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
513
|
-
return;
|
|
514
|
-
e._store.validated = !0;
|
|
515
|
-
var i = br(r);
|
|
516
|
-
if (ye[i])
|
|
517
|
-
return;
|
|
518
|
-
ye[i] = !0;
|
|
519
|
-
var u = "";
|
|
520
|
-
e && e._owner && e._owner !== Z.current && (u = " It was passed a child from " + B(e._owner.type) + "."), U(e), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, u), U(null);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
function je(e, r) {
|
|
524
|
-
{
|
|
525
|
-
if (typeof e != "object")
|
|
526
|
-
return;
|
|
527
|
-
if (z(e))
|
|
528
|
-
for (var i = 0; i < e.length; i++) {
|
|
529
|
-
var u = e[i];
|
|
530
|
-
ee(u) && Se(u, r);
|
|
531
|
-
}
|
|
532
|
-
else if (ee(e))
|
|
533
|
-
e._store && (e._store.validated = !0);
|
|
534
|
-
else if (e) {
|
|
535
|
-
var b = Ye(e);
|
|
536
|
-
if (typeof b == "function" && b !== e.entries)
|
|
537
|
-
for (var g = b.call(e), k; !(k = g.next()).done; )
|
|
538
|
-
ee(k.value) && Se(k.value, r);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
function Nr(e) {
|
|
543
|
-
{
|
|
544
|
-
var r = e.type;
|
|
545
|
-
if (r == null || typeof r == "string")
|
|
546
|
-
return;
|
|
547
|
-
var i;
|
|
548
|
-
if (typeof r == "function")
|
|
549
|
-
i = r.propTypes;
|
|
550
|
-
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
551
|
-
// Inner props are checked in the reconciler.
|
|
552
|
-
r.$$typeof === M))
|
|
553
|
-
i = r.propTypes;
|
|
554
|
-
else
|
|
555
|
-
return;
|
|
556
|
-
if (i) {
|
|
557
|
-
var u = B(r);
|
|
558
|
-
ar(i, e.props, "prop", u, e);
|
|
559
|
-
} else if (r.PropTypes !== void 0 && !Q) {
|
|
560
|
-
Q = !0;
|
|
561
|
-
var b = B(r);
|
|
562
|
-
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
|
563
|
-
}
|
|
564
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
function gr(e) {
|
|
568
|
-
{
|
|
569
|
-
for (var r = Object.keys(e.props), i = 0; i < r.length; i++) {
|
|
570
|
-
var u = r[i];
|
|
571
|
-
if (u !== "children" && u !== "key") {
|
|
572
|
-
U(e), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), U(null);
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
e.ref !== null && (U(e), T("Invalid attribute `ref` supplied to `React.Fragment`."), U(null));
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
var Re = {};
|
|
580
|
-
function hr(e, r, i, u, b, g) {
|
|
581
|
-
{
|
|
582
|
-
var k = Xe(e);
|
|
583
|
-
if (!k) {
|
|
584
|
-
var m = "";
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
-
var y = pr(b);
|
|
587
|
-
y ? m += y : m += Te();
|
|
588
|
-
var D;
|
|
589
|
-
e === null ? D = "null" : z(e) ? D = "array" : e !== void 0 && e.$$typeof === a ? (D = "<" + (B(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, m);
|
|
590
|
-
}
|
|
591
|
-
var E = vr(e, r, i, b, g);
|
|
592
|
-
if (E == null)
|
|
593
|
-
return E;
|
|
594
|
-
if (k) {
|
|
595
|
-
var R = r.children;
|
|
596
|
-
if (R !== void 0)
|
|
597
|
-
if (u)
|
|
598
|
-
if (z(R)) {
|
|
599
|
-
for (var w = 0; w < R.length; w++)
|
|
600
|
-
je(R[w], e);
|
|
601
|
-
Object.freeze && Object.freeze(R);
|
|
602
|
-
} else
|
|
603
|
-
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
|
-
else
|
|
605
|
-
je(R, e);
|
|
606
|
-
}
|
|
607
|
-
if (O.call(r, "key")) {
|
|
608
|
-
var _ = B(e), S = Object.keys(r).filter(function(Er) {
|
|
609
|
-
return Er !== "key";
|
|
610
|
-
}), re = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
-
if (!Re[_ + re]) {
|
|
612
|
-
var Dr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
T(`A props object containing a "key" prop is being spread into JSX:
|
|
614
|
-
let props = %s;
|
|
615
|
-
<%s {...props} />
|
|
616
|
-
React keys must be passed directly to JSX without using spread:
|
|
617
|
-
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`, re, _, Dr, _), Re[_ + re] = !0;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
return e === n ? gr(E) : Nr(E), E;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
var xr = hr;
|
|
625
|
-
G.Fragment = n, G.jsxDEV = xr;
|
|
626
|
-
}()), G;
|
|
627
|
-
}
|
|
628
|
-
process.env.NODE_ENV === "production" ? ne.exports = Xr() : ne.exports = Zr();
|
|
629
|
-
var s = ne.exports;
|
|
630
|
-
const Qr = (t) => {
|
|
631
|
-
const { children: a, ...o } = t;
|
|
632
|
-
return p(o), /* @__PURE__ */ s.jsxDEV(te, { children: a }, void 0, !1, {
|
|
633
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/Form.tsx",
|
|
634
|
-
lineNumber: 11,
|
|
635
|
-
columnNumber: 10
|
|
636
|
-
}, void 0);
|
|
637
|
-
}, en = N((t, a) => {
|
|
1
|
+
import { jsx as r, jsxs as g, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { assertEmpty as i, mergeCSSClasses as b, isSafari as B } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as P, mergeRefs as C, ComponentsContext as F, BlockNoteViewRaw as E } from "@blocknote/react";
|
|
4
|
+
import { FormProvider as k, FormLabel as G, FormInput as f, MenuProvider as V, Menu as $, MenuButton as w, MenuItem as T, MenuButtonArrow as O, CheckboxCheck as S, MenuGroupLabel as A, MenuSeparator as H, TabProvider as j, TabList as q, Tab as K, TabPanel as z, Button as N, PopoverDisclosure as J, Popover as Q, PopoverProvider as U, Group as y, Toolbar as W, TooltipProvider as X, TooltipAnchor as Y, ToolbarItem as x, Tooltip as Z, SelectProvider as _, Select as ee, SelectArrow as ne, SelectPopover as te, SelectItem as se, SelectItemCheck as ae } from "@ariakit/react";
|
|
5
|
+
import { forwardRef as d, useRef as R, useEffect as D } from "react";
|
|
6
|
+
const re = (n) => {
|
|
7
|
+
const { children: t, ...s } = n;
|
|
8
|
+
return i(s), /* @__PURE__ */ r(k, { children: t });
|
|
9
|
+
}, oe = d((n, t) => {
|
|
638
10
|
const {
|
|
639
|
-
className:
|
|
640
|
-
name:
|
|
641
|
-
label:
|
|
642
|
-
icon:
|
|
643
|
-
value:
|
|
644
|
-
autoFocus:
|
|
645
|
-
placeholder:
|
|
646
|
-
onKeyDown:
|
|
647
|
-
onChange:
|
|
648
|
-
onSubmit:
|
|
649
|
-
...
|
|
650
|
-
} =
|
|
651
|
-
return
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
/* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-input-wrapper", children: [
|
|
658
|
-
c,
|
|
659
|
-
/* @__PURE__ */ s.jsxDEV(
|
|
660
|
-
ae,
|
|
661
|
-
{
|
|
662
|
-
className: x("bn-ak-input", o || ""),
|
|
663
|
-
ref: a,
|
|
664
|
-
name: n,
|
|
665
|
-
value: f,
|
|
666
|
-
autoFocus: h,
|
|
667
|
-
placeholder: d,
|
|
668
|
-
onKeyDown: v,
|
|
669
|
-
onChange: j,
|
|
670
|
-
onSubmit: M
|
|
671
|
-
},
|
|
672
|
-
void 0,
|
|
673
|
-
!1,
|
|
11
|
+
className: s,
|
|
12
|
+
name: e,
|
|
13
|
+
label: a,
|
|
14
|
+
icon: o,
|
|
15
|
+
value: l,
|
|
16
|
+
autoFocus: m,
|
|
17
|
+
placeholder: c,
|
|
18
|
+
onKeyDown: u,
|
|
19
|
+
onChange: p,
|
|
20
|
+
onSubmit: h,
|
|
21
|
+
...v
|
|
22
|
+
} = n;
|
|
23
|
+
return i(v), /* @__PURE__ */ g(L, { children: [
|
|
24
|
+
n.label && /* @__PURE__ */ r(G, { name: e, children: a }),
|
|
25
|
+
/* @__PURE__ */ g("div", { className: "bn-ak-input-wrapper", children: [
|
|
26
|
+
o,
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
f,
|
|
674
29
|
{
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
30
|
+
className: b("bn-ak-input", s || ""),
|
|
31
|
+
ref: t,
|
|
32
|
+
name: e,
|
|
33
|
+
value: l,
|
|
34
|
+
autoFocus: m,
|
|
35
|
+
placeholder: c,
|
|
36
|
+
onKeyDown: u,
|
|
37
|
+
onChange: p,
|
|
38
|
+
onSubmit: h
|
|
39
|
+
}
|
|
680
40
|
)
|
|
681
|
-
] }
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
columnNumber: 7
|
|
685
|
-
}, void 0)
|
|
686
|
-
] }, void 0, !0, {
|
|
687
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/input/TextInput.tsx",
|
|
688
|
-
lineNumber: 31,
|
|
689
|
-
columnNumber: 5
|
|
690
|
-
}, void 0);
|
|
691
|
-
}), rn = (t) => {
|
|
41
|
+
] })
|
|
42
|
+
] });
|
|
43
|
+
}), le = (n) => {
|
|
692
44
|
const {
|
|
693
|
-
children:
|
|
694
|
-
onOpenChange:
|
|
695
|
-
position:
|
|
696
|
-
sub:
|
|
45
|
+
children: t,
|
|
46
|
+
onOpenChange: s,
|
|
47
|
+
position: e,
|
|
48
|
+
sub: a,
|
|
697
49
|
// unused
|
|
698
|
-
...
|
|
699
|
-
} =
|
|
700
|
-
return
|
|
701
|
-
|
|
50
|
+
...o
|
|
51
|
+
} = n;
|
|
52
|
+
return i(o), /* @__PURE__ */ r(
|
|
53
|
+
V,
|
|
702
54
|
{
|
|
703
|
-
placement:
|
|
704
|
-
setOpen:
|
|
55
|
+
placement: e,
|
|
56
|
+
setOpen: s,
|
|
705
57
|
virtualFocus: !0,
|
|
706
|
-
children:
|
|
707
|
-
}
|
|
708
|
-
void 0,
|
|
709
|
-
!1,
|
|
710
|
-
{
|
|
711
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
|
|
712
|
-
lineNumber: 28,
|
|
713
|
-
columnNumber: 5
|
|
714
|
-
},
|
|
715
|
-
void 0
|
|
58
|
+
children: t
|
|
59
|
+
}
|
|
716
60
|
);
|
|
717
|
-
},
|
|
61
|
+
}, ce = d((n, t) => {
|
|
718
62
|
const {
|
|
719
|
-
className:
|
|
720
|
-
children:
|
|
721
|
-
sub:
|
|
63
|
+
className: s,
|
|
64
|
+
children: e,
|
|
65
|
+
sub: a,
|
|
722
66
|
// unused
|
|
723
|
-
...
|
|
724
|
-
} =
|
|
725
|
-
return
|
|
726
|
-
|
|
67
|
+
...o
|
|
68
|
+
} = n;
|
|
69
|
+
return i(o), /* @__PURE__ */ r(
|
|
70
|
+
$,
|
|
727
71
|
{
|
|
728
72
|
unmountOnHide: !0,
|
|
729
|
-
className:
|
|
730
|
-
ref:
|
|
731
|
-
children:
|
|
732
|
-
}
|
|
733
|
-
void 0,
|
|
734
|
-
!1,
|
|
735
|
-
{
|
|
736
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
|
|
737
|
-
lineNumber: 51,
|
|
738
|
-
columnNumber: 5
|
|
739
|
-
},
|
|
740
|
-
void 0
|
|
73
|
+
className: b("bn-ak-menu", s || ""),
|
|
74
|
+
ref: t,
|
|
75
|
+
children: e
|
|
76
|
+
}
|
|
741
77
|
);
|
|
742
|
-
}),
|
|
743
|
-
const { className:
|
|
744
|
-
return
|
|
745
|
-
|
|
746
|
-
{
|
|
747
|
-
render: /* @__PURE__ */
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
}, void 0),
|
|
752
|
-
className: x("bn-ak-menu-item", o || ""),
|
|
753
|
-
ref: a,
|
|
754
|
-
onClick: h,
|
|
78
|
+
}), ie = d((n, t) => {
|
|
79
|
+
const { className: s, children: e, icon: a, checked: o, subTrigger: l, onClick: m, ...c } = n;
|
|
80
|
+
return i(c), l ? /* @__PURE__ */ g(
|
|
81
|
+
w,
|
|
82
|
+
{
|
|
83
|
+
render: /* @__PURE__ */ r(T, {}),
|
|
84
|
+
className: b("bn-ak-menu-item", s || ""),
|
|
85
|
+
ref: t,
|
|
86
|
+
onClick: m,
|
|
755
87
|
children: [
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
|
|
760
|
-
lineNumber: 78,
|
|
761
|
-
columnNumber: 9
|
|
762
|
-
}, void 0),
|
|
763
|
-
c !== void 0 && /* @__PURE__ */ s.jsxDEV(Be, { checked: c }, void 0, !1, {
|
|
764
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
|
|
765
|
-
lineNumber: 79,
|
|
766
|
-
columnNumber: 35
|
|
767
|
-
}, void 0)
|
|
88
|
+
a,
|
|
89
|
+
e,
|
|
90
|
+
/* @__PURE__ */ r(O, {}),
|
|
91
|
+
o !== void 0 && /* @__PURE__ */ r(S, { checked: o })
|
|
768
92
|
]
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
{
|
|
773
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
|
|
774
|
-
lineNumber: 71,
|
|
775
|
-
columnNumber: 7
|
|
776
|
-
},
|
|
777
|
-
void 0
|
|
778
|
-
) : /* @__PURE__ */ s.jsxDEV(
|
|
779
|
-
Me,
|
|
93
|
+
}
|
|
94
|
+
) : /* @__PURE__ */ g(
|
|
95
|
+
T,
|
|
780
96
|
{
|
|
781
|
-
className:
|
|
782
|
-
ref:
|
|
783
|
-
onClick:
|
|
97
|
+
className: b("bn-ak-menu-item", s || ""),
|
|
98
|
+
ref: t,
|
|
99
|
+
onClick: m,
|
|
784
100
|
children: [
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
|
|
789
|
-
lineNumber: 90,
|
|
790
|
-
columnNumber: 33
|
|
791
|
-
}, void 0)
|
|
101
|
+
a,
|
|
102
|
+
e,
|
|
103
|
+
o !== void 0 && /* @__PURE__ */ r(S, { checked: o })
|
|
792
104
|
]
|
|
793
|
-
}
|
|
794
|
-
void 0,
|
|
795
|
-
!0,
|
|
796
|
-
{
|
|
797
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/menu/Menu.tsx",
|
|
798
|
-
lineNumber: 84,
|
|
799
|
-
columnNumber: 5
|
|
800
|
-
},
|
|
801
|
-
void 0
|
|
105
|
+
}
|
|
802
106
|
);
|
|
803
|
-
}),
|
|
804
|
-
const { className:
|
|
805
|
-
return
|
|
806
|
-
|
|
807
|
-
{
|
|
808
|
-
className: x("bn-ak-group-label", o || ""),
|
|
809
|
-
ref: a,
|
|
810
|
-
children: n
|
|
811
|
-
},
|
|
812
|
-
void 0,
|
|
813
|
-
!1,
|
|
107
|
+
}), ue = d((n, t) => {
|
|
108
|
+
const { className: s, children: e, ...a } = n;
|
|
109
|
+
return i(a), /* @__PURE__ */ r(
|
|
110
|
+
A,
|
|
814
111
|
{
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
void 0
|
|
112
|
+
className: b("bn-ak-group-label", s || ""),
|
|
113
|
+
ref: t,
|
|
114
|
+
children: e
|
|
115
|
+
}
|
|
820
116
|
);
|
|
821
|
-
}),
|
|
822
|
-
const { children:
|
|
823
|
-
return
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
}, on = N((t, a) => {
|
|
829
|
-
const { className: o, ...n } = t;
|
|
830
|
-
return p(n), /* @__PURE__ */ s.jsxDEV(
|
|
831
|
-
_r,
|
|
832
|
-
{
|
|
833
|
-
className: x("bn-ak-separator", o || ""),
|
|
834
|
-
ref: a
|
|
835
|
-
},
|
|
836
|
-
void 0,
|
|
837
|
-
!1,
|
|
117
|
+
}), de = (n) => {
|
|
118
|
+
const { children: t, sub: s, ...e } = n;
|
|
119
|
+
return i(e), s ? t : /* @__PURE__ */ r(w, { render: t });
|
|
120
|
+
}, me = d((n, t) => {
|
|
121
|
+
const { className: s, ...e } = n;
|
|
122
|
+
return i(e), /* @__PURE__ */ r(
|
|
123
|
+
H,
|
|
838
124
|
{
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
},
|
|
843
|
-
void 0
|
|
125
|
+
className: b("bn-ak-separator", s || ""),
|
|
126
|
+
ref: t
|
|
127
|
+
}
|
|
844
128
|
);
|
|
845
|
-
}),
|
|
129
|
+
}), be = d((n, t) => {
|
|
846
130
|
const {
|
|
847
|
-
className:
|
|
848
|
-
tabs:
|
|
849
|
-
defaultOpenTab:
|
|
850
|
-
openTab:
|
|
851
|
-
setOpenTab:
|
|
852
|
-
loading:
|
|
131
|
+
className: s,
|
|
132
|
+
tabs: e,
|
|
133
|
+
defaultOpenTab: a,
|
|
134
|
+
openTab: o,
|
|
135
|
+
setOpenTab: l,
|
|
136
|
+
loading: m,
|
|
853
137
|
// TODO: implement loading
|
|
854
|
-
...
|
|
855
|
-
} =
|
|
856
|
-
return
|
|
138
|
+
...c
|
|
139
|
+
} = n;
|
|
140
|
+
return i(c), /* @__PURE__ */ r(
|
|
857
141
|
"div",
|
|
858
142
|
{
|
|
859
|
-
className:
|
|
860
|
-
ref:
|
|
861
|
-
children: /* @__PURE__ */
|
|
862
|
-
|
|
143
|
+
className: b("bn-ak-wrapper", s || ""),
|
|
144
|
+
ref: t,
|
|
145
|
+
children: /* @__PURE__ */ g(
|
|
146
|
+
j,
|
|
863
147
|
{
|
|
864
|
-
defaultSelectedId:
|
|
865
|
-
selectedId:
|
|
866
|
-
setActiveId: (
|
|
867
|
-
|
|
148
|
+
defaultSelectedId: a,
|
|
149
|
+
selectedId: o,
|
|
150
|
+
setActiveId: (u) => {
|
|
151
|
+
u && l(u);
|
|
868
152
|
},
|
|
869
153
|
children: [
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
|
|
872
|
-
lineNumber: 43,
|
|
873
|
-
columnNumber: 13
|
|
874
|
-
}, void 0)) }, void 0, !1, {
|
|
875
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
|
|
876
|
-
lineNumber: 41,
|
|
877
|
-
columnNumber: 9
|
|
878
|
-
}, void 0),
|
|
879
|
-
/* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-panels", children: n.map((v) => /* @__PURE__ */ s.jsxDEV(Ir, { tabId: v.name, children: v.tabPanel }, v.name, !1, {
|
|
880
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
|
|
881
|
-
lineNumber: 51,
|
|
882
|
-
columnNumber: 13
|
|
883
|
-
}, void 0)) }, void 0, !1, {
|
|
884
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
|
|
885
|
-
lineNumber: 49,
|
|
886
|
-
columnNumber: 9
|
|
887
|
-
}, void 0)
|
|
154
|
+
/* @__PURE__ */ r(q, { className: "bn-ak-tab-list", children: e.map((u) => /* @__PURE__ */ r(K, { className: "bn-ak-tab", id: u.name, children: u.name }, u.name)) }),
|
|
155
|
+
/* @__PURE__ */ r("div", { className: "bn-ak-panels", children: e.map((u) => /* @__PURE__ */ r(z, { tabId: u.name, children: u.tabPanel }, u.name)) })
|
|
888
156
|
]
|
|
889
|
-
}
|
|
890
|
-
void 0,
|
|
891
|
-
!0,
|
|
892
|
-
{
|
|
893
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
|
|
894
|
-
lineNumber: 31,
|
|
895
|
-
columnNumber: 7
|
|
896
|
-
},
|
|
897
|
-
void 0
|
|
157
|
+
}
|
|
898
158
|
)
|
|
899
|
-
}
|
|
900
|
-
void 0,
|
|
901
|
-
!1,
|
|
902
|
-
{
|
|
903
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/Panel.tsx",
|
|
904
|
-
lineNumber: 28,
|
|
905
|
-
columnNumber: 5
|
|
906
|
-
},
|
|
907
|
-
void 0
|
|
159
|
+
}
|
|
908
160
|
);
|
|
909
|
-
}),
|
|
910
|
-
const { className:
|
|
911
|
-
return
|
|
912
|
-
|
|
161
|
+
}), ge = d((n, t) => {
|
|
162
|
+
const { className: s, children: e, onClick: a, label: o, ...l } = n;
|
|
163
|
+
return i(l), /* @__PURE__ */ r(
|
|
164
|
+
N,
|
|
913
165
|
{
|
|
914
|
-
className:
|
|
915
|
-
onClick:
|
|
916
|
-
"aria-label":
|
|
917
|
-
ref:
|
|
918
|
-
children:
|
|
919
|
-
}
|
|
920
|
-
void 0,
|
|
921
|
-
!1,
|
|
922
|
-
{
|
|
923
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelButton.tsx",
|
|
924
|
-
lineNumber: 16,
|
|
925
|
-
columnNumber: 5
|
|
926
|
-
},
|
|
927
|
-
void 0
|
|
166
|
+
className: b("bn-ak-button", s || ""),
|
|
167
|
+
onClick: a,
|
|
168
|
+
"aria-label": o,
|
|
169
|
+
ref: t,
|
|
170
|
+
children: e
|
|
171
|
+
}
|
|
928
172
|
);
|
|
929
|
-
}),
|
|
930
|
-
const { className:
|
|
931
|
-
return
|
|
932
|
-
|
|
173
|
+
}), pe = d((n, t) => {
|
|
174
|
+
const { className: s, accept: e, value: a, placeholder: o, onChange: l, ...m } = n;
|
|
175
|
+
return i(m), /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(
|
|
176
|
+
f,
|
|
933
177
|
{
|
|
934
|
-
className:
|
|
935
|
-
ref:
|
|
178
|
+
className: s,
|
|
179
|
+
ref: t,
|
|
936
180
|
name: "panel-input",
|
|
937
181
|
type: "file",
|
|
938
|
-
accept:
|
|
939
|
-
value:
|
|
940
|
-
onChange: async (
|
|
941
|
-
placeholder:
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
lineNumber: 19,
|
|
954
|
-
columnNumber: 5
|
|
955
|
-
}, void 0);
|
|
956
|
-
}), dn = N((t, a) => {
|
|
957
|
-
const { className: o, children: n, ...l } = t;
|
|
958
|
-
return p(l), /* @__PURE__ */ s.jsxDEV("div", { className: o, ref: a, children: n }, void 0, !1, {
|
|
959
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelTab.tsx",
|
|
960
|
-
lineNumber: 14,
|
|
961
|
-
columnNumber: 5
|
|
962
|
-
}, void 0);
|
|
963
|
-
}), fn = N((t, a) => {
|
|
964
|
-
const { className: o, value: n, placeholder: l, onKeyDown: c, onChange: f, ...h } = t;
|
|
965
|
-
return p(h), /* @__PURE__ */ s.jsxDEV(te, { children: /* @__PURE__ */ s.jsxDEV(
|
|
966
|
-
ae,
|
|
967
|
-
{
|
|
968
|
-
className: x("bn-ak-input", o || ""),
|
|
182
|
+
accept: e,
|
|
183
|
+
value: a ? a.name : void 0,
|
|
184
|
+
onChange: async (c) => l == null ? void 0 : l(c.target.files[0]),
|
|
185
|
+
placeholder: o
|
|
186
|
+
}
|
|
187
|
+
) });
|
|
188
|
+
}), he = d((n, t) => {
|
|
189
|
+
const { className: s, children: e, ...a } = n;
|
|
190
|
+
return i(a), /* @__PURE__ */ r("div", { className: s, ref: t, children: e });
|
|
191
|
+
}), Ne = d((n, t) => {
|
|
192
|
+
const { className: s, value: e, placeholder: a, onKeyDown: o, onChange: l, ...m } = n;
|
|
193
|
+
return i(m), /* @__PURE__ */ r(k, { children: /* @__PURE__ */ r(
|
|
194
|
+
f,
|
|
195
|
+
{
|
|
196
|
+
className: b("bn-ak-input", s || ""),
|
|
969
197
|
name: "panel-input",
|
|
970
|
-
value:
|
|
971
|
-
placeholder:
|
|
972
|
-
onChange:
|
|
973
|
-
onKeyDown:
|
|
198
|
+
value: e,
|
|
199
|
+
placeholder: a,
|
|
200
|
+
onChange: l,
|
|
201
|
+
onKeyDown: o,
|
|
974
202
|
"data-test": "embed-input",
|
|
975
|
-
ref:
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
) }, void 0, !1, {
|
|
986
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/panel/PanelTextInput.tsx",
|
|
987
|
-
lineNumber: 19,
|
|
988
|
-
columnNumber: 5
|
|
989
|
-
}, void 0);
|
|
990
|
-
}), mn = N((t, a) => {
|
|
991
|
-
const { children: o, ...n } = t;
|
|
992
|
-
return p(n), /* @__PURE__ */ s.jsxDEV(Or, { render: o, ref: a }, void 0, !1, {
|
|
993
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/popover/Popover.tsx",
|
|
994
|
-
lineNumber: 19,
|
|
995
|
-
columnNumber: 10
|
|
996
|
-
}, void 0);
|
|
997
|
-
}), kn = N((t, a) => {
|
|
998
|
-
const { className: o, children: n, variant: l, ...c } = t;
|
|
999
|
-
return p(c), /* @__PURE__ */ s.jsxDEV(
|
|
1000
|
-
Fr,
|
|
1001
|
-
{
|
|
1002
|
-
className: x("bn-ak-popover", o || ""),
|
|
1003
|
-
ref: a,
|
|
1004
|
-
children: n
|
|
1005
|
-
},
|
|
1006
|
-
void 0,
|
|
1007
|
-
!1,
|
|
203
|
+
ref: t
|
|
204
|
+
}
|
|
205
|
+
) });
|
|
206
|
+
}), ve = d((n, t) => {
|
|
207
|
+
const { children: s, ...e } = n;
|
|
208
|
+
return i(e), /* @__PURE__ */ r(J, { render: s, ref: t });
|
|
209
|
+
}), ke = d((n, t) => {
|
|
210
|
+
const { className: s, children: e, variant: a, ...o } = n;
|
|
211
|
+
return i(o), /* @__PURE__ */ r(
|
|
212
|
+
Q,
|
|
1008
213
|
{
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}
|
|
1013
|
-
void 0
|
|
214
|
+
className: b("bn-ak-popover", s || ""),
|
|
215
|
+
ref: t,
|
|
216
|
+
children: e
|
|
217
|
+
}
|
|
1014
218
|
);
|
|
1015
|
-
}),
|
|
1016
|
-
const { children:
|
|
1017
|
-
return
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
}, pn = N((t, a) => {
|
|
1023
|
-
const { className: o, children: n, ...l } = t;
|
|
1024
|
-
return p(l, !1), /* @__PURE__ */ s.jsxDEV(Ae, { className: o, ref: a, ...l, children: n }, void 0, !1, {
|
|
1025
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/sideMenu/SideMenu.tsx",
|
|
1026
|
-
lineNumber: 16,
|
|
1027
|
-
columnNumber: 5
|
|
1028
|
-
}, void 0);
|
|
1029
|
-
}), bn = N((t, a) => {
|
|
219
|
+
}), fe = (n) => {
|
|
220
|
+
const { children: t, opened: s, position: e, ...a } = n;
|
|
221
|
+
return i(a), /* @__PURE__ */ r(U, { open: s, placement: e, children: t });
|
|
222
|
+
}, Te = d((n, t) => {
|
|
223
|
+
const { className: s, children: e, ...a } = n;
|
|
224
|
+
return i(a, !1), /* @__PURE__ */ r(y, { className: s, ref: t, ...a, children: e });
|
|
225
|
+
}), Se = d((n, t) => {
|
|
1030
226
|
const {
|
|
1031
|
-
className:
|
|
1032
|
-
children:
|
|
1033
|
-
icon:
|
|
1034
|
-
onClick:
|
|
1035
|
-
label:
|
|
1036
|
-
onDragEnd:
|
|
1037
|
-
onDragStart:
|
|
1038
|
-
draggable:
|
|
1039
|
-
...
|
|
1040
|
-
} =
|
|
1041
|
-
return p
|
|
1042
|
-
|
|
227
|
+
className: s,
|
|
228
|
+
children: e,
|
|
229
|
+
icon: a,
|
|
230
|
+
onClick: o,
|
|
231
|
+
label: l,
|
|
232
|
+
onDragEnd: m,
|
|
233
|
+
onDragStart: c,
|
|
234
|
+
draggable: u,
|
|
235
|
+
...p
|
|
236
|
+
} = n;
|
|
237
|
+
return i(p, !1), /* @__PURE__ */ g(
|
|
238
|
+
N,
|
|
1043
239
|
{
|
|
1044
|
-
onDragEnd:
|
|
1045
|
-
onDragStart:
|
|
1046
|
-
draggable:
|
|
1047
|
-
"aria-label":
|
|
1048
|
-
className:
|
|
240
|
+
onDragEnd: m,
|
|
241
|
+
onDragStart: c,
|
|
242
|
+
draggable: u,
|
|
243
|
+
"aria-label": l,
|
|
244
|
+
className: b(
|
|
1049
245
|
"bn-ak-button bn-ak-secondary",
|
|
1050
|
-
|
|
246
|
+
s || ""
|
|
1051
247
|
),
|
|
1052
|
-
ref:
|
|
1053
|
-
onClick:
|
|
1054
|
-
...
|
|
248
|
+
ref: t,
|
|
249
|
+
onClick: o,
|
|
250
|
+
...p,
|
|
1055
251
|
children: [
|
|
1056
|
-
|
|
1057
|
-
|
|
252
|
+
a,
|
|
253
|
+
e
|
|
1058
254
|
]
|
|
1059
|
-
}
|
|
1060
|
-
void 0,
|
|
1061
|
-
!0,
|
|
1062
|
-
{
|
|
1063
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/sideMenu/SideMenuButton.tsx",
|
|
1064
|
-
lineNumber: 28,
|
|
1065
|
-
columnNumber: 5
|
|
1066
|
-
},
|
|
1067
|
-
void 0
|
|
255
|
+
}
|
|
1068
256
|
);
|
|
1069
|
-
}),
|
|
1070
|
-
const { className:
|
|
1071
|
-
return
|
|
257
|
+
}), Me = d((n, t) => {
|
|
258
|
+
const { className: s, children: e, id: a, columns: o, ...l } = n;
|
|
259
|
+
return i(l), /* @__PURE__ */ r(
|
|
1072
260
|
"div",
|
|
1073
261
|
{
|
|
1074
|
-
className:
|
|
1075
|
-
style: { gridTemplateColumns: `repeat(${
|
|
1076
|
-
ref:
|
|
1077
|
-
id:
|
|
262
|
+
className: s,
|
|
263
|
+
style: { gridTemplateColumns: `repeat(${o}, 1fr)` },
|
|
264
|
+
ref: t,
|
|
265
|
+
id: a,
|
|
1078
266
|
role: "grid",
|
|
1079
|
-
children:
|
|
1080
|
-
}
|
|
1081
|
-
void 0,
|
|
1082
|
-
!1,
|
|
1083
|
-
{
|
|
1084
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx",
|
|
1085
|
-
lineNumber: 14,
|
|
1086
|
-
columnNumber: 5
|
|
1087
|
-
},
|
|
1088
|
-
void 0
|
|
267
|
+
children: e
|
|
268
|
+
}
|
|
1089
269
|
);
|
|
1090
|
-
}),
|
|
1091
|
-
const { className:
|
|
1092
|
-
return
|
|
270
|
+
}), Ie = d((n, t) => {
|
|
271
|
+
const { className: s, children: e, columns: a, ...o } = n;
|
|
272
|
+
return i(o), /* @__PURE__ */ r(
|
|
1093
273
|
"div",
|
|
1094
274
|
{
|
|
1095
|
-
className:
|
|
1096
|
-
style: { gridColumn: `1 / ${
|
|
1097
|
-
ref:
|
|
1098
|
-
children: /* @__PURE__ */
|
|
1099
|
-
|
|
1100
|
-
lineNumber: 18,
|
|
1101
|
-
columnNumber: 7
|
|
1102
|
-
}, void 0)
|
|
1103
|
-
},
|
|
1104
|
-
void 0,
|
|
1105
|
-
!1,
|
|
1106
|
-
{
|
|
1107
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx",
|
|
1108
|
-
lineNumber: 14,
|
|
1109
|
-
columnNumber: 5
|
|
1110
|
-
},
|
|
1111
|
-
void 0
|
|
275
|
+
className: b("bn-ak-menu-item", s || ""),
|
|
276
|
+
style: { gridColumn: `1 / ${a + 1}` },
|
|
277
|
+
ref: t,
|
|
278
|
+
children: /* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-label", children: e })
|
|
279
|
+
}
|
|
1112
280
|
);
|
|
1113
|
-
}),
|
|
1114
|
-
const { className:
|
|
1115
|
-
|
|
1116
|
-
const
|
|
1117
|
-
return
|
|
1118
|
-
if (!
|
|
281
|
+
}), Pe = d((n, t) => {
|
|
282
|
+
const { className: s, isSelected: e, onClick: a, item: o, id: l, ...m } = n;
|
|
283
|
+
i(m);
|
|
284
|
+
const c = R(null);
|
|
285
|
+
return D(() => {
|
|
286
|
+
if (!c.current || !e)
|
|
1119
287
|
return;
|
|
1120
|
-
const
|
|
1121
|
-
|
|
288
|
+
const u = P(
|
|
289
|
+
c.current,
|
|
1122
290
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
1123
291
|
);
|
|
1124
|
-
|
|
1125
|
-
}, [
|
|
292
|
+
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
293
|
+
}, [e]), /* @__PURE__ */ r(
|
|
1126
294
|
"div",
|
|
1127
295
|
{
|
|
1128
|
-
className:
|
|
1129
|
-
ref:
|
|
1130
|
-
id:
|
|
296
|
+
className: s,
|
|
297
|
+
ref: C([t, c]),
|
|
298
|
+
id: l,
|
|
1131
299
|
role: "option",
|
|
1132
|
-
onClick:
|
|
1133
|
-
"aria-selected":
|
|
1134
|
-
children:
|
|
1135
|
-
}
|
|
1136
|
-
void 0,
|
|
1137
|
-
!1,
|
|
1138
|
-
{
|
|
1139
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx",
|
|
1140
|
-
lineNumber: 33,
|
|
1141
|
-
columnNumber: 5
|
|
1142
|
-
},
|
|
1143
|
-
void 0
|
|
300
|
+
onClick: a,
|
|
301
|
+
"aria-selected": e || void 0,
|
|
302
|
+
children: o.icon
|
|
303
|
+
}
|
|
1144
304
|
);
|
|
1145
|
-
}),
|
|
305
|
+
}), Ce = d((n, t) => {
|
|
1146
306
|
const {
|
|
1147
|
-
className:
|
|
1148
|
-
children:
|
|
307
|
+
className: s,
|
|
308
|
+
children: e,
|
|
1149
309
|
// unused, using "dots" instead
|
|
1150
|
-
columns:
|
|
1151
|
-
...
|
|
1152
|
-
} =
|
|
1153
|
-
return
|
|
310
|
+
columns: a,
|
|
311
|
+
...o
|
|
312
|
+
} = n;
|
|
313
|
+
return i(o), /* @__PURE__ */ r(
|
|
1154
314
|
"div",
|
|
1155
315
|
{
|
|
1156
|
-
className:
|
|
1157
|
-
style: { gridColumn: `1 / ${
|
|
1158
|
-
ref:
|
|
1159
|
-
children:
|
|
1160
|
-
}
|
|
1161
|
-
void 0,
|
|
1162
|
-
!1,
|
|
1163
|
-
{
|
|
1164
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx",
|
|
1165
|
-
lineNumber: 19,
|
|
1166
|
-
columnNumber: 5
|
|
1167
|
-
},
|
|
1168
|
-
void 0
|
|
316
|
+
className: s,
|
|
317
|
+
style: { gridColumn: `1 / ${a + 1}` },
|
|
318
|
+
ref: t,
|
|
319
|
+
children: e
|
|
320
|
+
}
|
|
1169
321
|
);
|
|
1170
|
-
}),
|
|
1171
|
-
const { className:
|
|
1172
|
-
return
|
|
1173
|
-
|
|
322
|
+
}), we = d((n, t) => {
|
|
323
|
+
const { className: s, children: e, id: a, ...o } = n;
|
|
324
|
+
return i(o), /* @__PURE__ */ r(
|
|
325
|
+
y,
|
|
1174
326
|
{
|
|
1175
|
-
className:
|
|
1176
|
-
id:
|
|
327
|
+
className: b("bn-ak-menu", s || ""),
|
|
328
|
+
id: a,
|
|
1177
329
|
role: "listbox",
|
|
1178
|
-
ref:
|
|
1179
|
-
children:
|
|
1180
|
-
}
|
|
1181
|
-
void 0,
|
|
1182
|
-
!1,
|
|
1183
|
-
{
|
|
1184
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenu.tsx",
|
|
1185
|
-
lineNumber: 16,
|
|
1186
|
-
columnNumber: 5
|
|
1187
|
-
},
|
|
1188
|
-
void 0
|
|
330
|
+
ref: t,
|
|
331
|
+
children: e
|
|
332
|
+
}
|
|
1189
333
|
);
|
|
1190
|
-
}),
|
|
1191
|
-
const { className:
|
|
1192
|
-
return
|
|
334
|
+
}), ye = d((n, t) => {
|
|
335
|
+
const { className: s, children: e, ...a } = n;
|
|
336
|
+
return i(a), /* @__PURE__ */ r(
|
|
1193
337
|
"div",
|
|
1194
338
|
{
|
|
1195
|
-
className:
|
|
1196
|
-
ref:
|
|
1197
|
-
children: /* @__PURE__ */
|
|
1198
|
-
|
|
1199
|
-
lineNumber: 17,
|
|
1200
|
-
columnNumber: 7
|
|
1201
|
-
}, void 0)
|
|
1202
|
-
},
|
|
1203
|
-
void 0,
|
|
1204
|
-
!1,
|
|
1205
|
-
{
|
|
1206
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuEmptyItem.tsx",
|
|
1207
|
-
lineNumber: 14,
|
|
1208
|
-
columnNumber: 5
|
|
1209
|
-
},
|
|
1210
|
-
void 0
|
|
339
|
+
className: b("bn-ak-menu-item", s || ""),
|
|
340
|
+
ref: t,
|
|
341
|
+
children: /* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-label", children: e })
|
|
342
|
+
}
|
|
1211
343
|
);
|
|
1212
|
-
}),
|
|
1213
|
-
const { className:
|
|
1214
|
-
|
|
1215
|
-
const
|
|
1216
|
-
return
|
|
1217
|
-
if (!
|
|
344
|
+
}), xe = d((n, t) => {
|
|
345
|
+
const { className: s, item: e, isSelected: a, onClick: o, id: l, ...m } = n;
|
|
346
|
+
i(m);
|
|
347
|
+
const c = R(null);
|
|
348
|
+
return D(() => {
|
|
349
|
+
if (!c.current || !a)
|
|
1218
350
|
return;
|
|
1219
|
-
const
|
|
1220
|
-
|
|
351
|
+
const u = P(
|
|
352
|
+
c.current,
|
|
1221
353
|
document.querySelector(".bn-suggestion-menu")
|
|
1222
354
|
);
|
|
1223
|
-
|
|
1224
|
-
}, [
|
|
355
|
+
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
356
|
+
}, [a]), /* @__PURE__ */ g(
|
|
1225
357
|
"div",
|
|
1226
358
|
{
|
|
1227
|
-
className:
|
|
1228
|
-
ref:
|
|
1229
|
-
id:
|
|
1230
|
-
onClick:
|
|
359
|
+
className: b("bn-ak-menu-item", s || ""),
|
|
360
|
+
ref: C([t, c]),
|
|
361
|
+
id: l,
|
|
362
|
+
onClick: o,
|
|
1231
363
|
role: "option",
|
|
1232
|
-
"aria-selected":
|
|
364
|
+
"aria-selected": a || void 0,
|
|
1233
365
|
children: [
|
|
1234
|
-
|
|
366
|
+
e.icon && /* @__PURE__ */ r(
|
|
1235
367
|
"div",
|
|
1236
368
|
{
|
|
1237
369
|
className: "bn-ak-suggestion-menu-item-section",
|
|
1238
370
|
"data-position": "left",
|
|
1239
|
-
children:
|
|
1240
|
-
}
|
|
1241
|
-
void 0,
|
|
1242
|
-
!1,
|
|
1243
|
-
{
|
|
1244
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1245
|
-
lineNumber: 41,
|
|
1246
|
-
columnNumber: 9
|
|
1247
|
-
},
|
|
1248
|
-
void 0
|
|
371
|
+
children: e.icon
|
|
372
|
+
}
|
|
1249
373
|
),
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
}, void 0),
|
|
1256
|
-
/* @__PURE__ */ s.jsxDEV("div", { className: "bn-ak-suggestion-menu-item-subtitle", children: n.subtext }, void 0, !1, {
|
|
1257
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1258
|
-
lineNumber: 49,
|
|
1259
|
-
columnNumber: 9
|
|
1260
|
-
}, void 0)
|
|
1261
|
-
] }, void 0, !0, {
|
|
1262
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1263
|
-
lineNumber: 47,
|
|
1264
|
-
columnNumber: 7
|
|
1265
|
-
}, void 0),
|
|
1266
|
-
n.badge && /* @__PURE__ */ s.jsxDEV(
|
|
374
|
+
/* @__PURE__ */ g("div", { className: "bn-ak-suggestion-menu-item-body", children: [
|
|
375
|
+
/* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-title", children: e.title }),
|
|
376
|
+
/* @__PURE__ */ r("div", { className: "bn-ak-suggestion-menu-item-subtitle", children: e.subtext })
|
|
377
|
+
] }),
|
|
378
|
+
e.badge && /* @__PURE__ */ r(
|
|
1267
379
|
"div",
|
|
1268
380
|
{
|
|
1269
381
|
"data-position": "right",
|
|
1270
382
|
className: "bn-ak-suggestion-menu-item-section",
|
|
1271
|
-
children: /* @__PURE__ */
|
|
1272
|
-
|
|
1273
|
-
lineNumber: 57,
|
|
1274
|
-
columnNumber: 11
|
|
1275
|
-
}, void 0)
|
|
1276
|
-
},
|
|
1277
|
-
void 0,
|
|
1278
|
-
!1,
|
|
1279
|
-
{
|
|
1280
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1281
|
-
lineNumber: 54,
|
|
1282
|
-
columnNumber: 9
|
|
1283
|
-
},
|
|
1284
|
-
void 0
|
|
383
|
+
children: /* @__PURE__ */ r("div", { children: e.badge })
|
|
384
|
+
}
|
|
1285
385
|
)
|
|
1286
386
|
]
|
|
1287
|
-
}
|
|
1288
|
-
void 0,
|
|
1289
|
-
!0,
|
|
1290
|
-
{
|
|
1291
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1292
|
-
lineNumber: 33,
|
|
1293
|
-
columnNumber: 5
|
|
1294
|
-
},
|
|
1295
|
-
void 0
|
|
387
|
+
}
|
|
1296
388
|
);
|
|
1297
|
-
}),
|
|
1298
|
-
const { className:
|
|
1299
|
-
return
|
|
389
|
+
}), Re = d((n, t) => {
|
|
390
|
+
const { className: s, children: e, ...a } = n;
|
|
391
|
+
return i(a), /* @__PURE__ */ r(
|
|
1300
392
|
"div",
|
|
1301
393
|
{
|
|
1302
|
-
className:
|
|
1303
|
-
ref:
|
|
1304
|
-
children:
|
|
1305
|
-
}
|
|
1306
|
-
void 0,
|
|
1307
|
-
!1,
|
|
1308
|
-
{
|
|
1309
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/suggestionMenu/SuggestionMenuLabel.tsx",
|
|
1310
|
-
lineNumber: 14,
|
|
1311
|
-
columnNumber: 5
|
|
1312
|
-
},
|
|
1313
|
-
void 0
|
|
394
|
+
className: b("bn-ak-group-label", s || ""),
|
|
395
|
+
ref: t,
|
|
396
|
+
children: e
|
|
397
|
+
}
|
|
1314
398
|
);
|
|
1315
|
-
}),
|
|
1316
|
-
const { className:
|
|
1317
|
-
return
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
return p(f, !1), /* @__PURE__ */ s.jsxDEV(
|
|
1325
|
-
K,
|
|
1326
|
-
{
|
|
1327
|
-
className: x(
|
|
399
|
+
}), De = d((n, t) => {
|
|
400
|
+
const { className: s, children: e, ...a } = n;
|
|
401
|
+
return i(a), /* @__PURE__ */ r("div", { className: s, ref: t, children: e });
|
|
402
|
+
}), Le = d((n, t) => {
|
|
403
|
+
const { children: s, className: e, onMouseDown: a, onClick: o, ...l } = n;
|
|
404
|
+
return i(l, !1), /* @__PURE__ */ r(
|
|
405
|
+
N,
|
|
406
|
+
{
|
|
407
|
+
className: b(
|
|
1328
408
|
"bn-ak-button bn-ak-secondary",
|
|
1329
|
-
|
|
409
|
+
e || ""
|
|
1330
410
|
),
|
|
1331
|
-
ref:
|
|
1332
|
-
onMouseDown:
|
|
1333
|
-
onClick:
|
|
1334
|
-
...
|
|
1335
|
-
children:
|
|
1336
|
-
}
|
|
1337
|
-
void 0,
|
|
1338
|
-
!1,
|
|
1339
|
-
{
|
|
1340
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/tableHandle/ExtendButton.tsx",
|
|
1341
|
-
lineNumber: 18,
|
|
1342
|
-
columnNumber: 5
|
|
1343
|
-
},
|
|
1344
|
-
void 0
|
|
411
|
+
ref: t,
|
|
412
|
+
onMouseDown: a,
|
|
413
|
+
onClick: o,
|
|
414
|
+
...l,
|
|
415
|
+
children: s
|
|
416
|
+
}
|
|
1345
417
|
);
|
|
1346
|
-
}),
|
|
418
|
+
}), Be = d((n, t) => {
|
|
1347
419
|
const {
|
|
1348
|
-
className:
|
|
1349
|
-
children:
|
|
1350
|
-
draggable:
|
|
1351
|
-
onDragStart:
|
|
1352
|
-
onDragEnd:
|
|
1353
|
-
style:
|
|
1354
|
-
label:
|
|
1355
|
-
...
|
|
1356
|
-
} =
|
|
1357
|
-
return
|
|
1358
|
-
|
|
1359
|
-
{
|
|
1360
|
-
className:
|
|
420
|
+
className: s,
|
|
421
|
+
children: e,
|
|
422
|
+
draggable: a,
|
|
423
|
+
onDragStart: o,
|
|
424
|
+
onDragEnd: l,
|
|
425
|
+
style: m,
|
|
426
|
+
label: c,
|
|
427
|
+
...u
|
|
428
|
+
} = n;
|
|
429
|
+
return i(u, !1), /* @__PURE__ */ r(
|
|
430
|
+
N,
|
|
431
|
+
{
|
|
432
|
+
className: b(
|
|
1361
433
|
"bn-ak-button bn-ak-secondary",
|
|
1362
|
-
|
|
434
|
+
s || ""
|
|
1363
435
|
),
|
|
1364
|
-
ref:
|
|
1365
|
-
"aria-label":
|
|
1366
|
-
draggable:
|
|
1367
|
-
onDragStart:
|
|
1368
|
-
onDragEnd:
|
|
1369
|
-
style:
|
|
1370
|
-
...
|
|
1371
|
-
children:
|
|
1372
|
-
}
|
|
1373
|
-
void 0,
|
|
1374
|
-
!1,
|
|
1375
|
-
{
|
|
1376
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/tableHandle/TableHandle.tsx",
|
|
1377
|
-
lineNumber: 27,
|
|
1378
|
-
columnNumber: 5
|
|
1379
|
-
},
|
|
1380
|
-
void 0
|
|
436
|
+
ref: t,
|
|
437
|
+
"aria-label": c,
|
|
438
|
+
draggable: a,
|
|
439
|
+
onDragStart: o,
|
|
440
|
+
onDragEnd: l,
|
|
441
|
+
style: m,
|
|
442
|
+
...u,
|
|
443
|
+
children: e
|
|
444
|
+
}
|
|
1381
445
|
);
|
|
1382
|
-
}),
|
|
1383
|
-
(
|
|
1384
|
-
const { className:
|
|
1385
|
-
return
|
|
1386
|
-
|
|
1387
|
-
{
|
|
1388
|
-
className: x("bn-ak-toolbar", o || ""),
|
|
1389
|
-
ref: a,
|
|
1390
|
-
onMouseEnter: l,
|
|
1391
|
-
onMouseLeave: c,
|
|
1392
|
-
children: n
|
|
1393
|
-
},
|
|
1394
|
-
void 0,
|
|
1395
|
-
!1,
|
|
446
|
+
}), M = d(
|
|
447
|
+
(n, t) => {
|
|
448
|
+
const { className: s, children: e, onMouseEnter: a, onMouseLeave: o, ...l } = n;
|
|
449
|
+
return i(l), /* @__PURE__ */ r(
|
|
450
|
+
W,
|
|
1396
451
|
{
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
452
|
+
className: b("bn-ak-toolbar", s || ""),
|
|
453
|
+
ref: t,
|
|
454
|
+
onMouseEnter: a,
|
|
455
|
+
onMouseLeave: o,
|
|
456
|
+
children: e
|
|
457
|
+
}
|
|
1402
458
|
);
|
|
1403
459
|
}
|
|
1404
|
-
),
|
|
1405
|
-
(
|
|
460
|
+
), I = d(
|
|
461
|
+
(n, t) => {
|
|
1406
462
|
const {
|
|
1407
|
-
className:
|
|
1408
|
-
children:
|
|
1409
|
-
mainTooltip:
|
|
1410
|
-
secondaryTooltip:
|
|
1411
|
-
icon:
|
|
1412
|
-
isSelected:
|
|
1413
|
-
isDisabled:
|
|
1414
|
-
onClick:
|
|
1415
|
-
label:
|
|
1416
|
-
...
|
|
1417
|
-
} =
|
|
1418
|
-
return
|
|
1419
|
-
/* @__PURE__ */
|
|
1420
|
-
|
|
463
|
+
className: s,
|
|
464
|
+
children: e,
|
|
465
|
+
mainTooltip: a,
|
|
466
|
+
secondaryTooltip: o,
|
|
467
|
+
icon: l,
|
|
468
|
+
isSelected: m,
|
|
469
|
+
isDisabled: c,
|
|
470
|
+
onClick: u,
|
|
471
|
+
label: p,
|
|
472
|
+
...h
|
|
473
|
+
} = n;
|
|
474
|
+
return i(h, !1), /* @__PURE__ */ g(X, { children: [
|
|
475
|
+
/* @__PURE__ */ r(
|
|
476
|
+
Y,
|
|
1421
477
|
{
|
|
1422
478
|
className: "link",
|
|
1423
|
-
render: /* @__PURE__ */
|
|
1424
|
-
|
|
479
|
+
render: /* @__PURE__ */ g(
|
|
480
|
+
x,
|
|
1425
481
|
{
|
|
1426
|
-
"aria-label":
|
|
1427
|
-
className:
|
|
482
|
+
"aria-label": p,
|
|
483
|
+
className: b(
|
|
1428
484
|
"bn-ak-button bn-ak-secondary",
|
|
1429
|
-
|
|
485
|
+
s || ""
|
|
1430
486
|
),
|
|
1431
|
-
onMouseDown: (
|
|
1432
|
-
|
|
487
|
+
onMouseDown: (v) => {
|
|
488
|
+
B() && v.currentTarget.focus();
|
|
1433
489
|
},
|
|
1434
|
-
onClick:
|
|
1435
|
-
"aria-pressed":
|
|
1436
|
-
"data-selected":
|
|
1437
|
-
"data-test":
|
|
1438
|
-
disabled:
|
|
1439
|
-
ref:
|
|
1440
|
-
...
|
|
490
|
+
onClick: u,
|
|
491
|
+
"aria-pressed": m,
|
|
492
|
+
"data-selected": m ? "true" : void 0,
|
|
493
|
+
"data-test": n.mainTooltip.slice(0, 1).toLowerCase() + n.mainTooltip.replace(/\s+/g, "").slice(1),
|
|
494
|
+
disabled: c || !1,
|
|
495
|
+
ref: t,
|
|
496
|
+
...h,
|
|
1441
497
|
children: [
|
|
1442
|
-
|
|
1443
|
-
|
|
498
|
+
l,
|
|
499
|
+
e
|
|
1444
500
|
]
|
|
1445
|
-
}
|
|
1446
|
-
void 0,
|
|
1447
|
-
!0,
|
|
1448
|
-
{
|
|
1449
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
|
|
1450
|
-
lineNumber: 42,
|
|
1451
|
-
columnNumber: 13
|
|
1452
|
-
},
|
|
1453
|
-
void 0
|
|
501
|
+
}
|
|
1454
502
|
)
|
|
1455
|
-
}
|
|
1456
|
-
void 0,
|
|
1457
|
-
!1,
|
|
1458
|
-
{
|
|
1459
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
|
|
1460
|
-
lineNumber: 39,
|
|
1461
|
-
columnNumber: 9
|
|
1462
|
-
},
|
|
1463
|
-
void 0
|
|
503
|
+
}
|
|
1464
504
|
),
|
|
1465
|
-
/* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}, void 0),
|
|
1471
|
-
c && /* @__PURE__ */ s.jsxDEV("span", { children: c }, void 0, !1, {
|
|
1472
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
|
|
1473
|
-
lineNumber: 73,
|
|
1474
|
-
columnNumber: 32
|
|
1475
|
-
}, void 0)
|
|
1476
|
-
] }, void 0, !0, {
|
|
1477
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
|
|
1478
|
-
lineNumber: 71,
|
|
1479
|
-
columnNumber: 9
|
|
1480
|
-
}, void 0)
|
|
1481
|
-
] }, void 0, !0, {
|
|
1482
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarButton.tsx",
|
|
1483
|
-
lineNumber: 38,
|
|
1484
|
-
columnNumber: 7
|
|
1485
|
-
}, void 0);
|
|
505
|
+
/* @__PURE__ */ g(Z, { className: "bn-ak-tooltip", children: [
|
|
506
|
+
/* @__PURE__ */ r("span", { children: a }),
|
|
507
|
+
o && /* @__PURE__ */ r("span", { children: o })
|
|
508
|
+
] })
|
|
509
|
+
] });
|
|
1486
510
|
}
|
|
1487
|
-
),
|
|
1488
|
-
const { className:
|
|
1489
|
-
|
|
1490
|
-
const
|
|
1491
|
-
var
|
|
1492
|
-
(
|
|
511
|
+
), Fe = d((n, t) => {
|
|
512
|
+
const { className: s, items: e, isDisabled: a, ...o } = n;
|
|
513
|
+
i(o);
|
|
514
|
+
const l = n.items.filter((c) => c.isSelected)[0], m = (c) => {
|
|
515
|
+
var u, p;
|
|
516
|
+
(p = (u = e.find((h) => h.text === c)).onClick) == null || p.call(u);
|
|
1493
517
|
};
|
|
1494
|
-
return /* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
-
|
|
518
|
+
return /* @__PURE__ */ g(_, { value: l.text, setValue: m, children: [
|
|
519
|
+
/* @__PURE__ */ g(
|
|
520
|
+
ee,
|
|
1497
521
|
{
|
|
1498
522
|
className: "bn-ak-button bn-ak-secondary",
|
|
1499
|
-
disabled:
|
|
523
|
+
disabled: a,
|
|
1500
524
|
"aria-label": "Text alignment",
|
|
1501
|
-
render: /* @__PURE__ */
|
|
1502
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
|
|
1503
|
-
lineNumber: 35,
|
|
1504
|
-
columnNumber: 17
|
|
1505
|
-
}, void 0),
|
|
525
|
+
render: /* @__PURE__ */ r(x, {}),
|
|
1506
526
|
children: [
|
|
1507
|
-
|
|
527
|
+
l.icon,
|
|
1508
528
|
" ",
|
|
1509
|
-
|
|
529
|
+
l.text,
|
|
1510
530
|
" ",
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
|
|
1513
|
-
lineNumber: 36,
|
|
1514
|
-
columnNumber: 49
|
|
1515
|
-
}, void 0)
|
|
531
|
+
/* @__PURE__ */ r(ne, {})
|
|
1516
532
|
]
|
|
1517
|
-
}
|
|
1518
|
-
void 0,
|
|
1519
|
-
!0,
|
|
1520
|
-
{
|
|
1521
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
|
|
1522
|
-
lineNumber: 31,
|
|
1523
|
-
columnNumber: 7
|
|
1524
|
-
},
|
|
1525
|
-
void 0
|
|
533
|
+
}
|
|
1526
534
|
),
|
|
1527
|
-
/* @__PURE__ */
|
|
1528
|
-
|
|
535
|
+
/* @__PURE__ */ r(
|
|
536
|
+
te,
|
|
1529
537
|
{
|
|
1530
|
-
className:
|
|
1531
|
-
ref:
|
|
538
|
+
className: b("bn-ak-popover", s || ""),
|
|
539
|
+
ref: t,
|
|
1532
540
|
gutter: 4,
|
|
1533
|
-
children:
|
|
1534
|
-
|
|
541
|
+
children: e.map((c) => /* @__PURE__ */ g(
|
|
542
|
+
se,
|
|
1535
543
|
{
|
|
1536
544
|
className: "bn-ak-select-item",
|
|
1537
|
-
value:
|
|
545
|
+
value: c.text,
|
|
1538
546
|
children: [
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
|
|
1543
|
-
lineNumber: 49,
|
|
1544
|
-
columnNumber: 51
|
|
1545
|
-
}, void 0)
|
|
547
|
+
c.icon,
|
|
548
|
+
c.text,
|
|
549
|
+
c.text === l.text && /* @__PURE__ */ r(ae, {})
|
|
1546
550
|
]
|
|
1547
551
|
},
|
|
1548
|
-
|
|
1549
|
-
!0,
|
|
1550
|
-
{
|
|
1551
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
|
|
1552
|
-
lineNumber: 43,
|
|
1553
|
-
columnNumber: 11
|
|
1554
|
-
},
|
|
1555
|
-
void 0
|
|
552
|
+
c.text
|
|
1556
553
|
))
|
|
1557
|
-
}
|
|
1558
|
-
void 0,
|
|
1559
|
-
!1,
|
|
1560
|
-
{
|
|
1561
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/toolbar/ToolbarSelect.tsx",
|
|
1562
|
-
lineNumber: 38,
|
|
1563
|
-
columnNumber: 7
|
|
1564
|
-
},
|
|
1565
|
-
void 0
|
|
554
|
+
}
|
|
1566
555
|
)
|
|
1567
|
-
] }
|
|
1568
|
-
|
|
1569
|
-
lineNumber: 30,
|
|
1570
|
-
columnNumber: 5
|
|
1571
|
-
}, void 0);
|
|
1572
|
-
}), Bn = {
|
|
556
|
+
] });
|
|
557
|
+
}), Ee = {
|
|
1573
558
|
FormattingToolbar: {
|
|
1574
|
-
Root:
|
|
1575
|
-
Button:
|
|
1576
|
-
Select:
|
|
559
|
+
Root: M,
|
|
560
|
+
Button: I,
|
|
561
|
+
Select: Fe
|
|
1577
562
|
},
|
|
1578
563
|
FilePanel: {
|
|
1579
|
-
Root:
|
|
1580
|
-
Button:
|
|
1581
|
-
FileInput:
|
|
1582
|
-
TabPanel:
|
|
1583
|
-
TextInput:
|
|
564
|
+
Root: be,
|
|
565
|
+
Button: ge,
|
|
566
|
+
FileInput: pe,
|
|
567
|
+
TabPanel: he,
|
|
568
|
+
TextInput: Ne
|
|
1584
569
|
},
|
|
1585
570
|
GridSuggestionMenu: {
|
|
1586
|
-
Root:
|
|
1587
|
-
Item:
|
|
1588
|
-
EmptyItem:
|
|
1589
|
-
Loader:
|
|
571
|
+
Root: Me,
|
|
572
|
+
Item: Pe,
|
|
573
|
+
EmptyItem: Ie,
|
|
574
|
+
Loader: Ce
|
|
1590
575
|
},
|
|
1591
576
|
LinkToolbar: {
|
|
1592
|
-
Root:
|
|
1593
|
-
Button:
|
|
577
|
+
Root: M,
|
|
578
|
+
Button: I
|
|
1594
579
|
},
|
|
1595
580
|
SideMenu: {
|
|
1596
|
-
Root:
|
|
1597
|
-
Button:
|
|
581
|
+
Root: Te,
|
|
582
|
+
Button: Se
|
|
1598
583
|
},
|
|
1599
584
|
SuggestionMenu: {
|
|
1600
|
-
Root:
|
|
1601
|
-
Item:
|
|
1602
|
-
EmptyItem:
|
|
1603
|
-
Label:
|
|
1604
|
-
Loader:
|
|
585
|
+
Root: we,
|
|
586
|
+
Item: xe,
|
|
587
|
+
EmptyItem: ye,
|
|
588
|
+
Label: Re,
|
|
589
|
+
Loader: De
|
|
1605
590
|
},
|
|
1606
591
|
TableHandle: {
|
|
1607
|
-
Root:
|
|
1608
|
-
ExtendButton:
|
|
592
|
+
Root: Be,
|
|
593
|
+
ExtendButton: Le
|
|
1609
594
|
},
|
|
1610
595
|
Generic: {
|
|
1611
596
|
Form: {
|
|
1612
|
-
Root:
|
|
1613
|
-
TextInput:
|
|
597
|
+
Root: re,
|
|
598
|
+
TextInput: oe
|
|
1614
599
|
},
|
|
1615
600
|
Menu: {
|
|
1616
|
-
Root:
|
|
1617
|
-
Trigger:
|
|
1618
|
-
Dropdown:
|
|
1619
|
-
Divider:
|
|
1620
|
-
Label:
|
|
1621
|
-
Item:
|
|
601
|
+
Root: le,
|
|
602
|
+
Trigger: de,
|
|
603
|
+
Dropdown: ce,
|
|
604
|
+
Divider: me,
|
|
605
|
+
Label: ue,
|
|
606
|
+
Item: ie
|
|
1622
607
|
},
|
|
1623
608
|
Popover: {
|
|
1624
|
-
Root:
|
|
1625
|
-
Trigger:
|
|
1626
|
-
Content:
|
|
609
|
+
Root: fe,
|
|
610
|
+
Trigger: ve,
|
|
611
|
+
Content: ke
|
|
1627
612
|
}
|
|
1628
613
|
}
|
|
1629
|
-
},
|
|
1630
|
-
const { className:
|
|
1631
|
-
return /* @__PURE__ */
|
|
1632
|
-
|
|
614
|
+
}, He = (n) => {
|
|
615
|
+
const { className: t, ...s } = n;
|
|
616
|
+
return /* @__PURE__ */ r(F.Provider, { value: Ee, children: /* @__PURE__ */ r(
|
|
617
|
+
E,
|
|
1633
618
|
{
|
|
1634
|
-
className:
|
|
1635
|
-
...
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
!1,
|
|
1639
|
-
{
|
|
1640
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/index.tsx",
|
|
1641
|
-
lineNumber: 119,
|
|
1642
|
-
columnNumber: 7
|
|
1643
|
-
},
|
|
1644
|
-
void 0
|
|
1645
|
-
) }, void 0, !1, {
|
|
1646
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/ariakit/src/index.tsx",
|
|
1647
|
-
lineNumber: 118,
|
|
1648
|
-
columnNumber: 5
|
|
1649
|
-
}, void 0);
|
|
619
|
+
className: b("bn-ariakit", t || ""),
|
|
620
|
+
...s
|
|
621
|
+
}
|
|
622
|
+
) });
|
|
1650
623
|
};
|
|
1651
624
|
export {
|
|
1652
|
-
|
|
1653
|
-
|
|
625
|
+
He as BlockNoteView,
|
|
626
|
+
Ee as components
|
|
1654
627
|
};
|
|
1655
628
|
//# sourceMappingURL=blocknote-ariakit.js.map
|