@janbox/storefront-builder 2.0.19 → 2.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janbox/storefront-builder",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "Standalone storefront builder library extracted from craft-layers-portal",
5
5
  "type": "module",
6
6
  "files": [
@@ -39,7 +39,6 @@
39
39
  "@hello-pangea/dnd": "^18.0.1",
40
40
  "@tanstack/react-virtual": "^3.10.9",
41
41
  "color": "^5.0.0",
42
- "dayjs": "^1.11.13",
43
42
  "flat": "^6.0.1",
44
43
  "lodash-es": "^4.17.21",
45
44
  "overlayscrollbars-react": "^0.5.6",
@@ -1,60 +0,0 @@
1
- import { jsx as i } from "@emotion/react/jsx-runtime";
2
- import { useMemo as m, useEffect as f } from "react";
3
- import { Frame as v, Editor as p, useNode as N, DefaultEventHandlers as E } from "@craftjs/core";
4
- import { isNil as u, isString as l } from "lodash-es";
5
- import { u as c, C as h, d as b, g as y, N as C, B as a } from "./toaster-j03A1kAt.js";
6
- import "flat";
7
- const k = ({ children: t, data: e }) => {
8
- const { resolver: r } = c((s) => ({
9
- resolver: s.options.resolver
10
- })), o = m(() => {
11
- if (u(e)) return e;
12
- const s = l(e) ? JSON.parse(e) : e;
13
- return Object.entries(s).forEach(([, n]) => {
14
- const d = l(n.type) ? n.type : n.type.resolvedName;
15
- r[d] || (console.error(`Unknown node: ${d}`), n.type = {
16
- resolvedName: h.Unknown
17
- });
18
- }), s;
19
- }, [e, r]);
20
- return /* @__PURE__ */ i(v, { data: o, children: t });
21
- }, x = ({ resolver: t, children: e, ...r }) => /* @__PURE__ */ i(
22
- p,
23
- {
24
- enabled: !1,
25
- onRender: D,
26
- handlers: (o) => new g({
27
- store: o,
28
- removeHoverOnMouseleave: !0,
29
- isMultiSelectEnabled: () => !1
30
- }),
31
- resolver: { ...b, ...t },
32
- ...r,
33
- children: e
34
- }
35
- ), D = ({ render: t }) => {
36
- const { id: e } = N(), { query: r } = c();
37
- return f(() => {
38
- const o = r.node(e).get(), s = y(o);
39
- if (u(s))
40
- throw new Error(
41
- `The node with id "${o.data.displayName}" does not have a resolved ID. Please check your node configuration.`
42
- );
43
- }, [e, r]), t;
44
- };
45
- class g extends E {
46
- handlers() {
47
- const e = super.handlers();
48
- return {
49
- ...e,
50
- select(r, o) {
51
- return (r.getAttribute(C.DATA_NODE_SELECTABLE) ?? a.True) === a.True ? e.select(r, o) : () => {
52
- };
53
- }
54
- };
55
- }
56
- }
57
- export {
58
- k as C,
59
- x as a
60
- };
@@ -1,4 +0,0 @@
1
- import { W as p } from "./toaster-j03A1kAt.js";
2
- export {
3
- p as WbTooltip
4
- };