@namiml/web-sdk 3.5.0-dev.202611121653 → 3.5.0-dev.202611132057
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/dist/adapters/web-device.adapter.d.ts +10 -0
- package/dist/nami-web.cjs +3 -3
- package/dist/nami-web.mjs +35 -35
- package/dist/nami-web.umd.js +35 -35
- package/package.json +2 -2
|
@@ -18,5 +18,15 @@ export declare class WebDeviceAdapter implements IDeviceAdapter {
|
|
|
18
18
|
/** Background = the tab becoming hidden (`visibilitychange` → `hidden`). Inert server-side. */
|
|
19
19
|
onAppBackground(listener: () => void): () => void;
|
|
20
20
|
isAppVisible(): boolean;
|
|
21
|
+
/** `navigator.onLine`: only its `false` is trusted (NAM-4423). Undefined server-side. */
|
|
22
|
+
isOnline(): boolean | undefined;
|
|
23
|
+
/** The window `online` event. Inert server-side. */
|
|
24
|
+
onOnline(listener: () => void): () => void;
|
|
25
|
+
/**
|
|
26
|
+
* One holder per name across this origin's tabs, via Web Locks where the browser has them
|
|
27
|
+
* (`ifAvailable`: a tab that finds it taken skips rather than queues). Without Web Locks the
|
|
28
|
+
* task always runs; a rare double-send is harmless, the server being idempotent (NAM-4423).
|
|
29
|
+
*/
|
|
30
|
+
runExclusive(name: string, task: () => Promise<void>): Promise<boolean>;
|
|
21
31
|
generateUUID(): string;
|
|
22
32
|
}
|