@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 CHANGED
@@ -64,6 +64,7 @@ __export(index_exports, {
64
64
  LineItemEditor: () => LineItemEditor,
65
65
  NO_HTML: () => NO_HTML,
66
66
  ObjectFit: () => ObjectFit,
67
+ ProductType: () => ProductType,
67
68
  ProgressBar: () => ProgressBar,
68
69
  QuantityInput: () => QuantityInput,
69
70
  RebuyButton: () => RebuyButton,
@@ -132,6 +133,7 @@ __export(index_exports, {
132
133
  objectFits: () => objectFits,
133
134
  productImageObject: () => productImageObject,
134
135
  productSchema: () => productSchema,
136
+ productTypes: () => productTypes,
135
137
  quantityInputs: () => quantityInputs,
136
138
  queryStringToObject: () => queryStringToObject,
137
139
  sectionTypes: () => sectionTypes,
@@ -1327,6 +1329,9 @@ var LanguageKey = languageKey.enum;
1327
1329
  var objectFits = ["cover", "contain"];
1328
1330
  var objectFit = import_v46.z.enum(objectFits);
1329
1331
  var ObjectFit = objectFit.enum;
1332
+ var productTypes = ["one-time", "subscription", "both"];
1333
+ var productType = import_v46.z.enum(productTypes);
1334
+ var ProductType = productType.enum;
1330
1335
  var quantityInputs = ["select", "number"];
1331
1336
  var quantityInput = import_v46.z.enum(quantityInputs);
1332
1337
  var QuantityInput = quantityInput.enum;
@@ -1632,6 +1637,7 @@ var CABDataSourceSection = import_v412.z.object({
1632
1637
  dataSourcePath: import_v412.z.string().default(DEFAULT_ENDPOINTS[0].value),
1633
1638
  limit: import_v412.z.number().default(1),
1634
1639
  name: import_v412.z.string().default(DEFAULT_ENDPOINTS[0].label),
1640
+ productType: import_v412.z.enum(productTypes).optional(),
1635
1641
  sectionId: import_v412.z.uuid().default(() => (0, import_uuid4.v7)()),
1636
1642
  sectionType: import_v412.z.literal(SectionType.dataSource).default(SectionType.dataSource)
1637
1643
  });
@@ -1822,7 +1828,7 @@ var CABRootSection = CABLayoutSection.extend(
1822
1828
 
1823
1829
  // src/schema/widgets/contentBlock.ts
1824
1830
  var ContentBlockV1 = import_v424.z.object({
1825
- blockSpacing: import_v424.z.enum(spacings),
1831
+ blockSpacing: import_v424.z.enum(spacings).optional(),
1826
1832
  imageBlocks: import_v424.z.union([
1827
1833
  import_v424.z.array(
1828
1834
  import_v424.z.object({
@@ -1837,8 +1843,8 @@ var ContentBlockV1 = import_v424.z.object({
1837
1843
  })
1838
1844
  ),
1839
1845
  import_v424.z.strictObject({}).transform(() => [])
1840
- ]),
1841
- imageLayout: import_v424.z.enum(["row", "column"]),
1846
+ ]).optional(),
1847
+ imageLayout: import_v424.z.enum(["row", "column"]).optional(),
1842
1848
  language: import_v424.z.object({
1843
1849
  description: import_v424.z.string(),
1844
1850
  superTitle: import_v424.z.string(),