@le-space/ui 0.2.0 → 0.3.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 +6 -1
- package/react/index.js +954 -34
- package/shared/index.d.ts +9 -2
- package/shared/index.js +873 -6
- package/svelte/SponsorRelayFab.svelte +65 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
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.2
|
|
40
|
-
"@le-space/core": "0.2
|
|
39
|
+
"@le-space/browser": "0.3.2",
|
|
40
|
+
"@le-space/core": "0.3.2",
|
|
41
41
|
"viem": "^2.38.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
package/react/index.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ interface RootfsResolution {
|
|
|
174
174
|
gatewayError?: string | null;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
type DeploymentProgressStage = "idle" | "validating" | "loading-manifest" | "verifying-rootfs" | "loading-pricing" | "loading-balance" | "selecting-crn" | "building-message" | "signing-message" | "broadcasting" | "notifying-crn" | "waiting-for-aleph" | "deployment-confirmed" | "deployment-rejected" | "building-delete-message" | "signing-delete-message" | "broadcasting-delete" | "delete-completed" | "refreshing-instances" | "completed" | "error";
|
|
177
|
+
type DeploymentProgressStage = "idle" | "validating" | "loading-manifest" | "verifying-rootfs" | "loading-pricing" | "loading-balance" | "selecting-crn" | "building-message" | "signing-message" | "broadcasting" | "notifying-crn" | "waiting-for-aleph" | "deployment-confirmed" | "deployment-rejected" | "publishing-bootstrap" | "building-delete-message" | "signing-delete-message" | "broadcasting-delete" | "delete-completed" | "refreshing-instances" | "completed" | "error";
|
|
178
178
|
interface DeploymentProgressEvent {
|
|
179
179
|
stage: DeploymentProgressStage;
|
|
180
180
|
label: string;
|
|
@@ -262,6 +262,7 @@ interface SponsorRelayState {
|
|
|
262
262
|
sshPublicKey: string;
|
|
263
263
|
instanceName: string;
|
|
264
264
|
tierId: string;
|
|
265
|
+
showAdvanced: boolean;
|
|
265
266
|
showInstances: boolean;
|
|
266
267
|
showPasteManifest: boolean;
|
|
267
268
|
busy: {
|
|
@@ -294,6 +295,7 @@ declare class SponsorRelayController {
|
|
|
294
295
|
private client;
|
|
295
296
|
private refreshTimer;
|
|
296
297
|
private pingTimer;
|
|
298
|
+
private manifestRefreshTimer;
|
|
297
299
|
private stopWalletWatch;
|
|
298
300
|
private props;
|
|
299
301
|
private progressEmitter;
|
|
@@ -310,6 +312,7 @@ declare class SponsorRelayController {
|
|
|
310
312
|
private trace;
|
|
311
313
|
private patch;
|
|
312
314
|
private emitProgress;
|
|
315
|
+
private configureRelayBootstrapRegistration;
|
|
313
316
|
private syncLatestDeploymentProgress;
|
|
314
317
|
private canSkipRuntimeRefresh;
|
|
315
318
|
private noteRuntimeRefreshResult;
|
|
@@ -321,11 +324,13 @@ declare class SponsorRelayController {
|
|
|
321
324
|
toggleOpen(): void;
|
|
322
325
|
setManifestUrl(manifestUrl: string): void;
|
|
323
326
|
setManifestJson(manifestJson: string): void;
|
|
327
|
+
setShowAdvanced(showAdvanced: boolean): void;
|
|
324
328
|
setShowPasteManifest(showPasteManifest: boolean): void;
|
|
325
329
|
setSshPublicKey(sshPublicKey: string): void;
|
|
326
330
|
setInstanceName(instanceName: string): void;
|
|
327
331
|
setTierId(tierId: string): void;
|
|
328
332
|
private recomputePricingSummary;
|
|
333
|
+
private queueManifestRefresh;
|
|
329
334
|
connectWallet(): Promise<void>;
|
|
330
335
|
private refreshWalletDerivedState;
|
|
331
336
|
refresh(): Promise<void>;
|