@aperture-browser/session-react 0.0.0-nightly.90.91000f22b8fe → 0.0.0-nightly.91.7c42f9085e8a
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/dist/{headless-Dz39dQkW.js → headless-BuM9mIqx.js} +4 -2
- package/dist/{headless-Dz39dQkW.js.map → headless-BuM9mIqx.js.map} +1 -1
- package/dist/headless.d.ts +3 -1
- package/dist/headless.js +1 -1
- package/dist/index.js +116 -23
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Stream from "effect/Stream";
|
|
4
|
-
import { DEFAULT_VIEWPORT, LiveSessionConnection, LiveSessionError, LiveSessionError as LiveSessionError$1, computeRenderMetrics, createViewportPreset, downloadSessionRecording, evdevKeycodeByCode, getSessionStatus, keyboardInputMessage, keyboardModifiers, shouldForwardBrowserShortcut, strictParseOptions, windowsVirtualKeyCodeForCodeOrKey } from "@aperture-browser/live-session";
|
|
4
|
+
import { DEFAULT_VIEWPORT, LiveSessionConnection, LiveSessionError, LiveSessionError as LiveSessionError$1, computeRenderMetrics, createViewportPreset, downloadSessionRecording, evdevKeycodeByCode, getSessionStatus, getTargetThumbnail, keyboardInputMessage, keyboardModifiers, shouldForwardBrowserShortcut, strictParseOptions, windowsVirtualKeyCodeForCodeOrKey } from "@aperture-browser/live-session";
|
|
5
5
|
import * as Option from "effect/Option";
|
|
6
6
|
import * as PubSub from "effect/PubSub";
|
|
7
7
|
import * as Schema from "effect/Schema";
|
|
@@ -1796,6 +1796,7 @@ function useBrowserControl({ access, displayName, enabled = true, webrtcProducer
|
|
|
1796
1796
|
const [captured, setCaptured] = useState(false);
|
|
1797
1797
|
const [recordingBusy, setRecordingBusy] = useState(false);
|
|
1798
1798
|
const canRecord = collaborationRole === "owner" || collaborationRole === "editor";
|
|
1799
|
+
const loadTargetThumbnail = useMemo(() => access === null ? null : (targetId) => getTargetThumbnail(access, targetId), [access]);
|
|
1799
1800
|
const activeTargetIdRef = useRef(null);
|
|
1800
1801
|
const viewportRef = useRef(viewport);
|
|
1801
1802
|
const inputDimensionsRef = useRef(DEFAULT_VIEWPORT);
|
|
@@ -2051,6 +2052,7 @@ function useBrowserControl({ access, displayName, enabled = true, webrtcProducer
|
|
|
2051
2052
|
captured,
|
|
2052
2053
|
recordings: live.recordings,
|
|
2053
2054
|
canRecord,
|
|
2055
|
+
loadTargetThumbnail,
|
|
2054
2056
|
recordingBusy,
|
|
2055
2057
|
remoteCursorEnabled: live.presentation?.cursorVisible ?? true,
|
|
2056
2058
|
collaboration: live.collaboration,
|
|
@@ -2211,4 +2213,4 @@ function useSession({ access, displayName, onNotice }) {
|
|
|
2211
2213
|
//#endregion
|
|
2212
2214
|
export { makeApertureRuntime as a, collaborationPaintLifetimeMs as c, RuntimeProviderMissingError as d, useBaseUrl as f, useRuntime as g, useRunApi as h, ApertureProvider as i, useLiveSession as l, useFork as m, shareSessionAccess as n, useBrowserControl as o, useEffectCallback as p, useSession as r, SessionViewport as s, LiveSessionError$1 as t, RuntimeProvider as u };
|
|
2213
2215
|
|
|
2214
|
-
//# sourceMappingURL=headless-
|
|
2216
|
+
//# sourceMappingURL=headless-BuM9mIqx.js.map
|