@r2u/javascript-ar-sdk 6.6.1-rc → 6.6.5-rc

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,9 +4,19 @@ object-assign
4
4
  @license MIT
5
5
  */
6
6
 
7
- /*!
8
- * is.js 0.8.0
9
- * Author: Aras Atasaygin
7
+ /* @license
8
+ * Copyright 2019 Google LLC. All Rights Reserved.
9
+ * Licensed under the Apache License, Version 2.0 (the 'License');
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an 'AS IS' BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
10
20
  */
11
21
 
12
22
  /*!@license
@@ -1,5 +1,11 @@
1
1
  import Analytics from '@r2u/analytics';
2
2
  import { DimensionValues } from '@r2u/analytics/dist/src/types';
3
+ interface GetAnalyticsParams {
4
+ client: string;
5
+ dataLayerIntegration?: boolean;
6
+ sessionDurationMinutes?: number;
7
+ info?: DimensionValues;
8
+ }
3
9
  declare const arLink: {
4
10
  componentDidMount: () => Promise<any>;
5
11
  onClick: () => Promise<unknown>;
@@ -11,10 +17,19 @@ declare const arLink: {
11
17
  declare const arModelViewer: {
12
18
  componentDidMount: () => Promise<unknown>;
13
19
  onClick: () => Promise<unknown>;
20
+ onSessionTimeCollect: (time: number) => Promise<unknown>;
21
+ };
22
+ declare const customizer: {
23
+ componentDidMount: () => Promise<unknown>;
24
+ onClick: () => Promise<unknown>;
25
+ onCustomizationChange: () => Promise<unknown>;
14
26
  };
15
27
  declare const setSku: (sku: string) => void;
16
28
  declare const setManufacturerId: (manufacturerId: string) => void;
17
29
  declare const isActive3D: (isActive: boolean) => void;
18
- declare const getUserId: () => Promise<string>;
19
- export default function (client: string, info: DimensionValues, dataLayerIntegration?: boolean, sessionDurationMinutes?: number): Promise<Analytics>;
20
- export { arLink, arModelViewer, setSku, setManufacturerId, isActive3D, getUserId, };
30
+ declare const setExperimentId: (experimentId: string) => void;
31
+ declare const setVariationId: (variationId: string) => void;
32
+ declare const getFingerprint: () => Promise<string>;
33
+ declare const getAnalytics: ({ client, dataLayerIntegration, sessionDurationMinutes, info, }: GetAnalyticsParams) => Promise<Analytics>;
34
+ export { arLink, arModelViewer, customizer, setExperimentId, setVariationId, setSku, setManufacturerId, isActive3D, getFingerprint, };
35
+ export default getAnalytics;
@@ -0,0 +1,16 @@
1
+ export declare const HAS_WEBXR_DEVICE_API: boolean;
2
+ export declare const HAS_WEBXR_HIT_TEST_API: any;
3
+ export declare const HAS_RESIZE_OBSERVER: boolean;
4
+ export declare const HAS_INTERSECTION_OBSERVER: boolean;
5
+ export declare const IS_WEBXR_AR_CANDIDATE: any;
6
+ export declare const IS_MOBILE: boolean;
7
+ export declare const IS_CHROMEOS: boolean;
8
+ export declare const IS_ANDROID: boolean;
9
+ export declare const IS_IOS: boolean;
10
+ export declare const IS_AR_QUICKLOOK_CANDIDATE: boolean;
11
+ export declare const IS_SAFARI: boolean;
12
+ export declare const IS_FIREFOX: boolean;
13
+ export declare const IS_OCULUS: boolean;
14
+ export declare const IS_IOS_CHROME: boolean;
15
+ export declare const IS_IOS_SAFARI: boolean;
16
+ export declare const IS_SCENEVIEWER_CANDIDATE: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2u/javascript-ar-sdk",
3
- "version": "6.6.1-rc",
3
+ "version": "6.6.5-rc",
4
4
  "main": "dist/index.js",
5
5
  "unpkg": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,14 +24,13 @@
24
24
  "react-dom": "^16.13.1"
25
25
  },
26
26
  "dependencies": {
27
- "@r2u/analytics": "^4.1.0",
28
- "@r2u/customizer": "^1.3.1",
29
- "@r2u/react-ar-components": "^5.2.4",
27
+ "@r2u/analytics": "^4.2.0",
28
+ "@r2u/customizer": "^1.3.2",
29
+ "@r2u/react-ar-components": "^5.3.1",
30
30
  "i18next": "^20.2.1",
31
31
  "i18next-chained-backend": "^2.1.0",
32
32
  "i18next-http-backend": "^1.2.1",
33
33
  "i18next-localstorage-backend": "^3.1.2",
34
- "is_js": "^0.9.0",
35
34
  "qrcode.react": "^1.0.1",
36
35
  "querystring": "^0.2.0",
37
36
  "react": "^16.13.1",
@@ -87,4 +86,4 @@
87
86
  "last 1 safari version"
88
87
  ]
89
88
  }
90
- }
89
+ }