@aws505/sheetsite 1.0.5 → 1.0.7

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
@@ -504,6 +504,16 @@ var AnnouncementSchema = z.object({
504
504
  sortOrder: z.number().default(0)
505
505
  });
506
506
  var AnnouncementsSchema = z.array(AnnouncementSchema);
507
+ var PopupConfigSchema = z.object({
508
+ enabled: z.boolean().default(true),
509
+ type: z.enum(["claim", "coupon", "promo", "custom"]).default("claim"),
510
+ title: z.string().optional(),
511
+ message: z.string().optional(),
512
+ buttonText: z.string().optional(),
513
+ buttonUrl: z.string().optional(),
514
+ delay: z.number().default(5e3)
515
+ // milliseconds before showing
516
+ });
507
517
  var SiteDataSchema = z.object({
508
518
  business: BusinessInfoSchema,
509
519
  hours: HoursSchema,
@@ -514,7 +524,8 @@ var SiteDataSchema = z.object({
514
524
  team: TeamSchema.optional(),
515
525
  menu: MenuSchema.optional(),
516
526
  products: ProductsSchema.optional(),
517
- announcements: AnnouncementsSchema.optional()
527
+ announcements: AnnouncementsSchema.optional(),
528
+ popup: PopupConfigSchema.optional()
518
529
  });
519
530
  var PartialSiteDataSchema = z.object({
520
531
  business: BusinessInfoSchema.partial().optional(),
@@ -526,7 +537,8 @@ var PartialSiteDataSchema = z.object({
526
537
  team: TeamSchema.optional(),
527
538
  menu: MenuSchema.optional(),
528
539
  products: ProductsSchema.optional(),
529
- announcements: AnnouncementsSchema.optional()
540
+ announcements: AnnouncementsSchema.optional(),
541
+ popup: PopupConfigSchema.optional()
530
542
  });
531
543
 
532
544
  // src/data/csv-parser.ts