@splunk/react-ui 4.9.0 → 4.10.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 (97) hide show
  1. package/Accordion.js +4 -4
  2. package/Anchor.js +2 -2
  3. package/Animation.js +2 -2
  4. package/AnimationToggle.js +2 -2
  5. package/Box.js +2 -2
  6. package/Button.js +5 -29
  7. package/ButtonGroup.js +6 -27
  8. package/ButtonSimple.js +2 -2
  9. package/CHANGELOG.md +14 -1
  10. package/Calendar.js +31 -31
  11. package/Card.js +19 -45
  12. package/CardLayout.js +14 -35
  13. package/Chip.js +2 -2
  14. package/Clickable.js +2 -2
  15. package/CloseButton.js +2 -2
  16. package/Code.js +8 -5
  17. package/CollapsiblePanel.js +2 -2
  18. package/Color.js +8 -8
  19. package/ColumnLayout.js +2 -2
  20. package/ComboBox.js +2 -2
  21. package/Concertina.js +4 -4
  22. package/ControlGroup.js +10 -10
  23. package/Date.js +4 -4
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +2 -2
  26. package/EventListener.js +4 -4
  27. package/FetchOptions.js +6 -6
  28. package/File.js +7 -7
  29. package/FormRows.js +11 -11
  30. package/Heading.js +2 -2
  31. package/Image.js +6 -6
  32. package/JSONTree.js +38 -20
  33. package/Layer.js +8 -8
  34. package/Link.js +2 -2
  35. package/List.js +2 -2
  36. package/Markdown.js +29 -32
  37. package/Menu.js +14 -14
  38. package/Message.js +16 -16
  39. package/MessageBar.js +14 -14
  40. package/Modal.js +6 -6
  41. package/ModalLayer.js +14 -5
  42. package/Monogram.js +2 -2
  43. package/Multiselect.js +10 -10
  44. package/Number.js +2 -2
  45. package/Paginator.js +40 -43
  46. package/Paragraph.js +2 -2
  47. package/Popover.js +12 -7
  48. package/Progress.js +2 -2
  49. package/RadioBar.js +141 -37
  50. package/RadioList.js +2 -2
  51. package/Resize.js +2 -2
  52. package/ResultsMenu.js +6 -6
  53. package/ScreenReaderContent.js +2 -2
  54. package/Scroll.js +2 -2
  55. package/ScrollContainerContext.js +2 -2
  56. package/Search.js +4 -4
  57. package/Select.js +9 -9
  58. package/SidePanel.js +4 -4
  59. package/Slider.js +4 -4
  60. package/SlidingPanels.js +14 -5
  61. package/StaticContent.js +2 -2
  62. package/StepBar.js +2 -2
  63. package/Switch.js +2 -2
  64. package/TabBar.js +2 -2
  65. package/TabLayout.js +4 -4
  66. package/Table.js +28 -30
  67. package/Text.js +4 -4
  68. package/Tooltip.js +2 -2
  69. package/TransitionOpen.js +14 -5
  70. package/WaitSpinner.js +2 -2
  71. package/package.json +3 -3
  72. package/types/src/Accordion/AccordionContext.d.ts +0 -1
  73. package/types/src/Button/Button.d.ts +0 -2
  74. package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
  75. package/types/src/Card/Card.d.ts +0 -2
  76. package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
  77. package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
  78. package/types/src/File/FileContext.d.ts +0 -1
  79. package/types/src/FormRows/FormRowsContext.d.ts +0 -1
  80. package/types/src/JSONTree/JSONTree.d.ts +2 -2
  81. package/types/src/JSONTree/TreeNode.d.ts +1 -1
  82. package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
  83. package/types/src/Markdown/Markdown.d.ts +2 -3
  84. package/types/src/Menu/MenuContext.d.ts +0 -1
  85. package/types/src/Modal/ModalContext.d.ts +0 -1
  86. package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
  87. package/types/src/Popover/Popover.d.ts +1 -0
  88. package/types/src/Popover/PopoverContext.d.ts +0 -1
  89. package/types/src/RadioBar/Option.d.ts +10 -2
  90. package/types/src/RadioBar/RadioBar.d.ts +4 -1
  91. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  92. package/types/src/RadioList/RadioListContext.d.ts +0 -1
  93. package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
  94. package/types/src/StepBar/StepBarContext.d.ts +0 -1
  95. package/types/src/TabBar/TabBarContext.d.ts +0 -1
  96. package/types/src/TransitionOpen/TransitionOpen.d.ts +2 -0
  97. package/usePrevious.js +2 -2
package/FormRows.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 126);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 124);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 126:
104
+ /***/ 124:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -127,7 +127,7 @@ var i18n_ = __webpack_require__(5);
127
127
  var keyboard_ = __webpack_require__(9);
128
128
 
129
129
  // EXTERNAL MODULE: external "@splunk/react-icons/Plus"
130
- var Plus_ = __webpack_require__(91);
130
+ var Plus_ = __webpack_require__(89);
131
131
  var Plus_default = /*#__PURE__*/__webpack_require__.n(Plus_);
132
132
 
133
133
  // EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
@@ -174,13 +174,13 @@ function Plus(props) {
174
174
  }, props));
175
175
  }
176
176
  // EXTERNAL MODULE: external "react-sortable-hoc"
177
- var external_react_sortable_hoc_ = __webpack_require__(79);
177
+ var external_react_sortable_hoc_ = __webpack_require__(77);
178
178
 
179
179
  // EXTERNAL MODULE: external "lodash"
180
180
  var external_lodash_ = __webpack_require__(4);
181
181
 
182
182
  // EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
183
- var CloseButton_ = __webpack_require__(69);
183
+ var CloseButton_ = __webpack_require__(67);
184
184
  var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
185
185
 
186
186
  // EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
@@ -772,7 +772,7 @@ function SVG(props) {
772
772
 
773
773
  /***/ }),
774
774
 
775
- /***/ 69:
775
+ /***/ 67:
776
776
  /***/ (function(module, exports) {
777
777
 
778
778
  module.exports = require("@splunk/react-ui/CloseButton");
@@ -897,7 +897,7 @@ Icon.defaultProps = defaultProps;
897
897
 
898
898
  /***/ }),
899
899
 
900
- /***/ 79:
900
+ /***/ 77:
901
901
  /***/ (function(module, exports) {
902
902
 
903
903
  module.exports = require("react-sortable-hoc");
@@ -911,17 +911,17 @@ module.exports = require("@splunk/react-ui/Box");
911
911
 
912
912
  /***/ }),
913
913
 
914
- /***/ 9:
914
+ /***/ 89:
915
915
  /***/ (function(module, exports) {
916
916
 
917
- module.exports = require("@splunk/ui-utils/keyboard");
917
+ module.exports = require("@splunk/react-icons/Plus");
918
918
 
919
919
  /***/ }),
920
920
 
921
- /***/ 91:
921
+ /***/ 9:
922
922
  /***/ (function(module, exports) {
923
923
 
924
- module.exports = require("@splunk/react-icons/Plus");
924
+ module.exports = require("@splunk/ui-utils/keyboard");
925
925
 
926
926
  /***/ })
927
927
 
package/Heading.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 159);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 157);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 159:
104
+ /***/ 157:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Image.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 160);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 158);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 160:
111
+ /***/ 158:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -136,7 +136,7 @@ var format_ = __webpack_require__(41);
136
136
  var i18n_ = __webpack_require__(5);
137
137
 
138
138
  // EXTERNAL MODULE: external "@splunk/react-ui/File"
139
- var File_ = __webpack_require__(92);
139
+ var File_ = __webpack_require__(90);
140
140
  var File_default = /*#__PURE__*/__webpack_require__.n(File_);
141
141
 
142
142
  // EXTERNAL MODULE: ./src/icons/CrossMark.tsx
@@ -151,7 +151,7 @@ var Clickable_ = __webpack_require__(11);
151
151
  var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
152
152
 
153
153
  // EXTERNAL MODULE: external "@splunk/react-ui/Message"
154
- var Message_ = __webpack_require__(93);
154
+ var Message_ = __webpack_require__(91);
155
155
  var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
156
156
 
157
157
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -675,14 +675,14 @@ Icon.defaultProps = defaultProps;
675
675
 
676
676
  /***/ }),
677
677
 
678
- /***/ 92:
678
+ /***/ 90:
679
679
  /***/ (function(module, exports) {
680
680
 
681
681
  module.exports = require("@splunk/react-ui/File");
682
682
 
683
683
  /***/ }),
684
684
 
685
- /***/ 93:
685
+ /***/ 91:
686
686
  /***/ (function(module, exports) {
687
687
 
688
688
  module.exports = require("@splunk/react-ui/Message");
package/JSONTree.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 137);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 135);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 137:
111
+ /***/ 135:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -269,9 +269,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
269
269
 
270
270
 
271
271
  var propTypes = {
272
- path: external_prop_types_default.a.arrayOf(external_prop_types_default.a.string),
272
+ path: external_prop_types_default.a.arrayOf(external_prop_types_default.a.oneOfType([external_prop_types_default.a.number, external_prop_types_default.a.string])),
273
273
  defaultOpen: external_prop_types_default.a.bool,
274
- expandChildren: external_prop_types_default.a.bool,
274
+ expandChildren: external_prop_types_default.a.oneOfType([external_prop_types_default.a.bool, external_prop_types_default.a.oneOf(['withShiftModifier'])]),
275
275
  indent: external_prop_types_default.a.number,
276
276
  indentLevel: external_prop_types_default.a.number,
277
277
  obj: external_prop_types_default.a.oneOfType([external_prop_types_default.a.object, external_prop_types_default.a.array, external_prop_types_default.a.number, external_prop_types_default.a.string, external_prop_types_default.a.bool]).isRequired,
@@ -287,10 +287,11 @@ var defaultProps = {
287
287
  indentLevel: 1,
288
288
  overflow: 'scroll'
289
289
  };
290
-
290
+ var shift;
291
291
  /**
292
292
  * An internal container class for expandable tree nodes (objects and arrays).
293
293
  */
294
+
294
295
  var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
295
296
  _inherits(JSONTreeNode, _Component);
296
297
 
@@ -307,7 +308,11 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
307
308
 
308
309
  _defineProperty(_assertThisInitialized(_this), "closingIndent", void 0);
309
310
 
310
- _defineProperty(_assertThisInitialized(_this), "handleExpandClick", function () {
311
+ _defineProperty(_assertThisInitialized(_this), "handleExpandClick", function (e) {
312
+ if (_this.props.expandChildren === 'withShiftModifier') {
313
+ shift = e.shiftKey;
314
+ }
315
+
311
316
  _this.setState(function (state) {
312
317
  return {
313
318
  open: !state.open
@@ -343,9 +348,18 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
343
348
  });
344
349
  });
345
350
 
346
- _this.state = {
347
- open: props.defaultOpen
348
- };
351
+ if (_this.props.expandChildren === 'withShiftModifier' && shift !== undefined) {
352
+ _this.state = shift ? {
353
+ open: true
354
+ } : {
355
+ open: false
356
+ };
357
+ } else {
358
+ _this.state = {
359
+ open: props.defaultOpen
360
+ };
361
+ }
362
+
349
363
  _this.regularIndent = Object(external_lodash_["fill"])(Array(props.indentLevel), Object(external_lodash_["repeat"])("\xA0", props.indent));
350
364
  _this.closingIndent = Object(external_lodash_["fill"])(Array(props.indentLevel - 1), Object(external_lodash_["repeat"])("\xA0", props.indent));
351
365
  return _this;
@@ -354,8 +368,12 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
354
368
  _createClass(JSONTreeNode, [{
355
369
  key: "renderExpandLink",
356
370
  value: function renderExpandLink() {
371
+ var _this2 = this;
372
+
357
373
  return /*#__PURE__*/external_react_default.a.createElement(StyledExpandLinkClickable, {
358
- onClick: this.handleExpandClick,
374
+ onClick: function onClick(e) {
375
+ _this2.handleExpandClick(e);
376
+ },
359
377
  "aria-expanded": this.state.open,
360
378
  "data-test": "toggle"
361
379
  }, "\xA0", this.state.open ? '[-]' : '[+]', "\xA0");
@@ -363,7 +381,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
363
381
  }, {
364
382
  key: "renderValue",
365
383
  value: function renderValue(_ref) {
366
- var _this2 = this;
384
+ var _this3 = this;
367
385
 
368
386
  var value = _ref.value,
369
387
  key = _ref.key;
@@ -388,7 +406,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
388
406
  obj: value,
389
407
  path: key !== undefined ? [].concat(_toConsumableArray(path), [key]) : _toConsumableArray(path) // Prevent undefined from being added to path for single value edge-case
390
408
  ,
391
- defaultOpen: expandChildren,
409
+ defaultOpen: expandChildren === true,
392
410
  expandChildren: expandChildren,
393
411
  onClickKey: onClickKey,
394
412
  onClickValue: onClickValue,
@@ -415,7 +433,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
415
433
  valueType: valueType,
416
434
  overflowType: overflow,
417
435
  onClick: function onClick(e) {
418
- _this2.handleClickValue(e, key);
436
+ _this3.handleClickValue(e, key);
419
437
  }
420
438
  }, representation);
421
439
  }
@@ -431,14 +449,14 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
431
449
  }, {
432
450
  key: "renderKey",
433
451
  value: function renderKey(key) {
434
- var _this3 = this;
452
+ var _this4 = this;
435
453
 
436
454
  var onClickKey = this.props.onClickKey;
437
455
 
438
456
  if (onClickKey) {
439
457
  return /*#__PURE__*/external_react_default.a.createElement("span", null, /*#__PURE__*/external_react_default.a.createElement(StyledPropertyInteractiveClickable, {
440
458
  onClick: function onClick(e) {
441
- _this3.handleClickKey(e, key);
459
+ _this4.handleClickKey(e, key);
442
460
  }
443
461
  }, key), ":", ' ');
444
462
  }
@@ -448,7 +466,7 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
448
466
  }, {
449
467
  key: "renderObject",
450
468
  value: function renderObject() {
451
- var _this4 = this;
469
+ var _this5 = this;
452
470
 
453
471
  var _this$props4 = this.props,
454
472
  obj = _this$props4.obj,
@@ -461,17 +479,17 @@ var TreeNode_JSONTreeNode = /*#__PURE__*/function (_Component) {
461
479
  var key = Object(external_lodash_["isArray"])(obj) ? parseInt(mapKey, 10) : mapKey;
462
480
  var propertyDataPath = path.length === 0 ? ".".concat(key) : ".".concat(path.join('.'), ".").concat(key);
463
481
 
464
- var representation = _this4.renderValue({
482
+ var representation = _this5.renderValue({
465
483
  key: key,
466
484
  value: value
467
485
  });
468
486
 
469
- var propertyElement = !Object(external_lodash_["isArray"])(obj) ? _this4.renderKey(key) : undefined;
487
+ var propertyElement = !Object(external_lodash_["isArray"])(obj) ? _this5.renderKey(key) : undefined;
470
488
  return /*#__PURE__*/external_react_default.a.createElement("div", {
471
489
  key: propertyDataPath,
472
490
  role: "treeitem",
473
491
  "data-test-path": propertyDataPath
474
- }, _this4.regularIndent, propertyElement, representation, index + 1 < properties.length ? ',' : null);
492
+ }, _this5.regularIndent, propertyElement, representation, index + 1 < properties.length ? ',' : null);
475
493
  });
476
494
  } // edge case: a single number/string/boolean being rendered (still valid JSON)
477
495
 
@@ -535,7 +553,7 @@ var JSONTree_propTypes = {
535
553
  indent: external_prop_types_default.a.number,
536
554
  onClickKey: external_prop_types_default.a.func,
537
555
  onClickValue: external_prop_types_default.a.func,
538
- expandChildren: external_prop_types_default.a.bool,
556
+ expandChildren: external_prop_types_default.a.oneOfType([external_prop_types_default.a.bool, external_prop_types_default.a.oneOf(['withShiftModifier'])]),
539
557
  overflow: external_prop_types_default.a.oneOf(['wrap', 'scroll'])
540
558
  };
541
559
 
package/Layer.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 181);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 179);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -94,7 +94,7 @@ module.exports = require("prop-types");
94
94
 
95
95
  /***/ }),
96
96
 
97
- /***/ 113:
97
+ /***/ 111:
98
98
  /***/ (function(module, exports) {
99
99
 
100
100
  var g;
@@ -128,7 +128,7 @@ module.exports = require("@splunk/react-ui/EventListener");
128
128
 
129
129
  /***/ }),
130
130
 
131
- /***/ 181:
131
+ /***/ 179:
132
132
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
133
133
 
134
134
  "use strict";
@@ -145,7 +145,7 @@ var external_react_ = __webpack_require__(2);
145
145
  var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
146
146
 
147
147
  // EXTERNAL MODULE: external "react-dom"
148
- var external_react_dom_ = __webpack_require__(70);
148
+ var external_react_dom_ = __webpack_require__(68);
149
149
 
150
150
  // EXTERNAL MODULE: external "prop-types"
151
151
  var external_prop_types_ = __webpack_require__(1);
@@ -162,7 +162,7 @@ var EventListener_ = __webpack_require__(15);
162
162
  var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
163
163
 
164
164
  // EXTERNAL MODULE: ./src/Layer/LayerStack.tsx
165
- var LayerStack = __webpack_require__(80);
165
+ var LayerStack = __webpack_require__(78);
166
166
 
167
167
  // CONCATENATED MODULE: ./src/Layer/Layer.tsx
168
168
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
@@ -370,14 +370,14 @@ module.exports = require("lodash");
370
370
 
371
371
  /***/ }),
372
372
 
373
- /***/ 70:
373
+ /***/ 68:
374
374
  /***/ (function(module, exports) {
375
375
 
376
376
  module.exports = require("react-dom");
377
377
 
378
378
  /***/ }),
379
379
 
380
- /***/ 80:
380
+ /***/ 78:
381
381
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
382
382
 
383
383
  "use strict";
@@ -427,7 +427,7 @@ function LayerStackGlobalProvider(_ref) {
427
427
 
428
428
  LayerStackGlobalProvider.propTypes = propTypes;
429
429
 
430
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(113)))
430
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(111)))
431
431
 
432
432
  /***/ }),
433
433
 
package/Link.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 161);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 159);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 161:
111
+ /***/ 159:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
package/List.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 143);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 141);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 143:
104
+ /***/ 141:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
package/Markdown.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 115);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 113);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 115:
104
+ /***/ 113:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -110,21 +110,16 @@ __webpack_require__.r(__webpack_exports__);
110
110
 
111
111
  // EXPORTS
112
112
  __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ Markdown_Markdown; });
113
- __webpack_require__.d(__webpack_exports__, "Renderers", function() { return /* reexport */ renderers_namespaceObject; });
114
-
115
- // NAMESPACE OBJECT: ./src/Markdown/renderers/index.ts
116
- var renderers_namespaceObject = {};
117
- __webpack_require__.r(renderers_namespaceObject);
118
- __webpack_require__.d(renderers_namespaceObject, "MarkdownBlockquote", function() { return renderers_MarkdownBlockquote; });
119
- __webpack_require__.d(renderers_namespaceObject, "MarkdownCodeBlock", function() { return renderers_MarkdownCodeBlock; });
120
- __webpack_require__.d(renderers_namespaceObject, "MarkdownCode", function() { return renderers_MarkdownCode; });
121
- __webpack_require__.d(renderers_namespaceObject, "MarkdownHeading", function() { return renderers_MarkdownHeading; });
122
- __webpack_require__.d(renderers_namespaceObject, "MarkdownAnchorHeading", function() { return renderers_MarkdownAnchorHeading; });
123
- __webpack_require__.d(renderers_namespaceObject, "MarkdownImage", function() { return renderers_MarkdownImage; });
124
- __webpack_require__.d(renderers_namespaceObject, "MarkdownItem", function() { return renderers_MarkdownItem; });
125
- __webpack_require__.d(renderers_namespaceObject, "MarkdownLink", function() { return renderers_MarkdownLink; });
126
- __webpack_require__.d(renderers_namespaceObject, "MarkdownList", function() { return renderers_MarkdownList; });
127
- __webpack_require__.d(renderers_namespaceObject, "MarkdownParagraph", function() { return renderers_MarkdownParagraph; });
113
+ __webpack_require__.d(__webpack_exports__, "MarkdownBlockquote", function() { return /* reexport */ renderers_MarkdownBlockquote; });
114
+ __webpack_require__.d(__webpack_exports__, "MarkdownCodeBlock", function() { return /* reexport */ renderers_MarkdownCodeBlock; });
115
+ __webpack_require__.d(__webpack_exports__, "MarkdownCode", function() { return /* reexport */ renderers_MarkdownCode; });
116
+ __webpack_require__.d(__webpack_exports__, "MarkdownHeading", function() { return /* reexport */ renderers_MarkdownHeading; });
117
+ __webpack_require__.d(__webpack_exports__, "MarkdownAnchorHeading", function() { return /* reexport */ renderers_MarkdownAnchorHeading; });
118
+ __webpack_require__.d(__webpack_exports__, "MarkdownImage", function() { return /* reexport */ renderers_MarkdownImage; });
119
+ __webpack_require__.d(__webpack_exports__, "MarkdownItem", function() { return /* reexport */ renderers_MarkdownItem; });
120
+ __webpack_require__.d(__webpack_exports__, "MarkdownLink", function() { return /* reexport */ renderers_MarkdownLink; });
121
+ __webpack_require__.d(__webpack_exports__, "MarkdownList", function() { return /* reexport */ renderers_MarkdownList; });
122
+ __webpack_require__.d(__webpack_exports__, "MarkdownParagraph", function() { return /* reexport */ renderers_MarkdownParagraph; });
128
123
 
129
124
  // EXTERNAL MODULE: external "react"
130
125
  var external_react_ = __webpack_require__(2);
@@ -135,11 +130,11 @@ var external_prop_types_ = __webpack_require__(1);
135
130
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
136
131
 
137
132
  // EXTERNAL MODULE: external "commonmark-react-renderer"
138
- var external_commonmark_react_renderer_ = __webpack_require__(94);
133
+ var external_commonmark_react_renderer_ = __webpack_require__(92);
139
134
  var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_react_renderer_);
140
135
 
141
136
  // EXTERNAL MODULE: external "commonmark"
142
- var external_commonmark_ = __webpack_require__(95);
137
+ var external_commonmark_ = __webpack_require__(93);
143
138
  var external_commonmark_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_);
144
139
 
145
140
  // EXTERNAL MODULE: external "@splunk/react-ui/Box"
@@ -228,7 +223,7 @@ function MarkdownCode(_ref) {
228
223
  MarkdownCode.propTypes = MarkdownCode_propTypes;
229
224
  /* harmony default export */ var renderers_MarkdownCode = (MarkdownCode);
230
225
  // EXTERNAL MODULE: external "@splunk/react-ui/Code"
231
- var Code_ = __webpack_require__(96);
226
+ var Code_ = __webpack_require__(94);
232
227
  var Code_default = /*#__PURE__*/__webpack_require__.n(Code_);
233
228
 
234
229
  // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
@@ -284,7 +279,7 @@ function MarkdownHeading(_ref) {
284
279
  MarkdownHeading.propTypes = MarkdownHeading_propTypes;
285
280
  /* harmony default export */ var renderers_MarkdownHeading = (MarkdownHeading);
286
281
  // EXTERNAL MODULE: external "@splunk/react-ui/Anchor"
287
- var Anchor_ = __webpack_require__(62);
282
+ var Anchor_ = __webpack_require__(61);
288
283
  var Anchor_default = /*#__PURE__*/__webpack_require__.n(Anchor_);
289
284
 
290
285
  // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
@@ -359,7 +354,7 @@ function MarkdownLink(_ref) {
359
354
  MarkdownLink.propTypes = MarkdownLink_propTypes;
360
355
  /* harmony default export */ var renderers_MarkdownLink = (MarkdownLink);
361
356
  // EXTERNAL MODULE: external "@splunk/react-ui/List"
362
- var List_ = __webpack_require__(81);
357
+ var List_ = __webpack_require__(79);
363
358
  var List_default = /*#__PURE__*/__webpack_require__.n(List_);
364
359
 
365
360
  // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
@@ -397,7 +392,7 @@ function MarkdownItem(_ref) {
397
392
  MarkdownItem.propTypes = MarkdownItem_propTypes;
398
393
  /* harmony default export */ var renderers_MarkdownItem = (MarkdownItem);
399
394
  // EXTERNAL MODULE: external "@splunk/react-ui/Paragraph"
400
- var Paragraph_ = __webpack_require__(97);
395
+ var Paragraph_ = __webpack_require__(95);
401
396
  var Paragraph_default = /*#__PURE__*/__webpack_require__.n(Paragraph_);
402
397
 
403
398
  // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
@@ -425,6 +420,8 @@ MarkdownParagraph.propTypes = MarkdownParagraph_propTypes;
425
420
 
426
421
 
427
422
 
423
+ // files exported here need to re-imported and exported
424
+ // in Markdown.tsx to be usable outside the Markdown component
428
425
 
429
426
 
430
427
  // CONCATENATED MODULE: ./src/Markdown/Markdown.tsx
@@ -558,49 +555,49 @@ module.exports = require("@splunk/react-ui/Heading");
558
555
 
559
556
  /***/ }),
560
557
 
561
- /***/ 62:
558
+ /***/ 61:
562
559
  /***/ (function(module, exports) {
563
560
 
564
561
  module.exports = require("@splunk/react-ui/Anchor");
565
562
 
566
563
  /***/ }),
567
564
 
568
- /***/ 8:
565
+ /***/ 79:
569
566
  /***/ (function(module, exports) {
570
567
 
571
- module.exports = require("@splunk/react-ui/Box");
568
+ module.exports = require("@splunk/react-ui/List");
572
569
 
573
570
  /***/ }),
574
571
 
575
- /***/ 81:
572
+ /***/ 8:
576
573
  /***/ (function(module, exports) {
577
574
 
578
- module.exports = require("@splunk/react-ui/List");
575
+ module.exports = require("@splunk/react-ui/Box");
579
576
 
580
577
  /***/ }),
581
578
 
582
- /***/ 94:
579
+ /***/ 92:
583
580
  /***/ (function(module, exports) {
584
581
 
585
582
  module.exports = require("commonmark-react-renderer");
586
583
 
587
584
  /***/ }),
588
585
 
589
- /***/ 95:
586
+ /***/ 93:
590
587
  /***/ (function(module, exports) {
591
588
 
592
589
  module.exports = require("commonmark");
593
590
 
594
591
  /***/ }),
595
592
 
596
- /***/ 96:
593
+ /***/ 94:
597
594
  /***/ (function(module, exports) {
598
595
 
599
596
  module.exports = require("@splunk/react-ui/Code");
600
597
 
601
598
  /***/ }),
602
599
 
603
- /***/ 97:
600
+ /***/ 95:
604
601
  /***/ (function(module, exports) {
605
602
 
606
603
  module.exports = require("@splunk/react-ui/Paragraph");