@splunk/react-ui 4.20.0 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -354
- package/Menu.js +489 -760
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +943 -1448
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +14 -15
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +7 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/Markdown.js
CHANGED
|
@@ -1,285 +1,184 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
18
44
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
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
|
-
/******/ })
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
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";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
143
49
|
// ESM COMPAT FLAG
|
|
144
50
|
__webpack_require__.r(__webpack_exports__);
|
|
145
51
|
|
|
146
52
|
// EXPORTS
|
|
147
|
-
__webpack_require__.d(__webpack_exports__,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
// CONCATENATED MODULE: ./src/Markdown/MarkdownStyles.ts
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
var StyledCodeBlock = external_styled_components_default.a.div.withConfig({
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
MarkdownAnchorHeading: () => (/* reexport */ renderers_MarkdownAnchorHeading),
|
|
55
|
+
MarkdownBlockquote: () => (/* reexport */ renderers_MarkdownBlockquote),
|
|
56
|
+
MarkdownCode: () => (/* reexport */ renderers_MarkdownCode),
|
|
57
|
+
MarkdownCodeBlock: () => (/* reexport */ renderers_MarkdownCodeBlock),
|
|
58
|
+
MarkdownHeading: () => (/* reexport */ renderers_MarkdownHeading),
|
|
59
|
+
MarkdownImage: () => (/* reexport */ renderers_MarkdownImage),
|
|
60
|
+
MarkdownItem: () => (/* reexport */ renderers_MarkdownItem),
|
|
61
|
+
MarkdownLink: () => (/* reexport */ renderers_MarkdownLink),
|
|
62
|
+
MarkdownList: () => (/* reexport */ renderers_MarkdownList),
|
|
63
|
+
MarkdownParagraph: () => (/* reexport */ renderers_MarkdownParagraph),
|
|
64
|
+
"default": () => (/* reexport */ Markdown_Markdown)
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
;// CONCATENATED MODULE: external "react"
|
|
68
|
+
const external_react_namespaceObject = require("react");
|
|
69
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
70
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
71
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
72
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
73
|
+
;// CONCATENATED MODULE: external "commonmark-react-renderer"
|
|
74
|
+
const external_commonmark_react_renderer_namespaceObject = require("commonmark-react-renderer");
|
|
75
|
+
var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_react_renderer_namespaceObject);
|
|
76
|
+
;// CONCATENATED MODULE: external "commonmark"
|
|
77
|
+
const external_commonmark_namespaceObject = require("commonmark");
|
|
78
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
79
|
+
const Box_namespaceObject = require("@splunk/react-ui/Box");
|
|
80
|
+
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
|
|
81
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
82
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
83
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
84
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
85
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
86
|
+
;// CONCATENATED MODULE: ./src/Markdown/MarkdownStyles.ts
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
var StyledCodeBlock = external_styled_components_default().div.withConfig({
|
|
189
90
|
displayName: "MarkdownStyles__StyledCodeBlock",
|
|
190
91
|
componentId: "sc-1xadih-0"
|
|
191
|
-
})(["padding:", ";margin:", " 0;background-color:", ";"],
|
|
192
|
-
enterprise:
|
|
193
|
-
prisma:
|
|
194
|
-
}),
|
|
195
|
-
enterprise:
|
|
196
|
-
prisma:
|
|
197
|
-
}),
|
|
92
|
+
})(["padding:", ";margin:", " 0;background-color:", ";"], (0,themes_namespaceObject.pick)({
|
|
93
|
+
enterprise: themes_namespaceObject.variables.spacingHalf,
|
|
94
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["10px ", ""], themes_namespaceObject.variables.spacingLarge)
|
|
95
|
+
}), (0,themes_namespaceObject.pick)({
|
|
96
|
+
enterprise: themes_namespaceObject.variables.spacingHalf,
|
|
97
|
+
prisma: themes_namespaceObject.variables.spacingLarge
|
|
98
|
+
}), (0,themes_namespaceObject.pick)({
|
|
198
99
|
enterprise: {
|
|
199
|
-
light:
|
|
200
|
-
dark:
|
|
100
|
+
light: themes_namespaceObject.variables.gray96,
|
|
101
|
+
dark: themes_namespaceObject.variables.gray22
|
|
201
102
|
},
|
|
202
|
-
prisma:
|
|
103
|
+
prisma: themes_namespaceObject.variables.backgroundColorSection
|
|
203
104
|
}));
|
|
204
|
-
var StyledCodeInline = external_styled_components_default.
|
|
105
|
+
var StyledCodeInline = external_styled_components_default().code.withConfig({
|
|
205
106
|
displayName: "MarkdownStyles__StyledCodeInline",
|
|
206
107
|
componentId: "sc-1xadih-1"
|
|
207
|
-
})(["", ";font-family:", ";background-color:", ";"],
|
|
108
|
+
})(["", ";font-family:", ";background-color:", ";"], themes_namespaceObject.mixins.reset('inline'), themes_namespaceObject.variables.monoFontFamily, (0,themes_namespaceObject.pick)({
|
|
208
109
|
enterprise: {
|
|
209
|
-
light:
|
|
210
|
-
dark:
|
|
110
|
+
light: themes_namespaceObject.variables.gray92,
|
|
111
|
+
dark: themes_namespaceObject.variables.gray22
|
|
211
112
|
},
|
|
212
|
-
prisma:
|
|
113
|
+
prisma: themes_namespaceObject.variables.neutral200
|
|
213
114
|
}));
|
|
214
|
-
var StyledHint = external_styled_components_default.
|
|
115
|
+
var StyledHint = external_styled_components_default().blockquote.withConfig({
|
|
215
116
|
displayName: "MarkdownStyles__StyledHint",
|
|
216
117
|
componentId: "sc-1xadih-2"
|
|
217
|
-
})(["", " ", " background-color:", ";margin-bottom:15px;padding:", ";border-left:10px solid ", ";>:last-child{margin-bottom:0;}"],
|
|
118
|
+
})(["", " ", " background-color:", ";margin-bottom:15px;padding:", ";border-left:10px solid ", ";>:last-child{margin-bottom:0;}"], themes_namespaceObject.mixins.reset('block'), themes_namespaceObject.mixins.clearfix(), (0,themes_namespaceObject.pick)({
|
|
218
119
|
enterprise: {
|
|
219
|
-
light:
|
|
220
|
-
dark:
|
|
120
|
+
light: themes_namespaceObject.variables.infoColorL50,
|
|
121
|
+
dark: themes_namespaceObject.variables.infoColorD50
|
|
221
122
|
},
|
|
222
|
-
prisma:
|
|
223
|
-
}),
|
|
224
|
-
var StyledImage = external_styled_components_default.
|
|
123
|
+
prisma: themes_namespaceObject.variables.neutral100
|
|
124
|
+
}), themes_namespaceObject.variables.spacingSmall, themes_namespaceObject.variables.infoColor);
|
|
125
|
+
var StyledImage = external_styled_components_default().img.withConfig({
|
|
225
126
|
displayName: "MarkdownStyles__StyledImage",
|
|
226
127
|
componentId: "sc-1xadih-3"
|
|
227
128
|
})(["max-width:100%;"]);
|
|
228
129
|
|
|
229
|
-
|
|
130
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownBlockquote.tsx
|
|
230
131
|
|
|
231
132
|
|
|
232
133
|
|
|
233
134
|
var propTypes = {
|
|
234
|
-
children: external_prop_types_default.
|
|
135
|
+
children: (external_prop_types_default()).node
|
|
235
136
|
};
|
|
236
137
|
|
|
237
138
|
function MarkdownBlockquote(_ref) {
|
|
238
139
|
var children = _ref.children;
|
|
239
|
-
return /*#__PURE__*/external_react_default.
|
|
140
|
+
return /*#__PURE__*/external_react_default().createElement(StyledHint, null, children);
|
|
240
141
|
}
|
|
241
142
|
|
|
242
143
|
MarkdownBlockquote.propTypes = propTypes;
|
|
243
|
-
/* harmony default export */
|
|
244
|
-
|
|
144
|
+
/* harmony default export */ const renderers_MarkdownBlockquote = (MarkdownBlockquote);
|
|
145
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCode.tsx
|
|
245
146
|
|
|
246
147
|
|
|
247
148
|
|
|
248
149
|
var MarkdownCode_propTypes = {
|
|
249
|
-
literal: external_prop_types_default.
|
|
150
|
+
literal: (external_prop_types_default()).string
|
|
250
151
|
};
|
|
251
152
|
|
|
252
153
|
function MarkdownCode(_ref) {
|
|
253
154
|
var literal = _ref.literal;
|
|
254
|
-
return /*#__PURE__*/external_react_default.
|
|
155
|
+
return /*#__PURE__*/external_react_default().createElement(StyledCodeInline, null, literal);
|
|
255
156
|
}
|
|
256
157
|
|
|
257
158
|
MarkdownCode.propTypes = MarkdownCode_propTypes;
|
|
258
|
-
/* harmony default export */
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
var Code_default = /*#__PURE__*/__webpack_require__.n(
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCodeBlock.tsx
|
|
159
|
+
/* harmony default export */ const renderers_MarkdownCode = (MarkdownCode);
|
|
160
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Code"
|
|
161
|
+
const Code_namespaceObject = require("@splunk/react-ui/Code");
|
|
162
|
+
var Code_default = /*#__PURE__*/__webpack_require__.n(Code_namespaceObject);
|
|
163
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
164
|
+
const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
|
|
165
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCodeBlock.tsx
|
|
267
166
|
|
|
268
167
|
|
|
269
168
|
|
|
270
169
|
|
|
271
170
|
|
|
272
171
|
var MarkdownCodeBlock_propTypes = {
|
|
273
|
-
literal: external_prop_types_default.
|
|
274
|
-
language: external_prop_types_default.
|
|
172
|
+
literal: (external_prop_types_default()).string,
|
|
173
|
+
language: (external_prop_types_default()).string
|
|
275
174
|
};
|
|
276
175
|
|
|
277
176
|
function MarkdownCodeBlock(_ref) {
|
|
278
177
|
var literal = _ref.literal,
|
|
279
178
|
language = _ref.language;
|
|
280
|
-
return /*#__PURE__*/external_react_default.
|
|
179
|
+
return /*#__PURE__*/external_react_default().createElement(StyledCodeBlock, null, /*#__PURE__*/external_react_default().createElement((Code_default()) // TS: let the Markdown component handle unsupported language tags
|
|
281
180
|
, {
|
|
282
|
-
"aria-label":
|
|
181
|
+
"aria-label": (0,i18n_namespaceObject._)("Code Block"),
|
|
283
182
|
language: language,
|
|
284
183
|
value: literal,
|
|
285
184
|
style: {
|
|
@@ -289,70 +188,98 @@ function MarkdownCodeBlock(_ref) {
|
|
|
289
188
|
}
|
|
290
189
|
|
|
291
190
|
MarkdownCodeBlock.propTypes = MarkdownCodeBlock_propTypes;
|
|
292
|
-
/* harmony default export */
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var Heading_default = /*#__PURE__*/__webpack_require__.n(
|
|
296
|
-
|
|
297
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
|
|
191
|
+
/* harmony default export */ const renderers_MarkdownCodeBlock = (MarkdownCodeBlock);
|
|
192
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Heading"
|
|
193
|
+
const Heading_namespaceObject = require("@splunk/react-ui/Heading");
|
|
194
|
+
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_namespaceObject);
|
|
195
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
|
|
298
196
|
|
|
299
197
|
|
|
300
198
|
|
|
301
199
|
var MarkdownHeading_propTypes = {
|
|
302
|
-
children: external_prop_types_default.
|
|
200
|
+
children: (external_prop_types_default()).node
|
|
303
201
|
};
|
|
304
202
|
|
|
305
203
|
function MarkdownHeading(_ref) {
|
|
306
204
|
var level = _ref.level,
|
|
307
205
|
children = _ref.children;
|
|
308
|
-
return /*#__PURE__*/external_react_default.
|
|
206
|
+
return /*#__PURE__*/external_react_default().createElement((Heading_default()), {
|
|
309
207
|
level: Math.min(level, 4)
|
|
310
208
|
}, children);
|
|
311
209
|
}
|
|
312
210
|
|
|
313
211
|
MarkdownHeading.propTypes = MarkdownHeading_propTypes;
|
|
314
|
-
/* harmony default export */
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
var Anchor_default = /*#__PURE__*/__webpack_require__.n(
|
|
212
|
+
/* harmony default export */ const renderers_MarkdownHeading = (MarkdownHeading);
|
|
213
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Anchor"
|
|
214
|
+
const Anchor_namespaceObject = require("@splunk/react-ui/Anchor");
|
|
215
|
+
var Anchor_default = /*#__PURE__*/__webpack_require__.n(Anchor_namespaceObject);
|
|
216
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
|
|
217
|
+
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); }
|
|
318
218
|
|
|
319
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
|
|
320
219
|
|
|
321
220
|
|
|
322
221
|
|
|
323
222
|
|
|
324
223
|
var MarkdownAnchorHeading_propTypes = {
|
|
325
|
-
children: external_prop_types_default.
|
|
224
|
+
children: (external_prop_types_default()).node
|
|
326
225
|
};
|
|
327
226
|
|
|
227
|
+
// When this is used in MDX, the node isn't guaranteed to be text,
|
|
228
|
+
// so this method extracts the actual text from the node.
|
|
229
|
+
function getNodeText(node) {
|
|
230
|
+
var nodeType = _typeof(node);
|
|
231
|
+
|
|
232
|
+
var text = '';
|
|
233
|
+
|
|
234
|
+
if (node != null) {
|
|
235
|
+
if (nodeType === 'string' || nodeType === 'number') {
|
|
236
|
+
text = node.toString();
|
|
237
|
+
} else if (nodeType === 'boolean') {
|
|
238
|
+
text = node ? 'true' : 'false';
|
|
239
|
+
} else if (_typeof(node) === 'object') {
|
|
240
|
+
if (node instanceof Array) {
|
|
241
|
+
text = node.map(getNodeText).join(' ');
|
|
242
|
+
} else if ('props' in node) {
|
|
243
|
+
text = getNodeText(node.props.children);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return text;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function getAnchor(children) {
|
|
252
|
+
return external_react_namespaceObject.Children.toArray(children).map(getNodeText).join(' ').toLowerCase() // Remove all characters that are not letters or numbers, replace spaces with hyphens
|
|
253
|
+
.replace(/[^a-z0-9-. ]/g, '').replace(/[-. ]+/g, '-');
|
|
254
|
+
}
|
|
255
|
+
|
|
328
256
|
function MarkdownAnchorHeading(_ref) {
|
|
329
257
|
var level = _ref.level,
|
|
330
258
|
children = _ref.children;
|
|
331
|
-
return /*#__PURE__*/external_react_default.
|
|
259
|
+
return /*#__PURE__*/external_react_default().createElement(renderers_MarkdownHeading, {
|
|
332
260
|
level: Math.min(level, 4)
|
|
333
|
-
}, /*#__PURE__*/external_react_default.
|
|
334
|
-
name: children
|
|
335
|
-
.replace(/[^a-z0-9-. ]/g, '').replace(/[-. ]+/g, '-')
|
|
261
|
+
}, /*#__PURE__*/external_react_default().createElement((Anchor_default()), {
|
|
262
|
+
name: getAnchor(children)
|
|
336
263
|
}, children));
|
|
337
264
|
}
|
|
338
265
|
|
|
339
266
|
MarkdownAnchorHeading.propTypes = MarkdownAnchorHeading_propTypes;
|
|
340
|
-
/* harmony default export */
|
|
341
|
-
|
|
267
|
+
/* harmony default export */ const renderers_MarkdownAnchorHeading = (MarkdownAnchorHeading);
|
|
268
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownImage.tsx
|
|
342
269
|
|
|
343
270
|
|
|
344
271
|
|
|
345
272
|
var MarkdownImage_propTypes = {
|
|
346
|
-
alt: external_prop_types_default.
|
|
347
|
-
src: external_prop_types_default.
|
|
348
|
-
title: external_prop_types_default.
|
|
273
|
+
alt: (external_prop_types_default()).string,
|
|
274
|
+
src: (external_prop_types_default()).string,
|
|
275
|
+
title: (external_prop_types_default()).string
|
|
349
276
|
};
|
|
350
277
|
|
|
351
278
|
function MarkdownImage(_ref) {
|
|
352
279
|
var src = _ref.src,
|
|
353
280
|
title = _ref.title,
|
|
354
281
|
alt = _ref.alt;
|
|
355
|
-
return /*#__PURE__*/external_react_default.
|
|
282
|
+
return /*#__PURE__*/external_react_default().createElement(StyledImage, {
|
|
356
283
|
src: src,
|
|
357
284
|
title: title,
|
|
358
285
|
alt: alt
|
|
@@ -360,12 +287,11 @@ function MarkdownImage(_ref) {
|
|
|
360
287
|
}
|
|
361
288
|
|
|
362
289
|
MarkdownImage.propTypes = MarkdownImage_propTypes;
|
|
363
|
-
/* harmony default export */
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
var Link_default = /*#__PURE__*/__webpack_require__.n(
|
|
367
|
-
|
|
368
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownLink.tsx
|
|
290
|
+
/* harmony default export */ const renderers_MarkdownImage = (MarkdownImage);
|
|
291
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Link"
|
|
292
|
+
const Link_namespaceObject = require("@splunk/react-ui/Link");
|
|
293
|
+
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_namespaceObject);
|
|
294
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownLink.tsx
|
|
369
295
|
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
296
|
|
|
371
297
|
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; }
|
|
@@ -376,9 +302,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
376
302
|
|
|
377
303
|
|
|
378
304
|
var MarkdownLink_propTypes = {
|
|
379
|
-
children: external_prop_types_default.
|
|
380
|
-
href: external_prop_types_default.
|
|
381
|
-
title: external_prop_types_default.
|
|
305
|
+
children: (external_prop_types_default()).node,
|
|
306
|
+
href: (external_prop_types_default()).string,
|
|
307
|
+
title: (external_prop_types_default()).string
|
|
382
308
|
};
|
|
383
309
|
|
|
384
310
|
function MarkdownLink(_ref) {
|
|
@@ -386,24 +312,23 @@ function MarkdownLink(_ref) {
|
|
|
386
312
|
href = _ref.href,
|
|
387
313
|
otherProps = _objectWithoutProperties(_ref, ["children", "href"]);
|
|
388
314
|
|
|
389
|
-
return /*#__PURE__*/external_react_default.
|
|
315
|
+
return /*#__PURE__*/external_react_default().createElement((Link_default()), _extends({
|
|
390
316
|
to: href
|
|
391
317
|
}, otherProps), children);
|
|
392
318
|
}
|
|
393
319
|
|
|
394
320
|
MarkdownLink.propTypes = MarkdownLink_propTypes;
|
|
395
|
-
/* harmony default export */
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
var List_default = /*#__PURE__*/__webpack_require__.n(
|
|
399
|
-
|
|
400
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
|
|
321
|
+
/* harmony default export */ const renderers_MarkdownLink = (MarkdownLink);
|
|
322
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/List"
|
|
323
|
+
const List_namespaceObject = require("@splunk/react-ui/List");
|
|
324
|
+
var List_default = /*#__PURE__*/__webpack_require__.n(List_namespaceObject);
|
|
325
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
|
|
401
326
|
|
|
402
327
|
|
|
403
328
|
|
|
404
329
|
var MarkdownList_propTypes = {
|
|
405
|
-
children: external_prop_types_default.
|
|
406
|
-
type: external_prop_types_default.
|
|
330
|
+
children: (external_prop_types_default()).node,
|
|
331
|
+
type: (external_prop_types_default()).string
|
|
407
332
|
};
|
|
408
333
|
|
|
409
334
|
function MarkdownList(_ref) {
|
|
@@ -411,51 +336,50 @@ function MarkdownList(_ref) {
|
|
|
411
336
|
type = _ref.type;
|
|
412
337
|
|
|
413
338
|
if (type === 'ordered') {
|
|
414
|
-
return /*#__PURE__*/external_react_default.
|
|
339
|
+
return /*#__PURE__*/external_react_default().createElement((List_default()), {
|
|
415
340
|
ordered: true
|
|
416
341
|
}, children);
|
|
417
342
|
}
|
|
418
343
|
|
|
419
|
-
return /*#__PURE__*/external_react_default.
|
|
344
|
+
return /*#__PURE__*/external_react_default().createElement((List_default()), null, children);
|
|
420
345
|
}
|
|
421
346
|
|
|
422
347
|
MarkdownList.propTypes = MarkdownList_propTypes;
|
|
423
|
-
/* harmony default export */
|
|
424
|
-
|
|
348
|
+
/* harmony default export */ const renderers_MarkdownList = (MarkdownList);
|
|
349
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownItem.tsx
|
|
425
350
|
|
|
426
351
|
|
|
427
352
|
|
|
428
353
|
var MarkdownItem_propTypes = {
|
|
429
|
-
children: external_prop_types_default.
|
|
354
|
+
children: (external_prop_types_default()).node
|
|
430
355
|
};
|
|
431
356
|
|
|
432
357
|
function MarkdownItem(_ref) {
|
|
433
358
|
var children = _ref.children;
|
|
434
|
-
return /*#__PURE__*/external_react_default.
|
|
359
|
+
return /*#__PURE__*/external_react_default().createElement(List_namespaceObject.Item, null, children);
|
|
435
360
|
}
|
|
436
361
|
|
|
437
362
|
MarkdownItem.propTypes = MarkdownItem_propTypes;
|
|
438
|
-
/* harmony default export */
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
var Paragraph_default = /*#__PURE__*/__webpack_require__.n(
|
|
442
|
-
|
|
443
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
|
|
363
|
+
/* harmony default export */ const renderers_MarkdownItem = (MarkdownItem);
|
|
364
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Paragraph"
|
|
365
|
+
const Paragraph_namespaceObject = require("@splunk/react-ui/Paragraph");
|
|
366
|
+
var Paragraph_default = /*#__PURE__*/__webpack_require__.n(Paragraph_namespaceObject);
|
|
367
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
|
|
444
368
|
|
|
445
369
|
|
|
446
370
|
|
|
447
371
|
var MarkdownParagraph_propTypes = {
|
|
448
|
-
children: external_prop_types_default.
|
|
372
|
+
children: (external_prop_types_default()).node
|
|
449
373
|
};
|
|
450
374
|
|
|
451
375
|
function MarkdownParagraph(_ref) {
|
|
452
376
|
var children = _ref.children;
|
|
453
|
-
return /*#__PURE__*/external_react_default.
|
|
377
|
+
return /*#__PURE__*/external_react_default().createElement((Paragraph_default()), null, children);
|
|
454
378
|
}
|
|
455
379
|
|
|
456
380
|
MarkdownParagraph.propTypes = MarkdownParagraph_propTypes;
|
|
457
|
-
/* harmony default export */
|
|
458
|
-
|
|
381
|
+
/* harmony default export */ const renderers_MarkdownParagraph = (MarkdownParagraph);
|
|
382
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/index.ts
|
|
459
383
|
|
|
460
384
|
|
|
461
385
|
|
|
@@ -469,7 +393,7 @@ MarkdownParagraph.propTypes = MarkdownParagraph_propTypes;
|
|
|
469
393
|
// in Markdown.tsx to be usable outside the Markdown component
|
|
470
394
|
|
|
471
395
|
|
|
472
|
-
|
|
396
|
+
;// CONCATENATED MODULE: ./src/Markdown/Markdown.tsx
|
|
473
397
|
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
398
|
|
|
475
399
|
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; }
|
|
@@ -491,19 +415,19 @@ function Markdown_objectWithoutPropertiesLoose(source, excluded) { if (source ==
|
|
|
491
415
|
/** @public */
|
|
492
416
|
|
|
493
417
|
var Markdown_propTypes = {
|
|
494
|
-
blockquoteRenderer: external_prop_types_default.
|
|
495
|
-
codeBlockRenderer: external_prop_types_default.
|
|
496
|
-
codeRenderer: external_prop_types_default.
|
|
497
|
-
elementRef: external_prop_types_default.
|
|
498
|
-
headingRenderer: external_prop_types_default.
|
|
499
|
-
imageRenderer: external_prop_types_default.
|
|
500
|
-
itemRenderer: external_prop_types_default.
|
|
501
|
-
linkRenderer: external_prop_types_default.
|
|
502
|
-
listRenderer: external_prop_types_default.
|
|
503
|
-
paragraphRenderer: external_prop_types_default.
|
|
504
|
-
text: external_prop_types_default.
|
|
418
|
+
blockquoteRenderer: (external_prop_types_default()).func,
|
|
419
|
+
codeBlockRenderer: (external_prop_types_default()).func,
|
|
420
|
+
codeRenderer: (external_prop_types_default()).func,
|
|
421
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
422
|
+
headingRenderer: (external_prop_types_default()).func,
|
|
423
|
+
imageRenderer: (external_prop_types_default()).func,
|
|
424
|
+
itemRenderer: (external_prop_types_default()).func,
|
|
425
|
+
linkRenderer: (external_prop_types_default()).func,
|
|
426
|
+
listRenderer: (external_prop_types_default()).func,
|
|
427
|
+
paragraphRenderer: (external_prop_types_default()).func,
|
|
428
|
+
text: (external_prop_types_default()).string.isRequired
|
|
505
429
|
};
|
|
506
|
-
var parser = new
|
|
430
|
+
var parser = new external_commonmark_namespaceObject.Parser();
|
|
507
431
|
/**
|
|
508
432
|
* The `Markdown` component renders the given Markdown text as a React component.
|
|
509
433
|
* The component prefers @splunk/react-ui components over plain HTML components. For example
|
|
@@ -514,6 +438,7 @@ function Markdown(_ref) {
|
|
|
514
438
|
var blockquoteRenderer = _ref.blockquoteRenderer,
|
|
515
439
|
codeBlockRenderer = _ref.codeBlockRenderer,
|
|
516
440
|
codeRenderer = _ref.codeRenderer,
|
|
441
|
+
elementRef = _ref.elementRef,
|
|
517
442
|
headingRenderer = _ref.headingRenderer,
|
|
518
443
|
imageRenderer = _ref.imageRenderer,
|
|
519
444
|
itemRenderer = _ref.itemRenderer,
|
|
@@ -521,7 +446,7 @@ function Markdown(_ref) {
|
|
|
521
446
|
listRenderer = _ref.listRenderer,
|
|
522
447
|
paragraphRenderer = _ref.paragraphRenderer,
|
|
523
448
|
text = _ref.text,
|
|
524
|
-
otherProps = Markdown_objectWithoutProperties(_ref, ["blockquoteRenderer", "codeBlockRenderer", "codeRenderer", "headingRenderer", "imageRenderer", "itemRenderer", "linkRenderer", "listRenderer", "paragraphRenderer", "text"]);
|
|
449
|
+
otherProps = Markdown_objectWithoutProperties(_ref, ["blockquoteRenderer", "codeBlockRenderer", "codeRenderer", "elementRef", "headingRenderer", "imageRenderer", "itemRenderer", "linkRenderer", "listRenderer", "paragraphRenderer", "text"]);
|
|
525
450
|
|
|
526
451
|
// @docs-props-type MarkdownPropsBase
|
|
527
452
|
// keep this option object inside the constructor, otherwise the renderers
|
|
@@ -548,70 +473,21 @@ function Markdown(_ref) {
|
|
|
548
473
|
rendererOptions.renderers.Image = imageRenderer;
|
|
549
474
|
}
|
|
550
475
|
|
|
551
|
-
var renderer = new external_commonmark_react_renderer_default
|
|
476
|
+
var renderer = new (external_commonmark_react_renderer_default())(_objectSpread({}, rendererOptions));
|
|
552
477
|
var ast = parser.parse(text);
|
|
553
478
|
var elements = renderer.render(ast);
|
|
554
|
-
return /*#__PURE__*/external_react_default.
|
|
555
|
-
"data-test": "markdown"
|
|
479
|
+
return /*#__PURE__*/external_react_default().createElement((Box_default()), Markdown_extends({
|
|
480
|
+
"data-test": "markdown",
|
|
481
|
+
elementRef: elementRef
|
|
556
482
|
}, otherProps), elements);
|
|
557
483
|
}
|
|
558
484
|
|
|
559
485
|
Markdown.propTypes = Markdown_propTypes;
|
|
560
|
-
/* harmony default export */
|
|
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) {
|
|
486
|
+
/* harmony default export */ const Markdown_Markdown = (Markdown);
|
|
612
487
|
|
|
613
|
-
|
|
488
|
+
;// CONCATENATED MODULE: ./src/Markdown/index.ts
|
|
614
489
|
|
|
615
|
-
/***/ })
|
|
616
490
|
|
|
617
|
-
|
|
491
|
+
module.exports = __webpack_exports__;
|
|
492
|
+
/******/ })()
|
|
493
|
+
;
|