zakeke-configurator-react 0.0.113 → 0.0.115
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.
|
@@ -17,6 +17,11 @@ interface ThemeCompositions {
|
|
|
17
17
|
previewImageUrl: string;
|
|
18
18
|
tags: string[];
|
|
19
19
|
}
|
|
20
|
+
interface CurrentCompositionInfo {
|
|
21
|
+
compositionId: string | null;
|
|
22
|
+
compositionName: string | null;
|
|
23
|
+
compositionTags: string[] | null;
|
|
24
|
+
}
|
|
20
25
|
export declare class ZakekeEnvironment {
|
|
21
26
|
private token;
|
|
22
27
|
private platformAttributesSelection;
|
|
@@ -42,6 +47,7 @@ export declare class ZakekeEnvironment {
|
|
|
42
47
|
private savedCompositions;
|
|
43
48
|
private initialSelection;
|
|
44
49
|
currentAttributesSelection: Object | null;
|
|
50
|
+
currentCompositionInfo: CurrentCompositionInfo | null;
|
|
45
51
|
sellerSettings: SellerSettings | null;
|
|
46
52
|
get internalProduct(): MPlaza.Model | null;
|
|
47
53
|
get internalScene(): Zakeke.Scene | null;
|
|
@@ -296,6 +296,26 @@ export interface SellerSettings {
|
|
|
296
296
|
hidePrice: boolean;
|
|
297
297
|
hotjarSiteID: string | null;
|
|
298
298
|
googleTagManagerID: string | null;
|
|
299
|
+
canSaveDraftComposition: boolean;
|
|
300
|
+
canUndoRedo: boolean;
|
|
301
|
+
shareType: number | null;
|
|
302
|
+
}
|
|
303
|
+
export declare class CompositionItem {
|
|
304
|
+
attributeID: number;
|
|
305
|
+
attributeName: string;
|
|
306
|
+
attributeCode: string;
|
|
307
|
+
selectedOptionName: string;
|
|
308
|
+
selectedOptionCode: string;
|
|
309
|
+
}
|
|
310
|
+
export declare class Composition {
|
|
311
|
+
name: string;
|
|
312
|
+
docID: string;
|
|
313
|
+
compositionID: number;
|
|
314
|
+
compositionItems: CompositionItem[];
|
|
315
|
+
previewImageUrl: string;
|
|
316
|
+
designID: number | null;
|
|
317
|
+
tags: string[];
|
|
318
|
+
static fromJSON(json: any): Composition;
|
|
299
319
|
}
|
|
300
320
|
export interface OnBeforeSendDataToParent {
|
|
301
321
|
composition: number;
|
|
@@ -314,4 +334,19 @@ export interface TemplateUploadRestrictictions {
|
|
|
314
334
|
isEpsAllowed: boolean;
|
|
315
335
|
isPdfWithRasterAllowed: boolean;
|
|
316
336
|
}
|
|
337
|
+
export declare class SelectedOption {
|
|
338
|
+
attributeID: number;
|
|
339
|
+
optionID: number;
|
|
340
|
+
}
|
|
341
|
+
export declare enum ExtensionFieldDataType {
|
|
342
|
+
Money = 1,
|
|
343
|
+
Integer = 2,
|
|
344
|
+
Decimal = 3
|
|
345
|
+
}
|
|
346
|
+
export interface ExtensionFields {
|
|
347
|
+
name: string;
|
|
348
|
+
value: number;
|
|
349
|
+
label: string;
|
|
350
|
+
formatString: string;
|
|
351
|
+
}
|
|
317
352
|
export {};
|
|
@@ -50,6 +50,11 @@ export interface ProviderValue {
|
|
|
50
50
|
formatString: string;
|
|
51
51
|
}[] | null;
|
|
52
52
|
currentAttributesSelection: object | null;
|
|
53
|
+
currentCompositionInfo: {
|
|
54
|
+
compositionId: string | null;
|
|
55
|
+
compositionName: string | null;
|
|
56
|
+
compositionTags: string[] | null;
|
|
57
|
+
} | null;
|
|
53
58
|
selectOption: (optionId: number) => void;
|
|
54
59
|
internalAppendViewer: (container: HTMLElement) => void;
|
|
55
60
|
designUpdate: () => void;
|
package/dist/index.js
CHANGED
|
@@ -24935,6 +24935,7 @@ class ZakekeEnvironment {
|
|
|
24935
24935
|
this.sharedCompositionDocId = null;
|
|
24936
24936
|
this.savedCompositions = null;
|
|
24937
24937
|
this.currentAttributesSelection = null;
|
|
24938
|
+
this.currentCompositionInfo = null;
|
|
24938
24939
|
this.sellerSettings = null;
|
|
24939
24940
|
this.themeCompositions = null;
|
|
24940
24941
|
this.currency = 'EUR';
|
|
@@ -26589,6 +26590,15 @@ class ZakekeEnvironment {
|
|
|
26589
26590
|
this.templates = yield this.getTemplates();
|
|
26590
26591
|
this.setTemplate(this.templates[0].id);
|
|
26591
26592
|
}
|
|
26593
|
+
if (!this.currentCompositionInfo)
|
|
26594
|
+
this.currentCompositionInfo = {
|
|
26595
|
+
compositionId: "",
|
|
26596
|
+
compositionName: "",
|
|
26597
|
+
compositionTags: []
|
|
26598
|
+
};
|
|
26599
|
+
this.currentCompositionInfo.compositionId = this.compositionId;
|
|
26600
|
+
this.currentCompositionInfo.compositionName = this.composition.get("name");
|
|
26601
|
+
this.currentCompositionInfo.compositionTags = this.composition.get("tags");
|
|
26592
26602
|
});
|
|
26593
26603
|
this.loadSavedComposition = (docID) => __awaiter(this, void 0, void 0, function* () {
|
|
26594
26604
|
var _q;
|
|
@@ -28187,6 +28197,7 @@ const createProviderValue = (state, dispatch) => {
|
|
|
28187
28197
|
eventMessages: state.environment.eventMessages,
|
|
28188
28198
|
isAssetsLoading: state.environment.isAssetsLoading,
|
|
28189
28199
|
extensionFields: state.environment.extensionFields,
|
|
28200
|
+
currentCompositionInfo: state.environment.currentCompositionInfo,
|
|
28190
28201
|
saveComposition: state.environment.saveComposition,
|
|
28191
28202
|
loadComposition: state.environment.loadComposition,
|
|
28192
28203
|
getPDF: state.environment.getPDF.bind(state.environment),
|