@jetshop/template-trend 5.15.2 → 5.16.0
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 +0 -36
- 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.
|
|
3
|
+
"version": "5.16.0",
|
|
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.16.0
|
|
48
|
+
"@jetshop/core": "^5.16.0",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "5.16.0
|
|
51
|
-
"@jetshop/react-scripts": "5.16.0
|
|
52
|
-
"@jetshop/ui": "5.16.0
|
|
50
|
+
"@jetshop/intl": "^5.16.0",
|
|
51
|
+
"@jetshop/react-scripts": "^5.16.0",
|
|
52
|
+
"@jetshop/ui": "^5.16.0",
|
|
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,9 +41,6 @@
|
|
|
41
41
|
"cart_total_c0110f50": {
|
|
42
42
|
"message": "Cart total"
|
|
43
43
|
},
|
|
44
|
-
"categories_9d537a7a": {
|
|
45
|
-
"message": "Categories"
|
|
46
|
-
},
|
|
47
44
|
"change_password_20192c50": {
|
|
48
45
|
"message": "Change Password"
|
|
49
46
|
},
|
|
@@ -224,9 +221,6 @@
|
|
|
224
221
|
"hold_on_a_moment_a3f09a64": {
|
|
225
222
|
"message": "Hold on a moment…"
|
|
226
223
|
},
|
|
227
|
-
"home_351838cd": {
|
|
228
|
-
"message": "Home"
|
|
229
|
-
},
|
|
230
224
|
"homepage_4b84763d": {
|
|
231
225
|
"message": "HOMEPAGE"
|
|
232
226
|
},
|
|
@@ -239,9 +233,6 @@
|
|
|
239
233
|
"i_want_newsletters_58c52364": {
|
|
240
234
|
"message": "I want newsletters"
|
|
241
235
|
},
|
|
242
|
-
"image_not_found_2f99135": {
|
|
243
|
-
"message": "Image Not Found"
|
|
244
|
-
},
|
|
245
236
|
"in_stock_859385c7": {
|
|
246
237
|
"message": "In Stock"
|
|
247
238
|
},
|
|
@@ -296,9 +287,6 @@
|
|
|
296
287
|
"login_6f3d6249": {
|
|
297
288
|
"message": "Login"
|
|
298
289
|
},
|
|
299
|
-
"login_failed_please_try_again_841d7c15": {
|
|
300
|
-
"message": "Login failed. Please try again"
|
|
301
|
-
},
|
|
302
290
|
"look_up_my_info_6436db80": {
|
|
303
291
|
"message": "Look up my info"
|
|
304
292
|
},
|
|
@@ -350,12 +338,6 @@
|
|
|
350
338
|
"newsletters_a04708fd": {
|
|
351
339
|
"message": "Newsletters"
|
|
352
340
|
},
|
|
353
|
-
"next_40e12421": {
|
|
354
|
-
"message": "Next"
|
|
355
|
-
},
|
|
356
|
-
"no_e16d9132": {
|
|
357
|
-
"message": "No"
|
|
358
|
-
},
|
|
359
341
|
"no_items_in_cart_cf9df6d4": {
|
|
360
342
|
"message": "No items in cart."
|
|
361
343
|
},
|
|
@@ -422,9 +404,6 @@
|
|
|
422
404
|
"package_discount_66e25640": {
|
|
423
405
|
"message": "Package Discount"
|
|
424
406
|
},
|
|
425
|
-
"page_currentpage_of_totalpages_a773c744": {
|
|
426
|
-
"message": "Page { currentPage } of { totalPages }"
|
|
427
|
-
},
|
|
428
407
|
"payment_method_84a444f1": {
|
|
429
408
|
"message": "Payment method"
|
|
430
409
|
},
|
|
@@ -458,15 +437,9 @@
|
|
|
458
437
|
"postal_code_is_required_ca3b7a32": {
|
|
459
438
|
"message": "Postal code is required."
|
|
460
439
|
},
|
|
461
|
-
"pre_order_date_86078d45": {
|
|
462
|
-
"message": "Pre-order date"
|
|
463
|
-
},
|
|
464
440
|
"pre_order_date_is_required_170e38e0": {
|
|
465
441
|
"message": "Pre-order date is required"
|
|
466
442
|
},
|
|
467
|
-
"prev_f82cbc48": {
|
|
468
|
-
"message": "Prev"
|
|
469
|
-
},
|
|
470
443
|
"price_ffd8b80": {
|
|
471
444
|
"message": "Price"
|
|
472
445
|
},
|
|
@@ -497,9 +470,6 @@
|
|
|
497
470
|
"productname_has_been_added_to_the_cart_fba79585": {
|
|
498
471
|
"message": "{ productName } has been added to the cart"
|
|
499
472
|
},
|
|
500
|
-
"products_c5f0793": {
|
|
501
|
-
"message": "Products"
|
|
502
|
-
},
|
|
503
473
|
"quantity_20164bff": {
|
|
504
474
|
"message": "Quantity"
|
|
505
475
|
},
|
|
@@ -548,9 +518,6 @@
|
|
|
548
518
|
"select_options_9ee7b227": {
|
|
549
519
|
"message": "Select options"
|
|
550
520
|
},
|
|
551
|
-
"select_pre_order_date_8c8d72b7": {
|
|
552
|
-
"message": "Select pre-order date"
|
|
553
|
-
},
|
|
554
521
|
"select_the_variants_b3aa2844": {
|
|
555
522
|
"message": "Select the variants"
|
|
556
523
|
},
|
|
@@ -746,9 +713,6 @@
|
|
|
746
713
|
"whoops_54a74974": {
|
|
747
714
|
"message": "Whoops"
|
|
748
715
|
},
|
|
749
|
-
"yes_dde87d5": {
|
|
750
|
-
"message": "Yes"
|
|
751
|
-
},
|
|
752
716
|
"you_are_now_subscribed_71495f41": {
|
|
753
717
|
"message": "You are now subscribed."
|
|
754
718
|
},
|