@rebuy/rebuy 2.2.0-rc.1 → 2.2.0-rc.10
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +654 -1
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +654 -1
- package/dist/index.mjs.map +4 -4
- package/dist/schema/button.d.ts +39 -37
- package/dist/schema/button.d.ts.map +1 -1
- package/dist/schema/common.d.ts +1 -1
- package/dist/schema/common.d.ts.map +1 -1
- package/dist/schema/constants.d.ts +1 -1
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/data-source.d.ts +4 -2
- package/dist/schema/data-source.d.ts.map +1 -1
- package/dist/schema/image.d.ts +6 -4
- package/dist/schema/image.d.ts.map +1 -1
- package/dist/schema/index.d.ts +19 -19
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/layout.d.ts +9 -8
- package/dist/schema/layout.d.ts.map +1 -1
- package/dist/schema/offers.d.ts +10 -10
- package/dist/schema/offers.d.ts.map +1 -1
- package/dist/schema/product.d.ts +24 -24
- package/dist/schema/product.d.ts.map +1 -1
- package/dist/schema/products.d.ts +26 -24
- package/dist/schema/products.d.ts.map +1 -1
- package/dist/schema/quantity.d.ts +5 -3
- package/dist/schema/quantity.d.ts.map +1 -1
- package/dist/schema/reviews.d.ts +4 -2
- package/dist/schema/reviews.d.ts.map +1 -1
- package/dist/schema/root.d.ts +9 -9
- package/dist/schema/root.d.ts.map +1 -1
- package/dist/schema/shared.d.ts +55 -15
- package/dist/schema/shared.d.ts.map +1 -1
- package/dist/schema/subscription.d.ts +4 -2
- package/dist/schema/subscription.d.ts.map +1 -1
- package/dist/schema/table.d.ts +4 -2
- package/dist/schema/table.d.ts.map +1 -1
- package/dist/schema/text.d.ts +46 -44
- package/dist/schema/text.d.ts.map +1 -1
- package/dist/schema/utils.d.ts +26 -1
- package/dist/schema/utils.d.ts.map +1 -1
- package/dist/schema/variants.d.ts +4 -2
- package/dist/schema/variants.d.ts.map +1 -1
- package/package.json +6 -11
- package/dist/schema/index.mjs +0 -629
- package/dist/schema/index.mjs.map +0 -7
package/dist/schema/common.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/schema/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/schema/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+D,CAAC;AAE/F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEX,eAAO,MAAM,WAAW,yfAuBd,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC;AAEvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABDataSourceSection: z.ZodObject<{
|
|
3
4
|
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4
5
|
dataSourcePath: z.ZodDefault<z.ZodString>;
|
|
@@ -6,6 +7,7 @@ export declare const CABDataSourceSection: z.ZodObject<{
|
|
|
6
7
|
name: z.ZodDefault<z.ZodString>;
|
|
7
8
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
8
9
|
sectionType: z.ZodDefault<z.ZodLiteral<"dataSource">>;
|
|
9
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$strip>;
|
|
10
11
|
export type CABDataSourceSection = z.infer<typeof CABDataSourceSection>;
|
|
12
|
+
export type CABDataSourceSectionProps = CABDataSourceSection & SectionDetails;
|
|
11
13
|
//# sourceMappingURL=data-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/schema/data-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/schema/data-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,oBAAoB;;;;;;;iBAO/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
|
package/dist/schema/image.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABImageSection: z.ZodObject<{
|
|
3
4
|
altText: z.ZodDefault<z.ZodString>;
|
|
4
5
|
aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
|
|
5
|
-
border: z.ZodDefault<z.ZodObject<{
|
|
6
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
6
7
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
7
8
|
small: "small";
|
|
8
9
|
none: "none";
|
|
@@ -21,7 +22,7 @@ export declare const CABImageSection: z.ZodObject<{
|
|
|
21
22
|
medium: "medium";
|
|
22
23
|
thick: "thick";
|
|
23
24
|
}>>;
|
|
24
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$strip>>>;
|
|
25
26
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
26
27
|
declineAllOffers: "declineAllOffers";
|
|
27
28
|
declineOffer: "declineOffer";
|
|
@@ -58,6 +59,7 @@ export declare const CABImageSection: z.ZodObject<{
|
|
|
58
59
|
sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
59
60
|
source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
|
|
60
61
|
width: z.ZodDefault<z.ZodNumber>;
|
|
61
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strip>;
|
|
62
63
|
export type CABImageSection = z.infer<typeof CABImageSection>;
|
|
64
|
+
export type CABImageSectionProps = CABImageSection & SectionDetails;
|
|
63
65
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/schema/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/schema/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,cAAc,CAAC"}
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export * from '
|
|
7
|
-
export * from '
|
|
8
|
-
export * from '
|
|
9
|
-
export * from '
|
|
10
|
-
export * from '
|
|
11
|
-
export * from '
|
|
12
|
-
export * from '
|
|
13
|
-
export * from '
|
|
14
|
-
export * from '
|
|
15
|
-
export * from '
|
|
16
|
-
export * from '
|
|
17
|
-
export * from '
|
|
18
|
-
export * from '
|
|
19
|
-
export * from '
|
|
1
|
+
export * from './button';
|
|
2
|
+
export * from './common';
|
|
3
|
+
export * from './constants';
|
|
4
|
+
export * from './data-source';
|
|
5
|
+
export * from './image';
|
|
6
|
+
export * from './layout';
|
|
7
|
+
export * from './offers';
|
|
8
|
+
export * from './product';
|
|
9
|
+
export * from './products';
|
|
10
|
+
export * from './quantity';
|
|
11
|
+
export * from './regex';
|
|
12
|
+
export * from './reviews';
|
|
13
|
+
export * from './root';
|
|
14
|
+
export * from './shared';
|
|
15
|
+
export * from './subscription';
|
|
16
|
+
export * from './table';
|
|
17
|
+
export * from './text';
|
|
18
|
+
export * from './utils';
|
|
19
|
+
export * from './variants';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
|
package/dist/schema/layout.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { Direction, HorizontalAlignment,
|
|
3
|
-
import { CABBorder, CABSection } from '
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { Direction, HorizontalAlignment, Spacing, VerticalAlignment } from './common';
|
|
3
|
+
import { CABBorder, CABSection, type SectionDetails } from './shared';
|
|
4
4
|
export declare const CABLayoutSection: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodDefault<z.ZodObject<{
|
|
6
6
|
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
@@ -13,8 +13,8 @@ export declare const CABLayoutSection: z.ZodObject<{
|
|
|
13
13
|
middle: "middle";
|
|
14
14
|
bottom: "bottom";
|
|
15
15
|
}>>;
|
|
16
|
-
}, z.core.$
|
|
17
|
-
border: z.ZodDefault<z.ZodObject<{
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
18
18
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
19
19
|
small: "small";
|
|
20
20
|
none: "none";
|
|
@@ -33,7 +33,7 @@ export declare const CABLayoutSection: z.ZodObject<{
|
|
|
33
33
|
medium: "medium";
|
|
34
34
|
thick: "thick";
|
|
35
35
|
}>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
37
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
38
38
|
columns: "columns";
|
|
39
39
|
rows: "rows";
|
|
@@ -59,7 +59,7 @@ export declare const CABLayoutSection: z.ZodObject<{
|
|
|
59
59
|
extraLoose: "extraLoose";
|
|
60
60
|
}>>;
|
|
61
61
|
width: z.ZodDefault<z.ZodNumber>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strip>;
|
|
63
63
|
export type CABLayoutSection = {
|
|
64
64
|
alignment: {
|
|
65
65
|
horizontal: HorizontalAlignment;
|
|
@@ -71,8 +71,9 @@ export type CABLayoutSection = {
|
|
|
71
71
|
padding: Spacing;
|
|
72
72
|
sectionId: string;
|
|
73
73
|
sections: CABSection[];
|
|
74
|
-
sectionType:
|
|
74
|
+
sectionType: 'layout';
|
|
75
75
|
spacing: Spacing;
|
|
76
76
|
width: number;
|
|
77
77
|
};
|
|
78
|
+
export type CABLayoutSectionProps = CABLayoutSection & SectionDetails;
|
|
78
79
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schema/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schema/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EACH,SAAS,EAET,mBAAmB,EAGnB,OAAO,EAEP,iBAAiB,EAEpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,SAAS,EAAE;QACP,UAAU,EAAE,mBAAmB,CAAC;QAChC,QAAQ,EAAE,iBAAiB,CAAC;KAC/B,CAAC;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,QAAQ,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,cAAc,CAAC"}
|
package/dist/schema/offers.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { CABSection } from '~/schema/shared';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { CABLayoutSection } from './layout';
|
|
3
|
+
import { CABSection, type SectionDetails } from './shared';
|
|
5
4
|
export declare const CABOffersSection: z.ZodObject<{
|
|
6
5
|
alignment: z.ZodDefault<z.ZodObject<{
|
|
7
6
|
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
@@ -14,9 +13,8 @@ export declare const CABOffersSection: z.ZodObject<{
|
|
|
14
13
|
middle: "middle";
|
|
15
14
|
bottom: "bottom";
|
|
16
15
|
}>>;
|
|
17
|
-
}, z.core.$
|
|
18
|
-
|
|
19
|
-
border: z.ZodDefault<z.ZodObject<{
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
20
18
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
21
19
|
small: "small";
|
|
22
20
|
none: "none";
|
|
@@ -35,7 +33,8 @@ export declare const CABOffersSection: z.ZodObject<{
|
|
|
35
33
|
medium: "medium";
|
|
36
34
|
thick: "thick";
|
|
37
35
|
}>>;
|
|
38
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
39
38
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
40
39
|
columns: "columns";
|
|
41
40
|
rows: "rows";
|
|
@@ -60,8 +59,9 @@ export declare const CABOffersSection: z.ZodObject<{
|
|
|
60
59
|
}>>;
|
|
61
60
|
sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodType<CABSection, unknown, z.core.$ZodTypeInternals<CABSection, unknown>>>>>;
|
|
62
61
|
sectionType: z.ZodDefault<z.ZodLiteral<"offers">>;
|
|
63
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strip>;
|
|
64
63
|
export type CABOffersSection = Omit<CABLayoutSection, 'sectionType'> & {
|
|
65
|
-
sectionType:
|
|
64
|
+
sectionType: 'offers';
|
|
66
65
|
};
|
|
66
|
+
export type CABOffersSectionProps = CABOffersSection & SectionDetails;
|
|
67
67
|
//# sourceMappingURL=offers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/schema/offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/schema/offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,GAAG;IACnE,WAAW,EAAE,QAAQ,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,cAAc,CAAC"}
|
package/dist/schema/product.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABProductSection: z.ZodObject<{
|
|
3
4
|
name: z.ZodOptional<z.ZodString>;
|
|
4
5
|
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
5
|
-
/** `name` represents `Color`, `Size`, etc. */
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
optionId: z.ZodNumber;
|
|
8
8
|
selector: z.ZodDefault<z.ZodEnum<{
|
|
@@ -14,10 +14,10 @@ export declare const CABProductSection: z.ZodObject<{
|
|
|
14
14
|
}>>;
|
|
15
15
|
values: z.ZodArray<z.ZodObject<{
|
|
16
16
|
color: z.ZodOptional<z.ZodString>;
|
|
17
|
-
image: z.ZodOptional<z.ZodObject<{
|
|
17
|
+
image: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
18
18
|
altText: z.ZodDefault<z.ZodString>;
|
|
19
19
|
aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
|
|
20
|
-
border: z.ZodDefault<z.ZodObject<{
|
|
20
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
21
21
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
22
22
|
small: "small";
|
|
23
23
|
none: "none";
|
|
@@ -36,7 +36,7 @@ export declare const CABProductSection: z.ZodObject<{
|
|
|
36
36
|
medium: "medium";
|
|
37
37
|
thick: "thick";
|
|
38
38
|
}>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$strip>>>;
|
|
40
40
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
41
41
|
declineAllOffers: "declineAllOffers";
|
|
42
42
|
declineOffer: "declineOffer";
|
|
@@ -73,10 +73,9 @@ export declare const CABProductSection: z.ZodObject<{
|
|
|
73
73
|
sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
74
74
|
source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
|
|
75
75
|
width: z.ZodDefault<z.ZodNumber>;
|
|
76
|
-
}, z.core.$
|
|
77
|
-
/** `name` represents `Red`, `Blue`, etc. */
|
|
76
|
+
}, z.core.$strip>>>;
|
|
78
77
|
name: z.ZodString;
|
|
79
|
-
text: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
text: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
80
79
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
81
80
|
declineAllOffers: "declineAllOffers";
|
|
82
81
|
declineOffer: "declineOffer";
|
|
@@ -99,49 +98,50 @@ export declare const CABProductSection: z.ZodObject<{
|
|
|
99
98
|
content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
100
99
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
101
100
|
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
102
|
-
}, z.core.$
|
|
101
|
+
}, z.core.$strip>>;
|
|
103
102
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
104
103
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
105
104
|
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
106
|
-
}, z.core.$
|
|
105
|
+
}, z.core.$strip>>;
|
|
107
106
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
107
|
marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
109
108
|
type: z.ZodLiteral<"bold">;
|
|
110
|
-
}, z.core.$
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
111
110
|
type: z.ZodLiteral<"italic">;
|
|
112
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
112
|
attrs: z.ZodObject<{
|
|
114
113
|
class: z.ZodNullable<z.ZodString>;
|
|
115
114
|
href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
116
115
|
rel: z.ZodDefault<z.ZodString>;
|
|
117
116
|
target: z.ZodDefault<z.ZodString>;
|
|
118
|
-
}, z.core.$
|
|
117
|
+
}, z.core.$strip>;
|
|
119
118
|
type: z.ZodLiteral<"link">;
|
|
120
|
-
}, z.core.$
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
120
|
type: z.ZodLiteral<"strike">;
|
|
122
|
-
}, z.core.$
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
122
|
attrs: z.ZodObject<{
|
|
124
123
|
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
|
|
125
124
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
126
|
-
}, z.core.$
|
|
125
|
+
}, z.core.$strip>;
|
|
127
126
|
type: z.ZodLiteral<"textStyle">;
|
|
128
|
-
}, z.core.$
|
|
127
|
+
}, z.core.$strip>]>>>;
|
|
129
128
|
text: z.ZodDefault<z.ZodString>;
|
|
130
129
|
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
131
|
-
}, z.core.$
|
|
130
|
+
}, z.core.$strip>>>;
|
|
132
131
|
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
133
|
-
}, z.core.$
|
|
132
|
+
}, z.core.$strip>>>;
|
|
134
133
|
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
135
|
-
}, z.core.$
|
|
134
|
+
}, z.core.$strip>]>>>>>;
|
|
136
135
|
name: z.ZodOptional<z.ZodString>;
|
|
137
136
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
138
137
|
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
139
|
-
}, z.core.$
|
|
140
|
-
}, z.core.$
|
|
141
|
-
}, z.core.$
|
|
138
|
+
}, z.core.$strip>>>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
142
141
|
productId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
143
142
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
144
143
|
sectionType: z.ZodDefault<z.ZodLiteral<"product">>;
|
|
145
|
-
}, z.core.$
|
|
144
|
+
}, z.core.$strip>;
|
|
146
145
|
export type CABProductSection = z.infer<typeof CABProductSection>;
|
|
146
|
+
export type CABProductSectionProps = CABProductSection & SectionDetails;
|
|
147
147
|
//# sourceMappingURL=product.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/schema/product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/schema/product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,cAAc,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABProductsSection: z.ZodObject<{
|
|
3
4
|
name: z.ZodOptional<z.ZodString>;
|
|
4
5
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
5
|
-
sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6
|
+
sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
6
7
|
name: z.ZodOptional<z.ZodString>;
|
|
7
8
|
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
8
9
|
name: z.ZodString;
|
|
@@ -16,10 +17,10 @@ export declare const CABProductsSection: z.ZodObject<{
|
|
|
16
17
|
}>>;
|
|
17
18
|
values: z.ZodArray<z.ZodObject<{
|
|
18
19
|
color: z.ZodOptional<z.ZodString>;
|
|
19
|
-
image: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
image: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
20
21
|
altText: z.ZodDefault<z.ZodString>;
|
|
21
22
|
aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
|
|
22
|
-
border: z.ZodDefault<z.ZodObject<{
|
|
23
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
23
24
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
24
25
|
small: "small";
|
|
25
26
|
none: "none";
|
|
@@ -38,7 +39,7 @@ export declare const CABProductsSection: z.ZodObject<{
|
|
|
38
39
|
medium: "medium";
|
|
39
40
|
thick: "thick";
|
|
40
41
|
}>>;
|
|
41
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$strip>>>;
|
|
42
43
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
43
44
|
declineAllOffers: "declineAllOffers";
|
|
44
45
|
declineOffer: "declineOffer";
|
|
@@ -75,9 +76,9 @@ export declare const CABProductsSection: z.ZodObject<{
|
|
|
75
76
|
sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
76
77
|
source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
|
|
77
78
|
width: z.ZodDefault<z.ZodNumber>;
|
|
78
|
-
}, z.core.$
|
|
79
|
+
}, z.core.$strip>>>;
|
|
79
80
|
name: z.ZodString;
|
|
80
|
-
text: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
text: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
81
82
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
82
83
|
declineAllOffers: "declineAllOffers";
|
|
83
84
|
declineOffer: "declineOffer";
|
|
@@ -100,51 +101,52 @@ export declare const CABProductsSection: z.ZodObject<{
|
|
|
100
101
|
content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
101
102
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
102
103
|
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
103
|
-
}, z.core.$
|
|
104
|
+
}, z.core.$strip>>;
|
|
104
105
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
105
106
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
106
107
|
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
107
|
-
}, z.core.$
|
|
108
|
+
}, z.core.$strip>>;
|
|
108
109
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
109
110
|
marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
110
111
|
type: z.ZodLiteral<"bold">;
|
|
111
|
-
}, z.core.$
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
113
|
type: z.ZodLiteral<"italic">;
|
|
113
|
-
}, z.core.$
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
114
115
|
attrs: z.ZodObject<{
|
|
115
116
|
class: z.ZodNullable<z.ZodString>;
|
|
116
117
|
href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
117
118
|
rel: z.ZodDefault<z.ZodString>;
|
|
118
119
|
target: z.ZodDefault<z.ZodString>;
|
|
119
|
-
}, z.core.$
|
|
120
|
+
}, z.core.$strip>;
|
|
120
121
|
type: z.ZodLiteral<"link">;
|
|
121
|
-
}, z.core.$
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
122
123
|
type: z.ZodLiteral<"strike">;
|
|
123
|
-
}, z.core.$
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
124
125
|
attrs: z.ZodObject<{
|
|
125
126
|
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
|
|
126
127
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
127
|
-
}, z.core.$
|
|
128
|
+
}, z.core.$strip>;
|
|
128
129
|
type: z.ZodLiteral<"textStyle">;
|
|
129
|
-
}, z.core.$
|
|
130
|
+
}, z.core.$strip>]>>>;
|
|
130
131
|
text: z.ZodDefault<z.ZodString>;
|
|
131
132
|
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
132
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$strip>>>;
|
|
133
134
|
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
134
|
-
}, z.core.$
|
|
135
|
+
}, z.core.$strip>>>;
|
|
135
136
|
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
136
|
-
}, z.core.$
|
|
137
|
+
}, z.core.$strip>]>>>>>;
|
|
137
138
|
name: z.ZodOptional<z.ZodString>;
|
|
138
139
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
139
140
|
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
140
|
-
}, z.core.$
|
|
141
|
-
}, z.core.$
|
|
142
|
-
}, z.core.$
|
|
141
|
+
}, z.core.$strip>>>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
143
144
|
productId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
144
145
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
145
146
|
sectionType: z.ZodDefault<z.ZodLiteral<"product">>;
|
|
146
|
-
}, z.core.$
|
|
147
|
+
}, z.core.$strip>>>>;
|
|
147
148
|
sectionType: z.ZodDefault<z.ZodLiteral<"products">>;
|
|
148
|
-
}, z.core.$
|
|
149
|
+
}, z.core.$strip>;
|
|
149
150
|
export type CABProductsSection = z.infer<typeof CABProductsSection>;
|
|
151
|
+
export type CABProductsSectionProps = CABProductsSection & SectionDetails;
|
|
150
152
|
//# sourceMappingURL=products.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/schema/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/schema/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABQuantitySection: z.ZodObject<{
|
|
3
4
|
errorMessages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4
5
|
max: z.ZodOptional<z.ZodString>;
|
|
5
6
|
min: z.ZodOptional<z.ZodString>;
|
|
6
7
|
neg: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$strip>>>;
|
|
8
9
|
inputType: z.ZodDefault<z.ZodEnum<{
|
|
9
10
|
number: "number";
|
|
10
11
|
select: "select";
|
|
@@ -14,6 +15,7 @@ export declare const CABQuantitySection: z.ZodObject<{
|
|
|
14
15
|
name: z.ZodOptional<z.ZodString>;
|
|
15
16
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
16
17
|
sectionType: z.ZodDefault<z.ZodLiteral<"quantity">>;
|
|
17
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$strip>;
|
|
18
19
|
export type CABQuantitySection = z.infer<typeof CABQuantitySection>;
|
|
20
|
+
export type CABQuantitySectionProps = CABQuantitySection & SectionDetails;
|
|
19
21
|
//# sourceMappingURL=quantity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quantity.d.ts","sourceRoot":"","sources":["../../src/schema/quantity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"quantity.d.ts","sourceRoot":"","sources":["../../src/schema/quantity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;iBAuB7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
|
package/dist/schema/reviews.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABReviewsSection: z.ZodObject<{
|
|
3
4
|
name: z.ZodOptional<z.ZodString>;
|
|
4
5
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
5
6
|
sectionType: z.ZodDefault<z.ZodLiteral<"reviews">>;
|
|
6
|
-
}, z.core.$
|
|
7
|
+
}, z.core.$strip>;
|
|
7
8
|
export type CABReviewsSection = z.infer<typeof CABReviewsSection>;
|
|
9
|
+
export type CABReviewsSectionProps = CABReviewsSection & SectionDetails;
|
|
8
10
|
//# sourceMappingURL=reviews.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/schema/reviews.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/schema/reviews.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,cAAc,CAAC"}
|
package/dist/schema/root.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { EditorMode } from '
|
|
3
|
-
import { WidgetType } from '
|
|
4
|
-
import { CABLayoutSection } from '
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { EditorMode } from './common';
|
|
3
|
+
import { WidgetType } from './constants';
|
|
4
|
+
import { CABLayoutSection } from './layout';
|
|
5
5
|
export type TargetArea = {
|
|
6
6
|
fill?: boolean;
|
|
7
7
|
flip?: 'horizontal' | 'vertical' | 'both';
|
|
@@ -21,8 +21,8 @@ export declare const CABRootSection: z.ZodObject<{
|
|
|
21
21
|
middle: "middle";
|
|
22
22
|
bottom: "bottom";
|
|
23
23
|
}>>;
|
|
24
|
-
}, z.core.$
|
|
25
|
-
border: z.ZodDefault<z.ZodObject<{
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
26
26
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
27
27
|
small: "small";
|
|
28
28
|
none: "none";
|
|
@@ -41,7 +41,7 @@ export declare const CABRootSection: z.ZodObject<{
|
|
|
41
41
|
medium: "medium";
|
|
42
42
|
thick: "thick";
|
|
43
43
|
}>>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
45
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
46
46
|
columns: "columns";
|
|
47
47
|
rows: "rows";
|
|
@@ -87,7 +87,7 @@ export declare const CABRootSection: z.ZodObject<{
|
|
|
87
87
|
icon: z.ZodString;
|
|
88
88
|
label: z.ZodString;
|
|
89
89
|
width: z.ZodString;
|
|
90
|
-
}, z.core.$
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
91
|
type: z.ZodDefault<z.ZodEnum<{
|
|
92
92
|
product: "product";
|
|
93
93
|
bundle_builder: "bundle_builder";
|
|
@@ -114,7 +114,7 @@ export declare const CABRootSection: z.ZodObject<{
|
|
|
114
114
|
}>>;
|
|
115
115
|
version: z.ZodDefault<z.ZodLiteral<2>>;
|
|
116
116
|
widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
117
|
-
}, z.core.$
|
|
117
|
+
}, z.core.$strip>;
|
|
118
118
|
export type CABRootSection = CABLayoutSection & {
|
|
119
119
|
editorMode: EditorMode;
|
|
120
120
|
previewMode: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/schema/root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/schema/root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,UAAU,EAAe,MAAM,UAAU,CAAC;AACnD,OAAO,EAAe,UAAU,EAAe,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAY5C,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,CAAC;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG;IAC5C,UAAU,EAAE,UAAU,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|