@rebuy/rebuy 3.5.0 → 3.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.cjs +740 -647
- package/dist/index.mjs +740 -647
- package/dist/schema/checkout-and-beyond/constants.cjs +16 -0
- package/dist/schema/checkout-and-beyond/constants.mjs +16 -0
- package/dist/schema/checkout-and-beyond/index.cjs +454 -362
- package/dist/schema/checkout-and-beyond/index.mjs +454 -362
- package/dist/schema/widget-data.cjs +508 -435
- package/dist/schema/widget-data.mjs +508 -435
- package/dist/schema/widgetData.d.ts +438 -147
- package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/button.d.ts +154 -49
- package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +29 -0
- package/dist/schema/widgets/checkout-and-beyond/discount.d.ts +146 -0
- package/dist/schema/widgets/checkout-and-beyond/icons.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +294 -100
- package/dist/schema/widgets/checkout-and-beyond/index.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +148 -52
- package/dist/schema/widgets/checkout-and-beyond/monetize.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts +146 -0
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts +292 -0
- package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/quantity.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/reviews.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/rule.d.ts +140 -68
- package/dist/schema/widgets/checkout-and-beyond/text.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/variables.d.ts +470 -0
- package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +146 -49
- package/dist/schema/widgets/contentBlock.d.ts +146 -49
- package/dist/schema/widgets/lineItemEditor.d.ts +146 -49
- package/dist/schema/widgets/rebuyButton.d.ts +146 -49
- package/dist/server/index.cjs +492 -416
- package/dist/server/index.mjs +492 -416
- package/dist/transforms/index.cjs +393 -317
- package/dist/transforms/index.mjs +393 -317
- package/dist/transforms/monetizeV1/convertMonetizeToV2.d.ts +2 -2
- package/package.json +1 -1
|
@@ -34,6 +34,7 @@ __export(common_exports, {
|
|
|
34
34
|
HorizontalAlignment: () => HorizontalAlignment,
|
|
35
35
|
InlineTextSizeName: () => InlineTextSizeName,
|
|
36
36
|
LanguageKey: () => LanguageKey,
|
|
37
|
+
MutatorEvent: () => MutatorEvent,
|
|
37
38
|
ObjectFit: () => ObjectFit,
|
|
38
39
|
OffersDirection: () => OffersDirection,
|
|
39
40
|
PopoverPosition: () => PopoverPosition,
|
|
@@ -41,12 +42,15 @@ __export(common_exports, {
|
|
|
41
42
|
ProgressTierType: () => ProgressTierType,
|
|
42
43
|
ProgressTierUnit: () => ProgressTierUnit,
|
|
43
44
|
QuantityInput: () => QuantityInput,
|
|
45
|
+
ResultCountOperator: () => ResultCountOperator,
|
|
46
|
+
ResultTagOperator: () => ResultTagOperator,
|
|
44
47
|
ReviewsSize: () => ReviewsSize,
|
|
45
48
|
SectionType: () => SectionType,
|
|
46
49
|
Spacing: () => Spacing,
|
|
47
50
|
TextAlignment: () => TextAlignment,
|
|
48
51
|
TextColorName: () => TextColorName,
|
|
49
52
|
TextSizeName: () => TextSizeName,
|
|
53
|
+
VariableEffect: () => VariableEffect,
|
|
50
54
|
VariantMode: () => VariantMode,
|
|
51
55
|
VariantSelector: () => VariantSelector,
|
|
52
56
|
VerticalAlignment: () => VerticalAlignment,
|
|
@@ -65,6 +69,7 @@ __export(common_exports, {
|
|
|
65
69
|
horizontalAlignments: () => horizontalAlignments,
|
|
66
70
|
inlineTextSizeNames: () => inlineTextSizeNames,
|
|
67
71
|
languageKeys: () => languageKeys,
|
|
72
|
+
mutatorEvents: () => mutatorEvents,
|
|
68
73
|
objectFits: () => objectFits,
|
|
69
74
|
offersDirections: () => offersDirections,
|
|
70
75
|
popoverPositionMap: () => popoverPositionMap,
|
|
@@ -73,12 +78,15 @@ __export(common_exports, {
|
|
|
73
78
|
progressTierTypes: () => progressTierTypes,
|
|
74
79
|
progressTierUnits: () => progressTierUnits,
|
|
75
80
|
quantityInputs: () => quantityInputs,
|
|
81
|
+
resultCountOperators: () => resultCountOperators,
|
|
82
|
+
resultTagOperators: () => resultTagOperators,
|
|
76
83
|
reviewsSizes: () => reviewsSizes,
|
|
77
84
|
sectionTypes: () => sectionTypes,
|
|
78
85
|
spacings: () => spacings,
|
|
79
86
|
textAlignments: () => textAlignments,
|
|
80
87
|
textColorNames: () => textColorNames,
|
|
81
88
|
textSizeNames: () => textSizeNames,
|
|
89
|
+
variableEffects: () => variableEffects,
|
|
82
90
|
variantModes: () => variantModes,
|
|
83
91
|
variantSelectors: () => variantSelectors,
|
|
84
92
|
verticalAlignments: () => verticalAlignments
|
|
@@ -188,6 +196,8 @@ var languageKeys = [
|
|
|
188
196
|
"zh"
|
|
189
197
|
];
|
|
190
198
|
var LanguageKey = freezeEnum(languageKeys);
|
|
199
|
+
var mutatorEvents = ["item_added", "quantity_changed", "variant_selected"];
|
|
200
|
+
var MutatorEvent = freezeEnum(mutatorEvents);
|
|
191
201
|
var objectFits = ["cover", "contain"];
|
|
192
202
|
var ObjectFit = freezeEnum(objectFits);
|
|
193
203
|
var popoverPositions = ["inlineStart", "inlineEnd", "blockStart", "blockEnd"];
|
|
@@ -206,6 +216,10 @@ var progressTierUnits = ["currency", "item"];
|
|
|
206
216
|
var ProgressTierUnit = freezeEnum(progressTierUnits);
|
|
207
217
|
var quantityInputs = ["select", "number"];
|
|
208
218
|
var QuantityInput = freezeEnum(quantityInputs);
|
|
219
|
+
var resultCountOperators = ["equals", "greater_than", "less_than"];
|
|
220
|
+
var ResultCountOperator = freezeEnum(resultCountOperators);
|
|
221
|
+
var resultTagOperators = ["contains", "does_not_contain"];
|
|
222
|
+
var ResultTagOperator = freezeEnum(resultTagOperators);
|
|
209
223
|
var reviewsSizes = ["small", "default", "large"];
|
|
210
224
|
var ReviewsSize = freezeEnum(reviewsSizes);
|
|
211
225
|
var sectionTypes = [
|
|
@@ -238,6 +252,8 @@ var inlineTextSizeNames = ["extraSmall", "small", "base", "medium", "large", "ex
|
|
|
238
252
|
var InlineTextSizeName = freezeEnum(inlineTextSizeNames);
|
|
239
253
|
var textSizeNames = [...inlineTextSizeNames, "heading"];
|
|
240
254
|
var TextSizeName = freezeEnum(textSizeNames);
|
|
255
|
+
var variableEffects = ["set_false", "set_true", "toggle"];
|
|
256
|
+
var VariableEffect = freezeEnum(variableEffects);
|
|
241
257
|
var variantModes = ["multiple", "single"];
|
|
242
258
|
var VariantMode = freezeEnum(variantModes);
|
|
243
259
|
var variantSelectors = ["menu", "radio", "button"];
|
|
@@ -103,6 +103,8 @@ var languageKeys = [
|
|
|
103
103
|
"zh"
|
|
104
104
|
];
|
|
105
105
|
var LanguageKey = freezeEnum(languageKeys);
|
|
106
|
+
var mutatorEvents = ["item_added", "quantity_changed", "variant_selected"];
|
|
107
|
+
var MutatorEvent = freezeEnum(mutatorEvents);
|
|
106
108
|
var objectFits = ["cover", "contain"];
|
|
107
109
|
var ObjectFit = freezeEnum(objectFits);
|
|
108
110
|
var popoverPositions = ["inlineStart", "inlineEnd", "blockStart", "blockEnd"];
|
|
@@ -121,6 +123,10 @@ var progressTierUnits = ["currency", "item"];
|
|
|
121
123
|
var ProgressTierUnit = freezeEnum(progressTierUnits);
|
|
122
124
|
var quantityInputs = ["select", "number"];
|
|
123
125
|
var QuantityInput = freezeEnum(quantityInputs);
|
|
126
|
+
var resultCountOperators = ["equals", "greater_than", "less_than"];
|
|
127
|
+
var ResultCountOperator = freezeEnum(resultCountOperators);
|
|
128
|
+
var resultTagOperators = ["contains", "does_not_contain"];
|
|
129
|
+
var ResultTagOperator = freezeEnum(resultTagOperators);
|
|
124
130
|
var reviewsSizes = ["small", "default", "large"];
|
|
125
131
|
var ReviewsSize = freezeEnum(reviewsSizes);
|
|
126
132
|
var sectionTypes = [
|
|
@@ -153,6 +159,8 @@ var inlineTextSizeNames = ["extraSmall", "small", "base", "medium", "large", "ex
|
|
|
153
159
|
var InlineTextSizeName = freezeEnum(inlineTextSizeNames);
|
|
154
160
|
var textSizeNames = [...inlineTextSizeNames, "heading"];
|
|
155
161
|
var TextSizeName = freezeEnum(textSizeNames);
|
|
162
|
+
var variableEffects = ["set_false", "set_true", "toggle"];
|
|
163
|
+
var VariableEffect = freezeEnum(variableEffects);
|
|
156
164
|
var variantModes = ["multiple", "single"];
|
|
157
165
|
var VariantMode = freezeEnum(variantModes);
|
|
158
166
|
var variantSelectors = ["menu", "radio", "button"];
|
|
@@ -174,6 +182,7 @@ export {
|
|
|
174
182
|
HorizontalAlignment,
|
|
175
183
|
InlineTextSizeName,
|
|
176
184
|
LanguageKey,
|
|
185
|
+
MutatorEvent,
|
|
177
186
|
ObjectFit,
|
|
178
187
|
OffersDirection,
|
|
179
188
|
PopoverPosition,
|
|
@@ -181,12 +190,15 @@ export {
|
|
|
181
190
|
ProgressTierType,
|
|
182
191
|
ProgressTierUnit,
|
|
183
192
|
QuantityInput,
|
|
193
|
+
ResultCountOperator,
|
|
194
|
+
ResultTagOperator,
|
|
184
195
|
ReviewsSize,
|
|
185
196
|
SectionType,
|
|
186
197
|
Spacing,
|
|
187
198
|
TextAlignment,
|
|
188
199
|
TextColorName,
|
|
189
200
|
TextSizeName,
|
|
201
|
+
VariableEffect,
|
|
190
202
|
VariantMode,
|
|
191
203
|
VariantSelector,
|
|
192
204
|
VerticalAlignment,
|
|
@@ -205,6 +217,7 @@ export {
|
|
|
205
217
|
horizontalAlignments,
|
|
206
218
|
inlineTextSizeNames,
|
|
207
219
|
languageKeys,
|
|
220
|
+
mutatorEvents,
|
|
208
221
|
objectFits,
|
|
209
222
|
offersDirections,
|
|
210
223
|
popoverPositionMap,
|
|
@@ -213,12 +226,15 @@ export {
|
|
|
213
226
|
progressTierTypes,
|
|
214
227
|
progressTierUnits,
|
|
215
228
|
quantityInputs,
|
|
229
|
+
resultCountOperators,
|
|
230
|
+
resultTagOperators,
|
|
216
231
|
reviewsSizes,
|
|
217
232
|
sectionTypes,
|
|
218
233
|
spacings,
|
|
219
234
|
textAlignments,
|
|
220
235
|
textColorNames,
|
|
221
236
|
textSizeNames,
|
|
237
|
+
variableEffects,
|
|
222
238
|
variantModes,
|
|
223
239
|
variantSelectors,
|
|
224
240
|
verticalAlignments
|