@oliasoft-open-source/react-ui-library 5.10.0-beta-2 → 5.10.0-beta-3
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.d.ts +3 -3
- package/dist/index.js +12 -12
- package/package.json +6 -3
package/dist/index.d.ts
CHANGED
|
@@ -1868,9 +1868,9 @@ declare interface IUnitTableStaticCell extends IStaticCell, IUnitTableCell {
|
|
|
1868
1868
|
|
|
1869
1869
|
export declare interface IUsageTrackerProps {
|
|
1870
1870
|
pathName: string;
|
|
1871
|
+
moduleName: string;
|
|
1871
1872
|
onNavigate: (args: NavigationEventArgs) => void;
|
|
1872
|
-
|
|
1873
|
-
onStartNavigationTimeEvent?: () => void;
|
|
1873
|
+
onStartTimingEvent?: () => void;
|
|
1874
1874
|
}
|
|
1875
1875
|
|
|
1876
1876
|
declare type JsonDelta = Record<string, any>;
|
|
@@ -2231,7 +2231,7 @@ export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, er
|
|
|
2231
2231
|
|
|
2232
2232
|
export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, onListReorder, canListReorder, beforeRenderRow: beforeRenderRowProp, }: IUnitTableProps) => JSX_2.Element;
|
|
2233
2233
|
|
|
2234
|
-
export declare const UsageTracker: ({ pathName,
|
|
2234
|
+
export declare const UsageTracker: ({ pathName, moduleName, onNavigate, onStartTimingEvent, }: IUsageTrackerProps) => null;
|
|
2235
2235
|
|
|
2236
2236
|
export declare const useFocus: () => UseFocusReturnType;
|
|
2237
2237
|
|
package/dist/index.js
CHANGED
|
@@ -8688,29 +8688,29 @@ const ComparisonViewModal = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, se
|
|
|
8688
8688
|
auditLog: f,
|
|
8689
8689
|
data: t
|
|
8690
8690
|
})] });
|
|
8691
|
-
}, UsageTracker = ({ pathName: e,
|
|
8692
|
-
let i = window.location.href, a =
|
|
8691
|
+
}, UsageTracker = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
8692
|
+
let i = window.location.href, a = useRef(i);
|
|
8693
8693
|
return useEffect(() => {
|
|
8694
|
-
|
|
8694
|
+
a.current = i;
|
|
8695
8695
|
let e = Date.now();
|
|
8696
8696
|
r && r();
|
|
8697
|
-
let
|
|
8698
|
-
|
|
8699
|
-
moduleName:
|
|
8700
|
-
moduleUrl:
|
|
8697
|
+
let o = () => {
|
|
8698
|
+
n({
|
|
8699
|
+
moduleName: t,
|
|
8700
|
+
moduleUrl: a.current,
|
|
8701
8701
|
startTime: e,
|
|
8702
8702
|
endTime: Date.now()
|
|
8703
8703
|
});
|
|
8704
8704
|
};
|
|
8705
|
-
return window.addEventListener("beforeunload",
|
|
8706
|
-
window.removeEventListener("beforeunload",
|
|
8707
|
-
moduleName:
|
|
8708
|
-
moduleUrl:
|
|
8705
|
+
return window.addEventListener("beforeunload", o), () => {
|
|
8706
|
+
window.removeEventListener("beforeunload", o), n({
|
|
8707
|
+
moduleName: t,
|
|
8708
|
+
moduleUrl: a.current,
|
|
8709
8709
|
startTime: e,
|
|
8710
8710
|
endTime: Date.now()
|
|
8711
8711
|
});
|
|
8712
8712
|
};
|
|
8713
|
-
}, [e,
|
|
8713
|
+
}, [e, t]), null;
|
|
8714
8714
|
}, isPrimitiveValue = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, initializeGuiLibrary = (e) => {
|
|
8715
8715
|
setConfig(ConfigKeyType.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
8716
8716
|
if (e === ConfigKeyType.Translations) setConfig(e, getTranslations(t));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/react-ui-library",
|
|
3
|
-
"version": "5.10.0-beta-
|
|
3
|
+
"version": "5.10.0-beta-3",
|
|
4
4
|
"description": "Reusable UI components for React projects",
|
|
5
5
|
"homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
|
|
6
6
|
"bugs": {
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"lint:check": "eslint \"**/*.{js,jsx,ts,tsx}\"",
|
|
41
41
|
"lint:fix": "eslint --fix \"**/*.{js,jsx,ts,tsx}\"",
|
|
42
42
|
"prepare": "husky",
|
|
43
|
-
"prettier:check": "prettier --check \"**/*.{js,jsx,json,css,less}\"",
|
|
44
|
-
"prettier:fix": "prettier --write \"**/*.{js,jsx,json,css,less}\"",
|
|
43
|
+
"prettier:check": "prettier --check \"**/*.{js,jsx,json,css,less,ts,tsx}\"",
|
|
44
|
+
"prettier:fix": "prettier --write \"**/*.{js,jsx,json,css,less,ts,tsx}\"",
|
|
45
45
|
"preview:docs": "yarn build:docs && yarn run http-server ./public -o -p 9002 -c-1",
|
|
46
46
|
"preview:storybook": "yarn run http-server ./public/storybook -o -p 9003 -c-1",
|
|
47
47
|
"test": "yarn run prettier:check && yarn run lint:check && yarn run test:unit",
|
|
@@ -104,6 +104,9 @@
|
|
|
104
104
|
"@storybook/test-runner": "0.23.0",
|
|
105
105
|
"@storybook/theming": "^8.6.14",
|
|
106
106
|
"@storybook/types": "^8.6.14",
|
|
107
|
+
"@testing-library/dom": "^10.4.1",
|
|
108
|
+
"@testing-library/react": "^16.3.1",
|
|
109
|
+
"@testing-library/user-event": "^14.6.1",
|
|
107
110
|
"@types/jest": "^29.5.14",
|
|
108
111
|
"@types/papaparse": "^5.3.16",
|
|
109
112
|
"@types/react": "^18.3.18",
|