zakeke-configurator-react 0.0.209 → 0.0.211

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 (2) hide show
  1. package/dist/index.js +24 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -66107,17 +66107,36 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
66107
66107
  _context72.next = 14;
66108
66108
  return _this.sync3DAndPlatformSelectionWithCurrentSelection();
66109
66109
  case 14:
66110
- _context72.next = 19;
66110
+ _this.buildStructure();
66111
+ _this.updatePrice();
66112
+ _this.selection.getAllAttributeSelections().forEach(function (attributeSelection) {
66113
+ var selectionOption = attributeSelection.get('options').find(function (x) {
66114
+ return x.get('selected');
66115
+ });
66116
+
66117
+ // Change platform selection
66118
+ var platformSelection = _this.platformAttributesSelection.find(function (x) {
66119
+ return (0,_helpers__WEBPACK_IMPORTED_MODULE_7__.matchCodes)(x.attributeCode, attributeSelection.get('attributeCode'));
66120
+ });
66121
+ if (platformSelection && selectionOption) {
66122
+ platformSelection.optionCode = selectionOption.get('optionCode');
66123
+ platformSelection.optionLabel = selectionOption.get('name');
66124
+ }
66125
+ console.log({
66126
+ platformSelection: platformSelection
66127
+ });
66128
+ });
66129
+ _context72.next = 22;
66111
66130
  break;
66112
- case 16:
66113
- _context72.prev = 16;
66131
+ case 19:
66132
+ _context72.prev = 19;
66114
66133
  _context72.t0 = _context72["catch"](0);
66115
66134
  console.error(_context72.t0);
66116
- case 19:
66135
+ case 22:
66117
66136
  case "end":
66118
66137
  return _context72.stop();
66119
66138
  }
66120
- }, _callee71, null, [[0, 16]]);
66139
+ }, _callee71, null, [[0, 19]]);
66121
66140
  }));
66122
66141
  return function (_x68) {
66123
66142
  return _ref74.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.0.209",
3
+ "version": "0.0.211",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",