@webstudio-is/react-sdk 0.7.0 → 0.7.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/arg-types/utils.d.ts +1 -8
- package/lib/arg-types/utils.d.ts.map +1 -1
- package/lib/arg-types/utils.js +18 -7
- package/lib/component-utils/image.d.ts +107 -0
- package/lib/component-utils/image.d.ts.map +1 -0
- package/lib/component-utils/image.js +198 -0
- package/lib/component-utils/image.test.d.ts +2 -0
- package/lib/component-utils/image.test.d.ts.map +1 -0
- package/lib/component-utils/image.test.js +132 -0
- package/lib/components/body.props.json +8 -37
- package/lib/components/bold.props.json +8 -37
- package/lib/components/box.props.json +9 -40
- package/lib/components/button.props.json +10 -45
- package/lib/components/component-type.d.ts +1 -1
- package/lib/components/component-type.d.ts.map +1 -1
- package/lib/components/form.props.json +8 -37
- package/lib/components/heading.props.json +10 -48
- package/lib/components/image-dev.stories.d.ts +36 -0
- package/lib/components/image-dev.stories.d.ts.map +1 -0
- package/lib/components/image-dev.stories.js +102 -0
- package/lib/components/image.d.ts +10 -2
- package/lib/components/image.d.ts.map +1 -1
- package/lib/components/image.js +19 -9
- package/lib/components/image.props.json +60 -15
- package/lib/components/image.stories.d.ts +10 -2
- package/lib/components/image.stories.d.ts.map +1 -1
- package/lib/components/image.ws.d.ts.map +1 -1
- package/lib/components/image.ws.js +15 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +7 -1
- package/lib/components/input.props.json +9 -46
- package/lib/components/italic.props.json +8 -37
- package/lib/components/link.d.ts +1 -1
- package/lib/components/link.props.json +9 -40
- package/lib/components/link.stories.d.ts +2 -2
- package/lib/components/meta.d.ts +3 -0
- package/lib/components/meta.d.ts.map +1 -1
- package/lib/components/meta.js +7 -1
- package/lib/components/paragraph.props.json +8 -37
- package/lib/components/span.d.ts +3 -0
- package/lib/components/span.d.ts.map +1 -0
- package/lib/components/span.js +8 -0
- package/lib/components/span.props.json +2205 -0
- package/lib/components/span.stories.d.ts +6 -0
- package/lib/components/span.stories.d.ts.map +1 -0
- package/lib/components/span.stories.js +19 -0
- package/lib/components/span.ws.d.ts +5 -0
- package/lib/components/span.ws.d.ts.map +1 -0
- package/lib/components/span.ws.js +14 -0
- package/lib/components/subscript.d.ts +3 -0
- package/lib/components/subscript.d.ts.map +1 -0
- package/lib/components/subscript.js +8 -0
- package/lib/components/subscript.props.json +2205 -0
- package/lib/components/subscript.stories.d.ts +6 -0
- package/lib/components/subscript.stories.d.ts.map +1 -0
- package/lib/components/subscript.stories.js +19 -0
- package/lib/components/subscript.ws.d.ts +5 -0
- package/lib/components/subscript.ws.d.ts.map +1 -0
- package/lib/components/subscript.ws.js +14 -0
- package/lib/components/superscript.d.ts +3 -0
- package/lib/components/superscript.d.ts.map +1 -0
- package/lib/components/superscript.js +8 -0
- package/lib/components/superscript.props.json +2205 -0
- package/lib/components/superscript.stories.d.ts +6 -0
- package/lib/components/superscript.stories.d.ts.map +1 -0
- package/lib/components/superscript.stories.js +19 -0
- package/lib/components/superscript.ws.d.ts +5 -0
- package/lib/components/superscript.ws.d.ts.map +1 -0
- package/lib/components/superscript.ws.js +14 -0
- package/lib/components/text-block.props.json +8 -37
- package/lib/css/breakpoints.d.ts +1 -1
- package/lib/css/breakpoints.d.ts.map +1 -1
- package/lib/css/categories.d.ts +2 -2
- package/lib/css/get-browser-style.d.ts +1 -1
- package/lib/css/get-browser-style.d.ts.map +1 -1
- package/lib/css/get-browser-style.js +10 -5
- package/lib/css/index.d.ts +0 -5
- package/lib/css/index.d.ts.map +1 -1
- package/lib/css/index.js +0 -5
- package/lib/db/instance.d.ts +1 -1
- package/lib/db/instance.d.ts.map +1 -1
- package/lib/db/instance.js +2 -2
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/pubsub/create.d.ts +1 -0
- package/lib/pubsub/create.d.ts.map +1 -1
- package/lib/pubsub/create.js +8 -0
- package/lib/remix/handle-request.server.d.ts.map +1 -1
- package/lib/remix/handle-request.server.js +1 -2
- package/lib/remix/root.d.ts.map +1 -1
- package/lib/remix/root.js +2 -2
- package/lib/tree/create-elements-tree.d.ts +7 -11
- package/lib/tree/create-elements-tree.d.ts.map +1 -1
- package/lib/tree/create-elements-tree.js +5 -10
- package/lib/tree/root.d.ts +4 -6
- package/lib/tree/root.d.ts.map +1 -1
- package/lib/tree/root.js +1 -23
- package/lib/tree/session-storage-polyfill.d.ts +2 -0
- package/lib/tree/session-storage-polyfill.d.ts.map +1 -0
- package/lib/tree/session-storage-polyfill.js +39 -0
- package/lib/tree/wrapper-component.d.ts +4 -4
- package/lib/tree/wrapper-component.d.ts.map +1 -1
- package/lib/tree/wrapper-component.js +5 -5
- package/package.json +20 -13
- package/lib/css/keyword-values.d.ts +0 -302
- package/lib/css/keyword-values.d.ts.map +0 -1
- package/lib/css/keyword-values.js +0 -6619
- package/lib/css/properties.d.ts +0 -3199
- package/lib/css/properties.d.ts.map +0 -1
- package/lib/css/properties.js +0 -3202
- package/lib/css/schema.d.ts +0 -283
- package/lib/css/schema.d.ts.map +0 -1
- package/lib/css/schema.js +0 -48
- package/lib/css/types.d.ts +0 -6
- package/lib/css/types.d.ts.map +0 -1
- package/lib/css/types.js +0 -2
- package/lib/css/units.d.ts +0 -2
- package/lib/css/units.d.ts.map +0 -1
- package/lib/css/units.js +0 -35
- package/lib/remix/constants.d.ts +0 -2
- package/lib/remix/constants.d.ts.map +0 -1
- package/lib/remix/constants.js +0 -4
- package/lib/remix/insert-critical-css.d.ts +0 -2
- package/lib/remix/insert-critical-css.d.ts.map +0 -1
- package/lib/remix/insert-critical-css.js +0 -9
- package/lib/stitches/index.d.ts +0 -3
- package/lib/stitches/index.d.ts.map +0 -1
- package/lib/stitches/index.js +0 -18
- package/lib/stitches/stitches.d.ts +0 -8
- package/lib/stitches/stitches.d.ts.map +0 -1
- package/lib/stitches/stitches.js +0 -38
- package/lib/stitches/to-css.d.ts +0 -8
- package/lib/stitches/to-css.d.ts.map +0 -1
- package/lib/stitches/to-css.js +0 -52
- package/lib/stitches/to-css.test.d.ts +0 -2
- package/lib/stitches/to-css.test.d.ts.map +0 -1
- package/lib/stitches/to-css.test.js +0 -82
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.HeroImage = exports.FillParentImage = exports.AspectRatioImage = exports.UnknownWidthImage = exports.FixedWidthImageCover = exports.FixedWidthImage = void 0;
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const warn_once_1 = __importDefault(require("warn-once"));
|
|
9
|
+
const image_1 = require("./image");
|
|
10
|
+
const image_ws_1 = __importDefault(require("./image.ws"));
|
|
11
|
+
// to not allow include local assets everywhere, just enable it for this file
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const logo_webp_1 = __importDefault(require("../../storybook-assets/logo.webp"));
|
|
15
|
+
exports.default = {
|
|
16
|
+
title: "Components/ImageDev",
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* In case you need to test img with real cloudflare trasforms
|
|
20
|
+
* set USE_CLOUDFLARE_IMAGE_TRANSFORM = true
|
|
21
|
+
**/
|
|
22
|
+
const USE_CLOUDFLARE_IMAGE_TRANSFORM = false;
|
|
23
|
+
// For cloudflare image transform testing, logo should be the most consistent image on the site
|
|
24
|
+
const REMOTE_SELF_DOMAIN_IMAGE = "https://webstudio.is/logo.webp";
|
|
25
|
+
const imageSrc = USE_CLOUDFLARE_IMAGE_TRANSFORM
|
|
26
|
+
? REMOTE_SELF_DOMAIN_IMAGE
|
|
27
|
+
: logo_webp_1.default;
|
|
28
|
+
// In case of REMOTE_DEBUG
|
|
29
|
+
const cloudflareImageLoader = ({ width, src, quality }) => {
|
|
30
|
+
// No image transformation in development
|
|
31
|
+
const resizeOrigin = "https://webstudio.is";
|
|
32
|
+
const pathParams = [
|
|
33
|
+
`width=${width}`,
|
|
34
|
+
quality != null && `quality=${quality}`,
|
|
35
|
+
"format=auto",
|
|
36
|
+
].filter(Boolean);
|
|
37
|
+
const pathname = `/cdn-cgi/image/${pathParams.join(",")}/${src}`;
|
|
38
|
+
const url = new URL(pathname, resizeOrigin);
|
|
39
|
+
return url.href;
|
|
40
|
+
};
|
|
41
|
+
const localImageLoader = ({ width, src, quality }) => {
|
|
42
|
+
// Just emulate like we really resize the image
|
|
43
|
+
const params = new URLSearchParams();
|
|
44
|
+
params.set("width", `${width}`);
|
|
45
|
+
params.set("quality", `${quality}`);
|
|
46
|
+
return `${src}?${params.toString()}`;
|
|
47
|
+
};
|
|
48
|
+
const imageLoader = USE_CLOUDFLARE_IMAGE_TRANSFORM
|
|
49
|
+
? cloudflareImageLoader
|
|
50
|
+
: localImageLoader;
|
|
51
|
+
const ImageBase = (args) => {
|
|
52
|
+
(0, warn_once_1.default)(!(image_ws_1.default.defaultStyle?.maxWidth?.value === 100 &&
|
|
53
|
+
image_ws_1.default.defaultStyle?.maxWidth?.unit === "%"), "We expect that the image default style has maxWidth: 100%");
|
|
54
|
+
(0, warn_once_1.default)(image_ws_1.default.defaultStyle?.display?.value !== "block", "We expect that the image default style has display: block");
|
|
55
|
+
const style = {
|
|
56
|
+
maxWidth: "100%",
|
|
57
|
+
display: "block",
|
|
58
|
+
...args.style,
|
|
59
|
+
};
|
|
60
|
+
return ((0, jsx_runtime_1.jsx)(image_1.Image, { ...args, optimize: true, loader: imageLoader, style: style }));
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Load images depending on image width and device per pixel ratio.
|
|
64
|
+
**/
|
|
65
|
+
const FixedWidthImage = () => ((0, jsx_runtime_1.jsx)(ImageBase, { src: imageSrc, width: "300", height: "400" }));
|
|
66
|
+
exports.FixedWidthImage = FixedWidthImage;
|
|
67
|
+
/**
|
|
68
|
+
* Preserve ratio using object-fit: cover. Load images depending on image width and device per pixel ratio.
|
|
69
|
+
**/
|
|
70
|
+
const FixedWidthImageCover = () => ((0, jsx_runtime_1.jsx)(ImageBase, { src: imageSrc, width: "300", height: "400", style: { objectFit: "cover" } }));
|
|
71
|
+
exports.FixedWidthImageCover = FixedWidthImageCover;
|
|
72
|
+
/**
|
|
73
|
+
* Load images depending on the viewport width.
|
|
74
|
+
**/
|
|
75
|
+
const UnknownWidthImage = () => (0, jsx_runtime_1.jsx)(ImageBase, { src: imageSrc });
|
|
76
|
+
exports.UnknownWidthImage = UnknownWidthImage;
|
|
77
|
+
/**
|
|
78
|
+
* Fit width of the parent container, has own aspect-ratio and object-fit=cover.
|
|
79
|
+
* Load images depending on the viewport width.
|
|
80
|
+
**/
|
|
81
|
+
const AspectRatioImage = () => ((0, jsx_runtime_1.jsx)("div", { style: { width: "50%" }, children: (0, jsx_runtime_1.jsx)(ImageBase, { src: imageSrc, style: { aspectRatio: "2/1", objectFit: "cover", width: "100%" } }) }));
|
|
82
|
+
exports.AspectRatioImage = AspectRatioImage;
|
|
83
|
+
/**
|
|
84
|
+
* Fill width and height of the relative parent container, object-fit=cover. Load images depending on the viewport width.
|
|
85
|
+
**/
|
|
86
|
+
const FillParentImage = () => ((0, jsx_runtime_1.jsx)("div", { style: { width: "50%", aspectRatio: "2/1", position: "relative" }, children: (0, jsx_runtime_1.jsx)(ImageBase, { src: imageSrc, style: {
|
|
87
|
+
objectFit: "cover",
|
|
88
|
+
position: "absolute",
|
|
89
|
+
width: "100%",
|
|
90
|
+
height: "100%",
|
|
91
|
+
} }) }));
|
|
92
|
+
exports.FillParentImage = FillParentImage;
|
|
93
|
+
/**
|
|
94
|
+
* "sizes" attribute explicitly equal to 100vw allowing to skip the default behavior.
|
|
95
|
+
* See DEFAULT_SIZES in the Image component. Load images depending on the viewport width.
|
|
96
|
+
**/
|
|
97
|
+
const HeroImage = () => ((0, jsx_runtime_1.jsx)(ImageBase, { src: imageSrc, sizes: "100vw", style: {
|
|
98
|
+
aspectRatio: "3/1",
|
|
99
|
+
objectFit: "cover",
|
|
100
|
+
width: "100%",
|
|
101
|
+
} }));
|
|
102
|
+
exports.HeroImage = HeroImage;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
1
|
+
import React, { type ComponentProps } from "react";
|
|
2
|
+
import { type ImageLoader } from "../component-utils/image";
|
|
3
|
+
declare const defaultTag = "img";
|
|
4
|
+
declare type ImageProps = ComponentProps<typeof defaultTag> & {
|
|
5
|
+
quality?: number;
|
|
6
|
+
loader?: ImageLoader;
|
|
7
|
+
optimize?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const Image: React.ForwardRefExoticComponent<Pick<ImageProps, "key" | "quality" | "loader" | keyof React.ImgHTMLAttributes<HTMLImageElement> | "optimize"> & React.RefAttributes<HTMLImageElement>>;
|
|
10
|
+
export {};
|
|
3
11
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/components/image.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/components/image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEhF,QAAA,MAAM,UAAU,QAAQ,CAAC;AAEzB,aAAK,UAAU,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IACpD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,KAAK,wLAmBjB,CAAC"}
|
package/lib/components/image.js
CHANGED
|
@@ -3,17 +3,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Image = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = require("react");
|
|
6
|
+
const image_1 = require("../component-utils/image");
|
|
6
7
|
const defaultTag = "img";
|
|
7
|
-
exports.Image = (0, react_1.forwardRef)((
|
|
8
|
+
exports.Image = (0, react_1.forwardRef)(({ quality, loader, optimize, ...imageProps }, ref) => {
|
|
9
|
+
// Temporary set to false, to support previous image behaviour
|
|
10
|
+
const DEFAULT_OPTIMIZE = false;
|
|
11
|
+
const imageAttributes = (0, image_1.getImageAttributes)({
|
|
12
|
+
src: imageProps.src,
|
|
13
|
+
srcSet: imageProps.srcSet,
|
|
14
|
+
sizes: imageProps.sizes,
|
|
15
|
+
width: imageProps.width,
|
|
16
|
+
quality,
|
|
17
|
+
loader,
|
|
18
|
+
optimize: optimize ?? DEFAULT_OPTIMIZE,
|
|
19
|
+
}) ?? { src: imagePlaceholderSvg };
|
|
20
|
+
return ((0, jsx_runtime_1.jsx)("img", { ...imageProps, ...imageAttributes, decoding: "async", ref: ref }));
|
|
21
|
+
});
|
|
8
22
|
exports.Image.defaultProps = {
|
|
9
23
|
src: "",
|
|
24
|
+
width: "",
|
|
25
|
+
height: "",
|
|
10
26
|
loading: "lazy",
|
|
11
|
-
width: "auto",
|
|
12
|
-
height: "auto",
|
|
13
27
|
alt: "",
|
|
14
28
|
};
|
|
15
29
|
exports.Image.displayName = "Image";
|
|
16
|
-
const imagePlaceholderSvg = `<svg
|
|
30
|
+
const imagePlaceholderSvg = `data:image/svg+xml;base64,${btoa(`<svg
|
|
17
31
|
width="140"
|
|
18
32
|
height="140"
|
|
19
33
|
viewBox="0 0 600 600"
|
|
@@ -35,8 +49,4 @@ const imagePlaceholderSvg = `<svg
|
|
|
35
49
|
d="M160 405V367.205L221.609 306.364L256.552 338.628L358.161 234L440 316.043V405H160Z"
|
|
36
50
|
fill="#A2A2A2"
|
|
37
51
|
/>
|
|
38
|
-
</svg
|
|
39
|
-
// Defining src here prevents analyzer from putting the image into the UI.
|
|
40
|
-
// @todo it would be better to have the image hosted like a normal image,
|
|
41
|
-
// the problem is inside sdk bundler doesn't know how to do that.
|
|
42
|
-
exports.Image.defaultProps.src = `data:image/svg+xml;base64,${btoa(imagePlaceholderSvg)}`;
|
|
52
|
+
</svg>`)}`;
|
|
@@ -66,9 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"alt": {
|
|
69
|
-
"defaultValue":
|
|
70
|
-
"value": ""
|
|
71
|
-
},
|
|
69
|
+
"defaultValue": "",
|
|
72
70
|
"description": "",
|
|
73
71
|
"name": "alt",
|
|
74
72
|
"parent": {
|
|
@@ -160,9 +158,7 @@
|
|
|
160
158
|
"options": ["async", "auto", "sync"]
|
|
161
159
|
},
|
|
162
160
|
"height": {
|
|
163
|
-
"defaultValue":
|
|
164
|
-
"value": "auto"
|
|
165
|
-
},
|
|
161
|
+
"defaultValue": "",
|
|
166
162
|
"description": "",
|
|
167
163
|
"name": "height",
|
|
168
164
|
"parent": {
|
|
@@ -184,9 +180,7 @@
|
|
|
184
180
|
}
|
|
185
181
|
},
|
|
186
182
|
"loading": {
|
|
187
|
-
"defaultValue":
|
|
188
|
-
"value": "lazy"
|
|
189
|
-
},
|
|
183
|
+
"defaultValue": "lazy",
|
|
190
184
|
"description": "",
|
|
191
185
|
"name": "loading",
|
|
192
186
|
"parent": {
|
|
@@ -303,9 +297,7 @@
|
|
|
303
297
|
}
|
|
304
298
|
},
|
|
305
299
|
"src": {
|
|
306
|
-
"defaultValue":
|
|
307
|
-
"value": ""
|
|
308
|
-
},
|
|
300
|
+
"defaultValue": "",
|
|
309
301
|
"description": "",
|
|
310
302
|
"name": "src",
|
|
311
303
|
"parent": {
|
|
@@ -371,9 +363,7 @@
|
|
|
371
363
|
}
|
|
372
364
|
},
|
|
373
365
|
"width": {
|
|
374
|
-
"defaultValue":
|
|
375
|
-
"value": "auto"
|
|
376
|
-
},
|
|
366
|
+
"defaultValue": "",
|
|
377
367
|
"description": "",
|
|
378
368
|
"name": "width",
|
|
379
369
|
"parent": {
|
|
@@ -1065,6 +1055,7 @@
|
|
|
1065
1055
|
}
|
|
1066
1056
|
},
|
|
1067
1057
|
"color": {
|
|
1058
|
+
"defaultValue": null,
|
|
1068
1059
|
"description": "",
|
|
1069
1060
|
"name": "color",
|
|
1070
1061
|
"parent": {
|
|
@@ -2529,5 +2520,59 @@
|
|
|
2529
2520
|
"control": {
|
|
2530
2521
|
"type": "text"
|
|
2531
2522
|
}
|
|
2523
|
+
},
|
|
2524
|
+
"quality": {
|
|
2525
|
+
"defaultValue": null,
|
|
2526
|
+
"description": "",
|
|
2527
|
+
"name": "quality",
|
|
2528
|
+
"declarations": [
|
|
2529
|
+
{
|
|
2530
|
+
"fileName": "src/components/image.tsx",
|
|
2531
|
+
"name": "TypeLiteral"
|
|
2532
|
+
}
|
|
2533
|
+
],
|
|
2534
|
+
"required": false,
|
|
2535
|
+
"type": {
|
|
2536
|
+
"name": "number"
|
|
2537
|
+
},
|
|
2538
|
+
"control": {
|
|
2539
|
+
"type": "number"
|
|
2540
|
+
}
|
|
2541
|
+
},
|
|
2542
|
+
"loader": {
|
|
2543
|
+
"defaultValue": null,
|
|
2544
|
+
"description": "",
|
|
2545
|
+
"name": "loader",
|
|
2546
|
+
"declarations": [
|
|
2547
|
+
{
|
|
2548
|
+
"fileName": "src/components/image.tsx",
|
|
2549
|
+
"name": "TypeLiteral"
|
|
2550
|
+
}
|
|
2551
|
+
],
|
|
2552
|
+
"required": false,
|
|
2553
|
+
"type": {
|
|
2554
|
+
"name": "ImageLoader"
|
|
2555
|
+
},
|
|
2556
|
+
"control": {
|
|
2557
|
+
"type": "text"
|
|
2558
|
+
}
|
|
2559
|
+
},
|
|
2560
|
+
"optimize": {
|
|
2561
|
+
"defaultValue": null,
|
|
2562
|
+
"description": "",
|
|
2563
|
+
"name": "optimize",
|
|
2564
|
+
"declarations": [
|
|
2565
|
+
{
|
|
2566
|
+
"fileName": "src/components/image.tsx",
|
|
2567
|
+
"name": "TypeLiteral"
|
|
2568
|
+
}
|
|
2569
|
+
],
|
|
2570
|
+
"required": false,
|
|
2571
|
+
"type": {
|
|
2572
|
+
"name": "boolean"
|
|
2573
|
+
},
|
|
2574
|
+
"control": {
|
|
2575
|
+
"type": "boolean"
|
|
2576
|
+
}
|
|
2532
2577
|
}
|
|
2533
2578
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { ComponentMeta, ComponentStory } from "@storybook/react";
|
|
3
|
-
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<React.
|
|
3
|
+
declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
4
|
+
quality?: number | undefined;
|
|
5
|
+
loader?: import("../component-utils/image").ImageLoader | undefined;
|
|
6
|
+
optimize?: boolean | undefined;
|
|
7
|
+
}, "key" | "quality" | "loader" | keyof React.ImgHTMLAttributes<HTMLImageElement> | "optimize"> & React.RefAttributes<HTMLImageElement>>>;
|
|
4
8
|
export default _default;
|
|
5
|
-
export declare const Image: ComponentStory<React.ForwardRefExoticComponent<Pick<React.
|
|
9
|
+
export declare const Image: ComponentStory<React.ForwardRefExoticComponent<Pick<React.ClassAttributes<HTMLImageElement> & React.ImgHTMLAttributes<HTMLImageElement> & {
|
|
10
|
+
quality?: number | undefined;
|
|
11
|
+
loader?: import("../component-utils/image").ImageLoader | undefined;
|
|
12
|
+
optimize?: boolean | undefined;
|
|
13
|
+
}, "key" | "quality" | "loader" | keyof React.ImgHTMLAttributes<HTMLImageElement> | "optimize"> & React.RefAttributes<HTMLImageElement>>>;
|
|
6
14
|
//# sourceMappingURL=image.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.stories.d.ts","sourceRoot":"","sources":["../../src/components/image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC
|
|
1
|
+
{"version":3,"file":"image.stories.d.ts","sourceRoot":"","sources":["../../src/components/image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;;;;;;AAItE,wBAI0C;AAM1C,eAAO,MAAM,KAAK;;;;yIAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.ws.d.ts","sourceRoot":"","sources":["../../src/components/image.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"image.ws.d.ts","sourceRoot":"","sources":["../../src/components/image.ws.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiBhC,QAAA,MAAM,IAAI,EAAE,eAAe,CAAC,OAAO,KAAK,CASvC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -2,10 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const icons_1 = require("@webstudio-is/icons");
|
|
4
4
|
const image_1 = require("./image");
|
|
5
|
+
const defaultStyle = {
|
|
6
|
+
// Otherwise on new image insert onto canvas it can overfit screen size multiple times
|
|
7
|
+
maxWidth: {
|
|
8
|
+
type: "unit",
|
|
9
|
+
unit: "%",
|
|
10
|
+
value: 100,
|
|
11
|
+
},
|
|
12
|
+
// inline | inline-block is not suitable because without line-height: 0 on the parent you get unsuitable spaces/margins
|
|
13
|
+
// see https://stackoverflow.com/questions/24771194/is-the-margin-of-inline-block-4px-is-static-for-all-browsers
|
|
14
|
+
display: {
|
|
15
|
+
type: "keyword",
|
|
16
|
+
value: "block",
|
|
17
|
+
},
|
|
18
|
+
};
|
|
5
19
|
const meta = {
|
|
6
20
|
Icon: icons_1.ImageIcon,
|
|
7
21
|
Component: image_1.Image,
|
|
8
22
|
canAcceptChildren: false,
|
|
23
|
+
defaultStyle,
|
|
9
24
|
isContentEditable: false,
|
|
10
25
|
isInlineOnly: false,
|
|
11
26
|
isListed: true,
|
|
@@ -4,8 +4,11 @@ export { default as TextBlock } from "./text-block.ws";
|
|
|
4
4
|
export { default as Heading } from "./heading.ws";
|
|
5
5
|
export { default as Paragraph } from "./paragraph.ws";
|
|
6
6
|
export { default as Link } from "./link.ws";
|
|
7
|
+
export { default as Span } from "./span.ws";
|
|
7
8
|
export { default as Bold } from "./bold.ws";
|
|
8
9
|
export { default as Italic } from "./italic.ws";
|
|
10
|
+
export { default as Superscript } from "./superscript.ws";
|
|
11
|
+
export { default as Subscript } from "./subscript.ws";
|
|
9
12
|
export { default as Button } from "./button.ws";
|
|
10
13
|
export { default as Input } from "./input.ws";
|
|
11
14
|
export { default as Form } from "./form.ws";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC"}
|
package/lib/components/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Image = exports.Form = exports.Input = exports.Button = exports.Italic = exports.Bold = exports.Link = exports.Paragraph = exports.Heading = exports.TextBlock = exports.Box = exports.Body = void 0;
|
|
6
|
+
exports.Image = exports.Form = exports.Input = exports.Button = exports.Subscript = exports.Superscript = exports.Italic = exports.Bold = exports.Span = exports.Link = exports.Paragraph = exports.Heading = exports.TextBlock = exports.Box = exports.Body = void 0;
|
|
7
7
|
var body_ws_1 = require("./body.ws");
|
|
8
8
|
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return __importDefault(body_ws_1).default; } });
|
|
9
9
|
var box_ws_1 = require("./box.ws");
|
|
@@ -16,10 +16,16 @@ var paragraph_ws_1 = require("./paragraph.ws");
|
|
|
16
16
|
Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return __importDefault(paragraph_ws_1).default; } });
|
|
17
17
|
var link_ws_1 = require("./link.ws");
|
|
18
18
|
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return __importDefault(link_ws_1).default; } });
|
|
19
|
+
var span_ws_1 = require("./span.ws");
|
|
20
|
+
Object.defineProperty(exports, "Span", { enumerable: true, get: function () { return __importDefault(span_ws_1).default; } });
|
|
19
21
|
var bold_ws_1 = require("./bold.ws");
|
|
20
22
|
Object.defineProperty(exports, "Bold", { enumerable: true, get: function () { return __importDefault(bold_ws_1).default; } });
|
|
21
23
|
var italic_ws_1 = require("./italic.ws");
|
|
22
24
|
Object.defineProperty(exports, "Italic", { enumerable: true, get: function () { return __importDefault(italic_ws_1).default; } });
|
|
25
|
+
var superscript_ws_1 = require("./superscript.ws");
|
|
26
|
+
Object.defineProperty(exports, "Superscript", { enumerable: true, get: function () { return __importDefault(superscript_ws_1).default; } });
|
|
27
|
+
var subscript_ws_1 = require("./subscript.ws");
|
|
28
|
+
Object.defineProperty(exports, "Subscript", { enumerable: true, get: function () { return __importDefault(subscript_ws_1).default; } });
|
|
23
29
|
var button_ws_1 = require("./button.ws");
|
|
24
30
|
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return __importDefault(button_ws_1).default; } });
|
|
25
31
|
var input_ws_1 = require("./input.ws");
|
|
@@ -330,15 +330,7 @@
|
|
|
330
330
|
"control": {
|
|
331
331
|
"type": "select"
|
|
332
332
|
},
|
|
333
|
-
"options": [
|
|
334
|
-
"enter",
|
|
335
|
-
"done",
|
|
336
|
-
"go",
|
|
337
|
-
"next",
|
|
338
|
-
"previous",
|
|
339
|
-
"search",
|
|
340
|
-
"send"
|
|
341
|
-
]
|
|
333
|
+
"options": ["enter", "done", "go", "next", "previous", "search", "send"]
|
|
342
334
|
},
|
|
343
335
|
"formAction": {
|
|
344
336
|
"defaultValue": null,
|
|
@@ -1206,10 +1198,7 @@
|
|
|
1206
1198
|
"control": {
|
|
1207
1199
|
"type": "radio"
|
|
1208
1200
|
},
|
|
1209
|
-
"options": [
|
|
1210
|
-
"yes",
|
|
1211
|
-
"no"
|
|
1212
|
-
]
|
|
1201
|
+
"options": ["yes", "no"]
|
|
1213
1202
|
},
|
|
1214
1203
|
"radioGroup": {
|
|
1215
1204
|
"defaultValue": null,
|
|
@@ -1498,6 +1487,7 @@
|
|
|
1498
1487
|
}
|
|
1499
1488
|
},
|
|
1500
1489
|
"color": {
|
|
1490
|
+
"defaultValue": null,
|
|
1501
1491
|
"description": "",
|
|
1502
1492
|
"name": "color",
|
|
1503
1493
|
"parent": {
|
|
@@ -1702,10 +1692,7 @@
|
|
|
1702
1692
|
"control": {
|
|
1703
1693
|
"type": "radio"
|
|
1704
1694
|
},
|
|
1705
|
-
"options": [
|
|
1706
|
-
"on",
|
|
1707
|
-
"off"
|
|
1708
|
-
]
|
|
1695
|
+
"options": ["on", "off"]
|
|
1709
1696
|
},
|
|
1710
1697
|
"inputMode": {
|
|
1711
1698
|
"defaultValue": null,
|
|
@@ -1868,12 +1855,7 @@
|
|
|
1868
1855
|
"control": {
|
|
1869
1856
|
"type": "radio"
|
|
1870
1857
|
},
|
|
1871
|
-
"options": [
|
|
1872
|
-
"list",
|
|
1873
|
-
"none",
|
|
1874
|
-
"inline",
|
|
1875
|
-
"both"
|
|
1876
|
-
]
|
|
1858
|
+
"options": ["list", "none", "inline", "both"]
|
|
1877
1859
|
},
|
|
1878
1860
|
"aria-busy": {
|
|
1879
1861
|
"defaultValue": null,
|
|
@@ -2137,14 +2119,7 @@
|
|
|
2137
2119
|
"control": {
|
|
2138
2120
|
"type": "select"
|
|
2139
2121
|
},
|
|
2140
|
-
"options": [
|
|
2141
|
-
"link",
|
|
2142
|
-
"none",
|
|
2143
|
-
"copy",
|
|
2144
|
-
"execute",
|
|
2145
|
-
"move",
|
|
2146
|
-
"popup"
|
|
2147
|
-
]
|
|
2122
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
2148
2123
|
},
|
|
2149
2124
|
"aria-errormessage": {
|
|
2150
2125
|
"defaultValue": null,
|
|
@@ -2421,11 +2396,7 @@
|
|
|
2421
2396
|
"control": {
|
|
2422
2397
|
"type": "radio"
|
|
2423
2398
|
},
|
|
2424
|
-
"options": [
|
|
2425
|
-
"off",
|
|
2426
|
-
"assertive",
|
|
2427
|
-
"polite"
|
|
2428
|
-
]
|
|
2399
|
+
"options": ["off", "assertive", "polite"]
|
|
2429
2400
|
},
|
|
2430
2401
|
"aria-modal": {
|
|
2431
2402
|
"defaultValue": null,
|
|
@@ -2523,10 +2494,7 @@
|
|
|
2523
2494
|
"control": {
|
|
2524
2495
|
"type": "radio"
|
|
2525
2496
|
},
|
|
2526
|
-
"options": [
|
|
2527
|
-
"horizontal",
|
|
2528
|
-
"vertical"
|
|
2529
|
-
]
|
|
2497
|
+
"options": ["horizontal", "vertical"]
|
|
2530
2498
|
},
|
|
2531
2499
|
"aria-owns": {
|
|
2532
2500
|
"defaultValue": null,
|
|
@@ -2895,12 +2863,7 @@
|
|
|
2895
2863
|
"control": {
|
|
2896
2864
|
"type": "radio"
|
|
2897
2865
|
},
|
|
2898
|
-
"options": [
|
|
2899
|
-
"none",
|
|
2900
|
-
"ascending",
|
|
2901
|
-
"descending",
|
|
2902
|
-
"other"
|
|
2903
|
-
]
|
|
2866
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2904
2867
|
},
|
|
2905
2868
|
"aria-valuemax": {
|
|
2906
2869
|
"defaultValue": null,
|
|
@@ -447,10 +447,7 @@
|
|
|
447
447
|
"control": {
|
|
448
448
|
"type": "radio"
|
|
449
449
|
},
|
|
450
|
-
"options": [
|
|
451
|
-
"yes",
|
|
452
|
-
"no"
|
|
453
|
-
]
|
|
450
|
+
"options": ["yes", "no"]
|
|
454
451
|
},
|
|
455
452
|
"radioGroup": {
|
|
456
453
|
"defaultValue": null,
|
|
@@ -739,6 +736,7 @@
|
|
|
739
736
|
}
|
|
740
737
|
},
|
|
741
738
|
"color": {
|
|
739
|
+
"defaultValue": null,
|
|
742
740
|
"description": "",
|
|
743
741
|
"name": "color",
|
|
744
742
|
"parent": {
|
|
@@ -943,10 +941,7 @@
|
|
|
943
941
|
"control": {
|
|
944
942
|
"type": "radio"
|
|
945
943
|
},
|
|
946
|
-
"options": [
|
|
947
|
-
"on",
|
|
948
|
-
"off"
|
|
949
|
-
]
|
|
944
|
+
"options": ["on", "off"]
|
|
950
945
|
},
|
|
951
946
|
"inputMode": {
|
|
952
947
|
"defaultValue": null,
|
|
@@ -1109,12 +1104,7 @@
|
|
|
1109
1104
|
"control": {
|
|
1110
1105
|
"type": "radio"
|
|
1111
1106
|
},
|
|
1112
|
-
"options": [
|
|
1113
|
-
"list",
|
|
1114
|
-
"none",
|
|
1115
|
-
"inline",
|
|
1116
|
-
"both"
|
|
1117
|
-
]
|
|
1107
|
+
"options": ["list", "none", "inline", "both"]
|
|
1118
1108
|
},
|
|
1119
1109
|
"aria-busy": {
|
|
1120
1110
|
"defaultValue": null,
|
|
@@ -1378,14 +1368,7 @@
|
|
|
1378
1368
|
"control": {
|
|
1379
1369
|
"type": "select"
|
|
1380
1370
|
},
|
|
1381
|
-
"options": [
|
|
1382
|
-
"link",
|
|
1383
|
-
"none",
|
|
1384
|
-
"copy",
|
|
1385
|
-
"execute",
|
|
1386
|
-
"move",
|
|
1387
|
-
"popup"
|
|
1388
|
-
]
|
|
1371
|
+
"options": ["link", "none", "copy", "execute", "move", "popup"]
|
|
1389
1372
|
},
|
|
1390
1373
|
"aria-errormessage": {
|
|
1391
1374
|
"defaultValue": null,
|
|
@@ -1662,11 +1645,7 @@
|
|
|
1662
1645
|
"control": {
|
|
1663
1646
|
"type": "radio"
|
|
1664
1647
|
},
|
|
1665
|
-
"options": [
|
|
1666
|
-
"off",
|
|
1667
|
-
"assertive",
|
|
1668
|
-
"polite"
|
|
1669
|
-
]
|
|
1648
|
+
"options": ["off", "assertive", "polite"]
|
|
1670
1649
|
},
|
|
1671
1650
|
"aria-modal": {
|
|
1672
1651
|
"defaultValue": null,
|
|
@@ -1764,10 +1743,7 @@
|
|
|
1764
1743
|
"control": {
|
|
1765
1744
|
"type": "radio"
|
|
1766
1745
|
},
|
|
1767
|
-
"options": [
|
|
1768
|
-
"horizontal",
|
|
1769
|
-
"vertical"
|
|
1770
|
-
]
|
|
1746
|
+
"options": ["horizontal", "vertical"]
|
|
1771
1747
|
},
|
|
1772
1748
|
"aria-owns": {
|
|
1773
1749
|
"defaultValue": null,
|
|
@@ -2136,12 +2112,7 @@
|
|
|
2136
2112
|
"control": {
|
|
2137
2113
|
"type": "radio"
|
|
2138
2114
|
},
|
|
2139
|
-
"options": [
|
|
2140
|
-
"none",
|
|
2141
|
-
"ascending",
|
|
2142
|
-
"descending",
|
|
2143
|
-
"other"
|
|
2144
|
-
]
|
|
2115
|
+
"options": ["none", "ascending", "descending", "other"]
|
|
2145
2116
|
},
|
|
2146
2117
|
"aria-valuemax": {
|
|
2147
2118
|
"defaultValue": null,
|
package/lib/components/link.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ declare const defaultTag = "a";
|
|
|
3
3
|
declare type LinkProps = Omit<ComponentProps<typeof defaultTag>, "href"> & {
|
|
4
4
|
href?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "color" | "translate" | "type" | "
|
|
6
|
+
export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "color" | "translate" | "type" | "id" | "children" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "media" | "target" | "href" | "download" | "hrefLang" | "ping" | "rel" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=link.d.ts.map
|