@blocknote/shadcn 0.46.1 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocknote-shadcn.cjs +1 -1
- package/dist/blocknote-shadcn.cjs.map +1 -1
- package/dist/blocknote-shadcn.js +213 -213
- package/dist/blocknote-shadcn.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +7 -7
- package/src/form/TextInput.tsx +2 -0
- package/src/suggestionMenu/SuggestionMenuItem.tsx +3 -4
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +2 -4
- package/types/src/form/TextInput.d.ts +4 -2
package/dist/blocknote-shadcn.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsx as o, jsxs as v, Fragment as
|
|
2
|
-
import { assertEmpty as m, mergeCSSClasses as
|
|
3
|
-
import { elementOverflow as _, mergeRefs as R, useFocusWithin as
|
|
1
|
+
import { jsx as o, jsxs as v, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { assertEmpty as m, mergeCSSClasses as K } from "@blocknote/core";
|
|
3
|
+
import { elementOverflow as _, mergeRefs as R, useFocusWithin as Q, useDictionary as W, useBlockNoteContext as Z, FormattingToolbarController as J, getFormattingToolbarItems as X, FormattingToolbar as Y, ComponentsContext as ee, BlockNoteViewRaw as te } from "@blocknote/react";
|
|
4
4
|
import * as F from "react";
|
|
5
|
-
import { createContext as
|
|
6
|
-
import { FormProvider as
|
|
5
|
+
import { createContext as ne, useContext as oe, forwardRef as p, useMemo as L, useRef as E, useEffect as A, useState as ae } from "react";
|
|
6
|
+
import { FormProvider as re, useForm as se } from "react-hook-form";
|
|
7
7
|
import * as D from "@radix-ui/react-avatar";
|
|
8
|
-
import { clsx as
|
|
9
|
-
import { twMerge as
|
|
10
|
-
import { Slot as
|
|
8
|
+
import { clsx as ie } from "clsx";
|
|
9
|
+
import { twMerge as de } from "tailwind-merge";
|
|
10
|
+
import { Slot as V } from "@radix-ui/react-slot";
|
|
11
11
|
import { cva as I } from "class-variance-authority";
|
|
12
12
|
import * as w from "@radix-ui/react-dropdown-menu";
|
|
13
|
-
import { ChevronRightIcon as
|
|
14
|
-
import * as
|
|
13
|
+
import { ChevronRightIcon as le, CheckIcon as j, ChevronDownIcon as q, ChevronUpIcon as ce, ChevronRight as ue } from "lucide-react";
|
|
14
|
+
import * as me from "@radix-ui/react-label";
|
|
15
15
|
import * as B from "@radix-ui/react-popover";
|
|
16
16
|
import * as x from "@radix-ui/react-select";
|
|
17
17
|
import * as S from "@radix-ui/react-tabs";
|
|
18
|
-
import * as
|
|
18
|
+
import * as pe from "@radix-ui/react-toggle";
|
|
19
19
|
import * as N from "@radix-ui/react-tooltip";
|
|
20
20
|
function d(...e) {
|
|
21
|
-
return ie(
|
|
21
|
+
return de(ie(e));
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function ge({
|
|
24
24
|
className: e,
|
|
25
25
|
...t
|
|
26
26
|
}) {
|
|
@@ -36,7 +36,7 @@ function pe({
|
|
|
36
36
|
}
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ve({
|
|
40
40
|
className: e,
|
|
41
41
|
...t
|
|
42
42
|
}) {
|
|
@@ -49,7 +49,7 @@ function ge({
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function fe({
|
|
53
53
|
className: e,
|
|
54
54
|
...t
|
|
55
55
|
}) {
|
|
@@ -65,7 +65,7 @@ function ve({
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const be = I(
|
|
69
69
|
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
70
70
|
{
|
|
71
71
|
variants: {
|
|
@@ -81,22 +81,22 @@ const fe = I(
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
|
-
function
|
|
84
|
+
function he({
|
|
85
85
|
className: e,
|
|
86
86
|
variant: t,
|
|
87
87
|
asChild: n = !1,
|
|
88
88
|
...a
|
|
89
89
|
}) {
|
|
90
90
|
return /* @__PURE__ */ o(
|
|
91
|
-
n ?
|
|
91
|
+
n ? V : "span",
|
|
92
92
|
{
|
|
93
93
|
"data-slot": "badge",
|
|
94
|
-
className: d(
|
|
94
|
+
className: d(be({ variant: t }), e),
|
|
95
95
|
...a
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const xe = I(
|
|
100
100
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
101
101
|
{
|
|
102
102
|
variants: {
|
|
@@ -121,7 +121,7 @@ const he = I(
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
|
-
function
|
|
124
|
+
function we({
|
|
125
125
|
className: e,
|
|
126
126
|
variant: t,
|
|
127
127
|
size: n,
|
|
@@ -129,15 +129,15 @@ function xe({
|
|
|
129
129
|
...r
|
|
130
130
|
}) {
|
|
131
131
|
return /* @__PURE__ */ o(
|
|
132
|
-
a ?
|
|
132
|
+
a ? V : "button",
|
|
133
133
|
{
|
|
134
134
|
"data-slot": "button",
|
|
135
|
-
className: d(
|
|
135
|
+
className: d(xe({ variant: t, size: n, className: e })),
|
|
136
136
|
...r
|
|
137
137
|
}
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Ce({ className: e, ...t }) {
|
|
141
141
|
return /* @__PURE__ */ o(
|
|
142
142
|
"div",
|
|
143
143
|
{
|
|
@@ -150,7 +150,7 @@ function we({ className: e, ...t }) {
|
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ne({ className: e, ...t }) {
|
|
154
154
|
return /* @__PURE__ */ o(
|
|
155
155
|
"div",
|
|
156
156
|
{
|
|
@@ -160,12 +160,12 @@ function Ce({ className: e, ...t }) {
|
|
|
160
160
|
}
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Te({
|
|
164
164
|
...e
|
|
165
165
|
}) {
|
|
166
166
|
return /* @__PURE__ */ o(w.Root, { "data-slot": "dropdown-menu", ...e });
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Se({
|
|
169
169
|
...e
|
|
170
170
|
}) {
|
|
171
171
|
return /* @__PURE__ */ o(
|
|
@@ -176,7 +176,7 @@ function Te({
|
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function ye({
|
|
180
180
|
className: e,
|
|
181
181
|
sideOffset: t = 4,
|
|
182
182
|
...n
|
|
@@ -194,7 +194,7 @@ function Se({
|
|
|
194
194
|
}
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function ke({
|
|
198
198
|
className: e,
|
|
199
199
|
inset: t,
|
|
200
200
|
variant: n = "default",
|
|
@@ -214,7 +214,7 @@ function ye({
|
|
|
214
214
|
}
|
|
215
215
|
);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Me({
|
|
218
218
|
className: e,
|
|
219
219
|
children: t,
|
|
220
220
|
checked: n,
|
|
@@ -237,7 +237,7 @@ function ke({
|
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function ze({
|
|
241
241
|
className: e,
|
|
242
242
|
inset: t,
|
|
243
243
|
...n
|
|
@@ -255,7 +255,7 @@ function Me({
|
|
|
255
255
|
}
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function De({
|
|
259
259
|
className: e,
|
|
260
260
|
...t
|
|
261
261
|
}) {
|
|
@@ -268,12 +268,12 @@ function ze({
|
|
|
268
268
|
}
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ie({
|
|
272
272
|
...e
|
|
273
273
|
}) {
|
|
274
274
|
return /* @__PURE__ */ o(w.Sub, { "data-slot": "dropdown-menu-sub", ...e });
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Be({
|
|
277
277
|
className: e,
|
|
278
278
|
inset: t,
|
|
279
279
|
children: n,
|
|
@@ -291,12 +291,12 @@ function Ie({
|
|
|
291
291
|
...a,
|
|
292
292
|
children: [
|
|
293
293
|
n,
|
|
294
|
-
/* @__PURE__ */ o(
|
|
294
|
+
/* @__PURE__ */ o(le, { className: "ml-auto size-4" })
|
|
295
295
|
]
|
|
296
296
|
}
|
|
297
297
|
);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Pe({
|
|
300
300
|
className: e,
|
|
301
301
|
...t
|
|
302
302
|
}) {
|
|
@@ -312,12 +312,12 @@ function Be({
|
|
|
312
312
|
}
|
|
313
313
|
);
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function _e({
|
|
316
316
|
className: e,
|
|
317
317
|
...t
|
|
318
318
|
}) {
|
|
319
319
|
return /* @__PURE__ */ o(
|
|
320
|
-
|
|
320
|
+
me.Root,
|
|
321
321
|
{
|
|
322
322
|
"data-slot": "label",
|
|
323
323
|
className: d(
|
|
@@ -328,14 +328,14 @@ function Pe({
|
|
|
328
328
|
}
|
|
329
329
|
);
|
|
330
330
|
}
|
|
331
|
-
const
|
|
331
|
+
const Re = re;
|
|
332
332
|
F.createContext(
|
|
333
333
|
{}
|
|
334
334
|
);
|
|
335
335
|
F.createContext(
|
|
336
336
|
{}
|
|
337
337
|
);
|
|
338
|
-
function
|
|
338
|
+
function Fe({ className: e, type: t, ...n }) {
|
|
339
339
|
return /* @__PURE__ */ o(
|
|
340
340
|
"input",
|
|
341
341
|
{
|
|
@@ -351,17 +351,17 @@ function Re({ className: e, type: t, ...n }) {
|
|
|
351
351
|
}
|
|
352
352
|
);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Le({
|
|
355
355
|
...e
|
|
356
356
|
}) {
|
|
357
357
|
return /* @__PURE__ */ o(B.Root, { "data-slot": "popover", ...e });
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Ee({
|
|
360
360
|
...e
|
|
361
361
|
}) {
|
|
362
362
|
return /* @__PURE__ */ o(B.Trigger, { "data-slot": "popover-trigger", ...e });
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Ae({
|
|
365
365
|
className: e,
|
|
366
366
|
align: t = "center",
|
|
367
367
|
sideOffset: n = 4,
|
|
@@ -386,12 +386,12 @@ function Ve({
|
|
|
386
386
|
}) {
|
|
387
387
|
return /* @__PURE__ */ o(x.Root, { "data-slot": "select", ...e });
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function je({
|
|
390
390
|
...e
|
|
391
391
|
}) {
|
|
392
392
|
return /* @__PURE__ */ o(x.Value, { "data-slot": "select-value", ...e });
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function qe({
|
|
395
395
|
className: e,
|
|
396
396
|
size: t = "default",
|
|
397
397
|
children: n,
|
|
@@ -414,7 +414,7 @@ function je({
|
|
|
414
414
|
}
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function $e({
|
|
418
418
|
className: e,
|
|
419
419
|
children: t,
|
|
420
420
|
position: n = "popper",
|
|
@@ -432,7 +432,7 @@ function qe({
|
|
|
432
432
|
position: n,
|
|
433
433
|
...a,
|
|
434
434
|
children: [
|
|
435
|
-
/* @__PURE__ */ o(
|
|
435
|
+
/* @__PURE__ */ o(Oe, {}),
|
|
436
436
|
/* @__PURE__ */ o(
|
|
437
437
|
x.Viewport,
|
|
438
438
|
{
|
|
@@ -443,12 +443,12 @@ function qe({
|
|
|
443
443
|
children: t
|
|
444
444
|
}
|
|
445
445
|
),
|
|
446
|
-
/* @__PURE__ */ o(
|
|
446
|
+
/* @__PURE__ */ o(Ue, {})
|
|
447
447
|
]
|
|
448
448
|
}
|
|
449
449
|
);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Ge({
|
|
452
452
|
className: e,
|
|
453
453
|
children: t,
|
|
454
454
|
...n
|
|
@@ -469,7 +469,7 @@ function $e({
|
|
|
469
469
|
}
|
|
470
470
|
);
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function Oe({
|
|
473
473
|
className: e,
|
|
474
474
|
...t
|
|
475
475
|
}) {
|
|
@@ -482,11 +482,11 @@ function Ge({
|
|
|
482
482
|
e
|
|
483
483
|
),
|
|
484
484
|
...t,
|
|
485
|
-
children: /* @__PURE__ */ o(
|
|
485
|
+
children: /* @__PURE__ */ o(ce, { className: "size-4" })
|
|
486
486
|
}
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Ue({
|
|
490
490
|
className: e,
|
|
491
491
|
...t
|
|
492
492
|
}) {
|
|
@@ -503,7 +503,7 @@ function Oe({
|
|
|
503
503
|
}
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function He({ className: e, ...t }) {
|
|
507
507
|
return /* @__PURE__ */ o(
|
|
508
508
|
"div",
|
|
509
509
|
{
|
|
@@ -513,7 +513,7 @@ function Ue({ className: e, ...t }) {
|
|
|
513
513
|
}
|
|
514
514
|
);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Ke({
|
|
517
517
|
className: e,
|
|
518
518
|
...t
|
|
519
519
|
}) {
|
|
@@ -526,7 +526,7 @@ function He({
|
|
|
526
526
|
}
|
|
527
527
|
);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Qe({
|
|
530
530
|
className: e,
|
|
531
531
|
...t
|
|
532
532
|
}) {
|
|
@@ -542,7 +542,7 @@ function Ke({
|
|
|
542
542
|
}
|
|
543
543
|
);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function We({
|
|
546
546
|
className: e,
|
|
547
547
|
...t
|
|
548
548
|
}) {
|
|
@@ -558,7 +558,7 @@ function Qe({
|
|
|
558
558
|
}
|
|
559
559
|
);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ze({
|
|
562
562
|
className: e,
|
|
563
563
|
...t
|
|
564
564
|
}) {
|
|
@@ -571,7 +571,7 @@ function We({
|
|
|
571
571
|
}
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
|
-
const
|
|
574
|
+
const Je = I(
|
|
575
575
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
576
576
|
{
|
|
577
577
|
variants: {
|
|
@@ -591,17 +591,17 @@ const Ze = I(
|
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
);
|
|
594
|
-
function
|
|
594
|
+
function Xe({
|
|
595
595
|
className: e,
|
|
596
596
|
variant: t,
|
|
597
597
|
size: n,
|
|
598
598
|
...a
|
|
599
599
|
}) {
|
|
600
600
|
return /* @__PURE__ */ o(
|
|
601
|
-
|
|
601
|
+
pe.Root,
|
|
602
602
|
{
|
|
603
603
|
"data-slot": "toggle",
|
|
604
|
-
className: d(
|
|
604
|
+
className: d(Je({ variant: t, size: n, className: e })),
|
|
605
605
|
...a
|
|
606
606
|
}
|
|
607
607
|
);
|
|
@@ -619,17 +619,17 @@ function $({
|
|
|
619
619
|
}
|
|
620
620
|
);
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Ye({
|
|
623
623
|
...e
|
|
624
624
|
}) {
|
|
625
625
|
return /* @__PURE__ */ o($, { children: /* @__PURE__ */ o(N.Root, { "data-slot": "tooltip", ...e }) });
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function et({
|
|
628
628
|
...e
|
|
629
629
|
}) {
|
|
630
630
|
return /* @__PURE__ */ o(N.Trigger, { "data-slot": "tooltip-trigger", ...e });
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function tt({
|
|
633
633
|
className: e,
|
|
634
634
|
sideOffset: t = 0,
|
|
635
635
|
children: n,
|
|
@@ -652,83 +652,83 @@ function et({
|
|
|
652
652
|
}
|
|
653
653
|
);
|
|
654
654
|
}
|
|
655
|
-
const
|
|
655
|
+
const nt = {
|
|
656
656
|
Avatar: {
|
|
657
|
-
Avatar:
|
|
658
|
-
AvatarFallback:
|
|
659
|
-
AvatarImage:
|
|
657
|
+
Avatar: ge,
|
|
658
|
+
AvatarFallback: fe,
|
|
659
|
+
AvatarImage: ve
|
|
660
660
|
},
|
|
661
661
|
Badge: {
|
|
662
|
-
Badge:
|
|
662
|
+
Badge: he
|
|
663
663
|
},
|
|
664
664
|
Button: {
|
|
665
|
-
Button:
|
|
665
|
+
Button: we
|
|
666
666
|
},
|
|
667
667
|
Card: {
|
|
668
|
-
Card:
|
|
669
|
-
CardContent:
|
|
668
|
+
Card: Ce,
|
|
669
|
+
CardContent: Ne
|
|
670
670
|
},
|
|
671
671
|
DropdownMenu: {
|
|
672
|
-
DropdownMenu:
|
|
673
|
-
DropdownMenuCheckboxItem:
|
|
674
|
-
DropdownMenuContent:
|
|
675
|
-
DropdownMenuItem:
|
|
676
|
-
DropdownMenuLabel:
|
|
677
|
-
DropdownMenuSeparator:
|
|
678
|
-
DropdownMenuSub:
|
|
679
|
-
DropdownMenuSubContent:
|
|
680
|
-
DropdownMenuSubTrigger:
|
|
681
|
-
DropdownMenuTrigger:
|
|
672
|
+
DropdownMenu: Te,
|
|
673
|
+
DropdownMenuCheckboxItem: Me,
|
|
674
|
+
DropdownMenuContent: ye,
|
|
675
|
+
DropdownMenuItem: ke,
|
|
676
|
+
DropdownMenuLabel: ze,
|
|
677
|
+
DropdownMenuSeparator: De,
|
|
678
|
+
DropdownMenuSub: Ie,
|
|
679
|
+
DropdownMenuSubContent: Pe,
|
|
680
|
+
DropdownMenuSubTrigger: Be,
|
|
681
|
+
DropdownMenuTrigger: Se
|
|
682
682
|
},
|
|
683
683
|
Form: {
|
|
684
|
-
Form:
|
|
684
|
+
Form: Re
|
|
685
685
|
},
|
|
686
686
|
Input: {
|
|
687
|
-
Input:
|
|
687
|
+
Input: Fe
|
|
688
688
|
},
|
|
689
689
|
Label: {
|
|
690
|
-
Label:
|
|
690
|
+
Label: _e
|
|
691
691
|
},
|
|
692
692
|
Popover: {
|
|
693
|
-
Popover:
|
|
694
|
-
PopoverContent:
|
|
695
|
-
PopoverTrigger:
|
|
693
|
+
Popover: Le,
|
|
694
|
+
PopoverContent: Ae,
|
|
695
|
+
PopoverTrigger: Ee
|
|
696
696
|
},
|
|
697
697
|
Select: {
|
|
698
698
|
Select: Ve,
|
|
699
|
-
SelectContent:
|
|
700
|
-
SelectItem:
|
|
701
|
-
SelectTrigger:
|
|
702
|
-
SelectValue:
|
|
699
|
+
SelectContent: $e,
|
|
700
|
+
SelectItem: Ge,
|
|
701
|
+
SelectTrigger: qe,
|
|
702
|
+
SelectValue: je
|
|
703
703
|
},
|
|
704
704
|
Skeleton: {
|
|
705
|
-
Skeleton:
|
|
705
|
+
Skeleton: He
|
|
706
706
|
},
|
|
707
707
|
Tabs: {
|
|
708
|
-
Tabs:
|
|
709
|
-
TabsContent:
|
|
710
|
-
TabsList:
|
|
711
|
-
TabsTrigger:
|
|
708
|
+
Tabs: Ke,
|
|
709
|
+
TabsContent: Ze,
|
|
710
|
+
TabsList: Qe,
|
|
711
|
+
TabsTrigger: We
|
|
712
712
|
},
|
|
713
713
|
Toggle: {
|
|
714
|
-
Toggle:
|
|
714
|
+
Toggle: Xe
|
|
715
715
|
},
|
|
716
716
|
Tooltip: {
|
|
717
|
-
Tooltip:
|
|
718
|
-
TooltipContent:
|
|
717
|
+
Tooltip: Ye,
|
|
718
|
+
TooltipContent: tt,
|
|
719
719
|
TooltipProvider: $,
|
|
720
|
-
TooltipTrigger:
|
|
720
|
+
TooltipTrigger: et
|
|
721
721
|
}
|
|
722
|
-
}, G =
|
|
722
|
+
}, G = ne(void 0);
|
|
723
723
|
function f() {
|
|
724
|
-
return
|
|
724
|
+
return oe(G);
|
|
725
725
|
}
|
|
726
|
-
const
|
|
726
|
+
const ot = (e) => {
|
|
727
727
|
const { children: t, ...n } = e;
|
|
728
728
|
m(n);
|
|
729
|
-
const a = f(), r =
|
|
729
|
+
const a = f(), r = se();
|
|
730
730
|
return /* @__PURE__ */ o(a.Form.Form, { ...r, children: t });
|
|
731
|
-
},
|
|
731
|
+
}, at = p((e, t) => {
|
|
732
732
|
const {
|
|
733
733
|
className: n,
|
|
734
734
|
name: a,
|
|
@@ -744,11 +744,12 @@ const nt = (e) => {
|
|
|
744
744
|
onChange: h,
|
|
745
745
|
onSubmit: C,
|
|
746
746
|
autoComplete: T,
|
|
747
|
-
|
|
747
|
+
"aria-activedescendant": y,
|
|
748
|
+
rightSection: O,
|
|
748
749
|
// TODO: add rightSection
|
|
749
|
-
...
|
|
750
|
+
...U
|
|
750
751
|
} = e;
|
|
751
|
-
m(
|
|
752
|
+
m(U);
|
|
752
753
|
const P = f();
|
|
753
754
|
return /* @__PURE__ */ v(
|
|
754
755
|
"div",
|
|
@@ -775,15 +776,16 @@ const nt = (e) => {
|
|
|
775
776
|
onKeyDown: b,
|
|
776
777
|
onChange: h,
|
|
777
778
|
onSubmit: C,
|
|
778
|
-
ref: t
|
|
779
|
+
ref: t,
|
|
780
|
+
"aria-activedescendant": y
|
|
779
781
|
}
|
|
780
782
|
)
|
|
781
783
|
] }),
|
|
782
|
-
|
|
784
|
+
O
|
|
783
785
|
]
|
|
784
786
|
}
|
|
785
787
|
);
|
|
786
|
-
}),
|
|
788
|
+
}), rt = (e) => p(
|
|
787
789
|
(t, n) => /* @__PURE__ */ o(
|
|
788
790
|
e,
|
|
789
791
|
{
|
|
@@ -798,7 +800,7 @@ const nt = (e) => {
|
|
|
798
800
|
ref: n
|
|
799
801
|
}
|
|
800
802
|
)
|
|
801
|
-
),
|
|
803
|
+
), st = (e) => {
|
|
802
804
|
const {
|
|
803
805
|
children: t,
|
|
804
806
|
onOpenChange: n,
|
|
@@ -823,17 +825,17 @@ const nt = (e) => {
|
|
|
823
825
|
children: t
|
|
824
826
|
}
|
|
825
827
|
);
|
|
826
|
-
},
|
|
828
|
+
}, it = (e) => {
|
|
827
829
|
const { children: t, sub: n, ...a } = e;
|
|
828
830
|
m(a);
|
|
829
831
|
const r = f(), s = L(
|
|
830
|
-
() =>
|
|
832
|
+
() => rt(
|
|
831
833
|
r.DropdownMenu.DropdownMenuTrigger
|
|
832
834
|
),
|
|
833
835
|
[r.DropdownMenu.DropdownMenuTrigger]
|
|
834
836
|
);
|
|
835
837
|
return n ? /* @__PURE__ */ o(r.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ o(s, { asChild: !0, ...a, children: t });
|
|
836
|
-
},
|
|
838
|
+
}, dt = p((e, t) => {
|
|
837
839
|
const { className: n, children: a, sub: r, ...s } = e;
|
|
838
840
|
m(s);
|
|
839
841
|
const i = f();
|
|
@@ -852,11 +854,11 @@ const nt = (e) => {
|
|
|
852
854
|
children: a
|
|
853
855
|
}
|
|
854
856
|
);
|
|
855
|
-
}),
|
|
857
|
+
}), lt = p((e, t) => {
|
|
856
858
|
const { className: n, children: a, icon: r, checked: s, subTrigger: i, onClick: c, ...u } = e;
|
|
857
859
|
m(u);
|
|
858
860
|
const l = f();
|
|
859
|
-
return i ? /* @__PURE__ */ v(
|
|
861
|
+
return i ? /* @__PURE__ */ v(H, { children: [
|
|
860
862
|
r,
|
|
861
863
|
a
|
|
862
864
|
] }) : s !== void 0 ? /* @__PURE__ */ v(
|
|
@@ -882,11 +884,11 @@ const nt = (e) => {
|
|
|
882
884
|
children: [
|
|
883
885
|
r,
|
|
884
886
|
a,
|
|
885
|
-
i && /* @__PURE__ */ o(
|
|
887
|
+
i && /* @__PURE__ */ o(ue, { className: "ml-auto h-4 w-4" })
|
|
886
888
|
]
|
|
887
889
|
}
|
|
888
890
|
);
|
|
889
|
-
}),
|
|
891
|
+
}), ct = p((e, t) => {
|
|
890
892
|
const { className: n, ...a } = e;
|
|
891
893
|
m(a);
|
|
892
894
|
const r = f();
|
|
@@ -897,7 +899,7 @@ const nt = (e) => {
|
|
|
897
899
|
ref: t
|
|
898
900
|
}
|
|
899
901
|
);
|
|
900
|
-
}),
|
|
902
|
+
}), ut = p((e, t) => {
|
|
901
903
|
const { className: n, children: a, ...r } = e;
|
|
902
904
|
m(r);
|
|
903
905
|
const s = f();
|
|
@@ -909,7 +911,7 @@ const nt = (e) => {
|
|
|
909
911
|
children: a
|
|
910
912
|
}
|
|
911
913
|
);
|
|
912
|
-
}),
|
|
914
|
+
}), mt = p((e, t) => {
|
|
913
915
|
const {
|
|
914
916
|
className: n,
|
|
915
917
|
children: a,
|
|
@@ -941,7 +943,7 @@ const nt = (e) => {
|
|
|
941
943
|
]
|
|
942
944
|
}
|
|
943
945
|
);
|
|
944
|
-
}),
|
|
946
|
+
}), pt = p((e, t) => {
|
|
945
947
|
const {
|
|
946
948
|
className: n,
|
|
947
949
|
tabs: a,
|
|
@@ -968,7 +970,7 @@ const nt = (e) => {
|
|
|
968
970
|
]
|
|
969
971
|
}
|
|
970
972
|
);
|
|
971
|
-
}),
|
|
973
|
+
}), gt = p((e, t) => {
|
|
972
974
|
const { className: n, children: a, ...r } = e;
|
|
973
975
|
return m(r), /* @__PURE__ */ o(
|
|
974
976
|
"div",
|
|
@@ -981,7 +983,7 @@ const nt = (e) => {
|
|
|
981
983
|
children: a
|
|
982
984
|
}
|
|
983
985
|
);
|
|
984
|
-
}),
|
|
986
|
+
}), vt = p((e, t) => {
|
|
985
987
|
const { className: n, value: a, placeholder: r, onKeyDown: s, onChange: i, ...c } = e;
|
|
986
988
|
m(c);
|
|
987
989
|
const u = f();
|
|
@@ -997,7 +999,7 @@ const nt = (e) => {
|
|
|
997
999
|
onChange: i
|
|
998
1000
|
}
|
|
999
1001
|
);
|
|
1000
|
-
}),
|
|
1002
|
+
}), ft = (e) => {
|
|
1001
1003
|
const {
|
|
1002
1004
|
children: t,
|
|
1003
1005
|
open: n,
|
|
@@ -1009,14 +1011,14 @@ const nt = (e) => {
|
|
|
1009
1011
|
m(s);
|
|
1010
1012
|
const i = f();
|
|
1011
1013
|
return /* @__PURE__ */ o(i.Popover.Popover, { open: n, onOpenChange: a, children: t });
|
|
1012
|
-
},
|
|
1014
|
+
}, bt = p(
|
|
1013
1015
|
(e, t) => {
|
|
1014
1016
|
const { children: n, ...a } = e;
|
|
1015
1017
|
m(a);
|
|
1016
1018
|
const r = f();
|
|
1017
1019
|
return /* @__PURE__ */ o(r.Popover.PopoverTrigger, { ref: t, asChild: !0, children: n });
|
|
1018
1020
|
}
|
|
1019
|
-
),
|
|
1021
|
+
), ht = p((e, t) => {
|
|
1020
1022
|
const { className: n, variant: a, children: r, ...s } = e;
|
|
1021
1023
|
m(s);
|
|
1022
1024
|
const i = f();
|
|
@@ -1033,10 +1035,10 @@ const nt = (e) => {
|
|
|
1033
1035
|
children: r
|
|
1034
1036
|
}
|
|
1035
1037
|
);
|
|
1036
|
-
}),
|
|
1038
|
+
}), xt = p((e, t) => {
|
|
1037
1039
|
const { className: n, children: a, ...r } = e;
|
|
1038
1040
|
return m(r, !1), /* @__PURE__ */ o("div", { className: n, ref: t, ...r, children: a });
|
|
1039
|
-
}),
|
|
1041
|
+
}), wt = p((e, t) => {
|
|
1040
1042
|
const {
|
|
1041
1043
|
className: n,
|
|
1042
1044
|
children: a,
|
|
@@ -1068,7 +1070,7 @@ const nt = (e) => {
|
|
|
1068
1070
|
]
|
|
1069
1071
|
}
|
|
1070
1072
|
);
|
|
1071
|
-
}),
|
|
1073
|
+
}), Ct = p((e, t) => {
|
|
1072
1074
|
const { className: n, children: a, id: r, columns: s, ...i } = e;
|
|
1073
1075
|
return m(i), /* @__PURE__ */ o(
|
|
1074
1076
|
"div",
|
|
@@ -1085,7 +1087,7 @@ const nt = (e) => {
|
|
|
1085
1087
|
children: a
|
|
1086
1088
|
}
|
|
1087
1089
|
);
|
|
1088
|
-
}),
|
|
1090
|
+
}), Nt = p((e, t) => {
|
|
1089
1091
|
const { className: n, children: a, columns: r, ...s } = e;
|
|
1090
1092
|
return m(s), /* @__PURE__ */ o(
|
|
1091
1093
|
"div",
|
|
@@ -1096,7 +1098,7 @@ const nt = (e) => {
|
|
|
1096
1098
|
children: a
|
|
1097
1099
|
}
|
|
1098
1100
|
);
|
|
1099
|
-
}),
|
|
1101
|
+
}), Tt = p((e, t) => {
|
|
1100
1102
|
const { className: n, children: a, id: r, ...s } = e;
|
|
1101
1103
|
return m(s), /* @__PURE__ */ o(
|
|
1102
1104
|
"div",
|
|
@@ -1111,7 +1113,7 @@ const nt = (e) => {
|
|
|
1111
1113
|
children: a
|
|
1112
1114
|
}
|
|
1113
1115
|
);
|
|
1114
|
-
}),
|
|
1116
|
+
}), St = p((e, t) => {
|
|
1115
1117
|
const { className: n, children: a, ...r } = e;
|
|
1116
1118
|
return m(r), /* @__PURE__ */ o(
|
|
1117
1119
|
"div",
|
|
@@ -1126,18 +1128,17 @@ const nt = (e) => {
|
|
|
1126
1128
|
children: /* @__PURE__ */ o("div", { children: a })
|
|
1127
1129
|
}
|
|
1128
1130
|
);
|
|
1129
|
-
}),
|
|
1131
|
+
}), yt = p((e, t) => {
|
|
1130
1132
|
const n = f(), { className: a, item: r, isSelected: s, onClick: i, id: c, ...u } = e;
|
|
1131
1133
|
m(u);
|
|
1132
1134
|
const l = E(null);
|
|
1133
|
-
return
|
|
1135
|
+
return A(() => {
|
|
1134
1136
|
if (!l.current || !s)
|
|
1135
1137
|
return;
|
|
1136
|
-
|
|
1138
|
+
_(
|
|
1137
1139
|
l.current,
|
|
1138
1140
|
l.current.closest(".bn-suggestion-menu, #ai-suggestion-menu")
|
|
1139
|
-
);
|
|
1140
|
-
g === "top" ? l.current.scrollIntoView(!0) : g === "bottom" && l.current.scrollIntoView(!1);
|
|
1141
|
+
) !== "none" && l.current.scrollIntoView({ block: "nearest" });
|
|
1141
1142
|
}, [s]), /* @__PURE__ */ v(
|
|
1142
1143
|
"div",
|
|
1143
1144
|
{
|
|
@@ -1196,7 +1197,7 @@ const nt = (e) => {
|
|
|
1196
1197
|
]
|
|
1197
1198
|
}
|
|
1198
1199
|
);
|
|
1199
|
-
}),
|
|
1200
|
+
}), kt = p((e, t) => {
|
|
1200
1201
|
const { className: n, children: a, ...r } = e;
|
|
1201
1202
|
return m(r), /* @__PURE__ */ o(
|
|
1202
1203
|
"div",
|
|
@@ -1209,7 +1210,7 @@ const nt = (e) => {
|
|
|
1209
1210
|
children: a
|
|
1210
1211
|
}
|
|
1211
1212
|
);
|
|
1212
|
-
}),
|
|
1213
|
+
}), Mt = p((e, t) => {
|
|
1213
1214
|
const { className: n, ...a } = e;
|
|
1214
1215
|
return m(a), /* @__PURE__ */ o("div", { className: d(n, "animate-spin"), ref: t, children: /* @__PURE__ */ o(
|
|
1215
1216
|
"svg",
|
|
@@ -1222,7 +1223,7 @@ const nt = (e) => {
|
|
|
1222
1223
|
children: /* @__PURE__ */ o("path", { d: "M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z" })
|
|
1223
1224
|
}
|
|
1224
1225
|
) });
|
|
1225
|
-
}),
|
|
1226
|
+
}), zt = p((e, t) => {
|
|
1226
1227
|
const { className: n, children: a, onMouseDown: r, onClick: s, ...i } = e;
|
|
1227
1228
|
m(i, !1);
|
|
1228
1229
|
const c = f();
|
|
@@ -1243,7 +1244,7 @@ const nt = (e) => {
|
|
|
1243
1244
|
children: a
|
|
1244
1245
|
}
|
|
1245
1246
|
);
|
|
1246
|
-
}),
|
|
1247
|
+
}), Dt = p((e, t) => {
|
|
1247
1248
|
const {
|
|
1248
1249
|
className: n,
|
|
1249
1250
|
children: a,
|
|
@@ -1400,7 +1401,7 @@ const nt = (e) => {
|
|
|
1400
1401
|
]
|
|
1401
1402
|
}
|
|
1402
1403
|
) : null;
|
|
1403
|
-
}),
|
|
1404
|
+
}), It = p((e, t) => {
|
|
1404
1405
|
const {
|
|
1405
1406
|
className: n,
|
|
1406
1407
|
children: a,
|
|
@@ -1431,7 +1432,7 @@ const nt = (e) => {
|
|
|
1431
1432
|
]
|
|
1432
1433
|
}
|
|
1433
1434
|
);
|
|
1434
|
-
}),
|
|
1435
|
+
}), Bt = p((e, t) => {
|
|
1435
1436
|
const { className: n, children: a, ...r } = e;
|
|
1436
1437
|
return m(r), /* @__PURE__ */ o(
|
|
1437
1438
|
"div",
|
|
@@ -1445,7 +1446,7 @@ const nt = (e) => {
|
|
|
1445
1446
|
children: a
|
|
1446
1447
|
}
|
|
1447
1448
|
);
|
|
1448
|
-
}),
|
|
1449
|
+
}), Pt = p((e, t) => {
|
|
1449
1450
|
const { className: n, children: a, ...r } = e;
|
|
1450
1451
|
m(r, !1);
|
|
1451
1452
|
const s = f();
|
|
@@ -1460,8 +1461,8 @@ const nt = (e) => {
|
|
|
1460
1461
|
children: a
|
|
1461
1462
|
}
|
|
1462
1463
|
);
|
|
1463
|
-
}),
|
|
1464
|
-
const { authorInfo: n, timeString: a, edited: r, ...s } = e, i =
|
|
1464
|
+
}), _t = p((e, t) => {
|
|
1465
|
+
const { authorInfo: n, timeString: a, edited: r, ...s } = e, i = W();
|
|
1465
1466
|
m(s, !1);
|
|
1466
1467
|
const c = f();
|
|
1467
1468
|
return n === "loading" ? /* @__PURE__ */ v("div", { className: "flex flex-row flex-nowrap items-center gap-4", children: [
|
|
@@ -1498,7 +1499,7 @@ const nt = (e) => {
|
|
|
1498
1499
|
] })
|
|
1499
1500
|
] })
|
|
1500
1501
|
] });
|
|
1501
|
-
}),
|
|
1502
|
+
}), Rt = p((e, t) => {
|
|
1502
1503
|
const {
|
|
1503
1504
|
className: n,
|
|
1504
1505
|
showActions: a,
|
|
@@ -1512,7 +1513,7 @@ const nt = (e) => {
|
|
|
1512
1513
|
...g
|
|
1513
1514
|
} = e;
|
|
1514
1515
|
m(g);
|
|
1515
|
-
const [b, h] =
|
|
1516
|
+
const [b, h] = ae(!1), { focused: C, ref: T } = Q(), y = i && (a === !0 || a === void 0 || a === "hover" && b || C);
|
|
1516
1517
|
return /* @__PURE__ */ v(
|
|
1517
1518
|
"div",
|
|
1518
1519
|
{
|
|
@@ -1522,17 +1523,17 @@ const nt = (e) => {
|
|
|
1522
1523
|
onMouseLeave: () => h(!1),
|
|
1523
1524
|
children: [
|
|
1524
1525
|
y ? /* @__PURE__ */ o("div", { className: "absolute right-0 top-0 z-10", ref: T, children: i }) : null,
|
|
1525
|
-
/* @__PURE__ */ o(
|
|
1526
|
+
/* @__PURE__ */ o(_t, { ...e }),
|
|
1526
1527
|
l
|
|
1527
1528
|
]
|
|
1528
1529
|
}
|
|
1529
1530
|
);
|
|
1530
|
-
}),
|
|
1531
|
+
}), Ft = p((e, t) => {
|
|
1531
1532
|
const { className: n, onFocus: a, onBlur: r, autoFocus: s, editor: i, editable: c, ...u } = e;
|
|
1532
1533
|
m(u);
|
|
1533
|
-
const l =
|
|
1534
|
+
const l = Z();
|
|
1534
1535
|
return /* @__PURE__ */ o(
|
|
1535
|
-
|
|
1536
|
+
Ot,
|
|
1536
1537
|
{
|
|
1537
1538
|
autoFocus: s,
|
|
1538
1539
|
className: d(n, ""),
|
|
@@ -1548,19 +1549,19 @@ const nt = (e) => {
|
|
|
1548
1549
|
onFocus: a,
|
|
1549
1550
|
onBlur: r,
|
|
1550
1551
|
children: /* @__PURE__ */ o(
|
|
1551
|
-
|
|
1552
|
+
J,
|
|
1552
1553
|
{
|
|
1553
|
-
formattingToolbar:
|
|
1554
|
+
formattingToolbar: Lt
|
|
1554
1555
|
}
|
|
1555
1556
|
)
|
|
1556
1557
|
}
|
|
1557
1558
|
);
|
|
1558
|
-
}),
|
|
1559
|
-
const e =
|
|
1559
|
+
}), Lt = () => {
|
|
1560
|
+
const e = X([]).filter(
|
|
1560
1561
|
(t) => t.key !== "nestBlockButton" && t.key !== "unnestBlockButton"
|
|
1561
1562
|
);
|
|
1562
|
-
return /* @__PURE__ */ o(
|
|
1563
|
-
},
|
|
1563
|
+
return /* @__PURE__ */ o(Y, { blockTypeSelectItems: [], children: e });
|
|
1564
|
+
}, Et = p((e, t) => {
|
|
1564
1565
|
const {
|
|
1565
1566
|
className: n,
|
|
1566
1567
|
text: a,
|
|
@@ -1603,7 +1604,7 @@ const nt = (e) => {
|
|
|
1603
1604
|
}
|
|
1604
1605
|
)
|
|
1605
1606
|
] }) : h;
|
|
1606
|
-
}),
|
|
1607
|
+
}), At = p((e, t) => {
|
|
1607
1608
|
const { className: n, children: a, ...r } = e;
|
|
1608
1609
|
m(r);
|
|
1609
1610
|
const s = f();
|
|
@@ -1630,7 +1631,7 @@ const nt = (e) => {
|
|
|
1630
1631
|
children: a
|
|
1631
1632
|
}
|
|
1632
1633
|
);
|
|
1633
|
-
}),
|
|
1634
|
+
}), jt = p((e, t) => {
|
|
1634
1635
|
const { className: n, accept: a, value: r, placeholder: s, onChange: i, ...c } = e;
|
|
1635
1636
|
m(c);
|
|
1636
1637
|
const u = f();
|
|
@@ -1646,18 +1647,17 @@ const nt = (e) => {
|
|
|
1646
1647
|
placeholder: s
|
|
1647
1648
|
}
|
|
1648
1649
|
);
|
|
1649
|
-
}),
|
|
1650
|
+
}), qt = p((e, t) => {
|
|
1650
1651
|
const { className: n, isSelected: a, onClick: r, item: s, id: i, ...c } = e;
|
|
1651
1652
|
m(c);
|
|
1652
1653
|
const u = E(null);
|
|
1653
|
-
return
|
|
1654
|
+
return A(() => {
|
|
1654
1655
|
if (!u.current || !a)
|
|
1655
1656
|
return;
|
|
1656
|
-
|
|
1657
|
+
_(
|
|
1657
1658
|
u.current,
|
|
1658
1659
|
u.current.closest(".bn-grid-suggestion-menu")
|
|
1659
|
-
);
|
|
1660
|
-
l === "top" ? u.current.scrollIntoView(!0) : l === "bottom" && u.current.scrollIntoView(!1);
|
|
1660
|
+
) !== "none" && u.current.scrollIntoView({ block: "nearest" });
|
|
1661
1661
|
}, [a]), /* @__PURE__ */ o(
|
|
1662
1662
|
"div",
|
|
1663
1663
|
{
|
|
@@ -1676,7 +1676,7 @@ const nt = (e) => {
|
|
|
1676
1676
|
children: s.icon
|
|
1677
1677
|
}
|
|
1678
1678
|
);
|
|
1679
|
-
}),
|
|
1679
|
+
}), $t = p((e, t) => {
|
|
1680
1680
|
const {
|
|
1681
1681
|
className: n,
|
|
1682
1682
|
children: a,
|
|
@@ -1693,18 +1693,18 @@ const nt = (e) => {
|
|
|
1693
1693
|
children: a
|
|
1694
1694
|
}
|
|
1695
1695
|
);
|
|
1696
|
-
}),
|
|
1696
|
+
}), Gt = {
|
|
1697
1697
|
FormattingToolbar: {
|
|
1698
1698
|
Root: k,
|
|
1699
1699
|
Button: M,
|
|
1700
1700
|
Select: z
|
|
1701
1701
|
},
|
|
1702
1702
|
FilePanel: {
|
|
1703
|
-
Root:
|
|
1703
|
+
Root: pt,
|
|
1704
1704
|
Button: Vt,
|
|
1705
|
-
FileInput:
|
|
1706
|
-
TabPanel:
|
|
1707
|
-
TextInput:
|
|
1705
|
+
FileInput: jt,
|
|
1706
|
+
TabPanel: gt,
|
|
1707
|
+
TextInput: vt
|
|
1708
1708
|
},
|
|
1709
1709
|
LinkToolbar: {
|
|
1710
1710
|
Root: k,
|
|
@@ -1712,37 +1712,37 @@ const nt = (e) => {
|
|
|
1712
1712
|
Select: z
|
|
1713
1713
|
},
|
|
1714
1714
|
SideMenu: {
|
|
1715
|
-
Root:
|
|
1716
|
-
Button:
|
|
1715
|
+
Root: xt,
|
|
1716
|
+
Button: wt
|
|
1717
1717
|
},
|
|
1718
1718
|
SuggestionMenu: {
|
|
1719
|
-
Root:
|
|
1720
|
-
Item:
|
|
1721
|
-
EmptyItem:
|
|
1722
|
-
Label:
|
|
1723
|
-
Loader:
|
|
1719
|
+
Root: Tt,
|
|
1720
|
+
Item: yt,
|
|
1721
|
+
EmptyItem: St,
|
|
1722
|
+
Label: kt,
|
|
1723
|
+
Loader: Mt
|
|
1724
1724
|
},
|
|
1725
1725
|
GridSuggestionMenu: {
|
|
1726
|
-
Root:
|
|
1727
|
-
Item:
|
|
1728
|
-
EmptyItem:
|
|
1729
|
-
Loader:
|
|
1726
|
+
Root: Ct,
|
|
1727
|
+
Item: qt,
|
|
1728
|
+
EmptyItem: Nt,
|
|
1729
|
+
Loader: $t
|
|
1730
1730
|
},
|
|
1731
1731
|
TableHandle: {
|
|
1732
|
-
Root:
|
|
1733
|
-
ExtendButton:
|
|
1732
|
+
Root: Dt,
|
|
1733
|
+
ExtendButton: zt
|
|
1734
1734
|
},
|
|
1735
1735
|
Comments: {
|
|
1736
|
-
Comment:
|
|
1737
|
-
Editor:
|
|
1738
|
-
Card:
|
|
1739
|
-
CardSection:
|
|
1740
|
-
ExpandSectionsPrompt:
|
|
1736
|
+
Comment: Rt,
|
|
1737
|
+
Editor: Ft,
|
|
1738
|
+
Card: It,
|
|
1739
|
+
CardSection: Bt,
|
|
1740
|
+
ExpandSectionsPrompt: Pt
|
|
1741
1741
|
},
|
|
1742
1742
|
Generic: {
|
|
1743
1743
|
Badge: {
|
|
1744
|
-
Root:
|
|
1745
|
-
Group:
|
|
1744
|
+
Root: Et,
|
|
1745
|
+
Group: At
|
|
1746
1746
|
},
|
|
1747
1747
|
Toolbar: {
|
|
1748
1748
|
Root: k,
|
|
@@ -1750,42 +1750,42 @@ const nt = (e) => {
|
|
|
1750
1750
|
Select: z
|
|
1751
1751
|
},
|
|
1752
1752
|
Form: {
|
|
1753
|
-
Root:
|
|
1754
|
-
TextInput:
|
|
1753
|
+
Root: ot,
|
|
1754
|
+
TextInput: at
|
|
1755
1755
|
},
|
|
1756
1756
|
Menu: {
|
|
1757
|
-
Root:
|
|
1758
|
-
Trigger:
|
|
1759
|
-
Dropdown:
|
|
1760
|
-
Divider:
|
|
1761
|
-
Label:
|
|
1762
|
-
Item:
|
|
1763
|
-
Button:
|
|
1757
|
+
Root: st,
|
|
1758
|
+
Trigger: it,
|
|
1759
|
+
Dropdown: dt,
|
|
1760
|
+
Divider: ct,
|
|
1761
|
+
Label: ut,
|
|
1762
|
+
Item: lt,
|
|
1763
|
+
Button: mt
|
|
1764
1764
|
},
|
|
1765
1765
|
Popover: {
|
|
1766
|
-
Root:
|
|
1767
|
-
Trigger:
|
|
1768
|
-
Content:
|
|
1766
|
+
Root: ft,
|
|
1767
|
+
Trigger: bt,
|
|
1768
|
+
Content: ht
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
|
-
},
|
|
1771
|
+
}, Ot = (e) => {
|
|
1772
1772
|
const { className: t, shadCNComponents: n, ...a } = e, r = L(() => ({
|
|
1773
|
-
...
|
|
1773
|
+
...nt,
|
|
1774
1774
|
...n
|
|
1775
1775
|
}), [n]);
|
|
1776
|
-
return /* @__PURE__ */ o(G.Provider, { value: r, children: /* @__PURE__ */ o(
|
|
1777
|
-
|
|
1776
|
+
return /* @__PURE__ */ o(G.Provider, { value: r, children: /* @__PURE__ */ o(ee.Provider, { value: Gt, children: /* @__PURE__ */ o(
|
|
1777
|
+
te,
|
|
1778
1778
|
{
|
|
1779
|
-
className:
|
|
1779
|
+
className: K("bn-shadcn", t || ""),
|
|
1780
1780
|
...a
|
|
1781
1781
|
}
|
|
1782
1782
|
) }) });
|
|
1783
1783
|
};
|
|
1784
1784
|
export {
|
|
1785
|
-
|
|
1785
|
+
Ot as BlockNoteView,
|
|
1786
1786
|
G as ShadCNComponentsContext,
|
|
1787
|
-
|
|
1788
|
-
|
|
1787
|
+
nt as ShadCNDefaultComponents,
|
|
1788
|
+
Gt as components,
|
|
1789
1789
|
f as useShadCNComponentsContext
|
|
1790
1790
|
};
|
|
1791
1791
|
//# sourceMappingURL=blocknote-shadcn.js.map
|