@splunk/react-ui 4.20.0 → 4.21.1

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 (101) hide show
  1. package/Accordion.js +425 -441
  2. package/Anchor.js +147 -193
  3. package/Animation.js +142 -166
  4. package/AnimationToggle.js +197 -253
  5. package/Box.js +145 -194
  6. package/Breadcrumbs.js +288 -298
  7. package/Button.js +488 -613
  8. package/ButtonGroup.js +160 -212
  9. package/ButtonSimple.js +543 -562
  10. package/CHANGELOG.md +26 -0
  11. package/Calendar.js +1107 -1195
  12. package/Card.js +771 -746
  13. package/CardLayout.js +205 -223
  14. package/Chip.js +509 -612
  15. package/Clickable.js +416 -472
  16. package/CloseButton.js +165 -250
  17. package/Code.js +1808 -2172
  18. package/Code.js.LICENSE.txt +8 -0
  19. package/CollapsiblePanel.js +586 -675
  20. package/Color.js +1066 -1297
  21. package/ColumnLayout.js +402 -465
  22. package/ComboBox.js +892 -969
  23. package/Concertina.js +998 -963
  24. package/ControlGroup.js +687 -718
  25. package/Date.js +567 -697
  26. package/DefinitionList.js +308 -310
  27. package/Divider.js +149 -194
  28. package/Dropdown.js +459 -558
  29. package/DualListbox.js +1480 -1735
  30. package/EventListener.js +94 -165
  31. package/File.js +1051 -1173
  32. package/FormRows.js +885 -880
  33. package/Heading.js +216 -263
  34. package/Image.js +446 -558
  35. package/JSONTree.js +690 -699
  36. package/Layer.js +442 -582
  37. package/Link.js +336 -361
  38. package/List.js +213 -237
  39. package/Markdown.js +510 -612
  40. package/Menu.js +1109 -1331
  41. package/Message.js +474 -629
  42. package/MessageBar.js +387 -561
  43. package/Modal.js +810 -798
  44. package/ModalLayer.js +326 -343
  45. package/Monogram.js +308 -368
  46. package/Multiselect.js +3558 -3998
  47. package/Number.js +729 -843
  48. package/Paginator.js +510 -615
  49. package/Paragraph.js +145 -188
  50. package/Popover.js +1470 -1693
  51. package/Progress.js +301 -362
  52. package/RadioBar.js +610 -651
  53. package/RadioList.js +483 -544
  54. package/Resize.js +530 -623
  55. package/ResultsMenu.js +494 -597
  56. package/ScreenReaderContent.js +142 -187
  57. package/Scroll.js +595 -598
  58. package/ScrollContainerContext.js +197 -278
  59. package/Search.js +745 -817
  60. package/Select.js +2441 -2746
  61. package/SidePanel.js +390 -392
  62. package/Slider.js +668 -825
  63. package/SlidingPanels.js +639 -645
  64. package/SplitButton.js +464 -499
  65. package/StaticContent.js +161 -217
  66. package/StepBar.js +386 -466
  67. package/Switch.js +710 -764
  68. package/TabBar.js +724 -815
  69. package/TabLayout.js +406 -438
  70. package/Table.js +4842 -5121
  71. package/Text.js +1169 -1351
  72. package/TextArea.js +1097 -1307
  73. package/Tooltip.js +624 -721
  74. package/TransitionOpen.js +489 -546
  75. package/Typography.js +176 -229
  76. package/WaitSpinner.js +230 -298
  77. package/package.json +14 -15
  78. package/stubs-splunkui.d.ts +4 -1
  79. package/types/src/ComboBox/Option.d.ts +1 -1
  80. package/types/src/Concertina/Concertina.d.ts +4 -0
  81. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  82. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  83. package/types/src/Link/Link.d.ts +7 -3
  84. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
  85. package/types/src/Markdown/Markdown.d.ts +1 -1
  86. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  87. package/types/src/Menu/Item.d.ts +1 -1
  88. package/types/src/Menu/Menu.d.ts +1 -0
  89. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
  90. package/types/src/Multiselect/Option.d.ts +1 -1
  91. package/types/src/Search/Option.d.ts +1 -1
  92. package/types/src/Select/Option.d.ts +1 -1
  93. package/types/src/Select/OptionBase.d.ts +1 -1
  94. package/types/src/fixtures/FetchOptions.d.ts +2 -8
  95. package/useForceUpdate.js +112 -146
  96. package/useKeyPress.js +74 -128
  97. package/usePrevious.js +65 -129
  98. package/useRovingFocus.js +122 -218
  99. package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
  100. /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
  101. /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Markdown.js CHANGED
@@ -1,617 +1,515 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 172);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("@splunk/themes");
94
-
95
- /***/ }),
96
-
97
- /***/ 1:
98
- /***/ (function(module, exports) {
99
-
100
- module.exports = require("prop-types");
101
-
102
- /***/ }),
103
-
104
- /***/ 110:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("@splunk/react-ui/List");
108
-
109
- /***/ }),
110
-
111
- /***/ 141:
112
- /***/ (function(module, exports) {
113
-
114
- module.exports = require("commonmark-react-renderer");
115
-
116
- /***/ }),
117
-
118
- /***/ 142:
119
- /***/ (function(module, exports) {
120
-
121
- module.exports = require("commonmark");
122
-
123
- /***/ }),
124
-
125
- /***/ 143:
126
- /***/ (function(module, exports) {
127
-
128
- module.exports = require("@splunk/react-ui/Code");
129
-
130
- /***/ }),
131
-
132
- /***/ 144:
133
- /***/ (function(module, exports) {
134
-
135
- module.exports = require("@splunk/react-ui/Paragraph");
136
-
137
- /***/ }),
138
-
139
- /***/ 172:
140
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
141
-
142
- "use strict";
143
- // ESM COMPAT FLAG
144
- __webpack_require__.r(__webpack_exports__);
145
-
146
- // EXPORTS
147
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ Markdown_Markdown; });
148
- __webpack_require__.d(__webpack_exports__, "MarkdownBlockquote", function() { return /* reexport */ renderers_MarkdownBlockquote; });
149
- __webpack_require__.d(__webpack_exports__, "MarkdownCodeBlock", function() { return /* reexport */ renderers_MarkdownCodeBlock; });
150
- __webpack_require__.d(__webpack_exports__, "MarkdownCode", function() { return /* reexport */ renderers_MarkdownCode; });
151
- __webpack_require__.d(__webpack_exports__, "MarkdownHeading", function() { return /* reexport */ renderers_MarkdownHeading; });
152
- __webpack_require__.d(__webpack_exports__, "MarkdownAnchorHeading", function() { return /* reexport */ renderers_MarkdownAnchorHeading; });
153
- __webpack_require__.d(__webpack_exports__, "MarkdownImage", function() { return /* reexport */ renderers_MarkdownImage; });
154
- __webpack_require__.d(__webpack_exports__, "MarkdownItem", function() { return /* reexport */ renderers_MarkdownItem; });
155
- __webpack_require__.d(__webpack_exports__, "MarkdownLink", function() { return /* reexport */ renderers_MarkdownLink; });
156
- __webpack_require__.d(__webpack_exports__, "MarkdownList", function() { return /* reexport */ renderers_MarkdownList; });
157
- __webpack_require__.d(__webpack_exports__, "MarkdownParagraph", function() { return /* reexport */ renderers_MarkdownParagraph; });
158
-
159
- // EXTERNAL MODULE: external "react"
160
- var external_react_ = __webpack_require__(2);
161
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
162
-
163
- // EXTERNAL MODULE: external "prop-types"
164
- var external_prop_types_ = __webpack_require__(1);
165
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
166
-
167
- // EXTERNAL MODULE: external "commonmark-react-renderer"
168
- var external_commonmark_react_renderer_ = __webpack_require__(141);
169
- var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_react_renderer_);
170
-
171
- // EXTERNAL MODULE: external "commonmark"
172
- var external_commonmark_ = __webpack_require__(142);
173
-
174
- // EXTERNAL MODULE: external "@splunk/react-ui/Box"
175
- var Box_ = __webpack_require__(6);
176
- var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
177
-
178
- // EXTERNAL MODULE: external "styled-components"
179
- var external_styled_components_ = __webpack_require__(3);
180
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
181
-
182
- // EXTERNAL MODULE: external "@splunk/themes"
183
- var themes_ = __webpack_require__(0);
184
-
185
- // CONCATENATED MODULE: ./src/Markdown/MarkdownStyles.ts
186
-
187
-
188
- var StyledCodeBlock = external_styled_components_default.a.div.withConfig({
189
- displayName: "MarkdownStyles__StyledCodeBlock",
190
- componentId: "sc-1xadih-0"
191
- })(["padding:", ";margin:", " 0;background-color:", ";"], Object(themes_["pick"])({
192
- enterprise: themes_["variables"].spacingHalf,
193
- prisma: Object(external_styled_components_["css"])(["10px ", ""], themes_["variables"].spacingLarge)
194
- }), Object(themes_["pick"])({
195
- enterprise: themes_["variables"].spacingHalf,
196
- prisma: themes_["variables"].spacingLarge
197
- }), Object(themes_["pick"])({
198
- enterprise: {
199
- light: themes_["variables"].gray96,
200
- dark: themes_["variables"].gray22
201
- },
202
- prisma: themes_["variables"].backgroundColorSection
203
- }));
204
- var StyledCodeInline = external_styled_components_default.a.code.withConfig({
205
- displayName: "MarkdownStyles__StyledCodeInline",
206
- componentId: "sc-1xadih-1"
207
- })(["", ";font-family:", ";background-color:", ";"], themes_["mixins"].reset('inline'), themes_["variables"].monoFontFamily, Object(themes_["pick"])({
208
- enterprise: {
209
- light: themes_["variables"].gray92,
210
- dark: themes_["variables"].gray22
211
- },
212
- prisma: themes_["variables"].neutral200
213
- }));
214
- var StyledHint = external_styled_components_default.a.blockquote.withConfig({
215
- displayName: "MarkdownStyles__StyledHint",
216
- componentId: "sc-1xadih-2"
217
- })(["", " ", " background-color:", ";margin-bottom:15px;padding:", ";border-left:10px solid ", ";>:last-child{margin-bottom:0;}"], themes_["mixins"].reset('block'), themes_["mixins"].clearfix(), Object(themes_["pick"])({
218
- enterprise: {
219
- light: themes_["variables"].infoColorL50,
220
- dark: themes_["variables"].infoColorD50
221
- },
222
- prisma: themes_["variables"].neutral100
223
- }), themes_["variables"].spacingSmall, themes_["variables"].infoColor);
224
- var StyledImage = external_styled_components_default.a.img.withConfig({
225
- displayName: "MarkdownStyles__StyledImage",
226
- componentId: "sc-1xadih-3"
227
- })(["max-width:100%;"]);
228
-
229
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownBlockquote.tsx
230
-
231
-
232
-
233
- var propTypes = {
234
- children: external_prop_types_default.a.node
235
- };
236
-
237
- function MarkdownBlockquote(_ref) {
238
- var children = _ref.children;
239
- return /*#__PURE__*/external_react_default.a.createElement(StyledHint, null, children);
240
- }
241
-
242
- MarkdownBlockquote.propTypes = propTypes;
243
- /* harmony default export */ var renderers_MarkdownBlockquote = (MarkdownBlockquote);
244
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCode.tsx
245
-
246
-
247
-
248
- var MarkdownCode_propTypes = {
249
- literal: external_prop_types_default.a.string
250
- };
251
-
252
- function MarkdownCode(_ref) {
253
- var literal = _ref.literal;
254
- return /*#__PURE__*/external_react_default.a.createElement(StyledCodeInline, null, literal);
255
- }
256
-
257
- MarkdownCode.propTypes = MarkdownCode_propTypes;
258
- /* harmony default export */ var renderers_MarkdownCode = (MarkdownCode);
259
- // EXTERNAL MODULE: external "@splunk/react-ui/Code"
260
- var Code_ = __webpack_require__(143);
261
- var Code_default = /*#__PURE__*/__webpack_require__.n(Code_);
262
-
263
- // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
264
- var i18n_ = __webpack_require__(4);
265
-
266
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCodeBlock.tsx
267
-
268
-
269
-
270
-
271
-
272
- var MarkdownCodeBlock_propTypes = {
273
- literal: external_prop_types_default.a.string,
274
- language: external_prop_types_default.a.string
275
- };
276
-
277
- function MarkdownCodeBlock(_ref) {
278
- var literal = _ref.literal,
279
- language = _ref.language;
280
- return /*#__PURE__*/external_react_default.a.createElement(StyledCodeBlock, null, /*#__PURE__*/external_react_default.a.createElement(Code_default.a // TS: let the Markdown component handle unsupported language tags
281
- , {
282
- "aria-label": Object(i18n_["_"])("Code Block"),
283
- language: language,
284
- value: literal,
285
- style: {
286
- margin: 0
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = r => {
12
+ /******/ var n = r && r.__esModule ?
13
+ /******/ () => r["default"]
14
+ /******/ : () => r
15
+ /******/;
16
+ e.d(n, {
17
+ a: n
18
+ });
19
+ /******/ return n;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (r, n) => {
27
+ /******/ for (var t in n) {
28
+ /******/ if (e.o(n, t) && !e.o(r, t)) {
29
+ /******/ Object.defineProperty(r, t, {
30
+ enumerable: true,
31
+ get: n[t]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var r = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(r);
62
+ // EXPORTS
63
+ e.d(r, {
64
+ MarkdownAnchorHeading: () => /* reexport */ z,
65
+ MarkdownBlockquote: () => /* reexport */ k,
66
+ MarkdownCode: () => /* reexport */ j,
67
+ MarkdownCodeBlock: () => /* reexport */ M,
68
+ MarkdownHeading: () => /* reexport */ _,
69
+ MarkdownImage: () => /* reexport */ K,
70
+ MarkdownItem: () => /* reexport */ le,
71
+ MarkdownLink: () => /* reexport */ $,
72
+ MarkdownList: () => /* reexport */ ae,
73
+ MarkdownParagraph: () => /* reexport */ de,
74
+ default: () => /* reexport */ we
75
+ });
76
+ // CONCATENATED MODULE: external "react"
77
+ const n = require("react");
78
+ var t = e.n(n);
79
+ // CONCATENATED MODULE: external "prop-types"
80
+ const a = require("prop-types");
81
+ var o = e.n(a);
82
+ // CONCATENATED MODULE: external "commonmark-react-renderer"
83
+ const i = require("commonmark-react-renderer");
84
+ var l = e.n(i);
85
+ // CONCATENATED MODULE: external "commonmark"
86
+ const c = require("commonmark");
87
+ // CONCATENATED MODULE: external "@splunk/react-ui/Box"
88
+ const s = require("@splunk/react-ui/Box");
89
+ var u = e.n(s);
90
+ // CONCATENATED MODULE: external "styled-components"
91
+ const p = require("styled-components");
92
+ var d = e.n(p);
93
+ // CONCATENATED MODULE: external "@splunk/themes"
94
+ const f = require("@splunk/themes");
95
+ // CONCATENATED MODULE: ./src/Markdown/MarkdownStyles.ts
96
+ var m = d().div.withConfig({
97
+ displayName: "MarkdownStyles__StyledCodeBlock",
98
+ componentId: "sc-1xadih-0"
99
+ })([ "padding:", ";margin:", " 0;background-color:", ";" ], (0, f.pick)({
100
+ enterprise: f.variables.spacingHalf,
101
+ prisma: (0, p.css)([ "10px ", "" ], f.variables.spacingLarge)
102
+ }), (0, f.pick)({
103
+ enterprise: f.variables.spacingHalf,
104
+ prisma: f.variables.spacingLarge
105
+ }), (0, f.pick)({
106
+ enterprise: {
107
+ light: f.variables.gray96,
108
+ dark: f.variables.gray22
109
+ },
110
+ prisma: f.variables.backgroundColorSection
111
+ }));
112
+ var v = d().code.withConfig({
113
+ displayName: "MarkdownStyles__StyledCodeInline",
114
+ componentId: "sc-1xadih-1"
115
+ })([ "", ";font-family:", ";background-color:", ";" ], f.mixins.reset("inline"), f.variables.monoFontFamily, (0,
116
+ f.pick)({
117
+ enterprise: {
118
+ light: f.variables.gray92,
119
+ dark: f.variables.gray22
120
+ },
121
+ prisma: f.variables.neutral200
122
+ }));
123
+ var g = d().blockquote.withConfig({
124
+ displayName: "MarkdownStyles__StyledHint",
125
+ componentId: "sc-1xadih-2"
126
+ })([ "", " ", " background-color:", ";margin-bottom:15px;padding:", ";border-left:10px solid ", ";>:last-child{margin-bottom:0;}" ], f.mixins.reset("block"), f.mixins.clearfix(), (0,
127
+ f.pick)({
128
+ enterprise: {
129
+ light: f.variables.infoColorL50,
130
+ dark: f.variables.infoColorD50
131
+ },
132
+ prisma: f.variables.neutral100
133
+ }), f.variables.spacingSmall, f.variables.infoColor);
134
+ var y = d().img.withConfig({
135
+ displayName: "MarkdownStyles__StyledImage",
136
+ componentId: "sc-1xadih-3"
137
+ })([ "max-width:100%;" ]);
138
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownBlockquote.tsx
139
+ var b = {
140
+ children: o().node
141
+ };
142
+ function h(e) {
143
+ var r = e.children;
144
+
145
+ return t().createElement(g, null, r);
287
146
  }
288
- }));
289
- }
290
-
291
- MarkdownCodeBlock.propTypes = MarkdownCodeBlock_propTypes;
292
- /* harmony default export */ var renderers_MarkdownCodeBlock = (MarkdownCodeBlock);
293
- // EXTERNAL MODULE: external "@splunk/react-ui/Heading"
294
- var Heading_ = __webpack_require__(80);
295
- var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
296
-
297
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
298
-
299
-
300
-
301
- var MarkdownHeading_propTypes = {
302
- children: external_prop_types_default.a.node
303
- };
304
-
305
- function MarkdownHeading(_ref) {
306
- var level = _ref.level,
307
- children = _ref.children;
308
- return /*#__PURE__*/external_react_default.a.createElement(Heading_default.a, {
309
- level: Math.min(level, 4)
310
- }, children);
311
- }
312
-
313
- MarkdownHeading.propTypes = MarkdownHeading_propTypes;
314
- /* harmony default export */ var renderers_MarkdownHeading = (MarkdownHeading);
315
- // EXTERNAL MODULE: external "@splunk/react-ui/Anchor"
316
- var Anchor_ = __webpack_require__(88);
317
- var Anchor_default = /*#__PURE__*/__webpack_require__.n(Anchor_);
318
-
319
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
320
-
321
-
322
-
323
-
324
- var MarkdownAnchorHeading_propTypes = {
325
- children: external_prop_types_default.a.node
326
- };
327
-
328
- function MarkdownAnchorHeading(_ref) {
329
- var level = _ref.level,
330
- children = _ref.children;
331
- return /*#__PURE__*/external_react_default.a.createElement(Heading_default.a, {
332
- level: Math.min(level, 4)
333
- }, /*#__PURE__*/external_react_default.a.createElement(Anchor_default.a, {
334
- name: children.toString().toLowerCase() // Remove all characters that are not letters or numbers, replace spaces with hyphens
335
- .replace(/[^a-z0-9-. ]/g, '').replace(/[-. ]+/g, '-')
336
- }, children));
337
- }
338
-
339
- MarkdownAnchorHeading.propTypes = MarkdownAnchorHeading_propTypes;
340
- /* harmony default export */ var renderers_MarkdownAnchorHeading = (MarkdownAnchorHeading);
341
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownImage.tsx
342
-
343
-
344
-
345
- var MarkdownImage_propTypes = {
346
- alt: external_prop_types_default.a.string,
347
- src: external_prop_types_default.a.string,
348
- title: external_prop_types_default.a.string
349
- };
350
-
351
- function MarkdownImage(_ref) {
352
- var src = _ref.src,
353
- title = _ref.title,
354
- alt = _ref.alt;
355
- return /*#__PURE__*/external_react_default.a.createElement(StyledImage, {
356
- src: src,
357
- title: title,
358
- alt: alt
359
- });
360
- }
361
-
362
- MarkdownImage.propTypes = MarkdownImage_propTypes;
363
- /* harmony default export */ var renderers_MarkdownImage = (MarkdownImage);
364
- // EXTERNAL MODULE: external "@splunk/react-ui/Link"
365
- var Link_ = __webpack_require__(37);
366
- var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
367
-
368
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownLink.tsx
369
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
370
-
371
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
372
-
373
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
374
-
375
-
376
-
377
-
378
- var MarkdownLink_propTypes = {
379
- children: external_prop_types_default.a.node,
380
- href: external_prop_types_default.a.string,
381
- title: external_prop_types_default.a.string
382
- };
383
-
384
- function MarkdownLink(_ref) {
385
- var children = _ref.children,
386
- href = _ref.href,
387
- otherProps = _objectWithoutProperties(_ref, ["children", "href"]);
388
-
389
- return /*#__PURE__*/external_react_default.a.createElement(Link_default.a, _extends({
390
- to: href
391
- }, otherProps), children);
392
- }
393
-
394
- MarkdownLink.propTypes = MarkdownLink_propTypes;
395
- /* harmony default export */ var renderers_MarkdownLink = (MarkdownLink);
396
- // EXTERNAL MODULE: external "@splunk/react-ui/List"
397
- var List_ = __webpack_require__(110);
398
- var List_default = /*#__PURE__*/__webpack_require__.n(List_);
399
-
400
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
401
-
402
-
403
-
404
- var MarkdownList_propTypes = {
405
- children: external_prop_types_default.a.node,
406
- type: external_prop_types_default.a.string
407
- };
408
-
409
- function MarkdownList(_ref) {
410
- var children = _ref.children,
411
- type = _ref.type;
412
-
413
- if (type === 'ordered') {
414
- return /*#__PURE__*/external_react_default.a.createElement(List_default.a, {
415
- ordered: true
416
- }, children);
417
- }
418
-
419
- return /*#__PURE__*/external_react_default.a.createElement(List_default.a, null, children);
420
- }
421
-
422
- MarkdownList.propTypes = MarkdownList_propTypes;
423
- /* harmony default export */ var renderers_MarkdownList = (MarkdownList);
424
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownItem.tsx
425
-
426
-
427
-
428
- var MarkdownItem_propTypes = {
429
- children: external_prop_types_default.a.node
430
- };
431
-
432
- function MarkdownItem(_ref) {
433
- var children = _ref.children;
434
- return /*#__PURE__*/external_react_default.a.createElement(List_["Item"], null, children);
435
- }
436
-
437
- MarkdownItem.propTypes = MarkdownItem_propTypes;
438
- /* harmony default export */ var renderers_MarkdownItem = (MarkdownItem);
439
- // EXTERNAL MODULE: external "@splunk/react-ui/Paragraph"
440
- var Paragraph_ = __webpack_require__(144);
441
- var Paragraph_default = /*#__PURE__*/__webpack_require__.n(Paragraph_);
442
-
443
- // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
444
-
445
-
446
-
447
- var MarkdownParagraph_propTypes = {
448
- children: external_prop_types_default.a.node
449
- };
450
-
451
- function MarkdownParagraph(_ref) {
452
- var children = _ref.children;
453
- return /*#__PURE__*/external_react_default.a.createElement(Paragraph_default.a, null, children);
454
- }
455
-
456
- MarkdownParagraph.propTypes = MarkdownParagraph_propTypes;
457
- /* harmony default export */ var renderers_MarkdownParagraph = (MarkdownParagraph);
458
- // CONCATENATED MODULE: ./src/Markdown/renderers/index.ts
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
- // files exported here need to re-imported and exported
469
- // in Markdown.tsx to be usable outside the Markdown component
470
-
471
-
472
- // CONCATENATED MODULE: ./src/Markdown/Markdown.tsx
473
- function Markdown_extends() { Markdown_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return Markdown_extends.apply(this, arguments); }
474
-
475
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
476
-
477
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
478
-
479
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
480
-
481
- function Markdown_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Markdown_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
482
-
483
- function Markdown_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
- /** @public */
492
-
493
- var Markdown_propTypes = {
494
- blockquoteRenderer: external_prop_types_default.a.func,
495
- codeBlockRenderer: external_prop_types_default.a.func,
496
- codeRenderer: external_prop_types_default.a.func,
497
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
498
- headingRenderer: external_prop_types_default.a.func,
499
- imageRenderer: external_prop_types_default.a.func,
500
- itemRenderer: external_prop_types_default.a.func,
501
- linkRenderer: external_prop_types_default.a.func,
502
- listRenderer: external_prop_types_default.a.func,
503
- paragraphRenderer: external_prop_types_default.a.func,
504
- text: external_prop_types_default.a.string.isRequired
505
- };
506
- var parser = new external_commonmark_["Parser"]();
507
- /**
147
+ h.propTypes = b;
148
+ /* harmony default export */ const k = h;
149
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCode.tsx
150
+ var O = {
151
+ literal: o().string
152
+ };
153
+ function w(e) {
154
+ var r = e.literal;
155
+
156
+ return t().createElement(v, null, r);
157
+ }
158
+ w.propTypes = O;
159
+ /* harmony default export */ const j = w;
160
+ // CONCATENATED MODULE: external "@splunk/react-ui/Code"
161
+ const R = require("@splunk/react-ui/Code");
162
+ var S = e.n(R);
163
+ // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
164
+ const P = require("@splunk/ui-utils/i18n");
165
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCodeBlock.tsx
166
+ var q = {
167
+ literal: o().string,
168
+ language: o().string
169
+ };
170
+ function x(e) {
171
+ var r = e.literal, n = e.language;
172
+
173
+ return t().createElement(m, null, t().createElement(S(), {
174
+ "aria-label": (0, P._)("Code Block"),
175
+ language: n,
176
+ value: r,
177
+ style: {
178
+ margin: 0
179
+ }
180
+ }));
181
+ }
182
+ x.propTypes = q;
183
+ /* harmony default export */ const M = x;
184
+ // CONCATENATED MODULE: external "@splunk/react-ui/Heading"
185
+ const C = require("@splunk/react-ui/Heading");
186
+ var E = e.n(C);
187
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
188
+ var T = {
189
+ children: o().node
190
+ };
191
+ function I(e) {
192
+ var r = e.level, n = e.children;
193
+
194
+ return t().createElement(E(), {
195
+ level: Math.min(r, 4)
196
+ }, n);
197
+ }
198
+ I.propTypes = T;
199
+ /* harmony default export */ const _ = I;
200
+ // CONCATENATED MODULE: external "@splunk/react-ui/Anchor"
201
+ const B = require("@splunk/react-ui/Anchor");
202
+ var L = e.n(B);
203
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
204
+ function H(e) {
205
+ "@babel/helpers - typeof";
206
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
207
+ H = function e(r) {
208
+ return typeof r;
209
+ };
210
+ } else {
211
+ H = function e(r) {
212
+ return r && typeof Symbol === "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
213
+ };
214
+ }
215
+ return H(e);
216
+ }
217
+ var D = {
218
+ children: o().node
219
+ };
220
+ // When this is used in MDX, the node isn't guaranteed to be text,
221
+ // so this method extracts the actual text from the node.
222
+ function A(e) {
223
+ var r = H(e);
224
+ var n = "";
225
+ if (e != null) {
226
+ if (r === "string" || r === "number") {
227
+ n = e.toString();
228
+ } else if (r === "boolean") {
229
+ n = e ? "true" : "false";
230
+ } else if (H(e) === "object") {
231
+ if (e instanceof Array) {
232
+ n = e.map(A).join(" ");
233
+ } else if ("props" in e) {
234
+ n = A(e.props.children);
235
+ }
236
+ }
237
+ }
238
+ return n;
239
+ }
240
+ function N(e) {
241
+ return n.Children.toArray(e).map(A).join(" ").toLowerCase().replace(/[^a-z0-9-. ]/g, "").replace(/[-. ]+/g, "-");
242
+ }
243
+ function F(e) {
244
+ var r = e.level, n = e.children;
245
+
246
+ return t().createElement(_, {
247
+ level: Math.min(r, 4)
248
+ }, t().createElement(L(), {
249
+ name: N(n)
250
+ }, n));
251
+ }
252
+ F.propTypes = D;
253
+ /* harmony default export */ const z = F;
254
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownImage.tsx
255
+ var G = {
256
+ alt: o().string,
257
+ src: o().string,
258
+ title: o().string
259
+ };
260
+ function J(e) {
261
+ var r = e.src, n = e.title, a = e.alt;
262
+
263
+ return t().createElement(y, {
264
+ src: r,
265
+ title: n,
266
+ alt: a
267
+ });
268
+ }
269
+ J.propTypes = G;
270
+ /* harmony default export */ const K = J;
271
+ // CONCATENATED MODULE: external "@splunk/react-ui/Link"
272
+ const Q = require("@splunk/react-ui/Link");
273
+ var U = e.n(Q);
274
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownLink.tsx
275
+ function V() {
276
+ V = Object.assign || function(e) {
277
+ for (var r = 1; r < arguments.length; r++) {
278
+ var n = arguments[r];
279
+ for (var t in n) {
280
+ if (Object.prototype.hasOwnProperty.call(n, t)) {
281
+ e[t] = n[t];
282
+ }
283
+ }
284
+ }
285
+ return e;
286
+ };
287
+ return V.apply(this, arguments);
288
+ }
289
+ function W(e, r) {
290
+ if (e == null) return {};
291
+ var n = X(e, r);
292
+ var t, a;
293
+ if (Object.getOwnPropertySymbols) {
294
+ var o = Object.getOwnPropertySymbols(e);
295
+ for (a = 0; a < o.length; a++) {
296
+ t = o[a];
297
+ if (r.indexOf(t) >= 0) continue;
298
+ if (!Object.prototype.propertyIsEnumerable.call(e, t)) continue;
299
+ n[t] = e[t];
300
+ }
301
+ }
302
+ return n;
303
+ }
304
+ function X(e, r) {
305
+ if (e == null) return {};
306
+ var n = {};
307
+ var t = Object.keys(e);
308
+ var a, o;
309
+ for (o = 0; o < t.length; o++) {
310
+ a = t[o];
311
+ if (r.indexOf(a) >= 0) continue;
312
+ n[a] = e[a];
313
+ }
314
+ return n;
315
+ }
316
+ var Y = {
317
+ children: o().node,
318
+ href: o().string,
319
+ title: o().string
320
+ };
321
+ function Z(e) {
322
+ var r = e.children, n = e.href, a = W(e, [ "children", "href" ]);
323
+
324
+ return t().createElement(U(), V({
325
+ to: n
326
+ }, a), r);
327
+ }
328
+ Z.propTypes = Y;
329
+ /* harmony default export */ const $ = Z;
330
+ // CONCATENATED MODULE: external "@splunk/react-ui/List"
331
+ const ee = require("@splunk/react-ui/List");
332
+ var re = e.n(ee);
333
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
334
+ var ne = {
335
+ children: o().node,
336
+ type: o().string
337
+ };
338
+ function te(e) {
339
+ var r = e.children, n = e.type;
340
+ if (n === "ordered") {
341
+
342
+ return t().createElement(re(), {
343
+ ordered: true
344
+ }, r);
345
+ }
346
+
347
+ return t().createElement(re(), null, r);
348
+ }
349
+ te.propTypes = ne;
350
+ /* harmony default export */ const ae = te;
351
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownItem.tsx
352
+ var oe = {
353
+ children: o().node
354
+ };
355
+ function ie(e) {
356
+ var r = e.children;
357
+
358
+ return t().createElement(ee.Item, null, r);
359
+ }
360
+ ie.propTypes = oe;
361
+ /* harmony default export */ const le = ie;
362
+ // CONCATENATED MODULE: external "@splunk/react-ui/Paragraph"
363
+ const ce = require("@splunk/react-ui/Paragraph");
364
+ var se = e.n(ce);
365
+ // CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
366
+ var ue = {
367
+ children: o().node
368
+ };
369
+ function pe(e) {
370
+ var r = e.children;
371
+
372
+ return t().createElement(se(), null, r);
373
+ }
374
+ pe.propTypes = ue;
375
+ /* harmony default export */ const de = pe;
376
+ // CONCATENATED MODULE: ./src/Markdown/Markdown.tsx
377
+ function fe() {
378
+ fe = Object.assign || function(e) {
379
+ for (var r = 1; r < arguments.length; r++) {
380
+ var n = arguments[r];
381
+ for (var t in n) {
382
+ if (Object.prototype.hasOwnProperty.call(n, t)) {
383
+ e[t] = n[t];
384
+ }
385
+ }
386
+ }
387
+ return e;
388
+ };
389
+ return fe.apply(this, arguments);
390
+ }
391
+ function me(e, r) {
392
+ var n = Object.keys(e);
393
+ if (Object.getOwnPropertySymbols) {
394
+ var t = Object.getOwnPropertySymbols(e);
395
+ if (r) t = t.filter((function(r) {
396
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
397
+ }));
398
+ n.push.apply(n, t);
399
+ }
400
+ return n;
401
+ }
402
+ function ve(e) {
403
+ for (var r = 1; r < arguments.length; r++) {
404
+ var n = arguments[r] != null ? arguments[r] : {};
405
+ if (r % 2) {
406
+ me(Object(n), true).forEach((function(r) {
407
+ ge(e, r, n[r]);
408
+ }));
409
+ } else if (Object.getOwnPropertyDescriptors) {
410
+ Object.defineProperties(e, Object.getOwnPropertyDescriptors(n));
411
+ } else {
412
+ me(Object(n)).forEach((function(r) {
413
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
414
+ }));
415
+ }
416
+ }
417
+ return e;
418
+ }
419
+ function ge(e, r, n) {
420
+ if (r in e) {
421
+ Object.defineProperty(e, r, {
422
+ value: n,
423
+ enumerable: true,
424
+ configurable: true,
425
+ writable: true
426
+ });
427
+ } else {
428
+ e[r] = n;
429
+ }
430
+ return e;
431
+ }
432
+ function ye(e, r) {
433
+ if (e == null) return {};
434
+ var n = be(e, r);
435
+ var t, a;
436
+ if (Object.getOwnPropertySymbols) {
437
+ var o = Object.getOwnPropertySymbols(e);
438
+ for (a = 0; a < o.length; a++) {
439
+ t = o[a];
440
+ if (r.indexOf(t) >= 0) continue;
441
+ if (!Object.prototype.propertyIsEnumerable.call(e, t)) continue;
442
+ n[t] = e[t];
443
+ }
444
+ }
445
+ return n;
446
+ }
447
+ function be(e, r) {
448
+ if (e == null) return {};
449
+ var n = {};
450
+ var t = Object.keys(e);
451
+ var a, o;
452
+ for (o = 0; o < t.length; o++) {
453
+ a = t[o];
454
+ if (r.indexOf(a) >= 0) continue;
455
+ n[a] = e[a];
456
+ }
457
+ return n;
458
+ }
459
+ /** @public */ var he = {
460
+ blockquoteRenderer: o().func,
461
+ codeBlockRenderer: o().func,
462
+ codeRenderer: o().func,
463
+ elementRef: o().oneOfType([ o().func, o().object ]),
464
+ headingRenderer: o().func,
465
+ imageRenderer: o().func,
466
+ itemRenderer: o().func,
467
+ linkRenderer: o().func,
468
+ listRenderer: o().func,
469
+ paragraphRenderer: o().func,
470
+ text: o().string.isRequired
471
+ };
472
+ var ke = new c.Parser;
473
+ /**
508
474
  * The `Markdown` component renders the given Markdown text as a React component.
509
475
  * The component prefers @splunk/react-ui components over plain HTML components. For example
510
476
  * links are rendered as the `@splunk/react-ui/Link` component instead of plain `<a>` tag.
511
- */
512
-
513
- function Markdown(_ref) {
514
- var blockquoteRenderer = _ref.blockquoteRenderer,
515
- codeBlockRenderer = _ref.codeBlockRenderer,
516
- codeRenderer = _ref.codeRenderer,
517
- headingRenderer = _ref.headingRenderer,
518
- imageRenderer = _ref.imageRenderer,
519
- itemRenderer = _ref.itemRenderer,
520
- linkRenderer = _ref.linkRenderer,
521
- listRenderer = _ref.listRenderer,
522
- paragraphRenderer = _ref.paragraphRenderer,
523
- text = _ref.text,
524
- otherProps = Markdown_objectWithoutProperties(_ref, ["blockquoteRenderer", "codeBlockRenderer", "codeRenderer", "headingRenderer", "imageRenderer", "itemRenderer", "linkRenderer", "listRenderer", "paragraphRenderer", "text"]);
525
-
526
- // @docs-props-type MarkdownPropsBase
527
- // keep this option object inside the constructor, otherwise the renderers
528
- // below will confuse the doc-gen
529
- var rendererOptions = {
530
- escapeHtml: true,
531
- renderers: {
532
- CodeBlock: codeBlockRenderer || renderers_MarkdownCodeBlock,
533
- Code: codeRenderer || renderers_MarkdownCode,
534
- Heading: headingRenderer || renderers_MarkdownHeading,
535
- Link: linkRenderer || renderers_MarkdownLink,
536
- List: listRenderer || renderers_MarkdownList,
537
- Item: itemRenderer || renderers_MarkdownItem,
538
- Paragraph: paragraphRenderer || renderers_MarkdownParagraph
477
+ */ function Oe(e) {
478
+ var r = e.blockquoteRenderer, n = e.codeBlockRenderer, a = e.codeRenderer, o = e.elementRef, i = e.headingRenderer, c = e.imageRenderer, s = e.itemRenderer, p = e.linkRenderer, d = e.listRenderer, f = e.paragraphRenderer, m = e.text, v = ye(e, [ "blockquoteRenderer", "codeBlockRenderer", "codeRenderer", "elementRef", "headingRenderer", "imageRenderer", "itemRenderer", "linkRenderer", "listRenderer", "paragraphRenderer", "text" ]);
479
+ // @docs-props-type MarkdownPropsBase
480
+ // keep this option object inside the constructor, otherwise the renderers
481
+ // below will confuse the doc-gen
482
+ var g = {
483
+ escapeHtml: true,
484
+ renderers: {
485
+ CodeBlock: n || M,
486
+ Code: a || j,
487
+ Heading: i || _,
488
+ Link: p || $,
489
+ List: d || ae,
490
+ Item: s || le,
491
+ Paragraph: f || de
492
+ }
493
+ };
494
+ // not setting MarkdownBlockquote as the default
495
+ if (r) {
496
+ g.renderers.Blockquote = r;
497
+ }
498
+ // not setting MarkdownImage as the default
499
+ if (c) {
500
+ g.renderers.Image = c;
501
+ }
502
+ var y = new (l())(ve({}, g));
503
+ var b = ke.parse(m);
504
+ var h = y.render(b);
505
+
506
+ return t().createElement(u(), fe({
507
+ "data-test": "markdown",
508
+ elementRef: o
509
+ }, v), h);
539
510
  }
540
- }; // not setting MarkdownBlockquote as the default
541
-
542
- if (blockquoteRenderer) {
543
- rendererOptions.renderers.Blockquote = blockquoteRenderer;
544
- } // not setting MarkdownImage as the default
545
-
546
-
547
- if (imageRenderer) {
548
- rendererOptions.renderers.Image = imageRenderer;
549
- }
550
-
551
- var renderer = new external_commonmark_react_renderer_default.a(_objectSpread({}, rendererOptions));
552
- var ast = parser.parse(text);
553
- var elements = renderer.render(ast);
554
- return /*#__PURE__*/external_react_default.a.createElement(Box_default.a, Markdown_extends({
555
- "data-test": "markdown"
556
- }, otherProps), elements);
557
- }
558
-
559
- Markdown.propTypes = Markdown_propTypes;
560
- /* harmony default export */ var Markdown_Markdown = (Markdown);
561
-
562
- // CONCATENATED MODULE: ./src/Markdown/index.ts
563
-
564
-
565
-
566
- /***/ }),
567
-
568
- /***/ 2:
569
- /***/ (function(module, exports) {
570
-
571
- module.exports = require("react");
572
-
573
- /***/ }),
574
-
575
- /***/ 3:
576
- /***/ (function(module, exports) {
577
-
578
- module.exports = require("styled-components");
579
-
580
- /***/ }),
581
-
582
- /***/ 37:
583
- /***/ (function(module, exports) {
584
-
585
- module.exports = require("@splunk/react-ui/Link");
586
-
587
- /***/ }),
588
-
589
- /***/ 4:
590
- /***/ (function(module, exports) {
591
-
592
- module.exports = require("@splunk/ui-utils/i18n");
593
-
594
- /***/ }),
595
-
596
- /***/ 6:
597
- /***/ (function(module, exports) {
598
-
599
- module.exports = require("@splunk/react-ui/Box");
600
-
601
- /***/ }),
602
-
603
- /***/ 80:
604
- /***/ (function(module, exports) {
605
-
606
- module.exports = require("@splunk/react-ui/Heading");
607
-
608
- /***/ }),
609
-
610
- /***/ 88:
611
- /***/ (function(module, exports) {
612
-
613
- module.exports = require("@splunk/react-ui/Anchor");
614
-
615
- /***/ })
616
-
617
- /******/ });
511
+ Oe.propTypes = he;
512
+ /* harmony default export */ const we = Oe;
513
+ // CONCATENATED MODULE: ./src/Markdown/index.ts
514
+ module.exports = r;
515
+ /******/})();