@middag-io/react 0.47.0 → 0.49.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-lib/base/shell/BasicShell.d.ts +1 -1
- package/dist-lib/base/utils/icon-registry.d.ts +3 -2
- package/dist-lib/base/utils/icon-registry.d.ts.map +1 -1
- package/dist-lib/contracts/generated/index.d.ts +4 -4
- package/dist-lib/contracts/generated/index.d.ts.map +1 -1
- package/dist-lib/contracts/generated/schemas.d.ts +131 -163
- package/dist-lib/contracts/generated/schemas.d.ts.map +1 -1
- package/dist-lib/contracts/generated/types.d.ts +69 -43
- package/dist-lib/contracts/generated/types.d.ts.map +1 -1
- package/dist-lib/contracts/navigation.d.ts +5 -38
- package/dist-lib/contracts/navigation.d.ts.map +1 -1
- package/dist-lib/contracts/page-contract-schema.d.ts +3 -3
- package/dist-lib/contracts/shared-props.d.ts +10 -71
- package/dist-lib/contracts/shared-props.d.ts.map +1 -1
- package/dist-lib/engine/providers/auth.d.ts +2 -2
- package/dist-lib/engine/providers/auth.d.ts.map +1 -1
- package/dist-lib/engine/providers/flash.d.ts.map +1 -1
- package/dist-lib/index.d.ts +2 -3
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/middag-react.js +6166 -6144
- package/docs/public/schemas/ai-contract-manifest.json +9 -16
- package/docs/public/schemas/fragment.json +155 -87
- package/docs/public/schemas/manifest.json +4 -12
- package/docs/public/schemas/page-contract.json +155 -87
- package/docs/public/schemas/shared-props.json +2457 -114
- package/package.json +1 -1
- package/src/base/shell/BasicShell.tsx +7 -7
- package/src/base/utils/icon-registry.ts +3 -3
- package/src/contracts/generated/index.ts +4 -4
- package/src/contracts/generated/schemas.ts +66 -35
- package/src/contracts/generated/types.ts +71 -51
- package/src/contracts/navigation.ts +5 -52
- package/src/contracts/page-contract-schema.ts +2 -2
- package/src/contracts/shared-props.ts +10 -75
- package/src/engine/providers/auth.tsx +1 -1
- package/src/engine/providers/flash.tsx +0 -5
- package/dist-lib/contracts/connectors.d.ts +0 -50
- package/dist-lib/contracts/connectors.d.ts.map +0 -1
- package/docs/public/schemas/connectors.json +0 -97
- package/docs/public/schemas/navigation.json +0 -72
- package/src/contracts/connectors.ts +0 -60
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "https://ui-docs.middag.io/schemas/page-contract.json",
|
|
4
4
|
"title": "MIDDAG Page Contract",
|
|
5
5
|
"description": "Wire contract for a full page render. Generated from middag-io/ui PHP value objects (jsonSchema()). Source of truth for the TypeScript types and zod schema in @middag-io/react.",
|
|
6
|
-
"x-contract-version": "
|
|
6
|
+
"x-contract-version": "2",
|
|
7
7
|
"$ref": "#/$defs/PageContract",
|
|
8
8
|
"$defs": {
|
|
9
9
|
"PageContract": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"properties": {
|
|
18
18
|
"version": {
|
|
19
|
-
"const": "
|
|
19
|
+
"const": "2"
|
|
20
20
|
},
|
|
21
21
|
"shell": {
|
|
22
22
|
"type": "string"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"properties": {
|
|
55
55
|
"version": {
|
|
56
|
-
"const": "
|
|
56
|
+
"const": "2"
|
|
57
57
|
},
|
|
58
58
|
"kind": {
|
|
59
59
|
"$ref": "#/$defs/FragmentKind"
|
|
@@ -465,44 +465,14 @@
|
|
|
465
465
|
"PageResources": {
|
|
466
466
|
"type": "object",
|
|
467
467
|
"required": [
|
|
468
|
-
"preferences",
|
|
469
|
-
"capabilities",
|
|
470
468
|
"featureFlags"
|
|
471
469
|
],
|
|
472
470
|
"properties": {
|
|
473
|
-
"preferences": {
|
|
474
|
-
"$ref": "#/$defs/UserPreferences"
|
|
475
|
-
},
|
|
476
|
-
"capabilities": {
|
|
477
|
-
"oneOf": [
|
|
478
|
-
{
|
|
479
|
-
"type": "object",
|
|
480
|
-
"additionalProperties": {
|
|
481
|
-
"type": "boolean"
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"type": "array",
|
|
486
|
-
"maxItems": 0
|
|
487
|
-
}
|
|
488
|
-
]
|
|
489
|
-
},
|
|
490
471
|
"featureFlags": {
|
|
491
|
-
"
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
"type": "boolean"
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"type": "array",
|
|
500
|
-
"maxItems": 0
|
|
501
|
-
}
|
|
502
|
-
]
|
|
503
|
-
},
|
|
504
|
-
"user": {
|
|
505
|
-
"$ref": "#/$defs/Identity"
|
|
472
|
+
"type": "object",
|
|
473
|
+
"additionalProperties": {
|
|
474
|
+
"type": "boolean"
|
|
475
|
+
}
|
|
506
476
|
},
|
|
507
477
|
"branding": {
|
|
508
478
|
"$ref": "#/$defs/Branding"
|
|
@@ -510,31 +480,6 @@
|
|
|
510
480
|
},
|
|
511
481
|
"additionalProperties": false
|
|
512
482
|
},
|
|
513
|
-
"UserPreferences": {
|
|
514
|
-
"type": "object",
|
|
515
|
-
"required": [
|
|
516
|
-
"theme",
|
|
517
|
-
"locale"
|
|
518
|
-
],
|
|
519
|
-
"properties": {
|
|
520
|
-
"theme": {
|
|
521
|
-
"$ref": "#/$defs/ThemeMode"
|
|
522
|
-
},
|
|
523
|
-
"locale": {
|
|
524
|
-
"type": "string"
|
|
525
|
-
},
|
|
526
|
-
"timezone": {
|
|
527
|
-
"type": "string"
|
|
528
|
-
},
|
|
529
|
-
"dateFormat": {
|
|
530
|
-
"type": "string"
|
|
531
|
-
},
|
|
532
|
-
"numberFormat": {
|
|
533
|
-
"type": "string"
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
"additionalProperties": true
|
|
537
|
-
},
|
|
538
483
|
"Identity": {
|
|
539
484
|
"type": "object",
|
|
540
485
|
"required": [
|
|
@@ -603,6 +548,18 @@
|
|
|
603
548
|
"badge": {
|
|
604
549
|
"type": "string"
|
|
605
550
|
},
|
|
551
|
+
"entityType": {
|
|
552
|
+
"type": "string"
|
|
553
|
+
},
|
|
554
|
+
"badgeVariant": {
|
|
555
|
+
"type": "string"
|
|
556
|
+
},
|
|
557
|
+
"statusColor": {
|
|
558
|
+
"type": "string"
|
|
559
|
+
},
|
|
560
|
+
"target": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
606
563
|
"active": {
|
|
607
564
|
"const": true
|
|
608
565
|
},
|
|
@@ -624,6 +581,134 @@
|
|
|
624
581
|
},
|
|
625
582
|
"additionalProperties": false
|
|
626
583
|
},
|
|
584
|
+
"NavigationTree": {
|
|
585
|
+
"type": "object",
|
|
586
|
+
"required": [
|
|
587
|
+
"tree",
|
|
588
|
+
"activeKey",
|
|
589
|
+
"footer"
|
|
590
|
+
],
|
|
591
|
+
"properties": {
|
|
592
|
+
"tree": {
|
|
593
|
+
"type": "array",
|
|
594
|
+
"items": {
|
|
595
|
+
"$ref": "#/$defs/NavigationNode"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"activeKey": {
|
|
599
|
+
"type": "string"
|
|
600
|
+
},
|
|
601
|
+
"footer": {
|
|
602
|
+
"type": "array",
|
|
603
|
+
"items": {
|
|
604
|
+
"$ref": "#/$defs/NavigationNode"
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"additionalProperties": false
|
|
609
|
+
},
|
|
610
|
+
"SharedProps": {
|
|
611
|
+
"type": "object",
|
|
612
|
+
"properties": {
|
|
613
|
+
"auth": {
|
|
614
|
+
"$ref": "#/$defs/SharedAuth"
|
|
615
|
+
},
|
|
616
|
+
"theme": {
|
|
617
|
+
"$ref": "#/$defs/SharedTheme"
|
|
618
|
+
},
|
|
619
|
+
"flash": {
|
|
620
|
+
"$ref": "#/$defs/FlashMessages"
|
|
621
|
+
},
|
|
622
|
+
"errors": {
|
|
623
|
+
"$ref": "#/$defs/FormErrors"
|
|
624
|
+
},
|
|
625
|
+
"csrf_token": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"locale": {
|
|
629
|
+
"type": "string"
|
|
630
|
+
},
|
|
631
|
+
"scope": {
|
|
632
|
+
"type": "object",
|
|
633
|
+
"additionalProperties": true
|
|
634
|
+
},
|
|
635
|
+
"navigation": {
|
|
636
|
+
"$ref": "#/$defs/NavigationTree"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"additionalProperties": true
|
|
640
|
+
},
|
|
641
|
+
"SharedAuth": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"required": [
|
|
644
|
+
"id",
|
|
645
|
+
"name",
|
|
646
|
+
"capabilities"
|
|
647
|
+
],
|
|
648
|
+
"properties": {
|
|
649
|
+
"id": {
|
|
650
|
+
"type": "string"
|
|
651
|
+
},
|
|
652
|
+
"name": {
|
|
653
|
+
"type": "string"
|
|
654
|
+
},
|
|
655
|
+
"email": {
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"avatarUrl": {
|
|
659
|
+
"type": "string"
|
|
660
|
+
},
|
|
661
|
+
"roles": {
|
|
662
|
+
"type": "array",
|
|
663
|
+
"items": {
|
|
664
|
+
"type": "string"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"capabilities": {
|
|
668
|
+
"type": "array",
|
|
669
|
+
"items": {
|
|
670
|
+
"type": "string"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"logoutUrl": {
|
|
674
|
+
"type": "string"
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"additionalProperties": false
|
|
678
|
+
},
|
|
679
|
+
"SharedTheme": {
|
|
680
|
+
"type": "object",
|
|
681
|
+
"properties": {
|
|
682
|
+
"appearance": {
|
|
683
|
+
"$ref": "#/$defs/ThemeMode"
|
|
684
|
+
},
|
|
685
|
+
"strings": {
|
|
686
|
+
"type": "object",
|
|
687
|
+
"additionalProperties": {
|
|
688
|
+
"type": "string"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"additionalProperties": false
|
|
693
|
+
},
|
|
694
|
+
"FlashMessages": {
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": {
|
|
697
|
+
"success": {
|
|
698
|
+
"type": "string"
|
|
699
|
+
},
|
|
700
|
+
"error": {
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
"info": {
|
|
704
|
+
"type": "string"
|
|
705
|
+
},
|
|
706
|
+
"warning": {
|
|
707
|
+
"type": "string"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"additionalProperties": false
|
|
711
|
+
},
|
|
627
712
|
"TableConfig": {
|
|
628
713
|
"type": "object",
|
|
629
714
|
"required": [
|
|
@@ -2145,33 +2230,16 @@
|
|
|
2145
2230
|
"additionalProperties": false
|
|
2146
2231
|
},
|
|
2147
2232
|
"ResourcePatch": {
|
|
2148
|
-
"
|
|
2149
|
-
|
|
2233
|
+
"type": "object",
|
|
2234
|
+
"properties": {
|
|
2235
|
+
"featureFlags": {
|
|
2150
2236
|
"type": "object",
|
|
2151
|
-
"
|
|
2152
|
-
"
|
|
2153
|
-
|
|
2154
|
-
},
|
|
2155
|
-
"capabilities": {
|
|
2156
|
-
"type": "object",
|
|
2157
|
-
"additionalProperties": {
|
|
2158
|
-
"type": "boolean"
|
|
2159
|
-
}
|
|
2160
|
-
},
|
|
2161
|
-
"featureFlags": {
|
|
2162
|
-
"type": "object",
|
|
2163
|
-
"additionalProperties": {
|
|
2164
|
-
"type": "boolean"
|
|
2165
|
-
}
|
|
2166
|
-
}
|
|
2167
|
-
},
|
|
2168
|
-
"additionalProperties": false
|
|
2169
|
-
},
|
|
2170
|
-
{
|
|
2171
|
-
"type": "array",
|
|
2172
|
-
"maxItems": 0
|
|
2237
|
+
"additionalProperties": {
|
|
2238
|
+
"type": "boolean"
|
|
2239
|
+
}
|
|
2173
2240
|
}
|
|
2174
|
-
|
|
2241
|
+
},
|
|
2242
|
+
"additionalProperties": false
|
|
2175
2243
|
},
|
|
2176
2244
|
"ActionIntent": {
|
|
2177
2245
|
"type": "string",
|