@rebuy/rebuy 2.1.0 → 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 +273 -0
  8. package/dist/schema/button.d.ts.map +1 -0
  9. package/dist/schema/common.d.ts +369 -0
  10. package/dist/schema/common.d.ts.map +1 -0
  11. package/dist/schema/constants.d.ts +165 -0
  12. package/dist/schema/constants.d.ts.map +1 -0
  13. package/dist/schema/data-source.d.ts +13 -0
  14. package/dist/schema/data-source.d.ts.map +1 -0
  15. package/dist/schema/image.d.ts +65 -0
  16. package/dist/schema/image.d.ts.map +1 -0
  17. package/dist/schema/index.d.ts +20 -0
  18. package/dist/schema/index.d.ts.map +1 -0
  19. package/dist/schema/layout.d.ts +79 -0
  20. package/dist/schema/layout.d.ts.map +1 -0
  21. package/dist/schema/offers.d.ts +67 -0
  22. package/dist/schema/offers.d.ts.map +1 -0
  23. package/dist/schema/product.d.ts +147 -0
  24. package/dist/schema/product.d.ts.map +1 -0
  25. package/dist/schema/products.d.ts +152 -0
  26. package/dist/schema/products.d.ts.map +1 -0
  27. package/dist/schema/quantity.d.ts +21 -0
  28. package/dist/schema/quantity.d.ts.map +1 -0
  29. package/dist/schema/regex.d.ts +7 -0
  30. package/dist/schema/regex.d.ts.map +1 -0
  31. package/dist/schema/reviews.d.ts +10 -0
  32. package/dist/schema/reviews.d.ts.map +1 -0
  33. package/dist/schema/root.d.ts +127 -0
  34. package/dist/schema/root.d.ts.map +1 -0
  35. package/dist/schema/shared.d.ts +78 -0
  36. package/dist/schema/shared.d.ts.map +1 -0
  37. package/dist/schema/subscription.d.ts +10 -0
  38. package/dist/schema/subscription.d.ts.map +1 -0
  39. package/dist/schema/table.d.ts +10 -0
  40. package/dist/schema/table.d.ts.map +1 -0
  41. package/dist/schema/text.d.ts +162 -0
  42. package/dist/schema/text.d.ts.map +1 -0
  43. package/dist/schema/utils.d.ts +33 -0
  44. package/dist/schema/utils.d.ts.map +1 -0
  45. package/dist/schema/variants.d.ts +17 -0
  46. package/dist/schema/variants.d.ts.map +1 -0
  47. package/package.json +7 -2
@@ -0,0 +1,165 @@
1
+ import { z } from 'zod/v4';
2
+ export declare const DEFAULT_ENDPOINTS: readonly [{
3
+ readonly label: "Recommended (AI)";
4
+ readonly value: "/products/recommended";
5
+ }, {
6
+ readonly label: "Top Sellers";
7
+ readonly value: "/products/top_sellers";
8
+ }, {
9
+ readonly label: "Buy It Again";
10
+ readonly value: "/products/purchased";
11
+ }, {
12
+ readonly label: "Recently Viewed";
13
+ readonly value: "/products/viewed";
14
+ }, {
15
+ readonly label: "Products Search";
16
+ readonly value: "/products/search";
17
+ }, {
18
+ readonly label: "Collection Products";
19
+ readonly value: "/products/collections";
20
+ }, {
21
+ readonly label: "Similar Products (AI)";
22
+ readonly value: "/products/similar_products";
23
+ }];
24
+ export declare const STATIC_ENDPOINTS: readonly [{
25
+ readonly label: "Recommended (AI)";
26
+ readonly value: "/products/recommended";
27
+ }, {
28
+ readonly label: "Top Sellers";
29
+ readonly value: "/products/top_sellers";
30
+ }, {
31
+ readonly label: "Trending Products";
32
+ readonly value: "/products/trending_products";
33
+ }, {
34
+ readonly label: "Buy It Again";
35
+ readonly value: "/products/purchased";
36
+ }, {
37
+ readonly label: "Collection Products";
38
+ readonly value: "/products/collections";
39
+ }, {
40
+ readonly label: "Recently Viewed";
41
+ readonly value: "/products/viewed";
42
+ }, {
43
+ readonly label: "Static Products";
44
+ readonly value: "/products/static";
45
+ }, {
46
+ readonly label: "Products Search";
47
+ readonly value: "/products/search";
48
+ }, {
49
+ readonly label: "Similar Products (AI)";
50
+ readonly value: "/products/similar_products";
51
+ }];
52
+ export declare const COMBINED_ENDPOINTS: ({
53
+ readonly label: "Recommended (AI)";
54
+ readonly value: "/products/recommended";
55
+ } | {
56
+ readonly label: "Top Sellers";
57
+ readonly value: "/products/top_sellers";
58
+ } | {
59
+ readonly label: "Buy It Again";
60
+ readonly value: "/products/purchased";
61
+ } | {
62
+ readonly label: "Recently Viewed";
63
+ readonly value: "/products/viewed";
64
+ } | {
65
+ readonly label: "Products Search";
66
+ readonly value: "/products/search";
67
+ } | {
68
+ readonly label: "Collection Products";
69
+ readonly value: "/products/collections";
70
+ } | {
71
+ readonly label: "Similar Products (AI)";
72
+ readonly value: "/products/similar_products";
73
+ } | {
74
+ readonly label: "Trending Products";
75
+ readonly value: "/products/trending_products";
76
+ } | {
77
+ readonly label: "Static Products";
78
+ readonly value: "/products/static";
79
+ })[];
80
+ export declare const targetAreas: {
81
+ readonly checkoutExtension: {
82
+ icon: string;
83
+ label: string;
84
+ width: string;
85
+ }[];
86
+ readonly postPurchaseOffer: null;
87
+ readonly thankYouPage: {
88
+ icon: string;
89
+ label: string;
90
+ width: string;
91
+ }[];
92
+ readonly orderStatusPage: ({
93
+ icon: string;
94
+ label: string;
95
+ width: string;
96
+ fill?: undefined;
97
+ } | {
98
+ fill: true;
99
+ icon: string;
100
+ label: string;
101
+ width: string;
102
+ })[];
103
+ readonly ordersIndexPage: {
104
+ icon: string;
105
+ label: string;
106
+ width: string;
107
+ }[];
108
+ readonly customerProfilePage: {
109
+ icon: string;
110
+ label: string;
111
+ width: string;
112
+ }[];
113
+ };
114
+ export declare const widgetTypes: readonly ["bundle_builder", "cart", "cart_subscription", "dynamic_bundle", "gift_with_purchase", "pre_purchase", "product", "product_addon", "product_upsell", "recharge_checkout", "recharge_customer_portal", "recharge_post_purchase", "shopify_checkout", "shopify_checkout_extension", "shopify_post_purchase", "shopify_post_purchase_extension", "switch_to_subscription", "ui_extension_ad", "ui_extension_button", "ui_extension_content_block", "ui_extension_line_item_editor", "ui_extension_progress_bar"];
115
+ declare const widgetType: z.ZodEnum<{
116
+ product: "product";
117
+ bundle_builder: "bundle_builder";
118
+ cart: "cart";
119
+ cart_subscription: "cart_subscription";
120
+ dynamic_bundle: "dynamic_bundle";
121
+ gift_with_purchase: "gift_with_purchase";
122
+ pre_purchase: "pre_purchase";
123
+ product_addon: "product_addon";
124
+ product_upsell: "product_upsell";
125
+ recharge_checkout: "recharge_checkout";
126
+ recharge_customer_portal: "recharge_customer_portal";
127
+ recharge_post_purchase: "recharge_post_purchase";
128
+ shopify_checkout: "shopify_checkout";
129
+ shopify_checkout_extension: "shopify_checkout_extension";
130
+ shopify_post_purchase: "shopify_post_purchase";
131
+ shopify_post_purchase_extension: "shopify_post_purchase_extension";
132
+ switch_to_subscription: "switch_to_subscription";
133
+ ui_extension_ad: "ui_extension_ad";
134
+ ui_extension_button: "ui_extension_button";
135
+ ui_extension_content_block: "ui_extension_content_block";
136
+ ui_extension_line_item_editor: "ui_extension_line_item_editor";
137
+ ui_extension_progress_bar: "ui_extension_progress_bar";
138
+ }>;
139
+ export declare const WidgetType: {
140
+ product: "product";
141
+ bundle_builder: "bundle_builder";
142
+ cart: "cart";
143
+ cart_subscription: "cart_subscription";
144
+ dynamic_bundle: "dynamic_bundle";
145
+ gift_with_purchase: "gift_with_purchase";
146
+ pre_purchase: "pre_purchase";
147
+ product_addon: "product_addon";
148
+ product_upsell: "product_upsell";
149
+ recharge_checkout: "recharge_checkout";
150
+ recharge_customer_portal: "recharge_customer_portal";
151
+ recharge_post_purchase: "recharge_post_purchase";
152
+ shopify_checkout: "shopify_checkout";
153
+ shopify_checkout_extension: "shopify_checkout_extension";
154
+ shopify_post_purchase: "shopify_post_purchase";
155
+ shopify_post_purchase_extension: "shopify_post_purchase_extension";
156
+ switch_to_subscription: "switch_to_subscription";
157
+ ui_extension_ad: "ui_extension_ad";
158
+ ui_extension_button: "ui_extension_button";
159
+ ui_extension_content_block: "ui_extension_content_block";
160
+ ui_extension_line_item_editor: "ui_extension_line_item_editor";
161
+ ui_extension_progress_bar: "ui_extension_progress_bar";
162
+ };
163
+ export type WidgetType = z.infer<typeof widgetType>;
164
+ export {};
165
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
3
+ export declare const CABDataSourceSection: z.ZodObject<{
4
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
5
+ dataSourcePath: z.ZodDefault<z.ZodString>;
6
+ limit: z.ZodDefault<z.ZodNumber>;
7
+ name: z.ZodDefault<z.ZodString>;
8
+ sectionId: z.ZodDefault<z.ZodUUID>;
9
+ sectionType: z.ZodDefault<z.ZodLiteral<"dataSource">>;
10
+ }, z.core.$strip>;
11
+ export type CABDataSourceSection = z.infer<typeof CABDataSourceSection>;
12
+ export type CABDataSourceSectionProps = CABDataSourceSection & SectionDetails;
13
+ //# sourceMappingURL=data-source.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,65 @@
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
3
+ export declare const CABImageSection: z.ZodObject<{
4
+ altText: z.ZodDefault<z.ZodString>;
5
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
6
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
7
+ radius: z.ZodDefault<z.ZodEnum<{
8
+ small: "small";
9
+ none: "none";
10
+ base: "base";
11
+ large: "large";
12
+ fullyRounded: "fullyRounded";
13
+ }>>;
14
+ style: z.ZodDefault<z.ZodEnum<{
15
+ none: "none";
16
+ base: "base";
17
+ dotted: "dotted";
18
+ dashed: "dashed";
19
+ }>>;
20
+ width: z.ZodDefault<z.ZodEnum<{
21
+ base: "base";
22
+ medium: "medium";
23
+ thick: "thick";
24
+ }>>;
25
+ }, z.core.$strip>>>;
26
+ buttonField: z.ZodOptional<z.ZodEnum<{
27
+ declineAllOffers: "declineAllOffers";
28
+ declineOffer: "declineOffer";
29
+ removeFromCart: "removeFromCart";
30
+ showVariants: "showVariants";
31
+ addedToCart: "addedToCart";
32
+ addingToCart: "addingToCart";
33
+ addToCart: "addToCart";
34
+ buttonLabel: "buttonLabel";
35
+ destinationUrl: "destinationUrl";
36
+ payNow: "payNow";
37
+ showVariant: "showVariant";
38
+ soldOut: "soldOut";
39
+ switchToOneTimeAction: "switchToOneTimeAction";
40
+ switchToOneTimePurchase: "switchToOneTimePurchase";
41
+ switchToSubscriptionAction: "switchToSubscriptionAction";
42
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
43
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
44
+ }>>;
45
+ category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
46
+ gallery: "gallery";
47
+ icons: "icons";
48
+ "payment-methods": "payment-methods";
49
+ "secure-checkout": "secure-checkout";
50
+ }>>>;
51
+ name: z.ZodOptional<z.ZodString>;
52
+ naturalHeight: z.ZodDefault<z.ZodNumber>;
53
+ naturalWidth: z.ZodDefault<z.ZodNumber>;
54
+ objectFit: z.ZodDefault<z.ZodEnum<{
55
+ cover: "cover";
56
+ contain: "contain";
57
+ }>>;
58
+ sectionId: z.ZodDefault<z.ZodUUID>;
59
+ sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
60
+ source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
61
+ width: z.ZodDefault<z.ZodNumber>;
62
+ }, z.core.$strip>;
63
+ export type CABImageSection = z.infer<typeof CABImageSection>;
64
+ export type CABImageSectionProps = CABImageSection & SectionDetails;
65
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,20 @@
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
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod/v4';
2
+ import { Direction, HorizontalAlignment, Spacing, VerticalAlignment } from './common';
3
+ import { CABBorder, CABSection, type SectionDetails } from './shared';
4
+ export declare const CABLayoutSection: z.ZodObject<{
5
+ alignment: z.ZodDefault<z.ZodObject<{
6
+ horizontal: z.ZodDefault<z.ZodEnum<{
7
+ start: "start";
8
+ center: "center";
9
+ end: "end";
10
+ }>>;
11
+ vertical: z.ZodDefault<z.ZodEnum<{
12
+ top: "top";
13
+ middle: "middle";
14
+ bottom: "bottom";
15
+ }>>;
16
+ }, z.core.$strip>>;
17
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
18
+ radius: z.ZodDefault<z.ZodEnum<{
19
+ small: "small";
20
+ none: "none";
21
+ base: "base";
22
+ large: "large";
23
+ fullyRounded: "fullyRounded";
24
+ }>>;
25
+ style: z.ZodDefault<z.ZodEnum<{
26
+ none: "none";
27
+ base: "base";
28
+ dotted: "dotted";
29
+ dashed: "dashed";
30
+ }>>;
31
+ width: z.ZodDefault<z.ZodEnum<{
32
+ base: "base";
33
+ medium: "medium";
34
+ thick: "thick";
35
+ }>>;
36
+ }, z.core.$strip>>>;
37
+ direction: z.ZodDefault<z.ZodEnum<{
38
+ columns: "columns";
39
+ rows: "rows";
40
+ }>>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ padding: z.ZodDefault<z.ZodEnum<{
43
+ none: "none";
44
+ base: "base";
45
+ extraTight: "extraTight";
46
+ tight: "tight";
47
+ loose: "loose";
48
+ extraLoose: "extraLoose";
49
+ }>>;
50
+ sectionId: z.ZodDefault<z.ZodUUID>;
51
+ sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodType<CABSection, unknown, z.core.$ZodTypeInternals<CABSection, unknown>>>>>;
52
+ sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
53
+ spacing: z.ZodDefault<z.ZodEnum<{
54
+ none: "none";
55
+ base: "base";
56
+ extraTight: "extraTight";
57
+ tight: "tight";
58
+ loose: "loose";
59
+ extraLoose: "extraLoose";
60
+ }>>;
61
+ width: z.ZodDefault<z.ZodNumber>;
62
+ }, z.core.$strip>;
63
+ export type CABLayoutSection = {
64
+ alignment: {
65
+ horizontal: HorizontalAlignment;
66
+ vertical: VerticalAlignment;
67
+ };
68
+ border: CABBorder;
69
+ direction: Direction;
70
+ name?: string;
71
+ padding: Spacing;
72
+ sectionId: string;
73
+ sections: CABSection[];
74
+ sectionType: 'layout';
75
+ spacing: Spacing;
76
+ width: number;
77
+ };
78
+ export type CABLayoutSectionProps = CABLayoutSection & SectionDetails;
79
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,67 @@
1
+ import { z } from 'zod/v4';
2
+ import { CABLayoutSection } from './layout';
3
+ import { CABSection, type SectionDetails } from './shared';
4
+ export declare const CABOffersSection: z.ZodObject<{
5
+ alignment: z.ZodDefault<z.ZodObject<{
6
+ horizontal: z.ZodDefault<z.ZodEnum<{
7
+ start: "start";
8
+ center: "center";
9
+ end: "end";
10
+ }>>;
11
+ vertical: z.ZodDefault<z.ZodEnum<{
12
+ top: "top";
13
+ middle: "middle";
14
+ bottom: "bottom";
15
+ }>>;
16
+ }, z.core.$strip>>;
17
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
18
+ radius: z.ZodDefault<z.ZodEnum<{
19
+ small: "small";
20
+ none: "none";
21
+ base: "base";
22
+ large: "large";
23
+ fullyRounded: "fullyRounded";
24
+ }>>;
25
+ style: z.ZodDefault<z.ZodEnum<{
26
+ none: "none";
27
+ base: "base";
28
+ dotted: "dotted";
29
+ dashed: "dashed";
30
+ }>>;
31
+ width: z.ZodDefault<z.ZodEnum<{
32
+ base: "base";
33
+ medium: "medium";
34
+ thick: "thick";
35
+ }>>;
36
+ }, z.core.$strip>>>;
37
+ width: z.ZodDefault<z.ZodNumber>;
38
+ direction: z.ZodDefault<z.ZodEnum<{
39
+ columns: "columns";
40
+ rows: "rows";
41
+ }>>;
42
+ name: z.ZodOptional<z.ZodString>;
43
+ padding: z.ZodDefault<z.ZodEnum<{
44
+ none: "none";
45
+ base: "base";
46
+ extraTight: "extraTight";
47
+ tight: "tight";
48
+ loose: "loose";
49
+ extraLoose: "extraLoose";
50
+ }>>;
51
+ sectionId: z.ZodDefault<z.ZodUUID>;
52
+ spacing: z.ZodDefault<z.ZodEnum<{
53
+ none: "none";
54
+ base: "base";
55
+ extraTight: "extraTight";
56
+ tight: "tight";
57
+ loose: "loose";
58
+ extraLoose: "extraLoose";
59
+ }>>;
60
+ sections: z.ZodDefault<z.ZodArray<z.ZodLazy<z.ZodType<CABSection, unknown, z.core.$ZodTypeInternals<CABSection, unknown>>>>>;
61
+ sectionType: z.ZodDefault<z.ZodLiteral<"offers">>;
62
+ }, z.core.$strip>;
63
+ export type CABOffersSection = Omit<CABLayoutSection, 'sectionType'> & {
64
+ sectionType: 'offers';
65
+ };
66
+ export type CABOffersSectionProps = CABOffersSection & SectionDetails;
67
+ //# sourceMappingURL=offers.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,147 @@
1
+ import { z } from 'zod/v4';
2
+ import { type SectionDetails } from './shared';
3
+ export declare const CABProductSection: z.ZodObject<{
4
+ name: z.ZodOptional<z.ZodString>;
5
+ options: z.ZodDefault<z.ZodArray<z.ZodObject<{
6
+ name: z.ZodString;
7
+ optionId: z.ZodNumber;
8
+ selector: z.ZodDefault<z.ZodEnum<{
9
+ button: "button";
10
+ image: "image";
11
+ menu: "menu";
12
+ radio: "radio";
13
+ color: "color";
14
+ }>>;
15
+ values: z.ZodArray<z.ZodObject<{
16
+ color: z.ZodOptional<z.ZodString>;
17
+ image: z.ZodOptional<z.ZodLazy<z.ZodObject<{
18
+ altText: z.ZodDefault<z.ZodString>;
19
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
20
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
21
+ radius: z.ZodDefault<z.ZodEnum<{
22
+ small: "small";
23
+ none: "none";
24
+ base: "base";
25
+ large: "large";
26
+ fullyRounded: "fullyRounded";
27
+ }>>;
28
+ style: z.ZodDefault<z.ZodEnum<{
29
+ none: "none";
30
+ base: "base";
31
+ dotted: "dotted";
32
+ dashed: "dashed";
33
+ }>>;
34
+ width: z.ZodDefault<z.ZodEnum<{
35
+ base: "base";
36
+ medium: "medium";
37
+ thick: "thick";
38
+ }>>;
39
+ }, z.core.$strip>>>;
40
+ buttonField: z.ZodOptional<z.ZodEnum<{
41
+ declineAllOffers: "declineAllOffers";
42
+ declineOffer: "declineOffer";
43
+ removeFromCart: "removeFromCart";
44
+ showVariants: "showVariants";
45
+ addedToCart: "addedToCart";
46
+ addingToCart: "addingToCart";
47
+ addToCart: "addToCart";
48
+ buttonLabel: "buttonLabel";
49
+ destinationUrl: "destinationUrl";
50
+ payNow: "payNow";
51
+ showVariant: "showVariant";
52
+ soldOut: "soldOut";
53
+ switchToOneTimeAction: "switchToOneTimeAction";
54
+ switchToOneTimePurchase: "switchToOneTimePurchase";
55
+ switchToSubscriptionAction: "switchToSubscriptionAction";
56
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
57
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
58
+ }>>;
59
+ category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
60
+ gallery: "gallery";
61
+ icons: "icons";
62
+ "payment-methods": "payment-methods";
63
+ "secure-checkout": "secure-checkout";
64
+ }>>>;
65
+ name: z.ZodOptional<z.ZodString>;
66
+ naturalHeight: z.ZodDefault<z.ZodNumber>;
67
+ naturalWidth: z.ZodDefault<z.ZodNumber>;
68
+ objectFit: z.ZodDefault<z.ZodEnum<{
69
+ cover: "cover";
70
+ contain: "contain";
71
+ }>>;
72
+ sectionId: z.ZodDefault<z.ZodUUID>;
73
+ sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
74
+ source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
75
+ width: z.ZodDefault<z.ZodNumber>;
76
+ }, z.core.$strip>>>;
77
+ name: z.ZodString;
78
+ text: z.ZodOptional<z.ZodLazy<z.ZodObject<{
79
+ buttonField: z.ZodOptional<z.ZodEnum<{
80
+ declineAllOffers: "declineAllOffers";
81
+ declineOffer: "declineOffer";
82
+ removeFromCart: "removeFromCart";
83
+ showVariants: "showVariants";
84
+ addedToCart: "addedToCart";
85
+ addingToCart: "addingToCart";
86
+ addToCart: "addToCart";
87
+ buttonLabel: "buttonLabel";
88
+ destinationUrl: "destinationUrl";
89
+ payNow: "payNow";
90
+ showVariant: "showVariant";
91
+ soldOut: "soldOut";
92
+ switchToOneTimeAction: "switchToOneTimeAction";
93
+ switchToOneTimePurchase: "switchToOneTimePurchase";
94
+ switchToSubscriptionAction: "switchToSubscriptionAction";
95
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
96
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
97
+ }>>;
98
+ content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
99
+ attrs: z.ZodDefault<z.ZodObject<{
100
+ blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
101
+ }, z.core.$strip>>;
102
+ content: z.ZodDefault<z.ZodArray<z.ZodObject<{
103
+ attrs: z.ZodDefault<z.ZodObject<{
104
+ textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
105
+ }, z.core.$strip>>;
106
+ content: z.ZodDefault<z.ZodArray<z.ZodObject<{
107
+ marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
108
+ type: z.ZodLiteral<"bold">;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ type: z.ZodLiteral<"italic">;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ attrs: z.ZodObject<{
113
+ class: z.ZodNullable<z.ZodString>;
114
+ href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
115
+ rel: z.ZodDefault<z.ZodString>;
116
+ target: z.ZodDefault<z.ZodString>;
117
+ }, z.core.$strip>;
118
+ type: z.ZodLiteral<"link">;
119
+ }, z.core.$strip>, z.ZodObject<{
120
+ type: z.ZodLiteral<"strike">;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ attrs: z.ZodObject<{
123
+ color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
124
+ fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
125
+ }, z.core.$strip>;
126
+ type: z.ZodLiteral<"textStyle">;
127
+ }, z.core.$strip>]>>>;
128
+ text: z.ZodDefault<z.ZodString>;
129
+ type: z.ZodDefault<z.ZodLiteral<"text">>;
130
+ }, z.core.$strip>>>;
131
+ type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
132
+ }, z.core.$strip>>>;
133
+ type: z.ZodDefault<z.ZodLiteral<"doc">>;
134
+ }, z.core.$strip>]>>>>>;
135
+ name: z.ZodOptional<z.ZodString>;
136
+ sectionId: z.ZodDefault<z.ZodUUID>;
137
+ sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
138
+ }, z.core.$strip>>>;
139
+ }, z.core.$strip>>;
140
+ }, z.core.$strip>>>;
141
+ productId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
142
+ sectionId: z.ZodDefault<z.ZodUUID>;
143
+ sectionType: z.ZodDefault<z.ZodLiteral<"product">>;
144
+ }, z.core.$strip>;
145
+ export type CABProductSection = z.infer<typeof CABProductSection>;
146
+ export type CABProductSectionProps = CABProductSection & SectionDetails;
147
+ //# sourceMappingURL=product.d.ts.map
@@ -0,0 +1 @@
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"}