@equinor/fusion-framework-dev-portal 11.0.6 → 11.0.8
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/README.md +9 -1
- package/dist/main.js +20556 -18525
- package/package.json +31 -20
package/README.md
CHANGED
|
@@ -12,7 +12,8 @@ Use this package when you need a portal host for local app development. For the
|
|
|
12
12
|
|
|
13
13
|
- **Portal shell**: A React application that renders the top bar, context selector, and an app mounting area.
|
|
14
14
|
- **Application loader**: Dynamically initializes and mounts a Fusion app by its `appKey`, handling manifest resolution, script loading, and teardown.
|
|
15
|
-
- **Framework modules**: The portal pre-configures telemetry, navigation, bookmarks, feature flags, analytics, AG Grid, and service integrations so loaded apps inherit a realistic environment.
|
|
15
|
+
- **Framework modules**: The portal pre-configures telemetry, navigation, bookmarks, feature flags, analytics, AG Grid, Roles V2, and service integrations so loaded apps inherit a realistic environment.
|
|
16
|
+
- **Roles V2 integration**: The person side sheet uses the shared compact Roles view, and the application loader can recover when an app requires access roles during initialization.
|
|
16
17
|
- **Context navigation plugin**: The portal enables `enableContextNavigation` from `@equinor/fusion-framework-plugin-context-navigation` so context changes and app switches keep the URL in sync automatically.
|
|
17
18
|
|
|
18
19
|
## Installation
|
|
@@ -98,10 +99,17 @@ The portal is composed of these internal parts:
|
|
|
98
99
|
- **Context configuration** — `enableContext` wires the context module's path generator and path extractor to the shared context-navigation URL utilities.
|
|
99
100
|
- **`Router`** — Sets up routes with `react-router` via the navigation module; routes `/apps/:appKey/*` to the app loader.
|
|
100
101
|
- **`AppLoader`** — Resolves, initializes, and mounts a Fusion app by key; handles loading states and errors.
|
|
102
|
+
- **Roles recovery** — Wraps the application loader in `AccessRoleBoundary` so a user can activate an eligible claimable role and retry an app blocked by `builder.requireAccessRoles`.
|
|
101
103
|
- **`Header`** — Top bar with the Fusion logo, context selector, bookmark toggle, and person settings.
|
|
104
|
+
- **Person side sheet** — Renders `<RolesView compact />` inside the React `RolesProvider` for active, claimable, and recently expired role assignments.
|
|
102
105
|
- **`ContextSelector`** — Wired to the current app's context module for searching and selecting context items.
|
|
103
106
|
- **`enableContextNavigation`** — Registers the portal-level context navigation plugin that reconciles the active context with the browser URL.
|
|
104
107
|
|
|
108
|
+
The portal enables `@equinor/fusion-framework-module-roles` against its authenticated account and
|
|
109
|
+
service discovery configuration. See the [Roles module guide](../modules/roles/README.md) for the
|
|
110
|
+
provider contract and the [React Roles components guide](../react/components/roles/README.md) for
|
|
111
|
+
the compact view and required-access recovery behavior.
|
|
112
|
+
|
|
105
113
|
## Constraints
|
|
106
114
|
|
|
107
115
|
- This portal is for **local development only** and is not intended for production deployment.
|