@janbox/storefront-builder 1.0.8 → 2.0.0

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 (46) hide show
  1. package/README.md +83 -110
  2. package/dist/anchor-target-BlOvysAr.js +2329 -0
  3. package/dist/color-picker-popover-B3AVFuei.js +201 -0
  4. package/dist/components/composer/dataset.d.ts +1 -0
  5. package/dist/constants/index.d.ts +1 -0
  6. package/dist/countdown-timer.node-OmDiT-pz.js +825 -0
  7. package/dist/date-picker-B4Rju7gG.js +115 -0
  8. package/dist/{countdown-timer.node-BwrDThFq.js → dialog-header-DPLOS7TT.js} +2209 -3174
  9. package/dist/dropzone-Dbfed3jK.js +490 -0
  10. package/dist/editor/hooks/index.d.ts +1 -1
  11. package/dist/editor/lib/index.d.ts +3 -3
  12. package/dist/editor/lib/sidebar/insert-action.d.ts +15 -22
  13. package/dist/editor/toolbars.js +336 -0
  14. package/dist/editor/types/index.d.ts +0 -2
  15. package/dist/editor/ui/button/button.d.ts +2 -3
  16. package/dist/editor/ui/icon-button/icon-button.d.ts +1 -2
  17. package/dist/editor/ui.js +110 -0
  18. package/dist/editor.js +1024 -522
  19. package/dist/index-BbiQ0n_-.js +4 -0
  20. package/dist/index-CwrFnubn.js +4448 -0
  21. package/dist/index.js +369 -107
  22. package/dist/lib/container/container.inspector/container.inspector.d.ts +1 -0
  23. package/dist/lib/container/container.inspector/index.d.ts +1 -0
  24. package/dist/lib/container/container.node/container.node.d.ts +2 -0
  25. package/dist/lib/container/container.node/index.d.ts +3 -0
  26. package/dist/lib/container/container.node/types.d.ts +2 -0
  27. package/dist/lib/container/index.d.ts +2 -0
  28. package/dist/lib/index.d.ts +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/templates/elements/carousel/index.d.ts +2 -2
  31. package/dist/templates/elements/content-list/index.d.ts +2 -2
  32. package/dist/templates/elements/interactive/index.d.ts +2 -2
  33. package/dist/templates/elements/layout/index.d.ts +2 -2
  34. package/dist/templates/elements/media/index.d.ts +2 -2
  35. package/dist/templates/elements/text/index.d.ts +2 -2
  36. package/dist/templates/elements/utilities/index.d.ts +2 -2
  37. package/dist/templates/index.d.ts +0 -1
  38. package/dist/templates/sections/faqs/index.d.ts +2 -2
  39. package/dist/templates/sections/guarantee/index.d.ts +2 -2
  40. package/dist/templates/sections/hero/index.d.ts +2 -2
  41. package/dist/templates.js +153 -656
  42. package/dist/{tooltip-W55T4oR8.js → tooltip-KbIHELP2.js} +1 -1
  43. package/package.json +11 -3
  44. package/dist/index-Br_MUhzZ.js +0 -6015
  45. package/dist/index-DGKFfr43.js +0 -4
  46. /package/dist/editor/hooks/{use-editor-state.d.ts → use-editor.d.ts} +0 -0
@@ -2,7 +2,7 @@ import { jsxs as y, jsx as s } from "@emotion/react/jsx-runtime";
2
2
  import { useRef as C, Fragment as E, isValidElement as I, cloneElement as N } from "react";
3
3
  import { useFloating as O, autoUpdate as P, flip as j, offset as V, size as k, arrow as z, useHover as D, safePolygon as M, useFocus as S, useDismiss as T, useRole as W, useInteractions as _, useMergeRefs as A, FloatingPortal as G } from "@floating-ui/react";
4
4
  import { get as H } from "lodash-es";
5
- import { c as L } from "./countdown-timer.node-BwrDThFq.js";
5
+ import { c as L } from "./dialog-header-DPLOS7TT.js";
6
6
  import { FLOATING_Z_INDEX as U } from "@janbox/storefront-ui/theme";
7
7
  import { useControllableState as X } from "@janbox/storefront-ui/hooks";
8
8
  const Y = ({ placement: f = "top", open: c, onOpenChange: m, children: e, content: d }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janbox/storefront-builder",
3
- "version": "1.0.8",
3
+ "version": "2.0.0",
4
4
  "description": "Standalone storefront builder library extracted from craft-layers-portal",
5
5
  "type": "module",
6
6
  "files": [
@@ -19,6 +19,14 @@
19
19
  "types": "./dist/editor/index.d.ts",
20
20
  "import": "./dist/editor.js"
21
21
  },
22
+ "./editor/ui": {
23
+ "types": "./dist/editor/ui/index.d.ts",
24
+ "import": "./dist/editor/ui.js"
25
+ },
26
+ "./editor/toolbars": {
27
+ "types": "./dist/editor/toolbars/index.d.ts",
28
+ "import": "./dist/editor/toolbars.js"
29
+ },
22
30
  "./templates": {
23
31
  "types": "./dist/templates/index.d.ts",
24
32
  "import": "./dist/templates.js"
@@ -50,7 +58,6 @@
50
58
  "react-datepicker": "^8.8.0",
51
59
  "react-dropzone": "^14.2.3",
52
60
  "react-frame-component": "^5.2.7",
53
- "react-router": "^7.9.6",
54
61
  "react-use": "^17.5.1",
55
62
  "tailwind-merge": "^2.4.0",
56
63
  "usehooks-ts": "^3.1.1"
@@ -61,7 +68,8 @@
61
68
  "@types/react": "^19.1.8",
62
69
  "@types/react-dom": "^19.1.6",
63
70
  "@types/react-frame-component": "^4.1.6",
64
- "type-fest": "^5.5.0"
71
+ "type-fest": "^5.5.0",
72
+ "@janbox/storefront-ui": "latest"
65
73
  },
66
74
  "publishConfig": {
67
75
  "access": "public"