@inf-monkeys-tech/monkeys 1.0.36 → 1.0.37
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/lib/contracts/common.d.ts +2 -1
- package/lib/contracts/common.d.ts.map +1 -1
- package/lib/contracts/common.js.map +1 -1
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/menu.d.ts +790 -0
- package/lib/contracts/menu.d.ts.map +1 -0
- package/lib/contracts/menu.js +319 -0
- package/lib/contracts/menu.js.map +1 -0
- package/lib/contracts/page.d.ts +6 -0
- package/lib/contracts/page.d.ts.map +1 -1
- package/lib/contracts/page.js +6 -0
- package/lib/contracts/page.js.map +1 -1
- package/lib/contracts/semantic.d.ts +59 -0
- package/lib/contracts/semantic.d.ts.map +1 -1
- package/lib/contracts/semantic.js +2 -0
- package/lib/contracts/semantic.js.map +1 -1
- package/lib/contracts/tenant.d.ts +154 -0
- package/lib/contracts/tenant.d.ts.map +1 -1
- package/lib/contracts/tenant.js +3 -0
- package/lib/contracts/tenant.js.map +1 -1
- package/lib/esm/contracts/index.mjs +1088 -768
- package/lib/esm/contracts/index.mjs.map +1 -1
- package/lib/esm/index.mjs +1614 -771
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +1167 -364
- package/lib/esm/runtime/index.mjs.map +1 -1
- package/lib/esm/schemas/index.mjs +1083 -768
- package/lib/esm/schemas/index.mjs.map +1 -1
- package/lib/json-schema/index.json +3 -0
- package/lib/json-schema/menu-definition-set.schema.json +411 -0
- package/lib/json-schema/menu-definition.schema.json +385 -0
- package/lib/json-schema/menu-runtime-bundle.schema.json +541 -0
- package/lib/json-schema/page-definition.schema.json +14 -0
- package/lib/json-schema/page-runtime-descriptor.schema.json +14 -0
- package/lib/json-schema/product-declaration.schema.json +369 -1
- package/lib/json-schema/tenant-product-config.schema.json +389 -0
- package/lib/json-schema/tenant-runtime-config.schema.json +519 -0
- package/lib/runtime/declaration-compiler.d.ts +2 -0
- package/lib/runtime/declaration-compiler.d.ts.map +1 -1
- package/lib/runtime/declaration-compiler.js +4 -0
- package/lib/runtime/declaration-compiler.js.map +1 -1
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.d.ts.map +1 -1
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/menu-compiler.d.ts +58 -0
- package/lib/runtime/menu-compiler.d.ts.map +1 -0
- package/lib/runtime/menu-compiler.js +436 -0
- package/lib/runtime/menu-compiler.js.map +1 -0
- package/lib/runtime/tenant-config.d.ts +2 -0
- package/lib/runtime/tenant-config.d.ts.map +1 -1
- package/lib/runtime/tenant-config.js +1 -0
- package/lib/runtime/tenant-config.js.map +1 -1
- package/lib/schemas/index.d.ts +406 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +38 -3
- package/lib/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/test/fixtures/menu-definition.v1.json +41 -0
|
@@ -1202,6 +1202,20 @@
|
|
|
1202
1202
|
],
|
|
1203
1203
|
"additionalProperties": false
|
|
1204
1204
|
},
|
|
1205
|
+
"input": {
|
|
1206
|
+
"type": "object",
|
|
1207
|
+
"properties": {
|
|
1208
|
+
"schemaRef": {
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"minLength": 1,
|
|
1211
|
+
"maxLength": 256
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
"required": [
|
|
1215
|
+
"schemaRef"
|
|
1216
|
+
],
|
|
1217
|
+
"additionalProperties": false
|
|
1218
|
+
},
|
|
1205
1219
|
"rendererConfig": {
|
|
1206
1220
|
"type": "object",
|
|
1207
1221
|
"properties": {
|
|
@@ -1358,6 +1372,359 @@
|
|
|
1358
1372
|
],
|
|
1359
1373
|
"additionalProperties": false
|
|
1360
1374
|
}
|
|
1375
|
+
},
|
|
1376
|
+
"menus": {
|
|
1377
|
+
"default": [],
|
|
1378
|
+
"type": "array",
|
|
1379
|
+
"items": {
|
|
1380
|
+
"type": "object",
|
|
1381
|
+
"properties": {
|
|
1382
|
+
"contract": {
|
|
1383
|
+
"type": "string",
|
|
1384
|
+
"const": "MenuDefinition"
|
|
1385
|
+
},
|
|
1386
|
+
"version": {
|
|
1387
|
+
"type": "number",
|
|
1388
|
+
"const": 1
|
|
1389
|
+
},
|
|
1390
|
+
"applicationId": {
|
|
1391
|
+
"type": "string",
|
|
1392
|
+
"minLength": 1,
|
|
1393
|
+
"maxLength": 256
|
|
1394
|
+
},
|
|
1395
|
+
"surface": {
|
|
1396
|
+
"type": "string",
|
|
1397
|
+
"minLength": 1,
|
|
1398
|
+
"maxLength": 256
|
|
1399
|
+
},
|
|
1400
|
+
"menuId": {
|
|
1401
|
+
"type": "string",
|
|
1402
|
+
"minLength": 1,
|
|
1403
|
+
"maxLength": 256
|
|
1404
|
+
},
|
|
1405
|
+
"nodes": {
|
|
1406
|
+
"maxItems": 1024,
|
|
1407
|
+
"type": "array",
|
|
1408
|
+
"items": {
|
|
1409
|
+
"anyOf": [
|
|
1410
|
+
{
|
|
1411
|
+
"type": "object",
|
|
1412
|
+
"properties": {
|
|
1413
|
+
"nodeId": {
|
|
1414
|
+
"type": "string",
|
|
1415
|
+
"minLength": 1,
|
|
1416
|
+
"maxLength": 256
|
|
1417
|
+
},
|
|
1418
|
+
"parentNodeId": {
|
|
1419
|
+
"type": "string",
|
|
1420
|
+
"minLength": 1,
|
|
1421
|
+
"maxLength": 256
|
|
1422
|
+
},
|
|
1423
|
+
"order": {
|
|
1424
|
+
"type": "integer",
|
|
1425
|
+
"minimum": -1000000,
|
|
1426
|
+
"maximum": 1000000
|
|
1427
|
+
},
|
|
1428
|
+
"kind": {
|
|
1429
|
+
"type": "string",
|
|
1430
|
+
"const": "group"
|
|
1431
|
+
},
|
|
1432
|
+
"label": {
|
|
1433
|
+
"anyOf": [
|
|
1434
|
+
{
|
|
1435
|
+
"type": "string",
|
|
1436
|
+
"minLength": 1
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"type": "object",
|
|
1440
|
+
"propertyNames": {
|
|
1441
|
+
"type": "string",
|
|
1442
|
+
"pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
|
|
1443
|
+
},
|
|
1444
|
+
"additionalProperties": {
|
|
1445
|
+
"type": "string",
|
|
1446
|
+
"minLength": 1
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
]
|
|
1450
|
+
},
|
|
1451
|
+
"iconRef": {
|
|
1452
|
+
"type": "string",
|
|
1453
|
+
"minLength": 1,
|
|
1454
|
+
"maxLength": 256
|
|
1455
|
+
}
|
|
1456
|
+
},
|
|
1457
|
+
"required": [
|
|
1458
|
+
"nodeId",
|
|
1459
|
+
"order",
|
|
1460
|
+
"kind"
|
|
1461
|
+
],
|
|
1462
|
+
"additionalProperties": false
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
"type": "object",
|
|
1466
|
+
"properties": {
|
|
1467
|
+
"nodeId": {
|
|
1468
|
+
"type": "string",
|
|
1469
|
+
"minLength": 1,
|
|
1470
|
+
"maxLength": 256
|
|
1471
|
+
},
|
|
1472
|
+
"parentNodeId": {
|
|
1473
|
+
"type": "string",
|
|
1474
|
+
"minLength": 1,
|
|
1475
|
+
"maxLength": 256
|
|
1476
|
+
},
|
|
1477
|
+
"order": {
|
|
1478
|
+
"type": "integer",
|
|
1479
|
+
"minimum": -1000000,
|
|
1480
|
+
"maximum": 1000000
|
|
1481
|
+
},
|
|
1482
|
+
"kind": {
|
|
1483
|
+
"type": "string",
|
|
1484
|
+
"const": "divider"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
"required": [
|
|
1488
|
+
"nodeId",
|
|
1489
|
+
"order",
|
|
1490
|
+
"kind"
|
|
1491
|
+
],
|
|
1492
|
+
"additionalProperties": false
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"type": "object",
|
|
1496
|
+
"properties": {
|
|
1497
|
+
"nodeId": {
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"minLength": 1,
|
|
1500
|
+
"maxLength": 256
|
|
1501
|
+
},
|
|
1502
|
+
"parentNodeId": {
|
|
1503
|
+
"type": "string",
|
|
1504
|
+
"minLength": 1,
|
|
1505
|
+
"maxLength": 256
|
|
1506
|
+
},
|
|
1507
|
+
"order": {
|
|
1508
|
+
"type": "integer",
|
|
1509
|
+
"minimum": -1000000,
|
|
1510
|
+
"maximum": 1000000
|
|
1511
|
+
},
|
|
1512
|
+
"kind": {
|
|
1513
|
+
"type": "string",
|
|
1514
|
+
"const": "item"
|
|
1515
|
+
},
|
|
1516
|
+
"label": {
|
|
1517
|
+
"anyOf": [
|
|
1518
|
+
{
|
|
1519
|
+
"type": "string",
|
|
1520
|
+
"minLength": 1
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"type": "object",
|
|
1524
|
+
"propertyNames": {
|
|
1525
|
+
"type": "string",
|
|
1526
|
+
"pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
|
|
1527
|
+
},
|
|
1528
|
+
"additionalProperties": {
|
|
1529
|
+
"type": "string",
|
|
1530
|
+
"minLength": 1
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
"iconRef": {
|
|
1536
|
+
"type": "string",
|
|
1537
|
+
"minLength": 1,
|
|
1538
|
+
"maxLength": 256
|
|
1539
|
+
},
|
|
1540
|
+
"tone": {
|
|
1541
|
+
"type": "string",
|
|
1542
|
+
"enum": [
|
|
1543
|
+
"default",
|
|
1544
|
+
"danger"
|
|
1545
|
+
]
|
|
1546
|
+
},
|
|
1547
|
+
"requiredPermission": {
|
|
1548
|
+
"type": "string",
|
|
1549
|
+
"minLength": 1,
|
|
1550
|
+
"maxLength": 256
|
|
1551
|
+
},
|
|
1552
|
+
"behavior": {
|
|
1553
|
+
"anyOf": [
|
|
1554
|
+
{
|
|
1555
|
+
"type": "object",
|
|
1556
|
+
"properties": {
|
|
1557
|
+
"kind": {
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
"const": "navigate"
|
|
1560
|
+
},
|
|
1561
|
+
"page": {
|
|
1562
|
+
"type": "object",
|
|
1563
|
+
"properties": {
|
|
1564
|
+
"applicationId": {
|
|
1565
|
+
"type": "string",
|
|
1566
|
+
"minLength": 1,
|
|
1567
|
+
"maxLength": 256
|
|
1568
|
+
},
|
|
1569
|
+
"pageId": {
|
|
1570
|
+
"type": "string",
|
|
1571
|
+
"minLength": 1,
|
|
1572
|
+
"maxLength": 256
|
|
1573
|
+
}
|
|
1574
|
+
},
|
|
1575
|
+
"required": [
|
|
1576
|
+
"applicationId",
|
|
1577
|
+
"pageId"
|
|
1578
|
+
],
|
|
1579
|
+
"additionalProperties": false
|
|
1580
|
+
},
|
|
1581
|
+
"activationId": {
|
|
1582
|
+
"type": "string",
|
|
1583
|
+
"minLength": 1,
|
|
1584
|
+
"maxLength": 256
|
|
1585
|
+
},
|
|
1586
|
+
"input": {
|
|
1587
|
+
"anyOf": [
|
|
1588
|
+
{
|
|
1589
|
+
"type": "object",
|
|
1590
|
+
"properties": {
|
|
1591
|
+
"exposure": {
|
|
1592
|
+
"type": "string",
|
|
1593
|
+
"const": "client"
|
|
1594
|
+
},
|
|
1595
|
+
"value": {
|
|
1596
|
+
"type": "object",
|
|
1597
|
+
"propertyNames": {
|
|
1598
|
+
"type": "string"
|
|
1599
|
+
},
|
|
1600
|
+
"additionalProperties": {
|
|
1601
|
+
"$ref": "#/$defs/__schema0"
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
"required": [
|
|
1606
|
+
"exposure",
|
|
1607
|
+
"value"
|
|
1608
|
+
],
|
|
1609
|
+
"additionalProperties": false
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"type": "object",
|
|
1613
|
+
"properties": {
|
|
1614
|
+
"exposure": {
|
|
1615
|
+
"type": "string",
|
|
1616
|
+
"const": "server"
|
|
1617
|
+
},
|
|
1618
|
+
"value": {
|
|
1619
|
+
"type": "object",
|
|
1620
|
+
"propertyNames": {
|
|
1621
|
+
"type": "string"
|
|
1622
|
+
},
|
|
1623
|
+
"additionalProperties": {
|
|
1624
|
+
"$ref": "#/$defs/__schema0"
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
},
|
|
1628
|
+
"required": [
|
|
1629
|
+
"exposure",
|
|
1630
|
+
"value"
|
|
1631
|
+
],
|
|
1632
|
+
"additionalProperties": false
|
|
1633
|
+
}
|
|
1634
|
+
]
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
"required": [
|
|
1638
|
+
"kind",
|
|
1639
|
+
"page"
|
|
1640
|
+
],
|
|
1641
|
+
"additionalProperties": false
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"type": "object",
|
|
1645
|
+
"properties": {
|
|
1646
|
+
"kind": {
|
|
1647
|
+
"type": "string",
|
|
1648
|
+
"const": "action"
|
|
1649
|
+
},
|
|
1650
|
+
"actionRef": {
|
|
1651
|
+
"type": "string",
|
|
1652
|
+
"minLength": 1,
|
|
1653
|
+
"maxLength": 256
|
|
1654
|
+
},
|
|
1655
|
+
"input": {
|
|
1656
|
+
"type": "object",
|
|
1657
|
+
"propertyNames": {
|
|
1658
|
+
"type": "string"
|
|
1659
|
+
},
|
|
1660
|
+
"additionalProperties": {
|
|
1661
|
+
"$ref": "#/$defs/__schema0"
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
},
|
|
1665
|
+
"required": [
|
|
1666
|
+
"kind",
|
|
1667
|
+
"actionRef"
|
|
1668
|
+
],
|
|
1669
|
+
"additionalProperties": false
|
|
1670
|
+
}
|
|
1671
|
+
]
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
"required": [
|
|
1675
|
+
"nodeId",
|
|
1676
|
+
"order",
|
|
1677
|
+
"kind",
|
|
1678
|
+
"label",
|
|
1679
|
+
"behavior"
|
|
1680
|
+
],
|
|
1681
|
+
"additionalProperties": false
|
|
1682
|
+
}
|
|
1683
|
+
]
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
"contributions": {
|
|
1687
|
+
"default": [],
|
|
1688
|
+
"maxItems": 1024,
|
|
1689
|
+
"type": "array",
|
|
1690
|
+
"items": {
|
|
1691
|
+
"type": "object",
|
|
1692
|
+
"properties": {
|
|
1693
|
+
"providerId": {
|
|
1694
|
+
"type": "string",
|
|
1695
|
+
"minLength": 1,
|
|
1696
|
+
"maxLength": 256
|
|
1697
|
+
},
|
|
1698
|
+
"parentNodeId": {
|
|
1699
|
+
"type": "string",
|
|
1700
|
+
"minLength": 1,
|
|
1701
|
+
"maxLength": 256
|
|
1702
|
+
},
|
|
1703
|
+
"order": {
|
|
1704
|
+
"type": "integer",
|
|
1705
|
+
"minimum": -1000000,
|
|
1706
|
+
"maximum": 1000000
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
"required": [
|
|
1710
|
+
"providerId",
|
|
1711
|
+
"order"
|
|
1712
|
+
],
|
|
1713
|
+
"additionalProperties": false
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
},
|
|
1717
|
+
"required": [
|
|
1718
|
+
"contract",
|
|
1719
|
+
"version",
|
|
1720
|
+
"applicationId",
|
|
1721
|
+
"surface",
|
|
1722
|
+
"menuId",
|
|
1723
|
+
"nodes",
|
|
1724
|
+
"contributions"
|
|
1725
|
+
],
|
|
1726
|
+
"additionalProperties": false
|
|
1727
|
+
}
|
|
1361
1728
|
}
|
|
1362
1729
|
},
|
|
1363
1730
|
"required": [
|
|
@@ -1369,7 +1736,8 @@
|
|
|
1369
1736
|
"projections",
|
|
1370
1737
|
"commands",
|
|
1371
1738
|
"capabilities",
|
|
1372
|
-
"pages"
|
|
1739
|
+
"pages",
|
|
1740
|
+
"menus"
|
|
1373
1741
|
],
|
|
1374
1742
|
"additionalProperties": false,
|
|
1375
1743
|
"$defs": {
|