@carbon/ibm-products 2.42.1-canary.24 → 2.42.1-canary.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -95,7 +95,8 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
95
95
  var subtitleRef = useRef(null);
96
96
  var previousState = usePreviousValue({
97
97
  size: size,
98
- open: open
98
+ open: open,
99
+ currentStep: currentStep
99
100
  });
100
101
  var _useState3 = useState(-1),
101
102
  _useState4 = _slicedToArray(_useState3, 2),
@@ -162,9 +163,10 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
162
163
  if (sidePanelRef && panelRefValue) {
163
164
  var _animatedScrollRef$cu;
164
165
  var scrollableSection = (_animatedScrollRef$cu = animatedScrollRef.current) !== null && _animatedScrollRef$cu !== void 0 ? _animatedScrollRef$cu : innerContentRef.current;
165
- if (scrollableSection) {
166
+ if (previousState && previousState['currentStep'] !== currentStep && scrollableSection) {
166
167
  scrollableSection.scrollTop = 0;
167
168
  }
169
+
168
170
  // The size of the panel has changed while it is still opened
169
171
  // so we need to scroll it to the top and reset the header
170
172
  // height css custom property
@@ -104,7 +104,8 @@ exports.SidePanel = /*#__PURE__*/React__default["default"].forwardRef(function (
104
104
  var subtitleRef = React.useRef(null);
105
105
  var previousState = usePreviousValue.usePreviousValue({
106
106
  size: size,
107
- open: open
107
+ open: open,
108
+ currentStep: currentStep
108
109
  });
109
110
  var _useState3 = React.useState(-1),
110
111
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
@@ -171,9 +172,10 @@ exports.SidePanel = /*#__PURE__*/React__default["default"].forwardRef(function (
171
172
  if (sidePanelRef && panelRefValue) {
172
173
  var _animatedScrollRef$cu;
173
174
  var scrollableSection = (_animatedScrollRef$cu = animatedScrollRef.current) !== null && _animatedScrollRef$cu !== void 0 ? _animatedScrollRef$cu : innerContentRef.current;
174
- if (scrollableSection) {
175
+ if (previousState && previousState['currentStep'] !== currentStep && scrollableSection) {
175
176
  scrollableSection.scrollTop = 0;
176
177
  }
178
+
177
179
  // The size of the panel has changed while it is still opened
178
180
  // so we need to scroll it to the top and reset the header
179
181
  // height css custom property
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.42.1-canary.24+b6e52bd37",
4
+ "version": "2.42.1-canary.27+452089a1f",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -121,5 +121,5 @@
121
121
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
122
122
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
123
123
  },
124
- "gitHead": "b6e52bd37c7d7595b31e90bdfc708c413e039816"
124
+ "gitHead": "452089a1f3aca14aa3626e2d6cdce7c9c5dbc880"
125
125
  }
package/telemetry.yml CHANGED
@@ -14,6 +14,7 @@ collect:
14
14
  - actionsPlacement
15
15
  - activeCellCoordinates
16
16
  - activeHref
17
+ - addConditionSubGroupHandler
17
18
  - align
18
19
  - allPageRowsLabel
19
20
  - allRowsLabel
@@ -122,6 +123,8 @@ collect:
122
123
  - HeaderRow
123
124
  - headers
124
125
  - headRef
126
+ - hideConditionPreviewHandler
127
+ - hideConditionSubGroupPreviewHandler
125
128
  - hideIcon
126
129
  - hideSelectAll
127
130
  - href
@@ -213,12 +216,14 @@ collect:
213
216
  - onRemove
214
217
  - onRequestClose
215
218
  - onRequestSubmit
219
+ - onRowClick
216
220
  - onScroll
217
221
  - onSecondaryButtonClick
218
222
  - onSelectAllRows
219
223
  - onSelectColumn
220
224
  - onSelectionAreaChange
221
225
  - onShowAllClick
226
+ - onSort
222
227
  - onSubmit
223
228
  - onSubmitButtonText
224
229
  - onToggle
@@ -296,6 +301,8 @@ collect:
296
301
  - setSelectionAreas
297
302
  - showAllTagsLabel
298
303
  - showCloseButton
304
+ - showConditionPreviewHandler
305
+ - showConditionSubGroupPreviewHandler
299
306
  - showToolTip
300
307
  - sideNavAriaLabel
301
308
  - size
@@ -504,13 +511,25 @@ collect:
504
511
  - isStatement
505
512
  - onConnectorOperatorChange
506
513
  - onStatementChange
514
+ # ConditionBuilderAdd
515
+ - buttonLabel
516
+ - enableSubGroup
507
517
  # ConditionBuilderButton
508
518
  - hideLabel
519
+ - onBlur
520
+ - onFocus
521
+ - onMouseEnter
522
+ - onMouseLeave
509
523
  - tooltipAlign
524
+ - wrapperProps
525
+ # ConditionBuilderContent
526
+ - getActionsState
510
527
  # ConditionBuilderItem
511
528
  - popOverClassName
512
529
  # ConditionConnector
513
530
  - operator
531
+ # ConditionPreview
532
+ - previewType
514
533
  # CreateFullPage
515
534
  - breadcrumbsOverflowAriaLabel
516
535
  - maxVisibleBreadcrumbs
@@ -1078,6 +1097,10 @@ collect:
1078
1097
  - floating
1079
1098
  - stacked
1080
1099
  - tooltip
1100
+ # ConditionPreview - previewType
1101
+ - condition
1102
+ - newGroup
1103
+ - subGroup
1081
1104
  # DecoratorIcon - magnitude
1082
1105
  - benign
1083
1106
  - critical