@webstudio-is/sdk-components-react 0.168.0 → 0.174.0
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/components.js +76 -45
- package/lib/metas.js +223 -64
- package/lib/props.js +1273 -6
- package/lib/types/__generated__/option.props.d.ts +2 -0
- package/lib/types/__generated__/select.props.d.ts +2 -0
- package/lib/types/blockquote.d.ts +0 -1
- package/lib/types/body.d.ts +0 -1
- package/lib/types/bold.d.ts +0 -1
- package/lib/types/button.d.ts +0 -1
- package/lib/types/checkbox.d.ts +1 -2
- package/lib/types/code-text.d.ts +1 -2
- package/lib/types/components.d.ts +2 -0
- package/lib/types/form.d.ts +0 -1
- package/lib/types/hooks.d.ts +2 -0
- package/lib/types/html-embed.d.ts +1 -1
- package/lib/types/html-embed.test.d.ts +1 -1
- package/lib/types/image.d.ts +3 -1
- package/lib/types/input.d.ts +1 -2
- package/lib/types/italic.d.ts +0 -1
- package/lib/types/label.d.ts +0 -1
- package/lib/types/list-item.d.ts +0 -1
- package/lib/types/metas.d.ts +2 -0
- package/lib/types/option.d.ts +2 -0
- package/lib/types/option.ws.d.ts +3 -0
- package/lib/types/paragraph.d.ts +0 -1
- package/lib/types/props.d.ts +2 -0
- package/lib/types/radio-button.d.ts +1 -2
- package/lib/types/select.d.ts +4 -0
- package/lib/types/select.ws.d.ts +3 -0
- package/lib/types/separator.d.ts +0 -1
- package/lib/types/span.d.ts +0 -1
- package/lib/types/subscript.d.ts +0 -1
- package/lib/types/superscript.d.ts +0 -1
- package/lib/types/textarea.d.ts +0 -1
- package/lib/types/vimeo-play-button.d.ts +0 -1
- package/lib/types/vimeo-preview-image.d.ts +17 -17
- package/lib/types/vimeo-spinner.d.ts +0 -1
- package/lib/types/vimeo.d.ts +1 -1
- package/lib/types/xml-node.d.ts +2 -2
- package/package.json +13 -11
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "blockquote";
|
|
3
2
|
export declare const Blockquote: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").BlockquoteHTMLAttributes<HTMLQuoteElement>, HTMLQuoteElement>, "ref"> & import("react").RefAttributes<HTMLQuoteElement>>;
|
package/lib/types/body.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "body";
|
|
3
2
|
export declare const Body: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLBodyElement>, HTMLBodyElement>, "ref"> & import("react").RefAttributes<HTMLBodyElement>>;
|
package/lib/types/bold.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "b";
|
|
3
2
|
export declare const Bold: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
package/lib/types/button.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "button";
|
|
3
2
|
export declare const Button: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
package/lib/types/checkbox.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "input";
|
|
3
2
|
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "value"> & {
|
|
4
|
-
value?: string
|
|
3
|
+
value?: string;
|
|
5
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/lib/types/code-text.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "code";
|
|
3
2
|
export declare const CodeText: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
|
|
4
|
-
code?: string
|
|
3
|
+
code?: string;
|
|
5
4
|
}, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
package/lib/types/form.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "form";
|
|
3
2
|
export declare const Form: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & import("react").RefAttributes<HTMLFormElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const __testing__: {
|
|
3
2
|
scriptTestIdPrefix: string;
|
|
4
3
|
};
|
|
@@ -6,6 +5,7 @@ type HtmlEmbedProps = {
|
|
|
6
5
|
code: string;
|
|
7
6
|
executeScriptOnCanvas?: boolean;
|
|
8
7
|
clientOnly?: boolean;
|
|
8
|
+
className?: string;
|
|
9
9
|
children?: never;
|
|
10
10
|
};
|
|
11
11
|
export declare const HtmlEmbed: import("react").ForwardRefExoticComponent<HtmlEmbedProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/lib/types/image.d.ts
CHANGED
|
@@ -2,5 +2,7 @@ import { type ComponentPropsWithoutRef } from "react";
|
|
|
2
2
|
import { Image as WebstudioImage } from "@webstudio-is/image";
|
|
3
3
|
export declare const defaultTag = "img";
|
|
4
4
|
type Props = Omit<ComponentPropsWithoutRef<typeof WebstudioImage>, "loader">;
|
|
5
|
-
export declare const Image: import("react").ForwardRefExoticComponent<Props &
|
|
5
|
+
export declare const Image: import("react").ForwardRefExoticComponent<Props & {
|
|
6
|
+
$webstudio$canvasOnly$assetId?: string | undefined;
|
|
7
|
+
} & import("react").RefAttributes<HTMLImageElement>>;
|
|
6
8
|
export {};
|
package/lib/types/input.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "input";
|
|
3
2
|
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
-
type?: "
|
|
3
|
+
type?: "color" | "date" | "datetime-local" | "email" | "hidden" | "month" | "number" | "password" | "range" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
5
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/lib/types/italic.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "i";
|
|
3
2
|
export declare const Italic: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
package/lib/types/label.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "label";
|
|
3
2
|
export declare const Label: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
package/lib/types/list-item.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "li";
|
|
3
2
|
export declare const ListItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
package/lib/types/metas.d.ts
CHANGED
|
@@ -33,3 +33,5 @@ export { meta as VimeoPlayButton } from "./vimeo-play-button.ws";
|
|
|
33
33
|
export { meta as VimeoSpinner } from "./vimeo-spinner.ws";
|
|
34
34
|
export { meta as XmlNode } from "./xml-node.ws";
|
|
35
35
|
export { meta as Time } from "./time.ws";
|
|
36
|
+
export { meta as Select } from "./select.ws";
|
|
37
|
+
export { meta as Option } from "./option.ws";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const defaultTag = "option";
|
|
2
|
+
export declare const Option: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref"> & import("react").RefAttributes<HTMLOptionElement>>;
|
package/lib/types/paragraph.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "p";
|
|
3
2
|
export declare const Paragraph: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
package/lib/types/props.d.ts
CHANGED
|
@@ -32,3 +32,5 @@ export { propsMeta as VimeoPlayButton } from "./vimeo-play-button.ws";
|
|
|
32
32
|
export { propsMeta as VimeoSpinner } from "./vimeo-spinner.ws";
|
|
33
33
|
export { propsMeta as XmlNode } from "./xml-node.ws";
|
|
34
34
|
export { propsMeta as Time } from "./time.ws";
|
|
35
|
+
export { propsMeta as Select } from "./select.ws";
|
|
36
|
+
export { propsMeta as Option } from "./option.ws";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "input";
|
|
3
2
|
export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "value"> & {
|
|
4
|
-
value?: string
|
|
3
|
+
value?: string;
|
|
5
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Hook } from "@webstudio-is/react-sdk";
|
|
2
|
+
export declare const defaultTag = "select";
|
|
3
|
+
export declare const Select: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
4
|
+
export declare const hooksSelect: Hook;
|
package/lib/types/separator.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "hr";
|
|
3
2
|
export declare const Separator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & import("react").RefAttributes<HTMLHRElement>>;
|
package/lib/types/span.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "span";
|
|
3
2
|
export declare const Span: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
package/lib/types/subscript.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "sub";
|
|
3
2
|
export declare const Subscript: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "sup";
|
|
3
2
|
export declare const Superscript: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
package/lib/types/textarea.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const defaultTag = "textarea";
|
|
3
2
|
export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { defaultTag } from "./button";
|
|
3
2
|
export { defaultTag };
|
|
4
3
|
export declare const VimeoPlayButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
1
|
export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponent<Omit<{
|
|
4
2
|
slot?: string | undefined;
|
|
5
3
|
style?: import("react").CSSProperties | undefined;
|
|
@@ -48,33 +46,33 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
48
46
|
results?: number | undefined;
|
|
49
47
|
security?: string | undefined;
|
|
50
48
|
unselectable?: "on" | "off" | undefined;
|
|
51
|
-
inputMode?: "
|
|
49
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
52
50
|
is?: string | undefined;
|
|
53
51
|
"aria-activedescendant"?: string | undefined;
|
|
54
52
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
55
|
-
"aria-autocomplete"?: "
|
|
53
|
+
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
56
54
|
"aria-braillelabel"?: string | undefined;
|
|
57
55
|
"aria-brailleroledescription"?: string | undefined;
|
|
58
56
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
59
|
-
"aria-checked"?: boolean | "
|
|
57
|
+
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
60
58
|
"aria-colcount"?: number | undefined;
|
|
61
59
|
"aria-colindex"?: number | undefined;
|
|
62
60
|
"aria-colindextext"?: string | undefined;
|
|
63
61
|
"aria-colspan"?: number | undefined;
|
|
64
62
|
"aria-controls"?: string | undefined;
|
|
65
|
-
"aria-current"?: boolean | "
|
|
63
|
+
"aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
66
64
|
"aria-describedby"?: string | undefined;
|
|
67
65
|
"aria-description"?: string | undefined;
|
|
68
66
|
"aria-details"?: string | undefined;
|
|
69
67
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
70
|
-
"aria-dropeffect"?: "
|
|
68
|
+
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
71
69
|
"aria-errormessage"?: string | undefined;
|
|
72
70
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
73
71
|
"aria-flowto"?: string | undefined;
|
|
74
72
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
75
|
-
"aria-haspopup"?: boolean | "
|
|
73
|
+
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
76
74
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
77
|
-
"aria-invalid"?: boolean | "
|
|
75
|
+
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
78
76
|
"aria-keyshortcuts"?: string | undefined;
|
|
79
77
|
"aria-label"?: string | undefined;
|
|
80
78
|
"aria-labelledby"?: string | undefined;
|
|
@@ -87,9 +85,9 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
87
85
|
"aria-owns"?: string | undefined;
|
|
88
86
|
"aria-placeholder"?: string | undefined;
|
|
89
87
|
"aria-posinset"?: number | undefined;
|
|
90
|
-
"aria-pressed"?: boolean | "
|
|
88
|
+
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
91
89
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
92
|
-
"aria-relevant"?: "
|
|
90
|
+
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
93
91
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
94
92
|
"aria-roledescription"?: string | undefined;
|
|
95
93
|
"aria-rowcount"?: number | undefined;
|
|
@@ -103,7 +101,7 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
103
101
|
"aria-valuemin"?: number | undefined;
|
|
104
102
|
"aria-valuenow"?: number | undefined;
|
|
105
103
|
"aria-valuetext"?: string | undefined;
|
|
106
|
-
children?: import("react").ReactNode;
|
|
104
|
+
children?: import("react").ReactNode | undefined;
|
|
107
105
|
dangerouslySetInnerHTML?: {
|
|
108
106
|
__html: string | TrustedHTML;
|
|
109
107
|
} | undefined;
|
|
@@ -267,8 +265,8 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
267
265
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
268
266
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
269
267
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
270
|
-
height?:
|
|
271
|
-
width?:
|
|
268
|
+
height?: number | string | undefined;
|
|
269
|
+
width?: number | string | undefined;
|
|
272
270
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
273
271
|
useMap?: string | undefined;
|
|
274
272
|
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
@@ -276,9 +274,11 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
276
274
|
src?: string | undefined;
|
|
277
275
|
loading?: "eager" | "lazy" | undefined;
|
|
278
276
|
decoding?: "async" | "auto" | "sync" | undefined;
|
|
279
|
-
fetchPriority?: "high" | "low" | "auto"
|
|
277
|
+
fetchPriority?: "high" | "low" | "auto";
|
|
280
278
|
sizes?: string | undefined;
|
|
281
279
|
srcSet?: string | undefined;
|
|
282
|
-
quality?: number
|
|
283
|
-
optimize?: boolean
|
|
280
|
+
quality?: number;
|
|
281
|
+
optimize?: boolean;
|
|
282
|
+
} & {
|
|
283
|
+
$webstudio$canvasOnly$assetId?: string | undefined;
|
|
284
284
|
} & import("react").RefAttributes<HTMLImageElement>, "ref"> & import("react").RefAttributes<HTMLImageElement>>;
|
package/lib/types/vimeo.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export type VimeoOptions = Omit<VimeoPlayerOptions, "dnt" | "interactive_params"
|
|
|
65
65
|
};
|
|
66
66
|
type PlayerStatus = "initial" | "loading" | "ready";
|
|
67
67
|
export declare const VimeoContext: import("react").Context<{
|
|
68
|
-
previewImageUrl?: URL
|
|
68
|
+
previewImageUrl?: URL;
|
|
69
69
|
onInitPlayer: () => void;
|
|
70
70
|
status: PlayerStatus;
|
|
71
71
|
}>;
|
package/lib/types/xml-node.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ type Props = {
|
|
|
5
5
|
tag: string;
|
|
6
6
|
xmlns?: string;
|
|
7
7
|
children: ReactNode;
|
|
8
|
-
[idAttribute]
|
|
9
|
-
[componentAttribute]
|
|
8
|
+
[idAttribute]?: string;
|
|
9
|
+
[componentAttribute]?: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const XmlNode: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.174.0",
|
|
4
4
|
"description": "Webstudio default library for react",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"webstudio": "./src/props.ts",
|
|
28
28
|
"types": "./lib/types/props.d.ts",
|
|
29
29
|
"import": "./lib/props.js"
|
|
30
|
+
},
|
|
31
|
+
"./hooks": {
|
|
32
|
+
"webstudio": "./src/hooks.ts",
|
|
33
|
+
"types": "./lib/types/hooks.d.ts",
|
|
34
|
+
"import": "./lib/hooks.js"
|
|
30
35
|
}
|
|
31
36
|
},
|
|
32
37
|
"peerDependencies": {
|
|
@@ -36,31 +41,28 @@
|
|
|
36
41
|
"dependencies": {
|
|
37
42
|
"@react-aria/utils": "^3.21.0",
|
|
38
43
|
"colord": "^2.9.3",
|
|
39
|
-
"@webstudio-is/icons": "0.
|
|
40
|
-
"@webstudio-is/image": "0.
|
|
41
|
-
"@webstudio-is/react-sdk": "0.
|
|
44
|
+
"@webstudio-is/icons": "0.174.0",
|
|
45
|
+
"@webstudio-is/image": "0.174.0",
|
|
46
|
+
"@webstudio-is/react-sdk": "0.174.0"
|
|
42
47
|
},
|
|
43
48
|
"devDependencies": {
|
|
44
49
|
"@jest/globals": "^29.7.0",
|
|
45
|
-
"@testing-library/jest-dom": "^6.4.2",
|
|
46
50
|
"@testing-library/react": "^14.2.2",
|
|
47
51
|
"@types/react": "^18.2.70",
|
|
48
52
|
"@types/react-dom": "^18.2.25",
|
|
49
53
|
"jest-environment-jsdom": "^29.7.0",
|
|
50
54
|
"react": "18.3.0-canary-14898b6a9-20240318",
|
|
51
55
|
"react-dom": "18.3.0-canary-14898b6a9-20240318",
|
|
52
|
-
"typescript": "5.
|
|
56
|
+
"typescript": "5.5.2",
|
|
53
57
|
"@webstudio-is/generate-arg-types": "0.0.0",
|
|
54
|
-
"@webstudio-is/
|
|
55
|
-
"@webstudio-is/
|
|
58
|
+
"@webstudio-is/jest-config": "1.0.7",
|
|
59
|
+
"@webstudio-is/tsconfig": "1.0.7"
|
|
56
60
|
},
|
|
57
61
|
"scripts": {
|
|
58
|
-
"dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
|
|
59
62
|
"build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts --outdir=lib --bundle --format=esm --packages=external",
|
|
60
63
|
"build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.ts' && prettier --write \"**/*.props.ts\"",
|
|
61
64
|
"dts": "tsc --project tsconfig.dts.json",
|
|
62
65
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
63
|
-
"typecheck": "tsc"
|
|
64
|
-
"checks": "pnpm typecheck"
|
|
66
|
+
"typecheck": "tsc"
|
|
65
67
|
}
|
|
66
68
|
}
|