@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.
Files changed (89) hide show
  1. package/dist/index.d.ts +1 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +458 -353
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +458 -353
  6. package/dist/index.mjs.map +4 -4
  7. package/dist/schema/index.d.ts +13 -0
  8. package/dist/schema/index.d.ts.map +1 -0
  9. package/dist/schema/widgetData.d.ts +248 -0
  10. package/dist/schema/widgetData.d.ts.map +1 -0
  11. package/dist/schema/widgets/abTestingPlaceholder.d.ts +7 -0
  12. package/dist/schema/widgets/abTestingPlaceholder.d.ts.map +1 -0
  13. package/dist/schema/{cab → widgets/checkoutAndBeyond}/button.d.ts +17 -17
  14. package/dist/schema/widgets/checkoutAndBeyond/button.d.ts.map +1 -0
  15. package/dist/schema/{cab → widgets/checkoutAndBeyond}/common.d.ts +8 -8
  16. package/dist/schema/widgets/checkoutAndBeyond/common.d.ts.map +1 -0
  17. package/dist/schema/widgets/checkoutAndBeyond/constants.d.ts.map +1 -0
  18. package/dist/schema/{cab/data-source.d.ts → widgets/checkoutAndBeyond/dataSource.d.ts} +1 -1
  19. package/dist/schema/widgets/checkoutAndBeyond/dataSource.d.ts.map +1 -0
  20. package/dist/schema/widgets/checkoutAndBeyond/image.d.ts.map +1 -0
  21. package/dist/schema/{cab → widgets/checkoutAndBeyond}/index.d.ts +1 -1
  22. package/dist/schema/widgets/checkoutAndBeyond/index.d.ts.map +1 -0
  23. package/dist/schema/{cab → widgets/checkoutAndBeyond}/layout.d.ts +1 -1
  24. package/dist/schema/widgets/checkoutAndBeyond/layout.d.ts.map +1 -0
  25. package/dist/schema/{cab → widgets/checkoutAndBeyond}/offers.d.ts +17 -17
  26. package/dist/schema/widgets/checkoutAndBeyond/offers.d.ts.map +1 -0
  27. package/dist/schema/{cab → widgets/checkoutAndBeyond}/product.d.ts +7 -7
  28. package/dist/schema/widgets/checkoutAndBeyond/product.d.ts.map +1 -0
  29. package/dist/schema/{cab → widgets/checkoutAndBeyond}/products.d.ts +9 -9
  30. package/dist/schema/widgets/checkoutAndBeyond/products.d.ts.map +1 -0
  31. package/dist/schema/widgets/checkoutAndBeyond/quantity.d.ts.map +1 -0
  32. package/dist/schema/widgets/checkoutAndBeyond/regex.d.ts.map +1 -0
  33. package/dist/schema/widgets/checkoutAndBeyond/reviews.d.ts.map +1 -0
  34. package/dist/schema/{cab → widgets/checkoutAndBeyond}/root.d.ts +1 -1
  35. package/dist/schema/widgets/checkoutAndBeyond/root.d.ts.map +1 -0
  36. package/dist/schema/{cab → widgets/checkoutAndBeyond}/shared.d.ts +1 -1
  37. package/dist/schema/widgets/checkoutAndBeyond/shared.d.ts.map +1 -0
  38. package/dist/schema/widgets/checkoutAndBeyond/subscription.d.ts.map +1 -0
  39. package/dist/schema/widgets/checkoutAndBeyond/table.d.ts.map +1 -0
  40. package/dist/schema/{cab → widgets/checkoutAndBeyond}/text.d.ts +22 -22
  41. package/dist/schema/widgets/checkoutAndBeyond/text.d.ts.map +1 -0
  42. package/dist/schema/{cab → widgets/checkoutAndBeyond}/utils.d.ts +1 -1
  43. package/dist/schema/widgets/checkoutAndBeyond/utils.d.ts.map +1 -0
  44. package/dist/schema/widgets/checkoutAndBeyond/variants.d.ts.map +1 -0
  45. package/dist/schema/widgets/checkoutExtension.d.ts +7 -0
  46. package/dist/schema/widgets/checkoutExtension.d.ts.map +1 -0
  47. package/dist/schema/widgets/contentBlock.d.ts +50 -0
  48. package/dist/schema/widgets/contentBlock.d.ts.map +1 -0
  49. package/dist/schema/widgets/giftWithPurchase.d.ts +7 -0
  50. package/dist/schema/widgets/giftWithPurchase.d.ts.map +1 -0
  51. package/dist/schema/widgets/lineItemEditor.d.ts +7 -0
  52. package/dist/schema/widgets/lineItemEditor.d.ts.map +1 -0
  53. package/dist/schema/widgets/progressBar.d.ts +7 -0
  54. package/dist/schema/widgets/progressBar.d.ts.map +1 -0
  55. package/dist/schema/widgets/rebuyButton.d.ts +7 -0
  56. package/dist/schema/widgets/rebuyButton.d.ts.map +1 -0
  57. package/dist/schema/widgets/rebuyMonetize.d.ts +7 -0
  58. package/dist/schema/widgets/rebuyMonetize.d.ts.map +1 -0
  59. package/package.json +1 -1
  60. package/dist/schema/cab/button.d.ts.map +0 -1
  61. package/dist/schema/cab/common.d.ts.map +0 -1
  62. package/dist/schema/cab/constants.d.ts.map +0 -1
  63. package/dist/schema/cab/data-source.d.ts.map +0 -1
  64. package/dist/schema/cab/image.d.ts.map +0 -1
  65. package/dist/schema/cab/index.d.ts.map +0 -1
  66. package/dist/schema/cab/layout.d.ts.map +0 -1
  67. package/dist/schema/cab/offers.d.ts.map +0 -1
  68. package/dist/schema/cab/product.d.ts.map +0 -1
  69. package/dist/schema/cab/products.d.ts.map +0 -1
  70. package/dist/schema/cab/quantity.d.ts.map +0 -1
  71. package/dist/schema/cab/regex.d.ts.map +0 -1
  72. package/dist/schema/cab/reviews.d.ts.map +0 -1
  73. package/dist/schema/cab/root.d.ts.map +0 -1
  74. package/dist/schema/cab/shared.d.ts.map +0 -1
  75. package/dist/schema/cab/subscription.d.ts.map +0 -1
  76. package/dist/schema/cab/table.d.ts.map +0 -1
  77. package/dist/schema/cab/text.d.ts.map +0 -1
  78. package/dist/schema/cab/utils.d.ts.map +0 -1
  79. package/dist/schema/cab/variants.d.ts.map +0 -1
  80. package/dist/schema/widgetSettings.d.ts +0 -152
  81. package/dist/schema/widgetSettings.d.ts.map +0 -1
  82. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/constants.d.ts +0 -0
  83. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/image.d.ts +0 -0
  84. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/quantity.d.ts +0 -0
  85. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/regex.d.ts +0 -0
  86. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/reviews.d.ts +0 -0
  87. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/subscription.d.ts +0 -0
  88. /package/dist/schema/{cab → widgets/checkoutAndBeyond}/table.d.ts +0 -0
  89. /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"}