@safe-ugc-ui/schema 0.5.0 → 0.6.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Safe UGC UI Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1375,6 +1375,207 @@
1375
1375
  },
1376
1376
  "style": {
1377
1377
  "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties"
1378
+ },
1379
+ "responsive": {
1380
+ "type": "object",
1381
+ "properties": {
1382
+ "compact": {
1383
+ "type": "object",
1384
+ "properties": {
1385
+ "display": {
1386
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/display"
1387
+ },
1388
+ "flexDirection": {
1389
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/flexDirection"
1390
+ },
1391
+ "justifyContent": {
1392
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/justifyContent"
1393
+ },
1394
+ "alignItems": {
1395
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/alignItems"
1396
+ },
1397
+ "alignSelf": {
1398
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/alignSelf"
1399
+ },
1400
+ "flexWrap": {
1401
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/flexWrap"
1402
+ },
1403
+ "flex": {
1404
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/flex"
1405
+ },
1406
+ "gap": {
1407
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/gap"
1408
+ },
1409
+ "width": {
1410
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/width"
1411
+ },
1412
+ "height": {
1413
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/height"
1414
+ },
1415
+ "minWidth": {
1416
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/minWidth"
1417
+ },
1418
+ "maxWidth": {
1419
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/maxWidth"
1420
+ },
1421
+ "minHeight": {
1422
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/minHeight"
1423
+ },
1424
+ "maxHeight": {
1425
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/maxHeight"
1426
+ },
1427
+ "padding": {
1428
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/padding"
1429
+ },
1430
+ "paddingTop": {
1431
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/paddingTop"
1432
+ },
1433
+ "paddingRight": {
1434
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/paddingRight"
1435
+ },
1436
+ "paddingBottom": {
1437
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/paddingBottom"
1438
+ },
1439
+ "paddingLeft": {
1440
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/paddingLeft"
1441
+ },
1442
+ "margin": {
1443
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/margin"
1444
+ },
1445
+ "marginTop": {
1446
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/marginTop"
1447
+ },
1448
+ "marginRight": {
1449
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/marginRight"
1450
+ },
1451
+ "marginBottom": {
1452
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/marginBottom"
1453
+ },
1454
+ "marginLeft": {
1455
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/marginLeft"
1456
+ },
1457
+ "backgroundColor": {
1458
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/backgroundColor"
1459
+ },
1460
+ "color": {
1461
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/color"
1462
+ },
1463
+ "borderRadius": {
1464
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRadius"
1465
+ },
1466
+ "borderRadiusTopLeft": {
1467
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRadiusTopLeft"
1468
+ },
1469
+ "borderRadiusTopRight": {
1470
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRadiusTopRight"
1471
+ },
1472
+ "borderRadiusBottomLeft": {
1473
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRadiusBottomLeft"
1474
+ },
1475
+ "borderRadiusBottomRight": {
1476
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRadiusBottomRight"
1477
+ },
1478
+ "fontFamily": {
1479
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/fontFamily"
1480
+ },
1481
+ "fontSize": {
1482
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/fontSize"
1483
+ },
1484
+ "fontWeight": {
1485
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/fontWeight"
1486
+ },
1487
+ "fontStyle": {
1488
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/fontStyle"
1489
+ },
1490
+ "textAlign": {
1491
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/textAlign"
1492
+ },
1493
+ "textDecoration": {
1494
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/textDecoration"
1495
+ },
1496
+ "lineHeight": {
1497
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/lineHeight"
1498
+ },
1499
+ "letterSpacing": {
1500
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/letterSpacing"
1501
+ },
1502
+ "opacity": {
1503
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/opacity"
1504
+ },
1505
+ "backgroundGradient": {
1506
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/backgroundGradient"
1507
+ },
1508
+ "boxShadow": {
1509
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/boxShadow"
1510
+ },
1511
+ "textShadow": {
1512
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/textShadow"
1513
+ },
1514
+ "border": {
1515
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/border"
1516
+ },
1517
+ "borderTop": {
1518
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderTop"
1519
+ },
1520
+ "borderRight": {
1521
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderRight"
1522
+ },
1523
+ "borderBottom": {
1524
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderBottom"
1525
+ },
1526
+ "borderLeft": {
1527
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/borderLeft"
1528
+ },
1529
+ "transform": {
1530
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/transform"
1531
+ },
1532
+ "overflow": {
1533
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/overflow"
1534
+ },
1535
+ "position": {
1536
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/position"
1537
+ },
1538
+ "top": {
1539
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/top"
1540
+ },
1541
+ "right": {
1542
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/right"
1543
+ },
1544
+ "bottom": {
1545
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/bottom"
1546
+ },
1547
+ "left": {
1548
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/left"
1549
+ },
1550
+ "objectFit": {
1551
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/objectFit"
1552
+ },
1553
+ "objectPosition": {
1554
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/objectPosition"
1555
+ },
1556
+ "gridTemplateColumns": {
1557
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/gridTemplateColumns"
1558
+ },
1559
+ "gridTemplateRows": {
1560
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/gridTemplateRows"
1561
+ },
1562
+ "gridColumn": {
1563
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/gridColumn"
1564
+ },
1565
+ "gridRow": {
1566
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/gridRow"
1567
+ },
1568
+ "zIndex": {
1569
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/zIndex"
1570
+ },
1571
+ "$style": {
1572
+ "$ref": "#/definitions/UGCCard/properties/styles/additionalProperties/properties/$style"
1573
+ }
1574
+ },
1575
+ "additionalProperties": false
1576
+ }
1577
+ },
1578
+ "additionalProperties": false
1378
1579
  }
1379
1580
  },
1380
1581
  "required": [
@@ -1394,6 +1595,9 @@
1394
1595
  },
1395
1596
  "style": {
1396
1597
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1598
+ },
1599
+ "responsive": {
1600
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1397
1601
  }
1398
1602
  },
1399
1603
  "required": [
@@ -1413,6 +1617,9 @@
1413
1617
  },
1414
1618
  "style": {
1415
1619
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1620
+ },
1621
+ "responsive": {
1622
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1416
1623
  }
1417
1624
  },
1418
1625
  "required": [
@@ -1432,6 +1639,9 @@
1432
1639
  },
1433
1640
  "style": {
1434
1641
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1642
+ },
1643
+ "responsive": {
1644
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1435
1645
  }
1436
1646
  },
1437
1647
  "required": [
@@ -1451,6 +1661,9 @@
1451
1661
  },
1452
1662
  "style": {
1453
1663
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1664
+ },
1665
+ "responsive": {
1666
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1454
1667
  }
1455
1668
  },
1456
1669
  "required": [
@@ -1477,6 +1690,9 @@
1477
1690
  },
1478
1691
  "style": {
1479
1692
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1693
+ },
1694
+ "responsive": {
1695
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1480
1696
  }
1481
1697
  },
1482
1698
  "required": [
@@ -1515,6 +1731,9 @@
1515
1731
  },
1516
1732
  "style": {
1517
1733
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1734
+ },
1735
+ "responsive": {
1736
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1518
1737
  }
1519
1738
  },
1520
1739
  "required": [
@@ -1562,6 +1781,9 @@
1562
1781
  },
1563
1782
  "style": {
1564
1783
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1784
+ },
1785
+ "responsive": {
1786
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1565
1787
  }
1566
1788
  },
1567
1789
  "required": [
@@ -1600,6 +1822,9 @@
1600
1822
  },
1601
1823
  "style": {
1602
1824
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1825
+ },
1826
+ "responsive": {
1827
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1603
1828
  }
1604
1829
  },
1605
1830
  "required": [
@@ -1647,6 +1872,9 @@
1647
1872
  },
1648
1873
  "style": {
1649
1874
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1875
+ },
1876
+ "responsive": {
1877
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1650
1878
  }
1651
1879
  },
1652
1880
  "required": [
@@ -1684,6 +1912,9 @@
1684
1912
  },
1685
1913
  "style": {
1686
1914
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1915
+ },
1916
+ "responsive": {
1917
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1687
1918
  }
1688
1919
  },
1689
1920
  "required": [
@@ -1721,6 +1952,9 @@
1721
1952
  },
1722
1953
  "style": {
1723
1954
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1955
+ },
1956
+ "responsive": {
1957
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1724
1958
  }
1725
1959
  },
1726
1960
  "required": [
@@ -1758,6 +1992,9 @@
1758
1992
  },
1759
1993
  "style": {
1760
1994
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
1995
+ },
1996
+ "responsive": {
1997
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1761
1998
  }
1762
1999
  },
1763
2000
  "required": [
@@ -1784,6 +2021,9 @@
1784
2021
  },
1785
2022
  "style": {
1786
2023
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
2024
+ },
2025
+ "responsive": {
2026
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1787
2027
  }
1788
2028
  },
1789
2029
  "required": [
@@ -1813,6 +2053,9 @@
1813
2053
  },
1814
2054
  "style": {
1815
2055
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
2056
+ },
2057
+ "responsive": {
2058
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1816
2059
  }
1817
2060
  },
1818
2061
  "required": [
@@ -1844,6 +2087,9 @@
1844
2087
  },
1845
2088
  "style": {
1846
2089
  "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/style"
2090
+ },
2091
+ "responsive": {
2092
+ "$ref": "#/definitions/UGCCard/properties/views/additionalProperties/anyOf/0/properties/responsive"
1847
2093
  }
1848
2094
  },
1849
2095
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safe-ugc-ui/schema",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,15 +14,15 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
- "scripts": {
18
- "build": "tsup && node dist/generate.js",
19
- "test": "vitest run"
20
- },
21
17
  "dependencies": {
22
- "@safe-ugc-ui/types": "workspace:*",
23
- "zod-to-json-schema": "^3.24.0"
18
+ "zod-to-json-schema": "^3.24.0",
19
+ "@safe-ugc-ui/types": "0.6.0"
24
20
  },
25
21
  "devDependencies": {
26
22
  "@types/node": "^22.0.0"
23
+ },
24
+ "scripts": {
25
+ "build": "tsup && node dist/generate.js",
26
+ "test": "vitest run"
27
27
  }
28
- }
28
+ }