@splunk/react-ui 4.22.1 → 4.23.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.
- package/CHANGELOG.md +15 -0
- package/Color.js +289 -293
- package/DualListbox.js +2 -2
- package/File.js +15 -15
- package/JSONTree.js +204 -219
- package/MIGRATION.mdx +14 -0
- package/Multiselect.js +168 -168
- package/Select.js +390 -390
- package/package.json +5 -4
- package/types/src/Dropdown/Dropdown.d.ts +2 -2
- package/types/src/JSONTree/JSONTree.d.ts +22 -13
- package/types/src/JSONTree/TreeNode.d.ts +4 -3
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +1 -0
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +0 -1
- /package/types/src/Card/docs/examples/{prisma/Actions.d.ts → Actions.d.ts} +0 -0
package/MIGRATION.mdx
CHANGED
|
@@ -5,6 +5,20 @@ import Table from '@splunk/react-ui/Table';
|
|
|
5
5
|
|
|
6
6
|
This document lists migration guidance for new features and breaking changes.
|
|
7
7
|
|
|
8
|
+
## 4.23.0
|
|
9
|
+
|
|
10
|
+
### Deprecated `JSONTree`'s `expandChildren="withShiftModifier"` value
|
|
11
|
+
|
|
12
|
+
#### Change
|
|
13
|
+
`JSONTree`'s `expandChildren="withShiftModifier"` value has been deprecated and will be removed in a future major version. A new prop `expandChildrenOnShiftKey` has been added to `JSONTree` to expand all descendant nodes when using `shift + click` or `shift + enter`.
|
|
14
|
+
|
|
15
|
+
#### Context
|
|
16
|
+
Separating the `shift + click` capability from `expandChildren` allows users to decide if they want to enable `shift + click` to expand all descendant nodes independently of
|
|
17
|
+
choosing to initially render the tree expanded.
|
|
18
|
+
|
|
19
|
+
#### Migration steps
|
|
20
|
+
Replace all usage of `JSONTree`'s `expandChildren="withShiftModifier"` value with the `expandChildrenOnShiftKey` prop.
|
|
21
|
+
|
|
8
22
|
## 4.18.0
|
|
9
23
|
|
|
10
24
|
### Deprecated `level="s"` and `level="ss"` and added new `variant` prop for `Heading`
|