@graphcommerce/graphql 9.0.0-canary.79 → 9.0.0-canary.80
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,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.80
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`7a2f715`](https://github.com/graphcommerce-org/graphcommerce/commit/7a2f7153fa9157be17575abb6d77821a2ec99f30) - Make sure the InContextMask only warns when a block is renderer during the initial ssr render. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
8
|
+
|
|
3
9
|
## 9.0.0-canary.79
|
|
4
10
|
|
|
5
11
|
## 9.0.0-canary.78
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
2
|
+
import { cssFlag, cssNotFlag, useIsSSR } from '@graphcommerce/next-ui'
|
|
2
3
|
import { Box, Skeleton, SkeletonOwnProps, SkeletonProps, SxProps, Theme } from '@mui/material'
|
|
3
4
|
import type { OverrideProps } from '@mui/material/OverridableComponent'
|
|
4
5
|
import React, { createContext, useContext, useMemo } from 'react'
|
|
@@ -26,10 +27,16 @@ const InContextMaskContext = createContext<InContextMaskContextType | null>(null
|
|
|
26
27
|
|
|
27
28
|
export function useInContextInputMask() {
|
|
28
29
|
const context = useContext(InContextMaskContext)
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
32
|
+
const isSSR = process.env.NODE_ENV === 'development' ? useIsSSR() : false
|
|
33
|
+
|
|
29
34
|
if (!context) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
if (isSSR)
|
|
36
|
+
console.warn(
|
|
37
|
+
"useInContextInputMask was used without a InContextMaskProvider, this means that customer specific pricing probably isn't working.",
|
|
38
|
+
)
|
|
39
|
+
|
|
33
40
|
return { mask: false }
|
|
34
41
|
}
|
|
35
42
|
return context
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/graphql",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.80",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@graphcommerce/graphql-codegen-near-operation-file": "9.0.0-canary.
|
|
17
|
-
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "9.0.0-canary.
|
|
16
|
+
"@graphcommerce/graphql-codegen-near-operation-file": "9.0.0-canary.80",
|
|
17
|
+
"@graphcommerce/graphql-codegen-relay-optimizer-plugin": "9.0.0-canary.80",
|
|
18
18
|
"@graphql-codegen/add": "5.0.3",
|
|
19
19
|
"@graphql-codegen/fragment-matcher": "5.0.2",
|
|
20
20
|
"@graphql-codegen/introspection": "4.0.3",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@apollo/client": "^3",
|
|
31
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
32
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
31
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.80",
|
|
32
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.80",
|
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.80",
|
|
34
34
|
"graphql": "^16.7.1",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
36
|
"react-dom": "^18.2.0"
|