zakeke-configurator-react 0.1.349 → 0.1.350
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/environment.d.ts +34 -1
- package/dist/declarations/composer/Module/src/generated/feature-flags.d.ts +83 -0
- package/dist/declarations/composer/Module/src/models.d.ts +1212 -1050
- package/dist/declarations/composer/Module/src/state/provider.d.ts +18 -16
- package/dist/declarations/composer/Module/src/state/providerValue.d.ts +21 -2
- package/dist/globals1.js +1 -1
- package/dist/index.js +6456 -5001
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { FocusAttributesEventListener } from '@zakeke/zakeke-3d-core';
|
|
3
3
|
import { EventMessage, ExtensionFields, NftForm, NftSettings, OnBeforeSendDataToParent, SceneAnimationsConfig, TryOnMode, TryOnProvidersTypesMapping, VisibleEventMessage } from '.';
|
|
4
4
|
import { PlatformAttributeSelection } from './integrations/Integration';
|
|
5
|
-
import { BootParameters, Camera, Composition, FontFamily, Group, ImageMacroCategory, Item, Product, ProductQuantityRule, SellerSettings, Settings, Template, TemplateMacroCategory, TryOnGenericFineTuningSettings, TryOnProduct, TryOnSeller } from './models';
|
|
5
|
+
import { BootParameters, Camera, Composition, FontFamily, Group, ImageMacroCategory, Item, Product, ProductQuantityRule, SellerSettings, Settings, Template, TemplateMacroCategory, TryOnGenericFineTuningSettings, TryOnProduct, TryOnSeller, AIPresetCategory, AIPreset, AIProductStagingRule, AIProductStagingOptions, AIProductStagingResult, AIVirtualTryOnOptions, AIVirtualTryOnResult, AIVirtualModelRule } from './models';
|
|
6
6
|
import { AxiosResponse } from 'axios';
|
|
7
7
|
import { DAMViewerAnalyticsEventType, PrintingMethodsRestrictions, TextSanitationResult, UIConfig, ZakekeImage } from './models';
|
|
8
8
|
declare global {
|
|
@@ -79,6 +79,15 @@ export declare class ZakekeEnvironment {
|
|
|
79
79
|
private copyrightMessageLocalStorageKey;
|
|
80
80
|
private isPupillaryDistanceMandatory;
|
|
81
81
|
isAIEnabled: boolean;
|
|
82
|
+
isAIStudioShoppingPreviewEnabled: boolean;
|
|
83
|
+
isAIStudioEditorEnabled: boolean;
|
|
84
|
+
isAIStudioEnabled: boolean;
|
|
85
|
+
isAiProductStagingEnabled: boolean;
|
|
86
|
+
isAiVtoEnabled: boolean;
|
|
87
|
+
private lastProductStagingGenerationTime;
|
|
88
|
+
private lastVirtualTryonGenerationTime;
|
|
89
|
+
/** Session ID (GUID) persisted for the lifetime of this environment instance, sent as ZKK-Session-ID header */
|
|
90
|
+
private readonly aiSessionId;
|
|
82
91
|
sellerSettings: SellerSettings | null;
|
|
83
92
|
get internalProduct(): MPlaza.Model | null;
|
|
84
93
|
get internalScene(): Zakeke.Scene | null;
|
|
@@ -111,6 +120,7 @@ export declare class ZakekeEnvironment {
|
|
|
111
120
|
cameras: Camera[];
|
|
112
121
|
isExplodedMode: boolean;
|
|
113
122
|
isAssetsLoading: boolean;
|
|
123
|
+
isCompositionSaving: boolean;
|
|
114
124
|
additionalCustomProperties: ExtensionFields[];
|
|
115
125
|
nftSettings: NftSettings | null;
|
|
116
126
|
eventMessages: EventMessage[] | null;
|
|
@@ -401,5 +411,28 @@ export declare class ZakekeEnvironment {
|
|
|
401
411
|
getPrintingMethodsRestrictions: () => PrintingMethodsRestrictions;
|
|
402
412
|
setMouseWheelZoomEnabled: (enabled: boolean) => void;
|
|
403
413
|
setCameraPinchingZoom: (toggle: boolean) => void;
|
|
414
|
+
get isAiEditorEnabled(): boolean;
|
|
415
|
+
startAIStudio: () => Promise<void>;
|
|
416
|
+
private _aiPresetCategoriesPromise;
|
|
417
|
+
private _aiPresetPresetsPromise;
|
|
418
|
+
private fetchAllAIPresetCategories;
|
|
419
|
+
private fetchAllAIPresetPresets;
|
|
420
|
+
getAIPresetCategories: (presetType: string) => Promise<AIPresetCategory[]>;
|
|
421
|
+
getAIPresetPresets: (presetType: string) => Promise<AIPreset[]>;
|
|
422
|
+
getApplicableAIStagingRules: (options: {
|
|
423
|
+
productID?: number;
|
|
424
|
+
printTypeID?: number;
|
|
425
|
+
}) => Promise<AIProductStagingRule | null>;
|
|
426
|
+
getApplicableAIVirtualModelRules: (options: {
|
|
427
|
+
productID?: number;
|
|
428
|
+
printTypeID?: number;
|
|
429
|
+
}) => Promise<AIVirtualModelRule | null>;
|
|
430
|
+
private fetchServicesAvailability;
|
|
431
|
+
private createAIProductStagingTask;
|
|
432
|
+
private pollAIProductStagingTask;
|
|
433
|
+
generateAIProductStaging: (options: AIProductStagingOptions) => Promise<AIProductStagingResult>;
|
|
434
|
+
private createAIVirtualTryonTask;
|
|
435
|
+
private pollAIVirtualTryonTask;
|
|
436
|
+
generateAIVirtualTryon: (options: AIVirtualTryOnOptions) => Promise<AIVirtualTryOnResult>;
|
|
404
437
|
}
|
|
405
438
|
export {};
|
|
@@ -0,0 +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
|
+
};
|