@flapsdk/vault-runtime 0.1.39 → 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 +28 -1
- package/{chunk-IJV5R2L7.js → chunk-6HCCALXB.js} +4 -4
- package/{chunk-IJV5R2L7.js.map → chunk-6HCCALXB.js.map} +1 -1
- package/{chunk-RXPBJYTN.js → chunk-T4Y5RVCD.js} +336 -3
- package/chunk-T4Y5RVCD.js.map +1 -0
- package/{chunk-LDIQD6DJ.js → chunk-WINK5MYF.js} +39 -8
- package/chunk-WINK5MYF.js.map +1 -0
- package/host-client.d.mts +4 -2
- package/host-client.js +3 -3
- package/host.d.mts +4 -4
- package/host.js +1 -1
- package/{hostRuntimeConfig-CKjug1-9.d.mts → hostRuntimeConfig-CukX-pP3.d.mts} +1 -1
- package/{mpegts-77X2FRB3.js → mpegts-536UQHCG.js} +6 -6
- package/{mpegts-77X2FRB3.js.map → mpegts-536UQHCG.js.map} +1 -1
- package/package.json +3 -3
- package/runtime-contract.json +3 -2
- package/sdk.d.mts +32 -5
- package/sdk.js +10 -8
- package/sdk.js.map +1 -1
- package/server.d.mts +3 -3
- package/{txError-BTuW38It.d.mts → txError-BjpNYS6Z.d.mts} +1 -1
- package/{types-BolUPLIE.d.mts → types-BwvSwC4U.d.mts} +124 -1
- package/ui.d.mts +1 -1
- package/ui.js +1 -1
- package/chunk-LDIQD6DJ.js.map +0 -1
- package/chunk-RXPBJYTN.js.map +0 -1
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.
|
|
9
|
+
Package version: `0.1.40-next.1`. Source commit: `f9ac5edf021641f26d1c0bcce0e318b1c84e07b4`.
|
|
10
10
|
|
|
11
11
|
## Exports
|
|
12
12
|
|
|
@@ -17,6 +17,33 @@ Package version: `0.1.39`. Source commit: `78c355f080a60770cfd64d71d94c525204d61
|
|
|
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
|
+
|
|
20
47
|
## FSI queries
|
|
21
48
|
|
|
22
49
|
Declare `https://fsi.taxed.fun/fsi/v1` in `manifest.endpoints` to use
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
1958
|
-
//# sourceMappingURL=chunk-
|
|
1957
|
+
//# sourceMappingURL=chunk-6HCCALXB.js.map
|
|
1958
|
+
//# sourceMappingURL=chunk-6HCCALXB.js.map
|