@graphcommerce/magento-product-downloadable 10.0.0-canary.67 → 10.0.0-canary.72

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,19 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ### Major Changes
10
+
11
+ - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
12
+
13
+ ## 10.0.0-canary.69
14
+
15
+ ## 10.0.0-canary.68
16
+
3
17
  ## 10.0.0-canary.67
4
18
 
5
19
  ## 10.0.0-canary.66
@@ -1,4 +1,4 @@
1
- import type { ApolloClient, NormalizedCacheObject } from '@graphcommerce/graphql'
1
+ import type { ApolloClient } from '@graphcommerce/graphql'
2
2
  import {
3
3
  getCustomerAccountIsDisabled,
4
4
  useCustomerQuery,
@@ -40,7 +40,6 @@ export function DownloadsPage() {
40
40
  <Trans>Downloads</Trans>
41
41
  </LayoutTitle>
42
42
  </LayoutOverlayHeader>
43
-
44
43
  <Container maxWidth='md'>
45
44
  <WaitForCustomer waitFor={dashboard}>
46
45
  <PageMeta title={t`Downloads`} metaRobots={['noindex']} />
@@ -112,9 +111,7 @@ export function DownloadsPage() {
112
111
  )
113
112
  }
114
113
 
115
- export function createGetStaticProps(
116
- client: ApolloClient<NormalizedCacheObject>,
117
- ): DownloadsGetStaticProps {
114
+ export function createGetStaticProps(client: ApolloClient): DownloadsGetStaticProps {
118
115
  return async (context) => {
119
116
  if (getCustomerAccountIsDisabled(context.locale)) return { notFound: true }
120
117
 
@@ -1,6 +1,3 @@
1
- // managed by: graphcommerce
2
- // to modify this file, change it to managed by: local
3
-
4
1
  import type { PageOptions } from '@graphcommerce/framer-next-pages'
5
2
  import { cacheFirst } from '@graphcommerce/graphql'
6
3
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
@@ -47,7 +44,7 @@ export const getServerSideProps: GetServerSideProps<Props & LayoutNavigationProp
47
44
  const staticClient = graphqlSsrClient(context)
48
45
  const conf = await staticClient.query({ query: StoreConfigDocument })
49
46
 
50
- const baseUrl = conf.data.storeConfig?.secure_base_url
47
+ const baseUrl = conf.data?.storeConfig?.secure_base_url
51
48
  if (!baseUrl) return { notFound: true }
52
49
 
53
50
  const downloadUrl = new URL(baseUrl)
@@ -1,9 +1,3 @@
1
- // managed by: graphcommerce
2
- // to modify this file, change it to managed by: local
3
-
4
- // managed by: graphcommerce
5
- // to modify this file, change it to managed by: local
6
-
7
1
  import type { PageOptions } from '@graphcommerce/framer-next-pages'
8
2
  import { cacheFirst } from '@graphcommerce/graphql'
9
3
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
@@ -50,7 +44,7 @@ export const getServerSideProps: GetServerSideProps<Props & LayoutNavigationProp
50
44
  const staticClient = graphqlSsrClient(context)
51
45
  const conf = await staticClient.query({ query: StoreConfigDocument })
52
46
 
53
- const baseUrl = conf.data.storeConfig?.secure_base_url
47
+ const baseUrl = conf.data?.storeConfig?.secure_base_url
54
48
  if (!baseUrl) return { notFound: true }
55
49
 
56
50
  const downloadUrl = new URL(baseUrl)
@@ -1,9 +1,3 @@
1
- // managed by: graphcommerce
2
- // to modify this file, change it to managed by: local
3
-
4
- // managed by: graphcommerce
5
- // to modify this file, change it to managed by: local
6
-
7
1
  import type { PageOptions } from '@graphcommerce/framer-next-pages'
8
2
  import { cacheFirst } from '@graphcommerce/graphql'
9
3
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
@@ -50,7 +44,7 @@ export const getServerSideProps: GetServerSideProps<Props & LayoutNavigationProp
50
44
  const staticClient = graphqlSsrClient(context)
51
45
  const conf = await staticClient.query({ query: StoreConfigDocument })
52
46
 
53
- const baseUrl = conf.data.storeConfig?.secure_base_url
47
+ const baseUrl = conf.data?.storeConfig?.secure_base_url
54
48
  if (!baseUrl) return { notFound: true }
55
49
 
56
50
  const downloadUrl = new URL(baseUrl)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product-downloadable",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.67",
5
+ "version": "10.0.0-canary.72",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,21 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^10.0.0-canary.67",
16
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.67",
17
- "@graphcommerce/graphql": "^10.0.0-canary.67",
18
- "@graphcommerce/magento-cart": "^10.0.0-canary.67",
19
- "@graphcommerce/magento-cart-items": "^10.0.0-canary.67",
20
- "@graphcommerce/magento-customer": "^10.0.0-canary.67",
21
- "@graphcommerce/magento-product": "^10.0.0-canary.67",
22
- "@graphcommerce/magento-store": "^10.0.0-canary.67",
23
- "@graphcommerce/next-ui": "^10.0.0-canary.67",
24
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.67",
25
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.67",
15
+ "@graphcommerce/ecommerce-ui": "^10.0.0-canary.72",
16
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
17
+ "@graphcommerce/graphql": "^10.0.0-canary.72",
18
+ "@graphcommerce/magento-cart": "^10.0.0-canary.72",
19
+ "@graphcommerce/magento-cart-items": "^10.0.0-canary.72",
20
+ "@graphcommerce/magento-customer": "^10.0.0-canary.72",
21
+ "@graphcommerce/magento-product": "^10.0.0-canary.72",
22
+ "@graphcommerce/magento-store": "^10.0.0-canary.72",
23
+ "@graphcommerce/next-ui": "^10.0.0-canary.72",
24
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
25
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
26
26
  "@lingui/core": "^5",
27
27
  "@lingui/macro": "^5",
28
28
  "@lingui/react": "^5",
29
- "@mui/material": "^5.10.16",
29
+ "@mui/material": "^7.0.0",
30
30
  "next": "*",
31
31
  "react": "^19.2.0",
32
32
  "react-dom": "^19.2.0"