@equinor/fusion-framework-react 7.4.4 → 7.4.5
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 +12 -0
- package/dist/esm/Framework.js +2 -2
- package/dist/esm/Framework.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/Framework.d.ts +2 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +8 -8
- package/src/Framework.tsx +8 -2
- package/src/version.ts +1 -1
- package/tsconfig.json +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 7.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2953](https://github.com/equinor/fusion-framework/pull/2953) [`5139102`](https://github.com/equinor/fusion-framework/commit/5139102838c30f73f3fcbc81fb6e78814f86445c) Thanks [@odinr](https://github.com/odinr)! - Added optional parent `ModulesInstance` when creating `Framework` component
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @equinor/fusion-framework@7.3.5
|
|
11
|
+
- @equinor/fusion-framework-module-feature-flag@1.1.14
|
|
12
|
+
- @equinor/fusion-framework-react-module-http@8.0.4
|
|
13
|
+
- @equinor/fusion-framework-react-module-signalr@3.0.24
|
|
14
|
+
|
|
3
15
|
## 7.4.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/esm/Framework.js
CHANGED
|
@@ -3,10 +3,10 @@ import { createFrameworkProvider } from './create-framework-provider';
|
|
|
3
3
|
import { Suspense, useMemo } from 'react';
|
|
4
4
|
import { useModules } from '@equinor/fusion-framework-react-module';
|
|
5
5
|
export const Framework = (props) => {
|
|
6
|
-
const { configure, fallback, children } = props;
|
|
6
|
+
const { configure, fallback, parent, children } = props;
|
|
7
7
|
//import modules from parent context
|
|
8
8
|
const ref = useModules();
|
|
9
|
-
const Component = useMemo(() => createFrameworkProvider(configure, ref), [configure, ref]);
|
|
9
|
+
const Component = useMemo(() => createFrameworkProvider(configure, parent !== null && parent !== void 0 ? parent : ref), [configure, ref, parent]);
|
|
10
10
|
return (_jsx(Suspense, { fallback: fallback, children: _jsx(Component, { children: children }) }));
|
|
11
11
|
};
|
|
12
12
|
export default Framework;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Framework.js","sourceRoot":"","sources":["../../src/Framework.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAA0C,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"Framework.js","sourceRoot":"","sources":["../../src/Framework.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAA0C,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAKpE,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,KAKE,EACF,EAAE;IACF,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxD,oCAAoC;IACpC,MAAM,GAAG,GAAG,UAAU,EAAM,CAAC;IAC7B,MAAM,SAAS,GAAG,OAAO,CACvB,GAAG,EAAE,CAAC,uBAAuB,CAAC,SAAS,EAAE,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,GAAG,CAAC,EACvD,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,CAAC,CACzB,CAAC;IACF,OAAO,CACL,KAAC,QAAQ,IAAC,QAAQ,EAAE,QAAQ,YAC1B,KAAC,SAAS,cAAE,QAAQ,GAAa,GACxB,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/dist/esm/version.js
CHANGED