@equinor/fusion-framework-react-app 6.1.2 → 6.1.4
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 +20 -0
- package/dist/esm/help-center/useHelpCenter.js +3 -0
- package/dist/esm/help-center/useHelpCenter.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/help-center/useHelpCenter.d.ts +34 -8
- package/dist/types/version.d.ts +1 -1
- package/package.json +16 -16
- package/src/help-center/useHelpCenter.ts +42 -2
- package/src/version.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type HelpCenterEventDetailBase<T extends string, V extends Record<string, unknown> =
|
|
1
|
+
type HelpCenterEventDetailBase<T extends string, V extends Record<string, unknown> = Record<string, unknown>> = {
|
|
2
2
|
page: T;
|
|
3
3
|
} & V;
|
|
4
4
|
type OpenHelpDetail = HelpCenterEventDetailBase<'home'>;
|
|
@@ -12,11 +12,37 @@ type OpenSearchDetail = HelpCenterEventDetailBase<'search', {
|
|
|
12
12
|
type OpenGovernanceDetail = HelpCenterEventDetailBase<'governance'>;
|
|
13
13
|
export type HelpCenterOpenEventDetail = OpenHelpDetail | OpenArticleDetail | OpenFaqsDetail | OpenSearchDetail | OpenGovernanceDetail;
|
|
14
14
|
export declare const EVENT_NAME = "@Portal::FusionHelp::open";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Interface for requesting help features.
|
|
17
|
+
*/
|
|
18
|
+
export interface HelpCenter {
|
|
19
|
+
/**
|
|
20
|
+
* Requesting the portal to open the help sidesheet on the normal page
|
|
21
|
+
*/
|
|
22
|
+
openHelp(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Requesting the portal to open the help sidesheet on the article page.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} articleId - The articleId, slug or identifier to show.
|
|
27
|
+
*/
|
|
28
|
+
openArticle(articleId: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Requesting the portal to open the help sidesheet on the FAQs page.
|
|
31
|
+
*/
|
|
32
|
+
openFaqs(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Requesting the portal to open the help sidesheet on the search page.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} search - The search string.
|
|
37
|
+
*/
|
|
38
|
+
openSearch(search: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* Requesting the portal to open the help sidesheet on the governance tab.
|
|
41
|
+
*/
|
|
42
|
+
openGovernance(): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Hook for accessing help center.
|
|
46
|
+
*/
|
|
47
|
+
export declare const useHelpCenter: () => HelpCenter;
|
|
22
48
|
export default useHelpCenter;
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.1.
|
|
1
|
+
export declare const version = "6.1.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-framework-react-app",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
"directory": "packages/react"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@equinor/fusion-framework-
|
|
100
|
-
"@equinor/fusion-framework-module": "^
|
|
101
|
-
"@equinor/fusion-framework-module-navigation": "^5.0.
|
|
102
|
-
"@equinor/fusion-framework-react": "^7.4.
|
|
103
|
-
"@equinor/fusion-framework-
|
|
104
|
-
"@equinor/fusion-framework-react-module
|
|
105
|
-
"@equinor/fusion-framework-
|
|
99
|
+
"@equinor/fusion-framework-app": "^9.3.13",
|
|
100
|
+
"@equinor/fusion-framework-module-app": "^6.1.13",
|
|
101
|
+
"@equinor/fusion-framework-module-navigation": "^5.0.2",
|
|
102
|
+
"@equinor/fusion-framework-react": "^7.4.11",
|
|
103
|
+
"@equinor/fusion-framework-react-module-http": "^9.0.2",
|
|
104
|
+
"@equinor/fusion-framework-react-module": "^3.1.12",
|
|
105
|
+
"@equinor/fusion-framework-module": "^4.4.2"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@types/react": "^18.2.50",
|
|
@@ -111,20 +111,20 @@
|
|
|
111
111
|
"react-dom": "^18.2.0",
|
|
112
112
|
"rxjs": "^7.8.1",
|
|
113
113
|
"typescript": "^5.8.2",
|
|
114
|
-
"@equinor/fusion-framework-module-
|
|
115
|
-
"@equinor/fusion-framework-module-
|
|
116
|
-
"@equinor/fusion-framework-module-msal": "^4.0.
|
|
117
|
-
"@equinor/fusion-framework-module-feature-flag": "^1.1.
|
|
118
|
-
"@equinor/fusion-framework-react-module-bookmark": "^4.0.
|
|
119
|
-
"@equinor/fusion-
|
|
120
|
-
"@equinor/fusion-
|
|
114
|
+
"@equinor/fusion-framework-module-event": "^4.3.6",
|
|
115
|
+
"@equinor/fusion-framework-module-ag-grid": "^34.0.2",
|
|
116
|
+
"@equinor/fusion-framework-module-msal": "^4.0.6",
|
|
117
|
+
"@equinor/fusion-framework-module-feature-flag": "^1.1.18",
|
|
118
|
+
"@equinor/fusion-framework-react-module-bookmark": "^4.0.2",
|
|
119
|
+
"@equinor/fusion-framework-react-module-context": "^6.2.27",
|
|
120
|
+
"@equinor/fusion-observable": "^8.4.9"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
124
124
|
"react": "^17.0.0 || ^18.0.0",
|
|
125
125
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
126
126
|
"rxjs": "^7.8.1",
|
|
127
|
-
"@equinor/fusion-framework-module-msal": "^4.0.
|
|
127
|
+
"@equinor/fusion-framework-module-msal": "^4.0.6"
|
|
128
128
|
},
|
|
129
129
|
"peerDependenciesMeta": {
|
|
130
130
|
"@equinor/fusion-framework-react-module-ag-grid": {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { useCallback } from 'react';
|
|
2
2
|
import useAppModule from '../useAppModule';
|
|
3
3
|
|
|
4
|
-
type HelpCenterEventDetailBase<
|
|
4
|
+
type HelpCenterEventDetailBase<
|
|
5
|
+
T extends string,
|
|
6
|
+
V extends Record<string, unknown> = Record<string, unknown>,
|
|
7
|
+
> = {
|
|
5
8
|
page: T;
|
|
6
9
|
} & V;
|
|
7
10
|
|
|
@@ -34,7 +37,44 @@ export type HelpCenterOpenEventDetail =
|
|
|
34
37
|
|
|
35
38
|
export const EVENT_NAME = '@Portal::FusionHelp::open';
|
|
36
39
|
|
|
37
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Interface for requesting help features.
|
|
42
|
+
*/
|
|
43
|
+
export interface HelpCenter {
|
|
44
|
+
/**
|
|
45
|
+
* Requesting the portal to open the help sidesheet on the normal page
|
|
46
|
+
*/
|
|
47
|
+
openHelp(): void;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Requesting the portal to open the help sidesheet on the article page.
|
|
51
|
+
*
|
|
52
|
+
* @param {string} articleId - The articleId, slug or identifier to show.
|
|
53
|
+
*/
|
|
54
|
+
openArticle(articleId: string): void;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Requesting the portal to open the help sidesheet on the FAQs page.
|
|
58
|
+
*/
|
|
59
|
+
openFaqs(): void;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Requesting the portal to open the help sidesheet on the search page.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} search - The search string.
|
|
65
|
+
*/
|
|
66
|
+
openSearch(search: string): void;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Requesting the portal to open the help sidesheet on the governance tab.
|
|
70
|
+
*/
|
|
71
|
+
openGovernance(): void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Hook for accessing help center.
|
|
76
|
+
*/
|
|
77
|
+
export const useHelpCenter = (): HelpCenter => {
|
|
38
78
|
const eventModule = useAppModule('event');
|
|
39
79
|
|
|
40
80
|
const openHelp = useCallback((): void => {
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '6.1.
|
|
2
|
+
export const version = '6.1.4';
|