zakeke-configurator-react 0.1.364 → 0.1.365

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 (25) 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 +6 -0
  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/models.d.ts +1212 -1212
  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 +6 -0
  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/globals1.js +1 -1
  21. package/dist/globals3.js +1 -1
  22. package/dist/index.js +112145 -112015
  23. package/dist/index.js.map +1 -1
  24. package/package.json +1 -1
  25. /package/dist/declarations/composer/Module/src/integrations/{Helpers.d.ts → helpers.d.ts} +0 -0
@@ -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,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,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;
@@ -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>;
@@ -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>;
@@ -192,6 +192,12 @@ export declare class ZakekeEnvironment {
192
192
  playAnimations: () => void;
193
193
  loadSceneFromGlbUrl: (glbUrl: string, sceneConfig: Zakeke.SceneConfig) => Promise<void>;
194
194
  appendViewer: (container: HTMLElement) => void;
195
+ /**
196
+ * Forces a resize of the 3D viewer canvas to match its container.
197
+ * Call this from the theme after all UI components have finished rendering
198
+ * to fix canvas buffer/display size mismatches caused by layout reflows.
199
+ */
200
+ forceViewerResize: () => void;
195
201
  setHighlightSettings: (settings: {
196
202
  color: string;
197
203
  size: number;
@@ -1,75 +1,75 @@
1
- import { FontFamily, FontFamilyFace, TextSanitationResult } from '.';
2
- /**
3
- * Download a list of font families so that are available for the browser
4
- *
5
- * @param fontFamilies List of font families to download
6
- * @returns A promise that resolves when all fonts are downloaded
7
- */
8
- export declare function loadFonts(fontFamilies: FontFamily[]): Promise<void>;
9
- /**
10
- * Downlod all fonts used in a design
11
- *
12
- * @param design Design to load fonts for
13
- * @param downloadedFonts A list of downloaded fonts
14
- */
15
- export declare function downloadFontsOfDesign(design: MPlaza.Design, downloadedFonts: FontFamily[]): Promise<void>;
16
- /**
17
- * Remove invalid characters from the text.
18
- * Invalid characters include backspace (\x08) and null (\u0000) characters.
19
- *
20
- * @param text The text to remove invalid characters from
21
- * @returns The text without invalid characters
22
- */
23
- export declare function removeInvalidCharactersFromText(text: string): string;
24
- /**
25
- * Remove unsupported characters from the text.
26
- * Unsupported characters include characters that cannot be displayed or processed correctly.
27
- * @param face The font to check character support
28
- * @param text The text to remove unsupported characters from
29
- * @returns The text without unsupported characters
30
- */
31
- export declare function sanitizeString(face: FontFamilyFace, string: string): string;
32
- /**
33
- * Remove unsupported characters from the text and return a list of removed characters.
34
- * Unsupported characters include characters that cannot be displayed or processed correctly.
35
- * @param face The font to check character support
36
- * @param text The text to remove unsupported characters from
37
- * @returns The text without unsupported characters and a list of removed characters
38
- */
39
- export declare function sanitizeText(face: FontFamilyFace, text: string): TextSanitationResult;
40
- /**
41
- * Remove invalid characters from the text based on the font file.
42
- * Invalid characters include whitespace or characters that are not supported by the font.
43
- *
44
- * @param text The text to remove invalid characters from
45
- * @param fontFile The font file used to check character support
46
- * @returns The text without invalid characters
47
- */
48
- export declare function removeInvalidCharacters(text: string, fontFile: any): string;
49
- /**
50
- * Get the parsed file from a font
51
- *
52
- * @param face The font to get the parsed file from
53
- * @returns The parsed file
54
- */
55
- export declare function getParsedFileFromFont(face: FontFamilyFace): import("./models").FontFamilyFaceFiles | undefined;
56
- /**
57
- * Remove unsupported characters from the text.
58
- * Unsupported characters include characters that cannot be displayed or processed correctly.
59
- * @param text The text to remove unsupported characters from
60
- * @returns The text without unsupported characters
61
- */
62
- export declare function removeUnsupportedCharacters(text: string, currentFont: FontFamilyFace): string;
63
- /**
64
- * Remove textual emojis from the text.
65
- * Textual emojis include emojis that are made up of multiple characters.
66
- * @param text The text to remove textual emojis from
67
- * @returns The text without textual emojis
68
- */
69
- export declare function removeTextualEmojisFromText(text: string): string;
70
- /**
71
- * Remove emojis from the text.
72
- * @param text The text to remove emojis from
73
- * @returns The text without emojis
74
- */
75
- export declare function removeEmojisFromText(text: string): string;
1
+ import { FontFamily, FontFamilyFace, TextSanitationResult } from '.';
2
+ /**
3
+ * Download a list of font families so that are available for the browser
4
+ *
5
+ * @param fontFamilies List of font families to download
6
+ * @returns A promise that resolves when all fonts are downloaded
7
+ */
8
+ export declare function loadFonts(fontFamilies: FontFamily[]): Promise<void>;
9
+ /**
10
+ * Downlod all fonts used in a design
11
+ *
12
+ * @param design Design to load fonts for
13
+ * @param downloadedFonts A list of downloaded fonts
14
+ */
15
+ export declare function downloadFontsOfDesign(design: MPlaza.Design, downloadedFonts: FontFamily[]): Promise<void>;
16
+ /**
17
+ * Remove invalid characters from the text.
18
+ * Invalid characters include backspace (\x08) and null (\u0000) characters.
19
+ *
20
+ * @param text The text to remove invalid characters from
21
+ * @returns The text without invalid characters
22
+ */
23
+ export declare function removeInvalidCharactersFromText(text: string): string;
24
+ /**
25
+ * Remove unsupported characters from the text.
26
+ * Unsupported characters include characters that cannot be displayed or processed correctly.
27
+ * @param face The font to check character support
28
+ * @param text The text to remove unsupported characters from
29
+ * @returns The text without unsupported characters
30
+ */
31
+ export declare function sanitizeString(face: FontFamilyFace, string: string): string;
32
+ /**
33
+ * Remove unsupported characters from the text and return a list of removed characters.
34
+ * Unsupported characters include characters that cannot be displayed or processed correctly.
35
+ * @param face The font to check character support
36
+ * @param text The text to remove unsupported characters from
37
+ * @returns The text without unsupported characters and a list of removed characters
38
+ */
39
+ export declare function sanitizeText(face: FontFamilyFace, text: string): TextSanitationResult;
40
+ /**
41
+ * Remove invalid characters from the text based on the font file.
42
+ * Invalid characters include whitespace or characters that are not supported by the font.
43
+ *
44
+ * @param text The text to remove invalid characters from
45
+ * @param fontFile The font file used to check character support
46
+ * @returns The text without invalid characters
47
+ */
48
+ export declare function removeInvalidCharacters(text: string, fontFile: any): string;
49
+ /**
50
+ * Get the parsed file from a font
51
+ *
52
+ * @param face The font to get the parsed file from
53
+ * @returns The parsed file
54
+ */
55
+ export declare function getParsedFileFromFont(face: FontFamilyFace): import("./models").FontFamilyFaceFiles | undefined;
56
+ /**
57
+ * Remove unsupported characters from the text.
58
+ * Unsupported characters include characters that cannot be displayed or processed correctly.
59
+ * @param text The text to remove unsupported characters from
60
+ * @returns The text without unsupported characters
61
+ */
62
+ export declare function removeUnsupportedCharacters(text: string, currentFont: FontFamilyFace): string;
63
+ /**
64
+ * Remove textual emojis from the text.
65
+ * Textual emojis include emojis that are made up of multiple characters.
66
+ * @param text The text to remove textual emojis from
67
+ * @returns The text without textual emojis
68
+ */
69
+ export declare function removeTextualEmojisFromText(text: string): string;
70
+ /**
71
+ * Remove emojis from the text.
72
+ * @param text The text to remove emojis from
73
+ * @returns The text without emojis
74
+ */
75
+ export declare function removeEmojisFromText(text: string): string;
@@ -1,83 +1,83 @@
1
- export interface FeatureFlag {
2
- enabled: boolean;
3
- conditions: Record<string, any>;
4
- description: string;
5
- lastModified: string;
6
- }
7
- export interface FeatureFlags {
8
- readonly aIEPSToSvg: FeatureFlag;
9
- readonly accessibilityWidget: FeatureFlag;
10
- readonly additionalAttributes: FeatureFlag;
11
- readonly backgroundRemover: FeatureFlag;
12
- readonly bulkUnitPrice: FeatureFlag;
13
- readonly convertToCurrencyForMasterIntegration: FeatureFlag;
14
- readonly designWithAI: FeatureFlag;
15
- readonly eCommerceVariantImages: FeatureFlag;
16
- readonly filledText: FeatureFlag;
17
- readonly imageAI: FeatureFlag;
18
- readonly imageVectorize: FeatureFlag;
19
- readonly jsonProductsImport: FeatureFlag;
20
- readonly newConfiguratorBackoffice: FeatureFlag;
21
- readonly orderErrors: FeatureFlag;
22
- readonly pDFTOSVG: FeatureFlag;
23
- readonly salesChannelsOnBulk: FeatureFlag;
24
- readonly shopifyRedactProducts: FeatureFlag;
25
- readonly storageFeature: FeatureFlag;
26
- readonly svgClipEnabled: FeatureFlag;
27
- readonly wooCommerceNonGlobalAttributes: FeatureFlag;
28
- readonly switchSalesChannel: FeatureFlag;
29
- }
30
- export declare const FEATURE_FLAGS: FeatureFlags;
31
- export declare function isFeatureEnabled(flagName: keyof FeatureFlags): boolean;
32
- export declare function getFeatureConditions(flagName: keyof FeatureFlags): Record<string, any>;
33
- export declare function isFeatureEnabledWithConditions(flagName: keyof FeatureFlags, userContext?: Record<string, any>): boolean;
34
- export declare const AI_EPS_TO_SVG_FEATURE: FeatureFlag;
35
- export declare const ACCESSIBILITY_WIDGET_FEATURE: FeatureFlag;
36
- export declare const ADDITIONAL_ATTRIBUTES_FEATURE: FeatureFlag;
37
- export declare const BACKGROUND_REMOVER_FEATURE: FeatureFlag;
38
- export declare const BULK_UNIT_PRICE_FEATURE: FeatureFlag;
39
- export declare const CONVERT_TO_CURRENCY_FOR_MASTER_INTEGRATION_FEATURE: FeatureFlag;
40
- export declare const DESIGN_WITH_AI_FEATURE: FeatureFlag;
41
- export declare const ECOMMERCE_VARIANT_IMAGES_FEATURE: FeatureFlag;
42
- export declare const FILLED_TEXT_FEATURE: FeatureFlag;
43
- export declare const IMAGE_AI_FEATURE: FeatureFlag;
44
- export declare const IMAGE_VECTORIZE_FEATURE: FeatureFlag;
45
- export declare const JSON_PRODUCTS_IMPORT_FEATURE: FeatureFlag;
46
- export declare const NEW_CONFIGURATOR_BACKOFFICE_FEATURE: FeatureFlag;
47
- export declare const ORDER_ERRORS_FEATURE: FeatureFlag;
48
- export declare const PDF_TO_SVG_FEATURE: FeatureFlag;
49
- export declare const SALES_CHANNELS_ON_BULK_FEATURE: FeatureFlag;
50
- export declare const SHOPIFY_REDACT_PRODUCTS_FEATURE: FeatureFlag;
51
- export declare const STORAGE_FEATURE_FEATURE: FeatureFlag;
52
- export declare const SVG_CLIP_ENABLED_FEATURE: FeatureFlag;
53
- export declare const WOO_COMMERCE_NON_GLOBAL_ATTRIBUTES_FEATURE: FeatureFlag;
54
- export declare const SWITCH_SALES_CHANNEL_FEATURE: FeatureFlag;
55
- export declare enum FeatureFlagNames {
56
- AI_EPS_TO_SVG = "aIEPSToSvg",
57
- ACCESSIBILITY_WIDGET = "accessibilityWidget",
58
- ADDITIONAL_ATTRIBUTES = "additionalAttributes",
59
- BACKGROUND_REMOVER = "backgroundRemover",
60
- BULK_UNIT_PRICE = "bulkUnitPrice",
61
- CONVERT_TO_CURRENCY_FOR_MASTER_INTEGRATION = "convertToCurrencyForMasterIntegration",
62
- DESIGN_WITH_AI = "designWithAI",
63
- ECOMMERCE_VARIANT_IMAGES = "eCommerceVariantImages",
64
- FILLED_TEXT = "filledText",
65
- IMAGE_AI = "imageAI",
66
- IMAGE_VECTORIZE = "imageVectorize",
67
- JSON_PRODUCTS_IMPORT = "jsonProductsImport",
68
- NEW_CONFIGURATOR_BACKOFFICE = "newConfiguratorBackoffice",
69
- ORDER_ERRORS = "orderErrors",
70
- PDF_TO_SVG = "pDFTOSVG",
71
- SALES_CHANNELS_ON_BULK = "salesChannelsOnBulk",
72
- SHOPIFY_REDACT_PRODUCTS = "shopifyRedactProducts",
73
- STORAGE_FEATURE = "storageFeature",
74
- SVG_CLIP_ENABLED = "svgClipEnabled",
75
- WOO_COMMERCE_NON_GLOBAL_ATTRIBUTES = "wooCommerceNonGlobalAttributes",
76
- SWITCH_SALES_CHANNEL = "switchSalesChannel"
77
- }
78
- export declare const FEATURE_FLAGS_METADATA: {
79
- readonly generatedAt: "2025-12-19T11:29:22.999Z";
80
- readonly totalFlags: 21;
81
- readonly enabledFlags: 21;
82
- readonly flagNames: readonly ["AI_EPS_ToSvg", "AccessibilityWidget", "AdditionalAttributes", "BackgroundRemover", "BulkUnitPrice", "ConvertToCurrencyForMasterIntegration", "DesignWithAI", "ECommerceVariantImages", "FilledText", "ImageAI", "ImageVectorize", "JsonProductsImport", "NewConfiguratorBackoffice", "OrderErrors", "PDF_TO_SVG", "SalesChannelsOnBulk", "ShopifyRedactProducts", "StorageFeature", "SvgClipEnabled", "WooCommerceNonGlobalAttributes", "switchSalesChannel"];
83
- };
1
+ export interface FeatureFlag {
2
+ enabled: boolean;
3
+ conditions: Record<string, any>;
4
+ description: string;
5
+ lastModified: string;
6
+ }
7
+ export interface FeatureFlags {
8
+ readonly aIEPSToSvg: FeatureFlag;
9
+ readonly accessibilityWidget: FeatureFlag;
10
+ readonly additionalAttributes: FeatureFlag;
11
+ readonly backgroundRemover: FeatureFlag;
12
+ readonly bulkUnitPrice: FeatureFlag;
13
+ readonly convertToCurrencyForMasterIntegration: FeatureFlag;
14
+ readonly designWithAI: FeatureFlag;
15
+ readonly eCommerceVariantImages: FeatureFlag;
16
+ readonly filledText: FeatureFlag;
17
+ readonly imageAI: FeatureFlag;
18
+ readonly imageVectorize: FeatureFlag;
19
+ readonly jsonProductsImport: FeatureFlag;
20
+ readonly newConfiguratorBackoffice: FeatureFlag;
21
+ readonly orderErrors: FeatureFlag;
22
+ readonly pDFTOSVG: FeatureFlag;
23
+ readonly salesChannelsOnBulk: FeatureFlag;
24
+ readonly shopifyRedactProducts: FeatureFlag;
25
+ readonly storageFeature: FeatureFlag;
26
+ readonly svgClipEnabled: FeatureFlag;
27
+ readonly wooCommerceNonGlobalAttributes: FeatureFlag;
28
+ readonly switchSalesChannel: FeatureFlag;
29
+ }
30
+ export declare const FEATURE_FLAGS: FeatureFlags;
31
+ export declare function isFeatureEnabled(flagName: keyof FeatureFlags): boolean;
32
+ export declare function getFeatureConditions(flagName: keyof FeatureFlags): Record<string, any>;
33
+ export declare function isFeatureEnabledWithConditions(flagName: keyof FeatureFlags, userContext?: Record<string, any>): boolean;
34
+ export declare const AI_EPS_TO_SVG_FEATURE: FeatureFlag;
35
+ export declare const ACCESSIBILITY_WIDGET_FEATURE: FeatureFlag;
36
+ export declare const ADDITIONAL_ATTRIBUTES_FEATURE: FeatureFlag;
37
+ export declare const BACKGROUND_REMOVER_FEATURE: FeatureFlag;
38
+ export declare const BULK_UNIT_PRICE_FEATURE: FeatureFlag;
39
+ export declare const CONVERT_TO_CURRENCY_FOR_MASTER_INTEGRATION_FEATURE: FeatureFlag;
40
+ export declare const DESIGN_WITH_AI_FEATURE: FeatureFlag;
41
+ export declare const ECOMMERCE_VARIANT_IMAGES_FEATURE: FeatureFlag;
42
+ export declare const FILLED_TEXT_FEATURE: FeatureFlag;
43
+ export declare const IMAGE_AI_FEATURE: FeatureFlag;
44
+ export declare const IMAGE_VECTORIZE_FEATURE: FeatureFlag;
45
+ export declare const JSON_PRODUCTS_IMPORT_FEATURE: FeatureFlag;
46
+ export declare const NEW_CONFIGURATOR_BACKOFFICE_FEATURE: FeatureFlag;
47
+ export declare const ORDER_ERRORS_FEATURE: FeatureFlag;
48
+ export declare const PDF_TO_SVG_FEATURE: FeatureFlag;
49
+ export declare const SALES_CHANNELS_ON_BULK_FEATURE: FeatureFlag;
50
+ export declare const SHOPIFY_REDACT_PRODUCTS_FEATURE: FeatureFlag;
51
+ export declare const STORAGE_FEATURE_FEATURE: FeatureFlag;
52
+ export declare const SVG_CLIP_ENABLED_FEATURE: FeatureFlag;
53
+ export declare const WOO_COMMERCE_NON_GLOBAL_ATTRIBUTES_FEATURE: FeatureFlag;
54
+ export declare const SWITCH_SALES_CHANNEL_FEATURE: FeatureFlag;
55
+ export declare enum FeatureFlagNames {
56
+ AI_EPS_TO_SVG = "aIEPSToSvg",
57
+ ACCESSIBILITY_WIDGET = "accessibilityWidget",
58
+ ADDITIONAL_ATTRIBUTES = "additionalAttributes",
59
+ BACKGROUND_REMOVER = "backgroundRemover",
60
+ BULK_UNIT_PRICE = "bulkUnitPrice",
61
+ CONVERT_TO_CURRENCY_FOR_MASTER_INTEGRATION = "convertToCurrencyForMasterIntegration",
62
+ DESIGN_WITH_AI = "designWithAI",
63
+ ECOMMERCE_VARIANT_IMAGES = "eCommerceVariantImages",
64
+ FILLED_TEXT = "filledText",
65
+ IMAGE_AI = "imageAI",
66
+ IMAGE_VECTORIZE = "imageVectorize",
67
+ JSON_PRODUCTS_IMPORT = "jsonProductsImport",
68
+ NEW_CONFIGURATOR_BACKOFFICE = "newConfiguratorBackoffice",
69
+ ORDER_ERRORS = "orderErrors",
70
+ PDF_TO_SVG = "pDFTOSVG",
71
+ SALES_CHANNELS_ON_BULK = "salesChannelsOnBulk",
72
+ SHOPIFY_REDACT_PRODUCTS = "shopifyRedactProducts",
73
+ STORAGE_FEATURE = "storageFeature",
74
+ SVG_CLIP_ENABLED = "svgClipEnabled",
75
+ WOO_COMMERCE_NON_GLOBAL_ATTRIBUTES = "wooCommerceNonGlobalAttributes",
76
+ SWITCH_SALES_CHANNEL = "switchSalesChannel"
77
+ }
78
+ export declare const FEATURE_FLAGS_METADATA: {
79
+ readonly generatedAt: "2025-12-19T11:29:22.999Z";
80
+ readonly totalFlags: 21;
81
+ readonly enabledFlags: 21;
82
+ readonly flagNames: readonly ["AI_EPS_ToSvg", "AccessibilityWidget", "AdditionalAttributes", "BackgroundRemover", "BulkUnitPrice", "ConvertToCurrencyForMasterIntegration", "DesignWithAI", "ECommerceVariantImages", "FilledText", "ImageAI", "ImageVectorize", "JsonProductsImport", "NewConfiguratorBackoffice", "OrderErrors", "PDF_TO_SVG", "SalesChannelsOnBulk", "ShopifyRedactProducts", "StorageFeature", "SvgClipEnabled", "WooCommerceNonGlobalAttributes", "switchSalesChannel"];
83
+ };
@@ -1,49 +1,49 @@
1
- import { FontFamily, PlatformSettings, TextItem } from './models';
2
- export declare function dataURLtoFile(dataurl: any, filename: any): File;
3
- export declare class StringHelper {
4
- static padLeft(str: string | number, width: number, char: string): string;
5
- static padRight(str: string | number, width: number, char: string): string;
6
- static format(str: string, ...args: string[]): string;
7
- static camelToSnake(o: any): any[] | {
8
- [key: string]: {
9
- val: any;
10
- };
11
- };
12
- static pascalToCamel(o: any): any[] | {
13
- [key: string]: {
14
- val: any;
15
- };
16
- };
17
- }
18
- export declare class Browser {
19
- static openWindow(url: string, width: number, height: number): Window | null;
20
- }
21
- export declare class Pagination {
22
- static nextPage(headerLink: string): string | null;
23
- }
24
- export declare function hex2rgb(c: string): {
25
- r: number;
26
- g: number;
27
- b: number;
28
- };
29
- export declare function rgb2hex(r: any, g: any, b: any): string;
30
- export declare function rgbToHsl(r: any, g: any, b: any): any[];
31
- export declare function hslToRgb(h: any, s: any, l: any): number[];
32
- export declare function hue2rgb(p: any, q: any, t: any): any;
33
- export declare function rgbToHsv(r: any, g: any, b: any): any[];
34
- export declare function hsvToRgb(h: any, s: any, v: any): number[];
35
- export declare const iOS: boolean;
36
- export declare function copy(obj: any): any;
37
- export declare function compare(_obj1: any, _obj2: any): any;
38
- export declare function isValidJSON(code: string): boolean;
39
- export declare function isPlatformCode(code: string): any;
40
- export declare function matchCodes(code1: string, code2: string): any;
41
- export declare function getPlatformSettings(): PlatformSettings;
42
- export declare const IS_ANDROID: boolean;
43
- export declare const IS_IOS: boolean;
44
- export declare const IS_AR_DEVICE_COMPLIANT: boolean;
45
- export declare function uuid(): string;
46
- export declare function sleep(ms: number): Promise<unknown>;
47
- export declare function ascComparator(getProp: (item: any) => string): (a: any, b: any) => 0 | 1 | -1;
48
- export declare function getNavigatorQueryParams(): URLSearchParams;
49
- export declare const sanitizeTextFromUnsupportedAndEmojiCharacters: (item: TextItem, text: string, fonts: FontFamily[]) => string;
1
+ import { FontFamily, PlatformSettings, TextItem } from './models';
2
+ export declare function dataURLtoFile(dataurl: any, filename: any): File;
3
+ export declare class StringHelper {
4
+ static padLeft(str: string | number, width: number, char: string): string;
5
+ static padRight(str: string | number, width: number, char: string): string;
6
+ static format(str: string, ...args: string[]): string;
7
+ static camelToSnake(o: any): any[] | {
8
+ [key: string]: {
9
+ val: any;
10
+ };
11
+ };
12
+ static pascalToCamel(o: any): any[] | {
13
+ [key: string]: {
14
+ val: any;
15
+ };
16
+ };
17
+ }
18
+ export declare class Browser {
19
+ static openWindow(url: string, width: number, height: number): Window | null;
20
+ }
21
+ export declare class Pagination {
22
+ static nextPage(headerLink: string): string | null;
23
+ }
24
+ export declare function hex2rgb(c: string): {
25
+ r: number;
26
+ g: number;
27
+ b: number;
28
+ };
29
+ export declare function rgb2hex(r: any, g: any, b: any): string;
30
+ export declare function rgbToHsl(r: any, g: any, b: any): any[];
31
+ export declare function hslToRgb(h: any, s: any, l: any): number[];
32
+ export declare function hue2rgb(p: any, q: any, t: any): any;
33
+ export declare function rgbToHsv(r: any, g: any, b: any): any[];
34
+ export declare function hsvToRgb(h: any, s: any, v: any): number[];
35
+ export declare const iOS: boolean;
36
+ export declare function copy(obj: any): any;
37
+ export declare function compare(_obj1: any, _obj2: any): any;
38
+ export declare function isValidJSON(code: string): boolean;
39
+ export declare function isPlatformCode(code: string): any;
40
+ export declare function matchCodes(code1: string, code2: string): any;
41
+ export declare function getPlatformSettings(): PlatformSettings;
42
+ export declare const IS_ANDROID: boolean;
43
+ export declare const IS_IOS: boolean;
44
+ export declare const IS_AR_DEVICE_COMPLIANT: boolean;
45
+ export declare function uuid(): string;
46
+ export declare function sleep(ms: number): Promise<unknown>;
47
+ export declare function ascComparator(getProp: (item: any) => string): (a: any, b: any) => 0 | 1 | -1;
48
+ export declare function getNavigatorQueryParams(): URLSearchParams;
49
+ export declare const sanitizeTextFromUnsupportedAndEmojiCharacters: (item: TextItem, text: string, fonts: FontFamily[]) => string;
@@ -1,11 +1,11 @@
1
- import { TryOnMode, ZakekeTryOnExposedMethods } from "../components/tryon/tryOnModels";
2
- export interface ZakekeTryOnContext {
3
- tryon: ZakekeTryOnExposedMethods;
4
- setTryon: (tryon: ZakekeTryOnExposedMethods) => void;
5
- tryOnPickedMode: TryOnMode;
6
- setTryOnPickedMode: (mode: TryOnMode) => void;
7
- tryOnVisibility: boolean;
8
- setTryOnVisibility: (visibility: boolean) => void;
9
- }
10
- export declare const TryOnContext: import("react").Context<ZakekeTryOnContext>;
11
- export declare const useZakekeTryOn: () => ZakekeTryOnContext;
1
+ import { TryOnMode, ZakekeTryOnExposedMethods } from "../components/tryon/tryOnModels";
2
+ export interface ZakekeTryOnContext {
3
+ tryon: ZakekeTryOnExposedMethods;
4
+ setTryon: (tryon: ZakekeTryOnExposedMethods) => void;
5
+ tryOnPickedMode: TryOnMode;
6
+ setTryOnPickedMode: (mode: TryOnMode) => void;
7
+ tryOnVisibility: boolean;
8
+ setTryOnVisibility: (visibility: boolean) => void;
9
+ }
10
+ export declare const TryOnContext: import("react").Context<ZakekeTryOnContext>;
11
+ export declare const useZakekeTryOn: () => ZakekeTryOnContext;
@@ -1,20 +1,20 @@
1
- declare const MPlaza: any;
2
- interface ImageTaskOptions {
3
- convertEpsToSvg: boolean;
4
- convertPdfToSvg: boolean;
5
- convertAiToSvg: boolean;
6
- IsPdfWithRasterAllowed: boolean;
7
- }
8
- export default class ImageUploadTask {
9
- culture: string;
10
- token: string;
11
- options: ImageTaskOptions;
12
- constructor(culture: string, token: string, options?: ImageTaskOptions);
13
- upload: (file: File, onProgress?: ((progress: number) => void) | undefined) => Promise<any[] | null | undefined>;
14
- addPrintingOptions: (printingOptions: MPlaza.PrintTypes | undefined) => void;
15
- private uploadFileChunked;
16
- private resumableUpload;
17
- private createImageTask;
18
- private getImageFromTask;
19
- }
20
- export {};
1
+ declare const MPlaza: any;
2
+ interface ImageTaskOptions {
3
+ convertEpsToSvg: boolean;
4
+ convertPdfToSvg: boolean;
5
+ convertAiToSvg: boolean;
6
+ IsPdfWithRasterAllowed: boolean;
7
+ }
8
+ export default class ImageUploadTask {
9
+ culture: string;
10
+ token: string;
11
+ options: ImageTaskOptions;
12
+ constructor(culture: string, token: string, options?: ImageTaskOptions);
13
+ upload: (file: File, onProgress?: ((progress: number) => void) | undefined) => Promise<any[] | null | undefined>;
14
+ addPrintingOptions: (printingOptions: MPlaza.PrintTypes | undefined) => void;
15
+ private uploadFileChunked;
16
+ private resumableUpload;
17
+ private createImageTask;
18
+ private getImageFromTask;
19
+ }
20
+ export {};