@equinor/fusion-framework-react-app 5.5.2 → 5.5.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/CHANGELOG.md +7 -0
- package/dist/esm/ag-grid/useTheme.js +9 -0
- package/dist/esm/ag-grid/useTheme.js.map +1 -0
- package/dist/esm/bookmark/useBookmark.js +1 -1
- package/dist/esm/bookmark/useBookmark.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/ag-grid/useTheme.d.ts +2 -0
- package/dist/types/bookmark/useBookmark.d.ts +2 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -4
- package/src/ag-grid/useTheme.ts +13 -0
- package/src/bookmark/useBookmark.ts +5 -2
- package/src/version.ts +1 -1
- package/tsconfig.json +7 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type useBookmarkResult } from '@equinor/fusion-framework-react-module-bookmark';
|
|
1
2
|
/**
|
|
2
3
|
* @deprecated Use useBookmark from @equinor/fusion-framework-react-module-bookmark
|
|
3
4
|
* For application development the useCurrentBookmark should be sufficient enough
|
|
@@ -15,5 +16,5 @@
|
|
|
15
16
|
* @template TData - Current applications bookmark type
|
|
16
17
|
* @return {*} {Bookmarks<TData>} the full api fro handling bookmarks
|
|
17
18
|
*/
|
|
18
|
-
export declare const useBookmark: <TData>() =>
|
|
19
|
+
export declare const useBookmark: <TData>() => useBookmarkResult;
|
|
19
20
|
export default useBookmark;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.5.
|
|
1
|
+
export declare const version = "5.5.3";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-react-app",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -89,12 +89,12 @@
|
|
|
89
89
|
"directory": "packages/react"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@equinor/fusion-framework-app": "^9.2.2",
|
|
93
92
|
"@equinor/fusion-framework-module": "^4.3.5",
|
|
94
93
|
"@equinor/fusion-framework-module-app": "^6.1.3",
|
|
94
|
+
"@equinor/fusion-framework-app": "^9.2.2",
|
|
95
95
|
"@equinor/fusion-framework-module-navigation": "^4.0.7",
|
|
96
|
-
"@equinor/fusion-framework-react-module": "^3.1.6",
|
|
97
96
|
"@equinor/fusion-framework-react": "^7.3.7",
|
|
97
|
+
"@equinor/fusion-framework-react-module": "^3.1.6",
|
|
98
98
|
"@equinor/fusion-framework-react-module-http": "^8.0.0"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
@@ -104,11 +104,12 @@
|
|
|
104
104
|
"react-dom": "^18.2.0",
|
|
105
105
|
"rxjs": "^7.8.1",
|
|
106
106
|
"typescript": "^5.5.4",
|
|
107
|
+
"@equinor/fusion-framework-module-ag-grid": "^33.0.0",
|
|
107
108
|
"@equinor/fusion-framework-module-event": "^4.3.0",
|
|
108
109
|
"@equinor/fusion-framework-module-feature-flag": "^1.1.11",
|
|
109
|
-
"@equinor/fusion-framework-react-module-context": "^6.2.16",
|
|
110
110
|
"@equinor/fusion-framework-module-msal": "^3.1.5",
|
|
111
111
|
"@equinor/fusion-framework-react-widget": "^1.1.25",
|
|
112
|
+
"@equinor/fusion-framework-react-module-context": "^6.2.16",
|
|
112
113
|
"@equinor/fusion-framework-react-module-bookmark": "^2.3.1",
|
|
113
114
|
"@equinor/fusion-observable": "^8.4.3"
|
|
114
115
|
},
|
|
@@ -120,6 +121,9 @@
|
|
|
120
121
|
"@equinor/fusion-framework-module-msal": "^3.1.5"
|
|
121
122
|
},
|
|
122
123
|
"peerDependenciesMeta": {
|
|
124
|
+
"@equinor/fusion-framework-react-module-ag-grid": {
|
|
125
|
+
"optional": true
|
|
126
|
+
},
|
|
123
127
|
"@equinor/fusion-framework-react-module-context": {
|
|
124
128
|
"optional": true
|
|
125
129
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useAppModule } from '../useAppModule';
|
|
2
|
+
import { type AgGridModule } from '@equinor/fusion-framework-module-ag-grid';
|
|
3
|
+
import { type Theme } from '@equinor/fusion-framework-module-ag-grid/themes';
|
|
4
|
+
|
|
5
|
+
export const useTheme = (): Theme => {
|
|
6
|
+
const agGrid = useAppModule<AgGridModule>('agGrid');
|
|
7
|
+
|
|
8
|
+
if (!agGrid) {
|
|
9
|
+
throw new Error('agGrid module is not available');
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
return agGrid.theme as Theme;
|
|
13
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
useBookmark as _useBookmark,
|
|
3
|
+
type useBookmarkResult,
|
|
4
|
+
} from '@equinor/fusion-framework-react-module-bookmark';
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
7
|
* @deprecated Use useBookmark from @equinor/fusion-framework-react-module-bookmark
|
|
@@ -18,6 +21,6 @@ import { useBookmark as _useBookmark } from '@equinor/fusion-framework-react-mod
|
|
|
18
21
|
* @return {*} {Bookmarks<TData>} the full api fro handling bookmarks
|
|
19
22
|
*/
|
|
20
23
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
21
|
-
export const useBookmark = <TData>() => _useBookmark();
|
|
24
|
+
export const useBookmark = <TData>(): useBookmarkResult => _useBookmark();
|
|
22
25
|
|
|
23
26
|
export default useBookmark;
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '5.5.
|
|
2
|
+
export const version = '5.5.3';
|
package/tsconfig.json
CHANGED
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
{
|
|
19
19
|
"path": "../framework"
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"path": "../../modules/ag-grid"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../modules/navigation"
|
|
26
|
+
},
|
|
21
27
|
{
|
|
22
28
|
"path": "../modules/module"
|
|
23
29
|
},
|
|
@@ -29,10 +35,7 @@
|
|
|
29
35
|
},
|
|
30
36
|
{
|
|
31
37
|
"path": "../modules/bookmark"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"path": "../../modules/navigation"
|
|
35
|
-
},
|
|
38
|
+
},
|
|
36
39
|
{
|
|
37
40
|
"path": "../widget"
|
|
38
41
|
},
|