@jetshop/template-trend 5.12.0 → 5.12.3

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.
@@ -0,0 +1 @@
1
+ .preventBodyScrollStyle_p1chftlb{overflow:hidden;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetshop/template-trend",
3
- "version": "5.12.0",
3
+ "version": "5.12.3",
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.12.0",
48
+ "@jetshop/core": "^5.12.3",
49
49
  "@jetshop/flight-shortcodes": "^2.0.10",
50
- "@jetshop/intl": "^5.12.0",
51
- "@jetshop/react-scripts": "^5.12.0",
52
- "@jetshop/ui": "^5.12.0",
50
+ "@jetshop/intl": "^5.12.3",
51
+ "@jetshop/react-scripts": "^5.12.3",
52
+ "@jetshop/ui": "^5.12.3",
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
@@ -181,6 +181,7 @@ type Category implements Document {
181
181
  mainHeader: String
182
182
  content: String
183
183
  externalId: String
184
+ externalDiscountId: String
184
185
  images: [CategoryImage]
185
186
 
186
187
  """
@@ -715,6 +716,7 @@ type DeleteCustomerProductListResult {
715
716
  }
716
717
 
717
718
  type Discount {
719
+ externalId: ID
718
720
  name: String
719
721
  value: Price
720
722
  description: String
@@ -888,6 +890,11 @@ type MultiListFilterList {
888
890
  items: [ListFilterItem]!
889
891
  }
890
892
 
893
+ type MultipleContent {
894
+ notFoundIds: [ID]!
895
+ content: [Content]!
896
+ }
897
+
891
898
  type Mutation {
892
899
  subscribeToStockNotifications(email: String!, articleNumber: String!): Boolean
893
900
 
@@ -1137,6 +1144,7 @@ type Order {
1137
1144
  orderDate: DateTime
1138
1145
  currency: Currency
1139
1146
  attachments: [OrderAttachment]
1147
+ orderPurchaseLocation: String
1140
1148
  }
1141
1149
 
1142
1150
  type OrderAddress {
@@ -1561,6 +1569,7 @@ type Product implements Document {
1561
1569
  """
1562
1570
  configurations: [ProductConfiguration]
1563
1571
  hasConfigurations: Boolean!
1572
+ hasFamilyMembers: Boolean!
1564
1573
 
1565
1574
  """
1566
1575
  Calculates the price of the product based on the configuration choices that's
@@ -1852,6 +1861,11 @@ type Query {
1852
1861
  """Get information on person by Key(personal id number or phone number)"""
1853
1862
  personLookup(key: String!): PersonLookup
1854
1863
 
1864
+ """
1865
+ Returns Content found by list of its IDs. Also not found Content IDs are listed.
1866
+ """
1867
+ content(ids: [String]!): MultipleContent
1868
+
1855
1869
  """get channel by id, null gets default channel"""
1856
1870
  channel(id: String): Channel
1857
1871
 
@@ -24,12 +24,8 @@ export const SortOrders = ({ sortOrders }) => {
24
24
  };
25
25
 
26
26
  function SortOrderDropdown({ sortOrders }) {
27
- const {
28
- mappedSortOrder,
29
- changeSortOrder,
30
- sortOrder,
31
- direction
32
- } = useSortOrder({ sortOrders });
27
+ const { mappedSortOrder, changeSortOrder, sortOrder, direction } =
28
+ useSortOrder({ sortOrders });
33
29
 
34
30
  const activeItem = mappedSortOrder.find(
35
31
  item => item.direction === direction && item.value === sortOrder
@@ -48,7 +44,7 @@ function SortOrderDropdown({ sortOrders }) {
48
44
  onSelect={() =>
49
45
  changeSortOrder(sortItem.value, sortItem.direction)
50
46
  }
51
- key={sortItem.value}
47
+ key={`${sortItem.value}-${sortItem.direction}`}
52
48
  >
53
49
  {sortItem.text}
54
50
  {activeItem === sortItem && <StyledCheck />}
@@ -61,7 +61,7 @@ const config = {
61
61
  trackers: [],
62
62
  serverTrackers: [
63
63
  createFacebookTracker({
64
- pixelID: process.env.FACEBOOK_PIXEL_ID,
64
+ pixelId: process.env.FACEBOOK_PIXEL_ID,
65
65
  token: process.env.FACEBOOK_CAPI_TOKEN
66
66
  })
67
67
  ],
@@ -1,11 +0,0 @@
1
- {
2
- "configurations": [
3
- {
4
- "type": "node-terminal",
5
- "name": "Run Script: start",
6
- "request": "launch",
7
- "command": "yarn run start",
8
- "cwd": "${workspaceFolder}"
9
- }
10
- ]
11
- }