@rebuy/rebuy 2.2.0-rc.1 → 2.2.0-rc.10

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.
Files changed (47) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +654 -1
  4. package/dist/index.js.map +4 -4
  5. package/dist/index.mjs +654 -1
  6. package/dist/index.mjs.map +4 -4
  7. package/dist/schema/button.d.ts +39 -37
  8. package/dist/schema/button.d.ts.map +1 -1
  9. package/dist/schema/common.d.ts +1 -1
  10. package/dist/schema/common.d.ts.map +1 -1
  11. package/dist/schema/constants.d.ts +1 -1
  12. package/dist/schema/constants.d.ts.map +1 -1
  13. package/dist/schema/data-source.d.ts +4 -2
  14. package/dist/schema/data-source.d.ts.map +1 -1
  15. package/dist/schema/image.d.ts +6 -4
  16. package/dist/schema/image.d.ts.map +1 -1
  17. package/dist/schema/index.d.ts +19 -19
  18. package/dist/schema/index.d.ts.map +1 -1
  19. package/dist/schema/layout.d.ts +9 -8
  20. package/dist/schema/layout.d.ts.map +1 -1
  21. package/dist/schema/offers.d.ts +10 -10
  22. package/dist/schema/offers.d.ts.map +1 -1
  23. package/dist/schema/product.d.ts +24 -24
  24. package/dist/schema/product.d.ts.map +1 -1
  25. package/dist/schema/products.d.ts +26 -24
  26. package/dist/schema/products.d.ts.map +1 -1
  27. package/dist/schema/quantity.d.ts +5 -3
  28. package/dist/schema/quantity.d.ts.map +1 -1
  29. package/dist/schema/reviews.d.ts +4 -2
  30. package/dist/schema/reviews.d.ts.map +1 -1
  31. package/dist/schema/root.d.ts +9 -9
  32. package/dist/schema/root.d.ts.map +1 -1
  33. package/dist/schema/shared.d.ts +55 -15
  34. package/dist/schema/shared.d.ts.map +1 -1
  35. package/dist/schema/subscription.d.ts +4 -2
  36. package/dist/schema/subscription.d.ts.map +1 -1
  37. package/dist/schema/table.d.ts +4 -2
  38. package/dist/schema/table.d.ts.map +1 -1
  39. package/dist/schema/text.d.ts +46 -44
  40. package/dist/schema/text.d.ts.map +1 -1
  41. package/dist/schema/utils.d.ts +26 -1
  42. package/dist/schema/utils.d.ts.map +1 -1
  43. package/dist/schema/variants.d.ts +4 -2
  44. package/dist/schema/variants.d.ts.map +1 -1
  45. package/package.json +6 -11
  46. package/dist/schema/index.mjs +0 -629
  47. package/dist/schema/index.mjs.map +0 -7
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  export declare const borderRadii: readonly ["none", "small", "base", "large", "fullyRounded"];
3
3
  declare const borderRadius: z.ZodEnum<{
4
4
  small: "small";
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,6DAA8D,CAAC;AACvF,QAAA,MAAM,YAAY;;;;;;EAAsB,CAAC;AAEzC,eAAO,MAAM,YAAY;;;;;;CAAoB,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,YAAY,+CAAgD,CAAC;AAC1E,QAAA,MAAM,WAAW;;;;;EAAuB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;;;CAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,sCAAuC,CAAC;AACjE,QAAA,MAAM,WAAW;;;;EAAuB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;;CAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,aAAa,oKAUhB,CAAC;AAEX,QAAA,MAAM,YAAY;;;;;;;;;;EAAwB,CAAC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B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
  export declare const DEFAULT_ENDPOINTS: readonly [{
3
3
  readonly label: "Recommended (AI)";
4
4
  readonly value: "/products/recommended";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/schema/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+D,CAAC;AAE/F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEX,eAAO,MAAM,WAAW,yfAuBd,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC;AAEvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/schema/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAK3B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+D,CAAC;AAE/F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEX,eAAO,MAAM,WAAW,yfAuBd,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC;AAEvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
2
3
  export declare const CABDataSourceSection: z.ZodObject<{
3
4
  dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4
5
  dataSourcePath: z.ZodDefault<z.ZodString>;
@@ -6,6 +7,7 @@ export declare const CABDataSourceSection: z.ZodObject<{
6
7
  name: z.ZodDefault<z.ZodString>;
7
8
  sectionId: z.ZodDefault<z.ZodUUID>;
8
9
  sectionType: z.ZodDefault<z.ZodLiteral<"dataSource">>;
9
- }, z.core.$strict>;
10
+ }, z.core.$strip>;
10
11
  export type CABDataSourceSection = z.infer<typeof CABDataSourceSection>;
12
+ export type CABDataSourceSectionProps = CABDataSourceSection & SectionDetails;
11
13
  //# sourceMappingURL=data-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/schema/data-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,oBAAoB;;;;;;;kBAO/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/schema/data-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,oBAAoB;;;;;;;iBAO/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,GAAG,cAAc,CAAC"}
@@ -1,8 +1,9 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
2
3
  export declare const CABImageSection: z.ZodObject<{
3
4
  altText: z.ZodDefault<z.ZodString>;
4
5
  aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
5
- border: z.ZodDefault<z.ZodObject<{
6
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
6
7
  radius: z.ZodDefault<z.ZodEnum<{
7
8
  small: "small";
8
9
  none: "none";
@@ -21,7 +22,7 @@ export declare const CABImageSection: z.ZodObject<{
21
22
  medium: "medium";
22
23
  thick: "thick";
23
24
  }>>;
24
- }, z.core.$strict>>;
25
+ }, z.core.$strip>>>;
25
26
  buttonField: z.ZodOptional<z.ZodEnum<{
26
27
  declineAllOffers: "declineAllOffers";
27
28
  declineOffer: "declineOffer";
@@ -58,6 +59,7 @@ export declare const CABImageSection: z.ZodObject<{
58
59
  sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
59
60
  source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
60
61
  width: z.ZodDefault<z.ZodNumber>;
61
- }, z.core.$strict>;
62
+ }, z.core.$strip>;
62
63
  export type CABImageSection = z.infer<typeof CABImageSection>;
64
+ export type CABImageSectionProps = CABImageSection & SectionDetails;
63
65
  //# sourceMappingURL=image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/schema/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAc1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/schema/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAc1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,cAAc,CAAC"}
@@ -1,20 +1,20 @@
1
- export * from '~/schema/button';
2
- export * from '~/schema/common';
3
- export * from '~/schema/constants';
4
- export * from '~/schema/data-source';
5
- export * from '~/schema/image';
6
- export * from '~/schema/layout';
7
- export * from '~/schema/offers';
8
- export * from '~/schema/product';
9
- export * from '~/schema/products';
10
- export * from '~/schema/quantity';
11
- export * from '~/schema/regex';
12
- export * from '~/schema/reviews';
13
- export * from '~/schema/root';
14
- export * from '~/schema/shared';
15
- export * from '~/schema/subscription';
16
- export * from '~/schema/table';
17
- export * from '~/schema/text';
18
- export * from '~/schema/utils';
19
- export * from '~/schema/variants';
1
+ export * from './button';
2
+ export * from './common';
3
+ export * from './constants';
4
+ export * from './data-source';
5
+ export * from './image';
6
+ export * from './layout';
7
+ export * from './offers';
8
+ export * from './product';
9
+ export * from './products';
10
+ export * from './quantity';
11
+ export * from './regex';
12
+ export * from './reviews';
13
+ export * from './root';
14
+ export * from './shared';
15
+ export * from './subscription';
16
+ export * from './table';
17
+ export * from './text';
18
+ export * from './utils';
19
+ export * from './variants';
20
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
- import { z } from 'zod';
2
- import { Direction, HorizontalAlignment, SectionType, Spacing, VerticalAlignment } from '~/schema/common';
3
- import { CABBorder, CABSection } from '~/schema/shared';
1
+ import { z } from 'zod/v4';
2
+ import { Direction, HorizontalAlignment, Spacing, VerticalAlignment } from './common';
3
+ import { CABBorder, CABSection, type SectionDetails } from './shared';
4
4
  export declare const CABLayoutSection: z.ZodObject<{
5
5
  alignment: z.ZodDefault<z.ZodObject<{
6
6
  horizontal: z.ZodDefault<z.ZodEnum<{
@@ -13,8 +13,8 @@ export declare const CABLayoutSection: z.ZodObject<{
13
13
  middle: "middle";
14
14
  bottom: "bottom";
15
15
  }>>;
16
- }, z.core.$strict>>;
17
- border: z.ZodDefault<z.ZodObject<{
16
+ }, z.core.$strip>>;
17
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
18
18
  radius: z.ZodDefault<z.ZodEnum<{
19
19
  small: "small";
20
20
  none: "none";
@@ -33,7 +33,7 @@ export declare const CABLayoutSection: z.ZodObject<{
33
33
  medium: "medium";
34
34
  thick: "thick";
35
35
  }>>;
36
- }, z.core.$strict>>;
36
+ }, z.core.$strip>>>;
37
37
  direction: z.ZodDefault<z.ZodEnum<{
38
38
  columns: "columns";
39
39
  rows: "rows";
@@ -59,7 +59,7 @@ export declare const CABLayoutSection: z.ZodObject<{
59
59
  extraLoose: "extraLoose";
60
60
  }>>;
61
61
  width: z.ZodDefault<z.ZodNumber>;
62
- }, z.core.$strict>;
62
+ }, z.core.$strip>;
63
63
  export type CABLayoutSection = {
64
64
  alignment: {
65
65
  horizontal: HorizontalAlignment;
@@ -71,8 +71,9 @@ export type CABLayoutSection = {
71
71
  padding: Spacing;
72
72
  sectionId: string;
73
73
  sections: CABSection[];
74
- sectionType: typeof SectionType.layout;
74
+ sectionType: 'layout';
75
75
  spacing: Spacing;
76
76
  width: number;
77
77
  };
78
+ export type CABLayoutSectionProps = CABLayoutSection & SectionDetails;
78
79
  //# sourceMappingURL=layout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schema/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACH,SAAS,EAET,mBAAmB,EAEnB,WAAW,EACX,OAAO,EAEP,iBAAiB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,SAAS,EAAE;QACP,UAAU,EAAE,mBAAmB,CAAC;QAChC,QAAQ,EAAE,iBAAiB,CAAC;KAC/B,CAAC;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,OAAO,WAAW,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/schema/layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EACH,SAAS,EAET,mBAAmB,EAGnB,OAAO,EAEP,iBAAiB,EAEpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG;IAC3B,SAAS,EAAE;QACP,UAAU,EAAE,mBAAmB,CAAC;QAChC,QAAQ,EAAE,iBAAiB,CAAC;KAC/B,CAAC;IACF,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,EAAE,QAAQ,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,cAAc,CAAC"}
@@ -1,7 +1,6 @@
1
- import { z } from 'zod';
2
- import { SectionType } from '~/schema/common';
3
- import { CABLayoutSection } from '~/schema/layout';
4
- import { CABSection } from '~/schema/shared';
1
+ import { z } from 'zod/v4';
2
+ import { CABLayoutSection } from './layout';
3
+ import { CABSection, type SectionDetails } from './shared';
5
4
  export declare const CABOffersSection: z.ZodObject<{
6
5
  alignment: z.ZodDefault<z.ZodObject<{
7
6
  horizontal: z.ZodDefault<z.ZodEnum<{
@@ -14,9 +13,8 @@ export declare const CABOffersSection: z.ZodObject<{
14
13
  middle: "middle";
15
14
  bottom: "bottom";
16
15
  }>>;
17
- }, z.core.$strict>>;
18
- width: z.ZodDefault<z.ZodNumber>;
19
- border: z.ZodDefault<z.ZodObject<{
16
+ }, z.core.$strip>>;
17
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
20
18
  radius: z.ZodDefault<z.ZodEnum<{
21
19
  small: "small";
22
20
  none: "none";
@@ -35,7 +33,8 @@ export declare const CABOffersSection: z.ZodObject<{
35
33
  medium: "medium";
36
34
  thick: "thick";
37
35
  }>>;
38
- }, z.core.$strict>>;
36
+ }, z.core.$strip>>>;
37
+ width: z.ZodDefault<z.ZodNumber>;
39
38
  direction: z.ZodDefault<z.ZodEnum<{
40
39
  columns: "columns";
41
40
  rows: "rows";
@@ -60,8 +59,9 @@ export declare const CABOffersSection: z.ZodObject<{
60
59
  }>>;
61
60
  sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodType<CABSection, unknown, z.core.$ZodTypeInternals<CABSection, unknown>>>>>;
62
61
  sectionType: z.ZodDefault<z.ZodLiteral<"offers">>;
63
- }, z.core.$strict>;
62
+ }, z.core.$strip>;
64
63
  export type CABOffersSection = Omit<CABLayoutSection, 'sectionType'> & {
65
- sectionType: typeof SectionType.offers;
64
+ sectionType: 'offers';
66
65
  };
66
+ export type CABOffersSectionProps = CABOffersSection & SectionDetails;
67
67
  //# sourceMappingURL=offers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/schema/offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,GAAG;IACnE,WAAW,EAAE,OAAO,WAAW,CAAC,MAAM,CAAC;CAC1C,CAAC"}
1
+ {"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../src/schema/offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,GAAG;IACnE,WAAW,EAAE,QAAQ,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,cAAc,CAAC"}
@@ -1,8 +1,8 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
2
3
  export declare const CABProductSection: z.ZodObject<{
3
4
  name: z.ZodOptional<z.ZodString>;
4
5
  options: z.ZodDefault<z.ZodArray<z.ZodObject<{
5
- /** `name` represents `Color`, `Size`, etc. */
6
6
  name: z.ZodString;
7
7
  optionId: z.ZodNumber;
8
8
  selector: z.ZodDefault<z.ZodEnum<{
@@ -14,10 +14,10 @@ export declare const CABProductSection: z.ZodObject<{
14
14
  }>>;
15
15
  values: z.ZodArray<z.ZodObject<{
16
16
  color: z.ZodOptional<z.ZodString>;
17
- image: z.ZodOptional<z.ZodObject<{
17
+ image: z.ZodOptional<z.ZodLazy<z.ZodObject<{
18
18
  altText: z.ZodDefault<z.ZodString>;
19
19
  aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
20
- border: z.ZodDefault<z.ZodObject<{
20
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
21
21
  radius: z.ZodDefault<z.ZodEnum<{
22
22
  small: "small";
23
23
  none: "none";
@@ -36,7 +36,7 @@ export declare const CABProductSection: z.ZodObject<{
36
36
  medium: "medium";
37
37
  thick: "thick";
38
38
  }>>;
39
- }, z.core.$strict>>;
39
+ }, z.core.$strip>>>;
40
40
  buttonField: z.ZodOptional<z.ZodEnum<{
41
41
  declineAllOffers: "declineAllOffers";
42
42
  declineOffer: "declineOffer";
@@ -73,10 +73,9 @@ export declare const CABProductSection: z.ZodObject<{
73
73
  sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
74
74
  source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
75
75
  width: z.ZodDefault<z.ZodNumber>;
76
- }, z.core.$strict>>;
77
- /** `name` represents `Red`, `Blue`, etc. */
76
+ }, z.core.$strip>>>;
78
77
  name: z.ZodString;
79
- text: z.ZodOptional<z.ZodObject<{
78
+ text: z.ZodOptional<z.ZodLazy<z.ZodObject<{
80
79
  buttonField: z.ZodOptional<z.ZodEnum<{
81
80
  declineAllOffers: "declineAllOffers";
82
81
  declineOffer: "declineOffer";
@@ -99,49 +98,50 @@ export declare const CABProductSection: z.ZodObject<{
99
98
  content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
100
99
  attrs: z.ZodDefault<z.ZodObject<{
101
100
  blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
102
- }, z.core.$strict>>;
101
+ }, z.core.$strip>>;
103
102
  content: z.ZodDefault<z.ZodArray<z.ZodObject<{
104
103
  attrs: z.ZodDefault<z.ZodObject<{
105
104
  textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
106
- }, z.core.$strict>>;
105
+ }, z.core.$strip>>;
107
106
  content: z.ZodDefault<z.ZodArray<z.ZodObject<{
108
107
  marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
109
108
  type: z.ZodLiteral<"bold">;
110
- }, z.core.$strict>, z.ZodObject<{
109
+ }, z.core.$strip>, z.ZodObject<{
111
110
  type: z.ZodLiteral<"italic">;
112
- }, z.core.$strict>, z.ZodObject<{
111
+ }, z.core.$strip>, z.ZodObject<{
113
112
  attrs: z.ZodObject<{
114
113
  class: z.ZodNullable<z.ZodString>;
115
114
  href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
116
115
  rel: z.ZodDefault<z.ZodString>;
117
116
  target: z.ZodDefault<z.ZodString>;
118
- }, z.core.$strict>;
117
+ }, z.core.$strip>;
119
118
  type: z.ZodLiteral<"link">;
120
- }, z.core.$strict>, z.ZodObject<{
119
+ }, z.core.$strip>, z.ZodObject<{
121
120
  type: z.ZodLiteral<"strike">;
122
- }, z.core.$strict>, z.ZodObject<{
121
+ }, z.core.$strip>, z.ZodObject<{
123
122
  attrs: z.ZodObject<{
124
123
  color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
125
124
  fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
126
- }, z.core.$strict>;
125
+ }, z.core.$strip>;
127
126
  type: z.ZodLiteral<"textStyle">;
128
- }, z.core.$strict>], "type">>>;
127
+ }, z.core.$strip>]>>>;
129
128
  text: z.ZodDefault<z.ZodString>;
130
129
  type: z.ZodDefault<z.ZodLiteral<"text">>;
131
- }, z.core.$strict>>>;
130
+ }, z.core.$strip>>>;
132
131
  type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
133
- }, z.core.$strict>>>;
132
+ }, z.core.$strip>>>;
134
133
  type: z.ZodDefault<z.ZodLiteral<"doc">>;
135
- }, z.core.$strict>]>>>>>;
134
+ }, z.core.$strip>]>>>>>;
136
135
  name: z.ZodOptional<z.ZodString>;
137
136
  sectionId: z.ZodDefault<z.ZodUUID>;
138
137
  sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
139
- }, z.core.$strict>>;
140
- }, z.core.$strict>>;
141
- }, z.core.$strict>>>;
138
+ }, z.core.$strip>>>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>>>;
142
141
  productId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
143
142
  sectionId: z.ZodDefault<z.ZodUUID>;
144
143
  sectionType: z.ZodDefault<z.ZodLiteral<"product">>;
145
- }, z.core.$strict>;
144
+ }, z.core.$strip>;
146
145
  export type CABProductSection = z.infer<typeof CABProductSection>;
146
+ export type CABProductSectionProps = CABProductSection & SectionDetails;
147
147
  //# sourceMappingURL=product.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/schema/product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB;;;QAKd,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAQtC,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWlE,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../src/schema/product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwB5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,cAAc,CAAC"}
@@ -1,8 +1,9 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
2
3
  export declare const CABProductsSection: z.ZodObject<{
3
4
  name: z.ZodOptional<z.ZodString>;
4
5
  sectionId: z.ZodDefault<z.ZodUUID>;
5
- sections: z.ZodDefault<z.ZodArray<z.ZodObject<{
6
+ sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodObject<{
6
7
  name: z.ZodOptional<z.ZodString>;
7
8
  options: z.ZodDefault<z.ZodArray<z.ZodObject<{
8
9
  name: z.ZodString;
@@ -16,10 +17,10 @@ export declare const CABProductsSection: z.ZodObject<{
16
17
  }>>;
17
18
  values: z.ZodArray<z.ZodObject<{
18
19
  color: z.ZodOptional<z.ZodString>;
19
- image: z.ZodOptional<z.ZodObject<{
20
+ image: z.ZodOptional<z.ZodLazy<z.ZodObject<{
20
21
  altText: z.ZodDefault<z.ZodString>;
21
22
  aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
22
- border: z.ZodDefault<z.ZodObject<{
23
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
23
24
  radius: z.ZodDefault<z.ZodEnum<{
24
25
  small: "small";
25
26
  none: "none";
@@ -38,7 +39,7 @@ export declare const CABProductsSection: z.ZodObject<{
38
39
  medium: "medium";
39
40
  thick: "thick";
40
41
  }>>;
41
- }, z.core.$strict>>;
42
+ }, z.core.$strip>>>;
42
43
  buttonField: z.ZodOptional<z.ZodEnum<{
43
44
  declineAllOffers: "declineAllOffers";
44
45
  declineOffer: "declineOffer";
@@ -75,9 +76,9 @@ export declare const CABProductsSection: z.ZodObject<{
75
76
  sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
76
77
  source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
77
78
  width: z.ZodDefault<z.ZodNumber>;
78
- }, z.core.$strict>>;
79
+ }, z.core.$strip>>>;
79
80
  name: z.ZodString;
80
- text: z.ZodOptional<z.ZodObject<{
81
+ text: z.ZodOptional<z.ZodLazy<z.ZodObject<{
81
82
  buttonField: z.ZodOptional<z.ZodEnum<{
82
83
  declineAllOffers: "declineAllOffers";
83
84
  declineOffer: "declineOffer";
@@ -100,51 +101,52 @@ export declare const CABProductsSection: z.ZodObject<{
100
101
  content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
101
102
  attrs: z.ZodDefault<z.ZodObject<{
102
103
  blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
103
- }, z.core.$strict>>;
104
+ }, z.core.$strip>>;
104
105
  content: z.ZodDefault<z.ZodArray<z.ZodObject<{
105
106
  attrs: z.ZodDefault<z.ZodObject<{
106
107
  textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
107
- }, z.core.$strict>>;
108
+ }, z.core.$strip>>;
108
109
  content: z.ZodDefault<z.ZodArray<z.ZodObject<{
109
110
  marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
110
111
  type: z.ZodLiteral<"bold">;
111
- }, z.core.$strict>, z.ZodObject<{
112
+ }, z.core.$strip>, z.ZodObject<{
112
113
  type: z.ZodLiteral<"italic">;
113
- }, z.core.$strict>, z.ZodObject<{
114
+ }, z.core.$strip>, z.ZodObject<{
114
115
  attrs: z.ZodObject<{
115
116
  class: z.ZodNullable<z.ZodString>;
116
117
  href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
117
118
  rel: z.ZodDefault<z.ZodString>;
118
119
  target: z.ZodDefault<z.ZodString>;
119
- }, z.core.$strict>;
120
+ }, z.core.$strip>;
120
121
  type: z.ZodLiteral<"link">;
121
- }, z.core.$strict>, z.ZodObject<{
122
+ }, z.core.$strip>, z.ZodObject<{
122
123
  type: z.ZodLiteral<"strike">;
123
- }, z.core.$strict>, z.ZodObject<{
124
+ }, z.core.$strip>, z.ZodObject<{
124
125
  attrs: z.ZodObject<{
125
126
  color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
126
127
  fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
127
- }, z.core.$strict>;
128
+ }, z.core.$strip>;
128
129
  type: z.ZodLiteral<"textStyle">;
129
- }, z.core.$strict>], "type">>>;
130
+ }, z.core.$strip>]>>>;
130
131
  text: z.ZodDefault<z.ZodString>;
131
132
  type: z.ZodDefault<z.ZodLiteral<"text">>;
132
- }, z.core.$strict>>>;
133
+ }, z.core.$strip>>>;
133
134
  type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
134
- }, z.core.$strict>>>;
135
+ }, z.core.$strip>>>;
135
136
  type: z.ZodDefault<z.ZodLiteral<"doc">>;
136
- }, z.core.$strict>]>>>>>;
137
+ }, z.core.$strip>]>>>>>;
137
138
  name: z.ZodOptional<z.ZodString>;
138
139
  sectionId: z.ZodDefault<z.ZodUUID>;
139
140
  sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
140
- }, z.core.$strict>>;
141
- }, z.core.$strict>>;
142
- }, z.core.$strict>>>;
141
+ }, z.core.$strip>>>;
142
+ }, z.core.$strip>>;
143
+ }, z.core.$strip>>>;
143
144
  productId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
144
145
  sectionId: z.ZodDefault<z.ZodUUID>;
145
146
  sectionType: z.ZodDefault<z.ZodLiteral<"product">>;
146
- }, z.core.$strict>>>;
147
+ }, z.core.$strip>>>>;
147
148
  sectionType: z.ZodDefault<z.ZodLiteral<"products">>;
148
- }, z.core.$strict>;
149
+ }, z.core.$strip>;
149
150
  export type CABProductsSection = z.infer<typeof CABProductsSection>;
151
+ export type CABProductsSectionProps = CABProductsSection & SectionDetails;
150
152
  //# sourceMappingURL=products.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/schema/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/schema/products.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAI3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
@@ -1,10 +1,11 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
2
3
  export declare const CABQuantitySection: z.ZodObject<{
3
4
  errorMessages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4
5
  max: z.ZodOptional<z.ZodString>;
5
6
  min: z.ZodOptional<z.ZodString>;
6
7
  neg: z.ZodOptional<z.ZodString>;
7
- }, z.core.$strict>>>;
8
+ }, z.core.$strip>>>;
8
9
  inputType: z.ZodDefault<z.ZodEnum<{
9
10
  number: "number";
10
11
  select: "select";
@@ -14,6 +15,7 @@ export declare const CABQuantitySection: z.ZodObject<{
14
15
  name: z.ZodOptional<z.ZodString>;
15
16
  sectionId: z.ZodDefault<z.ZodUUID>;
16
17
  sectionType: z.ZodDefault<z.ZodLiteral<"quantity">>;
17
- }, z.core.$strict>;
18
+ }, z.core.$strip>;
18
19
  export type CABQuantitySection = z.infer<typeof CABQuantitySection>;
20
+ export type CABQuantitySectionProps = CABQuantitySection & SectionDetails;
19
21
  //# sourceMappingURL=quantity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quantity.d.ts","sourceRoot":"","sources":["../../src/schema/quantity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;kBAuB7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"quantity.d.ts","sourceRoot":"","sources":["../../src/schema/quantity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;iBAuB7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,MAAM,MAAM,uBAAuB,GAAG,kBAAkB,GAAG,cAAc,CAAC"}
@@ -1,8 +1,10 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
2
3
  export declare const CABReviewsSection: z.ZodObject<{
3
4
  name: z.ZodOptional<z.ZodString>;
4
5
  sectionId: z.ZodDefault<z.ZodUUID>;
5
6
  sectionType: z.ZodDefault<z.ZodLiteral<"reviews">>;
6
- }, z.core.$strict>;
7
+ }, z.core.$strip>;
7
8
  export type CABReviewsSection = z.infer<typeof CABReviewsSection>;
9
+ export type CABReviewsSectionProps = CABReviewsSection & SectionDetails;
8
10
  //# sourceMappingURL=reviews.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/schema/reviews.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;kBAI5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../src/schema/reviews.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAG3B,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG,cAAc,CAAC"}
@@ -1,7 +1,7 @@
1
- import { z } from 'zod';
2
- import { EditorMode } from '~/schema/common';
3
- import { WidgetType } from '~/schema/constants';
4
- import { CABLayoutSection } from '~/schema/layout';
1
+ import { z } from 'zod/v4';
2
+ import { EditorMode } from './common';
3
+ import { WidgetType } from './constants';
4
+ import { CABLayoutSection } from './layout';
5
5
  export type TargetArea = {
6
6
  fill?: boolean;
7
7
  flip?: 'horizontal' | 'vertical' | 'both';
@@ -21,8 +21,8 @@ export declare const CABRootSection: z.ZodObject<{
21
21
  middle: "middle";
22
22
  bottom: "bottom";
23
23
  }>>;
24
- }, z.core.$strict>>;
25
- border: z.ZodDefault<z.ZodObject<{
24
+ }, z.core.$strip>>;
25
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
26
26
  radius: z.ZodDefault<z.ZodEnum<{
27
27
  small: "small";
28
28
  none: "none";
@@ -41,7 +41,7 @@ export declare const CABRootSection: z.ZodObject<{
41
41
  medium: "medium";
42
42
  thick: "thick";
43
43
  }>>;
44
- }, z.core.$strict>>;
44
+ }, z.core.$strip>>>;
45
45
  direction: z.ZodDefault<z.ZodEnum<{
46
46
  columns: "columns";
47
47
  rows: "rows";
@@ -87,7 +87,7 @@ export declare const CABRootSection: z.ZodObject<{
87
87
  icon: z.ZodString;
88
88
  label: z.ZodString;
89
89
  width: z.ZodString;
90
- }, z.core.$strict>>>;
90
+ }, z.core.$strip>>>;
91
91
  type: z.ZodDefault<z.ZodEnum<{
92
92
  product: "product";
93
93
  bundle_builder: "bundle_builder";
@@ -114,7 +114,7 @@ export declare const CABRootSection: z.ZodObject<{
114
114
  }>>;
115
115
  version: z.ZodDefault<z.ZodLiteral<2>>;
116
116
  widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
117
- }, z.core.$strict>;
117
+ }, z.core.$strip>;
118
118
  export type CABRootSection = CABLayoutSection & {
119
119
  editorMode: EditorMode;
120
120
  previewMode: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/schema/root.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAe,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAe,UAAU,EAAe,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,C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