zakeke-configurator-react 0.0.86 → 0.0.89
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.
|
@@ -172,5 +172,5 @@ export declare class ZakekeEnvironment {
|
|
|
172
172
|
clearListeners: () => void;
|
|
173
173
|
setCameraLocked: (isBlocked?: boolean | undefined) => void;
|
|
174
174
|
isSceneTryOnEnabled: () => boolean;
|
|
175
|
-
getTryOnUrl: () => Promise<string>;
|
|
175
|
+
getTryOnUrl: (tryOnUrl?: string | undefined) => Promise<string>;
|
|
176
176
|
}
|
|
@@ -80,7 +80,7 @@ export interface ProviderValue {
|
|
|
80
80
|
IS_ANDROID: boolean;
|
|
81
81
|
IS_IOS: boolean;
|
|
82
82
|
setBackgroundColor: (color: string, alpha: number) => void;
|
|
83
|
-
getTryOnUrl: () => Promise<string>;
|
|
83
|
+
getTryOnUrl: (tryOnUrl?: string) => Promise<string>;
|
|
84
84
|
isSceneTryOnEnabled: () => boolean;
|
|
85
85
|
setCameraLocked: (isBlocked: boolean) => void;
|
|
86
86
|
}
|
package/dist/index.js
CHANGED
|
@@ -48882,7 +48882,9 @@ class ZakekeEnvironment {
|
|
|
48882
48882
|
});
|
|
48883
48883
|
if (option) {
|
|
48884
48884
|
this.selection.selectAttributeValue(attribute.get('attributeID'), option.get('optionID'));
|
|
48885
|
+
// Update here the labels because events are not attached yet (attached below)
|
|
48885
48886
|
platformSelection.attributeLabel = attribute.get("name");
|
|
48887
|
+
platformSelection.optionLabel = option.get("name");
|
|
48886
48888
|
}
|
|
48887
48889
|
}
|
|
48888
48890
|
}
|
|
@@ -50331,15 +50333,15 @@ function compare(_obj1, _obj2) {
|
|
|
50331
50333
|
// We need to expand it
|
|
50332
50334
|
try {
|
|
50333
50335
|
const idJson1 = JSON.parse(obj1.id);
|
|
50334
|
-
if (idJson1.id) {
|
|
50336
|
+
if (typeof idJson1 === 'object' && idJson1.id) {
|
|
50335
50337
|
obj1 = idJson1;
|
|
50338
|
+
console.log("Code is a valid json with Id for obj1, use json instead", obj1, obj2);
|
|
50336
50339
|
}
|
|
50337
|
-
console.log("Code is a valid json with Id for obj1, use json instead", obj1, obj2);
|
|
50338
50340
|
const idJson2 = JSON.parse(obj2.id);
|
|
50339
|
-
if (idJson2.id) {
|
|
50341
|
+
if (typeof idJson2 === 'object' && idJson2.id) {
|
|
50340
50342
|
obj2 = idJson2;
|
|
50343
|
+
console.log("Code is a valid json with Id for obj2, use json instead", obj1, obj2);
|
|
50341
50344
|
}
|
|
50342
|
-
console.log("Code is a valid json with Id for obj2, use json instead", obj1, obj2);
|
|
50343
50345
|
}
|
|
50344
50346
|
catch (ex) { }
|
|
50345
50347
|
// Remove dummy property
|
|
@@ -50367,7 +50369,8 @@ function compare(_obj1, _obj2) {
|
|
|
50367
50369
|
try {
|
|
50368
50370
|
const a = typeof v === "object" ? v : JSON.parse(v);
|
|
50369
50371
|
const b = typeof obj2[k] === "object" ? obj2[k] : JSON.parse(obj2[k]);
|
|
50370
|
-
|
|
50372
|
+
if (typeof a == 'object' && typeof b == 'object')
|
|
50373
|
+
same = compare(a, b);
|
|
50371
50374
|
}
|
|
50372
50375
|
catch (_a) { }
|
|
50373
50376
|
}
|