acsi-core 0.9.9 → 0.9.10
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/dist/index.js +19 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +19 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8,8 +8,10 @@ import { Link } from 'react-router-dom';
|
|
|
8
8
|
import { FormGroup, Input, Label, Modal, ModalHeader, ModalBody, ModalFooter, Tooltip, Row, Col, Button, Pagination, PaginationItem, PaginationLink } from 'reactstrap';
|
|
9
9
|
import ReactSelect, { components } from 'react-select';
|
|
10
10
|
import ReactMarkdown from 'react-markdown';
|
|
11
|
+
import remarkGfm from 'remark-gfm';
|
|
11
12
|
import remarkMath from 'remark-math';
|
|
12
13
|
import rehypeKatex from 'rehype-katex';
|
|
14
|
+
import remarkRehype from 'remark-rehype';
|
|
13
15
|
import rehypeRaw from 'rehype-raw';
|
|
14
16
|
import 'katex/dist/katex.min.css';
|
|
15
17
|
import Cookies from 'js-cookie';
|
|
@@ -2073,12 +2075,19 @@ var LatexExtractor = /*#__PURE__*/function () {
|
|
|
2073
2075
|
LatexExtractor.LATEX_COMMANDS = ['\\frac', '\\sqrt', '\\sum', '\\prod', '\\int', '\\oint', '\\lim', '\\sin', '\\cos', '\\tan', '\\log', '\\ln', '\\exp', '\\alpha', '\\beta', '\\gamma', '\\delta', '\\epsilon', '\\varepsilon', '\\zeta', '\\eta', '\\theta', '\\vartheta', '\\iota', '\\kappa', '\\lambda', '\\mu', '\\nu', '\\xi', '\\pi', '\\varpi', '\\rho', '\\varrho', '\\sigma', '\\varsigma', '\\tau', "\\upsilon", '\\phi', '\\varphi', '\\chi', '\\psi', '\\omega', '\\Gamma', '\\Delta', '\\Theta', '\\Lambda', '\\Xi', '\\Pi', '\\Sigma', "\\Upsilon", '\\Phi', '\\Psi', '\\Omega', '\\to', '\\gets', '\\mapsto', '\\implies', '\\iff', '\\leftrightarrow', '\\longleftarrow', '\\longrightarrow', '\\longleftrightarrow', '\\Leftarrow', '\\Rightarrow', '\\Leftrightarrow', '\\le', '\\ge', '\\leq', '\\geq', '\\lt', '\\gt', '\\neq', '\\approx', '\\equiv', '\\sim', '\\cong', '\\leqslant', '\\geqslant', '\\parallel', '\\perp', '\\in', '\\notin', '\\subset', '\\subseteq', '\\cup', '\\cap', '\\emptyset', '\\forall', '\\exists', '\\nexists', '\\wedge', '\\vee', '\\neg', '\\partial', '\\nabla', '\\infty', '\\pm', '\\mp', '\\vec', '\\overrightarrow', "\\underrightarrow", '\\overline', "\\underline", '\\widehat', '\\widetilde', '\\overbrace', "\\underbrace", '\\mathbb', '\\mathrm', '\\mathcal', '\\mathfrak', '\\mathscr', '\\text', '\\textbf', '\\textit', '\\left', '\\right', '\\lfloor', '\\rfloor', '\\lceil', '\\rceil', '\\langle', '\\rangle', '\\cdot', '\\times', '\\div', '\\parallel', '\\angle', '\\bot', '\\newline', '\\ldots', '\\cdots', '\\vdots', '\\ddots'];
|
|
2074
2076
|
LatexExtractor.LATEX_PATTERNS = [/[a-zA-Z0-9]_\{[^}]*\}/g, /[a-zA-Z0-9]\^\{[^}]*\}/g, /\\[a-zA-Z]+\s*\{[^}]*\}(?:\s*\{[^}]*\})*/g, /\\[a-zA-Z]+(?![a-zA-Z])/g, /\\frac\s*\{[^}]*\}\s*\{[^}]*\}/g, /\\sqrt(?:\[[^\]]*\])?\s*\{[^}]*\}/g, /\\vec\s*\{[^}]*\}/g, /\\(?:alpha|beta|gamma|delta|epsilon|varepsilon|zeta|eta|theta|vartheta|iota|kappa|lambda|mu|nu|xi|pi|varpi|rho|varrho|sigma|varsigma|tau|upsilon|phi|varphi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?![a-zA-Z])/g, /[a-zA-Z0-9_{}\\]+\s*=\s*[a-zA-Z0-9_{}\\+\-*/^().\s]+/g, /\\Delta\s*[a-zA-Z]/g, /[a-zA-Z]+_\{[a-zA-Z0-9]+\}/g, /[a-zA-Z0-9_{}\\]+\s*[+\-*/]\s*[a-zA-Z0-9_{}\\().\s]+/g, /,\s*([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^]\s*[a-zA-Z0-9_{}\\().\s]*)*)/g, /([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^]\s*[a-zA-Z0-9_{}\\().\s]*)*)\s*,/g, /\bto\s+([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^~≈]\s*[a-zA-Z0-9_{}\\().\s]*)*)/g, /([a-zA-Z0-9_{}\\]+(?:\s*[=+\-*/^~≈]\s*[a-zA-Z0-9_{}\\().\s]*)*)\s+to\b/g];
|
|
2075
2077
|
|
|
2078
|
+
var _excluded$3 = ["node"];
|
|
2076
2079
|
var MarkdownRenderer = function MarkdownRenderer(_ref) {
|
|
2077
2080
|
var content = _ref.content;
|
|
2078
2081
|
var formattedContent = formatContent(content);
|
|
2079
2082
|
return React.createElement("span", null, React.createElement(ReactMarkdown, {
|
|
2080
|
-
remarkPlugins: [remarkMath],
|
|
2081
|
-
rehypePlugins: [rehypeKatex, rehypeRaw]
|
|
2083
|
+
remarkPlugins: [remarkMath, remarkGfm, remarkRehype],
|
|
2084
|
+
rehypePlugins: [rehypeKatex, rehypeRaw],
|
|
2085
|
+
components: {
|
|
2086
|
+
p: function p(_ref2) {
|
|
2087
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
|
|
2088
|
+
return React.createElement("span", Object.assign({}, props));
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2082
2091
|
}, formattedContent));
|
|
2083
2092
|
};
|
|
2084
2093
|
function formatContent(content) {
|
|
@@ -3724,7 +3733,7 @@ var CustomOption = function CustomOption(props) {
|
|
|
3724
3733
|
}, props.data.label));
|
|
3725
3734
|
};
|
|
3726
3735
|
|
|
3727
|
-
var _excluded$
|
|
3736
|
+
var _excluded$4 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
3728
3737
|
var CustomSelect = function CustomSelect(_ref) {
|
|
3729
3738
|
var isDefault = _ref.isDefault,
|
|
3730
3739
|
options = _ref.options,
|
|
@@ -3732,7 +3741,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
|
3732
3741
|
scrollBottom = _ref.scrollBottom,
|
|
3733
3742
|
value = _ref.value,
|
|
3734
3743
|
isMulti = _ref.isMulti,
|
|
3735
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3744
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3736
3745
|
var initialValues = Array.isArray(value) ? options.filter(function (i) {
|
|
3737
3746
|
return value.includes(i.value);
|
|
3738
3747
|
}) : isMulti ? options === null || options === void 0 ? void 0 : options.filter(function (i) {
|
|
@@ -3759,7 +3768,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
|
3759
3768
|
}, rest));
|
|
3760
3769
|
};
|
|
3761
3770
|
|
|
3762
|
-
var _excluded$
|
|
3771
|
+
var _excluded$5 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
3763
3772
|
var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
3764
3773
|
var isDefault = _ref.isDefault,
|
|
3765
3774
|
options = _ref.options,
|
|
@@ -3767,7 +3776,7 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
|
3767
3776
|
scrollBottom = _ref.scrollBottom,
|
|
3768
3777
|
value = _ref.value,
|
|
3769
3778
|
isMulti = _ref.isMulti,
|
|
3770
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3779
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
3771
3780
|
var initialValues = Array.isArray(value) ? options.filter(function (i) {
|
|
3772
3781
|
return value.includes(i.value);
|
|
3773
3782
|
}) : isMulti ? options.filter(function (i) {
|
|
@@ -3794,14 +3803,14 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
|
|
|
3794
3803
|
}, rest));
|
|
3795
3804
|
};
|
|
3796
3805
|
|
|
3797
|
-
var _excluded$
|
|
3806
|
+
var _excluded$6 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
3798
3807
|
var CustomCreatable = function CustomCreatable(_ref) {
|
|
3799
3808
|
var options = _ref.options,
|
|
3800
3809
|
isDisabled = _ref.isDisabled,
|
|
3801
3810
|
scrollBottom = _ref.scrollBottom,
|
|
3802
3811
|
value = _ref.value,
|
|
3803
3812
|
isMulti = _ref.isMulti,
|
|
3804
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3813
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
3805
3814
|
var initialValues = Array.isArray(value) ? options.filter(function (i) {
|
|
3806
3815
|
return value.includes(i.value);
|
|
3807
3816
|
}) : isMulti ? options.filter(function (i) {
|
|
@@ -3828,7 +3837,7 @@ var CustomCreatable = function CustomCreatable(_ref) {
|
|
|
3828
3837
|
}, rest));
|
|
3829
3838
|
};
|
|
3830
3839
|
|
|
3831
|
-
var _excluded$
|
|
3840
|
+
var _excluded$7 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
|
|
3832
3841
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
3833
3842
|
var defaultValue = _ref.defaultValue,
|
|
3834
3843
|
options = _ref.options,
|
|
@@ -3836,7 +3845,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
|
3836
3845
|
scrollBottom = _ref.scrollBottom,
|
|
3837
3846
|
value = _ref.value,
|
|
3838
3847
|
isMulti = _ref.isMulti,
|
|
3839
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3848
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3840
3849
|
var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
|
|
3841
3850
|
return option.value === defaultValue;
|
|
3842
3851
|
}) || null : null;
|