@neurodyn/react-model-viewer 0.0.6 → 0.0.8
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 +1 -1
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ 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, legacyApiBaseUrl, mode, initialWidgetSessionToken, handoffUrl, launchAr, sizeType, dimensionAxes, layout, background, viewerSurface, className, ...props }: ModelViewerProps & React_2.ComponentProps<'div'>): JSX.Element;
|
|
24
|
+
export declare function ModelViewer({ tinuuid, apiKey, appClipBundleId, arExperience, hid, apiBaseUrl, legacyApiBaseUrl, mode, initialWidgetSessionToken, 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
|
|
package/dist/index.js
CHANGED
|
@@ -6863,9 +6863,7 @@ function ModelViewerProvider({ children, tinuuid, apiKey, appClipBundleId, arExp
|
|
|
6863
6863
|
const accessError = getModelViewerApiError(error);
|
|
6864
6864
|
if (accessError) return accessError;
|
|
6865
6865
|
const instantArExperience = 'ar-view' === mode || 'qr-code' === mode && 'standard' === arExperience;
|
|
6866
|
-
const advancedArExperience = 'advanced-ar-view' === mode || 'qr-code' === mode && 'advanced' === arExperience;
|
|
6867
6866
|
if (instantArExperience && object?.policy?.instantArView === false) return 'forbidden';
|
|
6868
|
-
if ((advancedArExperience || 'ar-viewer' === mode) && object?.policy?.appClip === false) return 'forbidden';
|
|
6869
6867
|
if (null != error || !object || !material || !glbUrl) return 'not-found';
|
|
6870
6868
|
return 'ready';
|
|
6871
6869
|
}, [
|
|
@@ -8089,7 +8087,7 @@ function ModelViewerDialog({ tinuuid, apiKey, apiBaseUrl, legacyApiBaseUrl, init
|
|
|
8089
8087
|
]
|
|
8090
8088
|
});
|
|
8091
8089
|
}
|
|
8092
|
-
function ModelViewer({ tinuuid, apiKey, appClipBundleId, arExperience, hid, apiBaseUrl, legacyApiBaseUrl, mode, initialWidgetSessionToken, handoffUrl, launchAr, sizeType, dimensionAxes, layout, background, viewerSurface, className, ...props }) {
|
|
8090
|
+
function ModelViewer({ tinuuid, apiKey, appClipBundleId, arExperience, hid, apiBaseUrl, legacyApiBaseUrl, mode, initialWidgetSessionToken, handoffUrl, launchAr, sizeType, dimensionAxes, cameraOrbit, minCameraOrbit, maxCameraOrbit, layout, background, viewerSurface, className, ...props }) {
|
|
8093
8091
|
const [container, setContainer] = useState(null);
|
|
8094
8092
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
8095
8093
|
children: [
|
|
@@ -8131,6 +8129,9 @@ function ModelViewer({ tinuuid, apiKey, appClipBundleId, arExperience, hid, apiB
|
|
|
8131
8129
|
launchAr: launchAr,
|
|
8132
8130
|
sizeType: sizeType,
|
|
8133
8131
|
dimensionAxes: dimensionAxes,
|
|
8132
|
+
cameraOrbit: cameraOrbit,
|
|
8133
|
+
minCameraOrbit: minCameraOrbit,
|
|
8134
|
+
maxCameraOrbit: maxCameraOrbit,
|
|
8134
8135
|
layout: layout,
|
|
8135
8136
|
background: background,
|
|
8136
8137
|
viewerSurface: viewerSurface
|