@timeax/digital-service-engine 0.0.1 → 0.0.2
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/core/index.cjs +1097 -193
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +189 -51
- package/dist/core/index.d.ts +189 -51
- package/dist/core/index.js +1095 -193
- package/dist/core/index.js.map +1 -1
- package/dist/react/index.cjs +8313 -2542
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +401 -141
- package/dist/react/index.d.ts +401 -141
- package/dist/react/index.js +8471 -2709
- package/dist/react/index.js.map +1 -1
- package/dist/schema/index.d.cts +122 -54
- package/dist/schema/index.d.ts +122 -54
- package/dist/workspace/index.cjs +448 -239
- package/dist/workspace/index.cjs.map +1 -1
- package/dist/workspace/index.d.cts +54 -50
- package/dist/workspace/index.d.ts +54 -50
- package/dist/workspace/index.js +448 -239
- package/dist/workspace/index.js.map +1 -1
- package/package.json +15 -6
- package/schema/editor-snapshot.schema.json +121 -209
- package/schema/service-props.schema.json +121 -209
|
@@ -49,6 +49,15 @@
|
|
|
49
49
|
},
|
|
50
50
|
"fallbacks": {
|
|
51
51
|
"$ref": "#/definitions/ServiceFallback"
|
|
52
|
+
},
|
|
53
|
+
"name": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"notices": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"$ref": "#/definitions/ServicePropsNotice"
|
|
60
|
+
}
|
|
52
61
|
}
|
|
53
62
|
},
|
|
54
63
|
"required": [
|
|
@@ -272,13 +281,6 @@
|
|
|
272
281
|
"required": {
|
|
273
282
|
"type": "boolean"
|
|
274
283
|
},
|
|
275
|
-
"ui": {
|
|
276
|
-
"type": "object",
|
|
277
|
-
"additionalProperties": {
|
|
278
|
-
"$ref": "#/definitions/Ui"
|
|
279
|
-
},
|
|
280
|
-
"description": "Host-defined prop names → typed UI nodes"
|
|
281
|
-
},
|
|
282
284
|
"defaults": {
|
|
283
285
|
"type": "object",
|
|
284
286
|
"additionalProperties": {},
|
|
@@ -430,13 +432,6 @@
|
|
|
430
432
|
"required": {
|
|
431
433
|
"type": "boolean"
|
|
432
434
|
},
|
|
433
|
-
"ui": {
|
|
434
|
-
"type": "object",
|
|
435
|
-
"additionalProperties": {
|
|
436
|
-
"$ref": "#/definitions/Ui"
|
|
437
|
-
},
|
|
438
|
-
"description": "Host-defined prop names → typed UI nodes"
|
|
439
|
-
},
|
|
440
435
|
"defaults": {
|
|
441
436
|
"type": "object",
|
|
442
437
|
"additionalProperties": {},
|
|
@@ -536,236 +531,153 @@
|
|
|
536
531
|
"utility"
|
|
537
532
|
]
|
|
538
533
|
},
|
|
539
|
-
"
|
|
540
|
-
"
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
"$ref": "#/definitions/UiAnyOf"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"$ref": "#/definitions/UiArray"
|
|
534
|
+
"ServiceFallback": {
|
|
535
|
+
"type": "object",
|
|
536
|
+
"properties": {
|
|
537
|
+
"nodes": {
|
|
538
|
+
"type": "object",
|
|
539
|
+
"additionalProperties": {
|
|
540
|
+
"type": "array",
|
|
541
|
+
"items": {
|
|
542
|
+
"$ref": "#/definitions/ServiceIdRef"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"description": "Node-scoped fallbacks: prefer these when that node’s primary service fails"
|
|
555
546
|
},
|
|
556
|
-
{
|
|
557
|
-
"
|
|
547
|
+
"global": {
|
|
548
|
+
"type": "object",
|
|
549
|
+
"additionalProperties": {
|
|
550
|
+
"type": "array",
|
|
551
|
+
"items": {
|
|
552
|
+
"$ref": "#/definitions/ServiceIdRef"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"description": "Primary→fallback list used when no node-scoped entry is present"
|
|
558
556
|
}
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"ServiceIdRef": {
|
|
560
|
+
"type": [
|
|
561
|
+
"number",
|
|
562
|
+
"string"
|
|
559
563
|
]
|
|
560
564
|
},
|
|
561
|
-
"
|
|
565
|
+
"ServicePropsNotice": {
|
|
562
566
|
"type": "object",
|
|
563
567
|
"properties": {
|
|
568
|
+
"id": {
|
|
569
|
+
"type": "string"
|
|
570
|
+
},
|
|
564
571
|
"type": {
|
|
565
|
-
"
|
|
566
|
-
"const": "string"
|
|
572
|
+
"$ref": "#/definitions/NoticeType"
|
|
567
573
|
},
|
|
568
|
-
"
|
|
569
|
-
"
|
|
570
|
-
"items": {
|
|
571
|
-
"type": "string"
|
|
572
|
-
}
|
|
574
|
+
"kind": {
|
|
575
|
+
"$ref": "#/definitions/NoticeKind"
|
|
573
576
|
},
|
|
574
|
-
"
|
|
575
|
-
"
|
|
577
|
+
"severity": {
|
|
578
|
+
"$ref": "#/definitions/NoticeSeverity"
|
|
576
579
|
},
|
|
577
|
-
"
|
|
578
|
-
"
|
|
580
|
+
"target": {
|
|
581
|
+
"$ref": "#/definitions/NoticeTarget"
|
|
579
582
|
},
|
|
580
|
-
"
|
|
583
|
+
"title": {
|
|
581
584
|
"type": "string"
|
|
582
585
|
},
|
|
583
|
-
"
|
|
586
|
+
"description": {
|
|
584
587
|
"type": "string"
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
"required": [
|
|
588
|
-
"type"
|
|
589
|
-
],
|
|
590
|
-
"description": "string"
|
|
591
|
-
},
|
|
592
|
-
"UiNumber": {
|
|
593
|
-
"type": "object",
|
|
594
|
-
"properties": {
|
|
595
|
-
"type": {
|
|
596
|
-
"type": "string",
|
|
597
|
-
"const": "number"
|
|
598
588
|
},
|
|
599
|
-
"
|
|
600
|
-
"type": "
|
|
589
|
+
"reason": {
|
|
590
|
+
"type": "string"
|
|
601
591
|
},
|
|
602
|
-
"
|
|
603
|
-
"type": "
|
|
592
|
+
"marked_at": {
|
|
593
|
+
"type": "string"
|
|
604
594
|
},
|
|
605
|
-
"
|
|
606
|
-
"type": "
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
|
-
"required": [
|
|
610
|
-
"type"
|
|
611
|
-
],
|
|
612
|
-
"description": "number"
|
|
613
|
-
},
|
|
614
|
-
"UiBoolean": {
|
|
615
|
-
"type": "object",
|
|
616
|
-
"properties": {
|
|
617
|
-
"type": {
|
|
618
|
-
"type": "string",
|
|
619
|
-
"const": "boolean"
|
|
620
|
-
}
|
|
621
|
-
},
|
|
622
|
-
"required": [
|
|
623
|
-
"type"
|
|
624
|
-
],
|
|
625
|
-
"description": "boolean"
|
|
626
|
-
},
|
|
627
|
-
"UiAnyOf": {
|
|
628
|
-
"type": "object",
|
|
629
|
-
"properties": {
|
|
630
|
-
"type": {
|
|
631
|
-
"type": "string",
|
|
632
|
-
"const": "anyOf"
|
|
595
|
+
"icon": {
|
|
596
|
+
"type": "string"
|
|
633
597
|
},
|
|
634
|
-
"
|
|
635
|
-
"type": "
|
|
598
|
+
"color": {
|
|
599
|
+
"type": "string"
|
|
636
600
|
},
|
|
637
|
-
"
|
|
638
|
-
"type": "
|
|
639
|
-
"
|
|
640
|
-
"type": "object",
|
|
641
|
-
"properties": {
|
|
642
|
-
"type": {
|
|
643
|
-
"type": "string",
|
|
644
|
-
"enum": [
|
|
645
|
-
"string",
|
|
646
|
-
"number",
|
|
647
|
-
"boolean"
|
|
648
|
-
]
|
|
649
|
-
},
|
|
650
|
-
"title": {
|
|
651
|
-
"type": "string"
|
|
652
|
-
},
|
|
653
|
-
"description": {
|
|
654
|
-
"type": "string"
|
|
655
|
-
},
|
|
656
|
-
"value": {
|
|
657
|
-
"type": [
|
|
658
|
-
"string",
|
|
659
|
-
"number",
|
|
660
|
-
"boolean"
|
|
661
|
-
]
|
|
662
|
-
}
|
|
663
|
-
},
|
|
664
|
-
"required": [
|
|
665
|
-
"type",
|
|
666
|
-
"value"
|
|
667
|
-
]
|
|
668
|
-
}
|
|
601
|
+
"meta": {
|
|
602
|
+
"type": "object",
|
|
603
|
+
"additionalProperties": {}
|
|
669
604
|
}
|
|
670
605
|
},
|
|
671
606
|
"required": [
|
|
607
|
+
"id",
|
|
672
608
|
"type",
|
|
673
|
-
"
|
|
674
|
-
|
|
675
|
-
|
|
609
|
+
"kind",
|
|
610
|
+
"severity",
|
|
611
|
+
"target",
|
|
612
|
+
"title"
|
|
613
|
+
]
|
|
676
614
|
},
|
|
677
|
-
"
|
|
678
|
-
"type": "
|
|
679
|
-
"
|
|
680
|
-
"
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
},
|
|
684
|
-
"item": {
|
|
685
|
-
"$ref": "#/definitions/Ui"
|
|
686
|
-
},
|
|
687
|
-
"items": {
|
|
688
|
-
"type": "array",
|
|
689
|
-
"items": {
|
|
690
|
-
"$ref": "#/definitions/Ui"
|
|
691
|
-
}
|
|
692
|
-
},
|
|
693
|
-
"minItems": {
|
|
694
|
-
"type": "number"
|
|
695
|
-
},
|
|
696
|
-
"maxItems": {
|
|
697
|
-
"type": "number"
|
|
698
|
-
},
|
|
699
|
-
"uniqueItems": {
|
|
700
|
-
"type": "boolean"
|
|
701
|
-
}
|
|
702
|
-
},
|
|
703
|
-
"required": [
|
|
704
|
-
"type"
|
|
705
|
-
],
|
|
706
|
-
"description": "arrays: homogeneous (item) or tuple (items)"
|
|
615
|
+
"NoticeType": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"enum": [
|
|
618
|
+
"public",
|
|
619
|
+
"private"
|
|
620
|
+
]
|
|
707
621
|
},
|
|
708
|
-
"
|
|
709
|
-
"type": "
|
|
710
|
-
"
|
|
711
|
-
"
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
"
|
|
716
|
-
|
|
717
|
-
"additionalProperties": {
|
|
718
|
-
"$ref": "#/definitions/Ui"
|
|
719
|
-
}
|
|
720
|
-
},
|
|
721
|
-
"required": {
|
|
722
|
-
"type": "array",
|
|
723
|
-
"items": {
|
|
724
|
-
"type": "string"
|
|
725
|
-
}
|
|
726
|
-
},
|
|
727
|
-
"order": {
|
|
728
|
-
"type": "array",
|
|
729
|
-
"items": {
|
|
730
|
-
"type": "string"
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
"required": [
|
|
735
|
-
"type",
|
|
736
|
-
"fields"
|
|
622
|
+
"NoticeKind": {
|
|
623
|
+
"type": "string",
|
|
624
|
+
"enum": [
|
|
625
|
+
"label",
|
|
626
|
+
"warning",
|
|
627
|
+
"deprecation",
|
|
628
|
+
"compat",
|
|
629
|
+
"migration",
|
|
630
|
+
"policy"
|
|
737
631
|
],
|
|
738
|
-
"description": "
|
|
632
|
+
"description": "“label” is lightweight + UI-friendly (best, sale, hot, etc). Others remain semantic / governance oriented."
|
|
739
633
|
},
|
|
740
|
-
"
|
|
741
|
-
"type": "
|
|
742
|
-
"
|
|
743
|
-
"
|
|
634
|
+
"NoticeSeverity": {
|
|
635
|
+
"type": "string",
|
|
636
|
+
"enum": [
|
|
637
|
+
"info",
|
|
638
|
+
"warning",
|
|
639
|
+
"error"
|
|
640
|
+
]
|
|
641
|
+
},
|
|
642
|
+
"NoticeTarget": {
|
|
643
|
+
"anyOf": [
|
|
644
|
+
{
|
|
744
645
|
"type": "object",
|
|
745
|
-
"
|
|
746
|
-
"
|
|
747
|
-
|
|
748
|
-
"
|
|
646
|
+
"properties": {
|
|
647
|
+
"scope": {
|
|
648
|
+
"type": "string",
|
|
649
|
+
"const": "global"
|
|
749
650
|
}
|
|
750
651
|
},
|
|
751
|
-
"
|
|
652
|
+
"required": [
|
|
653
|
+
"scope"
|
|
654
|
+
]
|
|
752
655
|
},
|
|
753
|
-
|
|
656
|
+
{
|
|
754
657
|
"type": "object",
|
|
755
|
-
"
|
|
756
|
-
"
|
|
757
|
-
|
|
758
|
-
"
|
|
658
|
+
"properties": {
|
|
659
|
+
"scope": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"const": "node"
|
|
662
|
+
},
|
|
663
|
+
"node_kind": {
|
|
664
|
+
"type": "string",
|
|
665
|
+
"enum": [
|
|
666
|
+
"tag",
|
|
667
|
+
"field",
|
|
668
|
+
"option"
|
|
669
|
+
]
|
|
670
|
+
},
|
|
671
|
+
"node_id": {
|
|
672
|
+
"type": "string"
|
|
759
673
|
}
|
|
760
674
|
},
|
|
761
|
-
"
|
|
675
|
+
"required": [
|
|
676
|
+
"scope",
|
|
677
|
+
"node_kind",
|
|
678
|
+
"node_id"
|
|
679
|
+
]
|
|
762
680
|
}
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
"ServiceIdRef": {
|
|
766
|
-
"type": [
|
|
767
|
-
"number",
|
|
768
|
-
"string"
|
|
769
681
|
]
|
|
770
682
|
}
|
|
771
683
|
}
|