@le-space/ui 0.6.22 → 0.6.23
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.js +2 -2
- package/shared/index.d.ts +7 -2
- package/shared/index.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.23",
|
|
4
4
|
"description": "Floating Aleph sponsor relay UI components for Svelte and React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"url": "https://github.com/NiKrause/relay-button/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@le-space/browser": "0.6.
|
|
48
|
-
"@le-space/core": "0.6.
|
|
47
|
+
"@le-space/browser": "0.6.23",
|
|
48
|
+
"@le-space/core": "0.6.23",
|
|
49
49
|
"viem": "^2.53.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
package/react/index.js
CHANGED
|
@@ -43,7 +43,7 @@ var RECENT_INSTANCE_RUNTIME_GRACE_MS = 10 * 60 * 1e3;
|
|
|
43
43
|
var DEPLOYMENT_PENDING_WARNING_MS = 3 * 60 * 1e3;
|
|
44
44
|
|
|
45
45
|
// src/shared/package-version.ts
|
|
46
|
-
var UI_PACKAGE_VERSION = "0.6.
|
|
46
|
+
var UI_PACKAGE_VERSION = "0.6.23";
|
|
47
47
|
|
|
48
48
|
// src/shared/format.ts
|
|
49
49
|
function shortHash(value, head = 8, tail = 6) {
|
|
@@ -3857,7 +3857,7 @@ function rootfsHealth(args) {
|
|
|
3857
3857
|
return {
|
|
3858
3858
|
tone: "ok",
|
|
3859
3859
|
label: "deployable",
|
|
3860
|
-
detail: args.resolution.gatewayUrl
|
|
3860
|
+
detail: args.resolution.gatewayUrl ?? "Rootfs verified on Aleph."
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
3863
|
if (args.resolution.messageStatus === "pending" && args.resolution.gatewayStatus === "reachable") {
|
package/shared/index.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ declare const STALE_INSTANCE_ALLOCATION_COOLDOWN_MS: number;
|
|
|
331
331
|
declare const RECENT_INSTANCE_RUNTIME_GRACE_MS: number;
|
|
332
332
|
declare const DEPLOYMENT_PENDING_WARNING_MS: number;
|
|
333
333
|
|
|
334
|
-
declare const UI_PACKAGE_VERSION = "0.6.
|
|
334
|
+
declare const UI_PACKAGE_VERSION = "0.6.23";
|
|
335
335
|
|
|
336
336
|
interface RootfsRequiredPortForward {
|
|
337
337
|
port: number;
|
|
@@ -367,6 +367,11 @@ declare function connectWallet(provider?: EthereumProviderLike | null): Promise<
|
|
|
367
367
|
declare function personalSign(address: string, message: string, provider?: EthereumProviderLike | null): Promise<string>;
|
|
368
368
|
declare function watchWallet(onChange: () => void, provider?: EthereumProviderLike | null): () => void;
|
|
369
369
|
|
|
370
|
+
declare function rootfsHealth(args: {
|
|
371
|
+
manifestState: RootfsManifestState;
|
|
372
|
+
rootfsVerified: boolean;
|
|
373
|
+
resolution: SponsorRelayState["rootfsResolution"];
|
|
374
|
+
}): SponsorRelayRootfsHealth;
|
|
370
375
|
declare class SponsorRelayController {
|
|
371
376
|
private state;
|
|
372
377
|
private subscribers;
|
|
@@ -426,4 +431,4 @@ interface DeploymentProgressEmitter {
|
|
|
426
431
|
}
|
|
427
432
|
declare function createDeploymentProgressEmitter(): DeploymentProgressEmitter;
|
|
428
433
|
|
|
429
|
-
export { type CompactBootstrapRegistrationRecord, type CompactInstanceDetails, type CompactInstanceRecord, DEFAULT_INSTANCE_NAME, DEFAULT_MANIFEST_URL, DEFAULT_TIER_ID, DEFAULT_UCAN_STORE_ALLOWED_CAPABILITIES, DEFAULT_UCAN_STORE_MAX_DELEGATION_EXPIRATION_SECONDS, DEFAULT_UCAN_STORE_PWA_ORIGIN, DEFAULT_UCAN_STORE_SERVICE_DID, DEFAULT_UCAN_STORE_SERVICE_ORIGIN, DEFAULT_UCAN_STORE_USER_DELEGATION_EXPIRATION_SECONDS, 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 };
|
|
434
|
+
export { type CompactBootstrapRegistrationRecord, type CompactInstanceDetails, type CompactInstanceRecord, DEFAULT_INSTANCE_NAME, DEFAULT_MANIFEST_URL, DEFAULT_TIER_ID, DEFAULT_UCAN_STORE_ALLOWED_CAPABILITIES, DEFAULT_UCAN_STORE_MAX_DELEGATION_EXPIRATION_SECONDS, DEFAULT_UCAN_STORE_PWA_ORIGIN, DEFAULT_UCAN_STORE_SERVICE_DID, DEFAULT_UCAN_STORE_SERVICE_ORIGIN, DEFAULT_UCAN_STORE_USER_DELEGATION_EXPIRATION_SECONDS, 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, rootfsHealth, shortHash, toChecksumAddress, watchWallet };
|
package/shared/index.js
CHANGED
|
@@ -42,7 +42,7 @@ var RECENT_INSTANCE_RUNTIME_GRACE_MS = 10 * 60 * 1e3;
|
|
|
42
42
|
var DEPLOYMENT_PENDING_WARNING_MS = 3 * 60 * 1e3;
|
|
43
43
|
|
|
44
44
|
// src/shared/package-version.ts
|
|
45
|
-
var UI_PACKAGE_VERSION = "0.6.
|
|
45
|
+
var UI_PACKAGE_VERSION = "0.6.23";
|
|
46
46
|
|
|
47
47
|
// src/shared/format.ts
|
|
48
48
|
function shortHash(value, head = 8, tail = 6) {
|
|
@@ -3856,7 +3856,7 @@ function rootfsHealth(args) {
|
|
|
3856
3856
|
return {
|
|
3857
3857
|
tone: "ok",
|
|
3858
3858
|
label: "deployable",
|
|
3859
|
-
detail: args.resolution.gatewayUrl
|
|
3859
|
+
detail: args.resolution.gatewayUrl ?? "Rootfs verified on Aleph."
|
|
3860
3860
|
};
|
|
3861
3861
|
}
|
|
3862
3862
|
if (args.resolution.messageStatus === "pending" && args.resolution.gatewayStatus === "reachable") {
|
|
@@ -6060,6 +6060,7 @@ export {
|
|
|
6060
6060
|
joinRequiredPortForwards,
|
|
6061
6061
|
personalSign,
|
|
6062
6062
|
resolveManifestSource,
|
|
6063
|
+
rootfsHealth,
|
|
6063
6064
|
shortHash,
|
|
6064
6065
|
toChecksumAddress,
|
|
6065
6066
|
watchWallet
|