@blocknote/shadcn 0.20.0 → 0.22.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.
@@ -1008,6 +1008,27 @@ const on = (t) => {
1008
1008
  const { className: e, children: o, ...r } = t;
1009
1009
  return c(r), /* @__PURE__ */ a("div", { className: e, ref: n, children: o });
1010
1010
  }), Dn = p((t, n) => {
1011
+ const { className: e, children: o, onMouseDown: r, onClick: s, ...i } = t;
1012
+ c(i, !1);
1013
+ const u = g();
1014
+ return /* @__PURE__ */ a(
1015
+ u.Button.Button,
1016
+ {
1017
+ variant: "ghost",
1018
+ className: d(
1019
+ e,
1020
+ "bn-p-0 bn-h-full bn-w-full bn-text-gray-400",
1021
+ e != null && e.includes("bn-extend-button-add-remove-columns") ? "bn-ml-1" : "bn-mt-1",
1022
+ e != null && e.includes("bn-extend-button-editing") ? "bn-bg-accent bn-text-accent-foreground" : ""
1023
+ ),
1024
+ ref: n,
1025
+ onClick: s,
1026
+ onMouseDown: r,
1027
+ ...i,
1028
+ children: o
1029
+ }
1030
+ );
1031
+ }), Rn = p((t, n) => {
1011
1032
  const {
1012
1033
  className: e,
1013
1034
  children: o,
@@ -1035,27 +1056,6 @@ const on = (t) => {
1035
1056
  children: o
1036
1057
  }
1037
1058
  );
1038
- }), Rn = p((t, n) => {
1039
- const { className: e, children: o, onMouseDown: r, onClick: s, ...i } = t;
1040
- c(i, !1);
1041
- const u = g();
1042
- return /* @__PURE__ */ a(
1043
- u.Button.Button,
1044
- {
1045
- variant: "ghost",
1046
- className: d(
1047
- e,
1048
- "bn-p-0 bn-h-full bn-w-full bn-text-gray-400",
1049
- e != null && e.includes("bn-extend-button-add-remove-columns") ? "bn-ml-1" : "bn-mt-1",
1050
- e != null && e.includes("bn-extend-button-editing") ? "bn-bg-accent bn-text-accent-foreground" : ""
1051
- ),
1052
- ref: n,
1053
- onClick: s,
1054
- onMouseDown: r,
1055
- ...i,
1056
- children: o
1057
- }
1058
- );
1059
1059
  }), R = p(
1060
1060
  (t, n) => {
1061
1061
  const { className: e, children: o, onMouseEnter: r, onMouseLeave: s, ...i } = t;
@@ -1277,8 +1277,8 @@ const on = (t) => {
1277
1277
  Loader: Ln
1278
1278
  },
1279
1279
  TableHandle: {
1280
- Root: Dn,
1281
- ExtendButton: Rn
1280
+ Root: Rn,
1281
+ ExtendButton: Dn
1282
1282
  },
1283
1283
  Generic: {
1284
1284
  Form: {