@graphcommerce/magento-product-downloadable 10.0.0-canary.68 → 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 +12 -0
- package/components/DownloadsPage/DownloadsPage.tsx +2 -4
- package/copy/pages/downloadable/download/link/id/[id].tsx +1 -4
- package/copy/pages/downloadable/download/linkSample/link_id/[id].tsx +1 -7
- package/copy/pages/downloadable/download/sample/sample_id/[id].tsx +1 -7
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
3
15
|
## 10.0.0-canary.68
|
|
4
16
|
|
|
5
17
|
## 10.0.0-canary.67
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApolloClient
|
|
1
|
+
import type { ApolloClient } from '@graphcommerce/graphql'
|
|
2
2
|
import {
|
|
3
3
|
getCustomerAccountIsDisabled,
|
|
4
4
|
useCustomerQuery,
|
|
@@ -111,9 +111,7 @@ export function DownloadsPage() {
|
|
|
111
111
|
)
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
export function createGetStaticProps(
|
|
115
|
-
client: ApolloClient<NormalizedCacheObject>,
|
|
116
|
-
): DownloadsGetStaticProps {
|
|
114
|
+
export function createGetStaticProps(client: ApolloClient): DownloadsGetStaticProps {
|
|
117
115
|
return async (context) => {
|
|
118
116
|
if (getCustomerAccountIsDisabled(context.locale)) return { notFound: true }
|
|
119
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
|
|
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
|
|
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
|
|
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.
|
|
5
|
+
"version": "10.0.0-canary.72",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^10.0.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.0-canary.
|
|
17
|
-
"@graphcommerce/graphql": "^10.0.0-canary.
|
|
18
|
-
"@graphcommerce/magento-cart": "^10.0.0-canary.
|
|
19
|
-
"@graphcommerce/magento-cart-items": "^10.0.0-canary.
|
|
20
|
-
"@graphcommerce/magento-customer": "^10.0.0-canary.
|
|
21
|
-
"@graphcommerce/magento-product": "^10.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-store": "^10.0.0-canary.
|
|
23
|
-
"@graphcommerce/next-ui": "^10.0.0-canary.
|
|
24
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.0-canary.
|
|
25
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.0-canary.
|
|
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",
|