@graphcommerce/magento-compare 9.1.0-canary.39 → 9.1.0-canary.40

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
  # @graphcommerce/magento-compare
2
2
 
3
+ ## 9.1.0-canary.40
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2529](https://github.com/graphcommerce-org/graphcommerce/pull/2529) [`b331f4d`](https://github.com/graphcommerce-org/graphcommerce/commit/b331f4d060c1385569fbbe1592ac245832de55bc) - Remove all usages of the NoSsr component as the GraphQL layer already handles this. ([@paales](https://github.com/paales))
8
+
3
9
  ## 9.1.0-canary.39
4
10
 
5
11
  ## 9.1.0-canary.38
@@ -7,8 +7,8 @@ import {
7
7
  } from '@graphcommerce/next-ui'
8
8
  import { i18n } from '@lingui/core'
9
9
  import { Trans } from '@lingui/react'
10
+ import { Badge, Box, Button, styled } from '@mui/material'
10
11
  import type { ButtonProps, SxProps, Theme } from '@mui/material'
11
- import { Badge, Box, Button, NoSsr, styled } from '@mui/material'
12
12
  import { m, useTransform } from 'framer-motion'
13
13
  import React from 'react'
14
14
  import { useCompareSummary } from '../hooks'
@@ -93,9 +93,5 @@ export function CompareFab(props: CompareFabProps) {
93
93
  const compareList = useCompareSummary()
94
94
  const totalQuantity = compareList.data?.compareList?.item_count ?? 0
95
95
 
96
- return (
97
- <NoSsr fallback={<CompareFabContent total_quantity={0} {...props} />}>
98
- {totalQuantity > 0 && <CompareFabContent total_quantity={totalQuantity} {...props} />}
99
- </NoSsr>
100
- )
96
+ return totalQuantity > 0 && <CompareFabContent total_quantity={totalQuantity} {...props} />
101
97
  }
@@ -3,9 +3,8 @@ import type { FabProps } from '@graphcommerce/next-ui'
3
3
  import { Button, Fab, iconCompare } from '@graphcommerce/next-ui'
4
4
  import { i18n } from '@lingui/core'
5
5
  import { Trans } from '@lingui/react'
6
- // eslint-disable-next-line @typescript-eslint/no-restricted-imports
7
6
  import type { SxProps, Theme } from '@mui/material'
8
- import { alpha, Checkbox, NoSsr, useTheme } from '@mui/material'
7
+ import { alpha, Checkbox, useTheme } from '@mui/material'
9
8
  import { useState } from 'react'
10
9
  import type { CompareProductIdInternalFragment } from '../graphql'
11
10
  import { AddProductsToCompareListDocument } from '../graphql/AddProductsToCompareList.gql'
@@ -152,9 +151,5 @@ export function CompareProductToggle(props: CompareProductToggleProps) {
152
151
  const inCompareList =
153
152
  compareList.data?.compareList?.items?.some((i) => i?.uid === idString) ?? false
154
153
 
155
- return (
156
- <NoSsr fallback={<CompareProductToggleBase {...props} inCompareList={false} id={idString} />}>
157
- <CompareProductToggleBase {...props} inCompareList={inCompareList} id={idString} />
158
- </NoSsr>
159
- )
154
+ return <CompareProductToggleBase {...props} inCompareList={inCompareList} id={idString} />
160
155
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-compare",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.1.0-canary.39",
5
+ "version": "9.1.0-canary.40",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.39",
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.39",
17
- "@graphcommerce/framer-next-pages": "^9.1.0-canary.39",
18
- "@graphcommerce/framer-utils": "^9.1.0-canary.39",
19
- "@graphcommerce/graphql": "^9.1.0-canary.39",
20
- "@graphcommerce/magento-cart": "^9.1.0-canary.39",
21
- "@graphcommerce/magento-product": "^9.1.0-canary.39",
22
- "@graphcommerce/next-ui": "^9.1.0-canary.39",
23
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.39",
24
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.39",
15
+ "@graphcommerce/ecommerce-ui": "^9.1.0-canary.40",
16
+ "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.40",
17
+ "@graphcommerce/framer-next-pages": "^9.1.0-canary.40",
18
+ "@graphcommerce/framer-utils": "^9.1.0-canary.40",
19
+ "@graphcommerce/graphql": "^9.1.0-canary.40",
20
+ "@graphcommerce/magento-cart": "^9.1.0-canary.40",
21
+ "@graphcommerce/magento-product": "^9.1.0-canary.40",
22
+ "@graphcommerce/next-ui": "^9.1.0-canary.40",
23
+ "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.40",
24
+ "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.40",
25
25
  "@lingui/core": "^4.2.1",
26
26
  "@lingui/macro": "^4.2.1",
27
27
  "@lingui/react": "^4.2.1",