@graphcommerce/ecommerce-ui 11.0.0-canary.72 → 11.0.0-canary.73

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,7 @@
1
1
  # @graphcommerce/ecommerce-ui
2
2
 
3
+ ## 11.0.0-canary.73
4
+
3
5
  ## 11.0.0-canary.72
4
6
 
5
7
  ## 11.0.0-canary.71
@@ -3,7 +3,8 @@ import { ActionCardList } from '@graphcommerce/next-ui'
3
3
  import type { ControllerProps, FieldValues } from '@graphcommerce/react-hook-form'
4
4
  import { useController } from '@graphcommerce/react-hook-form'
5
5
  import type { MouseEventHandler } from 'react'
6
- import React, { useCallback } from 'react'
6
+ import type React from 'react'
7
+ import { useCallback } from 'react'
7
8
 
8
9
  export type ActionCardItemBase = Pick<ActionCardProps, 'value'>
9
10
 
@@ -54,7 +55,7 @@ export function ActionCardListForm<
54
55
  )
55
56
 
56
57
  const {
57
- field: { onChange, value, ref, onBlur },
58
+ field: { onChange, value, ref },
58
59
  fieldState,
59
60
  formState,
60
61
  } = useController({
@@ -3,7 +3,7 @@ import { useController } from '@graphcommerce/react-hook-form'
3
3
  import { t } from '@lingui/core/macro'
4
4
  import type { FormControlProps, SliderProps } from '@mui/material'
5
5
  import { FormControl, FormHelperText, FormLabel, Slider } from '@mui/material'
6
- import React from 'react'
6
+ import type React from 'react'
7
7
  import type { FieldElementProps } from './types'
8
8
 
9
9
  type AdditionalProps = {
@@ -2,7 +2,7 @@ import type { FieldValues } from '@graphcommerce/react-hook-form'
2
2
  import { useController } from '@graphcommerce/react-hook-form'
3
3
  import type { FormControlLabelProps, SwitchProps } from '@mui/material'
4
4
  import { FormControlLabel, Switch } from '@mui/material'
5
- import React from 'react'
5
+ import type React from 'react'
6
6
  import type { FieldElementProps } from './types'
7
7
 
8
8
  type AdditionalProps = Omit<FormControlLabelProps, 'control'>
@@ -5,7 +5,8 @@ import { emailPattern, useController } from '@graphcommerce/react-hook-form'
5
5
  import { t } from '@lingui/core/macro'
6
6
  import type { TextFieldProps } from '@mui/material'
7
7
  import { TextField, useForkRef } from '@mui/material'
8
- import React, { useState } from 'react'
8
+ import type React from 'react'
9
+ import { useState } from 'react'
9
10
  import type { BaseControllerProps, FieldElementProps } from './types'
10
11
 
11
12
  type InternalProps = {
@@ -2,13 +2,6 @@ import { useRouter } from 'next/router'
2
2
  import { PreviewModeDisabled } from './PreviewModeDisabled'
3
3
  import { PreviewModeEnabled } from './PreviewModeEnabled'
4
4
 
5
- function getPreviewUrl() {
6
- const url = new URL(window.location.href)
7
- url.pathname = '/api/preview'
8
- ;[...url.searchParams.entries()].forEach(([key]) => url.searchParams.delete(key))
9
- return url
10
- }
11
-
12
5
  export function PreviewMode() {
13
6
  const router = useRouter()
14
7
 
@@ -1,6 +1,6 @@
1
- import type { ApolloClient, useQuery } from '@graphcommerce/graphql'
1
+ import type { useQuery } from '@graphcommerce/graphql'
2
2
  import { useIsSSR } from '@graphcommerce/next-ui'
3
- import React from 'react'
3
+ import type React from 'react'
4
4
 
5
5
  export type WaitForQueriesProps = {
6
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/ecommerce-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "11.0.0-canary.72",
5
+ "version": "11.0.0-canary.73",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,12 +12,12 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.72",
16
- "@graphcommerce/graphql": "^11.0.0-canary.72",
17
- "@graphcommerce/next-ui": "^11.0.0-canary.72",
18
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.72",
19
- "@graphcommerce/react-hook-form": "^11.0.0-canary.72",
20
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.72",
15
+ "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.73",
16
+ "@graphcommerce/graphql": "^11.0.0-canary.73",
17
+ "@graphcommerce/next-ui": "^11.0.0-canary.73",
18
+ "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.73",
19
+ "@graphcommerce/react-hook-form": "^11.0.0-canary.73",
20
+ "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.73",
21
21
  "@lingui/core": "^6",
22
22
  "@lingui/react": "^6",
23
23
  "@mui/material": "^7.0.0",