@nice2dev/erp-adapter 1.1.6 → 1.1.9
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/CHANGELOG.md +56 -0
- package/dist/index.mjs +358 -116
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
- package/dist/ErpAuthAdapter.d.ts.map +0 -1
- package/dist/ErpDataAdapter.d.ts.map +0 -1
- package/dist/ErpExportAdapter.d.ts.map +0 -1
- package/dist/ErpFileAdapter.d.ts.map +0 -1
- package/dist/ErpOfflineQueue.d.ts.map +0 -1
- package/dist/ErpOptimisticStore.d.ts.map +0 -1
- package/dist/ErpRateLimiter.d.ts.map +0 -1
- package/dist/ErpSignalRAdapter.d.ts.map +0 -1
- package/dist/IconConfig.d.ts.map +0 -1
- package/dist/__tests__/ErpAuthAdapter.test.d.ts.map +0 -1
- package/dist/__tests__/ErpDataAdapter.test.d.ts.map +0 -1
- package/dist/__tests__/ErpExportAdapter.test.d.ts.map +0 -1
- package/dist/__tests__/ErpFileAdapter.test.d.ts.map +0 -1
- package/dist/__tests__/ErpOfflineQueue.test.d.ts.map +0 -1
- package/dist/__tests__/ErpOptimisticStore.test.d.ts.map +0 -1
- package/dist/__tests__/ErpRateLimiter.test.d.ts.map +0 -1
- package/dist/__tests__/middleware.test.d.ts.map +0 -1
- package/dist/__tests__/registries.test.d.ts.map +0 -1
- package/dist/business/formation.d.ts.map +0 -1
- package/dist/certification/hub.d.ts.map +0 -1
- package/dist/finance/loans.d.ts.map +0 -1
- package/dist/finance/useLoanApi.d.ts.map +0 -1
- package/dist/gov/services.d.ts.map +0 -1
- package/dist/grants/subsidies.d.ts.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/life/travel.d.ts.map +0 -1
- package/dist/middleware.d.ts.map +0 -1
- package/dist/registries/audioControls.d.ts.map +0 -1
- package/dist/registries/authControls.d.ts.map +0 -1
- package/dist/registries/businessControls.d.ts.map +0 -1
- package/dist/registries/gamificationControls.d.ts.map +0 -1
- package/dist/registries/graphicControls.d.ts.map +0 -1
- package/dist/registries/index.d.ts.map +0 -1
- package/dist/registries/socialControls.d.ts.map +0 -1
- package/dist/registries/threeControls.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/useCollaborativeDataGrid.d.ts.map +0 -1
- package/dist/useEntityPresence.d.ts.map +0 -1
- package/dist/useSignalRLiveData.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1319,10 +1319,12 @@ class ze {
|
|
|
1319
1319
|
body: typeof (t == null ? void 0 : t.body) == "string" ? t.body : void 0,
|
|
1320
1320
|
timestamp: Date.now()
|
|
1321
1321
|
};
|
|
1322
|
-
return this.queue.push(o), this.persistQueue(), (i = (r = this.config).onQueued) == null || i.call(r, o), Promise.resolve(
|
|
1323
|
-
JSON.stringify({ queued: !0, queueId: o.id }),
|
|
1324
|
-
|
|
1325
|
-
|
|
1322
|
+
return this.queue.push(o), this.persistQueue(), (i = (r = this.config).onQueued) == null || i.call(r, o), Promise.resolve(
|
|
1323
|
+
new Response(JSON.stringify({ queued: !0, queueId: o.id }), {
|
|
1324
|
+
status: 202,
|
|
1325
|
+
headers: { "Content-Type": "application/json" }
|
|
1326
|
+
})
|
|
1327
|
+
);
|
|
1326
1328
|
}
|
|
1327
1329
|
/** Is the browser currently online? */
|
|
1328
1330
|
isOnline() {
|
|
@@ -1378,10 +1380,7 @@ class ze {
|
|
|
1378
1380
|
}
|
|
1379
1381
|
persistQueue() {
|
|
1380
1382
|
try {
|
|
1381
|
-
typeof localStorage < "u" && localStorage.setItem(
|
|
1382
|
-
`${this.storageKey}queue`,
|
|
1383
|
-
JSON.stringify(this.queue)
|
|
1384
|
-
);
|
|
1383
|
+
typeof localStorage < "u" && localStorage.setItem(`${this.storageKey}queue`, JSON.stringify(this.queue));
|
|
1385
1384
|
} catch {
|
|
1386
1385
|
}
|
|
1387
1386
|
}
|
|
@@ -1412,12 +1411,18 @@ const ye = [
|
|
|
1412
1411
|
{ name: "loop", type: "boolean", label: "Loop", defaultValue: !1 },
|
|
1413
1412
|
{ name: "showWaveform", type: "boolean", label: "Show waveform", defaultValue: !0 },
|
|
1414
1413
|
{ name: "showPlaylist", type: "boolean", label: "Show playlist", defaultValue: !1 },
|
|
1415
|
-
{
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1414
|
+
{
|
|
1415
|
+
name: "visualizerMode",
|
|
1416
|
+
type: "select",
|
|
1417
|
+
label: "Visualizer mode",
|
|
1418
|
+
options: [
|
|
1419
|
+
{ label: "None", value: "none" },
|
|
1420
|
+
{ label: "Bars", value: "bars" },
|
|
1421
|
+
{ label: "Wave", value: "wave" },
|
|
1422
|
+
{ label: "Circle", value: "circle" }
|
|
1423
|
+
],
|
|
1424
|
+
defaultValue: "bars"
|
|
1425
|
+
},
|
|
1421
1426
|
{ name: "height", type: "size", label: "Height", group: "Layout" }
|
|
1422
1427
|
]
|
|
1423
1428
|
},
|
|
@@ -1431,7 +1436,15 @@ const ye = [
|
|
|
1431
1436
|
{ name: "peaks", type: "json", label: "Peak data (JSON array)" },
|
|
1432
1437
|
{ name: "color", type: "color", label: "Waveform color", defaultValue: "#4a90d9" },
|
|
1433
1438
|
{ name: "progressColor", type: "color", label: "Progress color", defaultValue: "#1b5e20" },
|
|
1434
|
-
{
|
|
1439
|
+
{
|
|
1440
|
+
name: "barWidth",
|
|
1441
|
+
type: "number",
|
|
1442
|
+
label: "Bar width (px)",
|
|
1443
|
+
min: 1,
|
|
1444
|
+
max: 10,
|
|
1445
|
+
step: 1,
|
|
1446
|
+
defaultValue: 2
|
|
1447
|
+
},
|
|
1435
1448
|
{ name: "height", type: "size", label: "Height", group: "Layout" },
|
|
1436
1449
|
{ name: "interactive", type: "boolean", label: "Allow seeking", defaultValue: !0 }
|
|
1437
1450
|
]
|
|
@@ -1444,14 +1457,34 @@ const ye = [
|
|
|
1444
1457
|
defaultProps: { notes: [], octaves: 4, startOctave: 3 },
|
|
1445
1458
|
propDescriptors: [
|
|
1446
1459
|
{ name: "notes", type: "json", label: "MIDI notes (JSON)" },
|
|
1447
|
-
{
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1460
|
+
{
|
|
1461
|
+
name: "octaves",
|
|
1462
|
+
type: "number",
|
|
1463
|
+
label: "Visible octaves",
|
|
1464
|
+
min: 1,
|
|
1465
|
+
max: 8,
|
|
1466
|
+
defaultValue: 4
|
|
1467
|
+
},
|
|
1468
|
+
{
|
|
1469
|
+
name: "startOctave",
|
|
1470
|
+
type: "number",
|
|
1471
|
+
label: "Start octave",
|
|
1472
|
+
min: 0,
|
|
1473
|
+
max: 8,
|
|
1474
|
+
defaultValue: 3
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
name: "quantize",
|
|
1478
|
+
type: "select",
|
|
1479
|
+
label: "Quantize",
|
|
1480
|
+
options: [
|
|
1481
|
+
{ label: "1/4", value: "4" },
|
|
1482
|
+
{ label: "1/8", value: "8" },
|
|
1483
|
+
{ label: "1/16", value: "16" },
|
|
1484
|
+
{ label: "1/32", value: "32" }
|
|
1485
|
+
],
|
|
1486
|
+
defaultValue: "16"
|
|
1487
|
+
},
|
|
1455
1488
|
{ name: "readOnly", type: "boolean", label: "Read only", defaultValue: !1 },
|
|
1456
1489
|
{ name: "height", type: "size", label: "Height", group: "Layout" }
|
|
1457
1490
|
]
|
|
@@ -1481,11 +1514,27 @@ const ye = [
|
|
|
1481
1514
|
propDescriptors: [
|
|
1482
1515
|
{ name: "title", type: "string", label: "Form title", defaultValue: "Sign In" },
|
|
1483
1516
|
{ name: "showRemember", type: "boolean", label: "Show 'Remember me'", defaultValue: !0 },
|
|
1484
|
-
{
|
|
1485
|
-
|
|
1517
|
+
{
|
|
1518
|
+
name: "showForgotPassword",
|
|
1519
|
+
type: "boolean",
|
|
1520
|
+
label: "Show 'Forgot password'",
|
|
1521
|
+
defaultValue: !0
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
name: "showRegisterLink",
|
|
1525
|
+
type: "boolean",
|
|
1526
|
+
label: "Show register link",
|
|
1527
|
+
defaultValue: !1
|
|
1528
|
+
},
|
|
1486
1529
|
{ name: "showLogo", type: "boolean", label: "Show logo", defaultValue: !0 },
|
|
1487
1530
|
{ name: "logoUrl", type: "string", label: "Logo URL", group: "Branding" },
|
|
1488
|
-
{
|
|
1531
|
+
{
|
|
1532
|
+
name: "primaryColor",
|
|
1533
|
+
type: "color",
|
|
1534
|
+
label: "Primary color",
|
|
1535
|
+
defaultValue: "#1976d2",
|
|
1536
|
+
group: "Branding"
|
|
1537
|
+
},
|
|
1489
1538
|
{ name: "variant", type: "variant", label: "Visual style", defaultValue: "card" }
|
|
1490
1539
|
]
|
|
1491
1540
|
},
|
|
@@ -1496,22 +1545,40 @@ const ye = [
|
|
|
1496
1545
|
icon: "shield",
|
|
1497
1546
|
defaultProps: { provider: "recaptcha", size: "normal" },
|
|
1498
1547
|
propDescriptors: [
|
|
1499
|
-
{
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1548
|
+
{
|
|
1549
|
+
name: "provider",
|
|
1550
|
+
type: "select",
|
|
1551
|
+
label: "Provider",
|
|
1552
|
+
options: [
|
|
1553
|
+
{ label: "reCAPTCHA v2", value: "recaptcha" },
|
|
1554
|
+
{ label: "reCAPTCHA v3", value: "recaptcha-v3" },
|
|
1555
|
+
{ label: "hCaptcha", value: "hcaptcha" },
|
|
1556
|
+
{ label: "Turnstile", value: "turnstile" }
|
|
1557
|
+
],
|
|
1558
|
+
defaultValue: "recaptcha"
|
|
1559
|
+
},
|
|
1505
1560
|
{ name: "siteKey", type: "string", label: "Site key" },
|
|
1506
|
-
{
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1561
|
+
{
|
|
1562
|
+
name: "size",
|
|
1563
|
+
type: "select",
|
|
1564
|
+
label: "Size",
|
|
1565
|
+
options: [
|
|
1566
|
+
{ label: "Normal", value: "normal" },
|
|
1567
|
+
{ label: "Compact", value: "compact" },
|
|
1568
|
+
{ label: "Invisible", value: "invisible" }
|
|
1569
|
+
],
|
|
1570
|
+
defaultValue: "normal"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
name: "theme",
|
|
1574
|
+
type: "select",
|
|
1575
|
+
label: "Theme",
|
|
1576
|
+
options: [
|
|
1577
|
+
{ label: "Light", value: "light" },
|
|
1578
|
+
{ label: "Dark", value: "dark" }
|
|
1579
|
+
],
|
|
1580
|
+
defaultValue: "light"
|
|
1581
|
+
}
|
|
1515
1582
|
]
|
|
1516
1583
|
},
|
|
1517
1584
|
{
|
|
@@ -1521,11 +1588,17 @@ const ye = [
|
|
|
1521
1588
|
icon: "key",
|
|
1522
1589
|
defaultProps: { method: "totp" },
|
|
1523
1590
|
propDescriptors: [
|
|
1524
|
-
{
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1591
|
+
{
|
|
1592
|
+
name: "method",
|
|
1593
|
+
type: "select",
|
|
1594
|
+
label: "2FA method",
|
|
1595
|
+
options: [
|
|
1596
|
+
{ label: "TOTP (Authenticator)", value: "totp" },
|
|
1597
|
+
{ label: "SMS", value: "sms" },
|
|
1598
|
+
{ label: "Email", value: "email" }
|
|
1599
|
+
],
|
|
1600
|
+
defaultValue: "totp"
|
|
1601
|
+
},
|
|
1529
1602
|
{ name: "issuer", type: "string", label: "Issuer name", defaultValue: "OmniVerk" },
|
|
1530
1603
|
{ name: "showBackupCodes", type: "boolean", label: "Show backup codes", defaultValue: !0 },
|
|
1531
1604
|
{ name: "showQR", type: "boolean", label: "Show QR code", defaultValue: !0 },
|
|
@@ -1543,13 +1616,20 @@ const ye = [
|
|
|
1543
1616
|
{ name: "street", type: "string", label: "Street", group: "Address" },
|
|
1544
1617
|
{ name: "city", type: "string", label: "City", group: "Address" },
|
|
1545
1618
|
{ name: "postalCode", type: "string", label: "Postal code", group: "Address" },
|
|
1546
|
-
{
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1619
|
+
{
|
|
1620
|
+
name: "country",
|
|
1621
|
+
type: "select",
|
|
1622
|
+
label: "Country",
|
|
1623
|
+
options: [
|
|
1624
|
+
{ label: "Poland", value: "PL" },
|
|
1625
|
+
{ label: "Germany", value: "DE" },
|
|
1626
|
+
{ label: "USA", value: "US" },
|
|
1627
|
+
{ label: "UK", value: "GB" },
|
|
1628
|
+
{ label: "France", value: "FR" }
|
|
1629
|
+
],
|
|
1630
|
+
defaultValue: "PL",
|
|
1631
|
+
group: "Address"
|
|
1632
|
+
},
|
|
1553
1633
|
{ name: "showMap", type: "boolean", label: "Show map preview", defaultValue: !1 },
|
|
1554
1634
|
{ name: "readOnly", type: "boolean", label: "Read only", defaultValue: !1 }
|
|
1555
1635
|
]
|
|
@@ -1564,11 +1644,17 @@ const ye = [
|
|
|
1564
1644
|
{ name: "value", type: "string", label: "Phone number" },
|
|
1565
1645
|
{ name: "countryCode", type: "string", label: "Default country code", defaultValue: "+48" },
|
|
1566
1646
|
{ name: "showFlag", type: "boolean", label: "Show country flag", defaultValue: !0 },
|
|
1567
|
-
{
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1647
|
+
{
|
|
1648
|
+
name: "format",
|
|
1649
|
+
type: "select",
|
|
1650
|
+
label: "Format",
|
|
1651
|
+
options: [
|
|
1652
|
+
{ label: "International", value: "international" },
|
|
1653
|
+
{ label: "National", value: "national" },
|
|
1654
|
+
{ label: "E.164", value: "e164" }
|
|
1655
|
+
],
|
|
1656
|
+
defaultValue: "international"
|
|
1657
|
+
},
|
|
1572
1658
|
{ name: "readOnly", type: "boolean", label: "Read only", defaultValue: !1 }
|
|
1573
1659
|
]
|
|
1574
1660
|
},
|
|
@@ -1580,15 +1666,33 @@ const ye = [
|
|
|
1580
1666
|
defaultProps: { currency: "PLN", decimals: 2 },
|
|
1581
1667
|
propDescriptors: [
|
|
1582
1668
|
{ name: "value", type: "number", label: "Amount", defaultValue: 0 },
|
|
1583
|
-
{
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1669
|
+
{
|
|
1670
|
+
name: "currency",
|
|
1671
|
+
type: "select",
|
|
1672
|
+
label: "Currency",
|
|
1673
|
+
options: [
|
|
1674
|
+
{ label: "PLN", value: "PLN" },
|
|
1675
|
+
{ label: "EUR", value: "EUR" },
|
|
1676
|
+
{ label: "USD", value: "USD" },
|
|
1677
|
+
{ label: "GBP", value: "GBP" }
|
|
1678
|
+
],
|
|
1679
|
+
defaultValue: "PLN"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
name: "decimals",
|
|
1683
|
+
type: "number",
|
|
1684
|
+
label: "Decimal places",
|
|
1685
|
+
min: 0,
|
|
1686
|
+
max: 4,
|
|
1687
|
+
defaultValue: 2
|
|
1688
|
+
},
|
|
1590
1689
|
{ name: "showCurrencySymbol", type: "boolean", label: "Show symbol", defaultValue: !0 },
|
|
1591
|
-
{
|
|
1690
|
+
{
|
|
1691
|
+
name: "thousandSeparator",
|
|
1692
|
+
type: "boolean",
|
|
1693
|
+
label: "Thousand separator",
|
|
1694
|
+
defaultValue: !0
|
|
1695
|
+
},
|
|
1592
1696
|
{ name: "readOnly", type: "boolean", label: "Read only", defaultValue: !1 }
|
|
1593
1697
|
]
|
|
1594
1698
|
},
|
|
@@ -1600,12 +1704,26 @@ const ye = [
|
|
|
1600
1704
|
defaultProps: { rate: 23, country: "PL" },
|
|
1601
1705
|
propDescriptors: [
|
|
1602
1706
|
{ name: "netValue", type: "number", label: "Net value", defaultValue: 0, group: "Values" },
|
|
1603
|
-
{
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1707
|
+
{
|
|
1708
|
+
name: "rate",
|
|
1709
|
+
type: "number",
|
|
1710
|
+
label: "VAT rate (%)",
|
|
1711
|
+
min: 0,
|
|
1712
|
+
max: 100,
|
|
1713
|
+
defaultValue: 23,
|
|
1714
|
+
group: "Values"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
name: "country",
|
|
1718
|
+
type: "select",
|
|
1719
|
+
label: "Country",
|
|
1720
|
+
options: [
|
|
1721
|
+
{ label: "Poland", value: "PL" },
|
|
1722
|
+
{ label: "Germany", value: "DE" },
|
|
1723
|
+
{ label: "France", value: "FR" }
|
|
1724
|
+
],
|
|
1725
|
+
defaultValue: "PL"
|
|
1726
|
+
},
|
|
1609
1727
|
{ name: "showGross", type: "boolean", label: "Show gross value", defaultValue: !0 },
|
|
1610
1728
|
{ name: "showVatAmount", type: "boolean", label: "Show VAT amount", defaultValue: !0 },
|
|
1611
1729
|
{ name: "readOnly", type: "boolean", label: "Read only", defaultValue: !1 }
|
|
@@ -1619,11 +1737,17 @@ const ye = [
|
|
|
1619
1737
|
defaultProps: { lines: [], currency: "PLN" },
|
|
1620
1738
|
propDescriptors: [
|
|
1621
1739
|
{ name: "lines", type: "json", label: "Invoice lines (JSON)" },
|
|
1622
|
-
{
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1740
|
+
{
|
|
1741
|
+
name: "currency",
|
|
1742
|
+
type: "select",
|
|
1743
|
+
label: "Currency",
|
|
1744
|
+
options: [
|
|
1745
|
+
{ label: "PLN", value: "PLN" },
|
|
1746
|
+
{ label: "EUR", value: "EUR" },
|
|
1747
|
+
{ label: "USD", value: "USD" }
|
|
1748
|
+
],
|
|
1749
|
+
defaultValue: "PLN"
|
|
1750
|
+
},
|
|
1627
1751
|
{ name: "showVAT", type: "boolean", label: "Show VAT column", defaultValue: !0 },
|
|
1628
1752
|
{ name: "showDiscount", type: "boolean", label: "Show discount column", defaultValue: !1 },
|
|
1629
1753
|
{ name: "showTotal", type: "boolean", label: "Show totals row", defaultValue: !0 },
|
|
@@ -1737,11 +1861,33 @@ const ye = [
|
|
|
1737
1861
|
icon: "grid",
|
|
1738
1862
|
defaultProps: { width: 32, height: 32, palette: [] },
|
|
1739
1863
|
propDescriptors: [
|
|
1740
|
-
{
|
|
1741
|
-
|
|
1864
|
+
{
|
|
1865
|
+
name: "width",
|
|
1866
|
+
type: "number",
|
|
1867
|
+
label: "Canvas width (px)",
|
|
1868
|
+
min: 1,
|
|
1869
|
+
max: 256,
|
|
1870
|
+
defaultValue: 32
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
name: "height",
|
|
1874
|
+
type: "number",
|
|
1875
|
+
label: "Canvas height (px)",
|
|
1876
|
+
min: 1,
|
|
1877
|
+
max: 256,
|
|
1878
|
+
defaultValue: 32
|
|
1879
|
+
},
|
|
1742
1880
|
{ name: "palette", type: "json", label: "Color palette (JSON array)" },
|
|
1743
1881
|
{ name: "gridVisible", type: "boolean", label: "Show grid", defaultValue: !0 },
|
|
1744
|
-
{
|
|
1882
|
+
{
|
|
1883
|
+
name: "zoom",
|
|
1884
|
+
type: "number",
|
|
1885
|
+
label: "Zoom level",
|
|
1886
|
+
min: 1,
|
|
1887
|
+
max: 32,
|
|
1888
|
+
step: 1,
|
|
1889
|
+
defaultValue: 8
|
|
1890
|
+
},
|
|
1745
1891
|
{ name: "layers", type: "boolean", label: "Enable layers", defaultValue: !0 },
|
|
1746
1892
|
{ name: "onion", type: "boolean", label: "Onion skin (animation)", defaultValue: !1 }
|
|
1747
1893
|
]
|
|
@@ -1753,14 +1899,38 @@ const ye = [
|
|
|
1753
1899
|
icon: "pen-tool",
|
|
1754
1900
|
defaultProps: { width: 800, height: 600 },
|
|
1755
1901
|
propDescriptors: [
|
|
1756
|
-
{
|
|
1757
|
-
|
|
1902
|
+
{
|
|
1903
|
+
name: "width",
|
|
1904
|
+
type: "number",
|
|
1905
|
+
label: "Canvas width",
|
|
1906
|
+
min: 100,
|
|
1907
|
+
max: 4096,
|
|
1908
|
+
defaultValue: 800,
|
|
1909
|
+
group: "Layout"
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
name: "height",
|
|
1913
|
+
type: "number",
|
|
1914
|
+
label: "Canvas height",
|
|
1915
|
+
min: 100,
|
|
1916
|
+
max: 4096,
|
|
1917
|
+
defaultValue: 600,
|
|
1918
|
+
group: "Layout"
|
|
1919
|
+
},
|
|
1758
1920
|
{ name: "showRulers", type: "boolean", label: "Show rulers", defaultValue: !0 },
|
|
1759
1921
|
{ name: "snapToGrid", type: "boolean", label: "Snap to grid", defaultValue: !0 },
|
|
1760
1922
|
{ name: "gridSize", type: "number", label: "Grid size", min: 1, max: 100, defaultValue: 10 },
|
|
1761
1923
|
{ name: "fillColor", type: "color", label: "Default fill", defaultValue: "#ffffff" },
|
|
1762
1924
|
{ name: "strokeColor", type: "color", label: "Default stroke", defaultValue: "#000000" },
|
|
1763
|
-
{
|
|
1925
|
+
{
|
|
1926
|
+
name: "strokeWidth",
|
|
1927
|
+
type: "number",
|
|
1928
|
+
label: "Stroke width",
|
|
1929
|
+
min: 0,
|
|
1930
|
+
max: 20,
|
|
1931
|
+
step: 0.5,
|
|
1932
|
+
defaultValue: 1
|
|
1933
|
+
}
|
|
1764
1934
|
]
|
|
1765
1935
|
},
|
|
1766
1936
|
{
|
|
@@ -1776,12 +1946,25 @@ const ye = [
|
|
|
1776
1946
|
{ name: "filters", type: "boolean", label: "Show filters", defaultValue: !0 },
|
|
1777
1947
|
{ name: "adjustments", type: "boolean", label: "Show adjustments", defaultValue: !0 },
|
|
1778
1948
|
{ name: "text", type: "boolean", label: "Allow text overlay", defaultValue: !0 },
|
|
1779
|
-
{
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1949
|
+
{
|
|
1950
|
+
name: "outputFormat",
|
|
1951
|
+
type: "select",
|
|
1952
|
+
label: "Output format",
|
|
1953
|
+
options: [
|
|
1954
|
+
{ label: "PNG", value: "png" },
|
|
1955
|
+
{ label: "JPEG", value: "jpeg" },
|
|
1956
|
+
{ label: "WebP", value: "webp" }
|
|
1957
|
+
],
|
|
1958
|
+
defaultValue: "png"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
name: "maxWidth",
|
|
1962
|
+
type: "number",
|
|
1963
|
+
label: "Max output width",
|
|
1964
|
+
min: 100,
|
|
1965
|
+
max: 8192,
|
|
1966
|
+
group: "Output"
|
|
1967
|
+
}
|
|
1785
1968
|
]
|
|
1786
1969
|
}
|
|
1787
1970
|
], Se = [
|
|
@@ -1793,13 +1976,31 @@ const ye = [
|
|
|
1793
1976
|
defaultProps: { threadId: "", allowReplies: !0 },
|
|
1794
1977
|
propDescriptors: [
|
|
1795
1978
|
{ name: "threadId", type: "string", label: "Thread ID / entity ID" },
|
|
1796
|
-
{
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1979
|
+
{
|
|
1980
|
+
name: "allowReplies",
|
|
1981
|
+
type: "boolean",
|
|
1982
|
+
label: "Allow replies (nested)",
|
|
1983
|
+
defaultValue: !0
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
name: "maxDepth",
|
|
1987
|
+
type: "number",
|
|
1988
|
+
label: "Max nesting depth",
|
|
1989
|
+
min: 1,
|
|
1990
|
+
max: 10,
|
|
1991
|
+
defaultValue: 3
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
name: "sortOrder",
|
|
1995
|
+
type: "select",
|
|
1996
|
+
label: "Default sort",
|
|
1997
|
+
options: [
|
|
1998
|
+
{ label: "Newest first", value: "newest" },
|
|
1999
|
+
{ label: "Oldest first", value: "oldest" },
|
|
2000
|
+
{ label: "Most liked", value: "popular" }
|
|
2001
|
+
],
|
|
2002
|
+
defaultValue: "newest"
|
|
2003
|
+
},
|
|
1803
2004
|
{ name: "allowReactions", type: "boolean", label: "Allow reactions", defaultValue: !0 },
|
|
1804
2005
|
{ name: "showAvatar", type: "boolean", label: "Show avatars", defaultValue: !0 },
|
|
1805
2006
|
{ name: "readOnly", type: "boolean", label: "Read only", defaultValue: !1 }
|
|
@@ -1812,8 +2013,23 @@ const ye = [
|
|
|
1812
2013
|
icon: "star",
|
|
1813
2014
|
defaultProps: { maxStars: 5, allowHalf: !0 },
|
|
1814
2015
|
propDescriptors: [
|
|
1815
|
-
{
|
|
1816
|
-
|
|
2016
|
+
{
|
|
2017
|
+
name: "value",
|
|
2018
|
+
type: "number",
|
|
2019
|
+
label: "Current rating",
|
|
2020
|
+
min: 0,
|
|
2021
|
+
max: 10,
|
|
2022
|
+
step: 0.5,
|
|
2023
|
+
defaultValue: 0
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
name: "maxStars",
|
|
2027
|
+
type: "number",
|
|
2028
|
+
label: "Maximum stars",
|
|
2029
|
+
min: 3,
|
|
2030
|
+
max: 10,
|
|
2031
|
+
defaultValue: 5
|
|
2032
|
+
},
|
|
1817
2033
|
{ name: "allowHalf", type: "boolean", label: "Allow half stars", defaultValue: !0 },
|
|
1818
2034
|
{ name: "showCount", type: "boolean", label: "Show vote count", defaultValue: !0 },
|
|
1819
2035
|
{ name: "showAverage", type: "boolean", label: "Show average", defaultValue: !0 },
|
|
@@ -1834,11 +2050,17 @@ const ye = [
|
|
|
1834
2050
|
{ name: "showHistory", type: "boolean", label: "Show version history", defaultValue: !0 },
|
|
1835
2051
|
{ name: "allowEdit", type: "boolean", label: "Allow editing", defaultValue: !0 },
|
|
1836
2052
|
{ name: "showToolbar", type: "boolean", label: "Show Markdown toolbar", defaultValue: !0 },
|
|
1837
|
-
{
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
2053
|
+
{
|
|
2054
|
+
name: "previewMode",
|
|
2055
|
+
type: "select",
|
|
2056
|
+
label: "Preview mode",
|
|
2057
|
+
options: [
|
|
2058
|
+
{ label: "Side by side", value: "split" },
|
|
2059
|
+
{ label: "Tab switch", value: "tabs" },
|
|
2060
|
+
{ label: "Live preview", value: "live" }
|
|
2061
|
+
],
|
|
2062
|
+
defaultValue: "split"
|
|
2063
|
+
},
|
|
1842
2064
|
{ name: "maxLength", type: "number", label: "Max content length", min: 0, defaultValue: 0 }
|
|
1843
2065
|
]
|
|
1844
2066
|
}
|
|
@@ -1851,12 +2073,18 @@ const ye = [
|
|
|
1851
2073
|
defaultProps: { modelUrl: "" },
|
|
1852
2074
|
propDescriptors: [
|
|
1853
2075
|
{ name: "modelUrl", type: "string", label: "Model URL (.glb / .gltf)" },
|
|
1854
|
-
{
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
2076
|
+
{
|
|
2077
|
+
name: "environmentMap",
|
|
2078
|
+
type: "select",
|
|
2079
|
+
label: "Environment",
|
|
2080
|
+
options: [
|
|
2081
|
+
{ label: "Studio", value: "studio" },
|
|
2082
|
+
{ label: "Outdoor", value: "outdoor" },
|
|
2083
|
+
{ label: "Warehouse", value: "warehouse" },
|
|
2084
|
+
{ label: "None", value: "none" }
|
|
2085
|
+
],
|
|
2086
|
+
defaultValue: "studio"
|
|
2087
|
+
},
|
|
1860
2088
|
{ name: "showGrid", type: "boolean", label: "Show grid", defaultValue: !0 },
|
|
1861
2089
|
{ name: "showAxes", type: "boolean", label: "Show axes", defaultValue: !0 },
|
|
1862
2090
|
{ name: "enablePhysics", type: "boolean", label: "Enable physics", defaultValue: !1 },
|
|
@@ -1874,15 +2102,29 @@ const ye = [
|
|
|
1874
2102
|
propDescriptors: [
|
|
1875
2103
|
{ name: "modelUrl", type: "string", label: "Model URL (.glb / .gltf)" },
|
|
1876
2104
|
{ name: "autoRotate", type: "boolean", label: "Auto-rotate", defaultValue: !0 },
|
|
1877
|
-
{
|
|
2105
|
+
{
|
|
2106
|
+
name: "rotateSpeed",
|
|
2107
|
+
type: "number",
|
|
2108
|
+
label: "Rotate speed",
|
|
2109
|
+
min: 0.1,
|
|
2110
|
+
max: 10,
|
|
2111
|
+
step: 0.1,
|
|
2112
|
+
defaultValue: 1
|
|
2113
|
+
},
|
|
1878
2114
|
{ name: "zoom", type: "boolean", label: "Allow zoom", defaultValue: !0 },
|
|
1879
2115
|
{ name: "pan", type: "boolean", label: "Allow pan", defaultValue: !0 },
|
|
1880
|
-
{
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
2116
|
+
{
|
|
2117
|
+
name: "environmentMap",
|
|
2118
|
+
type: "select",
|
|
2119
|
+
label: "Environment",
|
|
2120
|
+
options: [
|
|
2121
|
+
{ label: "Studio", value: "studio" },
|
|
2122
|
+
{ label: "Outdoor", value: "outdoor" },
|
|
2123
|
+
{ label: "Warehouse", value: "warehouse" },
|
|
2124
|
+
{ label: "None", value: "none" }
|
|
2125
|
+
],
|
|
2126
|
+
defaultValue: "studio"
|
|
2127
|
+
},
|
|
1886
2128
|
{ name: "backgroundColor", type: "color", label: "Background", defaultValue: "#1a1a2e" },
|
|
1887
2129
|
{ name: "showAnnotations", type: "boolean", label: "Show annotations", defaultValue: !1 },
|
|
1888
2130
|
{ name: "height", type: "size", label: "Viewport height", group: "Layout" }
|