@equinor/fusion-framework-react-app 6.0.6 → 6.0.7

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.
@@ -65,6 +65,7 @@ declare module '@equinor/fusion-framework-module-event' {
65
65
  onReactAppLoaded: FrameworkEvent<FrameworkEventInit<{
66
66
  modules: AppModulesInstance;
67
67
  fusion: Fusion;
68
+ env: AppEnv;
68
69
  }, React.ComponentType>>;
69
70
  }
70
71
  }
@@ -39,6 +39,7 @@ declare module '@equinor/fusion-framework-module-event' {
39
39
  onReactAppLoaded: FrameworkEvent<FrameworkEventInit<{
40
40
  modules: AppModulesInstance;
41
41
  fusion: Fusion;
42
+ env: AppEnv;
42
43
  }, React.ComponentType>>;
43
44
  }
44
45
  }
@@ -1 +1 @@
1
- export declare const version = "6.0.6";
1
+ export declare const version = "6.0.7";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-react-app",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "description": "",
5
5
  "main": "./dist/esm/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -89,13 +89,13 @@
89
89
  "directory": "packages/react"
90
90
  },
91
91
  "dependencies": {
92
- "@equinor/fusion-framework-app": "^9.3.6",
93
92
  "@equinor/fusion-framework-module": "^4.3.7",
94
- "@equinor/fusion-framework-module-app": "^6.1.8",
93
+ "@equinor/fusion-framework-app": "^9.3.7",
95
94
  "@equinor/fusion-framework-module-navigation": "^4.0.9",
96
- "@equinor/fusion-framework-react": "^7.4.4",
97
- "@equinor/fusion-framework-react-module-http": "^8.0.3",
98
- "@equinor/fusion-framework-react-module": "^3.1.8"
95
+ "@equinor/fusion-framework-react": "^7.4.5",
96
+ "@equinor/fusion-framework-module-app": "^6.1.8",
97
+ "@equinor/fusion-framework-react-module": "^3.1.8",
98
+ "@equinor/fusion-framework-react-module-http": "^8.0.4"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@types/react": "^18.2.50",
@@ -108,10 +108,10 @@
108
108
  "@equinor/fusion-framework-module-event": "^4.3.2",
109
109
  "@equinor/fusion-framework-module-feature-flag": "^1.1.14",
110
110
  "@equinor/fusion-framework-module-msal": "^4.0.2",
111
- "@equinor/fusion-framework-react-module-bookmark": "^3.0.4",
112
- "@equinor/fusion-framework-react-widget": "^1.1.31",
111
+ "@equinor/fusion-framework-react-module-bookmark": "^3.0.5",
113
112
  "@equinor/fusion-framework-react-module-context": "^6.2.21",
114
- "@equinor/fusion-observable": "^8.4.6"
113
+ "@equinor/fusion-observable": "^8.4.6",
114
+ "@equinor/fusion-framework-react-widget": "^1.1.32"
115
115
  },
116
116
  "peerDependencies": {
117
117
  "@types/react": "^17.0.0 || ^18.0.0",
@@ -87,7 +87,7 @@ export const createComponent =
87
87
  })) as unknown as AppModulesInstance;
88
88
 
89
89
  modules.event.dispatchEvent('onReactAppLoaded', {
90
- detail: { modules, fusion },
90
+ detail: { modules, fusion, env: env },
91
91
  source: Component,
92
92
  });
93
93
  return {
@@ -107,7 +107,10 @@ export const createComponent =
107
107
  declare module '@equinor/fusion-framework-module-event' {
108
108
  interface FrameworkEventMap {
109
109
  onReactAppLoaded: FrameworkEvent<
110
- FrameworkEventInit<{ modules: AppModulesInstance; fusion: Fusion }, React.ComponentType>
110
+ FrameworkEventInit<
111
+ { modules: AppModulesInstance; fusion: Fusion; env: AppEnv },
112
+ React.ComponentType
113
+ >
111
114
  >;
112
115
  }
113
116
  }
@@ -60,7 +60,7 @@ export const makeComponent = <
60
60
  const { fusion } = args;
61
61
 
62
62
  modules.event.dispatchEvent('onReactAppLoaded', {
63
- detail: { modules, fusion },
63
+ detail: { modules, fusion, env: args.env },
64
64
  source: Component,
65
65
  });
66
66
 
@@ -76,7 +76,10 @@ export const makeComponent = <
76
76
  declare module '@equinor/fusion-framework-module-event' {
77
77
  interface FrameworkEventMap {
78
78
  onReactAppLoaded: FrameworkEvent<
79
- FrameworkEventInit<{ modules: AppModulesInstance; fusion: Fusion }, React.ComponentType>
79
+ FrameworkEventInit<
80
+ { modules: AppModulesInstance; fusion: Fusion; env: AppEnv },
81
+ React.ComponentType
82
+ >
80
83
  >;
81
84
  }
82
85
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '6.0.6';
2
+ export const version = '6.0.7';
package/tsconfig.json CHANGED
@@ -5,8 +5,8 @@
5
5
  "rootDir": "src",
6
6
  "declarationDir": "./dist/types",
7
7
  "paths": {
8
- "react": [ "./node_modules/@types/react" ],
9
- },
8
+ "react": ["./node_modules/@types/react"]
9
+ }
10
10
  },
11
11
  "references": [
12
12
  {
@@ -35,16 +35,11 @@
35
35
  },
36
36
  {
37
37
  "path": "../modules/bookmark"
38
- },
38
+ },
39
39
  {
40
40
  "path": "../widget"
41
- },
42
- ],
43
- "include": [
44
- "src/**/*"
41
+ }
45
42
  ],
46
- "exclude": [
47
- "node_modules",
48
- "lib"
49
- ]
50
- }
43
+ "include": ["src/**/*"],
44
+ "exclude": ["node_modules", "lib"]
45
+ }