beca-ui 2.1.1-beta.5 → 2.1.1-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/beca-ui.js CHANGED
@@ -127080,7 +127080,10 @@ const Xvt = (e) => {
127080
127080
  const n = Ab(), r = Sn(
127081
127081
  () => t !== void 0 && e !== void 0,
127082
127082
  [t]
127083
- ), o = e != null && e.isActive("tableCell", {
127083
+ );
127084
+ if (!e || typeof e.can().addColumnBefore != "function")
127085
+ return null;
127086
+ const o = e != null && e.isActive("tableCell", {
127084
127087
  verticalAlign: "top"
127085
127088
  }) ? "top" : e != null && e.isActive("tableCell", {
127086
127089
  verticalAlign: "middle"
@@ -129289,7 +129292,7 @@ const G3t = ({ editor: e }) => e && /* @__PURE__ */ L(
129289
129292
  return z ? le.liftListItem("listItem").run() : le.outdent().run();
129290
129293
  }, Y = (le) => {
129291
129294
  I.commands.focus(), I.isActive("orderedList") || I.commands.toggleOrderedList(), V(le);
129292
- }, B = ((ce = H()) == null ? void 0 : ce.node.attrs.listStyleType) ?? "decimal", Z = /* @__PURE__ */ Et(ys, { children: [
129295
+ }, B = ((ce = H()) == null ? void 0 : ce.node.attrs.listStyleType) ?? "decimal", Z = c === "compact" ? null : /* @__PURE__ */ Et(ys, { children: [
129293
129296
  /* @__PURE__ */ L(ys.Item, { children: /* @__PURE__ */ L(
129294
129297
  Fn,
129295
129298
  {
@@ -130844,8 +130847,6 @@ const p4t = ({
130844
130847
  });
130845
130848
  }, B = (ae, re) => {
130846
130849
  var he;
130847
- if (y === "compact")
130848
- return !1;
130849
130850
  const ce = Array.from(((he = re.clipboardData) == null ? void 0 : he.items) || []), { schema: ue } = ae.state;
130850
130851
  return ce.forEach((le, we) => {
130851
130852
  const ye = le.getAsFile();
@@ -130985,7 +130986,7 @@ const p4t = ({
130985
130986
  function pe() {
130986
130987
  W == null || W.view.focus();
130987
130988
  }
130988
- return console.log(c), /* @__PURE__ */ L(
130989
+ return /* @__PURE__ */ L(
130989
130990
  "div",
130990
130991
  {
130991
130992
  className: $4t(e),
@@ -130999,7 +131000,7 @@ const p4t = ({
130999
131000
  }
131000
131001
  }
131001
131002
  ) }) : /* @__PURE__ */ Et(rl, { children: [
131002
- /* @__PURE__ */ L(Zvt, { editor: W, tablePosition: N }),
131003
+ y !== "compact" && /* @__PURE__ */ L(Zvt, { editor: W, tablePosition: N }),
131003
131004
  /* @__PURE__ */ L(G3t, { editor: W }),
131004
131005
  !r && /* @__PURE__ */ L("div", { className: "disable-zone" }),
131005
131006
  S && x === "top" && !a && /* @__PURE__ */ L(
@@ -7,5 +7,5 @@ interface TableToolsProps {
7
7
  editor?: Editor | null;
8
8
  tablePosition?: TablePosition;
9
9
  }
10
- export declare const TableTools: ({ editor, tablePosition }: TableToolsProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const TableTools: ({ editor, tablePosition }: TableToolsProps) => import("react/jsx-runtime").JSX.Element | null;
11
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.1.1-beta.5",
3
+ "version": "2.1.1-beta.6",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {