zakeke-configurator-react 0.1.370 → 0.1.372
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/README.md +283 -283
- package/dist/declarations/3D/src/Components/AR/AndroidAR.d.ts +7 -7
- package/dist/declarations/3D/src/Components/ActionExecutor/SceneActionExecutor.d.ts +87 -87
- package/dist/declarations/3D/src/Components/CollapseExplode/MeshLocationsManager.d.ts +44 -44
- package/dist/declarations/3D/src/Components/DesignManagers/MeshDesignManager.d.ts +166 -166
- package/dist/declarations/3D/src/Components/DesignManagers/SceneDesignManager.d.ts +63 -63
- package/dist/declarations/3D/src/Components/Draco/DracoCompression.d.ts +106 -106
- package/dist/declarations/3D/src/Components/Environment/EnvironmentManager.d.ts +43 -43
- package/dist/declarations/3D/src/Components/Glow/GlowManager.d.ts +26 -26
- package/dist/declarations/3D/src/Components/IncrementalFiles/IncrementalFiles.d.ts +26 -26
- package/dist/declarations/3D/src/Components/IncrementalFiles/MakeIncremental.d.ts +11 -11
- package/dist/declarations/3D/src/Components/InfoPointsManager/InfoPointsManager.d.ts +122 -122
- package/dist/declarations/3D/src/Components/MaterialsPreview/MaterialsPreview.d.ts +16 -16
- package/dist/declarations/3D/src/Components/MeshExpander/MeshExpander.d.ts +24 -24
- package/dist/declarations/3D/src/Components/NormalMap/ProceduralNormalMap.d.ts +30 -30
- package/dist/declarations/3D/src/Components/Preview3D/Preview3DConfigurationManager.d.ts +51 -51
- package/dist/declarations/3D/src/Components/ProceduralTextures/BaseProceduralTexture.d.ts +16 -16
- package/dist/declarations/3D/src/Components/ProceduralTextures/BlendProceduralTexture.d.ts +31 -31
- package/dist/declarations/3D/src/Components/ProceduralTextures/BlurXProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/BlurYProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/ForegroundBackgroundProceduralTexture.d.ts +26 -26
- package/dist/declarations/3D/src/Components/ProceduralTextures/MoveProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/MultiplyProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/NormalMapProceduralTexture.d.ts +35 -35
- package/dist/declarations/3D/src/Components/ProceduralTextures/OpacityProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/ProceduralTextures/OverlayProceduralTexture.d.ts +23 -23
- package/dist/declarations/3D/src/Components/SceneHelper.d.ts +352 -352
- package/dist/declarations/3D/src/Components/ScenePreview/ScenePreview.d.ts +19 -19
- package/dist/declarations/3D/src/Components/SceneToBlobs/SceneToBlobs.d.ts +31 -31
- package/dist/declarations/3D/src/Components/Selector/ElementSelector.d.ts +42 -42
- package/dist/declarations/3D/src/Components/Shadows/InnerShadow.d.ts +18 -18
- package/dist/declarations/3D/src/Components/Shadows/OuterShadow.d.ts +16 -16
- package/dist/declarations/3D/src/Components/USDZ/UsdzHelper.d.ts +4 -4
- package/dist/declarations/3D/src/Enumerations.d.ts +15 -15
- package/dist/declarations/3D/src/Helpers/debounce.d.ts +8 -8
- package/dist/declarations/3D/src/Helpers/utils.d.ts +40 -40
- package/dist/declarations/3D/src/Interfaces/IDisposable.d.ts +9 -9
- package/dist/declarations/3D/src/Interfaces/ISceneEditor.d.ts +11 -11
- package/dist/declarations/3D/src/Interfaces/ISupportInitialize.d.ts +13 -13
- package/dist/declarations/3D/src/Interfaces/ITryOn.d.ts +76 -76
- package/dist/declarations/3D/src/Layers/AxesLayer.d.ts +17 -17
- package/dist/declarations/3D/src/Layers/LightsLayer.d.ts +31 -31
- package/dist/declarations/3D/src/Misc/Database.d.ts +20 -20
- package/dist/declarations/3D/src/Misc/DefaultAssetUrls.d.ts +51 -51
- package/dist/declarations/3D/src/Misc/Observable.d.ts +220 -220
- package/dist/declarations/3D/src/Misc/StringTools.d.ts +31 -31
- package/dist/declarations/3D/src/Misc/WorkerPool.d.ts +24 -24
- package/dist/declarations/3D/src/Viewers/MaterialEditor.d.ts +57 -57
- package/dist/declarations/3D/src/Viewers/SceneEditor.d.ts +676 -676
- package/dist/declarations/3D/src/Viewers/SceneViewer.d.ts +411 -411
- package/dist/declarations/3D/src/index.d.ts +61 -61
- package/dist/declarations/3D/src/types.d.ts +2 -2
- package/dist/declarations/composer/Admin/src/Pages/ParametricMeshesBuilder/uvHelpers.d.ts +1 -1
- package/dist/declarations/composer/Components/ChunkedTask.d.ts +16 -16
- package/dist/declarations/composer/Module/src/api.d.ts +3 -3
- package/dist/declarations/composer/Module/src/components/debug/debugPanel.d.ts +6 -6
- package/dist/declarations/composer/Module/src/components/debugs/debugPanel.d.ts +2 -2
- package/dist/declarations/composer/Module/src/components/sceneViewer.d.ts +5 -5
- package/dist/declarations/composer/Module/src/components/tryOnViewer.d.ts +109 -109
- package/dist/declarations/composer/Module/src/components/tryon/deepARQrCode.d.ts +6 -6
- package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnBanuba.d.ts +22 -22
- package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnDeepAR.d.ts +22 -22
- package/dist/declarations/composer/Module/src/environment.d.ts +443 -447
- package/dist/declarations/composer/Module/src/fontsManager.d.ts +75 -75
- package/dist/declarations/composer/Module/src/generated/feature-flags.d.ts +83 -83
- package/dist/declarations/composer/Module/src/helpers.d.ts +49 -49
- package/dist/declarations/composer/Module/src/hooks/tryonContext.d.ts +11 -11
- package/dist/declarations/composer/Module/src/imageUploadTask.d.ts +20 -20
- package/dist/declarations/composer/Module/src/index.d.ts +11 -11
- package/dist/declarations/composer/Module/src/integrations/Integration.d.ts +24 -24
- package/dist/declarations/composer/Module/src/integrations/generic.d.ts +16 -16
- package/dist/declarations/composer/Module/src/models.d.ts +1203 -1212
- package/dist/declarations/composer/Module/src/state/createProviderValue.d.ts +3 -3
- package/dist/declarations/composer/Module/src/state/provider.d.ts +18 -18
- package/dist/declarations/composer/Module/src/state/providerValue.d.ts +278 -281
- package/dist/declarations/composer/Module/src/state/state.d.ts +11 -11
- package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +83 -83
- package/dist/globals0.js +1 -1
- package/dist/globals1.js +1 -1
- package/dist/index.js +11917 -11739
- package/dist/index.js.map +1 -1
- package/package.json +43 -43
- /package/dist/declarations/composer/Module/src/integrations/{helpers.d.ts → Helpers.d.ts} +0 -0
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylon.d.ts" />
|
|
2
|
-
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylonjs.serializers.d.ts" />
|
|
3
|
-
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylonjs.loaders.d.ts" />
|
|
4
|
-
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylonjs.materials.d.ts" />
|
|
5
|
-
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylon.gui.d.ts" />
|
|
6
|
-
/// <reference path="../../../../../../libs/jszip/jszip.d.ts" />
|
|
7
|
-
/// <reference path="../../../../../../3D/src/declarations/General/Backbone.Model.d.ts" />
|
|
8
|
-
/// <reference path="../../../../../../3D/src/declarations/MPlaza/All.d.ts" />
|
|
9
|
-
/// <reference path="../../../../../../3D/src/declarations/Zakeke/All.d.ts" />
|
|
10
|
-
import "./Polyfills/Array/Array.prototype.find";
|
|
11
|
-
import "./Polyfills/Array/Array.prototype.includes";
|
|
12
|
-
import "./Polyfills/Array/Array.prototype.map";
|
|
13
|
-
import "./Polyfills/String/String.prototype.startsWith";
|
|
14
|
-
import "./Polyfills/String/String.prototype.endsWith";
|
|
15
|
-
export * from "./Enumerations";
|
|
16
|
-
export * from "./Components/ProceduralTextures/BlurXProceduralTexture";
|
|
17
|
-
export * from "./Components/ProceduralTextures/BlurYProceduralTexture";
|
|
18
|
-
export * from "./Components/ProceduralTextures/ForegroundBackgroundProceduralTexture";
|
|
19
|
-
export * from "./Components/ProceduralTextures/MoveProceduralTexture";
|
|
20
|
-
export * from "./Components/ProceduralTextures/MultiplyProceduralTexture";
|
|
21
|
-
export * from "./Components/ProceduralTextures/NormalMapProceduralTexture";
|
|
22
|
-
export * from "./Components/ProceduralTextures/OpacityProceduralTexture";
|
|
23
|
-
export * from "./Components/ProceduralTextures/OverlayProceduralTexture";
|
|
24
|
-
export * from "./Components/ProceduralTextures/BlendProceduralTexture";
|
|
25
|
-
export * from "./Components/ActionExecutor/SceneActionExecutor";
|
|
26
|
-
export * from "./Components/CollapseExplode/MeshLocationsManager";
|
|
27
|
-
export * from "./Components/Glow/GlowManager";
|
|
28
|
-
export * from "./Components/IncrementalFiles/MakeIncremental";
|
|
29
|
-
export * from "./Components/IncrementalFiles/IncrementalFiles";
|
|
30
|
-
export * from "./Components/MaterialsPreview/MaterialsPreview";
|
|
31
|
-
export * from "./Components/NormalMap/ProceduralNormalMap";
|
|
32
|
-
export * from "./Components/Shadows/InnerShadow";
|
|
33
|
-
export * from "./Components/Shadows/OuterShadow";
|
|
34
|
-
export * from "./Components/DesignManagers/MeshDesignManager";
|
|
35
|
-
export * from "./Components/DesignManagers/SceneDesignManager";
|
|
36
|
-
export * from "./Components/Preview3D/Preview3DConfigurationManager";
|
|
37
|
-
export * from "./Components/Draco/DracoCompression";
|
|
38
|
-
export * from "./Components/Selector/ElementSelector";
|
|
39
|
-
export * from "./Components/Environment/EnvironmentManager";
|
|
40
|
-
export * from "./Components/MeshExpander/MeshExpander";
|
|
41
|
-
export * from "./Components/SceneHelper";
|
|
42
|
-
export * from "./Components/SceneToBlobs/SceneToBlobs";
|
|
43
|
-
export * from "./Components/AR/AndroidAR";
|
|
44
|
-
export * from "./Components/InfoPointsManager/InfoPointsManager";
|
|
45
|
-
export * from "./Components/USDZ/UsdzHelper";
|
|
46
|
-
export * from "./Helpers/debounce";
|
|
47
|
-
export * from "./Helpers/utils";
|
|
48
|
-
export * from "./Interfaces/IDisposable";
|
|
49
|
-
export * from "./Interfaces/ISupportInitialize";
|
|
50
|
-
export * from "./Interfaces/ISceneEditor";
|
|
51
|
-
export * from "./Layers/AxesLayer";
|
|
52
|
-
export * from "./Layers/LightsLayer";
|
|
53
|
-
export * from "./Misc/DefaultAssetUrls";
|
|
54
|
-
export * from "./Misc/StringTools";
|
|
55
|
-
export * from "./Misc/Observable";
|
|
56
|
-
export * from "./Misc/WorkerPool";
|
|
57
|
-
export * from "./Misc/Database";
|
|
58
|
-
export * from "./Viewers/SceneViewer";
|
|
59
|
-
export * from "./Viewers/SceneEditor";
|
|
60
|
-
export * from "./Viewers/MaterialEditor";
|
|
61
|
-
export * from "../../composer/Components/ChunkedTask";
|
|
1
|
+
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylon.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylonjs.serializers.d.ts" />
|
|
3
|
+
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylonjs.loaders.d.ts" />
|
|
4
|
+
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylonjs.materials.d.ts" />
|
|
5
|
+
/// <reference path="../../../../../../libs/babylonjs/5.0.0-alpha.57/babylon.gui.d.ts" />
|
|
6
|
+
/// <reference path="../../../../../../libs/jszip/jszip.d.ts" />
|
|
7
|
+
/// <reference path="../../../../../../3D/src/declarations/General/Backbone.Model.d.ts" />
|
|
8
|
+
/// <reference path="../../../../../../3D/src/declarations/MPlaza/All.d.ts" />
|
|
9
|
+
/// <reference path="../../../../../../3D/src/declarations/Zakeke/All.d.ts" />
|
|
10
|
+
import "./Polyfills/Array/Array.prototype.find";
|
|
11
|
+
import "./Polyfills/Array/Array.prototype.includes";
|
|
12
|
+
import "./Polyfills/Array/Array.prototype.map";
|
|
13
|
+
import "./Polyfills/String/String.prototype.startsWith";
|
|
14
|
+
import "./Polyfills/String/String.prototype.endsWith";
|
|
15
|
+
export * from "./Enumerations";
|
|
16
|
+
export * from "./Components/ProceduralTextures/BlurXProceduralTexture";
|
|
17
|
+
export * from "./Components/ProceduralTextures/BlurYProceduralTexture";
|
|
18
|
+
export * from "./Components/ProceduralTextures/ForegroundBackgroundProceduralTexture";
|
|
19
|
+
export * from "./Components/ProceduralTextures/MoveProceduralTexture";
|
|
20
|
+
export * from "./Components/ProceduralTextures/MultiplyProceduralTexture";
|
|
21
|
+
export * from "./Components/ProceduralTextures/NormalMapProceduralTexture";
|
|
22
|
+
export * from "./Components/ProceduralTextures/OpacityProceduralTexture";
|
|
23
|
+
export * from "./Components/ProceduralTextures/OverlayProceduralTexture";
|
|
24
|
+
export * from "./Components/ProceduralTextures/BlendProceduralTexture";
|
|
25
|
+
export * from "./Components/ActionExecutor/SceneActionExecutor";
|
|
26
|
+
export * from "./Components/CollapseExplode/MeshLocationsManager";
|
|
27
|
+
export * from "./Components/Glow/GlowManager";
|
|
28
|
+
export * from "./Components/IncrementalFiles/MakeIncremental";
|
|
29
|
+
export * from "./Components/IncrementalFiles/IncrementalFiles";
|
|
30
|
+
export * from "./Components/MaterialsPreview/MaterialsPreview";
|
|
31
|
+
export * from "./Components/NormalMap/ProceduralNormalMap";
|
|
32
|
+
export * from "./Components/Shadows/InnerShadow";
|
|
33
|
+
export * from "./Components/Shadows/OuterShadow";
|
|
34
|
+
export * from "./Components/DesignManagers/MeshDesignManager";
|
|
35
|
+
export * from "./Components/DesignManagers/SceneDesignManager";
|
|
36
|
+
export * from "./Components/Preview3D/Preview3DConfigurationManager";
|
|
37
|
+
export * from "./Components/Draco/DracoCompression";
|
|
38
|
+
export * from "./Components/Selector/ElementSelector";
|
|
39
|
+
export * from "./Components/Environment/EnvironmentManager";
|
|
40
|
+
export * from "./Components/MeshExpander/MeshExpander";
|
|
41
|
+
export * from "./Components/SceneHelper";
|
|
42
|
+
export * from "./Components/SceneToBlobs/SceneToBlobs";
|
|
43
|
+
export * from "./Components/AR/AndroidAR";
|
|
44
|
+
export * from "./Components/InfoPointsManager/InfoPointsManager";
|
|
45
|
+
export * from "./Components/USDZ/UsdzHelper";
|
|
46
|
+
export * from "./Helpers/debounce";
|
|
47
|
+
export * from "./Helpers/utils";
|
|
48
|
+
export * from "./Interfaces/IDisposable";
|
|
49
|
+
export * from "./Interfaces/ISupportInitialize";
|
|
50
|
+
export * from "./Interfaces/ISceneEditor";
|
|
51
|
+
export * from "./Layers/AxesLayer";
|
|
52
|
+
export * from "./Layers/LightsLayer";
|
|
53
|
+
export * from "./Misc/DefaultAssetUrls";
|
|
54
|
+
export * from "./Misc/StringTools";
|
|
55
|
+
export * from "./Misc/Observable";
|
|
56
|
+
export * from "./Misc/WorkerPool";
|
|
57
|
+
export * from "./Misc/Database";
|
|
58
|
+
export * from "./Viewers/SceneViewer";
|
|
59
|
+
export * from "./Viewers/SceneEditor";
|
|
60
|
+
export * from "./Viewers/MaterialEditor";
|
|
61
|
+
export * from "../../composer/Components/ChunkedTask";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Alias type for value that can be null */
|
|
2
|
-
export type Nullable<T> = T | null;
|
|
1
|
+
/** Alias type for value that can be null */
|
|
2
|
+
export type Nullable<T> = T | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function makeCubeWorldUV(positions: number[], normals: number[], indices: number[]): number[][];
|
|
1
|
+
export declare function makeCubeWorldUV(positions: number[], normals: number[], indices: number[]): number[][];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
interface TaskResponseFile {
|
|
2
|
-
format: string;
|
|
3
|
-
arFileUrl: string;
|
|
4
|
-
}
|
|
5
|
-
export declare class Task {
|
|
6
|
-
tasksUrl: any;
|
|
7
|
-
token: string;
|
|
8
|
-
private headers;
|
|
9
|
-
constructor(tasksUrl: any, token: string, isOwin?: boolean);
|
|
10
|
-
upload: (file: File, options: any) => Promise<TaskResponseFile[] | null>;
|
|
11
|
-
private uploadFileChunked;
|
|
12
|
-
private resumableUpload;
|
|
13
|
-
private createTask;
|
|
14
|
-
private getResultFromTask;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
1
|
+
interface TaskResponseFile {
|
|
2
|
+
format: string;
|
|
3
|
+
arFileUrl: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class Task {
|
|
6
|
+
tasksUrl: any;
|
|
7
|
+
token: string;
|
|
8
|
+
private headers;
|
|
9
|
+
constructor(tasksUrl: any, token: string, isOwin?: boolean);
|
|
10
|
+
upload: (file: File, options: any) => Promise<TaskResponseFile[] | null>;
|
|
11
|
+
private uploadFileChunked;
|
|
12
|
+
private resumableUpload;
|
|
13
|
+
private createTask;
|
|
14
|
+
private getResultFromTask;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AxiosInstance } from 'axios';
|
|
2
|
-
export declare let axiosApi: AxiosInstance;
|
|
3
|
-
export declare function setupApi(culture: string, token: string): void;
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
export declare let axiosApi: AxiosInstance;
|
|
3
|
+
export declare function setupApi(culture: string, token: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { ZakekeEnvironment } from 'src/environment';
|
|
3
|
-
export declare const DebugPanel: FunctionComponent<{
|
|
4
|
-
className?: string;
|
|
5
|
-
env: ZakekeEnvironment;
|
|
6
|
-
}>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ZakekeEnvironment } from 'src/environment';
|
|
3
|
+
export declare const DebugPanel: FunctionComponent<{
|
|
4
|
+
className?: string;
|
|
5
|
+
env: ZakekeEnvironment;
|
|
6
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const DebugPanel: React.FunctionComponent;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const DebugPanel: React.FunctionComponent;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
export declare const ZakekeViewer: FunctionComponent<{
|
|
3
|
-
bgColor?: string;
|
|
4
|
-
className?: string;
|
|
5
|
-
}>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
export declare const ZakekeViewer: FunctionComponent<{
|
|
3
|
+
bgColor?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
import { FunctionComponent } from "react";
|
|
2
|
-
import { TryOnFineTuningMazingSettings, TryOnGenericFineTuningSettings, TryOnProduct, TryOnProvider, TryOnSeller, TryOnType } from "../models";
|
|
3
|
-
export declare function parseJSON(json: string): any;
|
|
4
|
-
export declare enum TryOnMode {
|
|
5
|
-
Undefined = 0,
|
|
6
|
-
TryOn = 1,
|
|
7
|
-
PDTool = 2
|
|
8
|
-
}
|
|
9
|
-
export interface TryOnViewerProps {
|
|
10
|
-
mode: TryOnMode;
|
|
11
|
-
onTimeout?: (value: boolean) => void;
|
|
12
|
-
onPDUpdated?: (pd: number) => void;
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
}
|
|
15
|
-
export interface VTryOnViewerProps {
|
|
16
|
-
className?: string;
|
|
17
|
-
provider: TryOnProvider;
|
|
18
|
-
type: TryOnType;
|
|
19
|
-
obj: Blob;
|
|
20
|
-
settings?: TryOnGenericFineTuningSettings;
|
|
21
|
-
product: TryOnProduct;
|
|
22
|
-
customer: TryOnSeller;
|
|
23
|
-
onReady?: () => void;
|
|
24
|
-
onClose?: () => void;
|
|
25
|
-
}
|
|
26
|
-
export interface TryOnPDToolProps {
|
|
27
|
-
className?: string;
|
|
28
|
-
provider: TryOnProvider;
|
|
29
|
-
product: TryOnProduct;
|
|
30
|
-
customer: TryOnSeller;
|
|
31
|
-
onReady?: () => void;
|
|
32
|
-
onPDUpdated?: (pd: number) => void;
|
|
33
|
-
onClose?: () => void;
|
|
34
|
-
}
|
|
35
|
-
export declare const TryOnViewerComponent: FunctionComponent<TryOnViewerProps>;
|
|
36
|
-
export declare const VTryOnViewerComponent: FunctionComponent<VTryOnViewerProps>;
|
|
37
|
-
export declare const TryOnPDToolComponent: FunctionComponent<TryOnPDToolProps>;
|
|
38
|
-
export declare enum MazingTryOnState {
|
|
39
|
-
Start = "",
|
|
40
|
-
WaitingAuthentication = "WAITING_AUTH",
|
|
41
|
-
AuthSuccessful = "AUTH_SUCCESS",
|
|
42
|
-
TryOnLoaded = "MODEL_LOADED",
|
|
43
|
-
AuthError = "AUTH_ERROR",
|
|
44
|
-
WebcamError = "WEBCAM_ERROR",
|
|
45
|
-
ScreenShotTaken = "SCREENSHOT_TAKEN",
|
|
46
|
-
WebcamStopped = "WEBCAM_STOPPED"
|
|
47
|
-
}
|
|
48
|
-
export declare enum MazingTryOnOutMessage {
|
|
49
|
-
StartAuthenticationTryOn = "AUTH_TRY_ON",
|
|
50
|
-
LoadTryOn = "LOAD_MODEL",
|
|
51
|
-
TakeScreenshot = "TAKE_SCREENSHOT",
|
|
52
|
-
StopWebcam = "STOP_WEBCAM"
|
|
53
|
-
}
|
|
54
|
-
export declare enum MazingPDState {
|
|
55
|
-
Start = "",
|
|
56
|
-
WaitingAuthentication = "WAITING_AUTH",
|
|
57
|
-
AuthSuccessful = "AUTH_SUCCESS",
|
|
58
|
-
PDLoaded = "PD_LOADED",
|
|
59
|
-
PDUpdated = "NEW_PD",
|
|
60
|
-
AuthError = "AUTH_ERROR",
|
|
61
|
-
PDDataNotFoundError = "PD_ERROR",
|
|
62
|
-
WebcamError = "WEBCAM_ERROR",
|
|
63
|
-
PDCountdown = "PD_COUNTDOWN",
|
|
64
|
-
PDCountdownEnd = "PD_COUNTDOWN_END",
|
|
65
|
-
WebcamStopped = "WEBCAM_STOPPED"
|
|
66
|
-
}
|
|
67
|
-
export declare enum MazingPDOutMessage {
|
|
68
|
-
StartAuthenticationPD = "AUTH_TRY_ON",
|
|
69
|
-
LoadPD = "LOAD_PD",
|
|
70
|
-
StartPD = "START_PD",
|
|
71
|
-
StopWebcam = "STOP_WEBCAM"
|
|
72
|
-
}
|
|
73
|
-
export interface MazingTryOnInMessage {
|
|
74
|
-
type: MazingFrameState;
|
|
75
|
-
value: any;
|
|
76
|
-
}
|
|
77
|
-
export interface MazingFrameProps {
|
|
78
|
-
className?: string;
|
|
79
|
-
outMessageHandler: (e: MessageEvent<any>) => void;
|
|
80
|
-
onReady?: (w: Window) => void;
|
|
81
|
-
}
|
|
82
|
-
export interface MazingTryOnProps {
|
|
83
|
-
className?: string;
|
|
84
|
-
obj: Blob;
|
|
85
|
-
product: TryOnProduct;
|
|
86
|
-
customer: TryOnSeller;
|
|
87
|
-
fineTuningSettings?: TryOnFineTuningMazingSettings;
|
|
88
|
-
initialState?: MazingTryOnInMessage;
|
|
89
|
-
closeFlag: boolean;
|
|
90
|
-
onReady?: () => void;
|
|
91
|
-
onReadyToShow?: () => void;
|
|
92
|
-
onClosed?: () => void;
|
|
93
|
-
}
|
|
94
|
-
export interface MazingPDProps {
|
|
95
|
-
className?: string;
|
|
96
|
-
product: TryOnProduct;
|
|
97
|
-
customer: TryOnSeller;
|
|
98
|
-
initialState?: MazingTryOnInMessage;
|
|
99
|
-
closeFlag: boolean;
|
|
100
|
-
onReady?: () => void;
|
|
101
|
-
onReadyToShow?: () => void;
|
|
102
|
-
onPDUpdated?: (pd: number) => void;
|
|
103
|
-
onClosed?: () => void;
|
|
104
|
-
onClose?: () => void;
|
|
105
|
-
}
|
|
106
|
-
export type MazingFrameState = MazingTryOnState | MazingPDState;
|
|
107
|
-
export declare const MazingFrameComponent: (props: MazingFrameProps) => JSX.Element;
|
|
108
|
-
export declare const MazingTryOnComponent: FunctionComponent<MazingTryOnProps>;
|
|
109
|
-
export declare const MazingPDToolComponent: FunctionComponent<MazingPDProps>;
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import { TryOnFineTuningMazingSettings, TryOnGenericFineTuningSettings, TryOnProduct, TryOnProvider, TryOnSeller, TryOnType } from "../models";
|
|
3
|
+
export declare function parseJSON(json: string): any;
|
|
4
|
+
export declare enum TryOnMode {
|
|
5
|
+
Undefined = 0,
|
|
6
|
+
TryOn = 1,
|
|
7
|
+
PDTool = 2
|
|
8
|
+
}
|
|
9
|
+
export interface TryOnViewerProps {
|
|
10
|
+
mode: TryOnMode;
|
|
11
|
+
onTimeout?: (value: boolean) => void;
|
|
12
|
+
onPDUpdated?: (pd: number) => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export interface VTryOnViewerProps {
|
|
16
|
+
className?: string;
|
|
17
|
+
provider: TryOnProvider;
|
|
18
|
+
type: TryOnType;
|
|
19
|
+
obj: Blob;
|
|
20
|
+
settings?: TryOnGenericFineTuningSettings;
|
|
21
|
+
product: TryOnProduct;
|
|
22
|
+
customer: TryOnSeller;
|
|
23
|
+
onReady?: () => void;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface TryOnPDToolProps {
|
|
27
|
+
className?: string;
|
|
28
|
+
provider: TryOnProvider;
|
|
29
|
+
product: TryOnProduct;
|
|
30
|
+
customer: TryOnSeller;
|
|
31
|
+
onReady?: () => void;
|
|
32
|
+
onPDUpdated?: (pd: number) => void;
|
|
33
|
+
onClose?: () => void;
|
|
34
|
+
}
|
|
35
|
+
export declare const TryOnViewerComponent: FunctionComponent<TryOnViewerProps>;
|
|
36
|
+
export declare const VTryOnViewerComponent: FunctionComponent<VTryOnViewerProps>;
|
|
37
|
+
export declare const TryOnPDToolComponent: FunctionComponent<TryOnPDToolProps>;
|
|
38
|
+
export declare enum MazingTryOnState {
|
|
39
|
+
Start = "",
|
|
40
|
+
WaitingAuthentication = "WAITING_AUTH",
|
|
41
|
+
AuthSuccessful = "AUTH_SUCCESS",
|
|
42
|
+
TryOnLoaded = "MODEL_LOADED",
|
|
43
|
+
AuthError = "AUTH_ERROR",
|
|
44
|
+
WebcamError = "WEBCAM_ERROR",
|
|
45
|
+
ScreenShotTaken = "SCREENSHOT_TAKEN",
|
|
46
|
+
WebcamStopped = "WEBCAM_STOPPED"
|
|
47
|
+
}
|
|
48
|
+
export declare enum MazingTryOnOutMessage {
|
|
49
|
+
StartAuthenticationTryOn = "AUTH_TRY_ON",
|
|
50
|
+
LoadTryOn = "LOAD_MODEL",
|
|
51
|
+
TakeScreenshot = "TAKE_SCREENSHOT",
|
|
52
|
+
StopWebcam = "STOP_WEBCAM"
|
|
53
|
+
}
|
|
54
|
+
export declare enum MazingPDState {
|
|
55
|
+
Start = "",
|
|
56
|
+
WaitingAuthentication = "WAITING_AUTH",
|
|
57
|
+
AuthSuccessful = "AUTH_SUCCESS",
|
|
58
|
+
PDLoaded = "PD_LOADED",
|
|
59
|
+
PDUpdated = "NEW_PD",
|
|
60
|
+
AuthError = "AUTH_ERROR",
|
|
61
|
+
PDDataNotFoundError = "PD_ERROR",
|
|
62
|
+
WebcamError = "WEBCAM_ERROR",
|
|
63
|
+
PDCountdown = "PD_COUNTDOWN",
|
|
64
|
+
PDCountdownEnd = "PD_COUNTDOWN_END",
|
|
65
|
+
WebcamStopped = "WEBCAM_STOPPED"
|
|
66
|
+
}
|
|
67
|
+
export declare enum MazingPDOutMessage {
|
|
68
|
+
StartAuthenticationPD = "AUTH_TRY_ON",
|
|
69
|
+
LoadPD = "LOAD_PD",
|
|
70
|
+
StartPD = "START_PD",
|
|
71
|
+
StopWebcam = "STOP_WEBCAM"
|
|
72
|
+
}
|
|
73
|
+
export interface MazingTryOnInMessage {
|
|
74
|
+
type: MazingFrameState;
|
|
75
|
+
value: any;
|
|
76
|
+
}
|
|
77
|
+
export interface MazingFrameProps {
|
|
78
|
+
className?: string;
|
|
79
|
+
outMessageHandler: (e: MessageEvent<any>) => void;
|
|
80
|
+
onReady?: (w: Window) => void;
|
|
81
|
+
}
|
|
82
|
+
export interface MazingTryOnProps {
|
|
83
|
+
className?: string;
|
|
84
|
+
obj: Blob;
|
|
85
|
+
product: TryOnProduct;
|
|
86
|
+
customer: TryOnSeller;
|
|
87
|
+
fineTuningSettings?: TryOnFineTuningMazingSettings;
|
|
88
|
+
initialState?: MazingTryOnInMessage;
|
|
89
|
+
closeFlag: boolean;
|
|
90
|
+
onReady?: () => void;
|
|
91
|
+
onReadyToShow?: () => void;
|
|
92
|
+
onClosed?: () => void;
|
|
93
|
+
}
|
|
94
|
+
export interface MazingPDProps {
|
|
95
|
+
className?: string;
|
|
96
|
+
product: TryOnProduct;
|
|
97
|
+
customer: TryOnSeller;
|
|
98
|
+
initialState?: MazingTryOnInMessage;
|
|
99
|
+
closeFlag: boolean;
|
|
100
|
+
onReady?: () => void;
|
|
101
|
+
onReadyToShow?: () => void;
|
|
102
|
+
onPDUpdated?: (pd: number) => void;
|
|
103
|
+
onClosed?: () => void;
|
|
104
|
+
onClose?: () => void;
|
|
105
|
+
}
|
|
106
|
+
export type MazingFrameState = MazingTryOnState | MazingPDState;
|
|
107
|
+
export declare const MazingFrameComponent: (props: MazingFrameProps) => JSX.Element;
|
|
108
|
+
export declare const MazingTryOnComponent: FunctionComponent<MazingTryOnProps>;
|
|
109
|
+
export declare const MazingPDToolComponent: FunctionComponent<MazingPDProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface QRCodeGeneratorProps {
|
|
3
|
-
url: string;
|
|
4
|
-
}
|
|
5
|
-
declare const DeepARQrCodeContentContainer: React.FC<QRCodeGeneratorProps>;
|
|
6
|
-
export default DeepARQrCodeContentContainer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface QRCodeGeneratorProps {
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
declare const DeepARQrCodeContentContainer: React.FC<QRCodeGeneratorProps>;
|
|
6
|
+
export default DeepARQrCodeContentContainer;
|
package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnBanuba.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { TryOnProviderProps, ValueOf } from '../tryOnModels';
|
|
3
|
-
export declare const BanubaTryOnReceivedMessage: {
|
|
4
|
-
readonly WaitingAuthentication: "WAITING_AUTH";
|
|
5
|
-
readonly TryOnLoaded: "MODEL_LOADED";
|
|
6
|
-
readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
|
|
7
|
-
readonly WebcamStopped: "WEBCAM_STOPPED";
|
|
8
|
-
readonly Start: "";
|
|
9
|
-
readonly AuthSuccessful: "AUTH_SUCCESS";
|
|
10
|
-
readonly AuthError: "AUTH_ERROR";
|
|
11
|
-
readonly WebcamError: "WEBCAM_ERROR";
|
|
12
|
-
};
|
|
13
|
-
export type BanubaTryOnReceivedMessageType = ValueOf<typeof BanubaTryOnReceivedMessage>;
|
|
14
|
-
export declare const BanubaTryOnResponseMessage: {
|
|
15
|
-
readonly StartAuthenticationTryOn: "AUTH";
|
|
16
|
-
readonly LoadTryOn: "LOAD_MODEL";
|
|
17
|
-
readonly LoadHands: "LOAD_HANDS";
|
|
18
|
-
readonly TakeScreenshot: "TAKE_SCREENSHOT";
|
|
19
|
-
readonly StopWebcam: "STOP_WEBCAM";
|
|
20
|
-
};
|
|
21
|
-
export type BanubaTryOnResponseMessageType = ValueOf<typeof BanubaTryOnResponseMessage>;
|
|
22
|
-
export declare const BanubaTryOn: FunctionComponent<TryOnProviderProps>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { TryOnProviderProps, ValueOf } from '../tryOnModels';
|
|
3
|
+
export declare const BanubaTryOnReceivedMessage: {
|
|
4
|
+
readonly WaitingAuthentication: "WAITING_AUTH";
|
|
5
|
+
readonly TryOnLoaded: "MODEL_LOADED";
|
|
6
|
+
readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
|
|
7
|
+
readonly WebcamStopped: "WEBCAM_STOPPED";
|
|
8
|
+
readonly Start: "";
|
|
9
|
+
readonly AuthSuccessful: "AUTH_SUCCESS";
|
|
10
|
+
readonly AuthError: "AUTH_ERROR";
|
|
11
|
+
readonly WebcamError: "WEBCAM_ERROR";
|
|
12
|
+
};
|
|
13
|
+
export type BanubaTryOnReceivedMessageType = ValueOf<typeof BanubaTryOnReceivedMessage>;
|
|
14
|
+
export declare const BanubaTryOnResponseMessage: {
|
|
15
|
+
readonly StartAuthenticationTryOn: "AUTH";
|
|
16
|
+
readonly LoadTryOn: "LOAD_MODEL";
|
|
17
|
+
readonly LoadHands: "LOAD_HANDS";
|
|
18
|
+
readonly TakeScreenshot: "TAKE_SCREENSHOT";
|
|
19
|
+
readonly StopWebcam: "STOP_WEBCAM";
|
|
20
|
+
};
|
|
21
|
+
export type BanubaTryOnResponseMessageType = ValueOf<typeof BanubaTryOnResponseMessage>;
|
|
22
|
+
export declare const BanubaTryOn: FunctionComponent<TryOnProviderProps>;
|
package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnDeepAR.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { TryOnProviderProps, ValueOf } from '../tryOnModels';
|
|
3
|
-
export declare const DeepARTryOnReceivedMessage: {
|
|
4
|
-
readonly WaitingAuthentication: "WAITING_AUTH";
|
|
5
|
-
readonly TryOnLoaded: "MODEL_LOADED";
|
|
6
|
-
readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
|
|
7
|
-
readonly WebcamStopped: "WEBCAM_STOPPED";
|
|
8
|
-
readonly Start: "";
|
|
9
|
-
readonly AuthSuccessful: "AUTH_SUCCESS";
|
|
10
|
-
readonly AuthError: "AUTH_ERROR";
|
|
11
|
-
readonly WebcamError: "WEBCAM_ERROR";
|
|
12
|
-
};
|
|
13
|
-
export type DeepARTryOnReceivedMessageType = ValueOf<typeof DeepARTryOnReceivedMessage>;
|
|
14
|
-
export declare const DeepARTryOnResponseMessage: {
|
|
15
|
-
readonly StartAuthenticationTryOn: "AUTH";
|
|
16
|
-
readonly LoadTryOn: "LOAD_MODEL";
|
|
17
|
-
readonly LoadHands: "LOAD_HANDS";
|
|
18
|
-
readonly TakeScreenshot: "TAKE_SCREENSHOT";
|
|
19
|
-
readonly StopWebcam: "STOP_WEBCAM";
|
|
20
|
-
};
|
|
21
|
-
export type DeepARTryOnResponseMessageType = ValueOf<typeof DeepARTryOnResponseMessage>;
|
|
22
|
-
export declare const DeepARTryOn: FunctionComponent<TryOnProviderProps>;
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { TryOnProviderProps, ValueOf } from '../tryOnModels';
|
|
3
|
+
export declare const DeepARTryOnReceivedMessage: {
|
|
4
|
+
readonly WaitingAuthentication: "WAITING_AUTH";
|
|
5
|
+
readonly TryOnLoaded: "MODEL_LOADED";
|
|
6
|
+
readonly ScreenShotTaken: "SCREENSHOT_TAKEN";
|
|
7
|
+
readonly WebcamStopped: "WEBCAM_STOPPED";
|
|
8
|
+
readonly Start: "";
|
|
9
|
+
readonly AuthSuccessful: "AUTH_SUCCESS";
|
|
10
|
+
readonly AuthError: "AUTH_ERROR";
|
|
11
|
+
readonly WebcamError: "WEBCAM_ERROR";
|
|
12
|
+
};
|
|
13
|
+
export type DeepARTryOnReceivedMessageType = ValueOf<typeof DeepARTryOnReceivedMessage>;
|
|
14
|
+
export declare const DeepARTryOnResponseMessage: {
|
|
15
|
+
readonly StartAuthenticationTryOn: "AUTH";
|
|
16
|
+
readonly LoadTryOn: "LOAD_MODEL";
|
|
17
|
+
readonly LoadHands: "LOAD_HANDS";
|
|
18
|
+
readonly TakeScreenshot: "TAKE_SCREENSHOT";
|
|
19
|
+
readonly StopWebcam: "STOP_WEBCAM";
|
|
20
|
+
};
|
|
21
|
+
export type DeepARTryOnResponseMessageType = ValueOf<typeof DeepARTryOnResponseMessage>;
|
|
22
|
+
export declare const DeepARTryOn: FunctionComponent<TryOnProviderProps>;
|