@equinor/fusion-framework-react-app 0.5.0 → 0.7.0-0

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 CHANGED
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.6.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-app@0.5.1...@equinor/fusion-framework-react-app@0.6.0) (2022-08-29)
7
+
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ * rename fetch
12
+
13
+ * fix(module-service-discovery): update http client consumer
14
+
15
+ * build: update allowed branches
16
+
17
+ * build: add conventional commit
18
+
19
+ * build: use conventionalcommits
20
+
21
+ * build(module-http): push major
22
+
23
+ * build: update deps
24
+
25
+ ### Features
26
+
27
+ * rename fetch method ([#226](https://github.com/equinor/fusion-framework/issues/226)) ([f02df7c](https://github.com/equinor/fusion-framework/commit/f02df7cdd2b9098b0da49c5ea56ac3b6a17e9e32))
28
+
29
+
30
+
31
+ ## [0.5.1](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-react-app@0.5.0...@equinor/fusion-framework-react-app@0.5.1) (2022-08-23)
32
+
33
+ **Note:** Version bump only for package @equinor/fusion-framework-react-app
34
+
35
+
36
+
37
+
38
+
6
39
  # 0.5.0 (2022-08-22)
7
40
 
8
41
 
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Suspense, useMemo } from 'react';
3
+ import { useFramework } from '@equinor/fusion-framework-react/hooks';
4
+ import { createApp } from './create-app';
5
+ export const createLegacyApp = (Component, configure, modules) => {
6
+ return () => {
7
+ const fusion = useFramework();
8
+ const RenderComponent = useMemo(() => {
9
+ const creator = createApp(Component, configure, modules);
10
+ return creator(fusion, { name: '' });
11
+ }, []);
12
+ return (_jsx(Suspense, { fallback: _jsx("p", { children: "loading app" }), children: _jsx(RenderComponent, {}) }));
13
+ };
14
+ };
15
+ //# sourceMappingURL=create-legacy-app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-legacy-app.js","sourceRoot":"","sources":["../../src/create-legacy-app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAKrE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,CAAC,MAAM,eAAe,GAAG,CAC3B,SAA8B,EAC9B,SAAqC,EACrC,OAAkB,EACpB,EAAE;IACA,OAAO,GAAgB,EAAE;QACrB,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;QAC9B,MAAM,eAAe,GAAG,OAAO,CAAC,GAAG,EAAE;YACjC,MAAM,OAAO,GAAG,SAAS,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;YACzD,OAAO,OAAO,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzC,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,OAAO,CACH,KAAC,QAAQ,IAAC,QAAQ,EAAE,sCAAkB,YAClC,KAAC,eAAe,KAAG,GACZ,CACd,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
package/dist/esm/index.js CHANGED
@@ -2,5 +2,6 @@ export { appModules } from '@equinor/fusion-framework-app';
2
2
  export { useAppModule } from './useAppModule';
3
3
  export { useAppModules } from './useAppModules';
4
4
  export { createApp } from './create-app';
5
+ export { createLegacyApp } from './create-legacy-app';
5
6
  export { default } from './create-app';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAS3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAS3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}