@flapsdk/vault-runtime 0.1.40-next.0 → 0.1.40-next.1

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
@@ -6,7 +6,7 @@ Generated from `flap-vault-ui-template`.
6
6
 
7
7
  This package is the shared runtime surface that local preview, Artifact Workbench, and `flap.sh` should agree on.
8
8
 
9
- Package version: `0.1.40-next.0`. Source commit: `0d21863aa19bde5ad6712d760d3badea6a28e3a4`.
9
+ Package version: `0.1.40-next.1`. Source commit: `f9ac5edf021641f26d1c0bcce0e318b1c84e07b4`.
10
10
 
11
11
  ## Exports
12
12
 
@@ -17,12 +17,53 @@ Package version: `0.1.40-next.0`. Source commit: `0d21863aa19bde5ad6712d760d3bad
17
17
 
18
18
  See `runtime-contract.json` for the machine-readable subpath contract.
19
19
 
20
+ ## Location and motion sensors
21
+
22
+ This release adds `useGeolocation()`, `useDeviceMotion()` and
23
+ `useDeviceOrientation()` to `./sdk`, with `DEVICE_SENSORS_VERSION = 1`
24
+ and `sdkFeatures.deviceSensors = 1`. Declare only the channels used in
25
+ `manifest.deviceCapabilities`: `location`, `motion`, `orientation`.
26
+ Vault UI can also use `useFlapSdk().device`; standalone Mini Apps can use
27
+ `useMiniAppSdk().device`. Each channel provides `getSnapshot()`,
28
+ `subscribe(listener)`, `request(options?)` and `stop()`.
29
+
30
+ Call `request()` directly from a user click. Mounting or subscribing never
31
+ requests permission or starts collection. Permission and actual data are
32
+ separate: use readings only after `status === "active"` and non-null data.
33
+ Handle refusal, unsupported/insecure environments, policy restrictions,
34
+ timeout, missing data and background pauses with usable click/touch/manual
35
+ fallbacks. Location is a system estimate; inspect accuracy and timestamp.
36
+
37
+ The `./host` entry exports `createBrowserDeviceSensors` and
38
+ `createMockDeviceSensors`; providers accept a host-owned `deviceSensors`
39
+ adapter and scope it to the declaration. Mock values are explicitly marked.
40
+ Components cannot create adapters or call raw browser permission APIs.
41
+ Old manifests without device declarations retain their behavior and do not
42
+ request permissions. Phone and wallet support still requires real-device tests.
43
+
44
+ This package is an explicit next-channel testing release. Install its exact version; stable latest and deployed hosts are not upgraded by this publication.
45
+
46
+
47
+ ## FSI queries
48
+
49
+ Declare `https://fsi.taxed.fun/fsi/v1` in `manifest.endpoints` to use
50
+ `sdk.readFsi(relativePath, params)` with the current FSI host. The legacy
51
+ `https://bsc-debug.butterfly.army/fsi/v1` prefix remains supported. Only
52
+ declaring the legacy prefix preserves legacy routing; declaring both selects
53
+ the current host regardless of array order. Failed requests never fall back
54
+ to the other host. Both require an exact reviewed root declaration and retain
55
+ the HTTPS origin, path, GET, credential and redirect restrictions.
56
+ Hosts and Workbench must deploy matching runtime and checker policies before
57
+ accepting source packages that declare the new endpoint.
58
+
20
59
  ## Shared Vault UI and Mini App v2
21
60
 
22
- The preview channel includes standalone App wallet operations through
61
+ This shared runtime supports standalone App wallet operations through
23
62
  `useFlapSdk({ chainId })` and the host-owned `CopyButton` from `./ui`.
24
63
  Vault UI keeps `useFlapSdk()` and its token-bound context. Both use this one
25
64
  package; existing token-bound Mini Apps remain compatible.
65
+ Stable development uses the official main template and npm latest.
66
+ The shared CopyButton copies up to 1,048,576 UTF-16 code units without truncation.
26
67
 
27
68
  ## Dynamic IPFS content
28
69
 
@@ -1655,7 +1655,7 @@ function ConsumerVideoSessionPlayer({ consumer, startClip = 0, label, fallback =
1655
1655
  }, [reader, startClip]);
1656
1656
  React10.useEffect(() => {
1657
1657
  if (!videoRef.current) return;
1658
- const controller = new VideoSessionController(videoRef.current, async () => (await import('./mpegts-J2J6JTD7.js')).default, setMediaState);
1658
+ const controller = new VideoSessionController(videoRef.current, async () => (await import('./mpegts-536UQHCG.js')).default, setMediaState);
1659
1659
  controllerRef.current = controller;
1660
1660
  return () => {
1661
1661
  controller.dispose();
@@ -1915,7 +1915,7 @@ function VideoSessionPlayer(props) {
1915
1915
  return "consumer" in props && props.consumer !== void 0 ? /* @__PURE__ */ jsx(ConsumerVideoSessionPlayer, { ...props }) : /* @__PURE__ */ jsx(VideoClipSessionPlayer, { ...props });
1916
1916
  }
1917
1917
  async function loadMpegts() {
1918
- return (await import('./mpegts-J2J6JTD7.js')).default;
1918
+ return (await import('./mpegts-536UQHCG.js')).default;
1919
1919
  }
1920
1920
  function VideoClipSessionPlayer({ clips, label, fallback = null, className, autoPlay = false, muted = false }) {
1921
1921
  const videoRef = React10.useRef(null);
@@ -1954,5 +1954,5 @@ function VideoClipSessionPlayer({ clips, label, fallback = null, className, auto
1954
1954
  }
1955
1955
 
1956
1956
  export { AddressLink, Alert, BinanceImage, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, CopyButton, Countdown, DataRow, DetailTile, ExternalLink2 as ExternalLink, Input, IpfsBackground, IpfsImage, IpfsText, Metric, MiniAppContext, NftMetadataImage, ReviewedFrame, RuntimeContext, StatusBadge, TxButton, VaultBanner, VideoSessionPlayer, VideoSessionReadError, buttonVariants, createConsumerVideoSessionReader, readVideoSessionLength, readVideoSessionSlice, useFlapI18n, useFlapNotify, useFlapSdk, useVaultContext };
1957
- //# sourceMappingURL=chunk-NWBIKFHH.js.map
1958
- //# sourceMappingURL=chunk-NWBIKFHH.js.map
1957
+ //# sourceMappingURL=chunk-6HCCALXB.js.map
1958
+ //# sourceMappingURL=chunk-6HCCALXB.js.map