@middag-io/react 0.46.1 → 0.48.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/{FormField-M7Khc1eo.js → FormField-BGqAQLtX.js} +2155 -2130
- package/dist-lib/{FormPanelBlock-70gQ9d9K.js → FormPanelBlock-CGgA83Mu.js} +46 -45
- package/dist-lib/base/blocks/CardGridBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/DetailPanelBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/FormPanelBlock.d.ts.map +1 -1
- package/dist-lib/base/partials/ActionBar/index.d.ts.map +1 -1
- package/dist-lib/base/partials/FilterBar/index.d.ts.map +1 -1
- package/dist-lib/base/shell/BasicShell.d.ts +1 -1
- package/dist-lib/base/shell/BasicShell.js +1 -1
- package/dist-lib/base/shell/partials/InlineEditablePanel.d.ts.map +1 -1
- package/dist-lib/base/shell/partials/InlineEditablePanel.js +131 -127
- package/dist-lib/base/shell/partials/PageActionButton.d.ts.map +1 -1
- package/dist-lib/base/shell/partials/PageActionButton.js +1 -1
- package/dist-lib/base/theme/appearance.d.ts.map +1 -1
- package/dist-lib/base/theme/appearance.js +1 -1
- package/dist-lib/base/utils/action-intent.d.ts +3 -0
- package/dist-lib/base/utils/action-intent.d.ts.map +1 -0
- package/dist-lib/base/utils/action-intent.js +16 -0
- 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/chunks/subpath-Bs35txZS.js +166 -0
- 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 +338 -243
- package/dist-lib/contracts/generated/schemas.d.ts.map +1 -1
- package/dist-lib/contracts/generated/types.d.ts +88 -52
- 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 +11 -11
- 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 -2
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/middag-react.js +9837 -9773
- package/docs/public/schemas/ai-contract-manifest.json +9 -9
- package/docs/public/schemas/fragment.json +221 -89
- package/docs/public/schemas/manifest.json +4 -4
- package/docs/public/schemas/page-contract.json +221 -89
- package/docs/public/schemas/shared-props.json +2457 -114
- package/package.json +1 -1
- package/src/base/blocks/CardGridBlock.tsx +2 -1
- package/src/base/blocks/DenseTableBlock.tsx +2 -1
- package/src/base/blocks/DetailPanelBlock.tsx +2 -1
- package/src/base/blocks/FormPanelBlock.tsx +2 -1
- package/src/base/partials/ActionBar/index.tsx +3 -2
- package/src/base/partials/FilterBar/index.tsx +12 -1
- package/src/base/shell/BasicShell.tsx +7 -7
- package/src/base/shell/partials/InlineEditablePanel.tsx +14 -7
- package/src/base/shell/partials/PageActionButton.tsx +3 -1
- package/src/base/theme/appearance.ts +2 -1
- package/src/base/utils/action-intent.ts +22 -0
- package/src/base/utils/icon-registry.ts +3 -3
- package/src/contracts/generated/index.ts +4 -4
- package/src/contracts/generated/schemas.ts +85 -44
- package/src/contracts/generated/types.ts +107 -60
- 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/chunks/subpath-Bh1MAmBT.js +0 -165
- package/docs/public/schemas/navigation.json +0 -72
|
@@ -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": [
|
|
@@ -1794,6 +1879,57 @@
|
|
|
1794
1879
|
}
|
|
1795
1880
|
},
|
|
1796
1881
|
"additionalProperties": false
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
"type": "object",
|
|
1885
|
+
"required": [
|
|
1886
|
+
"kind",
|
|
1887
|
+
"key",
|
|
1888
|
+
"component",
|
|
1889
|
+
"props"
|
|
1890
|
+
],
|
|
1891
|
+
"properties": {
|
|
1892
|
+
"kind": {
|
|
1893
|
+
"const": "field"
|
|
1894
|
+
},
|
|
1895
|
+
"key": {
|
|
1896
|
+
"type": "string"
|
|
1897
|
+
},
|
|
1898
|
+
"component": {
|
|
1899
|
+
"enum": [
|
|
1900
|
+
"richtext",
|
|
1901
|
+
"time"
|
|
1902
|
+
]
|
|
1903
|
+
},
|
|
1904
|
+
"props": {
|
|
1905
|
+
"$ref": "#/$defs/FieldPropsBase"
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"additionalProperties": false
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"type": "object",
|
|
1912
|
+
"required": [
|
|
1913
|
+
"kind",
|
|
1914
|
+
"key",
|
|
1915
|
+
"component",
|
|
1916
|
+
"props"
|
|
1917
|
+
],
|
|
1918
|
+
"properties": {
|
|
1919
|
+
"kind": {
|
|
1920
|
+
"const": "field"
|
|
1921
|
+
},
|
|
1922
|
+
"key": {
|
|
1923
|
+
"type": "string"
|
|
1924
|
+
},
|
|
1925
|
+
"component": {
|
|
1926
|
+
"const": "autocomplete"
|
|
1927
|
+
},
|
|
1928
|
+
"props": {
|
|
1929
|
+
"$ref": "#/$defs/OptionFieldProps"
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
"additionalProperties": false
|
|
1797
1933
|
}
|
|
1798
1934
|
]
|
|
1799
1935
|
},
|
|
@@ -1813,7 +1949,17 @@
|
|
|
1813
1949
|
"type": "string"
|
|
1814
1950
|
},
|
|
1815
1951
|
"label": {
|
|
1816
|
-
"
|
|
1952
|
+
"oneOf": [
|
|
1953
|
+
{
|
|
1954
|
+
"type": "string"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"$ref": "#/$defs/Translatable"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
"type": "null"
|
|
1961
|
+
}
|
|
1962
|
+
]
|
|
1817
1963
|
},
|
|
1818
1964
|
"defaultCollapsed": {
|
|
1819
1965
|
"type": "boolean"
|
|
@@ -2084,33 +2230,16 @@
|
|
|
2084
2230
|
"additionalProperties": false
|
|
2085
2231
|
},
|
|
2086
2232
|
"ResourcePatch": {
|
|
2087
|
-
"
|
|
2088
|
-
|
|
2233
|
+
"type": "object",
|
|
2234
|
+
"properties": {
|
|
2235
|
+
"featureFlags": {
|
|
2089
2236
|
"type": "object",
|
|
2090
|
-
"
|
|
2091
|
-
"
|
|
2092
|
-
|
|
2093
|
-
},
|
|
2094
|
-
"capabilities": {
|
|
2095
|
-
"type": "object",
|
|
2096
|
-
"additionalProperties": {
|
|
2097
|
-
"type": "boolean"
|
|
2098
|
-
}
|
|
2099
|
-
},
|
|
2100
|
-
"featureFlags": {
|
|
2101
|
-
"type": "object",
|
|
2102
|
-
"additionalProperties": {
|
|
2103
|
-
"type": "boolean"
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
},
|
|
2107
|
-
"additionalProperties": false
|
|
2108
|
-
},
|
|
2109
|
-
{
|
|
2110
|
-
"type": "array",
|
|
2111
|
-
"maxItems": 0
|
|
2237
|
+
"additionalProperties": {
|
|
2238
|
+
"type": "boolean"
|
|
2239
|
+
}
|
|
2112
2240
|
}
|
|
2113
|
-
|
|
2241
|
+
},
|
|
2242
|
+
"additionalProperties": false
|
|
2114
2243
|
},
|
|
2115
2244
|
"ActionIntent": {
|
|
2116
2245
|
"type": "string",
|
|
@@ -2252,7 +2381,10 @@
|
|
|
2252
2381
|
"date_range",
|
|
2253
2382
|
"hidden",
|
|
2254
2383
|
"static",
|
|
2255
|
-
"header"
|
|
2384
|
+
"header",
|
|
2385
|
+
"richtext",
|
|
2386
|
+
"time",
|
|
2387
|
+
"autocomplete"
|
|
2256
2388
|
]
|
|
2257
2389
|
},
|
|
2258
2390
|
"FragmentKind": {
|