@faststore/core 3.95.0 → 3.96.0-dev.17

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 (110) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +54 -54
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/react-loadable-manifest.json +12 -12
  12. package/.next/routes-manifest.json +1 -1
  13. package/.next/server/chunks/7098.js +1 -1
  14. package/.next/server/chunks/948.js +1 -1
  15. package/.next/server/chunks/9563.js +3 -3
  16. package/.next/server/chunks/9630.js +7 -7
  17. package/.next/server/functions-config-manifest.json +1 -1
  18. package/.next/server/middleware-build-manifest.js +1 -1
  19. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  20. package/.next/server/pages/[...slug].js +1 -1
  21. package/.next/server/pages/[slug]/p.js +1 -1
  22. package/.next/server/pages/api/graphql.js +3 -3
  23. package/.next/server/pages/en-US/404.html +1 -1
  24. package/.next/server/pages/en-US/500.html +1 -1
  25. package/.next/server/pages/en-US/checkout.html +1 -1
  26. package/.next/server/pages/en-US/login.html +1 -1
  27. package/.next/server/pages/en-US/s.html +1 -1
  28. package/.next/server/pages/en-US.html +1 -1
  29. package/.next/server/pages/en-US.json +1 -1
  30. package/.next/server/pages/pvt/account/orders/[id].js +1 -1
  31. package/.next/server/pages/s.js +1 -1
  32. package/.next/server/pages-manifest.json +1 -1
  33. package/.next/static/Yo88n9O6FrhtIc3GGfGv9/_buildManifest.js +1 -0
  34. package/.next/static/chunks/{1841.b3a98a2a1886b09c.js → 1841.a1b15f2c88e02d32.js} +1 -1
  35. package/.next/static/chunks/{2500.d6beb5af6ee00a9e.js → 2500.b188ad84b5a0a521.js} +1 -1
  36. package/.next/static/chunks/{2927.23bae2c79f0ac0f3.js → 2927.5a79877943a6bf7c.js} +1 -1
  37. package/.next/static/chunks/{7191-5aa417081c97d46a.js → 7191-e43007cdde83bc1f.js} +1 -1
  38. package/.next/static/chunks/{9173-49a05f6f96710bd1.js → 9173-2ed920b87ee6640e.js} +1 -1
  39. package/.next/static/chunks/{UIToast.de15325248043ce5.js → UIToast.19a8664c01a00d3a.js} +1 -1
  40. package/.next/static/chunks/pages/{404-4b3f1e22c77f849a.js → 404-f04d51a89ab8e8c8.js} +1 -1
  41. package/.next/static/chunks/pages/{500-bb2de0c11524b2b8.js → 500-b3cd1219951eb7d1.js} +1 -1
  42. package/.next/static/chunks/pages/{[...slug]-3579b3b8b8309552.js → [...slug]-28b3f75a1b2b22b8.js} +1 -1
  43. package/.next/static/chunks/pages/[slug]/{p-cf620759e25940f8.js → p-f3b7653e4bd1ba57.js} +1 -1
  44. package/.next/static/chunks/pages/{_app-8e3a3eccc99a6f96.js → _app-38f75642a57fe506.js} +1 -1
  45. package/.next/static/chunks/pages/{checkout-dc07d72b3514c83d.js → checkout-9a253c6c2498d41f.js} +1 -1
  46. package/.next/static/chunks/pages/{index-1f8bf0fb351b90f4.js → index-f522924c892c46dd.js} +1 -1
  47. package/.next/static/chunks/pages/{login-e97ef92769456bf6.js → login-1d364797aaa9da36.js} +1 -1
  48. package/.next/static/chunks/pages/pvt/account/{403-91597100f8956385.js → 403-2105ed93b3e3e58e.js} +1 -1
  49. package/.next/static/chunks/pages/pvt/account/{404-c68124bed7cb7c48.js → 404-2e555481b1a4f63b.js} +1 -1
  50. package/.next/static/chunks/pages/pvt/account/orders/{[id]-68bbe8db444fd60a.js → [id]-2bd9adec59ae1ed3.js} +1 -1
  51. package/.next/static/chunks/pages/pvt/account/{orders-12a215899ae6f3eb.js → orders-4d66173a6e6282a1.js} +1 -1
  52. package/.next/static/chunks/pages/pvt/account/{profile-b6cdbf02d4682544.js → profile-1799ddf1749086aa.js} +1 -1
  53. package/.next/static/chunks/pages/pvt/account/{security-e6289a40e745d3c4.js → security-f2734d61da9099db.js} +1 -1
  54. package/.next/static/chunks/pages/pvt/account/{user-details-fba1822e52e7de26.js → user-details-c8636b99b6725815.js} +1 -1
  55. package/.next/static/chunks/pages/{s-41cffb20de1d2617.js → s-603fab8b09726274.js} +1 -1
  56. package/.next/static/chunks/{webpack-96e371f26b822ac6.js → webpack-3cd689c2fd3d4dd1.js} +1 -1
  57. package/.next/trace +138 -138
  58. package/.turbo/turbo-build.log +17 -17
  59. package/.turbo/turbo-test.log +8 -8
  60. package/@generated/gql.ts +2 -2
  61. package/@generated/graphql.ts +6 -1
  62. package/@generated/persisted-documents.json +1 -1
  63. package/@generated/schema.graphql +3 -0
  64. package/CHANGELOG.md +86 -0
  65. package/cms/faststore/base.jsonc +42 -0
  66. package/cms/faststore/components/cms_component__alert.jsonc +40 -0
  67. package/cms/faststore/components/cms_component__bannernewsletter.jsonc +183 -0
  68. package/cms/faststore/components/cms_component__bannertext.jsonc +51 -0
  69. package/cms/faststore/components/cms_component__breadcrumb.jsonc +21 -0
  70. package/cms/faststore/components/cms_component__cartsidebar.jsonc +122 -0
  71. package/cms/faststore/components/cms_component__children.jsonc +8 -0
  72. package/cms/faststore/components/cms_component__crosssellingshelf.jsonc +50 -0
  73. package/cms/faststore/components/cms_component__emptystate.jsonc +73 -0
  74. package/cms/faststore/components/cms_component__footer.jsonc +238 -0
  75. package/cms/faststore/components/cms_component__hero.jsonc +71 -0
  76. package/cms/faststore/components/cms_component__incentives.jsonc +51 -0
  77. package/cms/faststore/components/cms_component__navbar.jsonc +318 -0
  78. package/cms/faststore/components/cms_component__newsletter.jsonc +133 -0
  79. package/cms/faststore/components/cms_component__productdetails.jsonc +246 -0
  80. package/cms/faststore/components/cms_component__productgallery.jsonc +312 -0
  81. package/cms/faststore/components/cms_component__productshelf.jsonc +117 -0
  82. package/cms/faststore/components/cms_component__producttiles.jsonc +95 -0
  83. package/cms/faststore/components/cms_component__regionbar.jsonc +58 -0
  84. package/cms/faststore/components/cms_component__regionmodal.jsonc +85 -0
  85. package/cms/faststore/components/cms_component__regionpopover.jsonc +97 -0
  86. package/cms/faststore/components/cms_component__search.jsonc +144 -0
  87. package/cms/faststore/pages/cms_content_type__404.jsonc +18 -0
  88. package/cms/faststore/pages/cms_content_type__500.jsonc +18 -0
  89. package/cms/faststore/pages/cms_content_type__globalfootersections.jsonc +73 -0
  90. package/cms/faststore/pages/cms_content_type__globalheadersections.jsonc +73 -0
  91. package/cms/faststore/pages/cms_content_type__globalsections.jsonc +375 -0
  92. package/cms/faststore/pages/cms_content_type__home.jsonc +213 -0
  93. package/cms/faststore/pages/cms_content_type__landingpage.jsonc +108 -0
  94. package/cms/faststore/pages/cms_content_type__login.jsonc +18 -0
  95. package/cms/faststore/pages/cms_content_type__pdp.jsonc +115 -0
  96. package/cms/faststore/pages/cms_content_type__plp.jsonc +130 -0
  97. package/cms/faststore/pages/cms_content_type__search.jsonc +118 -0
  98. package/cms/faststore/schema.json +3859 -0
  99. package/cms/faststore/sections.json +2 -2
  100. package/package.json +15 -8
  101. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordion.tsx +18 -15
  102. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderDetails.tsx +9 -3
  103. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/MyAccountSummaryCard.tsx +0 -1
  104. package/src/pages/api/graphql.ts +26 -5
  105. package/src/pages/pvt/account/orders/[id].tsx +2 -0
  106. package/src/sdk/graphql/request.ts +10 -1
  107. package/src/utils/cookieCacheBusting.ts +141 -0
  108. package/test/utils/cookieCacheBusting.test.ts +121 -0
  109. package/.next/static/n8Y8ofpptOjFUsgm9BTVP/_buildManifest.js +0 -1
  110. /package/.next/static/{n8Y8ofpptOjFUsgm9BTVP → Yo88n9O6FrhtIc3GGfGv9}/_ssgManifest.js +0 -0
@@ -0,0 +1,21 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "Breadcrumb",
4
+ "$componentTitle": "Breadcrumb",
5
+ "title": "Breadcrumb",
6
+ "description": "Configure the breadcrumb icon and depth",
7
+ "type": "object",
8
+ "required": ["icon", "alt"],
9
+ "properties": {
10
+ "icon": {
11
+ "title": "Icon",
12
+ "type": "string",
13
+ "enumNames": ["House"],
14
+ "enum": ["House"]
15
+ },
16
+ "alt": {
17
+ "title": "Alternative Label",
18
+ "type": "string"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "CartSidebar",
4
+ "$componentTitle": "Cart Sidebar",
5
+ "title": "Cart Sidebar",
6
+ "description": "Cart Sidebar configuration",
7
+ "type": "object",
8
+ "properties": {
9
+ "title": {
10
+ "title": "Title text",
11
+ "type": "string",
12
+ "default": "Your cart"
13
+ },
14
+ "alert": {
15
+ "title": "Alert",
16
+ "type": "object",
17
+ "properties": {
18
+ "icon": {
19
+ "title": "Icon",
20
+ "type": "object",
21
+ "required": ["icon", "alt"],
22
+ "properties": {
23
+ "icon": {
24
+ "title": "Icon",
25
+ "type": "string",
26
+ "enumNames": [
27
+ "Bell",
28
+ "BellRinging",
29
+ "Checked",
30
+ "Info",
31
+ "Truck",
32
+ "User"
33
+ ],
34
+ "enum": [
35
+ "Bell",
36
+ "BellRinging",
37
+ "Checked",
38
+ "Info",
39
+ "Truck",
40
+ "User"
41
+ ],
42
+ "default": "Truck"
43
+ },
44
+ "alt": {
45
+ "title": "Alternative label",
46
+ "type": "string",
47
+ "default": "Arrow Right icon"
48
+ }
49
+ }
50
+ },
51
+ "text": {
52
+ "type": "string",
53
+ "title": "Text",
54
+ "default": "Free shipping on orders $300+"
55
+ }
56
+ }
57
+ },
58
+ "checkoutButton": {
59
+ "title": "Checkout button",
60
+ "type": "object",
61
+ "required": ["label", "loadingLabel", "icon"],
62
+ "properties": {
63
+ "label": {
64
+ "title": "Label",
65
+ "type": "string",
66
+ "default": "Checkout"
67
+ },
68
+ "loadingLabel": {
69
+ "title": "Loading label",
70
+ "type": "string",
71
+ "default": "Loading..."
72
+ },
73
+ "icon": {
74
+ "title": "Icon",
75
+ "type": "object",
76
+ "required": ["icon", "alt"],
77
+ "properties": {
78
+ "icon": {
79
+ "title": "Icon",
80
+ "type": "string",
81
+ "enumNames": ["ArrowRight"],
82
+ "enum": ["ArrowRight"],
83
+ "default": "ArrowRight"
84
+ },
85
+ "alt": {
86
+ "title": "Alternative label",
87
+ "type": "string",
88
+ "default": "Arrow Right icon"
89
+ }
90
+ }
91
+ }
92
+ }
93
+ },
94
+ "quantitySelector": {
95
+ "title": "Quantity Selector",
96
+ "type": "object",
97
+ "properties": {
98
+ "useUnitMultiplier": {
99
+ "title": "Should use unit multiplier?",
100
+ "type": "boolean",
101
+ "default": false
102
+ }
103
+ }
104
+ },
105
+ "taxesConfiguration": {
106
+ "title": "Taxes Configuration",
107
+ "type": "object",
108
+ "properties": {
109
+ "usePriceWithTaxes": {
110
+ "title": "Should use taxes to calculate the price?",
111
+ "type": "boolean",
112
+ "default": false
113
+ },
114
+ "taxesLabel": {
115
+ "title": "Tax label to be displayed",
116
+ "type": "string",
117
+ "default": "Tax included"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "Children",
4
+ "$componentTitle": "Children",
5
+ "title": "Children",
6
+ "type": "object",
7
+ "properties": {}
8
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "CrossSellingShelf",
4
+ "$componentTitle": "Cross Selling Shelf",
5
+ "title": "Cross Selling Shelf",
6
+ "description": "Add cross selling product data to your users",
7
+ "type": "object",
8
+ "required": ["title", "numberOfItems", "kind"],
9
+ "properties": {
10
+ "title": {
11
+ "title": "Title",
12
+ "type": "string"
13
+ },
14
+ "numberOfItems": {
15
+ "title": "Total number of items",
16
+ "type": "integer",
17
+ "default": 5,
18
+ "description": "Total number of items. The quantity may be smaller if the query returns fewer products."
19
+ },
20
+ "itemsPerPage": {
21
+ "type": "integer",
22
+ "title": "Number of items per page",
23
+ "default": 5,
24
+ "description": "Number of items to display per page in carousel"
25
+ },
26
+ "kind": {
27
+ "title": "Kind",
28
+ "description": "Change cross selling types",
29
+ "default": "buy",
30
+ "enum": ["buy", "view"],
31
+ "enumNames": ["Who bought also bought", "Who saw also saw"]
32
+ },
33
+ "taxesConfiguration": {
34
+ "title": "Taxes Configuration",
35
+ "type": "object",
36
+ "properties": {
37
+ "usePriceWithTaxes": {
38
+ "title": "Should use taxes to calculate the price?",
39
+ "type": "boolean",
40
+ "default": false
41
+ },
42
+ "taxesLabel": {
43
+ "title": "Tax label to be displayed",
44
+ "type": "string",
45
+ "default": "Tax included"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "EmptyState",
4
+ "$componentTitle": "Empty State",
5
+ "title": "Empty State",
6
+ "description": "Empty State configuration",
7
+ "type": "object",
8
+ "properties": {
9
+ "title": {
10
+ "title": "Title",
11
+ "type": "string"
12
+ },
13
+ "titleIcon": {
14
+ "title": "Title Icon",
15
+ "type": "object",
16
+ "properties": {
17
+ "icon": {
18
+ "title": "Icon",
19
+ "type": "string",
20
+ "enumNames": ["CircleWavy Warning"],
21
+ "enum": ["CircleWavyWarning"]
22
+ },
23
+ "alt": {
24
+ "title": "Alternative Label",
25
+ "type": "string"
26
+ }
27
+ }
28
+ },
29
+ "subtitle": {
30
+ "title": "Subtitle",
31
+ "type": "string"
32
+ },
33
+ "showLoader": {
34
+ "type": "boolean",
35
+ "title": "Show loader?",
36
+ "default": false
37
+ },
38
+ "errorState": {
39
+ "title": "Error state used for shown errorId and fromUrl properties in 500 and 404 pages",
40
+ "type": "object",
41
+ "properties": {
42
+ "errorId": {
43
+ "title": "errorId used in 500 and 404 pages",
44
+ "type": "object",
45
+ "properties": {
46
+ "show": {
47
+ "type": "boolean",
48
+ "title": "Show errorId in the end of message?"
49
+ },
50
+ "description": {
51
+ "type": "string",
52
+ "title": "Description shown before the errorId"
53
+ }
54
+ }
55
+ },
56
+ "fromUrl": {
57
+ "title": "fromUrl used in 500 and 404 pages",
58
+ "type": "object",
59
+ "properties": {
60
+ "show": {
61
+ "type": "boolean",
62
+ "title": "Show fromUrl in the end of message?"
63
+ },
64
+ "description": {
65
+ "type": "string",
66
+ "title": "Description shown before the fromUrl"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "Footer",
4
+ "$componentTitle": "Footer",
5
+ "title": "Footer",
6
+ "description": "Footer displayed on all pages",
7
+ "type": "object",
8
+ "properties": {
9
+ "incentives": {
10
+ "title": "Incentives",
11
+ "type": "array",
12
+ "minItems": 3,
13
+ "maxItems": 5,
14
+ "items": {
15
+ "title": "Incentive",
16
+ "type": "object",
17
+ "required": ["title", "firstLineText", "icon"],
18
+ "properties": {
19
+ "title": {
20
+ "type": "string",
21
+ "title": "Title"
22
+ },
23
+ "firstLineText": {
24
+ "type": "string",
25
+ "title": "First line of text"
26
+ },
27
+ "secondLineText": {
28
+ "type": "string",
29
+ "title": "Second line of text"
30
+ },
31
+ "icon": {
32
+ "type": "string",
33
+ "title": "Icon",
34
+ "enumNames": [
35
+ "Truck",
36
+ "Calendar",
37
+ "Gift",
38
+ "Store Front",
39
+ "Shield Check"
40
+ ],
41
+ "enum": ["Truck", "Calendar", "Gift", "Storefront", "ShieldCheck"]
42
+ },
43
+ "alt": {
44
+ "title": "Alternative Label",
45
+ "type": "string"
46
+ }
47
+ }
48
+ }
49
+ },
50
+ "footerLinks": {
51
+ "title": "Footer Links Sections",
52
+ "type": "array",
53
+ "maxItems": 4,
54
+ "items": {
55
+ "title": "Footer Links Section",
56
+ "type": "object",
57
+ "properties": {
58
+ "sectionTitle": {
59
+ "title": "Section Title",
60
+ "type": "string"
61
+ },
62
+ "items": {
63
+ "title": "Links",
64
+ "type": "array",
65
+ "minItems": 1,
66
+ "maxItems": 8,
67
+ "items": {
68
+ "title": "Link",
69
+ "type": "object",
70
+ "required": ["text", "url"],
71
+ "properties": {
72
+ "text": {
73
+ "title": "Link Text",
74
+ "type": "string"
75
+ },
76
+ "url": {
77
+ "title": "Link URL",
78
+ "type": "string",
79
+ "description": "Absolute or Relative"
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ },
87
+ "footerSocial": {
88
+ "title": "Social Media Links",
89
+ "type": "object",
90
+ "properties": {
91
+ "title": {
92
+ "title": "Title",
93
+ "type": "string",
94
+ "default": "Follow us"
95
+ },
96
+ "socialLinks": {
97
+ "title": "Social Media",
98
+ "type": "array",
99
+ "minItems": 0,
100
+ "maxItems": 8,
101
+ "items": {
102
+ "title": "Link",
103
+ "type": "object",
104
+ "required": ["alt", "url", "icon"],
105
+ "properties": {
106
+ "icon": {
107
+ "title": "Icon",
108
+ "type": "object",
109
+ "properties": {
110
+ "icon": {
111
+ "title": "Icon",
112
+ "type": "string",
113
+ "enumNames": [
114
+ "Facebook",
115
+ "Instagram",
116
+ "Pinterest",
117
+ "Twitter"
118
+ ],
119
+ "enum": ["Facebook", "Instagram", "Pinterest", "Twitter"]
120
+ }
121
+ }
122
+ },
123
+ "alt": {
124
+ "title": "Alt",
125
+ "type": "string"
126
+ },
127
+ "url": {
128
+ "title": "URL",
129
+ "type": "string"
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ },
136
+ "logo": {
137
+ "title": "Logo",
138
+ "type": "object",
139
+ "properties": {
140
+ "src": {
141
+ "title": "Image",
142
+ "type": "string",
143
+ "widget": {
144
+ "ui:widget": "media-gallery",
145
+ "restrictMediaTypes": {
146
+ "video": true,
147
+ "image": ["png", "jpg", "jpeg", "gif", "svg", "webp"]
148
+ }
149
+ }
150
+ },
151
+ "alt": {
152
+ "title": "Alternative Label",
153
+ "type": "string"
154
+ },
155
+ "link": {
156
+ "title": "Logo Link",
157
+ "type": "object",
158
+ "required": ["url", "title"],
159
+ "properties": {
160
+ "url": {
161
+ "title": "Link URL",
162
+ "type": "string"
163
+ },
164
+ "title": {
165
+ "title": "Link Title",
166
+ "type": "string"
167
+ }
168
+ }
169
+ }
170
+ }
171
+ },
172
+ "copyrightInfo": {
173
+ "title": "Copyright Message",
174
+ "type": "string"
175
+ },
176
+ "acceptedPaymentMethods": {
177
+ "title": "Payment Methods Sections",
178
+ "type": "object",
179
+ "required": ["showPaymentMethods"],
180
+ "properties": {
181
+ "showPaymentMethods": {
182
+ "title": "Display Payment Methods",
183
+ "type": "boolean",
184
+ "default": true
185
+ },
186
+ "title": {
187
+ "title": "Title",
188
+ "type": "string",
189
+ "default": "Payment methods"
190
+ },
191
+ "paymentMethods": {
192
+ "title": "Payment Methods",
193
+ "type": "array",
194
+ "items": {
195
+ "title": "Payment Method",
196
+ "type": "object",
197
+ "required": ["icon", "alt"],
198
+ "properties": {
199
+ "icon": {
200
+ "type": "object",
201
+ "properties": {
202
+ "icon": {
203
+ "title": "Icon",
204
+ "type": "string",
205
+ "enumNames": [
206
+ "Visa",
207
+ "Diners Club",
208
+ "Mastercard",
209
+ "Elo Card",
210
+ "PayPal",
211
+ "Stripe",
212
+ "GooglePay",
213
+ "ApplePay"
214
+ ],
215
+ "enum": [
216
+ "Visa",
217
+ "Diners",
218
+ "Mastercard",
219
+ "EloCard",
220
+ "PayPal",
221
+ "Stripe",
222
+ "GooglePay",
223
+ "ApplePay"
224
+ ]
225
+ }
226
+ }
227
+ },
228
+ "alt": {
229
+ "type": "string",
230
+ "title": "Alternative Label"
231
+ }
232
+ }
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "Hero",
4
+ "$componentTitle": "Hero",
5
+ "title": "Hero",
6
+ "description": "Add a quick promotion with an image/action pair",
7
+ "type": "object",
8
+ "required": ["title"],
9
+ "properties": {
10
+ "title": {
11
+ "title": "Title",
12
+ "type": "string"
13
+ },
14
+ "subtitle": {
15
+ "title": "Subtitle",
16
+ "type": "string"
17
+ },
18
+ "link": {
19
+ "title": "Call to Action",
20
+ "type": "object",
21
+ "properties": {
22
+ "text": {
23
+ "type": "string",
24
+ "title": "Text"
25
+ },
26
+ "url": {
27
+ "type": "string",
28
+ "title": "URL"
29
+ },
30
+ "linkTargetBlank": {
31
+ "type": "boolean",
32
+ "title": "Open link in new window?",
33
+ "default": false
34
+ }
35
+ }
36
+ },
37
+ "image": {
38
+ "type": "object",
39
+ "title": "Image",
40
+ "properties": {
41
+ "src": {
42
+ "type": "string",
43
+ "title": "Image",
44
+ "widget": {
45
+ "ui:widget": "media-gallery",
46
+ "restrictMediaTypes": {
47
+ "video": true,
48
+ "image": ["png", "jpg", "jpeg", "gif", "svg", "webp"]
49
+ }
50
+ }
51
+ },
52
+ "alt": {
53
+ "type": "string",
54
+ "title": "Alternative Label"
55
+ }
56
+ }
57
+ },
58
+ "colorVariant": {
59
+ "type": "string",
60
+ "title": "Color variant",
61
+ "enumNames": ["Main", "Light", "Accent"],
62
+ "enum": ["main", "light", "accent"]
63
+ },
64
+ "variant": {
65
+ "type": "string",
66
+ "title": "Variant",
67
+ "enumNames": ["Primary", "Secondary"],
68
+ "enum": ["primary", "secondary"]
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "$extends": ["#/$defs/base-component"],
3
+ "$componentKey": "Incentives",
4
+ "$componentTitle": "Incentives",
5
+ "title": "Incentives",
6
+ "description": "Add Incentives to your shopper",
7
+ "type": "object",
8
+ "properties": {
9
+ "incentives": {
10
+ "title": "Incentives",
11
+ "type": "array",
12
+ "minItems": 3,
13
+ "maxItems": 5,
14
+ "items": {
15
+ "title": "Incentive",
16
+ "type": "object",
17
+ "required": ["title", "firstLineText", "icon"],
18
+ "properties": {
19
+ "title": {
20
+ "type": "string",
21
+ "title": "Title"
22
+ },
23
+ "firstLineText": {
24
+ "type": "string",
25
+ "title": "First line of text"
26
+ },
27
+ "secondLineText": {
28
+ "type": "string",
29
+ "title": "Second line of text"
30
+ },
31
+ "icon": {
32
+ "type": "string",
33
+ "title": "Icon",
34
+ "enumNames": [
35
+ "Truck",
36
+ "Calendar",
37
+ "Gift",
38
+ "Store Front",
39
+ "Shield Check"
40
+ ],
41
+ "enum": ["Truck", "Calendar", "Gift", "Storefront", "ShieldCheck"]
42
+ },
43
+ "alt": {
44
+ "title": "Alternative Label",
45
+ "type": "string"
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }