@webstudio-is/react-sdk 0.182.0 → 0.185.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.
@@ -1,12 +1,160 @@
1
1
  import type { WsComponentMeta } from "./components/component-meta";
2
+ export declare const rootComponent = "ws:root";
2
3
  export declare const portalComponent = "Slot";
3
4
  export declare const collectionComponent = "ws:collection";
4
5
  export declare const descendantComponent = "ws:descendant";
5
6
  export declare const coreMetas: {
7
+ "ws:root": WsComponentMeta;
6
8
  "ws:collection": WsComponentMeta;
7
9
  "ws:descendant": WsComponentMeta;
8
10
  };
9
11
  export declare const corePropsMetas: {
12
+ "ws:root": {
13
+ props: Record<string, {
14
+ type: "number";
15
+ required: boolean;
16
+ control: "number";
17
+ defaultValue?: number | undefined;
18
+ label?: string | undefined;
19
+ description?: string | undefined;
20
+ } | {
21
+ type: "number";
22
+ required: boolean;
23
+ control: "range";
24
+ defaultValue?: number | undefined;
25
+ label?: string | undefined;
26
+ description?: string | undefined;
27
+ } | {
28
+ type: "string";
29
+ required: boolean;
30
+ control: "text";
31
+ defaultValue?: string | undefined;
32
+ rows?: number | undefined;
33
+ label?: string | undefined;
34
+ description?: string | undefined;
35
+ } | {
36
+ type: "string";
37
+ required: boolean;
38
+ language: "html" | "markdown";
39
+ control: "code";
40
+ defaultValue?: string | undefined;
41
+ label?: string | undefined;
42
+ description?: string | undefined;
43
+ } | {
44
+ type: "string";
45
+ required: boolean;
46
+ control: "codetext";
47
+ defaultValue?: string | undefined;
48
+ label?: string | undefined;
49
+ description?: string | undefined;
50
+ } | {
51
+ type: "string";
52
+ required: boolean;
53
+ control: "color";
54
+ defaultValue?: string | undefined;
55
+ label?: string | undefined;
56
+ description?: string | undefined;
57
+ } | {
58
+ type: "boolean";
59
+ required: boolean;
60
+ control: "boolean";
61
+ defaultValue?: boolean | undefined;
62
+ label?: string | undefined;
63
+ description?: string | undefined;
64
+ } | {
65
+ options: string[];
66
+ type: "string";
67
+ required: boolean;
68
+ control: "radio";
69
+ defaultValue?: string | undefined;
70
+ label?: string | undefined;
71
+ description?: string | undefined;
72
+ } | {
73
+ options: string[];
74
+ type: "string";
75
+ required: boolean;
76
+ control: "inline-radio";
77
+ defaultValue?: string | undefined;
78
+ label?: string | undefined;
79
+ description?: string | undefined;
80
+ } | {
81
+ options: string[];
82
+ type: "string";
83
+ required: boolean;
84
+ control: "select";
85
+ defaultValue?: string | undefined;
86
+ label?: string | undefined;
87
+ description?: string | undefined;
88
+ } | {
89
+ options: string[];
90
+ type: "string[]";
91
+ required: boolean;
92
+ control: "check";
93
+ defaultValue?: string[] | undefined;
94
+ label?: string | undefined;
95
+ description?: string | undefined;
96
+ } | {
97
+ options: string[];
98
+ type: "string[]";
99
+ required: boolean;
100
+ control: "inline-check";
101
+ defaultValue?: string[] | undefined;
102
+ label?: string | undefined;
103
+ description?: string | undefined;
104
+ } | {
105
+ options: string[];
106
+ type: "string[]";
107
+ required: boolean;
108
+ control: "multi-select";
109
+ defaultValue?: string[] | undefined;
110
+ label?: string | undefined;
111
+ description?: string | undefined;
112
+ } | {
113
+ type: "string";
114
+ required: boolean;
115
+ control: "file";
116
+ defaultValue?: string | undefined;
117
+ accept?: string | undefined;
118
+ label?: string | undefined;
119
+ description?: string | undefined;
120
+ } | {
121
+ type: "string";
122
+ required: boolean;
123
+ control: "url";
124
+ defaultValue?: string | undefined;
125
+ label?: string | undefined;
126
+ description?: string | undefined;
127
+ } | {
128
+ type: "json";
129
+ required: boolean;
130
+ control: "json";
131
+ defaultValue?: unknown;
132
+ label?: string | undefined;
133
+ description?: string | undefined;
134
+ } | {
135
+ type: "string";
136
+ required: boolean;
137
+ control: "date";
138
+ defaultValue?: string | undefined;
139
+ label?: string | undefined;
140
+ description?: string | undefined;
141
+ } | {
142
+ type: "action";
143
+ required: boolean;
144
+ control: "action";
145
+ defaultValue?: undefined;
146
+ label?: string | undefined;
147
+ description?: string | undefined;
148
+ } | {
149
+ type: "string";
150
+ required: boolean;
151
+ control: "textContent";
152
+ defaultValue?: string | undefined;
153
+ label?: string | undefined;
154
+ description?: string | undefined;
155
+ }>;
156
+ initialProps?: string[] | undefined;
157
+ };
10
158
  "ws:collection": {
11
159
  props: Record<string, {
12
160
  type: "number";
@@ -300,4 +448,4 @@ export declare const corePropsMetas: {
300
448
  initialProps?: string[] | undefined;
301
449
  };
302
450
  };
303
- export declare const isCoreComponent: (component: string) => component is "ws:collection" | "ws:descendant";
451
+ export declare const isCoreComponent: (component: string) => component is "ws:root" | "ws:collection" | "ws:descendant";