@equinor/roma-framework 0.0.1
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/dev-portal/index.html +34 -0
- package/dev-portal/lib/dev-portal/AppLoader.d.ts +12 -0
- package/dev-portal/lib/dev-portal/AppViewer.d.ts +6 -0
- package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +12 -0
- package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +12 -0
- package/dev-portal/lib/dev-portal/Header.d.ts +2 -0
- package/dev-portal/lib/dev-portal/Navigation.d.ts +5 -0
- package/dev-portal/lib/dev-portal/Root.d.ts +5 -0
- package/dev-portal/lib/dev-portal/config.d.ts +3 -0
- package/dev-portal/lib/dev-portal/index.d.ts +13 -0
- package/dev-portal/package.json +14 -0
- package/dev-portal/roma-framework.umd.js +392 -0
- package/index.d.ts +5 -0
- package/lib/dev-portal/AppLoader.d.ts +12 -0
- package/lib/dev-portal/AppViewer.d.ts +6 -0
- package/lib/dev-portal/EquinorLoader.d.ts +12 -0
- package/lib/dev-portal/ErrorViewer.d.ts +12 -0
- package/lib/make-component.d.ts +12 -0
- package/package.json +14 -0
- package/roma-framework.js +117 -0
- package/roma-framework.mjs +15200 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
+
/**
|
|
3
|
+
* Component that will render a Fusion application
|
|
4
|
+
*
|
|
5
|
+
* @param app the AppManifest for the application to render
|
|
6
|
+
* @param kind whether the app is a widget or an application
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
export declare function AppLoader({ app, kind }: {
|
|
10
|
+
app: AppManifest | null;
|
|
11
|
+
kind?: 'app' | 'widget';
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Simple in-place loader for fusion apps
|
|
4
|
+
*
|
|
5
|
+
* @param children
|
|
6
|
+
* @param text
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
export declare const EquinorLoader: ({ children, text, }: React.PropsWithChildren<{
|
|
10
|
+
readonly text: string;
|
|
11
|
+
}>) => JSX.Element;
|
|
12
|
+
export default EquinorLoader;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple error display component.
|
|
3
|
+
* Does not create a pretty error, and should most likely be recreated for various error types (e.g. lack of access etc.)
|
|
4
|
+
* Reasonable to assume this will be a part of e.g. @equinor/roma-components in the future.
|
|
5
|
+
*
|
|
6
|
+
* @param error
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
export declare const ErrorViewer: ({ error }: {
|
|
10
|
+
readonly error: Error;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default ErrorViewer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AnyModule } from '@equinor/fusion-framework-module';
|
|
2
|
+
import { Fusion } from '@equinor/fusion-framework-react';
|
|
3
|
+
import { AppEnv, AppModuleInitiator } from '@equinor/fusion-framework-app';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
type RomaEnv = AppEnv & {
|
|
6
|
+
density?: 'compact' | 'comfortable';
|
|
7
|
+
};
|
|
8
|
+
export declare const makeComponent: <TModules extends AnyModule[], TRef extends Fusion<unknown> = Fusion<unknown>, TEnv extends RomaEnv = RomaEnv>(Component: ReactNode, args: {
|
|
9
|
+
fusion: TRef;
|
|
10
|
+
env: TEnv;
|
|
11
|
+
}, configure?: AppModuleInitiator<TModules, TRef, TEnv> | undefined) => import("react").LazyExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
12
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@equinor/roma-framework",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"repository": "https://github.com/equinor/tops-roma",
|
|
5
|
+
"main": "./framework.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"private": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./framework.mjs",
|
|
11
|
+
"require": "./framework.js"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|