andoncloud-sdk 1.7.23 → 1.7.25
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 +14 -3
- package/dist/index.js +4012 -0
- package/dist/index.js.map +1 -0
- package/package.json +7 -20
- package/dist/andoncloud-sdk.css +0 -2
- package/dist/andoncloud-sdk.css.map +0 -1
- package/dist/andoncloud-sdk.js +0 -173
- package/dist/andoncloud-sdk.js.map +0 -1
- package/dist/app/__tests__/loginWithPassword.d.ts +0 -1
- package/dist/app/components/Header/Header.d.ts +0 -3
- package/dist/app/components/Header/Header.test.d.ts +0 -1
- package/dist/app/components/Header/index.d.ts +0 -1
- package/dist/app/components/Header/styles.d.ts +0 -11
- package/dist/app/components/Header/types.d.ts +0 -53
- package/dist/app/components/access/AccessBlocker.d.ts +0 -12
- package/dist/app/components/access/AccessBlocker.styles.d.ts +0 -34
- package/dist/app/components/access/AccessBlocker.test.d.ts +0 -1
- package/dist/app/components/access/AccessGuard.d.ts +0 -9
- package/dist/app/components/access/AccessGuard.test.d.ts +0 -1
- package/dist/app/components/access/AccessRequestModal.d.ts +0 -8
- package/dist/app/components/access/AccessRequestModal.styles.d.ts +0 -31
- package/dist/app/components/access/AccessRequestModal.test.d.ts +0 -1
- package/dist/app/components/access/CooldownModal.d.ts +0 -7
- package/dist/app/components/access/CooldownModal.styles.d.ts +0 -30
- package/dist/app/components/access/CooldownModal.test.d.ts +0 -1
- package/dist/app/components/access/InternalProcedureScreen.d.ts +0 -7
- package/dist/app/components/access/InternalProcedureScreen.styles.d.ts +0 -26
- package/dist/app/components/access/InternalProcedureScreen.test.d.ts +0 -1
- package/dist/app/components/access/index.d.ts +0 -3
- package/dist/app/components/access/withAccessGuard.d.ts +0 -6
- package/dist/app/components/access/withAccessGuard.test.d.ts +0 -1
- package/dist/app/components/app.d.ts +0 -3
- package/dist/app/components/authRedirect.d.ts +0 -3
- package/dist/app/components/container.d.ts +0 -44
- package/dist/app/components/container.styles.d.ts +0 -20
- package/dist/app/components/container.test.d.ts +0 -1
- package/dist/app/components/externalContent.d.ts +0 -5
- package/dist/app/components/footer.d.ts +0 -6
- package/dist/app/components/header.d.ts +0 -46
- package/dist/app/components/header.styles.d.ts +0 -50
- package/dist/app/components/header.test.d.ts +0 -1
- package/dist/app/components/iframeNavigation.d.ts +0 -2
- package/dist/app/components/loader.d.ts +0 -6
- package/dist/app/components/loginForm.d.ts +0 -29
- package/dist/app/components/loginForm.test.d.ts +0 -1
- package/dist/app/components/loginModal.d.ts +0 -31
- package/dist/app/components/loginModal.test.d.ts +0 -1
- package/dist/app/components/loginRedirect.d.ts +0 -3
- package/dist/app/components/messageNavigator.d.ts +0 -2
- package/dist/app/components/networkError.d.ts +0 -4
- package/dist/app/components/router.d.ts +0 -5
- package/dist/app/components/sidePanel.d.ts +0 -66
- package/dist/app/components/sidePanel.styles.d.ts +0 -15
- package/dist/app/components/sidebarMenu.d.ts +0 -32
- package/dist/app/components/sidebarMenu.styles.d.ts +0 -32
- package/dist/app/components/version.d.ts +0 -6
- package/dist/app/core/ui/Checkbox/Checkbox.d.ts +0 -7
- package/dist/app/core/ui/Checkbox/index.d.ts +0 -1
- package/dist/app/core/ui/Checkbox/styled.d.ts +0 -20
- package/dist/app/core/ui/Radio/Radio.d.ts +0 -7
- package/dist/app/core/ui/Radio/index.d.ts +0 -1
- package/dist/app/core/ui/Radio/styled.d.ts +0 -20
- package/dist/app/core/ui/RadioGroup/RadioGroup.d.ts +0 -7
- package/dist/app/core/ui/RadioGroup/index.d.ts +0 -1
- package/dist/app/core/ui/RadioGroup/styled.d.ts +0 -7
- package/dist/app/hooks/useAccess/accessState.d.ts +0 -7
- package/dist/app/hooks/useAccess/deriveButtons.d.ts +0 -5
- package/dist/app/hooks/useAccess/index.d.ts +0 -11
- package/dist/app/hooks/useAccess.d.ts +0 -10
- package/dist/app/hooks/useAccess.test.d.ts +0 -1
- package/dist/app/hooks/useFeatures.d.ts +0 -6
- package/dist/app/hooks/useFeatures.test.d.ts +0 -1
- package/dist/app/hooks/useFetch.d.ts +0 -2
- package/dist/app/hooks/useHeaderContentEvent.d.ts +0 -3
- package/dist/app/hooks/useHeaderContentEvent.test.d.ts +0 -1
- package/dist/app/hooks/useLogin.d.ts +0 -2
- package/dist/app/hooks/useLoginStatus.d.ts +0 -4
- package/dist/app/hooks/useModalHook/ModalContext.d.ts +0 -7
- package/dist/app/hooks/useModalHook/ModalProvider.d.ts +0 -5
- package/dist/app/hooks/useModalHook/index.d.ts +0 -3
- package/dist/app/hooks/useModalHook/useModal.d.ts +0 -8
- package/dist/app/hooks/usePackages.d.ts +0 -6
- package/dist/app/hooks/usePackages.test.d.ts +0 -1
- package/dist/app/hooks/usePermissions.d.ts +0 -13
- package/dist/app/hooks/usePermissions.test.d.ts +0 -1
- package/dist/app/hooks/useQueryParams.d.ts +0 -2
- package/dist/app/i18n.d.ts +0 -2
- package/dist/app/pages/ErrorPage.d.ts +0 -14
- package/dist/app/pages/ExternalPage.d.ts +0 -5
- package/dist/app/pages/LoaderPage.d.ts +0 -7
- package/dist/app/pages/LoginPage.d.ts +0 -15
- package/dist/app/providers/authConfig.d.ts +0 -6
- package/dist/app/providers/display.d.ts +0 -5
- package/dist/app/providers/displayMode.d.ts +0 -5
- package/dist/app/providers/metaInfo.d.ts +0 -6
- package/dist/app/providers/store.d.ts +0 -171
- package/dist/app/stores/appStore.d.ts +0 -10
- package/dist/app/stores/sessionStore.d.ts +0 -83
- package/dist/app/stores/userStore.d.ts +0 -14
- package/dist/app/testing/index.d.ts +0 -2
- package/dist/app/theme.d.ts +0 -2
- package/dist/app/utils/cookies-manager.d.ts +0 -7
- package/dist/app/utils/display.d.ts +0 -13
- package/dist/app/utils/fetch.d.ts +0 -9
- package/dist/app/utils/service-worker.d.ts +0 -1
- package/dist/app/utils/stores.d.ts +0 -22
- package/dist/app/utils/text.d.ts +0 -1
- package/dist/app/utils/window.d.ts +0 -1
- package/dist/assets/index.d.ts +0 -1
- package/dist/assets/logo.svg.d.ts +0 -2
- package/dist/cypress/support/component.d.ts +0 -9
- package/dist/cypress.config.d.ts +0 -2
- package/dist/locales/i18n.d.ts +0 -22
- package/dist/locales/index.d.ts +0 -2
- package/dist/serviceWorkerRegistration.d.ts +0 -2
- package/dist/setupTests.d.ts +0 -1
- package/dist/src/__tests__/loginWithPassword.cy.d.ts +0 -1
- package/dist/src/app/__tests__/loginWithPassword.cy.d.ts +0 -1
- package/dist/src/app/__tests__/loginWithPassword.d.ts +0 -1
- package/dist/src/app/components/Header/Header.cy.d.ts +0 -1
- package/dist/src/app/components/Header/Header.d.ts +0 -3
- package/dist/src/app/components/Header/Header.test.d.ts +0 -1
- package/dist/src/app/components/Header/index.d.ts +0 -1
- package/dist/src/app/components/Header/styles.d.ts +0 -11
- package/dist/src/app/components/Header/types.d.ts +0 -53
- package/dist/src/app/components/access/AccessBlocker.cy.d.ts +0 -1
- package/dist/src/app/components/access/AccessBlocker.d.ts +0 -12
- package/dist/src/app/components/access/AccessBlocker.styles.d.ts +0 -34
- package/dist/src/app/components/access/AccessBlocker.test.d.ts +0 -1
- package/dist/src/app/components/access/AccessGuard.cy.d.ts +0 -1
- package/dist/src/app/components/access/AccessGuard.d.ts +0 -9
- package/dist/src/app/components/access/AccessGuard.test.d.ts +0 -1
- package/dist/src/app/components/access/AccessRequestModal.cy.d.ts +0 -1
- package/dist/src/app/components/access/AccessRequestModal.d.ts +0 -8
- package/dist/src/app/components/access/AccessRequestModal.styles.d.ts +0 -31
- package/dist/src/app/components/access/AccessRequestModal.test.d.ts +0 -1
- package/dist/src/app/components/access/CooldownModal.cy.d.ts +0 -1
- package/dist/src/app/components/access/CooldownModal.d.ts +0 -7
- package/dist/src/app/components/access/CooldownModal.styles.d.ts +0 -30
- package/dist/src/app/components/access/CooldownModal.test.d.ts +0 -1
- package/dist/src/app/components/access/index.d.ts +0 -3
- package/dist/src/app/components/access/withAccessGuard.cy.d.ts +0 -1
- package/dist/src/app/components/access/withAccessGuard.d.ts +0 -6
- package/dist/src/app/components/access/withAccessGuard.test.d.ts +0 -1
- package/dist/src/app/components/app.d.ts +0 -3
- package/dist/src/app/components/authRedirect.d.ts +0 -3
- package/dist/src/app/components/container.cy.d.ts +0 -1
- package/dist/src/app/components/container.d.ts +0 -44
- package/dist/src/app/components/container.styles.d.ts +0 -20
- package/dist/src/app/components/container.test.d.ts +0 -1
- package/dist/src/app/components/externalContent.d.ts +0 -5
- package/dist/src/app/components/footer.d.ts +0 -6
- package/dist/src/app/components/iframeNavigation.d.ts +0 -2
- package/dist/src/app/components/loader.d.ts +0 -6
- package/dist/src/app/components/loginForm.cy.d.ts +0 -1
- package/dist/src/app/components/loginForm.d.ts +0 -29
- package/dist/src/app/components/loginForm.test.d.ts +0 -1
- package/dist/src/app/components/loginModal.cy.d.ts +0 -1
- package/dist/src/app/components/loginModal.d.ts +0 -31
- package/dist/src/app/components/loginModal.test.d.ts +0 -1
- package/dist/src/app/components/loginRedirect.d.ts +0 -3
- package/dist/src/app/components/networkError.d.ts +0 -4
- package/dist/src/app/components/router.d.ts +0 -5
- package/dist/src/app/components/sidePanel.d.ts +0 -66
- package/dist/src/app/components/sidePanel.styles.d.ts +0 -15
- package/dist/src/app/components/sidebarMenu.d.ts +0 -32
- package/dist/src/app/components/sidebarMenu.styles.d.ts +0 -32
- package/dist/src/app/core/ui/Checkbox/Checkbox.d.ts +0 -6
- package/dist/src/app/core/ui/Checkbox/index.d.ts +0 -1
- package/dist/src/app/core/ui/Checkbox/styled.d.ts +0 -7
- package/dist/src/app/core/ui/Radio/Radio.d.ts +0 -6
- package/dist/src/app/core/ui/Radio/index.d.ts +0 -1
- package/dist/src/app/core/ui/Radio/styled.d.ts +0 -7
- package/dist/src/app/core/ui/RadioGroup/RadioGroup.d.ts +0 -6
- package/dist/src/app/core/ui/RadioGroup/index.d.ts +0 -1
- package/dist/src/app/core/ui/RadioGroup/styled.d.ts +0 -4
- package/dist/src/app/hooks/useAccess/accessState.d.ts +0 -7
- package/dist/src/app/hooks/useAccess/deriveButtons.d.ts +0 -5
- package/dist/src/app/hooks/useAccess/index.d.ts +0 -11
- package/dist/src/app/hooks/useAccess.cy.d.ts +0 -1
- package/dist/src/app/hooks/useAccess.test.d.ts +0 -1
- package/dist/src/app/hooks/useFeatures.cy.d.ts +0 -1
- package/dist/src/app/hooks/useFeatures.d.ts +0 -6
- package/dist/src/app/hooks/useFeatures.test.d.ts +0 -1
- package/dist/src/app/hooks/useHeaderContentEvent.cy.d.ts +0 -1
- package/dist/src/app/hooks/useHeaderContentEvent.d.ts +0 -3
- package/dist/src/app/hooks/useHeaderContentEvent.test.d.ts +0 -1
- package/dist/src/app/hooks/useLogin.d.ts +0 -2
- package/dist/src/app/hooks/useLoginStatus.d.ts +0 -4
- package/dist/src/app/hooks/useModalHook/ModalContext.d.ts +0 -7
- package/dist/src/app/hooks/useModalHook/ModalProvider.d.ts +0 -5
- package/dist/src/app/hooks/useModalHook/index.d.ts +0 -3
- package/dist/src/app/hooks/useModalHook/useModal.d.ts +0 -8
- package/dist/src/app/hooks/usePermissions.cy.d.ts +0 -1
- package/dist/src/app/hooks/usePermissions.d.ts +0 -13
- package/dist/src/app/hooks/usePermissions.test.d.ts +0 -1
- package/dist/src/app/hooks/useQueryParams.d.ts +0 -2
- package/dist/src/app/i18n.d.ts +0 -3
- package/dist/src/app/pages/ErrorPage.d.ts +0 -14
- package/dist/src/app/pages/LoaderPage.d.ts +0 -7
- package/dist/src/app/pages/LoginPage.d.ts +0 -15
- package/dist/src/app/providers/authConfig.d.ts +0 -6
- package/dist/src/app/providers/display.d.ts +0 -5
- package/dist/src/app/providers/metaInfo.d.ts +0 -6
- package/dist/src/app/providers/store.d.ts +0 -171
- package/dist/src/app/stores/appStore.d.ts +0 -10
- package/dist/src/app/stores/sessionStore.d.ts +0 -83
- package/dist/src/app/stores/userStore.d.ts +0 -14
- package/dist/src/app/testing/index.d.ts +0 -2
- package/dist/src/app/theme.d.ts +0 -2
- package/dist/src/app/utils/cookies-manager.d.ts +0 -7
- package/dist/src/app/utils/display.d.ts +0 -13
- package/dist/src/app/utils/fetch.d.ts +0 -9
- package/dist/src/app/utils/service-worker.d.ts +0 -1
- package/dist/src/app/utils/stores.d.ts +0 -22
- package/dist/src/app/utils/text.d.ts +0 -1
- package/dist/src/assets/index.d.ts +0 -1
- package/dist/src/components/Header/Header.cy.d.ts +0 -1
- package/dist/src/components/Header/Header.d.ts +0 -3
- package/dist/src/components/Header/index.d.ts +0 -1
- package/dist/src/components/Header/styles.d.ts +0 -11
- package/dist/src/components/Header/types.d.ts +0 -52
- package/dist/src/components/access/AccessBlocker.cy.d.ts +0 -1
- package/dist/src/components/access/AccessBlocker.d.ts +0 -13
- package/dist/src/components/access/AccessBlocker.styles.d.ts +0 -43
- package/dist/src/components/access/AccessGuard.cy.d.ts +0 -1
- package/dist/src/components/access/AccessGuard.d.ts +0 -10
- package/dist/src/components/access/AccessRequestModal.cy.d.ts +0 -1
- package/dist/src/components/access/AccessRequestModal.d.ts +0 -8
- package/dist/src/components/access/AccessRequestModal.styles.d.ts +0 -31
- package/dist/src/components/access/CooldownModal.cy.d.ts +0 -1
- package/dist/src/components/access/CooldownModal.d.ts +0 -7
- package/dist/src/components/access/CooldownModal.styles.d.ts +0 -30
- package/dist/src/components/access/index.d.ts +0 -3
- package/dist/src/components/access/withAccessGuard.cy.d.ts +0 -1
- package/dist/src/components/access/withAccessGuard.d.ts +0 -6
- package/dist/src/components/app.d.ts +0 -3
- package/dist/src/components/authRedirect.cy.d.ts +0 -1
- package/dist/src/components/authRedirect.d.ts +0 -3
- package/dist/src/components/container.cy.d.ts +0 -1
- package/dist/src/components/container.d.ts +0 -44
- package/dist/src/components/container.styles.d.ts +0 -20
- package/dist/src/components/externalContent.d.ts +0 -5
- package/dist/src/components/footer.d.ts +0 -6
- package/dist/src/components/iframeNavigation.d.ts +0 -2
- package/dist/src/components/loader.d.ts +0 -6
- package/dist/src/components/loginForm.cy.d.ts +0 -1
- package/dist/src/components/loginForm.d.ts +0 -29
- package/dist/src/components/loginModal.cy.d.ts +0 -1
- package/dist/src/components/loginModal.d.ts +0 -16
- package/dist/src/components/loginRedirect.d.ts +0 -3
- package/dist/src/components/networkError.d.ts +0 -4
- package/dist/src/components/router.d.ts +0 -5
- package/dist/src/components/sidePanel.d.ts +0 -66
- package/dist/src/components/sidePanel.styles.d.ts +0 -15
- package/dist/src/components/sidebarMenu.d.ts +0 -32
- package/dist/src/components/sidebarMenu.styles.d.ts +0 -32
- package/dist/src/core/ui/Checkbox/Checkbox.d.ts +0 -6
- package/dist/src/core/ui/Checkbox/index.d.ts +0 -1
- package/dist/src/core/ui/Checkbox/styled.d.ts +0 -6
- package/dist/src/core/ui/Radio/Radio.d.ts +0 -6
- package/dist/src/core/ui/Radio/index.d.ts +0 -1
- package/dist/src/core/ui/Radio/styled.d.ts +0 -6
- package/dist/src/core/ui/RadioGroup/RadioGroup.d.ts +0 -6
- package/dist/src/core/ui/RadioGroup/index.d.ts +0 -1
- package/dist/src/core/ui/RadioGroup/styled.d.ts +0 -4
- package/dist/src/hooks/useAccess/accessState.d.ts +0 -7
- package/dist/src/hooks/useAccess/deriveButtons.d.ts +0 -5
- package/dist/src/hooks/useAccess/index.d.ts +0 -11
- package/dist/src/hooks/useAccess.cy.d.ts +0 -1
- package/dist/src/hooks/useFeatures.cy.d.ts +0 -1
- package/dist/src/hooks/useFeatures.d.ts +0 -6
- package/dist/src/hooks/useHeaderContentEvent.cy.d.ts +0 -1
- package/dist/src/hooks/useHeaderContentEvent.d.ts +0 -3
- package/dist/src/hooks/useLogin.d.ts +0 -2
- package/dist/src/hooks/useLoginStatus.d.ts +0 -3
- package/dist/src/hooks/useModalHook/ModalContext.d.ts +0 -7
- package/dist/src/hooks/useModalHook/ModalProvider.d.ts +0 -5
- package/dist/src/hooks/useModalHook/index.d.ts +0 -3
- package/dist/src/hooks/useModalHook/useModal.d.ts +0 -8
- package/dist/src/hooks/usePermissions.cy.d.ts +0 -1
- package/dist/src/hooks/usePermissions.d.ts +0 -13
- package/dist/src/hooks/useQueryParams.d.ts +0 -2
- package/dist/src/i18n.d.ts +0 -9
- package/dist/src/index.d.ts +0 -36
- package/dist/src/pages/ErrorPage.d.ts +0 -14
- package/dist/src/pages/LoaderPage.d.ts +0 -7
- package/dist/src/pages/LoginPage.d.ts +0 -15
- package/dist/src/providers/authConfig.d.ts +0 -6
- package/dist/src/providers/display.d.ts +0 -5
- package/dist/src/providers/metaInfo.d.ts +0 -6
- package/dist/src/providers/store.d.ts +0 -171
- package/dist/src/serviceWorkerRegistration.d.ts +0 -2
- package/dist/src/setupTests.d.ts +0 -1
- package/dist/src/stores/SessionStore/CookiesManager.cy.d.ts +0 -1
- package/dist/src/stores/SessionStore/CookiesManager.d.ts +0 -15
- package/dist/src/stores/SessionStore/SessionStore.cy.d.ts +0 -1
- package/dist/src/stores/SessionStore/SessionStore.d.ts +0 -92
- package/dist/src/stores/SessionStore/TokenCoordinator.cy.d.ts +0 -1
- package/dist/src/stores/SessionStore/TokenCoordinator.d.ts +0 -46
- package/dist/src/stores/SessionStore/index.d.ts +0 -3
- package/dist/src/stores/SessionStore/types.d.ts +0 -94
- package/dist/src/stores/appStore.d.ts +0 -10
- package/dist/src/stores/sessionStore.d.ts +0 -83
- package/dist/src/stores/userStore.d.ts +0 -14
- package/dist/src/theme.d.ts +0 -2
- package/dist/src/utils/authFetch.d.ts +0 -10
- package/dist/src/utils/cookies-manager.d.ts +0 -9
- package/dist/src/utils/display.d.ts +0 -14
- package/dist/src/utils/fetch.d.ts +0 -9
- package/dist/src/utils/service-worker.d.ts +0 -1
- package/dist/src/utils/stores.d.ts +0 -15
- package/dist/src/utils/text.d.ts +0 -1
- package/dist/src/utils/validateRedirect.cy.d.ts +0 -1
- package/dist/src/utils/validateRedirect.d.ts +0 -1
- package/dist/src/version.d.ts +0 -1
- package/dist/version.d.ts +0 -1
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
export namespace rootStore {
|
|
2
|
-
export { sessionStore };
|
|
3
|
-
}
|
|
4
|
-
export const StoreContext: React.Context<{
|
|
5
|
-
sessionStore: {
|
|
6
|
-
loading: boolean;
|
|
7
|
-
loginStatus: {
|
|
8
|
-
status: string;
|
|
9
|
-
};
|
|
10
|
-
refreshTokenPromise: null;
|
|
11
|
-
api: {
|
|
12
|
-
setAuthConfig({ baseUrl, clientId, redirectUri }: {
|
|
13
|
-
baseUrl: any;
|
|
14
|
-
clientId: any;
|
|
15
|
-
redirectUri: any;
|
|
16
|
-
}): void;
|
|
17
|
-
baseUrl: any;
|
|
18
|
-
clientId: any;
|
|
19
|
-
redirectUri: any;
|
|
20
|
-
authorize(credentials: any): Promise<undefined>;
|
|
21
|
-
getUserData(authData: any): Promise<{
|
|
22
|
-
id: any;
|
|
23
|
-
companyId: any;
|
|
24
|
-
roleId: any;
|
|
25
|
-
username: any;
|
|
26
|
-
email: any;
|
|
27
|
-
name: any;
|
|
28
|
-
permissionsMap: any;
|
|
29
|
-
featuresMap: {
|
|
30
|
-
[k: string]: {
|
|
31
|
-
status: any;
|
|
32
|
-
entitlementType: any;
|
|
33
|
-
expiresAt: any;
|
|
34
|
-
daysSinceExpiry: any;
|
|
35
|
-
permissions: any;
|
|
36
|
-
} | null;
|
|
37
|
-
} | null;
|
|
38
|
-
featuresRequestsMap: {} | null;
|
|
39
|
-
} | null>;
|
|
40
|
-
signOut(token: any): Promise<void>;
|
|
41
|
-
};
|
|
42
|
-
networkError: any;
|
|
43
|
-
setLoading(value: any): void;
|
|
44
|
-
setConnectedLoginStatus(): void;
|
|
45
|
-
setNotAuthorizedLoginStatus(): void;
|
|
46
|
-
setAuthConfig(config: any): void;
|
|
47
|
-
setNetworkError(value: any): void;
|
|
48
|
-
isLoggedIn(): boolean;
|
|
49
|
-
requestHeaders(): {
|
|
50
|
-
'Accept-Language': string;
|
|
51
|
-
} | {
|
|
52
|
-
Authorization: string;
|
|
53
|
-
'Accept-Language': string;
|
|
54
|
-
};
|
|
55
|
-
authorize(credentials: any, storeSession?: boolean): Promise<null>;
|
|
56
|
-
session: any;
|
|
57
|
-
refresh(): Promise<null>;
|
|
58
|
-
recover(): Promise<void>;
|
|
59
|
-
logout(): Promise<void>;
|
|
60
|
-
refreshUserData(): Promise<{
|
|
61
|
-
id: any;
|
|
62
|
-
companyId: any;
|
|
63
|
-
roleId: any;
|
|
64
|
-
username: any;
|
|
65
|
-
email: any;
|
|
66
|
-
name: any;
|
|
67
|
-
permissionsMap: any;
|
|
68
|
-
featuresMap: {
|
|
69
|
-
[k: string]: {
|
|
70
|
-
status: any;
|
|
71
|
-
entitlementType: any;
|
|
72
|
-
expiresAt: any;
|
|
73
|
-
daysSinceExpiry: any;
|
|
74
|
-
permissions: any;
|
|
75
|
-
} | null;
|
|
76
|
-
} | null;
|
|
77
|
-
featuresRequestsMap: {} | null;
|
|
78
|
-
} | null>;
|
|
79
|
-
storeSession(): Promise<void>;
|
|
80
|
-
restoreSession(): Promise<void>;
|
|
81
|
-
removeSession(): void;
|
|
82
|
-
setCurrentUser(user: any): void;
|
|
83
|
-
removeCurrentUser(): void;
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
86
|
-
export const StoreProvider: React.FunctionComponent<object>;
|
|
87
|
-
export function useStore(): {
|
|
88
|
-
sessionStore: {
|
|
89
|
-
loading: boolean;
|
|
90
|
-
loginStatus: {
|
|
91
|
-
status: string;
|
|
92
|
-
};
|
|
93
|
-
refreshTokenPromise: null;
|
|
94
|
-
api: {
|
|
95
|
-
setAuthConfig({ baseUrl, clientId, redirectUri }: {
|
|
96
|
-
baseUrl: any;
|
|
97
|
-
clientId: any;
|
|
98
|
-
redirectUri: any;
|
|
99
|
-
}): void;
|
|
100
|
-
baseUrl: any;
|
|
101
|
-
clientId: any;
|
|
102
|
-
redirectUri: any;
|
|
103
|
-
authorize(credentials: any): Promise<undefined>;
|
|
104
|
-
getUserData(authData: any): Promise<{
|
|
105
|
-
id: any;
|
|
106
|
-
companyId: any;
|
|
107
|
-
roleId: any;
|
|
108
|
-
username: any;
|
|
109
|
-
email: any;
|
|
110
|
-
name: any;
|
|
111
|
-
permissionsMap: any;
|
|
112
|
-
featuresMap: {
|
|
113
|
-
[k: string]: {
|
|
114
|
-
status: any;
|
|
115
|
-
entitlementType: any;
|
|
116
|
-
expiresAt: any;
|
|
117
|
-
daysSinceExpiry: any;
|
|
118
|
-
permissions: any;
|
|
119
|
-
} | null;
|
|
120
|
-
} | null;
|
|
121
|
-
featuresRequestsMap: {} | null;
|
|
122
|
-
} | null>;
|
|
123
|
-
signOut(token: any): Promise<void>;
|
|
124
|
-
};
|
|
125
|
-
networkError: any;
|
|
126
|
-
setLoading(value: any): void;
|
|
127
|
-
setConnectedLoginStatus(): void;
|
|
128
|
-
setNotAuthorizedLoginStatus(): void;
|
|
129
|
-
setAuthConfig(config: any): void;
|
|
130
|
-
setNetworkError(value: any): void;
|
|
131
|
-
isLoggedIn(): boolean;
|
|
132
|
-
requestHeaders(): {
|
|
133
|
-
'Accept-Language': string;
|
|
134
|
-
} | {
|
|
135
|
-
Authorization: string;
|
|
136
|
-
'Accept-Language': string;
|
|
137
|
-
};
|
|
138
|
-
authorize(credentials: any, storeSession?: boolean): Promise<null>;
|
|
139
|
-
session: any;
|
|
140
|
-
refresh(): Promise<null>;
|
|
141
|
-
recover(): Promise<void>;
|
|
142
|
-
logout(): Promise<void>;
|
|
143
|
-
refreshUserData(): Promise<{
|
|
144
|
-
id: any;
|
|
145
|
-
companyId: any;
|
|
146
|
-
roleId: any;
|
|
147
|
-
username: any;
|
|
148
|
-
email: any;
|
|
149
|
-
name: any;
|
|
150
|
-
permissionsMap: any;
|
|
151
|
-
featuresMap: {
|
|
152
|
-
[k: string]: {
|
|
153
|
-
status: any;
|
|
154
|
-
entitlementType: any;
|
|
155
|
-
expiresAt: any;
|
|
156
|
-
daysSinceExpiry: any;
|
|
157
|
-
permissions: any;
|
|
158
|
-
} | null;
|
|
159
|
-
} | null;
|
|
160
|
-
featuresRequestsMap: {} | null;
|
|
161
|
-
} | null>;
|
|
162
|
-
storeSession(): Promise<void>;
|
|
163
|
-
restoreSession(): Promise<void>;
|
|
164
|
-
removeSession(): void;
|
|
165
|
-
setCurrentUser(user: any): void;
|
|
166
|
-
removeCurrentUser(): void;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
export default rootStore;
|
|
170
|
-
import sessionStore from "../stores/sessionStore";
|
|
171
|
-
import React from "react";
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export default sessionStore;
|
|
2
|
-
declare const sessionStore: SessionStore;
|
|
3
|
-
declare class SessionStore {
|
|
4
|
-
loading: boolean;
|
|
5
|
-
loginStatus: {
|
|
6
|
-
status: string;
|
|
7
|
-
};
|
|
8
|
-
refreshTokenPromise: null;
|
|
9
|
-
api: SessionAPI;
|
|
10
|
-
networkError: any;
|
|
11
|
-
setLoading(value: any): void;
|
|
12
|
-
setConnectedLoginStatus(): void;
|
|
13
|
-
setNotAuthorizedLoginStatus(): void;
|
|
14
|
-
setAuthConfig(config: any): void;
|
|
15
|
-
setNetworkError(value: any): void;
|
|
16
|
-
isLoggedIn(): boolean;
|
|
17
|
-
requestHeaders(): {
|
|
18
|
-
'Accept-Language': string;
|
|
19
|
-
} | {
|
|
20
|
-
Authorization: string;
|
|
21
|
-
'Accept-Language': string;
|
|
22
|
-
};
|
|
23
|
-
authorize(credentials: any, storeSession?: boolean): Promise<null>;
|
|
24
|
-
session: any;
|
|
25
|
-
refresh(): Promise<null>;
|
|
26
|
-
recover(): Promise<void>;
|
|
27
|
-
logout(): Promise<void>;
|
|
28
|
-
refreshUserData(): Promise<{
|
|
29
|
-
id: any;
|
|
30
|
-
companyId: any;
|
|
31
|
-
roleId: any;
|
|
32
|
-
username: any;
|
|
33
|
-
email: any;
|
|
34
|
-
name: any;
|
|
35
|
-
permissionsMap: any;
|
|
36
|
-
featuresMap: {
|
|
37
|
-
[k: string]: {
|
|
38
|
-
status: any;
|
|
39
|
-
entitlementType: any;
|
|
40
|
-
expiresAt: any;
|
|
41
|
-
daysSinceExpiry: any;
|
|
42
|
-
permissions: any;
|
|
43
|
-
} | null;
|
|
44
|
-
} | null;
|
|
45
|
-
featuresRequestsMap: {} | null;
|
|
46
|
-
} | null>;
|
|
47
|
-
storeSession(): Promise<void>;
|
|
48
|
-
restoreSession(): Promise<void>;
|
|
49
|
-
removeSession(): void;
|
|
50
|
-
setCurrentUser(user: any): void;
|
|
51
|
-
removeCurrentUser(): void;
|
|
52
|
-
}
|
|
53
|
-
declare class SessionAPI {
|
|
54
|
-
setAuthConfig({ baseUrl, clientId, redirectUri }: {
|
|
55
|
-
baseUrl: any;
|
|
56
|
-
clientId: any;
|
|
57
|
-
redirectUri: any;
|
|
58
|
-
}): void;
|
|
59
|
-
baseUrl: any;
|
|
60
|
-
clientId: any;
|
|
61
|
-
redirectUri: any;
|
|
62
|
-
authorize(credentials: any): Promise<undefined>;
|
|
63
|
-
getUserData(authData: any): Promise<{
|
|
64
|
-
id: any;
|
|
65
|
-
companyId: any;
|
|
66
|
-
roleId: any;
|
|
67
|
-
username: any;
|
|
68
|
-
email: any;
|
|
69
|
-
name: any;
|
|
70
|
-
permissionsMap: any;
|
|
71
|
-
featuresMap: {
|
|
72
|
-
[k: string]: {
|
|
73
|
-
status: any;
|
|
74
|
-
entitlementType: any;
|
|
75
|
-
expiresAt: any;
|
|
76
|
-
daysSinceExpiry: any;
|
|
77
|
-
permissions: any;
|
|
78
|
-
} | null;
|
|
79
|
-
} | null;
|
|
80
|
-
featuresRequestsMap: {} | null;
|
|
81
|
-
} | null>;
|
|
82
|
-
signOut(token: any): Promise<void>;
|
|
83
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: UserStore;
|
|
2
|
-
export default _default;
|
|
3
|
-
declare class UserStore {
|
|
4
|
-
currentUser: null;
|
|
5
|
-
permissionsMap: null;
|
|
6
|
-
featuresMap: null;
|
|
7
|
-
featuresRequestsMap: null;
|
|
8
|
-
setCurrentUser(currentUser: any): void;
|
|
9
|
-
removeCurrentUser(): void;
|
|
10
|
-
setPermissionsMap(permissionsMap: any): void;
|
|
11
|
-
setFeaturesMap(featuresMap: any): void;
|
|
12
|
-
setFeaturesRequestsMap(featuresRequestsMap: any): void;
|
|
13
|
-
get getCurrentUserJS(): null;
|
|
14
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export function render(node: any, options?: {}): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
2
|
-
export function renderComponent(node: any, options?: {}): import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
package/dist/src/app/theme.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function isTrustedOrigin(origin: any): boolean;
|
|
2
|
-
export function getDisplayMode(): "standalone" | "iframe";
|
|
3
|
-
export function updateParentHeaderLeadingText(text: any): void;
|
|
4
|
-
export function resetParentHeaderLeadingText(): void;
|
|
5
|
-
export function updateParentHeaderTitle(title: any): void;
|
|
6
|
-
export function resetParentHeaderTitle(): void;
|
|
7
|
-
export function updateParentHeaderStyles({ target, styles }: {
|
|
8
|
-
target: any;
|
|
9
|
-
styles: any;
|
|
10
|
-
}): void;
|
|
11
|
-
export function resetParentHeaderStyles(target: any): void;
|
|
12
|
-
export function updateParentHeaderContent(descriptor: any): void;
|
|
13
|
-
export function resetParentHeaderContent(): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default andoncloudFetch;
|
|
2
|
-
export { acFetch as fetch };
|
|
3
|
-
declare const andoncloudFetch: AndoncloudFetch;
|
|
4
|
-
declare function acFetch(url: any, options?: {}): Promise<void | Response>;
|
|
5
|
-
declare class AndoncloudFetch {
|
|
6
|
-
callback: () => void;
|
|
7
|
-
setCallback(callback: any): void;
|
|
8
|
-
removeCallback(): void;
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function registerServiceWorker(config: any): void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export function convertFeatureInfoToCamelCase(featureInfo: any): {
|
|
2
|
-
status: any;
|
|
3
|
-
entitlementType: any;
|
|
4
|
-
expiresAt: any;
|
|
5
|
-
daysSinceExpiry: any;
|
|
6
|
-
permissions: any;
|
|
7
|
-
} | null;
|
|
8
|
-
export function convertFeaturesMapToCamelCase(featuresMap: any): {
|
|
9
|
-
[k: string]: {
|
|
10
|
-
status: any;
|
|
11
|
-
entitlementType: any;
|
|
12
|
-
expiresAt: any;
|
|
13
|
-
daysSinceExpiry: any;
|
|
14
|
-
permissions: any;
|
|
15
|
-
} | null;
|
|
16
|
-
} | null;
|
|
17
|
-
export function convertFeaturesRequestsMapToCamelCase(featuresRequestsMap: any): {} | null;
|
|
18
|
-
export function getCooldownStatus(featuresRequestsMap: object | null, featureKey: string, requestType: string, workplaceId: string | undefined): {
|
|
19
|
-
isInCooldown: boolean;
|
|
20
|
-
daysRemaining: number;
|
|
21
|
-
};
|
|
22
|
-
export function getCooldownInfo(featuresRequestsMap: object | null, featureKey: string, buttons: any[], workplaceId: string | undefined): object;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function toCamelCase(str: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as acLogo } from './logo.svg';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Header } from './Header';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
-
import { HeaderStylesOverride, StyleMap } from './types';
|
|
3
|
-
interface StylesInput {
|
|
4
|
-
styles?: HeaderStylesOverride;
|
|
5
|
-
titleStyles?: SxProps<Theme>;
|
|
6
|
-
contentStyles?: SxProps<Theme>;
|
|
7
|
-
menuStyles?: SxProps<Theme>;
|
|
8
|
-
menuDropdownStyles?: SxProps<Theme>;
|
|
9
|
-
}
|
|
10
|
-
declare const useStyles: ({ styles, titleStyles, contentStyles, menuStyles, menuDropdownStyles }: StylesInput) => StyleMap;
|
|
11
|
-
export default useStyles;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
2
|
-
export interface NavItem {
|
|
3
|
-
label: string;
|
|
4
|
-
url?: string;
|
|
5
|
-
action?: () => void;
|
|
6
|
-
icon?: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export interface NavProps {
|
|
9
|
-
items?: NavItem[];
|
|
10
|
-
}
|
|
11
|
-
export interface UserProps {
|
|
12
|
-
show?: boolean;
|
|
13
|
-
showCompanyLogo?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface HeaderMenuProps {
|
|
16
|
-
items?: NavItem[];
|
|
17
|
-
buttonColor?: string;
|
|
18
|
-
dropdownStyles?: SxProps<Theme>;
|
|
19
|
-
styles?: SxProps<Theme>;
|
|
20
|
-
}
|
|
21
|
-
export interface IframeContent {
|
|
22
|
-
component: string;
|
|
23
|
-
props: Record<string, unknown>;
|
|
24
|
-
}
|
|
25
|
-
export interface IframeSource {
|
|
26
|
-
source: Window;
|
|
27
|
-
origin: string;
|
|
28
|
-
}
|
|
29
|
-
export interface HeaderStylesOverride {
|
|
30
|
-
background?: string;
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
export type StyleMap = Record<string, Record<string, unknown>>;
|
|
34
|
-
export interface HeaderProps {
|
|
35
|
-
position?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
36
|
-
scrolled?: boolean;
|
|
37
|
-
showAcLogo?: boolean;
|
|
38
|
-
leadingText?: string;
|
|
39
|
-
title?: string;
|
|
40
|
-
titleStyles?: SxProps<Theme>;
|
|
41
|
-
content?: React.ReactNode;
|
|
42
|
-
contentComponents?: Record<string, React.ComponentType<any>>;
|
|
43
|
-
contentStyles?: SxProps<Theme>;
|
|
44
|
-
navProps?: NavProps;
|
|
45
|
-
userProps?: UserProps;
|
|
46
|
-
menuProps?: HeaderMenuProps;
|
|
47
|
-
sidebarEnabled?: boolean;
|
|
48
|
-
sidebarOpen?: boolean;
|
|
49
|
-
onSidebarToggle?: () => void;
|
|
50
|
-
styles?: HeaderStylesOverride;
|
|
51
|
-
'data-testid'?: string;
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default AccessBlocker;
|
|
2
|
-
declare function AccessBlocker({ accessState, buttons, daysSinceExpiry, featureKey, workplaceId, cooldownInfo, onTrialRequest, onFeatureRequest, backgroundImage, }: {
|
|
3
|
-
accessState: any;
|
|
4
|
-
buttons?: never[] | undefined;
|
|
5
|
-
daysSinceExpiry: any;
|
|
6
|
-
featureKey: any;
|
|
7
|
-
workplaceId: any;
|
|
8
|
-
cooldownInfo?: {} | undefined;
|
|
9
|
-
onTrialRequest: any;
|
|
10
|
-
onFeatureRequest: any;
|
|
11
|
-
backgroundImage: any;
|
|
12
|
-
}): React.JSX.Element;
|
|
13
|
-
import React from 'react';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export default makeStyles;
|
|
2
|
-
declare function makeStyles(accessState: any): {
|
|
3
|
-
container: {
|
|
4
|
-
position: string;
|
|
5
|
-
display: string;
|
|
6
|
-
flexDirection: string;
|
|
7
|
-
alignItems: string;
|
|
8
|
-
justifyContent: string;
|
|
9
|
-
gap: number;
|
|
10
|
-
width: string;
|
|
11
|
-
height: string;
|
|
12
|
-
padding: number;
|
|
13
|
-
textAlign: string;
|
|
14
|
-
background: (theme: any) => any;
|
|
15
|
-
};
|
|
16
|
-
backgroundImage: {
|
|
17
|
-
position: string;
|
|
18
|
-
inset: number;
|
|
19
|
-
opacity: number;
|
|
20
|
-
backgroundSize: string;
|
|
21
|
-
backgroundPosition: string;
|
|
22
|
-
backgroundRepeat: string;
|
|
23
|
-
};
|
|
24
|
-
icon: {
|
|
25
|
-
fontSize: number;
|
|
26
|
-
color: any;
|
|
27
|
-
};
|
|
28
|
-
buttonsContainer: {
|
|
29
|
-
display: string;
|
|
30
|
-
flexWrap: string;
|
|
31
|
-
alignItems: string;
|
|
32
|
-
justifyContent: string;
|
|
33
|
-
gap: number;
|
|
34
|
-
};
|
|
35
|
-
primaryButton: {
|
|
36
|
-
backgroundColor: any;
|
|
37
|
-
};
|
|
38
|
-
secondaryButton: {};
|
|
39
|
-
linkButton: {
|
|
40
|
-
cursor: string;
|
|
41
|
-
color: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export default AccessGuard;
|
|
2
|
-
declare function AccessGuard({ features: featuresProp, extraPermissions, workplaceId, onTrialRequest, onFeatureRequest, backgroundImage, children, }: {
|
|
3
|
-
features?: never[] | undefined;
|
|
4
|
-
extraPermissions?: never[] | undefined;
|
|
5
|
-
workplaceId: any;
|
|
6
|
-
onTrialRequest: any;
|
|
7
|
-
onFeatureRequest: any;
|
|
8
|
-
backgroundImage: any;
|
|
9
|
-
children: any;
|
|
10
|
-
}): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export default styles;
|
|
2
|
-
declare namespace styles {
|
|
3
|
-
let dialog: {
|
|
4
|
-
'.MuiPaper-root': {
|
|
5
|
-
borderRadius: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
namespace dialogContent {
|
|
9
|
-
let padding: number;
|
|
10
|
-
}
|
|
11
|
-
namespace container {
|
|
12
|
-
export let display: string;
|
|
13
|
-
export let flexDirection: string;
|
|
14
|
-
export let alignItems: string;
|
|
15
|
-
export let gap: number;
|
|
16
|
-
let padding_1: number;
|
|
17
|
-
export { padding_1 as padding };
|
|
18
|
-
export function background(theme: any): any;
|
|
19
|
-
}
|
|
20
|
-
namespace stepper {
|
|
21
|
-
let width: string;
|
|
22
|
-
}
|
|
23
|
-
namespace disclaimer {
|
|
24
|
-
let marginTop: number;
|
|
25
|
-
let color: string;
|
|
26
|
-
}
|
|
27
|
-
namespace actions {
|
|
28
|
-
let marginTop_1: number;
|
|
29
|
-
export { marginTop_1 as marginTop };
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export default styles;
|
|
2
|
-
declare namespace styles {
|
|
3
|
-
let dialog: {
|
|
4
|
-
'.MuiPaper-root': {
|
|
5
|
-
borderRadius: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
namespace dialogContent {
|
|
9
|
-
let padding: number;
|
|
10
|
-
}
|
|
11
|
-
namespace container {
|
|
12
|
-
export let display: string;
|
|
13
|
-
export let flexDirection: string;
|
|
14
|
-
export let alignItems: string;
|
|
15
|
-
export let gap: number;
|
|
16
|
-
let padding_1: number;
|
|
17
|
-
export { padding_1 as padding };
|
|
18
|
-
export function background(theme: any): any;
|
|
19
|
-
}
|
|
20
|
-
namespace content {
|
|
21
|
-
let marginTop: number;
|
|
22
|
-
let marginBottom: number;
|
|
23
|
-
let textAlign: string;
|
|
24
|
-
}
|
|
25
|
-
namespace actions {
|
|
26
|
-
let display_1: string;
|
|
27
|
-
export { display_1 as display };
|
|
28
|
-
export let justifyContent: string;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|