@crystaldesign/widget-library 26.13.0-beta.17 → 26.13.0-beta.19

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.
@@ -435,7 +435,7 @@ function useProductData(_ref) {
435
435
  setLoading(true);
436
436
  fetchProducts(normalizedProductIds).then(/*#__PURE__*/function () {
437
437
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(variants) {
438
- var variantToUse, _variantToUse$catCode;
438
+ var variantToUse, _variantToUse$catCode, _variantToUse$configu;
439
439
  return _regeneratorRuntime.wrap(function _callee4$(_context4) {
440
440
  while (1) switch (_context4.prev = _context4.next) {
441
441
  case 0:
@@ -454,7 +454,7 @@ function useProductData(_ref) {
454
454
  DivaUtils.businessMetrics.setConfiguratorSessionId(undefined, true);
455
455
  setInitialProduct(false);
456
456
  _context4.next = 10;
457
- return logSelectedProduct(normalizedProductIds[0], widgetType, variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.variantId, variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.modelName, variantToUse === null || variantToUse === void 0 || (_variantToUse$catCode = variantToUse.catCodex) === null || _variantToUse$catCode === void 0 ? void 0 : _variantToUse$catCode.toString(), variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.configuration.OrderSets.map(function (set) {
457
+ return logSelectedProduct(normalizedProductIds[0], widgetType, variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.variantId, variantToUse === null || variantToUse === void 0 ? void 0 : variantToUse.modelName, variantToUse === null || variantToUse === void 0 || (_variantToUse$catCode = variantToUse.catCodex) === null || _variantToUse$catCode === void 0 ? void 0 : _variantToUse$catCode.toString(), variantToUse === null || variantToUse === void 0 || (_variantToUse$configu = variantToUse.configuration) === null || _variantToUse$configu === void 0 ? void 0 : _variantToUse$configu.OrderSets.map(function (set) {
458
458
  return set.AccountGUID;
459
459
  }), 'onWidgetInitialProduct');
460
460
  case 10:
@@ -477,7 +477,7 @@ function useProductData(_ref) {
477
477
  }, [normalizedProductIds]);
478
478
  var setSelectedProductId = useCallback(/*#__PURE__*/function () {
479
479
  var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(productId) {
480
- var product, _product$catCodex, _variants2, _product, _product$catCodex2;
480
+ var product, _product$catCodex, _variants2, _product, _product$catCodex2, _product$configuratio;
481
481
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
482
482
  while (1) switch (_context5.prev = _context5.next) {
483
483
  case 0:
@@ -530,7 +530,7 @@ function useProductData(_ref) {
530
530
  setSelectedProduct(_product);
531
531
  notifyProductChanged(_product);
532
532
  _context5.next = 28;
533
- return logSelectedProduct(productId, widgetType, _product.variantId, _product.modelName, (_product$catCodex2 = _product.catCodex) === null || _product$catCodex2 === void 0 ? void 0 : _product$catCodex2.toString(), _product.configuration.OrderSets.map(function (set) {
533
+ return logSelectedProduct(productId, widgetType, _product.variantId, _product.modelName, (_product$catCodex2 = _product.catCodex) === null || _product$catCodex2 === void 0 ? void 0 : _product$catCodex2.toString(), (_product$configuratio = _product.configuration) === null || _product$configuratio === void 0 ? void 0 : _product$configuratio.OrderSets.map(function (set) {
534
534
  return set.AccountGUID;
535
535
  }));
536
536
  case 28:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/widget-library",
3
- "version": "26.13.0-beta.17",
3
+ "version": "26.13.0-beta.19",
4
4
  "description": "Shared infrastructure for the embeddable widgets: components, hooks, types and utils.",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "suiteName": "widget-library",
37
37
  "outputDirectory": "./test-reports"
38
38
  },
39
- "gitHead": "176ab43b0f2c6d5ee0327a85c53c60a7d62981ce"
39
+ "gitHead": "379ad0fe1fc5cdcb56eb85ec2a48d14c3788b19b"
40
40
  }