@splunk/react-ui 4.19.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.d.ts +2 -0
- package/Breadcrumbs.js +207 -0
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +35 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +132 -248
- package/CloseButton.js +92 -200
- package/Code.js +188 -251
- 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 -355
- package/Menu.js +396 -647
- 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 +2675 -2807
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +436 -623
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +183 -304
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1243 -1248
- 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 +975 -1447
- 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 +20 -21
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +25 -0
- package/types/src/Breadcrumbs/Item.d.ts +42 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -0
- package/types/src/Breadcrumbs/index.d.ts +2 -0
- package/types/src/Code/Code.d.ts +1 -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 +12 -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/Compact.d.ts +4 -0
- package/types/src/Multiselect/Multiselect.d.ts +5 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -0
- 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/Select/SelectAllOption.d.ts +14 -0
- package/types/src/Select/SelectBase.d.ts +11 -3
- package/types/src/Table/Table.d.ts +4 -0
- package/types/src/Text/Text.d.ts +3 -3
- package/types/src/TextArea/TextArea.d.ts +3 -3
- 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/Typography/docs/examples/Variants.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,286 +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 = 171);
|
|
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
|
-
/***/ 108:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-ui/List");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 139:
|
|
112
|
-
/***/ (function(module, exports) {
|
|
113
|
-
|
|
114
|
-
module.exports = require("commonmark-react-renderer");
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ 140:
|
|
119
|
-
/***/ (function(module, exports) {
|
|
120
|
-
|
|
121
|
-
module.exports = require("commonmark");
|
|
122
|
-
|
|
123
|
-
/***/ }),
|
|
124
|
-
|
|
125
|
-
/***/ 141:
|
|
126
|
-
/***/ (function(module, exports) {
|
|
127
|
-
|
|
128
|
-
module.exports = require("@splunk/react-ui/Code");
|
|
129
|
-
|
|
130
|
-
/***/ }),
|
|
131
|
-
|
|
132
|
-
/***/ 142:
|
|
133
|
-
/***/ (function(module, exports) {
|
|
134
|
-
|
|
135
|
-
module.exports = require("@splunk/react-ui/Paragraph");
|
|
136
|
-
|
|
137
|
-
/***/ }),
|
|
138
|
-
|
|
139
|
-
/***/ 171:
|
|
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
|
-
var
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var themes_ = __webpack_require__(0);
|
|
185
|
-
|
|
186
|
-
// CONCATENATED MODULE: ./src/Markdown/MarkdownStyles.ts
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
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({
|
|
190
90
|
displayName: "MarkdownStyles__StyledCodeBlock",
|
|
191
91
|
componentId: "sc-1xadih-0"
|
|
192
|
-
})(["padding:", ";margin:", " 0;background-color:", ";"],
|
|
193
|
-
enterprise:
|
|
194
|
-
prisma:
|
|
195
|
-
}),
|
|
196
|
-
enterprise:
|
|
197
|
-
prisma:
|
|
198
|
-
}),
|
|
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)({
|
|
199
99
|
enterprise: {
|
|
200
|
-
light:
|
|
201
|
-
dark:
|
|
100
|
+
light: themes_namespaceObject.variables.gray96,
|
|
101
|
+
dark: themes_namespaceObject.variables.gray22
|
|
202
102
|
},
|
|
203
|
-
prisma:
|
|
103
|
+
prisma: themes_namespaceObject.variables.backgroundColorSection
|
|
204
104
|
}));
|
|
205
|
-
var StyledCodeInline = external_styled_components_default.
|
|
105
|
+
var StyledCodeInline = external_styled_components_default().code.withConfig({
|
|
206
106
|
displayName: "MarkdownStyles__StyledCodeInline",
|
|
207
107
|
componentId: "sc-1xadih-1"
|
|
208
|
-
})(["", ";font-family:", ";background-color:", ";"],
|
|
108
|
+
})(["", ";font-family:", ";background-color:", ";"], themes_namespaceObject.mixins.reset('inline'), themes_namespaceObject.variables.monoFontFamily, (0,themes_namespaceObject.pick)({
|
|
209
109
|
enterprise: {
|
|
210
|
-
light:
|
|
211
|
-
dark:
|
|
110
|
+
light: themes_namespaceObject.variables.gray92,
|
|
111
|
+
dark: themes_namespaceObject.variables.gray22
|
|
212
112
|
},
|
|
213
|
-
prisma:
|
|
113
|
+
prisma: themes_namespaceObject.variables.neutral200
|
|
214
114
|
}));
|
|
215
|
-
var StyledHint = external_styled_components_default.
|
|
115
|
+
var StyledHint = external_styled_components_default().blockquote.withConfig({
|
|
216
116
|
displayName: "MarkdownStyles__StyledHint",
|
|
217
117
|
componentId: "sc-1xadih-2"
|
|
218
|
-
})(["", " ", " 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)({
|
|
219
119
|
enterprise: {
|
|
220
|
-
light:
|
|
221
|
-
dark:
|
|
120
|
+
light: themes_namespaceObject.variables.infoColorL50,
|
|
121
|
+
dark: themes_namespaceObject.variables.infoColorD50
|
|
222
122
|
},
|
|
223
|
-
prisma:
|
|
224
|
-
}),
|
|
225
|
-
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({
|
|
226
126
|
displayName: "MarkdownStyles__StyledImage",
|
|
227
127
|
componentId: "sc-1xadih-3"
|
|
228
128
|
})(["max-width:100%;"]);
|
|
229
129
|
|
|
230
|
-
|
|
130
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownBlockquote.tsx
|
|
231
131
|
|
|
232
132
|
|
|
233
133
|
|
|
234
134
|
var propTypes = {
|
|
235
|
-
children: external_prop_types_default.
|
|
135
|
+
children: (external_prop_types_default()).node
|
|
236
136
|
};
|
|
237
137
|
|
|
238
138
|
function MarkdownBlockquote(_ref) {
|
|
239
139
|
var children = _ref.children;
|
|
240
|
-
return /*#__PURE__*/external_react_default.
|
|
140
|
+
return /*#__PURE__*/external_react_default().createElement(StyledHint, null, children);
|
|
241
141
|
}
|
|
242
142
|
|
|
243
143
|
MarkdownBlockquote.propTypes = propTypes;
|
|
244
|
-
/* harmony default export */
|
|
245
|
-
|
|
144
|
+
/* harmony default export */ const renderers_MarkdownBlockquote = (MarkdownBlockquote);
|
|
145
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCode.tsx
|
|
246
146
|
|
|
247
147
|
|
|
248
148
|
|
|
249
149
|
var MarkdownCode_propTypes = {
|
|
250
|
-
literal: external_prop_types_default.
|
|
150
|
+
literal: (external_prop_types_default()).string
|
|
251
151
|
};
|
|
252
152
|
|
|
253
153
|
function MarkdownCode(_ref) {
|
|
254
154
|
var literal = _ref.literal;
|
|
255
|
-
return /*#__PURE__*/external_react_default.
|
|
155
|
+
return /*#__PURE__*/external_react_default().createElement(StyledCodeInline, null, literal);
|
|
256
156
|
}
|
|
257
157
|
|
|
258
158
|
MarkdownCode.propTypes = MarkdownCode_propTypes;
|
|
259
|
-
/* harmony default export */
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
var Code_default = /*#__PURE__*/__webpack_require__.n(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
// 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
|
|
268
166
|
|
|
269
167
|
|
|
270
168
|
|
|
271
169
|
|
|
272
170
|
|
|
273
171
|
var MarkdownCodeBlock_propTypes = {
|
|
274
|
-
literal: external_prop_types_default.
|
|
275
|
-
language: external_prop_types_default.
|
|
172
|
+
literal: (external_prop_types_default()).string,
|
|
173
|
+
language: (external_prop_types_default()).string
|
|
276
174
|
};
|
|
277
175
|
|
|
278
176
|
function MarkdownCodeBlock(_ref) {
|
|
279
177
|
var literal = _ref.literal,
|
|
280
178
|
language = _ref.language;
|
|
281
|
-
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
|
|
282
180
|
, {
|
|
283
|
-
"aria-label":
|
|
181
|
+
"aria-label": (0,i18n_namespaceObject._)("Code Block"),
|
|
284
182
|
language: language,
|
|
285
183
|
value: literal,
|
|
286
184
|
style: {
|
|
@@ -290,70 +188,98 @@ function MarkdownCodeBlock(_ref) {
|
|
|
290
188
|
}
|
|
291
189
|
|
|
292
190
|
MarkdownCodeBlock.propTypes = MarkdownCodeBlock_propTypes;
|
|
293
|
-
/* harmony default export */
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
var Heading_default = /*#__PURE__*/__webpack_require__.n(
|
|
297
|
-
|
|
298
|
-
// 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
|
|
299
196
|
|
|
300
197
|
|
|
301
198
|
|
|
302
199
|
var MarkdownHeading_propTypes = {
|
|
303
|
-
children: external_prop_types_default.
|
|
200
|
+
children: (external_prop_types_default()).node
|
|
304
201
|
};
|
|
305
202
|
|
|
306
203
|
function MarkdownHeading(_ref) {
|
|
307
204
|
var level = _ref.level,
|
|
308
205
|
children = _ref.children;
|
|
309
|
-
return /*#__PURE__*/external_react_default.
|
|
206
|
+
return /*#__PURE__*/external_react_default().createElement((Heading_default()), {
|
|
310
207
|
level: Math.min(level, 4)
|
|
311
208
|
}, children);
|
|
312
209
|
}
|
|
313
210
|
|
|
314
211
|
MarkdownHeading.propTypes = MarkdownHeading_propTypes;
|
|
315
|
-
/* harmony default export */
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
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); }
|
|
319
218
|
|
|
320
|
-
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
|
|
321
219
|
|
|
322
220
|
|
|
323
221
|
|
|
324
222
|
|
|
325
223
|
var MarkdownAnchorHeading_propTypes = {
|
|
326
|
-
children: external_prop_types_default.
|
|
224
|
+
children: (external_prop_types_default()).node
|
|
327
225
|
};
|
|
328
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
|
+
|
|
329
256
|
function MarkdownAnchorHeading(_ref) {
|
|
330
257
|
var level = _ref.level,
|
|
331
258
|
children = _ref.children;
|
|
332
|
-
return /*#__PURE__*/external_react_default.
|
|
259
|
+
return /*#__PURE__*/external_react_default().createElement(renderers_MarkdownHeading, {
|
|
333
260
|
level: Math.min(level, 4)
|
|
334
|
-
}, /*#__PURE__*/external_react_default.
|
|
335
|
-
name: children
|
|
336
|
-
.replace(/[^a-z0-9-. ]/g, '').replace(/[-. ]+/g, '-')
|
|
261
|
+
}, /*#__PURE__*/external_react_default().createElement((Anchor_default()), {
|
|
262
|
+
name: getAnchor(children)
|
|
337
263
|
}, children));
|
|
338
264
|
}
|
|
339
265
|
|
|
340
266
|
MarkdownAnchorHeading.propTypes = MarkdownAnchorHeading_propTypes;
|
|
341
|
-
/* harmony default export */
|
|
342
|
-
|
|
267
|
+
/* harmony default export */ const renderers_MarkdownAnchorHeading = (MarkdownAnchorHeading);
|
|
268
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownImage.tsx
|
|
343
269
|
|
|
344
270
|
|
|
345
271
|
|
|
346
272
|
var MarkdownImage_propTypes = {
|
|
347
|
-
alt: external_prop_types_default.
|
|
348
|
-
src: external_prop_types_default.
|
|
349
|
-
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
|
|
350
276
|
};
|
|
351
277
|
|
|
352
278
|
function MarkdownImage(_ref) {
|
|
353
279
|
var src = _ref.src,
|
|
354
280
|
title = _ref.title,
|
|
355
281
|
alt = _ref.alt;
|
|
356
|
-
return /*#__PURE__*/external_react_default.
|
|
282
|
+
return /*#__PURE__*/external_react_default().createElement(StyledImage, {
|
|
357
283
|
src: src,
|
|
358
284
|
title: title,
|
|
359
285
|
alt: alt
|
|
@@ -361,12 +287,11 @@ function MarkdownImage(_ref) {
|
|
|
361
287
|
}
|
|
362
288
|
|
|
363
289
|
MarkdownImage.propTypes = MarkdownImage_propTypes;
|
|
364
|
-
/* harmony default export */
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
var Link_default = /*#__PURE__*/__webpack_require__.n(
|
|
368
|
-
|
|
369
|
-
// 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
|
|
370
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); }
|
|
371
296
|
|
|
372
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; }
|
|
@@ -377,9 +302,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
377
302
|
|
|
378
303
|
|
|
379
304
|
var MarkdownLink_propTypes = {
|
|
380
|
-
children: external_prop_types_default.
|
|
381
|
-
href: external_prop_types_default.
|
|
382
|
-
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
|
|
383
308
|
};
|
|
384
309
|
|
|
385
310
|
function MarkdownLink(_ref) {
|
|
@@ -387,24 +312,23 @@ function MarkdownLink(_ref) {
|
|
|
387
312
|
href = _ref.href,
|
|
388
313
|
otherProps = _objectWithoutProperties(_ref, ["children", "href"]);
|
|
389
314
|
|
|
390
|
-
return /*#__PURE__*/external_react_default.
|
|
315
|
+
return /*#__PURE__*/external_react_default().createElement((Link_default()), _extends({
|
|
391
316
|
to: href
|
|
392
317
|
}, otherProps), children);
|
|
393
318
|
}
|
|
394
319
|
|
|
395
320
|
MarkdownLink.propTypes = MarkdownLink_propTypes;
|
|
396
|
-
/* harmony default export */
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
var List_default = /*#__PURE__*/__webpack_require__.n(
|
|
400
|
-
|
|
401
|
-
// 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
|
|
402
326
|
|
|
403
327
|
|
|
404
328
|
|
|
405
329
|
var MarkdownList_propTypes = {
|
|
406
|
-
children: external_prop_types_default.
|
|
407
|
-
type: external_prop_types_default.
|
|
330
|
+
children: (external_prop_types_default()).node,
|
|
331
|
+
type: (external_prop_types_default()).string
|
|
408
332
|
};
|
|
409
333
|
|
|
410
334
|
function MarkdownList(_ref) {
|
|
@@ -412,51 +336,50 @@ function MarkdownList(_ref) {
|
|
|
412
336
|
type = _ref.type;
|
|
413
337
|
|
|
414
338
|
if (type === 'ordered') {
|
|
415
|
-
return /*#__PURE__*/external_react_default.
|
|
339
|
+
return /*#__PURE__*/external_react_default().createElement((List_default()), {
|
|
416
340
|
ordered: true
|
|
417
341
|
}, children);
|
|
418
342
|
}
|
|
419
343
|
|
|
420
|
-
return /*#__PURE__*/external_react_default.
|
|
344
|
+
return /*#__PURE__*/external_react_default().createElement((List_default()), null, children);
|
|
421
345
|
}
|
|
422
346
|
|
|
423
347
|
MarkdownList.propTypes = MarkdownList_propTypes;
|
|
424
|
-
/* harmony default export */
|
|
425
|
-
|
|
348
|
+
/* harmony default export */ const renderers_MarkdownList = (MarkdownList);
|
|
349
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownItem.tsx
|
|
426
350
|
|
|
427
351
|
|
|
428
352
|
|
|
429
353
|
var MarkdownItem_propTypes = {
|
|
430
|
-
children: external_prop_types_default.
|
|
354
|
+
children: (external_prop_types_default()).node
|
|
431
355
|
};
|
|
432
356
|
|
|
433
357
|
function MarkdownItem(_ref) {
|
|
434
358
|
var children = _ref.children;
|
|
435
|
-
return /*#__PURE__*/external_react_default.
|
|
359
|
+
return /*#__PURE__*/external_react_default().createElement(List_namespaceObject.Item, null, children);
|
|
436
360
|
}
|
|
437
361
|
|
|
438
362
|
MarkdownItem.propTypes = MarkdownItem_propTypes;
|
|
439
|
-
/* harmony default export */
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
var Paragraph_default = /*#__PURE__*/__webpack_require__.n(
|
|
443
|
-
|
|
444
|
-
// 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
|
|
445
368
|
|
|
446
369
|
|
|
447
370
|
|
|
448
371
|
var MarkdownParagraph_propTypes = {
|
|
449
|
-
children: external_prop_types_default.
|
|
372
|
+
children: (external_prop_types_default()).node
|
|
450
373
|
};
|
|
451
374
|
|
|
452
375
|
function MarkdownParagraph(_ref) {
|
|
453
376
|
var children = _ref.children;
|
|
454
|
-
return /*#__PURE__*/external_react_default.
|
|
377
|
+
return /*#__PURE__*/external_react_default().createElement((Paragraph_default()), null, children);
|
|
455
378
|
}
|
|
456
379
|
|
|
457
380
|
MarkdownParagraph.propTypes = MarkdownParagraph_propTypes;
|
|
458
|
-
/* harmony default export */
|
|
459
|
-
|
|
381
|
+
/* harmony default export */ const renderers_MarkdownParagraph = (MarkdownParagraph);
|
|
382
|
+
;// CONCATENATED MODULE: ./src/Markdown/renderers/index.ts
|
|
460
383
|
|
|
461
384
|
|
|
462
385
|
|
|
@@ -470,7 +393,7 @@ MarkdownParagraph.propTypes = MarkdownParagraph_propTypes;
|
|
|
470
393
|
// in Markdown.tsx to be usable outside the Markdown component
|
|
471
394
|
|
|
472
395
|
|
|
473
|
-
|
|
396
|
+
;// CONCATENATED MODULE: ./src/Markdown/Markdown.tsx
|
|
474
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); }
|
|
475
398
|
|
|
476
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; }
|
|
@@ -492,19 +415,19 @@ function Markdown_objectWithoutPropertiesLoose(source, excluded) { if (source ==
|
|
|
492
415
|
/** @public */
|
|
493
416
|
|
|
494
417
|
var Markdown_propTypes = {
|
|
495
|
-
blockquoteRenderer: external_prop_types_default.
|
|
496
|
-
codeBlockRenderer: external_prop_types_default.
|
|
497
|
-
codeRenderer: external_prop_types_default.
|
|
498
|
-
elementRef: external_prop_types_default.
|
|
499
|
-
headingRenderer: external_prop_types_default.
|
|
500
|
-
imageRenderer: external_prop_types_default.
|
|
501
|
-
itemRenderer: external_prop_types_default.
|
|
502
|
-
linkRenderer: external_prop_types_default.
|
|
503
|
-
listRenderer: external_prop_types_default.
|
|
504
|
-
paragraphRenderer: external_prop_types_default.
|
|
505
|
-
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
|
|
506
429
|
};
|
|
507
|
-
var parser = new
|
|
430
|
+
var parser = new external_commonmark_namespaceObject.Parser();
|
|
508
431
|
/**
|
|
509
432
|
* The `Markdown` component renders the given Markdown text as a React component.
|
|
510
433
|
* The component prefers @splunk/react-ui components over plain HTML components. For example
|
|
@@ -515,6 +438,7 @@ function Markdown(_ref) {
|
|
|
515
438
|
var blockquoteRenderer = _ref.blockquoteRenderer,
|
|
516
439
|
codeBlockRenderer = _ref.codeBlockRenderer,
|
|
517
440
|
codeRenderer = _ref.codeRenderer,
|
|
441
|
+
elementRef = _ref.elementRef,
|
|
518
442
|
headingRenderer = _ref.headingRenderer,
|
|
519
443
|
imageRenderer = _ref.imageRenderer,
|
|
520
444
|
itemRenderer = _ref.itemRenderer,
|
|
@@ -522,7 +446,7 @@ function Markdown(_ref) {
|
|
|
522
446
|
listRenderer = _ref.listRenderer,
|
|
523
447
|
paragraphRenderer = _ref.paragraphRenderer,
|
|
524
448
|
text = _ref.text,
|
|
525
|
-
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"]);
|
|
526
450
|
|
|
527
451
|
// @docs-props-type MarkdownPropsBase
|
|
528
452
|
// keep this option object inside the constructor, otherwise the renderers
|
|
@@ -549,70 +473,21 @@ function Markdown(_ref) {
|
|
|
549
473
|
rendererOptions.renderers.Image = imageRenderer;
|
|
550
474
|
}
|
|
551
475
|
|
|
552
|
-
var renderer = new external_commonmark_react_renderer_default
|
|
476
|
+
var renderer = new (external_commonmark_react_renderer_default())(_objectSpread({}, rendererOptions));
|
|
553
477
|
var ast = parser.parse(text);
|
|
554
478
|
var elements = renderer.render(ast);
|
|
555
|
-
return /*#__PURE__*/external_react_default.
|
|
556
|
-
"data-test": "markdown"
|
|
479
|
+
return /*#__PURE__*/external_react_default().createElement((Box_default()), Markdown_extends({
|
|
480
|
+
"data-test": "markdown",
|
|
481
|
+
elementRef: elementRef
|
|
557
482
|
}, otherProps), elements);
|
|
558
483
|
}
|
|
559
484
|
|
|
560
485
|
Markdown.propTypes = Markdown_propTypes;
|
|
561
|
-
/* harmony default export */
|
|
562
|
-
|
|
563
|
-
// CONCATENATED MODULE: ./src/Markdown/index.ts
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
/***/ }),
|
|
568
|
-
|
|
569
|
-
/***/ 2:
|
|
570
|
-
/***/ (function(module, exports) {
|
|
571
|
-
|
|
572
|
-
module.exports = require("react");
|
|
573
|
-
|
|
574
|
-
/***/ }),
|
|
575
|
-
|
|
576
|
-
/***/ 3:
|
|
577
|
-
/***/ (function(module, exports) {
|
|
578
|
-
|
|
579
|
-
module.exports = require("styled-components");
|
|
580
|
-
|
|
581
|
-
/***/ }),
|
|
582
|
-
|
|
583
|
-
/***/ 39:
|
|
584
|
-
/***/ (function(module, exports) {
|
|
585
|
-
|
|
586
|
-
module.exports = require("@splunk/react-ui/Link");
|
|
587
|
-
|
|
588
|
-
/***/ }),
|
|
589
|
-
|
|
590
|
-
/***/ 4:
|
|
591
|
-
/***/ (function(module, exports) {
|
|
592
|
-
|
|
593
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
594
|
-
|
|
595
|
-
/***/ }),
|
|
596
|
-
|
|
597
|
-
/***/ 6:
|
|
598
|
-
/***/ (function(module, exports) {
|
|
599
|
-
|
|
600
|
-
module.exports = require("@splunk/react-ui/Box");
|
|
601
|
-
|
|
602
|
-
/***/ }),
|
|
603
|
-
|
|
604
|
-
/***/ 78:
|
|
605
|
-
/***/ (function(module, exports) {
|
|
606
|
-
|
|
607
|
-
module.exports = require("@splunk/react-ui/Heading");
|
|
608
|
-
|
|
609
|
-
/***/ }),
|
|
610
|
-
|
|
611
|
-
/***/ 86:
|
|
612
|
-
/***/ (function(module, exports) {
|
|
486
|
+
/* harmony default export */ const Markdown_Markdown = (Markdown);
|
|
613
487
|
|
|
614
|
-
|
|
488
|
+
;// CONCATENATED MODULE: ./src/Markdown/index.ts
|
|
615
489
|
|
|
616
|
-
/***/ })
|
|
617
490
|
|
|
618
|
-
|
|
491
|
+
module.exports = __webpack_exports__;
|
|
492
|
+
/******/ })()
|
|
493
|
+
;
|