zakeke-configurator-react 0.0.205 → 0.0.207

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.
@@ -47,7 +47,8 @@ export declare enum TryOnFineTuningMazingEnvironment {
47
47
  Neutral = "neutral.hdr",
48
48
  Light = "light.hdr",
49
49
  Bright = "bright.hdr",
50
- Studio = "studio.hdr"
50
+ Studio = "studio.hdr",
51
+ Court = "court.hdr"
51
52
  }
52
53
  export interface TryOnFineTuningSettings {
53
54
  scale: number;
@@ -79,7 +79,8 @@ export declare enum TryOnFineTuningMazingEnvironment {
79
79
  Neutral = "neutral.hdr",
80
80
  Light = "light.hdr",
81
81
  Bright = "bright.hdr",
82
- Studio = "studio.hdr"
82
+ Studio = "studio.hdr",
83
+ Court = "court.hdr"
83
84
  }
84
85
  export interface TryOnFineTuningSettings {
85
86
  scale: number;
@@ -352,6 +353,7 @@ export interface Settings {
352
353
  eventMessages: EventMessage[];
353
354
  nftSettings: NftSettings;
354
355
  brand: boolean;
356
+ isPdfEpsEnabled: boolean;
355
357
  }
356
358
  export declare class EventMessage {
357
359
  eventID: EventMessageType;
package/dist/index.js CHANGED
@@ -46254,6 +46254,7 @@ var TryOnFineTuningMazingEnvironment = /*#__PURE__*/function (TryOnFineTuningMaz
46254
46254
  TryOnFineTuningMazingEnvironment["Light"] = "light.hdr";
46255
46255
  TryOnFineTuningMazingEnvironment["Bright"] = "bright.hdr";
46256
46256
  TryOnFineTuningMazingEnvironment["Studio"] = "studio.hdr";
46257
+ TryOnFineTuningMazingEnvironment["Court"] = "court.hdr";
46257
46258
  return TryOnFineTuningMazingEnvironment;
46258
46259
  }({});
46259
46260
 
@@ -61640,8 +61641,8 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
61640
61641
 
61641
61642
 
61642
61643
  var TryOnOverlay = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tbackground-color: black;\n\topacity: 0.5;\n\tleft: 0;\n\ttop: 0;\n\tz-index: 3;\n"])));
61643
- var TryOnViewContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\tbackground-color: white;\n\tz-index: 100;\n\tleft: 0%;\n\ttop: 0%;\n"])));
61644
- var PupillaryDistanceViewContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\tbackground-color: white;\n\tz-index: 100;\n\tleft: 0%;\n\ttop: 0%;\n"])));
61644
+ var TryOnViewContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\tbackground-color: white;\n\tz-index: 6;\n\tleft: 0%;\n\ttop: 0%;\n"])));
61645
+ var PupillaryDistanceViewContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\tbackground-color: white;\n\tz-index: 6;\n\tleft: 0%;\n\ttop: 0%;\n"])));
61645
61646
  var ZakekeTryOnViewer = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) {
61646
61647
  var _stateRef$current;
61647
61648
  var internalState = (0,_state_provider__WEBPACK_IMPORTED_MODULE_3__.useInternalState)();
@@ -63809,7 +63810,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
63809
63810
  _this.renderDesign();
63810
63811
  });
63811
63812
  _defineProperty(this, "getTemplateUploadRestrictictions", function (templateId, areaId) {
63812
- var _getUploadRestriction, _getUploadRestriction2, _getUploadRestriction3, _getUploadRestriction4, _getUploadRestriction5, _getUploadRestriction6, _getUploadRestriction7;
63813
+ var _ref33, _ref34, _getUploadRestriction, _getUploadRestriction2, _getUploadRestriction3, _getUploadRestriction4, _getUploadRestriction5, _getUploadRestriction6, _getUploadRestriction7;
63813
63814
  var design = _this.zkTemplates.find(function (x) {
63814
63815
  return x.get('templateDesignID') == templateId;
63815
63816
  });
@@ -63819,12 +63820,12 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
63819
63820
  var _designSide$get, _design$get;
63820
63821
  if (designSide && designSide.get('uploadRestrictions')) return (_designSide$get = designSide.get('uploadRestrictions')) === null || _designSide$get === void 0 ? void 0 : _designSide$get[restriction];else if (design.get('uploadRestrictions')) (_design$get = design.get('uploadRestrictions')) === null || _design$get === void 0 ? void 0 : _design$get[restriction];else return null;
63821
63822
  };
63822
- var pdfAddonEnabled = _this.settings.addons.find(function (x) {
63823
+ var pdfAddonEnabled = (_ref33 = _this.settings.addons.find(function (x) {
63823
63824
  return x.addonName === 'PDF' || x.addonName === 'PDF_EPS';
63824
- });
63825
- var epsAddonEnabled = _this.settings.addons.find(function (x) {
63825
+ }) || _this.settings.isPdfEpsEnabled) !== null && _ref33 !== void 0 ? _ref33 : false;
63826
+ var epsAddonEnabled = (_ref34 = _this.settings.addons.find(function (x) {
63826
63827
  return x.addonName === 'EPS' || x.addonName === 'PDF_EPS';
63827
- });
63828
+ }) || _this.settings.isPdfEpsEnabled) !== null && _ref34 !== void 0 ? _ref34 : false;
63828
63829
  return {
63829
63830
  isUserImageAllowed: (_getUploadRestriction = getUploadRestriction('isUserImageAllowed')) !== null && _getUploadRestriction !== void 0 ? _getUploadRestriction : true,
63830
63831
  isJpgAllowed: (_getUploadRestriction2 = getUploadRestriction('isJpgAllowed')) !== null && _getUploadRestriction2 !== void 0 ? _getUploadRestriction2 : true,
@@ -63841,7 +63842,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
63841
63842
  while (1) switch (_context33.prev = _context33.next) {
63842
63843
  case 0:
63843
63844
  return _context33.abrupt("return", new Promise( /*#__PURE__*/function () {
63844
- var _ref34 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(resolve, reject) {
63845
+ var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee31(resolve, reject) {
63845
63846
  var templatesList, templates, _iterator5, _step5, _template, template;
63846
63847
  return _regeneratorRuntime().wrap(function _callee31$(_context32) {
63847
63848
  while (1) switch (_context32.prev = _context32.next) {
@@ -63895,7 +63896,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
63895
63896
  }, _callee31, null, [[6, 20, 23, 26]]);
63896
63897
  }));
63897
63898
  return function (_x17, _x18) {
63898
- return _ref34.apply(this, arguments);
63899
+ return _ref36.apply(this, arguments);
63899
63900
  };
63900
63901
  }()));
63901
63902
  case 1:
@@ -63926,7 +63927,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
63926
63927
  })));
63927
63928
  // Get single template
63928
63929
  _defineProperty(this, "getTemplate", /*#__PURE__*/function () {
63929
- var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(templateId) {
63930
+ var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee35(templateId) {
63930
63931
  return _regeneratorRuntime().wrap(function _callee35$(_context36) {
63931
63932
  while (1) switch (_context36.prev = _context36.next) {
63932
63933
  case 0:
@@ -63967,7 +63968,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
63967
63968
  }, _callee35);
63968
63969
  }));
63969
63970
  return function (_x19) {
63970
- return _ref36.apply(this, arguments);
63971
+ return _ref38.apply(this, arguments);
63971
63972
  };
63972
63973
  }());
63973
63974
  // Public methods
@@ -64007,7 +64008,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64007
64008
  }
64008
64009
  });
64009
64010
  _defineProperty(this, "focusAttribute", /*#__PURE__*/function () {
64010
- var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(attributeId) {
64011
+ var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(attributeId) {
64011
64012
  var unselectedOptionsActions, attribute;
64012
64013
  return _regeneratorRuntime().wrap(function _callee36$(_context37) {
64013
64014
  while (1) switch (_context37.prev = _context37.next) {
@@ -64030,7 +64031,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64030
64031
  }, _callee36);
64031
64032
  }));
64032
64033
  return function (_x20) {
64033
- return _ref37.apply(this, arguments);
64034
+ return _ref39.apply(this, arguments);
64034
64035
  };
64035
64036
  }());
64036
64037
  _defineProperty(this, "base64StringToFile", function (base64String, filename) {
@@ -64048,7 +64049,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64048
64049
  });
64049
64050
  });
64050
64051
  _defineProperty(this, "saveTemplate", /*#__PURE__*/function () {
64051
- var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(templateName, selectedCategoryID, attributeOptions) {
64052
+ var _ref40 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee37(templateName, selectedCategoryID, attributeOptions) {
64052
64053
  var attributes, compositionItems, categories, mapping, templateGroup, group, step, attributesWithoutGroup;
64053
64054
  return _regeneratorRuntime().wrap(function _callee37$(_context38) {
64054
64055
  while (1) switch (_context38.prev = _context38.next) {
@@ -64114,11 +64115,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64114
64115
  }, _callee37);
64115
64116
  }));
64116
64117
  return function (_x21, _x22, _x23) {
64117
- return _ref38.apply(this, arguments);
64118
+ return _ref40.apply(this, arguments);
64118
64119
  };
64119
64120
  }());
64120
64121
  _defineProperty(this, "addToCart", /*#__PURE__*/function () {
64121
- var _ref39 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(additionalProperties, onBeforeSendDataToParent, legacyScreenshot, nftForm) {
64122
+ var _ref41 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee38(additionalProperties, onBeforeSendDataToParent, legacyScreenshot, nftForm) {
64122
64123
  var _this$zkScene3;
64123
64124
  var compositionClientPreviews, sortedBuyScreenshotCameras, buyScreenshotCameras, _iterator6, _step6, camera, preview, formData, file, previewCameraFile;
64124
64125
  return _regeneratorRuntime().wrap(function _callee38$(_context39) {
@@ -64233,7 +64234,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64233
64234
  }, _callee38, null, [[10, 32, 35, 38]]);
64234
64235
  }));
64235
64236
  return function (_x24, _x25, _x26, _x27) {
64236
- return _ref39.apply(this, arguments);
64237
+ return _ref41.apply(this, arguments);
64237
64238
  };
64238
64239
  }());
64239
64240
  _defineProperty(this, "zoomIn", function () {
@@ -64309,7 +64310,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64309
64310
  }, _callee40);
64310
64311
  })));
64311
64312
  _defineProperty(this, "exportSceneToUsdz", /*#__PURE__*/function () {
64312
- var _ref42 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(hash) {
64313
+ var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee41(hash) {
64313
64314
  return _regeneratorRuntime().wrap(function _callee41$(_context42) {
64314
64315
  while (1) switch (_context42.prev = _context42.next) {
64315
64316
  case 0:
@@ -64325,7 +64326,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64325
64326
  }, _callee41);
64326
64327
  }));
64327
64328
  return function (_x28) {
64328
- return _ref42.apply(this, arguments);
64329
+ return _ref44.apply(this, arguments);
64329
64330
  };
64330
64331
  }());
64331
64332
  _defineProperty(this, "exportSceneToGlb", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee42() {
@@ -64340,7 +64341,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64340
64341
  }, _callee42);
64341
64342
  })));
64342
64343
  _defineProperty(this, "setExplodedMode", /*#__PURE__*/function () {
64343
- var _ref44 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(explodedMode) {
64344
+ var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(explodedMode) {
64344
64345
  return _regeneratorRuntime().wrap(function _callee43$(_context44) {
64345
64346
  while (1) switch (_context44.prev = _context44.next) {
64346
64347
  case 0:
@@ -64369,7 +64370,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64369
64370
  }, _callee43);
64370
64371
  }));
64371
64372
  return function (_x29) {
64372
- return _ref44.apply(this, arguments);
64373
+ return _ref46.apply(this, arguments);
64373
64374
  };
64374
64375
  }());
64375
64376
  _defineProperty(this, "hasExplodedMode", function () {
@@ -64452,7 +64453,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64452
64453
  _this.trigger('change');
64453
64454
  });
64454
64455
  _defineProperty(this, "removeItem", /*#__PURE__*/function () {
64455
- var _ref46 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(guid) {
64456
+ var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee45(guid) {
64456
64457
  return _regeneratorRuntime().wrap(function _callee45$(_context46) {
64457
64458
  while (1) switch (_context46.prev = _context46.next) {
64458
64459
  case 0:
@@ -64472,7 +64473,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64472
64473
  }, _callee45);
64473
64474
  }));
64474
64475
  return function (_x30) {
64475
- return _ref46.apply(this, arguments);
64476
+ return _ref48.apply(this, arguments);
64476
64477
  };
64477
64478
  }());
64478
64479
  _defineProperty(this, "setItemText", function (guid, text) {
@@ -64496,7 +64497,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64496
64497
  } else throw 'Called set item color but no viewer or viewer not ready';
64497
64498
  });
64498
64499
  _defineProperty(this, "setItemFontFamily", /*#__PURE__*/function () {
64499
- var _ref47 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(guid, fontFamily) {
64500
+ var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee46(guid, fontFamily) {
64500
64501
  var font;
64501
64502
  return _regeneratorRuntime().wrap(function _callee46$(_context47) {
64502
64503
  while (1) switch (_context47.prev = _context47.next) {
@@ -64533,7 +64534,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64533
64534
  }, _callee46);
64534
64535
  }));
64535
64536
  return function (_x31, _x32) {
64536
- return _ref47.apply(this, arguments);
64537
+ return _ref49.apply(this, arguments);
64537
64538
  };
64538
64539
  }());
64539
64540
  _defineProperty(this, "setItemTextOnPath", function (guid, areaId, value) {
@@ -64543,7 +64544,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64543
64544
  } else throw 'Called toggleItemTextOnPath but no viewer or viewer not ready';
64544
64545
  });
64545
64546
  _defineProperty(this, "createImage", /*#__PURE__*/function () {
64546
- var _ref48 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(file, progress) {
64547
+ var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee47(file, progress) {
64547
64548
  var imageTask, result, image;
64548
64549
  return _regeneratorRuntime().wrap(function _callee47$(_context48) {
64549
64550
  while (1) switch (_context48.prev = _context48.next) {
@@ -64568,11 +64569,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64568
64569
  }, _callee47);
64569
64570
  }));
64570
64571
  return function (_x33, _x34) {
64571
- return _ref48.apply(this, arguments);
64572
+ return _ref50.apply(this, arguments);
64572
64573
  };
64573
64574
  }());
64574
64575
  _defineProperty(this, "createImageFromUrl", /*#__PURE__*/function () {
64575
- var _ref49 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(url) {
64576
+ var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee48(url) {
64576
64577
  var result;
64577
64578
  return _regeneratorRuntime().wrap(function _callee48$(_context49) {
64578
64579
  while (1) switch (_context49.prev = _context49.next) {
@@ -64597,11 +64598,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64597
64598
  }, _callee48);
64598
64599
  }));
64599
64600
  return function (_x35) {
64600
- return _ref49.apply(this, arguments);
64601
+ return _ref51.apply(this, arguments);
64601
64602
  };
64602
64603
  }());
64603
64604
  _defineProperty(this, "addItemImage", /*#__PURE__*/function () {
64604
- var _ref50 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(id, areaId) {
64605
+ var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee49(id, areaId) {
64605
64606
  return _regeneratorRuntime().wrap(function _callee49$(_context50) {
64606
64607
  while (1) switch (_context50.prev = _context50.next) {
64607
64608
  case 0:
@@ -64627,11 +64628,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64627
64628
  }, _callee49);
64628
64629
  }));
64629
64630
  return function (_x36, _x37) {
64630
- return _ref50.apply(this, arguments);
64631
+ return _ref52.apply(this, arguments);
64631
64632
  };
64632
64633
  }());
64633
64634
  _defineProperty(this, "setItemImageFromFile", /*#__PURE__*/function () {
64634
- var _ref51 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(guid, file, progress) {
64635
+ var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee50(guid, file, progress) {
64635
64636
  var image;
64636
64637
  return _regeneratorRuntime().wrap(function _callee50$(_context51) {
64637
64638
  while (1) switch (_context51.prev = _context51.next) {
@@ -64659,12 +64660,12 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64659
64660
  }, _callee50);
64660
64661
  }));
64661
64662
  return function (_x38, _x39, _x40) {
64662
- return _ref51.apply(this, arguments);
64663
+ return _ref53.apply(this, arguments);
64663
64664
  };
64664
64665
  }());
64665
64666
  // For preview only!!
64666
64667
  _defineProperty(this, "setItemImageFromBase64", /*#__PURE__*/function () {
64667
- var _ref52 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(guid, base64) {
64668
+ var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee51(guid, base64) {
64668
64669
  var image;
64669
64670
  return _regeneratorRuntime().wrap(function _callee51$(_context52) {
64670
64671
  while (1) switch (_context52.prev = _context52.next) {
@@ -64691,16 +64692,16 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64691
64692
  }, _callee51);
64692
64693
  }));
64693
64694
  return function (_x41, _x42) {
64694
- return _ref52.apply(this, arguments);
64695
+ return _ref54.apply(this, arguments);
64695
64696
  };
64696
64697
  }());
64697
64698
  _defineProperty(this, "setItemImage", /*#__PURE__*/function () {
64698
- var _ref53 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(guid, id) {
64699
+ var _ref55 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee54(guid, id) {
64699
64700
  return _regeneratorRuntime().wrap(function _callee54$(_context55) {
64700
64701
  while (1) switch (_context55.prev = _context55.next) {
64701
64702
  case 0:
64702
64703
  return _context55.abrupt("return", new Promise( /*#__PURE__*/function () {
64703
- var _ref54 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(resolve, reject) {
64704
+ var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee53(resolve, reject) {
64704
64705
  var image;
64705
64706
  return _regeneratorRuntime().wrap(function _callee53$(_context54) {
64706
64707
  while (1) switch (_context54.prev = _context54.next) {
@@ -64748,7 +64749,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64748
64749
  }, _callee53);
64749
64750
  }));
64750
64751
  return function (_x45, _x46) {
64751
- return _ref54.apply(this, arguments);
64752
+ return _ref56.apply(this, arguments);
64752
64753
  };
64753
64754
  }()));
64754
64755
  case 1:
@@ -64758,7 +64759,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64758
64759
  }, _callee54);
64759
64760
  }));
64760
64761
  return function (_x43, _x44) {
64761
- return _ref53.apply(this, arguments);
64762
+ return _ref55.apply(this, arguments);
64762
64763
  };
64763
64764
  }());
64764
64765
  _defineProperty(this, "getMacroCategories", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee55() {
@@ -64794,7 +64795,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64794
64795
  }, _callee55);
64795
64796
  })));
64796
64797
  _defineProperty(this, "getImages", /*#__PURE__*/function () {
64797
- var _ref56 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(categoryId) {
64798
+ var _ref58 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee56(categoryId) {
64798
64799
  return _regeneratorRuntime().wrap(function _callee56$(_context57) {
64799
64800
  while (1) switch (_context57.prev = _context57.next) {
64800
64801
  case 0:
@@ -64814,7 +64815,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64814
64815
  }, _callee56);
64815
64816
  }));
64816
64817
  return function (_x50) {
64817
- return _ref56.apply(this, arguments);
64818
+ return _ref58.apply(this, arguments);
64818
64819
  };
64819
64820
  }());
64820
64821
  _defineProperty(this, "getPDF", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee57() {
@@ -64842,11 +64843,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64842
64843
  });
64843
64844
  selectedOptions = _this.platformAttributesSelection.filter(function (x) {
64844
64845
  return x.attributeIsEnabled && x.attributeIsEnabled;
64845
- }).map(function (_ref58) {
64846
- var attributeLabel = _ref58.attributeLabel,
64847
- attributeCode = _ref58.attributeCode,
64848
- optionCode = _ref58.optionCode,
64849
- optionLabel = _ref58.optionLabel;
64846
+ }).map(function (_ref60) {
64847
+ var attributeLabel = _ref60.attributeLabel,
64848
+ attributeCode = _ref60.attributeCode,
64849
+ optionCode = _ref60.optionCode,
64850
+ optionLabel = _ref60.optionLabel;
64850
64851
  return {
64851
64852
  attributeLabel: attributeLabel,
64852
64853
  attributeCode: !(0,_helpers__WEBPACK_IMPORTED_MODULE_7__.isPlatformCode)(attributeCode) ? attributeCode : '',
@@ -64918,7 +64919,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64918
64919
  }, _callee58);
64919
64920
  })));
64920
64921
  _defineProperty(this, "saveCompositionCopy", /*#__PURE__*/function () {
64921
- var _ref60 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee59(isSharing) {
64922
+ var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee59(isSharing) {
64922
64923
  var docId, designDocId, currentTemplate, newCompositionDocId;
64923
64924
  return _regeneratorRuntime().wrap(function _callee59$(_context60) {
64924
64925
  while (1) switch (_context60.prev = _context60.next) {
@@ -64948,11 +64949,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64948
64949
  }, _callee59);
64949
64950
  }));
64950
64951
  return function (_x51) {
64951
- return _ref60.apply(this, arguments);
64952
+ return _ref62.apply(this, arguments);
64952
64953
  };
64953
64954
  }());
64954
64955
  _defineProperty(this, "getOnlineScreenshot", /*#__PURE__*/function () {
64955
- var _ref61 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee60(width, height, legacyScreenshot, backgroundColor) {
64956
+ var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee60(width, height, legacyScreenshot, backgroundColor) {
64956
64957
  var padding,
64957
64958
  preview,
64958
64959
  originalUrl,
@@ -64984,7 +64985,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
64984
64985
  }, _callee60);
64985
64986
  }));
64986
64987
  return function (_x52, _x53, _x54, _x55) {
64987
- return _ref61.apply(this, arguments);
64988
+ return _ref63.apply(this, arguments);
64988
64989
  };
64989
64990
  }());
64990
64991
  // AR - Augmented Reality
@@ -65051,7 +65052,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65051
65052
  })) === null || _this$zkScene5$get$fi === void 0 ? void 0 : _this$zkScene5$get$fi.get('url');
65052
65053
  });
65053
65054
  _defineProperty(this, "getQrCodeArUrl", /*#__PURE__*/function () {
65054
- var _ref62 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee61(device) {
65055
+ var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee61(device) {
65055
65056
  var fileInfos, url, glb, usdz;
65056
65057
  return _regeneratorRuntime().wrap(function _callee61$(_context62) {
65057
65058
  while (1) switch (_context62.prev = _context62.next) {
@@ -65114,11 +65115,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65114
65115
  }, _callee61);
65115
65116
  }));
65116
65117
  return function (_x56) {
65117
- return _ref62.apply(this, arguments);
65118
+ return _ref64.apply(this, arguments);
65118
65119
  };
65119
65120
  }());
65120
65121
  _defineProperty(this, "getMobileArUrl", /*#__PURE__*/function () {
65121
- var _ref63 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee62(onFlyArUrl) {
65122
+ var _ref65 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee62(onFlyArUrl) {
65122
65123
  var url;
65123
65124
  return _regeneratorRuntime().wrap(function _callee62$(_context63) {
65124
65125
  while (1) switch (_context63.prev = _context63.next) {
@@ -65159,7 +65160,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65159
65160
  }, _callee62);
65160
65161
  }));
65161
65162
  return function (_x57) {
65162
- return _ref63.apply(this, arguments);
65163
+ return _ref65.apply(this, arguments);
65163
65164
  };
65164
65165
  }());
65165
65166
  _defineProperty(this, "getMobileLocalArUrl", function (onFlyArUrl) {
@@ -65167,7 +65168,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65167
65168
  if (_this.zkScene && _this.viewer) {
65168
65169
  var fileId = _this.zkScene.getSceneID();
65169
65170
  _this.viewer.getSceneRootUrl().then( /*#__PURE__*/function () {
65170
- var _ref64 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee63(rootUrl) {
65171
+ var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee63(rootUrl) {
65171
65172
  var url;
65172
65173
  return _regeneratorRuntime().wrap(function _callee63$(_context64) {
65173
65174
  while (1) switch (_context64.prev = _context64.next) {
@@ -65219,7 +65220,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65219
65220
  }, _callee63);
65220
65221
  }));
65221
65222
  return function (_x58) {
65222
- return _ref64.apply(this, arguments);
65223
+ return _ref66.apply(this, arguments);
65223
65224
  };
65224
65225
  }());
65225
65226
  }
@@ -65423,7 +65424,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65423
65424
  }
65424
65425
  });
65425
65426
  _defineProperty(this, "saveComposition", /*#__PURE__*/function () {
65426
- var _ref66 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee65(customPreviewSize, legacyScreenshot, isSharing) {
65427
+ var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee65(customPreviewSize, legacyScreenshot, isSharing) {
65427
65428
  var _this$zkScene6, _customPreviewSize$cu, _customPreviewSize$cu2;
65428
65429
  var buyScreenshotCamera, data, design, designItems, itemsNotPlaceholders, nonStaticElementsCount;
65429
65430
  return _regeneratorRuntime().wrap(function _callee65$(_context66) {
@@ -65494,11 +65495,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65494
65495
  }, _callee65);
65495
65496
  }));
65496
65497
  return function (_x59, _x60, _x61) {
65497
- return _ref66.apply(this, arguments);
65498
+ return _ref68.apply(this, arguments);
65498
65499
  };
65499
65500
  }());
65500
65501
  _defineProperty(this, "bootstrapComposition", /*#__PURE__*/function () {
65501
- var _ref67 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee66(composition) {
65502
+ var _ref69 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee66(composition) {
65502
65503
  return _regeneratorRuntime().wrap(function _callee66$(_context67) {
65503
65504
  while (1) switch (_context67.prev = _context67.next) {
65504
65505
  case 0:
@@ -65522,11 +65523,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65522
65523
  }, _callee66);
65523
65524
  }));
65524
65525
  return function (_x62) {
65525
- return _ref67.apply(this, arguments);
65526
+ return _ref69.apply(this, arguments);
65526
65527
  };
65527
65528
  }());
65528
65529
  _defineProperty(this, "loadSavedComposition", /*#__PURE__*/function () {
65529
- var _ref68 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee67(docID) {
65530
+ var _ref70 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee67(docID) {
65530
65531
  var _this$savedCompositio;
65531
65532
  var composition;
65532
65533
  return _regeneratorRuntime().wrap(function _callee67$(_context68) {
@@ -65548,7 +65549,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65548
65549
  }, _callee67);
65549
65550
  }));
65550
65551
  return function (_x63) {
65551
- return _ref68.apply(this, arguments);
65552
+ return _ref70.apply(this, arguments);
65552
65553
  };
65553
65554
  }());
65554
65555
  _defineProperty(this, "updateSavedCompositions", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee68() {
@@ -65588,7 +65589,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65588
65589
  return themeCompositions;
65589
65590
  });
65590
65591
  _defineProperty(this, "saveDraftsComposition", /*#__PURE__*/function () {
65591
- var _ref70 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee69(name, tags, isCopy) {
65592
+ var _ref72 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee69(name, tags, isCopy) {
65592
65593
  return _regeneratorRuntime().wrap(function _callee69$(_context70) {
65593
65594
  while (1) switch (_context70.prev = _context70.next) {
65594
65595
  case 0:
@@ -65616,11 +65617,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65616
65617
  }, _callee69);
65617
65618
  }));
65618
65619
  return function (_x64, _x65, _x66) {
65619
- return _ref70.apply(this, arguments);
65620
+ return _ref72.apply(this, arguments);
65620
65621
  };
65621
65622
  }());
65622
65623
  _defineProperty(this, "deleteSavedComposition", /*#__PURE__*/function () {
65623
- var _ref71 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee70(docId) {
65624
+ var _ref73 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee70(docId) {
65624
65625
  return _regeneratorRuntime().wrap(function _callee70$(_context71) {
65625
65626
  while (1) switch (_context71.prev = _context71.next) {
65626
65627
  case 0:
@@ -65635,11 +65636,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65635
65636
  }, _callee70);
65636
65637
  }));
65637
65638
  return function (_x67) {
65638
- return _ref71.apply(this, arguments);
65639
+ return _ref73.apply(this, arguments);
65639
65640
  };
65640
65641
  }());
65641
65642
  _defineProperty(this, "applyTemplate", /*#__PURE__*/function () {
65642
- var _ref72 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee71(templateGroupCompositionId) {
65643
+ var _ref74 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee71(templateGroupCompositionId) {
65643
65644
  var result, compositionItems, compositionItemsFromTemplate, newCompositionItems;
65644
65645
  return _regeneratorRuntime().wrap(function _callee71$(_context72) {
65645
65646
  while (1) switch (_context72.prev = _context72.next) {
@@ -65685,11 +65686,11 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65685
65686
  }, _callee71, null, [[0, 16]]);
65686
65687
  }));
65687
65688
  return function (_x68) {
65688
- return _ref72.apply(this, arguments);
65689
+ return _ref74.apply(this, arguments);
65689
65690
  };
65690
65691
  }());
65691
65692
  _defineProperty(this, "configureByAI", /*#__PURE__*/function () {
65692
- var _ref73 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee72(text) {
65693
+ var _ref75 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee72(text) {
65693
65694
  var response, _iterator11, _step11, _loop7;
65694
65695
  return _regeneratorRuntime().wrap(function _callee72$(_context74) {
65695
65696
  while (1) switch (_context74.prev = _context74.next) {
@@ -65765,7 +65766,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65765
65766
  }, _callee72, null, [[0, 22], [5, 14, 17, 20]]);
65766
65767
  }));
65767
65768
  return function (_x69) {
65768
- return _ref73.apply(this, arguments);
65769
+ return _ref75.apply(this, arguments);
65769
65770
  };
65770
65771
  }());
65771
65772
  _defineProperty(this, "getTryOnProductInfo", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee73() {
@@ -65798,7 +65799,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65798
65799
  }, _callee73);
65799
65800
  })));
65800
65801
  _defineProperty(this, "getTryOnSellerInfo", /*#__PURE__*/function () {
65801
- var _ref75 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee74(typeID, providerID) {
65802
+ var _ref77 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee74(typeID, providerID) {
65802
65803
  var sellerInfo;
65803
65804
  return _regeneratorRuntime().wrap(function _callee74$(_context76) {
65804
65805
  while (1) switch (_context76.prev = _context76.next) {
@@ -65828,7 +65829,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65828
65829
  }, _callee74);
65829
65830
  }));
65830
65831
  return function (_x70, _x71) {
65831
- return _ref75.apply(this, arguments);
65832
+ return _ref77.apply(this, arguments);
65832
65833
  };
65833
65834
  }());
65834
65835
  _defineProperty(this, "setPDDistance", function (distance) {
@@ -65873,7 +65874,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65873
65874
  return undefined;
65874
65875
  });
65875
65876
  _defineProperty(this, "tryOnCountView", /*#__PURE__*/function () {
65876
- var _ref77 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee76(sellerID, providerID, modeChosen) {
65877
+ var _ref79 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee76(sellerID, providerID, modeChosen) {
65877
65878
  return _regeneratorRuntime().wrap(function _callee76$(_context78) {
65878
65879
  while (1) switch (_context78.prev = _context78.next) {
65879
65880
  case 0:
@@ -65890,7 +65891,7 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
65890
65891
  }, _callee76);
65891
65892
  }));
65892
65893
  return function (_x72, _x73, _x74) {
65893
- return _ref77.apply(this, arguments);
65894
+ return _ref79.apply(this, arguments);
65894
65895
  };
65895
65896
  }());
65896
65897
  }
@@ -67770,6 +67771,7 @@ var TryOnFineTuningMazingEnvironment = /*#__PURE__*/function (TryOnFineTuningMaz
67770
67771
  TryOnFineTuningMazingEnvironment["Light"] = "light.hdr";
67771
67772
  TryOnFineTuningMazingEnvironment["Bright"] = "bright.hdr";
67772
67773
  TryOnFineTuningMazingEnvironment["Studio"] = "studio.hdr";
67774
+ TryOnFineTuningMazingEnvironment["Court"] = "court.hdr";
67773
67775
  return TryOnFineTuningMazingEnvironment;
67774
67776
  }({});
67775
67777
  var Product = /*#__PURE__*/function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.0.205",
3
+ "version": "0.0.207",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",