zakeke-configurator-react 0.0.210 → 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 +22 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -66109,17 +66109,34 @@ var ZakekeEnvironment = /*#__PURE__*/function () {
66109
66109
  case 14:
66110
66110
  _this.buildStructure();
66111
66111
  _this.updatePrice();
66112
- _context72.next = 21;
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;
66113
66130
  break;
66114
- case 18:
66115
- _context72.prev = 18;
66131
+ case 19:
66132
+ _context72.prev = 19;
66116
66133
  _context72.t0 = _context72["catch"](0);
66117
66134
  console.error(_context72.t0);
66118
- case 21:
66135
+ case 22:
66119
66136
  case "end":
66120
66137
  return _context72.stop();
66121
66138
  }
66122
- }, _callee71, null, [[0, 18]]);
66139
+ }, _callee71, null, [[0, 19]]);
66123
66140
  }));
66124
66141
  return function (_x68) {
66125
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.210",
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",