@webstudio-is/react-sdk 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/index.js +174 -29
- package/package.json +7 -6
package/lib/index.js
CHANGED
|
@@ -166,7 +166,7 @@ var descendantMeta = {
|
|
|
166
166
|
icon: PaintBrushIcon,
|
|
167
167
|
constraints: {
|
|
168
168
|
relation: "parent",
|
|
169
|
-
component: { $
|
|
169
|
+
component: { $in: ["HtmlEmbed", "MarkdownEmbed"] }
|
|
170
170
|
}
|
|
171
171
|
};
|
|
172
172
|
var descendantPropsMeta = {
|
|
@@ -237,59 +237,204 @@ var blockMeta = {
|
|
|
237
237
|
props: [],
|
|
238
238
|
children: [
|
|
239
239
|
{
|
|
240
|
+
component: blockTemplateComponent,
|
|
240
241
|
type: "instance",
|
|
241
242
|
label: "Templates",
|
|
242
|
-
component: blockTemplateComponent,
|
|
243
243
|
children: [
|
|
244
244
|
{
|
|
245
|
-
type: "instance",
|
|
246
245
|
component: "Paragraph",
|
|
247
|
-
|
|
246
|
+
type: "instance",
|
|
247
|
+
children: []
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
component: "Heading",
|
|
251
|
+
type: "instance",
|
|
252
|
+
label: "Heading 1",
|
|
253
|
+
props: [
|
|
248
254
|
{
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
255
|
+
name: "tag",
|
|
256
|
+
type: "string",
|
|
257
|
+
value: "h1"
|
|
252
258
|
}
|
|
253
|
-
]
|
|
259
|
+
],
|
|
260
|
+
children: []
|
|
254
261
|
},
|
|
255
262
|
{
|
|
263
|
+
component: "Heading",
|
|
256
264
|
type: "instance",
|
|
265
|
+
label: "Heading 2",
|
|
266
|
+
props: [
|
|
267
|
+
{
|
|
268
|
+
name: "tag",
|
|
269
|
+
type: "string",
|
|
270
|
+
value: "h2"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
children: []
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
component: "Heading",
|
|
277
|
+
type: "instance",
|
|
278
|
+
label: "Heading 3",
|
|
279
|
+
props: [
|
|
280
|
+
{
|
|
281
|
+
name: "tag",
|
|
282
|
+
type: "string",
|
|
283
|
+
value: "h3"
|
|
284
|
+
}
|
|
285
|
+
],
|
|
286
|
+
children: []
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
component: "Heading",
|
|
290
|
+
type: "instance",
|
|
291
|
+
label: "Heading 4",
|
|
292
|
+
props: [
|
|
293
|
+
{
|
|
294
|
+
name: "tag",
|
|
295
|
+
type: "string",
|
|
296
|
+
value: "h4"
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
children: []
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
component: "Heading",
|
|
303
|
+
type: "instance",
|
|
304
|
+
label: "Heading 5",
|
|
305
|
+
props: [
|
|
306
|
+
{
|
|
307
|
+
name: "tag",
|
|
308
|
+
type: "string",
|
|
309
|
+
value: "h5"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
children: []
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
component: "Heading",
|
|
316
|
+
type: "instance",
|
|
317
|
+
label: "Heading 6",
|
|
318
|
+
props: [
|
|
319
|
+
{
|
|
320
|
+
name: "tag",
|
|
321
|
+
type: "string",
|
|
322
|
+
value: "h6"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
children: []
|
|
326
|
+
},
|
|
327
|
+
{
|
|
257
328
|
component: "List",
|
|
329
|
+
type: "instance",
|
|
330
|
+
label: "List (Unordered)",
|
|
258
331
|
children: [
|
|
259
332
|
{
|
|
333
|
+
component: "ListItem",
|
|
260
334
|
type: "instance",
|
|
335
|
+
children: [{ type: "text", value: "list item you can edit" }]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
261
338
|
component: "ListItem",
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
type: "text",
|
|
265
|
-
value: "List Item text you can edit",
|
|
266
|
-
placeholder: true
|
|
267
|
-
}
|
|
268
|
-
]
|
|
339
|
+
type: "instance",
|
|
340
|
+
children: [{ type: "text", value: "list item you can edit" }]
|
|
269
341
|
},
|
|
270
342
|
{
|
|
343
|
+
component: "ListItem",
|
|
271
344
|
type: "instance",
|
|
345
|
+
children: [{ type: "text", value: "list item you can edit" }]
|
|
346
|
+
}
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
component: "List",
|
|
351
|
+
type: "instance",
|
|
352
|
+
label: "List (Ordered)",
|
|
353
|
+
props: [
|
|
354
|
+
{
|
|
355
|
+
name: "ordered",
|
|
356
|
+
type: "boolean",
|
|
357
|
+
value: true
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
children: [
|
|
361
|
+
{
|
|
272
362
|
component: "ListItem",
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
type: "text",
|
|
276
|
-
value: "List Item text you can edit",
|
|
277
|
-
placeholder: true
|
|
278
|
-
}
|
|
279
|
-
]
|
|
363
|
+
type: "instance",
|
|
364
|
+
children: [{ type: "text", value: "list item you can edit" }]
|
|
280
365
|
},
|
|
281
366
|
{
|
|
367
|
+
component: "ListItem",
|
|
282
368
|
type: "instance",
|
|
369
|
+
children: [{ type: "text", value: "list item you can edit" }]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
283
372
|
component: "ListItem",
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
type: "text",
|
|
287
|
-
value: "List Item text you can edit",
|
|
288
|
-
placeholder: true
|
|
289
|
-
}
|
|
290
|
-
]
|
|
373
|
+
type: "instance",
|
|
374
|
+
children: [{ type: "text", value: "list item you can edit" }]
|
|
291
375
|
}
|
|
292
376
|
]
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
component: "Link",
|
|
380
|
+
type: "instance",
|
|
381
|
+
children: []
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
component: "Image",
|
|
385
|
+
type: "instance",
|
|
386
|
+
styles: [
|
|
387
|
+
{
|
|
388
|
+
property: "marginRight",
|
|
389
|
+
value: {
|
|
390
|
+
type: "keyword",
|
|
391
|
+
value: "auto"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
property: "marginLeft",
|
|
396
|
+
value: {
|
|
397
|
+
type: "keyword",
|
|
398
|
+
value: "auto"
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
property: "width",
|
|
403
|
+
value: {
|
|
404
|
+
type: "unit",
|
|
405
|
+
unit: "%",
|
|
406
|
+
value: 100
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
property: "height",
|
|
411
|
+
value: {
|
|
412
|
+
type: "keyword",
|
|
413
|
+
value: "auto"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
children: []
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
component: "Separator",
|
|
421
|
+
type: "instance",
|
|
422
|
+
children: []
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
component: "Blockquote",
|
|
426
|
+
type: "instance",
|
|
427
|
+
children: []
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
component: "HtmlEmbed",
|
|
431
|
+
type: "instance",
|
|
432
|
+
children: []
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
component: "CodeText",
|
|
436
|
+
type: "instance",
|
|
437
|
+
children: []
|
|
293
438
|
}
|
|
294
439
|
]
|
|
295
440
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webstudio-is/react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.0",
|
|
4
4
|
"description": "Webstudio JavaScript / TypeScript API",
|
|
5
5
|
"author": "Webstudio <github@webstudio.is>",
|
|
6
6
|
"homepage": "https://webstudio.is",
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
"change-case": "^5.4.4",
|
|
26
26
|
"html-tags": "^4.0.0",
|
|
27
27
|
"nanoid": "^5.0.8",
|
|
28
|
-
"@webstudio-is/css-engine": "0.
|
|
29
|
-
"@webstudio-is/
|
|
30
|
-
"@webstudio-is/
|
|
31
|
-
"@webstudio-is/
|
|
32
|
-
"@webstudio-is/
|
|
28
|
+
"@webstudio-is/css-engine": "0.195.0",
|
|
29
|
+
"@webstudio-is/fonts": "0.195.0",
|
|
30
|
+
"@webstudio-is/icons": "^0.195.0",
|
|
31
|
+
"@webstudio-is/image": "0.195.0",
|
|
32
|
+
"@webstudio-is/template": "0.195.0",
|
|
33
|
+
"@webstudio-is/sdk": "0.195.0"
|
|
33
34
|
},
|
|
34
35
|
"exports": {
|
|
35
36
|
".": {
|