@blocknote/ariakit 0.13.2 → 0.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import we, { forwardRef as E } from "react";
2
2
  import { ComponentsContext as vr, BlockNoteViewRaw as mr } from "@blocknote/react";
3
- import * as f from "@ariakit/react";
3
+ import * as u from "@ariakit/react";
4
4
  import { assertEmpty as y, mergeCSSClasses as _, isSafari as pr } from "@blocknote/core";
5
5
  var re = { exports: {} }, $ = {};
6
6
  /**
@@ -17,18 +17,18 @@ function br() {
17
17
  if (Se)
18
18
  return $;
19
19
  Se = 1;
20
- var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function p(g, d, h) {
20
+ var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function m(g, d, h) {
22
22
  var R, k = {}, N = null, W = null;
23
23
  h !== void 0 && (N = "" + h), d.key !== void 0 && (N = "" + d.key), d.ref !== void 0 && (W = d.ref);
24
24
  for (R in d)
25
- n.call(d, R) && !u.hasOwnProperty(R) && (k[R] = d[R]);
25
+ n.call(d, R) && !f.hasOwnProperty(R) && (k[R] = d[R]);
26
26
  if (g && g.defaultProps)
27
27
  for (R in d = g.defaultProps, d)
28
28
  k[R] === void 0 && (k[R] = d[R]);
29
29
  return { $$typeof: s, type: g, key: N, ref: W, props: k, _owner: l.current };
30
30
  }
31
- return $.Fragment = i, $.jsx = p, $.jsxs = p, $;
31
+ return $.Fragment = i, $.jsx = m, $.jsxs = m, $;
32
32
  }
33
33
  var B = {};
34
34
  /**
@@ -43,8 +43,8 @@ var B = {};
43
43
  var Pe;
44
44
  function hr() {
45
45
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
46
- var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), te = Symbol.iterator, Oe = "@@iterator";
47
- function Ie(e) {
46
+ var a = we, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), te = Symbol.iterator, Oe = "@@iterator";
47
+ function Fe(e) {
48
48
  if (e === null || typeof e != "object")
49
49
  return null;
50
50
  var r = te && e[te] || e[Oe];
@@ -62,16 +62,16 @@ function hr() {
62
62
  {
63
63
  var c = D.ReactDebugCurrentFrame, b = c.getStackAddendum();
64
64
  b !== "" && (r += "%s", t = t.concat([b]));
65
- var x = t.map(function(m) {
66
- return String(m);
65
+ var x = t.map(function(p) {
66
+ return String(p);
67
67
  });
68
68
  x.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, x);
69
69
  }
70
70
  }
71
- var Fe = !1, Me = !1, Ae = !1, Le = !1, $e = !1, ne;
71
+ var Ie = !1, Me = !1, Ae = !1, Le = !1, $e = !1, ne;
72
72
  ne = Symbol.for("react.module.reference");
73
73
  function Be(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === n || e === u || $e || e === l || e === h || e === R || Le || e === W || Fe || Me || Ae || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === k || e.$$typeof === p || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object
74
+ return !!(typeof e == "string" || typeof e == "function" || e === n || e === f || $e || e === l || e === h || e === R || Le || e === W || Ie || Me || Ae || typeof e == "object" && e !== null && (e.$$typeof === N || e.$$typeof === k || e.$$typeof === m || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object
75
75
  // types supported by any Flight configuration anywhere since
76
76
  // we don't know which Flight build this will end up being used
77
77
  // with.
@@ -99,7 +99,7 @@ function hr() {
99
99
  return "Fragment";
100
100
  case i:
101
101
  return "Portal";
102
- case u:
102
+ case f:
103
103
  return "Profiler";
104
104
  case l:
105
105
  return "StrictMode";
@@ -113,7 +113,7 @@ function hr() {
113
113
  case g:
114
114
  var r = e;
115
115
  return ae(r) + ".Consumer";
116
- case p:
116
+ case m:
117
117
  var t = e;
118
118
  return ae(t._context) + ".Provider";
119
119
  case d:
@@ -122,9 +122,9 @@ function hr() {
122
122
  var c = e.displayName || null;
123
123
  return c !== null ? c : w(e.type) || "Memo";
124
124
  case N: {
125
- var b = e, x = b._payload, m = b._init;
125
+ var b = e, x = b._payload, p = b._init;
126
126
  try {
127
- return w(m(x));
127
+ return w(p(x));
128
128
  } catch {
129
129
  return null;
130
130
  }
@@ -132,7 +132,7 @@ function hr() {
132
132
  }
133
133
  return null;
134
134
  }
135
- var I = Object.assign, A = 0, oe, se, ie, le, ce, ue, fe;
135
+ var F = Object.assign, A = 0, oe, se, ie, le, ce, ue, fe;
136
136
  function de() {
137
137
  }
138
138
  de.__reactDisabledLog = !0;
@@ -168,25 +168,25 @@ function hr() {
168
168
  writable: !0
169
169
  };
170
170
  Object.defineProperties(console, {
171
- log: I({}, e, {
171
+ log: F({}, e, {
172
172
  value: oe
173
173
  }),
174
- info: I({}, e, {
174
+ info: F({}, e, {
175
175
  value: se
176
176
  }),
177
- warn: I({}, e, {
177
+ warn: F({}, e, {
178
178
  value: ie
179
179
  }),
180
- error: I({}, e, {
180
+ error: F({}, e, {
181
181
  value: le
182
182
  }),
183
- group: I({}, e, {
183
+ group: F({}, e, {
184
184
  value: ce
185
185
  }),
186
- groupCollapsed: I({}, e, {
186
+ groupCollapsed: F({}, e, {
187
187
  value: ue
188
188
  }),
189
- groupEnd: I({}, e, {
189
+ groupEnd: F({}, e, {
190
190
  value: fe
191
191
  })
192
192
  });
@@ -229,27 +229,27 @@ function hr() {
229
229
  x = J.current, J.current = null, Ye();
230
230
  try {
231
231
  if (r) {
232
- var m = function() {
232
+ var p = function() {
233
233
  throw Error();
234
234
  };
235
- if (Object.defineProperty(m.prototype, "props", {
235
+ if (Object.defineProperty(p.prototype, "props", {
236
236
  set: function() {
237
237
  throw Error();
238
238
  }
239
239
  }), typeof Reflect == "object" && Reflect.construct) {
240
240
  try {
241
- Reflect.construct(m, []);
241
+ Reflect.construct(p, []);
242
242
  } catch (O) {
243
243
  c = O;
244
244
  }
245
- Reflect.construct(e, [], m);
245
+ Reflect.construct(e, [], p);
246
246
  } else {
247
247
  try {
248
- m.call();
248
+ p.call();
249
249
  } catch (O) {
250
250
  c = O;
251
251
  }
252
- e.call(m.prototype);
252
+ e.call(p.prototype);
253
253
  }
254
254
  } else {
255
255
  try {
@@ -331,19 +331,19 @@ function hr() {
331
331
  function Je(e, r, t, c, b) {
332
332
  {
333
333
  var x = Function.call.bind(G);
334
- for (var m in e)
335
- if (x(e, m)) {
334
+ for (var p in e)
335
+ if (x(e, p)) {
336
336
  var v = void 0;
337
337
  try {
338
- if (typeof e[m] != "function") {
339
- var P = Error((c || "React class") + ": " + t + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ if (typeof e[p] != "function") {
339
+ var P = Error((c || "React class") + ": " + t + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
340
  throw P.name = "Invariant Violation", P;
341
341
  }
342
- v = e[m](r, m, c, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
+ v = e[p](r, p, c, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
343
  } catch (j) {
344
344
  v = j;
345
345
  }
346
- v && !(v instanceof Error) && (q(b), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", t, m, typeof v), q(null)), v instanceof Error && !(v.message in me) && (me[v.message] = !0, q(b), S("Failed %s type: %s", t, v.message), q(null));
346
+ v && !(v instanceof Error) && (q(b), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", t, p, typeof v), q(null)), v instanceof Error && !(v.message in me) && (me[v.message] = !0, q(b), S("Failed %s type: %s", t, v.message), q(null));
347
347
  }
348
348
  }
349
349
  }
@@ -422,7 +422,7 @@ function hr() {
422
422
  });
423
423
  }
424
424
  }
425
- var nr = function(e, r, t, c, b, x, m) {
425
+ var nr = function(e, r, t, c, b, x, p) {
426
426
  var v = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
428
  $$typeof: s,
@@ -430,7 +430,7 @@ function hr() {
430
430
  type: e,
431
431
  key: r,
432
432
  ref: t,
433
- props: m,
433
+ props: p,
434
434
  // Record the component responsible for creating this element.
435
435
  _owner: x
436
436
  };
@@ -453,24 +453,24 @@ function hr() {
453
453
  };
454
454
  function ar(e, r, t, c, b) {
455
455
  {
456
- var x, m = {}, v = null, P = null;
456
+ var x, p = {}, v = null, P = null;
457
457
  t !== void 0 && (he(t), v = "" + t), Qe(r) && (he(r.key), v = "" + r.key), Ze(r) && (P = r.ref, er(r, b));
458
458
  for (x in r)
459
- G.call(r, x) && !Xe.hasOwnProperty(x) && (m[x] = r[x]);
459
+ G.call(r, x) && !Xe.hasOwnProperty(x) && (p[x] = r[x]);
460
460
  if (e && e.defaultProps) {
461
461
  var j = e.defaultProps;
462
462
  for (x in j)
463
- m[x] === void 0 && (m[x] = j[x]);
463
+ p[x] === void 0 && (p[x] = j[x]);
464
464
  }
465
465
  if (v || P) {
466
466
  var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- v && rr(m, T), P && tr(m, T);
467
+ v && rr(p, T), P && tr(p, T);
468
468
  }
469
- return nr(e, v, P, b, c, L.current, m);
469
+ return nr(e, v, P, b, c, L.current, p);
470
470
  }
471
471
  }
472
472
  var Z = D.ReactCurrentOwner, ye = D.ReactDebugCurrentFrame;
473
- function F(e) {
473
+ function I(e) {
474
474
  if (e) {
475
475
  var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
476
476
  ye.setExtraStackFrame(t);
@@ -528,7 +528,7 @@ Check the top-level render call using <` + t + ">.");
528
528
  return;
529
529
  Ee[t] = !0;
530
530
  var c = "";
531
- e && e._owner && e._owner !== Z.current && (c = " It was passed a child from " + w(e._owner.type) + "."), F(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, c), F(null);
531
+ e && e._owner && e._owner !== Z.current && (c = " It was passed a child from " + w(e._owner.type) + "."), I(e), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, c), I(null);
532
532
  }
533
533
  }
534
534
  function Te(e, r) {
@@ -543,10 +543,10 @@ Check the top-level render call using <` + t + ">.");
543
543
  else if (ee(e))
544
544
  e._store && (e._store.validated = !0);
545
545
  else if (e) {
546
- var b = Ie(e);
546
+ var b = Fe(e);
547
547
  if (typeof b == "function" && b !== e.entries)
548
- for (var x = b.call(e), m; !(m = x.next()).done; )
549
- ee(m.value) && je(m.value, r);
548
+ for (var x = b.call(e), p; !(p = x.next()).done; )
549
+ ee(p.value) && je(p.value, r);
550
550
  }
551
551
  }
552
552
  }
@@ -580,17 +580,17 @@ Check the top-level render call using <` + t + ">.");
580
580
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
581
581
  var c = r[t];
582
582
  if (c !== "children" && c !== "key") {
583
- F(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), F(null);
583
+ I(e), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), I(null);
584
584
  break;
585
585
  }
586
586
  }
587
- e.ref !== null && (F(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
587
+ e.ref !== null && (I(e), S("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
588
588
  }
589
589
  }
590
590
  function _e(e, r, t, c, b, x) {
591
591
  {
592
- var m = Be(e);
593
- if (!m) {
592
+ var p = Be(e);
593
+ if (!p) {
594
594
  var v = "";
595
595
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
596
596
  var P = or(b);
@@ -601,7 +601,7 @@ Check the top-level render call using <` + t + ">.");
601
601
  var T = ar(e, r, t, b, x);
602
602
  if (T == null)
603
603
  return T;
604
- if (m) {
604
+ if (p) {
605
605
  var C = r.children;
606
606
  if (C !== void 0)
607
607
  if (c)
@@ -631,14 +631,14 @@ process.env.NODE_ENV === "production" ? re.exports = br() : re.exports = hr();
631
631
  var o = re.exports;
632
632
  const gr = (a) => {
633
633
  const { children: s, ...i } = a;
634
- return y(i), /* @__PURE__ */ o.jsx(f.FormProvider, { children: s });
634
+ return y(i), /* @__PURE__ */ o.jsx(u.FormProvider, { children: s });
635
635
  }, xr = E((a, s) => {
636
636
  const {
637
637
  className: i,
638
638
  name: n,
639
639
  label: l,
640
- icon: u,
641
- value: p,
640
+ icon: f,
641
+ value: m,
642
642
  autoFocus: g,
643
643
  placeholder: d,
644
644
  onKeyDown: h,
@@ -647,16 +647,16 @@ const gr = (a) => {
647
647
  ...N
648
648
  } = a;
649
649
  return y(N), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
650
- a.label && /* @__PURE__ */ o.jsx(f.FormLabel, { name: n, children: l }),
650
+ a.label && /* @__PURE__ */ o.jsx(u.FormLabel, { name: n, children: l }),
651
651
  /* @__PURE__ */ o.jsxs("div", { className: "bn-ak-input-wrapper", children: [
652
- u,
652
+ f,
653
653
  /* @__PURE__ */ o.jsx(
654
- f.FormInput,
654
+ u.FormInput,
655
655
  {
656
656
  className: _("bn-ak-input", i || ""),
657
657
  ref: s,
658
658
  name: n,
659
- value: p,
659
+ value: m,
660
660
  autoFocus: g,
661
661
  placeholder: d,
662
662
  onKeyDown: h,
@@ -673,10 +673,10 @@ const gr = (a) => {
673
673
  position: n,
674
674
  sub: l,
675
675
  // unused
676
- ...u
676
+ ...f
677
677
  } = a;
678
- return y(u), /* @__PURE__ */ o.jsx(
679
- f.MenuProvider,
678
+ return y(f), /* @__PURE__ */ o.jsx(
679
+ u.MenuProvider,
680
680
  {
681
681
  placement: n,
682
682
  setOpen: i,
@@ -690,10 +690,10 @@ const gr = (a) => {
690
690
  children: n,
691
691
  sub: l,
692
692
  // unused
693
- ...u
693
+ ...f
694
694
  } = a;
695
- return y(u), /* @__PURE__ */ o.jsx(
696
- f.Menu,
695
+ return y(f), /* @__PURE__ */ o.jsx(
696
+ u.Menu,
697
697
  {
698
698
  className: _("bn-ak-menu", i || ""),
699
699
  ref: s,
@@ -701,23 +701,23 @@ const gr = (a) => {
701
701
  }
702
702
  );
703
703
  }), Er = E((a, s) => {
704
- const { className: i, children: n, icon: l, checked: u, subTrigger: p, onClick: g, ...d } = a;
705
- return y(d), p ? /* @__PURE__ */ o.jsxs(
706
- f.MenuButton,
704
+ const { className: i, children: n, icon: l, checked: f, subTrigger: m, onClick: g, ...d } = a;
705
+ return y(d), m ? /* @__PURE__ */ o.jsxs(
706
+ u.MenuButton,
707
707
  {
708
- render: /* @__PURE__ */ o.jsx(f.MenuItem, {}),
708
+ render: /* @__PURE__ */ o.jsx(u.MenuItem, {}),
709
709
  className: _("bn-ak-menu-item", i || ""),
710
710
  ref: s,
711
711
  onClick: g,
712
712
  children: [
713
713
  l,
714
714
  n,
715
- /* @__PURE__ */ o.jsx(f.MenuButtonArrow, {}),
716
- u !== void 0 && /* @__PURE__ */ o.jsx(f.CheckboxCheck, { checked: u })
715
+ /* @__PURE__ */ o.jsx(u.MenuButtonArrow, {}),
716
+ f !== void 0 && /* @__PURE__ */ o.jsx(u.CheckboxCheck, { checked: f })
717
717
  ]
718
718
  }
719
719
  ) : /* @__PURE__ */ o.jsxs(
720
- f.MenuItem,
720
+ u.MenuItem,
721
721
  {
722
722
  className: _("bn-ak-menu-item", i || ""),
723
723
  ref: s,
@@ -725,14 +725,14 @@ const gr = (a) => {
725
725
  children: [
726
726
  l,
727
727
  n,
728
- u !== void 0 && /* @__PURE__ */ o.jsx(f.CheckboxCheck, { checked: u })
728
+ f !== void 0 && /* @__PURE__ */ o.jsx(u.CheckboxCheck, { checked: f })
729
729
  ]
730
730
  }
731
731
  );
732
732
  }), jr = E((a, s) => {
733
733
  const { className: i, children: n, ...l } = a;
734
734
  return y(l), /* @__PURE__ */ o.jsx(
735
- f.MenuGroupLabel,
735
+ u.MenuGroupLabel,
736
736
  {
737
737
  className: _("bn-ak-group-label", i || ""),
738
738
  ref: s,
@@ -741,11 +741,11 @@ const gr = (a) => {
741
741
  );
742
742
  }), Tr = (a) => {
743
743
  const { children: s, sub: i, ...n } = a;
744
- return y(n), i ? s : /* @__PURE__ */ o.jsx(f.MenuButton, { render: s });
744
+ return y(n), i ? s : /* @__PURE__ */ o.jsx(u.MenuButton, { render: s });
745
745
  }, _r = E((a, s) => {
746
746
  const { className: i, ...n } = a;
747
747
  return y(n), /* @__PURE__ */ o.jsx(
748
- f.MenuSeparator,
748
+ u.MenuSeparator,
749
749
  {
750
750
  className: _("bn-ak-separator", i || ""),
751
751
  ref: s
@@ -756,8 +756,8 @@ const gr = (a) => {
756
756
  className: i,
757
757
  tabs: n,
758
758
  defaultOpenTab: l,
759
- openTab: u,
760
- setOpenTab: p,
759
+ openTab: f,
760
+ setOpenTab: m,
761
761
  loading: g,
762
762
  // TODO: implement loading
763
763
  ...d
@@ -768,109 +768,110 @@ const gr = (a) => {
768
768
  className: _("bn-ak-wrapper", i || ""),
769
769
  ref: s,
770
770
  children: /* @__PURE__ */ o.jsxs(
771
- f.TabProvider,
771
+ u.TabProvider,
772
772
  {
773
773
  defaultSelectedId: l,
774
- selectedId: u,
774
+ selectedId: f,
775
775
  setActiveId: (h) => {
776
- h && p(h);
776
+ h && m(h);
777
777
  },
778
778
  children: [
779
- /* @__PURE__ */ o.jsx(f.TabList, { className: "bn-ak-tab-list", children: n.map((h) => /* @__PURE__ */ o.jsx(f.Tab, { className: "bn-ak-tab", id: h.name, children: h.name }, h.name)) }),
780
- /* @__PURE__ */ o.jsx("div", { className: "bn-ak-panels", children: n.map((h) => /* @__PURE__ */ o.jsx(f.TabPanel, { tabId: h.name, children: h.tabPanel }, h.name)) })
779
+ /* @__PURE__ */ o.jsx(u.TabList, { className: "bn-ak-tab-list", children: n.map((h) => /* @__PURE__ */ o.jsx(u.Tab, { className: "bn-ak-tab", id: h.name, children: h.name }, h.name)) }),
780
+ /* @__PURE__ */ o.jsx("div", { className: "bn-ak-panels", children: n.map((h) => /* @__PURE__ */ o.jsx(u.TabPanel, { tabId: h.name, children: h.tabPanel }, h.name)) })
781
781
  ]
782
782
  }
783
783
  )
784
784
  }
785
785
  );
786
786
  }), Sr = E((a, s) => {
787
- const { className: i, children: n, onClick: l, label: u, ...p } = a;
788
- return y(p), /* @__PURE__ */ o.jsx(
789
- f.Button,
787
+ const { className: i, children: n, onClick: l, label: f, ...m } = a;
788
+ return y(m), /* @__PURE__ */ o.jsx(
789
+ u.Button,
790
790
  {
791
791
  className: _("bn-ak-button", i || ""),
792
792
  onClick: l,
793
- "aria-label": u,
793
+ "aria-label": f,
794
794
  ref: s,
795
795
  children: n
796
796
  }
797
797
  );
798
798
  }), Pr = E((a, s) => {
799
- const { className: i, value: n, placeholder: l, onChange: u, ...p } = a;
800
- return y(p), /* @__PURE__ */ o.jsx(f.FormProvider, { children: /* @__PURE__ */ o.jsx(
801
- f.FormInput,
799
+ const { className: i, accept: n, value: l, placeholder: f, onChange: m, ...g } = a;
800
+ return y(g), /* @__PURE__ */ o.jsx(u.FormProvider, { children: /* @__PURE__ */ o.jsx(
801
+ u.FormInput,
802
802
  {
803
803
  className: i,
804
804
  ref: s,
805
805
  name: "panel-input",
806
806
  type: "file",
807
- value: n ? n.name : void 0,
808
- onChange: async (g) => u == null ? void 0 : u(g.target.files[0]),
809
- placeholder: l
807
+ accept: n,
808
+ value: l ? l.name : void 0,
809
+ onChange: async (d) => m == null ? void 0 : m(d.target.files[0]),
810
+ placeholder: f
810
811
  }
811
812
  ) });
812
813
  }), Cr = E((a, s) => {
813
814
  const { className: i, children: n, ...l } = a;
814
815
  return y(l), /* @__PURE__ */ o.jsx("div", { className: i, ref: s, children: n });
815
816
  }), Nr = E((a, s) => {
816
- const { className: i, value: n, placeholder: l, onKeyDown: u, onChange: p, ...g } = a;
817
- return y(g), /* @__PURE__ */ o.jsx(f.FormProvider, { children: /* @__PURE__ */ o.jsx(
818
- f.FormInput,
817
+ const { className: i, value: n, placeholder: l, onKeyDown: f, onChange: m, ...g } = a;
818
+ return y(g), /* @__PURE__ */ o.jsx(u.FormProvider, { children: /* @__PURE__ */ o.jsx(
819
+ u.FormInput,
819
820
  {
820
821
  className: _("bn-ak-input", i || ""),
821
822
  name: "panel-input",
822
823
  value: n,
823
824
  placeholder: l,
824
- onChange: p,
825
- onKeyDown: u,
825
+ onChange: m,
826
+ onKeyDown: f,
826
827
  "data-test": "embed-input",
827
828
  ref: s
828
829
  }
829
830
  ) });
830
831
  }), wr = E((a, s) => {
831
832
  const { children: i, ...n } = a;
832
- return y(n), /* @__PURE__ */ o.jsx(f.PopoverDisclosure, { render: i, ref: s });
833
+ return y(n), /* @__PURE__ */ o.jsx(u.PopoverDisclosure, { render: i, ref: s });
833
834
  }), Or = E((a, s) => {
834
- const { className: i, children: n, variant: l, ...u } = a;
835
- return y(u), /* @__PURE__ */ o.jsx(
836
- f.Popover,
835
+ const { className: i, children: n, variant: l, ...f } = a;
836
+ return y(f), /* @__PURE__ */ o.jsx(
837
+ u.Popover,
837
838
  {
838
839
  className: _("bn-ak-popover", i || ""),
839
840
  ref: s,
840
841
  children: n
841
842
  }
842
843
  );
843
- }), Ir = (a) => {
844
+ }), Fr = (a) => {
844
845
  const { children: s, opened: i, position: n, ...l } = a;
845
- return y(l), /* @__PURE__ */ o.jsx(f.PopoverProvider, { open: i, placement: n, children: s });
846
+ return y(l), /* @__PURE__ */ o.jsx(u.PopoverProvider, { open: i, placement: n, children: s });
846
847
  }, Dr = E((a, s) => {
847
848
  const { className: i, children: n, ...l } = a;
848
- return y(l), /* @__PURE__ */ o.jsx(f.Group, { className: i, ref: s, children: n });
849
- }), Fr = E((a, s) => {
849
+ return y(l), /* @__PURE__ */ o.jsx(u.Group, { className: i, ref: s, children: n });
850
+ }), Ir = E((a, s) => {
850
851
  const {
851
852
  className: i,
852
853
  children: n,
853
854
  icon: l,
854
- onClick: u,
855
- label: p,
855
+ onClick: f,
856
+ label: m,
856
857
  onDragEnd: g,
857
858
  onDragStart: d,
858
859
  draggable: h,
859
860
  ...R
860
861
  } = a;
861
862
  return y(R, !1), /* @__PURE__ */ o.jsxs(
862
- f.Button,
863
+ u.Button,
863
864
  {
864
865
  onDragEnd: g,
865
866
  onDragStart: d,
866
867
  draggable: h,
867
- "aria-label": p,
868
+ "aria-label": m,
868
869
  className: _(
869
870
  "bn-ak-button bn-ak-secondary",
870
871
  i || ""
871
872
  ),
872
873
  ref: s,
873
- onClick: u,
874
+ onClick: f,
874
875
  ...R,
875
876
  children: [
876
877
  l,
@@ -879,9 +880,9 @@ const gr = (a) => {
879
880
  }
880
881
  );
881
882
  }), Mr = E((a, s) => {
882
- const { className: i, children: n, id: l, ...u } = a;
883
- return y(u), /* @__PURE__ */ o.jsx(
884
- f.Group,
883
+ const { className: i, children: n, id: l, ...f } = a;
884
+ return y(f), /* @__PURE__ */ o.jsx(
885
+ u.Group,
885
886
  {
886
887
  className: _("bn-ak-menu", i || ""),
887
888
  id: l,
@@ -891,14 +892,14 @@ const gr = (a) => {
891
892
  }
892
893
  );
893
894
  }), Ar = E((a, s) => {
894
- const { className: i, item: n, isSelected: l, onClick: u, id: p, ...g } = a;
895
+ const { className: i, item: n, isSelected: l, onClick: f, id: m, ...g } = a;
895
896
  return y(g), /* @__PURE__ */ o.jsxs(
896
897
  "div",
897
898
  {
898
899
  className: _("bn-ak-menu-item", i || ""),
899
900
  ref: s,
900
- id: p,
901
- onClick: u,
901
+ id: m,
902
+ onClick: f,
902
903
  role: "option",
903
904
  "aria-selected": l || void 0,
904
905
  children: [
@@ -953,14 +954,14 @@ const gr = (a) => {
953
954
  className: i,
954
955
  children: n,
955
956
  draggable: l,
956
- onDragStart: u,
957
- onDragEnd: p,
957
+ onDragStart: f,
958
+ onDragEnd: m,
958
959
  style: g,
959
960
  label: d,
960
961
  ...h
961
962
  } = a;
962
963
  return y(h, !1), /* @__PURE__ */ o.jsx(
963
- f.Button,
964
+ u.Button,
964
965
  {
965
966
  className: _(
966
967
  "bn-ak-button bn-ak-secondary",
@@ -969,8 +970,8 @@ const gr = (a) => {
969
970
  ref: s,
970
971
  "aria-label": d,
971
972
  draggable: l,
972
- onDragStart: u,
973
- onDragEnd: p,
973
+ onDragStart: f,
974
+ onDragEnd: m,
974
975
  style: g,
975
976
  ...h,
976
977
  children: n
@@ -978,14 +979,14 @@ const gr = (a) => {
978
979
  );
979
980
  }), Ce = E(
980
981
  (a, s) => {
981
- const { className: i, children: n, onMouseEnter: l, onMouseLeave: u, ...p } = a;
982
- return y(p), /* @__PURE__ */ o.jsx(
983
- f.Toolbar,
982
+ const { className: i, children: n, onMouseEnter: l, onMouseLeave: f, ...m } = a;
983
+ return y(m), /* @__PURE__ */ o.jsx(
984
+ u.Toolbar,
984
985
  {
985
986
  className: _("bn-ak-toolbar", i || ""),
986
987
  ref: s,
987
988
  onMouseEnter: l,
988
- onMouseLeave: u,
989
+ onMouseLeave: f,
989
990
  children: n
990
991
  }
991
992
  );
@@ -996,21 +997,21 @@ const gr = (a) => {
996
997
  className: i,
997
998
  children: n,
998
999
  mainTooltip: l,
999
- secondaryTooltip: u,
1000
- icon: p,
1000
+ secondaryTooltip: f,
1001
+ icon: m,
1001
1002
  isSelected: g,
1002
1003
  isDisabled: d,
1003
1004
  onClick: h,
1004
1005
  label: R,
1005
1006
  ...k
1006
1007
  } = a;
1007
- return y(k, !1), /* @__PURE__ */ o.jsxs(f.TooltipProvider, { children: [
1008
+ return y(k, !1), /* @__PURE__ */ o.jsxs(u.TooltipProvider, { children: [
1008
1009
  /* @__PURE__ */ o.jsx(
1009
- f.TooltipAnchor,
1010
+ u.TooltipAnchor,
1010
1011
  {
1011
1012
  className: "link",
1012
1013
  render: /* @__PURE__ */ o.jsxs(
1013
- f.ToolbarItem,
1014
+ u.ToolbarItem,
1014
1015
  {
1015
1016
  "aria-label": R,
1016
1017
  className: _(
@@ -1028,58 +1029,58 @@ const gr = (a) => {
1028
1029
  ref: s,
1029
1030
  ...k,
1030
1031
  children: [
1031
- p,
1032
+ m,
1032
1033
  n
1033
1034
  ]
1034
1035
  }
1035
1036
  )
1036
1037
  }
1037
1038
  ),
1038
- /* @__PURE__ */ o.jsxs(f.Tooltip, { className: "bn-ak-tooltip", children: [
1039
+ /* @__PURE__ */ o.jsxs(u.Tooltip, { className: "bn-ak-tooltip", children: [
1039
1040
  /* @__PURE__ */ o.jsx("span", { children: l }),
1040
- u && /* @__PURE__ */ o.jsx("span", { children: u })
1041
+ f && /* @__PURE__ */ o.jsx("span", { children: f })
1041
1042
  ] })
1042
1043
  ] });
1043
1044
  }
1044
1045
  ), Yr = E((a, s) => {
1045
- const { className: i, items: n, isDisabled: l, ...u } = a;
1046
- y(u);
1047
- const p = a.items.filter((d) => d.isSelected)[0], g = (d) => {
1046
+ const { className: i, items: n, isDisabled: l, ...f } = a;
1047
+ y(f);
1048
+ const m = a.items.filter((d) => d.isSelected)[0], g = (d) => {
1048
1049
  var h, R;
1049
1050
  (R = (h = n.find((k) => k.text === d)).onClick) == null || R.call(h);
1050
1051
  };
1051
- return /* @__PURE__ */ o.jsxs(f.SelectProvider, { value: p.text, setValue: g, children: [
1052
+ return /* @__PURE__ */ o.jsxs(u.SelectProvider, { value: m.text, setValue: g, children: [
1052
1053
  /* @__PURE__ */ o.jsxs(
1053
- f.Select,
1054
+ u.Select,
1054
1055
  {
1055
1056
  className: "bn-ak-button bn-ak-secondary",
1056
1057
  disabled: l,
1057
1058
  "aria-label": "Text alignment",
1058
- render: /* @__PURE__ */ o.jsx(f.ToolbarItem, {}),
1059
+ render: /* @__PURE__ */ o.jsx(u.ToolbarItem, {}),
1059
1060
  children: [
1060
- p.icon,
1061
+ m.icon,
1061
1062
  " ",
1062
- p.text,
1063
+ m.text,
1063
1064
  " ",
1064
- /* @__PURE__ */ o.jsx(f.SelectArrow, {})
1065
+ /* @__PURE__ */ o.jsx(u.SelectArrow, {})
1065
1066
  ]
1066
1067
  }
1067
1068
  ),
1068
1069
  /* @__PURE__ */ o.jsx(
1069
- f.SelectPopover,
1070
+ u.SelectPopover,
1070
1071
  {
1071
1072
  className: _("bn-ak-popover", i || ""),
1072
1073
  ref: s,
1073
1074
  gutter: 4,
1074
1075
  children: n.map((d) => /* @__PURE__ */ o.jsxs(
1075
- f.SelectItem,
1076
+ u.SelectItem,
1076
1077
  {
1077
1078
  className: "bn-ak-select-item",
1078
1079
  value: d.text,
1079
1080
  children: [
1080
1081
  d.icon,
1081
1082
  d.text,
1082
- d.text === p.text && /* @__PURE__ */ o.jsx(f.SelectItemCheck, {})
1083
+ d.text === m.text && /* @__PURE__ */ o.jsx(u.SelectItemCheck, {})
1083
1084
  ]
1084
1085
  },
1085
1086
  d.text
@@ -1094,7 +1095,7 @@ const Vr = {
1094
1095
  Button: Ne,
1095
1096
  Select: Yr
1096
1097
  },
1097
- ImagePanel: {
1098
+ FilePanel: {
1098
1099
  Root: kr,
1099
1100
  Button: Sr,
1100
1101
  FileInput: Pr,
@@ -1107,7 +1108,7 @@ const Vr = {
1107
1108
  },
1108
1109
  SideMenu: {
1109
1110
  Root: Dr,
1110
- Button: Fr
1111
+ Button: Ir
1111
1112
  },
1112
1113
  SuggestionMenu: {
1113
1114
  Root: Mr,
@@ -1133,7 +1134,7 @@ const Vr = {
1133
1134
  Item: Er
1134
1135
  },
1135
1136
  Popover: {
1136
- Root: Ir,
1137
+ Root: Fr,
1137
1138
  Trigger: wr,
1138
1139
  Content: Or
1139
1140
  }