@docusaurus/plugin-ideal-image 2.0.0-beta.1decd6f80 → 2.0.0-beta.20

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.
@@ -1,29 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import React from 'react';
8
- import IdealImage from '@endiliey/react-ideal-image';
9
-
10
- function Image(props) {
11
- const {alt, className, img} = props;
12
- return (
13
- <IdealImage
14
- {...props}
15
- alt={alt}
16
- className={className}
17
- height={img.src.height || 100}
18
- width={img.src.width || 100}
19
- placeholder={{lqip: img.preSrc}}
20
- src={img.src.src}
21
- srcSet={img.src.images.map((image) => ({
22
- ...image,
23
- src: image.path,
24
- }))}
25
- />
26
- );
27
- }
28
-
29
- export default Image;
package/lib/types.d.ts DELETED
@@ -1,36 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- export interface PluginOptions {
8
- /**
9
- * Filename template for output files.
10
- */
11
- name?: string;
12
- /**
13
- * Specify all widths you want to use; if a specified size exceeds the original image's width, the latter will be used (i.e. images won't be scaled up). You may also declare a default sizes array in the loader options in your webpack.config.js.
14
- */
15
- sizes?: number[];
16
- /**
17
- * Specify one width you want to use; if the specified size exceeds the original image's width, the latter will be used (i.e. images won't be scaled up)
18
- */
19
- size?: number;
20
- /**
21
- * As an alternative to manually specifying sizes, you can specify min, max and steps, and the sizes will be generated for you.
22
- */
23
- min?: number;
24
- /**
25
- * See min above
26
- */
27
- max?: number;
28
- /**
29
- * Configure the number of images generated between min and max (inclusive)
30
- */
31
- steps?: number;
32
- /**
33
- * JPEG compression quality
34
- */
35
- quality?: number;
36
- }
package/tsconfig.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "incremental": true,
5
- "tsBuildInfoFile": "./lib/.tsbuildinfo",
6
- "rootDir": "src",
7
- "outDir": "lib"
8
- }
9
- }