view-contracts 0.5.12 → 0.5.14

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.
@@ -106,6 +106,11 @@
106
106
  "url",
107
107
  "tel"
108
108
  ],
109
+ "buttonType": [
110
+ "button",
111
+ "submit",
112
+ "reset"
113
+ ],
109
114
  "clip": [
110
115
  "none",
111
116
  "bounds",
@@ -118,6 +123,16 @@
118
123
  "x-category": "identity",
119
124
  "description": "Stable identifier for tests and diff updates"
120
125
  },
126
+ "data": {
127
+ "type": "object",
128
+ "x-category": "identity",
129
+ "description": "Custom data attributes { key: value }; web only (data-<kebab-key>), not rendered on native"
130
+ },
131
+ "title": {
132
+ "type": "string",
133
+ "x-category": "identity",
134
+ "description": "Screen title; accessible name of the page"
135
+ },
121
136
  "role": {
122
137
  "type": "string",
123
138
  "x-category": "identity",
@@ -363,6 +378,17 @@
363
378
  "x-category": "interaction",
364
379
  "description": "Action descriptor { name, params? }; the element's click/submit action (takes precedence over onClick/onSubmit)"
365
380
  },
381
+ "href": {
382
+ "type": "string",
383
+ "x-category": "interaction",
384
+ "description": "Navigation target URL"
385
+ },
386
+ "type": {
387
+ "type": "string",
388
+ "x-category": "interaction",
389
+ "enum": "buttonType",
390
+ "description": "Button behavior inside a Form; default button"
391
+ },
366
392
  "onClick": {
367
393
  "type": "action",
368
394
  "x-category": "interaction",
@@ -413,6 +439,16 @@
413
439
  "type": "string",
414
440
  "x-category": "data"
415
441
  },
442
+ "rows": {
443
+ "type": "number",
444
+ "x-category": "size",
445
+ "description": "Visible text lines"
446
+ },
447
+ "wrap": {
448
+ "type": "boolean",
449
+ "x-category": "layout",
450
+ "description": "Wrap children onto new lines when they overflow"
451
+ },
416
452
  "options": {
417
453
  "type": "array",
418
454
  "x-category": "data",
@@ -513,6 +549,12 @@
513
549
  "id": {
514
550
  "$ref": "#/properties/id"
515
551
  },
552
+ "data": {
553
+ "$ref": "#/properties/data"
554
+ },
555
+ "visible": {
556
+ "$ref": "#/properties/visible"
557
+ },
516
558
  "padding": {
517
559
  "$ref": "#/properties/padding"
518
560
  },
@@ -541,6 +583,12 @@
541
583
  "id": {
542
584
  "$ref": "#/properties/id"
543
585
  },
586
+ "title": {
587
+ "$ref": "#/properties/title"
588
+ },
589
+ "data": {
590
+ "$ref": "#/properties/data"
591
+ },
544
592
  "visible": {
545
593
  "$ref": "#/properties/visible"
546
594
  },
@@ -572,6 +620,12 @@
572
620
  "id": {
573
621
  "$ref": "#/properties/id"
574
622
  },
623
+ "data": {
624
+ "$ref": "#/properties/data"
625
+ },
626
+ "visible": {
627
+ "$ref": "#/properties/visible"
628
+ },
575
629
  "padding": {
576
630
  "$ref": "#/properties/padding"
577
631
  },
@@ -596,9 +650,18 @@
596
650
  "id": {
597
651
  "$ref": "#/properties/id"
598
652
  },
653
+ "data": {
654
+ "$ref": "#/properties/data"
655
+ },
599
656
  "visible": {
600
657
  "$ref": "#/properties/visible"
601
658
  },
659
+ "role": {
660
+ "$ref": "#/properties/role"
661
+ },
662
+ "label": {
663
+ "$ref": "#/properties/label"
664
+ },
602
665
  "width": {
603
666
  "$ref": "#/properties/width"
604
667
  },
@@ -681,12 +744,24 @@
681
744
  "id": {
682
745
  "$ref": "#/properties/id"
683
746
  },
747
+ "data": {
748
+ "$ref": "#/properties/data"
749
+ },
684
750
  "visible": {
685
751
  "$ref": "#/properties/visible"
686
752
  },
753
+ "role": {
754
+ "$ref": "#/properties/role"
755
+ },
756
+ "label": {
757
+ "$ref": "#/properties/label"
758
+ },
687
759
  "gap": {
688
760
  "$ref": "#/properties/gap"
689
761
  },
762
+ "wrap": {
763
+ "$ref": "#/properties/wrap"
764
+ },
690
765
  "align": {
691
766
  "$ref": "#/properties/align"
692
767
  },
@@ -730,9 +805,18 @@
730
805
  "id": {
731
806
  "$ref": "#/properties/id"
732
807
  },
808
+ "data": {
809
+ "$ref": "#/properties/data"
810
+ },
733
811
  "visible": {
734
812
  "$ref": "#/properties/visible"
735
813
  },
814
+ "role": {
815
+ "$ref": "#/properties/role"
816
+ },
817
+ "label": {
818
+ "$ref": "#/properties/label"
819
+ },
736
820
  "gap": {
737
821
  "$ref": "#/properties/gap"
738
822
  },
@@ -779,9 +863,18 @@
779
863
  "id": {
780
864
  "$ref": "#/properties/id"
781
865
  },
866
+ "data": {
867
+ "$ref": "#/properties/data"
868
+ },
782
869
  "visible": {
783
870
  "$ref": "#/properties/visible"
784
871
  },
872
+ "role": {
873
+ "$ref": "#/properties/role"
874
+ },
875
+ "label": {
876
+ "$ref": "#/properties/label"
877
+ },
785
878
  "gap": {
786
879
  "$ref": "#/properties/gap"
787
880
  },
@@ -817,6 +910,12 @@
817
910
  "id": {
818
911
  "$ref": "#/properties/id"
819
912
  },
913
+ "data": {
914
+ "$ref": "#/properties/data"
915
+ },
916
+ "visible": {
917
+ "$ref": "#/properties/visible"
918
+ },
820
919
  "width": {
821
920
  "$ref": "#/properties/width"
822
921
  },
@@ -842,6 +941,12 @@
842
941
  "id": {
843
942
  "$ref": "#/properties/id"
844
943
  },
944
+ "data": {
945
+ "$ref": "#/properties/data"
946
+ },
947
+ "visible": {
948
+ "$ref": "#/properties/visible"
949
+ },
845
950
  "axis": {
846
951
  "$ref": "#/properties/axis"
847
952
  },
@@ -861,6 +966,12 @@
861
966
  "id": {
862
967
  "$ref": "#/properties/id"
863
968
  },
969
+ "data": {
970
+ "$ref": "#/properties/data"
971
+ },
972
+ "visible": {
973
+ "$ref": "#/properties/visible"
974
+ },
864
975
  "axis": {
865
976
  "$ref": "#/properties/axis"
866
977
  },
@@ -898,6 +1009,9 @@
898
1009
  "id": {
899
1010
  "$ref": "#/properties/id"
900
1011
  },
1012
+ "data": {
1013
+ "$ref": "#/properties/data"
1014
+ },
901
1015
  "gap": {
902
1016
  "$ref": "#/properties/gap"
903
1017
  },
@@ -929,6 +1043,9 @@
929
1043
  "id": {
930
1044
  "$ref": "#/properties/id"
931
1045
  },
1046
+ "data": {
1047
+ "$ref": "#/properties/data"
1048
+ },
932
1049
  "selected": {
933
1050
  "$ref": "#/properties/selected"
934
1051
  },
@@ -960,6 +1077,9 @@
960
1077
  "id": {
961
1078
  "$ref": "#/properties/id"
962
1079
  },
1080
+ "data": {
1081
+ "$ref": "#/properties/data"
1082
+ },
963
1083
  "visible": {
964
1084
  "$ref": "#/properties/visible"
965
1085
  },
@@ -1024,6 +1144,9 @@
1024
1144
  "id": {
1025
1145
  "$ref": "#/properties/id"
1026
1146
  },
1147
+ "data": {
1148
+ "$ref": "#/properties/data"
1149
+ },
1027
1150
  "visible": {
1028
1151
  "$ref": "#/properties/visible"
1029
1152
  },
@@ -1033,6 +1156,9 @@
1033
1156
  "onClick": {
1034
1157
  "$ref": "#/properties/onClick"
1035
1158
  },
1159
+ "href": {
1160
+ "$ref": "#/properties/href"
1161
+ },
1036
1162
  "label": {
1037
1163
  "$ref": "#/properties/label"
1038
1164
  },
@@ -1058,6 +1184,9 @@
1058
1184
  "id": {
1059
1185
  "$ref": "#/properties/id"
1060
1186
  },
1187
+ "data": {
1188
+ "$ref": "#/properties/data"
1189
+ },
1061
1190
  "visible": {
1062
1191
  "$ref": "#/properties/visible"
1063
1192
  },
@@ -1098,6 +1227,9 @@
1098
1227
  "id": {
1099
1228
  "$ref": "#/properties/id"
1100
1229
  },
1230
+ "data": {
1231
+ "$ref": "#/properties/data"
1232
+ },
1101
1233
  "visible": {
1102
1234
  "$ref": "#/properties/visible"
1103
1235
  },
@@ -1129,6 +1261,9 @@
1129
1261
  "id": {
1130
1262
  "$ref": "#/properties/id"
1131
1263
  },
1264
+ "data": {
1265
+ "$ref": "#/properties/data"
1266
+ },
1132
1267
  "visible": {
1133
1268
  "$ref": "#/properties/visible"
1134
1269
  },
@@ -1141,6 +1276,9 @@
1141
1276
  "onClick": {
1142
1277
  "$ref": "#/properties/onClick"
1143
1278
  },
1279
+ "type": {
1280
+ "$ref": "#/properties/type"
1281
+ },
1144
1282
  "label": {
1145
1283
  "$ref": "#/properties/label"
1146
1284
  },
@@ -1195,6 +1333,9 @@
1195
1333
  "id": {
1196
1334
  "$ref": "#/properties/id"
1197
1335
  },
1336
+ "data": {
1337
+ "$ref": "#/properties/data"
1338
+ },
1198
1339
  "visible": {
1199
1340
  "$ref": "#/properties/visible"
1200
1341
  },
@@ -1207,6 +1348,9 @@
1207
1348
  "onClick": {
1208
1349
  "$ref": "#/properties/onClick"
1209
1350
  },
1351
+ "type": {
1352
+ "$ref": "#/properties/type"
1353
+ },
1210
1354
  "label": {
1211
1355
  "$ref": "#/properties/label"
1212
1356
  },
@@ -1241,6 +1385,9 @@
1241
1385
  "id": {
1242
1386
  "$ref": "#/properties/id"
1243
1387
  },
1388
+ "data": {
1389
+ "$ref": "#/properties/data"
1390
+ },
1244
1391
  "visible": {
1245
1392
  "$ref": "#/properties/visible"
1246
1393
  },
@@ -1332,6 +1479,9 @@
1332
1479
  "id": {
1333
1480
  "$ref": "#/properties/id"
1334
1481
  },
1482
+ "data": {
1483
+ "$ref": "#/properties/data"
1484
+ },
1335
1485
  "visible": {
1336
1486
  "$ref": "#/properties/visible"
1337
1487
  },
@@ -1374,6 +1524,9 @@
1374
1524
  "minHeight": {
1375
1525
  "$ref": "#/properties/minHeight"
1376
1526
  },
1527
+ "rows": {
1528
+ "$ref": "#/properties/rows"
1529
+ },
1377
1530
  "label": {
1378
1531
  "$ref": "#/properties/label"
1379
1532
  },
@@ -1414,6 +1567,9 @@
1414
1567
  "id": {
1415
1568
  "$ref": "#/properties/id"
1416
1569
  },
1570
+ "data": {
1571
+ "$ref": "#/properties/data"
1572
+ },
1417
1573
  "visible": {
1418
1574
  "$ref": "#/properties/visible"
1419
1575
  },
@@ -1490,6 +1646,9 @@
1490
1646
  "id": {
1491
1647
  "$ref": "#/properties/id"
1492
1648
  },
1649
+ "data": {
1650
+ "$ref": "#/properties/data"
1651
+ },
1493
1652
  "visible": {
1494
1653
  "$ref": "#/properties/visible"
1495
1654
  },
@@ -1505,6 +1664,9 @@
1505
1664
  "binding": {
1506
1665
  "$ref": "#/properties/binding"
1507
1666
  },
1667
+ "name": {
1668
+ "$ref": "#/properties/name"
1669
+ },
1508
1670
  "label": {
1509
1671
  "$ref": "#/properties/label"
1510
1672
  },
@@ -1528,6 +1690,9 @@
1528
1690
  "id": {
1529
1691
  "$ref": "#/properties/id"
1530
1692
  },
1693
+ "data": {
1694
+ "$ref": "#/properties/data"
1695
+ },
1531
1696
  "visible": {
1532
1697
  "$ref": "#/properties/visible"
1533
1698
  },
@@ -1540,6 +1705,9 @@
1540
1705
  "binding": {
1541
1706
  "$ref": "#/properties/binding"
1542
1707
  },
1708
+ "name": {
1709
+ "$ref": "#/properties/name"
1710
+ },
1543
1711
  "label": {
1544
1712
  "$ref": "#/properties/label"
1545
1713
  },
@@ -1565,6 +1733,9 @@
1565
1733
  "id": {
1566
1734
  "$ref": "#/properties/id"
1567
1735
  },
1736
+ "data": {
1737
+ "$ref": "#/properties/data"
1738
+ },
1568
1739
  "visible": {
1569
1740
  "$ref": "#/properties/visible"
1570
1741
  },
@@ -1577,6 +1748,9 @@
1577
1748
  "binding": {
1578
1749
  "$ref": "#/properties/binding"
1579
1750
  },
1751
+ "name": {
1752
+ "$ref": "#/properties/name"
1753
+ },
1580
1754
  "label": {
1581
1755
  "$ref": "#/properties/label"
1582
1756
  },
@@ -1599,9 +1773,18 @@
1599
1773
  "id": {
1600
1774
  "$ref": "#/properties/id"
1601
1775
  },
1776
+ "data": {
1777
+ "$ref": "#/properties/data"
1778
+ },
1602
1779
  "visible": {
1603
1780
  "$ref": "#/properties/visible"
1604
1781
  },
1782
+ "role": {
1783
+ "$ref": "#/properties/role"
1784
+ },
1785
+ "label": {
1786
+ "$ref": "#/properties/label"
1787
+ },
1605
1788
  "gap": {
1606
1789
  "$ref": "#/properties/gap"
1607
1790
  },
@@ -1627,6 +1810,9 @@
1627
1810
  "id": {
1628
1811
  "$ref": "#/properties/id"
1629
1812
  },
1813
+ "data": {
1814
+ "$ref": "#/properties/data"
1815
+ },
1630
1816
  "visible": {
1631
1817
  "$ref": "#/properties/visible"
1632
1818
  },
@@ -1662,6 +1848,9 @@
1662
1848
  "id": {
1663
1849
  "$ref": "#/properties/id"
1664
1850
  },
1851
+ "data": {
1852
+ "$ref": "#/properties/data"
1853
+ },
1665
1854
  "visible": {
1666
1855
  "$ref": "#/properties/visible"
1667
1856
  },
@@ -1692,6 +1881,9 @@
1692
1881
  "id": {
1693
1882
  "$ref": "#/properties/id"
1694
1883
  },
1884
+ "data": {
1885
+ "$ref": "#/properties/data"
1886
+ },
1695
1887
  "visible": {
1696
1888
  "$ref": "#/properties/visible"
1697
1889
  },
@@ -1715,6 +1907,9 @@
1715
1907
  "id": {
1716
1908
  "$ref": "#/properties/id"
1717
1909
  },
1910
+ "data": {
1911
+ "$ref": "#/properties/data"
1912
+ },
1718
1913
  "visible": {
1719
1914
  "$ref": "#/properties/visible"
1720
1915
  },
@@ -1738,6 +1933,9 @@
1738
1933
  "id": {
1739
1934
  "$ref": "#/properties/id"
1740
1935
  },
1936
+ "data": {
1937
+ "$ref": "#/properties/data"
1938
+ },
1741
1939
  "visible": {
1742
1940
  "$ref": "#/properties/visible"
1743
1941
  },
@@ -1760,6 +1958,9 @@
1760
1958
  "id": {
1761
1959
  "$ref": "#/properties/id"
1762
1960
  },
1961
+ "data": {
1962
+ "$ref": "#/properties/data"
1963
+ },
1763
1964
  "visible": {
1764
1965
  "$ref": "#/properties/visible"
1765
1966
  },
@@ -1782,9 +1983,15 @@
1782
1983
  "id": {
1783
1984
  "$ref": "#/properties/id"
1784
1985
  },
1986
+ "data": {
1987
+ "$ref": "#/properties/data"
1988
+ },
1785
1989
  "visible": {
1786
1990
  "$ref": "#/properties/visible"
1787
1991
  },
1992
+ "role": {
1993
+ "$ref": "#/properties/role"
1994
+ },
1788
1995
  "variant": {
1789
1996
  "$ref": "#/properties/variant"
1790
1997
  }
@@ -1801,6 +2008,9 @@
1801
2008
  "id": {
1802
2009
  "$ref": "#/properties/id"
1803
2010
  },
2011
+ "data": {
2012
+ "$ref": "#/properties/data"
2013
+ },
1804
2014
  "visible": {
1805
2015
  "$ref": "#/properties/visible"
1806
2016
  },
@@ -1839,6 +2049,15 @@
1839
2049
  "x-tier": "core",
1840
2050
  "x-category": "data",
1841
2051
  "properties": {
2052
+ "id": {
2053
+ "$ref": "#/properties/id"
2054
+ },
2055
+ "data": {
2056
+ "$ref": "#/properties/data"
2057
+ },
2058
+ "visible": {
2059
+ "$ref": "#/properties/visible"
2060
+ },
1842
2061
  "height": {
1843
2062
  "$ref": "#/properties/height"
1844
2063
  },
@@ -1870,6 +2089,15 @@
1870
2089
  "x-tier": "core",
1871
2090
  "x-category": "data",
1872
2091
  "properties": {
2092
+ "id": {
2093
+ "$ref": "#/properties/id"
2094
+ },
2095
+ "data": {
2096
+ "$ref": "#/properties/data"
2097
+ },
2098
+ "visible": {
2099
+ "$ref": "#/properties/visible"
2100
+ },
1873
2101
  "label": {
1874
2102
  "$ref": "#/properties/label"
1875
2103
  },
@@ -1913,6 +2141,15 @@
1913
2141
  "x-tier": "core",
1914
2142
  "x-category": "data",
1915
2143
  "properties": {
2144
+ "id": {
2145
+ "$ref": "#/properties/id"
2146
+ },
2147
+ "data": {
2148
+ "$ref": "#/properties/data"
2149
+ },
2150
+ "visible": {
2151
+ "$ref": "#/properties/visible"
2152
+ },
1916
2153
  "each": {
1917
2154
  "$ref": "#/properties/each"
1918
2155
  },
@@ -1944,6 +2181,15 @@
1944
2181
  "x-tier": "core",
1945
2182
  "x-category": "data",
1946
2183
  "properties": {
2184
+ "id": {
2185
+ "$ref": "#/properties/id"
2186
+ },
2187
+ "data": {
2188
+ "$ref": "#/properties/data"
2189
+ },
2190
+ "visible": {
2191
+ "$ref": "#/properties/visible"
2192
+ },
1947
2193
  "width": {
1948
2194
  "$ref": "#/properties/width"
1949
2195
  },
package/src/dsl/types.ts CHANGED
@@ -31,10 +31,9 @@ export type FieldSize = 'sm' | 'md' | 'lg';
31
31
  */
32
32
  export interface CommonProps {
33
33
  id?: string;
34
- testId?: string;
35
- ariaLabel?: string;
34
+ /** Custom data attributes; web only (`data-<kebab-key>`). */
35
+ data?: Record<string, string | number | boolean>;
36
36
  children?: ReactNode;
37
- hidden?: boolean;
38
37
  width?: number;
39
38
  minWidth?: number;
40
39
  maxWidth?: number;
@@ -1,4 +0,0 @@
1
- /** Auto-generated from src/runtime/handlers.ts — DO NOT EDIT */
2
- import type { DispatchableAction } from './types.js';
3
-
4
- {{{handlersBody}}}