acsi-core 1.2.37 → 1.2.41
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 -2
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/redux/commons/action.d.ts +1 -0
- package/dist/utils/env.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const historyCore: import("history").History<unknown>;
|
|
2
|
-
import { setLoading, setAlert, setTenant, setAddTenant, setTeam, setUser, setMenuCollapse, setIsRefetchSidebar, setLoadingPage, setIsFirstCalendar } from "./redux/commons/action";
|
|
2
|
+
import { setLoading, setAlert, setTenant, setAddTenant, setTeam, setUser, setMenuCollapse, setIsRefetchSidebar, setLoadingPage, setIsFirstCalendar, setStandards } from "./redux/commons/action";
|
|
3
3
|
import { BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, OPENSALT_BASE_URL, ORGANIZATION_TEAM, ORGANIZATION_TENANT, TIMEZONE_ID } from "./utils/constants";
|
|
4
4
|
import Login from "./containers/Login/views/Login";
|
|
5
5
|
import store from "./store";
|
|
@@ -32,4 +32,4 @@ import getTimeZoneId from "./utils/getTimeZoneId";
|
|
|
32
32
|
import timeSpanToLocalMoment from "./utils/timeSpanToLocalMoment";
|
|
33
33
|
import timeSpanToUtc from "./utils/timeSpanToUtc";
|
|
34
34
|
import Cookies from "js-cookie";
|
|
35
|
-
export { setLoading, setLoadingPage, setIsFirstCalendar, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, ORGANIZATION_TEAM, ORGANIZATION_TENANT, TIMEZONE_ID, firstCheckToken, getImageUrl, Login, utcToLocalTime, timeSpanToUtc, getTimeZoneId, timeSpanToLocalMoment, getAccessToken, store, historyCore, setAlert, setUser, setTenant, setAddTenant, setTeam, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, Cookies, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, CoreTooltip, getErrorMessage, MarkdownLatexRender, RichContentRenderer, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider, useAmplitude, AmplitudeEvent, initializeAmplitude, initSentry };
|
|
35
|
+
export { setLoading, setLoadingPage, setIsFirstCalendar, setStandards, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, ORGANIZATION_TEAM, ORGANIZATION_TENANT, TIMEZONE_ID, firstCheckToken, getImageUrl, Login, utcToLocalTime, timeSpanToUtc, getTimeZoneId, timeSpanToLocalMoment, getAccessToken, store, historyCore, setAlert, setUser, setTenant, setAddTenant, setTeam, setMenuCollapse, setIsRefetchSidebar, Loading, NotFound, LayoutContext, api, apiUpload, ConfirmDialog, CommonDialog, ToastContainer, toast, Role, Cookies, CustomPagination, useGoogleSignOut, CoreButton, CoreInput, CoreSelect, CoreCheckbox, CoreRadio, CoreError, CoreModal, CoreRange, CoreTextArea, CoreSearch, CoreSelectCompact, CoreInputCompact, CoreTitleInput, CoreTooltip, getErrorMessage, MarkdownLatexRender, RichContentRenderer, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider, useAmplitude, AmplitudeEvent, initializeAmplitude, initSentry };
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,7 @@ var setTenant = toolkit.createAction("common/setTenant");
|
|
|
43
43
|
var setAddTenant = toolkit.createAction("common/setAddTenant");
|
|
44
44
|
var setTeam = toolkit.createAction("common/setTeam");
|
|
45
45
|
var setIsFirstCalendar = toolkit.createAction("common/setIsFirstCalendar");
|
|
46
|
+
var setStandards = toolkit.createAction("common/setStandards");
|
|
46
47
|
|
|
47
48
|
var REQUEST_ORIGIN = process.env.REACT_APP_REQUEST_ORIGIN || "";
|
|
48
49
|
var ADMIN_ORIGIN = process.env.REACT_APP_ADMIN_ORIGIN || "";
|
|
@@ -1729,10 +1730,6 @@ var apiUpload = axios.create({
|
|
|
1729
1730
|
if (imPersonate) {
|
|
1730
1731
|
config.headers.ImPersonate = imPersonate;
|
|
1731
1732
|
}
|
|
1732
|
-
var tenantId = config.externalTenantId || localStorage.getItem(ORGANIZATION_TENANT);
|
|
1733
|
-
if (tenantId) {
|
|
1734
|
-
config.headers["X-TenantID"] = tenantId;
|
|
1735
|
-
}
|
|
1736
1733
|
return config;
|
|
1737
1734
|
}, function (error) {
|
|
1738
1735
|
return Promise.reject(error);
|
|
@@ -2791,7 +2788,8 @@ var initialState = {
|
|
|
2791
2788
|
academy: null,
|
|
2792
2789
|
menuCollapse: false,
|
|
2793
2790
|
isRefetchSidebar: false,
|
|
2794
|
-
isFirstCalendar: false
|
|
2791
|
+
isFirstCalendar: false,
|
|
2792
|
+
standards: []
|
|
2795
2793
|
};
|
|
2796
2794
|
var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
2797
2795
|
builder.addCase(setLoading, function (state, action) {
|
|
@@ -2818,6 +2816,8 @@ var commonReducer = toolkit.createReducer(initialState, function (builder) {
|
|
|
2818
2816
|
state.user.currentTeamId = action.payload;
|
|
2819
2817
|
}).addCase(setIsFirstCalendar, function (state) {
|
|
2820
2818
|
state.isFirstCalendar = !state.isFirstCalendar;
|
|
2819
|
+
}).addCase(setStandards, function (state, action) {
|
|
2820
|
+
state.standards = action.payload;
|
|
2821
2821
|
});
|
|
2822
2822
|
});
|
|
2823
2823
|
|
|
@@ -3695,6 +3695,7 @@ exports.setIsRefetchSidebar = setIsRefetchSidebar;
|
|
|
3695
3695
|
exports.setLoading = setLoading;
|
|
3696
3696
|
exports.setLoadingPage = setLoadingPage;
|
|
3697
3697
|
exports.setMenuCollapse = setMenuCollapse;
|
|
3698
|
+
exports.setStandards = setStandards;
|
|
3698
3699
|
exports.setTeam = setTeam;
|
|
3699
3700
|
exports.setTenant = setTenant;
|
|
3700
3701
|
exports.setUser = setUser;
|