@carbon/ibm-products 2.50.0-rc.0 → 2.50.0

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.
@@ -48,7 +48,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
48
48
  row.toggleRowExpanded();
49
49
  lastExpandedRowIndex.current = row.id;
50
50
  if (row.isExpanded) {
51
- _context.next = 14;
51
+ _context.next = 15;
52
52
  break;
53
53
  }
54
54
  _context.prev = 4;
@@ -59,27 +59,31 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
59
59
  depth: row.depth,
60
60
  index: row.index
61
61
  });
62
- _context.next = 8;
62
+ if (!getAsyncSubRows) {
63
+ _context.next = 9;
64
+ break;
65
+ }
66
+ _context.next = 9;
63
67
  return getAsyncSubRows === null || getAsyncSubRows === void 0 ? void 0 : getAsyncSubRows(row);
64
- case 8:
68
+ case 9:
65
69
  handleDynamicRowCheck({
66
70
  dispatch: dispatch,
67
71
  status: 'finish',
68
72
  rowId: row.id
69
73
  });
70
- _context.next = 14;
74
+ _context.next = 15;
71
75
  break;
72
- case 11:
73
- _context.prev = 11;
76
+ case 12:
77
+ _context.prev = 12;
74
78
  _context.t0 = _context["catch"](4);
75
79
  console.log({
76
80
  error: _context.t0
77
81
  });
78
- case 14:
82
+ case 15:
79
83
  case "end":
80
84
  return _context.stop();
81
85
  }
82
- }, _callee, null, [[4, 11]]);
86
+ }, _callee, null, [[4, 12]]);
83
87
  }));
84
88
  function onClick(_x) {
85
89
  return _onClick.apply(this, arguments);
@@ -57,7 +57,7 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
57
57
  row.toggleRowExpanded();
58
58
  lastExpandedRowIndex.current = row.id;
59
59
  if (row.isExpanded) {
60
- _context.next = 14;
60
+ _context.next = 15;
61
61
  break;
62
62
  }
63
63
  _context.prev = 4;
@@ -68,27 +68,31 @@ var useNestedRowExpander = function useNestedRowExpander(hooks) {
68
68
  depth: row.depth,
69
69
  index: row.index
70
70
  });
71
- _context.next = 8;
71
+ if (!getAsyncSubRows) {
72
+ _context.next = 9;
73
+ break;
74
+ }
75
+ _context.next = 9;
72
76
  return getAsyncSubRows === null || getAsyncSubRows === void 0 ? void 0 : getAsyncSubRows(row);
73
- case 8:
77
+ case 9:
74
78
  stateReducer.handleDynamicRowCheck({
75
79
  dispatch: dispatch,
76
80
  status: 'finish',
77
81
  rowId: row.id
78
82
  });
79
- _context.next = 14;
83
+ _context.next = 15;
80
84
  break;
81
- case 11:
82
- _context.prev = 11;
85
+ case 12:
86
+ _context.prev = 12;
83
87
  _context.t0 = _context["catch"](4);
84
88
  console.log({
85
89
  error: _context.t0
86
90
  });
87
- case 14:
91
+ case 15:
88
92
  case "end":
89
93
  return _context.stop();
90
94
  }
91
- }, _callee, null, [[4, 11]]);
95
+ }, _callee, null, [[4, 12]]);
92
96
  }));
93
97
  function onClick(_x) {
94
98
  return _onClick.apply(this, arguments);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.50.0-rc.0",
4
+ "version": "2.50.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -81,7 +81,7 @@
81
81
  "fs-extra": "^11.2.0",
82
82
  "glob": "^10.3.10",
83
83
  "jest": "^29.7.0",
84
- "jest-config-ibm-cloud-cognitive": "^1.9.0-rc.0",
84
+ "jest-config-ibm-cloud-cognitive": "^1.9.0",
85
85
  "jest-environment-jsdom": "^29.7.0",
86
86
  "namor": "^1.1.2",
87
87
  "npm-check-updates": "^16.14.12",
@@ -96,7 +96,7 @@
96
96
  "dependencies": {
97
97
  "@babel/runtime": "^7.23.9",
98
98
  "@carbon/feature-flags": "^0.22.0",
99
- "@carbon/ibm-products-styles": "^2.46.0-rc.0",
99
+ "@carbon/ibm-products-styles": "^2.46.0",
100
100
  "@carbon/telemetry": "^0.1.0",
101
101
  "@dnd-kit/core": "^6.0.8",
102
102
  "@dnd-kit/modifiers": "^7.0.0",
@@ -120,5 +120,5 @@
120
120
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
121
121
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
122
122
  },
123
- "gitHead": "4ceb075545ce50e154b90f114a3344a2eed07923"
123
+ "gitHead": "0b69c52b1b412a4231fc6a969920aef705edfd4d"
124
124
  }