@janbox/storefront-builder 2.0.21 → 2.0.23

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.
@@ -5969,7 +5969,7 @@ const i6 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
5969
5969
  size: "lg",
5970
5970
  name: "Desktop"
5971
5971
  }
5972
- ], u6 = "px", d6 = Gy(() => import("./index-CTOgorCO.js").then((e) => ({ default: e.WbTooltip }))), J = Qe(
5972
+ ], u6 = "px", d6 = Gy(() => import("./index-BPG8gpQT.js").then((e) => ({ default: e.WbTooltip }))), J = Qe(
5973
5973
  ({ tooltip: e, size: t = "24", type: n = "button", isHighlighted: r, ...o }, i) => {
5974
5974
  const s = /* @__PURE__ */ u(
5975
5975
  "button",
@@ -6661,6 +6661,13 @@ const Ls = (e, t) => {
6661
6661
  focusTab: a
6662
6662
  }), [i]);
6663
6663
  return /* @__PURE__ */ u(G2.Provider, { value: l, children: /* @__PURE__ */ u("div", { css: { display: "flex", flexDirection: "column" }, ...o, children: n }) });
6664
+ }, $e = ({ children: e, ...t }) => {
6665
+ const n = Eo.toArray(e).filter((r) => Lt(r));
6666
+ return /* @__PURE__ */ u("ul", { css: [{ display: "flex", alignItems: "center" }], ...t, children: n.map(
6667
+ (r, o) => Un(r, {
6668
+ "data-tab-index": o
6669
+ })
6670
+ ) });
6664
6671
  }, te = ({ fill: e = !1, ...t }) => {
6665
6672
  const { activeIndex: n, focusTab: r } = Z2(), o = Number(Bn(t, "data-tab-index")), i = (s) => {
6666
6673
  r(o), t.onClick?.(s);
@@ -6691,17 +6698,8 @@ const Ls = (e, t) => {
6691
6698
  onClick: i
6692
6699
  }
6693
6700
  );
6694
- }, $e = ({ children: e, ...t }) => {
6695
- const n = Eo.toArray(e).filter(
6696
- (r) => Lt(r) && r.type === te
6697
- );
6698
- return /* @__PURE__ */ u("ul", { css: [{ display: "flex", alignItems: "center" }], ...t, children: n.map(
6699
- (r, o) => Un(r, {
6700
- "data-tab-index": o
6701
- })
6702
- ) });
6703
- }, ne = ({ ...e }) => /* @__PURE__ */ u("div", { ...e }), Fe = ({ children: e, ...t }) => {
6704
- const { activeIndex: n } = Z2(), r = Eo.toArray(e).filter((o) => Lt(o) && o.type === ne).find((o, i) => i === n);
6701
+ }, Fe = ({ children: e, ...t }) => {
6702
+ const { activeIndex: n } = Z2(), r = Eo.toArray(e).filter((o) => Lt(o)).find((o, i) => i === n);
6705
6703
  return /* @__PURE__ */ u(
6706
6704
  "div",
6707
6705
  {
@@ -6710,7 +6708,7 @@ const Ls = (e, t) => {
6710
6708
  children: r
6711
6709
  }
6712
6710
  );
6713
- }, p6 = ({ children: e, options: t, ...n }) => /* @__PURE__ */ u(
6711
+ }, ne = ({ ...e }) => /* @__PURE__ */ u("div", { ...e }), p6 = ({ children: e, options: t, ...n }) => /* @__PURE__ */ u(
6714
6712
  Xb,
6715
6713
  {
6716
6714
  options: {
@@ -15027,19 +15025,17 @@ ue(Zo, {
15027
15025
  const Nh = () => Ne({
15028
15026
  transform: lb
15029
15027
  }), zs = ({ anchor: e, ...t }) => {
15030
- const n = xe(), { id: r, connectors: o } = Y(), { isActive: i, enabled: s } = Se((l, c) => ({
15031
- isActive: c.getEvent("selected").contains(r),
15032
- enabled: l.options.enabled
15033
- })), a = s ? i ? "plaintext-only" : !1 : t.contentEditable;
15028
+ const n = xe(), { connectors: r } = Y(), { enabled: o } = Se((i) => ({
15029
+ enabled: i.options.enabled
15030
+ }));
15034
15031
  return /* @__PURE__ */ u(
15035
15032
  $0,
15036
15033
  {
15037
- anchor: s ? void 0 : e,
15034
+ anchor: o ? void 0 : e,
15038
15035
  ...t,
15039
15036
  ...n,
15040
- contentEditable: a,
15041
- ref: (l) => {
15042
- l && o.connect(l);
15037
+ ref: (i) => {
15038
+ i && r.connect(i);
15043
15039
  }
15044
15040
  }
15045
15041
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janbox/storefront-builder",
3
- "version": "2.0.21",
3
+ "version": "2.0.23",
4
4
  "description": "Standalone storefront builder library extracted from craft-layers-portal",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,4 +0,0 @@
1
- import { W as p } from "./toaster-1qwGcpRC.js";
2
- export {
3
- p as WbTooltip
4
- };