mui-image-alter 3.0.1 → 3.1.0

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/README.md CHANGED
@@ -79,7 +79,7 @@ To put it simply, you only needed this if:
79
79
 
80
80
  Install the `mui-image-alter` peer dependencies first. (Can skip if you already done it.)
81
81
 
82
- If you haven't yet install MUI, please follow the [official guide](https://mui.com/material-ui/getting-started/installation/).
82
+ If you haven't yet install MUI, please follow the [official guide](https://mui.com/material-ui/getting-started/installation/). Only MUI v5 or v6 are supported.
83
83
 
84
84
  Now, you can install the `mui-image-alter`.
85
85
 
@@ -121,7 +121,7 @@ import { Image } from 'mui-image-alter';
121
121
 
122
122
  ### 3. Profit 💰
123
123
 
124
- _Note: Profits not guaranteed and Material UI v5 is a peer dependency. If you need to support legacy versions of Material UI, use [`material-ui-image`](https://github.com/TeamWertarbyte/material-ui-image) instead. See the [comparison chart](#comparison-with-similar-components) below for more._
124
+ _Note: Profits not guaranteed and Material UI v5 or v6 is a peer dependency. If you need to support legacy versions of Material UI, use [`material-ui-image`](https://github.com/TeamWertarbyte/material-ui-image) instead. See the [comparison chart](#comparison-with-similar-components) below for more._
125
125
 
126
126
  ## Usage Examples
127
127
 
@@ -313,7 +313,7 @@ All the description on this table are generated using ChatGPT and edited by me.
313
313
  | Feature | `mui-image` | `mui-image-alter` | `material-ui-image` |
314
314
  | ----------------------------- | :------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------: |
315
315
  | Size (minzipped) | ![npm bundle size](https://img.shields.io/bundlephobia/minzip/mui-image?color=%2343a047&label=%20&style=flat-square) | ![npm bundle size](https://img.shields.io/bundlephobia/minzip/mui-image-alter?color=%23b71c1c&label=%20&style=flat-square) | ![npm bundle size](https://img.shields.io/bundlephobia/minzip/material-ui-image?color=%23b71c1c&label=%20&style=flat-square) |
316
- | Supports MUI v5 | ✅ | ✅ | ❌ |
316
+ | Supports MUI v5/v6 | ✅ | ✅ | ❌ |
317
317
  | Supports MUI component prop | ❌ | ✅ | ❌ |
318
318
  | Built-in Typescript types | ❌ | ✅ | ❌ |
319
319
  | Fade-in | ✅ | ✅ | ✅ |
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { OverridableComponent } from '@mui/types';
2
- import { OverridableTypeMap } from '@mui/types';
3
- import { OverrideProps } from '@mui/types';
1
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
2
+ import { OverridableTypeMap } from '@mui/material/OverridableComponent';
3
+ import { OverrideProps } from '@mui/material/OverridableComponent';
4
4
  import { SxProps } from '@mui/material/styles';
5
5
  import { Theme } from '@mui/material/styles';
6
6
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { OverridableComponent } from '@mui/types';
2
- import { OverridableTypeMap } from '@mui/types';
3
- import { OverrideProps } from '@mui/types';
1
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
2
+ import { OverridableTypeMap } from '@mui/material/OverridableComponent';
3
+ import { OverrideProps } from '@mui/material/OverridableComponent';
4
4
  import { SxProps } from '@mui/material/styles';
5
5
  import { Theme } from '@mui/material/styles';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mui-image-alter",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Fork of mui-image. Display images as per the Material guidelines using Material-UI v5. With component prop support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -41,31 +41,30 @@
41
41
  "use-resize-observer": "^9.1.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@mui/material": "^5.0.1",
45
- "react": "^17.0.2 || ^18.0.0",
46
- "react-dom": "^17.0.2 || ^18.0.0"
44
+ "@mui/material": "^5.0.0 || ^6.0.0",
45
+ "react": "^17.0.0 || ^18.0.0",
46
+ "react-dom": "^17.0.0 || ^18.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@emotion/react": "^11.13.0",
49
+ "@emotion/react": "^11.13.3",
50
50
  "@emotion/styled": "^11.13.0",
51
- "@fontsource/fira-code": "^5.0.18",
52
- "@mui/types": "^7.2.15",
51
+ "@fontsource/fira-code": "^5.0.19",
53
52
  "@size-limit/preset-small-lib": "^11.1.4",
54
- "@testing-library/jest-dom": "^6.4.8",
55
- "@testing-library/react": "^16.0.0",
56
- "@types/react": "^18.3.3",
53
+ "@testing-library/jest-dom": "^6.5.0",
54
+ "@testing-library/react": "^16.0.1",
55
+ "@types/react": "^18.3.5",
57
56
  "@types/react-dom": "^18.3.0",
58
57
  "@vitejs/plugin-react": "^4.3.1",
59
- "@vitest/coverage-v8": "^2.0.4",
60
- "jsdom": "^24.1.1",
58
+ "@vitest/coverage-v8": "^2.0.5",
59
+ "jsdom": "^25.0.0",
61
60
  "prettier": "^3.3.3",
62
61
  "rimraf": "^6.0.1",
63
62
  "size-limit": "^11.1.4",
64
63
  "typeit-react": "^2.7.2",
65
64
  "typescript": "^5.5.4",
66
- "vite": "^5.3.5",
67
- "vite-plugin-dts": "^3.9.1",
68
- "vitest": "^2.0.4"
65
+ "vite": "^5.4.2",
66
+ "vite-plugin-dts": "^4.1.0",
67
+ "vitest": "^2.0.5"
69
68
  },
70
69
  "size-limit": [
71
70
  {