@firedesktop/react-base 1.70.0 → 1.71.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/components/AppIcon.d.ts +1 -1
- package/dist/components/AppInput.d.ts +1 -1
- package/dist/components/AppPagination.d.ts +1 -2
- package/dist/components/Spin.d.ts +1 -2
- package/dist/components/Toaster/Toaster.d.ts +1 -2
- package/dist/utils/configuration/ConfigurationLoader.d.ts +1 -2
- package/dist/utils/configuration/ConfigurationLoader.js +1 -1
- package/dist/utils/configuration/ConfigurationLoader.js.map +1 -1
- package/dist/utils/configuration/ConfigurationReturner.d.ts +1 -2
- package/dist/utils/labels/LanguageLoader.d.ts +1 -2
- package/dist/utils/labels/LanguageLoader.js +1 -1
- package/dist/utils/labels/LanguageLoader.js.map +1 -1
- package/dist/utils/labels/LanguageReturner.d.ts +1 -2
- package/package.json +12 -12
- package/src/lib/utils/configuration/ConfigurationLoader.tsx +1 -1
- package/src/lib/utils/labels/LanguageLoader.tsx +1 -1
|
@@ -10,7 +10,7 @@ type PropType = {
|
|
|
10
10
|
ref?: React.LegacyRef<SVGSVGElement>;
|
|
11
11
|
stroke?: string;
|
|
12
12
|
};
|
|
13
|
-
declare function AppIcon({ className, fill, iconClassName, iconHeight, iconWidth, name, onClick, ref, stroke }: PropType): JSX.Element;
|
|
13
|
+
declare function AppIcon({ className, fill, iconClassName, iconHeight, iconWidth, name, onClick, ref, stroke }: PropType): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
declare namespace AppIcon {
|
|
15
15
|
var defaultProps: {
|
|
16
16
|
className: string;
|
|
@@ -16,5 +16,5 @@ type Proptype = {
|
|
|
16
16
|
type?: AppInputType_Type;
|
|
17
17
|
value?: string | number;
|
|
18
18
|
};
|
|
19
|
-
declare function AppInput({ appIcon, ariadescribedby, autoComplete, autoFocus, className, classNameWrapper, id, name, onChange, onKeyUp, placeholder, ref, type, value }: Proptype): JSX.Element;
|
|
19
|
+
declare function AppInput({ appIcon, ariadescribedby, autoComplete, autoFocus, className, classNameWrapper, id, name, onChange, onKeyUp, placeholder, ref, type, value }: Proptype): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default AppInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type PropType = {
|
|
3
2
|
activePage: number;
|
|
4
3
|
className?: string;
|
|
@@ -8,5 +7,5 @@ type PropType = {
|
|
|
8
7
|
pageFontSize?: number;
|
|
9
8
|
totalItems: number;
|
|
10
9
|
};
|
|
11
|
-
declare function AppPagination({ activePage, className, itemsPerPage, maxSize, onPageChange, pageFontSize, totalItems }: PropType): JSX.Element;
|
|
10
|
+
declare function AppPagination({ activePage, className, itemsPerPage, maxSize, onPageChange, pageFontSize, totalItems }: PropType): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export default AppPagination;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Spin_TYPE = {
|
|
3
2
|
spinning: boolean;
|
|
4
3
|
targetId?: string;
|
|
5
4
|
};
|
|
6
|
-
declare const Spin: ({ spinning, targetId }: Spin_TYPE) => JSX.Element;
|
|
5
|
+
declare const Spin: ({ spinning, targetId }: Spin_TYPE) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default Spin;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import '../../styles/toaster.css';
|
|
3
2
|
import * as Types from './Types';
|
|
4
3
|
type Toaster_Props = {
|
|
5
4
|
propertiesObject: Types.Toaster_Prop_Type;
|
|
6
5
|
};
|
|
7
|
-
declare const Toaster: ({ propertiesObject }: Toaster_Props) => JSX.Element;
|
|
6
|
+
declare const Toaster: ({ propertiesObject }: Toaster_Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default Toaster;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type configurationLoaderParamsType = {
|
|
3
2
|
updateAppState: (name: string, value: object) => any;
|
|
4
3
|
path?: string;
|
|
5
4
|
};
|
|
6
|
-
declare function ConfigurationLoader({ updateAppState, path }: configurationLoaderParamsType): JSX.Element;
|
|
5
|
+
declare function ConfigurationLoader({ updateAppState, path }: configurationLoaderParamsType): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default ConfigurationLoader;
|
|
@@ -41,7 +41,7 @@ import ConfigurationManager from './ConfigurationManager';
|
|
|
41
41
|
function ConfigurationLoader(_a) {
|
|
42
42
|
var updateAppState = _a.updateAppState, path = _a.path;
|
|
43
43
|
var dispatch = useDispatch();
|
|
44
|
-
var configuration = useSelector(function (state) { return state; })
|
|
44
|
+
var configuration = useSelector(function (state) { return state.configuration; });
|
|
45
45
|
var loadConfiguration = ConfigurationManager().loadConfiguration;
|
|
46
46
|
var fullPath = '/configuration/config.json';
|
|
47
47
|
if (path)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigurationLoader.js","sourceRoot":"","sources":["../../../src/lib/utils/configuration/ConfigurationLoader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAO1D,SAAS,mBAAmB,CAAC,EAAuD;QAArD,cAAc,oBAAA,EAAE,IAAI,UAAA;IAC/C,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigurationLoader.js","sourceRoot":"","sources":["../../../src/lib/utils/configuration/ConfigurationLoader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAA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
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type Configuration_Type = {
|
|
3
2
|
loaded: boolean;
|
|
4
3
|
};
|
|
@@ -7,4 +6,4 @@ export type configurationLoaderParamsType = {
|
|
|
7
6
|
onConfigurationLoad: (condifiguration?: Configuration_Type) => void;
|
|
8
7
|
path: string;
|
|
9
8
|
};
|
|
10
|
-
export default function ConfigurationReturner({ configuration, onConfigurationLoad, path }: configurationLoaderParamsType): JSX.Element;
|
|
9
|
+
export default function ConfigurationReturner({ configuration, onConfigurationLoad, path }: configurationLoaderParamsType): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type languageLoaderParamsType = {
|
|
3
2
|
updateAppState: (name: string, value: object) => any;
|
|
4
3
|
language: string;
|
|
5
4
|
path?: string;
|
|
6
5
|
};
|
|
7
|
-
declare function LanguageLoader({ updateAppState, language, path }: languageLoaderParamsType): JSX.Element;
|
|
6
|
+
declare function LanguageLoader({ updateAppState, language, path }: languageLoaderParamsType): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default LanguageLoader;
|
|
@@ -42,7 +42,7 @@ import LanguageManager from './LanguageManager';
|
|
|
42
42
|
function LanguageLoader(_a) {
|
|
43
43
|
var updateAppState = _a.updateAppState, language = _a.language, path = _a.path;
|
|
44
44
|
var dispatch = useDispatch();
|
|
45
|
-
var labels = useSelector(function (state) { return state; })
|
|
45
|
+
var labels = useSelector(function (state) { return state.labels; });
|
|
46
46
|
var loadLabels = LanguageManager().loadLabels;
|
|
47
47
|
var avoidCache = new Date().getTime();
|
|
48
48
|
var fileName = "".concat(language, ".json");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageLoader.js","sourceRoot":"","sources":["../../../src/lib/utils/labels/LanguageLoader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,CAAC,MAAM,QAAQ,CA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AEhB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,CACH,KAAC,KAAK,CAAC,QAAQ,KACE,CACpB,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type Labels_Type = {
|
|
3
2
|
language: string;
|
|
4
3
|
};
|
|
@@ -8,4 +7,4 @@ export type languageLoaderParamsType = {
|
|
|
8
7
|
onLanguageLoad: (language?: Labels_Type) => void;
|
|
9
8
|
path: string;
|
|
10
9
|
};
|
|
11
|
-
export default function LanguageReturner({ labels, language, onLanguageLoad, path }: languageLoaderParamsType): JSX.Element;
|
|
10
|
+
export default function LanguageReturner({ labels, language, onLanguageLoad, path }: languageLoaderParamsType): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firedesktop/react-base",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.71.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"description": "This is the FireDesktop base package used to support every React Project in this Company.",
|
|
7
7
|
"author": "alessandro.gambaro",
|
|
8
8
|
"repository": "https://firedesktopDevOps@dev.azure.com/firedesktopDevOps/baseFEComponents/_git/baseFEComponents",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@syncfusion/ej2-popups": "21.2.
|
|
10
|
+
"@syncfusion/ej2-popups": "21.2.10",
|
|
11
11
|
"@syncfusion/ej2-react-notifications": "21.2.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@babel/cli": "7.
|
|
15
|
-
"@babel/core": "7.
|
|
14
|
+
"@babel/cli": "7.22.5",
|
|
15
|
+
"@babel/core": "7.22.5",
|
|
16
16
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
17
|
-
"@babel/plugin-transform-arrow-functions": "7.
|
|
18
|
-
"@babel/preset-typescript": "7.
|
|
17
|
+
"@babel/plugin-transform-arrow-functions": "7.22.5",
|
|
18
|
+
"@babel/preset-typescript": "7.22.5",
|
|
19
19
|
"@testing-library/jest-dom": "5.16.5",
|
|
20
20
|
"@testing-library/react": "14.0.0",
|
|
21
21
|
"@testing-library/user-event": "14.4.3",
|
|
22
|
-
"@types/jest": "29.5.
|
|
23
|
-
"@types/node": "
|
|
24
|
-
"@types/react": "18.2.
|
|
25
|
-
"@types/react-dom": "18.2.
|
|
22
|
+
"@types/jest": "29.5.2",
|
|
23
|
+
"@types/node": "20.3.1",
|
|
24
|
+
"@types/react": "18.2.12",
|
|
25
|
+
"@types/react-dom": "18.2.5",
|
|
26
26
|
"@types/react-redux": "7.1.25",
|
|
27
27
|
"babel-plugin-minify-builtins": "0.5.0",
|
|
28
28
|
"babel-preset-minify": "0.5.2",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"lodash": "4.17.21",
|
|
32
32
|
"react": "18.2.0",
|
|
33
33
|
"react-dom": "18.2.0",
|
|
34
|
-
"react-redux": "8.0
|
|
34
|
+
"react-redux": "8.1.0",
|
|
35
35
|
"react-scripts": "5.0.1",
|
|
36
36
|
"typescript": "4.9.4",
|
|
37
|
-
"web-vitals": "3.3.
|
|
37
|
+
"web-vitals": "3.3.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"bootstrap": ">=4.5.3",
|
|
@@ -10,7 +10,7 @@ export type configurationLoaderParamsType = {
|
|
|
10
10
|
|
|
11
11
|
function ConfigurationLoader({ updateAppState, path }: configurationLoaderParamsType) {
|
|
12
12
|
const dispatch = useDispatch();
|
|
13
|
-
const
|
|
13
|
+
const configuration: any = useSelector((state: any) => state.configuration);
|
|
14
14
|
const { loadConfiguration } = ConfigurationManager();
|
|
15
15
|
|
|
16
16
|
let fullPath = '/configuration/config.json';
|
|
@@ -12,7 +12,7 @@ export type languageLoaderParamsType = {
|
|
|
12
12
|
|
|
13
13
|
function LanguageLoader({ updateAppState, language, path }: languageLoaderParamsType) {
|
|
14
14
|
const dispatch = useDispatch();
|
|
15
|
-
const
|
|
15
|
+
const labels: any = useSelector((state: any) => state.labels);
|
|
16
16
|
const { loadLabels } = LanguageManager();
|
|
17
17
|
|
|
18
18
|
var avoidCache = new Date().getTime();
|