@equinor/fusion
Advanced tools
Comparing version 0.1.36 to 0.1.37
@@ -16,2 +16,3 @@ import EventEmitter from "../utils/EventEmitter"; | ||
existingApp.manifest = Object.assign({}, existingApp.manifest, manifest); | ||
this.emit("update", existingApp); | ||
} | ||
@@ -18,0 +19,0 @@ } |
import React, { useState, useEffect, useCallback } from "react"; | ||
import { useFusionContext } from "../core/FusionContext"; | ||
import AppContext from "./AppContext"; | ||
const AppWrapper = ({ appKey }) => { | ||
@@ -43,4 +44,9 @@ const { app: { container: appContainer }, http: { apiClients }, } = useFusionContext(); | ||
const AppComponent = currentApp.manifest.AppComponent; | ||
return React.createElement(AppComponent, null); | ||
return (React.createElement(AppContext.Provider, { value: { | ||
appKey: appKey, | ||
appPath: "apps/" + appKey, | ||
manifest: currentApp.manifest, | ||
} }, | ||
React.createElement(AppComponent, null))); | ||
}; | ||
export default AppWrapper; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.1.36", | ||
"version": "0.1.37", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112198
2583