@nice2dev/ui-platform 1.1.10 → 1.2.1
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/README.md +0 -6
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +132 -39
- package/dist/index.mjs +4707 -4627
- package/dist/ui-platform.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -928,7 +928,9 @@ export declare interface MergeFunction<T = unknown> {
|
|
|
928
928
|
(client: T, server: T, base?: T): T | Promise<T>;
|
|
929
929
|
}
|
|
930
930
|
|
|
931
|
-
export declare const NiceAutoStart: default_2.ForwardRefExoticComponent<NiceAutoStartProps & default_2.RefAttributes<NiceAutoStartRef
|
|
931
|
+
export declare const NiceAutoStart: default_2.ForwardRefExoticComponent<NiceAutoStartProps & default_2.RefAttributes<NiceAutoStartRef>> & {
|
|
932
|
+
displayName: string;
|
|
933
|
+
};
|
|
932
934
|
|
|
933
935
|
export declare interface NiceAutoStartProps {
|
|
934
936
|
/** Startup tasks */
|
|
@@ -951,7 +953,9 @@ export declare interface NiceAutoStartProps {
|
|
|
951
953
|
children?: ReactNode;
|
|
952
954
|
}
|
|
953
955
|
|
|
954
|
-
export declare const NiceAutoStartProvider: default_2.ForwardRefExoticComponent<NiceAutoStartProps & default_2.RefAttributes<NiceAutoStartRef
|
|
956
|
+
export declare const NiceAutoStartProvider: default_2.ForwardRefExoticComponent<NiceAutoStartProps & default_2.RefAttributes<NiceAutoStartRef>> & {
|
|
957
|
+
displayName: string;
|
|
958
|
+
};
|
|
955
959
|
|
|
956
960
|
export declare interface NiceAutoStartRef {
|
|
957
961
|
/** Get current state */
|
|
@@ -972,7 +976,9 @@ export declare interface NiceAutoStartRef {
|
|
|
972
976
|
recover: () => Promise<void>;
|
|
973
977
|
}
|
|
974
978
|
|
|
975
|
-
export declare const NiceBackgroundSync: default_2.ForwardRefExoticComponent<NiceBackgroundSyncProps & default_2.RefAttributes<NiceBackgroundSyncRef
|
|
979
|
+
export declare const NiceBackgroundSync: default_2.ForwardRefExoticComponent<NiceBackgroundSyncProps & default_2.RefAttributes<NiceBackgroundSyncRef>> & {
|
|
980
|
+
displayName: string;
|
|
981
|
+
};
|
|
976
982
|
|
|
977
983
|
export declare interface NiceBackgroundSyncProps {
|
|
978
984
|
/** Configuration */
|
|
@@ -996,7 +1002,9 @@ export declare interface NiceBackgroundSyncProps {
|
|
|
996
1002
|
children?: ReactNode;
|
|
997
1003
|
}
|
|
998
1004
|
|
|
999
|
-
export declare const NiceBackgroundSyncProvider: default_2.ForwardRefExoticComponent<NiceBackgroundSyncProps & default_2.RefAttributes<NiceBackgroundSyncRef
|
|
1005
|
+
export declare const NiceBackgroundSyncProvider: default_2.ForwardRefExoticComponent<NiceBackgroundSyncProps & default_2.RefAttributes<NiceBackgroundSyncRef>> & {
|
|
1006
|
+
displayName: string;
|
|
1007
|
+
};
|
|
1000
1008
|
|
|
1001
1009
|
export declare interface NiceBackgroundSyncRef {
|
|
1002
1010
|
/** Get current state */
|
|
@@ -1030,7 +1038,9 @@ export declare interface NiceBackgroundSyncRef {
|
|
|
1030
1038
|
registerBackgroundSync: (tag: string) => Promise<boolean>;
|
|
1031
1039
|
}
|
|
1032
1040
|
|
|
1033
|
-
export declare const NiceBarcodeScanner: default_2.ForwardRefExoticComponent<NiceBarcodeScannerProps & default_2.RefAttributes<NiceBarcodeScannerRef
|
|
1041
|
+
export declare const NiceBarcodeScanner: default_2.ForwardRefExoticComponent<NiceBarcodeScannerProps & default_2.RefAttributes<NiceBarcodeScannerRef>> & {
|
|
1042
|
+
displayName: string;
|
|
1043
|
+
};
|
|
1034
1044
|
|
|
1035
1045
|
export declare interface NiceBarcodeScannerProps {
|
|
1036
1046
|
/** Configuration */
|
|
@@ -1072,7 +1082,9 @@ export declare interface NiceBarcodeScannerRef {
|
|
|
1072
1082
|
requestPermission: () => Promise<boolean>;
|
|
1073
1083
|
}
|
|
1074
1084
|
|
|
1075
|
-
export declare const NiceBatchScanner: default_2.ForwardRefExoticComponent<NiceBatchScannerProps & default_2.RefAttributes<NiceBatchScannerRef
|
|
1085
|
+
export declare const NiceBatchScanner: default_2.ForwardRefExoticComponent<NiceBatchScannerProps & default_2.RefAttributes<NiceBatchScannerRef>> & {
|
|
1086
|
+
displayName: string;
|
|
1087
|
+
};
|
|
1076
1088
|
|
|
1077
1089
|
export declare interface NiceBatchScannerProps {
|
|
1078
1090
|
/** Scanner options */
|
|
@@ -1099,6 +1111,12 @@ export declare interface NiceBatchScannerProps {
|
|
|
1099
1111
|
children?: default_2.ReactNode;
|
|
1100
1112
|
}
|
|
1101
1113
|
|
|
1114
|
+
/**
|
|
1115
|
+
* Shares a NiceBatchScanner's items and actions with everything below the provider, not only
|
|
1116
|
+
* with the scanner's own children: `useBatchScanner()` works beside the scanner too. Without a
|
|
1117
|
+
* scanner below it, the hook sees an empty, idle batch (and the actions warn in development).
|
|
1118
|
+
* It used to render its children and nothing else, so the hook threw under it.
|
|
1119
|
+
*/
|
|
1102
1120
|
export declare const NiceBatchScannerProvider: default_2.FC<{
|
|
1103
1121
|
children: default_2.ReactNode;
|
|
1104
1122
|
}>;
|
|
@@ -1126,7 +1144,9 @@ export declare interface NiceBatchScannerRef {
|
|
|
1126
1144
|
isScanning: () => boolean;
|
|
1127
1145
|
}
|
|
1128
1146
|
|
|
1129
|
-
export declare const NiceCacheStrategies: default_2.ForwardRefExoticComponent<NiceCacheStrategiesProps & default_2.RefAttributes<NiceCacheStrategiesRef
|
|
1147
|
+
export declare const NiceCacheStrategies: default_2.ForwardRefExoticComponent<NiceCacheStrategiesProps & default_2.RefAttributes<NiceCacheStrategiesRef>> & {
|
|
1148
|
+
displayName: string;
|
|
1149
|
+
};
|
|
1130
1150
|
|
|
1131
1151
|
export declare interface NiceCacheStrategiesProps {
|
|
1132
1152
|
/** Configuration */
|
|
@@ -1147,7 +1167,9 @@ export declare interface NiceCacheStrategiesProps {
|
|
|
1147
1167
|
children?: ReactNode;
|
|
1148
1168
|
}
|
|
1149
1169
|
|
|
1150
|
-
export declare const NiceCacheStrategiesProvider: default_2.ForwardRefExoticComponent<NiceCacheStrategiesProps & default_2.RefAttributes<NiceCacheStrategiesRef
|
|
1170
|
+
export declare const NiceCacheStrategiesProvider: default_2.ForwardRefExoticComponent<NiceCacheStrategiesProps & default_2.RefAttributes<NiceCacheStrategiesRef>> & {
|
|
1171
|
+
displayName: string;
|
|
1172
|
+
};
|
|
1151
1173
|
|
|
1152
1174
|
export declare interface NiceCacheStrategiesRef {
|
|
1153
1175
|
/** Get current state */
|
|
@@ -1185,7 +1207,9 @@ export declare interface NiceCacheStrategiesRef {
|
|
|
1185
1207
|
getStrategyForUrl: (url: string) => CacheStrategy;
|
|
1186
1208
|
}
|
|
1187
1209
|
|
|
1188
|
-
export declare const NiceConflictResolution: default_2.ForwardRefExoticComponent<NiceConflictResolutionProps & default_2.RefAttributes<NiceConflictResolutionRef
|
|
1210
|
+
export declare const NiceConflictResolution: default_2.ForwardRefExoticComponent<NiceConflictResolutionProps & default_2.RefAttributes<NiceConflictResolutionRef>> & {
|
|
1211
|
+
displayName: string;
|
|
1212
|
+
};
|
|
1189
1213
|
|
|
1190
1214
|
export declare interface NiceConflictResolutionProps {
|
|
1191
1215
|
/** Configuration */
|
|
@@ -1220,7 +1244,9 @@ export declare interface NiceConflictResolutionProps {
|
|
|
1220
1244
|
children?: ReactNode;
|
|
1221
1245
|
}
|
|
1222
1246
|
|
|
1223
|
-
export declare const NiceConflictResolutionProvider: default_2.ForwardRefExoticComponent<NiceConflictResolutionProps & default_2.RefAttributes<NiceConflictResolutionRef
|
|
1247
|
+
export declare const NiceConflictResolutionProvider: default_2.ForwardRefExoticComponent<NiceConflictResolutionProps & default_2.RefAttributes<NiceConflictResolutionRef>> & {
|
|
1248
|
+
displayName: string;
|
|
1249
|
+
};
|
|
1224
1250
|
|
|
1225
1251
|
export declare interface NiceConflictResolutionRef {
|
|
1226
1252
|
/** Get current state */
|
|
@@ -1251,7 +1277,9 @@ export declare interface NiceConflictResolutionRef {
|
|
|
1251
1277
|
closeUI: () => void;
|
|
1252
1278
|
}
|
|
1253
1279
|
|
|
1254
|
-
export declare const NiceExternalDisplay: default_2.ForwardRefExoticComponent<NiceExternalDisplayProps & default_2.RefAttributes<NiceExternalDisplayRef
|
|
1280
|
+
export declare const NiceExternalDisplay: default_2.ForwardRefExoticComponent<NiceExternalDisplayProps & default_2.RefAttributes<NiceExternalDisplayRef>> & {
|
|
1281
|
+
displayName: string;
|
|
1282
|
+
};
|
|
1255
1283
|
|
|
1256
1284
|
export declare interface NiceExternalDisplayProps {
|
|
1257
1285
|
/** Configuration */
|
|
@@ -1268,7 +1296,9 @@ export declare interface NiceExternalDisplayProps {
|
|
|
1268
1296
|
children?: ReactNode;
|
|
1269
1297
|
}
|
|
1270
1298
|
|
|
1271
|
-
export declare const NiceExternalDisplayProvider: default_2.ForwardRefExoticComponent<NiceExternalDisplayProps & default_2.RefAttributes<NiceExternalDisplayRef
|
|
1299
|
+
export declare const NiceExternalDisplayProvider: default_2.ForwardRefExoticComponent<NiceExternalDisplayProps & default_2.RefAttributes<NiceExternalDisplayRef>> & {
|
|
1300
|
+
displayName: string;
|
|
1301
|
+
};
|
|
1272
1302
|
|
|
1273
1303
|
export declare interface NiceExternalDisplayRef {
|
|
1274
1304
|
/** Get current state */
|
|
@@ -1293,7 +1323,9 @@ export declare interface NiceExternalDisplayRef {
|
|
|
1293
1323
|
broadcast: (message: unknown) => void;
|
|
1294
1324
|
}
|
|
1295
1325
|
|
|
1296
|
-
export declare const NiceHardwareBarcodeGenerator: default_2.ForwardRefExoticComponent<NiceHardwareBarcodeGeneratorProps & default_2.RefAttributes<NiceHardwareBarcodeGeneratorRef
|
|
1326
|
+
export declare const NiceHardwareBarcodeGenerator: default_2.ForwardRefExoticComponent<NiceHardwareBarcodeGeneratorProps & default_2.RefAttributes<NiceHardwareBarcodeGeneratorRef>> & {
|
|
1327
|
+
displayName: string;
|
|
1328
|
+
};
|
|
1297
1329
|
|
|
1298
1330
|
export declare interface NiceHardwareBarcodeGeneratorProps {
|
|
1299
1331
|
/** Value to encode */
|
|
@@ -1323,7 +1355,9 @@ export declare interface NiceHardwareBarcodeGeneratorRef {
|
|
|
1323
1355
|
regenerate: () => void;
|
|
1324
1356
|
}
|
|
1325
1357
|
|
|
1326
|
-
export declare const NiceHardwareQRGenerator: default_2.ForwardRefExoticComponent<NiceHardwareQRGeneratorProps & default_2.RefAttributes<NiceHardwareQRGeneratorRef
|
|
1358
|
+
export declare const NiceHardwareQRGenerator: default_2.ForwardRefExoticComponent<NiceHardwareQRGeneratorProps & default_2.RefAttributes<NiceHardwareQRGeneratorRef>> & {
|
|
1359
|
+
displayName: string;
|
|
1360
|
+
};
|
|
1327
1361
|
|
|
1328
1362
|
export declare interface NiceHardwareQRGeneratorProps {
|
|
1329
1363
|
/** Data to encode */
|
|
@@ -1351,7 +1385,9 @@ export declare interface NiceHardwareQRGeneratorRef {
|
|
|
1351
1385
|
regenerate: () => void;
|
|
1352
1386
|
}
|
|
1353
1387
|
|
|
1354
|
-
export declare const NiceIndexedDB: default_2.ForwardRefExoticComponent<NiceIndexedDBProps & default_2.RefAttributes<NiceIndexedDBRef
|
|
1388
|
+
export declare const NiceIndexedDB: default_2.ForwardRefExoticComponent<NiceIndexedDBProps & default_2.RefAttributes<NiceIndexedDBRef>> & {
|
|
1389
|
+
displayName: string;
|
|
1390
|
+
};
|
|
1355
1391
|
|
|
1356
1392
|
export declare interface NiceIndexedDBProps {
|
|
1357
1393
|
/** Database configuration */
|
|
@@ -1368,7 +1404,9 @@ export declare interface NiceIndexedDBProps {
|
|
|
1368
1404
|
children?: ReactNode;
|
|
1369
1405
|
}
|
|
1370
1406
|
|
|
1371
|
-
export declare const NiceIndexedDBProvider: default_2.ForwardRefExoticComponent<NiceIndexedDBProps & default_2.RefAttributes<NiceIndexedDBRef
|
|
1407
|
+
export declare const NiceIndexedDBProvider: default_2.ForwardRefExoticComponent<NiceIndexedDBProps & default_2.RefAttributes<NiceIndexedDBRef>> & {
|
|
1408
|
+
displayName: string;
|
|
1409
|
+
};
|
|
1372
1410
|
|
|
1373
1411
|
export declare interface NiceIndexedDBRef {
|
|
1374
1412
|
/** Get current state */
|
|
@@ -1418,7 +1456,9 @@ export declare interface NiceIndexedDBRef {
|
|
|
1418
1456
|
}>;
|
|
1419
1457
|
}
|
|
1420
1458
|
|
|
1421
|
-
export declare const NiceKioskMode: default_2.ForwardRefExoticComponent<NiceKioskModeProps & default_2.RefAttributes<NiceKioskModeRef
|
|
1459
|
+
export declare const NiceKioskMode: default_2.ForwardRefExoticComponent<NiceKioskModeProps & default_2.RefAttributes<NiceKioskModeRef>> & {
|
|
1460
|
+
displayName: string;
|
|
1461
|
+
};
|
|
1422
1462
|
|
|
1423
1463
|
export declare interface NiceKioskModeProps {
|
|
1424
1464
|
/** Configuration */
|
|
@@ -1443,7 +1483,9 @@ export declare interface NiceKioskModeProps {
|
|
|
1443
1483
|
onExitRequest?: (method: ExitMethod) => boolean | Promise<boolean>;
|
|
1444
1484
|
}
|
|
1445
1485
|
|
|
1446
|
-
export declare const NiceKioskModeProvider: default_2.ForwardRefExoticComponent<NiceKioskModeProps & default_2.RefAttributes<NiceKioskModeRef
|
|
1486
|
+
export declare const NiceKioskModeProvider: default_2.ForwardRefExoticComponent<NiceKioskModeProps & default_2.RefAttributes<NiceKioskModeRef>> & {
|
|
1487
|
+
displayName: string;
|
|
1488
|
+
};
|
|
1447
1489
|
|
|
1448
1490
|
export declare interface NiceKioskModeRef {
|
|
1449
1491
|
/** Get current state */
|
|
@@ -1474,7 +1516,9 @@ export declare interface NiceKioskModeRef {
|
|
|
1474
1516
|
closePinDialog: () => void;
|
|
1475
1517
|
}
|
|
1476
1518
|
|
|
1477
|
-
export declare const NiceLowPowerMode: default_2.ForwardRefExoticComponent<NiceLowPowerModeProps & default_2.RefAttributes<NiceLowPowerModeRef
|
|
1519
|
+
export declare const NiceLowPowerMode: default_2.ForwardRefExoticComponent<NiceLowPowerModeProps & default_2.RefAttributes<NiceLowPowerModeRef>> & {
|
|
1520
|
+
displayName: string;
|
|
1521
|
+
};
|
|
1478
1522
|
|
|
1479
1523
|
export declare interface NiceLowPowerModeProps {
|
|
1480
1524
|
/** Configuration */
|
|
@@ -1493,7 +1537,9 @@ export declare interface NiceLowPowerModeProps {
|
|
|
1493
1537
|
children?: ReactNode;
|
|
1494
1538
|
}
|
|
1495
1539
|
|
|
1496
|
-
export declare const NiceLowPowerModeProvider: default_2.ForwardRefExoticComponent<NiceLowPowerModeProps & default_2.RefAttributes<NiceLowPowerModeRef
|
|
1540
|
+
export declare const NiceLowPowerModeProvider: default_2.ForwardRefExoticComponent<NiceLowPowerModeProps & default_2.RefAttributes<NiceLowPowerModeRef>> & {
|
|
1541
|
+
displayName: string;
|
|
1542
|
+
};
|
|
1497
1543
|
|
|
1498
1544
|
export declare interface NiceLowPowerModeRef {
|
|
1499
1545
|
/** Get current state */
|
|
@@ -1517,7 +1563,9 @@ export declare interface NiceLowPowerModeRef {
|
|
|
1517
1563
|
}>;
|
|
1518
1564
|
}
|
|
1519
1565
|
|
|
1520
|
-
export declare const NiceOfflineForms: default_2.ForwardRefExoticComponent<NiceOfflineFormsProps & default_2.RefAttributes<NiceOfflineFormsRef
|
|
1566
|
+
export declare const NiceOfflineForms: default_2.ForwardRefExoticComponent<NiceOfflineFormsProps & default_2.RefAttributes<NiceOfflineFormsRef>> & {
|
|
1567
|
+
displayName: string;
|
|
1568
|
+
};
|
|
1521
1569
|
|
|
1522
1570
|
export declare interface NiceOfflineFormsProps {
|
|
1523
1571
|
/** Configuration */
|
|
@@ -1539,7 +1587,9 @@ export declare interface NiceOfflineFormsProps {
|
|
|
1539
1587
|
children?: ReactNode;
|
|
1540
1588
|
}
|
|
1541
1589
|
|
|
1542
|
-
export declare const NiceOfflineFormsProvider: default_2.ForwardRefExoticComponent<NiceOfflineFormsProps & default_2.RefAttributes<NiceOfflineFormsRef
|
|
1590
|
+
export declare const NiceOfflineFormsProvider: default_2.ForwardRefExoticComponent<NiceOfflineFormsProps & default_2.RefAttributes<NiceOfflineFormsRef>> & {
|
|
1591
|
+
displayName: string;
|
|
1592
|
+
};
|
|
1543
1593
|
|
|
1544
1594
|
export declare interface NiceOfflineFormsRef {
|
|
1545
1595
|
/** Get current state */
|
|
@@ -1573,7 +1623,9 @@ export declare interface NiceOfflineFormsRef {
|
|
|
1573
1623
|
registerHandler: <T = Record<string, unknown>>(formId: string, handler: FormSubmitHandler<T>) => void;
|
|
1574
1624
|
}
|
|
1575
1625
|
|
|
1576
|
-
export declare const NiceOfflineIndicator: default_2.ForwardRefExoticComponent<NiceOfflineIndicatorProps & default_2.RefAttributes<NiceOfflineIndicatorRef
|
|
1626
|
+
export declare const NiceOfflineIndicator: default_2.ForwardRefExoticComponent<NiceOfflineIndicatorProps & default_2.RefAttributes<NiceOfflineIndicatorRef>> & {
|
|
1627
|
+
displayName: string;
|
|
1628
|
+
};
|
|
1577
1629
|
|
|
1578
1630
|
export declare interface NiceOfflineIndicatorProps {
|
|
1579
1631
|
/** Display mode */
|
|
@@ -1637,7 +1689,9 @@ export declare interface NiceOfflineIndicatorRef {
|
|
|
1637
1689
|
toggle: () => void;
|
|
1638
1690
|
}
|
|
1639
1691
|
|
|
1640
|
-
export declare const NiceOfflineMedia: default_2.ForwardRefExoticComponent<NiceOfflineMediaProps & default_2.RefAttributes<NiceOfflineMediaRef
|
|
1692
|
+
export declare const NiceOfflineMedia: default_2.ForwardRefExoticComponent<NiceOfflineMediaProps & default_2.RefAttributes<NiceOfflineMediaRef>> & {
|
|
1693
|
+
displayName: string;
|
|
1694
|
+
};
|
|
1641
1695
|
|
|
1642
1696
|
export declare interface NiceOfflineMediaProps {
|
|
1643
1697
|
/** Configuration */
|
|
@@ -1656,7 +1710,9 @@ export declare interface NiceOfflineMediaProps {
|
|
|
1656
1710
|
children?: ReactNode;
|
|
1657
1711
|
}
|
|
1658
1712
|
|
|
1659
|
-
export declare const NiceOfflineMediaProvider: default_2.ForwardRefExoticComponent<NiceOfflineMediaProps & default_2.RefAttributes<NiceOfflineMediaRef
|
|
1713
|
+
export declare const NiceOfflineMediaProvider: default_2.ForwardRefExoticComponent<NiceOfflineMediaProps & default_2.RefAttributes<NiceOfflineMediaRef>> & {
|
|
1714
|
+
displayName: string;
|
|
1715
|
+
};
|
|
1660
1716
|
|
|
1661
1717
|
export declare interface NiceOfflineMediaRef {
|
|
1662
1718
|
/** Get current state */
|
|
@@ -1709,7 +1765,9 @@ export declare interface NiceOfflineMediaRef {
|
|
|
1709
1765
|
preload: (urls: string[]) => Promise<void>;
|
|
1710
1766
|
}
|
|
1711
1767
|
|
|
1712
|
-
export declare const NiceOrientationLock: default_2.ForwardRefExoticComponent<NiceOrientationLockProps & default_2.RefAttributes<NiceOrientationLockRef
|
|
1768
|
+
export declare const NiceOrientationLock: default_2.ForwardRefExoticComponent<NiceOrientationLockProps & default_2.RefAttributes<NiceOrientationLockRef>> & {
|
|
1769
|
+
displayName: string;
|
|
1770
|
+
};
|
|
1713
1771
|
|
|
1714
1772
|
export declare interface NiceOrientationLockProps {
|
|
1715
1773
|
/** Configuration */
|
|
@@ -1728,7 +1786,9 @@ export declare interface NiceOrientationLockProps {
|
|
|
1728
1786
|
className?: string;
|
|
1729
1787
|
}
|
|
1730
1788
|
|
|
1731
|
-
export declare const NiceOrientationLockProvider: default_2.ForwardRefExoticComponent<NiceOrientationLockProps & default_2.RefAttributes<NiceOrientationLockRef
|
|
1789
|
+
export declare const NiceOrientationLockProvider: default_2.ForwardRefExoticComponent<NiceOrientationLockProps & default_2.RefAttributes<NiceOrientationLockRef>> & {
|
|
1790
|
+
displayName: string;
|
|
1791
|
+
};
|
|
1732
1792
|
|
|
1733
1793
|
export declare interface NiceOrientationLockRef {
|
|
1734
1794
|
/** Get current state */
|
|
@@ -1745,7 +1805,9 @@ export declare interface NiceOrientationLockRef {
|
|
|
1745
1805
|
isOrientationSupported: (orientation: OrientationType_2) => boolean;
|
|
1746
1806
|
}
|
|
1747
1807
|
|
|
1748
|
-
export declare const NiceQRScanner: default_2.ForwardRefExoticComponent<NiceQRScannerProps & default_2.RefAttributes<NiceQRScannerRef
|
|
1808
|
+
export declare const NiceQRScanner: default_2.ForwardRefExoticComponent<NiceQRScannerProps & default_2.RefAttributes<NiceQRScannerRef>> & {
|
|
1809
|
+
displayName: string;
|
|
1810
|
+
};
|
|
1749
1811
|
|
|
1750
1812
|
export declare interface NiceQRScannerProps {
|
|
1751
1813
|
/** Configuration */
|
|
@@ -1785,7 +1847,9 @@ export declare interface NiceQRScannerRef {
|
|
|
1785
1847
|
scanImage: (file: File) => Promise<QRScanResult | null>;
|
|
1786
1848
|
}
|
|
1787
1849
|
|
|
1788
|
-
export declare const NiceRemoteManagement: default_2.ForwardRefExoticComponent<NiceRemoteManagementProps & default_2.RefAttributes<NiceRemoteManagementRef
|
|
1850
|
+
export declare const NiceRemoteManagement: default_2.ForwardRefExoticComponent<NiceRemoteManagementProps & default_2.RefAttributes<NiceRemoteManagementRef>> & {
|
|
1851
|
+
displayName: string;
|
|
1852
|
+
};
|
|
1789
1853
|
|
|
1790
1854
|
export declare interface NiceRemoteManagementProps {
|
|
1791
1855
|
/** Configuration */
|
|
@@ -1796,11 +1860,21 @@ export declare interface NiceRemoteManagementProps {
|
|
|
1796
1860
|
onCommandReceived?: (command: RemoteCommand) => void;
|
|
1797
1861
|
/** On custom command */
|
|
1798
1862
|
onCustomCommand?: (command: RemoteCommand) => Promise<unknown>;
|
|
1863
|
+
/**
|
|
1864
|
+
* Takes the screenshot for the server's `screenshot` command and for `captureScreenshot()`:
|
|
1865
|
+
* return the image, e.g. as a data URL. A page cannot capture itself without asking the user,
|
|
1866
|
+
* so the capture comes from the host — html2canvas / html-to-image, or the kiosk shell
|
|
1867
|
+
* (Electron's `webContents.capturePage()` and the like). Without it the command reports an
|
|
1868
|
+
* error to the server.
|
|
1869
|
+
*/
|
|
1870
|
+
onCaptureScreenshot?: () => Promise<string | undefined>;
|
|
1799
1871
|
/** Children */
|
|
1800
1872
|
children?: ReactNode;
|
|
1801
1873
|
}
|
|
1802
1874
|
|
|
1803
|
-
export declare const NiceRemoteManagementProvider: default_2.ForwardRefExoticComponent<NiceRemoteManagementProps & default_2.RefAttributes<NiceRemoteManagementRef
|
|
1875
|
+
export declare const NiceRemoteManagementProvider: default_2.ForwardRefExoticComponent<NiceRemoteManagementProps & default_2.RefAttributes<NiceRemoteManagementRef>> & {
|
|
1876
|
+
displayName: string;
|
|
1877
|
+
};
|
|
1804
1878
|
|
|
1805
1879
|
export declare interface NiceRemoteManagementRef {
|
|
1806
1880
|
/** Get current state */
|
|
@@ -1817,13 +1891,18 @@ export declare interface NiceRemoteManagementRef {
|
|
|
1817
1891
|
reportCommandResult: (commandId: string, result: unknown, error?: string) => Promise<void>;
|
|
1818
1892
|
/** Send log */
|
|
1819
1893
|
sendLog: (level: string, message: string, data?: unknown) => void;
|
|
1820
|
-
/**
|
|
1894
|
+
/**
|
|
1895
|
+
* Capture a screenshot through `onCaptureScreenshot`; `undefined` when screenshots are off,
|
|
1896
|
+
* there is no handler or it failed.
|
|
1897
|
+
*/
|
|
1821
1898
|
captureScreenshot: () => Promise<string | undefined>;
|
|
1822
1899
|
/** Get device info */
|
|
1823
1900
|
getDeviceInfo: () => DeviceInfo;
|
|
1824
1901
|
}
|
|
1825
1902
|
|
|
1826
|
-
export declare const NiceScreenBurnPrevention: default_2.ForwardRefExoticComponent<NiceScreenBurnPreventionProps & default_2.RefAttributes<NiceScreenBurnPreventionRef
|
|
1903
|
+
export declare const NiceScreenBurnPrevention: default_2.ForwardRefExoticComponent<NiceScreenBurnPreventionProps & default_2.RefAttributes<NiceScreenBurnPreventionRef>> & {
|
|
1904
|
+
displayName: string;
|
|
1905
|
+
};
|
|
1827
1906
|
|
|
1828
1907
|
export declare interface NiceScreenBurnPreventionProps {
|
|
1829
1908
|
/** Configuration */
|
|
@@ -1874,7 +1953,9 @@ export declare interface NiceScreenSelectorProps {
|
|
|
1874
1953
|
className?: string;
|
|
1875
1954
|
}
|
|
1876
1955
|
|
|
1877
|
-
export declare const NiceServiceWorker: default_2.ForwardRefExoticComponent<NiceServiceWorkerProps & default_2.RefAttributes<NiceServiceWorkerRef
|
|
1956
|
+
export declare const NiceServiceWorker: default_2.ForwardRefExoticComponent<NiceServiceWorkerProps & default_2.RefAttributes<NiceServiceWorkerRef>> & {
|
|
1957
|
+
displayName: string;
|
|
1958
|
+
};
|
|
1878
1959
|
|
|
1879
1960
|
export declare interface NiceServiceWorkerProps {
|
|
1880
1961
|
/** Service worker configuration */
|
|
@@ -1912,10 +1993,11 @@ export declare interface NiceServiceWorkerProps {
|
|
|
1912
1993
|
className?: string;
|
|
1913
1994
|
}
|
|
1914
1995
|
|
|
1915
|
-
export declare const NiceServiceWorkerProvider: default_2.ForwardRefExoticComponent<
|
|
1996
|
+
export declare const NiceServiceWorkerProvider: default_2.ForwardRefExoticComponent<NiceServiceWorkerProps & default_2.RefAttributes<NiceServiceWorkerRef>> & {
|
|
1997
|
+
displayName: string;
|
|
1998
|
+
};
|
|
1916
1999
|
|
|
1917
|
-
export declare
|
|
1918
|
-
}
|
|
2000
|
+
export declare type NiceServiceWorkerProviderProps = NiceServiceWorkerProps;
|
|
1919
2001
|
|
|
1920
2002
|
export declare interface NiceServiceWorkerRef {
|
|
1921
2003
|
/** Get current state */
|
|
@@ -1946,7 +2028,9 @@ export declare interface NiceServiceWorkerRef {
|
|
|
1946
2028
|
forceReload: () => void;
|
|
1947
2029
|
}
|
|
1948
2030
|
|
|
1949
|
-
export declare const NiceSymbologyConfig: default_2.ForwardRefExoticComponent<NiceSymbologyConfigProps & default_2.RefAttributes<NiceSymbologyConfigRef
|
|
2031
|
+
export declare const NiceSymbologyConfig: default_2.ForwardRefExoticComponent<NiceSymbologyConfigProps & default_2.RefAttributes<NiceSymbologyConfigRef>> & {
|
|
2032
|
+
displayName: string;
|
|
2033
|
+
};
|
|
1950
2034
|
|
|
1951
2035
|
export declare interface NiceSymbologyConfigProps {
|
|
1952
2036
|
/** Selected symbologies */
|
|
@@ -1992,7 +2076,9 @@ export declare const NiceSymbologyProvider: default_2.FC<{
|
|
|
1992
2076
|
children: default_2.ReactNode;
|
|
1993
2077
|
}>;
|
|
1994
2078
|
|
|
1995
|
-
export declare const NiceTouchCalibration: default_2.ForwardRefExoticComponent<NiceTouchCalibrationProps & default_2.RefAttributes<NiceTouchCalibrationRef
|
|
2079
|
+
export declare const NiceTouchCalibration: default_2.ForwardRefExoticComponent<NiceTouchCalibrationProps & default_2.RefAttributes<NiceTouchCalibrationRef>> & {
|
|
2080
|
+
displayName: string;
|
|
2081
|
+
};
|
|
1996
2082
|
|
|
1997
2083
|
export declare interface NiceTouchCalibrationProps {
|
|
1998
2084
|
/** Configuration */
|
|
@@ -2361,7 +2447,10 @@ export declare interface RemoteManagementConfig {
|
|
|
2361
2447
|
enableHealthMonitoring?: boolean;
|
|
2362
2448
|
/** Health report interval (ms) */
|
|
2363
2449
|
healthReportInterval?: number;
|
|
2364
|
-
/**
|
|
2450
|
+
/**
|
|
2451
|
+
* Answer the server's `screenshot` command (default true). The image itself comes from
|
|
2452
|
+
* `onCaptureScreenshot`; with this off, or without that prop, the command reports an error.
|
|
2453
|
+
*/
|
|
2365
2454
|
enableScreenshot?: boolean;
|
|
2366
2455
|
/** Enable log collection */
|
|
2367
2456
|
enableLogs?: boolean;
|
|
@@ -2680,6 +2769,10 @@ export declare const useAutoStart: () => AutoStartContextValue;
|
|
|
2680
2769
|
|
|
2681
2770
|
export declare const useBackgroundSync: () => BackgroundSyncContextValue;
|
|
2682
2771
|
|
|
2772
|
+
/**
|
|
2773
|
+
* The scanned items and the scanner's actions — inside a NiceBatchScanner (its children), or
|
|
2774
|
+
* anywhere below a NiceBatchScannerProvider that has a NiceBatchScanner somewhere under it.
|
|
2775
|
+
*/
|
|
2683
2776
|
export declare const useBatchScanner: () => BatchScannerContextValue;
|
|
2684
2777
|
|
|
2685
2778
|
export declare function useCachedFetch<T = unknown>(url: string | null, options?: FetchOptions): {
|