denwa-web-shared 1.0.18 → 1.0.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.
- package/dist/server/index.cjs.js +15 -12
- package/dist/server/index.es.js +15 -12
- package/dist/server/ui/image.d.ts +8 -6
- package/package.json +1 -1
package/dist/server/index.cjs.js
CHANGED
|
@@ -6641,24 +6641,27 @@ const responseSchema = object({
|
|
|
6641
6641
|
});
|
|
6642
6642
|
const BasePicture = ({
|
|
6643
6643
|
imgProps,
|
|
6644
|
-
|
|
6645
|
-
image2x,
|
|
6646
|
-
image1xWebp,
|
|
6647
|
-
image2xWebp,
|
|
6648
|
-
image1xAvif,
|
|
6649
|
-
image2xAvif,
|
|
6650
|
-
mobileImage1x,
|
|
6651
|
-
mobileImage2x,
|
|
6652
|
-
mobileImage1xWebp,
|
|
6653
|
-
mobileImage2xWebp,
|
|
6654
|
-
mobileImage1xAvif,
|
|
6655
|
-
mobileImage2xAvif,
|
|
6644
|
+
data,
|
|
6656
6645
|
type,
|
|
6657
6646
|
alt,
|
|
6658
6647
|
mobileMaxWidth = 450,
|
|
6659
6648
|
loading = "lazy",
|
|
6660
6649
|
...pictureProps
|
|
6661
6650
|
}) => {
|
|
6651
|
+
const {
|
|
6652
|
+
image1x,
|
|
6653
|
+
image2x,
|
|
6654
|
+
image1xWebp,
|
|
6655
|
+
image2xWebp,
|
|
6656
|
+
image1xAvif,
|
|
6657
|
+
image2xAvif,
|
|
6658
|
+
mobileImage1x,
|
|
6659
|
+
mobileImage2x,
|
|
6660
|
+
mobileImage1xWebp,
|
|
6661
|
+
mobileImage2xWebp,
|
|
6662
|
+
mobileImage1xAvif,
|
|
6663
|
+
mobileImage2xAvif
|
|
6664
|
+
} = data;
|
|
6662
6665
|
return /* @__PURE__ */ jsxRuntime.jsxs("picture", { ...pictureProps, children: [
|
|
6663
6666
|
mobileImage1x && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6664
6667
|
"source",
|
package/dist/server/index.es.js
CHANGED
|
@@ -6639,24 +6639,27 @@ const responseSchema = object({
|
|
|
6639
6639
|
});
|
|
6640
6640
|
const BasePicture = ({
|
|
6641
6641
|
imgProps,
|
|
6642
|
-
|
|
6643
|
-
image2x,
|
|
6644
|
-
image1xWebp,
|
|
6645
|
-
image2xWebp,
|
|
6646
|
-
image1xAvif,
|
|
6647
|
-
image2xAvif,
|
|
6648
|
-
mobileImage1x,
|
|
6649
|
-
mobileImage2x,
|
|
6650
|
-
mobileImage1xWebp,
|
|
6651
|
-
mobileImage2xWebp,
|
|
6652
|
-
mobileImage1xAvif,
|
|
6653
|
-
mobileImage2xAvif,
|
|
6642
|
+
data,
|
|
6654
6643
|
type,
|
|
6655
6644
|
alt,
|
|
6656
6645
|
mobileMaxWidth = 450,
|
|
6657
6646
|
loading = "lazy",
|
|
6658
6647
|
...pictureProps
|
|
6659
6648
|
}) => {
|
|
6649
|
+
const {
|
|
6650
|
+
image1x,
|
|
6651
|
+
image2x,
|
|
6652
|
+
image1xWebp,
|
|
6653
|
+
image2xWebp,
|
|
6654
|
+
image1xAvif,
|
|
6655
|
+
image2xAvif,
|
|
6656
|
+
mobileImage1x,
|
|
6657
|
+
mobileImage2x,
|
|
6658
|
+
mobileImage1xWebp,
|
|
6659
|
+
mobileImage2xWebp,
|
|
6660
|
+
mobileImage1xAvif,
|
|
6661
|
+
mobileImage2xAvif
|
|
6662
|
+
} = data;
|
|
6660
6663
|
return /* @__PURE__ */ jsxs("picture", { ...pictureProps, children: [
|
|
6661
6664
|
mobileImage1x && /* @__PURE__ */ jsx(
|
|
6662
6665
|
"source",
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { DetailedHTMLProps, FC, HTMLAttributes, ImgHTMLAttributes } from 'react';
|
|
2
2
|
import { ImageType } from '../types';
|
|
3
|
-
interface BasePictureProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
|
+
export interface BasePictureProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
4
4
|
imgProps?: DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
|
|
5
|
+
data: PictureData;
|
|
6
|
+
type: ImageType;
|
|
7
|
+
alt: string;
|
|
8
|
+
mobileMaxWidth?: number;
|
|
9
|
+
loading?: 'eager' | 'lazy';
|
|
10
|
+
}
|
|
11
|
+
export interface PictureData {
|
|
5
12
|
image1x: string;
|
|
6
13
|
image2x?: string;
|
|
7
14
|
image1xWebp?: string;
|
|
@@ -14,10 +21,5 @@ interface BasePictureProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>
|
|
|
14
21
|
mobileImage2xWebp?: string;
|
|
15
22
|
mobileImage1xAvif?: string;
|
|
16
23
|
mobileImage2xAvif?: string;
|
|
17
|
-
type: ImageType;
|
|
18
|
-
alt: string;
|
|
19
|
-
mobileMaxWidth?: number;
|
|
20
|
-
loading?: 'eager' | 'lazy';
|
|
21
24
|
}
|
|
22
25
|
export declare const BasePicture: FC<BasePictureProps>;
|
|
23
|
-
export {};
|