@rebuy/rebuy 2.6.0-rc.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -5
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +17 -5
- package/dist/index.mjs.map +2 -2
- package/dist/schema/shopConfig.d.ts +1 -1
- package/dist/schema/userConfig.d.ts +1 -1
- package/dist/schema/widgetData.d.ts +48 -8
- package/dist/schema/widgetData.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/button.d.ts +9 -242
- package/dist/schema/widgets/checkout-and-beyond/button.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +22 -4
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/dataSource.d.ts +5 -0
- package/dist/schema/widgets/checkout-and-beyond/dataSource.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +22 -1
- package/dist/schema/widgets/checkout-and-beyond/layout.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +20 -0
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts +2 -0
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts +2 -0
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts +21 -1
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/text.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/text.d.ts.map +1 -1
- package/dist/schema/widgets/contentBlock.d.ts +33 -13
- package/dist/schema/widgets/contentBlock.d.ts.map +1 -1
- package/dist/schema/widgets/rebuyButton.d.ts +21 -1
- package/dist/schema/widgets/rebuyButton.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ export declare const ShopConfig: z.ZodObject<{
|
|
|
56
56
|
reviewsio: "reviewsio";
|
|
57
57
|
stamped: "stamped";
|
|
58
58
|
yotpo: "yotpo";
|
|
59
|
-
}>, z.ZodBoolean
|
|
59
|
+
}>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnknown]>>;
|
|
60
60
|
markets: z.ZodObject<{
|
|
61
61
|
enabled: z.ZodBoolean;
|
|
62
62
|
}, z.core.$strip>;
|
|
@@ -56,7 +56,7 @@ export declare const UserConfig: z.ZodObject<{
|
|
|
56
56
|
reviewsio: "reviewsio";
|
|
57
57
|
stamped: "stamped";
|
|
58
58
|
yotpo: "yotpo";
|
|
59
|
-
}>, z.ZodBoolean
|
|
59
|
+
}>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnknown]>>;
|
|
60
60
|
markets: z.ZodObject<{
|
|
61
61
|
enabled: z.ZodBoolean;
|
|
62
62
|
}, z.core.$strip>;
|
|
@@ -5,15 +5,15 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5
5
|
}, z.core.$loose>, z.ZodObject<{
|
|
6
6
|
type: z.ZodDefault<z.ZodLiteral<"shopify_checkout_extension">>;
|
|
7
7
|
}, z.core.$loose>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
-
blockSpacing: z.ZodEnum<{
|
|
8
|
+
blockSpacing: z.ZodOptional<z.ZodEnum<{
|
|
9
9
|
none: "none";
|
|
10
10
|
base: "base";
|
|
11
11
|
extraTight: "extraTight";
|
|
12
12
|
tight: "tight";
|
|
13
13
|
loose: "loose";
|
|
14
14
|
extraLoose: "extraLoose";
|
|
15
|
-
}
|
|
16
|
-
imageBlocks: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
15
|
+
}>>;
|
|
16
|
+
imageBlocks: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
17
17
|
altText: z.ZodNullable<z.ZodString>;
|
|
18
18
|
description: z.ZodNullable<z.ZodString>;
|
|
19
19
|
id: z.ZodUUID;
|
|
@@ -38,11 +38,11 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
38
38
|
extraSmall: "extraSmall";
|
|
39
39
|
extraLarge: "extraLarge";
|
|
40
40
|
}>;
|
|
41
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]
|
|
42
|
-
imageLayout: z.ZodEnum<{
|
|
41
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
42
|
+
imageLayout: z.ZodOptional<z.ZodEnum<{
|
|
43
43
|
row: "row";
|
|
44
44
|
column: "column";
|
|
45
|
-
}
|
|
45
|
+
}>>;
|
|
46
46
|
language: z.ZodObject<{
|
|
47
47
|
description: z.ZodString;
|
|
48
48
|
superTitle: z.ZodString;
|
|
@@ -84,6 +84,26 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
84
84
|
thick: "thick";
|
|
85
85
|
}>>;
|
|
86
86
|
}, z.core.$strip>>>;
|
|
87
|
+
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
88
|
+
declineAllOffers: "declineAllOffers";
|
|
89
|
+
declineOffer: "declineOffer";
|
|
90
|
+
removeFromCart: "removeFromCart";
|
|
91
|
+
showVariants: "showVariants";
|
|
92
|
+
addedToCart: "addedToCart";
|
|
93
|
+
addingToCart: "addingToCart";
|
|
94
|
+
addToCart: "addToCart";
|
|
95
|
+
buttonLabel: "buttonLabel";
|
|
96
|
+
destinationUrl: "destinationUrl";
|
|
97
|
+
overlayContent: "overlayContent";
|
|
98
|
+
payNow: "payNow";
|
|
99
|
+
showVariant: "showVariant";
|
|
100
|
+
soldOut: "soldOut";
|
|
101
|
+
switchToOneTimeAction: "switchToOneTimeAction";
|
|
102
|
+
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
103
|
+
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
104
|
+
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
105
|
+
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
106
|
+
}>>;
|
|
87
107
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
88
108
|
columns: "columns";
|
|
89
109
|
rows: "rows";
|
|
@@ -122,9 +142,9 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
122
142
|
targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
123
143
|
fill: z.ZodOptional<z.ZodBoolean>;
|
|
124
144
|
flip: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
both: "both";
|
|
125
146
|
horizontal: "horizontal";
|
|
126
147
|
vertical: "vertical";
|
|
127
|
-
both: "both";
|
|
128
148
|
}>>;
|
|
129
149
|
icon: z.ZodString;
|
|
130
150
|
label: z.ZodString;
|
|
@@ -175,6 +195,26 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
175
195
|
thick: "thick";
|
|
176
196
|
}>>;
|
|
177
197
|
}, z.core.$strip>>>;
|
|
198
|
+
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
199
|
+
declineAllOffers: "declineAllOffers";
|
|
200
|
+
declineOffer: "declineOffer";
|
|
201
|
+
removeFromCart: "removeFromCart";
|
|
202
|
+
showVariants: "showVariants";
|
|
203
|
+
addedToCart: "addedToCart";
|
|
204
|
+
addingToCart: "addingToCart";
|
|
205
|
+
addToCart: "addToCart";
|
|
206
|
+
buttonLabel: "buttonLabel";
|
|
207
|
+
destinationUrl: "destinationUrl";
|
|
208
|
+
overlayContent: "overlayContent";
|
|
209
|
+
payNow: "payNow";
|
|
210
|
+
showVariant: "showVariant";
|
|
211
|
+
soldOut: "soldOut";
|
|
212
|
+
switchToOneTimeAction: "switchToOneTimeAction";
|
|
213
|
+
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
214
|
+
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
215
|
+
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
216
|
+
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
217
|
+
}>>;
|
|
178
218
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
179
219
|
columns: "columns";
|
|
180
220
|
rows: "rows";
|
|
@@ -213,9 +253,9 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
213
253
|
targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
214
254
|
fill: z.ZodOptional<z.ZodBoolean>;
|
|
215
255
|
flip: z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
both: "both";
|
|
216
257
|
horizontal: "horizontal";
|
|
217
258
|
vertical: "vertical";
|
|
218
|
-
both: "both";
|
|
219
259
|
}>>;
|
|
220
260
|
icon: z.ZodString;
|
|
221
261
|
label: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widgetData.d.ts","sourceRoot":"","sources":["../../src/schema/widgetData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAY3B,eAAO,MAAM,oBAAoB,oNASvB,CAAC;AAEX,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"widgetData.d.ts","sourceRoot":"","sources":["../../src/schema/widgetData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAY3B,eAAO,MAAM,oBAAoB,oNASvB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBASrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,131 +1,17 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
1
|
+
import { z, type ZodType } from 'zod/v4';
|
|
2
|
+
import { CABImageSection } from './image';
|
|
3
|
+
import { CABLayoutSection } from './layout';
|
|
2
4
|
import { type SectionDetails } from './shared';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
7
|
-
radius: z.ZodDefault<z.ZodEnum<{
|
|
8
|
-
small: "small";
|
|
9
|
-
none: "none";
|
|
10
|
-
base: "base";
|
|
11
|
-
large: "large";
|
|
12
|
-
fullyRounded: "fullyRounded";
|
|
13
|
-
}>>;
|
|
14
|
-
style: z.ZodDefault<z.ZodEnum<{
|
|
15
|
-
none: "none";
|
|
16
|
-
base: "base";
|
|
17
|
-
dotted: "dotted";
|
|
18
|
-
dashed: "dashed";
|
|
19
|
-
}>>;
|
|
20
|
-
width: z.ZodDefault<z.ZodEnum<{
|
|
21
|
-
base: "base";
|
|
22
|
-
medium: "medium";
|
|
23
|
-
thick: "thick";
|
|
24
|
-
}>>;
|
|
25
|
-
}, z.core.$strip>>>;
|
|
26
|
-
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
27
|
-
declineAllOffers: "declineAllOffers";
|
|
28
|
-
declineOffer: "declineOffer";
|
|
29
|
-
removeFromCart: "removeFromCart";
|
|
30
|
-
showVariants: "showVariants";
|
|
31
|
-
addedToCart: "addedToCart";
|
|
32
|
-
addingToCart: "addingToCart";
|
|
33
|
-
addToCart: "addToCart";
|
|
34
|
-
buttonLabel: "buttonLabel";
|
|
35
|
-
destinationUrl: "destinationUrl";
|
|
36
|
-
payNow: "payNow";
|
|
37
|
-
showVariant: "showVariant";
|
|
38
|
-
soldOut: "soldOut";
|
|
39
|
-
switchToOneTimeAction: "switchToOneTimeAction";
|
|
40
|
-
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
41
|
-
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
42
|
-
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
43
|
-
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
44
|
-
}>>;
|
|
45
|
-
category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
46
|
-
gallery: "gallery";
|
|
47
|
-
icons: "icons";
|
|
48
|
-
"payment-methods": "payment-methods";
|
|
49
|
-
"secure-checkout": "secure-checkout";
|
|
50
|
-
}>>>;
|
|
51
|
-
name: z.ZodOptional<z.ZodString>;
|
|
52
|
-
naturalHeight: z.ZodDefault<z.ZodNumber>;
|
|
53
|
-
naturalWidth: z.ZodDefault<z.ZodNumber>;
|
|
54
|
-
objectFit: z.ZodDefault<z.ZodEnum<{
|
|
55
|
-
cover: "cover";
|
|
56
|
-
contain: "contain";
|
|
57
|
-
}>>;
|
|
58
|
-
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
59
|
-
sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
60
|
-
source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
|
|
61
|
-
width: z.ZodDefault<z.ZodNumber>;
|
|
62
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
-
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
64
|
-
declineAllOffers: "declineAllOffers";
|
|
65
|
-
declineOffer: "declineOffer";
|
|
66
|
-
removeFromCart: "removeFromCart";
|
|
67
|
-
showVariants: "showVariants";
|
|
68
|
-
addedToCart: "addedToCart";
|
|
69
|
-
addingToCart: "addingToCart";
|
|
70
|
-
addToCart: "addToCart";
|
|
71
|
-
buttonLabel: "buttonLabel";
|
|
72
|
-
destinationUrl: "destinationUrl";
|
|
73
|
-
payNow: "payNow";
|
|
74
|
-
showVariant: "showVariant";
|
|
75
|
-
soldOut: "soldOut";
|
|
76
|
-
switchToOneTimeAction: "switchToOneTimeAction";
|
|
77
|
-
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
78
|
-
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
79
|
-
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
80
|
-
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
81
|
-
}>>;
|
|
82
|
-
content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
83
|
-
attrs: z.ZodDefault<z.ZodObject<{
|
|
84
|
-
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
87
|
-
attrs: z.ZodDefault<z.ZodObject<{
|
|
88
|
-
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
89
|
-
}, z.core.$strip>>;
|
|
90
|
-
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
91
|
-
marks: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
|
-
type: z.ZodLiteral<"bold">;
|
|
93
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
-
type: z.ZodLiteral<"italic">;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
attrs: z.ZodObject<{
|
|
97
|
-
class: z.ZodNullable<z.ZodString>;
|
|
98
|
-
href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
99
|
-
rel: z.ZodDefault<z.ZodString>;
|
|
100
|
-
target: z.ZodDefault<z.ZodString>;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
type: z.ZodLiteral<"link">;
|
|
103
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
-
type: z.ZodLiteral<"strike">;
|
|
105
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
-
attrs: z.ZodObject<{
|
|
107
|
-
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"success" | "base" | "subdued" | "accent" | "decorative" | "warning" | "critical" | undefined, string>>>>;
|
|
108
|
-
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
109
|
-
}, z.core.$strip>;
|
|
110
|
-
type: z.ZodLiteral<"textStyle">;
|
|
111
|
-
}, z.core.$strip>]>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
112
|
-
text: z.ZodDefault<z.ZodString>;
|
|
113
|
-
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
114
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
115
|
-
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
116
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
117
|
-
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
118
|
-
}, z.core.$strip>]>>>>>;
|
|
119
|
-
name: z.ZodOptional<z.ZodString>;
|
|
120
|
-
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
121
|
-
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
122
|
-
}, z.core.$strip>]>>;
|
|
123
|
-
export type CABButtonContent = z.infer<typeof CABButtonContent>;
|
|
5
|
+
import { CABTextSection } from './text';
|
|
6
|
+
export type CABButtonContent = CABImageSection | CABLayoutSection | CABTextSection;
|
|
7
|
+
export declare const CABButtonContent: ZodType<CABButtonContent>;
|
|
124
8
|
export declare const CABButtonSection: z.ZodObject<{
|
|
125
9
|
action: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodEnum<{
|
|
126
10
|
addToOrder: "addToOrder";
|
|
127
11
|
declineAllOffers: "declineAllOffers";
|
|
128
12
|
declineOffer: "declineOffer";
|
|
13
|
+
displayContentInModal: "displayContentInModal";
|
|
14
|
+
displayContentInPopover: "displayContentInPopover";
|
|
129
15
|
goToRebuyApp: "goToRebuyApp";
|
|
130
16
|
goToRebuyVault: "goToRebuyVault";
|
|
131
17
|
goToURL: "goToURL";
|
|
@@ -146,126 +32,7 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
146
32
|
}, z.core.$strip>>;
|
|
147
33
|
name: z.ZodOptional<z.ZodString>;
|
|
148
34
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
149
|
-
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.
|
|
150
|
-
altText: z.ZodDefault<z.ZodString>;
|
|
151
|
-
aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
|
|
152
|
-
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
153
|
-
radius: z.ZodDefault<z.ZodEnum<{
|
|
154
|
-
small: "small";
|
|
155
|
-
none: "none";
|
|
156
|
-
base: "base";
|
|
157
|
-
large: "large";
|
|
158
|
-
fullyRounded: "fullyRounded";
|
|
159
|
-
}>>;
|
|
160
|
-
style: z.ZodDefault<z.ZodEnum<{
|
|
161
|
-
none: "none";
|
|
162
|
-
base: "base";
|
|
163
|
-
dotted: "dotted";
|
|
164
|
-
dashed: "dashed";
|
|
165
|
-
}>>;
|
|
166
|
-
width: z.ZodDefault<z.ZodEnum<{
|
|
167
|
-
base: "base";
|
|
168
|
-
medium: "medium";
|
|
169
|
-
thick: "thick";
|
|
170
|
-
}>>;
|
|
171
|
-
}, z.core.$strip>>>;
|
|
172
|
-
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
173
|
-
declineAllOffers: "declineAllOffers";
|
|
174
|
-
declineOffer: "declineOffer";
|
|
175
|
-
removeFromCart: "removeFromCart";
|
|
176
|
-
showVariants: "showVariants";
|
|
177
|
-
addedToCart: "addedToCart";
|
|
178
|
-
addingToCart: "addingToCart";
|
|
179
|
-
addToCart: "addToCart";
|
|
180
|
-
buttonLabel: "buttonLabel";
|
|
181
|
-
destinationUrl: "destinationUrl";
|
|
182
|
-
payNow: "payNow";
|
|
183
|
-
showVariant: "showVariant";
|
|
184
|
-
soldOut: "soldOut";
|
|
185
|
-
switchToOneTimeAction: "switchToOneTimeAction";
|
|
186
|
-
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
187
|
-
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
188
|
-
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
189
|
-
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
190
|
-
}>>;
|
|
191
|
-
category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
192
|
-
gallery: "gallery";
|
|
193
|
-
icons: "icons";
|
|
194
|
-
"payment-methods": "payment-methods";
|
|
195
|
-
"secure-checkout": "secure-checkout";
|
|
196
|
-
}>>>;
|
|
197
|
-
name: z.ZodOptional<z.ZodString>;
|
|
198
|
-
naturalHeight: z.ZodDefault<z.ZodNumber>;
|
|
199
|
-
naturalWidth: z.ZodDefault<z.ZodNumber>;
|
|
200
|
-
objectFit: z.ZodDefault<z.ZodEnum<{
|
|
201
|
-
cover: "cover";
|
|
202
|
-
contain: "contain";
|
|
203
|
-
}>>;
|
|
204
|
-
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
205
|
-
sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
|
|
206
|
-
source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
|
|
207
|
-
width: z.ZodDefault<z.ZodNumber>;
|
|
208
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
-
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
210
|
-
declineAllOffers: "declineAllOffers";
|
|
211
|
-
declineOffer: "declineOffer";
|
|
212
|
-
removeFromCart: "removeFromCart";
|
|
213
|
-
showVariants: "showVariants";
|
|
214
|
-
addedToCart: "addedToCart";
|
|
215
|
-
addingToCart: "addingToCart";
|
|
216
|
-
addToCart: "addToCart";
|
|
217
|
-
buttonLabel: "buttonLabel";
|
|
218
|
-
destinationUrl: "destinationUrl";
|
|
219
|
-
payNow: "payNow";
|
|
220
|
-
showVariant: "showVariant";
|
|
221
|
-
soldOut: "soldOut";
|
|
222
|
-
switchToOneTimeAction: "switchToOneTimeAction";
|
|
223
|
-
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
224
|
-
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
225
|
-
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
226
|
-
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
227
|
-
}>>;
|
|
228
|
-
content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
229
|
-
attrs: z.ZodDefault<z.ZodObject<{
|
|
230
|
-
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
231
|
-
}, z.core.$strip>>;
|
|
232
|
-
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
233
|
-
attrs: z.ZodDefault<z.ZodObject<{
|
|
234
|
-
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
235
|
-
}, z.core.$strip>>;
|
|
236
|
-
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
237
|
-
marks: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
238
|
-
type: z.ZodLiteral<"bold">;
|
|
239
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
240
|
-
type: z.ZodLiteral<"italic">;
|
|
241
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
242
|
-
attrs: z.ZodObject<{
|
|
243
|
-
class: z.ZodNullable<z.ZodString>;
|
|
244
|
-
href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
|
|
245
|
-
rel: z.ZodDefault<z.ZodString>;
|
|
246
|
-
target: z.ZodDefault<z.ZodString>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
type: z.ZodLiteral<"link">;
|
|
249
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
-
type: z.ZodLiteral<"strike">;
|
|
251
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
252
|
-
attrs: z.ZodObject<{
|
|
253
|
-
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"success" | "base" | "subdued" | "accent" | "decorative" | "warning" | "critical" | undefined, string>>>>;
|
|
254
|
-
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
255
|
-
}, z.core.$strip>;
|
|
256
|
-
type: z.ZodLiteral<"textStyle">;
|
|
257
|
-
}, z.core.$strip>]>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
258
|
-
text: z.ZodDefault<z.ZodString>;
|
|
259
|
-
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
260
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
261
|
-
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
262
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
263
|
-
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
264
|
-
}, z.core.$strip>]>>>>>;
|
|
265
|
-
name: z.ZodOptional<z.ZodString>;
|
|
266
|
-
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
267
|
-
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
268
|
-
}, z.core.$strip>]>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
35
|
+
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodType<CABButtonContent, unknown, z.core.$ZodTypeInternals<CABButtonContent, unknown>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
269
36
|
sectionType: z.ZodDefault<z.ZodLiteral<"button">>;
|
|
270
37
|
}, z.core.$strip>;
|
|
271
38
|
export type CABButtonSection = z.infer<typeof CABButtonSection>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAEnF,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAEtD,CAAC;AAEF,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"}
|
|
@@ -41,11 +41,13 @@ export declare const BorderWidth: {
|
|
|
41
41
|
thick: "thick";
|
|
42
42
|
};
|
|
43
43
|
export type BorderWidth = z.infer<typeof borderWidth>;
|
|
44
|
-
export declare const buttonActions: readonly ["addToOrder", "declineAllOffers", "declineOffer", "goToRebuyApp", "goToRebuyVault", "goToURL", "removeFromCart", "showVariants", "switchToSubscription"];
|
|
44
|
+
export declare const buttonActions: readonly ["addToOrder", "declineAllOffers", "declineOffer", "displayContentInModal", "displayContentInPopover", "goToRebuyApp", "goToRebuyVault", "goToURL", "removeFromCart", "showVariants", "switchToSubscription"];
|
|
45
45
|
declare const buttonAction: z.ZodEnum<{
|
|
46
46
|
addToOrder: "addToOrder";
|
|
47
47
|
declineAllOffers: "declineAllOffers";
|
|
48
48
|
declineOffer: "declineOffer";
|
|
49
|
+
displayContentInModal: "displayContentInModal";
|
|
50
|
+
displayContentInPopover: "displayContentInPopover";
|
|
49
51
|
goToRebuyApp: "goToRebuyApp";
|
|
50
52
|
goToRebuyVault: "goToRebuyVault";
|
|
51
53
|
goToURL: "goToURL";
|
|
@@ -57,6 +59,8 @@ export declare const ButtonAction: {
|
|
|
57
59
|
addToOrder: "addToOrder";
|
|
58
60
|
declineAllOffers: "declineAllOffers";
|
|
59
61
|
declineOffer: "declineOffer";
|
|
62
|
+
displayContentInModal: "displayContentInModal";
|
|
63
|
+
displayContentInPopover: "displayContentInPopover";
|
|
60
64
|
goToRebuyApp: "goToRebuyApp";
|
|
61
65
|
goToRebuyVault: "goToRebuyVault";
|
|
62
66
|
goToURL: "goToURL";
|
|
@@ -65,7 +69,7 @@ export declare const ButtonAction: {
|
|
|
65
69
|
switchToSubscription: "switchToSubscription";
|
|
66
70
|
};
|
|
67
71
|
export type ButtonAction = z.infer<typeof buttonAction>;
|
|
68
|
-
export declare const buttonFields: readonly ["addedToCart", "addingToCart", "addToCart", "buttonLabel", "declineAllOffers", "declineOffer", "destinationUrl", "payNow", "removeFromCart", "showVariant", "showVariants", "soldOut", "switchToOneTimeAction", "switchToOneTimePurchase", "switchToSubscriptionAction", "switchToSubscriptionNoDiscount", "switchToSubscriptionWithDiscount"];
|
|
72
|
+
export declare const buttonFields: readonly ["addedToCart", "addingToCart", "addToCart", "buttonLabel", "declineAllOffers", "declineOffer", "destinationUrl", "overlayContent", "payNow", "removeFromCart", "showVariant", "showVariants", "soldOut", "switchToOneTimeAction", "switchToOneTimePurchase", "switchToSubscriptionAction", "switchToSubscriptionNoDiscount", "switchToSubscriptionWithDiscount"];
|
|
69
73
|
declare const buttonField: z.ZodEnum<{
|
|
70
74
|
declineAllOffers: "declineAllOffers";
|
|
71
75
|
declineOffer: "declineOffer";
|
|
@@ -76,6 +80,7 @@ declare const buttonField: z.ZodEnum<{
|
|
|
76
80
|
addToCart: "addToCart";
|
|
77
81
|
buttonLabel: "buttonLabel";
|
|
78
82
|
destinationUrl: "destinationUrl";
|
|
83
|
+
overlayContent: "overlayContent";
|
|
79
84
|
payNow: "payNow";
|
|
80
85
|
showVariant: "showVariant";
|
|
81
86
|
soldOut: "soldOut";
|
|
@@ -95,6 +100,7 @@ export declare const ButtonField: {
|
|
|
95
100
|
addToCart: "addToCart";
|
|
96
101
|
buttonLabel: "buttonLabel";
|
|
97
102
|
destinationUrl: "destinationUrl";
|
|
103
|
+
overlayContent: "overlayContent";
|
|
98
104
|
payNow: "payNow";
|
|
99
105
|
showVariant: "showVariant";
|
|
100
106
|
soldOut: "soldOut";
|
|
@@ -227,6 +233,18 @@ export declare const ObjectFit: {
|
|
|
227
233
|
contain: "contain";
|
|
228
234
|
};
|
|
229
235
|
export type ObjectFit = z.infer<typeof objectFit>;
|
|
236
|
+
export declare const productTypes: readonly ["one-time", "subscription", "both"];
|
|
237
|
+
declare const productType: z.ZodEnum<{
|
|
238
|
+
"one-time": "one-time";
|
|
239
|
+
subscription: "subscription";
|
|
240
|
+
both: "both";
|
|
241
|
+
}>;
|
|
242
|
+
export declare const ProductType: {
|
|
243
|
+
"one-time": "one-time";
|
|
244
|
+
subscription: "subscription";
|
|
245
|
+
both: "both";
|
|
246
|
+
};
|
|
247
|
+
export type ProductType = z.infer<typeof productType>;
|
|
230
248
|
export declare const quantityInputs: readonly ["select", "number"];
|
|
231
249
|
declare const quantityInput: z.ZodEnum<{
|
|
232
250
|
number: "number";
|
|
@@ -243,13 +261,13 @@ declare const sectionType: z.ZodEnum<{
|
|
|
243
261
|
variants: "variants";
|
|
244
262
|
image: "image";
|
|
245
263
|
products: "products";
|
|
264
|
+
subscription: "subscription";
|
|
246
265
|
button: "button";
|
|
247
266
|
dataSource: "dataSource";
|
|
248
267
|
layout: "layout";
|
|
249
268
|
offers: "offers";
|
|
250
269
|
quantity: "quantity";
|
|
251
270
|
reviews: "reviews";
|
|
252
|
-
subscription: "subscription";
|
|
253
271
|
table: "table";
|
|
254
272
|
text: "text";
|
|
255
273
|
}>;
|
|
@@ -258,13 +276,13 @@ export declare const SectionType: {
|
|
|
258
276
|
variants: "variants";
|
|
259
277
|
image: "image";
|
|
260
278
|
products: "products";
|
|
279
|
+
subscription: "subscription";
|
|
261
280
|
button: "button";
|
|
262
281
|
dataSource: "dataSource";
|
|
263
282
|
layout: "layout";
|
|
264
283
|
offers: "offers";
|
|
265
284
|
quantity: "quantity";
|
|
266
285
|
reviews: "reviews";
|
|
267
|
-
subscription: "subscription";
|
|
268
286
|
table: "table";
|
|
269
287
|
text: "text";
|
|
270
288
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,WAAW,6DAA8D,CAAC;AACvF,QAAA,MAAM,YAAY;;;;;;EAAsB,CAAC;AAEzC,eAAO,MAAM,YAAY;;;;;;CAAoB,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,YAAY,+CAAgD,CAAC;AAC1E,QAAA,MAAM,WAAW;;;;;EAAuB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;;;CAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,sCAAuC,CAAC;AACjE,QAAA,MAAM,WAAW;;;;EAAuB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;;CAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","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AC;AAE1D,eAAO,MAAM,aAAa,2EAA4E,CAAC;AACvG,QAAA,MAAM,YAAY;;;;;;;EAAwB,CAAC;AAE3C,eAAO,MAAM,YAAY;;;;;;;CAAoB,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB,wDAAyD,CAAC;AACvF,QAAA,MAAM,eAAe;;;;;;EAA2B,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;CAAuB,CAAC;AACpD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,sCAAuC,CAAC;AACvE,QAAA,MAAM,iBAAiB;;;;EAA6B,CAAC;AAErD,eAAO,MAAM,iBAAiB;;;;CAAyB,CAAC;AACxD,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -5,6 +5,11 @@ export declare const CABDataSourceSection: z.ZodObject<{
|
|
|
5
5
|
dataSourcePath: z.ZodDefault<z.ZodString>;
|
|
6
6
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
7
7
|
name: z.ZodDefault<z.ZodString>;
|
|
8
|
+
productType: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
"one-time": "one-time";
|
|
10
|
+
subscription: "subscription";
|
|
11
|
+
both: "both";
|
|
12
|
+
}>>;
|
|
8
13
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
9
14
|
sectionType: z.ZodDefault<z.ZodLiteral<"dataSource">>;
|
|
10
15
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/dataSource.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
|
|
1
|
+
{"version":3,"file":"dataSource.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/dataSource.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;;;;;;;;;;;;iBAQ/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/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
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
import { Direction, HorizontalAlignment, Spacing, VerticalAlignment } from './common';
|
|
2
|
+
import { Direction, HorizontalAlignment, Spacing, VerticalAlignment, type ButtonField } from './common';
|
|
3
3
|
import { CABBorder, CABSection, type SectionDetails } from './shared';
|
|
4
4
|
export declare const CABLayoutSection: z.ZodObject<{
|
|
5
5
|
alignment: z.ZodDefault<z.ZodObject<{
|
|
@@ -34,6 +34,26 @@ export declare const CABLayoutSection: z.ZodObject<{
|
|
|
34
34
|
thick: "thick";
|
|
35
35
|
}>>;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
37
|
+
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
declineAllOffers: "declineAllOffers";
|
|
39
|
+
declineOffer: "declineOffer";
|
|
40
|
+
removeFromCart: "removeFromCart";
|
|
41
|
+
showVariants: "showVariants";
|
|
42
|
+
addedToCart: "addedToCart";
|
|
43
|
+
addingToCart: "addingToCart";
|
|
44
|
+
addToCart: "addToCart";
|
|
45
|
+
buttonLabel: "buttonLabel";
|
|
46
|
+
destinationUrl: "destinationUrl";
|
|
47
|
+
overlayContent: "overlayContent";
|
|
48
|
+
payNow: "payNow";
|
|
49
|
+
showVariant: "showVariant";
|
|
50
|
+
soldOut: "soldOut";
|
|
51
|
+
switchToOneTimeAction: "switchToOneTimeAction";
|
|
52
|
+
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
53
|
+
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
54
|
+
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
55
|
+
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
56
|
+
}>>;
|
|
37
57
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
38
58
|
columns: "columns";
|
|
39
59
|
rows: "rows";
|
|
@@ -66,6 +86,7 @@ export type CABLayoutSection = {
|
|
|
66
86
|
vertical: VerticalAlignment;
|
|
67
87
|
};
|
|
68
88
|
border: CABBorder;
|
|
89
|
+
buttonField?: ButtonField;
|
|
69
90
|
direction: Direction;
|
|
70
91
|
name?: string;
|
|
71
92
|
padding: Spacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAEH,SAAS,EAET,mBAAmB,EAGnB,OAAO,EAEP,iBAAiB,EAEjB,KAAK,WAAW,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB3B,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,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,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"}
|
|
@@ -5,6 +5,26 @@ export declare const CABOffersSection: z.ZodLazy<z.ZodObject<{
|
|
|
5
5
|
name: z.ZodOptional<z.ZodString>;
|
|
6
6
|
width: z.ZodDefault<z.ZodNumber>;
|
|
7
7
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
8
|
+
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
declineAllOffers: "declineAllOffers";
|
|
10
|
+
declineOffer: "declineOffer";
|
|
11
|
+
removeFromCart: "removeFromCart";
|
|
12
|
+
showVariants: "showVariants";
|
|
13
|
+
addedToCart: "addedToCart";
|
|
14
|
+
addingToCart: "addingToCart";
|
|
15
|
+
addToCart: "addToCart";
|
|
16
|
+
buttonLabel: "buttonLabel";
|
|
17
|
+
destinationUrl: "destinationUrl";
|
|
18
|
+
overlayContent: "overlayContent";
|
|
19
|
+
payNow: "payNow";
|
|
20
|
+
showVariant: "showVariant";
|
|
21
|
+
soldOut: "soldOut";
|
|
22
|
+
switchToOneTimeAction: "switchToOneTimeAction";
|
|
23
|
+
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
24
|
+
switchToSubscriptionAction: "switchToSubscriptionAction";
|
|
25
|
+
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
26
|
+
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
27
|
+
}>>;
|
|
8
28
|
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
9
29
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
10
30
|
small: "small";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/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
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkout-and-beyond/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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAS5B,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"}
|