@jetshop/template-trend 5.16.0-alpha.86c426f4 → 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 CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "baseUrl": "http://localhost:3000",
3
- "chromeWebSecurity": false
3
+ "chromeWebSecurity": false,
4
+ "video": false
4
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/template-trend",
3
- "version": "5.16.0-alpha.86c426f4",
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.15.0-alpha.8e29bc11",
48
+ "@jetshop/core": "^5.16.0",
49
49
  "@jetshop/flight-shortcodes": "^2.0.10",
50
- "@jetshop/intl": "5.15.0-alpha.8e29bc11",
51
- "@jetshop/react-scripts": "5.15.0-alpha.8e29bc11",
52
- "@jetshop/ui": "5.15.0-alpha.8e29bc11",
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, as
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
- """Get content data set via the Content Editor"""
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 Content found by list of its IDs. Also not found Content IDs are listed.
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]!): MultipleContent
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
- """Get content data set via the Content Editor"""
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
  }
@@ -65,9 +65,9 @@ function Shop() {
65
65
  defaultTitle="Template Trend"
66
66
  />
67
67
  <ProductListProvider queries={productListQueries}>
68
- <Header />
69
- <Content>
70
- <PaginationProvider defaultProductsPerPage={24}>
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
- </PaginationProvider>
116
- </Content>
117
- <Footer />
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.focalPointY}
84
- focalPointX={imageSrc.value.focalPointX}
83
+ focalPointY={imageSrc.value?.focalPointY}
84
+ focalPointX={imageSrc.value?.focalPointX}
85
85
  aspect={'2:1'}
86
86
  >
87
87
  <Container>
@@ -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,
@@ -1,3 +0,0 @@
1
- .RegionName_r1biyodf{text-transform:uppercase;font-size:1rem;line-height:1.5rem;font-weight:600;margin:1rem 0 0.5rem 0;}
2
-
3
-