@paged-media/plugin-api 0.2.42-canary.0 → 0.2.45-canary.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/dist/host.d.ts +80 -0
- package/dist/index.d.ts +6 -5
- package/dist/manifest.d.ts +25 -0
- package/dist/mutations.d.ts +1 -1
- package/dist/object-model.d.ts +556 -0
- package/dist/panel-schema.d.ts +113 -1
- package/dist/widgets.d.ts +56 -1
- package/dist/wire.d.ts +124 -9
- package/package.json +1 -1
- package/src/manifest.schema.json +170 -0
package/src/manifest.schema.json
CHANGED
|
@@ -327,6 +327,176 @@
|
|
|
327
327
|
"type": "string"
|
|
328
328
|
}
|
|
329
329
|
},
|
|
330
|
+
"objectModel": {
|
|
331
|
+
"description": "ADR 323 — the object model contributed through host.contribute.objectModel. schema/args are inline or a bundle-relative path to a JSON file.",
|
|
332
|
+
"type": "object",
|
|
333
|
+
"required": [
|
|
334
|
+
"kinds"
|
|
335
|
+
],
|
|
336
|
+
"additionalProperties": false,
|
|
337
|
+
"properties": {
|
|
338
|
+
"kinds": {
|
|
339
|
+
"type": "array",
|
|
340
|
+
"items": {
|
|
341
|
+
"type": "object",
|
|
342
|
+
"required": [
|
|
343
|
+
"kind",
|
|
344
|
+
"title",
|
|
345
|
+
"schema"
|
|
346
|
+
],
|
|
347
|
+
"additionalProperties": false,
|
|
348
|
+
"properties": {
|
|
349
|
+
"kind": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
|
|
352
|
+
},
|
|
353
|
+
"title": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
"schema": {
|
|
357
|
+
"oneOf": [
|
|
358
|
+
{
|
|
359
|
+
"type": "string"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"type": "array",
|
|
363
|
+
"minItems": 1,
|
|
364
|
+
"items": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"required": [
|
|
367
|
+
"path",
|
|
368
|
+
"type"
|
|
369
|
+
],
|
|
370
|
+
"properties": {
|
|
371
|
+
"path": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"minLength": 1
|
|
374
|
+
},
|
|
375
|
+
"type": {
|
|
376
|
+
"type": "object",
|
|
377
|
+
"required": [
|
|
378
|
+
"kind"
|
|
379
|
+
],
|
|
380
|
+
"properties": {
|
|
381
|
+
"kind": {
|
|
382
|
+
"enum": [
|
|
383
|
+
"bool",
|
|
384
|
+
"number",
|
|
385
|
+
"length",
|
|
386
|
+
"color",
|
|
387
|
+
"enum",
|
|
388
|
+
"text",
|
|
389
|
+
"ref",
|
|
390
|
+
"bounds",
|
|
391
|
+
"transform",
|
|
392
|
+
"point",
|
|
393
|
+
"bytes",
|
|
394
|
+
"asset",
|
|
395
|
+
"list",
|
|
396
|
+
"map",
|
|
397
|
+
"struct"
|
|
398
|
+
]
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"commands": {
|
|
411
|
+
"type": "array",
|
|
412
|
+
"items": {
|
|
413
|
+
"type": "object",
|
|
414
|
+
"required": [
|
|
415
|
+
"id",
|
|
416
|
+
"title",
|
|
417
|
+
"args"
|
|
418
|
+
],
|
|
419
|
+
"additionalProperties": false,
|
|
420
|
+
"properties": {
|
|
421
|
+
"id": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"title": {
|
|
425
|
+
"type": "string"
|
|
426
|
+
},
|
|
427
|
+
"args": {
|
|
428
|
+
"oneOf": [
|
|
429
|
+
{
|
|
430
|
+
"type": "string"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"type": "object",
|
|
434
|
+
"required": [
|
|
435
|
+
"kind"
|
|
436
|
+
],
|
|
437
|
+
"properties": {
|
|
438
|
+
"kind": {
|
|
439
|
+
"enum": [
|
|
440
|
+
"bool",
|
|
441
|
+
"number",
|
|
442
|
+
"length",
|
|
443
|
+
"color",
|
|
444
|
+
"enum",
|
|
445
|
+
"text",
|
|
446
|
+
"ref",
|
|
447
|
+
"bounds",
|
|
448
|
+
"transform",
|
|
449
|
+
"point",
|
|
450
|
+
"bytes",
|
|
451
|
+
"asset",
|
|
452
|
+
"list",
|
|
453
|
+
"map",
|
|
454
|
+
"struct"
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
"result": {
|
|
462
|
+
"oneOf": [
|
|
463
|
+
{
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"type": "object",
|
|
468
|
+
"required": [
|
|
469
|
+
"kind"
|
|
470
|
+
],
|
|
471
|
+
"properties": {
|
|
472
|
+
"kind": {
|
|
473
|
+
"enum": [
|
|
474
|
+
"bool",
|
|
475
|
+
"number",
|
|
476
|
+
"length",
|
|
477
|
+
"color",
|
|
478
|
+
"enum",
|
|
479
|
+
"text",
|
|
480
|
+
"ref",
|
|
481
|
+
"bounds",
|
|
482
|
+
"transform",
|
|
483
|
+
"point",
|
|
484
|
+
"bytes",
|
|
485
|
+
"asset",
|
|
486
|
+
"list",
|
|
487
|
+
"map",
|
|
488
|
+
"struct"
|
|
489
|
+
]
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
330
500
|
"partTypes": {
|
|
331
501
|
"type": "array",
|
|
332
502
|
"items": {
|