@janbox/storefront-builder 2.0.9 → 2.0.11
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/README.md +59 -4
- package/dist/{dataset-DQ21hyBo.js → countdown-timer.node-d0EtGQ4_.js} +2592 -3029
- package/dist/editor/components/color-picker-popover.d.ts +2 -1
- package/dist/editor/constants/index.d.ts +2 -3
- package/dist/editor/hooks/use-editor.d.ts +1 -0
- package/dist/editor/lib/sidebar/theme-action.d.ts +1 -0
- package/dist/editor/toolbars/color-variant/color-variant.d.ts +2 -2
- package/dist/editor/toolbars/index.d.ts +1 -1
- package/dist/editor/toolbars/visibility/index.d.ts +1 -0
- package/dist/editor/toolbars/visibility/visibility.d.ts +1 -0
- package/dist/editor.js +9888 -1241
- package/dist/hooks/use-first-mount-state.d.ts +1 -0
- package/dist/hooks/use-node-props.d.ts +0 -1
- package/dist/hooks/use-update-effect.d.ts +2 -0
- package/dist/index-fErSlbD2.js +206 -0
- package/dist/index-tISPdvwn.js +4 -0
- package/dist/index.js +92 -212
- package/dist/lib/accordion-group/index.d.ts +0 -1
- package/dist/lib/box/README.md +3 -10
- package/dist/lib/box/index.d.ts +0 -1
- package/dist/lib/button/README.md +2 -2
- package/dist/lib/button/index.d.ts +0 -1
- package/dist/lib/cell/index.d.ts +0 -1
- package/dist/lib/container/README.md +86 -0
- package/dist/lib/container/index.d.ts +0 -1
- package/dist/lib/countdown-timer/index.d.ts +0 -1
- package/dist/lib/flex-item/README.md +1 -0
- package/dist/lib/flex-item/index.d.ts +0 -1
- package/dist/lib/flexbox/README.md +0 -6
- package/dist/lib/flexbox/index.d.ts +0 -1
- package/dist/lib/grid/README.md +5 -4
- package/dist/lib/grid/index.d.ts +0 -1
- package/dist/lib/heading/README.md +38 -8
- package/dist/lib/heading/index.d.ts +0 -2
- package/dist/lib/icon/index.d.ts +0 -1
- package/dist/lib/image/index.d.ts +0 -1
- package/dist/lib/index.d.ts +0 -1
- package/dist/lib/link/index.d.ts +0 -1
- package/dist/lib/marquee/index.d.ts +0 -1
- package/dist/lib/paragraph/README.md +9 -5
- package/dist/lib/paragraph/index.d.ts +0 -2
- package/dist/lib/paragraph/paragraph.node/types.d.ts +2 -2
- package/dist/lib/swiper/index.d.ts +0 -1
- package/dist/lib/tabs/index.d.ts +0 -1
- package/dist/lib/unordered-list/index.d.ts +0 -1
- package/dist/lib/video/index.d.ts +0 -1
- package/dist/minus-BrRnjbhB.js +4 -0
- package/dist/templates.js +17 -33
- package/dist/{tooltip-Bi1eNiUc.js → tooltip-5WmNiI2z.js} +1 -1
- package/dist/types/index.d.ts +2 -3
- package/package.json +2 -3
- package/dist/countdown-timer.inspector-EFXiJ973.js +0 -8192
- package/dist/editor/toolbars/display-on/display-on.d.ts +0 -5
- package/dist/editor/toolbars/display-on/index.d.ts +0 -1
- package/dist/index-Cx5nImHp.js +0 -4
- package/dist/lib/paragraph/paragraph/paragraph.d.ts +0 -2
- package/dist/lib/paragraph/paragraph/types.d.ts +0 -2
- package/dist/lib/text/README.md +0 -90
- package/dist/lib/text/index.d.ts +0 -1
- package/dist/lib/text/text.inspector/index.d.ts +0 -1
- package/dist/lib/text/text.inspector/text.inspector.d.ts +0 -6
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# ContainerNode
|
|
2
|
+
|
|
3
|
+
Block container có max-width cố định, căn giữa theo chiều ngang. Dùng để tạo section có width bị giới hạn (ví dụ: content area trong một full-width background section).
|
|
4
|
+
|
|
5
|
+
## Resolved name
|
|
6
|
+
|
|
7
|
+
`Container`
|
|
8
|
+
|
|
9
|
+
## Configurable props
|
|
10
|
+
|
|
11
|
+
### `sx` props
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
sx?: {
|
|
15
|
+
// size
|
|
16
|
+
height?: number | string
|
|
17
|
+
|
|
18
|
+
// spacing
|
|
19
|
+
paddingTop?: number
|
|
20
|
+
paddingRight?: number
|
|
21
|
+
paddingBottom?: number
|
|
22
|
+
paddingLeft?: number
|
|
23
|
+
marginTop?: number
|
|
24
|
+
marginRight?: number
|
|
25
|
+
marginBottom?: number
|
|
26
|
+
marginLeft?: number
|
|
27
|
+
|
|
28
|
+
// border
|
|
29
|
+
borderStyle?: string
|
|
30
|
+
borderColor?: string
|
|
31
|
+
borderTopWidth?: number
|
|
32
|
+
borderRightWidth?: number
|
|
33
|
+
borderBottomWidth?: number
|
|
34
|
+
borderLeftWidth?: number
|
|
35
|
+
borderTopLeftRadius?: number | string
|
|
36
|
+
borderTopRightRadius?: number | string
|
|
37
|
+
borderBottomRightRadius?: number | string
|
|
38
|
+
borderBottomLeftRadius?: number | string
|
|
39
|
+
|
|
40
|
+
// background
|
|
41
|
+
backgroundColor?: string
|
|
42
|
+
backgroundImage?: string
|
|
43
|
+
backgroundPosition?: string
|
|
44
|
+
backgroundRepeat?: string
|
|
45
|
+
backgroundSize?: string
|
|
46
|
+
backgroundAttachment?: string
|
|
47
|
+
background?: string
|
|
48
|
+
|
|
49
|
+
// responsive overrides
|
|
50
|
+
sm?: { /* same keys above */ }
|
|
51
|
+
md?: { /* same keys above */ }
|
|
52
|
+
lg?: { /* same keys above */ }
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Usage
|
|
57
|
+
|
|
58
|
+
```tsx
|
|
59
|
+
import { BoxNode, ContainerNode } from '@janbox/storefront-builder';
|
|
60
|
+
|
|
61
|
+
// Full-width background, content bị giới hạn width
|
|
62
|
+
<BoxNode sx={{ backgroundColor: '#f5f5f5' }}>
|
|
63
|
+
<ContainerNode sx={{ paddingTop: 48, paddingBottom: 48 }}>
|
|
64
|
+
...
|
|
65
|
+
</ContainerNode>
|
|
66
|
+
</BoxNode>
|
|
67
|
+
|
|
68
|
+
// Responsive padding
|
|
69
|
+
<ContainerNode
|
|
70
|
+
sx={{
|
|
71
|
+
paddingTop: 24,
|
|
72
|
+
paddingBottom: 24,
|
|
73
|
+
md: {
|
|
74
|
+
paddingTop: 48,
|
|
75
|
+
paddingBottom: 48,
|
|
76
|
+
},
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
79
|
+
...
|
|
80
|
+
</ContainerNode>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Rules
|
|
84
|
+
|
|
85
|
+
- **Canvas**: yes — chứa bất kỳ node con nào.
|
|
86
|
+
- **canMoveIn**: không giới hạn node type.
|
|
@@ -104,6 +104,7 @@ import { FlexboxNode, FlexItemNode } from '@janbox/storefront-builder';
|
|
|
104
104
|
## Rules
|
|
105
105
|
|
|
106
106
|
- **Canvas**: yes — chứa bất kỳ node con nào.
|
|
107
|
+
- **canDrag**: false — không thể kéo ra khỏi parent. Thứ tự item được điều chỉnh qua `sx.order` trong inspector.
|
|
107
108
|
- **Parent**: phải là `FlexboxNode`.
|
|
108
109
|
|
|
109
110
|
## Related nodes
|
|
@@ -8,12 +8,6 @@ Flex container node (`display: flex`). Chỉ chấp nhận `FlexItemNode` làm c
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
-
### Top-level props
|
|
12
|
-
|
|
13
|
-
| Prop | Type | Description |
|
|
14
|
-
| --- | --- | --- |
|
|
15
|
-
| `container` | `boolean` | Bật max-width container constraint |
|
|
16
|
-
|
|
17
11
|
### `sx` props
|
|
18
12
|
|
|
19
13
|
```ts
|
package/dist/lib/grid/README.md
CHANGED
|
@@ -8,14 +8,16 @@ A CSS Grid container node. Accepts only `CellNode` children — the editor enfor
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
-
Props mà user có thể chỉnh trong editor inspector.
|
|
11
|
+
Props mà user có thể chỉnh trong editor inspector.
|
|
12
12
|
|
|
13
13
|
### Top-level props
|
|
14
14
|
|
|
15
15
|
| Prop | Type | Description |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| `cols` | `number` | Số cột — generates `grid-template-columns: repeat(cols, minmax(0, 1fr))` |
|
|
18
|
-
| `
|
|
18
|
+
| `sm` | `{ cols?: number }` | Override `cols` tại breakpoint sm |
|
|
19
|
+
| `md` | `{ cols?: number }` | Override `cols` tại breakpoint md |
|
|
20
|
+
| `lg` | `{ cols?: number }` | Override `cols` tại breakpoint lg |
|
|
19
21
|
|
|
20
22
|
### `sx` props
|
|
21
23
|
|
|
@@ -108,9 +110,8 @@ import { GridNode, CellNode } from '@janbox/storefront-builder';
|
|
|
108
110
|
<CellNode>...</CellNode>
|
|
109
111
|
</GridNode>
|
|
110
112
|
|
|
111
|
-
//
|
|
113
|
+
// Grid với background
|
|
112
114
|
<GridNode
|
|
113
|
-
container
|
|
114
115
|
cols={2}
|
|
115
116
|
sx={{
|
|
116
117
|
backgroundColor: '#f5f5f5',
|
package/dist/lib/grid/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# HeadingNode
|
|
2
2
|
|
|
3
|
-
Text node dành cho tiêu đề.
|
|
3
|
+
Text node dành cho tiêu đề. Render qua component `Text` từ `@janbox/storefront-ui`.
|
|
4
4
|
|
|
5
5
|
## Resolved name
|
|
6
6
|
|
|
@@ -8,20 +8,51 @@ Text node dành cho tiêu đề. Dùng chung `TextInspector` với `TextNode` nh
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Top-level props
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
| Prop | Giá trị cho phép | Default |
|
|
13
|
+
| Prop | Type | Description |
|
|
16
14
|
| --- | --- | --- |
|
|
17
|
-
| `as` | `'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'div'` |
|
|
15
|
+
| `as` | `'h1' \| 'h2' \| 'h3' \| 'h4' \| 'h5' \| 'h6' \| 'div'` | HTML tag (chọn qua inspector) |
|
|
16
|
+
| `sizeVariant` | `TypographySizeVariant` | Kích cỡ typography (responsive) |
|
|
17
|
+
|
|
18
|
+
### `sx` props
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
sx?: {
|
|
22
|
+
// typography
|
|
23
|
+
color?: string
|
|
24
|
+
fontStyle?: 'normal' | 'italic'
|
|
25
|
+
fontWeight?: number | string
|
|
26
|
+
textDecorationLine?: 'none' | 'underline' | 'line-through'
|
|
27
|
+
textAlign?: 'left' | 'center' | 'right' | 'justify'
|
|
28
|
+
textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize'
|
|
29
|
+
|
|
30
|
+
// size
|
|
31
|
+
width?: number | string
|
|
32
|
+
|
|
33
|
+
// spacing
|
|
34
|
+
paddingTop?: number
|
|
35
|
+
paddingRight?: number
|
|
36
|
+
paddingBottom?: number
|
|
37
|
+
paddingLeft?: number
|
|
38
|
+
marginTop?: number
|
|
39
|
+
marginRight?: number
|
|
40
|
+
marginBottom?: number
|
|
41
|
+
marginLeft?: number
|
|
42
|
+
|
|
43
|
+
// responsive overrides
|
|
44
|
+
sm?: { /* same keys above */ }
|
|
45
|
+
md?: { /* same keys above */ }
|
|
46
|
+
lg?: { /* same keys above */ }
|
|
47
|
+
}
|
|
48
|
+
```
|
|
18
49
|
|
|
19
50
|
## Usage
|
|
20
51
|
|
|
21
52
|
```tsx
|
|
22
53
|
import { HeadingNode } from '@janbox/storefront-builder';
|
|
23
54
|
|
|
24
|
-
// H1
|
|
55
|
+
// H1
|
|
25
56
|
<HeadingNode as="h1" sizeVariant="4xl">
|
|
26
57
|
Page Title
|
|
27
58
|
</HeadingNode>
|
|
@@ -49,5 +80,4 @@ import { HeadingNode } from '@janbox/storefront-builder';
|
|
|
49
80
|
|
|
50
81
|
## Related nodes
|
|
51
82
|
|
|
52
|
-
- [`TextNode`](../text/README.md) — base component dùng chung inspector
|
|
53
83
|
- [`ParagraphNode`](../paragraph/README.md) — dành cho nội dung dạng đoạn văn
|
package/dist/lib/icon/index.d.ts
CHANGED
package/dist/lib/index.d.ts
CHANGED
package/dist/lib/link/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ParagraphNode
|
|
2
2
|
|
|
3
|
-
Text node dành cho đoạn văn bản.
|
|
3
|
+
Text node dành cho đoạn văn bản. Render qua component `Text` từ `@janbox/storefront-ui`.
|
|
4
4
|
|
|
5
5
|
## Resolved name
|
|
6
6
|
|
|
@@ -8,13 +8,18 @@ Text node dành cho đoạn văn bản. Dùng chung `TextInspector` với `TextN
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Top-level props
|
|
12
|
+
|
|
13
|
+
| Prop | Type | Description |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `as` | `'p' \| 'div'` | HTML tag (chọn qua inspector) |
|
|
16
|
+
| `sizeVariant` | `TypographySizeVariant` | Kích cỡ typography (responsive) |
|
|
12
17
|
|
|
13
18
|
### `sx` props
|
|
14
19
|
|
|
15
20
|
```ts
|
|
16
21
|
sx?: {
|
|
17
|
-
// typography
|
|
22
|
+
// typography
|
|
18
23
|
color?: string
|
|
19
24
|
fontStyle?: 'normal' | 'italic'
|
|
20
25
|
fontWeight?: number | string
|
|
@@ -74,9 +79,8 @@ import { ParagraphNode } from '@janbox/storefront-builder';
|
|
|
74
79
|
|
|
75
80
|
- **Canvas**: no — không chứa node con.
|
|
76
81
|
- **Inline editing**: có thể double-click để chỉnh nội dung trong canvas.
|
|
77
|
-
- **Tag**:
|
|
82
|
+
- **Tag**: chọn qua inspector, giới hạn `p` hoặc `div`.
|
|
78
83
|
|
|
79
84
|
## Related nodes
|
|
80
85
|
|
|
81
|
-
- [`TextNode`](../text/README.md) — base component dùng chung inspector
|
|
82
86
|
- [`HeadingNode`](../heading/README.md) — dành cho tiêu đề với tag `h1`–`h6`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type ParagraphNodeProps =
|
|
1
|
+
import { TextProps } from '@janbox/storefront-ui';
|
|
2
|
+
export type ParagraphNodeProps = TextProps;
|
package/dist/lib/tabs/index.d.ts
CHANGED
package/dist/templates.js
CHANGED
|
@@ -1,30 +1,14 @@
|
|
|
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 {
|
|
4
|
+
import { f as s, G as h, e as a, i as d, P as t, d as x, j as g, a as f, Q as T, b as n, c as r, A as i } from "./countdown-timer.node-d0EtGQ4_.js";
|
|
5
5
|
import "@craftjs/core";
|
|
6
6
|
import "lodash-es";
|
|
7
7
|
import "react";
|
|
8
8
|
import "flat";
|
|
9
9
|
import "@janbox/storefront-ui";
|
|
10
|
-
import "
|
|
11
|
-
|
|
12
|
-
import "@emotion/react";
|
|
13
|
-
import "@floating-ui/react";
|
|
14
|
-
import "react-use";
|
|
15
|
-
import "react-colorful";
|
|
16
|
-
import "overlayscrollbars-react";
|
|
17
|
-
import "@tanstack/react-virtual";
|
|
18
|
-
import "react-dropzone";
|
|
19
|
-
import "react-datepicker";
|
|
20
|
-
import "@tiptap/extension-text-style";
|
|
21
|
-
import "@tiptap/react";
|
|
22
|
-
import "@tiptap/react/menus";
|
|
23
|
-
import "@tiptap/starter-kit";
|
|
24
|
-
import "react-frame-component";
|
|
25
|
-
import "@hello-pangea/dnd";
|
|
26
|
-
import "usehooks-ts";
|
|
27
|
-
const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
|
+
import { M as y } from "./minus-BrRnjbhB.js";
|
|
11
|
+
const l = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
12
|
<path d="M17.0021 19.5031H3.99667" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
29
13
|
<path d="M8.99875 14.5012H3.99667" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
30
14
|
<path d="M8.99875 9.49874H3.99667" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -32,9 +16,9 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
32
16
|
<path d="M19.0029 8.97259C20.3915 10.3612 20.3915 12.6121 19.0029 14.0007C17.6143 15.3893 15.3634 15.3893 13.9748 14.0007C12.5862 12.6121 12.5862 10.3612 13.9748 8.97259C15.3634 7.58401 17.6143 7.58401 19.0029 8.97259" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
33
17
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.0037 16.0018L19.0029 14.001L21.0037 16.0018Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
34
18
|
</svg>
|
|
35
|
-
`,
|
|
19
|
+
`, N = {
|
|
36
20
|
name: "Hero",
|
|
37
|
-
icon: { source:
|
|
21
|
+
icon: { source: l },
|
|
38
22
|
templates: [
|
|
39
23
|
{
|
|
40
24
|
template: /* @__PURE__ */ e(s, { children: /* @__PURE__ */ o(
|
|
@@ -132,9 +116,9 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
132
116
|
) })
|
|
133
117
|
}
|
|
134
118
|
]
|
|
135
|
-
},
|
|
119
|
+
}, V = {
|
|
136
120
|
name: "FAQs",
|
|
137
|
-
icon: { source:
|
|
121
|
+
icon: { source: l },
|
|
138
122
|
templates: [
|
|
139
123
|
{
|
|
140
124
|
template: /* @__PURE__ */ o(s, { children: [
|
|
@@ -177,8 +161,8 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
177
161
|
expandIcon: {
|
|
178
162
|
position: "right",
|
|
179
163
|
source: {
|
|
180
|
-
expanded:
|
|
181
|
-
collapsed:
|
|
164
|
+
expanded: T,
|
|
165
|
+
collapsed: y
|
|
182
166
|
}
|
|
183
167
|
}
|
|
184
168
|
},
|
|
@@ -326,9 +310,9 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
326
310
|
image: "https://ucarecdn.com/8a7a086c-1ef5-43a9-a036-daaf1f15a9f1/-/format/auto/",
|
|
327
311
|
title: "Secure Online Payment"
|
|
328
312
|
}
|
|
329
|
-
],
|
|
313
|
+
], q = {
|
|
330
314
|
name: "Guarantee",
|
|
331
|
-
icon: { source:
|
|
315
|
+
icon: { source: l },
|
|
332
316
|
templates: [
|
|
333
317
|
{
|
|
334
318
|
template: /* @__PURE__ */ o(s, { children: [
|
|
@@ -388,7 +372,7 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
388
372
|
md: {
|
|
389
373
|
cols: 4
|
|
390
374
|
},
|
|
391
|
-
children: S.map((
|
|
375
|
+
children: S.map((m, _) => /* @__PURE__ */ o(a, { children: [
|
|
392
376
|
/* @__PURE__ */ e(
|
|
393
377
|
g,
|
|
394
378
|
{
|
|
@@ -397,14 +381,14 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
397
381
|
marginLeft: "auto",
|
|
398
382
|
marginRight: "auto"
|
|
399
383
|
},
|
|
400
|
-
src:
|
|
384
|
+
src: m.image
|
|
401
385
|
}
|
|
402
386
|
),
|
|
403
387
|
/* @__PURE__ */ e(
|
|
404
388
|
t,
|
|
405
389
|
{
|
|
406
390
|
dangerouslySetInnerHTML: {
|
|
407
|
-
__html:
|
|
391
|
+
__html: m.title
|
|
408
392
|
},
|
|
409
393
|
sizeVariant: "lg",
|
|
410
394
|
sx: {
|
|
@@ -422,7 +406,7 @@ const m = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="ht
|
|
|
422
406
|
]
|
|
423
407
|
};
|
|
424
408
|
export {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
409
|
+
V as FAQS_SECTION_GROUP,
|
|
410
|
+
q as GUARANTEE_SECTION_GROUP,
|
|
411
|
+
N as HERO_SECTION_GROUP
|
|
428
412
|
};
|
|
@@ -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 "./
|
|
7
|
+
import { t as o } from "./countdown-timer.node-d0EtGQ4_.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/dist/types/index.d.ts
CHANGED
|
@@ -14,15 +14,14 @@ export type NodeCustom = {
|
|
|
14
14
|
displayName?: string;
|
|
15
15
|
selectable?: boolean;
|
|
16
16
|
deletable?: boolean;
|
|
17
|
-
|
|
17
|
+
hidden?: Partial<Record<Screen, boolean>>;
|
|
18
18
|
};
|
|
19
19
|
export type NodeRelated = {
|
|
20
|
-
inspector?: React.ComponentType
|
|
20
|
+
inspector?: React.ComponentType;
|
|
21
21
|
renderer?: React.ComponentType<{
|
|
22
22
|
render: React.ReactElement;
|
|
23
23
|
}>;
|
|
24
24
|
};
|
|
25
|
-
export type DisplayOnValue = Partial<Record<Screen, boolean>>;
|
|
26
25
|
export type NodeConfig<T = object> = ShallowMerge<Partial<UserComponentConfig<T>>, {
|
|
27
26
|
info: NodeInfo;
|
|
28
27
|
custom?: NodeCustom;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@janbox/storefront-builder",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Standalone storefront builder library extracted from craft-layers-portal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"react-datepicker": "^8.8.0",
|
|
51
51
|
"react-dropzone": "^14.2.3",
|
|
52
52
|
"react-frame-component": "^5.2.7",
|
|
53
|
-
"react-use": "^17.5.1",
|
|
54
53
|
"usehooks-ts": "^3.1.1"
|
|
55
54
|
},
|
|
56
55
|
"devDependencies": {
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"@types/react-dom": "^19.1.6",
|
|
61
60
|
"@types/react-frame-component": "^4.1.6",
|
|
62
61
|
"type-fest": "^5.5.0",
|
|
63
|
-
"@janbox/storefront-ui": "
|
|
62
|
+
"@janbox/storefront-ui": "^4.0.0"
|
|
64
63
|
},
|
|
65
64
|
"publishConfig": {
|
|
66
65
|
"access": "public"
|