@docusaurus/plugin-ideal-image 4.0.0-canary-6880 → 4.0.0-canary-6882
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.d.ts +1 -1
- package/lib/theme/IdealImage/index.js +0 -1
- package/lib/theme/IdealImageLegacy/components/Icon/Download.d.ts +1 -2
- package/lib/theme/IdealImageLegacy/components/Icon/Download.js +0 -1
- package/lib/theme/IdealImageLegacy/components/Icon/Loading.d.ts +1 -2
- package/lib/theme/IdealImageLegacy/components/Icon/Loading.js +0 -1
- package/lib/theme/IdealImageLegacy/components/Icon/Offline.d.ts +1 -2
- package/lib/theme/IdealImageLegacy/components/Icon/Offline.js +0 -1
- package/lib/theme/IdealImageLegacy/components/Icon/Warning.d.ts +1 -2
- package/lib/theme/IdealImageLegacy/components/Icon/Warning.js +0 -1
- package/lib/theme/IdealImageLegacy/components/Icon/index.d.ts +1 -2
- package/lib/theme/IdealImageLegacy/components/Icon/index.js +0 -1
- package/lib/theme/IdealImageLegacy/components/IdealImage/index.d.ts +3 -3
- package/lib/theme/IdealImageLegacy/components/IdealImage/index.js +1 -1
- package/lib/theme/IdealImageLegacy/components/IdealImageWithDefaults/index.d.ts +2 -3
- package/lib/theme/IdealImageLegacy/components/IdealImageWithDefaults/index.js +0 -1
- package/lib/theme/IdealImageLegacy/components/MediaWithDefaults/index.d.ts +2 -3
- package/lib/theme/IdealImageLegacy/components/MediaWithDefaults/index.js +0 -1
- package/package.json +8 -8
- package/src/theme/IdealImage/index.tsx +1 -1
- package/src/theme/IdealImageLegacy/components/Icon/Download.js +0 -1
- package/src/theme/IdealImageLegacy/components/Icon/Loading.js +0 -1
- package/src/theme/IdealImageLegacy/components/Icon/Offline.js +0 -1
- package/src/theme/IdealImageLegacy/components/Icon/Warning.js +0 -1
- package/src/theme/IdealImageLegacy/components/Icon/index.js +0 -1
- package/src/theme/IdealImageLegacy/components/IdealImage/index.js +1 -1
- package/src/theme/IdealImageLegacy/components/IdealImageWithDefaults/index.js +0 -1
- package/src/theme/IdealImageLegacy/components/MediaWithDefaults/index.js +0 -1
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/IdealImage';
|
|
9
9
|
export default function IdealImage(props: Props): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import {translate} from '@docusaurus/Translate';
|
|
9
8
|
import ReactIdealImage from '@theme/IdealImageLegacy';
|
|
10
9
|
// Adopted from https://github.com/endiliey/react-ideal-image/blob/master/src/components/helpers.js#L59-L65
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
declare const defaultShouldAutoDownload: ({ connection, size, threshold, possiblySlowNetwork, }: {
|
|
3
3
|
connection: any;
|
|
4
4
|
possiblySlowNetwork: any;
|
|
5
5
|
size: any;
|
|
6
6
|
threshold: any;
|
|
7
7
|
}) => boolean;
|
|
8
|
-
declare const defaultGetMessage: (icon: any, state: any) => "404. Image not found" | "Click to load" | "Error. Click to reload" | "Loading..." | "Your browser is offline. Image not loaded" | (string |
|
|
8
|
+
declare const defaultGetMessage: (icon: any, state: any) => "404. Image not found" | "Click to load" | "Error. Click to reload" | "Loading..." | "Your browser is offline. Image not loaded" | (string | import("react").JSX.Element)[] | null;
|
|
9
9
|
declare const defaultGetIcon: (state: any) => string;
|
|
10
10
|
export default class IdealImage extends Component {
|
|
11
11
|
state: {
|
|
@@ -41,6 +41,6 @@ export default class IdealImage extends Component {
|
|
|
41
41
|
load: (userTriggered: any) => void;
|
|
42
42
|
onEnter: () => void;
|
|
43
43
|
onLeave: () => void;
|
|
44
|
-
render():
|
|
44
|
+
render(): import("react").JSX.Element;
|
|
45
45
|
}
|
|
46
46
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const IdealImageWithDefaults: ({ icons: iconsProp, theme: themeProp, ...props }: {
|
|
3
2
|
[x: string]: any;
|
|
4
3
|
icons?: {
|
|
5
|
-
[x: string]: ((props: any) =>
|
|
4
|
+
[x: string]: ((props: any) => import("react").JSX.Element) | null;
|
|
6
5
|
} | undefined;
|
|
7
6
|
theme?: {
|
|
8
7
|
placeholder: {
|
|
@@ -29,5 +28,5 @@ declare const IdealImageWithDefaults: ({ icons: iconsProp, theme: themeProp, ...
|
|
|
29
28
|
left: number;
|
|
30
29
|
};
|
|
31
30
|
} | undefined;
|
|
32
|
-
}) =>
|
|
31
|
+
}) => import("react").JSX.Element;
|
|
33
32
|
export default IdealImageWithDefaults;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
declare const MediaWithDefaults: ({ icons: iconsProp, theme: themeProp, ...props }: {
|
|
3
2
|
[x: string]: any;
|
|
4
3
|
icons?: {
|
|
5
|
-
[x: string]: ((props: any) =>
|
|
4
|
+
[x: string]: ((props: any) => import("react").JSX.Element) | null;
|
|
6
5
|
} | undefined;
|
|
7
6
|
theme?: {
|
|
8
7
|
placeholder: {
|
|
@@ -29,5 +28,5 @@ declare const MediaWithDefaults: ({ icons: iconsProp, theme: themeProp, ...props
|
|
|
29
28
|
left: number;
|
|
30
29
|
};
|
|
31
30
|
} | undefined;
|
|
32
|
-
}) =>
|
|
31
|
+
}) => import("react").JSX.Element;
|
|
33
32
|
export default MediaWithDefaults;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-ideal-image",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6882",
|
|
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,17 +20,17 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
24
|
-
"@docusaurus/lqip-loader": "4.0.0-canary-
|
|
23
|
+
"@docusaurus/core": "4.0.0-canary-6882",
|
|
24
|
+
"@docusaurus/lqip-loader": "4.0.0-canary-6882",
|
|
25
25
|
"@docusaurus/responsive-loader": "^1.7.1",
|
|
26
|
-
"@docusaurus/theme-translations": "4.0.0-canary-
|
|
27
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
28
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
26
|
+
"@docusaurus/theme-translations": "4.0.0-canary-6882",
|
|
27
|
+
"@docusaurus/types": "4.0.0-canary-6882",
|
|
28
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6882",
|
|
29
29
|
"sharp": "^0.35.1",
|
|
30
30
|
"tslib": "^2.8.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
33
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6882"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"jimp": "^1.6.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=24.21"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "0bed90b9358f5192abaefb30a37569d824d9236c"
|
|
49
49
|
}
|