@neurodyn/react-model-viewer 0.0.13 → 0.1.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/dist/index.d.ts +8 -8
- package/dist/index.js +3609 -3582
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,15 +21,15 @@ declare type DialogProps = React_3.ComponentProps<typeof DialogPrimitive.Root>
|
|
|
21
21
|
*/
|
|
22
22
|
export declare type LaunchArOverride = (target: ArLaunchTarget) => boolean | Promise<boolean>;
|
|
23
23
|
|
|
24
|
-
export declare function ModelViewer({ tinuuid, apiKey, appClipBundleId, arExperience, hid, apiBaseUrl,
|
|
24
|
+
export declare function ModelViewer({ tinuuid, apiKey, appClipBundleId, arExperience, hid, apiBaseUrl, mode, initialWidgetSessionToken, handoffCode, lang, handoffUrl, launchAr, sizeType, dimensionAxes, cameraOrbit, minCameraOrbit, maxCameraOrbit, layout, background, viewerSurface, className, ...props }: ModelViewerProps & React_2.ComponentProps<'div'>): JSX.Element;
|
|
25
25
|
|
|
26
26
|
export declare type ModelViewerArExperience = 'advanced' | 'standard';
|
|
27
27
|
|
|
28
28
|
declare type ModelViewerBackground = 'default' | 'transparent';
|
|
29
29
|
|
|
30
|
-
export declare function ModelViewerDialog({ tinuuid, apiKey, apiBaseUrl,
|
|
30
|
+
export declare function ModelViewerDialog({ tinuuid, apiKey, apiBaseUrl, appClipBundleId, initialWidgetSessionToken, handoffUrl, hid, lang, mode, sizeType, dimensionAxes, cameraOrbit, minCameraOrbit, maxCameraOrbit, ...props }: ModelViewerDialogProps): JSX.Element;
|
|
31
31
|
|
|
32
|
-
declare interface ModelViewerDialogProps extends Pick<ModelViewerRootProps, 'apiBaseUrl' | 'apiKey' | 'dimensionAxes' | 'handoffUrl' | 'hid' | 'initialWidgetSessionToken' | '
|
|
32
|
+
export declare interface ModelViewerDialogProps extends Pick<ModelViewerRootProps, 'apiBaseUrl' | 'apiKey' | 'appClipBundleId' | 'cameraOrbit' | 'dimensionAxes' | 'handoffUrl' | 'hid' | 'initialWidgetSessionToken' | 'lang' | 'maxCameraOrbit' | 'minCameraOrbit' | 'mode' | 'sizeType' | 'tinuuid'>, Omit<DialogProps, 'children' | 'open' | 'defaultOpen' | 'onOpenChange' | 'modal'> {
|
|
33
33
|
/** The controlled open state of the dialog. Use with `onOpenChange`. */
|
|
34
34
|
open?: DialogProps['open'];
|
|
35
35
|
/** The initial open state when the dialog is uncontrolled. */
|
|
@@ -57,14 +57,14 @@ declare interface ModelViewerRootProps {
|
|
|
57
57
|
arExperience?: ModelViewerArExperience;
|
|
58
58
|
/** The identifier of a material variant. */
|
|
59
59
|
hid?: string | null;
|
|
60
|
-
/** Node
|
|
60
|
+
/** Node API base URL for the object read and the widget session. */
|
|
61
61
|
apiBaseUrl?: string;
|
|
62
|
-
/** Legacy Go API base URL used only when `apiKey` is missing. */
|
|
63
|
-
legacyApiBaseUrl?: string;
|
|
64
62
|
/** Widget integration mode recorded by the backend session. */
|
|
65
63
|
mode?: ModelViewerWidgetMode;
|
|
66
64
|
/** Existing token used to preserve the same widget session across a handoff. */
|
|
67
65
|
initialWidgetSessionToken?: string;
|
|
66
|
+
/** Short single-use code (from a QR scan) resolved into the session token above. */
|
|
67
|
+
handoffCode?: string;
|
|
68
68
|
/** UI language. Defaults to English. */
|
|
69
69
|
lang?: ModelViewerLanguage;
|
|
70
70
|
/** Hosted viewer URL encoded into the desktop-to-mobile QR handoff. */
|
|
@@ -91,12 +91,12 @@ declare interface ModelViewerRootProps {
|
|
|
91
91
|
viewerSurface?: ModelViewerSurface;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
declare type ModelViewerSurface = 'dialog' | 'inline' | 'page';
|
|
94
|
+
export declare type ModelViewerSurface = 'dialog' | 'inline' | 'page';
|
|
95
95
|
|
|
96
96
|
export declare type ModelViewerWidgetMode = 'advanced-ar-view' | 'ar-view' | 'embedded-3d-viewer' | 'ar-viewer' | 'qr-code';
|
|
97
97
|
|
|
98
98
|
export declare type SizeAxis = 'x' | 'y' | 'z';
|
|
99
99
|
|
|
100
|
-
declare type SizeType = 'cm' | 'inch';
|
|
100
|
+
export declare type SizeType = 'cm' | 'inch';
|
|
101
101
|
|
|
102
102
|
export { }
|