@readme/markdown 6.66.0-beta.6 → 6.66.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/components/Code/index.jsx +3 -3
- package/components/CodeTabs/index.jsx +3 -28
- package/components/index.js +0 -1
- package/dist/main.js +645 -2864
- package/dist/main.node.js +331 -406
- package/package.json +3 -10
- package/components/Div.jsx +0 -30
package/dist/main.node.js
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("@readme/variable"), require("@tippyjs/react"), require("react"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["@readme/variable", "@tippyjs/react", "react"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("@readme/variable"), require("@tippyjs/react"), require("react")) : factory(root["@readme/variable"], root["@tippyjs/react"], root["React"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(global, (__WEBPACK_EXTERNAL_MODULE__3689__, __WEBPACK_EXTERNAL_MODULE__578__, __WEBPACK_EXTERNAL_MODULE__4466__) => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
2
12
|
/******/ var __webpack_modules__ = ({
|
|
3
13
|
|
|
4
14
|
/***/ 478:
|
|
@@ -7388,7 +7398,7 @@ var _objectWithoutProperties = __webpack_require__(215);
|
|
|
7388
7398
|
var _slicedToArray = __webpack_require__(7424);
|
|
7389
7399
|
var _excluded = ["baseUrl", "children", "href", "target", "title"];
|
|
7390
7400
|
var PropTypes = __webpack_require__(5697);
|
|
7391
|
-
var React = __webpack_require__(
|
|
7401
|
+
var React = __webpack_require__(4466);
|
|
7392
7402
|
var BaseUrlContext = __webpack_require__(6785);
|
|
7393
7403
|
|
|
7394
7404
|
// Nabbed from here:
|
|
@@ -7485,7 +7495,7 @@ AnchorWithContext.getHref = getHref;
|
|
|
7485
7495
|
var _extends = __webpack_require__(434);
|
|
7486
7496
|
var _toArray = __webpack_require__(1589);
|
|
7487
7497
|
var PropTypes = __webpack_require__(5697);
|
|
7488
|
-
var React = __webpack_require__(
|
|
7498
|
+
var React = __webpack_require__(4466);
|
|
7489
7499
|
var Callout = function Callout(props) {
|
|
7490
7500
|
var attributes = props.attributes,
|
|
7491
7501
|
theme = props.theme,
|
|
@@ -7535,7 +7545,7 @@ module.exports = Callout;
|
|
|
7535
7545
|
var _extends = __webpack_require__(434);
|
|
7536
7546
|
var copy = __webpack_require__(640);
|
|
7537
7547
|
var PropTypes = __webpack_require__(5697);
|
|
7538
|
-
var React = __webpack_require__(
|
|
7548
|
+
var React = __webpack_require__(4466);
|
|
7539
7549
|
|
|
7540
7550
|
// Only load CodeMirror in the browser, for SSR
|
|
7541
7551
|
// apps. Necessary because of people like this:
|
|
@@ -7597,8 +7607,7 @@ function Code(props) {
|
|
|
7597
7607
|
tokenizeVariables: true,
|
|
7598
7608
|
dark: theme === 'dark'
|
|
7599
7609
|
};
|
|
7600
|
-
var
|
|
7601
|
-
var codeContent = syntaxHighlighter && children ? syntaxHighlighter(code, language, codeOpts) : code || '';
|
|
7610
|
+
var codeContent = syntaxHighlighter && children ? syntaxHighlighter(children[0], language, codeOpts) : (children === null || children === void 0 ? void 0 : children[0]) || '';
|
|
7602
7611
|
return /*#__PURE__*/React.createElement(React.Fragment, null, copyButtons && /*#__PURE__*/React.createElement(CopyCode, {
|
|
7603
7612
|
className: "fa",
|
|
7604
7613
|
codeRef: codeRef
|
|
@@ -7625,7 +7634,7 @@ function CreateCode(_ref2) {
|
|
|
7625
7634
|
};
|
|
7626
7635
|
}
|
|
7627
7636
|
Code.propTypes = {
|
|
7628
|
-
children: PropTypes.
|
|
7637
|
+
children: PropTypes.arrayOf(PropTypes.string),
|
|
7629
7638
|
className: PropTypes.string,
|
|
7630
7639
|
copyButtons: PropTypes.bool,
|
|
7631
7640
|
lang: PropTypes.string,
|
|
@@ -7655,22 +7664,9 @@ var _slicedToArray = __webpack_require__(7424);
|
|
|
7655
7664
|
var _require = __webpack_require__(6841),
|
|
7656
7665
|
uppercase = _require.uppercase;
|
|
7657
7666
|
var PropTypes = __webpack_require__(5697);
|
|
7658
|
-
var React = __webpack_require__(
|
|
7659
|
-
var _require2 = __webpack_require__(
|
|
7667
|
+
var React = __webpack_require__(4466);
|
|
7668
|
+
var _require2 = __webpack_require__(4466),
|
|
7660
7669
|
useState = _require2.useState;
|
|
7661
|
-
var traverseProps = function traverseProps(props, fn) {
|
|
7662
|
-
if (!props) return;
|
|
7663
|
-
fn(props);
|
|
7664
|
-
if (props && 'children' in props) {
|
|
7665
|
-
if (Array.isArray(props.children)) {
|
|
7666
|
-
props.children.forEach(function (child) {
|
|
7667
|
-
return child.props && traverseProps(child.props, fn);
|
|
7668
|
-
});
|
|
7669
|
-
} else {
|
|
7670
|
-
traverseProps(props.children.props, fn);
|
|
7671
|
-
}
|
|
7672
|
-
}
|
|
7673
|
-
};
|
|
7674
7670
|
var CodeTabs = function CodeTabs(props) {
|
|
7675
7671
|
var children = props.children,
|
|
7676
7672
|
theme = props.theme;
|
|
@@ -7690,23 +7686,16 @@ var CodeTabs = function CodeTabs(props) {
|
|
|
7690
7686
|
codeblocks[index].classList.add('CodeTabs_active');
|
|
7691
7687
|
setActiveIndex(index);
|
|
7692
7688
|
}
|
|
7693
|
-
var tabs = [];
|
|
7694
|
-
traverseProps(props, function (childProps) {
|
|
7695
|
-
if ('meta' in childProps || 'lang' in childProps) {
|
|
7696
|
-
tabs.push({
|
|
7697
|
-
meta: childProps.meta,
|
|
7698
|
-
lang: childProps.lang
|
|
7699
|
-
});
|
|
7700
|
-
}
|
|
7701
|
-
});
|
|
7702
7689
|
return /*#__PURE__*/React.createElement("div", {
|
|
7703
7690
|
className: "CodeTabs CodeTabs_initial theme-".concat(theme)
|
|
7704
7691
|
}, /*#__PURE__*/React.createElement("div", {
|
|
7705
7692
|
className: "CodeTabs-toolbar",
|
|
7706
7693
|
role: "tablist"
|
|
7707
|
-
},
|
|
7708
|
-
var
|
|
7709
|
-
|
|
7694
|
+
}, children.map(function (_ref2, i) {
|
|
7695
|
+
var pre = _ref2.props;
|
|
7696
|
+
var _pre$children$0$props = pre.children[0].props,
|
|
7697
|
+
meta = _pre$children$0$props.meta,
|
|
7698
|
+
lang = _pre$children$0$props.lang;
|
|
7710
7699
|
/* istanbul ignore next */
|
|
7711
7700
|
return /*#__PURE__*/React.createElement("button", {
|
|
7712
7701
|
key: i,
|
|
@@ -7724,7 +7713,7 @@ var CodeTabs = function CodeTabs(props) {
|
|
|
7724
7713
|
}, children));
|
|
7725
7714
|
};
|
|
7726
7715
|
CodeTabs.propTypes = {
|
|
7727
|
-
children: PropTypes.
|
|
7716
|
+
children: PropTypes.arrayOf(PropTypes.any).isRequired,
|
|
7728
7717
|
theme: PropTypes.string
|
|
7729
7718
|
};
|
|
7730
7719
|
function CreateCodeTabs(_ref3) {
|
|
@@ -7736,59 +7725,11 @@ function CreateCodeTabs(_ref3) {
|
|
|
7736
7725
|
}));
|
|
7737
7726
|
};
|
|
7738
7727
|
}
|
|
7739
|
-
CreateCodeTabs.sanitize = function (sanitizeSchema) {
|
|
7740
|
-
sanitizeSchema.attributes.div = ['className', 'tabs'];
|
|
7741
|
-
return sanitizeSchema;
|
|
7742
|
-
};
|
|
7743
7728
|
module.exports = CreateCodeTabs;
|
|
7744
7729
|
module.exports.CodeTabs = CodeTabs;
|
|
7745
7730
|
|
|
7746
7731
|
/***/ }),
|
|
7747
7732
|
|
|
7748
|
-
/***/ 996:
|
|
7749
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7750
|
-
|
|
7751
|
-
var _extends = __webpack_require__(434);
|
|
7752
|
-
var _objectWithoutProperties = __webpack_require__(215);
|
|
7753
|
-
var _excluded = ["components"];
|
|
7754
|
-
var PropTypes = __webpack_require__(5697);
|
|
7755
|
-
var React = __webpack_require__(3634);
|
|
7756
|
-
|
|
7757
|
-
/*
|
|
7758
|
-
* To get around hast/html sanitation, we pass custom components through using
|
|
7759
|
-
* className's. Then this Div component, can render the associated component
|
|
7760
|
-
* instead. This used to be done with a custom `React.createElement`, but for
|
|
7761
|
-
* mdx@v1.5, I don't see a way to customize that.
|
|
7762
|
-
*/
|
|
7763
|
-
|
|
7764
|
-
var Div = function Div(_ref) {
|
|
7765
|
-
var components = _ref.components,
|
|
7766
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
7767
|
-
if (Object.keys(components).includes(props.className)) {
|
|
7768
|
-
var Component = components[props.className];
|
|
7769
|
-
return /*#__PURE__*/React.createElement(Component, props);
|
|
7770
|
-
}
|
|
7771
|
-
|
|
7772
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
7773
|
-
return /*#__PURE__*/React.createElement("div", props);
|
|
7774
|
-
};
|
|
7775
|
-
Div.propTypes = {
|
|
7776
|
-
children: PropTypes.oneOf(PropTypes.arrayOf(PropTypes.any), PropTypes.object),
|
|
7777
|
-
className: PropTypes.string,
|
|
7778
|
-
components: PropTypes.object
|
|
7779
|
-
};
|
|
7780
|
-
module.exports = function (components, _ref2) {
|
|
7781
|
-
var theme = _ref2.theme;
|
|
7782
|
-
return function (props) {
|
|
7783
|
-
return /*#__PURE__*/React.createElement(Div, _extends({
|
|
7784
|
-
components: components,
|
|
7785
|
-
theme: theme
|
|
7786
|
-
}, props));
|
|
7787
|
-
};
|
|
7788
|
-
};
|
|
7789
|
-
|
|
7790
|
-
/***/ }),
|
|
7791
|
-
|
|
7792
7733
|
/***/ 1053:
|
|
7793
7734
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7794
7735
|
|
|
@@ -7805,7 +7746,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
7805
7746
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7806
7747
|
/* eslint-disable react/jsx-props-no-spreading, jsx-a11y/iframe-has-title */
|
|
7807
7748
|
var propTypes = __webpack_require__(5697);
|
|
7808
|
-
var React = __webpack_require__(
|
|
7749
|
+
var React = __webpack_require__(4466);
|
|
7809
7750
|
var Favicon = function Favicon(_ref) {
|
|
7810
7751
|
var src = _ref.src,
|
|
7811
7752
|
_ref$alt = _ref.alt,
|
|
@@ -7940,9 +7881,9 @@ module.exports = CreateEmbed;
|
|
|
7940
7881
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7941
7882
|
|
|
7942
7883
|
var _extends = __webpack_require__(434);
|
|
7943
|
-
var Tooltip = (__webpack_require__(
|
|
7884
|
+
var Tooltip = (__webpack_require__(578)["default"]);
|
|
7944
7885
|
var PropTypes = __webpack_require__(5697);
|
|
7945
|
-
var React = __webpack_require__(
|
|
7886
|
+
var React = __webpack_require__(4466);
|
|
7946
7887
|
var GlossaryContext = __webpack_require__(1252);
|
|
7947
7888
|
|
|
7948
7889
|
// https://github.com/readmeio/api-explorer/blob/0dedafcf71102feedaa4145040d3f57d79d95752/packages/api-explorer/src/lib/replace-vars.js#L8
|
|
@@ -8002,7 +7943,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8002
7943
|
*/
|
|
8003
7944
|
var escape = __webpack_require__(8686);
|
|
8004
7945
|
var PropTypes = __webpack_require__(5697);
|
|
8005
|
-
var React = __webpack_require__(
|
|
7946
|
+
var React = __webpack_require__(4466);
|
|
8006
7947
|
var MATCH_SCRIPT_TAGS = /<script\b[^>]*>([\s\S]*?)<\/script *>\n?/gim;
|
|
8007
7948
|
var extractScripts = function extractScripts() {
|
|
8008
7949
|
var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -8100,7 +8041,7 @@ var _extends = __webpack_require__(434);
|
|
|
8100
8041
|
var _objectWithoutProperties = __webpack_require__(215);
|
|
8101
8042
|
var _excluded = ["tag", "showAnchorIcons"];
|
|
8102
8043
|
var PropTypes = __webpack_require__(5697);
|
|
8103
|
-
var React = __webpack_require__(
|
|
8044
|
+
var React = __webpack_require__(4466);
|
|
8104
8045
|
function Heading(_ref) {
|
|
8105
8046
|
var tag = _ref.tag,
|
|
8106
8047
|
showAnchorIcons = _ref.showAnchorIcons,
|
|
@@ -8178,7 +8119,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8178
8119
|
/* eslint-disable no-param-reassign, react/jsx-props-no-spreading, no-fallthrough */
|
|
8179
8120
|
|
|
8180
8121
|
var PropTypes = __webpack_require__(5697);
|
|
8181
|
-
var React = __webpack_require__(
|
|
8122
|
+
var React = __webpack_require__(4466);
|
|
8182
8123
|
var Image = /*#__PURE__*/function (_React$Component) {
|
|
8183
8124
|
"use strict";
|
|
8184
8125
|
|
|
@@ -8304,7 +8245,7 @@ module.exports = CreateImage;
|
|
|
8304
8245
|
|
|
8305
8246
|
var _extends = __webpack_require__(434);
|
|
8306
8247
|
var PropTypes = __webpack_require__(5697);
|
|
8307
|
-
var React = __webpack_require__(
|
|
8248
|
+
var React = __webpack_require__(4466);
|
|
8308
8249
|
var Style = function Style(_ref) {
|
|
8309
8250
|
var children = _ref.children,
|
|
8310
8251
|
safeMode = _ref.safeMode;
|
|
@@ -8337,7 +8278,7 @@ module.exports = CreateStyle;
|
|
|
8337
8278
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8338
8279
|
|
|
8339
8280
|
var PropTypes = __webpack_require__(5697);
|
|
8340
|
-
var React = __webpack_require__(
|
|
8281
|
+
var React = __webpack_require__(4466);
|
|
8341
8282
|
function Table(props) {
|
|
8342
8283
|
var children = props.children;
|
|
8343
8284
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -8357,7 +8298,7 @@ module.exports = Table;
|
|
|
8357
8298
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8358
8299
|
|
|
8359
8300
|
var PropTypes = __webpack_require__(5697);
|
|
8360
|
-
var React = __webpack_require__(
|
|
8301
|
+
var React = __webpack_require__(4466);
|
|
8361
8302
|
function TableOfContents(_ref) {
|
|
8362
8303
|
var children = _ref.children;
|
|
8363
8304
|
return /*#__PURE__*/React.createElement("nav", null, /*#__PURE__*/React.createElement("ul", {
|
|
@@ -8388,15 +8329,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8388
8329
|
/* harmony export */ "Callout": () => (/* reexport default from dynamic */ _Callout__WEBPACK_IMPORTED_MODULE_1___default.a),
|
|
8389
8330
|
/* harmony export */ "Code": () => (/* reexport default from dynamic */ _Code__WEBPACK_IMPORTED_MODULE_2___default.a),
|
|
8390
8331
|
/* harmony export */ "CodeTabs": () => (/* reexport default from dynamic */ _CodeTabs__WEBPACK_IMPORTED_MODULE_3___default.a),
|
|
8391
|
-
/* harmony export */ "
|
|
8392
|
-
/* harmony export */ "
|
|
8393
|
-
/* harmony export */ "
|
|
8394
|
-
/* harmony export */ "
|
|
8395
|
-
/* harmony export */ "
|
|
8396
|
-
/* harmony export */ "
|
|
8397
|
-
/* harmony export */ "
|
|
8398
|
-
/* harmony export */ "
|
|
8399
|
-
/* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_12___default.a)
|
|
8332
|
+
/* harmony export */ "Embed": () => (/* reexport default from dynamic */ _Embed__WEBPACK_IMPORTED_MODULE_4___default.a),
|
|
8333
|
+
/* harmony export */ "GlossaryItem": () => (/* reexport default from dynamic */ _GlossaryItem__WEBPACK_IMPORTED_MODULE_5___default.a),
|
|
8334
|
+
/* harmony export */ "HTMLBlock": () => (/* reexport default from dynamic */ _HTMLBlock__WEBPACK_IMPORTED_MODULE_6___default.a),
|
|
8335
|
+
/* harmony export */ "Heading": () => (/* reexport default from dynamic */ _Heading__WEBPACK_IMPORTED_MODULE_7___default.a),
|
|
8336
|
+
/* harmony export */ "Image": () => (/* reexport default from dynamic */ _Image__WEBPACK_IMPORTED_MODULE_8___default.a),
|
|
8337
|
+
/* harmony export */ "Style": () => (/* reexport default from dynamic */ _Style__WEBPACK_IMPORTED_MODULE_9___default.a),
|
|
8338
|
+
/* harmony export */ "Table": () => (/* reexport default from dynamic */ _Table__WEBPACK_IMPORTED_MODULE_10___default.a),
|
|
8339
|
+
/* harmony export */ "TableOfContents": () => (/* reexport default from dynamic */ _TableOfContents__WEBPACK_IMPORTED_MODULE_11___default.a)
|
|
8400
8340
|
/* harmony export */ });
|
|
8401
8341
|
/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8447);
|
|
8402
8342
|
/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Anchor__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8406,25 +8346,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8406
8346
|
/* harmony import */ var _Code__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Code__WEBPACK_IMPORTED_MODULE_2__);
|
|
8407
8347
|
/* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6553);
|
|
8408
8348
|
/* harmony import */ var _CodeTabs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_CodeTabs__WEBPACK_IMPORTED_MODULE_3__);
|
|
8409
|
-
/* harmony import */ var
|
|
8410
|
-
/* harmony import */ var
|
|
8411
|
-
/* harmony import */ var
|
|
8412
|
-
/* harmony import */ var
|
|
8413
|
-
/* harmony import */ var
|
|
8414
|
-
/* harmony import */ var
|
|
8415
|
-
/* harmony import */ var
|
|
8416
|
-
/* harmony import */ var
|
|
8417
|
-
/* harmony import */ var
|
|
8418
|
-
/* harmony import */ var
|
|
8419
|
-
/* harmony import */ var
|
|
8420
|
-
/* harmony import */ var
|
|
8421
|
-
/* harmony import */ var
|
|
8422
|
-
/* harmony import */ var
|
|
8423
|
-
/* harmony import */ var
|
|
8424
|
-
/* harmony import */ var
|
|
8425
|
-
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(4479);
|
|
8426
|
-
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_TableOfContents__WEBPACK_IMPORTED_MODULE_12__);
|
|
8427
|
-
|
|
8349
|
+
/* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1053);
|
|
8350
|
+
/* harmony import */ var _Embed__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Embed__WEBPACK_IMPORTED_MODULE_4__);
|
|
8351
|
+
/* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4337);
|
|
8352
|
+
/* harmony import */ var _GlossaryItem__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_GlossaryItem__WEBPACK_IMPORTED_MODULE_5__);
|
|
8353
|
+
/* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(822);
|
|
8354
|
+
/* harmony import */ var _HTMLBlock__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_HTMLBlock__WEBPACK_IMPORTED_MODULE_6__);
|
|
8355
|
+
/* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1984);
|
|
8356
|
+
/* harmony import */ var _Heading__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Heading__WEBPACK_IMPORTED_MODULE_7__);
|
|
8357
|
+
/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9167);
|
|
8358
|
+
/* harmony import */ var _Image__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Image__WEBPACK_IMPORTED_MODULE_8__);
|
|
8359
|
+
/* harmony import */ var _Style__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(3197);
|
|
8360
|
+
/* harmony import */ var _Style__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Style__WEBPACK_IMPORTED_MODULE_9__);
|
|
8361
|
+
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(484);
|
|
8362
|
+
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Table__WEBPACK_IMPORTED_MODULE_10__);
|
|
8363
|
+
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(4479);
|
|
8364
|
+
/* harmony import */ var _TableOfContents__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_TableOfContents__WEBPACK_IMPORTED_MODULE_11__);
|
|
8428
8365
|
|
|
8429
8366
|
|
|
8430
8367
|
|
|
@@ -8443,7 +8380,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8443
8380
|
/***/ 6785:
|
|
8444
8381
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8445
8382
|
|
|
8446
|
-
var React = __webpack_require__(
|
|
8383
|
+
var React = __webpack_require__(4466);
|
|
8447
8384
|
module.exports = React.createContext('/');
|
|
8448
8385
|
|
|
8449
8386
|
/***/ }),
|
|
@@ -8451,11 +8388,33 @@ module.exports = React.createContext('/');
|
|
|
8451
8388
|
/***/ 1252:
|
|
8452
8389
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8453
8390
|
|
|
8454
|
-
var React = __webpack_require__(
|
|
8391
|
+
var React = __webpack_require__(4466);
|
|
8455
8392
|
module.exports = React.createContext([]);
|
|
8456
8393
|
|
|
8457
8394
|
/***/ }),
|
|
8458
8395
|
|
|
8396
|
+
/***/ 5894:
|
|
8397
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8398
|
+
|
|
8399
|
+
var React = __webpack_require__(4466);
|
|
8400
|
+
var CreateCodeTabs = __webpack_require__(6553);
|
|
8401
|
+
var createElement = function createElement(opts) {
|
|
8402
|
+
return (
|
|
8403
|
+
// eslint-disable-next-line react/display-name
|
|
8404
|
+
function (type, props) {
|
|
8405
|
+
// eslint-disable-next-line react/prop-types
|
|
8406
|
+
var rdmdType = type === 'div' && (props === null || props === void 0 ? void 0 : props.className) === 'code-tabs' ? CreateCodeTabs(opts) : type;
|
|
8407
|
+
for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
8408
|
+
children[_key - 2] = arguments[_key];
|
|
8409
|
+
}
|
|
8410
|
+
return React.createElement.apply(React, [rdmdType, props].concat(children));
|
|
8411
|
+
}
|
|
8412
|
+
);
|
|
8413
|
+
};
|
|
8414
|
+
module.exports = createElement;
|
|
8415
|
+
|
|
8416
|
+
/***/ }),
|
|
8417
|
+
|
|
8459
8418
|
/***/ 1264:
|
|
8460
8419
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8461
8420
|
|
|
@@ -9368,6 +9327,8 @@ module.exports = function YamlCompiler() {
|
|
|
9368
9327
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9369
9328
|
|
|
9370
9329
|
var _slicedToArray = __webpack_require__(7424);
|
|
9330
|
+
var _require = __webpack_require__(2135),
|
|
9331
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9371
9332
|
var rgx = /^(#{1,6})(?!(?:#|\s))([^\n]+)\n/;
|
|
9372
9333
|
function tokenizer(eat, value) {
|
|
9373
9334
|
if (!rgx.test(value)) return true;
|
|
@@ -9384,11 +9345,11 @@ function tokenizer(eat, value) {
|
|
|
9384
9345
|
});
|
|
9385
9346
|
}
|
|
9386
9347
|
function parser() {
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9348
|
+
insertBlockTokenizerBefore.call(this, {
|
|
9349
|
+
name: 'compactHeading',
|
|
9350
|
+
before: 'atxHeading',
|
|
9351
|
+
tokenizer: tokenizer
|
|
9352
|
+
});
|
|
9392
9353
|
}
|
|
9393
9354
|
module.exports = parser;
|
|
9394
9355
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9610,6 +9571,8 @@ var _setPrototypeOf = __webpack_require__(6015);
|
|
|
9610
9571
|
var _slicedToArray = __webpack_require__(7424);
|
|
9611
9572
|
function _wrapRegExp() { _wrapRegExp = function _wrapRegExp(re, groups) { return new BabelRegExp(re, void 0, groups); }; var _super = RegExp.prototype, _groups = new WeakMap(); function BabelRegExp(re, flags, groups) { var _this = new RegExp(re, flags); return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype); } function buildGroups(result, re) { var g = _groups.get(re); return Object.keys(g).reduce(function (groups, name) { var i = g[name]; if ("number" == typeof i) groups[name] = result[i];else { for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) { k++; } groups[name] = result[i[k]]; } return groups; }, Object.create(null)); } return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { var result = _super.exec.call(this, str); return result && (result.groups = buildGroups(result, this)), result; }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { if ("string" == typeof substitution) { var groups = _groups.get(this); return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { return "$" + groups[name]; })); } if ("function" == typeof substitution) { var _this = this; return _super[Symbol.replace].call(this, str, function () { var args = arguments; return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); }); } return _super[Symbol.replace].call(this, str, substitution); }, _wrapRegExp.apply(this, arguments); }
|
|
9612
9573
|
var decode = __webpack_require__(7574);
|
|
9574
|
+
var _require = __webpack_require__(2135),
|
|
9575
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9613
9576
|
function tokenizer(eat, value) {
|
|
9614
9577
|
// eslint-disable-next-line unicorn/no-unsafe-regex
|
|
9615
9578
|
var TAB_BLOCK_RGXP = /^(?:(?:^|\n)```(?:(?!\n```)[\s\S])*\n```[^\S\n]*){2,}/g;
|
|
@@ -9672,11 +9635,11 @@ function tokenizer(eat, value) {
|
|
|
9672
9635
|
});
|
|
9673
9636
|
}
|
|
9674
9637
|
function parser() {
|
|
9675
|
-
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9638
|
+
insertBlockTokenizerBefore.call(this, {
|
|
9639
|
+
name: 'codeTabs',
|
|
9640
|
+
before: 'indentedCode',
|
|
9641
|
+
tokenizer: tokenizer
|
|
9642
|
+
});
|
|
9680
9643
|
}
|
|
9681
9644
|
module.exports = parser;
|
|
9682
9645
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9691,6 +9654,8 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
9691
9654
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9692
9655
|
|
|
9693
9656
|
var _slicedToArray = __webpack_require__(7424);
|
|
9657
|
+
var _require = __webpack_require__(2135),
|
|
9658
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9694
9659
|
var rgx = /^\[([^\]]*)\]\((\S*) ["'](@\w+)"\)/;
|
|
9695
9660
|
function tokenizer(eat, value) {
|
|
9696
9661
|
if (!rgx.test(value)) return true;
|
|
@@ -9730,11 +9695,11 @@ function tokenizer(eat, value) {
|
|
|
9730
9695
|
});
|
|
9731
9696
|
}
|
|
9732
9697
|
function parser() {
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
|
|
9698
|
+
insertBlockTokenizerBefore.call(this, {
|
|
9699
|
+
name: 'embed',
|
|
9700
|
+
before: 'blankLine',
|
|
9701
|
+
tokenizer: tokenizer
|
|
9702
|
+
});
|
|
9738
9703
|
}
|
|
9739
9704
|
module.exports = parser;
|
|
9740
9705
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9749,6 +9714,8 @@ module.exports.sanitize = function (sanitizeSchema) {
|
|
|
9749
9714
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
9750
9715
|
|
|
9751
9716
|
var Emoji = (__webpack_require__(368)/* .emoji */ .r);
|
|
9717
|
+
var _require = __webpack_require__(2135),
|
|
9718
|
+
insertInlineTokenizerBefore = _require.insertInlineTokenizerBefore;
|
|
9752
9719
|
var emojis = new Emoji();
|
|
9753
9720
|
var colon = ':';
|
|
9754
9721
|
function tokenize(eat, value, silent) {
|
|
@@ -9795,11 +9762,11 @@ function locate(value, fromIndex) {
|
|
|
9795
9762
|
}
|
|
9796
9763
|
tokenize.locator = locate;
|
|
9797
9764
|
function parser() {
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9765
|
+
insertInlineTokenizerBefore.call(this, {
|
|
9766
|
+
name: 'gemoji',
|
|
9767
|
+
before: 'text',
|
|
9768
|
+
tokenizer: tokenize
|
|
9769
|
+
});
|
|
9803
9770
|
}
|
|
9804
9771
|
module.exports = parser;
|
|
9805
9772
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -9940,6 +9907,8 @@ var _slicedToArray = __webpack_require__(7424);
|
|
|
9940
9907
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9941
9908
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9942
9909
|
/* eslint-disable consistent-return */
|
|
9910
|
+
var _require = __webpack_require__(2135),
|
|
9911
|
+
insertBlockTokenizerBefore = _require.insertBlockTokenizerBefore;
|
|
9943
9912
|
var RGXP = /^\[block:(.*)\]([^]+?)\[\/block\]/;
|
|
9944
9913
|
var WrapPinnedBlocks = function WrapPinnedBlocks(node, json) {
|
|
9945
9914
|
if (!json.sidebar) return node;
|
|
@@ -10223,15 +10192,16 @@ function tokenize(_ref) {
|
|
|
10223
10192
|
};
|
|
10224
10193
|
}
|
|
10225
10194
|
function parser() {
|
|
10226
|
-
var
|
|
10227
|
-
var tokenizers = Parser.prototype.blockTokenizers;
|
|
10228
|
-
var methods = Parser.prototype.blockMethods;
|
|
10229
|
-
tokenizers.magicBlocks = tokenize({
|
|
10195
|
+
var tokenizer = tokenize({
|
|
10230
10196
|
compatibilityMode: this.data('compatibilityMode'),
|
|
10231
10197
|
safeMode: this.data('safeMode'),
|
|
10232
10198
|
alwaysThrow: this.data('alwaysThrow')
|
|
10233
10199
|
});
|
|
10234
|
-
|
|
10200
|
+
insertBlockTokenizerBefore.call(this, {
|
|
10201
|
+
name: 'magicBlocks',
|
|
10202
|
+
before: 'blankLine',
|
|
10203
|
+
tokenizer: tokenizer
|
|
10204
|
+
});
|
|
10235
10205
|
}
|
|
10236
10206
|
module.exports = parser;
|
|
10237
10207
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -10247,11 +10217,54 @@ module.exports.imgSizeByWidth = imgSizeByWidth;
|
|
|
10247
10217
|
|
|
10248
10218
|
/***/ }),
|
|
10249
10219
|
|
|
10220
|
+
/***/ 2135:
|
|
10221
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10222
|
+
|
|
10223
|
+
"use strict";
|
|
10224
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10225
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10226
|
+
/* harmony export */ "insertBlockTokenizerBefore": () => (/* binding */ insertBlockTokenizerBefore),
|
|
10227
|
+
/* harmony export */ "insertInlineTokenizerBefore": () => (/* binding */ insertInlineTokenizerBefore)
|
|
10228
|
+
/* harmony export */ });
|
|
10229
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8416);
|
|
10230
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
10231
|
+
|
|
10232
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10233
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10234
|
+
function insertTokenizerBefore(_ref) {
|
|
10235
|
+
var name = _ref.name,
|
|
10236
|
+
before = _ref.before,
|
|
10237
|
+
tokenizer = _ref.tokenizer,
|
|
10238
|
+
_ref$type = _ref.type,
|
|
10239
|
+
type = _ref$type === void 0 ? 'block' : _ref$type;
|
|
10240
|
+
var Parser = this.Parser;
|
|
10241
|
+
var tokenizers = Parser.prototype["".concat(type, "Tokenizers")];
|
|
10242
|
+
var methods = Parser.prototype["".concat(type, "Methods")];
|
|
10243
|
+
var index = methods.indexOf(before);
|
|
10244
|
+
if (index === -1) {
|
|
10245
|
+
throw new Error("The '".concat(before, "' tokenizer does not exist!"));
|
|
10246
|
+
}
|
|
10247
|
+
tokenizers[name] = tokenizer;
|
|
10248
|
+
methods.splice(index, 0, name);
|
|
10249
|
+
}
|
|
10250
|
+
function insertBlockTokenizerBefore(args) {
|
|
10251
|
+
insertTokenizerBefore.call(this, args);
|
|
10252
|
+
}
|
|
10253
|
+
function insertInlineTokenizerBefore(args) {
|
|
10254
|
+
return insertTokenizerBefore.call(this, _objectSpread(_objectSpread({}, args), {}, {
|
|
10255
|
+
type: 'inline'
|
|
10256
|
+
}));
|
|
10257
|
+
}
|
|
10258
|
+
|
|
10259
|
+
/***/ }),
|
|
10260
|
+
|
|
10250
10261
|
/***/ 2697:
|
|
10251
10262
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
10252
10263
|
|
|
10253
|
-
var _require = __webpack_require__(
|
|
10264
|
+
var _require = __webpack_require__(3689),
|
|
10254
10265
|
VARIABLE_REGEXP = _require.VARIABLE_REGEXP;
|
|
10266
|
+
var _require2 = __webpack_require__(2135),
|
|
10267
|
+
insertInlineTokenizerBefore = _require2.insertInlineTokenizerBefore;
|
|
10255
10268
|
function tokenizeVariable(eat, value, silent) {
|
|
10256
10269
|
// Modifies the regular expression to match from
|
|
10257
10270
|
// the start of the line
|
|
@@ -10295,11 +10308,11 @@ function locate(value, fromIndex) {
|
|
|
10295
10308
|
}
|
|
10296
10309
|
tokenizeVariable.locator = locate;
|
|
10297
10310
|
function parser() {
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10311
|
+
insertInlineTokenizerBefore.call(this, {
|
|
10312
|
+
name: 'variable',
|
|
10313
|
+
before: 'text',
|
|
10314
|
+
tokenizer: tokenizeVariable
|
|
10315
|
+
});
|
|
10303
10316
|
}
|
|
10304
10317
|
module.exports = parser;
|
|
10305
10318
|
module.exports.sanitize = function (sanitizeSchema) {
|
|
@@ -10449,9 +10462,11 @@ function transformer(ast) {
|
|
|
10449
10462
|
return [_objectSpread(_objectSpread({}, node), {}, {
|
|
10450
10463
|
children: [_objectSpread(_objectSpread({}, node.children[0]), {}, {
|
|
10451
10464
|
value: valuesToString(header)
|
|
10452
|
-
}), _objectSpread(_objectSpread({}, node.children[1]), {}, {
|
|
10465
|
+
}), body ? _objectSpread(_objectSpread({}, node.children[1]), {}, {
|
|
10453
10466
|
value: valuesToString(body)
|
|
10454
|
-
})]
|
|
10467
|
+
}) : null].filter(function (x) {
|
|
10468
|
+
return x;
|
|
10469
|
+
})
|
|
10455
10470
|
})];
|
|
10456
10471
|
}
|
|
10457
10472
|
return [node];
|
|
@@ -10464,7 +10479,7 @@ module.exports.tableFlattening = transformer;
|
|
|
10464
10479
|
|
|
10465
10480
|
/***/ }),
|
|
10466
10481
|
|
|
10467
|
-
/***/
|
|
10482
|
+
/***/ 2442:
|
|
10468
10483
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10469
10484
|
|
|
10470
10485
|
"use strict";
|
|
@@ -10473,7 +10488,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10473
10488
|
|
|
10474
10489
|
// EXPORTS
|
|
10475
10490
|
__webpack_require__.d(__webpack_exports__, {
|
|
10476
|
-
"
|
|
10491
|
+
"rehypeTransformers": () => (/* binding */ rehypeTransformers),
|
|
10492
|
+
"remarkTransformers": () => (/* binding */ remarkTransformers)
|
|
10477
10493
|
});
|
|
10478
10494
|
|
|
10479
10495
|
;// CONCATENATED MODULE: ./node_modules/unist-util-visit/node_modules/unist-util-is/index.js
|
|
@@ -10992,9 +11008,43 @@ var singleCodeTabs = function singleCodeTabs() {
|
|
|
10992
11008
|
};
|
|
10993
11009
|
};
|
|
10994
11010
|
/* harmony default export */ const single_code_tabs = (singleCodeTabs);
|
|
11011
|
+
;// CONCATENATED MODULE: ./processor/transform/table-cell-inline-code.js
|
|
11012
|
+
|
|
11013
|
+
var rxEscapedPipe = /\\\|/g;
|
|
11014
|
+
|
|
11015
|
+
/**
|
|
11016
|
+
* HAST Transformer that finds all inline code nodes within table cells and
|
|
11017
|
+
* unescapes any escaped pipe chars so that the editor outputs them without
|
|
11018
|
+
* escape chars.
|
|
11019
|
+
*
|
|
11020
|
+
* This appears to be a bug with remark-parse < ~8
|
|
11021
|
+
*/
|
|
11022
|
+
var tableCellInlineCode = function tableCellInlineCode() {
|
|
11023
|
+
return function (tree) {
|
|
11024
|
+
visit(tree, [{
|
|
11025
|
+
tagName: 'th'
|
|
11026
|
+
}, {
|
|
11027
|
+
tagName: 'td'
|
|
11028
|
+
}], function (tableCellNode) {
|
|
11029
|
+
visit(tableCellNode, {
|
|
11030
|
+
tagName: 'code'
|
|
11031
|
+
}, function (inlineCodeNode) {
|
|
11032
|
+
var textNode = inlineCodeNode.children[0];
|
|
11033
|
+
if (rxEscapedPipe.test(textNode.value)) {
|
|
11034
|
+
textNode.value = textNode.value.replace(rxEscapedPipe, '|');
|
|
11035
|
+
}
|
|
11036
|
+
});
|
|
11037
|
+
return SKIP;
|
|
11038
|
+
});
|
|
11039
|
+
};
|
|
11040
|
+
};
|
|
11041
|
+
/* harmony default export */ const table_cell_inline_code = (tableCellInlineCode);
|
|
10995
11042
|
;// CONCATENATED MODULE: ./processor/transform/index.js
|
|
10996
11043
|
|
|
10997
11044
|
|
|
11045
|
+
var remarkTransformers = [single_code_tabs];
|
|
11046
|
+
var rehypeTransformers = [table_cell_inline_code];
|
|
11047
|
+
|
|
10998
11048
|
/***/ }),
|
|
10999
11049
|
|
|
11000
11050
|
/***/ 8229:
|
|
@@ -11092,9 +11142,8 @@ function ccount(value, character) {
|
|
|
11092
11142
|
/***/ }),
|
|
11093
11143
|
|
|
11094
11144
|
/***/ 6313:
|
|
11095
|
-
/***/ ((module
|
|
11145
|
+
/***/ ((module) => {
|
|
11096
11146
|
|
|
11097
|
-
/* provided dependency */ var Buffer = __webpack_require__(4300)["Buffer"];
|
|
11098
11147
|
var clone = (function() {
|
|
11099
11148
|
'use strict';
|
|
11100
11149
|
|
|
@@ -30329,9 +30378,9 @@ function pipelineParse(p, ctx) {
|
|
|
30329
30378
|
function pipelineRun(p, ctx, next) {
|
|
30330
30379
|
p.run(ctx.tree, ctx.file, done)
|
|
30331
30380
|
|
|
30332
|
-
function done(
|
|
30333
|
-
if (
|
|
30334
|
-
next(
|
|
30381
|
+
function done(error, tree, file) {
|
|
30382
|
+
if (error) {
|
|
30383
|
+
next(error)
|
|
30335
30384
|
} else {
|
|
30336
30385
|
ctx.tree = tree
|
|
30337
30386
|
ctx.file = file
|
|
@@ -30342,14 +30391,17 @@ function pipelineRun(p, ctx, next) {
|
|
|
30342
30391
|
|
|
30343
30392
|
function pipelineStringify(p, ctx) {
|
|
30344
30393
|
var result = p.stringify(ctx.tree, ctx.file)
|
|
30345
|
-
var file = ctx.file
|
|
30346
30394
|
|
|
30347
30395
|
if (result === undefined || result === null) {
|
|
30348
30396
|
// Empty.
|
|
30349
30397
|
} else if (typeof result === 'string' || buffer(result)) {
|
|
30350
|
-
file
|
|
30398
|
+
if ('value' in ctx.file) {
|
|
30399
|
+
ctx.file.value = result
|
|
30400
|
+
}
|
|
30401
|
+
|
|
30402
|
+
ctx.file.contents = result
|
|
30351
30403
|
} else {
|
|
30352
|
-
file.result = result
|
|
30404
|
+
ctx.file.result = result
|
|
30353
30405
|
}
|
|
30354
30406
|
}
|
|
30355
30407
|
|
|
@@ -30358,8 +30410,8 @@ function unified() {
|
|
|
30358
30410
|
var attachers = []
|
|
30359
30411
|
var transformers = trough()
|
|
30360
30412
|
var namespace = {}
|
|
30361
|
-
var frozen = false
|
|
30362
30413
|
var freezeIndex = -1
|
|
30414
|
+
var frozen
|
|
30363
30415
|
|
|
30364
30416
|
// Data management.
|
|
30365
30417
|
processor.data = data
|
|
@@ -30385,10 +30437,9 @@ function unified() {
|
|
|
30385
30437
|
// Create a new processor based on the processor in the current scope.
|
|
30386
30438
|
function processor() {
|
|
30387
30439
|
var destination = unified()
|
|
30388
|
-
var length = attachers.length
|
|
30389
30440
|
var index = -1
|
|
30390
30441
|
|
|
30391
|
-
while (++index < length) {
|
|
30442
|
+
while (++index < attachers.length) {
|
|
30392
30443
|
destination.use.apply(null, attachers[index])
|
|
30393
30444
|
}
|
|
30394
30445
|
|
|
@@ -30406,8 +30457,6 @@ function unified() {
|
|
|
30406
30457
|
// In essence, always invoke this when exporting a processor.
|
|
30407
30458
|
function freeze() {
|
|
30408
30459
|
var values
|
|
30409
|
-
var plugin
|
|
30410
|
-
var options
|
|
30411
30460
|
var transformer
|
|
30412
30461
|
|
|
30413
30462
|
if (frozen) {
|
|
@@ -30416,19 +30465,16 @@ function unified() {
|
|
|
30416
30465
|
|
|
30417
30466
|
while (++freezeIndex < attachers.length) {
|
|
30418
30467
|
values = attachers[freezeIndex]
|
|
30419
|
-
plugin = values[0]
|
|
30420
|
-
options = values[1]
|
|
30421
|
-
transformer = null
|
|
30422
30468
|
|
|
30423
|
-
if (
|
|
30469
|
+
if (values[1] === false) {
|
|
30424
30470
|
continue
|
|
30425
30471
|
}
|
|
30426
30472
|
|
|
30427
|
-
if (
|
|
30473
|
+
if (values[1] === true) {
|
|
30428
30474
|
values[1] = undefined
|
|
30429
30475
|
}
|
|
30430
30476
|
|
|
30431
|
-
transformer =
|
|
30477
|
+
transformer = values[0].apply(processor, values.slice(1))
|
|
30432
30478
|
|
|
30433
30479
|
if (typeof transformer === 'function') {
|
|
30434
30480
|
transformers.use(transformer)
|
|
@@ -30448,9 +30494,7 @@ function unified() {
|
|
|
30448
30494
|
// Set `key`.
|
|
30449
30495
|
if (arguments.length === 2) {
|
|
30450
30496
|
assertUnfrozen('data', frozen)
|
|
30451
|
-
|
|
30452
30497
|
namespace[key] = value
|
|
30453
|
-
|
|
30454
30498
|
return processor
|
|
30455
30499
|
}
|
|
30456
30500
|
|
|
@@ -30524,16 +30568,12 @@ function unified() {
|
|
|
30524
30568
|
}
|
|
30525
30569
|
|
|
30526
30570
|
function addList(plugins) {
|
|
30527
|
-
var
|
|
30528
|
-
var index
|
|
30571
|
+
var index = -1
|
|
30529
30572
|
|
|
30530
30573
|
if (plugins === null || plugins === undefined) {
|
|
30531
30574
|
// Empty.
|
|
30532
30575
|
} else if (typeof plugins === 'object' && 'length' in plugins) {
|
|
30533
|
-
|
|
30534
|
-
index = -1
|
|
30535
|
-
|
|
30536
|
-
while (++index < length) {
|
|
30576
|
+
while (++index < plugins.length) {
|
|
30537
30577
|
add(plugins[index])
|
|
30538
30578
|
}
|
|
30539
30579
|
} else {
|
|
@@ -30546,7 +30586,7 @@ function unified() {
|
|
|
30546
30586
|
|
|
30547
30587
|
if (entry) {
|
|
30548
30588
|
if (plain(entry[1]) && plain(value)) {
|
|
30549
|
-
value = extend(entry[1], value)
|
|
30589
|
+
value = extend(true, entry[1], value)
|
|
30550
30590
|
}
|
|
30551
30591
|
|
|
30552
30592
|
entry[1] = value
|
|
@@ -30557,15 +30597,11 @@ function unified() {
|
|
|
30557
30597
|
}
|
|
30558
30598
|
|
|
30559
30599
|
function find(plugin) {
|
|
30560
|
-
var length = attachers.length
|
|
30561
30600
|
var index = -1
|
|
30562
|
-
var entry
|
|
30563
|
-
|
|
30564
|
-
while (++index < length) {
|
|
30565
|
-
entry = attachers[index]
|
|
30566
30601
|
|
|
30567
|
-
|
|
30568
|
-
|
|
30602
|
+
while (++index < attachers.length) {
|
|
30603
|
+
if (attachers[index][0] === plugin) {
|
|
30604
|
+
return attachers[index]
|
|
30569
30605
|
}
|
|
30570
30606
|
}
|
|
30571
30607
|
}
|
|
@@ -30607,10 +30643,10 @@ function unified() {
|
|
|
30607
30643
|
function executor(resolve, reject) {
|
|
30608
30644
|
transformers.run(node, vfile(file), done)
|
|
30609
30645
|
|
|
30610
|
-
function done(
|
|
30646
|
+
function done(error, tree, file) {
|
|
30611
30647
|
tree = tree || node
|
|
30612
|
-
if (
|
|
30613
|
-
reject(
|
|
30648
|
+
if (error) {
|
|
30649
|
+
reject(error)
|
|
30614
30650
|
} else if (resolve) {
|
|
30615
30651
|
resolve(tree)
|
|
30616
30652
|
} else {
|
|
@@ -30623,8 +30659,8 @@ function unified() {
|
|
|
30623
30659
|
// Run transforms on a unist node representation of a file (in string or
|
|
30624
30660
|
// vfile representation), sync.
|
|
30625
30661
|
function runSync(node, file) {
|
|
30626
|
-
var complete = false
|
|
30627
30662
|
var result
|
|
30663
|
+
var complete
|
|
30628
30664
|
|
|
30629
30665
|
run(node, file, done)
|
|
30630
30666
|
|
|
@@ -30632,10 +30668,10 @@ function unified() {
|
|
|
30632
30668
|
|
|
30633
30669
|
return result
|
|
30634
30670
|
|
|
30635
|
-
function done(
|
|
30671
|
+
function done(error, tree) {
|
|
30636
30672
|
complete = true
|
|
30637
|
-
bail(err)
|
|
30638
30673
|
result = tree
|
|
30674
|
+
bail(error)
|
|
30639
30675
|
}
|
|
30640
30676
|
}
|
|
30641
30677
|
|
|
@@ -30677,9 +30713,9 @@ function unified() {
|
|
|
30677
30713
|
|
|
30678
30714
|
pipeline.run(processor, {file: file}, done)
|
|
30679
30715
|
|
|
30680
|
-
function done(
|
|
30681
|
-
if (
|
|
30682
|
-
reject(
|
|
30716
|
+
function done(error) {
|
|
30717
|
+
if (error) {
|
|
30718
|
+
reject(error)
|
|
30683
30719
|
} else if (resolve) {
|
|
30684
30720
|
resolve(file)
|
|
30685
30721
|
} else {
|
|
@@ -30691,8 +30727,8 @@ function unified() {
|
|
|
30691
30727
|
|
|
30692
30728
|
// Process the given document (in string or vfile representation), sync.
|
|
30693
30729
|
function processSync(doc) {
|
|
30694
|
-
var complete = false
|
|
30695
30730
|
var file
|
|
30731
|
+
var complete
|
|
30696
30732
|
|
|
30697
30733
|
freeze()
|
|
30698
30734
|
assertParser('processSync', processor.Parser)
|
|
@@ -30705,9 +30741,9 @@ function unified() {
|
|
|
30705
30741
|
|
|
30706
30742
|
return file
|
|
30707
30743
|
|
|
30708
|
-
function done(
|
|
30744
|
+
function done(error) {
|
|
30709
30745
|
complete = true
|
|
30710
|
-
bail(
|
|
30746
|
+
bail(error)
|
|
30711
30747
|
}
|
|
30712
30748
|
}
|
|
30713
30749
|
}
|
|
@@ -31894,67 +31930,43 @@ function factory(key, options) {
|
|
|
31894
31930
|
|
|
31895
31931
|
/***/ }),
|
|
31896
31932
|
|
|
31897
|
-
/***/
|
|
31898
|
-
/***/ ((module) => {
|
|
31899
|
-
|
|
31900
|
-
"use strict";
|
|
31901
|
-
module.exports = require("@mdx-js/runtime");
|
|
31902
|
-
|
|
31903
|
-
/***/ }),
|
|
31904
|
-
|
|
31905
|
-
/***/ 1882:
|
|
31906
|
-
/***/ ((module) => {
|
|
31907
|
-
|
|
31908
|
-
"use strict";
|
|
31909
|
-
module.exports = require("@readme/variable");
|
|
31910
|
-
|
|
31911
|
-
/***/ }),
|
|
31912
|
-
|
|
31913
|
-
/***/ 1918:
|
|
31914
|
-
/***/ ((module) => {
|
|
31915
|
-
|
|
31916
|
-
"use strict";
|
|
31917
|
-
module.exports = require("@tippyjs/react");
|
|
31918
|
-
|
|
31919
|
-
/***/ }),
|
|
31920
|
-
|
|
31921
|
-
/***/ 281:
|
|
31933
|
+
/***/ 1017:
|
|
31922
31934
|
/***/ ((module) => {
|
|
31923
31935
|
|
|
31924
31936
|
"use strict";
|
|
31925
|
-
module.exports = require("
|
|
31937
|
+
module.exports = require("path");
|
|
31926
31938
|
|
|
31927
31939
|
/***/ }),
|
|
31928
31940
|
|
|
31929
|
-
/***/
|
|
31941
|
+
/***/ 3837:
|
|
31930
31942
|
/***/ ((module) => {
|
|
31931
31943
|
|
|
31932
31944
|
"use strict";
|
|
31933
|
-
module.exports = require("
|
|
31945
|
+
module.exports = require("util");
|
|
31934
31946
|
|
|
31935
31947
|
/***/ }),
|
|
31936
31948
|
|
|
31937
|
-
/***/
|
|
31949
|
+
/***/ 3689:
|
|
31938
31950
|
/***/ ((module) => {
|
|
31939
31951
|
|
|
31940
31952
|
"use strict";
|
|
31941
|
-
module.exports =
|
|
31953
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3689__;
|
|
31942
31954
|
|
|
31943
31955
|
/***/ }),
|
|
31944
31956
|
|
|
31945
|
-
/***/
|
|
31957
|
+
/***/ 578:
|
|
31946
31958
|
/***/ ((module) => {
|
|
31947
31959
|
|
|
31948
31960
|
"use strict";
|
|
31949
|
-
module.exports =
|
|
31961
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__578__;
|
|
31950
31962
|
|
|
31951
31963
|
/***/ }),
|
|
31952
31964
|
|
|
31953
|
-
/***/
|
|
31965
|
+
/***/ 4466:
|
|
31954
31966
|
/***/ ((module) => {
|
|
31955
31967
|
|
|
31956
31968
|
"use strict";
|
|
31957
|
-
module.exports =
|
|
31969
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__4466__;
|
|
31958
31970
|
|
|
31959
31971
|
/***/ }),
|
|
31960
31972
|
|
|
@@ -34277,112 +34289,40 @@ var __webpack_exports__ = {};
|
|
|
34277
34289
|
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
|
34278
34290
|
(() => {
|
|
34279
34291
|
"use strict";
|
|
34280
|
-
// ESM COMPAT FLAG
|
|
34281
34292
|
__webpack_require__.r(__webpack_exports__);
|
|
34282
|
-
|
|
34283
|
-
|
|
34284
|
-
|
|
34285
|
-
|
|
34286
|
-
|
|
34287
|
-
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
34291
|
-
|
|
34292
|
-
|
|
34293
|
-
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
|
|
34302
|
-
|
|
34303
|
-
var
|
|
34304
|
-
var
|
|
34305
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/slicedToArray.js
|
|
34306
|
-
var slicedToArray = __webpack_require__(7424);
|
|
34307
|
-
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
34308
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js
|
|
34309
|
-
var defineProperty = __webpack_require__(8416);
|
|
34310
|
-
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty);
|
|
34311
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/classCallCheck.js
|
|
34312
|
-
var classCallCheck = __webpack_require__(6690);
|
|
34313
|
-
var classCallCheck_default = /*#__PURE__*/__webpack_require__.n(classCallCheck);
|
|
34314
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/createClass.js
|
|
34315
|
-
var createClass = __webpack_require__(9728);
|
|
34316
|
-
var createClass_default = /*#__PURE__*/__webpack_require__.n(createClass);
|
|
34317
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/inherits.js
|
|
34318
|
-
var inherits = __webpack_require__(1655);
|
|
34319
|
-
var inherits_default = /*#__PURE__*/__webpack_require__.n(inherits);
|
|
34320
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
|
|
34321
|
-
var possibleConstructorReturn = __webpack_require__(4993);
|
|
34322
|
-
var possibleConstructorReturn_default = /*#__PURE__*/__webpack_require__.n(possibleConstructorReturn);
|
|
34323
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/getPrototypeOf.js
|
|
34324
|
-
var getPrototypeOf = __webpack_require__(3808);
|
|
34325
|
-
var getPrototypeOf_default = /*#__PURE__*/__webpack_require__.n(getPrototypeOf);
|
|
34326
|
-
// EXTERNAL MODULE: external {"amd":"react","commonjs":"react","commonjs2":"react","root":"React","umd":"react"}
|
|
34327
|
-
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_ = __webpack_require__(3634);
|
|
34328
|
-
var external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default = /*#__PURE__*/__webpack_require__.n(external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_);
|
|
34329
|
-
;// CONCATENATED MODULE: ./lib/ErrorBoundary.js
|
|
34330
|
-
|
|
34331
|
-
|
|
34332
|
-
|
|
34333
|
-
|
|
34334
|
-
|
|
34335
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf_default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = getPrototypeOf_default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn_default()(this, result); }; }
|
|
34336
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
34337
|
-
|
|
34338
|
-
var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
34339
|
-
inherits_default()(ErrorBoundary, _React$Component);
|
|
34340
|
-
var _super = _createSuper(ErrorBoundary);
|
|
34341
|
-
function ErrorBoundary(props) {
|
|
34342
|
-
var _this;
|
|
34343
|
-
classCallCheck_default()(this, ErrorBoundary);
|
|
34344
|
-
_this = _super.call(this, props);
|
|
34345
|
-
_this.state = {
|
|
34346
|
-
hasError: false
|
|
34347
|
-
};
|
|
34348
|
-
return _this;
|
|
34349
|
-
}
|
|
34350
|
-
createClass_default()(ErrorBoundary, [{
|
|
34351
|
-
key: "render",
|
|
34352
|
-
value: function render() {
|
|
34353
|
-
if (this.state.hasError) {
|
|
34354
|
-
return null;
|
|
34355
|
-
}
|
|
34356
|
-
|
|
34357
|
-
// eslint-disable-next-line react/prop-types
|
|
34358
|
-
return this.props.children;
|
|
34359
|
-
}
|
|
34360
|
-
}], [{
|
|
34361
|
-
key: "getDerivedStateFromError",
|
|
34362
|
-
value: function getDerivedStateFromError(error) {
|
|
34363
|
-
// eslint-disable-next-line no-console
|
|
34364
|
-
console.error(error);
|
|
34365
|
-
return {
|
|
34366
|
-
hasError: true
|
|
34367
|
-
};
|
|
34368
|
-
}
|
|
34369
|
-
}]);
|
|
34370
|
-
return ErrorBoundary;
|
|
34371
|
-
}((external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()).Component);
|
|
34372
|
-
|
|
34373
|
-
;// CONCATENATED MODULE: ./index.jsx
|
|
34293
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34294
|
+
/* harmony export */ "Components": () => (/* binding */ Components),
|
|
34295
|
+
/* harmony export */ "astToPlainText": () => (/* binding */ astToPlainText),
|
|
34296
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
34297
|
+
/* harmony export */ "hast": () => (/* binding */ hast),
|
|
34298
|
+
/* harmony export */ "html": () => (/* binding */ html),
|
|
34299
|
+
/* harmony export */ "htmlProcessor": () => (/* binding */ htmlProcessor),
|
|
34300
|
+
/* harmony export */ "md": () => (/* binding */ md),
|
|
34301
|
+
/* harmony export */ "mdast": () => (/* binding */ mdast),
|
|
34302
|
+
/* harmony export */ "plain": () => (/* binding */ plain),
|
|
34303
|
+
/* harmony export */ "processor": () => (/* binding */ processor),
|
|
34304
|
+
/* harmony export */ "react": () => (/* binding */ react),
|
|
34305
|
+
/* harmony export */ "reactProcessor": () => (/* binding */ reactProcessor),
|
|
34306
|
+
/* harmony export */ "reactTOC": () => (/* binding */ reactTOC),
|
|
34307
|
+
/* harmony export */ "setup": () => (/* binding */ setup),
|
|
34308
|
+
/* harmony export */ "utils": () => (/* binding */ utils)
|
|
34309
|
+
/* harmony export */ });
|
|
34310
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(861);
|
|
34311
|
+
/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
|
|
34312
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7424);
|
|
34313
|
+
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
|
|
34314
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8416);
|
|
34315
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
|
|
34374
34316
|
|
|
34375
34317
|
|
|
34376
34318
|
|
|
34377
34319
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
34378
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
34320
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
34379
34321
|
/* eslint-disable no-param-reassign */
|
|
34380
|
-
|
|
34381
34322
|
__webpack_require__(2787);
|
|
34382
|
-
var
|
|
34383
|
-
var Variable = __webpack_require__(1882);
|
|
34323
|
+
var Variable = __webpack_require__(3689);
|
|
34384
34324
|
var generateTOC = __webpack_require__(3263);
|
|
34385
|
-
var React = __webpack_require__(
|
|
34325
|
+
var React = __webpack_require__(4466);
|
|
34386
34326
|
var rehypeRaw = __webpack_require__(6388);
|
|
34387
34327
|
var rehypeReact = __webpack_require__(7431);
|
|
34388
34328
|
var rehypeSanitize = __webpack_require__(1667);
|
|
@@ -34390,7 +34330,6 @@ var rehypeStringify = __webpack_require__(7532);
|
|
|
34390
34330
|
var remarkBreaks = __webpack_require__(2558);
|
|
34391
34331
|
var remarkDisableTokenizers = __webpack_require__(9168);
|
|
34392
34332
|
var remarkFrontmatter = __webpack_require__(5941);
|
|
34393
|
-
var remarkMdx = __webpack_require__(281);
|
|
34394
34333
|
var remarkParse = __webpack_require__(2861);
|
|
34395
34334
|
var remarkRehype = __webpack_require__(8818);
|
|
34396
34335
|
var remarkSlug = __webpack_require__(4490);
|
|
@@ -34404,6 +34343,7 @@ var Components = __webpack_require__(3354);
|
|
|
34404
34343
|
var _require3 = __webpack_require__(8447),
|
|
34405
34344
|
getHref = _require3.getHref;
|
|
34406
34345
|
var BaseUrlContext = __webpack_require__(6785);
|
|
34346
|
+
var createElement = __webpack_require__(5894);
|
|
34407
34347
|
var CustomParsers = Object.values(__webpack_require__(8521));
|
|
34408
34348
|
var customCompilers = Object.values(__webpack_require__(9647));
|
|
34409
34349
|
var registerCustomComponents = __webpack_require__(1264);
|
|
@@ -34415,20 +34355,21 @@ var _require5 = __webpack_require__(8160),
|
|
|
34415
34355
|
var toPlainText = __webpack_require__(4792);
|
|
34416
34356
|
var sectionAnchorId = __webpack_require__(9620);
|
|
34417
34357
|
var tableFlattening = __webpack_require__(4625);
|
|
34418
|
-
var
|
|
34358
|
+
var _require6 = __webpack_require__(2442),
|
|
34359
|
+
remarkTransformers = _require6.remarkTransformers,
|
|
34360
|
+
rehypeTransformers = _require6.rehypeTransformers;
|
|
34419
34361
|
var createSchema = __webpack_require__(8229);
|
|
34420
|
-
var
|
|
34421
|
-
Callout = Components.Callout,
|
|
34362
|
+
var GlossaryItem = Components.GlossaryItem,
|
|
34422
34363
|
Code = Components.Code,
|
|
34364
|
+
Table = Components.Table,
|
|
34365
|
+
Anchor = Components.Anchor,
|
|
34366
|
+
Heading = Components.Heading,
|
|
34367
|
+
Callout = Components.Callout,
|
|
34423
34368
|
CodeTabs = Components.CodeTabs,
|
|
34424
|
-
|
|
34369
|
+
Image = Components.Image,
|
|
34425
34370
|
Embed = Components.Embed,
|
|
34426
|
-
GlossaryItem = Components.GlossaryItem,
|
|
34427
34371
|
HTMLBlock = Components.HTMLBlock,
|
|
34428
|
-
Heading = Components.Heading,
|
|
34429
|
-
Image = Components.Image,
|
|
34430
34372
|
Style = Components.Style,
|
|
34431
|
-
Table = Components.Table,
|
|
34432
34373
|
TableOfContents = Components.TableOfContents;
|
|
34433
34374
|
|
|
34434
34375
|
|
|
@@ -34468,25 +34409,27 @@ var utils = {
|
|
|
34468
34409
|
* Core markdown to mdast processor
|
|
34469
34410
|
*/
|
|
34470
34411
|
function processor() {
|
|
34412
|
+
var _unified$use$use$data;
|
|
34471
34413
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34472
34414
|
var _setup = setup('', opts);
|
|
34473
|
-
var _setup2 =
|
|
34415
|
+
var _setup2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup, 2);
|
|
34474
34416
|
opts = _setup2[1];
|
|
34475
34417
|
var _opts = opts,
|
|
34476
34418
|
sanitize = _opts.sanitize;
|
|
34477
|
-
return unified().use(remarkParse, opts.markdownOptions).use(
|
|
34419
|
+
return (_unified$use$use$data = unified().use(remarkParse, opts.markdownOptions).use(remarkFrontmatter, ['yaml', 'toml']).data('settings', opts.settings).data('compatibilityMode', opts.compatibilityMode).data('alwaysThrow', opts.alwaysThrow).use(!opts.correctnewlines ? remarkBreaks : function () {}).use(CustomParsers.map(function (parser) {
|
|
34478
34420
|
var _parser$sanitize;
|
|
34479
34421
|
return ((_parser$sanitize = parser.sanitize) === null || _parser$sanitize === void 0 ? void 0 : _parser$sanitize.call(parser, sanitize)) || parser;
|
|
34480
|
-
})).use(
|
|
34422
|
+
}))).use.apply(_unified$use$use$data, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(remarkTransformers)).use(remarkSlug).use(remarkDisableTokenizers, opts.disableTokenizers);
|
|
34481
34423
|
}
|
|
34482
34424
|
|
|
34483
34425
|
/**
|
|
34484
34426
|
* Full markdown to html processor
|
|
34485
34427
|
*/
|
|
34486
34428
|
function htmlProcessor() {
|
|
34429
|
+
var _processor$use$use$us;
|
|
34487
34430
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34488
34431
|
var _setup3 = setup('', opts);
|
|
34489
|
-
var _setup4 =
|
|
34432
|
+
var _setup4 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup3, 2);
|
|
34490
34433
|
opts = _setup4[1];
|
|
34491
34434
|
var _opts2 = opts,
|
|
34492
34435
|
sanitize = _opts2.sanitize;
|
|
@@ -34509,16 +34452,16 @@ function htmlProcessor() {
|
|
|
34509
34452
|
* - sanitize and remove any disallowed attributes
|
|
34510
34453
|
* - output the hast to a React vdom with our custom components
|
|
34511
34454
|
*/
|
|
34512
|
-
return processor(opts).use(remarkRehype, {
|
|
34455
|
+
return (_processor$use$use$us = processor(opts).use(remarkRehype, {
|
|
34513
34456
|
allowDangerousHtml: true
|
|
34514
|
-
}).use(rehypeRaw).use(rehypeSanitize, sanitize);
|
|
34457
|
+
}).use(rehypeRaw).use(rehypeSanitize, sanitize)).use.apply(_processor$use$use$us, _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(rehypeTransformers));
|
|
34515
34458
|
}
|
|
34516
34459
|
function plain(text) {
|
|
34517
34460
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34518
34461
|
var components = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
34519
34462
|
if (!text) return null;
|
|
34520
34463
|
var _setup5 = setup(text, opts);
|
|
34521
|
-
var _setup6 =
|
|
34464
|
+
var _setup6 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup5, 2);
|
|
34522
34465
|
text = _setup6[0];
|
|
34523
34466
|
opts = _setup6[1];
|
|
34524
34467
|
var proc = htmlProcessor(opts).use(rehypeReact, {
|
|
@@ -34540,41 +34483,37 @@ var PinWrap = function PinWrap(_ref) {
|
|
|
34540
34483
|
}, children);
|
|
34541
34484
|
}; // @todo: move this to it's own component
|
|
34542
34485
|
|
|
34543
|
-
var reactComponents = function reactComponents(opts) {
|
|
34544
|
-
var components = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34545
|
-
return _objectSpread({
|
|
34546
|
-
'html-block': HTMLBlock(opts),
|
|
34547
|
-
'rdme-callout': Callout,
|
|
34548
|
-
'readme-variable': Variable,
|
|
34549
|
-
'readme-glossary-item': GlossaryItem,
|
|
34550
|
-
'rdme-embed': Embed(opts),
|
|
34551
|
-
'rdme-pin': PinWrap,
|
|
34552
|
-
table: Table,
|
|
34553
|
-
a: Anchor,
|
|
34554
|
-
h1: Heading(1, opts),
|
|
34555
|
-
h2: Heading(2, opts),
|
|
34556
|
-
h3: Heading(3, opts),
|
|
34557
|
-
h4: Heading(4, opts),
|
|
34558
|
-
h5: Heading(5, opts),
|
|
34559
|
-
h6: Heading(6, opts),
|
|
34560
|
-
code: Code(opts),
|
|
34561
|
-
img: Image(opts),
|
|
34562
|
-
style: Style(opts),
|
|
34563
|
-
div: Div({
|
|
34564
|
-
'code-tabs': CodeTabs(opts)
|
|
34565
|
-
}, opts)
|
|
34566
|
-
}, registerCustomComponents(components, opts.sanitize, opts.customComponentPrefix));
|
|
34567
|
-
};
|
|
34568
34486
|
function reactProcessor() {
|
|
34569
34487
|
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
34570
34488
|
var components = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34571
34489
|
var _setup7 = setup('', opts);
|
|
34572
|
-
var _setup8 =
|
|
34490
|
+
var _setup8 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup7, 2);
|
|
34573
34491
|
opts = _setup8[1];
|
|
34492
|
+
var _opts3 = opts,
|
|
34493
|
+
sanitize = _opts3.sanitize;
|
|
34574
34494
|
return htmlProcessor(_objectSpread({}, opts)).use(sectionAnchorId).use(rehypeReact, {
|
|
34575
|
-
createElement:
|
|
34495
|
+
createElement: createElement(opts),
|
|
34576
34496
|
Fragment: React.Fragment,
|
|
34577
|
-
components:
|
|
34497
|
+
components: _objectSpread({
|
|
34498
|
+
'code-tabs': CodeTabs(opts),
|
|
34499
|
+
'html-block': HTMLBlock(opts),
|
|
34500
|
+
'rdme-callout': Callout,
|
|
34501
|
+
'readme-variable': Variable,
|
|
34502
|
+
'readme-glossary-item': GlossaryItem,
|
|
34503
|
+
'rdme-embed': Embed(opts),
|
|
34504
|
+
'rdme-pin': PinWrap,
|
|
34505
|
+
table: Table,
|
|
34506
|
+
a: Anchor,
|
|
34507
|
+
h1: Heading(1, opts),
|
|
34508
|
+
h2: Heading(2, opts),
|
|
34509
|
+
h3: Heading(3, opts),
|
|
34510
|
+
h4: Heading(4, opts),
|
|
34511
|
+
h5: Heading(5, opts),
|
|
34512
|
+
h6: Heading(6, opts),
|
|
34513
|
+
code: Code(opts),
|
|
34514
|
+
img: Image(opts),
|
|
34515
|
+
style: Style(opts)
|
|
34516
|
+
}, registerCustomComponents(components, sanitize, opts.customComponentPrefix))
|
|
34578
34517
|
});
|
|
34579
34518
|
}
|
|
34580
34519
|
function react(content) {
|
|
@@ -34582,29 +34521,14 @@ function react(content) {
|
|
|
34582
34521
|
var components = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
34583
34522
|
if (!content) return null;else if (typeof content === 'string') {
|
|
34584
34523
|
var _setup9 = setup(content, opts);
|
|
34585
|
-
var _setup10 =
|
|
34524
|
+
var _setup10 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup9, 2);
|
|
34586
34525
|
content = _setup10[0];
|
|
34587
34526
|
opts = _setup10[1];
|
|
34588
34527
|
} else {
|
|
34589
34528
|
var _setup11 = setup('', opts);
|
|
34590
|
-
var _setup12 =
|
|
34529
|
+
var _setup12 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup11, 2);
|
|
34591
34530
|
opts = _setup12[1];
|
|
34592
34531
|
}
|
|
34593
|
-
|
|
34594
|
-
// mdx
|
|
34595
|
-
if (opts.mdx) {
|
|
34596
|
-
var remarkPlugins = [[remarkFrontmatter, ['yaml', 'toml']], !opts.correctnewlines ? remarkBreaks : function () {}].concat(toConsumableArray_default()(CustomParsers.map(function (parser) {
|
|
34597
|
-
var _parser$sanitize2;
|
|
34598
|
-
return ((_parser$sanitize2 = parser.sanitize) === null || _parser$sanitize2 === void 0 ? void 0 : _parser$sanitize2.call(parser, opts.sanitize)) || parser;
|
|
34599
|
-
})), transformers, [remarkSlug, [remarkDisableTokenizers, opts.disableTokenizers]]);
|
|
34600
|
-
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
34601
|
-
key: content
|
|
34602
|
-
}, /*#__PURE__*/React.createElement(Mdx, {
|
|
34603
|
-
components: reactComponents(opts, components),
|
|
34604
|
-
rehypePlugins: [sectionAnchorId],
|
|
34605
|
-
remarkPlugins: remarkPlugins
|
|
34606
|
-
}, content));
|
|
34607
|
-
}
|
|
34608
34532
|
var proc = reactProcessor(opts, components);
|
|
34609
34533
|
if (typeof content === 'string') content = proc.parse(content);
|
|
34610
34534
|
return proc.stringify(proc.runSync(content));
|
|
@@ -34613,7 +34537,7 @@ function reactTOC(tree) {
|
|
|
34613
34537
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34614
34538
|
if (!tree) return null;
|
|
34615
34539
|
var _setup13 = setup('', opts);
|
|
34616
|
-
var _setup14 =
|
|
34540
|
+
var _setup14 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup13, 2);
|
|
34617
34541
|
opts = _setup14[1];
|
|
34618
34542
|
var proc = htmlProcessor(opts).use(rehypeReact, {
|
|
34619
34543
|
createElement: React.createElement,
|
|
@@ -34647,7 +34571,7 @@ function html(text) {
|
|
|
34647
34571
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34648
34572
|
if (!text) return null;
|
|
34649
34573
|
var _setup15 = setup(text, opts);
|
|
34650
|
-
var _setup16 =
|
|
34574
|
+
var _setup16 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup15, 2);
|
|
34651
34575
|
text = _setup16[0];
|
|
34652
34576
|
opts = _setup16[1];
|
|
34653
34577
|
return htmlProcessor(opts).use(rehypeStringify).processSync(text).contents;
|
|
@@ -34660,7 +34584,7 @@ function hast(text) {
|
|
|
34660
34584
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34661
34585
|
if (!text) return null;
|
|
34662
34586
|
var _setup17 = setup(text, opts);
|
|
34663
|
-
var _setup18 =
|
|
34587
|
+
var _setup18 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup17, 2);
|
|
34664
34588
|
text = _setup18[0];
|
|
34665
34589
|
opts = _setup18[1];
|
|
34666
34590
|
var rdmd = htmlProcessor(opts).use(tableFlattening);
|
|
@@ -34675,7 +34599,7 @@ function mdast(text) {
|
|
|
34675
34599
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34676
34600
|
if (!text) return null;
|
|
34677
34601
|
var _setup19 = setup(text, opts);
|
|
34678
|
-
var _setup20 =
|
|
34602
|
+
var _setup20 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup19, 2);
|
|
34679
34603
|
text = _setup20[0];
|
|
34680
34604
|
opts = _setup20[1];
|
|
34681
34605
|
var rdmd = processor(opts);
|
|
@@ -34689,7 +34613,7 @@ function astToPlainText(node) {
|
|
|
34689
34613
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34690
34614
|
if (!node) return '';
|
|
34691
34615
|
var _setup21 = setup('', opts);
|
|
34692
|
-
var _setup22 =
|
|
34616
|
+
var _setup22 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup21, 2);
|
|
34693
34617
|
opts = _setup22[1];
|
|
34694
34618
|
return processor(opts).use(toPlainText).stringify(node);
|
|
34695
34619
|
}
|
|
@@ -34701,7 +34625,7 @@ function md(tree) {
|
|
|
34701
34625
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34702
34626
|
if (!tree) return null;
|
|
34703
34627
|
var _setup23 = setup('', opts);
|
|
34704
|
-
var _setup24 =
|
|
34628
|
+
var _setup24 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_setup23, 2);
|
|
34705
34629
|
opts = _setup24[1];
|
|
34706
34630
|
return processor(opts).use(remarkStringify, opts.markdownOptions).use(customCompilers).stringify(tree);
|
|
34707
34631
|
}
|
|
@@ -34709,9 +34633,10 @@ var ReadMeMarkdown = function ReadMeMarkdown(text) {
|
|
|
34709
34633
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
34710
34634
|
return react(text, opts);
|
|
34711
34635
|
};
|
|
34712
|
-
/* harmony default export */ const
|
|
34636
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ReadMeMarkdown);
|
|
34713
34637
|
})();
|
|
34714
34638
|
|
|
34715
|
-
|
|
34639
|
+
/******/ return __webpack_exports__;
|
|
34716
34640
|
/******/ })()
|
|
34717
|
-
;
|
|
34641
|
+
;
|
|
34642
|
+
});
|