@rebuy/rebuy 2.5.1 → 2.6.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 -3
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +2 -2
- package/dist/schema/widgetData.d.ts +8 -8
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +14 -2
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/dataSource.d.ts +5 -0
- package/dist/schema/widgets/checkout-and-beyond/dataSource.d.ts.map +1 -1
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts +1 -1
- package/dist/schema/widgets/contentBlock.d.ts +13 -13
- package/dist/schema/widgets/contentBlock.d.ts.map +1 -1
- package/dist/schema/widgets/rebuyButton.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1167,6 +1167,9 @@ var LanguageKey = languageKey.enum;
|
|
|
1167
1167
|
var objectFits = ["cover", "contain"];
|
|
1168
1168
|
var objectFit = z6.enum(objectFits);
|
|
1169
1169
|
var ObjectFit = objectFit.enum;
|
|
1170
|
+
var productTypes = ["one-time", "subscription", "both"];
|
|
1171
|
+
var productType = z6.enum(productTypes);
|
|
1172
|
+
var ProductType = productType.enum;
|
|
1170
1173
|
var quantityInputs = ["select", "number"];
|
|
1171
1174
|
var quantityInput = z6.enum(quantityInputs);
|
|
1172
1175
|
var QuantityInput = quantityInput.enum;
|
|
@@ -1472,6 +1475,7 @@ var CABDataSourceSection = z12.object({
|
|
|
1472
1475
|
dataSourcePath: z12.string().default(DEFAULT_ENDPOINTS[0].value),
|
|
1473
1476
|
limit: z12.number().default(1),
|
|
1474
1477
|
name: z12.string().default(DEFAULT_ENDPOINTS[0].label),
|
|
1478
|
+
productType: z12.enum(productTypes).optional(),
|
|
1475
1479
|
sectionId: z12.uuid().default(() => uuidv74()),
|
|
1476
1480
|
sectionType: z12.literal(SectionType.dataSource).default(SectionType.dataSource)
|
|
1477
1481
|
});
|
|
@@ -1662,7 +1666,7 @@ var CABRootSection = CABLayoutSection.extend(
|
|
|
1662
1666
|
|
|
1663
1667
|
// src/schema/widgets/contentBlock.ts
|
|
1664
1668
|
var ContentBlockV1 = z24.object({
|
|
1665
|
-
blockSpacing: z24.enum(spacings),
|
|
1669
|
+
blockSpacing: z24.enum(spacings).optional(),
|
|
1666
1670
|
imageBlocks: z24.union([
|
|
1667
1671
|
z24.array(
|
|
1668
1672
|
z24.object({
|
|
@@ -1677,8 +1681,8 @@ var ContentBlockV1 = z24.object({
|
|
|
1677
1681
|
})
|
|
1678
1682
|
),
|
|
1679
1683
|
z24.strictObject({}).transform(() => [])
|
|
1680
|
-
]),
|
|
1681
|
-
imageLayout: z24.enum(["row", "column"]),
|
|
1684
|
+
]).optional(),
|
|
1685
|
+
imageLayout: z24.enum(["row", "column"]).optional(),
|
|
1682
1686
|
language: z24.object({
|
|
1683
1687
|
description: z24.string(),
|
|
1684
1688
|
superTitle: z24.string(),
|
|
@@ -1798,6 +1802,7 @@ export {
|
|
|
1798
1802
|
LineItemEditor,
|
|
1799
1803
|
NO_HTML,
|
|
1800
1804
|
ObjectFit,
|
|
1805
|
+
ProductType,
|
|
1801
1806
|
ProgressBar,
|
|
1802
1807
|
QuantityInput,
|
|
1803
1808
|
RebuyButton,
|
|
@@ -1866,6 +1871,7 @@ export {
|
|
|
1866
1871
|
objectFits,
|
|
1867
1872
|
productImageObject,
|
|
1868
1873
|
productSchema,
|
|
1874
|
+
productTypes,
|
|
1869
1875
|
quantityInputs,
|
|
1870
1876
|
queryStringToObject,
|
|
1871
1877
|
sectionTypes,
|