@docusaurus/plugin-ideal-image 0.0.0-5598 → 0.0.0-5599
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/theme/IdealImage/index.js +1 -1
- package/package.json +11 -11
- package/src/deps.d.ts +1 -1
- package/src/theme/IdealImage/index.tsx +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import ReactIdealImage from '@
|
|
8
|
+
import ReactIdealImage from '@slorber/react-ideal-image';
|
|
9
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
10
|
// Adopted from https://github.com/endiliey/react-ideal-image/blob/master/src/components/helpers.js#L59-L65
|
|
11
11
|
function bytesToSize(bytes) {
|
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-5599",
|
|
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",
|
|
@@ -20,26 +20,26 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "0.0.0-
|
|
24
|
-
"@docusaurus/lqip-loader": "0.0.0-
|
|
23
|
+
"@docusaurus/core": "0.0.0-5599",
|
|
24
|
+
"@docusaurus/lqip-loader": "0.0.0-5599",
|
|
25
25
|
"@docusaurus/responsive-loader": "^1.7.0",
|
|
26
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
27
|
-
"@docusaurus/types": "0.0.0-
|
|
28
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
29
|
-
"@
|
|
26
|
+
"@docusaurus/theme-translations": "0.0.0-5599",
|
|
27
|
+
"@docusaurus/types": "0.0.0-5599",
|
|
28
|
+
"@docusaurus/utils-validation": "0.0.0-5599",
|
|
29
|
+
"@slorber/react-ideal-image": "^0.0.12",
|
|
30
30
|
"react-waypoint": "^10.3.0",
|
|
31
31
|
"sharp": "^0.31.3",
|
|
32
32
|
"tslib": "^2.5.0",
|
|
33
33
|
"webpack": "^5.76.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
36
|
+
"@docusaurus/module-type-aliases": "0.0.0-5599",
|
|
37
37
|
"fs-extra": "^11.1.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"jimp": "*",
|
|
41
|
-
"react": "^
|
|
42
|
-
"react-dom": "^
|
|
41
|
+
"react": "^18.0.0",
|
|
42
|
+
"react-dom": "^18.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"jimp": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=16.14"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "b36e4bdd7cd8c3af5d64cc28009c3a73e28721f6"
|
|
53
53
|
}
|
package/src/deps.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Note: the original type definition is WRONG. getIcon & getMessage receive
|
|
13
13
|
* full state object.
|
|
14
14
|
*/
|
|
15
|
-
declare module '@
|
|
15
|
+
declare module '@slorber/react-ideal-image' {
|
|
16
16
|
import type {ComponentProps, ComponentType, CSSProperties} from 'react';
|
|
17
17
|
|
|
18
18
|
export type LoadingState = 'initial' | 'loading' | 'loaded' | 'error';
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import ReactIdealImage, {
|
|
10
10
|
type IconKey,
|
|
11
11
|
type State,
|
|
12
|
-
} from '@
|
|
12
|
+
} from '@slorber/react-ideal-image';
|
|
13
13
|
import {translate} from '@docusaurus/Translate';
|
|
14
14
|
|
|
15
15
|
import type {Props} from '@theme/IdealImage';
|