@rebuy/rebuy 2.4.0-rc.1 → 2.4.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.mjs CHANGED
@@ -975,7 +975,7 @@ var CABDataSourceSection = z3.object({
975
975
  dataSourcePath: z3.string().default(DEFAULT_ENDPOINTS[0].value),
976
976
  limit: z3.number().default(1),
977
977
  name: z3.string().default(DEFAULT_ENDPOINTS[0].label),
978
- sectionId: z3.uuidv7().default(() => uuidv7()),
978
+ sectionId: z3.uuid().default(() => uuidv7()),
979
979
  sectionType: z3.literal(SectionType.dataSource).default(SectionType.dataSource)
980
980
  });
981
981
 
@@ -994,7 +994,7 @@ var CABLayoutSection = z4.object({
994
994
  direction: z4.enum(directions).default(Direction.rows),
995
995
  name: z4.string().optional(),
996
996
  padding: z4.enum(spacings).default(Spacing.none),
997
- sectionId: z4.uuidv7().default(() => uuidv72()),
997
+ sectionId: z4.uuid().default(() => uuidv72()),
998
998
  sections: z4.array(z4.lazy(() => CABSection)).default(() => []),
999
999
  sectionType: z4.literal(SectionType.layout).default(SectionType.layout),
1000
1000
  spacing: z4.enum(spacings).default(Spacing.base),
@@ -1102,7 +1102,7 @@ var CABTextSection = z5.object({
1102
1102
  buttonField: z5.enum(buttonFields).optional(),
1103
1103
  content: z5.record(z5.string(), z5.union([z5.string(), TiptapDocument]).refine(checkForHTML, NO_HTML).optional()).default({ en: TiptapDocument.parse({}) }).optional(),
1104
1104
  name: z5.string().optional(),
1105
- sectionId: z5.uuidv7().default(() => uuidv73()),
1105
+ sectionId: z5.uuid().default(() => uuidv73()),
1106
1106
  sectionType: z5.literal(SectionType.text).default(SectionType.text)
1107
1107
  }).superRefine(({ buttonField: buttonField2, content }, ctx) => {
1108
1108
  if (buttonField2 === ButtonField.destinationUrl && content) {
@@ -1144,14 +1144,14 @@ var CABProductSection = z6.object({
1144
1144
  })
1145
1145
  ).default(() => []),
1146
1146
  productId: z6.number().nullable().default(null),
1147
- sectionId: z6.uuidv7().default(() => uuidv74()),
1147
+ sectionId: z6.uuid().default(() => uuidv74()),
1148
1148
  sectionType: z6.literal(SectionType.product).default(SectionType.product)
1149
1149
  });
1150
1150
 
1151
1151
  // src/schema/cab/products.ts
1152
1152
  var CABProductsSection = z7.object({
1153
1153
  name: z7.string().optional(),
1154
- sectionId: z7.uuidv7().default(() => uuidv75()),
1154
+ sectionId: z7.uuid().default(() => uuidv75()),
1155
1155
  sections: z7.array(z7.lazy(() => CABProductSection)).default(() => []),
1156
1156
  sectionType: z7.literal(SectionType.products).default(SectionType.products)
1157
1157
  });
@@ -1186,7 +1186,7 @@ var CABQuantitySection = z9.object({
1186
1186
  max: z9.number().min(1).max(100).default(10),
1187
1187
  min: z9.number().min(1).default(1),
1188
1188
  name: z9.string().optional(),
1189
- sectionId: z9.uuidv7().default(() => uuidv76()),
1189
+ sectionId: z9.uuid().default(() => uuidv76()),
1190
1190
  sectionType: z9.literal(SectionType.quantity).default(SectionType.quantity)
1191
1191
  });
1192
1192
 
@@ -1195,7 +1195,7 @@ import { v7 as uuidv77 } from "uuid";
1195
1195
  import { z as z10 } from "zod/v4";
1196
1196
  var CABReviewsSection = z10.object({
1197
1197
  name: z10.string().optional(),
1198
- sectionId: z10.uuidv7().default(() => uuidv77()),
1198
+ sectionId: z10.uuid().default(() => uuidv77()),
1199
1199
  sectionType: z10.literal(SectionType.reviews).default(SectionType.reviews)
1200
1200
  });
1201
1201
 
@@ -1204,7 +1204,7 @@ import { v7 as uuidv78 } from "uuid";
1204
1204
  import { z as z11 } from "zod/v4";
1205
1205
  var CABSubscriptionSection = z11.object({
1206
1206
  name: z11.string().optional(),
1207
- sectionId: z11.uuidv7().default(() => uuidv78()),
1207
+ sectionId: z11.uuid().default(() => uuidv78()),
1208
1208
  sectionType: z11.literal(SectionType.subscription).default(SectionType.subscription)
1209
1209
  });
1210
1210
 
@@ -1213,7 +1213,7 @@ import { v7 as uuidv79 } from "uuid";
1213
1213
  import { z as z12 } from "zod/v4";
1214
1214
  var CABTableSection = z12.object({
1215
1215
  name: z12.string().optional(),
1216
- sectionId: z12.uuidv7().default(() => uuidv79()),
1216
+ sectionId: z12.uuid().default(() => uuidv79()),
1217
1217
  sectionType: z12.literal(SectionType.table).default(SectionType.table)
1218
1218
  });
1219
1219
 
@@ -1223,7 +1223,7 @@ import { v7 as uuidv710 } from "uuid";
1223
1223
  import { z as z13 } from "zod/v4";
1224
1224
  var CABVariantsSection = z13.object({
1225
1225
  name: z13.string().optional(),
1226
- sectionId: z13.uuidv7().default(() => uuidv710()),
1226
+ sectionId: z13.uuid().default(() => uuidv710()),
1227
1227
  sectionType: z13.literal(SectionType.variants).default(SectionType.variants),
1228
1228
  selector: z13.enum(slice(variantSelectors, 0, 3)).default(VariantSelector.menu)
1229
1229
  });
@@ -1267,7 +1267,7 @@ var CABImageSection = z15.object({
1267
1267
  naturalHeight: z15.number().default(0),
1268
1268
  naturalWidth: z15.number().default(0),
1269
1269
  objectFit: z15.enum(objectFits).default(ObjectFit.cover),
1270
- sectionId: z15.uuidv7().default(() => uuidv711()),
1270
+ sectionId: z15.uuid().default(() => uuidv711()),
1271
1271
  sectionType: z15.literal(SectionType.image).default(SectionType.image),
1272
1272
  source: z15.union([z15.url(), z15.literal(""), z15.string().regex(DYNAMIC_TOKEN_REGEX)]).default(""),
1273
1273
  width: z15.number().default(100)
@@ -1288,7 +1288,7 @@ var CABButtonSection = z16.object({
1288
1288
  width: 300
1289
1289
  }),
1290
1290
  name: z16.string().optional(),
1291
- sectionId: z16.uuidv7().default(() => uuidv712()),
1291
+ sectionId: z16.uuid().default(() => uuidv712()),
1292
1292
  sections: z16.array(CABButtonContent).default(() => []),
1293
1293
  sectionType: z16.literal(SectionType.button).default(SectionType.button)
1294
1294
  });