@graphcommerce/magento-store 4.1.3 → 4.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`3c801f45c`](https://github.com/graphcommerce-org/graphcommerce/commit/3c801f45c7df55131acf30ae2fe0d2344830d480), [`3192fab82`](https://github.com/graphcommerce-org/graphcommerce/commit/3192fab82560e2211dfcacadc3b0b305260527d8), [`0e425e85e`](https://github.com/graphcommerce-org/graphcommerce/commit/0e425e85ee8fed280349317ee0440c7bceea5823), [`8a354d1cd`](https://github.com/graphcommerce-org/graphcommerce/commit/8a354d1cd4757497ddfc9b1969a0addbc8ff616b)]:
8
+ - @graphcommerce/next-ui@4.6.0
9
+ - @graphcommerce/image@3.1.4
10
+
11
+ ## 4.1.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
16
+
17
+ - Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5)]:
18
+ - @graphcommerce/graphql@3.0.7
19
+ - @graphcommerce/image@3.1.3
20
+ - @graphcommerce/next-ui@4.5.1
21
+
22
+ ## 4.1.4
23
+
24
+ ### Patch Changes
25
+
26
+ - [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
27
+
28
+ - Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
29
+ - @graphcommerce/graphql@3.0.6
30
+ - @graphcommerce/next-ui@4.5.0
31
+ - @graphcommerce/image@3.1.2
32
+
3
33
  ## 4.1.3
4
34
 
5
35
  ### Patch Changes
@@ -1,31 +1,5 @@
1
1
  query StoreConfig {
2
2
  storeConfig {
3
- website_name
4
- store_code
5
- store_name
6
-
7
- locale
8
- base_currency_code
9
- default_display_currency_code
10
-
11
- title_suffix
12
- title_prefix
13
- title_separator
14
- default_title
15
-
16
- cms_home_page
17
-
18
- catalog_default_sort_by
19
- category_url_suffix
20
- product_url_suffix
21
- secure_base_link_url
22
- secure_base_url
23
-
24
- root_category_uid
25
-
26
- weight_unit
27
-
28
- product_reviews_enabled
29
- allow_guests_to_write_product_reviews
3
+ ...StoreConfigFragment
30
4
  }
31
5
  }
@@ -0,0 +1,29 @@
1
+ fragment StoreConfigFragment on StoreConfig @injectable {
2
+ website_name
3
+ store_code
4
+ store_name
5
+
6
+ locale
7
+ base_currency_code
8
+ default_display_currency_code
9
+
10
+ title_suffix
11
+ title_prefix
12
+ title_separator
13
+ default_title
14
+
15
+ cms_home_page
16
+
17
+ catalog_default_sort_by
18
+ category_url_suffix
19
+ product_url_suffix
20
+ secure_base_link_url
21
+ secure_base_url
22
+
23
+ root_category_uid
24
+
25
+ weight_unit
26
+
27
+ product_reviews_enabled
28
+ allow_guests_to_write_product_reviews
29
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-store",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "4.1.3",
5
+ "version": "4.1.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,21 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.3",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.4",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.19.2"
18
+ "@playwright/test": "^1.20.1",
19
+ "type-fest": "2.12.1"
19
20
  },
20
21
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.4",
22
- "@graphcommerce/image": "^3.1.1",
23
- "@graphcommerce/next-ui": "^4.3.0",
24
- "type-fest": "^2.12.0"
22
+ "@graphcommerce/graphql": "3.0.7",
23
+ "@graphcommerce/image": "3.1.4",
24
+ "@graphcommerce/next-ui": "4.6.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@lingui/macro": "^3.13.2",
28
- "@mui/material": "^5.4.1",
29
- "next": "^12.0.10",
28
+ "@mui/material": "5.5.3",
29
+ "next": "12.1.2",
30
30
  "react": "^17.0.2",
31
31
  "react-dom": "^17.0.2"
32
32
  }
@@ -0,0 +1,24 @@
1
+ /* eslint-disable no-empty-pattern */
2
+ import { ApolloClient, NormalizedCacheObject, InMemoryCache } from '@graphcommerce/graphql'
3
+ import { test as base } from '@playwright/test'
4
+ import { localeToStore } from '../localeToStore'
5
+
6
+ type ApolloClientStoreTest = {
7
+ apolloClient: ApolloClient<NormalizedCacheObject>
8
+ }
9
+
10
+ const test = base.extend<ApolloClientStoreTest>({
11
+ apolloClient: async ({ locale }, use) => {
12
+ const store = localeToStore(locale)
13
+
14
+ const client = new ApolloClient({
15
+ uri: process.env.NEXT_PUBLIC_GRAPHQL_ENDPOINT,
16
+ credentials: 'same-origin',
17
+ cache: new InMemoryCache(),
18
+ headers: { Store: store },
19
+ })
20
+ await use(client)
21
+ },
22
+ })
23
+
24
+ export { test }