@docusaurus/plugin-ideal-image 3.10.1-canary-6655 → 3.10.2
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/lib/index.js +1 -1
- package/package.json +17 -17
- package/src/index.ts +1 -1
- package/src/plugin-ideal-image.d.ts +2 -4
package/lib/index.js
CHANGED
|
@@ -52,7 +52,7 @@ function pluginIdealImage(context, options) {
|
|
|
52
52
|
options: {
|
|
53
53
|
// Don't emit for server-side rendering
|
|
54
54
|
emitFile: !isServer,
|
|
55
|
-
// eslint-disable-next-line
|
|
55
|
+
// eslint-disable-next-line global-require
|
|
56
56
|
adapter: require('@docusaurus/responsive-loader/sharp'),
|
|
57
57
|
name: 'assets/ideal-img/[name].[hash:hex:7].[width].[ext]',
|
|
58
58
|
...loaderOptions,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-ideal-image",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Docusaurus Plugin to generate an almost ideal image (responsive, lazy-loading, and low quality placeholder).",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-ideal-image.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js &&
|
|
8
|
+
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"",
|
|
9
9
|
"watch": "run-p -c copy:watch build:watch",
|
|
10
10
|
"build:watch": "tsc --build --watch",
|
|
11
11
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "3.10.
|
|
24
|
-
"@docusaurus/lqip-loader": "3.10.
|
|
25
|
-
"@docusaurus/responsive-loader": "^1.7.
|
|
26
|
-
"@docusaurus/theme-translations": "3.10.
|
|
27
|
-
"@docusaurus/types": "3.10.
|
|
28
|
-
"@docusaurus/utils-validation": "3.10.
|
|
29
|
-
"sharp": "^0.
|
|
23
|
+
"@docusaurus/core": "3.10.2",
|
|
24
|
+
"@docusaurus/lqip-loader": "3.10.2",
|
|
25
|
+
"@docusaurus/responsive-loader": "^1.7.0",
|
|
26
|
+
"@docusaurus/theme-translations": "3.10.2",
|
|
27
|
+
"@docusaurus/types": "3.10.2",
|
|
28
|
+
"@docusaurus/utils-validation": "3.10.2",
|
|
29
|
+
"sharp": "^0.32.3",
|
|
30
30
|
"tslib": "^2.6.0",
|
|
31
|
-
"webpack": "^5.
|
|
31
|
+
"webpack": "^5.88.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@docusaurus/module-type-aliases": "3.10.
|
|
35
|
-
"fs-extra": "^11.
|
|
34
|
+
"@docusaurus/module-type-aliases": "3.10.2",
|
|
35
|
+
"fs-extra": "^11.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"jimp": "
|
|
39
|
-
"react": "^19.
|
|
40
|
-
"react-dom": "^19.
|
|
38
|
+
"jimp": "*",
|
|
39
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
40
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"jimp": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
|
-
"node": ">=
|
|
48
|
+
"node": ">=20.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f37f9035584917a97a260b91fc2842cba4f8b94f"
|
|
51
51
|
}
|
package/src/index.ts
CHANGED
|
@@ -67,7 +67,7 @@ export default function pluginIdealImage(
|
|
|
67
67
|
options: {
|
|
68
68
|
// Don't emit for server-side rendering
|
|
69
69
|
emitFile: !isServer,
|
|
70
|
-
// eslint-disable-next-line
|
|
70
|
+
// eslint-disable-next-line global-require
|
|
71
71
|
adapter: require('@docusaurus/responsive-loader/sharp'),
|
|
72
72
|
name: 'assets/ideal-img/[name].[hash:hex:7].[width].[ext]',
|
|
73
73
|
...loaderOptions,
|
|
@@ -118,10 +118,8 @@ declare module '@theme/IdealImageLegacy' {
|
|
|
118
118
|
|
|
119
119
|
type ThemeKey = 'placeholder' | 'img' | 'icon' | 'noscript';
|
|
120
120
|
|
|
121
|
-
export interface ImageProps
|
|
122
|
-
ComponentProps<'img'>,
|
|
123
|
-
'srcSet' | 'placeholder'
|
|
124
|
-
> {
|
|
121
|
+
export interface ImageProps
|
|
122
|
+
extends Omit<ComponentProps<'img'>, 'srcSet' | 'placeholder'> {
|
|
125
123
|
/**
|
|
126
124
|
* This function decides what icon to show based on the current state of the
|
|
127
125
|
* component.
|