@rebuy/rebuy 2.13.0 → 2.14.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.js +9 -2
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +2 -2
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +10 -0
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts +4 -0
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts +4 -0
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +4 -0
- package/dist/schema/widgets/checkout-and-beyond/variants.d.ts.map +1 -1
- package/dist/schema/widgets/post-purchase-offer/postPurchaseOffer.d.ts +1 -1
- package/dist/schema/widgets/post-purchase-offer/postPurchaseSettings.d.ts +1 -1
- package/dist/schema/widgets/post-purchase-offer/postPurchaseWidget.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -109,6 +109,7 @@ __export(index_exports, {
|
|
|
109
109
|
TiptapParagraph: () => TiptapParagraph,
|
|
110
110
|
TiptapText: () => TiptapText,
|
|
111
111
|
UserConfig: () => UserConfig,
|
|
112
|
+
VariantMode: () => VariantMode,
|
|
112
113
|
VariantSelector: () => VariantSelector,
|
|
113
114
|
VerticalAlignment: () => VerticalAlignment,
|
|
114
115
|
WidgetData: () => WidgetData,
|
|
@@ -191,6 +192,7 @@ __export(index_exports, {
|
|
|
191
192
|
uuid: () => uuid,
|
|
192
193
|
variantAvailable: () => variantAvailable,
|
|
193
194
|
variantMinMaxPriceObject: () => variantMinMaxPriceObject,
|
|
195
|
+
variantModes: () => variantModes,
|
|
194
196
|
variantPriceObject: () => variantPriceObject,
|
|
195
197
|
variantSelectors: () => variantSelectors,
|
|
196
198
|
verticalAlignments: () => verticalAlignments,
|
|
@@ -1422,6 +1424,9 @@ var VariantSelector = variantSelector.enum;
|
|
|
1422
1424
|
var reviewsSizes = ["small", "default", "large"];
|
|
1423
1425
|
var reviewsSize = import_v46.z.enum(reviewsSizes);
|
|
1424
1426
|
var ReviewsSize = reviewsSize.enum;
|
|
1427
|
+
var variantModes = ["single", "multiple"];
|
|
1428
|
+
var variantMode = import_v46.z.enum(variantModes);
|
|
1429
|
+
var VariantMode = variantMode.enum;
|
|
1425
1430
|
var verticalAlignments = ["top", "middle", "bottom"];
|
|
1426
1431
|
var verticalAlignment = import_v46.z.enum(verticalAlignments);
|
|
1427
1432
|
var VerticalAlignment = verticalAlignment.enum;
|
|
@@ -1824,7 +1829,8 @@ var CABProductSection = import_v414.z.object({
|
|
|
1824
1829
|
).default(() => []),
|
|
1825
1830
|
productId: import_v414.z.number().nullable().default(null),
|
|
1826
1831
|
sectionId: import_v414.z.uuid().default(() => (0, import_uuid5.v7)()),
|
|
1827
|
-
sectionType: import_v414.z.literal(SectionType.product).default(SectionType.product)
|
|
1832
|
+
sectionType: import_v414.z.literal(SectionType.product).default(SectionType.product),
|
|
1833
|
+
variantMode: import_v414.z.enum(variantModes).default(VariantMode.multiple)
|
|
1828
1834
|
});
|
|
1829
1835
|
|
|
1830
1836
|
// src/schema/widgets/checkout-and-beyond/products.ts
|
|
@@ -1915,7 +1921,8 @@ var CABVariantsSection = import_v421.z.object({
|
|
|
1915
1921
|
rule: CABRule.optional(),
|
|
1916
1922
|
sectionId: import_v421.z.uuid().default(() => (0, import_uuid10.v7)()),
|
|
1917
1923
|
sectionType: import_v421.z.literal(SectionType.variants).default(SectionType.variants),
|
|
1918
|
-
selector: import_v421.z.enum((0, import_lodash_es4.slice)(variantSelectors, 0, 3)).default(VariantSelector.menu)
|
|
1924
|
+
selector: import_v421.z.enum((0, import_lodash_es4.slice)(variantSelectors, 0, 3)).default(VariantSelector.menu),
|
|
1925
|
+
variantMode: import_v421.z.enum(variantModes).default(VariantMode.multiple)
|
|
1919
1926
|
});
|
|
1920
1927
|
|
|
1921
1928
|
// src/schema/widgets/checkout-and-beyond/shared.ts
|