@splunk/react-ui 5.0.0 → 5.1.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.
Files changed (94) hide show
  1. package/Accordion.js +59 -59
  2. package/Avatar.js +20 -20
  3. package/Breadcrumbs.js +46 -46
  4. package/Button.js +24 -24
  5. package/CHANGELOG.md +21 -2
  6. package/Calendar.js +69 -69
  7. package/Card.js +68 -68
  8. package/Chip.js +16 -16
  9. package/Clickable.js +29 -29
  10. package/Code.js +654 -519
  11. package/CollapsiblePanel.js +112 -112
  12. package/Color.js +107 -107
  13. package/ColumnLayout.js +35 -35
  14. package/ComboBox.js +190 -206
  15. package/ControlGroup.js +128 -120
  16. package/Date.js +148 -146
  17. package/DefinitionList.js +26 -26
  18. package/DualListbox.js +701 -717
  19. package/File.js +403 -403
  20. package/FormRows.js +66 -63
  21. package/Image.js +15 -15
  22. package/JSONTree.js +458 -357
  23. package/Layer.js +60 -72
  24. package/Markdown.js +66 -66
  25. package/Menu.js +44 -44
  26. package/Modal.js +49 -49
  27. package/ModalLayer.js +6 -6
  28. package/Monogram.js +16 -16
  29. package/Multiselect.js +622 -624
  30. package/Number.js +100 -100
  31. package/Paginator.js +7 -7
  32. package/Popover.js +453 -407
  33. package/Progress.js +12 -12
  34. package/Prose.js +6 -6
  35. package/RadioBar.js +180 -166
  36. package/RadioList.js +80 -79
  37. package/ResultsMenu.js +15 -15
  38. package/Scroll.js +50 -50
  39. package/Search.js +148 -164
  40. package/Select.js +668 -670
  41. package/Slider.js +30 -30
  42. package/SlidingPanels.js +24 -24
  43. package/SplitButton.js +50 -50
  44. package/StepBar.js +100 -100
  45. package/Switch.js +45 -45
  46. package/TabBar.js +196 -196
  47. package/TabLayout.js +16 -16
  48. package/Table.js +1207 -1193
  49. package/Text.js +65 -65
  50. package/TextArea.js +108 -93
  51. package/Tooltip.js +203 -197
  52. package/Tree.js +464 -366
  53. package/package.json +6 -6
  54. package/stubs-dependencies.d.ts +0 -70
  55. package/stubs-splunkui.d.ts +4 -0
  56. package/types/src/Code/Code.d.ts +17 -1
  57. package/types/src/Code/LineHighlights.d.ts +11 -0
  58. package/types/src/Code/LineNumbers.d.ts +6 -0
  59. package/types/src/Code/docs/examples/LineHighlights.d.ts +3 -0
  60. package/types/src/Code/docs/examples/LineNumbers.d.ts +3 -0
  61. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +3 -0
  62. package/types/src/Date/Date.d.ts +6 -1
  63. package/types/src/DefinitionList/DefinitionList.d.ts +6 -6
  64. package/types/src/FormRows/FormRows.d.ts +1 -1
  65. package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
  66. package/types/src/Markdown/Markdown.d.ts +1 -1
  67. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  68. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  69. package/types/src/Markdown/renderers/index.d.ts +1 -1
  70. package/types/src/Popover/Popover.d.ts +1 -1
  71. package/types/src/RadioBar/Option.d.ts +1 -1
  72. package/types/src/RadioBar/RadioBar.d.ts +13 -6
  73. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  74. package/types/src/RadioList/RadioList.d.ts +2 -1
  75. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +3 -0
  76. package/types/src/Scroll/Inner.d.ts +1 -1
  77. package/types/src/Select/Option.d.ts +1 -1
  78. package/types/src/Select/Select.d.ts +1 -1
  79. package/types/src/Slider/docs/examples/Controlled.d.ts +1 -1
  80. package/types/src/TabLayout/Panel.d.ts +0 -1
  81. package/types/src/Table/Head.d.ts +1 -0
  82. package/types/src/Table/HeadCell.d.ts +2 -3
  83. package/types/src/Table/HeadDropdownCell.d.ts +2 -2
  84. package/types/src/Table/HeadInner.d.ts +4 -4
  85. package/types/src/Table/KeyboardSensor.d.ts +1 -1
  86. package/types/src/Table/RowDragCell.d.ts +1 -1
  87. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  88. package/types/src/Tree/Item.d.ts +63 -0
  89. package/types/src/Tree/Tree.d.ts +13 -6
  90. package/types/src/Tree/TreeContext.d.ts +1 -1
  91. package/types/src/Tree/index.d.ts +1 -1
  92. package/types/src/useControlled/useControlled.d.ts +3 -1
  93. package/useControlled.js +29 -13
  94. package/types/src/Tree/TreeItem.d.ts +0 -44
package/JSONTree.js CHANGED
@@ -2,45 +2,80 @@
2
2
  // webpackBootstrap
3
3
  /******/ "use strict";
4
4
  /******/ var e = {
5
- /***/ 4610:
5
+ /***/ 8655:
6
6
  /***/ (e, n, r) => {
7
7
  // EXPORTS
8
8
  r.d(n, {
9
- default: () => /* reexport */ ee
9
+ default: () => /* reexport */ ce
10
10
  });
11
- // UNUSED EXPORTS: TreeItem
11
+ // UNUSED EXPORTS: Item
12
12
  // EXTERNAL MODULE: external "react"
13
13
  var t = r(9497);
14
14
  var o = r.n(t);
15
15
  // EXTERNAL MODULE: external "prop-types"
16
16
  var a = r(23);
17
17
  var l = r.n(a);
18
+ // EXTERNAL MODULE: external "styled-components"
19
+ var i = r(232);
20
+ var u = r.n(i);
21
+ // EXTERNAL MODULE: external "@splunk/themes"
22
+ var c = r(3563);
23
+ // CONCATENATED MODULE: ./src/Tree/ItemStyles.ts
24
+ var f = u().span.withConfig({
25
+ displayName: "ItemStyles__StyledTreeItemContentWrapper",
26
+ componentId: "sc-1ig9nmy-0"
27
+ })([ "display:inline-block;min-height:100%;" ]);
28
+ var d = u().span.withConfig({
29
+ displayName: "ItemStyles__StyledTreeItemIndent",
30
+ componentId: "sc-1ig9nmy-1"
31
+ })([ "white-space:pre;" ]);
32
+ var s = u().span.withConfig({
33
+ displayName: "ItemStyles__StyledTreeItemContent",
34
+ componentId: "sc-1ig9nmy-2"
35
+ })([ "min-height:100%;&:focus{outline:3px solid ", ";outline-offset:1px;&:active{outline:none;}}&:hover{background-color:", ";cursor:pointer;}" ], c.variables.focusColor, c.variables.actionColorBackgroundSecondaryHover);
18
36
  // CONCATENATED MODULE: ./src/Tree/TreeContext.tsx
19
- var i = (0, t.createContext)({
37
+ var v = (0, t.createContext)({
20
38
  defaultIndent: true
21
39
  });
22
- /* harmony default export */ const u = i;
23
- // EXTERNAL MODULE: external "styled-components"
24
- var c = r(232);
25
- var d = r.n(c);
26
- // EXTERNAL MODULE: external "@splunk/themes"
27
- var f = r(3563);
28
- // CONCATENATED MODULE: ./src/Tree/TreeItemStyles.ts
29
- var s = d().span.withConfig({
30
- displayName: "TreeItemStyles__StyledTreeItemNode",
31
- componentId: "ie7zrw-0"
32
- })([ "padding:", ";&:focus{box-shadow:", ";outline:0;&:active{box-shadow:none;}}" ], f.variables.spacingXSmall, f.variables.focusShadowInset);
40
+ /* harmony default export */ const p = v;
33
41
  // CONCATENATED MODULE: ./src/Tree/TreeStyles.ts
34
- var v = d().ul.withConfig({
42
+ var y = u().ul.withConfig({
35
43
  displayName: "TreeStyles__StyledUnorderedList",
36
44
  componentId: "sc-13pokwt-0"
37
- })([ "", ";color:inherit;font-family:inherit;list-style:none;white-space:inherit;", ";" ], f.mixins.reset("ul"), (function(e) {
45
+ })([ "", ";color:inherit;font-family:inherit;list-style:none;white-space:inherit;", ";" ], c.mixins.reset("ul"), (function(e) {
38
46
  var n = e.$defaultIndent;
39
- return n && (0, c.css)([ "padding-inline-start:", ";" ], f.variables.spacingXXXLarge);
47
+ return n && (0, i.css)([ "padding-inline-start:", ";" ], c.variables.spacingXXXLarge);
40
48
  }));
41
- // CONCATENATED MODULE: ./src/Tree/TreeItem.tsx
42
- function p() {
43
- return p = Object.assign ? Object.assign.bind() : function(e) {
49
+ // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
50
+ /**
51
+ * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
52
+ *
53
+ * @param ref - The React callback or object ref. Can be `null` or `undefined`.
54
+ * @param current - The new value of the ref.
55
+ */
56
+ function m(e, n) {
57
+ if (e) {
58
+ if (typeof e === "function") {
59
+ e(n);
60
+ } else {
61
+ // the public signature of this util uses React.Ref<T> to mirror the way React types refs.
62
+ // the intention here is to signal "we will take care of setting 'current', not you".
63
+ e.current = n;
64
+ // eslint-disable-line no-param-reassign
65
+ }
66
+ }
67
+ }
68
+ // CONCATENATED MODULE: ./src/Tree/Item.tsx
69
+ function b(e) {
70
+ "@babel/helpers - typeof";
71
+ return b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
72
+ return typeof e;
73
+ } : function(e) {
74
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
75
+ }, b(e);
76
+ }
77
+ function h() {
78
+ return h = Object.assign ? Object.assign.bind() : function(e) {
44
79
  for (var n = 1; n < arguments.length; n++) {
45
80
  var r = arguments[n];
46
81
  for (var t in r) {
@@ -48,29 +83,72 @@
48
83
  }
49
84
  }
50
85
  return e;
51
- }, p.apply(null, arguments);
86
+ }, h.apply(null, arguments);
87
+ }
88
+ function g(e, n) {
89
+ var r = Object.keys(e);
90
+ if (Object.getOwnPropertySymbols) {
91
+ var t = Object.getOwnPropertySymbols(e);
92
+ n && (t = t.filter((function(n) {
93
+ return Object.getOwnPropertyDescriptor(e, n).enumerable;
94
+ }))), r.push.apply(r, t);
95
+ }
96
+ return r;
97
+ }
98
+ function S(e) {
99
+ for (var n = 1; n < arguments.length; n++) {
100
+ var r = null != arguments[n] ? arguments[n] : {};
101
+ n % 2 ? g(Object(r), !0).forEach((function(n) {
102
+ w(e, n, r[n]);
103
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : g(Object(r)).forEach((function(n) {
104
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
105
+ }));
106
+ }
107
+ return e;
108
+ }
109
+ function w(e, n, r) {
110
+ return (n = O(n)) in e ? Object.defineProperty(e, n, {
111
+ value: r,
112
+ enumerable: !0,
113
+ configurable: !0,
114
+ writable: !0
115
+ }) : e[n] = r, e;
116
+ }
117
+ function O(e) {
118
+ var n = k(e, "string");
119
+ return "symbol" == b(n) ? n : n + "";
120
+ }
121
+ function k(e, n) {
122
+ if ("object" != b(e) || !e) return e;
123
+ var r = e[Symbol.toPrimitive];
124
+ if (void 0 !== r) {
125
+ var t = r.call(e, n || "default");
126
+ if ("object" != b(t)) return t;
127
+ throw new TypeError("@@toPrimitive must return a primitive value.");
128
+ }
129
+ return ("string" === n ? String : Number)(e);
52
130
  }
53
- function y(e, n) {
54
- return S(e) || g(e, n) || b(e, n) || m();
131
+ function I(e, n) {
132
+ return A(e) || C(e, n) || j(e, n) || x();
55
133
  }
56
- function m() {
134
+ function x() {
57
135
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
58
136
  }
59
- function b(e, n) {
137
+ function j(e, n) {
60
138
  if (e) {
61
- if ("string" == typeof e) return h(e, n);
139
+ if ("string" == typeof e) return E(e, n);
62
140
  var r = {}.toString.call(e).slice(8, -1);
63
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? h(e, n) : void 0;
141
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? E(e, n) : void 0;
64
142
  }
65
143
  }
66
- function h(e, n) {
144
+ function E(e, n) {
67
145
  (null == n || n > e.length) && (n = e.length);
68
146
  for (var r = 0, t = Array(n); r < n; r++) {
69
147
  t[r] = e[r];
70
148
  }
71
149
  return t;
72
150
  }
73
- function g(e, n) {
151
+ function C(e, n) {
74
152
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
75
153
  if (null != r) {
76
154
  var t, o, a, l, i = [], u = !0, c = !1;
@@ -92,12 +170,12 @@
92
170
  return i;
93
171
  }
94
172
  }
95
- function S(e) {
173
+ function A(e) {
96
174
  if (Array.isArray(e)) return e;
97
175
  }
98
- function w(e, n) {
176
+ function T(e, n) {
99
177
  if (null == e) return {};
100
- var r, t, o = k(e, n);
178
+ var r, t, o = P(e, n);
101
179
  if (Object.getOwnPropertySymbols) {
102
180
  var a = Object.getOwnPropertySymbols(e);
103
181
  for (t = 0; t < a.length; t++) {
@@ -106,7 +184,7 @@
106
184
  }
107
185
  return o;
108
186
  }
109
- function k(e, n) {
187
+ function P(e, n) {
110
188
  if (null == e) return {};
111
189
  var r = {};
112
190
  for (var t in e) {
@@ -117,133 +195,141 @@
117
195
  }
118
196
  return r;
119
197
  }
120
- var x = {
198
+ var R = {
121
199
  id: l().string,
122
200
  children: l().node,
123
201
  content: l().node,
124
202
  customIndent: l().node,
203
+ elementRef: l().oneOfType([ l().func, l().object ]),
125
204
  endAdornment: l().node,
205
+ expanded: l().bool,
126
206
  labelledBy: l().string,
127
207
  onFocus: l().func,
128
208
  onKeyDown: l().func,
129
- onToggle: l().func,
130
- open: l().bool,
131
- toggle: l().node
209
+ onToggleSelection: l().func,
210
+ onToggleExpansion: l().func
132
211
  };
133
- function O(e) {
134
- var n = e.id, r = e.children, a = e.content, l = e.customIndent, i = e.endAdornment, c = e.labelledBy, d = e.onFocus, f = e.onKeyDown, m = e.onToggle, b = e.open, h = b === void 0 ? true : b, g = e.toggle, S = w(e, [ "id", "children", "content", "customIndent", "endAdornment", "labelledBy", "onFocus", "onKeyDown", "onToggle", "open", "toggle" ]);
135
- var k = (0, t.useContext)(u), x = k.defaultIndent, O = x === void 0 ? true : x, I = k.onItemKeyDown, E = k.onItemClick, j = k.removeNode, C = k.setNode, A = k.itemPaths, T = k.focusedItemId;
136
- var P = (0, t.useState)(h), R = y(P, 2), K = R[0], _ = R[1];
212
+ /** @public */
213
+ /** @public */ function K(e) {
214
+ var n = e.id, r = e.children, a = e.content, l = e.customIndent, i = e.elementRef, u = e.endAdornment, c = e.expanded, v = e.labelledBy, b = e.onFocus, g = e.onKeyDown, w = e.onToggleExpansion, O = e.onToggleSelection, k = T(e, [ "id", "children", "content", "customIndent", "elementRef", "endAdornment", "expanded", "labelledBy", "onFocus", "onKeyDown", "onToggleExpansion", "onToggleSelection" ]);
215
+ // @docs-props-type TreeItemPropsBase
216
+ var x = (0, t.useContext)(p), j = x.defaultIndent, E = j === void 0 ? true : j, C = x.onItemKeyDown, A = x.onItemClick, P = x.removeNode, R = x.setNode, K = x.itemPaths, _ = x.focusedItemId;
137
217
  // make first tree item tabbable
138
- var D = (0, t.useState)((A === null || A === void 0 ? void 0 : A.get("".concat(n))) === "0" ? 0 : -1), N = y(D, 2), V = N[0], L = N[1];
218
+ var D = (0, t.useState)((K === null || K === void 0 ? void 0 : K.get("".concat(n))) === "0" ? 0 : -1), N = I(D, 2), V = N[0], L = N[1];
139
219
  var F = (0, t.useRef)(null);
140
220
  var q = (0, t.useRef)(null);
141
221
  var M = t.Children.toArray(r).filter(t.isValidElement);
142
222
  M.forEach((function(e, r) {
143
223
  if (e.props.id) {
144
- if (K && C) {
145
- C("".concat(e.props.id), "".concat(A === null || A === void 0 ? void 0 : A.get("".concat(n)), "-").concat(r));
146
- } else if (j) {
147
- j(e.props.id);
224
+ if (c && R) {
225
+ R("".concat(e.props.id), "".concat(K === null || K === void 0 ? void 0 : K.get("".concat(n)), "-").concat(r));
226
+ } else if (P) {
227
+ P(e.props.id);
148
228
  }
149
229
  }
150
230
  }));
151
- var $ = function e(n, r) {
152
- _(n);
153
- m === null || m === void 0 ? void 0 : m(n, r);
154
- };
155
- var J = function e(r) {
156
- E === null || E === void 0 ? void 0 : E(r, n);
157
- };
158
- var B = function e(n) {
159
- var r;
160
- n.stopPropagation();
161
- F === null || F === void 0 ? void 0 : (r = F.current) === null || r === void 0 ? void 0 : r.focus();
162
- d === null || d === void 0 ? void 0 : d(n);
163
- };
164
- var U = function e() {
165
- if ((A === null || A === void 0 ? void 0 : A.get("".concat(n))) === "0") {
231
+ var $ = (0, t.useCallback)((function(e) {
232
+ m(F, e);
233
+ m(i, e);
234
+ }), [ i ]);
235
+ var B = (0, t.useCallback)((function(e) {
236
+ var n;
237
+ var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
238
+ // For consistency, if not provided but found in the event then add it to `data` on callback.
239
+ // This allows for common handling of both click and keyboard events in the consumer.
240
+ var t = S({}, r);
241
+ if (!r.treeItemId && ((n = e.currentTarget) === null || n === void 0 ? void 0 : n.id)) {
242
+ t.treeItemId = e.currentTarget.id;
243
+ }
244
+ w === null || w === void 0 ? void 0 : w(e, t);
245
+ }), [ w ]);
246
+ var J = (0, t.useCallback)((function(e) {
247
+ A === null || A === void 0 ? void 0 : A(e, n);
248
+ }), [ n, A ]);
249
+ var U = (0, t.useCallback)((function(e) {
250
+ var n;
251
+ e.stopPropagation();
252
+ q === null || q === void 0 ? void 0 : (n = q.current) === null || n === void 0 ? void 0 : n.focus();
253
+ b === null || b === void 0 ? void 0 : b(e);
254
+ }), [ b ]);
255
+ var X = (0, t.useCallback)((function() {
256
+ if ((K === null || K === void 0 ? void 0 : K.get("".concat(n))) === "0") {
166
257
  L(0);
167
258
  }
168
- };
259
+ }), [ n, K ]);
169
260
  (0, t.useEffect)((function() {
170
- if (T === n) {
261
+ if (_ === n) {
171
262
  var e;
172
- q === null || q === void 0 ? void 0 : (e = q.current) === null || e === void 0 ? void 0 : e.focus();
263
+ F === null || F === void 0 ? void 0 : (e = F.current) === null || e === void 0 ? void 0 : e.focus();
264
+ }
265
+ }), [ _, n, F ]);
266
+ var G = (0, t.useCallback)((function(e) {
267
+ e.stopPropagation();
268
+ }), []);
269
+ var H = (0, t.useCallback)((function(e) {
270
+ e.stopPropagation();
271
+ if (e.key === " ") {
272
+ O === null || O === void 0 ? void 0 : O(e, {
273
+ treeItemId: n
274
+ });
275
+ return;
173
276
  }
174
- }), [ T, q ]);
175
- var X = function e(n) {
176
- n.stopPropagation();
177
- };
178
- var G = function e(r) {
179
- r.stopPropagation();
180
277
  // Used to ensure first item in Tree is tab navigable, i.e. in JSONTree when focus is manually set to the root item,
181
278
  // this allows user to tab backwards to previous item. Tab index is reset to 0 onBlur.
182
- if (r.shiftKey && r.key === "Tab" && (A === null || A === void 0 ? void 0 : A.get("".concat(n))) === "0") {
279
+ if (e.shiftKey && e.key === "Tab" && (K === null || K === void 0 ? void 0 : K.get("".concat(n))) === "0") {
183
280
  L(-1);
184
281
  }
185
- I === null || I === void 0 ? void 0 : I(r, n, K, M, $);
186
- f === null || f === void 0 ? void 0 : f(r);
187
- };
188
- var H = function e() {
189
- if (!g) {
190
- return undefined;
191
- }
192
-
193
- return (0, t.cloneElement)(g, {
194
- onClick: function e(n) {
195
- var r, t;
196
- $(!K, n);
197
- J(n);
198
- (r = (t = g.props).onClick) === null || r === void 0 ? void 0 : r.call(t, n);
199
- },
200
- "aria-expanded": K
201
- });
202
- };
282
+ C === null || C === void 0 ? void 0 : C(e, n, c, M, B);
283
+ g === null || g === void 0 ? void 0 : g(e);
284
+ }), [ M, c, B, n, K, C, g, O ]);
203
285
 
204
- return o().createElement("li", p({}, S, {
205
- ref: q,
286
+ return o().createElement("li", h({
287
+ "data-test": "tree-item"
288
+ }, k, {
289
+ id: n,
290
+ ref: $,
206
291
  tabIndex: V,
207
- onBlur: U,
208
- onFocus: B,
209
- onKeyDown: G,
292
+ onBlur: X,
293
+ onFocus: U,
294
+ onKeyDown: H,
210
295
  role: "treeitem",
211
- "aria-labelledby": c,
212
- "aria-expanded": M.length ? K : undefined
213
- }), l, o().createElement(s, {
214
- ref: F,
296
+ "aria-labelledby": v,
297
+ "aria-expanded": M.length ? c || "false" : undefined
298
+ }), o().createElement(f, null, o().createElement(d, null, l), o().createElement(s, {
299
+ "data-test": "tree-item-content",
300
+ ref: q,
215
301
  tabIndex: -1,
216
- onFocus: X,
302
+ onFocus: G,
217
303
  onClick: J
218
- }, a, H(), !K && i), K && o().createElement(o().Fragment, null, o().createElement(v, {
304
+ }, a, !c && u)), c && o().createElement(o().Fragment, null, o().createElement(y, {
219
305
  role: "group",
220
- $defaultIndent: O
221
- }, r), i));
306
+ $defaultIndent: E
307
+ }, r), u));
222
308
  }
223
- O.propTypes = x;
224
- /* harmony default export */ const I = O;
309
+ K.propTypes = R;
310
+ /* harmony default export */ const _ = K;
225
311
  // CONCATENATED MODULE: ./src/Tree/treeUtils.ts
226
- function E(e, n) {
227
- return P(e) || T(e, n) || C(e, n) || j();
312
+ function D(e, n) {
313
+ return q(e) || F(e, n) || V(e, n) || N();
228
314
  }
229
- function j() {
315
+ function N() {
230
316
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
231
317
  }
232
- function C(e, n) {
318
+ function V(e, n) {
233
319
  if (e) {
234
- if ("string" == typeof e) return A(e, n);
320
+ if ("string" == typeof e) return L(e, n);
235
321
  var r = {}.toString.call(e).slice(8, -1);
236
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? A(e, n) : void 0;
322
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? L(e, n) : void 0;
237
323
  }
238
324
  }
239
- function A(e, n) {
325
+ function L(e, n) {
240
326
  (null == n || n > e.length) && (n = e.length);
241
327
  for (var r = 0, t = Array(n); r < n; r++) {
242
328
  t[r] = e[r];
243
329
  }
244
330
  return t;
245
331
  }
246
- function T(e, n) {
332
+ function F(e, n) {
247
333
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
248
334
  if (null != r) {
249
335
  var t, o, a, l, i = [], u = !0, c = !1;
@@ -265,145 +351,145 @@
265
351
  return i;
266
352
  }
267
353
  }
268
- function P(e) {
354
+ function q(e) {
269
355
  if (Array.isArray(e)) return e;
270
356
  }
271
357
  /**
272
358
  * A helper function to get first key in Map that matches given value
273
- */ function R(e, n) {
359
+ */ function M(e, n) {
274
360
  var r;
275
361
  var t = Array.from(e.entries());
276
362
  return (r = t.find((function(e) {
277
- var r = E(e, 2), t = r[1];
363
+ var r = D(e, 2), t = r[1];
278
364
  return t === n;
279
365
  }))) === null || r === void 0 ? void 0 : r[0];
280
366
  }
281
367
  /**
282
368
  * A helper function to get parent path of current item path
283
- */ function K(e) {
369
+ */ function $(e) {
284
370
  // remove last index number of the current item path string to get parent
285
371
  return e.split("-").slice(0, -1).join("-");
286
372
  }
287
373
  /**
288
374
  * A helper function to get next path of current item path in same level
289
- */ function _(e, n) {
375
+ */ function B(e, n) {
290
376
  return e === null || e === void 0 ? void 0 : e.replace(/([^-]*)$/, "".concat(n + 1));
291
377
  }
292
378
  /**
293
379
  * A helper function to get the last index number of an item path string
294
- */ function D(e) {
380
+ */ function J(e) {
295
381
  var n = e.split("-").pop();
296
382
  if (!n) {
297
383
  return 0;
298
384
  }
299
385
  return parseInt(n, 10) || 0;
300
386
  }
301
- function N(e, n) {
387
+ function U(e, n) {
302
388
  var r = e.get(n);
303
389
  if (!r) {
304
390
  return n;
305
391
  }
306
- var t = K(r);
307
- return R(e, t) || n;
392
+ var t = $(r);
393
+ return M(e, t) || n;
308
394
  }
309
395
  /**
310
396
  * A helper function for getNextTreeItem
311
- */ function V(e, n) {
312
- var r = K(n);
397
+ */ function X(e, n) {
398
+ var r = $(n);
313
399
  if (!r) {
314
- return R(e, n);
400
+ return M(e, n);
315
401
  }
316
402
  // get next node in the parent level
317
- var t = D(r);
318
- var o = _(r, t);
319
- var a = R(e, o);
403
+ var t = J(r);
404
+ var o = B(r, t);
405
+ var a = M(e, o);
320
406
  if (a) {
321
407
  return a;
322
408
  }
323
409
  // continue getting parents until find next node or reach root
324
- return V(e, o);
410
+ return X(e, o);
325
411
  }
326
- function L(e, n) {
412
+ function G(e, n) {
327
413
  var r = e.get(n);
328
414
  if (!r) {
329
415
  return n;
330
416
  }
331
417
  // case where next tree item is the first visible child
332
- var t = R(e, "".concat(r, "-0"));
418
+ var t = M(e, "".concat(r, "-0"));
333
419
  if (t) {
334
420
  return t;
335
421
  }
336
422
  // case where next tree item is the next node in the same level
337
- var o = D(r);
338
- var a = _(r, o);
339
- var l = R(e, a);
423
+ var o = J(r);
424
+ var a = B(r, o);
425
+ var l = M(e, a);
340
426
  if (l) {
341
427
  return l;
342
428
  }
343
429
  // case where next tree item is a higher level or does not exist
344
- return V(e, r) || n;
430
+ return X(e, r) || n;
345
431
  }
346
432
  /**
347
433
  * A helper function for getPrevTreeItem
348
- */ function F(e, n) {
349
- var r = R(e, "".concat(n, "-0"));
434
+ */ function H(e, n) {
435
+ var r = M(e, "".concat(n, "-0"));
350
436
  if (!r) {
351
- return R(e, n);
437
+ return M(e, n);
352
438
  }
353
- var t = R(e, n);
439
+ var t = M(e, n);
354
440
  var o = "".concat(n, "-0");
355
441
  // get the last child in current node, and continue to find its children recursively
356
442
  while (t) {
357
- var a = D(o);
358
- var l = _(o, a);
359
- t = R(e, l);
443
+ var a = J(o);
444
+ var l = B(o, a);
445
+ t = M(e, l);
360
446
  if (t) {
361
447
  o = l;
362
448
  }
363
449
  }
364
- return F(e, o);
450
+ return H(e, o);
365
451
  }
366
- function q(e, n) {
452
+ function W(e, n) {
367
453
  var r = e.get(n);
368
454
  if (!r) {
369
455
  return n;
370
456
  }
371
- var t = D(r);
457
+ var t = J(r);
372
458
  // case where current is first child of parent or root item
373
459
  if (t === 0) {
374
- return N(e, n);
460
+ return U(e, n);
375
461
  }
376
462
  // case where previous tree item is or is a child of previous node in same level
377
463
  var o = r.replace(/[^-]+$/, "".concat(t - 1));
378
- return F(e, o) || n;
464
+ return H(e, o) || n;
379
465
  }
380
- function M(e) {
381
- return R(e, "0");
466
+ function z(e) {
467
+ return M(e, "0");
382
468
  }
383
- function $(e) {
469
+ function Q(e) {
384
470
  var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "0";
385
- var r = R(e, n);
471
+ var r = M(e, n);
386
472
  var t = n;
387
473
  // find last child in current node
388
474
  while (r) {
389
- var o = D(t);
390
- r = R(e, _(t, o));
475
+ var o = J(t);
476
+ r = M(e, B(t, o));
391
477
  if (r) {
392
- t = _(t, o);
478
+ t = B(t, o);
393
479
  }
394
480
  }
395
481
  // check if last child has children
396
- var a = R(e, "".concat(t, "-0"));
482
+ var a = M(e, "".concat(t, "-0"));
397
483
  if (!a) {
398
- return R(e, t);
484
+ return M(e, t);
399
485
  }
400
486
  // continue to find its last child recursively
401
487
  t = "".concat(t, "-0");
402
- return $(e, t);
488
+ return Q(e, t);
403
489
  }
404
490
  // CONCATENATED MODULE: ./src/Tree/Tree.tsx
405
- function J() {
406
- return J = Object.assign ? Object.assign.bind() : function(e) {
491
+ function Y() {
492
+ return Y = Object.assign ? Object.assign.bind() : function(e) {
407
493
  for (var n = 1; n < arguments.length; n++) {
408
494
  var r = arguments[n];
409
495
  for (var t in r) {
@@ -411,29 +497,29 @@
411
497
  }
412
498
  }
413
499
  return e;
414
- }, J.apply(null, arguments);
500
+ }, Y.apply(null, arguments);
415
501
  }
416
- function B(e, n) {
417
- return z(e) || H(e, n) || X(e, n) || U();
502
+ function Z(e, n) {
503
+ return oe(e) || te(e, n) || ne(e, n) || ee();
418
504
  }
419
- function U() {
505
+ function ee() {
420
506
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
421
507
  }
422
- function X(e, n) {
508
+ function ne(e, n) {
423
509
  if (e) {
424
- if ("string" == typeof e) return G(e, n);
510
+ if ("string" == typeof e) return re(e, n);
425
511
  var r = {}.toString.call(e).slice(8, -1);
426
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? G(e, n) : void 0;
512
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? re(e, n) : void 0;
427
513
  }
428
514
  }
429
- function G(e, n) {
515
+ function re(e, n) {
430
516
  (null == n || n > e.length) && (n = e.length);
431
517
  for (var r = 0, t = Array(n); r < n; r++) {
432
518
  t[r] = e[r];
433
519
  }
434
520
  return t;
435
521
  }
436
- function H(e, n) {
522
+ function te(e, n) {
437
523
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
438
524
  if (null != r) {
439
525
  var t, o, a, l, i = [], u = !0, c = !1;
@@ -455,12 +541,12 @@
455
541
  return i;
456
542
  }
457
543
  }
458
- function z(e) {
544
+ function oe(e) {
459
545
  if (Array.isArray(e)) return e;
460
546
  }
461
- function W(e, n) {
547
+ function ae(e, n) {
462
548
  if (null == e) return {};
463
- var r, t, o = Q(e, n);
549
+ var r, t, o = le(e, n);
464
550
  if (Object.getOwnPropertySymbols) {
465
551
  var a = Object.getOwnPropertySymbols(e);
466
552
  for (t = 0; t < a.length; t++) {
@@ -469,7 +555,7 @@
469
555
  }
470
556
  return o;
471
557
  }
472
- function Q(e, n) {
558
+ function le(e, n) {
473
559
  if (null == e) return {};
474
560
  var r = {};
475
561
  for (var t in e) {
@@ -480,103 +566,115 @@
480
566
  }
481
567
  return r;
482
568
  }
483
- var Y = {
569
+ var ie = {
484
570
  children: l().node,
485
- defaultIndent: l().bool
571
+ defaultIndent: l().bool,
572
+ elementRef: l().oneOfType([ l().func, l().object ])
486
573
  };
487
- function Z(e) {
488
- var n = e.children, r = e.defaultIndent, a = r === void 0 ? true : r, l = W(e, [ "children", "defaultIndent" ]);
489
- var i = (0, t.useState)(), c = B(i, 2), d = c[0], f = c[1];
574
+ /**
575
+ * Used to present a hierarchical list.
576
+ */ function ue(e) {
577
+ var n = e.children, r = e.defaultIndent, a = r === void 0 ? true : r, l = e.elementRef, i = ae(e, [ "children", "defaultIndent", "elementRef" ]);
578
+ // @docs-props-type TreePropsBase
579
+ var u = (0, t.useState)(), c = Z(u, 2), f = c[0], d = c[1];
490
580
  var s = new Map;
491
- var p = function e(n, r, t, o, a) {
581
+ var v = function e(n, r, t, o, a) {
492
582
  n.stopPropagation();
493
583
  var l = t && (o === null || o === void 0 ? void 0 : o.length);
494
584
  switch (n.key) {
495
585
  case "ArrowUp":
496
586
  n.preventDefault();
497
- f(q(s, r));
587
+ d(W(s, r));
498
588
  break;
499
589
 
500
590
  case "ArrowDown":
501
591
  n.preventDefault();
502
- f(L(s, r));
592
+ d(G(s, r));
503
593
  break;
504
594
 
505
595
  case "ArrowLeft":
506
596
  n.preventDefault();
507
597
  if (l) {
508
- a(false, n);
598
+ a(n, {
599
+ treeItemId: r
600
+ });
509
601
  } else {
510
- f(N(s, r));
602
+ d(U(s, r));
511
603
  }
512
604
  break;
513
605
 
514
606
  case "ArrowRight":
515
607
  n.preventDefault();
516
608
  if (l) {
517
- f(L(s, r));
609
+ d(G(s, r));
518
610
  } else {
519
- a(true, n);
611
+ a(n, {
612
+ treeItemId: r
613
+ });
520
614
  }
521
615
  break;
522
616
 
523
617
  case "Home":
524
618
  n.preventDefault();
525
- f(M(s));
619
+ d(z(s));
526
620
  break;
527
621
 
528
622
  case "End":
529
623
  n.preventDefault();
530
- f($(s));
624
+ d(Q(s));
531
625
  break;
532
626
 
533
627
  case "Enter":
534
628
  n.preventDefault();
535
- a(!l, n);
629
+ a(n, {
630
+ treeItemId: r
631
+ });
536
632
  break;
537
633
 
538
634
  default:
539
635
  // do nothing
540
636
  }
541
637
  };
542
- var y = function e(n, r) {
638
+ var m = function e(n, r) {
543
639
  n.preventDefault();
544
- f(r);
640
+ d(r);
545
641
  };
546
- var m = function e(n) {
642
+ var b = function e(n) {
547
643
  s["delete"](n);
548
644
  };
549
- var b = function e(n, r) {
645
+ var h = function e(n, r) {
550
646
  s.set(n, r);
551
647
  };
552
- var h = t.Children.toArray(n).filter(t.isValidElement);
553
- h.forEach((function(e, n) {
554
- if (e.props.id && b) {
555
- b("".concat(e.props.id), "".concat(n));
648
+ var g = t.Children.toArray(n).filter(t.isValidElement);
649
+ g.forEach((function(e, n) {
650
+ if (e.props.id && h) {
651
+ h("".concat(e.props.id), "".concat(n));
556
652
  }
557
653
  }));
558
- var g = (0, t.useMemo)((function() {
654
+ var S = (0, t.useMemo)((function() {
559
655
  return {
560
656
  defaultIndent: a,
561
- onItemKeyDown: p,
562
- onItemClick: y,
563
- removeNode: m,
564
- setNode: b,
657
+ onItemKeyDown: v,
658
+ onItemClick: m,
659
+ removeNode: b,
660
+ setNode: h,
565
661
  itemPaths: s,
566
- focusedItemId: d
662
+ focusedItemId: f
567
663
  };
568
- }), [ a, d, s, p, m, b ]);
664
+ }), [ a, f, s, v, b, h ]);
569
665
 
570
- return o().createElement(u.Provider, {
571
- value: g
572
- }, o().createElement(v, J({
666
+ return o().createElement(p.Provider, {
667
+ value: S
668
+ }, o().createElement(y, Y({
669
+ "data-test": "tree",
670
+ ref: l,
573
671
  role: "tree",
574
672
  $defaultIndent: a
575
- }, l), n));
673
+ }, i), n));
576
674
  }
577
- Z.propTypes = Y;
578
- Z.TreeItem = I;
579
- /* harmony default export */ const ee = Z;
675
+ ue.propTypes = ie;
676
+ ue.Item = _;
677
+ /* harmony default export */ const ce = ue;
580
678
  } // CONCATENATED MODULE: ./src/Tree/index.ts
581
679
  /***/ ,
582
680
  /***/ 3563:
@@ -681,34 +779,34 @@
681
779
  r.r(t);
682
780
  // EXPORTS
683
781
  r.d(t, {
684
- default: () => /* reexport */ je
782
+ default: () => /* reexport */ Ee
685
783
  });
686
784
  // EXTERNAL MODULE: external "react"
687
785
  var e = r(9497);
688
786
  var n = r.n(e);
689
- // EXTERNAL MODULE: external "prop-types"
690
- var o = r(23);
691
- var a = r.n(o);
692
787
  // CONCATENATED MODULE: external "lodash/isString"
693
- const l = require("lodash/isString");
788
+ const o = require("lodash/isString");
789
+ var a = r.n(o);
790
+ // EXTERNAL MODULE: external "prop-types"
791
+ var l = r(23);
694
792
  var i = r.n(l);
695
793
  // EXTERNAL MODULE: external "styled-components"
696
794
  var u = r(232);
697
795
  var c = r.n(u);
698
796
  // EXTERNAL MODULE: external "@splunk/themes"
699
- var d = r(3563);
797
+ var f = r(3563);
700
798
  // CONCATENATED MODULE: ./src/JSONTree/JSONTreeStyles.ts
701
- var f = (0, u.css)([ "", ";", ";color:", ";" ], d.mixins.reset("block"), d.mixins.typography({
799
+ var d = (0, u.css)([ "", ";", ";color:", ";padding:4px;" ], f.mixins.reset("block"), f.mixins.typography({
702
800
  family: "monospace"
703
- }), d.variables.syntaxGray);
801
+ }), f.variables.syntaxGray);
704
802
  var s = c().code.withConfig({
705
803
  displayName: "JSONTreeStyles__StyledScrollCode",
706
804
  componentId: "vrdt21-0"
707
- })([ "", ";overflow-x:auto;white-space:nowrap;" ], f);
805
+ })([ "", ";overflow-x:auto;white-space:nowrap;" ], d);
708
806
  var v = c().code.withConfig({
709
807
  displayName: "JSONTreeStyles__StyledWrapCode",
710
808
  componentId: "vrdt21-1"
711
- })([ "", ";white-space:pre-wrap;" ], f);
809
+ })([ "", ";white-space:pre-wrap;" ], d);
712
810
  // CONCATENATED MODULE: external "lodash/fill"
713
811
  const p = require("lodash/fill");
714
812
  var y = r.n(p);
@@ -722,18 +820,18 @@
722
820
  const S = require("lodash/isNumber");
723
821
  var w = r.n(S);
724
822
  // CONCATENATED MODULE: external "lodash/isObject"
725
- const k = require("lodash/isObject");
726
- var x = r.n(k);
823
+ const O = require("lodash/isObject");
824
+ var k = r.n(O);
727
825
  // CONCATENATED MODULE: external "lodash/keys"
728
- const O = require("lodash/keys");
729
- var I = r.n(O);
826
+ const I = require("lodash/keys");
827
+ var x = r.n(I);
730
828
  // CONCATENATED MODULE: external "lodash/repeat"
731
- const E = require("lodash/repeat");
732
- var j = r.n(E);
829
+ const j = require("lodash/repeat");
830
+ var E = r.n(j);
733
831
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
734
832
  const C = require("@splunk/ui-utils/i18n");
735
- // EXTERNAL MODULE: ./src/Tree/index.ts + 6 modules
736
- var A = r(4610);
833
+ // EXTERNAL MODULE: ./src/Tree/index.ts + 7 modules
834
+ var A = r(8655);
737
835
  // CONCATENATED MODULE: ./src/JSONTree/JSONTreeItem.tsx
738
836
  function T() {
739
837
  return T = Object.assign ? Object.assign.bind() : function(e) {
@@ -814,48 +912,52 @@
814
912
  return r;
815
913
  }
816
914
  var F = {
817
- clickableKeyRef: a().object,
818
- clickableValRef: a().object,
819
- hasChildren: a().bool,
820
- indentArray: a().arrayOf(a().string),
821
- index: a().number,
822
- initialOpenState: a().bool,
823
- properties: a().arrayOf(a().string),
824
- propertyDataPath: a().string,
825
- propertyElement: a().node,
826
- renderExpandLink: a().func,
827
- representation: a().node,
828
- value: a().oneOfType([ a().string, a().object, a().array, a().number, a().bool ])
915
+ clickableKeyRef: i().object,
916
+ clickableValRef: i().object,
917
+ hasChildren: i().bool,
918
+ indentArray: i().arrayOf(i().string),
919
+ index: i().number,
920
+ initialOpenState: i().bool,
921
+ properties: i().arrayOf(i().string),
922
+ propertyDataPath: i().string,
923
+ propertyElement: i().node,
924
+ renderExpandLink: i().func,
925
+ representation: i().node,
926
+ value: i().oneOfType([ i().string, i().object, i().array, i().number, i().bool ])
829
927
  };
830
928
  function q(r) {
831
- var t = r.clickableKeyRef, o = r.clickableValRef, a = r.hasChildren, l = r.indentArray, i = r.index, u = r.initialOpenState, c = r.onFocus, d = r.properties, f = r.propertyDataPath, s = r.propertyElement, v = r.renderExpandLink, p = r.representation, y = r.value, m = V(r, [ "clickableKeyRef", "clickableValRef", "hasChildren", "indentArray", "index", "initialOpenState", "onFocus", "properties", "propertyDataPath", "propertyElement", "renderExpandLink", "representation", "value" ]);
929
+ var t = r.clickableKeyRef, o = r.clickableValRef, a = r.hasChildren, l = r.indentArray, i = r.index, u = r.initialOpenState, c = r.onFocus, f = r.properties, d = r.propertyDataPath, s = r.propertyElement, v = r.renderExpandLink, p = r.representation, y = r.value, m = V(r, [ "clickableKeyRef", "clickableValRef", "hasChildren", "indentArray", "index", "initialOpenState", "onFocus", "properties", "propertyDataPath", "propertyElement", "renderExpandLink", "representation", "value" ]);
832
930
  var h = (0, e.useState)(u), g = P(h, 2), S = g[0], w = g[1];
833
- var k = function e(n) {
834
- w(n);
835
- };
836
- var x = (0, e.useRef)(null);
837
- var O = v ? v({
931
+ var O = (0, e.useCallback)((function() {
932
+ w((function(e) {
933
+ return !e;
934
+ }));
935
+ }), []);
936
+ var k = (0, e.useRef)(null);
937
+ var I = v ? v({
938
+ onToggleExpansion: O,
838
939
  open: S,
839
940
  withTooltip: true,
840
- expandLinkRef: x
941
+ expandLinkRef: k
841
942
  }) : {
842
943
  expandLink: undefined
843
- }, I = O.expandLink;
844
- var E = (d === null || d === void 0 ? void 0 : d.length) && i + 1 < (d === null || d === void 0 ? void 0 : d.length) ? "," : null;
944
+ }, x = I.expandLink;
945
+ var j = (f === null || f === void 0 ? void 0 : f.length) && i + 1 < (f === null || f === void 0 ? void 0 : f.length) ? "," : null;
845
946
 
846
- return n().createElement(A["default"].TreeItem, T({
847
- content: n().createElement(n().Fragment, null, s, a && (b()(y) ? "[" : "{"), !a && n().createElement(n().Fragment, null, p, E)),
947
+ return n().createElement(A["default"].Item, T({
948
+ content: n().createElement(n().Fragment, null, s, a && (b()(y) ? "[" : "{"), !a && n().createElement(n().Fragment, null, p, j), a && x),
848
949
  customIndent: l,
849
950
  "data-test": a ? "node" : null,
850
- "data-test-path": f,
851
- endAdornment: a && n().createElement(n().Fragment, null, S && l, b()(y) ? "]" : "}", E),
951
+ "data-test-path": d,
952
+ endAdornment: a && n().createElement(n().Fragment, null, S && l, b()(y) ? "]" : "}", j),
953
+ expanded: S,
852
954
  onFocus: function e(n) {
853
955
  c === null || c === void 0 ? void 0 : c(n);
854
956
  // check if onFocus was triggered by a click event or expand link
855
- var r = n.relatedTarget === (t === null || t === void 0 ? void 0 : t.current) || n.relatedTarget === (o === null || o === void 0 ? void 0 : o.current) || n.relatedTarget === (x === null || x === void 0 ? void 0 : x.current) ? n.relatedTarget : null;
957
+ var r = n.relatedTarget === (t === null || t === void 0 ? void 0 : t.current) || n.relatedTarget === (o === null || o === void 0 ? void 0 : o.current) || n.relatedTarget === (k === null || k === void 0 ? void 0 : k.current) ? n.relatedTarget : null;
856
958
  if (m.id === "root") {
857
959
  var a;
858
- x === null || x === void 0 ? void 0 : (a = x.current) === null || a === void 0 ? void 0 : a.focus();
960
+ k === null || k === void 0 ? void 0 : (a = k.current) === null || a === void 0 ? void 0 : a.focus();
859
961
  }
860
962
  if (!r) {
861
963
  // if JSONTreeItem contains clickable keys/vals, focus should go there
@@ -870,10 +972,8 @@
870
972
  r.focus();
871
973
  }
872
974
  },
873
- onToggle: k,
874
- open: u,
875
- tabIndex: 0,
876
- toggle: a ? I : undefined
975
+ onToggleExpansion: O,
976
+ tabIndex: 0
877
977
  }, m), a && p);
878
978
  }
879
979
  q.propTypes = F;
@@ -881,57 +981,57 @@
881
981
  const M = require("@splunk/react-ui/ButtonSimple");
882
982
  var $ = r.n(M);
883
983
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
884
- const J = require("@splunk/react-ui/Clickable");
885
- var B = r.n(J);
984
+ const B = require("@splunk/react-ui/Clickable");
985
+ var J = r.n(B);
886
986
  // CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
887
987
  const U = require("@splunk/react-ui/Tooltip");
888
988
  var X = r.n(U);
889
989
  // CONCATENATED MODULE: ./src/JSONTree/JSONTreeItemStyles.ts
890
990
  var G = {
891
- string: d.variables.syntaxTeal,
892
- number: d.variables.syntaxBlue,
893
- boolean: d.variables.syntaxPurple,
894
- null: d.variables.syntaxBrown,
895
- object: d.variables.syntaxGray,
896
- array: d.variables.syntaxGray
991
+ string: f.variables.syntaxTeal,
992
+ number: f.variables.syntaxBlue,
993
+ boolean: f.variables.syntaxPurple,
994
+ null: f.variables.syntaxBrown,
995
+ object: f.variables.syntaxGray,
996
+ array: f.variables.syntaxGray
897
997
  };
898
998
  var H = (0, u.css)([ "word-break:break-word;word-wrap:break-word;" ]);
899
- var z = (0, u.css)([ "white-space:nowrap;" ]);
900
- /* Using this magic number to set the height to be at least the minimum target size of 24 by 24 */ var W = (0,
999
+ var W = (0, u.css)([ "white-space:nowrap;" ]);
1000
+ /* Using this magic number to set the height to be at least the minimum target size of 24 by 24 */ var z = (0,
901
1001
  u.css)([ "padding-block:2px;" ]);
902
- var Q = (0, u.css)([ "font-family:inherit;&:focus{box-shadow:", ";outline:0;&:active{box-shadow:none;}}&:hover{background-color:", ";}" ], d.variables.focusShadow, d.variables.neutral50);
1002
+ var Q = (0, u.css)([ "font-family:inherit;&:focus{box-shadow:", ";outline:0;&:active{box-shadow:none;}}&:hover{background-color:", ";}" ], f.variables.focusShadow, f.variables.neutral50);
903
1003
  var Y = (0, u.css)([ "color:", ";", ";", "" ], (function(e) {
904
1004
  var n = e.valueType;
905
1005
  return G[n];
906
1006
  }), (function(e) {
907
1007
  var n = e.overflowType;
908
- return n === "wrap" ? H : z;
909
- }), W);
1008
+ return n === "wrap" ? H : W;
1009
+ }), z);
910
1010
  var Z = c().span.withConfig({
911
1011
  displayName: "JSONTreeItemStyles__StyledValue",
912
1012
  componentId: "o558h3-0"
913
1013
  })([ "", "" ], Y);
914
- var ee = c()(B()).withConfig({
1014
+ var ee = c()(J()).withConfig({
915
1015
  displayName: "JSONTreeItemStyles__StyledValueInteractiveClickable",
916
1016
  componentId: "o558h3-1"
917
1017
  })([ "", " ", " min-width:24px;text-align:center;" ], Y, Q);
918
- var ne = (0, u.css)([ "", " color:", ";" ], W, d.variables.syntaxRed);
1018
+ var ne = (0, u.css)([ "", " color:", ";" ], z, f.variables.syntaxRed);
919
1019
  var re = c().span.withConfig({
920
1020
  displayName: "JSONTreeItemStyles__StyledProperty",
921
1021
  componentId: "o558h3-2"
922
1022
  })([ "", "" ], ne);
923
- var te = c()(B()).withConfig({
1023
+ var te = c()(J()).withConfig({
924
1024
  displayName: "JSONTreeItemStyles__StyledPropertyInteractiveClickable",
925
1025
  componentId: "o558h3-3"
926
1026
  })([ "", " ", "" ], ne, Q);
927
1027
  var oe = c()($()).withConfig({
928
1028
  displayName: "JSONTreeItemStyles__StyledExpandLinkClickable",
929
1029
  componentId: "o558h3-4"
930
- })([ "", ";border:none;border-radius:0;font-family:inherit;padding:1px ", " 3px ", ";&:hover{background-color:", ";text-decoration:none;}&:focus{box-shadow:", ";&:active{box-shadow:none;}}" ], W, d.variables.spacingXSmall, d.variables.spacingXSmall, d.variables.actionColorBackgroundSubtleHover, d.variables.focusShadowInset);
1030
+ })([ "", ";border:none;border-radius:0;font-family:inherit;padding:1px ", " 3px ", ";&:hover{background-color:", ";text-decoration:none;}&:focus{box-shadow:", ";&:active{box-shadow:none;}}" ], z, f.variables.spacingXSmall, f.variables.spacingXSmall, f.variables.actionColorBackgroundSubtleHover, f.variables.focusShadowInset);
931
1031
  var ae = c()(X()).withConfig({
932
1032
  displayName: "JSONTreeItemStyles__StyledTooltip",
933
1033
  componentId: "o558h3-5"
934
- })([ "font-family:", ";" ], d.variables.monoFontFamily);
1034
+ })([ "font-family:", ";" ], f.variables.monoFontFamily);
935
1035
  // CONCATENATED MODULE: ./src/JSONTree/renderTreeItems.tsx
936
1036
  function le(e) {
937
1037
  "@babel/helpers - typeof";
@@ -942,7 +1042,7 @@
942
1042
  }, le(e);
943
1043
  }
944
1044
  function ie(e) {
945
- return fe(e) || de(e) || ce(e) || ue();
1045
+ return de(e) || fe(e) || ce(e) || ue();
946
1046
  }
947
1047
  function ue() {
948
1048
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -954,10 +1054,10 @@
954
1054
  return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? se(e, n) : void 0;
955
1055
  }
956
1056
  }
957
- function de(e) {
1057
+ function fe(e) {
958
1058
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
959
1059
  }
960
- function fe(e) {
1060
+ function de(e) {
961
1061
  if (Array.isArray(e)) return se(e);
962
1062
  }
963
1063
  function se(e, n) {
@@ -968,25 +1068,25 @@
968
1068
  return t;
969
1069
  }
970
1070
  function ve(r) {
971
- var t = r.id, o = r.childKey, a = r.index, l = r.value, i = r.properties, u = r.propertyDataPath, c = r.obj, d = r.renderValue, f = r.renderKey, s = r.getInitialOpenState, v = r.indentArray, p = r.renderExpandLink, y = r.onFocus;
1071
+ var t = r.id, o = r.childKey, a = r.index, l = r.value, i = r.properties, u = r.propertyDataPath, c = r.obj, f = r.renderValue, d = r.renderKey, s = r.getInitialOpenState, v = r.indentArray, p = r.renderExpandLink, y = r.onFocus;
972
1072
  var m = (0, e.useRef)(null);
973
1073
  var h = (0, e.useRef)(null);
974
- var S = d({
1074
+ var S = f({
975
1075
  key: o,
976
1076
  value: l,
977
1077
  clickValueRef: m
978
- }), w = S.representation, k = S.clickableValRef;
979
- var O = !b()(c) ? f(o, h) : {
1078
+ }), w = S.representation, O = S.clickableValRef;
1079
+ var I = !b()(c) ? d(o, h) : {
980
1080
  propertyElement: undefined,
981
1081
  clickableKeyRef: undefined
982
- }, I = O.propertyElement, E = O.clickableKeyRef;
983
- var j = x()(l) && !g()(l) || b()(l) && l.length > 0;
1082
+ }, x = I.propertyElement, j = I.clickableKeyRef;
1083
+ var E = k()(l) && !g()(l) || b()(l) && l.length > 0;
984
1084
 
985
1085
  return n().createElement(q, {
986
1086
  id: t,
987
1087
  propertyDataPath: u,
988
- propertyElement: I,
989
- hasChildren: j,
1088
+ propertyElement: x,
1089
+ hasChildren: E,
990
1090
  initialOpenState: s(),
991
1091
  representation: w,
992
1092
  indentArray: v,
@@ -994,10 +1094,10 @@
994
1094
  index: a,
995
1095
  properties: i,
996
1096
  renderExpandLink: p,
997
- clickableKeyRef: E,
998
- clickableValRef: k,
1097
+ clickableKeyRef: j,
1098
+ clickableValRef: O,
999
1099
  onFocus: function e() {
1000
- y(E, k);
1100
+ y(j, O);
1001
1101
  }
1002
1102
  });
1003
1103
  }
@@ -1009,23 +1109,23 @@
1009
1109
  clickValueRef: a
1010
1110
  }), i = l.representation;
1011
1111
 
1012
- return n().createElement(A["default"].TreeItem, {
1112
+ return n().createElement(A["default"].Item, {
1013
1113
  id: "0",
1014
1114
  "data-test-path": ".",
1015
1115
  content: i
1016
1116
  });
1017
1117
  }
1018
1118
  function ye(e) {
1019
- var r = e.defaultOpen, t = r === void 0 ? false : r, o = e.defaultExpanded, a = o === void 0 ? false : o, l = e.expandChildrenOnShiftKey, u = l === void 0 ? false : l, c = e.indent, d = c === void 0 ? 4 : c, f = e.indentLevel, s = f === void 0 ? 1 : f, v = e.obj, p = e.onClickKey, m = e.onClickValue, h = e.overflow, S = h === void 0 ? "scroll" : h, k = e.path, O = k === void 0 ? [] : k, E = e.shift, A = e.updateShift;
1020
- var T = y()(Array(s), j()(" ", d));
1119
+ var r = e.defaultOpen, t = r === void 0 ? false : r, o = e.defaultExpanded, l = o === void 0 ? false : o, i = e.expandChildrenOnShiftKey, u = i === void 0 ? false : i, c = e.indent, f = c === void 0 ? 4 : c, d = e.indentLevel, s = d === void 0 ? 1 : d, v = e.obj, p = e.onClickKey, m = e.onClickValue, h = e.overflow, S = h === void 0 ? "scroll" : h, O = e.path, I = O === void 0 ? [] : O, j = e.shift, A = e.updateShift;
1120
+ var T = y()(Array(s), E()(" ", f));
1021
1121
  var P;
1022
1122
  var R;
1023
1123
  var K = function e() {
1024
- if (a && E == null) {
1124
+ if (l && j == null) {
1025
1125
  return true;
1026
1126
  }
1027
1127
  if (u) {
1028
- return !!E;
1128
+ return !!j;
1029
1129
  }
1030
1130
  return t;
1031
1131
  };
@@ -1037,7 +1137,7 @@
1037
1137
  var D = function e(n, r) {
1038
1138
  var t, o;
1039
1139
  // When rendering a single value key is not present, here we prevent `[undefined]` in path
1040
- var a = r !== undefined ? [].concat(ie(O), [ r ]) : ie(O);
1140
+ var a = r !== undefined ? [].concat(ie(I), [ r ]) : ie(I);
1041
1141
  var l = ".".concat(a.join("."));
1042
1142
  (t = R) === null || t === void 0 ? void 0 : (o = t.current) === null || o === void 0 ? void 0 : o.focus();
1043
1143
  p === null || p === void 0 ? void 0 : p(n, {
@@ -1048,7 +1148,7 @@
1048
1148
  var N = function e(n, r) {
1049
1149
  var t, o;
1050
1150
  // When rendering a single value key is not present, here we prevent `[undefined]` in path
1051
- var a = r !== undefined ? [].concat(ie(O), [ r ]) : ie(O);
1151
+ var a = r !== undefined ? [].concat(ie(I), [ r ]) : ie(I);
1052
1152
  var l = ".".concat(a.join("."));
1053
1153
  (t = P) === null || t === void 0 ? void 0 : (o = t.current) === null || o === void 0 ? void 0 : o.focus();
1054
1154
  m === null || m === void 0 ? void 0 : m(n, {
@@ -1072,39 +1172,40 @@
1072
1172
  }
1073
1173
  };
1074
1174
  var L = function e(r) {
1075
- var t = r.open, o = r.withTooltip, a = r.expandLinkRef;
1076
- var l = t ? "[-]" : "[+]";
1077
- var i = t ? (0, C._)("Collapse all") : (0, C._)("Shift click to expand all");
1078
- var c = n().createElement(oe, {
1175
+ var t = r.onToggleExpansion, o = r.open, a = r.withTooltip, l = r.expandLinkRef;
1176
+ var i = o ? "[-]" : "[+]";
1177
+ var c = o ? (0, C._)("Collapse all") : (0, C._)("Shift click to expand all");
1178
+ var f = n().createElement(oe, {
1079
1179
  appearance: "subtle",
1080
- elementRef: a,
1180
+ elementRef: l,
1081
1181
  tabIndex: -1,
1082
1182
  onClick: function e(n) {
1083
1183
  _(n);
1184
+ t === null || t === void 0 ? void 0 : t(n);
1084
1185
  },
1085
- "aria-expanded": t,
1186
+ "aria-expanded": o,
1086
1187
  "data-test": "toggle"
1087
- }, l);
1088
- if (u && o) {
1188
+ }, i);
1189
+ if (u && a) {
1089
1190
  return {
1090
1191
  expandLink: n().createElement(ae, {
1091
1192
  contentRelationship: "description",
1092
1193
  openDelay: "secondary",
1093
1194
  defaultPlacement: "above",
1094
- content: (0, C._)(i)
1095
- }, c),
1096
- expandLinkRef: a
1195
+ content: (0, C._)(c)
1196
+ }, f),
1197
+ expandLinkRef: l
1097
1198
  };
1098
1199
  }
1099
1200
  return {
1100
- expandLink: c,
1101
- expandLinkRef: a
1201
+ expandLink: f,
1202
+ expandLinkRef: l
1102
1203
  };
1103
1204
  };
1104
1205
  var F = function e(r) {
1105
- var t = r.value, o = r.key, l = r.clickValueRef;
1206
+ var t = r.value, o = r.key, i = r.clickValueRef;
1106
1207
  var c;
1107
- if (!x()(t)) {
1208
+ if (!k()(t)) {
1108
1209
  if (typeof t === "string") {
1109
1210
  c = '"'.concat(t, '"');
1110
1211
  } else if (typeof t === "boolean") {
@@ -1119,30 +1220,30 @@
1119
1220
  c = b()(t) ? "[]" : "{}";
1120
1221
  } else {
1121
1222
  c = ye({
1122
- defaultOpen: a === true,
1123
- defaultExpanded: a,
1223
+ defaultOpen: l === true,
1224
+ defaultExpanded: l,
1124
1225
  expandChildrenOnShiftKey: u,
1125
1226
  onClickKey: p,
1126
1227
  onClickValue: m,
1127
1228
  overflow: S,
1128
1229
  obj: t,
1129
- path: o !== undefined ? [].concat(ie(O), [ o ]) : ie(O),
1230
+ path: o !== undefined ? [].concat(ie(I), [ o ]) : ie(I),
1130
1231
  indentLevel: s + 1,
1131
- shift: E,
1232
+ shift: j,
1132
1233
  updateShift: A
1133
1234
  });
1134
1235
  }
1135
- if (i()(c) || w()(c)) {
1136
- var d = t === null ? "null" : // TS: bigint, function, symbol are prevented by JSONElement type
1236
+ if (a()(c) || w()(c)) {
1237
+ var f = t === null ? "null" : // TS: bigint, function, symbol are prevented by JSONElement type
1137
1238
  le(t);
1138
1239
  if (m) {
1139
1240
  return {
1140
1241
  representation: n().createElement(ee, {
1141
- elementRef: l,
1142
- valueType: d,
1242
+ elementRef: i,
1243
+ valueType: f,
1143
1244
  overflowType: S,
1144
1245
  onClick: function e(n) {
1145
- P = l;
1246
+ P = i;
1146
1247
  N(n, o);
1147
1248
  },
1148
1249
  onKeyDown: function e(n) {
@@ -1150,12 +1251,12 @@
1150
1251
  },
1151
1252
  tabIndex: -1
1152
1253
  }, c),
1153
- clickableValRef: l
1254
+ clickableValRef: i
1154
1255
  };
1155
1256
  }
1156
1257
  return {
1157
1258
  representation: n().createElement(Z, {
1158
- valueType: d,
1259
+ valueType: f,
1159
1260
  overflowType: S
1160
1261
  }, c)
1161
1262
  };
@@ -1185,12 +1286,12 @@
1185
1286
  propertyElement: n().createElement(n().Fragment, null, n().createElement(re, null, r), ":", " ")
1186
1287
  };
1187
1288
  };
1188
- if (x()(v) && !g()(v) || b()(v) && v.length > 0) {
1189
- var $ = I()(v).map((function(e, r, t) {
1289
+ if (k()(v) && !g()(v) || b()(v) && v.length > 0) {
1290
+ var $ = x()(v).map((function(e, r, t) {
1190
1291
  var o = v[e];
1191
1292
  // TS: should be safe based on (recursive) JSONElement type
1192
1293
  var a = b()(v) ? parseInt(e, 10) : e;
1193
- var l = O.length === 0 ? ".".concat(a) : ".".concat(O.join("."), ".").concat(a);
1294
+ var l = I.length === 0 ? ".".concat(a) : ".".concat(I.join("."), ".").concat(a);
1194
1295
 
1195
1296
  return n().createElement(ve, {
1196
1297
  id: l,
@@ -1212,15 +1313,15 @@
1212
1313
  }
1213
1314
  });
1214
1315
  }));
1215
- if (O.length === 0) {
1216
- var J = x()(v) && !g()(v) || b()(v) && v.length > 0;
1316
+ if (I.length === 0) {
1317
+ var B = k()(v) && !g()(v) || b()(v) && v.length > 0;
1217
1318
 
1218
1319
  return n().createElement(q, {
1219
1320
  id: "root",
1220
1321
  propertyDataPath: ".",
1221
1322
  key: ".",
1222
- hasChildren: J,
1223
- initialOpenState: t || a,
1323
+ hasChildren: B,
1324
+ initialOpenState: t || l,
1224
1325
  value: v,
1225
1326
  index: 0,
1226
1327
  renderExpandLink: L,
@@ -1249,7 +1350,7 @@
1249
1350
  }, me.apply(null, arguments);
1250
1351
  }
1251
1352
  function be(e, n) {
1252
- return ke(e) || we(e, n) || ge(e, n) || he();
1353
+ return Oe(e) || we(e, n) || ge(e, n) || he();
1253
1354
  }
1254
1355
  function he() {
1255
1356
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -1290,12 +1391,12 @@
1290
1391
  return i;
1291
1392
  }
1292
1393
  }
1293
- function ke(e) {
1394
+ function Oe(e) {
1294
1395
  if (Array.isArray(e)) return e;
1295
1396
  }
1296
- function xe(e, n) {
1397
+ function ke(e, n) {
1297
1398
  if (null == e) return {};
1298
- var r, t, o = Oe(e, n);
1399
+ var r, t, o = Ie(e, n);
1299
1400
  if (Object.getOwnPropertySymbols) {
1300
1401
  var a = Object.getOwnPropertySymbols(e);
1301
1402
  for (t = 0; t < a.length; t++) {
@@ -1304,7 +1405,7 @@
1304
1405
  }
1305
1406
  return o;
1306
1407
  }
1307
- function Oe(e, n) {
1408
+ function Ie(e, n) {
1308
1409
  if (null == e) return {};
1309
1410
  var r = {};
1310
1411
  for (var t in e) {
@@ -1317,26 +1418,26 @@
1317
1418
  }
1318
1419
  /** @public */
1319
1420
  /** @public */
1320
- /** @public */ var Ie = {
1321
- elementRef: a().oneOfType([ a().func, a().object ]),
1322
- defaultExpanded: a().bool,
1323
- indent: a().number,
1324
- json: a().oneOfType([ a().string, a().object, a().array, a().number, a().bool ]).isRequired,
1325
- onClickKey: a().func,
1326
- onClickValue: a().func,
1327
- overflow: a().oneOf([ "wrap", "scroll" ]),
1328
- expandChildrenOnShiftKey: a().bool
1421
+ /** @public */ var xe = {
1422
+ elementRef: i().oneOfType([ i().func, i().object ]),
1423
+ defaultExpanded: i().bool,
1424
+ indent: i().number,
1425
+ json: i().oneOfType([ i().string, i().object, i().array, i().number, i().bool ]).isRequired,
1426
+ onClickKey: i().func,
1427
+ onClickValue: i().func,
1428
+ overflow: i().oneOf([ "wrap", "scroll" ]),
1429
+ expandChildrenOnShiftKey: i().bool
1329
1430
  };
1330
1431
  /**
1331
1432
  * Used to visualize a JSON string.
1332
- */ function Ee(r) {
1333
- var t = r.elementRef, o = r.defaultExpanded, a = o === void 0 ? false : o, l = r.indent, u = l === void 0 ? 4 : l, c = r.json, d = r.onClickKey, f = r.onClickValue, p = r.overflow, y = p === void 0 ? "scroll" : p, m = r.expandChildrenOnShiftKey, b = m === void 0 ? true : m, h = xe(r, [ "elementRef", "defaultExpanded", "indent", "json", "onClickKey", "onClickValue", "overflow", "expandChildrenOnShiftKey" ]);
1433
+ */ function je(r) {
1434
+ var t = r.elementRef, o = r.defaultExpanded, l = o === void 0 ? false : o, i = r.indent, u = i === void 0 ? 4 : i, c = r.json, f = r.onClickKey, d = r.onClickValue, p = r.overflow, y = p === void 0 ? "scroll" : p, m = r.expandChildrenOnShiftKey, b = m === void 0 ? true : m, h = ke(r, [ "elementRef", "defaultExpanded", "indent", "json", "onClickKey", "onClickValue", "overflow", "expandChildrenOnShiftKey" ]);
1334
1435
  // @docs-props-type JSONTreePropsBase
1335
- var g = i()(c) ? JSON.parse(c) : c;
1436
+ var g = a()(c) ? JSON.parse(c) : c;
1336
1437
  var S = y === "wrap" ? v : s;
1337
- var w = (0, e.useState)(undefined), k = be(w, 2), x = k[0], O = k[1];
1338
- var I = function e(n) {
1339
- O(n);
1438
+ var w = (0, e.useState)(undefined), O = be(w, 2), k = O[0], I = O[1];
1439
+ var x = function e(n) {
1440
+ I(n);
1340
1441
  };
1341
1442
 
1342
1443
  return n().createElement(S, me({
@@ -1348,19 +1449,19 @@
1348
1449
  defaultIndent: false
1349
1450
  }, ye({
1350
1451
  defaultOpen: true,
1351
- defaultExpanded: a,
1452
+ defaultExpanded: l,
1352
1453
  expandChildrenOnShiftKey: b,
1353
1454
  indent: u,
1354
1455
  obj: g,
1355
- onClickKey: d,
1356
- onClickValue: f,
1456
+ onClickKey: f,
1457
+ onClickValue: d,
1357
1458
  overflow: y,
1358
- shift: x,
1359
- updateShift: I
1459
+ shift: k,
1460
+ updateShift: x
1360
1461
  })));
1361
1462
  }
1362
- Ee.propTypes = Ie;
1363
- /* harmony default export */ const je = Ee;
1463
+ je.propTypes = xe;
1464
+ /* harmony default export */ const Ee = je;
1364
1465
  }) // CONCATENATED MODULE: ./src/JSONTree/index.ts
1365
1466
  ();
1366
1467
  module.exports = t;