@rebuy/rebuy 2.4.0 → 2.5.0-rc.2
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 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +458 -337
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +458 -337
- package/dist/index.mjs.map +4 -4
- package/dist/schema/index.d.ts +13 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/shopConfig.d.ts +36 -20
- package/dist/schema/shopConfig.d.ts.map +1 -1
- package/dist/schema/userConfig.d.ts +37 -21
- package/dist/schema/userConfig.d.ts.map +1 -1
- package/dist/schema/widgetData.d.ts +248 -0
- package/dist/schema/widgetData.d.ts.map +1 -0
- package/dist/schema/widgets/abTestingPlaceholder.d.ts +7 -0
- package/dist/schema/widgets/abTestingPlaceholder.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/button.d.ts +17 -17
- package/dist/schema/widgets/checkoutAndBeyond/button.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/common.d.ts +8 -8
- package/dist/schema/widgets/checkoutAndBeyond/common.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/constants.d.ts.map +1 -0
- package/dist/schema/{cab/data-source.d.ts → widgets/checkoutAndBeyond/dataSource.d.ts} +1 -1
- package/dist/schema/widgets/checkoutAndBeyond/dataSource.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/image.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/index.d.ts +1 -1
- package/dist/schema/widgets/checkoutAndBeyond/index.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/layout.d.ts +1 -1
- package/dist/schema/widgets/checkoutAndBeyond/layout.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/offers.d.ts +17 -17
- package/dist/schema/widgets/checkoutAndBeyond/offers.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/product.d.ts +7 -7
- package/dist/schema/widgets/checkoutAndBeyond/product.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/products.d.ts +9 -9
- package/dist/schema/widgets/checkoutAndBeyond/products.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/quantity.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/regex.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/reviews.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/root.d.ts +1 -1
- package/dist/schema/widgets/checkoutAndBeyond/root.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/shared.d.ts +1 -1
- package/dist/schema/widgets/checkoutAndBeyond/shared.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/subscription.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/table.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/text.d.ts +22 -22
- package/dist/schema/widgets/checkoutAndBeyond/text.d.ts.map +1 -0
- package/dist/schema/{cab → widgets/checkoutAndBeyond}/utils.d.ts +1 -1
- package/dist/schema/widgets/checkoutAndBeyond/utils.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutAndBeyond/variants.d.ts.map +1 -0
- package/dist/schema/widgets/checkoutExtension.d.ts +7 -0
- package/dist/schema/widgets/checkoutExtension.d.ts.map +1 -0
- package/dist/schema/widgets/contentBlock.d.ts +50 -0
- package/dist/schema/widgets/contentBlock.d.ts.map +1 -0
- package/dist/schema/widgets/giftWithPurchase.d.ts +7 -0
- package/dist/schema/widgets/giftWithPurchase.d.ts.map +1 -0
- package/dist/schema/widgets/lineItemEditor.d.ts +7 -0
- package/dist/schema/widgets/lineItemEditor.d.ts.map +1 -0
- package/dist/schema/widgets/progressBar.d.ts +7 -0
- package/dist/schema/widgets/progressBar.d.ts.map +1 -0
- package/dist/schema/widgets/rebuyButton.d.ts +7 -0
- package/dist/schema/widgets/rebuyButton.d.ts.map +1 -0
- package/dist/schema/widgets/rebuyMonetize.d.ts +7 -0
- package/dist/schema/widgets/rebuyMonetize.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/schema/cab/button.d.ts.map +0 -1
- package/dist/schema/cab/common.d.ts.map +0 -1
- package/dist/schema/cab/constants.d.ts.map +0 -1
- package/dist/schema/cab/data-source.d.ts.map +0 -1
- package/dist/schema/cab/image.d.ts.map +0 -1
- package/dist/schema/cab/index.d.ts.map +0 -1
- package/dist/schema/cab/layout.d.ts.map +0 -1
- package/dist/schema/cab/offers.d.ts.map +0 -1
- package/dist/schema/cab/product.d.ts.map +0 -1
- package/dist/schema/cab/products.d.ts.map +0 -1
- package/dist/schema/cab/quantity.d.ts.map +0 -1
- package/dist/schema/cab/regex.d.ts.map +0 -1
- package/dist/schema/cab/reviews.d.ts.map +0 -1
- package/dist/schema/cab/root.d.ts.map +0 -1
- package/dist/schema/cab/shared.d.ts.map +0 -1
- package/dist/schema/cab/subscription.d.ts.map +0 -1
- package/dist/schema/cab/table.d.ts.map +0 -1
- package/dist/schema/cab/text.d.ts.map +0 -1
- package/dist/schema/cab/utils.d.ts.map +0 -1
- package/dist/schema/cab/variants.d.ts.map +0 -1
- package/dist/schema/widgetSettings.d.ts +0 -152
- package/dist/schema/widgetSettings.d.ts.map +0 -1
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/constants.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/image.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/quantity.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/regex.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/reviews.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/subscription.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/table.d.ts +0 -0
- /package/dist/schema/{cab → widgets/checkoutAndBeyond}/variants.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './shopConfig';
|
|
2
|
+
export * from './userConfig';
|
|
3
|
+
export * from './widgetData';
|
|
4
|
+
export * from './widgets/abTestingPlaceholder';
|
|
5
|
+
export * from './widgets/checkoutAndBeyond';
|
|
6
|
+
export * from './widgets/checkoutExtension';
|
|
7
|
+
export * from './widgets/contentBlock';
|
|
8
|
+
export * from './widgets/giftWithPurchase';
|
|
9
|
+
export * from './widgets/lineItemEditor';
|
|
10
|
+
export * from './widgets/progressBar';
|
|
11
|
+
export * from './widgets/rebuyButton';
|
|
12
|
+
export * from './widgets/rebuyMonetize';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
/** @see {@link https://bitbucket.org/rebuyengine/rebuyengine.com/src/main/application/libraries/Cache/ShopConfigCache.php#lines-143} */
|
|
3
3
|
export declare const ShopConfig: z.ZodObject<{
|
|
4
|
-
activeExperiments: z.
|
|
4
|
+
activeExperiments: z.ZodArray<z.ZodObject<{
|
|
5
5
|
data: z.ZodArray<z.ZodObject<{
|
|
6
6
|
aliasName: z.ZodString;
|
|
7
7
|
cssInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
elementId: z.
|
|
9
|
-
id: z.
|
|
8
|
+
elementId: z.ZodCoercedNumber<unknown>;
|
|
9
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
10
10
|
javascriptInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
traffic: z.
|
|
12
|
-
}, z.core.$
|
|
13
|
-
id: z.
|
|
11
|
+
traffic: z.ZodCoercedNumber<unknown>;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
pageTarget: z.ZodNullable<z.ZodString>;
|
|
16
|
-
|
|
16
|
+
pageTargetUrl: z.ZodNullable<z.ZodString>;
|
|
17
|
+
placeholderId: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
17
18
|
type: z.ZodString;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
activePackages: z.
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
activePackages: z.ZodArray<z.ZodObject<{
|
|
20
21
|
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
21
22
|
id: z.ZodNumber;
|
|
22
23
|
installedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -27,30 +28,45 @@ export declare const ShopConfig: z.ZodObject<{
|
|
|
27
28
|
shortName: z.ZodString;
|
|
28
29
|
trialDays: z.ZodNumber;
|
|
29
30
|
uninstalledAt: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$strict>>;
|
|
31
32
|
apiKey: z.ZodString;
|
|
32
|
-
billingVersion: z.
|
|
33
|
-
cacheKey: z.
|
|
34
|
-
carousel: z.
|
|
33
|
+
billingVersion: z.ZodString;
|
|
34
|
+
cacheKey: z.ZodCoercedNumber<unknown>;
|
|
35
|
+
carousel: z.ZodEnum<{
|
|
36
|
+
flickity: "flickity";
|
|
37
|
+
splide: "splide";
|
|
38
|
+
}>;
|
|
35
39
|
currency: z.ZodString;
|
|
36
40
|
currencySymbol: z.ZodString;
|
|
37
41
|
domain: z.ZodString;
|
|
38
42
|
enabledJquery: z.ZodBoolean;
|
|
39
43
|
enabledPresentmentCurrencies: z.ZodArray<z.ZodString>;
|
|
40
|
-
hasSmartCollectionsEnabled: z.
|
|
44
|
+
hasSmartCollectionsEnabled: z.ZodBoolean;
|
|
41
45
|
hasSmartSearchEnabled: z.ZodBoolean;
|
|
42
|
-
id: z.
|
|
43
|
-
integrations: z.ZodRecord<z.
|
|
46
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
47
|
+
integrations: z.ZodRecord<z.ZodEnum<{
|
|
48
|
+
attentive: "attentive";
|
|
49
|
+
judgeme: "judgeme";
|
|
50
|
+
junip: "junip";
|
|
51
|
+
klaviyo: "klaviyo";
|
|
52
|
+
loox: "loox";
|
|
53
|
+
okendo: "okendo";
|
|
54
|
+
opinew: "opinew";
|
|
55
|
+
recharge: "recharge";
|
|
56
|
+
reviewsio: "reviewsio";
|
|
57
|
+
stamped: "stamped";
|
|
58
|
+
yotpo: "yotpo";
|
|
59
|
+
}>, z.ZodBoolean>;
|
|
44
60
|
markets: z.ZodObject<{
|
|
45
61
|
enabled: z.ZodBoolean;
|
|
46
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strict>;
|
|
47
63
|
moneyFormat: z.ZodString;
|
|
48
64
|
myshopifyDomain: z.ZodString;
|
|
49
65
|
primaryLocale: z.ZodString;
|
|
50
|
-
productGroupsEnabled: z.ZodEnum<{
|
|
66
|
+
productGroupsEnabled: z.ZodPipe<z.ZodEnum<{
|
|
51
67
|
no: "no";
|
|
52
68
|
yes: "yes";
|
|
53
|
-
}
|
|
69
|
+
}>, z.ZodTransform<boolean, "no" | "yes">>;
|
|
54
70
|
rechargeCustomDomain: z.ZodNullable<z.ZodString>;
|
|
55
71
|
sellingPlansEnabled: z.ZodBoolean;
|
|
56
72
|
shopId: z.ZodNumber;
|
|
@@ -58,6 +74,6 @@ export declare const ShopConfig: z.ZodObject<{
|
|
|
58
74
|
shopName: z.ZodString;
|
|
59
75
|
storefrontAccessToken: z.ZodNullable<z.ZodString>;
|
|
60
76
|
useRebuyIcons: z.ZodBoolean;
|
|
61
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>;
|
|
62
78
|
export type ShopConfig = z.infer<typeof ShopConfig>;
|
|
63
79
|
//# sourceMappingURL=shopConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shopConfig.d.ts","sourceRoot":"","sources":["../../src/schema/shopConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,wIAAwI;AACxI,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"shopConfig.d.ts","sourceRoot":"","sources":["../../src/schema/shopConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,wIAAwI;AACxI,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA6ErB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const UserConfig: z.ZodObject<{
|
|
3
3
|
shop: z.ZodObject<{
|
|
4
|
-
activeExperiments: z.
|
|
4
|
+
activeExperiments: z.ZodArray<z.ZodObject<{
|
|
5
5
|
data: z.ZodArray<z.ZodObject<{
|
|
6
6
|
aliasName: z.ZodString;
|
|
7
7
|
cssInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
elementId: z.
|
|
9
|
-
id: z.
|
|
8
|
+
elementId: z.ZodCoercedNumber<unknown>;
|
|
9
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
10
10
|
javascriptInput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
-
traffic: z.
|
|
12
|
-
}, z.core.$
|
|
13
|
-
id: z.
|
|
11
|
+
traffic: z.ZodCoercedNumber<unknown>;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
pageTarget: z.ZodNullable<z.ZodString>;
|
|
16
|
-
|
|
16
|
+
pageTargetUrl: z.ZodNullable<z.ZodString>;
|
|
17
|
+
placeholderId: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
17
18
|
type: z.ZodString;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
activePackages: z.
|
|
19
|
+
}, z.core.$strict>>;
|
|
20
|
+
activePackages: z.ZodArray<z.ZodObject<{
|
|
20
21
|
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
21
22
|
id: z.ZodNumber;
|
|
22
23
|
installedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -27,30 +28,45 @@ export declare const UserConfig: z.ZodObject<{
|
|
|
27
28
|
shortName: z.ZodString;
|
|
28
29
|
trialDays: z.ZodNumber;
|
|
29
30
|
uninstalledAt: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$strict>>;
|
|
31
32
|
apiKey: z.ZodString;
|
|
32
|
-
billingVersion: z.
|
|
33
|
-
cacheKey: z.
|
|
34
|
-
carousel: z.
|
|
33
|
+
billingVersion: z.ZodString;
|
|
34
|
+
cacheKey: z.ZodCoercedNumber<unknown>;
|
|
35
|
+
carousel: z.ZodEnum<{
|
|
36
|
+
flickity: "flickity";
|
|
37
|
+
splide: "splide";
|
|
38
|
+
}>;
|
|
35
39
|
currency: z.ZodString;
|
|
36
40
|
currencySymbol: z.ZodString;
|
|
37
41
|
domain: z.ZodString;
|
|
38
42
|
enabledJquery: z.ZodBoolean;
|
|
39
43
|
enabledPresentmentCurrencies: z.ZodArray<z.ZodString>;
|
|
40
|
-
hasSmartCollectionsEnabled: z.
|
|
44
|
+
hasSmartCollectionsEnabled: z.ZodBoolean;
|
|
41
45
|
hasSmartSearchEnabled: z.ZodBoolean;
|
|
42
|
-
id: z.
|
|
43
|
-
integrations: z.ZodRecord<z.
|
|
46
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
47
|
+
integrations: z.ZodRecord<z.ZodEnum<{
|
|
48
|
+
attentive: "attentive";
|
|
49
|
+
judgeme: "judgeme";
|
|
50
|
+
junip: "junip";
|
|
51
|
+
klaviyo: "klaviyo";
|
|
52
|
+
loox: "loox";
|
|
53
|
+
okendo: "okendo";
|
|
54
|
+
opinew: "opinew";
|
|
55
|
+
recharge: "recharge";
|
|
56
|
+
reviewsio: "reviewsio";
|
|
57
|
+
stamped: "stamped";
|
|
58
|
+
yotpo: "yotpo";
|
|
59
|
+
}>, z.ZodBoolean>;
|
|
44
60
|
markets: z.ZodObject<{
|
|
45
61
|
enabled: z.ZodBoolean;
|
|
46
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$strict>;
|
|
47
63
|
moneyFormat: z.ZodString;
|
|
48
64
|
myshopifyDomain: z.ZodString;
|
|
49
65
|
primaryLocale: z.ZodString;
|
|
50
|
-
productGroupsEnabled: z.ZodEnum<{
|
|
66
|
+
productGroupsEnabled: z.ZodPipe<z.ZodEnum<{
|
|
51
67
|
no: "no";
|
|
52
68
|
yes: "yes";
|
|
53
|
-
}
|
|
69
|
+
}>, z.ZodTransform<boolean, "no" | "yes">>;
|
|
54
70
|
rechargeCustomDomain: z.ZodNullable<z.ZodString>;
|
|
55
71
|
sellingPlansEnabled: z.ZodBoolean;
|
|
56
72
|
shopId: z.ZodNumber;
|
|
@@ -58,9 +74,9 @@ export declare const UserConfig: z.ZodObject<{
|
|
|
58
74
|
shopName: z.ZodString;
|
|
59
75
|
storefrontAccessToken: z.ZodNullable<z.ZodString>;
|
|
60
76
|
useRebuyIcons: z.ZodBoolean;
|
|
61
|
-
}, z.core.$
|
|
77
|
+
}, z.core.$strict>;
|
|
62
78
|
smartCart: z.ZodUnknown;
|
|
63
79
|
smartFlows: z.ZodArray<z.ZodUnknown>;
|
|
64
|
-
}, z.core.$
|
|
80
|
+
}, z.core.$strict>;
|
|
65
81
|
export type UserConfig = z.infer<typeof UserConfig>;
|
|
66
82
|
//# sourceMappingURL=userConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userConfig.d.ts","sourceRoot":"","sources":["../../src/schema/userConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"userConfig.d.ts","sourceRoot":"","sources":["../../src/schema/userConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAIrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const extensionWidgetTypes: readonly ["placeholder", "gift_with_purchase", "shopify_checkout_extension", "ui_extension_ad", "ui_extension_button", "ui_extension_content_block", "ui_extension_line_item_editor", "ui_extension_progress_bar"];
|
|
3
|
+
export declare const LegacyV0Widget: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4
|
+
type: z.ZodLiteral<"placeholder">;
|
|
5
|
+
version: z.ZodUndefined;
|
|
6
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
7
|
+
type: z.ZodDefault<z.ZodLiteral<"shopify_checkout_extension">>;
|
|
8
|
+
version: z.ZodUndefined;
|
|
9
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
10
|
+
type: z.ZodDefault<z.ZodLiteral<"gift_with_purchase">>;
|
|
11
|
+
version: z.ZodUndefined;
|
|
12
|
+
}, z.core.$loose>]>;
|
|
13
|
+
export declare const LegacyV1Widget: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
blockSpacing: z.ZodEnum<{
|
|
15
|
+
none: "none";
|
|
16
|
+
base: "base";
|
|
17
|
+
extraTight: "extraTight";
|
|
18
|
+
tight: "tight";
|
|
19
|
+
loose: "loose";
|
|
20
|
+
extraLoose: "extraLoose";
|
|
21
|
+
}>;
|
|
22
|
+
imageBlocks: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
23
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
24
|
+
description: z.ZodNullable<z.ZodString>;
|
|
25
|
+
id: z.ZodUUID;
|
|
26
|
+
imagePlacement: z.ZodEnum<{
|
|
27
|
+
top: "top";
|
|
28
|
+
bottom: "bottom";
|
|
29
|
+
right: "right";
|
|
30
|
+
left: "left";
|
|
31
|
+
}>;
|
|
32
|
+
imageSize: z.ZodNumber;
|
|
33
|
+
imageUrl: z.ZodURL;
|
|
34
|
+
textAlignment: z.ZodEnum<{
|
|
35
|
+
center: "center";
|
|
36
|
+
right: "right";
|
|
37
|
+
left: "left";
|
|
38
|
+
}>;
|
|
39
|
+
textSize: z.ZodEnum<{
|
|
40
|
+
small: "small";
|
|
41
|
+
base: "base";
|
|
42
|
+
large: "large";
|
|
43
|
+
medium: "medium";
|
|
44
|
+
extraSmall: "extraSmall";
|
|
45
|
+
extraLarge: "extraLarge";
|
|
46
|
+
}>;
|
|
47
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>;
|
|
48
|
+
imageLayout: z.ZodEnum<{
|
|
49
|
+
row: "row";
|
|
50
|
+
column: "column";
|
|
51
|
+
}>;
|
|
52
|
+
language: z.ZodObject<{
|
|
53
|
+
description: z.ZodString;
|
|
54
|
+
superTitle: z.ZodString;
|
|
55
|
+
title: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
previewMode: z.ZodBoolean;
|
|
58
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_content_block">>;
|
|
59
|
+
version: z.ZodLiteral<1>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_line_item_editor">>;
|
|
62
|
+
version: z.ZodLiteral<1>;
|
|
63
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
64
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_progress_bar">>;
|
|
65
|
+
version: z.ZodLiteral<1>;
|
|
66
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
67
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_button">>;
|
|
68
|
+
version: z.ZodLiteral<1>;
|
|
69
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
70
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_ad">>;
|
|
71
|
+
version: z.ZodLiteral<1>;
|
|
72
|
+
}, z.core.$loose>]>;
|
|
73
|
+
export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"placeholder">;
|
|
75
|
+
version: z.ZodUndefined;
|
|
76
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
77
|
+
type: z.ZodDefault<z.ZodLiteral<"shopify_checkout_extension">>;
|
|
78
|
+
version: z.ZodUndefined;
|
|
79
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
80
|
+
type: z.ZodDefault<z.ZodLiteral<"gift_with_purchase">>;
|
|
81
|
+
version: z.ZodUndefined;
|
|
82
|
+
}, z.core.$loose>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
83
|
+
blockSpacing: z.ZodEnum<{
|
|
84
|
+
none: "none";
|
|
85
|
+
base: "base";
|
|
86
|
+
extraTight: "extraTight";
|
|
87
|
+
tight: "tight";
|
|
88
|
+
loose: "loose";
|
|
89
|
+
extraLoose: "extraLoose";
|
|
90
|
+
}>;
|
|
91
|
+
imageBlocks: z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
92
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
93
|
+
description: z.ZodNullable<z.ZodString>;
|
|
94
|
+
id: z.ZodUUID;
|
|
95
|
+
imagePlacement: z.ZodEnum<{
|
|
96
|
+
top: "top";
|
|
97
|
+
bottom: "bottom";
|
|
98
|
+
right: "right";
|
|
99
|
+
left: "left";
|
|
100
|
+
}>;
|
|
101
|
+
imageSize: z.ZodNumber;
|
|
102
|
+
imageUrl: z.ZodURL;
|
|
103
|
+
textAlignment: z.ZodEnum<{
|
|
104
|
+
center: "center";
|
|
105
|
+
right: "right";
|
|
106
|
+
left: "left";
|
|
107
|
+
}>;
|
|
108
|
+
textSize: z.ZodEnum<{
|
|
109
|
+
small: "small";
|
|
110
|
+
base: "base";
|
|
111
|
+
large: "large";
|
|
112
|
+
medium: "medium";
|
|
113
|
+
extraSmall: "extraSmall";
|
|
114
|
+
extraLarge: "extraLarge";
|
|
115
|
+
}>;
|
|
116
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>;
|
|
117
|
+
imageLayout: z.ZodEnum<{
|
|
118
|
+
row: "row";
|
|
119
|
+
column: "column";
|
|
120
|
+
}>;
|
|
121
|
+
language: z.ZodObject<{
|
|
122
|
+
description: z.ZodString;
|
|
123
|
+
superTitle: z.ZodString;
|
|
124
|
+
title: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
previewMode: z.ZodBoolean;
|
|
127
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_content_block">>;
|
|
128
|
+
version: z.ZodLiteral<1>;
|
|
129
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
130
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_line_item_editor">>;
|
|
131
|
+
version: z.ZodLiteral<1>;
|
|
132
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
133
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_progress_bar">>;
|
|
134
|
+
version: z.ZodLiteral<1>;
|
|
135
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
136
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_button">>;
|
|
137
|
+
version: z.ZodLiteral<1>;
|
|
138
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
139
|
+
type: z.ZodDefault<z.ZodLiteral<"ui_extension_ad">>;
|
|
140
|
+
version: z.ZodLiteral<1>;
|
|
141
|
+
}, z.core.$loose>]>, z.ZodObject<{
|
|
142
|
+
alignment: z.ZodDefault<z.ZodObject<{
|
|
143
|
+
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
144
|
+
start: "start";
|
|
145
|
+
center: "center";
|
|
146
|
+
end: "end";
|
|
147
|
+
}>>;
|
|
148
|
+
vertical: z.ZodDefault<z.ZodEnum<{
|
|
149
|
+
top: "top";
|
|
150
|
+
middle: "middle";
|
|
151
|
+
bottom: "bottom";
|
|
152
|
+
}>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
155
|
+
radius: z.ZodDefault<z.ZodEnum<{
|
|
156
|
+
small: "small";
|
|
157
|
+
none: "none";
|
|
158
|
+
base: "base";
|
|
159
|
+
large: "large";
|
|
160
|
+
fullyRounded: "fullyRounded";
|
|
161
|
+
}>>;
|
|
162
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
163
|
+
none: "none";
|
|
164
|
+
base: "base";
|
|
165
|
+
dotted: "dotted";
|
|
166
|
+
dashed: "dashed";
|
|
167
|
+
}>>;
|
|
168
|
+
width: z.ZodDefault<z.ZodEnum<{
|
|
169
|
+
base: "base";
|
|
170
|
+
medium: "medium";
|
|
171
|
+
thick: "thick";
|
|
172
|
+
}>>;
|
|
173
|
+
}, z.core.$strip>>>;
|
|
174
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
175
|
+
columns: "columns";
|
|
176
|
+
rows: "rows";
|
|
177
|
+
}>>;
|
|
178
|
+
name: z.ZodOptional<z.ZodString>;
|
|
179
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
180
|
+
none: "none";
|
|
181
|
+
base: "base";
|
|
182
|
+
extraTight: "extraTight";
|
|
183
|
+
tight: "tight";
|
|
184
|
+
loose: "loose";
|
|
185
|
+
extraLoose: "extraLoose";
|
|
186
|
+
}>>;
|
|
187
|
+
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
188
|
+
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import(".").CABSection, unknown, z.core.$ZodTypeInternals<import(".").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
189
|
+
sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
|
|
190
|
+
spacing: z.ZodDefault<z.ZodEnum<{
|
|
191
|
+
none: "none";
|
|
192
|
+
base: "base";
|
|
193
|
+
extraTight: "extraTight";
|
|
194
|
+
tight: "tight";
|
|
195
|
+
loose: "loose";
|
|
196
|
+
extraLoose: "extraLoose";
|
|
197
|
+
}>>;
|
|
198
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
199
|
+
editorMode: z.ZodDefault<z.ZodEnum<{
|
|
200
|
+
checkoutExtension: "checkoutExtension";
|
|
201
|
+
postPurchaseOffer: "postPurchaseOffer";
|
|
202
|
+
thankYouPage: "thankYouPage";
|
|
203
|
+
orderStatusPage: "orderStatusPage";
|
|
204
|
+
ordersIndexPage: "ordersIndexPage";
|
|
205
|
+
customerProfilePage: "customerProfilePage";
|
|
206
|
+
}>>;
|
|
207
|
+
previewMode: z.ZodDefault<z.ZodBoolean>;
|
|
208
|
+
storeId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
209
|
+
targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
210
|
+
fill: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
+
flip: z.ZodOptional<z.ZodEnum<{
|
|
212
|
+
horizontal: "horizontal";
|
|
213
|
+
vertical: "vertical";
|
|
214
|
+
both: "both";
|
|
215
|
+
}>>;
|
|
216
|
+
icon: z.ZodString;
|
|
217
|
+
label: z.ZodString;
|
|
218
|
+
width: z.ZodString;
|
|
219
|
+
}, z.core.$strip>>>;
|
|
220
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
221
|
+
product: "product";
|
|
222
|
+
bundle_builder: "bundle_builder";
|
|
223
|
+
cart: "cart";
|
|
224
|
+
cart_subscription: "cart_subscription";
|
|
225
|
+
dynamic_bundle: "dynamic_bundle";
|
|
226
|
+
gift_with_purchase: "gift_with_purchase";
|
|
227
|
+
pre_purchase: "pre_purchase";
|
|
228
|
+
product_addon: "product_addon";
|
|
229
|
+
product_upsell: "product_upsell";
|
|
230
|
+
recharge_checkout: "recharge_checkout";
|
|
231
|
+
recharge_customer_portal: "recharge_customer_portal";
|
|
232
|
+
recharge_post_purchase: "recharge_post_purchase";
|
|
233
|
+
shopify_checkout: "shopify_checkout";
|
|
234
|
+
shopify_checkout_extension: "shopify_checkout_extension";
|
|
235
|
+
shopify_post_purchase: "shopify_post_purchase";
|
|
236
|
+
shopify_post_purchase_extension: "shopify_post_purchase_extension";
|
|
237
|
+
switch_to_subscription: "switch_to_subscription";
|
|
238
|
+
ui_extension_ad: "ui_extension_ad";
|
|
239
|
+
ui_extension_button: "ui_extension_button";
|
|
240
|
+
ui_extension_content_block: "ui_extension_content_block";
|
|
241
|
+
ui_extension_line_item_editor: "ui_extension_line_item_editor";
|
|
242
|
+
ui_extension_progress_bar: "ui_extension_progress_bar";
|
|
243
|
+
}>>;
|
|
244
|
+
version: z.ZodDefault<z.ZodLiteral<2>>;
|
|
245
|
+
widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
246
|
+
}, z.core.$strip>]>;
|
|
247
|
+
export type WidgetData = z.infer<typeof WidgetData>;
|
|
248
|
+
//# sourceMappingURL=widgetData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"widgetData.d.ts","sourceRoot":"","sources":["../../src/schema/widgetData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAa3B,eAAO,MAAM,oBAAoB,oNASvB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;mBAA4F,CAAC;AAExH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAMzB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoF,CAAC;AAE5G,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const ABTestingPlaceholder: z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"placeholder">;
|
|
4
|
+
version: z.ZodUndefined;
|
|
5
|
+
}, z.core.$loose>;
|
|
6
|
+
export type ABTestingPlaceholder = z.infer<typeof ABTestingPlaceholder>;
|
|
7
|
+
//# sourceMappingURL=abTestingPlaceholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abTestingPlaceholder.d.ts","sourceRoot":"","sources":["../../../src/schema/widgets/abTestingPlaceholder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -83,12 +83,12 @@ export declare const CABButtonContent: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
83
83
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
84
84
|
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
85
85
|
}, z.core.$strip>>;
|
|
86
|
-
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
+
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
87
87
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
88
88
|
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
89
89
|
}, z.core.$strip>>;
|
|
90
|
-
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
91
|
-
marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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
92
|
type: z.ZodLiteral<"bold">;
|
|
93
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
94
94
|
type: z.ZodLiteral<"italic">;
|
|
@@ -104,16 +104,16 @@ export declare const CABButtonContent: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
104
104
|
type: z.ZodLiteral<"strike">;
|
|
105
105
|
}, z.core.$strip>, z.ZodObject<{
|
|
106
106
|
attrs: z.ZodObject<{
|
|
107
|
-
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"
|
|
107
|
+
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"success" | "base" | "subdued" | "accent" | "decorative" | "warning" | "critical" | undefined, string>>>>;
|
|
108
108
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
109
109
|
}, z.core.$strip>;
|
|
110
110
|
type: z.ZodLiteral<"textStyle">;
|
|
111
|
-
}, z.core.$strip>]
|
|
111
|
+
}, z.core.$strip>]>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
112
112
|
text: z.ZodDefault<z.ZodString>;
|
|
113
113
|
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
114
|
-
}, z.core.$strip
|
|
114
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
115
115
|
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
116
|
-
}, z.core.$strip
|
|
116
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
117
117
|
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
118
118
|
}, z.core.$strip>]>>>>>;
|
|
119
119
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -134,10 +134,10 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
134
134
|
switchToSubscription: "switchToSubscription";
|
|
135
135
|
}>]>>;
|
|
136
136
|
buttonStyle: z.ZodDefault<z.ZodEnum<{
|
|
137
|
+
custom: "custom";
|
|
137
138
|
primary: "primary";
|
|
138
139
|
secondary: "secondary";
|
|
139
140
|
plain: "plain";
|
|
140
|
-
custom: "custom";
|
|
141
141
|
}>>;
|
|
142
142
|
custom: z.ZodDefault<z.ZodObject<{
|
|
143
143
|
color: z.ZodDefault<z.ZodString>;
|
|
@@ -146,7 +146,7 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
146
146
|
}, z.core.$strip>>;
|
|
147
147
|
name: z.ZodOptional<z.ZodString>;
|
|
148
148
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
149
|
-
sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
149
|
+
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
150
150
|
altText: z.ZodDefault<z.ZodString>;
|
|
151
151
|
aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
|
|
152
152
|
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
@@ -229,12 +229,12 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
229
229
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
230
230
|
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
231
231
|
}, z.core.$strip>>;
|
|
232
|
-
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
232
|
+
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
233
233
|
attrs: z.ZodDefault<z.ZodObject<{
|
|
234
234
|
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
235
235
|
}, z.core.$strip>>;
|
|
236
|
-
content: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
237
|
-
marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
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
238
|
type: z.ZodLiteral<"bold">;
|
|
239
239
|
}, z.core.$strip>, z.ZodObject<{
|
|
240
240
|
type: z.ZodLiteral<"italic">;
|
|
@@ -250,22 +250,22 @@ export declare const CABButtonSection: z.ZodObject<{
|
|
|
250
250
|
type: z.ZodLiteral<"strike">;
|
|
251
251
|
}, z.core.$strip>, z.ZodObject<{
|
|
252
252
|
attrs: z.ZodObject<{
|
|
253
|
-
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"
|
|
253
|
+
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"success" | "base" | "subdued" | "accent" | "decorative" | "warning" | "critical" | undefined, string>>>>;
|
|
254
254
|
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
|
|
255
255
|
}, z.core.$strip>;
|
|
256
256
|
type: z.ZodLiteral<"textStyle">;
|
|
257
|
-
}, z.core.$strip>]
|
|
257
|
+
}, z.core.$strip>]>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
258
258
|
text: z.ZodDefault<z.ZodString>;
|
|
259
259
|
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
260
|
-
}, z.core.$strip
|
|
260
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
261
261
|
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
262
|
-
}, z.core.$strip
|
|
262
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
263
263
|
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
264
264
|
}, z.core.$strip>]>>>>>;
|
|
265
265
|
name: z.ZodOptional<z.ZodString>;
|
|
266
266
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
267
267
|
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
268
|
-
}, z.core.$strip>]
|
|
268
|
+
}, z.core.$strip>]>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
269
269
|
sectionType: z.ZodDefault<z.ZodLiteral<"button">>;
|
|
270
270
|
}, z.core.$strip>;
|
|
271
271
|
export type CABButtonSection = z.infer<typeof CABButtonSection>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/schema/widgets/checkoutAndBeyond/button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAuF,CAAC;AAErH,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"}
|