@docusaurus/plugin-ideal-image 0.0.0-4752 → 0.0.0-4755

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 CHANGED
@@ -4,7 +4,7 @@
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 type { LoadContext, Plugin, OptionValidationContext, ValidationResult } from '@docusaurus/types';
7
+ import type { LoadContext, Plugin, OptionValidationContext } from '@docusaurus/types';
8
8
  import type { PluginOptions } from '@docusaurus/plugin-ideal-image';
9
9
  export default function pluginIdealImage(context: LoadContext, options: PluginOptions): Plugin<void>;
10
- export declare function validateOptions({ validate, options, }: OptionValidationContext<PluginOptions>): ValidationResult<PluginOptions>;
10
+ export declare function validateOptions({ validate, options, }: OptionValidationContext<PluginOptions, PluginOptions>): PluginOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-ideal-image",
3
- "version": "0.0.0-4752",
3
+ "version": "0.0.0-4755",
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-4752",
25
- "@docusaurus/lqip-loader": "0.0.0-4752",
24
+ "@docusaurus/core": "0.0.0-4755",
25
+ "@docusaurus/lqip-loader": "0.0.0-4755",
26
26
  "@docusaurus/responsive-loader": "^1.7.0",
27
- "@docusaurus/theme-translations": "0.0.0-4752",
28
- "@docusaurus/utils-validation": "0.0.0-4752",
27
+ "@docusaurus/theme-translations": "0.0.0-4755",
28
+ "@docusaurus/utils-validation": "0.0.0-4755",
29
29
  "@endiliey/react-ideal-image": "^0.0.11",
30
30
  "react-waypoint": "^10.1.0",
31
31
  "sharp": "^0.30.3",
@@ -33,8 +33,8 @@
33
33
  "webpack": "^5.70.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@docusaurus/module-type-aliases": "0.0.0-4752",
37
- "@docusaurus/types": "0.0.0-4752",
36
+ "@docusaurus/module-type-aliases": "0.0.0-4755",
37
+ "@docusaurus/types": "0.0.0-4755",
38
38
  "fs-extra": "^10.0.1"
39
39
  },
40
40
  "peerDependencies": {
@@ -50,5 +50,5 @@
50
50
  "engines": {
51
51
  "node": ">=14"
52
52
  },
53
- "gitHead": "72cc43f34a82fb5f5bfc89c8b3eada5119dc773b"
53
+ "gitHead": "238d7ef1d3e0a56ba5e4ec9f81992a948f4c4945"
54
54
  }
package/src/index.ts CHANGED
@@ -9,7 +9,6 @@ import type {
9
9
  LoadContext,
10
10
  Plugin,
11
11
  OptionValidationContext,
12
- ValidationResult,
13
12
  } from '@docusaurus/types';
14
13
  import type {PluginOptions} from '@docusaurus/plugin-ideal-image';
15
14
  import {Joi} from '@docusaurus/utils-validation';
@@ -79,7 +78,7 @@ export default function pluginIdealImage(
79
78
  export function validateOptions({
80
79
  validate,
81
80
  options,
82
- }: OptionValidationContext<PluginOptions>): ValidationResult<PluginOptions> {
81
+ }: OptionValidationContext<PluginOptions, PluginOptions>): PluginOptions {
83
82
  const pluginOptionsSchema = Joi.object({
84
83
  disableInDev: Joi.boolean().default(true),
85
84
  }).unknown();