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.
- package/dist/aquasis-fe-components.js +42700 -33859
- package/dist/aquasis-fe-components.umd.cjs +284 -571
- package/dist/components/FormField/Props.d.ts +10 -9
- package/dist/components/FormField/index.d.ts +2 -2
- package/dist/components/ThemeProvider/index.d.ts +1 -1
- package/dist/enums/app.d.ts +3 -1
- package/dist/enums/reactQueryNames.d.ts +4 -0
- package/dist/enums/releaseNotes.d.ts +11 -0
- package/dist/helpers/formFields.d.ts +2 -2
- package/dist/helpers/index.d.ts +12 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/br.json.d.ts +81 -0
- package/dist/i18n/locales/en.json.d.ts +81 -0
- package/dist/i18n/locales/es.json.d.ts +81 -0
- package/dist/i18n/locales/jp.json.d.ts +1 -1
- package/dist/i18n/locales/pt.json.d.ts +81 -0
- package/dist/i18n/locales/ro.json.d.ts +81 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/lib/Helpdesk/HelpdeskConnector.d.ts +4 -5
- package/dist/lib/Helpdesk/index.d.ts +2 -2
- package/dist/lib/ReleaseNote/CreateReleaseNote/ReleaseNoteSlides/ReleaseNotesFields/index.d.ts +6 -0
- package/dist/lib/ReleaseNote/CreateReleaseNote/ReleaseNoteSlides/index.d.ts +6 -0
- package/dist/lib/ReleaseNote/CreateReleaseNote/index.d.ts +11 -0
- package/dist/lib/ReleaseNote/ReleaseNoteConnector.d.ts +12 -0
- package/dist/lib/ReleaseNote/WhatsNews/index.d.ts +1 -0
- package/dist/lib/ReleaseNote/index.d.ts +6 -0
- package/dist/reactQuery/index.d.ts +5 -0
- package/dist/services/HelpdeskServices.d.ts +1 -1
- package/dist/services/HttpClient.d.ts +1 -1
- package/dist/services/appServices.d.ts +2 -0
- package/dist/services/releaseNoteServices.d.ts +4 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/store/index.d.ts +3 -3
- package/dist/store/reducers/index.d.ts +1 -1
- package/dist/themes/index.d.ts +2 -2
- package/dist/types/app.d.ts +5 -0
- package/dist/types/helpdesk.d.ts +1 -1
- package/dist/types/releaseNotes.d.ts +37 -0
- package/dist/utils/app.d.ts +4 -0
- package/package.json +36 -33
|
@@ -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,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(
|
|
2
|
+
export declare const createTicket: ({ appName, ...payload }: CreateTicketPayload) => Promise<import('axios').AxiosResponse<any, any>>;
|
|
@@ -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>;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const store: import(
|
|
2
|
-
dispatch: import(
|
|
3
|
-
}>, import(
|
|
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(
|
|
1
|
+
declare const rootReducer: import('redux').Reducer<{}, never, Partial<{}>>;
|
|
2
2
|
export default rootReducer;
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ThemeConfig } from
|
|
2
|
-
import { Light } from
|
|
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;
|
package/dist/types/app.d.ts
CHANGED
package/dist/types/helpdesk.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/dist/utils/app.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aquasis-fe-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
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
|
|
14
|
-
"
|
|
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": "^
|
|
74
|
-
"@types/react": "^18.
|
|
75
|
-
"@types/react-dom": "^18.
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
77
|
-
"@typescript-eslint/parser": "^
|
|
78
|
-
"@vitejs/plugin-react": "^4.2
|
|
79
|
-
"eslint": "^
|
|
80
|
-
"eslint-plugin-react-hooks": "^
|
|
81
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
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.
|
|
84
|
-
"typescript": "^5.
|
|
85
|
-
"vite": "^5.
|
|
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.
|
|
89
|
-
"@fortawesome/fontawesome-svg-core": "^6.
|
|
90
|
-
"@fortawesome/free-regular-svg-icons": "^6.
|
|
91
|
-
"@fortawesome/free-solid-svg-icons": "^6.
|
|
92
|
-
"@fortawesome/react-fontawesome": "^0.2.
|
|
93
|
-
"@reduxjs/toolkit": "^2.
|
|
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.
|
|
97
|
-
"axios": "^1.7.
|
|
98
|
-
"dayjs": "^1.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.
|
|
101
|
+
"i18next": "^23.16.0",
|
|
101
102
|
"i18next-browser-languagedetector": "^8.0.0",
|
|
102
|
-
"react": "^18.
|
|
103
|
-
"react-dom": "^18.
|
|
104
|
-
"react-i18next": "^
|
|
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
|
|
109
|
-
"vite-plugin-dts": "^
|
|
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
|
}
|