@le-space/ui 0.6.1 → 0.6.3
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 +745 -59
- package/shared/index.d.ts +22 -2
- package/shared/index.js +561 -44
- package/svelte/SponsorRelayFab.svelte +83 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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.3",
|
|
48
|
+
"@le-space/core": "0.6.3",
|
|
49
49
|
"viem": "^2.38.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
package/react/index.d.ts
CHANGED
|
@@ -188,12 +188,24 @@ interface DeploymentProgressEvent {
|
|
|
188
188
|
type DeploymentProgressListener = (event: DeploymentProgressEvent) => void;
|
|
189
189
|
|
|
190
190
|
type SponsorRelayHealthTone = 'ok' | 'caution' | 'error' | 'idle';
|
|
191
|
+
interface SponsorRelayUcanStoreBootstrapInput {
|
|
192
|
+
adminDid: string;
|
|
193
|
+
serviceDid: string;
|
|
194
|
+
spaceDid: string;
|
|
195
|
+
rootDelegationProof: string;
|
|
196
|
+
allowedCapabilities: string;
|
|
197
|
+
defaultUserDelegationExpiration: string;
|
|
198
|
+
maxUserDelegationExpiration: string;
|
|
199
|
+
pwaOrigin: string;
|
|
200
|
+
serviceOrigin: string;
|
|
201
|
+
}
|
|
191
202
|
interface SponsorRelayProps {
|
|
192
203
|
debug?: boolean;
|
|
193
204
|
manifestUrl?: string;
|
|
194
205
|
manifestJson?: string;
|
|
195
206
|
sshPublicKey?: string;
|
|
196
207
|
instanceName?: string;
|
|
208
|
+
ucanStoreBootstrap?: Partial<SponsorRelayUcanStoreBootstrapInput>;
|
|
197
209
|
showInstances?: boolean;
|
|
198
210
|
openByDefault?: boolean;
|
|
199
211
|
launcherMode?: 'floating' | 'inline';
|
|
@@ -269,6 +281,7 @@ interface SponsorRelayState {
|
|
|
269
281
|
manifestJson: string;
|
|
270
282
|
sshPublicKey: string;
|
|
271
283
|
instanceName: string;
|
|
284
|
+
ucanStoreBootstrap: SponsorRelayUcanStoreBootstrapInput;
|
|
272
285
|
tierId: string;
|
|
273
286
|
showAdvanced: boolean;
|
|
274
287
|
showInstances: boolean;
|
|
@@ -338,6 +351,7 @@ declare class SponsorRelayController {
|
|
|
338
351
|
setShowPasteManifest(showPasteManifest: boolean): void;
|
|
339
352
|
setSshPublicKey(sshPublicKey: string): void;
|
|
340
353
|
setInstanceName(instanceName: string): void;
|
|
354
|
+
setUcanStoreBootstrapField(field: keyof SponsorRelayUcanStoreBootstrapInput, value: string): void;
|
|
341
355
|
setTierId(tierId: string): void;
|
|
342
356
|
private recomputePricingSummary;
|
|
343
357
|
private queueManifestRefresh;
|