@janbox/storefront-builder 2.0.3 → 2.0.5

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.
Files changed (35) hide show
  1. package/dist/{countdown-timer.node-CZrTzirS.js → countdown-timer.node-CZA-i5xq.js} +1001 -1043
  2. package/dist/editor/ui/floating/wb-floating/types.d.ts +2 -2
  3. package/dist/editor/ui/floating/wb-floating/wb-floating.d.ts +2 -0
  4. package/dist/editor.js +702 -662
  5. package/dist/hooks/use-composer.d.ts +464 -0
  6. package/dist/index-B58cYfCo.js +4 -0
  7. package/dist/{index-CdI5y-ul.js → index-ekIAycpt.js} +2 -2
  8. package/dist/index.js +4 -4
  9. package/dist/lib/accordion/accordion.node/helpers.d.ts +3 -0
  10. package/dist/lib/accordion-group/accordion-group.node/helpers.d.ts +3 -0
  11. package/dist/lib/box/box.node/helpers.d.ts +3 -0
  12. package/dist/lib/button/button.node/helpers.d.ts +3 -0
  13. package/dist/lib/cell/cell.node/helpers.d.ts +3 -0
  14. package/dist/lib/container/container.node/helpers.d.ts +3 -0
  15. package/dist/lib/countdown-timer/countdown-timer.node/helpers.d.ts +3 -0
  16. package/dist/lib/flex-item/flex-item.node/helpers.d.ts +3 -0
  17. package/dist/lib/flexbox/flexbox.node/helpers.d.ts +3 -0
  18. package/dist/lib/grid/grid.node/helpers.d.ts +3 -0
  19. package/dist/lib/heading/heading.node/helpers.d.ts +3 -0
  20. package/dist/lib/icon/icon.node/helpers.d.ts +3 -0
  21. package/dist/lib/image/image.node/helpers.d.ts +3 -0
  22. package/dist/lib/link/link.node/helpers.d.ts +3 -0
  23. package/dist/lib/list-item/list-item.node/helpers.d.ts +3 -0
  24. package/dist/lib/marquee/marquee.node/helpers.d.ts +3 -0
  25. package/dist/lib/paragraph/paragraph.node/helpers.d.ts +3 -0
  26. package/dist/lib/swiper/swiper.node/helpers.d.ts +3 -0
  27. package/dist/lib/tab/tab.node/helpers.d.ts +3 -0
  28. package/dist/lib/tab-panel/tab-panel.node/helpers.d.ts +3 -0
  29. package/dist/lib/tabs/tabs.node/helpers.d.ts +3 -0
  30. package/dist/lib/unordered-list/unordered-list.node/helpers.d.ts +3 -0
  31. package/dist/lib/video/video.node/helpers.d.ts +3 -0
  32. package/dist/templates.js +1 -1
  33. package/dist/{tooltip-npH7aBjY.js → tooltip-BFrdgixm.js} +1 -1
  34. package/package.json +3 -2
  35. package/dist/index-B1b2lC5K.js +0 -4
@@ -0,0 +1,3 @@
1
+ import { LinkNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useLinkNodeProps: () => ReturnType<typeof useNodeProps<LinkNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { ListItemNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useListItemNodeProps: () => ReturnType<typeof useNodeProps<ListItemNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { MarqueeNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useMarqueeNodeProps: () => ReturnType<typeof useNodeProps<MarqueeNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { ParagraphNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useParagraphNodeProps: () => ReturnType<typeof useNodeProps<ParagraphNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { SwiperNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useSwiperNodeProps: () => ReturnType<typeof useNodeProps<SwiperNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { TabNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useTabNodeProps: (nodeId?: string) => ReturnType<typeof useNodeProps<TabNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { TabPanelNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useTabPanelNodeProps: () => ReturnType<typeof useNodeProps<TabPanelNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { TabsNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useTabsNodeProps: (nodeId?: string) => ReturnType<typeof useNodeProps<TabsNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { UnorderedListNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useUnorderedListNodeProps: () => ReturnType<typeof useNodeProps<UnorderedListNodeProps>>;
@@ -0,0 +1,3 @@
1
+ import { VideoNodeProps } from './types';
2
+ import { useNodeProps } from '../../../hooks';
3
+ export declare const useVideoNodeProps: () => ReturnType<typeof useNodeProps<VideoNodeProps>>;
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 "./countdown-timer.node-CZrTzirS.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 "./countdown-timer.node-CZA-i5xq.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 "./countdown-timer.node-CZrTzirS.js";
7
+ import { t as o } from "./countdown-timer.node-CZA-i5xq.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.3",
3
+ "version": "2.0.5",
4
4
  "description": "Standalone storefront builder library extracted from craft-layers-portal",
5
5
  "type": "module",
6
6
  "files": [
@@ -26,13 +26,14 @@
26
26
  "./style.css": "./dist/style.css"
27
27
  },
28
28
  "peerDependencies": {
29
- "@janbox/storefront-ui": ">=3",
29
+ "@janbox/storefront-ui": ">=4",
30
30
  "react": "^19.1.0",
31
31
  "react-dom": "^19.1.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@craftjs/core": "^0.2.12",
35
35
  "@craftjs/layers": "^0.2.7",
36
+ "@craftjs/utils": "^0.2.5",
36
37
  "@emotion/react": "^11.14.0",
37
38
  "@floating-ui/react": "^0.27.13",
38
39
  "@hello-pangea/dnd": "^18.0.1",
@@ -1,4 +0,0 @@
1
- import { W as p } from "./tooltip-npH7aBjY.js";
2
- export {
3
- p as WbTooltip
4
- };