@webstudio-is/sdk-components-react 0.102.0 → 0.103.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 +73 -84
- package/lib/metas.js +1 -57
- package/lib/props.js +1 -15
- package/lib/types/vimeo-preview-image.d.ts +3 -3
- package/package.json +6 -6
package/lib/components.js
CHANGED
|
@@ -105,99 +105,97 @@ var Box = forwardRef5(
|
|
|
105
105
|
Box.displayName = "Box";
|
|
106
106
|
|
|
107
107
|
// src/text.tsx
|
|
108
|
-
import {
|
|
109
|
-
|
|
110
|
-
forwardRef as forwardRef6
|
|
111
|
-
} from "react";
|
|
108
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
109
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
112
110
|
var defaultTag2 = "div";
|
|
113
111
|
var Text = forwardRef6(
|
|
114
|
-
({ tag = defaultTag2, ...props }, ref) => {
|
|
115
|
-
return
|
|
112
|
+
({ tag: Tag = defaultTag2, children, ...props }, ref) => {
|
|
113
|
+
return /* @__PURE__ */ jsx5(Tag, { ...props, ref, children });
|
|
116
114
|
}
|
|
117
115
|
);
|
|
118
116
|
Text.displayName = "Text";
|
|
119
117
|
|
|
120
118
|
// src/heading.tsx
|
|
121
|
-
import {
|
|
122
|
-
|
|
123
|
-
createElement as createElement3
|
|
124
|
-
} from "react";
|
|
119
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
120
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
125
121
|
var defaultTag3 = "h1";
|
|
126
122
|
var Heading = forwardRef7(
|
|
127
|
-
({ tag = defaultTag3, ...props }, ref) => {
|
|
128
|
-
return
|
|
123
|
+
({ tag: Tag = defaultTag3, children, ...props }, ref) => {
|
|
124
|
+
return /* @__PURE__ */ jsx6(Tag, { ...props, ref, children: children ?? "Heading you can edit" });
|
|
129
125
|
}
|
|
130
126
|
);
|
|
131
127
|
Heading.displayName = "Heading";
|
|
132
128
|
|
|
133
129
|
// src/paragraph.tsx
|
|
134
130
|
import { forwardRef as forwardRef8 } from "react";
|
|
135
|
-
import { jsx as
|
|
136
|
-
var Paragraph = forwardRef8((props, ref) => /* @__PURE__ */
|
|
131
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
132
|
+
var Paragraph = forwardRef8(({ children, ...props }, ref) => /* @__PURE__ */ jsx7("p", { ...props, ref, children: children ?? "Paragraph you can edit" }));
|
|
137
133
|
Paragraph.displayName = "Paragraph";
|
|
138
134
|
|
|
139
135
|
// src/link.tsx
|
|
140
136
|
import { forwardRef as forwardRef9 } from "react";
|
|
141
|
-
import { jsx as
|
|
142
|
-
var Link = forwardRef9(
|
|
143
|
-
|
|
144
|
-
});
|
|
137
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
138
|
+
var Link = forwardRef9(
|
|
139
|
+
({ children, ...props }, ref) => {
|
|
140
|
+
return /* @__PURE__ */ jsx8("a", { ...props, href: props.href ?? "#", ref, children: children ?? "Link text you can edit" });
|
|
141
|
+
}
|
|
142
|
+
);
|
|
145
143
|
Link.displayName = "Link";
|
|
146
144
|
|
|
147
145
|
// src/rich-text-link.tsx
|
|
148
146
|
import { forwardRef as forwardRef10 } from "react";
|
|
149
|
-
import { jsx as
|
|
150
|
-
var RichTextLink = forwardRef10((props, ref) => /* @__PURE__ */
|
|
147
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
148
|
+
var RichTextLink = forwardRef10((props, ref) => /* @__PURE__ */ jsx9(Link, { ...props, ref }));
|
|
151
149
|
RichTextLink.displayName = "RichTextLink";
|
|
152
150
|
|
|
153
151
|
// src/span.tsx
|
|
154
152
|
import { forwardRef as forwardRef11 } from "react";
|
|
155
|
-
import { jsx as
|
|
156
|
-
var Span = forwardRef11((props, ref) => /* @__PURE__ */
|
|
153
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
154
|
+
var Span = forwardRef11((props, ref) => /* @__PURE__ */ jsx10("span", { ...props, ref }));
|
|
157
155
|
Span.displayName = "Span";
|
|
158
156
|
|
|
159
157
|
// src/bold.tsx
|
|
160
158
|
import { forwardRef as forwardRef12 } from "react";
|
|
161
|
-
import { jsx as
|
|
162
|
-
var Bold = forwardRef12((props, ref) => /* @__PURE__ */
|
|
159
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
160
|
+
var Bold = forwardRef12((props, ref) => /* @__PURE__ */ jsx11("b", { ...props, ref }));
|
|
163
161
|
Bold.displayName = "Bold";
|
|
164
162
|
|
|
165
163
|
// src/italic.tsx
|
|
166
164
|
import { forwardRef as forwardRef13 } from "react";
|
|
167
|
-
import { jsx as
|
|
168
|
-
var Italic = forwardRef13((props, ref) => /* @__PURE__ */
|
|
165
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
166
|
+
var Italic = forwardRef13((props, ref) => /* @__PURE__ */ jsx12("i", { ...props, ref }));
|
|
169
167
|
Italic.displayName = "Italic";
|
|
170
168
|
|
|
171
169
|
// src/superscript.tsx
|
|
172
170
|
import { forwardRef as forwardRef14 } from "react";
|
|
173
|
-
import { jsx as
|
|
174
|
-
var Superscript = forwardRef14((props, ref) => /* @__PURE__ */
|
|
171
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
172
|
+
var Superscript = forwardRef14((props, ref) => /* @__PURE__ */ jsx13("sup", { ...props, ref }));
|
|
175
173
|
Superscript.displayName = "Bold";
|
|
176
174
|
|
|
177
175
|
// src/subscript.tsx
|
|
178
176
|
import { forwardRef as forwardRef15 } from "react";
|
|
179
|
-
import { jsx as
|
|
180
|
-
var Subscript = forwardRef15((props, ref) => /* @__PURE__ */
|
|
177
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
178
|
+
var Subscript = forwardRef15((props, ref) => /* @__PURE__ */ jsx14("sub", { ...props, ref }));
|
|
181
179
|
Subscript.displayName = "Subscript";
|
|
182
180
|
|
|
183
181
|
// src/button.tsx
|
|
184
182
|
import { forwardRef as forwardRef16 } from "react";
|
|
185
|
-
import { jsx as
|
|
183
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
186
184
|
var Button = forwardRef16(
|
|
187
|
-
({ type = "submit", children, ...props }, ref) => /* @__PURE__ */
|
|
185
|
+
({ type = "submit", children, ...props }, ref) => /* @__PURE__ */ jsx15("button", { type, ...props, ref, children: children ?? "Button you can edit" })
|
|
188
186
|
);
|
|
189
187
|
Button.displayName = "Button";
|
|
190
188
|
|
|
191
189
|
// src/input.tsx
|
|
192
190
|
import { forwardRef as forwardRef17 } from "react";
|
|
193
|
-
import { jsx as
|
|
194
|
-
var Input = forwardRef17(({ children: _children, ...props }, ref) => /* @__PURE__ */
|
|
191
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
192
|
+
var Input = forwardRef17(({ children: _children, ...props }, ref) => /* @__PURE__ */ jsx16("input", { ...props, ref }));
|
|
195
193
|
Input.displayName = "Input";
|
|
196
194
|
|
|
197
195
|
// src/form.tsx
|
|
198
196
|
import { forwardRef as forwardRef18 } from "react";
|
|
199
|
-
import { jsx as
|
|
200
|
-
var Form = forwardRef18(({ children, ...props }, ref) => /* @__PURE__ */
|
|
197
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
198
|
+
var Form = forwardRef18(({ children, ...props }, ref) => /* @__PURE__ */ jsx17("form", { ...props, ref, children }));
|
|
201
199
|
Form.displayName = "Form";
|
|
202
200
|
|
|
203
201
|
// src/image.tsx
|
|
@@ -207,7 +205,7 @@ import {
|
|
|
207
205
|
} from "react";
|
|
208
206
|
import { Image as WebstudioImage } from "@webstudio-is/image";
|
|
209
207
|
import { ReactSdkContext as ReactSdkContext2 } from "@webstudio-is/react-sdk";
|
|
210
|
-
import { jsx as
|
|
208
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
211
209
|
var imagePlaceholderSvg = `data:image/svg+xml;base64,${btoa(`<svg
|
|
212
210
|
width="140"
|
|
213
211
|
height="140"
|
|
@@ -235,7 +233,7 @@ var Image = forwardRef19(
|
|
|
235
233
|
({ loading = "lazy", ...props }, ref) => {
|
|
236
234
|
const { imageLoader, assetBaseUrl } = useContext2(ReactSdkContext2);
|
|
237
235
|
if (props.src === void 0 || props.src.startsWith(assetBaseUrl) === false) {
|
|
238
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ jsx18(
|
|
239
237
|
"img",
|
|
240
238
|
{
|
|
241
239
|
loading,
|
|
@@ -247,7 +245,7 @@ var Image = forwardRef19(
|
|
|
247
245
|
);
|
|
248
246
|
}
|
|
249
247
|
const src = props.src.slice(assetBaseUrl.length);
|
|
250
|
-
return /* @__PURE__ */
|
|
248
|
+
return /* @__PURE__ */ jsx18(
|
|
251
249
|
WebstudioImage,
|
|
252
250
|
{
|
|
253
251
|
loading,
|
|
@@ -263,14 +261,11 @@ var Image = forwardRef19(
|
|
|
263
261
|
Image.displayName = "Image";
|
|
264
262
|
|
|
265
263
|
// src/blockquote.tsx
|
|
266
|
-
import {
|
|
267
|
-
|
|
268
|
-
createElement as createElement4
|
|
269
|
-
} from "react";
|
|
270
|
-
var defaultTag4 = "blockquote";
|
|
264
|
+
import { forwardRef as forwardRef20 } from "react";
|
|
265
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
271
266
|
var Blockquote = forwardRef20(
|
|
272
|
-
(props, ref) => {
|
|
273
|
-
return
|
|
267
|
+
({ children, ...props }, ref) => {
|
|
268
|
+
return /* @__PURE__ */ jsx19("blockquote", { ...props, ref, children: children ?? "Blockquote you can edit" });
|
|
274
269
|
}
|
|
275
270
|
);
|
|
276
271
|
Blockquote.displayName = "Blockquote";
|
|
@@ -278,25 +273,22 @@ Blockquote.displayName = "Blockquote";
|
|
|
278
273
|
// src/list.tsx
|
|
279
274
|
import {
|
|
280
275
|
forwardRef as forwardRef21,
|
|
281
|
-
createElement as
|
|
276
|
+
createElement as createElement2
|
|
282
277
|
} from "react";
|
|
283
278
|
var unorderedTag = "ul";
|
|
284
279
|
var orderedTag = "ol";
|
|
285
280
|
var List = forwardRef21(({ ordered = false, ...props }, ref) => {
|
|
286
281
|
const tag = ordered ? orderedTag : unorderedTag;
|
|
287
|
-
return
|
|
282
|
+
return createElement2(tag, { ...props, ref });
|
|
288
283
|
});
|
|
289
284
|
List.displayName = "List";
|
|
290
285
|
|
|
291
286
|
// src/list-item.tsx
|
|
292
|
-
import {
|
|
293
|
-
|
|
294
|
-
createElement as createElement6
|
|
295
|
-
} from "react";
|
|
296
|
-
var defaultTag5 = "li";
|
|
287
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
288
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
297
289
|
var ListItem = forwardRef22(
|
|
298
|
-
(props, ref) => {
|
|
299
|
-
return
|
|
290
|
+
({ children, ...props }, ref) => {
|
|
291
|
+
return /* @__PURE__ */ jsx20("li", { ...props, ref, children: children ?? "List Item you can edit" });
|
|
300
292
|
}
|
|
301
293
|
);
|
|
302
294
|
ListItem.displayName = "ListItem";
|
|
@@ -304,49 +296,46 @@ ListItem.displayName = "ListItem";
|
|
|
304
296
|
// src/separator.tsx
|
|
305
297
|
import {
|
|
306
298
|
forwardRef as forwardRef23,
|
|
307
|
-
createElement as
|
|
299
|
+
createElement as createElement3
|
|
308
300
|
} from "react";
|
|
309
|
-
var
|
|
301
|
+
var defaultTag4 = "hr";
|
|
310
302
|
var Separator = forwardRef23(
|
|
311
303
|
(props, ref) => {
|
|
312
|
-
return
|
|
304
|
+
return createElement3(defaultTag4, { ...props, ref });
|
|
313
305
|
}
|
|
314
306
|
);
|
|
315
307
|
Separator.displayName = "Separator";
|
|
316
308
|
|
|
317
309
|
// src/code-text.tsx
|
|
318
|
-
import {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
var defaultTag7 = "code";
|
|
323
|
-
var CodeText = forwardRef24((props, ref) => {
|
|
324
|
-
return createElement8(defaultTag7, { ...props, ref });
|
|
310
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
311
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
312
|
+
var CodeText = forwardRef24(({ children, ...props }, ref) => {
|
|
313
|
+
return /* @__PURE__ */ jsx21("code", { ...props, ref, children: children ?? "Code you can edit" });
|
|
325
314
|
});
|
|
326
315
|
CodeText.displayName = "CodeText";
|
|
327
316
|
|
|
328
317
|
// src/label.tsx
|
|
329
318
|
import { forwardRef as forwardRef25 } from "react";
|
|
330
|
-
import { jsx as
|
|
331
|
-
var Label = forwardRef25((props, ref) => /* @__PURE__ */
|
|
319
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
320
|
+
var Label = forwardRef25((props, ref) => /* @__PURE__ */ jsx22("label", { ...props, ref }));
|
|
332
321
|
Label.displayName = "Label";
|
|
333
322
|
|
|
334
323
|
// src/textarea.tsx
|
|
335
324
|
import { forwardRef as forwardRef26 } from "react";
|
|
336
|
-
import { jsx as
|
|
337
|
-
var Textarea = forwardRef26(({ children: _children, ...props }, ref) => /* @__PURE__ */
|
|
325
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
326
|
+
var Textarea = forwardRef26(({ children: _children, ...props }, ref) => /* @__PURE__ */ jsx23("textarea", { ...props, ref }));
|
|
338
327
|
Textarea.displayName = "Textarea";
|
|
339
328
|
|
|
340
329
|
// src/radio-button.tsx
|
|
341
330
|
import { forwardRef as forwardRef27 } from "react";
|
|
342
|
-
import { jsx as
|
|
343
|
-
var RadioButton = forwardRef27(({ children: _children, ...props }, ref) => /* @__PURE__ */
|
|
331
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
332
|
+
var RadioButton = forwardRef27(({ children: _children, ...props }, ref) => /* @__PURE__ */ jsx24("input", { ...props, type: "radio", ref }));
|
|
344
333
|
RadioButton.displayName = "RadioButton";
|
|
345
334
|
|
|
346
335
|
// src/checkbox.tsx
|
|
347
336
|
import { forwardRef as forwardRef28 } from "react";
|
|
348
|
-
import { jsx as
|
|
349
|
-
var Checkbox = forwardRef28(({ children: _children, ...props }, ref) => /* @__PURE__ */
|
|
337
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
338
|
+
var Checkbox = forwardRef28(({ children: _children, ...props }, ref) => /* @__PURE__ */ jsx25("input", { ...props, type: "checkbox", ref }));
|
|
350
339
|
Checkbox.displayName = "Checkbox";
|
|
351
340
|
|
|
352
341
|
// src/vimeo.tsx
|
|
@@ -362,7 +351,7 @@ import {
|
|
|
362
351
|
} from "react";
|
|
363
352
|
import { ReactSdkContext as ReactSdkContext3 } from "@webstudio-is/react-sdk";
|
|
364
353
|
import { shallowEqual } from "shallow-equal";
|
|
365
|
-
import { jsx as
|
|
354
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
366
355
|
var getUrl = (options) => {
|
|
367
356
|
if (options.url === void 0) {
|
|
368
357
|
return;
|
|
@@ -570,7 +559,7 @@ var Vimeo = forwardRef29(
|
|
|
570
559
|
dnt: doNotTrack
|
|
571
560
|
}
|
|
572
561
|
});
|
|
573
|
-
return /* @__PURE__ */
|
|
562
|
+
return /* @__PURE__ */ jsx26(
|
|
574
563
|
VimeoContext.Provider,
|
|
575
564
|
{
|
|
576
565
|
value: {
|
|
@@ -582,7 +571,7 @@ var Vimeo = forwardRef29(
|
|
|
582
571
|
}
|
|
583
572
|
}
|
|
584
573
|
},
|
|
585
|
-
children: /* @__PURE__ */
|
|
574
|
+
children: /* @__PURE__ */ jsx26(
|
|
586
575
|
"div",
|
|
587
576
|
{
|
|
588
577
|
...rest,
|
|
@@ -597,7 +586,7 @@ var Vimeo = forwardRef29(
|
|
|
597
586
|
warmConnections();
|
|
598
587
|
}
|
|
599
588
|
},
|
|
600
|
-
children: url === void 0 ? /* @__PURE__ */
|
|
589
|
+
children: url === void 0 ? /* @__PURE__ */ jsx26(EmptyState, {}) : children
|
|
601
590
|
}
|
|
602
591
|
)
|
|
603
592
|
}
|
|
@@ -606,7 +595,7 @@ var Vimeo = forwardRef29(
|
|
|
606
595
|
);
|
|
607
596
|
Vimeo.displayName = "Vimeo";
|
|
608
597
|
var EmptyState = () => {
|
|
609
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ jsx26(
|
|
610
599
|
"div",
|
|
611
600
|
{
|
|
612
601
|
style: {
|
|
@@ -633,11 +622,11 @@ import {
|
|
|
633
622
|
forwardRef as forwardRef30,
|
|
634
623
|
useContext as useContext4
|
|
635
624
|
} from "react";
|
|
636
|
-
import { jsx as
|
|
625
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
637
626
|
var base64Preview = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkOAMAANIAzr59FiYAAAAASUVORK5CYII=`;
|
|
638
627
|
var VimeoPreviewImage = forwardRef30(({ src, ...rest }, ref) => {
|
|
639
628
|
const vimeoContext = useContext4(VimeoContext);
|
|
640
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ jsx27(
|
|
641
630
|
Image,
|
|
642
631
|
{
|
|
643
632
|
...rest,
|
|
@@ -653,14 +642,14 @@ import {
|
|
|
653
642
|
forwardRef as forwardRef31,
|
|
654
643
|
useContext as useContext5
|
|
655
644
|
} from "react";
|
|
656
|
-
import { jsx as
|
|
645
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
657
646
|
var VimeoPlayButton = forwardRef31(
|
|
658
647
|
(props, ref) => {
|
|
659
648
|
const vimeoContext = useContext5(VimeoContext);
|
|
660
649
|
if (vimeoContext.status !== "initial") {
|
|
661
650
|
return null;
|
|
662
651
|
}
|
|
663
|
-
return /* @__PURE__ */
|
|
652
|
+
return /* @__PURE__ */ jsx28(Button, { ...props, onClick: vimeoContext.onInitPlayer, ref });
|
|
664
653
|
}
|
|
665
654
|
);
|
|
666
655
|
VimeoPlayButton.displayName = "VimeoPlayButton";
|
|
@@ -670,14 +659,14 @@ import {
|
|
|
670
659
|
forwardRef as forwardRef32,
|
|
671
660
|
useContext as useContext6
|
|
672
661
|
} from "react";
|
|
673
|
-
import { jsx as
|
|
662
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
674
663
|
var VimeoSpinner = forwardRef32(
|
|
675
664
|
(props, ref) => {
|
|
676
665
|
const vimeoContext = useContext6(VimeoContext);
|
|
677
666
|
if (vimeoContext.status !== "initialized") {
|
|
678
667
|
return null;
|
|
679
668
|
}
|
|
680
|
-
return /* @__PURE__ */
|
|
669
|
+
return /* @__PURE__ */ jsx29("div", { ...props, ref });
|
|
681
670
|
}
|
|
682
671
|
);
|
|
683
672
|
VimeoSpinner.displayName = "VimeoSpinner";
|
package/lib/metas.js
CHANGED
|
@@ -149,13 +149,6 @@ var meta6 = {
|
|
|
149
149
|
icon: TextIcon,
|
|
150
150
|
states: defaultStates3,
|
|
151
151
|
presetStyle: presetStyle3,
|
|
152
|
-
template: [
|
|
153
|
-
{
|
|
154
|
-
type: "instance",
|
|
155
|
-
component: "Text",
|
|
156
|
-
children: [{ type: "text", value: "The text you can edit" }]
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
152
|
order: 0
|
|
160
153
|
};
|
|
161
154
|
|
|
@@ -182,13 +175,6 @@ var meta7 = {
|
|
|
182
175
|
invalidAncestors: ["Heading"],
|
|
183
176
|
states: defaultStates4,
|
|
184
177
|
presetStyle: presetStyle4,
|
|
185
|
-
template: [
|
|
186
|
-
{
|
|
187
|
-
type: "instance",
|
|
188
|
-
component: "Heading",
|
|
189
|
-
children: [{ type: "text", value: "Heading you can edit" }]
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
178
|
order: 1
|
|
193
179
|
};
|
|
194
180
|
|
|
@@ -210,13 +196,6 @@ var meta8 = {
|
|
|
210
196
|
invalidAncestors: ["Paragraph"],
|
|
211
197
|
states: defaultStates5,
|
|
212
198
|
presetStyle: presetStyle5,
|
|
213
|
-
template: [
|
|
214
|
-
{
|
|
215
|
-
type: "instance",
|
|
216
|
-
component: "Paragraph",
|
|
217
|
-
children: [{ type: "text", value: "Paragraph you can edit" }]
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
199
|
order: 2
|
|
221
200
|
};
|
|
222
201
|
|
|
@@ -824,13 +803,6 @@ var meta9 = {
|
|
|
824
803
|
selector: "[aria-current=page]",
|
|
825
804
|
label: "Current page"
|
|
826
805
|
}
|
|
827
|
-
],
|
|
828
|
-
template: [
|
|
829
|
-
{
|
|
830
|
-
type: "instance",
|
|
831
|
-
component: "Link",
|
|
832
|
-
children: [{ type: "text", value: "Link text you can edit" }]
|
|
833
|
-
}
|
|
834
806
|
]
|
|
835
807
|
};
|
|
836
808
|
var propsMeta2 = {
|
|
@@ -966,14 +938,7 @@ var meta16 = {
|
|
|
966
938
|
{ selector: ":disabled", label: "Disabled" },
|
|
967
939
|
{ selector: ":enabled", label: "Enabled" }
|
|
968
940
|
],
|
|
969
|
-
order: 1
|
|
970
|
-
template: [
|
|
971
|
-
{
|
|
972
|
-
type: "instance",
|
|
973
|
-
component: "Button",
|
|
974
|
-
children: [{ type: "text", value: "Button you can edit" }]
|
|
975
|
-
}
|
|
976
|
-
]
|
|
941
|
+
order: 1
|
|
977
942
|
};
|
|
978
943
|
|
|
979
944
|
// src/input.ws.tsx
|
|
@@ -1767,13 +1732,6 @@ var meta20 = {
|
|
|
1767
1732
|
icon: BlockquoteIcon,
|
|
1768
1733
|
states: defaultStates16,
|
|
1769
1734
|
presetStyle: presetStyle16,
|
|
1770
|
-
template: [
|
|
1771
|
-
{
|
|
1772
|
-
type: "instance",
|
|
1773
|
-
component: "Blockquote",
|
|
1774
|
-
children: [{ type: "text", value: "Blockquote you can edit" }]
|
|
1775
|
-
}
|
|
1776
|
-
],
|
|
1777
1735
|
order: 3
|
|
1778
1736
|
};
|
|
1779
1737
|
|
|
@@ -1844,13 +1802,6 @@ var meta22 = {
|
|
|
1844
1802
|
icon: ListItemIcon,
|
|
1845
1803
|
states: defaultStates18,
|
|
1846
1804
|
presetStyle: presetStyle18,
|
|
1847
|
-
template: [
|
|
1848
|
-
{
|
|
1849
|
-
type: "instance",
|
|
1850
|
-
component: "ListItem",
|
|
1851
|
-
children: [{ type: "text", value: "List Item you can edit" }]
|
|
1852
|
-
}
|
|
1853
|
-
],
|
|
1854
1805
|
order: 4
|
|
1855
1806
|
};
|
|
1856
1807
|
|
|
@@ -1940,13 +1891,6 @@ var meta24 = {
|
|
|
1940
1891
|
invalidAncestors: ["CodeText"],
|
|
1941
1892
|
states: defaultStates20,
|
|
1942
1893
|
presetStyle: presetStyle20,
|
|
1943
|
-
template: [
|
|
1944
|
-
{
|
|
1945
|
-
type: "instance",
|
|
1946
|
-
component: "CodeText",
|
|
1947
|
-
children: [{ type: "text", value: "Code you can edit" }]
|
|
1948
|
-
}
|
|
1949
|
-
],
|
|
1950
1894
|
order: 8
|
|
1951
1895
|
};
|
|
1952
1896
|
|
package/lib/props.js
CHANGED
|
@@ -3323,13 +3323,6 @@ var meta = {
|
|
|
3323
3323
|
selector: "[aria-current=page]",
|
|
3324
3324
|
label: "Current page"
|
|
3325
3325
|
}
|
|
3326
|
-
],
|
|
3327
|
-
template: [
|
|
3328
|
-
{
|
|
3329
|
-
type: "instance",
|
|
3330
|
-
component: "Link",
|
|
3331
|
-
children: [{ type: "text", value: "Link text you can edit" }]
|
|
3332
|
-
}
|
|
3333
3326
|
]
|
|
3334
3327
|
};
|
|
3335
3328
|
var propsMeta9 = {
|
|
@@ -6561,14 +6554,7 @@ var meta3 = {
|
|
|
6561
6554
|
{ selector: ":disabled", label: "Disabled" },
|
|
6562
6555
|
{ selector: ":enabled", label: "Enabled" }
|
|
6563
6556
|
],
|
|
6564
|
-
order: 1
|
|
6565
|
-
template: [
|
|
6566
|
-
{
|
|
6567
|
-
type: "instance",
|
|
6568
|
-
component: "Button",
|
|
6569
|
-
children: [{ type: "text", value: "Button you can edit" }]
|
|
6570
|
-
}
|
|
6571
|
-
]
|
|
6557
|
+
order: 1
|
|
6572
6558
|
};
|
|
6573
6559
|
var propsMeta16 = {
|
|
6574
6560
|
props: props13,
|
|
@@ -63,12 +63,12 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
63
63
|
'aria-colindextext'?: string | undefined;
|
|
64
64
|
'aria-colspan'?: number | undefined;
|
|
65
65
|
'aria-controls'?: string | undefined;
|
|
66
|
-
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "
|
|
66
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "date" | "step" | "location" | undefined;
|
|
67
67
|
'aria-describedby'?: string | undefined;
|
|
68
68
|
'aria-description'?: string | undefined;
|
|
69
69
|
'aria-details'?: string | undefined;
|
|
70
70
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
71
|
-
'aria-dropeffect'?: "link" | "none" | "
|
|
71
|
+
'aria-dropeffect'?: "link" | "none" | "execute" | "copy" | "move" | "popup" | undefined;
|
|
72
72
|
'aria-errormessage'?: string | undefined;
|
|
73
73
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
74
74
|
'aria-flowto'?: string | undefined;
|
|
@@ -90,7 +90,7 @@ export declare const VimeoPreviewImage: import("react").ForwardRefExoticComponen
|
|
|
90
90
|
'aria-posinset'?: number | undefined;
|
|
91
91
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
92
92
|
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
93
|
-
'aria-relevant'?: "text" | "
|
|
93
|
+
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
94
94
|
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
95
95
|
'aria-roledescription'?: string | undefined;
|
|
96
96
|
'aria-rowcount'?: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.103.0",
|
|
4
4
|
"description": "Webstudio default library for react",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@react-aria/utils": "^3.19.0",
|
|
41
41
|
"colord": "^2.9.3",
|
|
42
42
|
"shallow-equal": "^3.1.0",
|
|
43
|
-
"@webstudio-is/css-vars": "0.
|
|
44
|
-
"@webstudio-is/icons": "0.
|
|
45
|
-
"@webstudio-is/image": "0.
|
|
46
|
-
"@webstudio-is/react-sdk": "0.
|
|
43
|
+
"@webstudio-is/css-vars": "0.103.0",
|
|
44
|
+
"@webstudio-is/icons": "0.103.0",
|
|
45
|
+
"@webstudio-is/image": "0.103.0",
|
|
46
|
+
"@webstudio-is/react-sdk": "0.103.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@storybook/react": "^7.4.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"typescript": "5.2.2",
|
|
55
|
-
"@webstudio-is/generate-arg-types": "0.
|
|
55
|
+
"@webstudio-is/generate-arg-types": "0.103.0",
|
|
56
56
|
"@webstudio-is/storybook-config": "0.0.0",
|
|
57
57
|
"@webstudio-is/tsconfig": "1.0.7"
|
|
58
58
|
},
|