@meddleware/walrus-storage-ui 0.1.62 → 0.1.63
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/CHANGELOG.md +7 -0
- package/package.json +7 -7
- package/src/config.ts +3 -1
- package/src/main.ts +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to `@meddleware/walrus-ui` are documented here.
|
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versioning follows
|
|
5
5
|
[Semantic Versioning](https://semver.org/). Before 0.2.0, breaking changes ship as patch releases.
|
|
6
6
|
|
|
7
|
+
## [0.1.63] - 2026-10-24
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Machine-zone endpoints (the indexer and the Walrus relays) can be overridden at deploy time by a same-origin `/runtime-config.json` (`@meddleware/ui` 0.1.34 `loadRuntimeConfig`), so the image is built once and moved between Cloudflare zones by configuration (workspace ADR-0005). Without the file the build-time values apply, as before.
|
|
12
|
+
- Ships its own `robots.txt` (Content Signals `search=yes, ai-input=yes`) and `llms.txt` instead of static-server's defaults.
|
|
13
|
+
|
|
7
14
|
## [0.1.62] - 2026-10-24
|
|
8
15
|
|
|
9
16
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meddleware/walrus-storage-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"homepage": "https://docs.meddleware.co.uk/blockchain/sui/walrus-storage/",
|
|
5
5
|
"description": "Standalone Vue 3 SPA for uploading blobs to Walrus decentralised storage and managing owned blobs — wallet-connected, NFT-gated relay support.",
|
|
6
6
|
"author": "Meddleware <dev@meddleware.co.uk>",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@meddleware/design-tokens": "^0.1.10",
|
|
51
|
-
"@meddleware/ui": "^0.1.
|
|
52
|
-
"@meddleware/walrus-storage-client": "^0.0.
|
|
53
|
-
"@meddleware/walrus-storage-kit": "^0.1.
|
|
51
|
+
"@meddleware/ui": "^0.1.34",
|
|
52
|
+
"@meddleware/walrus-storage-client": "^0.0.32",
|
|
53
|
+
"@meddleware/walrus-storage-kit": "^0.1.35",
|
|
54
54
|
"@mysten/sui": "^2.33.2",
|
|
55
55
|
"@mysten/walrus": "~1.2.32",
|
|
56
56
|
"@mysten/walrus-wasm": "~0.3.1",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@meddleware/wallet-adapter": ">=0.0.12 <0.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@meddleware/access-gate-client": "^0.0.
|
|
64
|
-
"@meddleware/eslint-config": "^0.0.
|
|
65
|
-
"@meddleware/wallet-adapter": "^0.0.
|
|
63
|
+
"@meddleware/access-gate-client": "^0.0.12",
|
|
64
|
+
"@meddleware/eslint-config": "^0.0.4",
|
|
65
|
+
"@meddleware/wallet-adapter": "^0.0.18",
|
|
66
66
|
"@playwright/test": "~1.64.1",
|
|
67
67
|
"@types/node": "~26.6.5",
|
|
68
68
|
"@vitejs/plugin-vue": "^6.0.8",
|
package/src/config.ts
CHANGED
|
@@ -8,12 +8,14 @@ import { computed } from 'vue'
|
|
|
8
8
|
import type { WalrusNetwork, RelayGateConfig } from '@meddleware/walrus-storage-kit'
|
|
9
9
|
import { relayGateConfig } from '@meddleware/walrus-storage-kit'
|
|
10
10
|
import { useNetwork } from '@meddleware/wallet-adapter'
|
|
11
|
+
import { withRuntimeEnv } from '@meddleware/ui'
|
|
11
12
|
|
|
12
13
|
/** Build-time env bag. Injectable on the env-reading helpers below purely so unit tests can exercise
|
|
13
14
|
* each branch without depending on Vite's (frozen) `import.meta.env` inlining. */
|
|
14
15
|
export type EnvSource = Record<string, string | undefined>
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
// Build-time values, with the runtime endpoint overrides (/runtime-config.json, ADR-0005) on top.
|
|
18
|
+
const env: EnvSource = withRuntimeEnv((import.meta as unknown as { env?: EnvSource }).env ?? {})
|
|
17
19
|
|
|
18
20
|
/** The active network (read-only ref). */
|
|
19
21
|
export const network = useNetwork().network
|
package/src/main.ts
CHANGED
|
@@ -2,9 +2,8 @@ import '@meddleware/design-tokens/tokens.css'
|
|
|
2
2
|
import '@meddleware/design-tokens/seasons.css'
|
|
3
3
|
import '@meddleware/ui/base.css'
|
|
4
4
|
import { createApp } from 'vue'
|
|
5
|
-
import { useSeason } from '@meddleware/ui'
|
|
5
|
+
import { loadRuntimeConfig, useSeason } from '@meddleware/ui'
|
|
6
6
|
import { useNetwork } from '@meddleware/wallet-adapter'
|
|
7
|
-
import App from './App.vue'
|
|
8
7
|
|
|
9
8
|
// The standalone build targets one network; select it in the shared selector so the client, the
|
|
10
9
|
// relay, the gate and the stored resume keys all agree. (Embedded, the host's selector rules.)
|
|
@@ -13,4 +12,9 @@ const built = env.VITE_NETWORK || 'testnet'
|
|
|
13
12
|
if (built === 'testnet' || built === 'mainnet') useNetwork().setNetwork(built)
|
|
14
13
|
|
|
15
14
|
useSeason()
|
|
16
|
-
|
|
15
|
+
// Machine-zone endpoints (the indexer, the Walrus relays) come from /runtime-config.json when the deployment
|
|
16
|
+
// serves one (ADR-0005); load it before any module that reads them is imported.
|
|
17
|
+
void loadRuntimeConfig().then(async () => {
|
|
18
|
+
const { default: App } = await import('./App.vue')
|
|
19
|
+
createApp(App).mount('#app')
|
|
20
|
+
})
|