@docusaurus/plugin-ideal-image 0.0.0-4624 → 0.0.0-4627
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.
|
@@ -71,7 +71,7 @@ const getMessage = (icon, state) => {
|
|
|
71
71
|
throw new Error(`Wrong icon: ${icon}`);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
function IdealImage(props) {
|
|
74
|
+
export default function IdealImage(props) {
|
|
75
75
|
const {alt, className, img} = props;
|
|
76
76
|
// In dev env just use regular img with original file
|
|
77
77
|
if (typeof img === 'string' || 'default' in img) {
|
|
@@ -101,4 +101,3 @@ function IdealImage(props) {
|
|
|
101
101
|
/>
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
|
-
export default IdealImage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-ideal-image",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4627",
|
|
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",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/lqip-loader": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4627",
|
|
25
|
+
"@docusaurus/lqip-loader": "0.0.0-4627",
|
|
26
26
|
"@docusaurus/responsive-loader": "^1.7.0",
|
|
27
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
28
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
27
|
+
"@docusaurus/theme-translations": "0.0.0-4627",
|
|
28
|
+
"@docusaurus/utils-validation": "0.0.0-4627",
|
|
29
29
|
"@endiliey/react-ideal-image": "^0.0.11",
|
|
30
30
|
"react-waypoint": "^10.1.0",
|
|
31
31
|
"sharp": "^0.30.1",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"webpack": "^5.69.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
37
|
-
"@docusaurus/types": "0.0.0-
|
|
36
|
+
"@docusaurus/module-type-aliases": "0.0.0-4627",
|
|
37
|
+
"@docusaurus/types": "0.0.0-4627",
|
|
38
38
|
"fs-extra": "^10.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=14"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "89fcd5ec57a0c156894bc5f93750b4fb295e97d2"
|
|
54
54
|
}
|
package/src/deps.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ const getMessage = (icon: IconKey, state: State) => {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
function IdealImage(props: Props): JSX.Element {
|
|
83
|
+
export default function IdealImage(props: Props): JSX.Element {
|
|
84
84
|
const {alt, className, img} = props;
|
|
85
85
|
|
|
86
86
|
// In dev env just use regular img with original file
|
|
@@ -112,5 +112,3 @@ function IdealImage(props: Props): JSX.Element {
|
|
|
112
112
|
/>
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
export default IdealImage;
|