zakeke-configurator-react 0.1.366 → 0.1.368
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/declarations/composer/Module/src/api.d.ts +3 -3
- 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/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 +3 -0
- 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/models.d.ts +1212 -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/state.d.ts +11 -11
- package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +83 -83
- package/dist/globals1.js +1 -1
- package/dist/globals3.js +1 -1
- package/dist/index.js +110623 -110398
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- /package/dist/declarations/composer/Module/src/integrations/{helpers.d.ts → Helpers.d.ts} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Zakeke } from './providerValue';
|
|
2
|
-
import { AppState } from './state';
|
|
3
|
-
export declare const createProviderValue: (state: AppState, dispatch: React.Dispatch<any>) => Zakeke;
|
|
1
|
+
import { Zakeke } from './providerValue';
|
|
2
|
+
import { AppState } from './state';
|
|
3
|
+
export declare const createProviderValue: (state: AppState, dispatch: React.Dispatch<any>) => Zakeke;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React, { Dispatch, FunctionComponent } from 'react';
|
|
2
|
-
import { BootParameters } from 'src';
|
|
3
|
-
import { ZakekeEnvironment } from '../environment';
|
|
4
|
-
import { Zakeke } from './providerValue';
|
|
5
|
-
import { AppState } from './state';
|
|
6
|
-
export declare const context: React.Context<Zakeke | null>;
|
|
7
|
-
declare const useInternalState: () => {
|
|
8
|
-
state: AppState;
|
|
9
|
-
dispatch: Dispatch<any>;
|
|
10
|
-
};
|
|
11
|
-
declare const ZakekeProvider: FunctionComponent<{
|
|
12
|
-
parameters?: BootParameters | null;
|
|
13
|
-
environment: ZakekeEnvironment;
|
|
14
|
-
children?: React.ReactNode | React.ReactElement;
|
|
15
|
-
}>;
|
|
16
|
-
export { ZakekeProvider, useInternalState };
|
|
17
|
-
export type { AIPreset, AIPresetCategory, AIProductStagingRule, AIProductStagingOptions, AIProductStagingResult, AIVirtualTryOnOptions, AIVirtualTryOnResult, AIServicesAvailability, AIVirtualModelRule, AIToolUsageRule, AILimitPeriodType, } from '../models';
|
|
18
|
-
export { AIRateLimitError } from '../models';
|
|
1
|
+
import React, { Dispatch, FunctionComponent } from 'react';
|
|
2
|
+
import { BootParameters } from 'src';
|
|
3
|
+
import { ZakekeEnvironment } from '../environment';
|
|
4
|
+
import { Zakeke } from './providerValue';
|
|
5
|
+
import { AppState } from './state';
|
|
6
|
+
export declare const context: React.Context<Zakeke | null>;
|
|
7
|
+
declare const useInternalState: () => {
|
|
8
|
+
state: AppState;
|
|
9
|
+
dispatch: Dispatch<any>;
|
|
10
|
+
};
|
|
11
|
+
declare const ZakekeProvider: FunctionComponent<{
|
|
12
|
+
parameters?: BootParameters | null;
|
|
13
|
+
environment: ZakekeEnvironment;
|
|
14
|
+
children?: React.ReactNode | React.ReactElement;
|
|
15
|
+
}>;
|
|
16
|
+
export { ZakekeProvider, useInternalState };
|
|
17
|
+
export type { AIPreset, AIPresetCategory, AIProductStagingRule, AIProductStagingOptions, AIProductStagingResult, AIVirtualTryOnOptions, AIVirtualTryOnResult, AIServicesAvailability, AIVirtualModelRule, AIToolUsageRule, AILimitPeriodType, } from '../models';
|
|
18
|
+
export { AIRateLimitError } from '../models';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SceneViewer } from "@zakeke/zakeke-3d-core";
|
|
2
|
-
import { ZakekeEnvironment } from "../environment";
|
|
3
|
-
export interface AppState {
|
|
4
|
-
environment: ZakekeEnvironment;
|
|
5
|
-
sceneViewer: SceneViewer | null;
|
|
6
|
-
isAddToCartLoading: boolean;
|
|
7
|
-
isSceneLoading: boolean;
|
|
8
|
-
parametersReceived: boolean;
|
|
9
|
-
isDebug: boolean;
|
|
10
|
-
customizer: MPlaza.Customizer | null;
|
|
11
|
-
}
|
|
1
|
+
import { SceneViewer } from "@zakeke/zakeke-3d-core";
|
|
2
|
+
import { ZakekeEnvironment } from "../environment";
|
|
3
|
+
export interface AppState {
|
|
4
|
+
environment: ZakekeEnvironment;
|
|
5
|
+
sceneViewer: SceneViewer | null;
|
|
6
|
+
isAddToCartLoading: boolean;
|
|
7
|
+
isSceneLoading: boolean;
|
|
8
|
+
parametersReceived: boolean;
|
|
9
|
+
isDebug: boolean;
|
|
10
|
+
customizer: MPlaza.Customizer | null;
|
|
11
|
+
}
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
interface FormulaModel {
|
|
2
|
-
operator: string;
|
|
3
|
-
values: number[];
|
|
4
|
-
}
|
|
5
|
-
interface PricingRulePropertyModel {
|
|
6
|
-
propertyID: number;
|
|
7
|
-
functionName: string;
|
|
8
|
-
}
|
|
9
|
-
interface IContext {
|
|
10
|
-
sides: any;
|
|
11
|
-
items: any;
|
|
12
|
-
design: MPlaza.Design;
|
|
13
|
-
rule: any;
|
|
14
|
-
}
|
|
15
|
-
export declare class DesignPriceCalculatorRuleFactory {
|
|
16
|
-
static create: (product: any, apiUrl?: string, token?: string, isOwin?: boolean, cloudFlareApiUrl?: string, clientLang?: string) => Promise<DesignPriceCalculatorRuleBased>;
|
|
17
|
-
}
|
|
18
|
-
export declare class DesignPriceCalculatorRuleBased {
|
|
19
|
-
colorID: number;
|
|
20
|
-
private product?;
|
|
21
|
-
private pricings?;
|
|
22
|
-
private pricing?;
|
|
23
|
-
private properties?;
|
|
24
|
-
private config;
|
|
25
|
-
constructor(apiUrl?: string, token?: string, isOwin?: boolean, cloudFlareApiUrl?: string, clientLang?: string);
|
|
26
|
-
init: (product: any) => Promise<void>;
|
|
27
|
-
getPricings: (product: any, callback: (pricings: any, properties?: PricingRulePropertyModel[]) => void) => Promise<void>;
|
|
28
|
-
getPricing: (design: any) => any;
|
|
29
|
-
distinct: (value: any, index: any, self: any) => boolean;
|
|
30
|
-
ElementSizeFunction: (pContext: any, formula: FormulaModel) => {
|
|
31
|
-
result: boolean;
|
|
32
|
-
multiplier: number;
|
|
33
|
-
items: any;
|
|
34
|
-
};
|
|
35
|
-
NumberOfElementsSimplifiedFunction: (pContext: any, formula: FormulaModel) => {
|
|
36
|
-
result: boolean;
|
|
37
|
-
multiplier: any;
|
|
38
|
-
items: any;
|
|
39
|
-
};
|
|
40
|
-
LinesLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
41
|
-
AmountOfElementsFunction: (pContext: any, formula: FormulaModel) => any;
|
|
42
|
-
AmountOfUsedColorsFunction: (pContext: any, formula: FormulaModel) => any;
|
|
43
|
-
PriceByDesignSizeSimplifiedFunction: (pContext: any, formula: FormulaModel) => any;
|
|
44
|
-
PriceByAreaSimplifiedFunction: (pContext: any, formula: FormulaModel) => any;
|
|
45
|
-
CanvasSizeFunction: (pContext: IContext, formula: FormulaModel) => any;
|
|
46
|
-
DesignSizeFunction: (pContext: any, formula: FormulaModel) => any;
|
|
47
|
-
DesignTextLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
48
|
-
CustomizedSidesFunction: (pContext: any, formula: FormulaModel) => any;
|
|
49
|
-
TextLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
50
|
-
conditionsToConditionsGroupByFormula: (conditions: any) => {
|
|
51
|
-
formula: string;
|
|
52
|
-
position: any;
|
|
53
|
-
conditions: any[];
|
|
54
|
-
}[];
|
|
55
|
-
getFunctionName: (properties: any, rule: any) => any;
|
|
56
|
-
GetContextForRule: (rule: any, product: any, design: any, sidesOnWhichThePriceIsEnabled: any, attributeMatchColorId?: number | null) => IContext;
|
|
57
|
-
isUsingAmountOfColors: (printTypeID: number) => boolean;
|
|
58
|
-
getPremiumPhotosPrice: (design: any, quantity: number) => number;
|
|
59
|
-
/**
|
|
60
|
-
* Get Image Price
|
|
61
|
-
*
|
|
62
|
-
* Metodo che calcola il prezzo per le immagini nel design a cui a backoffice
|
|
63
|
-
* è stato valorizzato un prezzo
|
|
64
|
-
*
|
|
65
|
-
* @author f.checchia
|
|
66
|
-
*
|
|
67
|
-
* @param design Il design in input
|
|
68
|
-
* @param {number} quantity La quantità del prodotto che si sta acquistando
|
|
69
|
-
*
|
|
70
|
-
* @return {number} Il prezzo complessivo delle immagini per la quantità
|
|
71
|
-
*
|
|
72
|
-
* */
|
|
73
|
-
getImagePrice: (design: any, quantity: number) => number;
|
|
74
|
-
getMatchedConditions: (design: any, quantity: number, includePercentage: boolean, attributeMatchColorId?: number | null) => any;
|
|
75
|
-
calculate: (design: any, quantity: number, attributeMatchColorId?: number | null, isPricingAdvancedEnabled?: boolean) => number;
|
|
76
|
-
getPricingAdditionalInfo: (printTypeID: number) => {
|
|
77
|
-
description: any;
|
|
78
|
-
priceDescriptionEnabled: any;
|
|
79
|
-
infoPricingText: any;
|
|
80
|
-
priceStructure: any;
|
|
81
|
-
} | undefined;
|
|
82
|
-
}
|
|
83
|
-
export {};
|
|
1
|
+
interface FormulaModel {
|
|
2
|
+
operator: string;
|
|
3
|
+
values: number[];
|
|
4
|
+
}
|
|
5
|
+
interface PricingRulePropertyModel {
|
|
6
|
+
propertyID: number;
|
|
7
|
+
functionName: string;
|
|
8
|
+
}
|
|
9
|
+
interface IContext {
|
|
10
|
+
sides: any;
|
|
11
|
+
items: any;
|
|
12
|
+
design: MPlaza.Design;
|
|
13
|
+
rule: any;
|
|
14
|
+
}
|
|
15
|
+
export declare class DesignPriceCalculatorRuleFactory {
|
|
16
|
+
static create: (product: any, apiUrl?: string, token?: string, isOwin?: boolean, cloudFlareApiUrl?: string, clientLang?: string) => Promise<DesignPriceCalculatorRuleBased>;
|
|
17
|
+
}
|
|
18
|
+
export declare class DesignPriceCalculatorRuleBased {
|
|
19
|
+
colorID: number;
|
|
20
|
+
private product?;
|
|
21
|
+
private pricings?;
|
|
22
|
+
private pricing?;
|
|
23
|
+
private properties?;
|
|
24
|
+
private config;
|
|
25
|
+
constructor(apiUrl?: string, token?: string, isOwin?: boolean, cloudFlareApiUrl?: string, clientLang?: string);
|
|
26
|
+
init: (product: any) => Promise<void>;
|
|
27
|
+
getPricings: (product: any, callback: (pricings: any, properties?: PricingRulePropertyModel[]) => void) => Promise<void>;
|
|
28
|
+
getPricing: (design: any) => any;
|
|
29
|
+
distinct: (value: any, index: any, self: any) => boolean;
|
|
30
|
+
ElementSizeFunction: (pContext: any, formula: FormulaModel) => {
|
|
31
|
+
result: boolean;
|
|
32
|
+
multiplier: number;
|
|
33
|
+
items: any;
|
|
34
|
+
};
|
|
35
|
+
NumberOfElementsSimplifiedFunction: (pContext: any, formula: FormulaModel) => {
|
|
36
|
+
result: boolean;
|
|
37
|
+
multiplier: any;
|
|
38
|
+
items: any;
|
|
39
|
+
};
|
|
40
|
+
LinesLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
41
|
+
AmountOfElementsFunction: (pContext: any, formula: FormulaModel) => any;
|
|
42
|
+
AmountOfUsedColorsFunction: (pContext: any, formula: FormulaModel) => any;
|
|
43
|
+
PriceByDesignSizeSimplifiedFunction: (pContext: any, formula: FormulaModel) => any;
|
|
44
|
+
PriceByAreaSimplifiedFunction: (pContext: any, formula: FormulaModel) => any;
|
|
45
|
+
CanvasSizeFunction: (pContext: IContext, formula: FormulaModel) => any;
|
|
46
|
+
DesignSizeFunction: (pContext: any, formula: FormulaModel) => any;
|
|
47
|
+
DesignTextLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
48
|
+
CustomizedSidesFunction: (pContext: any, formula: FormulaModel) => any;
|
|
49
|
+
TextLengthFunction: (pContext: any, formula: FormulaModel) => any;
|
|
50
|
+
conditionsToConditionsGroupByFormula: (conditions: any) => {
|
|
51
|
+
formula: string;
|
|
52
|
+
position: any;
|
|
53
|
+
conditions: any[];
|
|
54
|
+
}[];
|
|
55
|
+
getFunctionName: (properties: any, rule: any) => any;
|
|
56
|
+
GetContextForRule: (rule: any, product: any, design: any, sidesOnWhichThePriceIsEnabled: any, attributeMatchColorId?: number | null) => IContext;
|
|
57
|
+
isUsingAmountOfColors: (printTypeID: number) => boolean;
|
|
58
|
+
getPremiumPhotosPrice: (design: any, quantity: number) => number;
|
|
59
|
+
/**
|
|
60
|
+
* Get Image Price
|
|
61
|
+
*
|
|
62
|
+
* Metodo che calcola il prezzo per le immagini nel design a cui a backoffice
|
|
63
|
+
* è stato valorizzato un prezzo
|
|
64
|
+
*
|
|
65
|
+
* @author f.checchia
|
|
66
|
+
*
|
|
67
|
+
* @param design Il design in input
|
|
68
|
+
* @param {number} quantity La quantità del prodotto che si sta acquistando
|
|
69
|
+
*
|
|
70
|
+
* @return {number} Il prezzo complessivo delle immagini per la quantità
|
|
71
|
+
*
|
|
72
|
+
* */
|
|
73
|
+
getImagePrice: (design: any, quantity: number) => number;
|
|
74
|
+
getMatchedConditions: (design: any, quantity: number, includePercentage: boolean, attributeMatchColorId?: number | null) => any;
|
|
75
|
+
calculate: (design: any, quantity: number, attributeMatchColorId?: number | null, isPricingAdvancedEnabled?: boolean) => number;
|
|
76
|
+
getPricingAdditionalInfo: (printTypeID: number) => {
|
|
77
|
+
description: any;
|
|
78
|
+
priceDescriptionEnabled: any;
|
|
79
|
+
infoPricingText: any;
|
|
80
|
+
priceStructure: any;
|
|
81
|
+
} | undefined;
|
|
82
|
+
}
|
|
83
|
+
export {};
|