@jetshop/template-trend 5.16.0-alpha.86c426f4 → 5.16.1
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/cypress.json +2 -1
- package/package.json +5 -5
- package/schema.graphql +31 -6
- package/src/components/Shop.js +6 -6
- package/src/components/StartPage/Content/StartPageHero.js +2 -2
- package/src/shop.config.js +0 -2
- package/translations/default.json +36 -0
- package/.linaria-cache/packages/ui/ChannelSelector/Region.linaria.css +0 -3
package/cypress.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetshop/template-trend",
|
|
3
|
-
"version": "5.16.
|
|
3
|
+
"version": "5.16.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "react-scripts build",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jetshop/core": "5.
|
|
48
|
+
"@jetshop/core": "^5.16.1",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "5.
|
|
51
|
-
"@jetshop/react-scripts": "5.
|
|
52
|
-
"@jetshop/ui": "5.
|
|
50
|
+
"@jetshop/intl": "^5.16.1",
|
|
51
|
+
"@jetshop/react-scripts": "^5.16.1",
|
|
52
|
+
"@jetshop/ui": "^5.16.1",
|
|
53
53
|
"@react-google-maps/api": "~1.7.0",
|
|
54
54
|
"prop-types": "^15.6.2",
|
|
55
55
|
"react": "^16.9.0",
|
package/schema.graphql
CHANGED
|
@@ -220,8 +220,8 @@ type Category implements Document {
|
|
|
220
220
|
dynamicFiltering: [CategoryDynamicFilter]
|
|
221
221
|
|
|
222
222
|
"""
|
|
223
|
-
Get content data set via the Content Editor.NB: Carries a performance cost,
|
|
224
|
-
asking for this will result in a separate API call in the backend.
|
|
223
|
+
Get content data set via the Content Editor. NB: Carries a performance cost,
|
|
224
|
+
as asking for this will result in a separate API call in the backend.
|
|
225
225
|
"""
|
|
226
226
|
data: Content
|
|
227
227
|
|
|
@@ -310,11 +310,14 @@ type Consent {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
type Content {
|
|
313
|
+
name: String
|
|
313
314
|
id: ID!
|
|
314
315
|
items: [ContentItem]
|
|
316
|
+
tags: [String]
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
type ContentItem {
|
|
320
|
+
name: String
|
|
318
321
|
type: String!
|
|
319
322
|
properties(
|
|
320
323
|
"""
|
|
@@ -840,6 +843,11 @@ type ExternalCustomerResult {
|
|
|
840
843
|
customer: ExternalCustomer
|
|
841
844
|
}
|
|
842
845
|
|
|
846
|
+
type ExternalOrderData {
|
|
847
|
+
name: String!
|
|
848
|
+
value: String!
|
|
849
|
+
}
|
|
850
|
+
|
|
843
851
|
type FacebookConversionsApi {
|
|
844
852
|
accessToken: String
|
|
845
853
|
pixelId: String
|
|
@@ -867,8 +875,14 @@ type GoogleAnalytics {
|
|
|
867
875
|
useArticleNumberAsId: Boolean
|
|
868
876
|
}
|
|
869
877
|
|
|
878
|
+
type GoogleAnalytics4 {
|
|
879
|
+
trackingId: String
|
|
880
|
+
useArticleNumberAsId: Boolean
|
|
881
|
+
}
|
|
882
|
+
|
|
870
883
|
type GoogleTagManager {
|
|
871
884
|
containerId: String
|
|
885
|
+
useGa4Events: Boolean
|
|
872
886
|
}
|
|
873
887
|
|
|
874
888
|
type HtmlHead {
|
|
@@ -1340,6 +1354,9 @@ type OrderItem {
|
|
|
1340
1354
|
"""
|
|
1341
1355
|
variantValue: String
|
|
1342
1356
|
preOrderDate: DateTime
|
|
1357
|
+
|
|
1358
|
+
"""list of name, value fields from orders coming from external systems."""
|
|
1359
|
+
externalOrderData: [ExternalOrderData]
|
|
1343
1360
|
}
|
|
1344
1361
|
|
|
1345
1362
|
type OrderItemDiscount {
|
|
@@ -1426,7 +1443,10 @@ type Page implements Document {
|
|
|
1426
1443
|
primaryRoute: Route
|
|
1427
1444
|
breadcrumbText: String
|
|
1428
1445
|
|
|
1429
|
-
"""
|
|
1446
|
+
"""
|
|
1447
|
+
Get content data set via the Content Editor. NB: Carries a performance cost,
|
|
1448
|
+
as asking for this will result in a separate API call in the backend.
|
|
1449
|
+
"""
|
|
1430
1450
|
data: Content
|
|
1431
1451
|
|
|
1432
1452
|
"""
|
|
@@ -2018,9 +2038,10 @@ type Query {
|
|
|
2018
2038
|
personLookup(key: String!): PersonLookup
|
|
2019
2039
|
|
|
2020
2040
|
"""
|
|
2021
|
-
Returns
|
|
2041
|
+
Returns content found, either by a list of content Ids, or filtered by tags.
|
|
2042
|
+
In the case of filtering by ids, not found content Ids are listed as well.
|
|
2022
2043
|
"""
|
|
2023
|
-
content(ids: [String]
|
|
2044
|
+
content(ids: [String], tags: [String]): MultipleContent
|
|
2024
2045
|
|
|
2025
2046
|
"""get channel by id, null gets default channel"""
|
|
2026
2047
|
channel(id: String): Channel
|
|
@@ -2292,7 +2313,10 @@ type StartPage implements Document {
|
|
|
2292
2313
|
primaryRoute: Route
|
|
2293
2314
|
breadcrumbText: String
|
|
2294
2315
|
|
|
2295
|
-
"""
|
|
2316
|
+
"""
|
|
2317
|
+
Get content data set via the Content Editor. NB: Carries a performance cost,
|
|
2318
|
+
as asking for this will result in a separate API call in the backend.
|
|
2319
|
+
"""
|
|
2296
2320
|
data: Content
|
|
2297
2321
|
}
|
|
2298
2322
|
|
|
@@ -2350,6 +2374,7 @@ type Token {
|
|
|
2350
2374
|
|
|
2351
2375
|
type Tracking {
|
|
2352
2376
|
ga: GoogleAnalytics
|
|
2377
|
+
ga4: GoogleAnalytics4
|
|
2353
2378
|
gtm: GoogleTagManager
|
|
2354
2379
|
fca: FacebookConversionsApi
|
|
2355
2380
|
}
|
package/src/components/Shop.js
CHANGED
|
@@ -65,9 +65,9 @@ function Shop() {
|
|
|
65
65
|
defaultTitle="Template Trend"
|
|
66
66
|
/>
|
|
67
67
|
<ProductListProvider queries={productListQueries}>
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
<
|
|
68
|
+
<PaginationProvider defaultProductsPerPage={24}>
|
|
69
|
+
<Header />
|
|
70
|
+
<Content>
|
|
71
71
|
<Switch>
|
|
72
72
|
<Route exact path="/" component={StartPage} />
|
|
73
73
|
<Route path="/favourites" component={Favourites} />
|
|
@@ -112,9 +112,9 @@ function Shop() {
|
|
|
112
112
|
LoadingPage={LoadingPage}
|
|
113
113
|
/>
|
|
114
114
|
</Switch>
|
|
115
|
-
</
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
</Content>
|
|
116
|
+
<Footer />
|
|
117
|
+
</PaginationProvider>
|
|
118
118
|
</ProductListProvider>
|
|
119
119
|
<ModalRoot />
|
|
120
120
|
<ScrollRestorationHandler
|
|
@@ -80,8 +80,8 @@ const StartPageHero = ({
|
|
|
80
80
|
src={imageSrc.value}
|
|
81
81
|
className={heroStyles}
|
|
82
82
|
critical={isAboveFold?.value}
|
|
83
|
-
focalPointY={imageSrc.value
|
|
84
|
-
focalPointX={imageSrc.value
|
|
83
|
+
focalPointY={imageSrc.value?.focalPointY}
|
|
84
|
+
focalPointX={imageSrc.value?.focalPointX}
|
|
85
85
|
aspect={'2:1'}
|
|
86
86
|
>
|
|
87
87
|
<Container>
|
package/src/shop.config.js
CHANGED
|
@@ -30,9 +30,7 @@ const config = {
|
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
|
-
trackingID: process.env.REACT_APP_GA_TRACKING_ID,
|
|
34
33
|
additionalGtagTrackingIds: [],
|
|
35
|
-
tagManagerID: process.env.REACT_APP_GTM_CONTAINER_ID,
|
|
36
34
|
relewareEnabled: true,
|
|
37
35
|
sentry: {
|
|
38
36
|
clientDSN: process.env.FLIGHT_SENTRY_CLIENT_DSN,
|
|
@@ -41,6 +41,9 @@
|
|
|
41
41
|
"cart_total_c0110f50": {
|
|
42
42
|
"message": "Cart total"
|
|
43
43
|
},
|
|
44
|
+
"categories_9d537a7a": {
|
|
45
|
+
"message": "Categories"
|
|
46
|
+
},
|
|
44
47
|
"change_password_20192c50": {
|
|
45
48
|
"message": "Change Password"
|
|
46
49
|
},
|
|
@@ -221,6 +224,9 @@
|
|
|
221
224
|
"hold_on_a_moment_a3f09a64": {
|
|
222
225
|
"message": "Hold on a moment…"
|
|
223
226
|
},
|
|
227
|
+
"home_351838cd": {
|
|
228
|
+
"message": "Home"
|
|
229
|
+
},
|
|
224
230
|
"homepage_4b84763d": {
|
|
225
231
|
"message": "HOMEPAGE"
|
|
226
232
|
},
|
|
@@ -233,6 +239,9 @@
|
|
|
233
239
|
"i_want_newsletters_58c52364": {
|
|
234
240
|
"message": "I want newsletters"
|
|
235
241
|
},
|
|
242
|
+
"image_not_found_2f99135": {
|
|
243
|
+
"message": "Image Not Found"
|
|
244
|
+
},
|
|
236
245
|
"in_stock_859385c7": {
|
|
237
246
|
"message": "In Stock"
|
|
238
247
|
},
|
|
@@ -287,6 +296,9 @@
|
|
|
287
296
|
"login_6f3d6249": {
|
|
288
297
|
"message": "Login"
|
|
289
298
|
},
|
|
299
|
+
"login_failed_please_try_again_841d7c15": {
|
|
300
|
+
"message": "Login failed. Please try again"
|
|
301
|
+
},
|
|
290
302
|
"look_up_my_info_6436db80": {
|
|
291
303
|
"message": "Look up my info"
|
|
292
304
|
},
|
|
@@ -338,6 +350,12 @@
|
|
|
338
350
|
"newsletters_a04708fd": {
|
|
339
351
|
"message": "Newsletters"
|
|
340
352
|
},
|
|
353
|
+
"next_40e12421": {
|
|
354
|
+
"message": "Next"
|
|
355
|
+
},
|
|
356
|
+
"no_e16d9132": {
|
|
357
|
+
"message": "No"
|
|
358
|
+
},
|
|
341
359
|
"no_items_in_cart_cf9df6d4": {
|
|
342
360
|
"message": "No items in cart."
|
|
343
361
|
},
|
|
@@ -404,6 +422,9 @@
|
|
|
404
422
|
"package_discount_66e25640": {
|
|
405
423
|
"message": "Package Discount"
|
|
406
424
|
},
|
|
425
|
+
"page_currentpage_of_totalpages_a773c744": {
|
|
426
|
+
"message": "Page { currentPage } of { totalPages }"
|
|
427
|
+
},
|
|
407
428
|
"payment_method_84a444f1": {
|
|
408
429
|
"message": "Payment method"
|
|
409
430
|
},
|
|
@@ -437,9 +458,15 @@
|
|
|
437
458
|
"postal_code_is_required_ca3b7a32": {
|
|
438
459
|
"message": "Postal code is required."
|
|
439
460
|
},
|
|
461
|
+
"pre_order_date_86078d45": {
|
|
462
|
+
"message": "Pre-order date"
|
|
463
|
+
},
|
|
440
464
|
"pre_order_date_is_required_170e38e0": {
|
|
441
465
|
"message": "Pre-order date is required"
|
|
442
466
|
},
|
|
467
|
+
"prev_f82cbc48": {
|
|
468
|
+
"message": "Prev"
|
|
469
|
+
},
|
|
443
470
|
"price_ffd8b80": {
|
|
444
471
|
"message": "Price"
|
|
445
472
|
},
|
|
@@ -470,6 +497,9 @@
|
|
|
470
497
|
"productname_has_been_added_to_the_cart_fba79585": {
|
|
471
498
|
"message": "{ productName } has been added to the cart"
|
|
472
499
|
},
|
|
500
|
+
"products_c5f0793": {
|
|
501
|
+
"message": "Products"
|
|
502
|
+
},
|
|
473
503
|
"quantity_20164bff": {
|
|
474
504
|
"message": "Quantity"
|
|
475
505
|
},
|
|
@@ -518,6 +548,9 @@
|
|
|
518
548
|
"select_options_9ee7b227": {
|
|
519
549
|
"message": "Select options"
|
|
520
550
|
},
|
|
551
|
+
"select_pre_order_date_8c8d72b7": {
|
|
552
|
+
"message": "Select pre-order date"
|
|
553
|
+
},
|
|
521
554
|
"select_the_variants_b3aa2844": {
|
|
522
555
|
"message": "Select the variants"
|
|
523
556
|
},
|
|
@@ -713,6 +746,9 @@
|
|
|
713
746
|
"whoops_54a74974": {
|
|
714
747
|
"message": "Whoops"
|
|
715
748
|
},
|
|
749
|
+
"yes_dde87d5": {
|
|
750
|
+
"message": "Yes"
|
|
751
|
+
},
|
|
716
752
|
"you_are_now_subscribed_71495f41": {
|
|
717
753
|
"message": "You are now subscribed."
|
|
718
754
|
},
|