@turingpaper/ui 0.0.16 → 0.0.18
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/provider.d.ts +28 -1
- package/dist/provider.mjs +48 -10
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/provider.d.ts
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export
|
|
2
|
+
export interface TuringpaperUIHostContext {
|
|
3
|
+
displayMode?: string;
|
|
4
|
+
containerDimensions?: {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface TuringpaperUIApp {
|
|
12
|
+
getHostContext(): TuringpaperUIHostContext | undefined;
|
|
13
|
+
addEventListener(event: "hostcontextchanged", listener: (params: unknown) => void): void;
|
|
14
|
+
removeEventListener(event: "hostcontextchanged", listener: (params: unknown) => void): void;
|
|
15
|
+
}
|
|
16
|
+
export declare function InlineUI({ children }: {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare namespace InlineUI {
|
|
20
|
+
var __tpUiSlot: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function FullscreenUI({ children }: {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare namespace FullscreenUI {
|
|
26
|
+
var __tpUiSlot: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function TuringpaperUI({ app, className, children, }: {
|
|
29
|
+
app: TuringpaperUIApp | null;
|
|
3
30
|
className?: string;
|
|
4
31
|
children: React.ReactNode;
|
|
5
32
|
}): import("react/jsx-runtime").JSX.Element;
|