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,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 {};
|