@rebuy/rebuy 2.5.0-rc.1 → 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 -353
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +458 -353
- 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/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
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod/v4';
|
|
2
|
-
export declare const LegacyV1Widget: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
-
type: z.ZodLiteral<"gift_with_purchase">;
|
|
4
|
-
version: z.ZodLiteral<1>;
|
|
5
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
-
type: z.ZodLiteral<"shopify_checkout_extension">;
|
|
7
|
-
version: z.ZodLiteral<1>;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
type: z.ZodLiteral<"ui_extension_ad">;
|
|
10
|
-
version: z.ZodLiteral<1>;
|
|
11
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
-
type: z.ZodLiteral<"ui_extension_button">;
|
|
13
|
-
version: z.ZodLiteral<1>;
|
|
14
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
-
type: z.ZodLiteral<"ui_extension_content_block">;
|
|
16
|
-
version: z.ZodLiteral<1>;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
type: z.ZodLiteral<"ui_extension_line_item_editor">;
|
|
19
|
-
version: z.ZodLiteral<1>;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
type: z.ZodLiteral<"ui_extension_progress_bar">;
|
|
22
|
-
version: z.ZodLiteral<1>;
|
|
23
|
-
}, z.core.$strip>]>;
|
|
24
|
-
export declare const WidgetSettings: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
-
type: z.ZodLiteral<"gift_with_purchase">;
|
|
26
|
-
version: z.ZodLiteral<1>;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
type: z.ZodLiteral<"shopify_checkout_extension">;
|
|
29
|
-
version: z.ZodLiteral<1>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
type: z.ZodLiteral<"ui_extension_ad">;
|
|
32
|
-
version: z.ZodLiteral<1>;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
type: z.ZodLiteral<"ui_extension_button">;
|
|
35
|
-
version: z.ZodLiteral<1>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
type: z.ZodLiteral<"ui_extension_content_block">;
|
|
38
|
-
version: z.ZodLiteral<1>;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
type: z.ZodLiteral<"ui_extension_line_item_editor">;
|
|
41
|
-
version: z.ZodLiteral<1>;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
type: z.ZodLiteral<"ui_extension_progress_bar">;
|
|
44
|
-
version: z.ZodLiteral<1>;
|
|
45
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
46
|
-
alignment: z.ZodDefault<z.ZodObject<{
|
|
47
|
-
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
48
|
-
start: "start";
|
|
49
|
-
center: "center";
|
|
50
|
-
end: "end";
|
|
51
|
-
}>>;
|
|
52
|
-
vertical: z.ZodDefault<z.ZodEnum<{
|
|
53
|
-
top: "top";
|
|
54
|
-
middle: "middle";
|
|
55
|
-
bottom: "bottom";
|
|
56
|
-
}>>;
|
|
57
|
-
}, z.core.$strip>>;
|
|
58
|
-
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
59
|
-
radius: z.ZodDefault<z.ZodEnum<{
|
|
60
|
-
small: "small";
|
|
61
|
-
none: "none";
|
|
62
|
-
base: "base";
|
|
63
|
-
large: "large";
|
|
64
|
-
fullyRounded: "fullyRounded";
|
|
65
|
-
}>>;
|
|
66
|
-
style: z.ZodDefault<z.ZodEnum<{
|
|
67
|
-
none: "none";
|
|
68
|
-
base: "base";
|
|
69
|
-
dotted: "dotted";
|
|
70
|
-
dashed: "dashed";
|
|
71
|
-
}>>;
|
|
72
|
-
width: z.ZodDefault<z.ZodEnum<{
|
|
73
|
-
base: "base";
|
|
74
|
-
medium: "medium";
|
|
75
|
-
thick: "thick";
|
|
76
|
-
}>>;
|
|
77
|
-
}, z.core.$strip>>>;
|
|
78
|
-
direction: z.ZodDefault<z.ZodEnum<{
|
|
79
|
-
columns: "columns";
|
|
80
|
-
rows: "rows";
|
|
81
|
-
}>>;
|
|
82
|
-
name: z.ZodOptional<z.ZodString>;
|
|
83
|
-
padding: z.ZodDefault<z.ZodEnum<{
|
|
84
|
-
none: "none";
|
|
85
|
-
base: "base";
|
|
86
|
-
extraTight: "extraTight";
|
|
87
|
-
tight: "tight";
|
|
88
|
-
loose: "loose";
|
|
89
|
-
extraLoose: "extraLoose";
|
|
90
|
-
}>>;
|
|
91
|
-
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
92
|
-
sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodType<import("./cab").CABSection, unknown, z.core.$ZodTypeInternals<import("./cab").CABSection, unknown>>>>>;
|
|
93
|
-
sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
|
|
94
|
-
spacing: z.ZodDefault<z.ZodEnum<{
|
|
95
|
-
none: "none";
|
|
96
|
-
base: "base";
|
|
97
|
-
extraTight: "extraTight";
|
|
98
|
-
tight: "tight";
|
|
99
|
-
loose: "loose";
|
|
100
|
-
extraLoose: "extraLoose";
|
|
101
|
-
}>>;
|
|
102
|
-
width: z.ZodDefault<z.ZodNumber>;
|
|
103
|
-
editorMode: z.ZodDefault<z.ZodEnum<{
|
|
104
|
-
checkoutExtension: "checkoutExtension";
|
|
105
|
-
postPurchaseOffer: "postPurchaseOffer";
|
|
106
|
-
thankYouPage: "thankYouPage";
|
|
107
|
-
orderStatusPage: "orderStatusPage";
|
|
108
|
-
ordersIndexPage: "ordersIndexPage";
|
|
109
|
-
customerProfilePage: "customerProfilePage";
|
|
110
|
-
}>>;
|
|
111
|
-
previewMode: z.ZodDefault<z.ZodBoolean>;
|
|
112
|
-
storeId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
113
|
-
targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
114
|
-
fill: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
-
flip: z.ZodOptional<z.ZodEnum<{
|
|
116
|
-
horizontal: "horizontal";
|
|
117
|
-
vertical: "vertical";
|
|
118
|
-
both: "both";
|
|
119
|
-
}>>;
|
|
120
|
-
icon: z.ZodString;
|
|
121
|
-
label: z.ZodString;
|
|
122
|
-
width: z.ZodString;
|
|
123
|
-
}, z.core.$strip>>>;
|
|
124
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
125
|
-
product: "product";
|
|
126
|
-
bundle_builder: "bundle_builder";
|
|
127
|
-
cart: "cart";
|
|
128
|
-
cart_subscription: "cart_subscription";
|
|
129
|
-
dynamic_bundle: "dynamic_bundle";
|
|
130
|
-
gift_with_purchase: "gift_with_purchase";
|
|
131
|
-
pre_purchase: "pre_purchase";
|
|
132
|
-
product_addon: "product_addon";
|
|
133
|
-
product_upsell: "product_upsell";
|
|
134
|
-
recharge_checkout: "recharge_checkout";
|
|
135
|
-
recharge_customer_portal: "recharge_customer_portal";
|
|
136
|
-
recharge_post_purchase: "recharge_post_purchase";
|
|
137
|
-
shopify_checkout: "shopify_checkout";
|
|
138
|
-
shopify_checkout_extension: "shopify_checkout_extension";
|
|
139
|
-
shopify_post_purchase: "shopify_post_purchase";
|
|
140
|
-
shopify_post_purchase_extension: "shopify_post_purchase_extension";
|
|
141
|
-
switch_to_subscription: "switch_to_subscription";
|
|
142
|
-
ui_extension_ad: "ui_extension_ad";
|
|
143
|
-
ui_extension_button: "ui_extension_button";
|
|
144
|
-
ui_extension_content_block: "ui_extension_content_block";
|
|
145
|
-
ui_extension_line_item_editor: "ui_extension_line_item_editor";
|
|
146
|
-
ui_extension_progress_bar: "ui_extension_progress_bar";
|
|
147
|
-
}>>;
|
|
148
|
-
version: z.ZodDefault<z.ZodLiteral<2>>;
|
|
149
|
-
widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
150
|
-
}, z.core.$strip>]>;
|
|
151
|
-
export type WidgetSettings = z.infer<typeof WidgetSettings>;
|
|
152
|
-
//# sourceMappingURL=widgetSettings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widgetSettings.d.ts","sourceRoot":"","sources":["../../src/schema/widgetSettings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;mBAQzB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAoE,CAAC;AAEhG,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|