@le-space/ui 0.3.6 → 0.3.7
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 +51 -2
- package/svelte/SponsorRelayFab.svelte +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@le-space/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
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.3.
|
|
40
|
-
"@le-space/core": "0.3.
|
|
39
|
+
"@le-space/browser": "0.3.7",
|
|
40
|
+
"@le-space/core": "0.3.7",
|
|
41
41
|
"viem": "^2.38.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
package/react/index.js
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
// src/react/SponsorRelayFab.tsx
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
+
// package.json
|
|
5
|
+
var package_default = {
|
|
6
|
+
name: "@le-space/ui",
|
|
7
|
+
version: "0.3.7",
|
|
8
|
+
description: "Floating Aleph sponsor relay UI components for Svelte and React.",
|
|
9
|
+
license: "MIT",
|
|
10
|
+
type: "module",
|
|
11
|
+
main: "./src/shared/index.ts",
|
|
12
|
+
types: "./src/shared/index.ts",
|
|
13
|
+
dependencies: {
|
|
14
|
+
"@le-space/browser": "workspace:*",
|
|
15
|
+
"@le-space/core": "workspace:*",
|
|
16
|
+
viem: "^2.38.5"
|
|
17
|
+
},
|
|
18
|
+
peerDependencies: {
|
|
19
|
+
react: ">=18",
|
|
20
|
+
"react-dom": ">=18",
|
|
21
|
+
svelte: ">=4"
|
|
22
|
+
},
|
|
23
|
+
devDependencies: {
|
|
24
|
+
"@types/react": "^18.3.27",
|
|
25
|
+
"@types/react-dom": "^18.3.7"
|
|
26
|
+
},
|
|
27
|
+
scripts: {
|
|
28
|
+
build: 'echo "ui build placeholder"',
|
|
29
|
+
"build:publish": "tsup src/shared/index.ts --format esm --dts --clean --tsconfig tsconfig.publish.json --out-dir dist/shared && tsup src/react/index.ts --format esm --dts --tsconfig tsconfig.publish.json --out-dir dist/react",
|
|
30
|
+
test: "pnpm run build:publish && node --test ./test/**/*.test.mjs",
|
|
31
|
+
lint: 'echo "ui lint placeholder"'
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
4
35
|
// src/shared/constants.ts
|
|
5
36
|
var DEFAULT_INSTANCE_NAME = "sponsor-relay";
|
|
6
37
|
var DEFAULT_MANIFEST_URL = "./rootfs-manifest.json";
|
|
@@ -4103,6 +4134,7 @@ function launcherIndicator(state) {
|
|
|
4103
4134
|
}
|
|
4104
4135
|
function SponsorRelayFab(props) {
|
|
4105
4136
|
const { controller, state } = useSponsorRelayController(props);
|
|
4137
|
+
const versionLabel = `v${package_default.version}`;
|
|
4106
4138
|
const launcherMode = props.launcherMode ?? "floating";
|
|
4107
4139
|
const indicator = launcherIndicator(state);
|
|
4108
4140
|
const [successFlash, setSuccessFlash] = React.useState(false);
|
|
@@ -4333,16 +4365,33 @@ function SponsorRelayFab(props) {
|
|
|
4333
4365
|
},
|
|
4334
4366
|
children: [
|
|
4335
4367
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
4336
|
-
/* @__PURE__ */
|
|
4368
|
+
/* @__PURE__ */ jsxs(
|
|
4337
4369
|
"div",
|
|
4338
4370
|
{
|
|
4339
4371
|
style: {
|
|
4372
|
+
display: "flex",
|
|
4373
|
+
alignItems: "center",
|
|
4374
|
+
gap: "0.45rem",
|
|
4340
4375
|
color: "#9fb2ca",
|
|
4341
4376
|
fontSize: "0.72rem",
|
|
4342
4377
|
textTransform: "uppercase",
|
|
4343
4378
|
letterSpacing: "0.08em"
|
|
4344
4379
|
},
|
|
4345
|
-
children:
|
|
4380
|
+
children: [
|
|
4381
|
+
/* @__PURE__ */ jsx("span", { children: "Aleph VM credit deployer" }),
|
|
4382
|
+
/* @__PURE__ */ jsx(
|
|
4383
|
+
"span",
|
|
4384
|
+
{
|
|
4385
|
+
style: {
|
|
4386
|
+
fontSize: "0.62rem",
|
|
4387
|
+
letterSpacing: "0.04em",
|
|
4388
|
+
textTransform: "none",
|
|
4389
|
+
color: "rgba(191, 219, 254, 0.82)"
|
|
4390
|
+
},
|
|
4391
|
+
children: versionLabel
|
|
4392
|
+
}
|
|
4393
|
+
)
|
|
4394
|
+
]
|
|
4346
4395
|
}
|
|
4347
4396
|
),
|
|
4348
4397
|
/* @__PURE__ */ jsx(
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onDestroy, onMount } from 'svelte'
|
|
3
|
+
import packageJson from '../../package.json'
|
|
3
4
|
|
|
4
5
|
import { createSponsorRelayController, formatDateTime, formatNumber, formatTierSpecLabel, joinMappedPorts, joinRequiredPortForwards, shortHash } from '../shared/index'
|
|
5
6
|
import AccordionSection from './components/AccordionSection.svelte'
|
|
@@ -37,6 +38,7 @@ export let apiHost = undefined
|
|
|
37
38
|
})
|
|
38
39
|
|
|
39
40
|
let state = controller.getState()
|
|
41
|
+
const versionLabel = `v${packageJson.version}`
|
|
40
42
|
|
|
41
43
|
onMount(async () => {
|
|
42
44
|
const unsubscribe = controller.subscribe((next) => {
|
|
@@ -62,7 +64,7 @@ export let apiHost = undefined
|
|
|
62
64
|
<aside class="panel">
|
|
63
65
|
<div class="panel-head">
|
|
64
66
|
<div>
|
|
65
|
-
<p class="eyebrow">Aleph VM credit deployer</p>
|
|
67
|
+
<p class="eyebrow">Aleph VM credit deployer <span class="eyebrow-version">{versionLabel}</span></p>
|
|
66
68
|
<h2>Sponsor Relay</h2>
|
|
67
69
|
</div>
|
|
68
70
|
<button class="refresh" type="button" on:click={() => controller.refresh()} disabled={state.busy.refreshing}>
|
|
@@ -322,6 +324,13 @@ export let apiHost = undefined
|
|
|
322
324
|
letter-spacing: 0.08em;
|
|
323
325
|
}
|
|
324
326
|
|
|
327
|
+
.eyebrow-version {
|
|
328
|
+
font-size: 0.62rem;
|
|
329
|
+
letter-spacing: 0.04em;
|
|
330
|
+
text-transform: none;
|
|
331
|
+
color: rgba(191, 219, 254, 0.82);
|
|
332
|
+
}
|
|
333
|
+
|
|
325
334
|
h2,
|
|
326
335
|
h3,
|
|
327
336
|
strong {
|