@meddleware/token-deployer-ui 0.0.14 → 0.0.15

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/token-deployer-ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "license": "0BSD",
6
6
  "repository": {
@@ -54,7 +54,7 @@
54
54
  "@meddleware/design-tokens": "^0.1.7",
55
55
  "@meddleware/ui": "^0.1.28",
56
56
  "@meddleware/walrus-client": "^0.0.21",
57
- "@meddleware/walrus-relay": "^0.1.20",
57
+ "@meddleware/walrus-relay": "^0.1.21",
58
58
  "@mysten/bcs": "~2.1.2",
59
59
  "@mysten/move-bytecode-template": "~0.4.1",
60
60
  "@mysten/sui": "^2.33.1",
@@ -38,6 +38,7 @@ const accessGate = useAccessGate({ gate: ACCESS_GATE[walrusNet], getClient: () =
38
38
  const {
39
39
  selectedRelayHost,
40
40
  availableRelays,
41
+ relayPending,
41
42
  purchaseAccessAvailable,
42
43
  estimatedCost,
43
44
  fileSizeBytes,
@@ -255,7 +256,14 @@ function onBrowseSelect(url: string): void {
255
256
  class="icon-file"
256
257
  @change="onFile"
257
258
  />
258
- <button type="button" :disabled="uploading || !connected || !fileName" @click="upload">
259
+ <!-- No relay is offered while the operator relay's health or pass check is pending, or
260
+ while a gated relay is up and this wallet has no pass: upload is blocked then
261
+ (walrus-relay useWalrusRelay policy). -->
262
+ <button
263
+ type="button"
264
+ :disabled="uploading || !connected || !fileName || availableRelays.length === 0"
265
+ @click="upload"
266
+ >
259
267
  <span v-if="uploading" class="spinner" aria-hidden="true"></span>
260
268
  Upload to Walrus
261
269
  </button>
@@ -300,11 +308,14 @@ function onBrowseSelect(url: string): void {
300
308
  <strong>Estimated cost:</strong> {{ estimatedCost.label }}
301
309
  </UiNotice>
302
310
 
303
- <!-- NFT-gated relay: the operator relay is live but this wallet lacks the access NFT.
304
- The public relay is still available; purchasing unlocks the operator relay. -->
311
+ <p v-if="fileName && connected && relayPending" class="hint icon-notice" role="status">
312
+ Checking the upload relay…
313
+ </p>
314
+
315
+ <!-- NFT-gated relay: the operator relay is live but this wallet lacks the access pass. While
316
+ the operator relay is up it is the only relay offered, so uploading needs a pass. -->
305
317
  <UiNotice v-if="fileName && purchaseAccessAvailable" class="icon-notice">
306
- The operator relay requires an access NFT. You can keep using the public relay, or purchase
307
- access to support this app’s relay.
318
+ Uploading through this app’s relay requires an access pass.
308
319
  <button
309
320
  type="button"
310
321
  class="icon-notice__cta"