@flapsdk/vault-runtime 0.1.39 → 0.1.40-beta.routing.0

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/README.md CHANGED
@@ -4,9 +4,12 @@ Generated from `flap-vault-ui-template`.
4
4
 
5
5
 
6
6
 
7
+ This is a runtime-only routing testing prerelease on the npm routing tag. Install its exact version in isolated test consumers. It does not include sensor/map APIs or change latest/next, and cannot supply App/Vault source-ZIP provenance.
8
+
9
+
7
10
  This package is the shared runtime surface that local preview, Artifact Workbench, and `flap.sh` should agree on.
8
11
 
9
- Package version: `0.1.39`. Source commit: `78c355f080a60770cfd64d71d94c525204d61583`.
12
+ Package version: `0.1.40-beta.routing.0`. Source commit: `33d22c9475c3935f8066d4ed213f25e082ece167`.
10
13
 
11
14
  ## Exports
12
15
 
@@ -17,6 +20,20 @@ Package version: `0.1.39`. Source commit: `78c355f080a60770cfd64d71d94c525204d61
17
20
 
18
21
  See `runtime-contract.json` for the machine-readable subpath contract.
19
22
 
23
+ ## Mini App subroutes
24
+
25
+ Standalone Mini Apps use `useMiniAppRouter()` from `./sdk`. It returns
26
+ App-relative `pathname`, decoded `segments`, `search`, and
27
+ `push(path)`, `replace(path)`, `back()`. Paths start with `/`
28
+ inside the current App; external URLs, traversal, encoded separators and hashes
29
+ are rejected. Routing grants no wallet or contract access.
30
+ `MINI_APP_ROUTING_VERSION = 1` and `sdkFeatures.miniAppRouting = 1`
31
+ identify the feature. Hosts inject a `router` into `MiniAppRuntimeProvider`;
32
+ `./host` exports `parseMiniAppPath`, `createMiniAppMemoryRouter` and
33
+ `createMiniAppBrowserRouter`. Old Apps need no adapter. The new hook fails
34
+ explicitly if the host has not enabled routing. Deploy supporting hosts before
35
+ accepting new route-dependent artifacts; source-package provenance is unchanged.
36
+
20
37
  ## FSI queries
21
38
 
22
39
  Declare `https://fsi.taxed.fun/fsi/v1` in `manifest.endpoints` to use
@@ -1,7 +1,7 @@
1
1
  import { createVaultRuntimeContext, chainLabelForChain, readContractEventsInBlockRanges, resolveSafeContractWriteFeeOverrides, createIpfsTextReader, readFsiJson, createFlapChainSdk } from './chunk-RXPBJYTN.js';
2
2
  import { createLocalMediaUploader, createLocalNftMetadataReader, vaultV2NftAbi, nftTokenUriAbi } from './chunk-WN4MIMCY.js';
3
3
  import { fetchOracleJson } from './chunk-JLI25XFB.js';
4
- import { RuntimeContext, Alert } from './chunk-IJV5R2L7.js';
4
+ import { RuntimeContext, Alert } from './chunk-ZH7JPICS.js';
5
5
  import { isValidAddress, ZERO_ADDRESS } from './chunk-B4WKI3EW.js';
6
6
  import { useRef, useMemo, useState, useCallback, useEffect } from 'react';
7
7
  import { useConfig, useAccount, useChainId, useConnect, useDisconnect, useSwitchChain, usePublicClient, useWalletClient, useBalance } from 'wagmi';
@@ -968,5 +968,5 @@ function VaultRuntimeProvider({ children, manifest, i18n, runtimeContext: runtim
968
968
  }
969
969
 
970
970
  export { VaultRuntimeProvider, useFlapWalletRuntime };
971
- //# sourceMappingURL=chunk-LDIQD6DJ.js.map
972
- //# sourceMappingURL=chunk-LDIQD6DJ.js.map
971
+ //# sourceMappingURL=chunk-VQAPR4S3.js.map
972
+ //# sourceMappingURL=chunk-VQAPR4S3.js.map