@northern.tech/store 0.36.0 → 0.36.2
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/actions.cjs.map +1 -1
- package/dist/actions.d.cts +123 -134
- package/dist/actions.d.ts +123 -134
- package/dist/actions.js.map +1 -1
- package/dist/api/general-api.cjs +1 -1
- package/dist/api/general-api.cjs.map +1 -1
- package/dist/api/general-api.d.cts +9 -10
- package/dist/api/general-api.d.ts +9 -10
- package/dist/api/general-api.js.map +1 -1
- package/dist/api/users-api.cjs +1 -1
- package/dist/api/users-api.cjs.map +1 -1
- package/dist/api/users-api.d.cts +1 -2
- package/dist/api/users-api.d.ts +1 -2
- package/dist/api/users-api.js.map +1 -1
- package/dist/appSlice/constants.cjs +0 -1
- package/dist/appSlice/constants.cjs.map +1 -1
- package/dist/appSlice/constants.d.cts +1 -1
- package/dist/appSlice/constants.d.ts +1 -1
- package/dist/appSlice/constants.js.map +1 -1
- package/dist/appSlice/index.cjs +2 -4
- package/dist/appSlice/index.cjs.map +1 -1
- package/dist/appSlice/index.d.cts +2 -2
- package/dist/appSlice/index.d.ts +2 -2
- package/dist/appSlice/index.js +2 -3
- package/dist/appSlice/index.js.map +1 -1
- package/dist/appSlice/mocks.cjs.map +1 -1
- package/dist/appSlice/mocks.d.cts +1 -1
- package/dist/appSlice/mocks.d.ts +1 -1
- package/dist/appSlice/mocks.js.map +1 -1
- package/dist/appSlice/selectors.cjs +2 -6
- package/dist/appSlice/selectors.cjs.map +1 -1
- package/dist/appSlice/selectors.d.cts +35 -128
- package/dist/appSlice/selectors.d.ts +35 -128
- package/dist/appSlice/selectors.js +2 -5
- package/dist/appSlice/selectors.js.map +1 -1
- package/dist/appSlice/thunks.cjs +0 -1
- package/dist/appSlice/thunks.d.cts +6 -31
- package/dist/appSlice/thunks.d.ts +6 -31
- package/dist/appSlice/thunks.js +2 -2
- package/dist/auth.cjs +1 -1
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/commonConstants.d.cts +1 -1
- package/dist/commonConstants.d.ts +1 -1
- package/dist/commonSelectors.cjs +1 -1
- package/dist/commonSelectors.cjs.map +1 -1
- package/dist/commonSelectors.d.cts +164 -166
- package/dist/commonSelectors.d.ts +164 -166
- package/dist/commonSelectors.js.map +1 -1
- package/dist/{constants-CIx3fnBv.d.cts → constants-6kYRTdox.d.cts} +1 -1
- package/dist/{constants-BciiayPt.d.ts → constants-6kYRTdox.d.ts} +1 -1
- package/dist/{constants-BIIEMVoG.d.ts → constants-B_7FCJQX.d.cts} +3 -6
- package/dist/{constants-BFTS6mge.d.cts → constants-B_7FCJQX.d.ts} +3 -6
- package/dist/{constants-D41U_jbR.d.cts → constants-BwKiHHaB.d.cts} +1 -1
- package/dist/{constants-5cdwz1iH.d.ts → constants-BwKiHHaB.d.ts} +1 -1
- package/dist/{constants-DK7fI3Rh.d.cts → constants-Db_RBdlV.d.cts} +1 -1
- package/dist/{constants-BWEsNG5c.d.ts → constants-Db_RBdlV.d.ts} +1 -1
- package/dist/{constants-CNhpIMME.d.cts → constants-OZiiFKiA.d.cts} +1 -1
- package/dist/{constants-y2XVLQWf.d.ts → constants-OZiiFKiA.d.ts} +1 -1
- package/dist/{constants-CjO3_FOH.d.ts → constants-OcdoVk6f.d.ts} +3 -4
- package/dist/{constants-G3wymKIl.d.cts → constants-Sn4gnNA3.d.cts} +1 -1
- package/dist/{constants-Cpgyuy_r.d.ts → constants-Sn4gnNA3.d.ts} +1 -1
- package/dist/{constants-BrGIx40B.d.cts → constants-_p6w8uEp.d.cts} +3 -4
- package/dist/constants.cjs +0 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +8 -8
- package/dist/constants.d.ts +8 -8
- package/dist/constants.js.map +1 -1
- package/dist/deploymentsSlice/constants.d.cts +1 -1
- package/dist/deploymentsSlice/constants.d.ts +1 -1
- package/dist/deploymentsSlice/index.cjs +0 -1
- package/dist/deploymentsSlice/index.cjs.map +1 -1
- package/dist/deploymentsSlice/index.d.cts +1 -1
- package/dist/deploymentsSlice/index.d.ts +1 -1
- package/dist/deploymentsSlice/index.js.map +1 -1
- package/dist/deploymentsSlice/mocks.cjs.map +1 -1
- package/dist/deploymentsSlice/mocks.d.cts +1 -1
- package/dist/deploymentsSlice/mocks.d.ts +1 -1
- package/dist/deploymentsSlice/mocks.js.map +1 -1
- package/dist/deploymentsSlice/selectors.cjs +0 -1
- package/dist/deploymentsSlice/selectors.cjs.map +1 -1
- package/dist/deploymentsSlice/selectors.d.cts +15 -16
- package/dist/deploymentsSlice/selectors.d.ts +15 -16
- package/dist/deploymentsSlice/selectors.js.map +1 -1
- package/dist/deploymentsSlice/thunks.d.cts +21 -22
- package/dist/deploymentsSlice/thunks.d.ts +21 -22
- package/dist/devicesSlice/constants.d.cts +1 -1
- package/dist/devicesSlice/constants.d.ts +1 -1
- package/dist/devicesSlice/index.cjs +0 -1
- package/dist/devicesSlice/index.cjs.map +1 -1
- package/dist/devicesSlice/index.d.cts +1 -1
- package/dist/devicesSlice/index.d.ts +1 -1
- package/dist/devicesSlice/index.js.map +1 -1
- package/dist/devicesSlice/mocks.cjs +0 -1
- package/dist/devicesSlice/mocks.cjs.map +1 -1
- package/dist/devicesSlice/mocks.js.map +1 -1
- package/dist/devicesSlice/selectors.cjs +0 -1
- package/dist/devicesSlice/selectors.cjs.map +1 -1
- package/dist/devicesSlice/selectors.d.cts +79 -81
- package/dist/devicesSlice/selectors.d.ts +79 -81
- package/dist/devicesSlice/selectors.js.map +1 -1
- package/dist/devicesSlice/thunks.d.cts +67 -69
- package/dist/devicesSlice/thunks.d.ts +67 -69
- package/dist/{index-DUvrw_Ed.d.ts → index-5Q-iI4EB.d.cts} +17 -20
- package/dist/index-BBsUj1a8.d.ts +68 -0
- package/dist/index-BLvjQfGj.d.ts +119 -0
- package/dist/{index-BP0uAq36.d.cts → index-Bb4yvvgG.d.ts} +25 -28
- package/dist/index-Bj3OArhr.d.cts +68 -0
- package/dist/{index-CT5hgXm9.d.cts → index-ByfjrTdH.d.ts} +16 -19
- package/dist/index-C8QadAm7.d.cts +119 -0
- package/dist/{index-BI9O8JWe.d.ts → index-CPdMUfRr.d.ts} +41 -44
- package/dist/index-CSk4ENmk.d.cts +149 -0
- package/dist/index-Cf81vLTi.d.ts +149 -0
- package/dist/index-DBUt8xVc.d.cts +61 -0
- package/dist/index-DBUt8xVc.d.ts +61 -0
- package/dist/index-DLDY7bNT.d.ts +165 -0
- package/dist/{index-B64X5ozM.d.cts → index-DbfM03Gj.d.cts} +42 -45
- package/dist/{index-CkwVnIqd.d.ts → index-EPmsL6Lb.d.cts} +26 -29
- package/dist/index-Zs9RnVoR.d.cts +165 -0
- package/dist/liststatehook.cjs +5 -6
- package/dist/liststatehook.cjs.map +1 -1
- package/dist/liststatehook.d.cts +1 -1
- package/dist/liststatehook.d.ts +1 -1
- package/dist/liststatehook.js +1 -1
- package/dist/liststatehook.js.map +1 -1
- package/dist/locationutils.cjs +0 -1
- package/dist/locationutils.cjs.map +1 -1
- package/dist/locationutils.d.cts +3 -3
- package/dist/locationutils.d.ts +3 -3
- package/dist/locationutils.js.map +1 -1
- package/dist/monitorSlice/constants.d.cts +1 -1
- package/dist/monitorSlice/constants.d.ts +1 -1
- package/dist/monitorSlice/index.cjs +0 -1
- package/dist/monitorSlice/index.cjs.map +1 -1
- package/dist/monitorSlice/index.d.cts +1 -1
- package/dist/monitorSlice/index.d.ts +1 -1
- package/dist/monitorSlice/index.js.map +1 -1
- package/dist/monitorSlice/mocks.cjs +0 -1
- package/dist/monitorSlice/mocks.cjs.map +1 -1
- package/dist/monitorSlice/mocks.d.cts +1 -1
- package/dist/monitorSlice/mocks.d.ts +1 -1
- package/dist/monitorSlice/mocks.js.map +1 -1
- package/dist/monitorSlice/selectors.d.cts +1 -1
- package/dist/monitorSlice/selectors.d.ts +1 -1
- package/dist/monitorSlice/thunks.cjs +1 -3
- package/dist/monitorSlice/thunks.cjs.map +1 -1
- package/dist/monitorSlice/thunks.d.cts +11 -13
- package/dist/monitorSlice/thunks.d.ts +11 -13
- package/dist/monitorSlice/thunks.js +1 -2
- package/dist/monitorSlice/thunks.js.map +1 -1
- package/dist/onboardingSlice/constants.cjs.map +1 -1
- package/dist/onboardingSlice/constants.d.cts +1 -1
- package/dist/onboardingSlice/constants.d.ts +1 -1
- package/dist/onboardingSlice/constants.js.map +1 -1
- package/dist/onboardingSlice/index.cjs +0 -1
- package/dist/onboardingSlice/index.cjs.map +1 -1
- package/dist/onboardingSlice/index.d.cts +1 -1
- package/dist/onboardingSlice/index.d.ts +1 -1
- package/dist/onboardingSlice/index.js.map +1 -1
- package/dist/onboardingSlice/mocks.cjs.map +1 -1
- package/dist/onboardingSlice/mocks.d.cts +1 -1
- package/dist/onboardingSlice/mocks.d.ts +1 -1
- package/dist/onboardingSlice/mocks.js.map +1 -1
- package/dist/onboardingSlice/selectors.d.cts +2 -2
- package/dist/onboardingSlice/selectors.d.ts +2 -2
- package/dist/onboardingSlice/thunks.d.cts +22 -23
- package/dist/onboardingSlice/thunks.d.ts +22 -23
- package/dist/organizationSlice/constants.d.cts +1 -1
- package/dist/organizationSlice/constants.d.ts +1 -1
- package/dist/organizationSlice/index.cjs +0 -1
- package/dist/organizationSlice/index.cjs.map +1 -1
- package/dist/organizationSlice/index.d.cts +1 -1
- package/dist/organizationSlice/index.d.ts +1 -1
- package/dist/organizationSlice/index.js.map +1 -1
- package/dist/organizationSlice/mocks.cjs +0 -1
- package/dist/organizationSlice/mocks.cjs.map +1 -1
- package/dist/organizationSlice/mocks.d.cts +3 -4
- package/dist/organizationSlice/mocks.d.ts +3 -4
- package/dist/organizationSlice/mocks.js.map +1 -1
- package/dist/organizationSlice/selectors.cjs +0 -1
- package/dist/organizationSlice/selectors.cjs.map +1 -1
- package/dist/organizationSlice/selectors.d.cts +78 -81
- package/dist/organizationSlice/selectors.d.ts +78 -81
- package/dist/organizationSlice/selectors.js.map +1 -1
- package/dist/organizationSlice/thunks.d.cts +69 -72
- package/dist/organizationSlice/thunks.d.ts +69 -72
- package/dist/organizationSlice/types.d.cts +1 -1
- package/dist/organizationSlice/types.d.ts +1 -1
- package/dist/releasesSlice/constants.cjs.map +1 -1
- package/dist/releasesSlice/constants.d.cts +1 -1
- package/dist/releasesSlice/constants.d.ts +1 -1
- package/dist/releasesSlice/constants.js.map +1 -1
- package/dist/releasesSlice/index.cjs +0 -1
- package/dist/releasesSlice/index.cjs.map +1 -1
- package/dist/releasesSlice/index.d.cts +1 -1
- package/dist/releasesSlice/index.d.ts +1 -1
- package/dist/releasesSlice/index.js.map +1 -1
- package/dist/releasesSlice/mocks.cjs +0 -1
- package/dist/releasesSlice/mocks.cjs.map +1 -1
- package/dist/releasesSlice/mocks.d.cts +3 -6
- package/dist/releasesSlice/mocks.d.ts +3 -6
- package/dist/releasesSlice/mocks.js.map +1 -1
- package/dist/releasesSlice/selectors.cjs +0 -1
- package/dist/releasesSlice/selectors.cjs.map +1 -1
- package/dist/releasesSlice/selectors.d.cts +107 -110
- package/dist/releasesSlice/selectors.d.ts +107 -110
- package/dist/releasesSlice/selectors.js.map +1 -1
- package/dist/releasesSlice/thunks.cjs +4 -5
- package/dist/releasesSlice/thunks.cjs.map +1 -1
- package/dist/releasesSlice/thunks.d.cts +52 -55
- package/dist/releasesSlice/thunks.d.ts +52 -55
- package/dist/releasesSlice/thunks.js +3 -4
- package/dist/releasesSlice/thunks.js.map +1 -1
- package/dist/sockethook.cjs +1 -1
- package/dist/sockethook.cjs.map +1 -1
- package/dist/sockethook.js.map +1 -1
- package/dist/{store-BZo47jc-.d.ts → store-Co2ptTSm.d.ts} +30 -35
- package/dist/{store-BhRxVhtL.d.cts → store-Dd0Y2JCN.d.cts} +30 -35
- package/dist/store.cjs +0 -1
- package/dist/store.cjs.map +1 -1
- package/dist/store.d.cts +3 -3
- package/dist/store.d.ts +3 -3
- package/dist/store.js.map +1 -1
- package/dist/storehooks.cjs +6 -14
- package/dist/storehooks.cjs.map +1 -1
- package/dist/storehooks.d.cts +6 -43
- package/dist/storehooks.d.ts +6 -43
- package/dist/storehooks.js +7 -15
- package/dist/storehooks.js.map +1 -1
- package/dist/thunks.cjs +4 -44
- package/dist/thunks.cjs.map +1 -1
- package/dist/thunks.d.cts +2 -2
- package/dist/thunks.d.ts +2 -2
- package/dist/thunks.js +5 -44
- package/dist/thunks.js.map +1 -1
- package/dist/{types-COdPU2QQ.d.cts → types-B33vKVhi.d.cts} +4 -4
- package/dist/{types-BPyM8Inu.d.ts → types-BjtmX60L.d.ts} +4 -4
- package/dist/useDeploymentDevice.cjs +1 -1
- package/dist/useDeploymentDevice.cjs.map +1 -1
- package/dist/useDeploymentDevice.js.map +1 -1
- package/dist/usersSlice/constants.d.cts +1 -1
- package/dist/usersSlice/constants.d.ts +1 -1
- package/dist/usersSlice/index.cjs +0 -1
- package/dist/usersSlice/index.cjs.map +1 -1
- package/dist/usersSlice/index.d.cts +1 -1
- package/dist/usersSlice/index.d.ts +1 -1
- package/dist/usersSlice/index.js.map +1 -1
- package/dist/usersSlice/mocks.cjs +0 -1
- package/dist/usersSlice/mocks.cjs.map +1 -1
- package/dist/usersSlice/mocks.d.cts +4 -6
- package/dist/usersSlice/mocks.d.ts +4 -6
- package/dist/usersSlice/mocks.js.map +1 -1
- package/dist/usersSlice/selectors.cjs +0 -1
- package/dist/usersSlice/selectors.cjs.map +1 -1
- package/dist/usersSlice/selectors.d.cts +44 -47
- package/dist/usersSlice/selectors.d.ts +44 -47
- package/dist/usersSlice/selectors.js.map +1 -1
- package/dist/usersSlice/thunks.d.cts +92 -95
- package/dist/usersSlice/thunks.d.ts +92 -95
- package/dist/{utils-CHBWS_tH.d.ts → utils-C_9XEfi_.d.ts} +8 -9
- package/dist/{utils-Do9z5TL1.d.cts → utils-DbXmZmGq.d.cts} +8 -9
- package/dist/utils.cjs +0 -3
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -2
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
- package/dist/index-B3IF6ur9.d.cts +0 -168
- package/dist/index-BFlHWzjv.d.cts +0 -152
- package/dist/index-BbaS7MzW.d.cts +0 -71
- package/dist/index-Bp1WpATs.d.ts +0 -154
- package/dist/index-C6wNUfiV.d.ts +0 -71
- package/dist/index-CJkrL0oA.d.ts +0 -64
- package/dist/index-DaD3yorF.d.ts +0 -168
- package/dist/index-DwACbyUg.d.cts +0 -154
- package/dist/index-UPc3wvVd.d.cts +0 -64
- package/dist/index-ez3oxfRo.d.ts +0 -152
- /package/dist/{chunk-CKQMccvm.cjs → chunk-D6vf50IK.cjs} +0 -0
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { o as UserSliceType } from "./index-
|
|
2
|
-
import { i as ReleaseSliceType } from "./index-
|
|
3
|
-
import { n as OnboardingSliceType } from "./index-
|
|
4
|
-
import { o as DeploymentsSliceType } from "./index-
|
|
5
|
-
import { s as DeviceSliceType } from "./index-
|
|
6
|
-
import { t as AppSliceType } from "./index-
|
|
7
|
-
import { t as MonitorSliceType } from "./index-
|
|
8
|
-
import { t as OrganizationSliceType } from "./index-
|
|
9
|
-
import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
|
|
1
|
+
import { o as UserSliceType } from "./index-Cf81vLTi.js";
|
|
2
|
+
import { i as ReleaseSliceType } from "./index-DLDY7bNT.js";
|
|
3
|
+
import { n as OnboardingSliceType } from "./index-DBUt8xVc.js";
|
|
4
|
+
import { o as DeploymentsSliceType } from "./index-Bb4yvvgG.js";
|
|
5
|
+
import { s as DeviceSliceType } from "./index-CPdMUfRr.js";
|
|
6
|
+
import { t as AppSliceType } from "./index-BLvjQfGj.js";
|
|
7
|
+
import { t as MonitorSliceType } from "./index-ByfjrTdH.js";
|
|
8
|
+
import { t as OrganizationSliceType } from "./index-BBsUj1a8.js";
|
|
10
9
|
import { Reducer, UnknownAction } from "@reduxjs/toolkit";
|
|
11
10
|
import { TypedUseSelectorHook } from "react-redux";
|
|
12
|
-
import * as _$redux from "redux";
|
|
13
|
-
import * as _$redux_thunk0 from "redux-thunk";
|
|
14
11
|
|
|
15
12
|
//#region src/store.d.ts
|
|
16
13
|
type MenderEnvironment = {
|
|
@@ -18,12 +15,10 @@ type MenderEnvironment = {
|
|
|
18
15
|
demoArtifactPort?: string | number;
|
|
19
16
|
disableOnboarding?: string;
|
|
20
17
|
features: Record<string, string>;
|
|
21
|
-
integrationVersion: string;
|
|
22
|
-
menderArtifactVersion: string;
|
|
23
|
-
metaMenderVersion: string;
|
|
24
18
|
sentry?: {
|
|
25
19
|
isReduxEnabled?: string | boolean;
|
|
26
20
|
};
|
|
21
|
+
version: string;
|
|
27
22
|
};
|
|
28
23
|
declare global {
|
|
29
24
|
interface Window {
|
|
@@ -61,7 +56,7 @@ declare const sessionReducer: Reducer<RootReducerState>;
|
|
|
61
56
|
declare const getConfiguredStore: (options?: {
|
|
62
57
|
[key: string]: unknown;
|
|
63
58
|
preloadedState?: Partial<RootReducerState>;
|
|
64
|
-
}) =>
|
|
59
|
+
}) => import("@reduxjs/toolkit").EnhancedStore<{
|
|
65
60
|
app: AppSliceType;
|
|
66
61
|
devices: DeviceSliceType;
|
|
67
62
|
deployments: DeploymentsSliceType;
|
|
@@ -70,8 +65,8 @@ declare const getConfiguredStore: (options?: {
|
|
|
70
65
|
organization: OrganizationSliceType;
|
|
71
66
|
releases: ReleaseSliceType;
|
|
72
67
|
users: UserSliceType;
|
|
73
|
-
}, UnknownAction,
|
|
74
|
-
dispatch:
|
|
68
|
+
}, UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
69
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
75
70
|
app: AppSliceType;
|
|
76
71
|
devices: DeviceSliceType;
|
|
77
72
|
deployments: DeploymentsSliceType;
|
|
@@ -81,8 +76,8 @@ declare const getConfiguredStore: (options?: {
|
|
|
81
76
|
releases: ReleaseSliceType;
|
|
82
77
|
users: UserSliceType;
|
|
83
78
|
}, undefined, UnknownAction>;
|
|
84
|
-
}>,
|
|
85
|
-
declare const store:
|
|
79
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
80
|
+
declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
86
81
|
app: AppSliceType;
|
|
87
82
|
devices: DeviceSliceType;
|
|
88
83
|
deployments: DeploymentsSliceType;
|
|
@@ -91,8 +86,8 @@ declare const store: _$_reduxjs_toolkit0.EnhancedStore<{
|
|
|
91
86
|
organization: OrganizationSliceType;
|
|
92
87
|
releases: ReleaseSliceType;
|
|
93
88
|
users: UserSliceType;
|
|
94
|
-
}, UnknownAction,
|
|
95
|
-
dispatch:
|
|
89
|
+
}, UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
90
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
96
91
|
app: AppSliceType;
|
|
97
92
|
devices: DeviceSliceType;
|
|
98
93
|
deployments: DeploymentsSliceType;
|
|
@@ -102,12 +97,12 @@ declare const store: _$_reduxjs_toolkit0.EnhancedStore<{
|
|
|
102
97
|
releases: ReleaseSliceType;
|
|
103
98
|
users: UserSliceType;
|
|
104
99
|
}, undefined, UnknownAction>;
|
|
105
|
-
}>,
|
|
100
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
106
101
|
type AppDispatch = typeof store.dispatch;
|
|
107
102
|
type RootState = ReturnType<typeof rootReducer>;
|
|
108
103
|
declare const useAppDispatch: () => AppDispatch;
|
|
109
104
|
declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
110
|
-
declare const createAppAsyncThunk:
|
|
105
|
+
declare const createAppAsyncThunk: import("@reduxjs/toolkit").CreateAsyncThunkFunction<{
|
|
111
106
|
dispatch: AppDispatch;
|
|
112
107
|
state: RootState;
|
|
113
108
|
extra?: unknown;
|
|
@@ -117,7 +112,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
117
112
|
fulfilledMeta?: unknown;
|
|
118
113
|
rejectedMeta?: unknown;
|
|
119
114
|
}> & {
|
|
120
|
-
withTypes<ThunkApiConfig extends
|
|
115
|
+
withTypes<ThunkApiConfig extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig & Omit<{
|
|
121
116
|
dispatch: AppDispatch;
|
|
122
117
|
state: RootState;
|
|
123
118
|
extra?: unknown;
|
|
@@ -127,7 +122,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
127
122
|
fulfilledMeta?: unknown;
|
|
128
123
|
rejectedMeta?: unknown;
|
|
129
124
|
}, keyof ThunkApiConfig> extends infer T ? { [K in keyof T]: T[K] } : never> & {
|
|
130
|
-
withTypes<ThunkApiConfig_1 extends
|
|
125
|
+
withTypes<ThunkApiConfig_1 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
131
126
|
dispatch: AppDispatch;
|
|
132
127
|
state: RootState;
|
|
133
128
|
extra?: unknown;
|
|
@@ -137,7 +132,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
137
132
|
fulfilledMeta?: unknown;
|
|
138
133
|
rejectedMeta?: unknown;
|
|
139
134
|
}, keyof ThunkApiConfig> extends infer T_2 ? { [K in keyof T_2]: T_2[K] } : never, keyof ThunkApiConfig_1> extends infer T_1 ? { [K_1 in keyof T_1]: T_1[K_1] } : never> & {
|
|
140
|
-
withTypes<ThunkApiConfig_2 extends
|
|
135
|
+
withTypes<ThunkApiConfig_2 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
141
136
|
dispatch: AppDispatch;
|
|
142
137
|
state: RootState;
|
|
143
138
|
extra?: unknown;
|
|
@@ -147,7 +142,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
147
142
|
fulfilledMeta?: unknown;
|
|
148
143
|
rejectedMeta?: unknown;
|
|
149
144
|
}, keyof ThunkApiConfig> extends infer T_5 ? { [K in keyof T_5]: T_5[K] } : never, keyof ThunkApiConfig_1> extends infer T_4 ? { [K_1 in keyof T_4]: T_4[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_3 ? { [K_2 in keyof T_3]: T_3[K_2] } : never> & {
|
|
150
|
-
withTypes<ThunkApiConfig_3 extends
|
|
145
|
+
withTypes<ThunkApiConfig_3 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
151
146
|
dispatch: AppDispatch;
|
|
152
147
|
state: RootState;
|
|
153
148
|
extra?: unknown;
|
|
@@ -157,7 +152,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
157
152
|
fulfilledMeta?: unknown;
|
|
158
153
|
rejectedMeta?: unknown;
|
|
159
154
|
}, keyof ThunkApiConfig> extends infer T_9 ? { [K in keyof T_9]: T_9[K] } : never, keyof ThunkApiConfig_1> extends infer T_8 ? { [K_1 in keyof T_8]: T_8[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_7 ? { [K_2 in keyof T_7]: T_7[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_6 ? { [K_3 in keyof T_6]: T_6[K_3] } : never> & {
|
|
160
|
-
withTypes<ThunkApiConfig_4 extends
|
|
155
|
+
withTypes<ThunkApiConfig_4 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
161
156
|
dispatch: AppDispatch;
|
|
162
157
|
state: RootState;
|
|
163
158
|
extra?: unknown;
|
|
@@ -167,7 +162,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
167
162
|
fulfilledMeta?: unknown;
|
|
168
163
|
rejectedMeta?: unknown;
|
|
169
164
|
}, keyof ThunkApiConfig> extends infer T_14 ? { [K in keyof T_14]: T_14[K] } : never, keyof ThunkApiConfig_1> extends infer T_13 ? { [K_1 in keyof T_13]: T_13[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_12 ? { [K_2 in keyof T_12]: T_12[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_11 ? { [K_3 in keyof T_11]: T_11[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_10 ? { [K_4 in keyof T_10]: T_10[K_4] } : never> & {
|
|
170
|
-
withTypes<ThunkApiConfig_5 extends
|
|
165
|
+
withTypes<ThunkApiConfig_5 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
171
166
|
dispatch: AppDispatch;
|
|
172
167
|
state: RootState;
|
|
173
168
|
extra?: unknown;
|
|
@@ -177,7 +172,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
177
172
|
fulfilledMeta?: unknown;
|
|
178
173
|
rejectedMeta?: unknown;
|
|
179
174
|
}, keyof ThunkApiConfig> extends infer T_20 ? { [K in keyof T_20]: T_20[K] } : never, keyof ThunkApiConfig_1> extends infer T_19 ? { [K_1 in keyof T_19]: T_19[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_18 ? { [K_2 in keyof T_18]: T_18[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_17 ? { [K_3 in keyof T_17]: T_17[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_16 ? { [K_4 in keyof T_16]: T_16[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_15 ? { [K_5 in keyof T_15]: T_15[K_5] } : never> & {
|
|
180
|
-
withTypes<ThunkApiConfig_6 extends
|
|
175
|
+
withTypes<ThunkApiConfig_6 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
181
176
|
dispatch: AppDispatch;
|
|
182
177
|
state: RootState;
|
|
183
178
|
extra?: unknown;
|
|
@@ -187,7 +182,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
187
182
|
fulfilledMeta?: unknown;
|
|
188
183
|
rejectedMeta?: unknown;
|
|
189
184
|
}, keyof ThunkApiConfig> extends infer T_27 ? { [K in keyof T_27]: T_27[K] } : never, keyof ThunkApiConfig_1> extends infer T_26 ? { [K_1 in keyof T_26]: T_26[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_25 ? { [K_2 in keyof T_25]: T_25[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_24 ? { [K_3 in keyof T_24]: T_24[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_23 ? { [K_4 in keyof T_23]: T_23[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_22 ? { [K_5 in keyof T_22]: T_22[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_21 ? { [K_6 in keyof T_21]: T_21[K_6] } : never> & {
|
|
190
|
-
withTypes<ThunkApiConfig_7 extends
|
|
185
|
+
withTypes<ThunkApiConfig_7 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
191
186
|
dispatch: AppDispatch;
|
|
192
187
|
state: RootState;
|
|
193
188
|
extra?: unknown;
|
|
@@ -197,7 +192,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
197
192
|
fulfilledMeta?: unknown;
|
|
198
193
|
rejectedMeta?: unknown;
|
|
199
194
|
}, keyof ThunkApiConfig> extends infer T_35 ? { [K in keyof T_35]: T_35[K] } : never, keyof ThunkApiConfig_1> extends infer T_34 ? { [K_1 in keyof T_34]: T_34[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_33 ? { [K_2 in keyof T_33]: T_33[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_32 ? { [K_3 in keyof T_32]: T_32[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_31 ? { [K_4 in keyof T_31]: T_31[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_30 ? { [K_5 in keyof T_30]: T_30[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_29 ? { [K_6 in keyof T_29]: T_29[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_28 ? { [K_7 in keyof T_28]: T_28[K_7] } : never> & {
|
|
200
|
-
withTypes<ThunkApiConfig_8 extends
|
|
195
|
+
withTypes<ThunkApiConfig_8 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_8 & Omit<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
201
196
|
dispatch: AppDispatch;
|
|
202
197
|
state: RootState;
|
|
203
198
|
extra?: unknown;
|
|
@@ -207,7 +202,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
207
202
|
fulfilledMeta?: unknown;
|
|
208
203
|
rejectedMeta?: unknown;
|
|
209
204
|
}, keyof ThunkApiConfig> extends infer T_44 ? { [K in keyof T_44]: T_44[K] } : never, keyof ThunkApiConfig_1> extends infer T_43 ? { [K_1 in keyof T_43]: T_43[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_42 ? { [K_2 in keyof T_42]: T_42[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_41 ? { [K_3 in keyof T_41]: T_41[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_40 ? { [K_4 in keyof T_40]: T_40[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_39 ? { [K_5 in keyof T_39]: T_39[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_38 ? { [K_6 in keyof T_38]: T_38[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_37 ? { [K_7 in keyof T_37]: T_37[K_7] } : never, keyof ThunkApiConfig_8> extends infer T_36 ? { [K_8 in keyof T_36]: T_36[K_8] } : never> & {
|
|
210
|
-
withTypes<ThunkApiConfig_9 extends
|
|
205
|
+
withTypes<ThunkApiConfig_9 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_9 & Omit<ThunkApiConfig_8 & Omit<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
211
206
|
dispatch: AppDispatch;
|
|
212
207
|
state: RootState;
|
|
213
208
|
extra?: unknown;
|
|
@@ -217,7 +212,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
217
212
|
fulfilledMeta?: unknown;
|
|
218
213
|
rejectedMeta?: unknown;
|
|
219
214
|
}, keyof ThunkApiConfig> extends infer T_54 ? { [K in keyof T_54]: T_54[K] } : never, keyof ThunkApiConfig_1> extends infer T_53 ? { [K_1 in keyof T_53]: T_53[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_52 ? { [K_2 in keyof T_52]: T_52[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_51 ? { [K_3 in keyof T_51]: T_51[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_50 ? { [K_4 in keyof T_50]: T_50[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_49 ? { [K_5 in keyof T_49]: T_49[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_48 ? { [K_6 in keyof T_48]: T_48[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_47 ? { [K_7 in keyof T_47]: T_47[K_7] } : never, keyof ThunkApiConfig_8> extends infer T_46 ? { [K_8 in keyof T_46]: T_46[K_8] } : never, keyof ThunkApiConfig_9> extends infer T_45 ? { [K_9 in keyof T_45]: T_45[K_9] } : never> & {
|
|
220
|
-
withTypes<ThunkApiConfig_10 extends
|
|
215
|
+
withTypes<ThunkApiConfig_10 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_10 & Omit<ThunkApiConfig_9 & Omit<ThunkApiConfig_8 & Omit<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit< /*elided*/any, keyof ThunkApiConfig> extends infer T_65 ? { [K in keyof T_65]: T_65[K] } : never, keyof ThunkApiConfig_1> extends infer T_64 ? { [K_1 in keyof T_64]: T_64[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_63 ? { [K_2 in keyof T_63]: T_63[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_62 ? { [K_3 in keyof T_62]: T_62[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_61 ? { [K_4 in keyof T_61]: T_61[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_60 ? { [K_5 in keyof T_60]: T_60[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_59 ? { [K_6 in keyof T_59]: T_59[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_58 ? { [K_7 in keyof T_58]: T_58[K_7] } : never, keyof ThunkApiConfig_8> extends infer T_57 ? { [K_8 in keyof T_57]: T_57[K_8] } : never, keyof ThunkApiConfig_9> extends infer T_56 ? { [K_9 in keyof T_56]: T_56[K_9] } : never, keyof ThunkApiConfig_10> extends infer T_55 ? { [K_10 in keyof T_55]: T_55[K_10] } : never> & /*elided*/any;
|
|
221
216
|
};
|
|
222
217
|
};
|
|
223
218
|
};
|
|
@@ -231,4 +226,4 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
231
226
|
};
|
|
232
227
|
//#endregion
|
|
233
228
|
export { commonErrorHandler as a, sessionReducer as c, useAppSelector as d, commonErrorFallback as i, store as l, MenderEnvironment as n, createAppAsyncThunk as o, RootState as r, getConfiguredStore as s, AppDispatch as t, useAppDispatch as u };
|
|
234
|
-
//# sourceMappingURL=store-
|
|
229
|
+
//# sourceMappingURL=store-Co2ptTSm.d.ts.map
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { o as UserSliceType } from "./index-
|
|
2
|
-
import { i as ReleaseSliceType } from "./index-
|
|
3
|
-
import { n as OnboardingSliceType } from "./index-
|
|
4
|
-
import { o as DeploymentsSliceType } from "./index-
|
|
5
|
-
import { s as DeviceSliceType } from "./index-
|
|
6
|
-
import { t as AppSliceType } from "./index-
|
|
7
|
-
import { t as MonitorSliceType } from "./index-
|
|
8
|
-
import { t as OrganizationSliceType } from "./index-
|
|
9
|
-
import * as _$_reduxjs_toolkit0 from "@reduxjs/toolkit";
|
|
1
|
+
import { o as UserSliceType } from "./index-CSk4ENmk.cjs";
|
|
2
|
+
import { i as ReleaseSliceType } from "./index-Zs9RnVoR.cjs";
|
|
3
|
+
import { n as OnboardingSliceType } from "./index-DBUt8xVc.cjs";
|
|
4
|
+
import { o as DeploymentsSliceType } from "./index-EPmsL6Lb.cjs";
|
|
5
|
+
import { s as DeviceSliceType } from "./index-DbfM03Gj.cjs";
|
|
6
|
+
import { t as AppSliceType } from "./index-C8QadAm7.cjs";
|
|
7
|
+
import { t as MonitorSliceType } from "./index-5Q-iI4EB.cjs";
|
|
8
|
+
import { t as OrganizationSliceType } from "./index-Bj3OArhr.cjs";
|
|
10
9
|
import { Reducer, UnknownAction } from "@reduxjs/toolkit";
|
|
11
|
-
import * as _$redux from "redux";
|
|
12
|
-
import * as _$redux_thunk0 from "redux-thunk";
|
|
13
10
|
import { TypedUseSelectorHook } from "react-redux";
|
|
14
11
|
|
|
15
12
|
//#region src/store.d.ts
|
|
@@ -18,12 +15,10 @@ type MenderEnvironment = {
|
|
|
18
15
|
demoArtifactPort?: string | number;
|
|
19
16
|
disableOnboarding?: string;
|
|
20
17
|
features: Record<string, string>;
|
|
21
|
-
integrationVersion: string;
|
|
22
|
-
menderArtifactVersion: string;
|
|
23
|
-
metaMenderVersion: string;
|
|
24
18
|
sentry?: {
|
|
25
19
|
isReduxEnabled?: string | boolean;
|
|
26
20
|
};
|
|
21
|
+
version: string;
|
|
27
22
|
};
|
|
28
23
|
declare global {
|
|
29
24
|
interface Window {
|
|
@@ -61,7 +56,7 @@ declare const sessionReducer: Reducer<RootReducerState>;
|
|
|
61
56
|
declare const getConfiguredStore: (options?: {
|
|
62
57
|
[key: string]: unknown;
|
|
63
58
|
preloadedState?: Partial<RootReducerState>;
|
|
64
|
-
}) =>
|
|
59
|
+
}) => import("@reduxjs/toolkit").EnhancedStore<{
|
|
65
60
|
app: AppSliceType;
|
|
66
61
|
devices: DeviceSliceType;
|
|
67
62
|
deployments: DeploymentsSliceType;
|
|
@@ -70,8 +65,8 @@ declare const getConfiguredStore: (options?: {
|
|
|
70
65
|
organization: OrganizationSliceType;
|
|
71
66
|
releases: ReleaseSliceType;
|
|
72
67
|
users: UserSliceType;
|
|
73
|
-
}, UnknownAction,
|
|
74
|
-
dispatch:
|
|
68
|
+
}, UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
69
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
75
70
|
app: AppSliceType;
|
|
76
71
|
devices: DeviceSliceType;
|
|
77
72
|
deployments: DeploymentsSliceType;
|
|
@@ -81,8 +76,8 @@ declare const getConfiguredStore: (options?: {
|
|
|
81
76
|
releases: ReleaseSliceType;
|
|
82
77
|
users: UserSliceType;
|
|
83
78
|
}, undefined, UnknownAction>;
|
|
84
|
-
}>,
|
|
85
|
-
declare const store:
|
|
79
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
80
|
+
declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
86
81
|
app: AppSliceType;
|
|
87
82
|
devices: DeviceSliceType;
|
|
88
83
|
deployments: DeploymentsSliceType;
|
|
@@ -91,8 +86,8 @@ declare const store: _$_reduxjs_toolkit0.EnhancedStore<{
|
|
|
91
86
|
organization: OrganizationSliceType;
|
|
92
87
|
releases: ReleaseSliceType;
|
|
93
88
|
users: UserSliceType;
|
|
94
|
-
}, UnknownAction,
|
|
95
|
-
dispatch:
|
|
89
|
+
}, UnknownAction, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
|
|
90
|
+
dispatch: import("redux-thunk").ThunkDispatch<{
|
|
96
91
|
app: AppSliceType;
|
|
97
92
|
devices: DeviceSliceType;
|
|
98
93
|
deployments: DeploymentsSliceType;
|
|
@@ -102,12 +97,12 @@ declare const store: _$_reduxjs_toolkit0.EnhancedStore<{
|
|
|
102
97
|
releases: ReleaseSliceType;
|
|
103
98
|
users: UserSliceType;
|
|
104
99
|
}, undefined, UnknownAction>;
|
|
105
|
-
}>,
|
|
100
|
+
}>, import("redux").StoreEnhancer]>>;
|
|
106
101
|
type AppDispatch = typeof store.dispatch;
|
|
107
102
|
type RootState = ReturnType<typeof rootReducer>;
|
|
108
103
|
declare const useAppDispatch: () => AppDispatch;
|
|
109
104
|
declare const useAppSelector: TypedUseSelectorHook<RootState>;
|
|
110
|
-
declare const createAppAsyncThunk:
|
|
105
|
+
declare const createAppAsyncThunk: import("@reduxjs/toolkit").CreateAsyncThunkFunction<{
|
|
111
106
|
dispatch: AppDispatch;
|
|
112
107
|
state: RootState;
|
|
113
108
|
extra?: unknown;
|
|
@@ -117,7 +112,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
117
112
|
fulfilledMeta?: unknown;
|
|
118
113
|
rejectedMeta?: unknown;
|
|
119
114
|
}> & {
|
|
120
|
-
withTypes<ThunkApiConfig extends
|
|
115
|
+
withTypes<ThunkApiConfig extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig & Omit<{
|
|
121
116
|
dispatch: AppDispatch;
|
|
122
117
|
state: RootState;
|
|
123
118
|
extra?: unknown;
|
|
@@ -127,7 +122,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
127
122
|
fulfilledMeta?: unknown;
|
|
128
123
|
rejectedMeta?: unknown;
|
|
129
124
|
}, keyof ThunkApiConfig> extends infer T ? { [K in keyof T]: T[K] } : never> & {
|
|
130
|
-
withTypes<ThunkApiConfig_1 extends
|
|
125
|
+
withTypes<ThunkApiConfig_1 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
131
126
|
dispatch: AppDispatch;
|
|
132
127
|
state: RootState;
|
|
133
128
|
extra?: unknown;
|
|
@@ -137,7 +132,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
137
132
|
fulfilledMeta?: unknown;
|
|
138
133
|
rejectedMeta?: unknown;
|
|
139
134
|
}, keyof ThunkApiConfig> extends infer T_2 ? { [K in keyof T_2]: T_2[K] } : never, keyof ThunkApiConfig_1> extends infer T_1 ? { [K_1 in keyof T_1]: T_1[K_1] } : never> & {
|
|
140
|
-
withTypes<ThunkApiConfig_2 extends
|
|
135
|
+
withTypes<ThunkApiConfig_2 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
141
136
|
dispatch: AppDispatch;
|
|
142
137
|
state: RootState;
|
|
143
138
|
extra?: unknown;
|
|
@@ -147,7 +142,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
147
142
|
fulfilledMeta?: unknown;
|
|
148
143
|
rejectedMeta?: unknown;
|
|
149
144
|
}, keyof ThunkApiConfig> extends infer T_5 ? { [K in keyof T_5]: T_5[K] } : never, keyof ThunkApiConfig_1> extends infer T_4 ? { [K_1 in keyof T_4]: T_4[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_3 ? { [K_2 in keyof T_3]: T_3[K_2] } : never> & {
|
|
150
|
-
withTypes<ThunkApiConfig_3 extends
|
|
145
|
+
withTypes<ThunkApiConfig_3 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
151
146
|
dispatch: AppDispatch;
|
|
152
147
|
state: RootState;
|
|
153
148
|
extra?: unknown;
|
|
@@ -157,7 +152,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
157
152
|
fulfilledMeta?: unknown;
|
|
158
153
|
rejectedMeta?: unknown;
|
|
159
154
|
}, keyof ThunkApiConfig> extends infer T_9 ? { [K in keyof T_9]: T_9[K] } : never, keyof ThunkApiConfig_1> extends infer T_8 ? { [K_1 in keyof T_8]: T_8[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_7 ? { [K_2 in keyof T_7]: T_7[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_6 ? { [K_3 in keyof T_6]: T_6[K_3] } : never> & {
|
|
160
|
-
withTypes<ThunkApiConfig_4 extends
|
|
155
|
+
withTypes<ThunkApiConfig_4 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
161
156
|
dispatch: AppDispatch;
|
|
162
157
|
state: RootState;
|
|
163
158
|
extra?: unknown;
|
|
@@ -167,7 +162,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
167
162
|
fulfilledMeta?: unknown;
|
|
168
163
|
rejectedMeta?: unknown;
|
|
169
164
|
}, keyof ThunkApiConfig> extends infer T_14 ? { [K in keyof T_14]: T_14[K] } : never, keyof ThunkApiConfig_1> extends infer T_13 ? { [K_1 in keyof T_13]: T_13[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_12 ? { [K_2 in keyof T_12]: T_12[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_11 ? { [K_3 in keyof T_11]: T_11[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_10 ? { [K_4 in keyof T_10]: T_10[K_4] } : never> & {
|
|
170
|
-
withTypes<ThunkApiConfig_5 extends
|
|
165
|
+
withTypes<ThunkApiConfig_5 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
171
166
|
dispatch: AppDispatch;
|
|
172
167
|
state: RootState;
|
|
173
168
|
extra?: unknown;
|
|
@@ -177,7 +172,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
177
172
|
fulfilledMeta?: unknown;
|
|
178
173
|
rejectedMeta?: unknown;
|
|
179
174
|
}, keyof ThunkApiConfig> extends infer T_20 ? { [K in keyof T_20]: T_20[K] } : never, keyof ThunkApiConfig_1> extends infer T_19 ? { [K_1 in keyof T_19]: T_19[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_18 ? { [K_2 in keyof T_18]: T_18[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_17 ? { [K_3 in keyof T_17]: T_17[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_16 ? { [K_4 in keyof T_16]: T_16[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_15 ? { [K_5 in keyof T_15]: T_15[K_5] } : never> & {
|
|
180
|
-
withTypes<ThunkApiConfig_6 extends
|
|
175
|
+
withTypes<ThunkApiConfig_6 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
181
176
|
dispatch: AppDispatch;
|
|
182
177
|
state: RootState;
|
|
183
178
|
extra?: unknown;
|
|
@@ -187,7 +182,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
187
182
|
fulfilledMeta?: unknown;
|
|
188
183
|
rejectedMeta?: unknown;
|
|
189
184
|
}, keyof ThunkApiConfig> extends infer T_27 ? { [K in keyof T_27]: T_27[K] } : never, keyof ThunkApiConfig_1> extends infer T_26 ? { [K_1 in keyof T_26]: T_26[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_25 ? { [K_2 in keyof T_25]: T_25[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_24 ? { [K_3 in keyof T_24]: T_24[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_23 ? { [K_4 in keyof T_23]: T_23[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_22 ? { [K_5 in keyof T_22]: T_22[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_21 ? { [K_6 in keyof T_21]: T_21[K_6] } : never> & {
|
|
190
|
-
withTypes<ThunkApiConfig_7 extends
|
|
185
|
+
withTypes<ThunkApiConfig_7 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
191
186
|
dispatch: AppDispatch;
|
|
192
187
|
state: RootState;
|
|
193
188
|
extra?: unknown;
|
|
@@ -197,7 +192,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
197
192
|
fulfilledMeta?: unknown;
|
|
198
193
|
rejectedMeta?: unknown;
|
|
199
194
|
}, keyof ThunkApiConfig> extends infer T_35 ? { [K in keyof T_35]: T_35[K] } : never, keyof ThunkApiConfig_1> extends infer T_34 ? { [K_1 in keyof T_34]: T_34[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_33 ? { [K_2 in keyof T_33]: T_33[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_32 ? { [K_3 in keyof T_32]: T_32[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_31 ? { [K_4 in keyof T_31]: T_31[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_30 ? { [K_5 in keyof T_30]: T_30[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_29 ? { [K_6 in keyof T_29]: T_29[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_28 ? { [K_7 in keyof T_28]: T_28[K_7] } : never> & {
|
|
200
|
-
withTypes<ThunkApiConfig_8 extends
|
|
195
|
+
withTypes<ThunkApiConfig_8 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_8 & Omit<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
201
196
|
dispatch: AppDispatch;
|
|
202
197
|
state: RootState;
|
|
203
198
|
extra?: unknown;
|
|
@@ -207,7 +202,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
207
202
|
fulfilledMeta?: unknown;
|
|
208
203
|
rejectedMeta?: unknown;
|
|
209
204
|
}, keyof ThunkApiConfig> extends infer T_44 ? { [K in keyof T_44]: T_44[K] } : never, keyof ThunkApiConfig_1> extends infer T_43 ? { [K_1 in keyof T_43]: T_43[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_42 ? { [K_2 in keyof T_42]: T_42[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_41 ? { [K_3 in keyof T_41]: T_41[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_40 ? { [K_4 in keyof T_40]: T_40[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_39 ? { [K_5 in keyof T_39]: T_39[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_38 ? { [K_6 in keyof T_38]: T_38[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_37 ? { [K_7 in keyof T_37]: T_37[K_7] } : never, keyof ThunkApiConfig_8> extends infer T_36 ? { [K_8 in keyof T_36]: T_36[K_8] } : never> & {
|
|
210
|
-
withTypes<ThunkApiConfig_9 extends
|
|
205
|
+
withTypes<ThunkApiConfig_9 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_9 & Omit<ThunkApiConfig_8 & Omit<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit<{
|
|
211
206
|
dispatch: AppDispatch;
|
|
212
207
|
state: RootState;
|
|
213
208
|
extra?: unknown;
|
|
@@ -217,7 +212,7 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
217
212
|
fulfilledMeta?: unknown;
|
|
218
213
|
rejectedMeta?: unknown;
|
|
219
214
|
}, keyof ThunkApiConfig> extends infer T_54 ? { [K in keyof T_54]: T_54[K] } : never, keyof ThunkApiConfig_1> extends infer T_53 ? { [K_1 in keyof T_53]: T_53[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_52 ? { [K_2 in keyof T_52]: T_52[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_51 ? { [K_3 in keyof T_51]: T_51[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_50 ? { [K_4 in keyof T_50]: T_50[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_49 ? { [K_5 in keyof T_49]: T_49[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_48 ? { [K_6 in keyof T_48]: T_48[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_47 ? { [K_7 in keyof T_47]: T_47[K_7] } : never, keyof ThunkApiConfig_8> extends infer T_46 ? { [K_8 in keyof T_46]: T_46[K_8] } : never, keyof ThunkApiConfig_9> extends infer T_45 ? { [K_9 in keyof T_45]: T_45[K_9] } : never> & {
|
|
220
|
-
withTypes<ThunkApiConfig_10 extends
|
|
215
|
+
withTypes<ThunkApiConfig_10 extends import("@reduxjs/toolkit").AsyncThunkConfig>(): import("@reduxjs/toolkit").CreateAsyncThunkFunction<ThunkApiConfig_10 & Omit<ThunkApiConfig_9 & Omit<ThunkApiConfig_8 & Omit<ThunkApiConfig_7 & Omit<ThunkApiConfig_6 & Omit<ThunkApiConfig_5 & Omit<ThunkApiConfig_4 & Omit<ThunkApiConfig_3 & Omit<ThunkApiConfig_2 & Omit<ThunkApiConfig_1 & Omit<ThunkApiConfig & Omit< /*elided*/any, keyof ThunkApiConfig> extends infer T_65 ? { [K in keyof T_65]: T_65[K] } : never, keyof ThunkApiConfig_1> extends infer T_64 ? { [K_1 in keyof T_64]: T_64[K_1] } : never, keyof ThunkApiConfig_2> extends infer T_63 ? { [K_2 in keyof T_63]: T_63[K_2] } : never, keyof ThunkApiConfig_3> extends infer T_62 ? { [K_3 in keyof T_62]: T_62[K_3] } : never, keyof ThunkApiConfig_4> extends infer T_61 ? { [K_4 in keyof T_61]: T_61[K_4] } : never, keyof ThunkApiConfig_5> extends infer T_60 ? { [K_5 in keyof T_60]: T_60[K_5] } : never, keyof ThunkApiConfig_6> extends infer T_59 ? { [K_6 in keyof T_59]: T_59[K_6] } : never, keyof ThunkApiConfig_7> extends infer T_58 ? { [K_7 in keyof T_58]: T_58[K_7] } : never, keyof ThunkApiConfig_8> extends infer T_57 ? { [K_8 in keyof T_57]: T_57[K_8] } : never, keyof ThunkApiConfig_9> extends infer T_56 ? { [K_9 in keyof T_56]: T_56[K_9] } : never, keyof ThunkApiConfig_10> extends infer T_55 ? { [K_10 in keyof T_55]: T_55[K_10] } : never> & /*elided*/any;
|
|
221
216
|
};
|
|
222
217
|
};
|
|
223
218
|
};
|
|
@@ -231,4 +226,4 @@ declare const createAppAsyncThunk: _$_reduxjs_toolkit0.CreateAsyncThunkFunction<
|
|
|
231
226
|
};
|
|
232
227
|
//#endregion
|
|
233
228
|
export { commonErrorHandler as a, sessionReducer as c, useAppSelector as d, commonErrorFallback as i, store as l, MenderEnvironment as n, createAppAsyncThunk as o, RootState as r, getConfiguredStore as s, AppDispatch as t, useAppDispatch as u };
|
|
234
|
-
//# sourceMappingURL=store-
|
|
229
|
+
//# sourceMappingURL=store-Dd0Y2JCN.d.cts.map
|
package/dist/store.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./chunk-CKQMccvm.cjs");
|
|
3
2
|
const require_constants = require("./constants.cjs");
|
|
4
3
|
const require_appSlice_index = require("./appSlice/index.cjs");
|
|
5
4
|
const require_deploymentsSlice_index = require("./deploymentsSlice/index.cjs");
|
package/dist/store.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.cjs","names":["actions","settingsKeys","getToken","appSlice","deviceSlice","deploymentSlice","monitorSlice","onboardingSlice","organizationSlice","releaseSlice","userSlice","userActions","organizationActions","useDispatch","useSelector","createAsyncThunk"],"sources":["../src/store.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useDispatch, useSelector } from 'react-redux';\nimport type { TypedUseSelectorHook } from 'react-redux';\n\nimport { extractErrorMessage, preformatWithRequestID } from '@northern.tech/utils/helpers';\nimport type { Middleware, Reducer, UnknownAction } from '@reduxjs/toolkit';\nimport { combineReducers, configureStore, createAsyncThunk, isRejected } from '@reduxjs/toolkit';\nimport { createReduxEnhancer } from '@sentry/react';\n\nimport actions from './actions';\nimport appSlice from './appSlice';\nimport { getToken } from './auth';\nimport { USER_LOGOUT, settingsKeys } from './constants';\nimport deploymentSlice from './deploymentsSlice';\nimport deviceSlice from './devicesSlice';\nimport monitorSlice from './monitorSlice';\nimport onboardingSlice from './onboardingSlice';\nimport organizationSlice, { actions as organizationActions } from './organizationSlice';\nimport releaseSlice from './releasesSlice';\nimport userSlice, { actions as userActions } from './usersSlice';\n\nconst { setSnackbar, uploadProgress } = actions;\n\n// exclude 'pendings-redirect' since this is expected to persist refreshes - the rest should be better to be redone\nconst keys = ['sessionDeploymentChecker', settingsKeys.initialized];\nconst resetEnvironment = (): void => keys.forEach(key => window.sessionStorage.removeItem(key));\n\nresetEnvironment();\n\nexport type { ErrorWithResponse } from './utils';\n\nexport type MenderEnvironment = {\n [key: string]: unknown;\n demoArtifactPort?: string | number;\n disableOnboarding?: string;\n features: Record<string, string>;\n
|
|
1
|
+
{"version":3,"file":"store.cjs","names":["actions","settingsKeys","getToken","appSlice","deviceSlice","deploymentSlice","monitorSlice","onboardingSlice","organizationSlice","releaseSlice","userSlice","userActions","organizationActions","useDispatch","useSelector","createAsyncThunk"],"sources":["../src/store.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useDispatch, useSelector } from 'react-redux';\nimport type { TypedUseSelectorHook } from 'react-redux';\n\nimport { extractErrorMessage, preformatWithRequestID } from '@northern.tech/utils/helpers';\nimport type { Middleware, Reducer, UnknownAction } from '@reduxjs/toolkit';\nimport { combineReducers, configureStore, createAsyncThunk, isRejected } from '@reduxjs/toolkit';\nimport { createReduxEnhancer } from '@sentry/react';\n\nimport actions from './actions';\nimport appSlice from './appSlice';\nimport { getToken } from './auth';\nimport { USER_LOGOUT, settingsKeys } from './constants';\nimport deploymentSlice from './deploymentsSlice';\nimport deviceSlice from './devicesSlice';\nimport monitorSlice from './monitorSlice';\nimport onboardingSlice from './onboardingSlice';\nimport organizationSlice, { actions as organizationActions } from './organizationSlice';\nimport releaseSlice from './releasesSlice';\nimport userSlice, { actions as userActions } from './usersSlice';\n\nconst { setSnackbar, uploadProgress } = actions;\n\n// exclude 'pendings-redirect' since this is expected to persist refreshes - the rest should be better to be redone\nconst keys = ['sessionDeploymentChecker', settingsKeys.initialized];\nconst resetEnvironment = (): void => keys.forEach(key => window.sessionStorage.removeItem(key));\n\nresetEnvironment();\n\nexport type { ErrorWithResponse } from './utils';\n\nexport type MenderEnvironment = {\n [key: string]: unknown;\n demoArtifactPort?: string | number;\n disableOnboarding?: string;\n features: Record<string, string>;\n sentry?: { isReduxEnabled?: string | boolean };\n version: string;\n};\n\ndeclare global {\n interface Window {\n mender_environment?: MenderEnvironment;\n }\n}\n\nexport const commonErrorFallback = 'Please check your connection.';\nexport const commonErrorHandler = (\n err: { message?: string; response?: { data?: unknown } },\n errorContext: string,\n dispatch: AppDispatch,\n fallback?: string,\n mightBeAuthRelated = false\n): Promise<never> => {\n const errMsg = extractErrorMessage(err, fallback);\n if (mightBeAuthRelated || getToken()) {\n dispatch(setSnackbar({ message: preformatWithRequestID(err.response, `${errorContext} ${errMsg}`), action: 'Copy to clipboard' }));\n }\n return Promise.reject(err);\n};\n\nconst rootReducer = combineReducers({\n app: appSlice,\n devices: deviceSlice,\n deployments: deploymentSlice,\n monitor: monitorSlice,\n onboarding: onboardingSlice,\n organization: organizationSlice,\n releases: releaseSlice,\n users: userSlice\n});\n\ntype RootReducerState = ReturnType<typeof rootReducer>;\n\nconst sessionReducerImpl: Reducer<RootReducerState | undefined, UnknownAction> = (state, action) => {\n if (action.type === USER_LOGOUT) {\n state = undefined;\n }\n return rootReducer(state, action);\n};\n// Export for testing; cast to RootReducerState since undefined always falls through to initial slice states\nexport const sessionReducer = sessionReducerImpl as Reducer<RootReducerState>;\n\nconst rejectionLoggerMiddleware: Middleware = () => next => action => {\n if (isRejected(action)) {\n console.error('Rejection in action:', action);\n if (action.error) {\n console.error(action.error.stack);\n }\n }\n return next(action);\n};\n\nconst tracingActionIgnoreList = [userActions.successfullyLoggedIn.type, 'users/loginUser/pending', 'users/loginUser/fulfilled', 'users/loginUser/rejected'];\n\nconst sentryReduxEnhancer = createReduxEnhancer({\n actionTransformer: (action: UnknownAction) => {\n if (tracingActionIgnoreList.includes(action.type as string)) {\n return null;\n }\n return action;\n },\n // Transform the state to remove sensitive information\n stateTransformer: (state: RootState) => {\n const transformedState = {\n ...state,\n users: { ...state.users, currentSession: null },\n organization: {\n ...state.organization,\n organization: {\n ...state.organization.organization,\n tenant_token: null\n }\n }\n };\n return transformedState;\n }\n});\n\nexport const getConfiguredStore = (options: { [key: string]: unknown; preloadedState?: Partial<RootReducerState> } = {}) => {\n const { preloadedState, ...config } = options;\n return configureStore({\n ...config,\n preloadedState: preloadedState as RootReducerState,\n enhancers: getDefaultEnhancers => {\n // rely on the plain injected env object, as we're initializing the store only here\n if (window.mender_environment?.sentry?.isReduxEnabled) {\n return getDefaultEnhancers().concat(sentryReduxEnhancer);\n }\n return getDefaultEnhancers();\n },\n reducer: sessionReducer,\n // @ts-expect-error - GetDefaultMiddleware type mismatch between @reduxjs/toolkit and @sentry/react\n middleware: getDefaultMiddleware =>\n getDefaultMiddleware({\n immutableCheck: {\n ignoredPaths: ['app.uploadsById']\n },\n serializableCheck: {\n ignoredActions: [organizationActions.receiveExternalDeviceIntegrations.type, uploadProgress.type],\n ignoredActionPaths: ['uploads', /payload\\..*$/, 'meta.arg.file', 'meta.arg.integration.configHint'],\n ignoredPaths: ['app.uploadsById', 'organization.externalDeviceIntegrations']\n }\n }).concat(rejectionLoggerMiddleware)\n });\n};\nexport const store = getConfiguredStore({\n preloadedState: {}\n});\nexport type AppDispatch = typeof store.dispatch;\nexport type RootState = ReturnType<typeof rootReducer>;\nexport const useAppDispatch: () => AppDispatch = useDispatch;\nexport const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;\n\nexport const createAppAsyncThunk = createAsyncThunk.withTypes<{\n dispatch: AppDispatch;\n state: RootState;\n}>();\n"],"mappings":";;;;;;;;;;;;;;;;;AAiCA,MAAM,EAAE,aAAa,mBAAmBA;AAGxC,MAAM,OAAO,CAAC,4BAA4BC,kBAAAA,aAAa,WAAW;AAClE,MAAM,yBAA+B,KAAK,SAAQ,QAAO,OAAO,eAAe,WAAW,GAAG,CAAC;AAE9F,iBAAiB;AAmBjB,MAAa,sBAAsB;AACnC,MAAa,sBACX,KACA,cACA,UACA,UACA,qBAAqB,UACF;CACnB,MAAM,UAAA,GAAA,6BAAA,qBAA6B,KAAK,QAAQ;CAChD,IAAI,sBAAsBC,aAAAA,SAAS,GACjC,SAAS,YAAY;EAAE,UAAA,GAAA,6BAAA,wBAAgC,IAAI,UAAU,GAAG,aAAa,GAAG,QAAQ;EAAG,QAAQ;CAAoB,CAAC,CAAC;CAEnI,OAAO,QAAQ,OAAO,GAAG;AAC3B;AAEA,MAAM,eAAA,GAAA,iBAAA,iBAA8B;CAClC,KAAKC,uBAAAA;CACL,SAASC,2BAAAA;CACT,aAAaC,+BAAAA;CACb,SAASC,2BAAAA;CACT,YAAYC,8BAAAA;CACZ,cAAcC,gCAAAA;CACd,UAAUC,4BAAAA;CACV,OAAOC,yBAAAA;AACT,CAAC;AAID,MAAM,sBAA4E,OAAO,WAAW;CAClG,IAAI,OAAO,SAAA,eACT,QAAQ,KAAA;CAEV,OAAO,YAAY,OAAO,MAAM;AAClC;AAEA,MAAa,iBAAiB;AAE9B,MAAM,mCAA8C,UAAQ,WAAU;CACpE,KAAA,GAAA,iBAAA,YAAe,MAAM,GAAG;EACtB,QAAQ,MAAM,wBAAwB,MAAM;EAC5C,IAAI,OAAO,OACT,QAAQ,MAAM,OAAO,MAAM,KAAK;CAEpC;CACA,OAAO,KAAK,MAAM;AACpB;AAEA,MAAM,0BAA0B;CAACC,yBAAAA,QAAY,qBAAqB;CAAM;CAA2B;CAA6B;AAA0B;AAE1J,MAAM,uBAAA,GAAA,cAAA,qBAA0C;CAC9C,oBAAoB,WAA0B;EAC5C,IAAI,wBAAwB,SAAS,OAAO,IAAc,GACxD,OAAO;EAET,OAAO;CACT;CAEA,mBAAmB,UAAqB;EAYtC,OAAO;GAVL,GAAG;GACH,OAAO;IAAE,GAAG,MAAM;IAAO,gBAAgB;GAAK;GAC9C,cAAc;IACZ,GAAG,MAAM;IACT,cAAc;KACZ,GAAG,MAAM,aAAa;KACtB,cAAc;IAChB;GACF;EAEoB;CACxB;AACF,CAAC;AAED,MAAa,sBAAsB,UAAkF,CAAC,MAAM;CAC1H,MAAM,EAAE,gBAAgB,GAAG,WAAW;CACtC,QAAA,GAAA,iBAAA,gBAAsB;EACpB,GAAG;EACa;EAChB,YAAW,wBAAuB;GAEhC,IAAI,OAAO,oBAAoB,QAAQ,gBACrC,OAAO,oBAAoB,EAAE,OAAO,mBAAmB;GAEzD,OAAO,oBAAoB;EAC7B;EACA,SAAS;EAET,aAAY,yBACV,qBAAqB;GACnB,gBAAgB,EACd,cAAc,CAAC,iBAAiB,EAClC;GACA,mBAAmB;IACjB,gBAAgB,CAACC,gCAAAA,QAAoB,kCAAkC,MAAM,eAAe,IAAI;IAChG,oBAAoB;KAAC;KAAW;KAAgB;KAAiB;IAAiC;IAClG,cAAc,CAAC,mBAAmB,yCAAyC;GAC7E;EACF,CAAC,EAAE,OAAO,yBAAyB;CACvC,CAAC;AACH;AACA,MAAa,QAAQ,mBAAmB,EACtC,gBAAgB,CAAC,EACnB,CAAC;AAGD,MAAa,iBAAoCC,YAAAA;AACjD,MAAa,iBAAkDC,YAAAA;AAE/D,MAAa,sBAAsBC,iBAAAA,iBAAiB,UAGjD"}
|
package/dist/store.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as ErrorWithResponse } from "./utils-
|
|
2
|
-
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-
|
|
3
|
-
export { AppDispatch, ErrorWithResponse, MenderEnvironment, RootState, commonErrorFallback, commonErrorHandler, createAppAsyncThunk, getConfiguredStore, sessionReducer, store, useAppDispatch, useAppSelector };
|
|
1
|
+
import { n as ErrorWithResponse } from "./utils-DbXmZmGq.cjs";
|
|
2
|
+
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-Dd0Y2JCN.cjs";
|
|
3
|
+
export { AppDispatch, type ErrorWithResponse, MenderEnvironment, RootState, commonErrorFallback, commonErrorHandler, createAppAsyncThunk, getConfiguredStore, sessionReducer, store, useAppDispatch, useAppSelector };
|
package/dist/store.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as ErrorWithResponse } from "./utils-
|
|
2
|
-
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-
|
|
3
|
-
export { AppDispatch, ErrorWithResponse, MenderEnvironment, RootState, commonErrorFallback, commonErrorHandler, createAppAsyncThunk, getConfiguredStore, sessionReducer, store, useAppDispatch, useAppSelector };
|
|
1
|
+
import { n as ErrorWithResponse } from "./utils-C_9XEfi_.js";
|
|
2
|
+
import { a as commonErrorHandler, c as sessionReducer, d as useAppSelector, i as commonErrorFallback, l as store, n as MenderEnvironment, o as createAppAsyncThunk, r as RootState, s as getConfiguredStore, t as AppDispatch, u as useAppDispatch } from "./store-Co2ptTSm.js";
|
|
3
|
+
export { AppDispatch, type ErrorWithResponse, MenderEnvironment, RootState, commonErrorFallback, commonErrorHandler, createAppAsyncThunk, getConfiguredStore, sessionReducer, store, useAppDispatch, useAppSelector };
|
package/dist/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","names":["actions","appSlice","deviceSlice","deploymentSlice","monitorSlice","onboardingSlice","organizationSlice","releaseSlice","userSlice","userActions","organizationActions"],"sources":["../src/store.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useDispatch, useSelector } from 'react-redux';\nimport type { TypedUseSelectorHook } from 'react-redux';\n\nimport { extractErrorMessage, preformatWithRequestID } from '@northern.tech/utils/helpers';\nimport type { Middleware, Reducer, UnknownAction } from '@reduxjs/toolkit';\nimport { combineReducers, configureStore, createAsyncThunk, isRejected } from '@reduxjs/toolkit';\nimport { createReduxEnhancer } from '@sentry/react';\n\nimport actions from './actions';\nimport appSlice from './appSlice';\nimport { getToken } from './auth';\nimport { USER_LOGOUT, settingsKeys } from './constants';\nimport deploymentSlice from './deploymentsSlice';\nimport deviceSlice from './devicesSlice';\nimport monitorSlice from './monitorSlice';\nimport onboardingSlice from './onboardingSlice';\nimport organizationSlice, { actions as organizationActions } from './organizationSlice';\nimport releaseSlice from './releasesSlice';\nimport userSlice, { actions as userActions } from './usersSlice';\n\nconst { setSnackbar, uploadProgress } = actions;\n\n// exclude 'pendings-redirect' since this is expected to persist refreshes - the rest should be better to be redone\nconst keys = ['sessionDeploymentChecker', settingsKeys.initialized];\nconst resetEnvironment = (): void => keys.forEach(key => window.sessionStorage.removeItem(key));\n\nresetEnvironment();\n\nexport type { ErrorWithResponse } from './utils';\n\nexport type MenderEnvironment = {\n [key: string]: unknown;\n demoArtifactPort?: string | number;\n disableOnboarding?: string;\n features: Record<string, string>;\n
|
|
1
|
+
{"version":3,"file":"store.js","names":["actions","appSlice","deviceSlice","deploymentSlice","monitorSlice","onboardingSlice","organizationSlice","releaseSlice","userSlice","userActions","organizationActions"],"sources":["../src/store.ts"],"sourcesContent":["// Copyright 2019 Northern.tech AS\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nimport { useDispatch, useSelector } from 'react-redux';\nimport type { TypedUseSelectorHook } from 'react-redux';\n\nimport { extractErrorMessage, preformatWithRequestID } from '@northern.tech/utils/helpers';\nimport type { Middleware, Reducer, UnknownAction } from '@reduxjs/toolkit';\nimport { combineReducers, configureStore, createAsyncThunk, isRejected } from '@reduxjs/toolkit';\nimport { createReduxEnhancer } from '@sentry/react';\n\nimport actions from './actions';\nimport appSlice from './appSlice';\nimport { getToken } from './auth';\nimport { USER_LOGOUT, settingsKeys } from './constants';\nimport deploymentSlice from './deploymentsSlice';\nimport deviceSlice from './devicesSlice';\nimport monitorSlice from './monitorSlice';\nimport onboardingSlice from './onboardingSlice';\nimport organizationSlice, { actions as organizationActions } from './organizationSlice';\nimport releaseSlice from './releasesSlice';\nimport userSlice, { actions as userActions } from './usersSlice';\n\nconst { setSnackbar, uploadProgress } = actions;\n\n// exclude 'pendings-redirect' since this is expected to persist refreshes - the rest should be better to be redone\nconst keys = ['sessionDeploymentChecker', settingsKeys.initialized];\nconst resetEnvironment = (): void => keys.forEach(key => window.sessionStorage.removeItem(key));\n\nresetEnvironment();\n\nexport type { ErrorWithResponse } from './utils';\n\nexport type MenderEnvironment = {\n [key: string]: unknown;\n demoArtifactPort?: string | number;\n disableOnboarding?: string;\n features: Record<string, string>;\n sentry?: { isReduxEnabled?: string | boolean };\n version: string;\n};\n\ndeclare global {\n interface Window {\n mender_environment?: MenderEnvironment;\n }\n}\n\nexport const commonErrorFallback = 'Please check your connection.';\nexport const commonErrorHandler = (\n err: { message?: string; response?: { data?: unknown } },\n errorContext: string,\n dispatch: AppDispatch,\n fallback?: string,\n mightBeAuthRelated = false\n): Promise<never> => {\n const errMsg = extractErrorMessage(err, fallback);\n if (mightBeAuthRelated || getToken()) {\n dispatch(setSnackbar({ message: preformatWithRequestID(err.response, `${errorContext} ${errMsg}`), action: 'Copy to clipboard' }));\n }\n return Promise.reject(err);\n};\n\nconst rootReducer = combineReducers({\n app: appSlice,\n devices: deviceSlice,\n deployments: deploymentSlice,\n monitor: monitorSlice,\n onboarding: onboardingSlice,\n organization: organizationSlice,\n releases: releaseSlice,\n users: userSlice\n});\n\ntype RootReducerState = ReturnType<typeof rootReducer>;\n\nconst sessionReducerImpl: Reducer<RootReducerState | undefined, UnknownAction> = (state, action) => {\n if (action.type === USER_LOGOUT) {\n state = undefined;\n }\n return rootReducer(state, action);\n};\n// Export for testing; cast to RootReducerState since undefined always falls through to initial slice states\nexport const sessionReducer = sessionReducerImpl as Reducer<RootReducerState>;\n\nconst rejectionLoggerMiddleware: Middleware = () => next => action => {\n if (isRejected(action)) {\n console.error('Rejection in action:', action);\n if (action.error) {\n console.error(action.error.stack);\n }\n }\n return next(action);\n};\n\nconst tracingActionIgnoreList = [userActions.successfullyLoggedIn.type, 'users/loginUser/pending', 'users/loginUser/fulfilled', 'users/loginUser/rejected'];\n\nconst sentryReduxEnhancer = createReduxEnhancer({\n actionTransformer: (action: UnknownAction) => {\n if (tracingActionIgnoreList.includes(action.type as string)) {\n return null;\n }\n return action;\n },\n // Transform the state to remove sensitive information\n stateTransformer: (state: RootState) => {\n const transformedState = {\n ...state,\n users: { ...state.users, currentSession: null },\n organization: {\n ...state.organization,\n organization: {\n ...state.organization.organization,\n tenant_token: null\n }\n }\n };\n return transformedState;\n }\n});\n\nexport const getConfiguredStore = (options: { [key: string]: unknown; preloadedState?: Partial<RootReducerState> } = {}) => {\n const { preloadedState, ...config } = options;\n return configureStore({\n ...config,\n preloadedState: preloadedState as RootReducerState,\n enhancers: getDefaultEnhancers => {\n // rely on the plain injected env object, as we're initializing the store only here\n if (window.mender_environment?.sentry?.isReduxEnabled) {\n return getDefaultEnhancers().concat(sentryReduxEnhancer);\n }\n return getDefaultEnhancers();\n },\n reducer: sessionReducer,\n // @ts-expect-error - GetDefaultMiddleware type mismatch between @reduxjs/toolkit and @sentry/react\n middleware: getDefaultMiddleware =>\n getDefaultMiddleware({\n immutableCheck: {\n ignoredPaths: ['app.uploadsById']\n },\n serializableCheck: {\n ignoredActions: [organizationActions.receiveExternalDeviceIntegrations.type, uploadProgress.type],\n ignoredActionPaths: ['uploads', /payload\\..*$/, 'meta.arg.file', 'meta.arg.integration.configHint'],\n ignoredPaths: ['app.uploadsById', 'organization.externalDeviceIntegrations']\n }\n }).concat(rejectionLoggerMiddleware)\n });\n};\nexport const store = getConfiguredStore({\n preloadedState: {}\n});\nexport type AppDispatch = typeof store.dispatch;\nexport type RootState = ReturnType<typeof rootReducer>;\nexport const useAppDispatch: () => AppDispatch = useDispatch;\nexport const useAppSelector: TypedUseSelectorHook<RootState> = useSelector;\n\nexport const createAppAsyncThunk = createAsyncThunk.withTypes<{\n dispatch: AppDispatch;\n state: RootState;\n}>();\n"],"mappings":";;;;;;;;;;;;;;;;AAiCA,MAAM,EAAE,aAAa,mBAAmBA;AAGxC,MAAM,OAAO,CAAC,4BAA4B,aAAa,WAAW;AAClE,MAAM,yBAA+B,KAAK,SAAQ,QAAO,OAAO,eAAe,WAAW,GAAG,CAAC;AAE9F,iBAAiB;AAmBjB,MAAa,sBAAsB;AACnC,MAAa,sBACX,KACA,cACA,UACA,UACA,qBAAqB,UACF;CACnB,MAAM,SAAS,oBAAoB,KAAK,QAAQ;CAChD,IAAI,sBAAsB,SAAS,GACjC,SAAS,YAAY;EAAE,SAAS,uBAAuB,IAAI,UAAU,GAAG,aAAa,GAAG,QAAQ;EAAG,QAAQ;CAAoB,CAAC,CAAC;CAEnI,OAAO,QAAQ,OAAO,GAAG;AAC3B;AAEA,MAAM,cAAc,gBAAgB;CAClC,KAAKC;CACL,SAASC;CACT,aAAaC;CACb,SAASC;CACT,YAAYC;CACZ,cAAcC;CACd,UAAUC;CACV,OAAOC;AACT,CAAC;AAID,MAAM,sBAA4E,OAAO,WAAW;CAClG,IAAI,OAAO,SAAA,eACT,QAAQ,KAAA;CAEV,OAAO,YAAY,OAAO,MAAM;AAClC;AAEA,MAAa,iBAAiB;AAE9B,MAAM,mCAA8C,UAAQ,WAAU;CACpE,IAAI,WAAW,MAAM,GAAG;EACtB,QAAQ,MAAM,wBAAwB,MAAM;EAC5C,IAAI,OAAO,OACT,QAAQ,MAAM,OAAO,MAAM,KAAK;CAEpC;CACA,OAAO,KAAK,MAAM;AACpB;AAEA,MAAM,0BAA0B;CAACC,UAAY,qBAAqB;CAAM;CAA2B;CAA6B;AAA0B;AAE1J,MAAM,sBAAsB,oBAAoB;CAC9C,oBAAoB,WAA0B;EAC5C,IAAI,wBAAwB,SAAS,OAAO,IAAc,GACxD,OAAO;EAET,OAAO;CACT;CAEA,mBAAmB,UAAqB;EAYtC,OAAO;GAVL,GAAG;GACH,OAAO;IAAE,GAAG,MAAM;IAAO,gBAAgB;GAAK;GAC9C,cAAc;IACZ,GAAG,MAAM;IACT,cAAc;KACZ,GAAG,MAAM,aAAa;KACtB,cAAc;IAChB;GACF;EAEoB;CACxB;AACF,CAAC;AAED,MAAa,sBAAsB,UAAkF,CAAC,MAAM;CAC1H,MAAM,EAAE,gBAAgB,GAAG,WAAW;CACtC,OAAO,eAAe;EACpB,GAAG;EACa;EAChB,YAAW,wBAAuB;GAEhC,IAAI,OAAO,oBAAoB,QAAQ,gBACrC,OAAO,oBAAoB,EAAE,OAAO,mBAAmB;GAEzD,OAAO,oBAAoB;EAC7B;EACA,SAAS;EAET,aAAY,yBACV,qBAAqB;GACnB,gBAAgB,EACd,cAAc,CAAC,iBAAiB,EAClC;GACA,mBAAmB;IACjB,gBAAgB,CAACC,QAAoB,kCAAkC,MAAM,eAAe,IAAI;IAChG,oBAAoB;KAAC;KAAW;KAAgB;KAAiB;IAAiC;IAClG,cAAc,CAAC,mBAAmB,yCAAyC;GAC7E;EACF,CAAC,EAAE,OAAO,yBAAyB;CACvC,CAAC;AACH;AACA,MAAa,QAAQ,mBAAmB,EACtC,gBAAgB,CAAC,EACnB,CAAC;AAGD,MAAa,iBAAoC;AACjD,MAAa,iBAAkD;AAE/D,MAAa,sBAAsB,iBAAiB,UAGjD"}
|
package/dist/storehooks.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_chunk = require("./chunk-
|
|
2
|
+
const require_chunk = require("./chunk-D6vf50IK.cjs");
|
|
3
3
|
const require_constants = require("./constants.cjs");
|
|
4
4
|
const require_actions = require("./actions.cjs");
|
|
5
5
|
const require_auth = require("./auth.cjs");
|
|
@@ -57,7 +57,7 @@ const parseEnvironmentInfo = require_store.createAppAsyncThunk(`app/parseEnviron
|
|
|
57
57
|
let versionInfo = {};
|
|
58
58
|
const mender_environment = window.mender_environment;
|
|
59
59
|
if (mender_environment) {
|
|
60
|
-
const { features = {}, demoArtifactPort: port, disableOnboarding,
|
|
60
|
+
const { features = {}, demoArtifactPort: port, disableOnboarding, version } = mender_environment;
|
|
61
61
|
demoArtifactPort = Number(port) || demoArtifactPort;
|
|
62
62
|
const appState = state.app;
|
|
63
63
|
environmentData = environmentDatas.reduce((accu, flag) => ({
|
|
@@ -73,12 +73,8 @@ const parseEnvironmentInfo = require_store.createAppAsyncThunk(`app/parseEnviron
|
|
|
73
73
|
};
|
|
74
74
|
onboardingComplete = !environmentFeatures.isHosted || require_utils.stringToBoolean(disableOnboarding) || onboardingComplete;
|
|
75
75
|
versionInfo = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Integration: require_utils.getComparisonCompatibleVersion(integrationVersion),
|
|
79
|
-
"Mender-Artifact": menderArtifactVersion,
|
|
80
|
-
"Meta-Mender": metaMenderVersion
|
|
81
|
-
}
|
|
76
|
+
docsVersion: isNaN(parseInt(version.charAt(0))) ? "" : version.split(".").slice(0, 2).join("."),
|
|
77
|
+
version
|
|
82
78
|
};
|
|
83
79
|
}
|
|
84
80
|
return Promise.all([
|
|
@@ -86,12 +82,8 @@ const parseEnvironmentInfo = require_store.createAppAsyncThunk(`app/parseEnviron
|
|
|
86
82
|
dispatch(require_actions.setOnboardingComplete(onboardingComplete)),
|
|
87
83
|
dispatch(require_actions.setDemoArtifactPort(demoArtifactPort)),
|
|
88
84
|
dispatch(require_actions.setFeatures(environmentFeatures)),
|
|
89
|
-
dispatch(require_actions.setVersionInformation(
|
|
90
|
-
|
|
91
|
-
docsVersion: versionInfo.docs
|
|
92
|
-
})),
|
|
93
|
-
dispatch(require_actions.setEnvironmentData(environmentData)),
|
|
94
|
-
dispatch(require_thunks.getLatestReleaseInfo())
|
|
85
|
+
dispatch(require_actions.setVersionInformation(versionInfo)),
|
|
86
|
+
dispatch(require_actions.setEnvironmentData(environmentData))
|
|
95
87
|
]);
|
|
96
88
|
});
|
|
97
89
|
const maybeAddOnboardingTasks = ({ devicesByStatus, dispatch, onboardingState, tasks }) => {
|