@graphcommerce/image 3.1.1 → 3.1.4

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,26 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1387](https://github.com/graphcommerce-org/graphcommerce/pull/1387) [`0e425e85e`](https://github.com/graphcommerce-org/graphcommerce/commit/0e425e85ee8fed280349317ee0440c7bceea5823) Thanks [@NickdeK](https://github.com/NickdeK)! - Export Sizes type to be used for passing Sizes prop
8
+
9
+ ## 3.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
14
+
15
+ ## 3.1.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
20
+
21
+ - Updated dependencies [[`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9)]:
22
+ - @graphcommerce/framer-utils@3.1.1
23
+
3
24
  ## 3.1.1
4
25
 
5
26
  ### Patch Changes
@@ -5,11 +5,11 @@
5
5
  /* eslint-disable jsx-a11y/alt-text */
6
6
  import { useForkRef, styled, SxProps, Theme } from '@mui/material'
7
7
  import {
8
- ImageConfigComplete,
9
8
  LoaderValue,
10
9
  VALID_LOADERS,
10
+ ImageConfigComplete,
11
11
  imageConfigDefault,
12
- } from 'next/dist/server/image-config'
12
+ } from 'next/dist/shared/lib/image-config'
13
13
  import { ImageConfigContext } from 'next/dist/shared/lib/image-config-context'
14
14
  import Head from 'next/head'
15
15
  import type { ImageLoaderProps, ImageLoader } from 'next/image'
@@ -176,7 +176,7 @@ type SizesString =
176
176
  | `max(${string})`
177
177
  | `clamp(${string})`
178
178
  type SizesRecord = Record<number, SizesString>
179
- type Sizes = SizesString | SizesRecord | undefined
179
+ export type Sizes = SizesString | SizesRecord | undefined
180
180
 
181
181
  function isSizesRecord(sizes?: Sizes): sizes is SizesRecord {
182
182
  return typeof sizes === 'object'
package/config/config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ImageConfigComplete, imageConfigDefault } from 'next/dist/server/image-config'
1
+ import { ImageConfigComplete, imageConfigDefault } from 'next/dist/shared/lib/image-config'
2
2
  // eslint-disable-next-line @typescript-eslint/no-restricted-imports
3
3
  import { ImageLoaderProps } from 'next/image'
4
4
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/image",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.1.1",
5
+ "version": "3.1.4",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "dev": "tsc -W"
@@ -15,19 +15,19 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@graphcommerce/framer-utils": "^3.0.4"
18
+ "@graphcommerce/framer-utils": "3.1.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@graphcommerce/eslint-config-pwa": "^4.0.5",
22
- "@graphcommerce/prettier-config-pwa": "^4.0.3",
21
+ "@graphcommerce/eslint-config-pwa": "^4.1.4",
22
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
23
23
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
24
- "@playwright/test": "^1.19.2"
24
+ "@playwright/test": "^1.20.1",
25
+ "type-fest": "2.12.1"
25
26
  },
26
27
  "peerDependencies": {
27
- "@mui/material": "^5.5.0",
28
- "next": "^12.1.0",
28
+ "@mui/material": "5.5.3",
29
+ "next": "12.1.2",
29
30
  "react": "^17.0.2",
30
- "react-dom": "^17.0.2",
31
- "type-fest": "^2.12.0"
31
+ "react-dom": "^17.0.2"
32
32
  }
33
33
  }