@scmlatam/web-ui 0.1.99 → 0.2.0

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/src/App.d.ts CHANGED
@@ -1,2 +1,6 @@
1
- declare function App(): import("react/jsx-runtime").JSX.Element;
1
+ import { PublicClientApplication } from '@azure/msal-browser';
2
+ interface AppProps {
3
+ msalInstance: PublicClientApplication;
4
+ }
5
+ declare function App({ msalInstance }: AppProps): import("react/jsx-runtime").JSX.Element;
2
6
  export default App;
@@ -2,4 +2,5 @@ import { NavigateFunction } from 'react-router';
2
2
  declare const fakeAxios: () => Promise<unknown>;
3
3
  declare const customLogin: (user: string, pass: string, setLoadingAuth: (loading: boolean) => void, setIsAuthenticated: (auth: boolean) => void, setAvatar: (avatar: string) => void, navigate: NavigateFunction) => void;
4
4
  declare const customLogout: (setIsAuthenticated: (auth: boolean) => void, navigate: NavigateFunction) => void;
5
- export { fakeAxios, customLogin, customLogout };
5
+ declare const customCheckingRegister: () => Promise<unknown>;
6
+ export { fakeAxios, customLogin, customLogout, customCheckingRegister };
@@ -1,15 +1,11 @@
1
+ import { AccountInfo, IPublicClientApplication } from '@azure/msal-browser';
1
2
  declare const loginRequest: {
2
3
  scopes: string[];
3
4
  };
4
- declare const initialAuthState: (auth: {
5
- clientId: string;
6
- authority: string;
7
- redirectUri: string;
8
- postLogoutRedirectUri: string;
9
- }) => {
5
+ declare const msalConfig: {
10
6
  auth: {
11
- clientId: string;
12
- authority: string;
7
+ clientId: any;
8
+ authority: any;
13
9
  redirectUri: string;
14
10
  postLogoutRedirectUri: string;
15
11
  };
@@ -23,4 +19,7 @@ declare const initialAuthState: (auth: {
23
19
  };
24
20
  };
25
21
  };
26
- export { initialAuthState, loginRequest };
22
+ declare const getSSOToken: (instance: IPublicClientApplication, account: AccountInfo) => Promise<string>;
23
+ declare const SignSSOMS: (account: AccountInfo, ssoToken: string) => Promise<void>;
24
+ declare const chekingSSOMS: (instance: IPublicClientApplication, account: AccountInfo) => Promise<void>;
25
+ export { msalConfig, loginRequest, getSSOToken, SignSSOMS, chekingSSOMS };
@@ -1,3 +1,3 @@
1
1
  import { CoreProps } from './types/types';
2
- declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, unsavedChangesAlert, }: CoreProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, signup, unsavedChangesAlert, }: CoreProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export { Core };
@@ -9,6 +9,8 @@ interface ICoreContext {
9
9
  setPass: (value: string) => void;
10
10
  avatar: string;
11
11
  setAvatar: (value: string) => void;
12
+ email: string;
13
+ setEmail: (value: string) => void;
12
14
  loadingAuth: boolean;
13
15
  setLoadingAuth: (value: boolean) => void;
14
16
  format: string;
@@ -0,0 +1,12 @@
1
+ import { Language, SignUpFormProps } from '../types/types';
2
+ interface SignUpProps {
3
+ product: {
4
+ name: string;
5
+ version: string;
6
+ backgroundImage: string;
7
+ };
8
+ languages: Language[];
9
+ form: SignUpFormProps;
10
+ }
11
+ declare const SignUp: ({ product, languages, form }: SignUpProps) => import("react/jsx-runtime").JSX.Element | null;
12
+ export { SignUp };
@@ -1,12 +1,13 @@
1
- import { Language, LoginFormProps, Product, RouteItem } from '../components/core/types/types';
1
+ import { Language, LoginFormProps, Product, RouteItem, SignUpFormProps } from '../components/core/types/types';
2
2
  interface SignInProps {
3
3
  product: Product;
4
4
  languages: Language[];
5
5
  form: LoginFormProps;
6
+ signup: SignUpFormProps;
6
7
  }
7
8
  interface PostSignInProps {
8
9
  routes: RouteItem[];
9
10
  }
10
- declare const PrevSignIn: ({ product, languages, form }: SignInProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const PrevSignIn: ({ product, languages, form, signup }: SignInProps) => import("react/jsx-runtime").JSX.Element;
11
12
  declare const PostSignIn: ({ routes }: PostSignInProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export { PrevSignIn, PostSignIn };