@janbox/storefront-builder 2.0.6 → 2.0.8

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.
@@ -5,7 +5,6 @@ export * from './css-width';
5
5
  export * from './height';
6
6
  export * from './color';
7
7
  export * from './background';
8
- export * from './spacing';
9
8
  export * from './child-nodes';
10
9
  export * from './border';
11
10
  export * from './border-radius';
package/dist/editor.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { jsx as n, jsxs as m, Fragment as _e } from "@emotion/react/jsx-runtime";
2
- import { Z as R2, _ as V2, $ as W2, t as w, a0 as P2, g as q, a1 as Ce, a2 as Te, a3 as Se, Q as H2, a4 as Fe, a5 as B, a6 as M, b as ve, M as Oe, a7 as D2, a8 as j2, a9 as _2, aa as ze, K as F2, N as O2, f as z, X as S, H as Ze, P as ae, V as $e, S as be, G as Ge, a as ge, m as Ue, F as fe, q as xe, B as qe, I as Ye, n as Xe, L as Ke, y as z2, x as Je, j as Qe, A as e2, l as t2, C as n2, ab as r2, c as Z2, d as $2, e as G2, r as o2, p as s2, s as U2, v as q2, T as Y2, w as X2, ac as i2, ad as K2, ae as J2, af as Q2, ag as et, E as a2, O as tt, R as nt } from "./dataset-aA5lHdqQ.js";
3
- import { ah as br, ai as xr, aj as yr, ak as Mr, al as Ir, am as Lr, an as Tr, ao as Sr, ap as Nr, aq as Er, ar as Ar, as as Br, at as Rr, au as Vr } from "./dataset-aA5lHdqQ.js";
2
+ import { Z as R2, _ as V2, $ as W2, t as w, a0 as P2, g as q, a1 as Ce, a2 as Te, a3 as Se, Q as H2, a4 as Fe, a5 as B, a6 as M, b as ve, M as Oe, a7 as D2, a8 as j2, a9 as _2, aa as ze, K as F2, N as O2, f as z, X as S, H as Ze, P as ae, V as $e, S as be, G as Ge, a as ge, m as Ue, F as fe, q as xe, B as qe, I as Ye, n as Xe, L as Ke, y as z2, x as Je, j as Qe, A as e2, l as t2, C as n2, ab as r2, c as Z2, d as $2, e as G2, r as o2, p as s2, s as U2, v as q2, T as Y2, w as X2, ac as i2, ad as K2, ae as J2, af as Q2, ag as et, E as a2, O as tt, R as nt } from "./dataset-BMKs5zYr.js";
3
+ import { ah as br, ai as xr, aj as yr, ak as Mr, al as Ir, am as Lr, an as Tr, ao as Sr, ap as Nr, aq as Er, ar as Ar, as as Br, at as Rr, au as Vr } from "./dataset-BMKs5zYr.js";
4
4
  import { useNode as rt, ROOT_NODE as Z, serializeNode as ot } from "@craftjs/core";
5
5
  import { useImperativeHandle as st, useMemo as it, isValidElement as at, useState as j, useRef as de, useEffect as J, createElement as c2, Fragment as ce, Suspense as ct } from "react";
6
6
  import "flat";
7
7
  import { throttle as lt, isFunction as Ne, isNumber as Q, isNil as $, isString as Ee, isEqual as dt, times as O } from "lodash-es";
8
8
  import "@janbox/storefront-ui";
9
- import { W as ye, X as Y, Y as l2, Z as ht, _ as ut, $ as pt, a0 as Ct, a1 as gt, a2 as ft, a3 as wt, a4 as mt, a5 as kt, D as vt, a as bt, H as xt, P as yt, l as Mt, i as It, G as Lt, c as Tt, g as St, F as Nt, M as Et, b as At, h as Bt, I as Rt, L as Vt, U as Wt, j as Pt, B as Ht, A as Dt, f as jt, e as _t, a6 as Ft, a7 as Ot, N as k, d as d2, C as h2, a8 as u2, a9 as zt, aa as Ae } from "./countdown-timer.inspector-Cq9Uz0iw.js";
10
- import { ab as Pr, ac as Hr, ad as Dr, ae as jr, af as _r, ag as Fr, ah as Or, ai as zr, aj as Zr, ak as $r, al as Gr, am as Ur, an as qr, ao as Yr, ap as Xr, aq as Kr, ar as Jr, as as Qr, at as eo, au as to, av as no, aw as ro, ax as oo, ay as so, az as io, aA as ao, aB as co, aC as lo, T as ho, aD as uo, aE as po, aF as Co, aG as go, aH as fo, aI as wo, aJ as mo, aK as ko, aL as vo, aM as bo, aN as xo, aO as yo } from "./countdown-timer.inspector-Cq9Uz0iw.js";
9
+ import { W as ye, X as Y, Y as l2, Z as ht, _ as ut, $ as pt, a0 as Ct, a1 as gt, a2 as ft, a3 as wt, a4 as mt, a5 as kt, D as vt, a as bt, H as xt, P as yt, l as Mt, i as It, G as Lt, c as Tt, g as St, F as Nt, M as Et, b as At, h as Bt, I as Rt, L as Vt, U as Wt, j as Pt, B as Ht, A as Dt, f as jt, e as _t, a6 as Ft, a7 as Ot, N as k, d as d2, C as h2, a8 as u2, a9 as zt, aa as Ae } from "./countdown-timer.inspector-BZH-hb1h.js";
10
+ import { ab as Pr, ac as Hr, ad as Dr, ae as jr, af as _r, ag as Fr, ah as Or, ai as zr, aj as Zr, ak as $r, al as Gr, am as Ur, an as qr, ao as Yr, ap as Xr, aq as Kr, ar as Jr, as as Qr, at as eo, au as to, av as no, aw as ro, ax as oo, ay as so, az as io, aA as ao, aB as co, T as lo, aC as ho, aD as uo, aE as po, aF as Co, aG as go, aH as fo, aI as wo, aJ as mo, aK as ko, aL as vo, aM as bo, aN as xo } from "./countdown-timer.inspector-BZH-hb1h.js";
11
11
  import "@janbox/storefront-ui/utils";
12
12
  import "@janbox/storefront-ui/hooks";
13
13
  import { CacheProvider as Zt, Global as $t, createElement as Gt } from "@emotion/react";
@@ -29,7 +29,7 @@ import "@hello-pangea/dnd";
29
29
  import { useToggle as M2 } from "usehooks-ts";
30
30
  import n1 from "dayjs";
31
31
  import { Layers as r1, useLayer as o1 } from "@craftjs/layers";
32
- import { W as Io } from "./tooltip-BYPVx_WW.js";
32
+ import { W as Mo } from "./tooltip-BTVACKyw.js";
33
33
  class s1 {
34
34
  constructor() {
35
35
  this.componentControls = /* @__PURE__ */ new Set();
@@ -119,10 +119,12 @@ const c1 = (e) => Ut() ? /* @__PURE__ */ n(Re, { ...e }) : /* @__PURE__ */ n(qt,
119
119
  {
120
120
  floatingOverlayProps: {
121
121
  disabled: !1,
122
- className: "grid place-items-center p-4 sm:p-5 md:p-6",
123
122
  lockScroll: !0,
124
123
  style: {
125
- zIndex: y2
124
+ zIndex: y2,
125
+ display: "grid",
126
+ placeItems: "center",
127
+ padding: 20
126
128
  }
127
129
  },
128
130
  css: { display: "flex", overflow: "hidden", flexDirection: "column", maxWidth: "100%", maxHeight: "100%" },
@@ -2463,27 +2465,26 @@ export {
2463
2465
  oo as OrderToolbar,
2464
2466
  so as PaddingToolbar,
2465
2467
  io as RowGapToolbar,
2466
- ao as SpacingToolbar,
2467
- co as SvgSourceToolbar,
2468
- lo as TagNameToolbar,
2469
- ho as TextInlineEditor,
2468
+ ao as SvgSourceToolbar,
2469
+ co as TagNameToolbar,
2470
+ lo as TextInlineEditor,
2470
2471
  gt as TextSizeVariantToolbar,
2471
2472
  wr as TextStyleGroupToolbar,
2472
2473
  wt as TextStyleToolbar,
2473
2474
  kt as TextTransformToolbar,
2474
2475
  Y as ToolbarField,
2475
- uo as ToolbarGroup,
2476
+ ho as ToolbarGroup,
2476
2477
  r2 as WbButton,
2477
2478
  Ft as WbButtonGroup,
2478
2479
  K2 as WbCollapse,
2479
2480
  Mr as WbColorPicker,
2480
- po as WbDatePicker,
2481
+ uo as WbDatePicker,
2481
2482
  ar as WbDialog,
2482
2483
  lr as WbDialogBody,
2483
2484
  Ir as WbDialogClose,
2484
2485
  Lr as WbDialogFooter,
2485
2486
  Tr as WbDialogHeader,
2486
- Co as WbDropzone,
2487
+ po as WbDropzone,
2487
2488
  c1 as WbFloating,
2488
2489
  Sr as WbFloatingClose,
2489
2490
  W2 as WbFloatingContent,
@@ -2494,7 +2495,7 @@ export {
2494
2495
  i2 as WbInput,
2495
2496
  l2 as WbInputNumber,
2496
2497
  Nr as WbLoadingOverlay,
2497
- go as WbMenu,
2498
+ Co as WbMenu,
2498
2499
  Er as WbMenuItem,
2499
2500
  Ar as WbMenuList,
2500
2501
  Br as WbMenuTrigger,
@@ -2507,17 +2508,17 @@ export {
2507
2508
  ht as WbSelect,
2508
2509
  J2 as WbSvgLoader,
2509
2510
  Rr as WbSwitch,
2510
- fo as WbTab,
2511
- wo as WbTabContent,
2512
- mo as WbTabList,
2513
- ko as WbTabPanel,
2514
- vo as WbTabs,
2511
+ go as WbTab,
2512
+ fo as WbTabContent,
2513
+ wo as WbTabList,
2514
+ mo as WbTabPanel,
2515
+ ko as WbTabs,
2515
2516
  Vr as WbTextarea,
2516
- Io as WbTooltip,
2517
- bo as WbVirtualizedList,
2518
- xo as textSizeVariantOptions,
2517
+ Mo as WbTooltip,
2518
+ vo as WbVirtualizedList,
2519
+ bo as textSizeVariantOptions,
2519
2520
  cr as useDialogContext,
2520
2521
  q as useEditor,
2521
- yo as useEditorResponsive,
2522
+ xo as useEditorResponsive,
2522
2523
  P2 as useWbFloatingContext
2523
2524
  };
@@ -0,0 +1,4 @@
1
+ import { W as p } from "./tooltip-BTVACKyw.js";
2
+ export {
3
+ p as WbTooltip
4
+ };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as f, f as T, g as x, h as H, i as _ } from "./dataset-aA5lHdqQ.js";
2
- import { e as pe, A as ce, c as ue, d as Ne, j as me, B as le, k as Pe, a as Ie, C as ge, l as fe, F as Te, m as xe, G as be, H as he, n as Ce, I as Le, L as Ae, o as Se, p as ve, q as He, P as _e, R as Me, S as Fe, r as we, T as Ee, s as Re, v as ye, w as Be, x as Ge, U as Ue, y as ke, V as De, z as qe, D as Ve, E as je, J as ze, K as Je, N as Ke, O as Oe, Q as Qe, W as We, X as Xe, Y as Ye } from "./dataset-aA5lHdqQ.js";
3
- import { u as i, D as b, a as h, T as C } from "./countdown-timer.inspector-Cq9Uz0iw.js";
4
- import { A as $e, B as eo, b as oo, C as so, c as ro, d as to, e as ao, f as no, F as io, g as po, G as co, H as uo, I as No, h as mo, L as lo, M as Po, N as Io, P as go, S as fo, i as To, j as xo, k as bo, U as ho, V as Co, l as Lo, m as Ao, n as So, o as vo, p as Ho, q as _o, r as Mo, s as Fo, t as wo, v as Eo, w as Ro, x as yo, y as Bo, z as Go, E as Uo, J as ko, K as Do, O as qo, Q as Vo, R as jo } from "./countdown-timer.inspector-Cq9Uz0iw.js";
1
+ import { u as f, f as T, g as x, h as H, i as _ } from "./dataset-BMKs5zYr.js";
2
+ import { e as pe, A as ce, c as ue, d as Ne, j as me, B as le, k as Pe, a as Ie, C as ge, l as fe, F as Te, m as xe, G as be, H as he, n as Ce, I as Le, L as Ae, o as Se, p as ve, q as He, P as _e, R as Me, S as Fe, r as we, T as Ee, s as Re, v as ye, w as Be, x as Ge, U as Ue, y as ke, V as De, z as qe, D as Ve, E as je, J as ze, K as Je, N as Ke, O as Oe, Q as Qe, W as We, X as Xe, Y as Ye } from "./dataset-BMKs5zYr.js";
3
+ import { u as i, D as b, a as h, T as C } from "./countdown-timer.inspector-BZH-hb1h.js";
4
+ import { A as $e, B as eo, b as oo, C as so, c as ro, d as to, e as ao, f as no, F as io, g as po, G as co, H as uo, I as No, h as mo, L as lo, M as Po, N as Io, P as go, S as fo, i as To, j as xo, k as bo, U as ho, V as Co, l as Lo, m as Ao, n as So, o as vo, p as Ho, q as _o, r as Mo, s as Fo, t as wo, v as Eo, w as Ro, x as yo, y as Bo, z as Go, E as Uo, J as ko, K as Do, O as qo, Q as Vo, R as jo } from "./countdown-timer.inspector-BZH-hb1h.js";
5
5
  import { useNode as L } from "@craftjs/core";
6
6
  import { useNode as Jo } from "@craftjs/core";
7
7
  import { isNil as A } from "lodash-es";
package/dist/templates.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as o, Fragment as c } from "@emotion/react/jsx-runtime";
2
2
  import { getColorVar as u } from "@janbox/storefront-ui/theme";
3
3
  import { renderToString as p } from "react-dom/server";
4
- import { C as s, G as h, a, H as d, P as t, B as x, I as g, A as f, M as T, b as y, c as n, d as r, e as i } from "./dataset-aA5lHdqQ.js";
4
+ import { C as s, G as h, a, H as d, P as t, B as x, I as g, A as f, M as T, b as y, c as n, d as r, e as i } from "./dataset-BMKs5zYr.js";
5
5
  import "@craftjs/core";
6
6
  import "lodash-es";
7
7
  import "react";
@@ -4,7 +4,7 @@ import { useFloating as P, autoUpdate as S, flip as j, offset as V, size as W, a
4
4
  import { get as L } from "lodash-es";
5
5
  import { FLOATING_Z_INDEX as U } from "@janbox/storefront-ui/theme";
6
6
  import { useControllableState as X } from "@janbox/storefront-ui/hooks";
7
- import { t as o } from "./dataset-aA5lHdqQ.js";
7
+ import { t as o } from "./dataset-BMKs5zYr.js";
8
8
  const Y = ({ placement: d = "top", open: p, onOpenChange: c, children: e, content: m }) => {
9
9
  const [n, u] = X({
10
10
  defaultValue: !1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janbox/storefront-builder",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Standalone storefront builder library extracted from craft-layers-portal",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,2 +0,0 @@
1
- export * from './spacing';
2
- export * from './types';
@@ -1,2 +0,0 @@
1
- import { SpacingToolbarProps } from './types';
2
- export declare const SpacingToolbar: ({ value, onChange }: SpacingToolbarProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { StyledCSS } from '@janbox/storefront-ui/types';
2
- export type SpacingValue = {
3
- paddingTop?: StyledCSS['paddingTop'];
4
- paddingRight?: StyledCSS['paddingRight'];
5
- paddingBottom?: StyledCSS['paddingBottom'];
6
- paddingLeft?: StyledCSS['paddingLeft'];
7
- marginTop?: StyledCSS['marginTop'];
8
- marginRight?: StyledCSS['marginRight'];
9
- marginBottom?: StyledCSS['marginBottom'];
10
- marginLeft?: StyledCSS['marginLeft'];
11
- };
12
- export interface SpacingToolbarProps {
13
- value?: SpacingValue;
14
- onChange?: (value: SpacingValue) => void;
15
- }
@@ -1,4 +0,0 @@
1
- import { W as p } from "./tooltip-BYPVx_WW.js";
2
- export {
3
- p as WbTooltip
4
- };