@webstudio-is/sdk 0.0.0-017f1bd

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.
Files changed (47) hide show
  1. package/LICENSE +661 -0
  2. package/lib/__generated__/normalize.css.js +593 -0
  3. package/lib/core-templates.js +1267 -0
  4. package/lib/index.js +2918 -0
  5. package/lib/runtime.js +117 -0
  6. package/lib/types/__generated__/normalize.css.d.ts +57 -0
  7. package/lib/types/__generated__/tags.d.ts +1 -0
  8. package/lib/types/core-metas.d.ts +20 -0
  9. package/lib/types/core-templates.d.ts +9 -0
  10. package/lib/types/css.d.ts +31 -0
  11. package/lib/types/css.test.d.ts +1 -0
  12. package/lib/types/expression.d.ts +60 -0
  13. package/lib/types/expression.test.d.ts +1 -0
  14. package/lib/types/form-fields.d.ts +8 -0
  15. package/lib/types/index.d.ts +26 -0
  16. package/lib/types/instances-utils.d.ts +8 -0
  17. package/lib/types/instances-utils.test.d.ts +1 -0
  18. package/lib/types/page-meta-generator.d.ts +24 -0
  19. package/lib/types/page-meta-generator.test.d.ts +1 -0
  20. package/lib/types/page-utils.d.ts +24 -0
  21. package/lib/types/page-utils.test.d.ts +1 -0
  22. package/lib/types/resource-loader.d.ts +30 -0
  23. package/lib/types/resource-loader.test.d.ts +1 -0
  24. package/lib/types/resources-generator.d.ts +22 -0
  25. package/lib/types/resources-generator.test.d.ts +1 -0
  26. package/lib/types/runtime.d.ts +8 -0
  27. package/lib/types/schema/animation-schema.d.ts +53844 -0
  28. package/lib/types/schema/assets.d.ts +455 -0
  29. package/lib/types/schema/breakpoints.d.ts +56 -0
  30. package/lib/types/schema/component-meta.d.ts +12262 -0
  31. package/lib/types/schema/data-sources.d.ts +303 -0
  32. package/lib/types/schema/deployment.d.ts +41 -0
  33. package/lib/types/schema/instances.d.ts +214 -0
  34. package/lib/types/schema/pages.d.ts +676 -0
  35. package/lib/types/schema/prop-meta.d.ts +500 -0
  36. package/lib/types/schema/props.d.ts +37387 -0
  37. package/lib/types/schema/resources.d.ts +121 -0
  38. package/lib/types/schema/style-source-selections.d.ts +23 -0
  39. package/lib/types/schema/style-sources.d.ts +62 -0
  40. package/lib/types/schema/styles.d.ts +6293 -0
  41. package/lib/types/schema/webstudio.d.ts +24734 -0
  42. package/lib/types/scope.d.ts +16 -0
  43. package/lib/types/scope.test.d.ts +1 -0
  44. package/lib/types/to-string.d.ts +2 -0
  45. package/lib/types/url-pattern.d.ts +2 -0
  46. package/lib/types/url-pattern.test.d.ts +1 -0
  47. package/package.json +61 -0
@@ -0,0 +1,593 @@
1
+ // src/__generated__/normalize.css.ts
2
+ var div = [
3
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
4
+ {
5
+ property: "border-top-width",
6
+ value: { type: "unit", unit: "px", value: 1 }
7
+ },
8
+ {
9
+ property: "border-right-width",
10
+ value: { type: "unit", unit: "px", value: 1 }
11
+ },
12
+ {
13
+ property: "border-bottom-width",
14
+ value: { type: "unit", unit: "px", value: 1 }
15
+ },
16
+ {
17
+ property: "border-left-width",
18
+ value: { type: "unit", unit: "px", value: 1 }
19
+ },
20
+ { property: "outline-width", value: { type: "unit", unit: "px", value: 1 } }
21
+ ];
22
+ var address = div;
23
+ var article = div;
24
+ var aside = div;
25
+ var figure = div;
26
+ var footer = div;
27
+ var header = div;
28
+ var main = div;
29
+ var nav = div;
30
+ var section = div;
31
+ var form = div;
32
+ var label = div;
33
+ var time = div;
34
+ var h1 = div;
35
+ var h2 = div;
36
+ var h3 = div;
37
+ var h4 = div;
38
+ var h5 = div;
39
+ var h6 = div;
40
+ var i = div;
41
+ var img = div;
42
+ var a = div;
43
+ var li = div;
44
+ var ul = div;
45
+ var ol = div;
46
+ var p = div;
47
+ var span = div;
48
+ var html = [
49
+ { property: "display", value: { type: "keyword", value: "grid" } },
50
+ { property: "min-height", value: { type: "unit", unit: "%", value: 100 } },
51
+ {
52
+ property: "font-family",
53
+ value: { type: "fontFamily", value: ["Arial", "Roboto", "sans-serif"] }
54
+ },
55
+ { property: "font-size", value: { type: "unit", unit: "px", value: 16 } },
56
+ {
57
+ property: "line-height",
58
+ value: { type: "unit", unit: "number", value: 1.2 }
59
+ },
60
+ {
61
+ property: "white-space-collapse",
62
+ value: { type: "keyword", value: "preserve" }
63
+ }
64
+ ];
65
+ var body = [
66
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
67
+ {
68
+ property: "margin-right",
69
+ value: { type: "unit", unit: "number", value: 0 }
70
+ },
71
+ {
72
+ property: "margin-bottom",
73
+ value: { type: "unit", unit: "number", value: 0 }
74
+ },
75
+ {
76
+ property: "margin-left",
77
+ value: { type: "unit", unit: "number", value: 0 }
78
+ },
79
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
80
+ {
81
+ property: "border-top-width",
82
+ value: { type: "unit", unit: "px", value: 1 }
83
+ },
84
+ {
85
+ property: "border-right-width",
86
+ value: { type: "unit", unit: "px", value: 1 }
87
+ },
88
+ {
89
+ property: "border-bottom-width",
90
+ value: { type: "unit", unit: "px", value: 1 }
91
+ },
92
+ {
93
+ property: "border-left-width",
94
+ value: { type: "unit", unit: "px", value: 1 }
95
+ },
96
+ {
97
+ property: "-webkit-font-smoothing",
98
+ value: { type: "keyword", value: "antialiased" }
99
+ },
100
+ {
101
+ property: "-moz-osx-font-smoothing",
102
+ value: { type: "keyword", value: "grayscale" }
103
+ }
104
+ ];
105
+ var hr = [
106
+ { property: "height", value: { type: "unit", unit: "number", value: 0 } },
107
+ { property: "color", value: { type: "keyword", value: "inherit" } },
108
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
109
+ ];
110
+ var b = [
111
+ {
112
+ property: "font-weight",
113
+ value: { type: "unit", unit: "number", value: 700 }
114
+ },
115
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
116
+ {
117
+ property: "border-top-width",
118
+ value: { type: "unit", unit: "px", value: 1 }
119
+ },
120
+ {
121
+ property: "border-right-width",
122
+ value: { type: "unit", unit: "px", value: 1 }
123
+ },
124
+ {
125
+ property: "border-bottom-width",
126
+ value: { type: "unit", unit: "px", value: 1 }
127
+ },
128
+ {
129
+ property: "border-left-width",
130
+ value: { type: "unit", unit: "px", value: 1 }
131
+ }
132
+ ];
133
+ var strong = b;
134
+ var code = [
135
+ {
136
+ property: "font-family",
137
+ value: {
138
+ type: "fontFamily",
139
+ value: [
140
+ "ui-monospace",
141
+ "SFMono-Regular",
142
+ "Consolas",
143
+ "Liberation Mono",
144
+ "Menlo",
145
+ "monospace"
146
+ ]
147
+ }
148
+ },
149
+ { property: "font-size", value: { type: "unit", unit: "em", value: 1 } },
150
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
151
+ {
152
+ property: "border-top-width",
153
+ value: { type: "unit", unit: "px", value: 1 }
154
+ },
155
+ {
156
+ property: "border-right-width",
157
+ value: { type: "unit", unit: "px", value: 1 }
158
+ },
159
+ {
160
+ property: "border-bottom-width",
161
+ value: { type: "unit", unit: "px", value: 1 }
162
+ },
163
+ {
164
+ property: "border-left-width",
165
+ value: { type: "unit", unit: "px", value: 1 }
166
+ }
167
+ ];
168
+ var kbd = code;
169
+ var samp = code;
170
+ var pre = code;
171
+ var small = [
172
+ { property: "font-size", value: { type: "unit", unit: "%", value: 80 } },
173
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
174
+ {
175
+ property: "border-top-width",
176
+ value: { type: "unit", unit: "px", value: 1 }
177
+ },
178
+ {
179
+ property: "border-right-width",
180
+ value: { type: "unit", unit: "px", value: 1 }
181
+ },
182
+ {
183
+ property: "border-bottom-width",
184
+ value: { type: "unit", unit: "px", value: 1 }
185
+ },
186
+ {
187
+ property: "border-left-width",
188
+ value: { type: "unit", unit: "px", value: 1 }
189
+ }
190
+ ];
191
+ var sub = [
192
+ { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
193
+ {
194
+ property: "line-height",
195
+ value: { type: "unit", unit: "number", value: 0 }
196
+ },
197
+ { property: "position", value: { type: "keyword", value: "relative" } },
198
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
199
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
200
+ {
201
+ property: "border-top-width",
202
+ value: { type: "unit", unit: "px", value: 1 }
203
+ },
204
+ {
205
+ property: "border-right-width",
206
+ value: { type: "unit", unit: "px", value: 1 }
207
+ },
208
+ {
209
+ property: "border-bottom-width",
210
+ value: { type: "unit", unit: "px", value: 1 }
211
+ },
212
+ {
213
+ property: "border-left-width",
214
+ value: { type: "unit", unit: "px", value: 1 }
215
+ },
216
+ { property: "bottom", value: { type: "unit", unit: "em", value: -0.25 } }
217
+ ];
218
+ var sup = [
219
+ { property: "font-size", value: { type: "unit", unit: "%", value: 75 } },
220
+ {
221
+ property: "line-height",
222
+ value: { type: "unit", unit: "number", value: 0 }
223
+ },
224
+ { property: "position", value: { type: "keyword", value: "relative" } },
225
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
226
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
227
+ {
228
+ property: "border-top-width",
229
+ value: { type: "unit", unit: "px", value: 1 }
230
+ },
231
+ {
232
+ property: "border-right-width",
233
+ value: { type: "unit", unit: "px", value: 1 }
234
+ },
235
+ {
236
+ property: "border-bottom-width",
237
+ value: { type: "unit", unit: "px", value: 1 }
238
+ },
239
+ {
240
+ property: "border-left-width",
241
+ value: { type: "unit", unit: "px", value: 1 }
242
+ },
243
+ { property: "top", value: { type: "unit", unit: "em", value: -0.5 } }
244
+ ];
245
+ var table = [
246
+ {
247
+ property: "text-indent",
248
+ value: { type: "unit", unit: "number", value: 0 }
249
+ },
250
+ {
251
+ property: "border-top-width",
252
+ value: { type: "unit", unit: "px", value: 1 }
253
+ },
254
+ {
255
+ property: "border-right-width",
256
+ value: { type: "unit", unit: "px", value: 1 }
257
+ },
258
+ {
259
+ property: "border-bottom-width",
260
+ value: { type: "unit", unit: "px", value: 1 }
261
+ },
262
+ {
263
+ property: "border-left-width",
264
+ value: { type: "unit", unit: "px", value: 1 }
265
+ },
266
+ {
267
+ property: "border-top-color",
268
+ value: { type: "keyword", value: "inherit" }
269
+ },
270
+ {
271
+ property: "border-right-color",
272
+ value: { type: "keyword", value: "inherit" }
273
+ },
274
+ {
275
+ property: "border-bottom-color",
276
+ value: { type: "keyword", value: "inherit" }
277
+ },
278
+ {
279
+ property: "border-left-color",
280
+ value: { type: "keyword", value: "inherit" }
281
+ },
282
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } }
283
+ ];
284
+ var input = [
285
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
286
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
287
+ {
288
+ property: "line-height",
289
+ value: { type: "unit", unit: "number", value: 1.15 }
290
+ },
291
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
292
+ {
293
+ property: "margin-right",
294
+ value: { type: "unit", unit: "number", value: 0 }
295
+ },
296
+ {
297
+ property: "margin-bottom",
298
+ value: { type: "unit", unit: "number", value: 0 }
299
+ },
300
+ {
301
+ property: "margin-left",
302
+ value: { type: "unit", unit: "number", value: 0 }
303
+ },
304
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
305
+ {
306
+ property: "border-top-width",
307
+ value: { type: "unit", unit: "px", value: 1 }
308
+ },
309
+ {
310
+ property: "border-right-width",
311
+ value: { type: "unit", unit: "px", value: 1 }
312
+ },
313
+ {
314
+ property: "border-bottom-width",
315
+ value: { type: "unit", unit: "px", value: 1 }
316
+ },
317
+ {
318
+ property: "border-left-width",
319
+ value: { type: "unit", unit: "px", value: 1 }
320
+ },
321
+ { property: "border-top-style", value: { type: "keyword", value: "solid" } },
322
+ {
323
+ property: "border-right-style",
324
+ value: { type: "keyword", value: "solid" }
325
+ },
326
+ {
327
+ property: "border-bottom-style",
328
+ value: { type: "keyword", value: "solid" }
329
+ },
330
+ { property: "border-left-style", value: { type: "keyword", value: "solid" } }
331
+ ];
332
+ var textarea = input;
333
+ var optgroup = [
334
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
335
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
336
+ {
337
+ property: "line-height",
338
+ value: { type: "unit", unit: "number", value: 1.15 }
339
+ },
340
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
341
+ {
342
+ property: "margin-right",
343
+ value: { type: "unit", unit: "number", value: 0 }
344
+ },
345
+ {
346
+ property: "margin-bottom",
347
+ value: { type: "unit", unit: "number", value: 0 }
348
+ },
349
+ {
350
+ property: "margin-left",
351
+ value: { type: "unit", unit: "number", value: 0 }
352
+ },
353
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
354
+ {
355
+ property: "border-top-width",
356
+ value: { type: "unit", unit: "px", value: 1 }
357
+ },
358
+ {
359
+ property: "border-right-width",
360
+ value: { type: "unit", unit: "px", value: 1 }
361
+ },
362
+ {
363
+ property: "border-bottom-width",
364
+ value: { type: "unit", unit: "px", value: 1 }
365
+ },
366
+ {
367
+ property: "border-left-width",
368
+ value: { type: "unit", unit: "px", value: 1 }
369
+ }
370
+ ];
371
+ var radio = [
372
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
373
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
374
+ {
375
+ property: "line-height",
376
+ value: { type: "unit", unit: "number", value: 1.15 }
377
+ },
378
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
379
+ {
380
+ property: "margin-right",
381
+ value: { type: "unit", unit: "number", value: 0 }
382
+ },
383
+ {
384
+ property: "margin-bottom",
385
+ value: { type: "unit", unit: "number", value: 0 }
386
+ },
387
+ {
388
+ property: "margin-left",
389
+ value: { type: "unit", unit: "number", value: 0 }
390
+ },
391
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
392
+ {
393
+ property: "border-top-width",
394
+ value: { type: "unit", unit: "px", value: 1 }
395
+ },
396
+ {
397
+ property: "border-right-width",
398
+ value: { type: "unit", unit: "px", value: 1 }
399
+ },
400
+ {
401
+ property: "border-bottom-width",
402
+ value: { type: "unit", unit: "px", value: 1 }
403
+ },
404
+ {
405
+ property: "border-left-width",
406
+ value: { type: "unit", unit: "px", value: 1 }
407
+ },
408
+ { property: "border-top-style", value: { type: "keyword", value: "none" } },
409
+ { property: "border-right-style", value: { type: "keyword", value: "none" } },
410
+ {
411
+ property: "border-bottom-style",
412
+ value: { type: "keyword", value: "none" }
413
+ },
414
+ { property: "border-left-style", value: { type: "keyword", value: "none" } }
415
+ ];
416
+ var checkbox = radio;
417
+ var button = [
418
+ { property: "font-family", value: { type: "keyword", value: "inherit" } },
419
+ { property: "font-size", value: { type: "unit", unit: "%", value: 100 } },
420
+ {
421
+ property: "line-height",
422
+ value: { type: "unit", unit: "number", value: 1.15 }
423
+ },
424
+ { property: "margin-top", value: { type: "unit", unit: "number", value: 0 } },
425
+ {
426
+ property: "margin-right",
427
+ value: { type: "unit", unit: "number", value: 0 }
428
+ },
429
+ {
430
+ property: "margin-bottom",
431
+ value: { type: "unit", unit: "number", value: 0 }
432
+ },
433
+ {
434
+ property: "margin-left",
435
+ value: { type: "unit", unit: "number", value: 0 }
436
+ },
437
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
438
+ {
439
+ property: "border-top-width",
440
+ value: { type: "unit", unit: "px", value: 1 }
441
+ },
442
+ {
443
+ property: "border-right-width",
444
+ value: { type: "unit", unit: "px", value: 1 }
445
+ },
446
+ {
447
+ property: "border-bottom-width",
448
+ value: { type: "unit", unit: "px", value: 1 }
449
+ },
450
+ {
451
+ property: "border-left-width",
452
+ value: { type: "unit", unit: "px", value: 1 }
453
+ },
454
+ { property: "border-top-style", value: { type: "keyword", value: "solid" } },
455
+ {
456
+ property: "border-right-style",
457
+ value: { type: "keyword", value: "solid" }
458
+ },
459
+ {
460
+ property: "border-bottom-style",
461
+ value: { type: "keyword", value: "solid" }
462
+ },
463
+ { property: "border-left-style", value: { type: "keyword", value: "solid" } },
464
+ { property: "text-transform", value: { type: "keyword", value: "none" } }
465
+ ];
466
+ var select = button;
467
+ var legend = [
468
+ {
469
+ property: "padding-top",
470
+ value: { type: "unit", unit: "number", value: 0 }
471
+ },
472
+ {
473
+ property: "padding-right",
474
+ value: { type: "unit", unit: "number", value: 0 }
475
+ },
476
+ {
477
+ property: "padding-bottom",
478
+ value: { type: "unit", unit: "number", value: 0 }
479
+ },
480
+ {
481
+ property: "padding-left",
482
+ value: { type: "unit", unit: "number", value: 0 }
483
+ },
484
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
485
+ {
486
+ property: "border-top-width",
487
+ value: { type: "unit", unit: "px", value: 1 }
488
+ },
489
+ {
490
+ property: "border-right-width",
491
+ value: { type: "unit", unit: "px", value: 1 }
492
+ },
493
+ {
494
+ property: "border-bottom-width",
495
+ value: { type: "unit", unit: "px", value: 1 }
496
+ },
497
+ {
498
+ property: "border-left-width",
499
+ value: { type: "unit", unit: "px", value: 1 }
500
+ }
501
+ ];
502
+ var progress = [
503
+ { property: "vertical-align", value: { type: "keyword", value: "baseline" } },
504
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
505
+ {
506
+ property: "border-top-width",
507
+ value: { type: "unit", unit: "px", value: 1 }
508
+ },
509
+ {
510
+ property: "border-right-width",
511
+ value: { type: "unit", unit: "px", value: 1 }
512
+ },
513
+ {
514
+ property: "border-bottom-width",
515
+ value: { type: "unit", unit: "px", value: 1 }
516
+ },
517
+ {
518
+ property: "border-left-width",
519
+ value: { type: "unit", unit: "px", value: 1 }
520
+ }
521
+ ];
522
+ var summary = [
523
+ { property: "display", value: { type: "keyword", value: "list-item" } },
524
+ { property: "box-sizing", value: { type: "keyword", value: "border-box" } },
525
+ {
526
+ property: "border-top-width",
527
+ value: { type: "unit", unit: "px", value: 1 }
528
+ },
529
+ {
530
+ property: "border-right-width",
531
+ value: { type: "unit", unit: "px", value: 1 }
532
+ },
533
+ {
534
+ property: "border-bottom-width",
535
+ value: { type: "unit", unit: "px", value: 1 }
536
+ },
537
+ {
538
+ property: "border-left-width",
539
+ value: { type: "unit", unit: "px", value: 1 }
540
+ }
541
+ ];
542
+ export {
543
+ a,
544
+ address,
545
+ article,
546
+ aside,
547
+ b,
548
+ body,
549
+ button,
550
+ checkbox,
551
+ code,
552
+ div,
553
+ figure,
554
+ footer,
555
+ form,
556
+ h1,
557
+ h2,
558
+ h3,
559
+ h4,
560
+ h5,
561
+ h6,
562
+ header,
563
+ hr,
564
+ html,
565
+ i,
566
+ img,
567
+ input,
568
+ kbd,
569
+ label,
570
+ legend,
571
+ li,
572
+ main,
573
+ nav,
574
+ ol,
575
+ optgroup,
576
+ p,
577
+ pre,
578
+ progress,
579
+ radio,
580
+ samp,
581
+ section,
582
+ select,
583
+ small,
584
+ span,
585
+ strong,
586
+ sub,
587
+ summary,
588
+ sup,
589
+ table,
590
+ textarea,
591
+ time,
592
+ ul
593
+ };