@r2u/javascript-ar-sdk 6.8.21 → 6.9.0

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.
@@ -4,4 +4,6 @@ export declare const FiArrowLeft: React.FC<Props>;
4
4
  export declare const AiFillCheckCircle: React.FC<Props>;
5
5
  export declare const AiFillLike: React.FC<Props>;
6
6
  export declare const AiFillDislike: React.FC<Props>;
7
+ export declare const LightOff: React.FC<Props>;
8
+ export declare const LightOn: React.FC<Props>;
7
9
  export {};
@@ -1,6 +1,7 @@
1
1
  import React, { MouseEvent } from 'react';
2
2
  import type { ModelViewerProps } from '@r2u/react-ar-components';
3
3
  import Viewer from '@r2u/sdk/dist/viewer';
4
+ import { ViewerRef } from '../../methods/types';
4
5
  interface Props extends ModelViewerProps {
5
6
  exitImgSrc?: string;
6
7
  expandImgSrc?: string;
@@ -10,6 +11,7 @@ interface Props extends ModelViewerProps {
10
11
  waterMarkPosition?: string;
11
12
  refViewer: React.RefObject<HTMLDivElement>;
12
13
  refViewerPopup: React.RefObject<HTMLDivElement>;
14
+ refViewerFunctions: React.RefObject<ViewerRef>;
13
15
  ModelViewerElement: typeof Viewer;
14
16
  onClick?: (e: MouseEvent<HTMLElement>) => void;
15
17
  }
@@ -1,5 +1,6 @@
1
1
  interface Props {
2
2
  expanded: boolean;
3
+ bloom: boolean;
3
4
  }
4
5
  export declare const Content: import("styled-components").StyledComponent<"div", any, Props, never>;
5
6
  export {};
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import analytics from './methods/analytics';
8
8
  import customizer from './methods/customizer';
9
9
  import qrCode from './methods/qrCode';
10
10
  import config from './methods/config';
11
- import { SKUHandler } from './methods/types';
11
+ import { SKUHandler, ViewerRef } from './methods/types';
12
12
  import { Product } from '@services/product';
13
13
  export default interface R2U {
14
14
  init: (params: {
@@ -57,7 +57,7 @@ export default interface R2U {
57
57
  progressBarPosition?: 'top' | 'middle' | 'bottom';
58
58
  poster?: string;
59
59
  autoRotate?: boolean;
60
- }) => Promise<SKUHandler>;
60
+ }) => Promise<SKUHandler & ViewerRef>;
61
61
  };
62
62
  analytics: {
63
63
  send: (params: {