acsi-core 0.2.1 → 0.2.3

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.
@@ -8,6 +8,13 @@ import { useDispatch, useSelector } from 'react-redux';
8
8
  import { Link } from 'react-router-dom';
9
9
  import { FormGroup, Input, Label, Modal, ModalHeader, ModalBody, ModalFooter, Tooltip, Row, Col, Button, Pagination, PaginationItem, PaginationLink } from 'reactstrap';
10
10
  import ReactSelect, { components } from 'react-select';
11
+ import ReactMarkdown from 'react-markdown';
12
+ import remarkMath from 'remark-math';
13
+ import remarkGfm from 'remark-gfm';
14
+ import rehypeKatex from 'rehype-katex';
15
+ import remarkRehype from 'remark-rehype';
16
+ import rehypeRaw from 'rehype-raw';
17
+ import 'katex/dist/katex.min.css';
11
18
  import Cookies from 'js-cookie';
12
19
  export { default as Cookies } from 'js-cookie';
13
20
  import moment from 'moment';
@@ -17,7 +24,7 @@ import { useGoogleLogout } from '@leecheuk/react-google-login';
17
24
  import { Box, Typography } from '@mui/material';
18
25
  import '@azure/msal-browser';
19
26
  import { Identify, identify, track, setUserId, reset as reset$1, init } from '@amplitude/analytics-browser';
20
- import { init as init$1 } from '@sentry/react';
27
+ import { init as init$1, replayIntegration } from '@sentry/react';
21
28
  import { FaCaretDown } from 'react-icons/fa';
22
29
  import CreatableSelect from 'react-select/creatable';
23
30
 
@@ -1075,6 +1082,22 @@ var CoreTooltip = function CoreTooltip(_ref) {
1075
1082
  }, content));
1076
1083
  };
1077
1084
 
1085
+ var _excluded$3 = ["node"];
1086
+ var MarkdownLatexRender = function MarkdownLatexRender(_ref) {
1087
+ var content = _ref.content;
1088
+ var updatedMarkdown = content.replace(/\\\(/g, "$$").replace(/\\\)/g, "$$").replace(/\\\[/g, "$$$$").replace(/\\\]\s*\./g, "$$$$").replace(/\\\]/g, "$$$$").replace(/<br\s*\/?>/g, "\n\n");
1089
+ return React.createElement("span", null, React.createElement(ReactMarkdown, {
1090
+ remarkPlugins: [remarkMath, remarkGfm, remarkRehype],
1091
+ rehypePlugins: [rehypeKatex, rehypeRaw],
1092
+ components: {
1093
+ p: function p(_ref2) {
1094
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
1095
+ return React.createElement("span", Object.assign({}, props));
1096
+ }
1097
+ }
1098
+ }, updatedMarkdown));
1099
+ };
1100
+
1078
1101
  var CookieService = /*#__PURE__*/function () {
1079
1102
  function CookieService() {}
1080
1103
  CookieService.setAuthCookie = function setAuthCookie(data) {
@@ -2598,7 +2621,10 @@ function initSentry(dsn, release) {
2598
2621
  dsn: dsn,
2599
2622
  tracesSampleRate: 1.0,
2600
2623
  release: release,
2601
- sendDefaultPii: true
2624
+ sendDefaultPii: true,
2625
+ integrations: [replayIntegration()],
2626
+ replaysSessionSampleRate: 0.1,
2627
+ replaysOnErrorSampleRate: 1.0
2602
2628
  });
2603
2629
  }
2604
2630
 
@@ -2667,7 +2693,7 @@ var CustomOption = function CustomOption(props) {
2667
2693
  }, props.data.label));
2668
2694
  };
2669
2695
 
2670
- var _excluded$3 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2696
+ var _excluded$4 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2671
2697
  var CustomSelect = function CustomSelect(_ref) {
2672
2698
  var isDefault = _ref.isDefault,
2673
2699
  options = _ref.options,
@@ -2675,7 +2701,7 @@ var CustomSelect = function CustomSelect(_ref) {
2675
2701
  scrollBottom = _ref.scrollBottom,
2676
2702
  value = _ref.value,
2677
2703
  isMulti = _ref.isMulti,
2678
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
2704
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2679
2705
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
2680
2706
  return value.includes(i.value);
2681
2707
  }) : isMulti ? options === null || options === void 0 ? void 0 : options.filter(function (i) {
@@ -2702,7 +2728,7 @@ var CustomSelect = function CustomSelect(_ref) {
2702
2728
  }, rest));
2703
2729
  };
2704
2730
 
2705
- var _excluded$4 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2731
+ var _excluded$5 = ["isDefault", "defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2706
2732
  var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
2707
2733
  var isDefault = _ref.isDefault,
2708
2734
  options = _ref.options,
@@ -2710,7 +2736,7 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
2710
2736
  scrollBottom = _ref.scrollBottom,
2711
2737
  value = _ref.value,
2712
2738
  isMulti = _ref.isMulti,
2713
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
2739
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2714
2740
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
2715
2741
  return value.includes(i.value);
2716
2742
  }) : isMulti ? options.filter(function (i) {
@@ -2737,14 +2763,14 @@ var CustomAsyncSelect = function CustomAsyncSelect(_ref) {
2737
2763
  }, rest));
2738
2764
  };
2739
2765
 
2740
- var _excluded$5 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2766
+ var _excluded$6 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2741
2767
  var CustomCreatable = function CustomCreatable(_ref) {
2742
2768
  var options = _ref.options,
2743
2769
  isDisabled = _ref.isDisabled,
2744
2770
  scrollBottom = _ref.scrollBottom,
2745
2771
  value = _ref.value,
2746
2772
  isMulti = _ref.isMulti,
2747
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$5);
2773
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
2748
2774
  var initialValues = Array.isArray(value) ? options.filter(function (i) {
2749
2775
  return value.includes(i.value);
2750
2776
  }) : isMulti ? options.filter(function (i) {
@@ -2771,7 +2797,7 @@ var CustomCreatable = function CustomCreatable(_ref) {
2771
2797
  }, rest));
2772
2798
  };
2773
2799
 
2774
- var _excluded$6 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2800
+ var _excluded$7 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti"];
2775
2801
  var CustomSelectOption = function CustomSelectOption(_ref) {
2776
2802
  var defaultValue = _ref.defaultValue,
2777
2803
  options = _ref.options,
@@ -2779,7 +2805,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
2779
2805
  scrollBottom = _ref.scrollBottom,
2780
2806
  value = _ref.value,
2781
2807
  isMulti = _ref.isMulti,
2782
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
2808
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
2783
2809
  var initialValues = defaultValue !== null && typeof defaultValue !== "undefined" ? options.find(function (option) {
2784
2810
  return option.value === defaultValue;
2785
2811
  }) || null : null;
@@ -2813,5 +2839,5 @@ var utcToLocalTime = (function (time, FORMAT) {
2813
2839
 
2814
2840
  var historyCore = createBrowserHistory();
2815
2841
 
2816
- export { ACCESS_TOKEN, AmplitudeEvent, BASE_URL, CommonDialog, ConfirmDialog, CoreButton, CoreInput$1 as CoreCheckbox, CoreError, CoreInput, CoreInputCompact, CoreModal, CoreRadio, CoreRange, CoreSearch, CoreSelect, CoreSelectCompact, CoreTextArea, CoreTitleInput, CoreTooltip, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_TIME_MIN_VALUE, LayoutContext, Loading, Login, NotFound, OPENSALT_BASE_URL, ORGANIZATION_TEAM, ORGANIZATION_TENANT, Role, api, apiUpload, firstCheckToken, getAccessToken, getErrorMessage, getImageUrl, historyCore, initSentry, initializeAmplitude, setAddTenant, setAlert, setIsRefetchSidebar, setLoading, setLoadingPage, setMenuCollapse, setTeam, setTenant, setUser, store, useAmplitude, useGoogleSignOut, utcToLocalTime };
2842
+ export { ACCESS_TOKEN, AmplitudeEvent, BASE_URL, CommonDialog, ConfirmDialog, CoreButton, CoreInput$1 as CoreCheckbox, CoreError, CoreInput, CoreInputCompact, CoreModal, CoreRadio, CoreRange, CoreSearch, CoreSelect, CoreSelectCompact, CoreTextArea, CoreTitleInput, CoreTooltip, CustomAsyncSelect, CustomCreatable, CustomPagination, CustomSelect, CustomSelectOption, DATE_TIME_MIN_VALUE, LayoutContext, Loading, Login, MarkdownLatexRender, NotFound, OPENSALT_BASE_URL, ORGANIZATION_TEAM, ORGANIZATION_TENANT, Role, api, apiUpload, firstCheckToken, getAccessToken, getErrorMessage, getImageUrl, historyCore, initSentry, initializeAmplitude, setAddTenant, setAlert, setIsRefetchSidebar, setLoading, setLoadingPage, setMenuCollapse, setTeam, setTenant, setUser, store, useAmplitude, useGoogleSignOut, utcToLocalTime };
2817
2843
  //# sourceMappingURL=index.modern.js.map