acsi-core 0.9.16 → 0.9.18
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 +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/timeSpanToLocalMoment.d.ts +3 -0
- package/package.json +1 -1
- package/dist/components/UpdateNotifier.d.ts +0 -3
- package/dist/configs/api.d.ts +0 -3
- package/dist/configs/api_removed.d.ts +0 -3
- package/dist/utils/configLoader.d.ts +0 -2
- package/dist/utils/hooks/useServiceWorker.d.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -28,5 +28,6 @@ import CustomAsyncSelect from "./components/Selects/CustomAsyncSelect";
|
|
|
28
28
|
import CustomCreatable from "./components/Selects/CustomCreatable";
|
|
29
29
|
import CustomSelectOption from "./components/Selects/CustomSelectOption";
|
|
30
30
|
import utcToLocalTime from "./utils/utcToLocalTime";
|
|
31
|
+
import timeSpanToLocalMoment from "./utils/timeSpanToLocalMoment";
|
|
31
32
|
import Cookies from "js-cookie";
|
|
32
|
-
export { setLoading, setLoadingPage, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, ORGANIZATION_TEAM, ORGANIZATION_TENANT, firstCheckToken, getImageUrl, Login, utcToLocalTime, 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, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider, useAmplitude, AmplitudeEvent, initializeAmplitude, initSentry };
|
|
33
|
+
export { setLoading, setLoadingPage, BASE_URL, OPENSALT_BASE_URL, ACCESS_TOKEN, DATE_TIME_MIN_VALUE, ORGANIZATION_TEAM, ORGANIZATION_TENANT, firstCheckToken, getImageUrl, Login, utcToLocalTime, 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, CustomSelect, CustomAsyncSelect, CustomCreatable, CustomSelectOption, GoogleOAuthProvider, useAmplitude, AmplitudeEvent, initializeAmplitude, initSentry };
|
package/dist/index.js
CHANGED
|
@@ -3906,6 +3906,16 @@ var utcToLocalTime = (function (time, FORMAT) {
|
|
|
3906
3906
|
}
|
|
3907
3907
|
});
|
|
3908
3908
|
|
|
3909
|
+
var timeSpanToLocalMoment = (function (time) {
|
|
3910
|
+
if (!time) return null;
|
|
3911
|
+
var times = time.split(":");
|
|
3912
|
+
if (times.length !== 3) return null;
|
|
3913
|
+
var totalSeconds = +times[0] * 60 * 60 + +times[1] * 60 + +times[2];
|
|
3914
|
+
var startOfDay = moment.utc().startOf("day");
|
|
3915
|
+
var dateTime = startOfDay.add(totalSeconds, "seconds");
|
|
3916
|
+
return dateTime.local();
|
|
3917
|
+
});
|
|
3918
|
+
|
|
3909
3919
|
var historyCore = createBrowserHistory();
|
|
3910
3920
|
|
|
3911
3921
|
Object.defineProperty(exports, 'GoogleOAuthProvider', {
|
|
@@ -3978,6 +3988,7 @@ exports.setTeam = setTeam;
|
|
|
3978
3988
|
exports.setTenant = setTenant;
|
|
3979
3989
|
exports.setUser = setUser;
|
|
3980
3990
|
exports.store = store;
|
|
3991
|
+
exports.timeSpanToLocalMoment = timeSpanToLocalMoment;
|
|
3981
3992
|
exports.useAmplitude = useAmplitude;
|
|
3982
3993
|
exports.useGoogleSignOut = useGoogleSignOut;
|
|
3983
3994
|
exports.utcToLocalTime = utcToLocalTime;
|