@le-space/ui 0.6.0 → 0.6.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/package.json +3 -3
- package/react/index.d.ts +14 -0
- package/react/index.js +699 -52
- package/shared/index.d.ts +16 -2
- package/shared/index.js +509 -37
- package/svelte/SponsorRelayFab.svelte +83 -12
package/shared/index.d.ts
CHANGED
|
@@ -186,12 +186,24 @@ interface DeploymentProgressEvent {
|
|
|
186
186
|
type DeploymentProgressListener = (event: DeploymentProgressEvent) => void;
|
|
187
187
|
|
|
188
188
|
type SponsorRelayHealthTone = 'ok' | 'caution' | 'error' | 'idle';
|
|
189
|
+
interface SponsorRelayUcanStoreBootstrapInput {
|
|
190
|
+
adminDid: string;
|
|
191
|
+
serviceDid: string;
|
|
192
|
+
spaceDid: string;
|
|
193
|
+
rootDelegationProof: string;
|
|
194
|
+
allowedCapabilities: string;
|
|
195
|
+
defaultUserDelegationExpiration: string;
|
|
196
|
+
maxUserDelegationExpiration: string;
|
|
197
|
+
pwaOrigin: string;
|
|
198
|
+
serviceOrigin: string;
|
|
199
|
+
}
|
|
189
200
|
interface SponsorRelayProps {
|
|
190
201
|
debug?: boolean;
|
|
191
202
|
manifestUrl?: string;
|
|
192
203
|
manifestJson?: string;
|
|
193
204
|
sshPublicKey?: string;
|
|
194
205
|
instanceName?: string;
|
|
206
|
+
ucanStoreBootstrap?: Partial<SponsorRelayUcanStoreBootstrapInput>;
|
|
195
207
|
showInstances?: boolean;
|
|
196
208
|
openByDefault?: boolean;
|
|
197
209
|
launcherMode?: 'floating' | 'inline';
|
|
@@ -267,6 +279,7 @@ interface SponsorRelayState {
|
|
|
267
279
|
manifestJson: string;
|
|
268
280
|
sshPublicKey: string;
|
|
269
281
|
instanceName: string;
|
|
282
|
+
ucanStoreBootstrap: SponsorRelayUcanStoreBootstrapInput;
|
|
270
283
|
tierId: string;
|
|
271
284
|
showAdvanced: boolean;
|
|
272
285
|
showInstances: boolean;
|
|
@@ -311,7 +324,7 @@ declare const STALE_INSTANCE_ALLOCATION_COOLDOWN_MS: number;
|
|
|
311
324
|
declare const RECENT_INSTANCE_RUNTIME_GRACE_MS: number;
|
|
312
325
|
declare const DEPLOYMENT_PENDING_WARNING_MS: number;
|
|
313
326
|
|
|
314
|
-
declare const UI_PACKAGE_VERSION = "0.6.
|
|
327
|
+
declare const UI_PACKAGE_VERSION = "0.6.2";
|
|
315
328
|
|
|
316
329
|
interface RootfsRequiredPortForward {
|
|
317
330
|
port: number;
|
|
@@ -386,6 +399,7 @@ declare class SponsorRelayController {
|
|
|
386
399
|
setShowPasteManifest(showPasteManifest: boolean): void;
|
|
387
400
|
setSshPublicKey(sshPublicKey: string): void;
|
|
388
401
|
setInstanceName(instanceName: string): void;
|
|
402
|
+
setUcanStoreBootstrapField(field: keyof SponsorRelayUcanStoreBootstrapInput, value: string): void;
|
|
389
403
|
setTierId(tierId: string): void;
|
|
390
404
|
private recomputePricingSummary;
|
|
391
405
|
private queueManifestRefresh;
|
|
@@ -405,4 +419,4 @@ interface DeploymentProgressEmitter {
|
|
|
405
419
|
}
|
|
406
420
|
declare function createDeploymentProgressEmitter(): DeploymentProgressEmitter;
|
|
407
421
|
|
|
408
|
-
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 };
|
|
422
|
+
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 SponsorRelayUcanStoreBootstrapInput, type SponsorRelayWalletState, UI_PACKAGE_VERSION, buildSshCommand, connectWallet, createDeploymentProgressEmitter, createSponsorRelayController, formatDateTime, formatNumber, formatTierSpecLabel, getEthereumProvider, joinMappedPorts, joinRequiredPortForwards, personalSign, resolveManifestSource, shortHash, toChecksumAddress, watchWallet };
|