@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 +18 -1
- package/{chunk-LDIQD6DJ.js → chunk-VQAPR4S3.js} +3 -3
- package/{chunk-LDIQD6DJ.js.map → chunk-VQAPR4S3.js.map} +1 -1
- package/{chunk-FWYBGHBX.js → chunk-WQ7WM2BC.js} +6 -3
- package/chunk-WQ7WM2BC.js.map +1 -0
- package/{chunk-IJV5R2L7.js → chunk-ZH7JPICS.js} +6 -5
- package/{chunk-IJV5R2L7.js.map → chunk-ZH7JPICS.js.map} +1 -1
- package/host-client.js +2 -2
- package/host.d.mts +19 -2
- package/host.js +145 -3
- package/host.js.map +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 +8 -3
- package/sdk.js +15 -9
- package/sdk.js.map +1 -1
- package/{txError-BTuW38It.d.mts → txError-CJDsAoqw.d.mts} +23 -1
- package/ui.js +1 -1
- package/chunk-FWYBGHBX.js.map +0 -1
|
@@ -12,6 +12,7 @@ import { createPortal } from 'react-dom';
|
|
|
12
12
|
|
|
13
13
|
var RuntimeContext = createContext(null);
|
|
14
14
|
var MiniAppContext = createContext(null);
|
|
15
|
+
var MiniAppRoutingContext = createContext(null);
|
|
15
16
|
function useFlapSdk(options) {
|
|
16
17
|
const vault = useContext(RuntimeContext);
|
|
17
18
|
const app = useContext(MiniAppContext);
|
|
@@ -1655,7 +1656,7 @@ function ConsumerVideoSessionPlayer({ consumer, startClip = 0, label, fallback =
|
|
|
1655
1656
|
}, [reader, startClip]);
|
|
1656
1657
|
React10.useEffect(() => {
|
|
1657
1658
|
if (!videoRef.current) return;
|
|
1658
|
-
const controller = new VideoSessionController(videoRef.current, async () => (await import('./mpegts-
|
|
1659
|
+
const controller = new VideoSessionController(videoRef.current, async () => (await import('./mpegts-536UQHCG.js')).default, setMediaState);
|
|
1659
1660
|
controllerRef.current = controller;
|
|
1660
1661
|
return () => {
|
|
1661
1662
|
controller.dispose();
|
|
@@ -1915,7 +1916,7 @@ function VideoSessionPlayer(props) {
|
|
|
1915
1916
|
return "consumer" in props && props.consumer !== void 0 ? /* @__PURE__ */ jsx(ConsumerVideoSessionPlayer, { ...props }) : /* @__PURE__ */ jsx(VideoClipSessionPlayer, { ...props });
|
|
1916
1917
|
}
|
|
1917
1918
|
async function loadMpegts() {
|
|
1918
|
-
return (await import('./mpegts-
|
|
1919
|
+
return (await import('./mpegts-536UQHCG.js')).default;
|
|
1919
1920
|
}
|
|
1920
1921
|
function VideoClipSessionPlayer({ clips, label, fallback = null, className, autoPlay = false, muted = false }) {
|
|
1921
1922
|
const videoRef = React10.useRef(null);
|
|
@@ -1953,6 +1954,6 @@ function VideoClipSessionPlayer({ clips, label, fallback = null, className, auto
|
|
|
1953
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
|
+
export { AddressLink, Alert, BinanceImage, Button, Card, CardContent, CardDescription, CardHeader, CardTitle, CopyButton, Countdown, DataRow, DetailTile, ExternalLink2 as ExternalLink, Input, IpfsBackground, IpfsImage, IpfsText, Metric, MiniAppContext, MiniAppRoutingContext, NftMetadataImage, ReviewedFrame, RuntimeContext, StatusBadge, TxButton, VaultBanner, VideoSessionPlayer, VideoSessionReadError, buttonVariants, createConsumerVideoSessionReader, readVideoSessionLength, readVideoSessionSlice, useFlapI18n, useFlapNotify, useFlapSdk, useVaultContext };
|
|
1958
|
+
//# sourceMappingURL=chunk-ZH7JPICS.js.map
|
|
1959
|
+
//# sourceMappingURL=chunk-ZH7JPICS.js.map
|