@janbox/storefront-builder 2.0.22 → 2.0.24
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/dist/editor/lib/header/index.d.ts +6 -1
- package/dist/editor/lib/index.d.ts +4 -4
- package/dist/editor.js +366 -360
- package/dist/{index-CCWut9qY.js → index-BBoR6Gy_.js} +1 -1
- package/dist/index-BPG8gpQT.js +4 -0
- package/dist/index.js +3 -3
- package/dist/lib/box/README.md +8 -0
- package/dist/lib/cell/README.md +2 -1
- package/dist/lib/container/README.md +8 -0
- package/dist/lib/flex-item/README.md +7 -1
- package/dist/lib/flexbox/README.md +8 -0
- package/dist/lib/grid/README.md +4 -3
- package/dist/templates/sections/about/index.d.ts +2 -0
- package/dist/templates/sections/brand-story/index.d.ts +2 -0
- package/dist/templates/sections/index.d.ts +2 -0
- package/dist/templates.js +472 -39
- package/dist/{toaster-Bls2Iq-H.js → toaster-DMjFxzB_.js} +11 -13
- package/package.json +1 -1
- package/dist/index-DBQ5OjJh.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useEffect as f } from "react";
|
|
3
|
-
import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-
|
|
3
|
+
import { u as c, C as v, D as p, a as N, d as h, N as E, g as b, r as D, b as y, B as l } from "./toaster-DMjFxzB_.js";
|
|
4
4
|
import { isNil as u, isString as d } from "lodash-es";
|
|
5
5
|
import "flat";
|
|
6
6
|
const k = ({ children: t, data: e }) => {
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { N as n, c as t } from "./toaster-
|
|
2
|
-
import { A as C, e as L, f as T, h as x, i as S, j as A, k as E, l as w, m as R, n as h, F, o as k, p as q, G as B, H as G, q as H, I as M, s as U, t as y, v as V, L as j, w as D, M as z, x as J, y as K, P as O, R as Q, S as X, z as Y, T as Z, E as _, J as $, K as W, O as ee, U as oe, Q as se, V as ae, X as re, Y as de, Z as te, _ as ne, $ as Ne, g as ue, a0 as ie, a1 as pe, a2 as me, a3 as Pe, a4 as ce, a5 as le, a6 as ge, a7 as be, a8 as fe, a9 as ve, u as Ie, aa as Ce, ab as Le, ac as Te, ad as xe, ae as Se, af as Ae, ag as Ee, ah as we, ai as Re, aj as he, ak as Fe, al as ke, am as qe, an as Be, ao as Ge, ap as He, aq as Me } from "./toaster-
|
|
1
|
+
import { N as n, c as t } from "./toaster-DMjFxzB_.js";
|
|
2
|
+
import { A as C, e as L, f as T, h as x, i as S, j as A, k as E, l as w, m as R, n as h, F, o as k, p as q, G as B, H as G, q as H, I as M, s as U, t as y, v as V, L as j, w as D, M as z, x as J, y as K, P as O, R as Q, S as X, z as Y, T as Z, E as _, J as $, K as W, O as ee, U as oe, Q as se, V as ae, X as re, Y as de, Z as te, _ as ne, $ as Ne, g as ue, a0 as ie, a1 as pe, a2 as me, a3 as Pe, a4 as ce, a5 as le, a6 as ge, a7 as be, a8 as fe, a9 as ve, u as Ie, aa as Ce, ab as Le, ac as Te, ad as xe, ae as Se, af as Ae, ag as Ee, ah as we, ai as Re, aj as he, ak as Fe, al as ke, am as qe, an as Be, ao as Ge, ap as He, aq as Me } from "./toaster-DMjFxzB_.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import { useRef as N, useEffect as u } from "react";
|
|
5
5
|
import { getTabPanelProps as i, getListItemProps as p } from "@janbox/storefront-ui";
|
|
6
|
-
import { C as ye, a as Ve } from "./index-
|
|
6
|
+
import { C as ye, a as Ve } from "./index-BBoR6Gy_.js";
|
|
7
7
|
const g = ({ enabled: a, onChange: r }) => {
|
|
8
8
|
const { dom: e } = n((s) => ({ dom: s.dom })), o = N(void 0);
|
|
9
9
|
u(() => {
|
package/dist/lib/box/README.md
CHANGED
|
@@ -8,6 +8,14 @@ Block container đa năng (render ra `div`). Là canvas node — chứa bất k
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
+
### Top-level props
|
|
12
|
+
|
|
13
|
+
| Prop | Type | Description |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
|
|
16
|
+
|
|
17
|
+
`hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
|
|
18
|
+
|
|
11
19
|
### `sx` props
|
|
12
20
|
|
|
13
21
|
```ts
|
package/dist/lib/cell/README.md
CHANGED
|
@@ -13,8 +13,9 @@ Một ô (column) trong `GridNode`. Hỗ trợ `colSpan` để chiếm nhiều c
|
|
|
13
13
|
| Prop | Type | Description |
|
|
14
14
|
| --- | --- | --- |
|
|
15
15
|
| `colSpan` | `number` | Số cột mà cell chiếm (`grid-column: span colSpan`) |
|
|
16
|
+
| `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
|
|
16
17
|
|
|
17
|
-
`colSpan` hỗ trợ responsive: `colSpan={1}` cho mobile, `md={{ colSpan: 2 }}` cho desktop.
|
|
18
|
+
`colSpan` và `hidden` hỗ trợ responsive: `colSpan={1}` cho mobile, `md={{ colSpan: 2 }}` cho desktop. `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
|
|
18
19
|
|
|
19
20
|
### `sx` props
|
|
20
21
|
|
|
@@ -8,6 +8,14 @@ Block container có max-width cố định, căn giữa theo chiều ngang. Dùn
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
+
### Top-level props
|
|
12
|
+
|
|
13
|
+
| Prop | Type | Description |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
|
|
16
|
+
|
|
17
|
+
`hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
|
|
18
|
+
|
|
11
19
|
### `sx` props
|
|
12
20
|
|
|
13
21
|
```ts
|
|
@@ -8,7 +8,13 @@ Một item trong `FlexboxNode`. Kiểm soát kích thước, grow/shrink, thứ
|
|
|
8
8
|
|
|
9
9
|
## Configurable props
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Top-level props
|
|
12
|
+
|
|
13
|
+
| Prop | Type | Description |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
|
|
16
|
+
|
|
17
|
+
`hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
|
|
12
18
|
|
|
13
19
|
### `sx` props
|
|
14
20
|
|
|
@@ -8,6 +8,14 @@ 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
|
+
| `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
|
|
16
|
+
|
|
17
|
+
`hidden` hỗ trợ responsive: `hidden={true}` ẩn trên mobile, `md={{ hidden: false }}` hiện lại trên desktop.
|
|
18
|
+
|
|
11
19
|
### `sx` props
|
|
12
20
|
|
|
13
21
|
```ts
|
package/dist/lib/grid/README.md
CHANGED
|
@@ -15,9 +15,10 @@ Props mà user có thể chỉnh trong editor inspector.
|
|
|
15
15
|
| Prop | Type | Description |
|
|
16
16
|
| --- | --- | --- |
|
|
17
17
|
| `cols` | `number` | Số cột — generates `grid-template-columns: repeat(cols, minmax(0, 1fr))` |
|
|
18
|
-
| `
|
|
19
|
-
| `
|
|
20
|
-
| `
|
|
18
|
+
| `hidden` | `boolean` | Ẩn node ở breakpoint `xs` (mặc định). Hỗ trợ responsive qua `sm`, `md`, `lg` |
|
|
19
|
+
| `sm` | `{ cols?: number, hidden?: boolean }` | Override tại breakpoint sm |
|
|
20
|
+
| `md` | `{ cols?: number, hidden?: boolean }` | Override tại breakpoint md |
|
|
21
|
+
| `lg` | `{ cols?: number, hidden?: boolean }` | Override tại breakpoint lg |
|
|
21
22
|
|
|
22
23
|
### `sx` props
|
|
23
24
|
|