@le-space/ui 0.4.0 → 0.4.2

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/shared/index.d.ts CHANGED
@@ -187,7 +187,6 @@ type DeploymentProgressListener = (event: DeploymentProgressEvent) => void;
187
187
 
188
188
  type SponsorRelayHealthTone = 'ok' | 'caution' | 'error' | 'idle';
189
189
  interface SponsorRelayProps {
190
- libp2p?: unknown;
191
190
  debug?: boolean;
192
191
  manifestUrl?: string;
193
192
  manifestJson?: string;
@@ -222,16 +221,6 @@ interface SponsorRelayRootfsHealth {
222
221
  label: string;
223
222
  detail: string | null;
224
223
  }
225
- interface RelayPingState {
226
- tone: SponsorRelayHealthTone;
227
- sent: boolean;
228
- received: boolean;
229
- lastPeerId: string | null;
230
- lastLatencyMs: number | null;
231
- lastSentAt: number | null;
232
- lastReceivedAt: number | null;
233
- error: string | null;
234
- }
235
224
  interface CompactInstanceDetails {
236
225
  messageStatus: string;
237
226
  allocationSource: string | null;
@@ -301,7 +290,6 @@ interface SponsorRelayState {
301
290
  instances: CompactInstanceRecord[];
302
291
  bootstrapRegistrations: CompactBootstrapRegistrationRecord[];
303
292
  orphanBootstrapRegistrations: CompactBootstrapRegistrationRecord[];
304
- relayPing: RelayPingState;
305
293
  lastDeploymentHash: string | null;
306
294
  deploymentProgress: DeploymentProgressEvent;
307
295
  }
@@ -311,10 +299,8 @@ declare const DEFAULT_INSTANCE_NAME = "sponsor-relay";
311
299
  declare const DEFAULT_MANIFEST_URL = "./rootfs-manifest.json";
312
300
  declare const DEFAULT_TIER_ID = "tier-1";
313
301
  declare const ROOTFS_MISSING_STATE: SponsorRelayRootfsHealth;
314
- declare const RELAY_PING_IDLE_STATE: RelayPingState;
315
302
  declare const IDLE_DEPLOYMENT_PROGRESS: DeploymentProgressEvent;
316
303
  declare const REFRESH_INTERVAL_MS = 30000;
317
- declare const RELAY_PING_INTERVAL_MS = 20000;
318
304
  declare const MANIFEST_SOURCE_REFRESH_DEBOUNCE_MS = 400;
319
305
  declare const INSTANCE_RUNTIME_READY_REFRESH_MS = 30000;
320
306
  declare const INSTANCE_RUNTIME_PENDING_REFRESH_MS = 45000;
@@ -323,7 +309,7 @@ declare const STALE_INSTANCE_ALLOCATION_COOLDOWN_MS: number;
323
309
  declare const RECENT_INSTANCE_RUNTIME_GRACE_MS: number;
324
310
  declare const DEPLOYMENT_PENDING_WARNING_MS: number;
325
311
 
326
- declare const UI_PACKAGE_VERSION = "0.4.0";
312
+ declare const UI_PACKAGE_VERSION = "0.4.2";
327
313
 
328
314
  interface RootfsRequiredPortForward {
329
315
  port: number;
@@ -364,7 +350,6 @@ declare class SponsorRelayController {
364
350
  private subscribers;
365
351
  private client;
366
352
  private refreshTimer;
367
- private pingTimer;
368
353
  private manifestRefreshTimer;
369
354
  private stopWalletWatch;
370
355
  private props;
@@ -404,7 +389,6 @@ declare class SponsorRelayController {
404
389
  connectWallet(): Promise<void>;
405
390
  private refreshWalletDerivedState;
406
391
  refresh(): Promise<void>;
407
- refreshRelayPing(): Promise<void>;
408
392
  deploy(): Promise<void>;
409
393
  deleteInstance(instanceHash: string): Promise<void>;
410
394
  deleteBootstrapRegistration(registrationHash: string): Promise<void>;
@@ -418,4 +402,4 @@ interface DeploymentProgressEmitter {
418
402
  }
419
403
  declare function createDeploymentProgressEmitter(): DeploymentProgressEmitter;
420
404
 
421
- export { type CompactBootstrapRegistrationRecord, type CompactInstanceDetails, type CompactInstanceRecord, DEFAULT_INSTANCE_NAME, DEFAULT_MANIFEST_URL, DEFAULT_TIER_ID, DEPLOYMENT_PENDING_WARNING_MS, type DeploymentProgressEmitter, type EthereumProviderLike, IDLE_DEPLOYMENT_PROGRESS, INSTANCE_RUNTIME_PENDING_REFRESH_MS, INSTANCE_RUNTIME_READY_REFRESH_MS, INSTANCE_RUNTIME_STALE_REFRESH_MS, MANIFEST_SOURCE_REFRESH_DEBOUNCE_MS, RECENT_INSTANCE_RUNTIME_GRACE_MS, REFRESH_INTERVAL_MS, RELAY_PING_IDLE_STATE, RELAY_PING_INTERVAL_MS, ROOTFS_MISSING_STATE, type RelayPingState, STALE_INSTANCE_ALLOCATION_COOLDOWN_MS, SponsorRelayController, type SponsorRelayHealthTone, type SponsorRelayPricingSummary, type SponsorRelayProps, type SponsorRelayRootfsHealth, type SponsorRelayState, type SponsorRelaySubscriber, type SponsorRelayWalletState, UI_PACKAGE_VERSION, buildSshCommand, connectWallet, createDeploymentProgressEmitter, createSponsorRelayController, formatDateTime, formatNumber, formatTierSpecLabel, getEthereumProvider, joinMappedPorts, joinRequiredPortForwards, personalSign, resolveManifestSource, shortHash, toChecksumAddress, watchWallet };
405
+ export { type CompactBootstrapRegistrationRecord, type CompactInstanceDetails, type CompactInstanceRecord, DEFAULT_INSTANCE_NAME, DEFAULT_MANIFEST_URL, DEFAULT_TIER_ID, DEPLOYMENT_PENDING_WARNING_MS, type DeploymentProgressEmitter, type EthereumProviderLike, IDLE_DEPLOYMENT_PROGRESS, INSTANCE_RUNTIME_PENDING_REFRESH_MS, INSTANCE_RUNTIME_READY_REFRESH_MS, INSTANCE_RUNTIME_STALE_REFRESH_MS, MANIFEST_SOURCE_REFRESH_DEBOUNCE_MS, RECENT_INSTANCE_RUNTIME_GRACE_MS, REFRESH_INTERVAL_MS, ROOTFS_MISSING_STATE, STALE_INSTANCE_ALLOCATION_COOLDOWN_MS, SponsorRelayController, type SponsorRelayHealthTone, type SponsorRelayPricingSummary, type SponsorRelayProps, type SponsorRelayRootfsHealth, type SponsorRelayState, type SponsorRelaySubscriber, type SponsorRelayWalletState, UI_PACKAGE_VERSION, buildSshCommand, connectWallet, createDeploymentProgressEmitter, createSponsorRelayController, formatDateTime, formatNumber, formatTierSpecLabel, getEthereumProvider, joinMappedPorts, joinRequiredPortForwards, personalSign, resolveManifestSource, shortHash, toChecksumAddress, watchWallet };