acsi-core 0.1.32 → 0.1.34
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.d.ts +2 -1
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -9
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { setLoading, setAlert, setTenant, setAddTenant, setTeam, setUser, setMen
|
|
|
3
3
|
import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, OPENSALT_BASE_URL } from "./utils/constants";
|
|
4
4
|
import Login from "./containers/Login/views/Login";
|
|
5
5
|
import store from "./store";
|
|
6
|
+
import getAccessToken from "./utils/getAccessToken";
|
|
6
7
|
import NotFound from "./components/Commons/NotFound";
|
|
7
8
|
import Loading from "./components/Loading/Loading";
|
|
8
9
|
import LayoutContext from "./layouts/LayoutContext";
|
|
@@ -20,4 +21,4 @@ import CustomSelect from "./components/Selects/CustomSelect";
|
|
|
20
21
|
import CustomAsyncSelect from "./components/Selects/CustomAsyncSelect";
|
|
21
22
|
import CustomCreatable from "./components/Selects/CustomCreatable";
|
|
22
23
|
import CustomSelectOption from "./components/Selects/CustomSelectOption";
|
|
23
|
-
export { setLoading, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, store, historyCore, setAlert, setUser, setTenant, setAddTenant, setTeam, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider };
|
|
24
|
+
export { setLoading, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, Login, getAccessToken, store, historyCore, setAlert, setUser, setTenant, setAddTenant, setTeam, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, getErrorMessage, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider };
|
package/dist/index.js
CHANGED
|
@@ -595,6 +595,14 @@ var store = toolkit.configureStore({
|
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
|
|
598
|
+
var getAccessToken$1 = (function () {
|
|
599
|
+
try {
|
|
600
|
+
return localStorage.getItem(ACCESS_TOKEN);
|
|
601
|
+
} catch (err) {
|
|
602
|
+
return null;
|
|
603
|
+
}
|
|
604
|
+
});
|
|
605
|
+
|
|
598
606
|
var NotFound = function NotFound() {
|
|
599
607
|
return React__default.createElement("div", {
|
|
600
608
|
className: "not-found"
|
|
@@ -670,14 +678,6 @@ var encodeParams$1 = (function (params) {
|
|
|
670
678
|
}).join('&');
|
|
671
679
|
});
|
|
672
680
|
|
|
673
|
-
var getAccessToken$1 = (function () {
|
|
674
|
-
try {
|
|
675
|
-
return localStorage.getItem(ACCESS_TOKEN);
|
|
676
|
-
} catch (err) {
|
|
677
|
-
return null;
|
|
678
|
-
}
|
|
679
|
-
});
|
|
680
|
-
|
|
681
681
|
var api$1 = axios.create({
|
|
682
682
|
baseURL: BASE_URL,
|
|
683
683
|
timeout: 0,
|
|
@@ -2098,6 +2098,7 @@ exports.NotFound = NotFound;
|
|
|
2098
2098
|
exports.OPENSALT_BASE_URL = OPENSALT_BASE_URL;
|
|
2099
2099
|
exports.api = api$1;
|
|
2100
2100
|
exports.apiUpload = apiUpload$1;
|
|
2101
|
+
exports.getAccessToken = getAccessToken$1;
|
|
2101
2102
|
exports.getErrorMessage = getErrorMessage;
|
|
2102
2103
|
exports.historyCore = historyCore;
|
|
2103
2104
|
exports.setAddTenant = setAddTenant;
|