@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.
Files changed (28) hide show
  1. package/lib/theme/IdealImage/index.d.ts +1 -1
  2. package/lib/theme/IdealImage/index.js +0 -1
  3. package/lib/theme/IdealImageLegacy/components/Icon/Download.d.ts +1 -2
  4. package/lib/theme/IdealImageLegacy/components/Icon/Download.js +0 -1
  5. package/lib/theme/IdealImageLegacy/components/Icon/Loading.d.ts +1 -2
  6. package/lib/theme/IdealImageLegacy/components/Icon/Loading.js +0 -1
  7. package/lib/theme/IdealImageLegacy/components/Icon/Offline.d.ts +1 -2
  8. package/lib/theme/IdealImageLegacy/components/Icon/Offline.js +0 -1
  9. package/lib/theme/IdealImageLegacy/components/Icon/Warning.d.ts +1 -2
  10. package/lib/theme/IdealImageLegacy/components/Icon/Warning.js +0 -1
  11. package/lib/theme/IdealImageLegacy/components/Icon/index.d.ts +1 -2
  12. package/lib/theme/IdealImageLegacy/components/Icon/index.js +0 -1
  13. package/lib/theme/IdealImageLegacy/components/IdealImage/index.d.ts +3 -3
  14. package/lib/theme/IdealImageLegacy/components/IdealImage/index.js +1 -1
  15. package/lib/theme/IdealImageLegacy/components/IdealImageWithDefaults/index.d.ts +2 -3
  16. package/lib/theme/IdealImageLegacy/components/IdealImageWithDefaults/index.js +0 -1
  17. package/lib/theme/IdealImageLegacy/components/MediaWithDefaults/index.d.ts +2 -3
  18. package/lib/theme/IdealImageLegacy/components/MediaWithDefaults/index.js +0 -1
  19. package/package.json +8 -8
  20. package/src/theme/IdealImage/index.tsx +1 -1
  21. package/src/theme/IdealImageLegacy/components/Icon/Download.js +0 -1
  22. package/src/theme/IdealImageLegacy/components/Icon/Loading.js +0 -1
  23. package/src/theme/IdealImageLegacy/components/Icon/Offline.js +0 -1
  24. package/src/theme/IdealImageLegacy/components/Icon/Warning.js +0 -1
  25. package/src/theme/IdealImageLegacy/components/Icon/index.js +0 -1
  26. package/src/theme/IdealImageLegacy/components/IdealImage/index.js +1 -1
  27. package/src/theme/IdealImageLegacy/components/IdealImageWithDefaults/index.js +0 -1
  28. 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 { type ReactNode } from 'react';
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,3 +1,2 @@
1
- import React from 'react';
2
- declare const Download: (props: any) => React.JSX.Element;
1
+ declare const Download: (props: any) => import("react").JSX.Element;
3
2
  export default Download;
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Download = (props) => (
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const Loading: (props: any) => React.JSX.Element;
1
+ declare const Loading: (props: any) => import("react").JSX.Element;
3
2
  export default Loading;
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Loading = (props) => (
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const Offline: (props: any) => React.JSX.Element;
1
+ declare const Offline: (props: any) => import("react").JSX.Element;
3
2
  export default Offline;
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Offline = (props) => (
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const Warning: (props: any) => React.JSX.Element;
1
+ declare const Warning: (props: any) => import("react").JSX.Element;
3
2
  export default Warning;
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Warning = (props) => (
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  declare const Icon: ({ size, fill, className, path }: {
3
2
  className: any;
4
3
  fill?: string | undefined;
5
4
  path: any;
6
5
  size?: number | undefined;
7
- }) => React.JSX.Element;
6
+ }) => import("react").JSX.Element;
8
7
  export default Icon;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  // import PropTypes from 'prop-types'
3
2
 
4
3
  const Icon = ({size = 24, fill = '#000', className, path}) => (
@@ -1,11 +1,11 @@
1
- import React, { Component } from 'react';
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 | React.JSX.Element)[] | null;
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(): React.JSX.Element;
44
+ render(): import("react").JSX.Element;
45
45
  }
46
46
  export {};
@@ -1,4 +1,4 @@
1
- import React, {Component} from 'react';
1
+ import {Component} from 'react';
2
2
  import {Waypoint} from './waypoint';
3
3
  import Media from '../Media';
4
4
  import {icons, loadStates} from '../constants';
@@ -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) => React.JSX.Element) | null;
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
- }) => React.JSX.Element;
31
+ }) => import("react").JSX.Element;
33
32
  export default IdealImageWithDefaults;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import IdealImage from '../IdealImage';
3
2
  import icons from '../icons';
4
3
  import theme from '../theme';
@@ -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) => React.JSX.Element) | null;
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
- }) => React.JSX.Element;
31
+ }) => import("react").JSX.Element;
33
32
  export default MediaWithDefaults;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import Media from '../Media';
3
2
  import icons from '../icons';
4
3
  import theme from '../theme';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-ideal-image",
3
- "version": "4.0.0-canary-6880",
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-6880",
24
- "@docusaurus/lqip-loader": "4.0.0-canary-6880",
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-6880",
27
- "@docusaurus/types": "4.0.0-canary-6880",
28
- "@docusaurus/utils-validation": "4.0.0-canary-6880",
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-6880"
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": "1a9593cffbf29c065ddd5aac5f213a17dc69a261"
48
+ "gitHead": "0bed90b9358f5192abaefb30a37569d824d9236c"
49
49
  }
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import React, {type ReactNode} from 'react';
8
+ import type {ReactNode} from 'react';
9
9
  import {translate} from '@docusaurus/Translate';
10
10
  import ReactIdealImage, {
11
11
  type IconKey,
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Download = (props) => (
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Loading = (props) => (
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Offline = (props) => (
@@ -2,7 +2,6 @@
2
2
  // It is licensed under Apache License 2.0
3
3
  // Full text is available here
4
4
  // https://github.com/google/material-design-icons/blob/master/LICENSE
5
- import React from 'react';
6
5
  import Icon from './index';
7
6
 
8
7
  const Warning = (props) => (
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  // import PropTypes from 'prop-types'
3
2
 
4
3
  const Icon = ({size = 24, fill = '#000', className, path}) => (
@@ -1,4 +1,4 @@
1
- import React, {Component} from 'react';
1
+ import {Component} from 'react';
2
2
  import {Waypoint} from './waypoint';
3
3
  import Media from '../Media';
4
4
  import {icons, loadStates} from '../constants';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import IdealImage from '../IdealImage';
3
2
  import icons from '../icons';
4
3
  import theme from '../theme';
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import Media from '../Media';
3
2
  import icons from '../icons';
4
3
  import theme from '../theme';