aquasis-fe-components 1.0.1 → 1.0.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.
Files changed (42) hide show
  1. package/dist/aquasis-fe-components.js +42700 -33859
  2. package/dist/aquasis-fe-components.umd.cjs +284 -571
  3. package/dist/components/FormField/Props.d.ts +10 -9
  4. package/dist/components/FormField/index.d.ts +2 -2
  5. package/dist/components/ThemeProvider/index.d.ts +1 -1
  6. package/dist/enums/app.d.ts +3 -1
  7. package/dist/enums/reactQueryNames.d.ts +4 -0
  8. package/dist/enums/releaseNotes.d.ts +11 -0
  9. package/dist/helpers/formFields.d.ts +2 -2
  10. package/dist/helpers/index.d.ts +12 -0
  11. package/dist/hooks/index.d.ts +1 -1
  12. package/dist/i18n/index.d.ts +1 -1
  13. package/dist/i18n/locales/br.json.d.ts +81 -0
  14. package/dist/i18n/locales/en.json.d.ts +81 -0
  15. package/dist/i18n/locales/es.json.d.ts +81 -0
  16. package/dist/i18n/locales/jp.json.d.ts +1 -1
  17. package/dist/i18n/locales/pt.json.d.ts +81 -0
  18. package/dist/i18n/locales/ro.json.d.ts +81 -0
  19. package/dist/index.css +1 -1
  20. package/dist/index.d.ts +5 -1
  21. package/dist/lib/Helpdesk/HelpdeskConnector.d.ts +4 -5
  22. package/dist/lib/Helpdesk/index.d.ts +2 -2
  23. package/dist/lib/ReleaseNote/CreateReleaseNote/ReleaseNoteSlides/ReleaseNotesFields/index.d.ts +6 -0
  24. package/dist/lib/ReleaseNote/CreateReleaseNote/ReleaseNoteSlides/index.d.ts +6 -0
  25. package/dist/lib/ReleaseNote/CreateReleaseNote/index.d.ts +11 -0
  26. package/dist/lib/ReleaseNote/ReleaseNoteConnector.d.ts +12 -0
  27. package/dist/lib/ReleaseNote/WhatsNews/index.d.ts +1 -0
  28. package/dist/lib/ReleaseNote/index.d.ts +6 -0
  29. package/dist/reactQuery/index.d.ts +5 -0
  30. package/dist/services/HelpdeskServices.d.ts +1 -1
  31. package/dist/services/HttpClient.d.ts +1 -1
  32. package/dist/services/appServices.d.ts +2 -0
  33. package/dist/services/releaseNoteServices.d.ts +4 -0
  34. package/dist/src/index.d.ts +2 -0
  35. package/dist/store/index.d.ts +3 -3
  36. package/dist/store/reducers/index.d.ts +1 -1
  37. package/dist/themes/index.d.ts +2 -2
  38. package/dist/types/app.d.ts +5 -0
  39. package/dist/types/helpdesk.d.ts +1 -1
  40. package/dist/types/releaseNotes.d.ts +37 -0
  41. package/dist/utils/app.d.ts +4 -0
  42. package/package.json +36 -33
@@ -1,5 +1,5 @@
1
- import { SizeType } from "antd/es/config-provider/SizeContext";
2
- import { FC } from "react";
1
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
2
+ import { FC } from 'react';
3
3
  export interface HelpdeskProps {
4
4
  size?: SizeType;
5
5
  }
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ type Props = {
3
+ index: number;
4
+ };
5
+ export declare const ReleaseNotesFields: FC<Props>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { CarouselProps, CarouselRef } from 'antd/es/carousel';
2
+ type Props = {
3
+ changeSlide: CarouselProps["afterChange"];
4
+ };
5
+ export declare const ReleaseNotesSlides: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<CarouselRef>>;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import { IReleaseNote } from '../../../types/releaseNotes';
2
+ import { FC } from 'react';
3
+ export interface CreateReleaseNoteProps {
4
+ addBtnLabel?: string;
5
+ addBtnTooltipText?: string;
6
+ release2edit?: IReleaseNote;
7
+ beforeOpenModal?: () => void;
8
+ beforeCloseModal?: () => void;
9
+ afterSubmit?: () => void;
10
+ }
11
+ export declare const CreateReleaseNote: FC<CreateReleaseNoteProps>;
@@ -0,0 +1,12 @@
1
+ declare const ReleaseNotesConnector: import('react-redux').ConnectedComponent<import('react').FC<import('.').ReleaseNoteProps>, {
2
+ addBtnLabel?: string | undefined;
3
+ addBtnTooltipText?: string | undefined;
4
+ release2edit?: import('../..').IReleaseNote | undefined;
5
+ beforeOpenModal?: (() => void) | undefined;
6
+ beforeCloseModal?: (() => void) | undefined;
7
+ afterSubmit?: (() => void) | undefined;
8
+ showAddBtn?: boolean | undefined;
9
+ context?: import('react').Context<import('react-redux').ReactReduxContextValue<any, import('redux').UnknownAction> | null> | undefined;
10
+ store?: import('redux').Store | undefined;
11
+ }>;
12
+ export { ReleaseNotesConnector };
@@ -0,0 +1 @@
1
+ export declare const WhatsNews: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { CreateReleaseNoteProps } from './CreateReleaseNote';
3
+ export interface ReleaseNoteProps extends CreateReleaseNoteProps {
4
+ showAddBtn?: boolean;
5
+ }
6
+ export declare const ReleaseNote: FC<ReleaseNoteProps>;
@@ -0,0 +1,5 @@
1
+ import { IApp } from '../types/app';
2
+ import { GetReleaseNotePayload, IReleaseNote } from '../types/releaseNotes';
3
+ import { AxiosError } from 'axios';
4
+ export declare const useGetApps: () => import('react-query').UseQueryResult<IApp[], AxiosError<unknown, any>>;
5
+ export declare const useGetReleases: (payload: GetReleaseNotePayload) => import('react-query').UseQueryResult<IReleaseNote[], AxiosError<unknown, any>>;
@@ -1,2 +1,2 @@
1
1
  import { CreateTicketPayload } from '../types/helpdesk';
2
- export declare const createTicket: ({ appName, ...payload }: CreateTicketPayload) => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const createTicket: ({ appName, ...payload }: CreateTicketPayload) => Promise<import('axios').AxiosResponse<any, any>>;
@@ -1,3 +1,3 @@
1
- import { AxiosInstance } from "axios";
1
+ import { AxiosInstance } from 'axios';
2
2
  declare const api: AxiosInstance;
3
3
  export default api;
@@ -0,0 +1,2 @@
1
+ import { IApp } from '../types/app';
2
+ export declare const getApps: () => Promise<IApp[]>;
@@ -0,0 +1,4 @@
1
+ import { GetReleaseNotePayload, IReleaseNote, ReleaseNotesPayload } from '../types/releaseNotes';
2
+ export declare const getReleases: (payload: GetReleaseNotePayload) => Promise<IReleaseNote[]>;
3
+ export declare const maintainReleaseNote: (payload: ReleaseNotesPayload) => Promise<any>;
4
+ export declare const applyDoNotShowAgain: (idRelease: number, userId: string) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ export * from '../index'
2
+ export {}
@@ -1,5 +1,5 @@
1
- export declare const store: import("@reduxjs/toolkit").EnhancedStore<{}, never, import("@reduxjs/toolkit").Tuple<[import("redux").StoreEnhancer<{
2
- dispatch: import("redux-thunk").ThunkDispatch<{}, undefined, import("redux").UnknownAction>;
3
- }>, import("redux").StoreEnhancer]>>;
1
+ export declare const store: import('@reduxjs/toolkit').EnhancedStore<{}, never, import('@reduxjs/toolkit').Tuple<[import('redux').StoreEnhancer<{
2
+ dispatch: import('redux-thunk').ThunkDispatch<{}, undefined, import('redux').UnknownAction>;
3
+ }>, import('redux').StoreEnhancer]>>;
4
4
  export type RootState = ReturnType<typeof store.getState>;
5
5
  export type AppDispatch = typeof store.dispatch;
@@ -1,2 +1,2 @@
1
- declare const rootReducer: import("redux").Reducer<{}, never, Partial<{}>>;
1
+ declare const rootReducer: import('redux').Reducer<{}, never, Partial<{}>>;
2
2
  export default rootReducer;
@@ -1,5 +1,5 @@
1
- import { ThemeConfig } from "antd";
2
- import { Light } from "./light.data";
1
+ import { ThemeConfig } from 'antd';
2
+ import { Light } from './light.data';
3
3
  export type ColorsThemeKey = typeof Light;
4
4
  export declare const DarkTheme: ThemeConfig;
5
5
  export declare const LightTheme: ThemeConfig;
@@ -8,3 +8,8 @@ export type AppIdsType = {
8
8
  "426E659E-F4EF-496A-9DC8-97C6580382E8": "flowise";
9
9
  "26EE36AF-E3AB-41B0-9AB6-BE8BC95CAC33": "meterwise";
10
10
  };
11
+ export interface IApp {
12
+ id: string;
13
+ appName: string;
14
+ isPrivate: boolean;
15
+ }
@@ -1,5 +1,5 @@
1
1
  import { HelpdeskFields } from '../enums/helpdesk';
2
- import { RcFile } from "antd/es/upload";
2
+ import { RcFile } from 'antd/es/upload';
3
3
  export interface HelpdeskFormValues {
4
4
  [HelpdeskFields.Name]: string;
5
5
  [HelpdeskFields.Email]: string;
@@ -0,0 +1,37 @@
1
+ import { ReleaseNotesFieldNames } from '../enums/releaseNotes';
2
+ export type ReleaseNotesFormSlides = {
3
+ [ReleaseNotesFieldNames.Fields]: ReleaseNotesFormFields[];
4
+ [ReleaseNotesFieldNames.Image]: string;
5
+ idReleasePage?: number;
6
+ order?: number;
7
+ };
8
+ export type ReleaseNotesFormFields = {
9
+ [ReleaseNotesFieldNames.Title]?: string;
10
+ [ReleaseNotesFieldNames.Description]?: string;
11
+ idReleasePage?: number;
12
+ order?: number;
13
+ };
14
+ export interface ReleaseNotesFormValues {
15
+ [ReleaseNotesFieldNames.App]: string;
16
+ [ReleaseNotesFieldNames.Version]: string;
17
+ [ReleaseNotesFieldNames.DeployDate]: string;
18
+ [ReleaseNotesFieldNames.ReleasePages]: ReleaseNotesFormSlides[];
19
+ idRelease?: number;
20
+ isDeployed?: boolean;
21
+ readRelease?: boolean;
22
+ }
23
+ export type GetReleaseNotePayload = {
24
+ idApp: string;
25
+ userId?: string;
26
+ lastDeployed: boolean;
27
+ };
28
+ export interface ReleaseNotesPayload extends ReleaseNotesFormValues {
29
+ idRelease?: number;
30
+ isDeployed?: boolean;
31
+ }
32
+ export interface IReleaseNote extends ReleaseNotesPayload {
33
+ readRelease: boolean;
34
+ }
35
+ export interface MaintainReleaseNoteError {
36
+ error: number;
37
+ }
@@ -0,0 +1,4 @@
1
+ export declare const prefixImgBase64 = "data:image/jpeg;base64,";
2
+ export declare const onlyDateFormat = "DD/MM/YYYY";
3
+ export declare const onlyDateISOstring = "YYYY-MM-DD";
4
+ export declare const dateISOstring = "YYYY-MM-DDTHH:mm";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aquasis-fe-components",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "type": "module",
6
6
  "license": "ISC",
7
7
  "author": "Ewerton Souza",
@@ -10,8 +10,9 @@
10
10
  "build": "tsc && vite build",
11
11
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12
12
  "preview": "vite preview",
13
- "upd-version": "npm version patch && git push && git push --tags",
14
- "publish": "yarn build"
13
+ "upd-version": "npm version patch --no-git-tag-version",
14
+ "prepublishOnly": "yarn upd-version && yarn build",
15
+ "publish-beta": "yarn build && npm publish --tag beta"
15
16
  },
16
17
  "peerDependencies": {
17
18
  "react": "18.x",
@@ -22,16 +23,16 @@
22
23
  ],
23
24
  "main": "dist/aquasis-fe-components.umd.cjs",
24
25
  "module": "dist/aquasis-fe-components.js",
25
- "types": "dist/index.d.ts",
26
+ "types": "dist/src/index.d.ts",
26
27
  "exports": {
27
28
  ".": {
28
29
  "import": {
29
30
  "default": "./dist/aquasis-fe-components.js",
30
- "types": "./dist/index.d.ts"
31
+ "types": "./dist/src/index.d.ts"
31
32
  },
32
33
  "require": {
33
34
  "default": "./dist/aquasis-fe-components.umd.cjs",
34
- "types": "./dist/index.d.ts"
35
+ "types": "./dist/src/index.d.ts"
35
36
  }
36
37
  }
37
38
  },
@@ -70,43 +71,45 @@
70
71
  }
71
72
  },
72
73
  "devDependencies": {
73
- "@types/node": "^20.11.16",
74
- "@types/react": "^18.2.43",
75
- "@types/react-dom": "^18.2.17",
76
- "@typescript-eslint/eslint-plugin": "^6.14.0",
77
- "@typescript-eslint/parser": "^6.14.0",
78
- "@vitejs/plugin-react": "^4.2.1",
79
- "eslint": "^8.55.0",
80
- "eslint-plugin-react-hooks": "^4.6.0",
81
- "eslint-plugin-react-refresh": "^0.4.5",
74
+ "@types/node": "^22.7.6",
75
+ "@types/react": "^18.3.11",
76
+ "@types/react-dom": "^18.3.1",
77
+ "@typescript-eslint/eslint-plugin": "^8.10.0",
78
+ "@typescript-eslint/parser": "^8.10.0",
79
+ "@vitejs/plugin-react": "^4.3.2",
80
+ "eslint": "^9.12.0",
81
+ "eslint-plugin-react-hooks": "^5.0.0",
82
+ "eslint-plugin-react-refresh": "^0.4.12",
82
83
  "json": "^11.0.0",
83
- "sass": "^1.70.0",
84
- "typescript": "^5.2.2",
85
- "vite": "^5.0.8"
84
+ "sass": "^1.80.2",
85
+ "typescript": "^5.6.3",
86
+ "vite": "^5.4.9"
86
87
  },
87
88
  "dependencies": {
88
- "@ant-design/icons": "^5.3.0",
89
- "@fortawesome/fontawesome-svg-core": "^6.5.2",
90
- "@fortawesome/free-regular-svg-icons": "^6.5.2",
91
- "@fortawesome/free-solid-svg-icons": "^6.5.2",
92
- "@fortawesome/react-fontawesome": "^0.2.1",
93
- "@reduxjs/toolkit": "^2.2.5",
89
+ "@ant-design/icons": "^5.5.1",
90
+ "@fortawesome/fontawesome-svg-core": "^6.6.0",
91
+ "@fortawesome/free-regular-svg-icons": "^6.6.0",
92
+ "@fortawesome/free-solid-svg-icons": "^6.6.0",
93
+ "@fortawesome/react-fontawesome": "^0.2.2",
94
+ "@reduxjs/toolkit": "^2.3.0",
94
95
  "@types/hoist-non-react-statics": "^3.3.5",
95
96
  "@uidotdev/usehooks": "^2.4.1",
96
- "antd": "^5.21.1",
97
- "axios": "^1.7.0",
98
- "dayjs": "^1.11.11",
97
+ "antd": "^5.21.4",
98
+ "axios": "^1.7.7",
99
+ "dayjs": "^1.11.13",
99
100
  "hoist-non-react-statics": "^3.3.2",
100
- "i18next": "^23.11.4",
101
+ "i18next": "^23.16.0",
101
102
  "i18next-browser-languagedetector": "^8.0.0",
102
- "react": "^18.2.0",
103
- "react-dom": "^18.2.0",
104
- "react-i18next": "^14.1.1",
103
+ "react": "^18.3.1",
104
+ "react-dom": "^18.3.1",
105
+ "react-i18next": "^15.0.3",
106
+ "react-query": "^3.39.3",
105
107
  "react-redux": "^9.1.2",
108
+ "react-router-dom": "^6.27.0",
106
109
  "redux": "^5.0.1",
107
110
  "scss": "^0.2.4",
108
- "universal-cookie": "^7.1.4",
109
- "vite-plugin-dts": "^3.7.2",
111
+ "universal-cookie": "^7.2.1",
112
+ "vite-plugin-dts": "^4.2.4",
110
113
  "vite-plugin-lib-inject-css": "^2.1.1"
111
114
  }
112
115
  }