@rebuy/rebuy 2.2.0-rc.5 → 2.2.0-rc.7
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.js +59 -33
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +60 -34
- package/dist/index.mjs.map +3 -3
- package/dist/schema/button.d.ts +34 -32
- package/dist/schema/button.d.ts.map +1 -1
- package/dist/schema/data-source.d.ts +3 -1
- package/dist/schema/data-source.d.ts.map +1 -1
- package/dist/schema/image.d.ts +4 -2
- package/dist/schema/image.d.ts.map +1 -1
- package/dist/schema/layout.d.ts +5 -4
- package/dist/schema/layout.d.ts.map +1 -1
- package/dist/schema/offers.d.ts +17 -16
- package/dist/schema/offers.d.ts.map +1 -1
- package/dist/schema/product.d.ts +20 -20
- package/dist/schema/product.d.ts.map +1 -1
- package/dist/schema/products.d.ts +21 -19
- package/dist/schema/products.d.ts.map +1 -1
- package/dist/schema/quantity.d.ts +4 -2
- package/dist/schema/quantity.d.ts.map +1 -1
- package/dist/schema/reviews.d.ts +3 -1
- package/dist/schema/reviews.d.ts.map +1 -1
- package/dist/schema/root.d.ts +4 -4
- package/dist/schema/root.d.ts.map +1 -1
- package/dist/schema/shared.d.ts +41 -1
- package/dist/schema/shared.d.ts.map +1 -1
- package/dist/schema/subscription.d.ts +3 -1
- package/dist/schema/subscription.d.ts.map +1 -1
- package/dist/schema/table.d.ts +3 -1
- package/dist/schema/table.d.ts.map +1 -1
- package/dist/schema/text.d.ts +45 -43
- 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 +3 -1
- package/dist/schema/variants.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/schema/button.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
+
import { type SectionDetails } from './shared';
|
|
2
3
|
export declare const CABButtonContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
4
|
altText: z.ZodDefault<z.ZodString>;
|
|
4
5
|
aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
|
|
@@ -21,7 +22,7 @@ export declare const CABButtonContent: z.ZodDiscriminatedUnion<[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,7 +59,7 @@ export declare const CABButtonContent: z.ZodDiscriminatedUnion<[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>, z.ZodObject<{
|
|
62
63
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
63
64
|
declineAllOffers: "declineAllOffers";
|
|
64
65
|
declineOffer: "declineOffer";
|
|
@@ -81,44 +82,44 @@ export declare const CABButtonContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
81
82
|
content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
82
83
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
83
84
|
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
84
|
-
}, z.core.$
|
|
85
|
+
}, z.core.$strip>>;
|
|
85
86
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
87
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
87
88
|
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
88
|
-
}, z.core.$
|
|
89
|
+
}, z.core.$strip>>;
|
|
89
90
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
90
91
|
marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
92
|
type: z.ZodLiteral<"bold">;
|
|
92
|
-
}, z.core.$
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
94
|
type: z.ZodLiteral<"italic">;
|
|
94
|
-
}, z.core.$
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
96
|
attrs: z.ZodObject<{
|
|
96
97
|
class: z.ZodNullable<z.ZodString>;
|
|
97
98
|
href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
98
99
|
rel: z.ZodDefault<z.ZodString>;
|
|
99
100
|
target: z.ZodDefault<z.ZodString>;
|
|
100
|
-
}, z.core.$
|
|
101
|
+
}, z.core.$strip>;
|
|
101
102
|
type: z.ZodLiteral<"link">;
|
|
102
|
-
}, z.core.$
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
104
|
type: z.ZodLiteral<"strike">;
|
|
104
|
-
}, z.core.$
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
105
106
|
attrs: z.ZodObject<{
|
|
106
107
|
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
|
|
107
108
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
108
|
-
}, z.core.$
|
|
109
|
+
}, z.core.$strip>;
|
|
109
110
|
type: z.ZodLiteral<"textStyle">;
|
|
110
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$strip>]>>>;
|
|
111
112
|
text: z.ZodDefault<z.ZodString>;
|
|
112
113
|
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
113
|
-
}, z.core.$
|
|
114
|
+
}, z.core.$strip>>>;
|
|
114
115
|
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
115
|
-
}, z.core.$
|
|
116
|
+
}, z.core.$strip>>>;
|
|
116
117
|
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
117
|
-
}, z.core.$
|
|
118
|
+
}, z.core.$strip>]>>>>>;
|
|
118
119
|
name: z.ZodOptional<z.ZodString>;
|
|
119
120
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
120
121
|
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
121
|
-
}, z.core.$
|
|
122
|
+
}, z.core.$strip>]>;
|
|
122
123
|
export type CABButtonContent = z.infer<typeof CABButtonContent>;
|
|
123
124
|
export declare const CABButtonSection: z.ZodObject<{
|
|
124
125
|
action: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodEnum<{
|
|
@@ -142,7 +143,7 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
142
143
|
color: z.ZodDefault<z.ZodString>;
|
|
143
144
|
height: z.ZodDefault<z.ZodNumber>;
|
|
144
145
|
width: z.ZodDefault<z.ZodNumber>;
|
|
145
|
-
}, z.core.$
|
|
146
|
+
}, z.core.$strip>>;
|
|
146
147
|
name: z.ZodOptional<z.ZodString>;
|
|
147
148
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
148
149
|
sections: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -167,7 +168,7 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
167
168
|
medium: "medium";
|
|
168
169
|
thick: "thick";
|
|
169
170
|
}>>;
|
|
170
|
-
}, z.core.$
|
|
171
|
+
}, z.core.$strip>>;
|
|
171
172
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
172
173
|
declineAllOffers: "declineAllOffers";
|
|
173
174
|
declineOffer: "declineOffer";
|
|
@@ -204,7 +205,7 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
204
205
|
sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
205
206
|
source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
|
|
206
207
|
width: z.ZodDefault<z.ZodNumber>;
|
|
207
|
-
}, z.core.$
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
209
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
209
210
|
declineAllOffers: "declineAllOffers";
|
|
210
211
|
declineOffer: "declineOffer";
|
|
@@ -227,45 +228,46 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
227
228
|
content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
228
229
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
229
230
|
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
230
|
-
}, z.core.$
|
|
231
|
+
}, z.core.$strip>>;
|
|
231
232
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
232
233
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
233
234
|
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
234
|
-
}, z.core.$
|
|
235
|
+
}, z.core.$strip>>;
|
|
235
236
|
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
236
237
|
marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
237
238
|
type: z.ZodLiteral<"bold">;
|
|
238
|
-
}, z.core.$
|
|
239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
239
240
|
type: z.ZodLiteral<"italic">;
|
|
240
|
-
}, z.core.$
|
|
241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
241
242
|
attrs: z.ZodObject<{
|
|
242
243
|
class: z.ZodNullable<z.ZodString>;
|
|
243
244
|
href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
244
245
|
rel: z.ZodDefault<z.ZodString>;
|
|
245
246
|
target: z.ZodDefault<z.ZodString>;
|
|
246
|
-
}, z.core.$
|
|
247
|
+
}, z.core.$strip>;
|
|
247
248
|
type: z.ZodLiteral<"link">;
|
|
248
|
-
}, z.core.$
|
|
249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
249
250
|
type: z.ZodLiteral<"strike">;
|
|
250
|
-
}, z.core.$
|
|
251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
252
|
attrs: z.ZodObject<{
|
|
252
253
|
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
|
|
253
254
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
254
|
-
}, z.core.$
|
|
255
|
+
}, z.core.$strip>;
|
|
255
256
|
type: z.ZodLiteral<"textStyle">;
|
|
256
|
-
}, z.core.$
|
|
257
|
+
}, z.core.$strip>]>>>;
|
|
257
258
|
text: z.ZodDefault<z.ZodString>;
|
|
258
259
|
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
259
|
-
}, z.core.$
|
|
260
|
+
}, z.core.$strip>>>;
|
|
260
261
|
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
261
|
-
}, z.core.$
|
|
262
|
+
}, z.core.$strip>>>;
|
|
262
263
|
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
263
|
-
}, z.core.$
|
|
264
|
+
}, z.core.$strip>]>>>>>;
|
|
264
265
|
name: z.ZodOptional<z.ZodString>;
|
|
265
266
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
266
267
|
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
267
|
-
}, z.core.$
|
|
268
|
+
}, z.core.$strip>]>>>;
|
|
268
269
|
sectionType: z.ZodDefault<z.ZodLiteral<"button">>;
|
|
269
|
-
}, z.core.$
|
|
270
|
+
}, z.core.$strip>;
|
|
270
271
|
export type CABButtonSection = z.infer<typeof CABButtonSection>;
|
|
272
|
+
export type CABButtonSectionProps = CABButtonSection & SectionDetails;
|
|
271
273
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/schema/button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/schema/button.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAyE,CAAC;AAEvG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,cAAc,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
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":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/schema/data-source.ts"],"names":[],"mappings":"AAGA,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,4 +1,5 @@
|
|
|
1
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>>>;
|
|
@@ -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":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/schema/image.ts"],"names":[],"mappings":"AAGA,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/layout.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
import { Direction, HorizontalAlignment, Spacing, VerticalAlignment } from './common';
|
|
3
|
-
import { CABBorder, CABSection } from './shared';
|
|
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,7 +13,7 @@ export declare const CABLayoutSection: z.ZodObject<{
|
|
|
13
13
|
middle: "middle";
|
|
14
14
|
bottom: "bottom";
|
|
15
15
|
}>>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
17
|
border: z.ZodDefault<z.ZodObject<{
|
|
18
18
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
19
19
|
small: "small";
|
|
@@ -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;
|
|
@@ -75,4 +75,5 @@ export type CABLayoutSection = {
|
|
|
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":"AAGA,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,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schema/layout.ts"],"names":[],"mappings":"AAGA,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,20 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
import { CABLayoutSection } from './layout';
|
|
3
|
-
import { CABSection } from './shared';
|
|
3
|
+
import { CABSection, type SectionDetails } from './shared';
|
|
4
4
|
export declare const CABOffersSection: z.ZodObject<{
|
|
5
|
-
alignment: z.ZodDefault<z.ZodObject<{
|
|
6
|
-
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
7
|
-
start: "start";
|
|
8
|
-
center: "center";
|
|
9
|
-
end: "end";
|
|
10
|
-
}>>;
|
|
11
|
-
vertical: z.ZodDefault<z.ZodEnum<{
|
|
12
|
-
top: "top";
|
|
13
|
-
middle: "middle";
|
|
14
|
-
bottom: "bottom";
|
|
15
|
-
}>>;
|
|
16
|
-
}, z.core.$strict>>;
|
|
17
|
-
width: z.ZodDefault<z.ZodNumber>;
|
|
18
5
|
border: z.ZodDefault<z.ZodObject<{
|
|
19
6
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
20
7
|
small: "small";
|
|
@@ -34,7 +21,20 @@ export declare const CABOffersSection: z.ZodObject<{
|
|
|
34
21
|
medium: "medium";
|
|
35
22
|
thick: "thick";
|
|
36
23
|
}>>;
|
|
37
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
alignment: z.ZodDefault<z.ZodObject<{
|
|
26
|
+
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
27
|
+
start: "start";
|
|
28
|
+
center: "center";
|
|
29
|
+
end: "end";
|
|
30
|
+
}>>;
|
|
31
|
+
vertical: z.ZodDefault<z.ZodEnum<{
|
|
32
|
+
top: "top";
|
|
33
|
+
middle: "middle";
|
|
34
|
+
bottom: "bottom";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
38
38
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
39
39
|
columns: "columns";
|
|
40
40
|
rows: "rows";
|
|
@@ -59,8 +59,9 @@ export declare const CABOffersSection: z.ZodObject<{
|
|
|
59
59
|
}>>;
|
|
60
60
|
sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodType<CABSection, unknown, z.core.$ZodTypeInternals<CABSection, unknown>>>>>;
|
|
61
61
|
sectionType: z.ZodDefault<z.ZodLiteral<"offers">>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strip>;
|
|
63
63
|
export type CABOffersSection = Omit<CABLayoutSection, 'sectionType'> & {
|
|
64
64
|
sectionType: 'offers';
|
|
65
65
|
};
|
|
66
|
+
export type CABOffersSectionProps = CABOffersSection & SectionDetails;
|
|
66
67
|
//# sourceMappingURL=offers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/schema/offers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/schema/offers.ts"],"names":[],"mappings":"AAEA,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
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<{
|
|
@@ -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,8 +73,7 @@ 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
78
|
text: z.ZodOptional<z.ZodObject<{
|
|
80
79
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
@@ -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":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/schema/product.ts"],"names":[],"mappings":"AAGA,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,4 +1,5 @@
|
|
|
1
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>;
|
|
@@ -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,7 +76,7 @@ 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
81
|
text: z.ZodOptional<z.ZodObject<{
|
|
81
82
|
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
@@ -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":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/schema/products.ts"],"names":[],"mappings":"AAGA,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
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":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"quantity.d.ts","sourceRoot":"","sources":["../../src/schema/quantity.ts"],"names":[],"mappings":"AAGA,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
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":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/schema/reviews.ts"],"names":[],"mappings":"AAGA,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
|
@@ -21,7 +21,7 @@ export declare const CABRootSection: z.ZodObject<{
|
|
|
21
21
|
middle: "middle";
|
|
22
22
|
bottom: "bottom";
|
|
23
23
|
}>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
25
|
border: z.ZodDefault<z.ZodObject<{
|
|
26
26
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
27
27
|
small: "small";
|
|
@@ -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":"AAEA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/schema/root.ts"],"names":[],"mappings":"AAEA,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"}
|