@blocknote/shadcn 0.31.2 → 0.31.3

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,29 +1,29 @@
1
1
  import { jsx as a, jsxs as g, Fragment as we } from "react/jsx-runtime";
2
- import { assertEmpty as m, mergeCSSClasses as Ce } from "@blocknote/core";
3
- import { elementOverflow as z, mergeRefs as E, useFocusWithin as ye, FormattingToolbarController as Se, getFormattingToolbarItems as Te, FormattingToolbar as Me, ComponentsContext as Ie, BlockNoteViewRaw as De } from "@blocknote/react";
4
- import * as b from "react";
5
- import { createContext as Re, useContext as ke, forwardRef as p, useMemo as V, useRef as A, useEffect as $, useState as Be } from "react";
6
- import { FormProvider as Fe, useFormContext as Pe, useForm as Le } from "react-hook-form";
2
+ import { assertEmpty as u, mergeCSSClasses as Ce } from "@blocknote/core";
3
+ import { elementOverflow as z, mergeRefs as E, useFocusWithin as ye, useDictionary as Se, FormattingToolbarController as Te, getFormattingToolbarItems as Me, FormattingToolbar as Ie, ComponentsContext as De, BlockNoteViewRaw as Re } from "@blocknote/react";
4
+ import * as c from "react";
5
+ import { createContext as ke, useContext as Be, forwardRef as p, useMemo as V, useRef as A, useEffect as $, useState as Fe } from "react";
6
+ import { FormProvider as Pe, useFormContext as Le, useForm as ze } from "react-hook-form";
7
7
  import * as S from "@radix-ui/react-avatar";
8
- import { clsx as ze } from "clsx";
9
- import { extendTailwindMerge as Ee } from "tailwind-merge";
8
+ import { clsx as Ee } from "clsx";
9
+ import { extendTailwindMerge as Ve } from "tailwind-merge";
10
10
  import { cva as I } from "class-variance-authority";
11
11
  import { Slot as j } from "@radix-ui/react-slot";
12
12
  import * as N from "@radix-ui/react-dropdown-menu";
13
- import { ChevronRight as q, Check as G, Circle as Ve, ChevronDown as U, ChevronUp as Ae } from "lucide-react";
13
+ import { ChevronRight as q, Check as G, Circle as Ae, ChevronDown as U, ChevronUp as $e } from "lucide-react";
14
14
  import * as H from "@radix-ui/react-label";
15
15
  import * as D from "@radix-ui/react-popover";
16
16
  import * as x from "@radix-ui/react-select";
17
17
  import * as y from "@radix-ui/react-tabs";
18
18
  import * as O from "@radix-ui/react-toggle";
19
19
  import * as T from "@radix-ui/react-tooltip";
20
- const $e = Ee({
20
+ const je = Ve({
21
21
  prefix: "bn-"
22
22
  });
23
23
  function i(...n) {
24
- return $e(ze(n));
24
+ return je(Ee(n));
25
25
  }
26
- const K = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
26
+ const K = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
27
27
  S.Root,
28
28
  {
29
29
  ref: e,
@@ -35,7 +35,7 @@ const K = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
35
35
  }
36
36
  ));
37
37
  K.displayName = S.Root.displayName;
38
- const Q = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
38
+ const Q = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
39
39
  S.Image,
40
40
  {
41
41
  ref: e,
@@ -44,7 +44,7 @@ const Q = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
44
44
  }
45
45
  ));
46
46
  Q.displayName = S.Image.displayName;
47
- const W = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
47
+ const W = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
48
48
  S.Fallback,
49
49
  {
50
50
  ref: e,
@@ -56,7 +56,7 @@ const W = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
56
56
  }
57
57
  ));
58
58
  W.displayName = S.Fallback.displayName;
59
- const je = I(
59
+ const qe = I(
60
60
  "bn-inline-flex bn-items-center bn-rounded-full bn-border bn-px-2.5 bn-py-0.5 bn-text-xs bn-font-semibold bn-transition-colors focus:bn-outline-none focus:bn-ring-2 focus:bn-ring-ring focus:bn-ring-offset-2",
61
61
  {
62
62
  variants: {
@@ -72,10 +72,10 @@ const je = I(
72
72
  }
73
73
  }
74
74
  );
75
- function qe({ className: n, variant: t, ...e }) {
76
- return /* @__PURE__ */ a("div", { className: i(je({ variant: t }), n), ...e });
75
+ function Ge({ className: n, variant: t, ...e }) {
76
+ return /* @__PURE__ */ a("div", { className: i(qe({ variant: t }), n), ...e });
77
77
  }
78
- const Ge = I(
78
+ const Ue = I(
79
79
  "bn-inline-flex bn-items-center bn-justify-center bn-whitespace-nowrap bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50",
80
80
  {
81
81
  variants: {
@@ -99,11 +99,11 @@ const Ge = I(
99
99
  size: "default"
100
100
  }
101
101
  }
102
- ), Z = b.forwardRef(
102
+ ), Z = c.forwardRef(
103
103
  ({ className: n, variant: t, size: e, asChild: o = !1, ...r }, s) => /* @__PURE__ */ a(
104
104
  o ? j : "button",
105
105
  {
106
- className: i(Ge({ variant: t, size: e, className: n })),
106
+ className: i(Ue({ variant: t, size: e, className: n })),
107
107
  ref: s,
108
108
  type: "button",
109
109
  ...r
@@ -111,7 +111,7 @@ const Ge = I(
111
111
  )
112
112
  );
113
113
  Z.displayName = "Button";
114
- const _ = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
114
+ const _ = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
115
115
  "div",
116
116
  {
117
117
  ref: e,
@@ -123,7 +123,7 @@ const _ = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
123
123
  }
124
124
  ));
125
125
  _.displayName = "Card";
126
- const Ue = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
126
+ const He = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
127
127
  "div",
128
128
  {
129
129
  ref: e,
@@ -131,8 +131,8 @@ const Ue = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
131
131
  ...t
132
132
  }
133
133
  ));
134
- Ue.displayName = "CardHeader";
135
- const He = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
134
+ He.displayName = "CardHeader";
135
+ const Oe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
136
136
  "h3",
137
137
  {
138
138
  ref: e,
@@ -143,8 +143,8 @@ const He = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
143
143
  ...t
144
144
  }
145
145
  ));
146
- He.displayName = "CardTitle";
147
- const Oe = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
146
+ Oe.displayName = "CardTitle";
147
+ const Ke = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
148
148
  "p",
149
149
  {
150
150
  ref: e,
@@ -152,10 +152,10 @@ const Oe = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
152
152
  ...t
153
153
  }
154
154
  ));
155
- Oe.displayName = "CardDescription";
156
- const J = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a("div", { ref: e, className: i("bn-p-6 bn-pt-0", n), ...t }));
155
+ Ke.displayName = "CardDescription";
156
+ const J = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a("div", { ref: e, className: i("bn-p-6 bn-pt-0", n), ...t }));
157
157
  J.displayName = "CardContent";
158
- const Ke = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
158
+ const Qe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
159
159
  "div",
160
160
  {
161
161
  ref: e,
@@ -163,8 +163,8 @@ const Ke = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
163
163
  ...t
164
164
  }
165
165
  ));
166
- Ke.displayName = "CardFooter";
167
- const Qe = N.Root, We = N.Trigger, Ze = N.Sub, X = b.forwardRef(({ className: n, inset: t, children: e, ...o }, r) => /* @__PURE__ */ g(
166
+ Qe.displayName = "CardFooter";
167
+ const We = N.Root, Ze = N.Trigger, _e = N.Sub, X = c.forwardRef(({ className: n, inset: t, children: e, ...o }, r) => /* @__PURE__ */ g(
168
168
  N.SubTrigger,
169
169
  {
170
170
  ref: r,
@@ -181,7 +181,7 @@ const Qe = N.Root, We = N.Trigger, Ze = N.Sub, X = b.forwardRef(({ className: n,
181
181
  }
182
182
  ));
183
183
  X.displayName = N.SubTrigger.displayName;
184
- const Y = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
184
+ const Y = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
185
185
  N.SubContent,
186
186
  {
187
187
  ref: e,
@@ -193,7 +193,7 @@ const Y = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
193
193
  }
194
194
  ));
195
195
  Y.displayName = N.SubContent.displayName;
196
- const ee = b.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => (
196
+ const ee = c.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => (
197
197
  // <DropdownMenuPrimitive.Portal>
198
198
  /* @__PURE__ */ a(
199
199
  N.Content,
@@ -209,7 +209,7 @@ const ee = b.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => (
209
209
  )
210
210
  ));
211
211
  ee.displayName = N.Content.displayName;
212
- const ne = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
212
+ const ne = c.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
213
213
  N.Item,
214
214
  {
215
215
  ref: o,
@@ -222,7 +222,7 @@ const ne = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */
222
222
  }
223
223
  ));
224
224
  ne.displayName = N.Item.displayName;
225
- const te = b.forwardRef(({ className: n, children: t, checked: e, ...o }, r) => /* @__PURE__ */ g(
225
+ const te = c.forwardRef(({ className: n, children: t, checked: e, ...o }, r) => /* @__PURE__ */ g(
226
226
  N.CheckboxItem,
227
227
  {
228
228
  ref: r,
@@ -239,7 +239,7 @@ const te = b.forwardRef(({ className: n, children: t, checked: e, ...o }, r) =>
239
239
  }
240
240
  ));
241
241
  te.displayName = N.CheckboxItem.displayName;
242
- const _e = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
242
+ const Je = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
243
243
  N.RadioItem,
244
244
  {
245
245
  ref: o,
@@ -249,13 +249,13 @@ const _e = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__
249
249
  ),
250
250
  ...e,
251
251
  children: [
252
- /* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(N.ItemIndicator, { children: /* @__PURE__ */ a(Ve, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
252
+ /* @__PURE__ */ a("span", { className: "bn-absolute bn-left-2 bn-flex bn-h-3.5 bn-w-3.5 bn-items-center bn-justify-center", children: /* @__PURE__ */ a(N.ItemIndicator, { children: /* @__PURE__ */ a(Ae, { className: "bn-h-2 bn-w-2 bn-fill-current" }) }) }),
253
253
  t
254
254
  ]
255
255
  }
256
256
  ));
257
- _e.displayName = N.RadioItem.displayName;
258
- const oe = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
257
+ Je.displayName = N.RadioItem.displayName;
258
+ const oe = c.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */ a(
259
259
  N.Label,
260
260
  {
261
261
  ref: o,
@@ -268,7 +268,7 @@ const oe = b.forwardRef(({ className: n, inset: t, ...e }, o) => /* @__PURE__ */
268
268
  }
269
269
  ));
270
270
  oe.displayName = N.Label.displayName;
271
- const ae = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
271
+ const ae = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
272
272
  N.Separator,
273
273
  {
274
274
  ref: e,
@@ -277,21 +277,21 @@ const ae = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
277
277
  }
278
278
  ));
279
279
  ae.displayName = N.Separator.displayName;
280
- const Je = I(
280
+ const Xe = I(
281
281
  "bn-text-sm bn-font-medium bn-leading-none peer-disabled:bn-cursor-not-allowed peer-disabled:bn-opacity-70"
282
- ), P = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
282
+ ), P = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
283
283
  H.Root,
284
284
  {
285
285
  ref: e,
286
- className: i(Je(), n),
286
+ className: i(Xe(), n),
287
287
  ...t
288
288
  }
289
289
  ));
290
290
  P.displayName = H.Root.displayName;
291
- const Xe = Fe, Ye = b.createContext(
291
+ const Ye = Pe, en = c.createContext(
292
292
  {}
293
293
  ), R = () => {
294
- const n = b.useContext(Ye), t = b.useContext(re), { getFieldState: e, formState: o } = Pe(), r = e(n.name, o);
294
+ const n = c.useContext(en), t = c.useContext(re), { getFieldState: e, formState: o } = Le(), r = e(n.name, o);
295
295
  if (!n)
296
296
  throw new Error("useFormField should be used within <FormField>");
297
297
  const { id: s } = t;
@@ -303,14 +303,14 @@ const Xe = Fe, Ye = b.createContext(
303
303
  formMessageId: `${s}-form-item-message`,
304
304
  ...r
305
305
  };
306
- }, re = b.createContext(
306
+ }, re = c.createContext(
307
307
  {}
308
- ), en = b.forwardRef(({ className: n, ...t }, e) => {
309
- const o = b.useId();
308
+ ), nn = c.forwardRef(({ className: n, ...t }, e) => {
309
+ const o = c.useId();
310
310
  return /* @__PURE__ */ a(re.Provider, { value: { id: o }, children: /* @__PURE__ */ a("div", { ref: e, className: i("bn-space-y-2", n), ...t }) });
311
311
  });
312
- en.displayName = "FormItem";
313
- const nn = b.forwardRef(({ className: n, ...t }, e) => {
312
+ nn.displayName = "FormItem";
313
+ const tn = c.forwardRef(({ className: n, ...t }, e) => {
314
314
  const { error: o, formItemId: r } = R();
315
315
  return /* @__PURE__ */ a(
316
316
  P,
@@ -322,8 +322,8 @@ const nn = b.forwardRef(({ className: n, ...t }, e) => {
322
322
  }
323
323
  );
324
324
  });
325
- nn.displayName = "FormLabel";
326
- const tn = b.forwardRef(({ ...n }, t) => {
325
+ tn.displayName = "FormLabel";
326
+ const on = c.forwardRef(({ ...n }, t) => {
327
327
  const { error: e, formItemId: o, formDescriptionId: r, formMessageId: s } = R();
328
328
  return /* @__PURE__ */ a(
329
329
  j,
@@ -336,8 +336,8 @@ const tn = b.forwardRef(({ ...n }, t) => {
336
336
  }
337
337
  );
338
338
  });
339
- tn.displayName = "FormControl";
340
- const on = b.forwardRef(({ className: n, ...t }, e) => {
339
+ on.displayName = "FormControl";
340
+ const an = c.forwardRef(({ className: n, ...t }, e) => {
341
341
  const { formDescriptionId: o } = R();
342
342
  return /* @__PURE__ */ a(
343
343
  "p",
@@ -349,22 +349,22 @@ const on = b.forwardRef(({ className: n, ...t }, e) => {
349
349
  }
350
350
  );
351
351
  });
352
- on.displayName = "FormDescription";
353
- const an = b.forwardRef(({ className: n, children: t, ...e }, o) => {
354
- const { error: r, formMessageId: s } = R(), l = r ? String(r == null ? void 0 : r.message) : t;
355
- return l ? /* @__PURE__ */ a(
352
+ an.displayName = "FormDescription";
353
+ const rn = c.forwardRef(({ className: n, children: t, ...e }, o) => {
354
+ const { error: r, formMessageId: s } = R(), d = r ? String(r == null ? void 0 : r.message) : t;
355
+ return d ? /* @__PURE__ */ a(
356
356
  "p",
357
357
  {
358
358
  ref: o,
359
359
  id: s,
360
360
  className: i("bn-text-sm bn-font-medium bn-text-destructive", n),
361
361
  ...e,
362
- children: l
362
+ children: d
363
363
  }
364
364
  ) : null;
365
365
  });
366
- an.displayName = "FormMessage";
367
- const se = b.forwardRef(
366
+ rn.displayName = "FormMessage";
367
+ const se = c.forwardRef(
368
368
  ({ className: n, type: t, ...e }, o) => /* @__PURE__ */ a(
369
369
  "input",
370
370
  {
@@ -379,7 +379,7 @@ const se = b.forwardRef(
379
379
  )
380
380
  );
381
381
  se.displayName = "Input";
382
- const rn = D.Root, sn = D.Trigger, ie = b.forwardRef(({ className: n, align: t = "center", sideOffset: e = 4, ...o }, r) => (
382
+ const sn = D.Root, dn = D.Trigger, ie = c.forwardRef(({ className: n, align: t = "center", sideOffset: e = 4, ...o }, r) => (
383
383
  // <PopoverPrimitive.Portal>
384
384
  /* @__PURE__ */ a(
385
385
  D.Content,
@@ -396,7 +396,7 @@ const rn = D.Root, sn = D.Trigger, ie = b.forwardRef(({ className: n, align: t =
396
396
  )
397
397
  ));
398
398
  ie.displayName = D.Content.displayName;
399
- const ln = x.Root, dn = x.Value, le = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
399
+ const ln = x.Root, bn = x.Value, de = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
400
400
  x.Trigger,
401
401
  {
402
402
  ref: o,
@@ -411,8 +411,8 @@ const ln = x.Root, dn = x.Value, le = b.forwardRef(({ className: n, children: t,
411
411
  ]
412
412
  }
413
413
  ));
414
- le.displayName = x.Trigger.displayName;
415
- const de = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
414
+ de.displayName = x.Trigger.displayName;
415
+ const le = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
416
416
  x.ScrollUpButton,
417
417
  {
418
418
  ref: e,
@@ -421,11 +421,11 @@ const de = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
421
421
  n
422
422
  ),
423
423
  ...t,
424
- children: /* @__PURE__ */ a(Ae, { className: "bn-h-4 bn-w-4" })
424
+ children: /* @__PURE__ */ a($e, { className: "bn-h-4 bn-w-4" })
425
425
  }
426
426
  ));
427
- de.displayName = x.ScrollUpButton.displayName;
428
- const be = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
427
+ le.displayName = x.ScrollUpButton.displayName;
428
+ const be = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
429
429
  x.ScrollDownButton,
430
430
  {
431
431
  ref: e,
@@ -438,7 +438,7 @@ const be = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
438
438
  }
439
439
  ));
440
440
  be.displayName = x.ScrollDownButton.displayName;
441
- const ce = b.forwardRef(({ className: n, children: t, position: e = "popper", ...o }, r) => (
441
+ const ce = c.forwardRef(({ className: n, children: t, position: e = "popper", ...o }, r) => (
442
442
  // <SelectPrimitive.Portal>
443
443
  /* @__PURE__ */ g(
444
444
  x.Content,
@@ -452,7 +452,7 @@ const ce = b.forwardRef(({ className: n, children: t, position: e = "popper", ..
452
452
  position: e,
453
453
  ...o,
454
454
  children: [
455
- /* @__PURE__ */ a(de, {}),
455
+ /* @__PURE__ */ a(le, {}),
456
456
  /* @__PURE__ */ a(
457
457
  x.Viewport,
458
458
  {
@@ -469,7 +469,7 @@ const ce = b.forwardRef(({ className: n, children: t, position: e = "popper", ..
469
469
  )
470
470
  ));
471
471
  ce.displayName = x.Content.displayName;
472
- const bn = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
472
+ const cn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
473
473
  x.Label,
474
474
  {
475
475
  ref: e,
@@ -480,8 +480,8 @@ const bn = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
480
480
  ...t
481
481
  }
482
482
  ));
483
- bn.displayName = x.Label.displayName;
484
- const me = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
483
+ cn.displayName = x.Label.displayName;
484
+ const me = c.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__ */ g(
485
485
  x.Item,
486
486
  {
487
487
  ref: o,
@@ -497,7 +497,7 @@ const me = b.forwardRef(({ className: n, children: t, ...e }, o) => /* @__PURE__
497
497
  }
498
498
  ));
499
499
  me.displayName = x.Item.displayName;
500
- const cn = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
500
+ const mn = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
501
501
  x.Separator,
502
502
  {
503
503
  ref: e,
@@ -505,8 +505,8 @@ const cn = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
505
505
  ...t
506
506
  }
507
507
  ));
508
- cn.displayName = x.Separator.displayName;
509
- function mn({
508
+ mn.displayName = x.Separator.displayName;
509
+ function un({
510
510
  className: n,
511
511
  ...t
512
512
  }) {
@@ -518,7 +518,7 @@ function mn({
518
518
  }
519
519
  );
520
520
  }
521
- const un = y.Root, ue = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
521
+ const pn = y.Root, ue = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
522
522
  y.List,
523
523
  {
524
524
  ref: e,
@@ -530,7 +530,7 @@ const un = y.Root, ue = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__
530
530
  }
531
531
  ));
532
532
  ue.displayName = y.List.displayName;
533
- const pe = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
533
+ const pe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
534
534
  y.Trigger,
535
535
  {
536
536
  ref: e,
@@ -542,7 +542,7 @@ const pe = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
542
542
  }
543
543
  ));
544
544
  pe.displayName = y.Trigger.displayName;
545
- const fe = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
545
+ const fe = c.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
546
546
  y.Content,
547
547
  {
548
548
  ref: e,
@@ -554,7 +554,7 @@ const fe = b.forwardRef(({ className: n, ...t }, e) => /* @__PURE__ */ a(
554
554
  }
555
555
  ));
556
556
  fe.displayName = y.Content.displayName;
557
- const pn = I(
557
+ const fn = I(
558
558
  "bn-inline-flex bn-items-center bn-justify-center bn-rounded-md bn-text-sm bn-font-medium bn-ring-offset-background bn-transition-colors hover:bn-bg-muted hover:bn-text-muted-foreground focus-visible:bn-outline-none focus-visible:bn-ring-2 focus-visible:bn-ring-ring focus-visible:bn-ring-offset-2 disabled:bn-pointer-events-none disabled:bn-opacity-50 data-[state=on]:bn-bg-accent data-[state=on]:bn-text-accent-foreground",
559
559
  {
560
560
  variants: {
@@ -573,16 +573,16 @@ const pn = I(
573
573
  size: "default"
574
574
  }
575
575
  }
576
- ), ge = b.forwardRef(({ className: n, variant: t, size: e, ...o }, r) => /* @__PURE__ */ a(
576
+ ), ge = c.forwardRef(({ className: n, variant: t, size: e, ...o }, r) => /* @__PURE__ */ a(
577
577
  O.Root,
578
578
  {
579
579
  ref: r,
580
- className: i(pn({ variant: t, size: e, className: n })),
580
+ className: i(fn({ variant: t, size: e, className: n })),
581
581
  ...o
582
582
  }
583
583
  ));
584
584
  ge.displayName = O.Root.displayName;
585
- const fn = T.Provider, gn = T.Root, hn = T.Trigger, he = b.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => /* @__PURE__ */ a(
585
+ const gn = T.Provider, hn = T.Root, vn = T.Trigger, he = c.forwardRef(({ className: n, sideOffset: t = 4, ...e }, o) => /* @__PURE__ */ a(
586
586
  T.Content,
587
587
  {
588
588
  ref: o,
@@ -595,14 +595,14 @@ const fn = T.Provider, gn = T.Root, hn = T.Trigger, he = b.forwardRef(({ classNa
595
595
  }
596
596
  ));
597
597
  he.displayName = T.Content.displayName;
598
- const vn = {
598
+ const Nn = {
599
599
  Avatar: {
600
600
  Avatar: K,
601
601
  AvatarFallback: W,
602
602
  AvatarImage: Q
603
603
  },
604
604
  Badge: {
605
- Badge: qe
605
+ Badge: Ge
606
606
  },
607
607
  Button: {
608
608
  Button: Z
@@ -612,19 +612,19 @@ const vn = {
612
612
  CardContent: J
613
613
  },
614
614
  DropdownMenu: {
615
- DropdownMenu: Qe,
615
+ DropdownMenu: We,
616
616
  DropdownMenuCheckboxItem: te,
617
617
  DropdownMenuContent: ee,
618
618
  DropdownMenuItem: ne,
619
619
  DropdownMenuLabel: oe,
620
620
  DropdownMenuSeparator: ae,
621
- DropdownMenuSub: Ze,
621
+ DropdownMenuSub: _e,
622
622
  DropdownMenuSubContent: Y,
623
623
  DropdownMenuSubTrigger: X,
624
- DropdownMenuTrigger: We
624
+ DropdownMenuTrigger: Ze
625
625
  },
626
626
  Form: {
627
- Form: Xe
627
+ Form: Ye
628
628
  },
629
629
  Input: {
630
630
  Input: se
@@ -633,22 +633,22 @@ const vn = {
633
633
  Label: P
634
634
  },
635
635
  Popover: {
636
- Popover: rn,
636
+ Popover: sn,
637
637
  PopoverContent: ie,
638
- PopoverTrigger: sn
638
+ PopoverTrigger: dn
639
639
  },
640
640
  Select: {
641
641
  Select: ln,
642
642
  SelectContent: ce,
643
643
  SelectItem: me,
644
- SelectTrigger: le,
645
- SelectValue: dn
644
+ SelectTrigger: de,
645
+ SelectValue: bn
646
646
  },
647
647
  Skeleton: {
648
- Skeleton: mn
648
+ Skeleton: un
649
649
  },
650
650
  Tabs: {
651
- Tabs: un,
651
+ Tabs: pn,
652
652
  TabsContent: fe,
653
653
  TabsList: ue,
654
654
  TabsTrigger: pe
@@ -657,31 +657,31 @@ const vn = {
657
657
  Toggle: ge
658
658
  },
659
659
  Tooltip: {
660
- Tooltip: gn,
660
+ Tooltip: hn,
661
661
  TooltipContent: he,
662
- TooltipProvider: fn,
663
- TooltipTrigger: hn
662
+ TooltipProvider: gn,
663
+ TooltipTrigger: vn
664
664
  }
665
- }, ve = Re(void 0);
665
+ }, ve = ke(void 0);
666
666
  function h() {
667
- return ke(ve);
667
+ return Be(ve);
668
668
  }
669
- const Nn = (n) => {
669
+ const xn = (n) => {
670
670
  const { children: t, ...e } = n;
671
- m(e);
672
- const o = h(), r = Le();
671
+ u(e);
672
+ const o = h(), r = ze();
673
673
  return /* @__PURE__ */ a(o.Form.Form, { ...r, children: t });
674
- }, xn = p((n, t) => {
674
+ }, wn = p((n, t) => {
675
675
  const {
676
676
  className: e,
677
677
  name: o,
678
678
  label: r,
679
679
  variant: s,
680
- icon: l,
680
+ icon: d,
681
681
  // TODO: implement
682
- value: u,
683
- autoFocus: c,
684
- placeholder: d,
682
+ value: b,
683
+ autoFocus: m,
684
+ placeholder: l,
685
685
  disabled: f,
686
686
  onKeyDown: v,
687
687
  onChange: w,
@@ -691,7 +691,7 @@ const Nn = (n) => {
691
691
  // TODO: add rightSection
692
692
  ...xe
693
693
  } = n;
694
- m(xe);
694
+ u(xe);
695
695
  const L = h();
696
696
  return /* @__PURE__ */ g(
697
697
  "div",
@@ -702,7 +702,7 @@ const Nn = (n) => {
702
702
  "bn-items-center bn-gap-2 bn-text-foreground"
703
703
  ),
704
704
  children: [
705
- l,
705
+ d,
706
706
  /* @__PURE__ */ g("div", { className: "bn-flex-1", children: [
707
707
  r && /* @__PURE__ */ a(L.Label.Label, { htmlFor: r, children: r }),
708
708
  /* @__PURE__ */ a(
@@ -711,10 +711,10 @@ const Nn = (n) => {
711
711
  className: i(e, "bn-border-none bn-p-0 bn-h-auto"),
712
712
  id: r,
713
713
  name: o,
714
- autoFocus: c,
715
- placeholder: d,
714
+ autoFocus: m,
715
+ placeholder: l,
716
716
  disabled: f,
717
- value: u,
717
+ value: b,
718
718
  onKeyDown: v,
719
719
  onChange: w,
720
720
  onSubmit: C,
@@ -726,7 +726,7 @@ const Nn = (n) => {
726
726
  ]
727
727
  }
728
728
  );
729
- }), wn = (n) => p(
729
+ }), Cn = (n) => p(
730
730
  (t, e) => /* @__PURE__ */ a(
731
731
  n,
732
732
  {
@@ -741,7 +741,7 @@ const Nn = (n) => {
741
741
  ref: e
742
742
  }
743
743
  )
744
- ), Cn = (n) => {
744
+ ), yn = (n) => {
745
745
  const {
746
746
  children: t,
747
747
  onOpenChange: e,
@@ -750,88 +750,88 @@ const Nn = (n) => {
750
750
  sub: r,
751
751
  ...s
752
752
  } = n;
753
- m(s);
754
- const l = h();
753
+ u(s);
754
+ const d = h();
755
755
  return r ? /* @__PURE__ */ a(
756
- l.DropdownMenu.DropdownMenuSub,
756
+ d.DropdownMenu.DropdownMenuSub,
757
757
  {
758
758
  onOpenChange: e,
759
759
  children: t
760
760
  }
761
761
  ) : /* @__PURE__ */ a(
762
- l.DropdownMenu.DropdownMenu,
762
+ d.DropdownMenu.DropdownMenu,
763
763
  {
764
764
  modal: !1,
765
765
  onOpenChange: e,
766
766
  children: t
767
767
  }
768
768
  );
769
- }, yn = (n) => {
769
+ }, Sn = (n) => {
770
770
  const { children: t, sub: e, ...o } = n;
771
- m(o);
771
+ u(o);
772
772
  const r = h(), s = V(
773
- () => wn(
773
+ () => Cn(
774
774
  r.DropdownMenu.DropdownMenuTrigger
775
775
  ),
776
776
  [r.DropdownMenu.DropdownMenuTrigger]
777
777
  );
778
778
  return e ? /* @__PURE__ */ a(r.DropdownMenu.DropdownMenuSubTrigger, { children: t }) : /* @__PURE__ */ a(s, { asChild: !0, ...o, children: t });
779
- }, Sn = p((n, t) => {
779
+ }, Tn = p((n, t) => {
780
780
  const { className: e, children: o, sub: r, ...s } = n;
781
- m(s);
782
- const l = h();
781
+ u(s);
782
+ const d = h();
783
783
  return r ? /* @__PURE__ */ a(
784
- l.DropdownMenu.DropdownMenuSubContent,
784
+ d.DropdownMenu.DropdownMenuSubContent,
785
785
  {
786
786
  className: e,
787
787
  ref: t,
788
788
  children: o
789
789
  }
790
790
  ) : /* @__PURE__ */ a(
791
- l.DropdownMenu.DropdownMenuContent,
791
+ d.DropdownMenu.DropdownMenuContent,
792
792
  {
793
793
  className: e,
794
794
  ref: t,
795
795
  children: o
796
796
  }
797
797
  );
798
- }), Tn = p((n, t) => {
799
- const { className: e, children: o, icon: r, checked: s, subTrigger: l, onClick: u, ...c } = n;
800
- m(c);
801
- const d = h();
802
- return l ? /* @__PURE__ */ g(we, { children: [
798
+ }), Mn = p((n, t) => {
799
+ const { className: e, children: o, icon: r, checked: s, subTrigger: d, onClick: b, ...m } = n;
800
+ u(m);
801
+ const l = h();
802
+ return d ? /* @__PURE__ */ g(we, { children: [
803
803
  r,
804
804
  o
805
805
  ] }) : s !== void 0 ? /* @__PURE__ */ g(
806
- d.DropdownMenu.DropdownMenuCheckboxItem,
806
+ l.DropdownMenu.DropdownMenuCheckboxItem,
807
807
  {
808
808
  className: i(e, "bn-gap-1", s ? "" : "bn-px-2"),
809
809
  ref: t,
810
810
  checked: s,
811
- onClick: u,
812
- ...c,
811
+ onClick: b,
812
+ ...m,
813
813
  children: [
814
814
  r,
815
815
  o
816
816
  ]
817
817
  }
818
818
  ) : /* @__PURE__ */ g(
819
- d.DropdownMenu.DropdownMenuItem,
819
+ l.DropdownMenu.DropdownMenuItem,
820
820
  {
821
821
  className: e,
822
822
  ref: t,
823
- onClick: u,
824
- ...c,
823
+ onClick: b,
824
+ ...m,
825
825
  children: [
826
826
  r,
827
827
  o,
828
- l && /* @__PURE__ */ a(q, { className: "bn-ml-auto bn-h-4 bn-w-4" })
828
+ d && /* @__PURE__ */ a(q, { className: "bn-ml-auto bn-h-4 bn-w-4" })
829
829
  ]
830
830
  }
831
831
  );
832
- }), Mn = p((n, t) => {
832
+ }), In = p((n, t) => {
833
833
  const { className: e, ...o } = n;
834
- m(o);
834
+ u(o);
835
835
  const r = h();
836
836
  return /* @__PURE__ */ a(
837
837
  r.DropdownMenu.DropdownMenuSeparator,
@@ -840,9 +840,9 @@ const Nn = (n) => {
840
840
  ref: t
841
841
  }
842
842
  );
843
- }), In = p((n, t) => {
843
+ }), Dn = p((n, t) => {
844
844
  const { className: e, children: o, ...r } = n;
845
- m(r);
845
+ u(r);
846
846
  const s = h();
847
847
  return /* @__PURE__ */ a(
848
848
  s.DropdownMenu.DropdownMenuLabel,
@@ -852,19 +852,19 @@ const Nn = (n) => {
852
852
  children: o
853
853
  }
854
854
  );
855
- }), Dn = p((n, t) => {
855
+ }), Rn = p((n, t) => {
856
856
  const {
857
857
  className: e,
858
858
  children: o,
859
859
  icon: r,
860
860
  onClick: s,
861
- onDragEnd: l,
862
- onDragStart: u,
863
- draggable: c,
864
- label: d,
861
+ onDragEnd: d,
862
+ onDragStart: b,
863
+ draggable: m,
864
+ label: l,
865
865
  ...f
866
866
  } = n;
867
- m(f, !1);
867
+ u(f, !1);
868
868
  const v = h();
869
869
  return /* @__PURE__ */ g(
870
870
  v.Button.Button,
@@ -872,11 +872,11 @@ const Nn = (n) => {
872
872
  variant: "ghost",
873
873
  className: i(e, "bn-text-gray-400"),
874
874
  ref: t,
875
- "aria-label": d,
875
+ "aria-label": l,
876
876
  onClick: s,
877
- onDragStart: u,
878
- onDragEnd: l,
879
- draggable: c,
877
+ onDragStart: b,
878
+ onDragEnd: d,
879
+ draggable: m,
880
880
  ...f,
881
881
  children: [
882
882
  r,
@@ -884,36 +884,36 @@ const Nn = (n) => {
884
884
  ]
885
885
  }
886
886
  );
887
- }), Rn = p((n, t) => {
887
+ }), kn = p((n, t) => {
888
888
  const {
889
889
  className: e,
890
890
  tabs: o,
891
891
  defaultOpenTab: r,
892
892
  openTab: s,
893
- setOpenTab: l,
894
- loading: u,
893
+ setOpenTab: d,
894
+ loading: b,
895
895
  // TODO: implement loader
896
- ...c
896
+ ...m
897
897
  } = n;
898
- m(c);
899
- const d = h();
898
+ u(m);
899
+ const l = h();
900
900
  return /* @__PURE__ */ g(
901
- d.Tabs.Tabs,
901
+ l.Tabs.Tabs,
902
902
  {
903
903
  className: i(e, "bn-bg-popover bn-p-2 bn-rounded-lg"),
904
904
  ref: t,
905
905
  value: s,
906
906
  defaultValue: r,
907
- onValueChange: l,
907
+ onValueChange: d,
908
908
  children: [
909
- /* @__PURE__ */ a(d.Tabs.TabsList, { children: o.map((f) => /* @__PURE__ */ a(d.Tabs.TabsTrigger, { value: f.name, children: f.name }, f.name)) }),
910
- o.map((f) => /* @__PURE__ */ a(d.Tabs.TabsContent, { value: f.name, children: /* @__PURE__ */ a(d.Card.Card, { children: /* @__PURE__ */ a(d.Card.CardContent, { className: "bn-p-4", children: f.tabPanel }) }) }, f.name))
909
+ /* @__PURE__ */ a(l.Tabs.TabsList, { children: o.map((f) => /* @__PURE__ */ a(l.Tabs.TabsTrigger, { value: f.name, children: f.name }, f.name)) }),
910
+ o.map((f) => /* @__PURE__ */ a(l.Tabs.TabsContent, { value: f.name, children: /* @__PURE__ */ a(l.Card.Card, { children: /* @__PURE__ */ a(l.Card.CardContent, { className: "bn-p-4", children: f.tabPanel }) }) }, f.name))
911
911
  ]
912
912
  }
913
913
  );
914
- }), kn = p((n, t) => {
914
+ }), Bn = p((n, t) => {
915
915
  const { className: e, children: o, ...r } = n;
916
- return m(r), /* @__PURE__ */ a(
916
+ return u(r), /* @__PURE__ */ a(
917
917
  "div",
918
918
  {
919
919
  className: i(
@@ -924,12 +924,12 @@ const Nn = (n) => {
924
924
  children: o
925
925
  }
926
926
  );
927
- }), Bn = p((n, t) => {
928
- const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: l, ...u } = n;
929
- m(u);
930
- const c = h();
927
+ }), Fn = p((n, t) => {
928
+ const { className: e, value: o, placeholder: r, onKeyDown: s, onChange: d, ...b } = n;
929
+ u(b);
930
+ const m = h();
931
931
  return /* @__PURE__ */ a(
932
- c.Input.Input,
932
+ m.Input.Input,
933
933
  {
934
934
  "data-test": "embed-input",
935
935
  className: i(e, "bn-w-80"),
@@ -937,10 +937,10 @@ const Nn = (n) => {
937
937
  value: o,
938
938
  placeholder: r,
939
939
  onKeyDown: s,
940
- onChange: l
940
+ onChange: d
941
941
  }
942
942
  );
943
- }), Fn = (n) => {
943
+ }), Pn = (n) => {
944
944
  const {
945
945
  children: t,
946
946
  opened: e,
@@ -948,22 +948,22 @@ const Nn = (n) => {
948
948
  // unused
949
949
  ...r
950
950
  } = n;
951
- m(r);
951
+ u(r);
952
952
  const s = h();
953
953
  return /* @__PURE__ */ a(s.Popover.Popover, { open: e, children: t });
954
- }, Pn = p(
954
+ }, Ln = p(
955
955
  (n, t) => {
956
956
  const { children: e, ...o } = n;
957
- m(o);
957
+ u(o);
958
958
  const r = h();
959
959
  return /* @__PURE__ */ a(r.Popover.PopoverTrigger, { ref: t, asChild: !0, children: e });
960
960
  }
961
- ), Ln = p((n, t) => {
961
+ ), zn = p((n, t) => {
962
962
  const { className: e, variant: o, children: r, ...s } = n;
963
- m(s);
964
- const l = h();
963
+ u(s);
964
+ const d = h();
965
965
  return /* @__PURE__ */ a(
966
- l.Popover.PopoverContent,
966
+ d.Popover.PopoverContent,
967
967
  {
968
968
  sideOffset: 8,
969
969
  className: i(
@@ -975,22 +975,22 @@ const Nn = (n) => {
975
975
  children: r
976
976
  }
977
977
  );
978
- }), zn = p((n, t) => {
979
- const { className: e, children: o, ...r } = n;
980
- return m(r, !1), /* @__PURE__ */ a("div", { className: e, ref: t, ...r, children: o });
981
978
  }), En = p((n, t) => {
979
+ const { className: e, children: o, ...r } = n;
980
+ return u(r, !1), /* @__PURE__ */ a("div", { className: e, ref: t, ...r, children: o });
981
+ }), Vn = p((n, t) => {
982
982
  const {
983
983
  className: e,
984
984
  children: o,
985
985
  icon: r,
986
986
  onClick: s,
987
- onDragEnd: l,
988
- onDragStart: u,
989
- draggable: c,
990
- label: d,
987
+ onDragEnd: d,
988
+ onDragStart: b,
989
+ draggable: m,
990
+ label: l,
991
991
  ...f
992
992
  } = n;
993
- m(f, !1);
993
+ u(f, !1);
994
994
  const v = h();
995
995
  return /* @__PURE__ */ g(
996
996
  v.Button.Button,
@@ -998,11 +998,11 @@ const Nn = (n) => {
998
998
  variant: "ghost",
999
999
  className: i(e, "bn-text-gray-400"),
1000
1000
  ref: t,
1001
- "aria-label": d,
1001
+ "aria-label": l,
1002
1002
  onClick: s,
1003
- onDragStart: u,
1004
- onDragEnd: l,
1005
- draggable: c,
1003
+ onDragStart: b,
1004
+ onDragEnd: d,
1005
+ draggable: m,
1006
1006
  ...f,
1007
1007
  children: [
1008
1008
  r,
@@ -1010,9 +1010,9 @@ const Nn = (n) => {
1010
1010
  ]
1011
1011
  }
1012
1012
  );
1013
- }), Vn = p((n, t) => {
1014
- const { className: e, children: o, id: r, columns: s, ...l } = n;
1015
- return m(l), /* @__PURE__ */ a(
1013
+ }), An = p((n, t) => {
1014
+ const { className: e, children: o, id: r, columns: s, ...d } = n;
1015
+ return u(d), /* @__PURE__ */ a(
1016
1016
  "div",
1017
1017
  {
1018
1018
  className: e,
@@ -1023,9 +1023,9 @@ const Nn = (n) => {
1023
1023
  children: o
1024
1024
  }
1025
1025
  );
1026
- }), An = p((n, t) => {
1026
+ }), $n = p((n, t) => {
1027
1027
  const { className: e, children: o, columns: r, ...s } = n;
1028
- return m(s), /* @__PURE__ */ a(
1028
+ return u(s), /* @__PURE__ */ a(
1029
1029
  "div",
1030
1030
  {
1031
1031
  className: e,
@@ -1034,9 +1034,9 @@ const Nn = (n) => {
1034
1034
  children: o
1035
1035
  }
1036
1036
  );
1037
- }), $n = p((n, t) => {
1037
+ }), jn = p((n, t) => {
1038
1038
  const { className: e, children: o, id: r, ...s } = n;
1039
- return m(s), /* @__PURE__ */ a(
1039
+ return u(s), /* @__PURE__ */ a(
1040
1040
  "div",
1041
1041
  {
1042
1042
  id: r,
@@ -1049,9 +1049,9 @@ const Nn = (n) => {
1049
1049
  children: o
1050
1050
  }
1051
1051
  );
1052
- }), jn = p((n, t) => {
1052
+ }), qn = p((n, t) => {
1053
1053
  const { className: e, children: o, ...r } = n;
1054
- return m(r), /* @__PURE__ */ a(
1054
+ return u(r), /* @__PURE__ */ a(
1055
1055
  "div",
1056
1056
  {
1057
1057
  className: i(
@@ -1062,19 +1062,19 @@ const Nn = (n) => {
1062
1062
  children: /* @__PURE__ */ a("div", { children: o })
1063
1063
  }
1064
1064
  );
1065
- }), qn = p((n, t) => {
1066
- const e = h(), { className: o, item: r, isSelected: s, onClick: l, id: u, ...c } = n;
1067
- m(c);
1068
- const d = A(null);
1065
+ }), Gn = p((n, t) => {
1066
+ const e = h(), { className: o, item: r, isSelected: s, onClick: d, id: b, ...m } = n;
1067
+ u(m);
1068
+ const l = A(null);
1069
1069
  return $(() => {
1070
- if (!d.current || !s)
1070
+ if (!l.current || !s)
1071
1071
  return;
1072
1072
  const f = z(
1073
- d.current,
1073
+ l.current,
1074
1074
  document.querySelector(".bn-suggestion-menu, #ai-suggestion-menu")
1075
1075
  // TODO
1076
1076
  );
1077
- f === "top" ? d.current.scrollIntoView(!0) : f === "bottom" && d.current.scrollIntoView(!1);
1077
+ f === "top" ? l.current.scrollIntoView(!0) : f === "bottom" && l.current.scrollIntoView(!1);
1078
1078
  }, [s]), /* @__PURE__ */ g(
1079
1079
  "div",
1080
1080
  {
@@ -1083,10 +1083,10 @@ const Nn = (n) => {
1083
1083
  n.item.size === "small" ? "bn-gap-3 bn-py-1" : "",
1084
1084
  o
1085
1085
  ),
1086
- ref: E([t, d]),
1087
- id: u,
1086
+ ref: E([t, l]),
1087
+ id: b,
1088
1088
  onMouseDown: (f) => f.preventDefault(),
1089
- onClick: l,
1089
+ onClick: d,
1090
1090
  role: "option",
1091
1091
  "aria-selected": s || void 0,
1092
1092
  children: [
@@ -1130,9 +1130,9 @@ const Nn = (n) => {
1130
1130
  ]
1131
1131
  }
1132
1132
  );
1133
- }), Gn = p((n, t) => {
1133
+ }), Un = p((n, t) => {
1134
1134
  const { className: e, children: o, ...r } = n;
1135
- return m(r), /* @__PURE__ */ a(
1135
+ return u(r), /* @__PURE__ */ a(
1136
1136
  "div",
1137
1137
  {
1138
1138
  className: i("bn-px-2 bn-py-1.5 bn-text-sm bn-font-semibold", e),
@@ -1140,9 +1140,9 @@ const Nn = (n) => {
1140
1140
  children: o
1141
1141
  }
1142
1142
  );
1143
- }), Un = p((n, t) => {
1143
+ }), Hn = p((n, t) => {
1144
1144
  const { className: e, ...o } = n;
1145
- return m(o), /* @__PURE__ */ a("div", { className: i(e, "bn-animate-spin"), ref: t, children: /* @__PURE__ */ a(
1145
+ return u(o), /* @__PURE__ */ a("div", { className: i(e, "bn-animate-spin"), ref: t, children: /* @__PURE__ */ a(
1146
1146
  "svg",
1147
1147
  {
1148
1148
  xmlns: "http://www.w3.org/2000/svg",
@@ -1153,12 +1153,12 @@ const Nn = (n) => {
1153
1153
  children: /* @__PURE__ */ a("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" })
1154
1154
  }
1155
1155
  ) });
1156
- }), Hn = p((n, t) => {
1157
- const { className: e, children: o, onMouseDown: r, onClick: s, ...l } = n;
1158
- m(l, !1);
1159
- const u = h();
1156
+ }), On = p((n, t) => {
1157
+ const { className: e, children: o, onMouseDown: r, onClick: s, ...d } = n;
1158
+ u(d, !1);
1159
+ const b = h();
1160
1160
  return /* @__PURE__ */ a(
1161
- u.Button.Button,
1161
+ b.Button.Button,
1162
1162
  {
1163
1163
  variant: "ghost",
1164
1164
  className: i(
@@ -1170,22 +1170,22 @@ const Nn = (n) => {
1170
1170
  ref: t,
1171
1171
  onClick: s,
1172
1172
  onMouseDown: r,
1173
- ...l,
1173
+ ...d,
1174
1174
  children: o
1175
1175
  }
1176
1176
  );
1177
- }), On = p((n, t) => {
1177
+ }), Kn = p((n, t) => {
1178
1178
  const {
1179
1179
  className: e,
1180
1180
  children: o,
1181
1181
  draggable: r,
1182
1182
  onDragStart: s,
1183
- onDragEnd: l,
1184
- style: u,
1185
- label: c,
1186
- ...d
1183
+ onDragEnd: d,
1184
+ style: b,
1185
+ label: m,
1186
+ ...l
1187
1187
  } = n;
1188
- m(d, !1);
1188
+ u(l, !1);
1189
1189
  const f = h();
1190
1190
  return /* @__PURE__ */ a(
1191
1191
  f.Button.Button,
@@ -1193,12 +1193,12 @@ const Nn = (n) => {
1193
1193
  variant: "ghost",
1194
1194
  className: i(e, "bn-p-0 bn-h-fit bn-w-fit bn-text-gray-400"),
1195
1195
  ref: t,
1196
- "aria-label": c,
1196
+ "aria-label": m,
1197
1197
  draggable: r,
1198
1198
  onDragStart: s,
1199
- onDragEnd: l,
1200
- style: u,
1201
- ...d,
1199
+ onDragEnd: d,
1200
+ style: b,
1201
+ ...l,
1202
1202
  children: o
1203
1203
  }
1204
1204
  );
@@ -1209,18 +1209,18 @@ const Nn = (n) => {
1209
1209
  children: o,
1210
1210
  onMouseEnter: r,
1211
1211
  onMouseLeave: s,
1212
- variant: l,
1213
- ...u
1212
+ variant: d,
1213
+ ...b
1214
1214
  } = n;
1215
- m(u);
1216
- const c = h();
1217
- return /* @__PURE__ */ a(c.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a(
1215
+ u(b);
1216
+ const m = h();
1217
+ return /* @__PURE__ */ a(m.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a(
1218
1218
  "div",
1219
1219
  {
1220
1220
  className: i(
1221
1221
  e,
1222
1222
  "bn-flex bn-gap-1 bn-p-1 bn-bg-popover bn-text-popover-foreground bn-border bn-rounded-lg bn-shadow-md bn-h-fit",
1223
- l === "action-toolbar" ? "bn-w-fit" : ""
1223
+ d === "action-toolbar" ? "bn-w-fit" : ""
1224
1224
  ),
1225
1225
  ref: t,
1226
1226
  onMouseEnter: r,
@@ -1236,16 +1236,16 @@ const Nn = (n) => {
1236
1236
  children: o,
1237
1237
  mainTooltip: r,
1238
1238
  secondaryTooltip: s,
1239
- icon: l,
1240
- isSelected: u,
1241
- isDisabled: c,
1242
- onClick: d,
1239
+ icon: d,
1240
+ isSelected: b,
1241
+ isDisabled: m,
1242
+ onClick: l,
1243
1243
  label: f,
1244
1244
  variant: v,
1245
1245
  ...w
1246
1246
  } = n;
1247
- m(w, !1);
1248
- const C = h(), M = u === void 0 ? /* @__PURE__ */ g(
1247
+ u(w, !1);
1248
+ const C = h(), M = b === void 0 ? /* @__PURE__ */ g(
1249
1249
  C.Button.Button,
1250
1250
  {
1251
1251
  className: i(
@@ -1254,13 +1254,13 @@ const Nn = (n) => {
1254
1254
  ),
1255
1255
  variant: "ghost",
1256
1256
  size: v === "compact" ? "sm" : "default",
1257
- disabled: c,
1258
- onClick: d,
1257
+ disabled: m,
1258
+ onClick: l,
1259
1259
  ref: t,
1260
1260
  "aria-label": f,
1261
1261
  ...w,
1262
1262
  children: [
1263
- l,
1263
+ d,
1264
1264
  o
1265
1265
  ]
1266
1266
  }
@@ -1274,15 +1274,15 @@ const Nn = (n) => {
1274
1274
  ),
1275
1275
  size: v === "compact" ? "sm" : "default",
1276
1276
  "aria-label": f,
1277
- onClick: d,
1278
- pressed: u,
1279
- disabled: c,
1280
- "data-state": u ? "on" : "off",
1281
- "data-disabled": c,
1277
+ onClick: l,
1278
+ pressed: b,
1279
+ disabled: m,
1280
+ "data-state": b ? "on" : "off",
1281
+ "data-disabled": m,
1282
1282
  ref: t,
1283
1283
  ...w,
1284
1284
  children: [
1285
- l,
1285
+ d,
1286
1286
  o
1287
1287
  ]
1288
1288
  }
@@ -1303,46 +1303,46 @@ const Nn = (n) => {
1303
1303
  }
1304
1304
  ), F = p((n, t) => {
1305
1305
  const { className: e, items: o, isDisabled: r, ...s } = n;
1306
- m(s);
1307
- const l = h(), u = (d) => /* @__PURE__ */ g("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1308
- d.icon,
1309
- d.text
1310
- ] }), c = o.filter((d) => d.isSelected)[0];
1311
- return c ? /* @__PURE__ */ g(
1312
- l.Select.Select,
1306
+ u(s);
1307
+ const d = h(), b = (l) => /* @__PURE__ */ g("div", { className: "bn-flex bn-gap-1 bn-items-center", children: [
1308
+ l.icon,
1309
+ l.text
1310
+ ] }), m = o.filter((l) => l.isSelected)[0];
1311
+ return m ? /* @__PURE__ */ g(
1312
+ d.Select.Select,
1313
1313
  {
1314
- value: c.text,
1315
- onValueChange: (d) => {
1314
+ value: m.text,
1315
+ onValueChange: (l) => {
1316
1316
  var f, v;
1317
- return (v = (f = o.find((w) => w.text === d)).onClick) == null ? void 0 : v.call(f);
1317
+ return (v = (f = o.find((w) => w.text === l)).onClick) == null ? void 0 : v.call(f);
1318
1318
  },
1319
1319
  disabled: r,
1320
1320
  children: [
1321
- /* @__PURE__ */ a(l.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(l.Select.SelectValue, {}) }),
1322
- /* @__PURE__ */ a(l.Select.SelectContent, { className: e, ref: t, children: o.map((d) => /* @__PURE__ */ a(
1323
- l.Select.SelectItem,
1321
+ /* @__PURE__ */ a(d.Select.SelectTrigger, { className: "bn-border-none", children: /* @__PURE__ */ a(d.Select.SelectValue, {}) }),
1322
+ /* @__PURE__ */ a(d.Select.SelectContent, { className: e, ref: t, children: o.map((l) => /* @__PURE__ */ a(
1323
+ d.Select.SelectItem,
1324
1324
  {
1325
- disabled: d.isDisabled,
1326
- value: d.text,
1327
- children: /* @__PURE__ */ a(u, { ...d })
1325
+ disabled: l.isDisabled,
1326
+ value: l.text,
1327
+ children: /* @__PURE__ */ a(b, { ...l })
1328
1328
  },
1329
- d.text
1329
+ l.text
1330
1330
  )) })
1331
1331
  ]
1332
1332
  }
1333
1333
  ) : null;
1334
- }), Kn = p((n, t) => {
1334
+ }), Qn = p((n, t) => {
1335
1335
  const {
1336
1336
  className: e,
1337
1337
  children: o,
1338
1338
  selected: r,
1339
1339
  headerText: s,
1340
- onFocus: l,
1341
- onBlur: u,
1342
- tabIndex: c,
1343
- ...d
1340
+ onFocus: d,
1341
+ onBlur: b,
1342
+ tabIndex: m,
1343
+ ...l
1344
1344
  } = n;
1345
- m(d);
1345
+ u(l);
1346
1346
  const f = h();
1347
1347
  return /* @__PURE__ */ g(
1348
1348
  f.Card.Card,
@@ -1352,9 +1352,9 @@ const Nn = (n) => {
1352
1352
  "bn-w-[300px]",
1353
1353
  r ? "bn-bg-accent bn-text-accent-foreground" : ""
1354
1354
  ),
1355
- onFocus: l,
1356
- onBlur: u,
1357
- tabIndex: c,
1355
+ onFocus: d,
1356
+ onBlur: b,
1357
+ tabIndex: m,
1358
1358
  ref: t,
1359
1359
  children: [
1360
1360
  s && /* @__PURE__ */ a("div", { className: "bn-px-4 bn-pt-4 bn-italic bn-text-sm", children: s }),
@@ -1362,9 +1362,9 @@ const Nn = (n) => {
1362
1362
  ]
1363
1363
  }
1364
1364
  );
1365
- }), Qn = p((n, t) => {
1365
+ }), Wn = p((n, t) => {
1366
1366
  const { className: e, children: o, ...r } = n;
1367
- return m(r), /* @__PURE__ */ a(
1367
+ return u(r), /* @__PURE__ */ a(
1368
1368
  "div",
1369
1369
  {
1370
1370
  className: i(
@@ -1376,9 +1376,9 @@ const Nn = (n) => {
1376
1376
  children: o
1377
1377
  }
1378
1378
  );
1379
- }), Wn = p((n, t) => {
1379
+ }), Zn = p((n, t) => {
1380
1380
  const { className: e, children: o, ...r } = n;
1381
- m(r, !1);
1381
+ u(r, !1);
1382
1382
  const s = h();
1383
1383
  return /* @__PURE__ */ a(
1384
1384
  s.Button.Button,
@@ -1391,23 +1391,23 @@ const Nn = (n) => {
1391
1391
  children: o
1392
1392
  }
1393
1393
  );
1394
- }), Zn = p((n, t) => {
1395
- const { authorInfo: e, timeString: o, edited: r, ...s } = n;
1396
- m(s, !1);
1397
- const l = h();
1394
+ }), _n = p((n, t) => {
1395
+ const { authorInfo: e, timeString: o, edited: r, ...s } = n, d = Se();
1396
+ u(s, !1);
1397
+ const b = h();
1398
1398
  return e === "loading" ? /* @__PURE__ */ g(
1399
1399
  "div",
1400
1400
  {
1401
1401
  className: "bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-4",
1402
1402
  children: [
1403
1403
  /* @__PURE__ */ a(
1404
- l.Skeleton.Skeleton,
1404
+ b.Skeleton.Skeleton,
1405
1405
  {
1406
1406
  className: "bn-size-7 bn-rounded-full bn-bg-neutral-400 bn-animate-pulse"
1407
1407
  }
1408
1408
  ),
1409
1409
  /* @__PURE__ */ a(
1410
- l.Skeleton.Skeleton,
1410
+ b.Skeleton.Skeleton,
1411
1411
  {
1412
1412
  className: "bn-h-3 bn-w-32 bn-rounded-full bn-bg-neutral-400 bn-animate-pulse"
1413
1413
  }
@@ -1419,16 +1419,16 @@ const Nn = (n) => {
1419
1419
  {
1420
1420
  className: "bn-flex bn-flex-row bn-flex-nowrap bn-items-center bn-gap-4",
1421
1421
  children: [
1422
- /* @__PURE__ */ g(l.Avatar.Avatar, { children: [
1422
+ /* @__PURE__ */ g(b.Avatar.Avatar, { children: [
1423
1423
  /* @__PURE__ */ a(
1424
- l.Avatar.AvatarImage,
1424
+ b.Avatar.AvatarImage,
1425
1425
  {
1426
1426
  src: e.avatarUrl,
1427
1427
  alt: e.username,
1428
1428
  className: "bn-h-7 bn-rounded-full"
1429
1429
  }
1430
1430
  ),
1431
- /* @__PURE__ */ a(l.Avatar.AvatarFallback, { children: e.username[0] })
1431
+ /* @__PURE__ */ a(b.Avatar.AvatarFallback, { children: e.username[0] })
1432
1432
  ] }),
1433
1433
  /* @__PURE__ */ g(
1434
1434
  "div",
@@ -1439,7 +1439,7 @@ const Nn = (n) => {
1439
1439
  /* @__PURE__ */ g("span", { className: "bn-text-xs", children: [
1440
1440
  o,
1441
1441
  " ",
1442
- r && "(edited)"
1442
+ r && `(${d.comments.edited})`
1443
1443
  ] })
1444
1444
  ]
1445
1445
  }
@@ -1447,19 +1447,19 @@ const Nn = (n) => {
1447
1447
  ]
1448
1448
  }
1449
1449
  );
1450
- }), _n = p((n, t) => {
1450
+ }), Jn = p((n, t) => {
1451
1451
  const {
1452
1452
  className: e,
1453
1453
  showActions: o,
1454
1454
  authorInfo: r,
1455
1455
  timeString: s,
1456
- actions: l,
1457
- edited: u,
1458
- children: c,
1459
- ...d
1456
+ actions: d,
1457
+ edited: b,
1458
+ children: m,
1459
+ ...l
1460
1460
  } = n;
1461
- m(d);
1462
- const [f, v] = Be(!1), { focused: w, ref: C } = ye(), M = l && (o === !0 || o === void 0 || o === "hover" && f || w);
1461
+ u(l);
1462
+ const [f, v] = Fe(!1), { focused: w, ref: C } = ye(), M = d && (o === !0 || o === void 0 || o === "hover" && f || w);
1463
1463
  return /* @__PURE__ */ g(
1464
1464
  "div",
1465
1465
  {
@@ -1473,18 +1473,18 @@ const Nn = (n) => {
1473
1473
  {
1474
1474
  className: "bn-absolute bn-right-0 bn-top-0 bn-z-10",
1475
1475
  ref: C,
1476
- children: l
1476
+ children: d
1477
1477
  }
1478
1478
  ) : null,
1479
- /* @__PURE__ */ a(Zn, { ...n }),
1480
- c
1479
+ /* @__PURE__ */ a(_n, { ...n }),
1480
+ m
1481
1481
  ]
1482
1482
  }
1483
1483
  );
1484
- }), Jn = p((n, t) => {
1485
- const { className: e, onFocus: o, onBlur: r, autoFocus: s, editor: l, editable: u, ...c } = n;
1486
- return m(c), /* @__PURE__ */ a(
1487
- st,
1484
+ }), Xn = p((n, t) => {
1485
+ const { className: e, onFocus: o, onBlur: r, autoFocus: s, editor: d, editable: b, ...m } = n;
1486
+ return u(m), /* @__PURE__ */ a(
1487
+ it,
1488
1488
  {
1489
1489
  autoFocus: s,
1490
1490
  className: i(e, ""),
@@ -1494,36 +1494,36 @@ const Nn = (n) => {
1494
1494
  tableHandles: !1,
1495
1495
  filePanel: !1,
1496
1496
  formattingToolbar: !1,
1497
- editable: u,
1497
+ editable: b,
1498
1498
  ref: t,
1499
1499
  onFocus: o,
1500
1500
  onBlur: r,
1501
1501
  children: /* @__PURE__ */ a(
1502
- Se,
1502
+ Te,
1503
1503
  {
1504
- formattingToolbar: Xn
1504
+ formattingToolbar: Yn
1505
1505
  }
1506
1506
  )
1507
1507
  }
1508
1508
  );
1509
- }), Xn = () => {
1510
- const n = Te([]).filter(
1509
+ }), Yn = () => {
1510
+ const n = Me([]).filter(
1511
1511
  (t) => t.key !== "nestBlockButton" && t.key !== "unnestBlockButton"
1512
1512
  );
1513
- return /* @__PURE__ */ a(Me, { blockTypeSelectItems: [], children: n });
1514
- }, Yn = p((n, t) => {
1513
+ return /* @__PURE__ */ a(Ie, { blockTypeSelectItems: [], children: n });
1514
+ }, et = p((n, t) => {
1515
1515
  const {
1516
1516
  className: e,
1517
1517
  text: o,
1518
1518
  icon: r,
1519
1519
  isSelected: s,
1520
- mainTooltip: l,
1521
- secondaryTooltip: u,
1522
- onClick: c,
1523
- onMouseEnter: d,
1520
+ mainTooltip: d,
1521
+ secondaryTooltip: b,
1522
+ onClick: m,
1523
+ onMouseEnter: l,
1524
1524
  ...f
1525
1525
  } = n;
1526
- m(f, !1);
1526
+ u(f, !1);
1527
1527
  const v = h(), w = /* @__PURE__ */ g(
1528
1528
  v.Button.Button,
1529
1529
  {
@@ -1532,8 +1532,8 @@ const Nn = (n) => {
1532
1532
  e,
1533
1533
  "bn-flex bn-items-center bn-gap-1 bn-rounded-full bn-h-7 bn-px-2.5"
1534
1534
  ),
1535
- onClick: c,
1536
- onMouseEnter: d,
1535
+ onClick: m,
1536
+ onMouseEnter: l,
1537
1537
  ref: t,
1538
1538
  children: [
1539
1539
  /* @__PURE__ */ a("span", { children: r }),
@@ -1541,22 +1541,22 @@ const Nn = (n) => {
1541
1541
  ]
1542
1542
  }
1543
1543
  );
1544
- return l ? /* @__PURE__ */ g(v.Tooltip.Tooltip, { children: [
1544
+ return d ? /* @__PURE__ */ g(v.Tooltip.Tooltip, { children: [
1545
1545
  /* @__PURE__ */ a(v.Tooltip.TooltipTrigger, { asChild: !0, children: w }),
1546
1546
  /* @__PURE__ */ g(
1547
1547
  v.Tooltip.TooltipContent,
1548
1548
  {
1549
1549
  className: "bn-flex bn-flex-col bn-items-center bn-whitespace-pre-wrap",
1550
1550
  children: [
1551
- /* @__PURE__ */ a("span", { children: l }),
1552
- u && /* @__PURE__ */ a("span", { children: u })
1551
+ /* @__PURE__ */ a("span", { children: d }),
1552
+ b && /* @__PURE__ */ a("span", { children: b })
1553
1553
  ]
1554
1554
  }
1555
1555
  )
1556
1556
  ] }) : w;
1557
- }), et = p((n, t) => {
1557
+ }), nt = p((n, t) => {
1558
1558
  const { className: e, children: o, ...r } = n;
1559
- m(r);
1559
+ u(r);
1560
1560
  const s = h();
1561
1561
  return /* @__PURE__ */ a(s.Tooltip.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ a(
1562
1562
  "div",
@@ -1569,12 +1569,12 @@ const Nn = (n) => {
1569
1569
  children: o
1570
1570
  }
1571
1571
  ) });
1572
- }), nt = p((n, t) => {
1573
- const { className: e, children: o, onClick: r, label: s, ...l } = n;
1574
- m(l);
1575
- const u = h();
1572
+ }), tt = p((n, t) => {
1573
+ const { className: e, children: o, onClick: r, label: s, ...d } = n;
1574
+ u(d);
1575
+ const b = h();
1576
1576
  return /* @__PURE__ */ a(
1577
- u.Button.Button,
1577
+ b.Button.Button,
1578
1578
  {
1579
1579
  type: "submit",
1580
1580
  className: e,
@@ -1584,47 +1584,47 @@ const Nn = (n) => {
1584
1584
  children: o
1585
1585
  }
1586
1586
  );
1587
- }), tt = p((n, t) => {
1588
- const { className: e, accept: o, value: r, placeholder: s, onChange: l, ...u } = n;
1589
- m(u);
1590
- const c = h();
1587
+ }), ot = p((n, t) => {
1588
+ const { className: e, accept: o, value: r, placeholder: s, onChange: d, ...b } = n;
1589
+ u(b);
1590
+ const m = h();
1591
1591
  return /* @__PURE__ */ a(
1592
- c.Input.Input,
1592
+ m.Input.Input,
1593
1593
  {
1594
1594
  type: "file",
1595
1595
  className: e,
1596
1596
  ref: t,
1597
1597
  accept: o,
1598
1598
  value: r ? r.name : void 0,
1599
- onChange: async (d) => l == null ? void 0 : l(d.target.files[0]),
1599
+ onChange: async (l) => d == null ? void 0 : d(l.target.files[0]),
1600
1600
  placeholder: s
1601
1601
  }
1602
1602
  );
1603
- }), ot = p((n, t) => {
1604
- const { className: e, isSelected: o, onClick: r, item: s, id: l, ...u } = n;
1605
- m(u);
1606
- const c = A(null);
1603
+ }), at = p((n, t) => {
1604
+ const { className: e, isSelected: o, onClick: r, item: s, id: d, ...b } = n;
1605
+ u(b);
1606
+ const m = A(null);
1607
1607
  return $(() => {
1608
- if (!c.current || !o)
1608
+ if (!m.current || !o)
1609
1609
  return;
1610
- const d = z(
1611
- c.current,
1610
+ const l = z(
1611
+ m.current,
1612
1612
  document.querySelector(".bn-grid-suggestion-menu")
1613
1613
  );
1614
- d === "top" ? c.current.scrollIntoView(!0) : d === "bottom" && c.current.scrollIntoView(!1);
1614
+ l === "top" ? m.current.scrollIntoView(!0) : l === "bottom" && m.current.scrollIntoView(!1);
1615
1615
  }, [o]), /* @__PURE__ */ a(
1616
1616
  "div",
1617
1617
  {
1618
1618
  className: e,
1619
- ref: E([t, c]),
1620
- id: l,
1619
+ ref: E([t, m]),
1620
+ id: d,
1621
1621
  role: "option",
1622
1622
  onClick: r,
1623
1623
  "aria-selected": o || void 0,
1624
1624
  children: s.icon
1625
1625
  }
1626
1626
  );
1627
- }), at = p((n, t) => {
1627
+ }), rt = p((n, t) => {
1628
1628
  const {
1629
1629
  className: e,
1630
1630
  children: o,
@@ -1632,7 +1632,7 @@ const Nn = (n) => {
1632
1632
  columns: r,
1633
1633
  ...s
1634
1634
  } = n;
1635
- return m(s), /* @__PURE__ */ a(
1635
+ return u(s), /* @__PURE__ */ a(
1636
1636
  "div",
1637
1637
  {
1638
1638
  className: e,
@@ -1641,18 +1641,18 @@ const Nn = (n) => {
1641
1641
  children: o
1642
1642
  }
1643
1643
  );
1644
- }), rt = {
1644
+ }), st = {
1645
1645
  FormattingToolbar: {
1646
1646
  Root: k,
1647
1647
  Button: B,
1648
1648
  Select: F
1649
1649
  },
1650
1650
  FilePanel: {
1651
- Root: Rn,
1652
- Button: nt,
1653
- FileInput: tt,
1654
- TabPanel: kn,
1655
- TextInput: Bn
1651
+ Root: kn,
1652
+ Button: tt,
1653
+ FileInput: ot,
1654
+ TabPanel: Bn,
1655
+ TextInput: Fn
1656
1656
  },
1657
1657
  LinkToolbar: {
1658
1658
  Root: k,
@@ -1660,37 +1660,37 @@ const Nn = (n) => {
1660
1660
  Select: F
1661
1661
  },
1662
1662
  SideMenu: {
1663
- Root: zn,
1664
- Button: En
1663
+ Root: En,
1664
+ Button: Vn
1665
1665
  },
1666
1666
  SuggestionMenu: {
1667
- Root: $n,
1668
- Item: qn,
1669
- EmptyItem: jn,
1670
- Label: Gn,
1671
- Loader: Un
1667
+ Root: jn,
1668
+ Item: Gn,
1669
+ EmptyItem: qn,
1670
+ Label: Un,
1671
+ Loader: Hn
1672
1672
  },
1673
1673
  GridSuggestionMenu: {
1674
- Root: Vn,
1675
- Item: ot,
1676
- EmptyItem: An,
1677
- Loader: at
1674
+ Root: An,
1675
+ Item: at,
1676
+ EmptyItem: $n,
1677
+ Loader: rt
1678
1678
  },
1679
1679
  TableHandle: {
1680
- Root: On,
1681
- ExtendButton: Hn
1680
+ Root: Kn,
1681
+ ExtendButton: On
1682
1682
  },
1683
1683
  Comments: {
1684
- Comment: _n,
1685
- Editor: Jn,
1686
- Card: Kn,
1687
- CardSection: Qn,
1688
- ExpandSectionsPrompt: Wn
1684
+ Comment: Jn,
1685
+ Editor: Xn,
1686
+ Card: Qn,
1687
+ CardSection: Wn,
1688
+ ExpandSectionsPrompt: Zn
1689
1689
  },
1690
1690
  Generic: {
1691
1691
  Badge: {
1692
- Root: Yn,
1693
- Group: et
1692
+ Root: et,
1693
+ Group: nt
1694
1694
  },
1695
1695
  Toolbar: {
1696
1696
  Root: k,
@@ -1698,31 +1698,31 @@ const Nn = (n) => {
1698
1698
  Select: F
1699
1699
  },
1700
1700
  Form: {
1701
- Root: Nn,
1702
- TextInput: xn
1701
+ Root: xn,
1702
+ TextInput: wn
1703
1703
  },
1704
1704
  Menu: {
1705
- Root: Cn,
1706
- Trigger: yn,
1707
- Dropdown: Sn,
1708
- Divider: Mn,
1709
- Label: In,
1710
- Item: Tn,
1711
- Button: Dn
1705
+ Root: yn,
1706
+ Trigger: Sn,
1707
+ Dropdown: Tn,
1708
+ Divider: In,
1709
+ Label: Dn,
1710
+ Item: Mn,
1711
+ Button: Rn
1712
1712
  },
1713
1713
  Popover: {
1714
- Root: Fn,
1715
- Trigger: Pn,
1716
- Content: Ln
1714
+ Root: Pn,
1715
+ Trigger: Ln,
1716
+ Content: zn
1717
1717
  }
1718
1718
  }
1719
- }, st = (n) => {
1719
+ }, it = (n) => {
1720
1720
  const { className: t, shadCNComponents: e, ...o } = n, r = V(() => ({
1721
- ...vn,
1721
+ ...Nn,
1722
1722
  ...e
1723
1723
  }), [e]);
1724
- return /* @__PURE__ */ a(ve.Provider, { value: r, children: /* @__PURE__ */ a(Ie.Provider, { value: rt, children: /* @__PURE__ */ a(
1725
- De,
1724
+ return /* @__PURE__ */ a(ve.Provider, { value: r, children: /* @__PURE__ */ a(De.Provider, { value: st, children: /* @__PURE__ */ a(
1725
+ Re,
1726
1726
  {
1727
1727
  className: Ce("bn-shadcn", t || ""),
1728
1728
  ...o
@@ -1730,7 +1730,7 @@ const Nn = (n) => {
1730
1730
  ) }) });
1731
1731
  };
1732
1732
  export {
1733
- st as BlockNoteView,
1734
- rt as components
1733
+ it as BlockNoteView,
1734
+ st as components
1735
1735
  };
1736
1736
  //# sourceMappingURL=blocknote-shadcn.js.map