@aperture-browser/session-react 0.0.0-init.0 → 0.0.0-nightly.100.78b4e7ef6edc
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 +8 -57
- package/dist/{headless-CKFacFX3.js → headless-CPoXwbFz.js} +196 -103
- package/dist/headless-CPoXwbFz.js.map +1 -0
- package/dist/headless.d.ts +46 -39
- package/dist/headless.js +2 -2
- package/dist/index.d.ts +23 -12
- package/dist/index.js +475 -303
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +7 -7
- package/dist/headless-CKFacFX3.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ApertureProvider, ApertureProviderProps, ApertureRuntime, ApertureRuntimeOptions, BrowserCommands, BrowserMediaPath, BrowserMediaPhase, CollaborationControl, CollaborationCursor, CollaborationError, CollaborationLeaseMode, CollaborationPaintEvent, CollaborationPaintPoint, CollaborationParticipant, CollaborationPhase, CollaborationRole, LiveSessionControl, LiveSessionError, LiveSessionMediaSelection, LiveSessionMediaSize, RuntimeProvider, RuntimeProviderMissingError, SessionNotice, SessionViewport, SessionViewportOverlay, SessionViewportPlaceholder, SessionViewportProps, SessionViewportStatus,
|
|
1
|
+
import { ApertureProvider, ApertureProviderProps, ApertureRuntime, ApertureRuntimeOptions, BrowserCommands, BrowserMediaPath, BrowserMediaPhase, CollaborationControl, CollaborationCursor, CollaborationError, CollaborationLeaseMode, CollaborationPaintEvent, CollaborationPaintPoint, CollaborationParticipant, CollaborationPhase, CollaborationRole, LiveSessionControl, LiveSessionError, LiveSessionMediaSelection, LiveSessionMediaSize, LiveSessionViewportOwnership, RuntimeProvider, RuntimeProviderMissingError, SessionNotice, SessionStatus, SessionViewport, SessionViewportOverlay, SessionViewportPlaceholder, SessionViewportProps, SessionViewportStatus, UseBrowserControlResult, UseSessionOptions, UseSessionResult, collaborationPaintLifetimeMs, makeApertureRuntime, shareSessionAccess, useBaseUrl, useBrowserControl, useEffectCallback, useFork, useLiveSession, useRunApi, useRuntime, useSession } from "./headless.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import * as Effect from "effect/Effect";
|
|
4
|
-
import { CollaborationRole as CollaborationRole$1 } from "@aperture-browser/live-session";
|
|
4
|
+
import { CollaborationRole as CollaborationRole$1, SessionAccess, SessionAccess as SessionAccess$1 } from "@aperture-browser/live-session";
|
|
5
5
|
|
|
6
6
|
//#region src/features.d.ts
|
|
7
7
|
interface SessionFeatures {
|
|
@@ -20,29 +20,40 @@ interface ApertureSessionFeatures extends SessionFeatures {
|
|
|
20
20
|
type ResolvedSessionFeatures = Required<SessionFeatures>;
|
|
21
21
|
declare function resolveSessionFeatures(features?: SessionFeatures): ResolvedSessionFeatures;
|
|
22
22
|
//#endregion
|
|
23
|
+
//#region src/ui-root.d.ts
|
|
24
|
+
type ApertureTheme = "light" | "dark" | "system";
|
|
25
|
+
interface ApertureUIRootProps {
|
|
26
|
+
readonly theme?: ApertureTheme;
|
|
27
|
+
readonly className?: string;
|
|
28
|
+
readonly children?: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
declare function ApertureUIRoot({
|
|
31
|
+
theme,
|
|
32
|
+
className,
|
|
33
|
+
children
|
|
34
|
+
}: ApertureUIRootProps): import("react").JSX.Element;
|
|
35
|
+
//#endregion
|
|
23
36
|
//#region src/aperture-session.d.ts
|
|
24
|
-
interface
|
|
25
|
-
readonly
|
|
37
|
+
interface SessionProps {
|
|
38
|
+
readonly access: SessionAccess$1 | null;
|
|
26
39
|
readonly features?: SessionFeatures;
|
|
27
40
|
readonly leading?: ReactNode;
|
|
28
41
|
}
|
|
29
|
-
interface ApertureSessionProps extends
|
|
30
|
-
readonly baseUrl?: string;
|
|
42
|
+
interface ApertureSessionProps extends SessionProps {
|
|
31
43
|
readonly features?: ApertureSessionFeatures;
|
|
32
|
-
readonly theme?:
|
|
44
|
+
readonly theme?: ApertureTheme;
|
|
33
45
|
readonly className?: string;
|
|
34
46
|
}
|
|
35
47
|
declare function ApertureSession({
|
|
36
|
-
baseUrl,
|
|
37
48
|
theme,
|
|
38
49
|
className,
|
|
39
50
|
...props
|
|
40
51
|
}: ApertureSessionProps): import("react").JSX.Element;
|
|
41
|
-
declare function
|
|
42
|
-
|
|
52
|
+
declare function Session({
|
|
53
|
+
access,
|
|
43
54
|
features,
|
|
44
55
|
leading
|
|
45
|
-
}:
|
|
56
|
+
}: SessionProps): import("react").JSX.Element;
|
|
46
57
|
declare function devToolsUrl(origin: string, cdpUrl: string, sessionToken: string): string;
|
|
47
58
|
//#endregion
|
|
48
59
|
//#region src/clipboard.d.ts
|
|
@@ -95,5 +106,5 @@ declare function BrowserViewport({
|
|
|
95
106
|
//#region src/notices.d.ts
|
|
96
107
|
declare function showNotice(notice: SessionNotice): void;
|
|
97
108
|
//#endregion
|
|
98
|
-
export { ApertureProvider, ApertureProviderProps, ApertureRuntime, ApertureRuntimeOptions, ApertureSession, ApertureSessionFeatures, ApertureSessionProps, BrowserCommands, BrowserControlPane, BrowserMediaPath, BrowserMediaPhase, BrowserViewport, BrowserViewportProps, ClipboardError, CollaborationControl, type CollaborationCursor, type CollaborationError, type CollaborationLeaseMode, type CollaborationPaintEvent, type CollaborationPaintPoint, type CollaborationParticipant, type CollaborationPhase, type CollaborationRole, LiveSessionControl, LiveSessionError, LiveSessionMediaSelection, LiveSessionMediaSize, ResolvedSessionFeatures, RuntimeProvider, RuntimeProviderMissingError,
|
|
109
|
+
export { ApertureProvider, ApertureProviderProps, ApertureRuntime, ApertureRuntimeOptions, ApertureSession, ApertureSessionFeatures, ApertureSessionProps, ApertureTheme, ApertureUIRoot, ApertureUIRootProps, BrowserCommands, BrowserControlPane, BrowserMediaPath, BrowserMediaPhase, BrowserViewport, BrowserViewportProps, ClipboardError, CollaborationControl, type CollaborationCursor, type CollaborationError, type CollaborationLeaseMode, type CollaborationPaintEvent, type CollaborationPaintPoint, type CollaborationParticipant, type CollaborationPhase, type CollaborationRole, LiveSessionControl, LiveSessionError, LiveSessionMediaSelection, LiveSessionMediaSize, LiveSessionViewportOwnership, ResolvedSessionFeatures, RuntimeProvider, RuntimeProviderMissingError, Session, type SessionAccess, SessionFeatures, SessionNotice, SessionProps, SessionStatus, SessionViewport, SessionViewportOverlay, SessionViewportPlaceholder, SessionViewportProps, SessionViewportStatus, UseBrowserControlResult, UseSessionOptions, UseSessionResult, collaborationPaintLifetimeMs, copyText, copyTextWithToast, devToolsUrl, makeApertureRuntime, resolveSessionFeatures, shareSessionAccess, showNotice, useBaseUrl, useBrowserControl, useEffectCallback, useFork, useLiveSession, useRunApi, useRuntime, useSession };
|
|
99
110
|
//# sourceMappingURL=index.d.ts.map
|