@docusaurus/plugin-ideal-image 3.4.0 → 3.5.1
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.d.ts +0 -1
- package/lib/index.js +2 -3
- package/lib/theme/IdealImage/index.d.ts +0 -2
- package/package.json +8 -8
package/lib/index.d.ts
CHANGED
|
@@ -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
|
-
/// <reference path="../src/plugin-ideal-image.d.ts" />
|
|
8
7
|
import type { LoadContext, Plugin, OptionValidationContext } from '@docusaurus/types';
|
|
9
8
|
import type { PluginOptions } from '@docusaurus/plugin-ideal-image';
|
|
10
9
|
export default function pluginIdealImage(context: LoadContext, options: PluginOptions): Plugin<void>;
|
package/lib/index.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.default = pluginIdealImage;
|
|
10
|
+
exports.validateOptions = validateOptions;
|
|
10
11
|
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
11
12
|
const theme_translations_1 = require("@docusaurus/theme-translations");
|
|
12
13
|
function pluginIdealImage(context, options) {
|
|
@@ -59,11 +60,9 @@ function pluginIdealImage(context, options) {
|
|
|
59
60
|
},
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
|
-
exports.default = pluginIdealImage;
|
|
63
63
|
function validateOptions({ validate, options, }) {
|
|
64
64
|
const pluginOptionsSchema = utils_validation_1.Joi.object({
|
|
65
65
|
disableInDev: utils_validation_1.Joi.boolean().default(true),
|
|
66
66
|
}).unknown();
|
|
67
67
|
return validate(pluginOptionsSchema, options);
|
|
68
68
|
}
|
|
69
|
-
exports.validateOptions = validateOptions;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/plugin-ideal-image.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/IdealImage';
|
|
10
8
|
export default function IdealImage(props: Props): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-ideal-image",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
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,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "3.
|
|
24
|
-
"@docusaurus/lqip-loader": "3.
|
|
23
|
+
"@docusaurus/core": "3.5.1",
|
|
24
|
+
"@docusaurus/lqip-loader": "3.5.1",
|
|
25
25
|
"@docusaurus/responsive-loader": "^1.7.0",
|
|
26
|
-
"@docusaurus/theme-translations": "3.
|
|
27
|
-
"@docusaurus/types": "3.
|
|
28
|
-
"@docusaurus/utils-validation": "3.
|
|
26
|
+
"@docusaurus/theme-translations": "3.5.1",
|
|
27
|
+
"@docusaurus/types": "3.5.1",
|
|
28
|
+
"@docusaurus/utils-validation": "3.5.1",
|
|
29
29
|
"@slorber/react-ideal-image": "^0.0.12",
|
|
30
30
|
"react-waypoint": "^10.3.0",
|
|
31
31
|
"sharp": "^0.32.3",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"webpack": "^5.88.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@docusaurus/module-type-aliases": "3.
|
|
36
|
+
"@docusaurus/module-type-aliases": "3.5.1",
|
|
37
37
|
"fs-extra": "^11.1.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">=18.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "5acbc57bd62f3f808ef72007cd67d4c410d13829"
|
|
53
53
|
}
|