@le-space/ui 0.1.61 → 0.2.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/package.json +3 -3
- package/react/index.d.ts +8 -0
- package/react/index.js +974 -28
- package/shared/index.d.ts +21 -5
- package/shared/index.js +960 -26
- package/svelte/SponsorRelayFab.svelte +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Floating Aleph sponsor relay UI components for Svelte and React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@le-space/browser": "0.
|
|
40
|
-
"@le-space/core": "0.
|
|
39
|
+
"@le-space/browser": "0.2.0",
|
|
40
|
+
"@le-space/core": "0.2.0",
|
|
41
41
|
"viem": "^2.38.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
package/react/index.d.ts
CHANGED
|
@@ -190,6 +190,7 @@ type DeploymentProgressListener = (event: DeploymentProgressEvent) => void;
|
|
|
190
190
|
type SponsorRelayHealthTone = 'ok' | 'caution' | 'error' | 'idle';
|
|
191
191
|
interface SponsorRelayProps {
|
|
192
192
|
libp2p?: unknown;
|
|
193
|
+
debug?: boolean;
|
|
193
194
|
manifestUrl?: string;
|
|
194
195
|
manifestJson?: string;
|
|
195
196
|
sshPublicKey?: string;
|
|
@@ -297,16 +298,23 @@ declare class SponsorRelayController {
|
|
|
297
298
|
private props;
|
|
298
299
|
private progressEmitter;
|
|
299
300
|
private runtimeCooldownByHash;
|
|
301
|
+
private runtimeDetailsByHash;
|
|
302
|
+
private debugEnabled;
|
|
303
|
+
private lastRuntimeReadyHash;
|
|
300
304
|
constructor(props?: SponsorRelayProps);
|
|
301
305
|
subscribeToDeploymentProgress(listener: DeploymentProgressListener): () => void;
|
|
302
306
|
subscribe(subscriber: SponsorRelaySubscriber): () => void;
|
|
303
307
|
getState(): SponsorRelayState;
|
|
308
|
+
updateProps(props: Partial<SponsorRelayProps>): void;
|
|
304
309
|
private emit;
|
|
310
|
+
private trace;
|
|
305
311
|
private patch;
|
|
306
312
|
private emitProgress;
|
|
307
313
|
private syncLatestDeploymentProgress;
|
|
308
314
|
private canSkipRuntimeRefresh;
|
|
309
315
|
private noteRuntimeRefreshResult;
|
|
316
|
+
private rememberRuntimeDetails;
|
|
317
|
+
private mergeRememberedRuntimeDetails;
|
|
310
318
|
init(): Promise<void>;
|
|
311
319
|
destroy(): void;
|
|
312
320
|
setOpen(open: boolean): void;
|