@blocknote/mantine 0.23.3 → 0.23.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,643 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { assertEmpty as
|
|
3
|
-
import { elementOverflow as
|
|
4
|
-
import { TextInput as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* @license React
|
|
9
|
-
* react-jsx-dev-runtime.production.min.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
var Ie;
|
|
17
|
-
function ar() {
|
|
18
|
-
if (Ie) return J;
|
|
19
|
-
Ie = 1;
|
|
20
|
-
var n = Symbol.for("react.fragment");
|
|
21
|
-
return J.Fragment = n, J.jsxDEV = void 0, J;
|
|
22
|
-
}
|
|
23
|
-
var q = {};
|
|
24
|
-
/**
|
|
25
|
-
* @license React
|
|
26
|
-
* react-jsx-dev-runtime.development.js
|
|
27
|
-
*
|
|
28
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
-
*
|
|
30
|
-
* This source code is licensed under the MIT license found in the
|
|
31
|
-
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/
|
|
33
|
-
var Le;
|
|
34
|
-
function lr() {
|
|
35
|
-
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
36
|
-
var n = O, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), on = Symbol.for("react.offscreen"), be = Symbol.iterator, sn = "@@iterator";
|
|
37
|
-
function an(e) {
|
|
38
|
-
if (e === null || typeof e != "object")
|
|
39
|
-
return null;
|
|
40
|
-
var i = be && e[be] || e[sn];
|
|
41
|
-
return typeof i == "function" ? i : null;
|
|
42
|
-
}
|
|
43
|
-
var U = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
44
|
-
function S(e) {
|
|
45
|
-
{
|
|
46
|
-
for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
|
|
47
|
-
l[m - 1] = arguments[m];
|
|
48
|
-
ln("error", e, l);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
function ln(e, i, l) {
|
|
52
|
-
{
|
|
53
|
-
var m = U.ReactDebugCurrentFrame, k = m.getStackAddendum();
|
|
54
|
-
k !== "" && (i += "%s", l = l.concat([k]));
|
|
55
|
-
var x = l.map(function(p) {
|
|
56
|
-
return String(p);
|
|
57
|
-
});
|
|
58
|
-
x.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, x);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
var cn = !1, un = !1, dn = !1, fn = !1, mn = !1, pe;
|
|
62
|
-
pe = Symbol.for("react.module.reference");
|
|
63
|
-
function vn(e) {
|
|
64
|
-
return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || mn || e === s || e === v || e === E || fn || e === on || cn || un || dn || typeof e == "object" && e !== null && (e.$$typeof === M || e.$$typeof === R || e.$$typeof === d || e.$$typeof === u || e.$$typeof === f || // This needs to include all possible module reference object
|
|
65
|
-
// types supported by any Flight configuration anywhere since
|
|
66
|
-
// we don't know which Flight build this will end up being used
|
|
67
|
-
// with.
|
|
68
|
-
e.$$typeof === pe || e.getModuleId !== void 0));
|
|
69
|
-
}
|
|
70
|
-
function bn(e, i, l) {
|
|
71
|
-
var m = e.displayName;
|
|
72
|
-
if (m)
|
|
73
|
-
return m;
|
|
74
|
-
var k = i.displayName || i.name || "";
|
|
75
|
-
return k !== "" ? l + "(" + k + ")" : l;
|
|
76
|
-
}
|
|
77
|
-
function ge(e) {
|
|
78
|
-
return e.displayName || "Context";
|
|
79
|
-
}
|
|
80
|
-
function B(e) {
|
|
81
|
-
if (e == null)
|
|
82
|
-
return null;
|
|
83
|
-
if (typeof e.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
84
|
-
return e.displayName || e.name || null;
|
|
85
|
-
if (typeof e == "string")
|
|
86
|
-
return e;
|
|
87
|
-
switch (e) {
|
|
88
|
-
case o:
|
|
89
|
-
return "Fragment";
|
|
90
|
-
case r:
|
|
91
|
-
return "Portal";
|
|
92
|
-
case c:
|
|
93
|
-
return "Profiler";
|
|
94
|
-
case s:
|
|
95
|
-
return "StrictMode";
|
|
96
|
-
case v:
|
|
97
|
-
return "Suspense";
|
|
98
|
-
case E:
|
|
99
|
-
return "SuspenseList";
|
|
100
|
-
}
|
|
101
|
-
if (typeof e == "object")
|
|
102
|
-
switch (e.$$typeof) {
|
|
103
|
-
case u:
|
|
104
|
-
var i = e;
|
|
105
|
-
return ge(i) + ".Consumer";
|
|
106
|
-
case d:
|
|
107
|
-
var l = e;
|
|
108
|
-
return ge(l._context) + ".Provider";
|
|
109
|
-
case f:
|
|
110
|
-
return bn(e, e.render, "ForwardRef");
|
|
111
|
-
case R:
|
|
112
|
-
var m = e.displayName || null;
|
|
113
|
-
return m !== null ? m : B(e.type) || "Memo";
|
|
114
|
-
case M: {
|
|
115
|
-
var k = e, x = k._payload, p = k._init;
|
|
116
|
-
try {
|
|
117
|
-
return B(p(x));
|
|
118
|
-
} catch {
|
|
119
|
-
return null;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
var _ = Object.assign, A = 0, ke, Ne, he, xe, De, Ee, ye;
|
|
126
|
-
function Se() {
|
|
127
|
-
}
|
|
128
|
-
Se.__reactDisabledLog = !0;
|
|
129
|
-
function pn() {
|
|
130
|
-
{
|
|
131
|
-
if (A === 0) {
|
|
132
|
-
ke = console.log, Ne = console.info, he = console.warn, xe = console.error, De = console.group, Ee = console.groupCollapsed, ye = console.groupEnd;
|
|
133
|
-
var e = {
|
|
134
|
-
configurable: !0,
|
|
135
|
-
enumerable: !0,
|
|
136
|
-
value: Se,
|
|
137
|
-
writable: !0
|
|
138
|
-
};
|
|
139
|
-
Object.defineProperties(console, {
|
|
140
|
-
info: e,
|
|
141
|
-
log: e,
|
|
142
|
-
warn: e,
|
|
143
|
-
error: e,
|
|
144
|
-
group: e,
|
|
145
|
-
groupCollapsed: e,
|
|
146
|
-
groupEnd: e
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
A++;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function gn() {
|
|
153
|
-
{
|
|
154
|
-
if (A--, A === 0) {
|
|
155
|
-
var e = {
|
|
156
|
-
configurable: !0,
|
|
157
|
-
enumerable: !0,
|
|
158
|
-
writable: !0
|
|
159
|
-
};
|
|
160
|
-
Object.defineProperties(console, {
|
|
161
|
-
log: _({}, e, {
|
|
162
|
-
value: ke
|
|
163
|
-
}),
|
|
164
|
-
info: _({}, e, {
|
|
165
|
-
value: Ne
|
|
166
|
-
}),
|
|
167
|
-
warn: _({}, e, {
|
|
168
|
-
value: he
|
|
169
|
-
}),
|
|
170
|
-
error: _({}, e, {
|
|
171
|
-
value: xe
|
|
172
|
-
}),
|
|
173
|
-
group: _({}, e, {
|
|
174
|
-
value: De
|
|
175
|
-
}),
|
|
176
|
-
groupCollapsed: _({}, e, {
|
|
177
|
-
value: Ee
|
|
178
|
-
}),
|
|
179
|
-
groupEnd: _({}, e, {
|
|
180
|
-
value: ye
|
|
181
|
-
})
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
A < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
var re = U.ReactCurrentDispatcher, te;
|
|
188
|
-
function W(e, i, l) {
|
|
189
|
-
{
|
|
190
|
-
if (te === void 0)
|
|
191
|
-
try {
|
|
192
|
-
throw Error();
|
|
193
|
-
} catch (k) {
|
|
194
|
-
var m = k.stack.trim().match(/\n( *(at )?)/);
|
|
195
|
-
te = m && m[1] || "";
|
|
196
|
-
}
|
|
197
|
-
return `
|
|
198
|
-
` + te + e;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
var oe = !1, Y;
|
|
202
|
-
{
|
|
203
|
-
var kn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
204
|
-
Y = new kn();
|
|
205
|
-
}
|
|
206
|
-
function je(e, i) {
|
|
207
|
-
if (!e || oe)
|
|
208
|
-
return "";
|
|
209
|
-
{
|
|
210
|
-
var l = Y.get(e);
|
|
211
|
-
if (l !== void 0)
|
|
212
|
-
return l;
|
|
213
|
-
}
|
|
214
|
-
var m;
|
|
215
|
-
oe = !0;
|
|
216
|
-
var k = Error.prepareStackTrace;
|
|
217
|
-
Error.prepareStackTrace = void 0;
|
|
218
|
-
var x;
|
|
219
|
-
x = re.current, re.current = null, pn();
|
|
220
|
-
try {
|
|
221
|
-
if (i) {
|
|
222
|
-
var p = function() {
|
|
223
|
-
throw Error();
|
|
224
|
-
};
|
|
225
|
-
if (Object.defineProperty(p.prototype, "props", {
|
|
226
|
-
set: function() {
|
|
227
|
-
throw Error();
|
|
228
|
-
}
|
|
229
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
230
|
-
try {
|
|
231
|
-
Reflect.construct(p, []);
|
|
232
|
-
} catch (T) {
|
|
233
|
-
m = T;
|
|
234
|
-
}
|
|
235
|
-
Reflect.construct(e, [], p);
|
|
236
|
-
} else {
|
|
237
|
-
try {
|
|
238
|
-
p.call();
|
|
239
|
-
} catch (T) {
|
|
240
|
-
m = T;
|
|
241
|
-
}
|
|
242
|
-
e.call(p.prototype);
|
|
243
|
-
}
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
throw Error();
|
|
247
|
-
} catch (T) {
|
|
248
|
-
m = T;
|
|
249
|
-
}
|
|
250
|
-
e();
|
|
251
|
-
}
|
|
252
|
-
} catch (T) {
|
|
253
|
-
if (T && m && typeof T.stack == "string") {
|
|
254
|
-
for (var b = T.stack.split(`
|
|
255
|
-
`), j = m.stack.split(`
|
|
256
|
-
`), D = b.length - 1, y = j.length - 1; D >= 1 && y >= 0 && b[D] !== j[y]; )
|
|
257
|
-
y--;
|
|
258
|
-
for (; D >= 1 && y >= 0; D--, y--)
|
|
259
|
-
if (b[D] !== j[y]) {
|
|
260
|
-
if (D !== 1 || y !== 1)
|
|
261
|
-
do
|
|
262
|
-
if (D--, y--, y < 0 || b[D] !== j[y]) {
|
|
263
|
-
var P = `
|
|
264
|
-
` + b[D].replace(" at new ", " at ");
|
|
265
|
-
return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, P), P;
|
|
266
|
-
}
|
|
267
|
-
while (D >= 1 && y >= 0);
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
} finally {
|
|
272
|
-
oe = !1, re.current = x, gn(), Error.prepareStackTrace = k;
|
|
273
|
-
}
|
|
274
|
-
var I = e ? e.displayName || e.name : "", V = I ? W(I) : "";
|
|
275
|
-
return typeof e == "function" && Y.set(e, V), V;
|
|
276
|
-
}
|
|
277
|
-
function Nn(e, i, l) {
|
|
278
|
-
return je(e, !1);
|
|
279
|
-
}
|
|
280
|
-
function hn(e) {
|
|
281
|
-
var i = e.prototype;
|
|
282
|
-
return !!(i && i.isReactComponent);
|
|
283
|
-
}
|
|
284
|
-
function G(e, i, l) {
|
|
285
|
-
if (e == null)
|
|
286
|
-
return "";
|
|
287
|
-
if (typeof e == "function")
|
|
288
|
-
return je(e, hn(e));
|
|
289
|
-
if (typeof e == "string")
|
|
290
|
-
return W(e);
|
|
291
|
-
switch (e) {
|
|
292
|
-
case v:
|
|
293
|
-
return W("Suspense");
|
|
294
|
-
case E:
|
|
295
|
-
return W("SuspenseList");
|
|
296
|
-
}
|
|
297
|
-
if (typeof e == "object")
|
|
298
|
-
switch (e.$$typeof) {
|
|
299
|
-
case f:
|
|
300
|
-
return Nn(e.render);
|
|
301
|
-
case R:
|
|
302
|
-
return G(e.type, i, l);
|
|
303
|
-
case M: {
|
|
304
|
-
var m = e, k = m._payload, x = m._init;
|
|
305
|
-
try {
|
|
306
|
-
return G(x(k), i, l);
|
|
307
|
-
} catch {
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return "";
|
|
312
|
-
}
|
|
313
|
-
var $ = Object.prototype.hasOwnProperty, Te = {}, Re = U.ReactDebugCurrentFrame;
|
|
314
|
-
function K(e) {
|
|
315
|
-
if (e) {
|
|
316
|
-
var i = e._owner, l = G(e.type, e._source, i ? i.type : null);
|
|
317
|
-
Re.setExtraStackFrame(l);
|
|
318
|
-
} else
|
|
319
|
-
Re.setExtraStackFrame(null);
|
|
320
|
-
}
|
|
321
|
-
function xn(e, i, l, m, k) {
|
|
322
|
-
{
|
|
323
|
-
var x = Function.call.bind($);
|
|
324
|
-
for (var p in e)
|
|
325
|
-
if (x(e, p)) {
|
|
326
|
-
var b = void 0;
|
|
327
|
-
try {
|
|
328
|
-
if (typeof e[p] != "function") {
|
|
329
|
-
var j = Error((m || "React class") + ": " + l + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
330
|
-
throw j.name = "Invariant Violation", j;
|
|
331
|
-
}
|
|
332
|
-
b = e[p](i, p, m, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
333
|
-
} catch (D) {
|
|
334
|
-
b = D;
|
|
335
|
-
}
|
|
336
|
-
b && !(b instanceof Error) && (K(k), S("%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).", m || "React class", l, p, typeof b), K(null)), b instanceof Error && !(b.message in Te) && (Te[b.message] = !0, K(k), S("Failed %s type: %s", l, b.message), K(null));
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
var Dn = Array.isArray;
|
|
341
|
-
function ie(e) {
|
|
342
|
-
return Dn(e);
|
|
343
|
-
}
|
|
344
|
-
function En(e) {
|
|
345
|
-
{
|
|
346
|
-
var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
347
|
-
return l;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
function yn(e) {
|
|
351
|
-
try {
|
|
352
|
-
return Me(e), !1;
|
|
353
|
-
} catch {
|
|
354
|
-
return !0;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
function Me(e) {
|
|
358
|
-
return "" + e;
|
|
359
|
-
}
|
|
360
|
-
function Pe(e) {
|
|
361
|
-
if (yn(e))
|
|
362
|
-
return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", En(e)), Me(e);
|
|
363
|
-
}
|
|
364
|
-
var z = U.ReactCurrentOwner, Sn = {
|
|
365
|
-
key: !0,
|
|
366
|
-
ref: !0,
|
|
367
|
-
__self: !0,
|
|
368
|
-
__source: !0
|
|
369
|
-
}, we, Ce, se;
|
|
370
|
-
se = {};
|
|
371
|
-
function jn(e) {
|
|
372
|
-
if ($.call(e, "ref")) {
|
|
373
|
-
var i = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
374
|
-
if (i && i.isReactWarning)
|
|
375
|
-
return !1;
|
|
376
|
-
}
|
|
377
|
-
return e.ref !== void 0;
|
|
378
|
-
}
|
|
379
|
-
function Tn(e) {
|
|
380
|
-
if ($.call(e, "key")) {
|
|
381
|
-
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
382
|
-
if (i && i.isReactWarning)
|
|
383
|
-
return !1;
|
|
384
|
-
}
|
|
385
|
-
return e.key !== void 0;
|
|
386
|
-
}
|
|
387
|
-
function Rn(e, i) {
|
|
388
|
-
if (typeof e.ref == "string" && z.current && i && z.current.stateNode !== i) {
|
|
389
|
-
var l = B(z.current.type);
|
|
390
|
-
se[l] || (S('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(z.current.type), e.ref), se[l] = !0);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
function Mn(e, i) {
|
|
394
|
-
{
|
|
395
|
-
var l = function() {
|
|
396
|
-
we || (we = !0, S("%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)", i));
|
|
397
|
-
};
|
|
398
|
-
l.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
399
|
-
get: l,
|
|
400
|
-
configurable: !0
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
function Pn(e, i) {
|
|
405
|
-
{
|
|
406
|
-
var l = function() {
|
|
407
|
-
Ce || (Ce = !0, S("%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)", i));
|
|
408
|
-
};
|
|
409
|
-
l.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
410
|
-
get: l,
|
|
411
|
-
configurable: !0
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
var wn = function(e, i, l, m, k, x, p) {
|
|
416
|
-
var b = {
|
|
417
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
418
|
-
$$typeof: t,
|
|
419
|
-
// Built-in properties that belong on the element
|
|
420
|
-
type: e,
|
|
421
|
-
key: i,
|
|
422
|
-
ref: l,
|
|
423
|
-
props: p,
|
|
424
|
-
// Record the component responsible for creating this element.
|
|
425
|
-
_owner: x
|
|
426
|
-
};
|
|
427
|
-
return b._store = {}, Object.defineProperty(b._store, "validated", {
|
|
428
|
-
configurable: !1,
|
|
429
|
-
enumerable: !1,
|
|
430
|
-
writable: !0,
|
|
431
|
-
value: !1
|
|
432
|
-
}), Object.defineProperty(b, "_self", {
|
|
433
|
-
configurable: !1,
|
|
434
|
-
enumerable: !1,
|
|
435
|
-
writable: !1,
|
|
436
|
-
value: m
|
|
437
|
-
}), Object.defineProperty(b, "_source", {
|
|
438
|
-
configurable: !1,
|
|
439
|
-
enumerable: !1,
|
|
440
|
-
writable: !1,
|
|
441
|
-
value: k
|
|
442
|
-
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
443
|
-
};
|
|
444
|
-
function Cn(e, i, l, m, k) {
|
|
445
|
-
{
|
|
446
|
-
var x, p = {}, b = null, j = null;
|
|
447
|
-
l !== void 0 && (Pe(l), b = "" + l), Tn(i) && (Pe(i.key), b = "" + i.key), jn(i) && (j = i.ref, Rn(i, k));
|
|
448
|
-
for (x in i)
|
|
449
|
-
$.call(i, x) && !Sn.hasOwnProperty(x) && (p[x] = i[x]);
|
|
450
|
-
if (e && e.defaultProps) {
|
|
451
|
-
var D = e.defaultProps;
|
|
452
|
-
for (x in D)
|
|
453
|
-
p[x] === void 0 && (p[x] = D[x]);
|
|
454
|
-
}
|
|
455
|
-
if (b || j) {
|
|
456
|
-
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
457
|
-
b && Mn(p, y), j && Pn(p, y);
|
|
458
|
-
}
|
|
459
|
-
return wn(e, b, j, k, m, z.current, p);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
var ae = U.ReactCurrentOwner, Be = U.ReactDebugCurrentFrame;
|
|
463
|
-
function F(e) {
|
|
464
|
-
if (e) {
|
|
465
|
-
var i = e._owner, l = G(e.type, e._source, i ? i.type : null);
|
|
466
|
-
Be.setExtraStackFrame(l);
|
|
467
|
-
} else
|
|
468
|
-
Be.setExtraStackFrame(null);
|
|
469
|
-
}
|
|
470
|
-
var le;
|
|
471
|
-
le = !1;
|
|
472
|
-
function ce(e) {
|
|
473
|
-
return typeof e == "object" && e !== null && e.$$typeof === t;
|
|
474
|
-
}
|
|
475
|
-
function Oe() {
|
|
476
|
-
{
|
|
477
|
-
if (ae.current) {
|
|
478
|
-
var e = B(ae.current.type);
|
|
479
|
-
if (e)
|
|
480
|
-
return `
|
|
481
|
-
|
|
482
|
-
Check the render method of \`` + e + "`.";
|
|
483
|
-
}
|
|
484
|
-
return "";
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function Bn(e) {
|
|
488
|
-
{
|
|
489
|
-
if (e !== void 0) {
|
|
490
|
-
var i = e.fileName.replace(/^.*[\\\/]/, ""), l = e.lineNumber;
|
|
491
|
-
return `
|
|
492
|
-
|
|
493
|
-
Check your code at ` + i + ":" + l + ".";
|
|
494
|
-
}
|
|
495
|
-
return "";
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
var _e = {};
|
|
499
|
-
function On(e) {
|
|
500
|
-
{
|
|
501
|
-
var i = Oe();
|
|
502
|
-
if (!i) {
|
|
503
|
-
var l = typeof e == "string" ? e : e.displayName || e.name;
|
|
504
|
-
l && (i = `
|
|
505
|
-
|
|
506
|
-
Check the top-level render call using <` + l + ">.");
|
|
507
|
-
}
|
|
508
|
-
return i;
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
function Ve(e, i) {
|
|
512
|
-
{
|
|
513
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
514
|
-
return;
|
|
515
|
-
e._store.validated = !0;
|
|
516
|
-
var l = On(i);
|
|
517
|
-
if (_e[l])
|
|
518
|
-
return;
|
|
519
|
-
_e[l] = !0;
|
|
520
|
-
var m = "";
|
|
521
|
-
e && e._owner && e._owner !== ae.current && (m = " It was passed a child from " + B(e._owner.type) + "."), F(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, m), F(null);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
function Ue(e, i) {
|
|
525
|
-
{
|
|
526
|
-
if (typeof e != "object")
|
|
527
|
-
return;
|
|
528
|
-
if (ie(e))
|
|
529
|
-
for (var l = 0; l < e.length; l++) {
|
|
530
|
-
var m = e[l];
|
|
531
|
-
ce(m) && Ve(m, i);
|
|
532
|
-
}
|
|
533
|
-
else if (ce(e))
|
|
534
|
-
e._store && (e._store.validated = !0);
|
|
535
|
-
else if (e) {
|
|
536
|
-
var k = an(e);
|
|
537
|
-
if (typeof k == "function" && k !== e.entries)
|
|
538
|
-
for (var x = k.call(e), p; !(p = x.next()).done; )
|
|
539
|
-
ce(p.value) && Ve(p.value, i);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
function _n(e) {
|
|
544
|
-
{
|
|
545
|
-
var i = e.type;
|
|
546
|
-
if (i == null || typeof i == "string")
|
|
547
|
-
return;
|
|
548
|
-
var l;
|
|
549
|
-
if (typeof i == "function")
|
|
550
|
-
l = i.propTypes;
|
|
551
|
-
else if (typeof i == "object" && (i.$$typeof === f || // Note: Memo only checks outer props here.
|
|
552
|
-
// Inner props are checked in the reconciler.
|
|
553
|
-
i.$$typeof === R))
|
|
554
|
-
l = i.propTypes;
|
|
555
|
-
else
|
|
556
|
-
return;
|
|
557
|
-
if (l) {
|
|
558
|
-
var m = B(i);
|
|
559
|
-
xn(l, e.props, "prop", m, e);
|
|
560
|
-
} else if (i.PropTypes !== void 0 && !le) {
|
|
561
|
-
le = !0;
|
|
562
|
-
var k = B(i);
|
|
563
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
564
|
-
}
|
|
565
|
-
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
function Vn(e) {
|
|
569
|
-
{
|
|
570
|
-
for (var i = Object.keys(e.props), l = 0; l < i.length; l++) {
|
|
571
|
-
var m = i[l];
|
|
572
|
-
if (m !== "children" && m !== "key") {
|
|
573
|
-
F(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), F(null);
|
|
574
|
-
break;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
e.ref !== null && (F(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
var Fe = {};
|
|
581
|
-
function Un(e, i, l, m, k, x) {
|
|
582
|
-
{
|
|
583
|
-
var p = vn(e);
|
|
584
|
-
if (!p) {
|
|
585
|
-
var b = "";
|
|
586
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
|
-
var j = Bn(k);
|
|
588
|
-
j ? b += j : b += Oe();
|
|
589
|
-
var D;
|
|
590
|
-
e === null ? D = "null" : ie(e) ? D = "array" : e !== void 0 && e.$$typeof === t ? (D = "<" + (B(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : D = typeof e, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, b);
|
|
591
|
-
}
|
|
592
|
-
var y = Cn(e, i, l, k, x);
|
|
593
|
-
if (y == null)
|
|
594
|
-
return y;
|
|
595
|
-
if (p) {
|
|
596
|
-
var P = i.children;
|
|
597
|
-
if (P !== void 0)
|
|
598
|
-
if (m)
|
|
599
|
-
if (ie(P)) {
|
|
600
|
-
for (var I = 0; I < P.length; I++)
|
|
601
|
-
Ue(P[I], e);
|
|
602
|
-
Object.freeze && Object.freeze(P);
|
|
603
|
-
} else
|
|
604
|
-
S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
|
-
else
|
|
606
|
-
Ue(P, e);
|
|
607
|
-
}
|
|
608
|
-
if ($.call(i, "key")) {
|
|
609
|
-
var V = B(e), T = Object.keys(i).filter(function(Ln) {
|
|
610
|
-
return Ln !== "key";
|
|
611
|
-
}), ue = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
-
if (!Fe[V + ue]) {
|
|
613
|
-
var In = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
614
|
-
S(`A props object containing a "key" prop is being spread into JSX:
|
|
615
|
-
let props = %s;
|
|
616
|
-
<%s {...props} />
|
|
617
|
-
React keys must be passed directly to JSX without using spread:
|
|
618
|
-
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`, ue, V, In, V), Fe[V + ue] = !0;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
return e === o ? Vn(y) : _n(y), y;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
var Fn = Un;
|
|
626
|
-
q.Fragment = o, q.jsxDEV = Fn;
|
|
627
|
-
}()), q;
|
|
628
|
-
}
|
|
629
|
-
process.env.NODE_ENV === "production" ? me.exports = ar() : me.exports = lr();
|
|
630
|
-
var a = me.exports;
|
|
631
|
-
const Qe = (n, t, r = !1) => {
|
|
1
|
+
import { jsx as i, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { assertEmpty as d, isSafari as M, COLORS_DEFAULT as q, COLORS_DARK_MODE_DEFAULT as Z, mergeCSSClasses as J } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as z, useBlockNoteContext as Q, usePrefersColorScheme as X, ComponentsContext as Y, BlockNoteViewRaw as ee } from "@blocknote/react";
|
|
4
|
+
import { TextInput as B, Menu as b, CheckIcon as _, Group as p, Tabs as w, LoadingOverlay as te, Button as x, FileInput as ne, Popover as oe, PopoverTarget as re, PopoverDropdown as se, ActionIcon as $, Loader as V, Stack as O, Text as N, Badge as ie, Tooltip as ae, MantineProvider as le } from "@mantine/core";
|
|
5
|
+
import y, { forwardRef as g, createContext as ce, useState as ue, useRef as C, useCallback as F, useContext as de, useEffect as A } from "react";
|
|
6
|
+
import { mergeRefs as T, useFocusWithin as me, useFocusTrap as ge } from "@mantine/hooks";
|
|
7
|
+
const G = (e, n, t = !1) => {
|
|
632
8
|
const o = [];
|
|
633
|
-
function s
|
|
634
|
-
for (const
|
|
635
|
-
const
|
|
636
|
-
typeof
|
|
9
|
+
function r(s, l = "--bn") {
|
|
10
|
+
for (const a in s) {
|
|
11
|
+
const c = a.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), u = `${l}-${c}`;
|
|
12
|
+
typeof s[a] != "object" ? (typeof s[a] == "number" && (s[a] = `${s[a]}px`), t ? n.style.removeProperty(u) : n.style.setProperty(u, s[a].toString())) : r(s[a], u);
|
|
637
13
|
}
|
|
638
14
|
}
|
|
639
|
-
return
|
|
640
|
-
},
|
|
15
|
+
return r(e), o;
|
|
16
|
+
}, D = (e, n) => G(e, n), fe = {
|
|
641
17
|
colors: {
|
|
642
18
|
editor: {
|
|
643
19
|
text: void 0,
|
|
@@ -707,1128 +83,730 @@ const Qe = (n, t, r = !1) => {
|
|
|
707
83
|
},
|
|
708
84
|
borderRadius: void 0,
|
|
709
85
|
fontFamily: void 0
|
|
710
|
-
},
|
|
86
|
+
}, be = (e) => G(fe, e, !0), pe = g((e, n) => {
|
|
711
87
|
const {
|
|
712
|
-
className:
|
|
88
|
+
className: t,
|
|
713
89
|
name: o,
|
|
714
|
-
label:
|
|
715
|
-
icon:
|
|
716
|
-
value:
|
|
717
|
-
autoFocus:
|
|
718
|
-
placeholder:
|
|
719
|
-
onKeyDown:
|
|
720
|
-
onChange:
|
|
721
|
-
onSubmit:
|
|
722
|
-
...
|
|
723
|
-
} =
|
|
724
|
-
return
|
|
725
|
-
|
|
90
|
+
label: r,
|
|
91
|
+
icon: s,
|
|
92
|
+
value: l,
|
|
93
|
+
autoFocus: a,
|
|
94
|
+
placeholder: c,
|
|
95
|
+
onKeyDown: u,
|
|
96
|
+
onChange: f,
|
|
97
|
+
onSubmit: v,
|
|
98
|
+
...h
|
|
99
|
+
} = e;
|
|
100
|
+
return d(h), /* @__PURE__ */ i(
|
|
101
|
+
B,
|
|
726
102
|
{
|
|
727
103
|
size: "xs",
|
|
728
|
-
className:
|
|
729
|
-
ref:
|
|
104
|
+
className: t,
|
|
105
|
+
ref: n,
|
|
730
106
|
name: o,
|
|
731
|
-
label:
|
|
732
|
-
leftSection:
|
|
733
|
-
value:
|
|
734
|
-
autoFocus:
|
|
735
|
-
"data-autofocus":
|
|
736
|
-
placeholder:
|
|
737
|
-
onKeyDown:
|
|
738
|
-
onChange:
|
|
739
|
-
onSubmit:
|
|
740
|
-
}
|
|
741
|
-
void 0,
|
|
742
|
-
!1,
|
|
743
|
-
{
|
|
744
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/form/TextInput.tsx",
|
|
745
|
-
lineNumber: 28,
|
|
746
|
-
columnNumber: 5
|
|
747
|
-
},
|
|
748
|
-
void 0
|
|
107
|
+
label: r,
|
|
108
|
+
leftSection: s,
|
|
109
|
+
value: l,
|
|
110
|
+
autoFocus: a,
|
|
111
|
+
"data-autofocus": a ? "true" : void 0,
|
|
112
|
+
placeholder: c,
|
|
113
|
+
onKeyDown: u,
|
|
114
|
+
onChange: f,
|
|
115
|
+
onSubmit: v
|
|
116
|
+
}
|
|
749
117
|
);
|
|
750
118
|
});
|
|
751
|
-
var
|
|
119
|
+
var H = {
|
|
752
120
|
color: void 0,
|
|
753
121
|
size: void 0,
|
|
754
122
|
className: void 0,
|
|
755
123
|
style: void 0,
|
|
756
124
|
attr: void 0
|
|
757
|
-
},
|
|
758
|
-
function
|
|
759
|
-
if (
|
|
760
|
-
var
|
|
125
|
+
}, R = y.createContext && /* @__PURE__ */ y.createContext(H), ve = ["attr", "size", "title"];
|
|
126
|
+
function he(e, n) {
|
|
127
|
+
if (e == null) return {};
|
|
128
|
+
var t = ye(e, n), o, r;
|
|
761
129
|
if (Object.getOwnPropertySymbols) {
|
|
762
|
-
var
|
|
763
|
-
for (
|
|
764
|
-
o =
|
|
130
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
131
|
+
for (r = 0; r < s.length; r++)
|
|
132
|
+
o = s[r], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (t[o] = e[o]);
|
|
765
133
|
}
|
|
766
|
-
return
|
|
134
|
+
return t;
|
|
767
135
|
}
|
|
768
|
-
function
|
|
769
|
-
if (
|
|
770
|
-
var
|
|
771
|
-
for (var o in
|
|
772
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
773
|
-
if (
|
|
774
|
-
|
|
775
|
-
}
|
|
776
|
-
return
|
|
136
|
+
function ye(e, n) {
|
|
137
|
+
if (e == null) return {};
|
|
138
|
+
var t = {};
|
|
139
|
+
for (var o in e)
|
|
140
|
+
if (Object.prototype.hasOwnProperty.call(e, o)) {
|
|
141
|
+
if (n.indexOf(o) >= 0) continue;
|
|
142
|
+
t[o] = e[o];
|
|
143
|
+
}
|
|
144
|
+
return t;
|
|
777
145
|
}
|
|
778
|
-
function
|
|
779
|
-
return
|
|
780
|
-
for (var
|
|
781
|
-
var
|
|
782
|
-
for (var o in
|
|
783
|
-
Object.prototype.hasOwnProperty.call(
|
|
784
|
-
}
|
|
785
|
-
return
|
|
786
|
-
},
|
|
146
|
+
function k() {
|
|
147
|
+
return k = Object.assign ? Object.assign.bind() : function(e) {
|
|
148
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
149
|
+
var t = arguments[n];
|
|
150
|
+
for (var o in t)
|
|
151
|
+
Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
|
|
152
|
+
}
|
|
153
|
+
return e;
|
|
154
|
+
}, k.apply(this, arguments);
|
|
787
155
|
}
|
|
788
|
-
function
|
|
789
|
-
var
|
|
156
|
+
function I(e, n) {
|
|
157
|
+
var t = Object.keys(e);
|
|
790
158
|
if (Object.getOwnPropertySymbols) {
|
|
791
|
-
var o = Object.getOwnPropertySymbols(
|
|
792
|
-
|
|
793
|
-
return Object.getOwnPropertyDescriptor(
|
|
794
|
-
})),
|
|
159
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
160
|
+
n && (o = o.filter(function(r) {
|
|
161
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
162
|
+
})), t.push.apply(t, o);
|
|
795
163
|
}
|
|
796
|
-
return
|
|
164
|
+
return t;
|
|
797
165
|
}
|
|
798
|
-
function
|
|
799
|
-
for (var
|
|
800
|
-
var
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
804
|
-
Object.defineProperty(
|
|
166
|
+
function P(e) {
|
|
167
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
168
|
+
var t = arguments[n] != null ? arguments[n] : {};
|
|
169
|
+
n % 2 ? I(Object(t), !0).forEach(function(o) {
|
|
170
|
+
Se(e, o, t[o]);
|
|
171
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : I(Object(t)).forEach(function(o) {
|
|
172
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
805
173
|
});
|
|
806
174
|
}
|
|
807
|
-
return
|
|
175
|
+
return e;
|
|
808
176
|
}
|
|
809
|
-
function
|
|
810
|
-
return
|
|
177
|
+
function Se(e, n, t) {
|
|
178
|
+
return n = xe(n), n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
811
179
|
}
|
|
812
|
-
function
|
|
813
|
-
var
|
|
814
|
-
return typeof
|
|
180
|
+
function xe(e) {
|
|
181
|
+
var n = we(e, "string");
|
|
182
|
+
return typeof n == "symbol" ? n : n + "";
|
|
815
183
|
}
|
|
816
|
-
function
|
|
817
|
-
if (typeof
|
|
818
|
-
var
|
|
819
|
-
if (
|
|
820
|
-
var o =
|
|
184
|
+
function we(e, n) {
|
|
185
|
+
if (typeof e != "object" || !e) return e;
|
|
186
|
+
var t = e[Symbol.toPrimitive];
|
|
187
|
+
if (t !== void 0) {
|
|
188
|
+
var o = t.call(e, n || "default");
|
|
821
189
|
if (typeof o != "object") return o;
|
|
822
190
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
823
191
|
}
|
|
824
|
-
return (
|
|
192
|
+
return (n === "string" ? String : Number)(e);
|
|
825
193
|
}
|
|
826
|
-
function
|
|
827
|
-
return
|
|
828
|
-
key:
|
|
829
|
-
},
|
|
194
|
+
function K(e) {
|
|
195
|
+
return e && e.map((n, t) => /* @__PURE__ */ y.createElement(n.tag, P({
|
|
196
|
+
key: t
|
|
197
|
+
}, n.attr), K(n.child)));
|
|
830
198
|
}
|
|
831
|
-
function
|
|
832
|
-
return (
|
|
833
|
-
attr:
|
|
834
|
-
},
|
|
199
|
+
function U(e) {
|
|
200
|
+
return (n) => /* @__PURE__ */ y.createElement(Ne, k({
|
|
201
|
+
attr: P({}, e.attr)
|
|
202
|
+
}, n), K(e.child));
|
|
835
203
|
}
|
|
836
|
-
function
|
|
837
|
-
var
|
|
204
|
+
function Ne(e) {
|
|
205
|
+
var n = (t) => {
|
|
838
206
|
var {
|
|
839
207
|
attr: o,
|
|
840
|
-
size:
|
|
841
|
-
title:
|
|
842
|
-
} =
|
|
843
|
-
return
|
|
208
|
+
size: r,
|
|
209
|
+
title: s
|
|
210
|
+
} = e, l = he(e, ve), a = r || t.size || "1em", c;
|
|
211
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ y.createElement("svg", k({
|
|
844
212
|
stroke: "currentColor",
|
|
845
213
|
fill: "currentColor",
|
|
846
214
|
strokeWidth: "0"
|
|
847
|
-
},
|
|
848
|
-
className:
|
|
849
|
-
style:
|
|
850
|
-
color:
|
|
851
|
-
},
|
|
852
|
-
height:
|
|
853
|
-
width:
|
|
215
|
+
}, t.attr, o, l, {
|
|
216
|
+
className: c,
|
|
217
|
+
style: P(P({
|
|
218
|
+
color: e.color || t.color
|
|
219
|
+
}, t.style), e.style),
|
|
220
|
+
height: a,
|
|
221
|
+
width: a,
|
|
854
222
|
xmlns: "http://www.w3.org/2000/svg"
|
|
855
|
-
}),
|
|
223
|
+
}), s && /* @__PURE__ */ y.createElement("title", null, s), e.children);
|
|
856
224
|
};
|
|
857
|
-
return
|
|
225
|
+
return R !== void 0 ? /* @__PURE__ */ y.createElement(R.Consumer, null, (t) => n(t)) : n(H);
|
|
858
226
|
}
|
|
859
|
-
function
|
|
860
|
-
return
|
|
227
|
+
function Ce(e) {
|
|
228
|
+
return U({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
861
229
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
230
|
+
function ke(e) {
|
|
231
|
+
return U({ tag: "svg", attr: { viewBox: "0 0 20 20", fill: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }, child: [] }] })(e);
|
|
864
232
|
}
|
|
865
|
-
const
|
|
233
|
+
const W = ce(void 0), Pe = g((e, n) => {
|
|
866
234
|
const {
|
|
867
|
-
children:
|
|
235
|
+
children: t,
|
|
868
236
|
onOpenChange: o,
|
|
869
|
-
position:
|
|
870
|
-
sub:
|
|
237
|
+
position: r,
|
|
238
|
+
sub: s,
|
|
871
239
|
// not used
|
|
872
|
-
...
|
|
873
|
-
} =
|
|
874
|
-
|
|
875
|
-
const [
|
|
876
|
-
|
|
877
|
-
|
|
240
|
+
...l
|
|
241
|
+
} = e;
|
|
242
|
+
d(l);
|
|
243
|
+
const [a, c] = ue(!1), u = C(null), f = C(), v = F(() => {
|
|
244
|
+
f.current && clearTimeout(f.current), f.current = setTimeout(() => {
|
|
245
|
+
c(!1);
|
|
878
246
|
}, 250);
|
|
879
|
-
}, []),
|
|
880
|
-
|
|
247
|
+
}, []), h = F(() => {
|
|
248
|
+
f.current && clearTimeout(f.current), c(!0);
|
|
881
249
|
}, []);
|
|
882
|
-
return /* @__PURE__ */
|
|
883
|
-
|
|
250
|
+
return /* @__PURE__ */ i(
|
|
251
|
+
W.Provider,
|
|
884
252
|
{
|
|
885
253
|
value: {
|
|
886
|
-
onMenuMouseOver:
|
|
887
|
-
onMenuMouseLeave:
|
|
254
|
+
onMenuMouseOver: h,
|
|
255
|
+
onMenuMouseLeave: v
|
|
888
256
|
},
|
|
889
|
-
children: /* @__PURE__ */
|
|
890
|
-
|
|
257
|
+
children: /* @__PURE__ */ i(
|
|
258
|
+
b.Item,
|
|
891
259
|
{
|
|
892
260
|
className: "bn-menu-item bn-mt-sub-menu-item",
|
|
893
|
-
ref:
|
|
894
|
-
onMouseOver:
|
|
895
|
-
onMouseLeave:
|
|
896
|
-
children: /* @__PURE__ */
|
|
897
|
-
|
|
261
|
+
ref: T(n, u),
|
|
262
|
+
onMouseOver: h,
|
|
263
|
+
onMouseLeave: v,
|
|
264
|
+
children: /* @__PURE__ */ i(
|
|
265
|
+
b,
|
|
898
266
|
{
|
|
899
267
|
portalProps: {
|
|
900
|
-
target:
|
|
268
|
+
target: u.current ? u.current.parentElement : void 0
|
|
901
269
|
},
|
|
902
270
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
903
271
|
trigger: "hover",
|
|
904
|
-
opened:
|
|
272
|
+
opened: a,
|
|
905
273
|
onClose: () => o == null ? void 0 : o(!1),
|
|
906
274
|
onOpen: () => o == null ? void 0 : o(!0),
|
|
907
|
-
position:
|
|
908
|
-
children:
|
|
909
|
-
}
|
|
910
|
-
void 0,
|
|
911
|
-
!1,
|
|
912
|
-
{
|
|
913
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
914
|
-
lineNumber: 119,
|
|
915
|
-
columnNumber: 9
|
|
916
|
-
},
|
|
917
|
-
void 0
|
|
275
|
+
position: r,
|
|
276
|
+
children: t
|
|
277
|
+
}
|
|
918
278
|
)
|
|
919
|
-
}
|
|
920
|
-
void 0,
|
|
921
|
-
!1,
|
|
922
|
-
{
|
|
923
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
924
|
-
lineNumber: 114,
|
|
925
|
-
columnNumber: 7
|
|
926
|
-
},
|
|
927
|
-
void 0
|
|
279
|
+
}
|
|
928
280
|
)
|
|
929
|
-
}
|
|
930
|
-
void 0,
|
|
931
|
-
!1,
|
|
932
|
-
{
|
|
933
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
934
|
-
lineNumber: 109,
|
|
935
|
-
columnNumber: 5
|
|
936
|
-
},
|
|
937
|
-
void 0
|
|
281
|
+
}
|
|
938
282
|
);
|
|
939
|
-
}),
|
|
940
|
-
const { children:
|
|
941
|
-
return
|
|
942
|
-
|
|
943
|
-
lineNumber: 144,
|
|
944
|
-
columnNumber: 12
|
|
945
|
-
}, void 0) : /* @__PURE__ */ a.jsxDEV(
|
|
946
|
-
w,
|
|
283
|
+
}), Te = (e) => {
|
|
284
|
+
const { children: n, onOpenChange: t, position: o, sub: r, ...s } = e;
|
|
285
|
+
return d(s), r ? /* @__PURE__ */ i(Pe, { ...e }) : /* @__PURE__ */ i(
|
|
286
|
+
b,
|
|
947
287
|
{
|
|
948
288
|
withinPortal: !1,
|
|
949
289
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
950
|
-
onClose: () =>
|
|
951
|
-
onOpen: () =>
|
|
290
|
+
onClose: () => t == null ? void 0 : t(!1),
|
|
291
|
+
onOpen: () => t == null ? void 0 : t(!0),
|
|
952
292
|
position: o,
|
|
953
|
-
children:
|
|
954
|
-
}
|
|
955
|
-
void 0,
|
|
956
|
-
!1,
|
|
957
|
-
{
|
|
958
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
959
|
-
lineNumber: 148,
|
|
960
|
-
columnNumber: 5
|
|
961
|
-
},
|
|
962
|
-
void 0
|
|
293
|
+
children: n
|
|
294
|
+
}
|
|
963
295
|
);
|
|
964
|
-
},
|
|
965
|
-
const { className:
|
|
966
|
-
return
|
|
296
|
+
}, Me = g((e, n) => {
|
|
297
|
+
const { className: t, children: o, icon: r, checked: s, subTrigger: l, onClick: a, ...c } = e;
|
|
298
|
+
return d(c, !1), l ? /* @__PURE__ */ S(
|
|
967
299
|
"div",
|
|
968
300
|
{
|
|
969
|
-
onClick: (
|
|
970
|
-
|
|
301
|
+
onClick: (u) => {
|
|
302
|
+
u.preventDefault(), u.stopPropagation();
|
|
971
303
|
},
|
|
972
|
-
ref:
|
|
973
|
-
...
|
|
304
|
+
ref: n,
|
|
305
|
+
...c,
|
|
974
306
|
children: [
|
|
975
307
|
o,
|
|
976
|
-
/* @__PURE__ */
|
|
977
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
978
|
-
lineNumber: 180,
|
|
979
|
-
columnNumber: 9
|
|
980
|
-
}, void 0)
|
|
308
|
+
/* @__PURE__ */ i(ke, { size: 15 })
|
|
981
309
|
]
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
{
|
|
986
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
987
|
-
lineNumber: 172,
|
|
988
|
-
columnNumber: 7
|
|
989
|
-
},
|
|
990
|
-
void 0
|
|
991
|
-
) : /* @__PURE__ */ a.jsxDEV(
|
|
992
|
-
w.Item,
|
|
310
|
+
}
|
|
311
|
+
) : /* @__PURE__ */ i(
|
|
312
|
+
b.Item,
|
|
993
313
|
{
|
|
994
|
-
className:
|
|
995
|
-
ref:
|
|
996
|
-
leftSection:
|
|
997
|
-
rightSection:
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
columnNumber: 11
|
|
1001
|
-
}, void 0) : c === !1 ? /* @__PURE__ */ a.jsxDEV("div", { className: "bn-tick-space" }, void 0, !1, {
|
|
1002
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
1003
|
-
lineNumber: 194,
|
|
1004
|
-
columnNumber: 11
|
|
1005
|
-
}, void 0) : null,
|
|
1006
|
-
onClick: u,
|
|
1007
|
-
...f,
|
|
314
|
+
className: t,
|
|
315
|
+
ref: n,
|
|
316
|
+
leftSection: r,
|
|
317
|
+
rightSection: s ? /* @__PURE__ */ i(_, { size: 10 }) : s === !1 ? /* @__PURE__ */ i("div", { className: "bn-tick-space" }) : null,
|
|
318
|
+
onClick: a,
|
|
319
|
+
...c,
|
|
1008
320
|
children: o
|
|
1009
|
-
}
|
|
1010
|
-
void 0,
|
|
1011
|
-
!1,
|
|
1012
|
-
{
|
|
1013
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
1014
|
-
lineNumber: 186,
|
|
1015
|
-
columnNumber: 5
|
|
1016
|
-
},
|
|
1017
|
-
void 0
|
|
321
|
+
}
|
|
1018
322
|
);
|
|
1019
|
-
}),
|
|
323
|
+
}), Fe = (e) => {
|
|
1020
324
|
const {
|
|
1021
|
-
children:
|
|
1022
|
-
sub:
|
|
325
|
+
children: n,
|
|
326
|
+
sub: t,
|
|
1023
327
|
// unused
|
|
1024
328
|
...o
|
|
1025
|
-
} =
|
|
1026
|
-
return
|
|
1027
|
-
|
|
1028
|
-
lineNumber: 215,
|
|
1029
|
-
columnNumber: 10
|
|
1030
|
-
}, void 0);
|
|
1031
|
-
}, Sr = h((n, t) => {
|
|
329
|
+
} = e;
|
|
330
|
+
return d(o), /* @__PURE__ */ i(b.Target, { children: n });
|
|
331
|
+
}, Oe = g((e, n) => {
|
|
1032
332
|
const {
|
|
1033
|
-
className:
|
|
333
|
+
className: t,
|
|
1034
334
|
children: o,
|
|
1035
|
-
sub:
|
|
335
|
+
sub: r,
|
|
1036
336
|
//unused
|
|
1037
|
-
...
|
|
1038
|
-
} =
|
|
1039
|
-
|
|
1040
|
-
const
|
|
1041
|
-
return /* @__PURE__ */
|
|
1042
|
-
|
|
1043
|
-
{
|
|
1044
|
-
className:
|
|
1045
|
-
ref:
|
|
1046
|
-
onMouseOver:
|
|
1047
|
-
onMouseLeave:
|
|
337
|
+
...s
|
|
338
|
+
} = e;
|
|
339
|
+
d(s);
|
|
340
|
+
const l = de(W);
|
|
341
|
+
return /* @__PURE__ */ i(
|
|
342
|
+
b.Dropdown,
|
|
343
|
+
{
|
|
344
|
+
className: t,
|
|
345
|
+
ref: n,
|
|
346
|
+
onMouseOver: l == null ? void 0 : l.onMenuMouseOver,
|
|
347
|
+
onMouseLeave: l == null ? void 0 : l.onMenuMouseLeave,
|
|
1048
348
|
children: o
|
|
1049
|
-
}
|
|
1050
|
-
void 0,
|
|
1051
|
-
!1,
|
|
1052
|
-
{
|
|
1053
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
1054
|
-
lineNumber: 234,
|
|
1055
|
-
columnNumber: 5
|
|
1056
|
-
},
|
|
1057
|
-
void 0
|
|
349
|
+
}
|
|
1058
350
|
);
|
|
1059
|
-
}),
|
|
1060
|
-
const { className:
|
|
1061
|
-
return
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
}), Tr = h((n, t) => {
|
|
1067
|
-
const { className: r, children: o, ...s } = n;
|
|
1068
|
-
return g(s), /* @__PURE__ */ a.jsxDEV(w.Label, { className: r, ref: t, children: o }, void 0, !1, {
|
|
1069
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/menu/Menu.tsx",
|
|
1070
|
-
lineNumber: 264,
|
|
1071
|
-
columnNumber: 5
|
|
1072
|
-
}, void 0);
|
|
1073
|
-
}), Rr = h((n, t) => {
|
|
351
|
+
}), De = g((e, n) => {
|
|
352
|
+
const { className: t, ...o } = e;
|
|
353
|
+
return d(o), /* @__PURE__ */ i(b.Divider, { className: t, ref: n });
|
|
354
|
+
}), Re = g((e, n) => {
|
|
355
|
+
const { className: t, children: o, ...r } = e;
|
|
356
|
+
return d(r), /* @__PURE__ */ i(b.Label, { className: t, ref: n, children: o });
|
|
357
|
+
}), Ie = g((e, n) => {
|
|
1074
358
|
const {
|
|
1075
|
-
className:
|
|
359
|
+
className: t,
|
|
1076
360
|
tabs: o,
|
|
1077
|
-
defaultOpenTab:
|
|
1078
|
-
openTab:
|
|
1079
|
-
setOpenTab:
|
|
1080
|
-
loading:
|
|
1081
|
-
...
|
|
1082
|
-
} =
|
|
1083
|
-
return
|
|
1084
|
-
|
|
361
|
+
defaultOpenTab: r,
|
|
362
|
+
openTab: s,
|
|
363
|
+
setOpenTab: l,
|
|
364
|
+
loading: a,
|
|
365
|
+
...c
|
|
366
|
+
} = e;
|
|
367
|
+
return d(c), /* @__PURE__ */ i(p, { className: t, ref: n, children: /* @__PURE__ */ S(
|
|
368
|
+
w,
|
|
1085
369
|
{
|
|
1086
|
-
value:
|
|
1087
|
-
defaultValue:
|
|
1088
|
-
onChange:
|
|
370
|
+
value: s,
|
|
371
|
+
defaultValue: r,
|
|
372
|
+
onChange: l,
|
|
1089
373
|
children: [
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
columnNumber: 21
|
|
1094
|
-
}, void 0),
|
|
1095
|
-
/* @__PURE__ */ a.jsxDEV(H.List, { children: o.map((v) => /* @__PURE__ */ a.jsxDEV(
|
|
1096
|
-
H.Tab,
|
|
374
|
+
a && /* @__PURE__ */ i(te, { visible: a }),
|
|
375
|
+
/* @__PURE__ */ i(w.List, { children: o.map((u) => /* @__PURE__ */ i(
|
|
376
|
+
w.Tab,
|
|
1097
377
|
{
|
|
1098
|
-
"data-test": `${
|
|
1099
|
-
value:
|
|
1100
|
-
children:
|
|
378
|
+
"data-test": `${u.name.toLowerCase()}-tab`,
|
|
379
|
+
value: u.name,
|
|
380
|
+
children: u.name
|
|
1101
381
|
},
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/Panel.tsx",
|
|
1106
|
-
lineNumber: 37,
|
|
1107
|
-
columnNumber: 13
|
|
1108
|
-
},
|
|
1109
|
-
void 0
|
|
1110
|
-
)) }, void 0, !1, {
|
|
1111
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/Panel.tsx",
|
|
1112
|
-
lineNumber: 35,
|
|
1113
|
-
columnNumber: 9
|
|
1114
|
-
}, void 0),
|
|
1115
|
-
o.map((v) => /* @__PURE__ */ a.jsxDEV(H.Panel, { value: v.name, children: v.tabPanel }, v.name, !1, {
|
|
1116
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/Panel.tsx",
|
|
1117
|
-
lineNumber: 47,
|
|
1118
|
-
columnNumber: 11
|
|
1119
|
-
}, void 0))
|
|
382
|
+
u.name
|
|
383
|
+
)) }),
|
|
384
|
+
o.map((u) => /* @__PURE__ */ i(w.Panel, { value: u.name, children: u.tabPanel }, u.name))
|
|
1120
385
|
]
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
columnNumber: 7
|
|
1128
|
-
},
|
|
1129
|
-
void 0
|
|
1130
|
-
) }, void 0, !1, {
|
|
1131
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/Panel.tsx",
|
|
1132
|
-
lineNumber: 28,
|
|
1133
|
-
columnNumber: 5
|
|
1134
|
-
}, void 0);
|
|
1135
|
-
}), Mr = h((n, t) => {
|
|
1136
|
-
const { className: r, children: o, onClick: s, label: c, ...d } = n;
|
|
1137
|
-
return g(d), /* @__PURE__ */ a.jsxDEV(
|
|
1138
|
-
L,
|
|
386
|
+
}
|
|
387
|
+
) });
|
|
388
|
+
}), Le = g((e, n) => {
|
|
389
|
+
const { className: t, children: o, onClick: r, label: s, ...l } = e;
|
|
390
|
+
return d(l), /* @__PURE__ */ i(
|
|
391
|
+
x,
|
|
1139
392
|
{
|
|
1140
393
|
size: "xs",
|
|
1141
|
-
"aria-label":
|
|
1142
|
-
className:
|
|
1143
|
-
ref:
|
|
1144
|
-
onClick:
|
|
1145
|
-
...
|
|
394
|
+
"aria-label": s,
|
|
395
|
+
className: t,
|
|
396
|
+
ref: n,
|
|
397
|
+
onClick: r,
|
|
398
|
+
...l,
|
|
1146
399
|
children: o
|
|
1147
|
-
}
|
|
1148
|
-
void 0,
|
|
1149
|
-
!1,
|
|
1150
|
-
{
|
|
1151
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/PanelButton.tsx",
|
|
1152
|
-
lineNumber: 16,
|
|
1153
|
-
columnNumber: 5
|
|
1154
|
-
},
|
|
1155
|
-
void 0
|
|
400
|
+
}
|
|
1156
401
|
);
|
|
1157
|
-
}),
|
|
1158
|
-
const { className:
|
|
1159
|
-
return
|
|
1160
|
-
|
|
402
|
+
}), Ee = g((e, n) => {
|
|
403
|
+
const { className: t, accept: o, value: r, placeholder: s, onChange: l, ...a } = e;
|
|
404
|
+
return d(a), /* @__PURE__ */ i(
|
|
405
|
+
ne,
|
|
1161
406
|
{
|
|
1162
407
|
size: "xs",
|
|
1163
|
-
className:
|
|
1164
|
-
ref:
|
|
408
|
+
className: t,
|
|
409
|
+
ref: n,
|
|
1165
410
|
accept: o,
|
|
1166
|
-
value:
|
|
1167
|
-
placeholder:
|
|
1168
|
-
onChange:
|
|
1169
|
-
...
|
|
1170
|
-
}
|
|
1171
|
-
void 0,
|
|
1172
|
-
!1,
|
|
1173
|
-
{
|
|
1174
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/PanelFileInput.tsx",
|
|
1175
|
-
lineNumber: 16,
|
|
1176
|
-
columnNumber: 5
|
|
1177
|
-
},
|
|
1178
|
-
void 0
|
|
411
|
+
value: r,
|
|
412
|
+
placeholder: s,
|
|
413
|
+
onChange: l,
|
|
414
|
+
...a
|
|
415
|
+
}
|
|
1179
416
|
);
|
|
1180
|
-
}),
|
|
1181
|
-
const { className:
|
|
1182
|
-
return
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
}), Cr = h((n, t) => {
|
|
1188
|
-
const { className: r, value: o, placeholder: s, onKeyDown: c, onChange: d, ...u } = n;
|
|
1189
|
-
return g(u), /* @__PURE__ */ a.jsxDEV(
|
|
1190
|
-
Je,
|
|
417
|
+
}), je = g((e, n) => {
|
|
418
|
+
const { className: t, children: o, ...r } = e;
|
|
419
|
+
return d(r), /* @__PURE__ */ i("div", { className: t, ref: n, children: o });
|
|
420
|
+
}), ze = g((e, n) => {
|
|
421
|
+
const { className: t, value: o, placeholder: r, onKeyDown: s, onChange: l, ...a } = e;
|
|
422
|
+
return d(a), /* @__PURE__ */ i(
|
|
423
|
+
B,
|
|
1191
424
|
{
|
|
1192
425
|
size: "xs",
|
|
1193
426
|
"data-test": "embed-input",
|
|
1194
|
-
className:
|
|
1195
|
-
ref:
|
|
427
|
+
className: t,
|
|
428
|
+
ref: n,
|
|
1196
429
|
value: o,
|
|
1197
|
-
placeholder:
|
|
1198
|
-
onKeyDown:
|
|
1199
|
-
onChange:
|
|
1200
|
-
}
|
|
1201
|
-
void 0,
|
|
1202
|
-
!1,
|
|
1203
|
-
{
|
|
1204
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/panel/PanelTextInput.tsx",
|
|
1205
|
-
lineNumber: 16,
|
|
1206
|
-
columnNumber: 5
|
|
1207
|
-
},
|
|
1208
|
-
void 0
|
|
430
|
+
placeholder: r,
|
|
431
|
+
onKeyDown: s,
|
|
432
|
+
onChange: l
|
|
433
|
+
}
|
|
1209
434
|
);
|
|
1210
|
-
}),
|
|
1211
|
-
const { children:
|
|
1212
|
-
return
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
}, Or = (n) => {
|
|
1218
|
-
const { children: t, ...r } = n;
|
|
1219
|
-
return g(r), /* @__PURE__ */ a.jsxDEV(er, { children: t }, void 0, !1, {
|
|
1220
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/popover/Popover.tsx",
|
|
1221
|
-
lineNumber: 32,
|
|
1222
|
-
columnNumber: 10
|
|
1223
|
-
}, void 0);
|
|
1224
|
-
}, _r = h((n, t) => {
|
|
435
|
+
}), Be = (e) => {
|
|
436
|
+
const { children: n, opened: t, position: o, ...r } = e;
|
|
437
|
+
return d(r), /* @__PURE__ */ i(oe, { withinPortal: !1, opened: t, position: o, children: n });
|
|
438
|
+
}, _e = (e) => {
|
|
439
|
+
const { children: n, ...t } = e;
|
|
440
|
+
return d(t), /* @__PURE__ */ i(re, { children: n });
|
|
441
|
+
}, $e = g((e, n) => {
|
|
1225
442
|
const {
|
|
1226
|
-
className:
|
|
443
|
+
className: t,
|
|
1227
444
|
children: o,
|
|
1228
|
-
variant:
|
|
445
|
+
variant: r,
|
|
1229
446
|
// unused
|
|
1230
|
-
...
|
|
1231
|
-
} =
|
|
1232
|
-
return
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
}), Vr = h((n, t) => {
|
|
1238
|
-
const { className: r, children: o, ...s } = n;
|
|
1239
|
-
return g(s, !1), /* @__PURE__ */ a.jsxDEV(
|
|
1240
|
-
C,
|
|
447
|
+
...s
|
|
448
|
+
} = e;
|
|
449
|
+
return d(s), /* @__PURE__ */ i(se, { className: t, ref: n, children: o });
|
|
450
|
+
}), Ve = g((e, n) => {
|
|
451
|
+
const { className: t, children: o, ...r } = e;
|
|
452
|
+
return d(r, !1), /* @__PURE__ */ i(
|
|
453
|
+
p,
|
|
1241
454
|
{
|
|
1242
455
|
align: "center",
|
|
1243
456
|
gap: 0,
|
|
1244
|
-
className:
|
|
1245
|
-
ref:
|
|
1246
|
-
...
|
|
457
|
+
className: t,
|
|
458
|
+
ref: n,
|
|
459
|
+
...r,
|
|
1247
460
|
children: o
|
|
1248
|
-
}
|
|
1249
|
-
void 0,
|
|
1250
|
-
!1,
|
|
1251
|
-
{
|
|
1252
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/sideMenu/SideMenu.tsx",
|
|
1253
|
-
lineNumber: 16,
|
|
1254
|
-
columnNumber: 5
|
|
1255
|
-
},
|
|
1256
|
-
void 0
|
|
461
|
+
}
|
|
1257
462
|
);
|
|
1258
|
-
}),
|
|
463
|
+
}), Ae = g((e, n) => {
|
|
1259
464
|
const {
|
|
1260
|
-
className:
|
|
465
|
+
className: t,
|
|
1261
466
|
children: o,
|
|
1262
|
-
icon:
|
|
1263
|
-
onClick:
|
|
1264
|
-
onDragEnd:
|
|
1265
|
-
onDragStart:
|
|
1266
|
-
draggable:
|
|
1267
|
-
label:
|
|
1268
|
-
...
|
|
1269
|
-
} =
|
|
1270
|
-
return
|
|
1271
|
-
|
|
467
|
+
icon: r,
|
|
468
|
+
onClick: s,
|
|
469
|
+
onDragEnd: l,
|
|
470
|
+
onDragStart: a,
|
|
471
|
+
draggable: c,
|
|
472
|
+
label: u,
|
|
473
|
+
...f
|
|
474
|
+
} = e;
|
|
475
|
+
return d(f, !1), r ? /* @__PURE__ */ i(
|
|
476
|
+
$,
|
|
1272
477
|
{
|
|
1273
478
|
size: 24,
|
|
1274
|
-
className:
|
|
1275
|
-
ref:
|
|
1276
|
-
onClick:
|
|
1277
|
-
onDragEnd:
|
|
1278
|
-
onDragStart:
|
|
1279
|
-
draggable:
|
|
1280
|
-
"aria-label":
|
|
1281
|
-
...
|
|
1282
|
-
children:
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
{
|
|
1287
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/sideMenu/SideMenuButton.tsx",
|
|
1288
|
-
lineNumber: 32,
|
|
1289
|
-
columnNumber: 7
|
|
1290
|
-
},
|
|
1291
|
-
void 0
|
|
1292
|
-
) : /* @__PURE__ */ a.jsxDEV(
|
|
1293
|
-
L,
|
|
479
|
+
className: t,
|
|
480
|
+
ref: n,
|
|
481
|
+
onClick: s,
|
|
482
|
+
onDragEnd: l,
|
|
483
|
+
onDragStart: a,
|
|
484
|
+
draggable: c,
|
|
485
|
+
"aria-label": u,
|
|
486
|
+
...f,
|
|
487
|
+
children: r
|
|
488
|
+
}
|
|
489
|
+
) : /* @__PURE__ */ i(
|
|
490
|
+
x,
|
|
1294
491
|
{
|
|
1295
|
-
className:
|
|
1296
|
-
ref:
|
|
1297
|
-
onClick:
|
|
1298
|
-
onDragEnd:
|
|
1299
|
-
onDragStart:
|
|
1300
|
-
draggable:
|
|
1301
|
-
"aria-label":
|
|
1302
|
-
...
|
|
492
|
+
className: t,
|
|
493
|
+
ref: n,
|
|
494
|
+
onClick: s,
|
|
495
|
+
onDragEnd: l,
|
|
496
|
+
onDragStart: a,
|
|
497
|
+
draggable: c,
|
|
498
|
+
"aria-label": u,
|
|
499
|
+
...f,
|
|
1303
500
|
children: o
|
|
1304
|
-
}
|
|
1305
|
-
void 0,
|
|
1306
|
-
!1,
|
|
1307
|
-
{
|
|
1308
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/sideMenu/SideMenuButton.tsx",
|
|
1309
|
-
lineNumber: 48,
|
|
1310
|
-
columnNumber: 5
|
|
1311
|
-
},
|
|
1312
|
-
void 0
|
|
501
|
+
}
|
|
1313
502
|
);
|
|
1314
|
-
}),
|
|
1315
|
-
const { className:
|
|
1316
|
-
return
|
|
503
|
+
}), Ge = g((e, n) => {
|
|
504
|
+
const { className: t, children: o, id: r, columns: s, ...l } = e;
|
|
505
|
+
return d(l), /* @__PURE__ */ i(
|
|
1317
506
|
"div",
|
|
1318
507
|
{
|
|
1319
|
-
className:
|
|
1320
|
-
style: { gridTemplateColumns: `repeat(${
|
|
1321
|
-
ref:
|
|
1322
|
-
id:
|
|
508
|
+
className: t,
|
|
509
|
+
style: { gridTemplateColumns: `repeat(${s}, 1fr)` },
|
|
510
|
+
ref: n,
|
|
511
|
+
id: r,
|
|
1323
512
|
role: "grid",
|
|
1324
513
|
children: o
|
|
1325
|
-
}
|
|
1326
|
-
void 0,
|
|
1327
|
-
!1,
|
|
1328
|
-
{
|
|
1329
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx",
|
|
1330
|
-
lineNumber: 14,
|
|
1331
|
-
columnNumber: 5
|
|
1332
|
-
},
|
|
1333
|
-
void 0
|
|
514
|
+
}
|
|
1334
515
|
);
|
|
1335
|
-
}),
|
|
1336
|
-
const { className:
|
|
1337
|
-
return
|
|
1338
|
-
|
|
516
|
+
}), He = g((e, n) => {
|
|
517
|
+
const { className: t, children: o, columns: r, ...s } = e;
|
|
518
|
+
return d(s), /* @__PURE__ */ i(
|
|
519
|
+
p,
|
|
1339
520
|
{
|
|
1340
|
-
className:
|
|
1341
|
-
style: { gridColumn: `1 / ${
|
|
1342
|
-
ref:
|
|
1343
|
-
children: /* @__PURE__ */
|
|
1344
|
-
|
|
1345
|
-
lineNumber: 20,
|
|
1346
|
-
columnNumber: 7
|
|
1347
|
-
}, void 0)
|
|
1348
|
-
},
|
|
1349
|
-
void 0,
|
|
1350
|
-
!1,
|
|
1351
|
-
{
|
|
1352
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuEmptyItem.tsx",
|
|
1353
|
-
lineNumber: 16,
|
|
1354
|
-
columnNumber: 5
|
|
1355
|
-
},
|
|
1356
|
-
void 0
|
|
521
|
+
className: t,
|
|
522
|
+
style: { gridColumn: `1 / ${r + 1}` },
|
|
523
|
+
ref: n,
|
|
524
|
+
children: /* @__PURE__ */ i(p, { className: "bn-mt-suggestion-menu-item-title", children: o })
|
|
525
|
+
}
|
|
1357
526
|
);
|
|
1358
|
-
}),
|
|
1359
|
-
const { className:
|
|
1360
|
-
|
|
1361
|
-
const
|
|
1362
|
-
return
|
|
1363
|
-
if (!
|
|
527
|
+
}), Ke = g((e, n) => {
|
|
528
|
+
const { className: t, isSelected: o, onClick: r, item: s, id: l, ...a } = e;
|
|
529
|
+
d(a);
|
|
530
|
+
const c = C(null);
|
|
531
|
+
return A(() => {
|
|
532
|
+
if (!c.current || !o)
|
|
1364
533
|
return;
|
|
1365
|
-
const
|
|
1366
|
-
|
|
534
|
+
const u = z(
|
|
535
|
+
c.current,
|
|
1367
536
|
document.querySelector(".bn-grid-suggestion-menu")
|
|
1368
537
|
);
|
|
1369
|
-
|
|
1370
|
-
}, [o]), /* @__PURE__ */
|
|
538
|
+
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
539
|
+
}, [o]), /* @__PURE__ */ i(
|
|
1371
540
|
"div",
|
|
1372
541
|
{
|
|
1373
|
-
className:
|
|
1374
|
-
ref:
|
|
1375
|
-
id:
|
|
542
|
+
className: t,
|
|
543
|
+
ref: T(n, c),
|
|
544
|
+
id: l,
|
|
1376
545
|
role: "option",
|
|
1377
|
-
onClick:
|
|
546
|
+
onClick: r,
|
|
1378
547
|
"aria-selected": o || void 0,
|
|
1379
|
-
children:
|
|
1380
|
-
}
|
|
1381
|
-
void 0,
|
|
1382
|
-
!1,
|
|
1383
|
-
{
|
|
1384
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx",
|
|
1385
|
-
lineNumber: 35,
|
|
1386
|
-
columnNumber: 5
|
|
1387
|
-
},
|
|
1388
|
-
void 0
|
|
548
|
+
children: s.icon
|
|
549
|
+
}
|
|
1389
550
|
);
|
|
1390
|
-
}),
|
|
551
|
+
}), Ue = g((e, n) => {
|
|
1391
552
|
const {
|
|
1392
|
-
className:
|
|
553
|
+
className: t,
|
|
1393
554
|
children: o,
|
|
1394
555
|
// unused, using "dots" instead
|
|
1395
|
-
columns:
|
|
1396
|
-
...
|
|
1397
|
-
} =
|
|
1398
|
-
return
|
|
1399
|
-
|
|
556
|
+
columns: r,
|
|
557
|
+
...s
|
|
558
|
+
} = e;
|
|
559
|
+
return d(s), /* @__PURE__ */ i(
|
|
560
|
+
V,
|
|
1400
561
|
{
|
|
1401
|
-
className:
|
|
1402
|
-
style: { gridColumn: `1 / ${
|
|
562
|
+
className: t,
|
|
563
|
+
style: { gridColumn: `1 / ${r + 1}` },
|
|
1403
564
|
type: "dots",
|
|
1404
|
-
ref:
|
|
1405
|
-
}
|
|
1406
|
-
void 0,
|
|
1407
|
-
!1,
|
|
1408
|
-
{
|
|
1409
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuLoader.tsx",
|
|
1410
|
-
lineNumber: 21,
|
|
1411
|
-
columnNumber: 5
|
|
1412
|
-
},
|
|
1413
|
-
void 0
|
|
565
|
+
ref: n
|
|
566
|
+
}
|
|
1414
567
|
);
|
|
1415
|
-
}),
|
|
1416
|
-
const { className:
|
|
1417
|
-
return
|
|
1418
|
-
|
|
568
|
+
}), We = g((e, n) => {
|
|
569
|
+
const { className: t, children: o, id: r, ...s } = e;
|
|
570
|
+
return d(s), /* @__PURE__ */ i(
|
|
571
|
+
O,
|
|
1419
572
|
{
|
|
1420
573
|
gap: 0,
|
|
1421
|
-
className:
|
|
1422
|
-
ref:
|
|
1423
|
-
id:
|
|
574
|
+
className: t,
|
|
575
|
+
ref: n,
|
|
576
|
+
id: r,
|
|
1424
577
|
role: "listbox",
|
|
1425
578
|
children: o
|
|
1426
|
-
}
|
|
1427
|
-
void 0,
|
|
1428
|
-
!1,
|
|
1429
|
-
{
|
|
1430
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/SuggestionMenu.tsx",
|
|
1431
|
-
lineNumber: 16,
|
|
1432
|
-
columnNumber: 5
|
|
1433
|
-
},
|
|
1434
|
-
void 0
|
|
579
|
+
}
|
|
1435
580
|
);
|
|
1436
|
-
}),
|
|
1437
|
-
const { className:
|
|
1438
|
-
return
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
columnNumber: 5
|
|
1446
|
-
}, void 0);
|
|
1447
|
-
}), Wr = h((n, t) => {
|
|
1448
|
-
const { className: r, isSelected: o, onClick: s, item: c, id: d, ...u } = n;
|
|
1449
|
-
g(u);
|
|
1450
|
-
const f = X(null);
|
|
1451
|
-
return Ke(() => {
|
|
1452
|
-
if (!f.current || !o)
|
|
581
|
+
}), qe = g((e, n) => {
|
|
582
|
+
const { className: t, children: o, ...r } = e;
|
|
583
|
+
return d(r), /* @__PURE__ */ i(p, { className: t, ref: n, children: /* @__PURE__ */ i(p, { className: "bn-mt-suggestion-menu-item-title", children: o }) });
|
|
584
|
+
}), Ze = g((e, n) => {
|
|
585
|
+
const { className: t, isSelected: o, onClick: r, item: s, id: l, ...a } = e;
|
|
586
|
+
d(a);
|
|
587
|
+
const c = C(null);
|
|
588
|
+
return A(() => {
|
|
589
|
+
if (!c.current || !o)
|
|
1453
590
|
return;
|
|
1454
|
-
const
|
|
1455
|
-
|
|
591
|
+
const u = z(
|
|
592
|
+
c.current,
|
|
1456
593
|
document.querySelector(".bn-suggestion-menu")
|
|
1457
594
|
);
|
|
1458
|
-
|
|
1459
|
-
}, [o]), /* @__PURE__ */
|
|
1460
|
-
|
|
595
|
+
u === "top" ? c.current.scrollIntoView(!0) : u === "bottom" && c.current.scrollIntoView(!1);
|
|
596
|
+
}, [o]), /* @__PURE__ */ S(
|
|
597
|
+
p,
|
|
1461
598
|
{
|
|
1462
599
|
gap: 0,
|
|
1463
|
-
className:
|
|
1464
|
-
ref:
|
|
1465
|
-
id:
|
|
600
|
+
className: t,
|
|
601
|
+
ref: T(n, c),
|
|
602
|
+
id: l,
|
|
1466
603
|
role: "option",
|
|
1467
|
-
onClick:
|
|
604
|
+
onClick: r,
|
|
1468
605
|
"aria-selected": o || void 0,
|
|
1469
606
|
children: [
|
|
1470
|
-
|
|
1471
|
-
|
|
607
|
+
s.icon && /* @__PURE__ */ i(
|
|
608
|
+
p,
|
|
1472
609
|
{
|
|
1473
610
|
className: "bn-mt-suggestion-menu-item-section",
|
|
1474
611
|
"data-position": "left",
|
|
1475
|
-
children:
|
|
1476
|
-
}
|
|
1477
|
-
void 0,
|
|
1478
|
-
!1,
|
|
1479
|
-
{
|
|
1480
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1481
|
-
lineNumber: 50,
|
|
1482
|
-
columnNumber: 9
|
|
1483
|
-
},
|
|
1484
|
-
void 0
|
|
612
|
+
children: s.icon
|
|
613
|
+
}
|
|
1485
614
|
),
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
/* @__PURE__ */ a.jsxDEV(Z, { className: "bn-mt-suggestion-menu-item-subtitle", children: c.subtext }, void 0, !1, {
|
|
1493
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1494
|
-
lineNumber: 60,
|
|
1495
|
-
columnNumber: 9
|
|
1496
|
-
}, void 0)
|
|
1497
|
-
] }, void 0, !0, {
|
|
1498
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1499
|
-
lineNumber: 56,
|
|
1500
|
-
columnNumber: 7
|
|
1501
|
-
}, void 0),
|
|
1502
|
-
c.badge && /* @__PURE__ */ a.jsxDEV(
|
|
1503
|
-
C,
|
|
615
|
+
/* @__PURE__ */ S(O, { gap: 0, className: "bn-mt-suggestion-menu-item-body", children: [
|
|
616
|
+
/* @__PURE__ */ i(N, { className: "bn-mt-suggestion-menu-item-title", children: s.title }),
|
|
617
|
+
/* @__PURE__ */ i(N, { className: "bn-mt-suggestion-menu-item-subtitle", children: s.subtext })
|
|
618
|
+
] }),
|
|
619
|
+
s.badge && /* @__PURE__ */ i(
|
|
620
|
+
p,
|
|
1504
621
|
{
|
|
1505
622
|
"data-position": "right",
|
|
1506
623
|
className: "bn-mt-suggestion-menu-item-section",
|
|
1507
|
-
children: /* @__PURE__ */
|
|
1508
|
-
|
|
1509
|
-
lineNumber: 68,
|
|
1510
|
-
columnNumber: 11
|
|
1511
|
-
}, void 0)
|
|
1512
|
-
},
|
|
1513
|
-
void 0,
|
|
1514
|
-
!1,
|
|
1515
|
-
{
|
|
1516
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1517
|
-
lineNumber: 65,
|
|
1518
|
-
columnNumber: 9
|
|
1519
|
-
},
|
|
1520
|
-
void 0
|
|
624
|
+
children: /* @__PURE__ */ i(ie, { size: "xs", children: s.badge })
|
|
625
|
+
}
|
|
1521
626
|
)
|
|
1522
627
|
]
|
|
1523
|
-
}
|
|
1524
|
-
void 0,
|
|
1525
|
-
!0,
|
|
1526
|
-
{
|
|
1527
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/suggestionMenu/SuggestionMenuItem.tsx",
|
|
1528
|
-
lineNumber: 41,
|
|
1529
|
-
columnNumber: 5
|
|
1530
|
-
},
|
|
1531
|
-
void 0
|
|
628
|
+
}
|
|
1532
629
|
);
|
|
1533
|
-
}),
|
|
1534
|
-
const { className:
|
|
1535
|
-
return
|
|
1536
|
-
|
|
1537
|
-
lineNumber: 16,
|
|
1538
|
-
columnNumber: 5
|
|
1539
|
-
}, void 0);
|
|
1540
|
-
}), Gr = h((n, t) => {
|
|
630
|
+
}), Je = g((e, n) => {
|
|
631
|
+
const { className: t, children: o, ...r } = e;
|
|
632
|
+
return d(r), /* @__PURE__ */ i(p, { className: t, ref: n, children: o });
|
|
633
|
+
}), Qe = g((e, n) => {
|
|
1541
634
|
const {
|
|
1542
|
-
className:
|
|
635
|
+
className: t,
|
|
1543
636
|
children: o,
|
|
1544
637
|
// unused, using "dots" instead
|
|
1545
|
-
...
|
|
1546
|
-
} =
|
|
1547
|
-
return
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
}), Kr = h((n, t) => {
|
|
1553
|
-
const { children: r, className: o, onMouseDown: s, onClick: c, ...d } = n;
|
|
1554
|
-
return g(d, !1), /* @__PURE__ */ a.jsxDEV(
|
|
1555
|
-
L,
|
|
638
|
+
...r
|
|
639
|
+
} = e;
|
|
640
|
+
return d(r), /* @__PURE__ */ i(V, { className: t, type: "dots", ref: n });
|
|
641
|
+
}), Xe = g((e, n) => {
|
|
642
|
+
const { children: t, className: o, onMouseDown: r, onClick: s, ...l } = e;
|
|
643
|
+
return d(l, !1), /* @__PURE__ */ i(
|
|
644
|
+
x,
|
|
1556
645
|
{
|
|
1557
646
|
className: o,
|
|
1558
|
-
ref:
|
|
1559
|
-
onMouseDown:
|
|
1560
|
-
onClick:
|
|
1561
|
-
...
|
|
1562
|
-
children:
|
|
1563
|
-
}
|
|
1564
|
-
void 0,
|
|
1565
|
-
!1,
|
|
1566
|
-
{
|
|
1567
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/tableHandle/ExtendButton.tsx",
|
|
1568
|
-
lineNumber: 18,
|
|
1569
|
-
columnNumber: 5
|
|
1570
|
-
},
|
|
1571
|
-
void 0
|
|
647
|
+
ref: n,
|
|
648
|
+
onMouseDown: r,
|
|
649
|
+
onClick: s,
|
|
650
|
+
...l,
|
|
651
|
+
children: t
|
|
652
|
+
}
|
|
1572
653
|
);
|
|
1573
|
-
}),
|
|
654
|
+
}), Ye = g((e, n) => {
|
|
1574
655
|
const {
|
|
1575
|
-
className:
|
|
656
|
+
className: t,
|
|
1576
657
|
children: o,
|
|
1577
|
-
draggable:
|
|
1578
|
-
onDragStart:
|
|
1579
|
-
onDragEnd:
|
|
1580
|
-
style:
|
|
1581
|
-
label:
|
|
1582
|
-
...
|
|
1583
|
-
} =
|
|
1584
|
-
return
|
|
1585
|
-
|
|
1586
|
-
{
|
|
1587
|
-
className:
|
|
1588
|
-
ref:
|
|
1589
|
-
"aria-label":
|
|
1590
|
-
draggable:
|
|
1591
|
-
onDragStart:
|
|
1592
|
-
onDragEnd:
|
|
1593
|
-
style:
|
|
1594
|
-
...
|
|
658
|
+
draggable: r,
|
|
659
|
+
onDragStart: s,
|
|
660
|
+
onDragEnd: l,
|
|
661
|
+
style: a,
|
|
662
|
+
label: c,
|
|
663
|
+
...u
|
|
664
|
+
} = e;
|
|
665
|
+
return d(u, !1), /* @__PURE__ */ i(
|
|
666
|
+
x,
|
|
667
|
+
{
|
|
668
|
+
className: t,
|
|
669
|
+
ref: n,
|
|
670
|
+
"aria-label": c,
|
|
671
|
+
draggable: r,
|
|
672
|
+
onDragStart: s,
|
|
673
|
+
onDragEnd: l,
|
|
674
|
+
style: a,
|
|
675
|
+
...u,
|
|
1595
676
|
children: o
|
|
1596
|
-
}
|
|
1597
|
-
void 0,
|
|
1598
|
-
!1,
|
|
1599
|
-
{
|
|
1600
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/tableHandle/TableHandle.tsx",
|
|
1601
|
-
lineNumber: 27,
|
|
1602
|
-
columnNumber: 5
|
|
1603
|
-
},
|
|
1604
|
-
void 0
|
|
677
|
+
}
|
|
1605
678
|
);
|
|
1606
|
-
}),
|
|
1607
|
-
(
|
|
1608
|
-
const { className:
|
|
1609
|
-
|
|
1610
|
-
const { ref:
|
|
1611
|
-
return /* @__PURE__ */
|
|
1612
|
-
|
|
679
|
+
}), L = g(
|
|
680
|
+
(e, n) => {
|
|
681
|
+
const { className: t, children: o, onMouseEnter: r, onMouseLeave: s, ...l } = e;
|
|
682
|
+
d(l);
|
|
683
|
+
const { ref: a, focused: c } = me(), u = ge(c), f = T(n, a, u);
|
|
684
|
+
return /* @__PURE__ */ i(
|
|
685
|
+
p,
|
|
1613
686
|
{
|
|
1614
|
-
className:
|
|
1615
|
-
ref:
|
|
687
|
+
className: t,
|
|
688
|
+
ref: f,
|
|
1616
689
|
role: "toolbar",
|
|
1617
|
-
onMouseEnter:
|
|
1618
|
-
onMouseLeave:
|
|
690
|
+
onMouseEnter: r,
|
|
691
|
+
onMouseLeave: s,
|
|
1619
692
|
children: o
|
|
1620
|
-
}
|
|
1621
|
-
void 0,
|
|
1622
|
-
!1,
|
|
1623
|
-
{
|
|
1624
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/Toolbar.tsx",
|
|
1625
|
-
lineNumber: 25,
|
|
1626
|
-
columnNumber: 7
|
|
1627
|
-
},
|
|
1628
|
-
void 0
|
|
693
|
+
}
|
|
1629
694
|
);
|
|
1630
695
|
}
|
|
1631
|
-
),
|
|
1632
|
-
/* @__PURE__ */
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
}, void 0),
|
|
1637
|
-
n.secondaryTooltip && /* @__PURE__ */ a.jsxDEV(Z, { size: "xs", children: n.secondaryTooltip }, void 0, !1, {
|
|
1638
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarButton.tsx",
|
|
1639
|
-
lineNumber: 20,
|
|
1640
|
-
columnNumber: 7
|
|
1641
|
-
}, void 0)
|
|
1642
|
-
] }, void 0, !0, {
|
|
1643
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarButton.tsx",
|
|
1644
|
-
lineNumber: 17,
|
|
1645
|
-
columnNumber: 3
|
|
1646
|
-
}, void 0), Ye = h(
|
|
1647
|
-
(n, t) => {
|
|
696
|
+
), et = (e) => /* @__PURE__ */ S(O, { gap: 0, className: "bn-tooltip", children: [
|
|
697
|
+
/* @__PURE__ */ i(N, { size: "sm", children: e.mainTooltip }),
|
|
698
|
+
e.secondaryTooltip && /* @__PURE__ */ i(N, { size: "xs", children: e.secondaryTooltip })
|
|
699
|
+
] }), E = g(
|
|
700
|
+
(e, n) => {
|
|
1648
701
|
const {
|
|
1649
|
-
className:
|
|
702
|
+
className: t,
|
|
1650
703
|
children: o,
|
|
1651
|
-
mainTooltip:
|
|
1652
|
-
secondaryTooltip:
|
|
1653
|
-
icon:
|
|
1654
|
-
isSelected:
|
|
1655
|
-
isDisabled:
|
|
1656
|
-
onClick:
|
|
1657
|
-
label:
|
|
1658
|
-
...
|
|
1659
|
-
} =
|
|
1660
|
-
return
|
|
1661
|
-
|
|
704
|
+
mainTooltip: r,
|
|
705
|
+
secondaryTooltip: s,
|
|
706
|
+
icon: l,
|
|
707
|
+
isSelected: a,
|
|
708
|
+
isDisabled: c,
|
|
709
|
+
onClick: u,
|
|
710
|
+
label: f,
|
|
711
|
+
...v
|
|
712
|
+
} = e;
|
|
713
|
+
return d(v, !1), /* @__PURE__ */ i(
|
|
714
|
+
ae,
|
|
1662
715
|
{
|
|
1663
716
|
withinPortal: !1,
|
|
1664
|
-
label: /* @__PURE__ */
|
|
1665
|
-
|
|
1666
|
-
{
|
|
1667
|
-
mainTooltip: s,
|
|
1668
|
-
secondaryTooltip: c
|
|
1669
|
-
},
|
|
1670
|
-
void 0,
|
|
1671
|
-
!1,
|
|
717
|
+
label: /* @__PURE__ */ i(
|
|
718
|
+
et,
|
|
1672
719
|
{
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
},
|
|
1677
|
-
void 0
|
|
720
|
+
mainTooltip: r,
|
|
721
|
+
secondaryTooltip: s
|
|
722
|
+
}
|
|
1678
723
|
),
|
|
1679
|
-
children: o ? /* @__PURE__ */
|
|
1680
|
-
|
|
724
|
+
children: o ? /* @__PURE__ */ i(
|
|
725
|
+
x,
|
|
1681
726
|
{
|
|
1682
|
-
"aria-label":
|
|
1683
|
-
className:
|
|
1684
|
-
onMouseDown: (
|
|
1685
|
-
|
|
727
|
+
"aria-label": f,
|
|
728
|
+
className: t,
|
|
729
|
+
onMouseDown: (h) => {
|
|
730
|
+
M() && h.currentTarget.focus();
|
|
1686
731
|
},
|
|
1687
|
-
onClick:
|
|
1688
|
-
"aria-pressed":
|
|
1689
|
-
"data-selected":
|
|
1690
|
-
"data-test":
|
|
732
|
+
onClick: u,
|
|
733
|
+
"aria-pressed": a,
|
|
734
|
+
"data-selected": a || void 0,
|
|
735
|
+
"data-test": r.slice(0, 1).toLowerCase() + r.replace(/\s+/g, "").slice(1),
|
|
1691
736
|
size: "xs",
|
|
1692
|
-
disabled:
|
|
1693
|
-
ref:
|
|
1694
|
-
...
|
|
737
|
+
disabled: c || !1,
|
|
738
|
+
ref: n,
|
|
739
|
+
...v,
|
|
1695
740
|
children: o
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
{
|
|
1700
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarButton.tsx",
|
|
1701
|
-
lineNumber: 61,
|
|
1702
|
-
columnNumber: 11
|
|
1703
|
-
},
|
|
1704
|
-
void 0
|
|
1705
|
-
) : /* @__PURE__ */ a.jsxDEV(
|
|
1706
|
-
Xe,
|
|
741
|
+
}
|
|
742
|
+
) : /* @__PURE__ */ i(
|
|
743
|
+
$,
|
|
1707
744
|
{
|
|
1708
|
-
className:
|
|
1709
|
-
"aria-label":
|
|
1710
|
-
onMouseDown: (
|
|
1711
|
-
|
|
745
|
+
className: t,
|
|
746
|
+
"aria-label": f,
|
|
747
|
+
onMouseDown: (h) => {
|
|
748
|
+
M() && h.currentTarget.focus();
|
|
1712
749
|
},
|
|
1713
|
-
onClick:
|
|
1714
|
-
"aria-pressed":
|
|
1715
|
-
"data-selected":
|
|
1716
|
-
"data-test":
|
|
750
|
+
onClick: u,
|
|
751
|
+
"aria-pressed": a,
|
|
752
|
+
"data-selected": a || void 0,
|
|
753
|
+
"data-test": r.slice(0, 1).toLowerCase() + r.replace(/\s+/g, "").slice(1),
|
|
1717
754
|
size: 30,
|
|
1718
|
-
disabled:
|
|
1719
|
-
ref:
|
|
1720
|
-
...
|
|
1721
|
-
children:
|
|
1722
|
-
}
|
|
1723
|
-
void 0,
|
|
1724
|
-
!1,
|
|
1725
|
-
{
|
|
1726
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarButton.tsx",
|
|
1727
|
-
lineNumber: 85,
|
|
1728
|
-
columnNumber: 11
|
|
1729
|
-
},
|
|
1730
|
-
void 0
|
|
755
|
+
disabled: c || !1,
|
|
756
|
+
ref: n,
|
|
757
|
+
...v,
|
|
758
|
+
children: l
|
|
759
|
+
}
|
|
1731
760
|
)
|
|
1732
|
-
}
|
|
1733
|
-
void 0,
|
|
1734
|
-
!1,
|
|
1735
|
-
{
|
|
1736
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarButton.tsx",
|
|
1737
|
-
lineNumber: 51,
|
|
1738
|
-
columnNumber: 7
|
|
1739
|
-
},
|
|
1740
|
-
void 0
|
|
761
|
+
}
|
|
1741
762
|
);
|
|
1742
763
|
}
|
|
1743
|
-
),
|
|
1744
|
-
const { className:
|
|
1745
|
-
|
|
1746
|
-
const
|
|
1747
|
-
return
|
|
1748
|
-
|
|
764
|
+
), tt = g((e, n) => {
|
|
765
|
+
const { className: t, items: o, isDisabled: r, ...s } = e;
|
|
766
|
+
d(s);
|
|
767
|
+
const l = o.filter((a) => a.isSelected)[0];
|
|
768
|
+
return l ? /* @__PURE__ */ S(
|
|
769
|
+
b,
|
|
1749
770
|
{
|
|
1750
771
|
withinPortal: !1,
|
|
1751
772
|
transitionProps: {
|
|
1752
773
|
exitDuration: 0
|
|
1753
774
|
},
|
|
1754
|
-
disabled:
|
|
775
|
+
disabled: r,
|
|
1755
776
|
middlewares: { flip: !0, shift: !0, inline: !1, size: !0 },
|
|
1756
777
|
children: [
|
|
1757
|
-
/* @__PURE__ */
|
|
1758
|
-
|
|
778
|
+
/* @__PURE__ */ i(b.Target, { children: /* @__PURE__ */ i(
|
|
779
|
+
x,
|
|
1759
780
|
{
|
|
1760
|
-
onMouseDown: (
|
|
1761
|
-
|
|
781
|
+
onMouseDown: (a) => {
|
|
782
|
+
M() && a.currentTarget.focus();
|
|
1762
783
|
},
|
|
1763
|
-
leftSection:
|
|
1764
|
-
rightSection: /* @__PURE__ */
|
|
1765
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1766
|
-
lineNumber: 45,
|
|
1767
|
-
columnNumber: 25
|
|
1768
|
-
}, void 0),
|
|
784
|
+
leftSection: l.icon,
|
|
785
|
+
rightSection: /* @__PURE__ */ i(Ce, {}),
|
|
1769
786
|
size: "xs",
|
|
1770
787
|
variant: "subtle",
|
|
1771
|
-
disabled:
|
|
1772
|
-
children:
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1778
|
-
lineNumber: 36,
|
|
1779
|
-
columnNumber: 9
|
|
1780
|
-
},
|
|
1781
|
-
void 0
|
|
1782
|
-
) }, void 0, !1, {
|
|
1783
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1784
|
-
lineNumber: 35,
|
|
1785
|
-
columnNumber: 7
|
|
1786
|
-
}, void 0),
|
|
1787
|
-
/* @__PURE__ */ a.jsxDEV(w.Dropdown, { className: r, ref: t, children: o.map((u) => /* @__PURE__ */ a.jsxDEV(
|
|
1788
|
-
w.Item,
|
|
788
|
+
disabled: r,
|
|
789
|
+
children: l.text
|
|
790
|
+
}
|
|
791
|
+
) }),
|
|
792
|
+
/* @__PURE__ */ i(b.Dropdown, { className: t, ref: n, children: o.map((a) => /* @__PURE__ */ i(
|
|
793
|
+
b.Item,
|
|
1789
794
|
{
|
|
1790
|
-
onClick:
|
|
1791
|
-
leftSection:
|
|
1792
|
-
rightSection:
|
|
1793
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1794
|
-
lineNumber: 60,
|
|
1795
|
-
columnNumber: 17
|
|
1796
|
-
}, void 0) : (
|
|
795
|
+
onClick: a.onClick,
|
|
796
|
+
leftSection: a.icon,
|
|
797
|
+
rightSection: a.isSelected ? /* @__PURE__ */ i(_, { size: 10, className: "bn-tick-icon" }) : (
|
|
1797
798
|
// Ensures space for tick even if item isn't currently selected.
|
|
1798
|
-
/* @__PURE__ */
|
|
1799
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1800
|
-
lineNumber: 63,
|
|
1801
|
-
columnNumber: 17
|
|
1802
|
-
}, void 0)
|
|
799
|
+
/* @__PURE__ */ i("div", { className: "bn-tick-space" })
|
|
1803
800
|
),
|
|
1804
|
-
disabled:
|
|
1805
|
-
children:
|
|
801
|
+
disabled: a.isDisabled,
|
|
802
|
+
children: a.text
|
|
1806
803
|
},
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
{
|
|
1810
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1811
|
-
lineNumber: 54,
|
|
1812
|
-
columnNumber: 11
|
|
1813
|
-
},
|
|
1814
|
-
void 0
|
|
1815
|
-
)) }, void 0, !1, {
|
|
1816
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1817
|
-
lineNumber: 52,
|
|
1818
|
-
columnNumber: 7
|
|
1819
|
-
}, void 0)
|
|
804
|
+
a.text
|
|
805
|
+
)) })
|
|
1820
806
|
]
|
|
1821
|
-
}
|
|
1822
|
-
void 0,
|
|
1823
|
-
!0,
|
|
1824
|
-
{
|
|
1825
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/toolbar/ToolbarSelect.tsx",
|
|
1826
|
-
lineNumber: 28,
|
|
1827
|
-
columnNumber: 5
|
|
1828
|
-
},
|
|
1829
|
-
void 0
|
|
807
|
+
}
|
|
1830
808
|
) : null;
|
|
1831
|
-
}),
|
|
809
|
+
}), m = [
|
|
1832
810
|
"#FFFFFF",
|
|
1833
811
|
"#EFEFEF",
|
|
1834
812
|
"#CFCFCF",
|
|
@@ -1839,199 +817,175 @@ const tn = An(void 0), xr = h((n, t) => {
|
|
|
1839
817
|
"#161616",
|
|
1840
818
|
"#0F0F0F",
|
|
1841
819
|
"#000000"
|
|
1842
|
-
],
|
|
820
|
+
], j = {
|
|
1843
821
|
colors: {
|
|
1844
822
|
editor: {
|
|
1845
|
-
text:
|
|
1846
|
-
background:
|
|
823
|
+
text: m[5],
|
|
824
|
+
background: m[0]
|
|
1847
825
|
},
|
|
1848
826
|
menu: {
|
|
1849
|
-
text:
|
|
1850
|
-
background:
|
|
827
|
+
text: m[5],
|
|
828
|
+
background: m[0]
|
|
1851
829
|
},
|
|
1852
830
|
tooltip: {
|
|
1853
|
-
text:
|
|
1854
|
-
background:
|
|
831
|
+
text: m[5],
|
|
832
|
+
background: m[1]
|
|
1855
833
|
},
|
|
1856
834
|
hovered: {
|
|
1857
|
-
text:
|
|
1858
|
-
background:
|
|
835
|
+
text: m[5],
|
|
836
|
+
background: m[1]
|
|
1859
837
|
},
|
|
1860
838
|
selected: {
|
|
1861
|
-
text:
|
|
1862
|
-
background:
|
|
839
|
+
text: m[0],
|
|
840
|
+
background: m[5]
|
|
1863
841
|
},
|
|
1864
842
|
disabled: {
|
|
1865
|
-
text:
|
|
1866
|
-
background:
|
|
843
|
+
text: m[3],
|
|
844
|
+
background: m[1]
|
|
1867
845
|
},
|
|
1868
|
-
shadow:
|
|
1869
|
-
border:
|
|
1870
|
-
sideMenu:
|
|
1871
|
-
highlights:
|
|
846
|
+
shadow: m[2],
|
|
847
|
+
border: m[1],
|
|
848
|
+
sideMenu: m[2],
|
|
849
|
+
highlights: q
|
|
1872
850
|
},
|
|
1873
851
|
borderRadius: 6,
|
|
1874
852
|
fontFamily: '"Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Open Sans", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'
|
|
1875
|
-
},
|
|
853
|
+
}, ut = {
|
|
1876
854
|
colors: {
|
|
1877
855
|
editor: {
|
|
1878
|
-
text:
|
|
1879
|
-
background:
|
|
856
|
+
text: m[2],
|
|
857
|
+
background: m[6]
|
|
1880
858
|
},
|
|
1881
859
|
menu: {
|
|
1882
|
-
text:
|
|
1883
|
-
background:
|
|
860
|
+
text: m[2],
|
|
861
|
+
background: m[6]
|
|
1884
862
|
},
|
|
1885
863
|
tooltip: {
|
|
1886
|
-
text:
|
|
1887
|
-
background:
|
|
864
|
+
text: m[2],
|
|
865
|
+
background: m[7]
|
|
1888
866
|
},
|
|
1889
867
|
hovered: {
|
|
1890
|
-
text:
|
|
1891
|
-
background:
|
|
868
|
+
text: m[2],
|
|
869
|
+
background: m[7]
|
|
1892
870
|
},
|
|
1893
871
|
selected: {
|
|
1894
|
-
text:
|
|
1895
|
-
background:
|
|
872
|
+
text: m[2],
|
|
873
|
+
background: m[8]
|
|
1896
874
|
},
|
|
1897
875
|
disabled: {
|
|
1898
|
-
text:
|
|
1899
|
-
background:
|
|
876
|
+
text: m[5],
|
|
877
|
+
background: m[7]
|
|
1900
878
|
},
|
|
1901
|
-
shadow:
|
|
1902
|
-
border:
|
|
1903
|
-
sideMenu:
|
|
1904
|
-
highlights:
|
|
879
|
+
shadow: m[8],
|
|
880
|
+
border: m[7],
|
|
881
|
+
sideMenu: m[4],
|
|
882
|
+
highlights: Z
|
|
1905
883
|
},
|
|
1906
|
-
borderRadius:
|
|
1907
|
-
fontFamily:
|
|
1908
|
-
},
|
|
884
|
+
borderRadius: j.borderRadius,
|
|
885
|
+
fontFamily: j.fontFamily
|
|
886
|
+
}, nt = {
|
|
1909
887
|
FormattingToolbar: {
|
|
1910
|
-
Root:
|
|
1911
|
-
Button:
|
|
1912
|
-
Select:
|
|
888
|
+
Root: L,
|
|
889
|
+
Button: E,
|
|
890
|
+
Select: tt
|
|
1913
891
|
},
|
|
1914
892
|
FilePanel: {
|
|
1915
|
-
Root:
|
|
1916
|
-
Button:
|
|
1917
|
-
FileInput:
|
|
1918
|
-
TabPanel:
|
|
1919
|
-
TextInput:
|
|
893
|
+
Root: Ie,
|
|
894
|
+
Button: Le,
|
|
895
|
+
FileInput: Ee,
|
|
896
|
+
TabPanel: je,
|
|
897
|
+
TextInput: ze
|
|
1920
898
|
},
|
|
1921
899
|
GridSuggestionMenu: {
|
|
1922
|
-
Root:
|
|
1923
|
-
Item:
|
|
1924
|
-
EmptyItem:
|
|
1925
|
-
Loader:
|
|
900
|
+
Root: Ge,
|
|
901
|
+
Item: Ke,
|
|
902
|
+
EmptyItem: He,
|
|
903
|
+
Loader: Ue
|
|
1926
904
|
},
|
|
1927
905
|
LinkToolbar: {
|
|
1928
|
-
Root:
|
|
1929
|
-
Button:
|
|
906
|
+
Root: L,
|
|
907
|
+
Button: E
|
|
1930
908
|
},
|
|
1931
909
|
SideMenu: {
|
|
1932
|
-
Root:
|
|
1933
|
-
Button:
|
|
910
|
+
Root: Ve,
|
|
911
|
+
Button: Ae
|
|
1934
912
|
},
|
|
1935
913
|
SuggestionMenu: {
|
|
1936
|
-
Root:
|
|
1937
|
-
Item:
|
|
1938
|
-
EmptyItem:
|
|
1939
|
-
Label:
|
|
1940
|
-
Loader:
|
|
914
|
+
Root: We,
|
|
915
|
+
Item: Ze,
|
|
916
|
+
EmptyItem: qe,
|
|
917
|
+
Label: Je,
|
|
918
|
+
Loader: Qe
|
|
1941
919
|
},
|
|
1942
920
|
TableHandle: {
|
|
1943
|
-
Root:
|
|
1944
|
-
ExtendButton:
|
|
921
|
+
Root: Ye,
|
|
922
|
+
ExtendButton: Xe
|
|
1945
923
|
},
|
|
1946
924
|
Generic: {
|
|
1947
925
|
Form: {
|
|
1948
|
-
Root: (
|
|
1949
|
-
|
|
1950
|
-
lineNumber: 99,
|
|
1951
|
-
columnNumber: 24
|
|
1952
|
-
}, void 0),
|
|
1953
|
-
TextInput: dr
|
|
926
|
+
Root: (e) => /* @__PURE__ */ i("div", { children: e.children }),
|
|
927
|
+
TextInput: pe
|
|
1954
928
|
},
|
|
1955
929
|
Menu: {
|
|
1956
|
-
Root:
|
|
1957
|
-
Trigger:
|
|
1958
|
-
Dropdown:
|
|
1959
|
-
Divider:
|
|
1960
|
-
Label:
|
|
1961
|
-
Item:
|
|
930
|
+
Root: Te,
|
|
931
|
+
Trigger: Fe,
|
|
932
|
+
Dropdown: Oe,
|
|
933
|
+
Divider: De,
|
|
934
|
+
Label: Re,
|
|
935
|
+
Item: Me
|
|
1962
936
|
},
|
|
1963
937
|
Popover: {
|
|
1964
|
-
Root:
|
|
1965
|
-
Trigger:
|
|
1966
|
-
Content:
|
|
938
|
+
Root: Be,
|
|
939
|
+
Trigger: _e,
|
|
940
|
+
Content: $e
|
|
1967
941
|
}
|
|
1968
942
|
}
|
|
1969
|
-
},
|
|
943
|
+
}, ot = {
|
|
1970
944
|
// Removes button press effect
|
|
1971
945
|
activeClassName: ""
|
|
1972
|
-
},
|
|
1973
|
-
const { className:
|
|
1974
|
-
(
|
|
1975
|
-
if (
|
|
1976
|
-
if ("light" in
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
946
|
+
}, dt = (e) => {
|
|
947
|
+
const { className: n, theme: t, ...o } = e, r = Q(), s = X(), l = (r == null ? void 0 : r.colorSchemePreference) || s, a = F(
|
|
948
|
+
(c) => {
|
|
949
|
+
if (c && (be(c), typeof t == "object")) {
|
|
950
|
+
if ("light" in t && "dark" in t) {
|
|
951
|
+
D(
|
|
952
|
+
t[l === "dark" ? "dark" : "light"],
|
|
953
|
+
c
|
|
1980
954
|
);
|
|
1981
955
|
return;
|
|
1982
956
|
}
|
|
1983
|
-
|
|
957
|
+
D(t, c);
|
|
1984
958
|
return;
|
|
1985
959
|
}
|
|
1986
960
|
},
|
|
1987
|
-
[
|
|
961
|
+
[l, t]
|
|
1988
962
|
);
|
|
1989
|
-
return /* @__PURE__ */
|
|
1990
|
-
|
|
963
|
+
return /* @__PURE__ */ i(Y.Provider, { value: nt, children: /* @__PURE__ */ i(
|
|
964
|
+
le,
|
|
1991
965
|
{
|
|
1992
|
-
theme:
|
|
966
|
+
theme: ot,
|
|
1993
967
|
cssVariablesSelector: ".bn-mantine",
|
|
1994
968
|
getRootElement: () => {
|
|
1995
969
|
},
|
|
1996
|
-
children: /* @__PURE__ */
|
|
1997
|
-
|
|
970
|
+
children: /* @__PURE__ */ i(
|
|
971
|
+
ee,
|
|
1998
972
|
{
|
|
1999
|
-
className:
|
|
2000
|
-
theme: typeof
|
|
973
|
+
className: J("bn-mantine", n || ""),
|
|
974
|
+
theme: typeof t == "object" ? void 0 : t,
|
|
2001
975
|
...o,
|
|
2002
|
-
ref:
|
|
2003
|
-
}
|
|
2004
|
-
void 0,
|
|
2005
|
-
!1,
|
|
2006
|
-
{
|
|
2007
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/index.tsx",
|
|
2008
|
-
lineNumber: 182,
|
|
2009
|
-
columnNumber: 9
|
|
2010
|
-
},
|
|
2011
|
-
void 0
|
|
976
|
+
ref: a
|
|
977
|
+
}
|
|
2012
978
|
)
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
!1,
|
|
2016
|
-
{
|
|
2017
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/index.tsx",
|
|
2018
|
-
lineNumber: 175,
|
|
2019
|
-
columnNumber: 7
|
|
2020
|
-
},
|
|
2021
|
-
void 0
|
|
2022
|
-
) }, void 0, !1, {
|
|
2023
|
-
fileName: "/Users/nickthesick/Developer/BlockNote/packages/mantine/src/index.tsx",
|
|
2024
|
-
lineNumber: 172,
|
|
2025
|
-
columnNumber: 5
|
|
2026
|
-
}, void 0);
|
|
979
|
+
}
|
|
980
|
+
) });
|
|
2027
981
|
};
|
|
2028
982
|
export {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
983
|
+
dt as BlockNoteView,
|
|
984
|
+
D as applyBlockNoteCSSVariablesFromTheme,
|
|
985
|
+
nt as components,
|
|
986
|
+
ut as darkDefaultTheme,
|
|
987
|
+
m as defaultColorScheme,
|
|
988
|
+
j as lightDefaultTheme,
|
|
989
|
+
be as removeBlockNoteCSSVariables
|
|
2036
990
|
};
|
|
2037
991
|
//# sourceMappingURL=blocknote-mantine.js.map
|