aquasis-fe-components 2.0.0 → 2.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.
@@ -0,0 +1 @@
1
+ export declare const GLOBAL_AUTH_URL: string;
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  export interface LanguageSwitcherProps {
3
3
  onlyFlag?: boolean;
4
+ gauApiUrl: string;
4
5
  }
5
6
  export declare const LanguageSwitcher: FC<LanguageSwitcherProps>;
@@ -5,5 +5,6 @@ export interface ReleaseNotesSlidesProps {
5
5
  idLanguage: number;
6
6
  currentSlide: ActiveSlide;
7
7
  changeSlide: CarouselProps["beforeChange"];
8
+ gauApiUrl: string;
8
9
  }
9
10
  export declare const ReleaseNotesSlides: FC<ReleaseNotesSlidesProps>;
@@ -7,5 +7,6 @@ export interface CreateReleaseNoteProps {
7
7
  beforeOpenModal?: () => void;
8
8
  beforeCloseModal?: () => void;
9
9
  afterSubmit?: () => void;
10
+ gauApiUrl: string;
10
11
  }
11
12
  export declare const CreateReleaseNote: FC<CreateReleaseNoteProps>;
@@ -6,6 +6,7 @@ import { CreateReleaseNoteProps } from './CreateReleaseNote';
6
6
  */
7
7
  export interface ReleaseNoteProps extends CreateReleaseNoteProps {
8
8
  showAddBtn?: boolean;
9
+ gauApiUrl: string;
9
10
  }
10
11
  /**
11
12
  * @deprecated ReleaseNote will be removed in the next major version.
@@ -2,4 +2,4 @@ import { IApp, ILanguage, IRole } from '../types/app';
2
2
  import { AxiosError } from 'axios';
3
3
  export declare const useGetApps: () => import('@tanstack/react-query').UseQueryResult<IApp[], AxiosError<unknown, any>>;
4
4
  export declare const useGetRoles: () => import('@tanstack/react-query').UseQueryResult<IRole[], AxiosError<unknown, any>>;
5
- export declare const useGetLanguages: () => import('@tanstack/react-query').UseQueryResult<ILanguage[], AxiosError<unknown, any>>;
5
+ export declare const useGetLanguages: (gauApiUrl: string) => import('@tanstack/react-query').UseQueryResult<ILanguage[], AxiosError<unknown, any>>;
@@ -1,4 +1,4 @@
1
1
  import { IApp, ILanguage, IRole } from '../types/app';
2
2
  export declare const getApps: () => Promise<IApp[]>;
3
- export declare const getLanguages: () => Promise<ILanguage[]>;
3
+ export declare const getLanguages: (gauApiUrl: string) => Promise<ILanguage[]>;
4
4
  export declare const getRoles: () => Promise<IRole[]>;
@@ -1,11 +1,4 @@
1
1
  export type FlagType = "EN" | "ES" | "PT" | "RO" | "JP" | "BR";
2
- declare global {
3
- interface Window {
4
- baseUrl: string;
5
- globalAuthUrl: string;
6
- globalAuthFEUrl: string;
7
- }
8
- }
9
2
  export type AppIdsType = {
10
3
  "426E659E-F4EF-496A-9DC8-97C6580382E8": "flowise";
11
4
  "26EE36AF-E3AB-41B0-9AB6-BE8BC95CAC33": "meterwise";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aquasis-fe-components",
3
3
  "private": false,
4
- "version": "2.0.0",
4
+ "version": "2.2.0",
5
5
  "type": "module",
6
6
  "license": "ISC",
7
7
  "author": "Ewerton Souza",