@webstudio-is/sdk-components-react 0.194.0 → 0.195.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/__generated__/link.props.js +10 -0
- package/lib/__generated__/webhook-form.props.js +569 -0
- package/lib/__generated__/xml-node.props.js +17 -3
- package/lib/components.js +44 -44
- package/lib/link.ws.js +1 -1
- package/lib/metas.js +41 -40
- package/lib/props.js +41 -40
- package/lib/types/__generated__/webhook-form.props.d.ts +2 -0
- package/lib/types/components.d.ts +1 -1
- package/lib/types/link.d.ts +4 -0
- package/lib/types/metas.d.ts +1 -1
- package/lib/types/props.d.ts +1 -1
- package/lib/types/rich-text-link.d.ts +1 -2
- package/lib/types/webhook-form.d.ts +8 -0
- package/lib/types/webhook-form.ws.d.ts +3 -0
- package/lib/vimeo.ws.js +1 -2
- package/lib/webhook-form.js +9 -0
- package/lib/webhook-form.ws.js +127 -0
- package/package.json +5 -5
- package/lib/rich-text-link.js +0 -8
|
@@ -464,7 +464,15 @@ A hint could be a sample value or a brief description of the expected format.`,
|
|
|
464
464
|
type: "string",
|
|
465
465
|
description: "The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink."
|
|
466
466
|
},
|
|
467
|
+
prefetch: {
|
|
468
|
+
required: !1,
|
|
469
|
+
control: "select",
|
|
470
|
+
type: "string",
|
|
471
|
+
options: ["none", "intent", "render", "viewport"],
|
|
472
|
+
description: "Controls when and if the link prefetches the resources that the next page needs to make loading faster. “Intent” will prefetch when the link is hovered or focused. “Render” will prefetch when the link is rendered. “Viewport” will prefetch when the link is in the viewport. “None” will not prefetch."
|
|
473
|
+
},
|
|
467
474
|
prefix: { required: !1, control: "text", type: "string" },
|
|
475
|
+
preventScrollReset: { required: !1, control: "boolean", type: "boolean" },
|
|
468
476
|
property: { required: !1, control: "text", type: "string" },
|
|
469
477
|
radioGroup: { required: !1, control: "text", type: "string" },
|
|
470
478
|
referrerPolicy: {
|
|
@@ -490,6 +498,8 @@ A hint could be a sample value or a brief description of the expected format.`,
|
|
|
490
498
|
type: "string",
|
|
491
499
|
description: "Specifies the relationship of the target object to the link object."
|
|
492
500
|
},
|
|
501
|
+
reloadDocument: { required: !1, control: "boolean", type: "boolean" },
|
|
502
|
+
replace: { required: !1, control: "boolean", type: "boolean" },
|
|
493
503
|
resource: { required: !1, control: "text", type: "string" },
|
|
494
504
|
results: { required: !1, control: "number", type: "number" },
|
|
495
505
|
rev: { required: !1, control: "text", type: "string" },
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
about: { required: !1, control: "text", type: "string" },
|
|
3
|
+
acceptCharset: {
|
|
4
|
+
required: !1,
|
|
5
|
+
control: "text",
|
|
6
|
+
type: "string",
|
|
7
|
+
description: "List of supported charsets."
|
|
8
|
+
},
|
|
9
|
+
accessKey: {
|
|
10
|
+
required: !1,
|
|
11
|
+
control: "text",
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "Keyboard shortcut to activate or add focus to the element."
|
|
14
|
+
},
|
|
15
|
+
action: {
|
|
16
|
+
required: !1,
|
|
17
|
+
control: "text",
|
|
18
|
+
type: "string",
|
|
19
|
+
description: "The URI of a program that processes the information submitted via the form."
|
|
20
|
+
},
|
|
21
|
+
"aria-activedescendant": {
|
|
22
|
+
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
23
|
+
required: !1,
|
|
24
|
+
control: "text",
|
|
25
|
+
type: "string"
|
|
26
|
+
},
|
|
27
|
+
"aria-atomic": {
|
|
28
|
+
description: "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",
|
|
29
|
+
required: !1,
|
|
30
|
+
control: "boolean",
|
|
31
|
+
type: "boolean"
|
|
32
|
+
},
|
|
33
|
+
"aria-autocomplete": {
|
|
34
|
+
description: `Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
|
|
35
|
+
presented if they are made.`,
|
|
36
|
+
required: !1,
|
|
37
|
+
control: "select",
|
|
38
|
+
type: "string",
|
|
39
|
+
options: ["list", "none", "inline", "both"]
|
|
40
|
+
},
|
|
41
|
+
"aria-braillelabel": {
|
|
42
|
+
description: "Defines a string value that labels the current element, which is intended to be converted into Braille.",
|
|
43
|
+
required: !1,
|
|
44
|
+
control: "text",
|
|
45
|
+
type: "string"
|
|
46
|
+
},
|
|
47
|
+
"aria-brailleroledescription": {
|
|
48
|
+
description: "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.",
|
|
49
|
+
required: !1,
|
|
50
|
+
control: "text",
|
|
51
|
+
type: "string"
|
|
52
|
+
},
|
|
53
|
+
"aria-busy": { required: !1, control: "boolean", type: "boolean" },
|
|
54
|
+
"aria-checked": {
|
|
55
|
+
description: 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.',
|
|
56
|
+
required: !1,
|
|
57
|
+
control: "text",
|
|
58
|
+
type: "string"
|
|
59
|
+
},
|
|
60
|
+
"aria-colcount": {
|
|
61
|
+
description: "Defines the total number of columns in a table, grid, or treegrid.",
|
|
62
|
+
required: !1,
|
|
63
|
+
control: "number",
|
|
64
|
+
type: "number"
|
|
65
|
+
},
|
|
66
|
+
"aria-colindex": {
|
|
67
|
+
description: "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.",
|
|
68
|
+
required: !1,
|
|
69
|
+
control: "number",
|
|
70
|
+
type: "number"
|
|
71
|
+
},
|
|
72
|
+
"aria-colindextext": {
|
|
73
|
+
description: "Defines a human readable text alternative of aria-colindex.",
|
|
74
|
+
required: !1,
|
|
75
|
+
control: "text",
|
|
76
|
+
type: "string"
|
|
77
|
+
},
|
|
78
|
+
"aria-colspan": {
|
|
79
|
+
description: "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
80
|
+
required: !1,
|
|
81
|
+
control: "number",
|
|
82
|
+
type: "number"
|
|
83
|
+
},
|
|
84
|
+
"aria-controls": {
|
|
85
|
+
description: "Identifies the element (or elements) whose contents or presence are controlled by the current element.",
|
|
86
|
+
required: !1,
|
|
87
|
+
control: "text",
|
|
88
|
+
type: "string"
|
|
89
|
+
},
|
|
90
|
+
"aria-current": {
|
|
91
|
+
description: "Indicates the element that represents the current item within a container or set of related elements.",
|
|
92
|
+
required: !1,
|
|
93
|
+
control: "text",
|
|
94
|
+
type: "string"
|
|
95
|
+
},
|
|
96
|
+
"aria-describedby": {
|
|
97
|
+
description: "Identifies the element (or elements) that describes the object.",
|
|
98
|
+
required: !1,
|
|
99
|
+
control: "text",
|
|
100
|
+
type: "string"
|
|
101
|
+
},
|
|
102
|
+
"aria-description": {
|
|
103
|
+
description: "Defines a string value that describes or annotates the current element.",
|
|
104
|
+
required: !1,
|
|
105
|
+
control: "text",
|
|
106
|
+
type: "string"
|
|
107
|
+
},
|
|
108
|
+
"aria-details": {
|
|
109
|
+
description: "Identifies the element that provides a detailed, extended description for the object.",
|
|
110
|
+
required: !1,
|
|
111
|
+
control: "text",
|
|
112
|
+
type: "string"
|
|
113
|
+
},
|
|
114
|
+
"aria-disabled": {
|
|
115
|
+
description: "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.",
|
|
116
|
+
required: !1,
|
|
117
|
+
control: "boolean",
|
|
118
|
+
type: "boolean"
|
|
119
|
+
},
|
|
120
|
+
"aria-dropeffect": {
|
|
121
|
+
description: "Indicates what functions can be performed when a dragged object is released on the drop target.",
|
|
122
|
+
required: !1,
|
|
123
|
+
control: "select",
|
|
124
|
+
type: "string",
|
|
125
|
+
options: ["link", "none", "copy", "execute", "move", "popup"]
|
|
126
|
+
},
|
|
127
|
+
"aria-errormessage": {
|
|
128
|
+
description: "Identifies the element that provides an error message for the object.",
|
|
129
|
+
required: !1,
|
|
130
|
+
control: "text",
|
|
131
|
+
type: "string"
|
|
132
|
+
},
|
|
133
|
+
"aria-expanded": {
|
|
134
|
+
description: "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",
|
|
135
|
+
required: !1,
|
|
136
|
+
control: "boolean",
|
|
137
|
+
type: "boolean"
|
|
138
|
+
},
|
|
139
|
+
"aria-flowto": {
|
|
140
|
+
description: `Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
141
|
+
allows assistive technology to override the general default of reading in document source order.`,
|
|
142
|
+
required: !1,
|
|
143
|
+
control: "text",
|
|
144
|
+
type: "string"
|
|
145
|
+
},
|
|
146
|
+
"aria-grabbed": {
|
|
147
|
+
description: `Indicates an element's "grabbed" state in a drag-and-drop operation.`,
|
|
148
|
+
required: !1,
|
|
149
|
+
control: "boolean",
|
|
150
|
+
type: "boolean"
|
|
151
|
+
},
|
|
152
|
+
"aria-haspopup": {
|
|
153
|
+
description: "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",
|
|
154
|
+
required: !1,
|
|
155
|
+
control: "text",
|
|
156
|
+
type: "string"
|
|
157
|
+
},
|
|
158
|
+
"aria-hidden": {
|
|
159
|
+
description: "Indicates whether the element is exposed to an accessibility API.",
|
|
160
|
+
required: !1,
|
|
161
|
+
control: "boolean",
|
|
162
|
+
type: "boolean"
|
|
163
|
+
},
|
|
164
|
+
"aria-invalid": {
|
|
165
|
+
description: "Indicates the entered value does not conform to the format expected by the application.",
|
|
166
|
+
required: !1,
|
|
167
|
+
control: "text",
|
|
168
|
+
type: "string"
|
|
169
|
+
},
|
|
170
|
+
"aria-keyshortcuts": {
|
|
171
|
+
description: "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",
|
|
172
|
+
required: !1,
|
|
173
|
+
control: "text",
|
|
174
|
+
type: "string"
|
|
175
|
+
},
|
|
176
|
+
"aria-label": {
|
|
177
|
+
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
178
|
+
required: !1,
|
|
179
|
+
control: "text",
|
|
180
|
+
type: "string"
|
|
181
|
+
},
|
|
182
|
+
"aria-labelledby": {
|
|
183
|
+
description: "Identifies the element (or elements) that labels the current element.",
|
|
184
|
+
required: !1,
|
|
185
|
+
control: "text",
|
|
186
|
+
type: "string"
|
|
187
|
+
},
|
|
188
|
+
"aria-level": {
|
|
189
|
+
description: "Defines the hierarchical level of an element within a structure.",
|
|
190
|
+
required: !1,
|
|
191
|
+
control: "number",
|
|
192
|
+
type: "number"
|
|
193
|
+
},
|
|
194
|
+
"aria-live": {
|
|
195
|
+
description: "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",
|
|
196
|
+
required: !1,
|
|
197
|
+
control: "radio",
|
|
198
|
+
type: "string",
|
|
199
|
+
options: ["off", "assertive", "polite"]
|
|
200
|
+
},
|
|
201
|
+
"aria-modal": {
|
|
202
|
+
description: "Indicates whether an element is modal when displayed.",
|
|
203
|
+
required: !1,
|
|
204
|
+
control: "boolean",
|
|
205
|
+
type: "boolean"
|
|
206
|
+
},
|
|
207
|
+
"aria-multiline": {
|
|
208
|
+
description: "Indicates whether a text box accepts multiple lines of input or only a single line.",
|
|
209
|
+
required: !1,
|
|
210
|
+
control: "boolean",
|
|
211
|
+
type: "boolean"
|
|
212
|
+
},
|
|
213
|
+
"aria-multiselectable": {
|
|
214
|
+
description: "Indicates that the user may select more than one item from the current selectable descendants.",
|
|
215
|
+
required: !1,
|
|
216
|
+
control: "boolean",
|
|
217
|
+
type: "boolean"
|
|
218
|
+
},
|
|
219
|
+
"aria-orientation": {
|
|
220
|
+
description: "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",
|
|
221
|
+
required: !1,
|
|
222
|
+
control: "radio",
|
|
223
|
+
type: "string",
|
|
224
|
+
options: ["horizontal", "vertical"]
|
|
225
|
+
},
|
|
226
|
+
"aria-owns": {
|
|
227
|
+
description: `Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
228
|
+
between DOM elements where the DOM hierarchy cannot be used to represent the relationship.`,
|
|
229
|
+
required: !1,
|
|
230
|
+
control: "text",
|
|
231
|
+
type: "string"
|
|
232
|
+
},
|
|
233
|
+
"aria-placeholder": {
|
|
234
|
+
description: `Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
235
|
+
A hint could be a sample value or a brief description of the expected format.`,
|
|
236
|
+
required: !1,
|
|
237
|
+
control: "text",
|
|
238
|
+
type: "string"
|
|
239
|
+
},
|
|
240
|
+
"aria-posinset": {
|
|
241
|
+
description: "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
242
|
+
required: !1,
|
|
243
|
+
control: "number",
|
|
244
|
+
type: "number"
|
|
245
|
+
},
|
|
246
|
+
"aria-pressed": {
|
|
247
|
+
description: 'Indicates the current "pressed" state of toggle buttons.',
|
|
248
|
+
required: !1,
|
|
249
|
+
control: "text",
|
|
250
|
+
type: "string"
|
|
251
|
+
},
|
|
252
|
+
"aria-readonly": {
|
|
253
|
+
description: "Indicates that the element is not editable, but is otherwise operable.",
|
|
254
|
+
required: !1,
|
|
255
|
+
control: "boolean",
|
|
256
|
+
type: "boolean"
|
|
257
|
+
},
|
|
258
|
+
"aria-relevant": {
|
|
259
|
+
description: "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.",
|
|
260
|
+
required: !1,
|
|
261
|
+
control: "select",
|
|
262
|
+
type: "string",
|
|
263
|
+
options: [
|
|
264
|
+
"text",
|
|
265
|
+
"additions",
|
|
266
|
+
"additions removals",
|
|
267
|
+
"additions text",
|
|
268
|
+
"all",
|
|
269
|
+
"removals",
|
|
270
|
+
"removals additions",
|
|
271
|
+
"removals text",
|
|
272
|
+
"text additions",
|
|
273
|
+
"text removals"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"aria-required": {
|
|
277
|
+
description: "Indicates that user input is required on the element before a form may be submitted.",
|
|
278
|
+
required: !1,
|
|
279
|
+
control: "boolean",
|
|
280
|
+
type: "boolean"
|
|
281
|
+
},
|
|
282
|
+
"aria-roledescription": {
|
|
283
|
+
description: "Defines a human-readable, author-localized description for the role of an element.",
|
|
284
|
+
required: !1,
|
|
285
|
+
control: "text",
|
|
286
|
+
type: "string"
|
|
287
|
+
},
|
|
288
|
+
"aria-rowcount": {
|
|
289
|
+
description: "Defines the total number of rows in a table, grid, or treegrid.",
|
|
290
|
+
required: !1,
|
|
291
|
+
control: "number",
|
|
292
|
+
type: "number"
|
|
293
|
+
},
|
|
294
|
+
"aria-rowindex": {
|
|
295
|
+
description: "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.",
|
|
296
|
+
required: !1,
|
|
297
|
+
control: "number",
|
|
298
|
+
type: "number"
|
|
299
|
+
},
|
|
300
|
+
"aria-rowindextext": {
|
|
301
|
+
description: "Defines a human readable text alternative of aria-rowindex.",
|
|
302
|
+
required: !1,
|
|
303
|
+
control: "text",
|
|
304
|
+
type: "string"
|
|
305
|
+
},
|
|
306
|
+
"aria-rowspan": {
|
|
307
|
+
description: "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.",
|
|
308
|
+
required: !1,
|
|
309
|
+
control: "number",
|
|
310
|
+
type: "number"
|
|
311
|
+
},
|
|
312
|
+
"aria-selected": {
|
|
313
|
+
description: 'Indicates the current "selected" state of various widgets.',
|
|
314
|
+
required: !1,
|
|
315
|
+
control: "boolean",
|
|
316
|
+
type: "boolean"
|
|
317
|
+
},
|
|
318
|
+
"aria-setsize": {
|
|
319
|
+
description: "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.",
|
|
320
|
+
required: !1,
|
|
321
|
+
control: "number",
|
|
322
|
+
type: "number"
|
|
323
|
+
},
|
|
324
|
+
"aria-sort": {
|
|
325
|
+
description: "Indicates if items in a table or grid are sorted in ascending or descending order.",
|
|
326
|
+
required: !1,
|
|
327
|
+
control: "select",
|
|
328
|
+
type: "string",
|
|
329
|
+
options: ["none", "ascending", "descending", "other"]
|
|
330
|
+
},
|
|
331
|
+
"aria-valuemax": {
|
|
332
|
+
description: "Defines the maximum allowed value for a range widget.",
|
|
333
|
+
required: !1,
|
|
334
|
+
control: "number",
|
|
335
|
+
type: "number"
|
|
336
|
+
},
|
|
337
|
+
"aria-valuemin": {
|
|
338
|
+
description: "Defines the minimum allowed value for a range widget.",
|
|
339
|
+
required: !1,
|
|
340
|
+
control: "number",
|
|
341
|
+
type: "number"
|
|
342
|
+
},
|
|
343
|
+
"aria-valuenow": {
|
|
344
|
+
description: "Defines the current value for a range widget.",
|
|
345
|
+
required: !1,
|
|
346
|
+
control: "number",
|
|
347
|
+
type: "number"
|
|
348
|
+
},
|
|
349
|
+
"aria-valuetext": {
|
|
350
|
+
description: "Defines the human readable text alternative of aria-valuenow for a range widget.",
|
|
351
|
+
required: !1,
|
|
352
|
+
control: "text",
|
|
353
|
+
type: "string"
|
|
354
|
+
},
|
|
355
|
+
autoCapitalize: {
|
|
356
|
+
required: !1,
|
|
357
|
+
control: "text",
|
|
358
|
+
type: "string",
|
|
359
|
+
description: "Sets whether input is automatically capitalized when entered by user."
|
|
360
|
+
},
|
|
361
|
+
autoComplete: {
|
|
362
|
+
required: !1,
|
|
363
|
+
control: "text",
|
|
364
|
+
type: "string",
|
|
365
|
+
description: "Indicates whether controls in this form can by default have their valuesautomatically completed by the browser."
|
|
366
|
+
},
|
|
367
|
+
autoCorrect: { required: !1, control: "text", type: "string" },
|
|
368
|
+
autoFocus: {
|
|
369
|
+
required: !1,
|
|
370
|
+
control: "boolean",
|
|
371
|
+
type: "boolean",
|
|
372
|
+
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
373
|
+
},
|
|
374
|
+
autoSave: { required: !1, control: "text", type: "string" },
|
|
375
|
+
className: { required: !1, control: "text", type: "string" },
|
|
376
|
+
color: {
|
|
377
|
+
required: !1,
|
|
378
|
+
control: "color",
|
|
379
|
+
type: "string",
|
|
380
|
+
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
381
|
+
},
|
|
382
|
+
content: {
|
|
383
|
+
required: !1,
|
|
384
|
+
control: "text",
|
|
385
|
+
type: "string",
|
|
386
|
+
description: "A value associated with http-equiv orname depending on the context."
|
|
387
|
+
},
|
|
388
|
+
contextMenu: {
|
|
389
|
+
required: !1,
|
|
390
|
+
control: "text",
|
|
391
|
+
type: "string",
|
|
392
|
+
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
393
|
+
},
|
|
394
|
+
datatype: { required: !1, control: "text", type: "string" },
|
|
395
|
+
defaultChecked: { required: !1, control: "boolean", type: "boolean" },
|
|
396
|
+
defaultValue: { required: !1, control: "text", type: "string" },
|
|
397
|
+
dir: {
|
|
398
|
+
required: !1,
|
|
399
|
+
control: "text",
|
|
400
|
+
type: "string",
|
|
401
|
+
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
402
|
+
},
|
|
403
|
+
draggable: {
|
|
404
|
+
required: !1,
|
|
405
|
+
control: "boolean",
|
|
406
|
+
type: "boolean",
|
|
407
|
+
description: "Defines whether the element can be dragged."
|
|
408
|
+
},
|
|
409
|
+
encType: {
|
|
410
|
+
required: !1,
|
|
411
|
+
control: "radio",
|
|
412
|
+
type: "string",
|
|
413
|
+
options: [
|
|
414
|
+
"application/x-www-form-urlencoded",
|
|
415
|
+
"multipart/form-data",
|
|
416
|
+
"text/plain"
|
|
417
|
+
],
|
|
418
|
+
description: "Defines the content type of the form data when themethod is POST."
|
|
419
|
+
},
|
|
420
|
+
hidden: {
|
|
421
|
+
required: !1,
|
|
422
|
+
control: "boolean",
|
|
423
|
+
type: "boolean",
|
|
424
|
+
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
425
|
+
},
|
|
426
|
+
id: {
|
|
427
|
+
required: !1,
|
|
428
|
+
control: "text",
|
|
429
|
+
type: "string",
|
|
430
|
+
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
431
|
+
},
|
|
432
|
+
inputMode: {
|
|
433
|
+
description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
|
|
434
|
+
required: !1,
|
|
435
|
+
control: "select",
|
|
436
|
+
type: "string",
|
|
437
|
+
options: [
|
|
438
|
+
"search",
|
|
439
|
+
"text",
|
|
440
|
+
"none",
|
|
441
|
+
"tel",
|
|
442
|
+
"url",
|
|
443
|
+
"email",
|
|
444
|
+
"numeric",
|
|
445
|
+
"decimal"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
is: {
|
|
449
|
+
description: "Specify that a standard HTML element should behave like a defined custom built-in element",
|
|
450
|
+
required: !1,
|
|
451
|
+
control: "text",
|
|
452
|
+
type: "string"
|
|
453
|
+
},
|
|
454
|
+
itemID: { required: !1, control: "text", type: "string" },
|
|
455
|
+
itemProp: { required: !1, control: "text", type: "string" },
|
|
456
|
+
itemRef: { required: !1, control: "text", type: "string" },
|
|
457
|
+
itemScope: { required: !1, control: "boolean", type: "boolean" },
|
|
458
|
+
itemType: { required: !1, control: "text", type: "string" },
|
|
459
|
+
lang: {
|
|
460
|
+
required: !1,
|
|
461
|
+
control: "text",
|
|
462
|
+
type: "string",
|
|
463
|
+
description: "Defines the language used in the element."
|
|
464
|
+
},
|
|
465
|
+
method: {
|
|
466
|
+
required: !1,
|
|
467
|
+
control: "text",
|
|
468
|
+
type: "string",
|
|
469
|
+
description: "Defines which HTTP method to use when submitting the form. Can be GET (default) or POST."
|
|
470
|
+
},
|
|
471
|
+
name: {
|
|
472
|
+
required: !1,
|
|
473
|
+
control: "text",
|
|
474
|
+
type: "string",
|
|
475
|
+
description: "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes)."
|
|
476
|
+
},
|
|
477
|
+
nonce: { required: !1, control: "text", type: "string" },
|
|
478
|
+
noValidate: {
|
|
479
|
+
required: !1,
|
|
480
|
+
control: "boolean",
|
|
481
|
+
type: "boolean",
|
|
482
|
+
description: "This attribute indicates that the form shouldn't be validated when submitted."
|
|
483
|
+
},
|
|
484
|
+
prefix: { required: !1, control: "text", type: "string" },
|
|
485
|
+
property: { required: !1, control: "text", type: "string" },
|
|
486
|
+
radioGroup: { required: !1, control: "text", type: "string" },
|
|
487
|
+
rel: {
|
|
488
|
+
required: !1,
|
|
489
|
+
control: "text",
|
|
490
|
+
type: "string",
|
|
491
|
+
description: "Specifies the relationship of the target object to the link object."
|
|
492
|
+
},
|
|
493
|
+
resource: { required: !1, control: "text", type: "string" },
|
|
494
|
+
results: { required: !1, control: "number", type: "number" },
|
|
495
|
+
rev: { required: !1, control: "text", type: "string" },
|
|
496
|
+
role: {
|
|
497
|
+
required: !1,
|
|
498
|
+
control: "text",
|
|
499
|
+
type: "string",
|
|
500
|
+
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
501
|
+
},
|
|
502
|
+
security: { required: !1, control: "text", type: "string" },
|
|
503
|
+
slot: {
|
|
504
|
+
required: !1,
|
|
505
|
+
control: "text",
|
|
506
|
+
type: "string",
|
|
507
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
508
|
+
},
|
|
509
|
+
spellCheck: {
|
|
510
|
+
required: !1,
|
|
511
|
+
control: "boolean",
|
|
512
|
+
type: "boolean",
|
|
513
|
+
description: "Indicates whether spell checking is allowed for the element."
|
|
514
|
+
},
|
|
515
|
+
state: {
|
|
516
|
+
description: "Use this property to reveal the Success and Error states on the canvas so they can be styled. The Initial state is displayed when the page first opens. The Success and Error states are displayed depending on whether the Form submits successfully or unsuccessfully.",
|
|
517
|
+
required: !1,
|
|
518
|
+
control: "radio",
|
|
519
|
+
type: "string",
|
|
520
|
+
defaultValue: "initial",
|
|
521
|
+
options: ["initial", "success", "error"]
|
|
522
|
+
},
|
|
523
|
+
suppressContentEditableWarning: {
|
|
524
|
+
required: !1,
|
|
525
|
+
control: "boolean",
|
|
526
|
+
type: "boolean"
|
|
527
|
+
},
|
|
528
|
+
suppressHydrationWarning: {
|
|
529
|
+
required: !1,
|
|
530
|
+
control: "boolean",
|
|
531
|
+
type: "boolean"
|
|
532
|
+
},
|
|
533
|
+
tabIndex: {
|
|
534
|
+
required: !1,
|
|
535
|
+
control: "number",
|
|
536
|
+
type: "number",
|
|
537
|
+
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
538
|
+
},
|
|
539
|
+
target: {
|
|
540
|
+
required: !1,
|
|
541
|
+
control: "text",
|
|
542
|
+
type: "string",
|
|
543
|
+
description: "Specifies where to open the linked document (in the case of an <a> element) or where to display the response received (in the case of a <form> element)"
|
|
544
|
+
},
|
|
545
|
+
title: {
|
|
546
|
+
required: !1,
|
|
547
|
+
control: "text",
|
|
548
|
+
type: "string",
|
|
549
|
+
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
550
|
+
},
|
|
551
|
+
translate: {
|
|
552
|
+
required: !1,
|
|
553
|
+
control: "radio",
|
|
554
|
+
type: "string",
|
|
555
|
+
options: ["yes", "no"],
|
|
556
|
+
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
557
|
+
},
|
|
558
|
+
typeof: { required: !1, control: "text", type: "string" },
|
|
559
|
+
unselectable: {
|
|
560
|
+
required: !1,
|
|
561
|
+
control: "radio",
|
|
562
|
+
type: "string",
|
|
563
|
+
options: ["on", "off"]
|
|
564
|
+
},
|
|
565
|
+
vocab: { required: !1, control: "text", type: "string" }
|
|
566
|
+
};
|
|
567
|
+
export {
|
|
568
|
+
e as props
|
|
569
|
+
};
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
|
+
href: {
|
|
3
|
+
required: !1,
|
|
4
|
+
control: "text",
|
|
5
|
+
type: "string",
|
|
6
|
+
description: "The URL of a linked resource."
|
|
7
|
+
},
|
|
8
|
+
hreflang: { required: !1, control: "text", type: "string" },
|
|
9
|
+
rel: {
|
|
10
|
+
required: !1,
|
|
11
|
+
control: "text",
|
|
12
|
+
type: "string",
|
|
13
|
+
description: "Specifies the relationship of the target object to the link object."
|
|
14
|
+
},
|
|
2
15
|
tag: { required: !1, control: "text", type: "string", defaultValue: "" },
|
|
3
|
-
xmlns: { required: !1, control: "text", type: "string" }
|
|
16
|
+
xmlns: { required: !1, control: "text", type: "string" },
|
|
17
|
+
"xmlns:xhtml": { required: !1, control: "text", type: "string" }
|
|
4
18
|
};
|
|
5
19
|
export {
|
|
6
|
-
|
|
20
|
+
e as props
|
|
7
21
|
};
|
package/lib/components.js
CHANGED
|
@@ -4,24 +4,24 @@ import { HtmlEmbed as x } from "./html-embed.js";
|
|
|
4
4
|
import { MarkdownEmbed as i } from "./markdown-embed.js";
|
|
5
5
|
import { Body as n } from "./body.js";
|
|
6
6
|
import { Box as d } from "./box.js";
|
|
7
|
-
import { Text as
|
|
8
|
-
import { Heading as
|
|
9
|
-
import { Paragraph as
|
|
10
|
-
import { Link as
|
|
11
|
-
import { RichTextLink as I } from "./rich-text-link.js";
|
|
7
|
+
import { Text as k } from "./text.js";
|
|
8
|
+
import { Heading as u } from "./heading.js";
|
|
9
|
+
import { Paragraph as S } from "./paragraph.js";
|
|
10
|
+
import { Link as L, Link as T } from "./link.js";
|
|
12
11
|
import { Span as F } from "./span.js";
|
|
13
12
|
import { Bold as h } from "./bold.js";
|
|
14
|
-
import { Italic as
|
|
15
|
-
import { Superscript as
|
|
16
|
-
import { Subscript as
|
|
17
|
-
import { Button as
|
|
18
|
-
import { Input as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
13
|
+
import { Italic as P } from "./italic.js";
|
|
14
|
+
import { Superscript as w } from "./superscript.js";
|
|
15
|
+
import { Subscript as C } from "./subscript.js";
|
|
16
|
+
import { Button as H } from "./button.js";
|
|
17
|
+
import { Input as q } from "./input.js";
|
|
18
|
+
import { WebhookForm as M } from "./webhook-form.js";
|
|
19
|
+
import { Form as O } from "./form.js";
|
|
20
|
+
import { Image as j } from "./image.js";
|
|
21
|
+
import { Blockquote as A } from "./blockquote.js";
|
|
22
|
+
import { List as G } from "./list.js";
|
|
23
|
+
import { ListItem as K } from "./list-item.js";
|
|
24
|
+
import { Separator as U } from "./separator.js";
|
|
25
25
|
import { CodeText as Z } from "./code-text.js";
|
|
26
26
|
import { Label as $ } from "./label.js";
|
|
27
27
|
import { Textarea as ro } from "./textarea.js";
|
|
@@ -30,50 +30,50 @@ import { Checkbox as po } from "./checkbox.js";
|
|
|
30
30
|
import { Vimeo as fo } from "./vimeo.js";
|
|
31
31
|
import { VimeoPreviewImage as ao } from "./vimeo-preview-image.js";
|
|
32
32
|
import { VimeoPlayButton as lo } from "./vimeo-play-button.js";
|
|
33
|
-
import { VimeoSpinner as
|
|
34
|
-
import { XmlNode as
|
|
35
|
-
import { XmlTime as
|
|
36
|
-
import { Time as
|
|
37
|
-
import { Select as
|
|
38
|
-
import { Option as
|
|
33
|
+
import { VimeoSpinner as ko } from "./vimeo-spinner.js";
|
|
34
|
+
import { XmlNode as uo } from "./xml-node.js";
|
|
35
|
+
import { XmlTime as So } from "./xml-time.js";
|
|
36
|
+
import { Time as Lo } from "./time.js";
|
|
37
|
+
import { Select as go } from "./select.js";
|
|
38
|
+
import { Option as Io } from "./option.js";
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
A as Blockquote,
|
|
41
41
|
n as Body,
|
|
42
42
|
h as Bold,
|
|
43
43
|
d as Box,
|
|
44
|
-
|
|
44
|
+
H as Button,
|
|
45
45
|
po as Checkbox,
|
|
46
46
|
Z as CodeText,
|
|
47
|
-
|
|
47
|
+
M as Form,
|
|
48
48
|
m as Fragment,
|
|
49
|
-
|
|
49
|
+
u as Heading,
|
|
50
50
|
x as HtmlEmbed,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
j as Image,
|
|
52
|
+
q as Input,
|
|
53
|
+
P as Italic,
|
|
54
54
|
$ as Label,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
L as Link,
|
|
56
|
+
G as List,
|
|
57
|
+
K as ListItem,
|
|
58
58
|
i as MarkdownEmbed,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
Io as Option,
|
|
60
|
+
S as Paragraph,
|
|
61
61
|
to as RadioButton,
|
|
62
62
|
O as RemixForm,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
T as RichTextLink,
|
|
64
|
+
go as Select,
|
|
65
|
+
U as Separator,
|
|
66
66
|
e as Slot,
|
|
67
67
|
F as Span,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
C as Subscript,
|
|
69
|
+
w as Superscript,
|
|
70
|
+
k as Text,
|
|
71
71
|
ro as Textarea,
|
|
72
|
-
|
|
72
|
+
Lo as Time,
|
|
73
73
|
fo as Vimeo,
|
|
74
74
|
lo as VimeoPlayButton,
|
|
75
75
|
ao as VimeoPreviewImage,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
ko as VimeoSpinner,
|
|
77
|
+
uo as XmlNode,
|
|
78
|
+
So as XmlTime
|
|
79
79
|
};
|
package/lib/link.ws.js
CHANGED
package/lib/metas.js
CHANGED
|
@@ -17,65 +17,66 @@ import { meta as y } from "./superscript.ws.js";
|
|
|
17
17
|
import { meta as X } from "./subscript.ws.js";
|
|
18
18
|
import { meta as v } from "./button.ws.js";
|
|
19
19
|
import { meta as N } from "./input.ws.js";
|
|
20
|
-
import { meta as j
|
|
21
|
-
import { meta as
|
|
22
|
-
import { meta as
|
|
23
|
-
import { meta as
|
|
24
|
-
import { meta as
|
|
25
|
-
import { meta as
|
|
26
|
-
import { meta as
|
|
27
|
-
import { meta as
|
|
28
|
-
import { meta as
|
|
29
|
-
import { meta as
|
|
30
|
-
import { meta as
|
|
31
|
-
import { meta as
|
|
32
|
-
import { meta as
|
|
33
|
-
import { meta as
|
|
34
|
-
import { meta as
|
|
35
|
-
import { meta as
|
|
36
|
-
import { meta as
|
|
37
|
-
import { meta as
|
|
38
|
-
import { meta as
|
|
39
|
-
import { meta as
|
|
20
|
+
import { meta as j } from "./webhook-form.ws.js";
|
|
21
|
+
import { meta as A } from "./form.ws.js";
|
|
22
|
+
import { meta as G } from "./image.ws.js";
|
|
23
|
+
import { meta as K } from "./blockquote.ws.js";
|
|
24
|
+
import { meta as U } from "./list.ws.js";
|
|
25
|
+
import { meta as Y } from "./list-item.ws.js";
|
|
26
|
+
import { meta as _ } from "./separator.ws.js";
|
|
27
|
+
import { meta as ee } from "./code-text.ws.js";
|
|
28
|
+
import { meta as oe } from "./label.ws.js";
|
|
29
|
+
import { meta as ae } from "./textarea.ws.js";
|
|
30
|
+
import { meta as pe } from "./radio-button.ws.js";
|
|
31
|
+
import { meta as se } from "./checkbox.ws.js";
|
|
32
|
+
import { meta as ie } from "./vimeo.ws.js";
|
|
33
|
+
import { meta as de } from "./vimeo-preview-image.ws.js";
|
|
34
|
+
import { meta as ce } from "./vimeo-play-button.ws.js";
|
|
35
|
+
import { meta as Be } from "./vimeo-spinner.ws.js";
|
|
36
|
+
import { meta as be } from "./xml-node.ws.js";
|
|
37
|
+
import { meta as ge } from "./xml-time.ws.js";
|
|
38
|
+
import { meta as Ie } from "./time.ws.js";
|
|
39
|
+
import { meta as Ve } from "./select.ws.js";
|
|
40
|
+
import { meta as Ce } from "./option.ws.js";
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
K as Blockquote,
|
|
42
43
|
d as Body,
|
|
43
44
|
F as Bold,
|
|
44
45
|
c as Box,
|
|
45
46
|
v as Button,
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
se as Checkbox,
|
|
48
|
+
ee as CodeText,
|
|
48
49
|
i as ContentEmbed,
|
|
49
50
|
j as Form,
|
|
50
51
|
a as Fragment,
|
|
51
52
|
b as Heading,
|
|
52
53
|
p as HtmlEmbed,
|
|
53
|
-
|
|
54
|
+
G as Image,
|
|
54
55
|
N as Input,
|
|
55
56
|
R as Italic,
|
|
56
|
-
|
|
57
|
+
oe as Label,
|
|
57
58
|
I as Link,
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
U as List,
|
|
60
|
+
Y as ListItem,
|
|
60
61
|
s as MarkdownEmbed,
|
|
61
|
-
|
|
62
|
+
Ce as Option,
|
|
62
63
|
g as Paragraph,
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
pe as RadioButton,
|
|
65
|
+
A as RemixForm,
|
|
65
66
|
V as RichTextLink,
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
Ve as Select,
|
|
68
|
+
_ as Separator,
|
|
68
69
|
o as Slot,
|
|
69
70
|
C as Span,
|
|
70
71
|
X as Subscript,
|
|
71
72
|
y as Superscript,
|
|
72
73
|
B as Text,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
ae as Textarea,
|
|
75
|
+
Ie as Time,
|
|
76
|
+
ie as Vimeo,
|
|
77
|
+
ce as VimeoPlayButton,
|
|
78
|
+
de as VimeoPreviewImage,
|
|
79
|
+
Be as VimeoSpinner,
|
|
80
|
+
be as XmlNode,
|
|
81
|
+
ge as XmlTime
|
|
81
82
|
};
|
package/lib/props.js
CHANGED
|
@@ -16,64 +16,65 @@ import { propsMeta as w } from "./superscript.ws.js";
|
|
|
16
16
|
import { propsMeta as C } from "./subscript.ws.js";
|
|
17
17
|
import { propsMeta as H } from "./button.ws.js";
|
|
18
18
|
import { propsMeta as q } from "./input.ws.js";
|
|
19
|
-
import { propsMeta as N
|
|
20
|
-
import { propsMeta as
|
|
21
|
-
import { propsMeta as
|
|
22
|
-
import { propsMeta as
|
|
23
|
-
import { propsMeta as
|
|
24
|
-
import { propsMeta as
|
|
25
|
-
import { propsMeta as
|
|
26
|
-
import { propsMeta as
|
|
27
|
-
import { propsMeta as
|
|
28
|
-
import { propsMeta as
|
|
29
|
-
import { propsMeta as
|
|
30
|
-
import { propsMeta as
|
|
31
|
-
import { propsMeta as
|
|
32
|
-
import { propsMeta as
|
|
33
|
-
import { propsMeta as
|
|
34
|
-
import { propsMeta as
|
|
35
|
-
import { propsMeta as
|
|
36
|
-
import { propsMeta as
|
|
37
|
-
import { propsMeta as
|
|
38
|
-
import { propsMeta as
|
|
19
|
+
import { propsMeta as N } from "./webhook-form.ws.js";
|
|
20
|
+
import { propsMeta as j } from "./form.ws.js";
|
|
21
|
+
import { propsMeta as A } from "./image.ws.js";
|
|
22
|
+
import { propsMeta as G } from "./blockquote.ws.js";
|
|
23
|
+
import { propsMeta as K } from "./list.ws.js";
|
|
24
|
+
import { propsMeta as U } from "./list-item.ws.js";
|
|
25
|
+
import { propsMeta as Y } from "./separator.ws.js";
|
|
26
|
+
import { propsMeta as _ } from "./code-text.ws.js";
|
|
27
|
+
import { propsMeta as oo } from "./label.ws.js";
|
|
28
|
+
import { propsMeta as po } from "./textarea.ws.js";
|
|
29
|
+
import { propsMeta as to } from "./radio-button.ws.js";
|
|
30
|
+
import { propsMeta as so } from "./checkbox.ws.js";
|
|
31
|
+
import { propsMeta as xo } from "./vimeo.ws.js";
|
|
32
|
+
import { propsMeta as fo } from "./vimeo-preview-image.ws.js";
|
|
33
|
+
import { propsMeta as no } from "./vimeo-play-button.ws.js";
|
|
34
|
+
import { propsMeta as co } from "./vimeo-spinner.ws.js";
|
|
35
|
+
import { propsMeta as Bo } from "./xml-node.ws.js";
|
|
36
|
+
import { propsMeta as To } from "./xml-time.ws.js";
|
|
37
|
+
import { propsMeta as go } from "./time.ws.js";
|
|
38
|
+
import { propsMeta as Io } from "./select.ws.js";
|
|
39
|
+
import { propsMeta as Vo } from "./option.ws.js";
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
G as Blockquote,
|
|
41
42
|
f as Body,
|
|
42
43
|
h as Bold,
|
|
43
44
|
n as Box,
|
|
44
45
|
H as Button,
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
so as Checkbox,
|
|
47
|
+
_ as CodeText,
|
|
47
48
|
N as Form,
|
|
48
49
|
t as Fragment,
|
|
49
50
|
u as Heading,
|
|
50
51
|
s as HtmlEmbed,
|
|
51
|
-
|
|
52
|
+
A as Image,
|
|
52
53
|
q as Input,
|
|
53
54
|
P as Italic,
|
|
54
|
-
|
|
55
|
+
oo as Label,
|
|
55
56
|
b as Link,
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
K as List,
|
|
58
|
+
U as ListItem,
|
|
58
59
|
x as MarkdownEmbed,
|
|
59
|
-
|
|
60
|
+
Vo as Option,
|
|
60
61
|
S as Paragraph,
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
to as RadioButton,
|
|
63
|
+
j as RemixForm,
|
|
63
64
|
k as RichTextLink,
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
Io as Select,
|
|
66
|
+
Y as Separator,
|
|
66
67
|
p as Slot,
|
|
67
68
|
L as Span,
|
|
68
69
|
C as Subscript,
|
|
69
70
|
w as Superscript,
|
|
70
71
|
d as Text,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
po as Textarea,
|
|
73
|
+
go as Time,
|
|
74
|
+
xo as Vimeo,
|
|
75
|
+
no as VimeoPlayButton,
|
|
76
|
+
fo as VimeoPreviewImage,
|
|
77
|
+
co as VimeoSpinner,
|
|
78
|
+
Bo as XmlNode,
|
|
79
|
+
To as XmlTime
|
|
79
80
|
};
|
|
@@ -16,7 +16,7 @@ export { Superscript } from "./superscript";
|
|
|
16
16
|
export { Subscript } from "./subscript";
|
|
17
17
|
export { Button } from "./button";
|
|
18
18
|
export { Input } from "./input";
|
|
19
|
-
export { Form } from "./form";
|
|
19
|
+
export { WebhookForm as Form } from "./webhook-form";
|
|
20
20
|
export { Form as RemixForm } from "./form";
|
|
21
21
|
export { Image } from "./image";
|
|
22
22
|
export { Blockquote } from "./blockquote";
|
package/lib/types/link.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ export declare const defaultTag = "a";
|
|
|
2
2
|
export declare const Link: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "target" | "download"> & {
|
|
3
3
|
target?: "_self" | "_blank" | "_parent" | "_top";
|
|
4
4
|
download?: boolean;
|
|
5
|
+
prefetch?: "none" | "intent" | "render" | "viewport";
|
|
6
|
+
preventScrollReset?: boolean;
|
|
7
|
+
reloadDocument?: boolean;
|
|
8
|
+
replace?: boolean;
|
|
5
9
|
} & {
|
|
6
10
|
$webstudio$canvasOnly$assetId?: string | undefined;
|
|
7
11
|
}, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
package/lib/types/metas.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { meta as Superscript } from "./superscript.ws";
|
|
|
17
17
|
export { meta as Subscript } from "./subscript.ws";
|
|
18
18
|
export { meta as Button } from "./button.ws";
|
|
19
19
|
export { meta as Input } from "./input.ws";
|
|
20
|
-
export { meta as Form } from "./form.ws";
|
|
20
|
+
export { meta as Form } from "./webhook-form.ws";
|
|
21
21
|
export { meta as RemixForm } from "./form.ws";
|
|
22
22
|
export { meta as Image } from "./image.ws";
|
|
23
23
|
export { meta as Blockquote } from "./blockquote.ws";
|
package/lib/types/props.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export { propsMeta as Superscript } from "./superscript.ws";
|
|
|
16
16
|
export { propsMeta as Subscript } from "./subscript.ws";
|
|
17
17
|
export { propsMeta as Button } from "./button.ws";
|
|
18
18
|
export { propsMeta as Input } from "./input.ws";
|
|
19
|
-
export { propsMeta as Form } from "./form.ws";
|
|
19
|
+
export { propsMeta as Form } from "./webhook-form.ws";
|
|
20
20
|
export { propsMeta as RemixForm } from "./form.ws";
|
|
21
21
|
export { propsMeta as Image } from "./image.ws";
|
|
22
22
|
export { propsMeta as Blockquote } from "./blockquote.ws";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const RichTextLink: typeof Link;
|
|
1
|
+
export { Link as RichTextLink } from "./link";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
type Props = ComponentProps<"form"> & {
|
|
3
|
+
encType?: "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain";
|
|
4
|
+
/** Use this property to reveal the Success and Error states on the canvas so they can be styled. The Initial state is displayed when the page first opens. The Success and Error states are displayed depending on whether the Form submits successfully or unsuccessfully. */
|
|
5
|
+
state?: "initial" | "success" | "error";
|
|
6
|
+
};
|
|
7
|
+
export declare const WebhookForm: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLFormElement>>;
|
|
8
|
+
export {};
|
package/lib/vimeo.ws.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as e } from "react";
|
|
3
|
+
const i = e(
|
|
4
|
+
({ children: o, state: a = "initial", ...r }, m) => /* @__PURE__ */ t("form", { ...r, ref: m, children: o })
|
|
5
|
+
);
|
|
6
|
+
i.displayName = "WebhookForm";
|
|
7
|
+
export {
|
|
8
|
+
i as WebhookForm
|
|
9
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { meta as t } from "./form.ws.js";
|
|
2
|
+
import { showAttribute as e } from "@webstudio-is/react-sdk";
|
|
3
|
+
import { props as o } from "./__generated__/webhook-form.props.js";
|
|
4
|
+
import { WebhookFormIcon as a } from "@webstudio-is/icons/svg";
|
|
5
|
+
const c = {
|
|
6
|
+
...t,
|
|
7
|
+
category: "data",
|
|
8
|
+
label: "Webhook Form",
|
|
9
|
+
description: "Collect user data and send it to any webhook.",
|
|
10
|
+
order: 1,
|
|
11
|
+
icon: a,
|
|
12
|
+
states: [
|
|
13
|
+
{ selector: "[data-state=error]", label: "Error" },
|
|
14
|
+
{ selector: "[data-state=success]", label: "Success" }
|
|
15
|
+
],
|
|
16
|
+
template: [
|
|
17
|
+
{
|
|
18
|
+
type: "instance",
|
|
19
|
+
component: "Form",
|
|
20
|
+
variables: {
|
|
21
|
+
formState: { initialValue: "initial" }
|
|
22
|
+
},
|
|
23
|
+
props: [
|
|
24
|
+
{
|
|
25
|
+
type: "expression",
|
|
26
|
+
name: "state",
|
|
27
|
+
code: "formState"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: "action",
|
|
31
|
+
name: "onStateChange",
|
|
32
|
+
value: [
|
|
33
|
+
{ type: "execute", args: ["state"], code: "formState = state" }
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
children: [
|
|
38
|
+
{
|
|
39
|
+
type: "instance",
|
|
40
|
+
label: "Form Content",
|
|
41
|
+
component: "Box",
|
|
42
|
+
props: [
|
|
43
|
+
{
|
|
44
|
+
type: "expression",
|
|
45
|
+
name: e,
|
|
46
|
+
code: "formState === 'initial' || formState === 'error'"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
children: [
|
|
50
|
+
{
|
|
51
|
+
type: "instance",
|
|
52
|
+
component: "Label",
|
|
53
|
+
children: [{ type: "text", value: "Name", placeholder: !0 }]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: "instance",
|
|
57
|
+
component: "Input",
|
|
58
|
+
props: [{ type: "string", name: "name", value: "name" }],
|
|
59
|
+
children: []
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: "instance",
|
|
63
|
+
component: "Label",
|
|
64
|
+
children: [{ type: "text", value: "Email", placeholder: !0 }]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "instance",
|
|
68
|
+
component: "Input",
|
|
69
|
+
props: [{ type: "string", name: "name", value: "email" }],
|
|
70
|
+
children: []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
type: "instance",
|
|
74
|
+
component: "Button",
|
|
75
|
+
children: [{ type: "text", value: "Submit", placeholder: !0 }]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "instance",
|
|
81
|
+
label: "Success Message",
|
|
82
|
+
component: "Box",
|
|
83
|
+
props: [
|
|
84
|
+
{
|
|
85
|
+
type: "expression",
|
|
86
|
+
name: e,
|
|
87
|
+
code: "formState === 'success'"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
children: [
|
|
91
|
+
{
|
|
92
|
+
type: "text",
|
|
93
|
+
value: "Thank you for getting in touch!",
|
|
94
|
+
placeholder: !0
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "instance",
|
|
100
|
+
label: "Error Message",
|
|
101
|
+
component: "Box",
|
|
102
|
+
props: [
|
|
103
|
+
{
|
|
104
|
+
type: "expression",
|
|
105
|
+
name: e,
|
|
106
|
+
code: "formState === 'error'"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
children: [
|
|
110
|
+
{
|
|
111
|
+
type: "text",
|
|
112
|
+
value: "Sorry, something went wrong.",
|
|
113
|
+
placeholder: !0
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}, i = {
|
|
121
|
+
props: o,
|
|
122
|
+
initialProps: ["id", "className", "state", "action"]
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
c as meta,
|
|
126
|
+
i as propsMeta
|
|
127
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/sdk-components-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.0",
|
|
4
4
|
"description": "Webstudio default library for react",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"colord": "^2.9.3",
|
|
44
44
|
"micromark": "^4.0.0",
|
|
45
45
|
"await-interaction-response": "^0.0.2",
|
|
46
|
-
"@webstudio-is/
|
|
47
|
-
"@webstudio-is/
|
|
48
|
-
"@webstudio-is/sdk": "0.
|
|
49
|
-
"@webstudio-is/react-sdk": "0.
|
|
46
|
+
"@webstudio-is/image": "0.195.0",
|
|
47
|
+
"@webstudio-is/icons": "0.195.0",
|
|
48
|
+
"@webstudio-is/sdk": "0.195.0",
|
|
49
|
+
"@webstudio-is/react-sdk": "0.195.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@testing-library/react": "^14.2.2",
|
package/lib/rich-text-link.js
DELETED