zakeke-configurator-react 0.1.376 → 0.1.377

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.
Files changed (27) hide show
  1. package/dist/declarations/composer/Module/src/api.d.ts +3 -3
  2. package/dist/declarations/composer/Module/src/components/debugs/debugPanel.d.ts +2 -2
  3. package/dist/declarations/composer/Module/src/components/sceneViewer.d.ts +5 -5
  4. package/dist/declarations/composer/Module/src/components/tryon/deepARQrCode.d.ts +6 -6
  5. package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnBanuba.d.ts +22 -22
  6. package/dist/declarations/composer/Module/src/components/tryon/tryOnProviders/tryOnDeepAR.d.ts +22 -22
  7. package/dist/declarations/composer/Module/src/environment.d.ts +444 -444
  8. package/dist/declarations/composer/Module/src/fontsManager.d.ts +75 -75
  9. package/dist/declarations/composer/Module/src/generated/feature-flags.d.ts +83 -83
  10. package/dist/declarations/composer/Module/src/helpers.d.ts +49 -49
  11. package/dist/declarations/composer/Module/src/hooks/tryonContext.d.ts +11 -11
  12. package/dist/declarations/composer/Module/src/imageUploadTask.d.ts +20 -20
  13. package/dist/declarations/composer/Module/src/index.d.ts +11 -11
  14. package/dist/declarations/composer/Module/src/integrations/preview.d.ts +17 -17
  15. package/dist/declarations/composer/Module/src/state/createProviderValue.d.ts +3 -3
  16. package/dist/declarations/composer/Module/src/state/provider.d.ts +18 -18
  17. package/dist/declarations/composer/Module/src/state/providerValue.d.ts +278 -278
  18. package/dist/declarations/composer/Module/src/state/state.d.ts +11 -11
  19. package/dist/declarations/libs/pricingRuleBase/DesignPriceCalculatorRuleBased.d.ts +83 -83
  20. package/dist/globals0.js +1 -1
  21. package/dist/globals1.js +1 -1
  22. package/dist/globals3.js +1 -1
  23. package/dist/index.js +111841 -111992
  24. package/dist/index.js.LICENSE.txt +65 -65
  25. package/dist/index.js.map +1 -1
  26. package/package.json +1 -1
  27. /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 {};