@le-space/ui 0.3.32 → 0.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@le-space/ui",
3
- "version": "0.3.32",
3
+ "version": "0.4.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.3.32",
40
- "@le-space/core": "0.3.32",
39
+ "@le-space/browser": "0.4.0",
40
+ "@le-space/core": "0.4.0",
41
41
  "viem": "^2.38.5"
42
42
  },
43
43
  "peerDependencies": {
package/react/index.d.ts CHANGED
@@ -189,6 +189,7 @@ type DeploymentProgressListener = (event: DeploymentProgressEvent) => void;
189
189
 
190
190
  type SponsorRelayHealthTone = 'ok' | 'caution' | 'error' | 'idle';
191
191
  interface SponsorRelayProps {
192
+ libp2p?: unknown;
192
193
  debug?: boolean;
193
194
  manifestUrl?: string;
194
195
  manifestJson?: string;
@@ -223,6 +224,16 @@ interface SponsorRelayRootfsHealth {
223
224
  label: string;
224
225
  detail: string | null;
225
226
  }
227
+ interface RelayPingState {
228
+ tone: SponsorRelayHealthTone;
229
+ sent: boolean;
230
+ received: boolean;
231
+ lastPeerId: string | null;
232
+ lastLatencyMs: number | null;
233
+ lastSentAt: number | null;
234
+ lastReceivedAt: number | null;
235
+ error: string | null;
236
+ }
226
237
  interface CompactInstanceDetails {
227
238
  messageStatus: string;
228
239
  allocationSource: string | null;
@@ -292,6 +303,7 @@ interface SponsorRelayState {
292
303
  instances: CompactInstanceRecord[];
293
304
  bootstrapRegistrations: CompactBootstrapRegistrationRecord[];
294
305
  orphanBootstrapRegistrations: CompactBootstrapRegistrationRecord[];
306
+ relayPing: RelayPingState;
295
307
  lastDeploymentHash: string | null;
296
308
  deploymentProgress: DeploymentProgressEvent;
297
309
  }
@@ -302,6 +314,7 @@ declare class SponsorRelayController {
302
314
  private subscribers;
303
315
  private client;
304
316
  private refreshTimer;
317
+ private pingTimer;
305
318
  private manifestRefreshTimer;
306
319
  private stopWalletWatch;
307
320
  private props;
@@ -341,6 +354,7 @@ declare class SponsorRelayController {
341
354
  connectWallet(): Promise<void>;
342
355
  private refreshWalletDerivedState;
343
356
  refresh(): Promise<void>;
357
+ refreshRelayPing(): Promise<void>;
344
358
  deploy(): Promise<void>;
345
359
  deleteInstance(instanceHash: string): Promise<void>;
346
360
  deleteBootstrapRegistration(registrationHash: string): Promise<void>;