aquasis-fe-components 1.8.2 → 1.9.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/index.css CHANGED
@@ -1 +1 @@
1
- .helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.switcher__option{display:flex;align-items:center;column-gap:5px}.switcher__option img{max-width:20px}.switcher__option span{text-transform:uppercase}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image{border-radius:50%;width:40px;height:40px}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image svg{width:20px;height:20px}.addUser__modal .ant-form-item-control-input{min-height:0}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
1
+ .helpdesk__container .ant-card .ant-card-body{height:100%;max-height:80dvh;overflow-y:auto}.helpdesk__content{border-radius:10px;padding:10px;max-width:400px;background-color:#f7f7f7}.helpdesk__title{padding:10px 16px}.helpdesk__title.ant-typography{color:#60c5cf}.helpdesk__fields-files{flex-direction:column;margin-top:10px;width:100%}.helpdesk__fields-files .ant-upload-list{margin-top:5px;width:100%}body.dark .helpdesk__content{background-color:#333}.form__item-multiTable .ant-transfer-list-body-customize-wrapper{overflow-y:auto}.switcher__option{display:flex;align-items:center;column-gap:5px}.switcher__option img{max-width:20px}.switcher__option span{text-transform:uppercase}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image{border-radius:50%;width:40px;height:40px}.ant-skeleton.ant-skeleton-element .language-switcher-skeleton.ant-skeleton-image svg{width:20px;height:20px}.addUser__modal .ant-form-item-control-input{min-height:0}.release-notes-image.ant-upload-wrapper,.release-notes-image-uploader .ant-upload-select{width:100%}body{height:100vh;width:100vw;overflow:hidden;background-color:#fff}body #root{height:100%}body ::placeholder{color:#919191}body .map-container{height:90dvh;width:100%}body .map-container canvas{border-radius:8px}body .map-widgets-wrapper{padding:0;min-width:400px;max-height:540px;overflow-y:auto}body .page__title-container{margin:0;padding:10px 20px;height:auto;border-bottom:1px solid rgba(5,5,5,.06)}body .page__title-container h1,body .page__title-container h2,body .page__title-container h3,body .page__title-container h4,body .page__title-container h5{color:#60c5cf;margin:0}body .recaptcha{display:flex;justify-content:center;width:100%;margin-bottom:24px}body .ant-layout-sider-trigger{border-right:1px solid rgba(5,5,5,.06)}body .ant-skeleton.ant-skeleton-element,body .ant-skeleton.ant-skeleton-element .ant-skeleton-image{width:100%;height:100%}body .filter__buttons{display:flex;align-items:center;justify-content:center;width:100%;gap:10px}body .ant-form-item .ant-form-item-control-input{min-height:32px}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content{display:flex}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper{display:flex;align-items:center}body .ant-form-item .ant-form-item-control-input .ant-form-item-control-input-content .ant-upload-wrapper .ant-upload-list-item{margin:0 0 0 10px}body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload,body .avatar-uploader.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload-select{margin-inline-end:0;margin-bottom:0}body .avatar-uploader .float-btn{opacity:0;position:absolute;bottom:3px;left:40%;transition:opacity .5s ease;display:flex;justify-content:center;align-items:center}body .avatar-uploader .float-btn-container{width:100%;height:100%;display:flex;justify-content:center}body .avatar-uploader .float-btn-container:hover .float-btn{opacity:1}body .rule-form-badge{margin-right:5px}body .rule-form-badge.ant-badge.ant-badge-status .ant-badge-status-dot{width:20px;height:20px}body .skeleton__loading{height:100%}body .ant-list-items .ant-list-item .ant-list-item-action{margin-inline-start:12px}body .ant-notification .ant-notification-notice.table-notification{min-width:500px}body .ant-notification .ant-notification-notice.notification-error{width:250px;padding:14px 16px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-icon{font-size:20px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-close{top:14px;right:14px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-message{font-size:14px;margin-inline-start:30px}body .ant-notification .ant-notification-notice.notification-error .ant-notification-notice-description{font-size:12px;margin-inline-start:30px}body .ant-spin-nested-loading,body .ant-spin-nested-loading .ant-spin-container{height:100%;width:100%}body .ant-skeleton.ant-skeleton-element.custom-skeleton{display:flex}body .esri-attribution{display:none}body .ant-carousel .slick-slider .slick-arrow{color:#60c5cf}body .ant-carousel .slick-slider .slick-dots>li>button{background:#60c5cf}body .ant-carousel .slick-slider .slick-list .slick-track .slick-slide{width:100%}body.dark{background-color:#333}body.dark .ant-layout-sider-trigger{border-right:1px solid rgba(253,253,253,.12)}body.dark .page__title-container{border-bottom:1px solid rgba(253,253,253,.12)}body.dark .ant-popover .ant-popover-arrow{--antd-arrow-background-color: #3b3b3b}body.dark .ant-popover .ant-popover-content .ant-popover-inner{background-color:#3b3b3b}body.dark .ant-badge .ant-badge-count{color:#fff;box-shadow:0 0 0 1px #3b3b3b}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { HelpdeskComponent as Helpdesk } from './lib/Helpdesk/HelpdeskConnector';
2
2
  import { LanguageSwitcherComponent as LanguageSwitcher } from './lib/LanguageSwitcher/LanguageSwitcherConnector';
3
3
  import { UserModalComponent as UserModal } from './lib/UserModal/UserModalConnector';
4
+ import { WhatsNewsComponent as WhatsNews } from './lib/WhatsNews/WhatsNewsConnector';
4
5
  import { default as i18n } from './i18n';
5
6
  export type * from './types/app';
6
7
  export type * from './types/helpdesk';
7
8
  export type * from './types/user';
8
- export { Helpdesk, i18n, LanguageSwitcher, UserModal };
9
+ export type * from './types/whatsNews';
10
+ export { Helpdesk, i18n, LanguageSwitcher, UserModal, WhatsNews };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { WhatsNewsProps } from '.';
3
+ declare const WhatsNewsComponent: FC<WhatsNewsProps>;
4
+ export { WhatsNewsComponent };
@@ -0,0 +1,17 @@
1
+ import { WhatsNewsApp, WhatsNewsReleaseNote } from '../../types/whatsNews';
2
+ import { FC } from 'react';
3
+ export interface WhatsNewsProps {
4
+ /** List of release notes; first item is used as the current "what's new" release */
5
+ releaseNotes?: WhatsNewsReleaseNote[] | null;
6
+ /** Current app for modal title */
7
+ currentApp?: WhatsNewsApp | null;
8
+ /** User id for "do not show again" API */
9
+ userId?: string | null;
10
+ /** Called when user closes with "do not show again" checked */
11
+ onDoNotShowAgain?: (idRelease: number, userId: string) => void | Promise<void>;
12
+ /** Format base64/image id to display URL. Default: prefix + value */
13
+ formatImageSrc?: (idFile?: string) => string | undefined;
14
+ /** Date format for title. Default: DD/MM/YYYY */
15
+ dateFormat?: string;
16
+ }
17
+ export declare const WhatsNews: FC<WhatsNewsProps>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns the height of the observed element (for carousel minHeight).
3
+ */
4
+ export declare function useElementSize(ref: React.RefObject<HTMLElement | null>): number;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Minimal types for WhatsNews component (release notes modal).
3
+ * Compatible with GlobalAuth release note API shape.
4
+ */
5
+ export interface WhatsNewsReleasePageContent {
6
+ title?: string;
7
+ description?: string;
8
+ }
9
+ export interface WhatsNewsReleasePageFile {
10
+ idFile?: string;
11
+ idReleasePageFiles?: number;
12
+ }
13
+ export interface WhatsNewsReleasePage {
14
+ order?: number;
15
+ gaReleasePagesContent: WhatsNewsReleasePageContent[];
16
+ gaReleasePageFiles: WhatsNewsReleasePageFile[];
17
+ }
18
+ export interface WhatsNewsReleaseNote {
19
+ idRelease?: number;
20
+ version?: string;
21
+ releaseDate?: string;
22
+ isDeployed?: boolean;
23
+ readRelease?: boolean;
24
+ gaReleasePages?: WhatsNewsReleasePage[];
25
+ }
26
+ export interface WhatsNewsApp {
27
+ id: string;
28
+ appName: string;
29
+ }
package/package.json CHANGED
@@ -1,127 +1,127 @@
1
- {
2
- "name": "aquasis-fe-components",
3
- "private": false,
4
- "version": "1.8.2",
5
- "type": "module",
6
- "license": "ISC",
7
- "author": "Ewerton Souza",
8
- "scripts": {
9
- "dev": "vite",
10
- "build": "yarn tsc && yarn vite build",
11
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12
- "preview": "vite preview",
13
- "upd-version": "npm version patch --no-git-tag-version",
14
- "prepublishOnly": "npm run build",
15
- "publish-beta": "npm publish --tag beta"
16
- },
17
- "peerDependencies": {
18
- "i18next": "^25.8.0",
19
- "react": "19.x",
20
- "react-dom": "19.x",
21
- "react-i18next": "^16.5.4",
22
- "@tanstack/react-query": "^5.90.20"
23
- },
24
- "files": [
25
- "dist"
26
- ],
27
- "main": "dist/aquasis-fe-components.umd.cjs",
28
- "module": "dist/aquasis-fe-components.js",
29
- "types": "dist/src/index.d.ts",
30
- "exports": {
31
- ".": {
32
- "import": {
33
- "types": "./dist/src/index.d.ts",
34
- "default": "./dist/aquasis-fe-components.js"
35
- },
36
- "require": {
37
- "types": "./dist/src/index.d.ts",
38
- "default": "./dist/aquasis-fe-components.umd.cjs"
39
- }
40
- }
41
- },
42
- "repository": {
43
- "type": "git",
44
- "url": "git+https://github.com/AQUASISPT/FrontendComponents.git"
45
- },
46
- "keywords": [
47
- "react"
48
- ],
49
- "homepage": "https://github.com/AQUASISPT/FrontendComponents",
50
- "browserslist": {
51
- "production": [
52
- ">0.2%",
53
- "not dead",
54
- "not op_mini all"
55
- ],
56
- "development": [
57
- "last 1 chrome version",
58
- "last 1 firefox version",
59
- "last 1 safari version"
60
- ]
61
- },
62
- "eslintConfig": {
63
- "env": {
64
- "browser": true,
65
- "node": true,
66
- "es2020": true
67
- },
68
- "extends": [
69
- "eslint:recommended",
70
- "plugin:react/recommended"
71
- ],
72
- "parserOptions": {
73
- "sourceType": "module"
74
- }
75
- },
76
- "devDependencies": {
77
- "@types/lodash": "^4.17.23",
78
- "@types/node": "^25.1.0",
79
- "@types/react": "^19.2.10",
80
- "@types/react-dom": "^19.2.3",
81
- "@tanstack/react-query": "^5.90.20",
82
- "@typescript-eslint/eslint-plugin": "^8.54.0",
83
- "@typescript-eslint/parser": "^8.54.0",
84
- "@vitejs/plugin-react": "^5.1.2",
85
- "eslint": "^9.39.2",
86
- "eslint-plugin-react-hooks": "^7.0.1",
87
- "eslint-plugin-react-refresh": "^0.4.26",
88
- "json": "^11.0.0",
89
- "sass": "^1.97.3",
90
- "typescript": "^5.9.3",
91
- "vite": "^7.3.1"
92
- },
93
- "dependencies": {
94
- "@ant-design/icons": "^6.1.0",
95
- "@fortawesome/fontawesome-svg-core": "^7.1.0",
96
- "@fortawesome/free-regular-svg-icons": "^7.1.0",
97
- "@fortawesome/free-solid-svg-icons": "^7.1.0",
98
- "@fortawesome/react-fontawesome": "^3.1.1",
99
- "@rc-component/trigger": "^3.9.0",
100
- "@reduxjs/toolkit": "^2.11.2",
101
- "@types/hoist-non-react-statics": "^3.3.7",
102
- "@uidotdev/usehooks": "^2.4.1",
103
- "antd": "^6.2.2",
104
- "axios": "^1.13.4",
105
- "classnames": "^2.5.1",
106
- "dayjs": "^1.11.19",
107
- "hoist-non-react-statics": "^3.3.2",
108
- "i18next": "^25.8.0",
109
- "i18next-browser-languagedetector": "^8.2.0",
110
- "lodash": "^4.17.23",
111
- "rc-motion": "^2.9.5",
112
- "rc-resize-observer": "^1.4.3",
113
- "react": "19.2.4",
114
- "react-dom": "19.2.4",
115
- "react-i18next": "^16.5.4",
116
- "react-redux": "^9.1.2",
117
- "react-router-dom": "^7.13.0",
118
- "redux": "^5.0.1",
119
- "scss": "^0.2.4",
120
- "universal-cookie": "^8.0.1",
121
- "vite-plugin-dts": "^4.5.4",
122
- "vite-plugin-lib-inject-css": "^2.2.2"
123
- },
124
- "resolutions": {
125
- "@rc-component/trigger": "^3.9.0"
126
- }
127
- }
1
+ {
2
+ "name": "aquasis-fe-components",
3
+ "private": false,
4
+ "version": "1.9.0",
5
+ "type": "module",
6
+ "license": "ISC",
7
+ "author": "Ewerton Souza",
8
+ "scripts": {
9
+ "dev": "vite",
10
+ "build": "yarn tsc && yarn vite build",
11
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
12
+ "preview": "vite preview",
13
+ "upd-version": "npm version patch --no-git-tag-version",
14
+ "prepublishOnly": "npm run build",
15
+ "publish-beta": "npm publish --tag beta"
16
+ },
17
+ "peerDependencies": {
18
+ "i18next": "^25.8.0",
19
+ "react": "19.x",
20
+ "react-dom": "19.x",
21
+ "react-i18next": "^16.5.4",
22
+ "@tanstack/react-query": "^5.90.21"
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "main": "dist/aquasis-fe-components.umd.cjs",
28
+ "module": "dist/aquasis-fe-components.js",
29
+ "types": "dist/src/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "import": {
33
+ "types": "./dist/src/index.d.ts",
34
+ "default": "./dist/aquasis-fe-components.js"
35
+ },
36
+ "require": {
37
+ "types": "./dist/src/index.d.ts",
38
+ "default": "./dist/aquasis-fe-components.umd.cjs"
39
+ }
40
+ }
41
+ },
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/AQUASISPT/FrontendComponents.git"
45
+ },
46
+ "keywords": [
47
+ "react"
48
+ ],
49
+ "homepage": "https://github.com/AQUASISPT/FrontendComponents",
50
+ "browserslist": {
51
+ "production": [
52
+ ">0.2%",
53
+ "not dead",
54
+ "not op_mini all"
55
+ ],
56
+ "development": [
57
+ "last 1 chrome version",
58
+ "last 1 firefox version",
59
+ "last 1 safari version"
60
+ ]
61
+ },
62
+ "eslintConfig": {
63
+ "env": {
64
+ "browser": true,
65
+ "node": true,
66
+ "es2020": true
67
+ },
68
+ "extends": [
69
+ "eslint:recommended",
70
+ "plugin:react/recommended"
71
+ ],
72
+ "parserOptions": {
73
+ "sourceType": "module"
74
+ }
75
+ },
76
+ "devDependencies": {
77
+ "@types/lodash": "^4.17.23",
78
+ "@types/node": "^25.1.0",
79
+ "@types/react": "^19.2.10",
80
+ "@types/react-dom": "^19.2.3",
81
+ "@tanstack/react-query": "^5.90.21",
82
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
83
+ "@typescript-eslint/parser": "^8.54.0",
84
+ "@vitejs/plugin-react": "^5.1.2",
85
+ "eslint": "^9.39.2",
86
+ "eslint-plugin-react-hooks": "^7.0.1",
87
+ "eslint-plugin-react-refresh": "^0.4.26",
88
+ "json": "^11.0.0",
89
+ "sass": "^1.97.3",
90
+ "typescript": "^5.9.3",
91
+ "vite": "^7.3.1"
92
+ },
93
+ "dependencies": {
94
+ "@ant-design/icons": "^6.1.0",
95
+ "@fortawesome/fontawesome-svg-core": "^7.1.0",
96
+ "@fortawesome/free-regular-svg-icons": "^7.1.0",
97
+ "@fortawesome/free-solid-svg-icons": "^7.1.0",
98
+ "@fortawesome/react-fontawesome": "^3.1.1",
99
+ "@rc-component/trigger": "^3.9.0",
100
+ "@reduxjs/toolkit": "^2.11.2",
101
+ "@types/hoist-non-react-statics": "^3.3.7",
102
+ "@uidotdev/usehooks": "^2.4.1",
103
+ "antd": "^6.2.2",
104
+ "axios": "^1.13.4",
105
+ "classnames": "^2.5.1",
106
+ "dayjs": "^1.11.19",
107
+ "hoist-non-react-statics": "^3.3.2",
108
+ "i18next": "^25.8.0",
109
+ "i18next-browser-languagedetector": "^8.2.0",
110
+ "lodash": "^4.17.23",
111
+ "rc-motion": "^2.9.5",
112
+ "rc-resize-observer": "^1.4.3",
113
+ "react": "19.2.4",
114
+ "react-dom": "19.2.4",
115
+ "react-i18next": "^16.5.4",
116
+ "react-redux": "^9.1.2",
117
+ "react-router-dom": "^7.13.0",
118
+ "redux": "^5.0.1",
119
+ "scss": "^0.2.4",
120
+ "universal-cookie": "^8.0.1",
121
+ "vite-plugin-dts": "^4.5.4",
122
+ "vite-plugin-lib-inject-css": "^2.2.2"
123
+ },
124
+ "resolutions": {
125
+ "@rc-component/trigger": "^3.9.0"
126
+ }
127
+ }