@equinor/fusion-framework-dev-portal 2.0.0-next.0 → 2.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/CHANGELOG.md CHANGED
@@ -1,37 +1,91 @@
1
1
  # @equinor/fusion-framework-dev-portal
2
2
 
3
- ## 2.0.0-next.0
3
+ ## 2.0.1
4
4
 
5
- ### Major Changes
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`27d7fab`](https://github.com/equinor/fusion-framework/commit/27d7fab7ee2c393bd9ef2f514b7415cc106acc16)]:
8
+ - @equinor/fusion-framework-module-ag-grid@35.0.1
9
+
10
+ ## 2.0.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`7342a52`](https://github.com/equinor/fusion-framework/commit/7342a52cabf7c2e0281a1b5dc1ec6bfb683afe1e)]:
15
+ - @equinor/fusion-framework-module-ag-grid@35.0.0
16
+
17
+ ## 1.4.5
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies []:
22
+ - @equinor/fusion-framework-app@10.4.6
23
+ - @equinor/fusion-framework@7.4.10
24
+ - @equinor/fusion-framework-dev-server@1.1.29
25
+
26
+ ## 1.4.4
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies []:
31
+ - @equinor/fusion-framework-app@10.4.5
32
+ - @equinor/fusion-framework@7.4.9
33
+ - @equinor/fusion-framework-dev-server@1.1.28
6
34
 
7
- - [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`75c068f`](https://github.com/equinor/fusion-framework/commit/75c068fea13c32435ac26bd9043cc156482bfaf1) Thanks [@odinr](https://github.com/odinr)! - Upgrade to React 19 and remove support for React versions lower than 18.
35
+ ## 1.4.3
8
36
 
9
- **Breaking changes:**
10
- - Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
11
- - React 16 and 17 are no longer supported
12
- - Dev dependencies upgraded to React 19.2.1 and @types/react 19.2.7
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies []:
40
+ - @equinor/fusion-framework-app@10.4.4
41
+ - @equinor/fusion-framework@7.4.8
42
+ - @equinor/fusion-framework-dev-server@1.1.27
43
+
44
+ ## 1.4.2
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies []:
49
+ - @equinor/fusion-framework-app@10.4.3
50
+ - @equinor/fusion-framework@7.4.7
51
+ - @equinor/fusion-framework-dev-server@1.1.26
13
52
 
14
- **Migration:**
15
- - Update your React version to 18.0.0 or higher before upgrading these packages
16
- - If using React 16 or 17, upgrade to React 18 or 19 first
53
+ ## 1.4.1
17
54
 
18
55
  ### Patch Changes
19
56
 
20
- - [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`7ccaec2`](https://github.com/equinor/fusion-framework/commit/7ccaec2a59e7f17505ea6537f594665fe978a5b6) Thanks [@odinr](https://github.com/odinr)! - Upgrade to React 19 compatible versions of fusion-react components
57
+ - [#4022](https://github.com/equinor/fusion-framework/pull/4022) [`1b62bd9`](https://github.com/equinor/fusion-framework/commit/1b62bd99410265aff08a3f77996d456d49bfc23d) Thanks [@odinr](https://github.com/odinr)! - Internal: add workspace dependencies as optional peerDependencies to ensure dev-portal bumps when dependencies change. No consumer-facing changes.
21
58
 
22
- Updated the following dependencies to their React 19 compatible versions:
23
- - `@equinor/fusion-react-styles`: `^0.6.4` → `2.0.0` - Material-UI dependency removed
24
- - `@equinor/fusion-react-context-selector`: `^1.0.6` → `2.0.1`
59
+ - Updated dependencies [[`1b62bd9`](https://github.com/equinor/fusion-framework/commit/1b62bd99410265aff08a3f77996d456d49bfc23d)]:
60
+ - @equinor/fusion-framework-app@10.4.2
25
61
 
26
- The `@equinor/fusion-react-styles` upgrade removes the deprecated `@material-ui/styles@^4.11.5` dependency which was incompatible with React 19.
62
+ ## 1.4.0
63
+
64
+ ### Minor Changes
27
65
 
28
- This resolves the React 19 blocker identified in issue https://github.com/equinor/fusion-framework/issues/3698
66
+ - [#3922](https://github.com/equinor/fusion-framework/pull/3922) [`d34ebd8`](https://github.com/equinor/fusion-framework/commit/d34ebd82c93acabc88f88e44a725f084af3af5ec) Thanks [@odinr](https://github.com/odinr)! - Enable AG Grid Enterprise license injection for the dev-portal by setting a global window key produced from the SPA template environment. The portal reads `window.FUSION_AG_GRID_KEY` to configure the AG Grid module and silence license warnings when a valid key is present. CLI docs now mention the license key setup.
29
67
 
30
- - [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`d252b0d`](https://github.com/equinor/fusion-framework/commit/d252b0d442b7c8c1b50bf2768cf9ecbbb55a76f8) Thanks [@odinr](https://github.com/odinr)! - Upgrade `react-router-dom` from v6 to v7.9.5 for React 19 compatibility.
68
+ **Usage:**
31
69
 
32
- This is a backward-compatible upgrade - all existing Router 6 patterns continue to work with Router 7. No code changes required.
70
+ - In your SPA environment file, set `FUSION_SPA_AG_GRID_KEY=your-license-key-here`.
71
+ - The SPA HTML template injects `window.FUSION_AG_GRID_KEY` before bootstrap runs, and the dev-portal picks it up automatically.
33
72
 
34
- - [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b) Thanks [@odinr](https://github.com/odinr)! - relase next
73
+ Closes: https://github.com/equinor/fusion-core-tasks/issues/93
74
+ Resolves: https://github.com/equinor/fusion-core-tasks/issues/92
75
+ Solves: https://github.com/equinor/fusion/issues/732
76
+
77
+ ## 1.3.0
78
+
79
+ ### Minor Changes
80
+
81
+ - [#3900](https://github.com/equinor/fusion-framework/pull/3900) [`d7a9d12`](https://github.com/equinor/fusion-framework/commit/d7a9d127db9daff7d645d55eb08f37d1c36fa825) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - Add feature flag `fusionLogAnalytics` to dev-portal in CLI.
82
+
83
+ Add `ConsoleAnalyticsAdapter` Adapter to analytics module if the feature flag is
84
+ enabled.
85
+
86
+ By enabling this feature flag, analytics events will be logged out in the
87
+ console. This is useful when you want to test events created by app teams (e.g.
88
+ using `trackFeature` hook).
35
89
 
36
90
  ## 1.2.6
37
91
 
@@ -50,17 +104,20 @@
50
104
  ## New Features
51
105
 
52
106
  ### App Tag/Version Support
107
+
53
108
  - **App Client**: Added `getAppBuild` method to fetch build manifests by app key and tag
54
109
  - **App Module Provider**: Enhanced `getAppManifest` to accept optional tag parameter
55
110
  - **App Loading**: Modified `setCurrentApp` to support `AppReference` objects with tag specification
56
111
  - **URL Integration**: Added `getAppTagFromUrl` utility to extract app tags from URL parameters
57
112
 
58
113
  ### Enhanced Type System
114
+
59
115
  - Added `AppReference` type for specifying app key and optional tag
60
116
  - Extended `AppBundleState` to include optional `tag` property
61
117
  - Updated `AppBuildManifest` type definition for build-specific metadata
62
118
 
63
119
  ### API Improvements
120
+
64
121
  - **AppClient**: Updated interface to support tag-based manifest and build fetching
65
122
  - **App Class**: Added `tag` getter property for accessing current app tag
66
123
  - **Action System**: Enhanced `fetchManifest` action to handle tag parameters
@@ -68,6 +125,7 @@
68
125
  ## Changes by Package
69
126
 
70
127
  ### `@equinor/fusion-framework-module-app`
128
+
71
129
  - **AppClient.ts**: Added `getAppBuild` method with tag support and updated `getAppManifest` signature
72
130
  - **AppModuleProvider.ts**: Enhanced `setCurrentApp` method to handle `AppReference` objects with tags
73
131
  - **App.ts**: Added `tag` getter and improved error handling in initialization
@@ -76,6 +134,7 @@
76
134
  - **flows.ts**: Modified manifest fetching flow to handle tag-based requests
77
135
 
78
136
  ### `@equinor/fusion-framework-dev-portal`
137
+
79
138
  - **AppLoader.tsx**: Added `getAppTagFromUrl` utility function and integrated tag-based app loading
80
139
 
81
140
  ## Usage Examples
@@ -108,14 +167,17 @@
108
167
  ## Migration Guide
109
168
 
110
169
  ### For App Consumers
170
+
111
171
  - No breaking changes - existing code continues to work
112
172
  - Optionally use new tag-based loading for version-specific deployments
113
173
 
114
174
  ### For App Developers
175
+
115
176
  - Consider adding `&tag` URL parameter support for testing different versions
116
177
  - Use new `AppReference` type when programmatically setting current apps with tags
117
178
 
118
179
  ## Technical Details
180
+
119
181
  - **Backward Compatibility**: All changes are backward compatible
120
182
  - **Caching**: Tag-based manifests and builds are cached separately
121
183
  - **Error Handling**: Enhanced error handling for build and manifest loading failures
@@ -141,17 +203,20 @@
141
203
  This update addresses a security vulnerability in Vite's development server and includes bug fixes for improved compatibility. The update ensures secure development environments and better plugin ecosystem compatibility.
142
204
 
143
205
  **Changes:**
206
+
144
207
  - Updated Vite from v7.1.10 to v7.1.12
145
208
  - Includes security fix for development server file system checks
146
209
  - Includes compatibility fix for CommonJS plugin
147
210
  - No breaking changes or API modifications
148
211
 
149
212
  **Security Fix (v7.1.11):**
213
+
150
214
  - **dev**: trim trailing slash before `server.fs.deny` check ([#20968](https://github.com/vitejs/vite/issues/20968))
151
215
  - Prevents potential path traversal vulnerability in development server
152
216
  - Only affects development environment, not production builds
153
217
 
154
218
  **Bug Fix (v7.1.12):**
219
+
155
220
  - **deps**: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins issues ([#20990](https://github.com/vitejs/vite/issues/20990))
156
221
  - Improves compatibility with Rollup plugin ecosystem
157
222
  - Prevents potential build issues
@@ -171,10 +236,12 @@
171
236
  ### Patch Changes
172
237
 
173
238
  - [#3542](https://github.com/equinor/fusion-framework/pull/3542) [`2d4fd18`](https://github.com/equinor/fusion-framework/commit/2d4fd18394e8545b4616140a93a369d5ae77ccbc) Thanks [@eikeland](https://github.com/eikeland)! - Updated person component dependencies for improved functionality and bug fixes.
239
+
174
240
  - Updated `@equinor/fusion-react-person` from `^0.10.3` to `^0.10.10` in app-react-people cookbook
175
241
  - Updated `@equinor/fusion-wc-person` from `^3.1.8` to `^3.2.4` in dev-portal and people-resolver packages
176
242
 
177
243
  - [#3547](https://github.com/equinor/fusion-framework/pull/3547) [`99a3c26`](https://github.com/equinor/fusion-framework/commit/99a3c26275c2089c3708124f5819ce383d8dc3dc) Thanks [@odinr](https://github.com/odinr)! - Enhanced dev-portal with portal proxy service worker configuration ([Issue #3546](https://github.com/equinor/fusion-framework/issues/3546)).
244
+
178
245
  - Added `/portal-proxy` service worker resource configuration in dev-server.ts
179
246
  - Routes portal proxy requests to Fusion portal service API (`/@fusion-api/portals`)
180
247
  - Enables portal proxy functionality for testing against real portal environments
@@ -188,12 +255,14 @@
188
255
  - [#3522](https://github.com/equinor/fusion-framework/pull/3522) [`63ac6a1`](https://github.com/equinor/fusion-framework/commit/63ac6a1178fc6f6b0702f51a9c36a67db76b92cd) Thanks [@odinr](https://github.com/odinr)! - Add comprehensive telemetry integration to the Fusion Dev Portal.
189
256
 
190
257
  **New Features:**
258
+
191
259
  - Enable telemetry tracking for portal usage analytics and monitoring
192
260
  - Configure portal-specific metadata including version and name identification
193
261
  - Set up telemetry event scoping for portal-specific tracking
194
262
  - Attach framework configurator events for comprehensive telemetry coverage
195
263
 
196
264
  **Technical Implementation:**
265
+
197
266
  - Integrate `@equinor/fusion-framework-module-telemetry` module
198
267
  - Configure telemetry with portal metadata (`type: 'portal-telemetry'`)
199
268
  - Set default scope to `['portal']` for event categorization
@@ -201,6 +270,7 @@
201
270
  - Add TypeScript path references for telemetry module
202
271
 
203
272
  **Configuration Updates:**
273
+
204
274
  - Enhanced `config.ts` with detailed telemetry setup and documentation
205
275
  - Updated dependency versions to use `workspace:*` for better monorepo compatibility
206
276
  - Improved code documentation and developer experience features
@@ -212,12 +282,14 @@
212
282
  - [#3515](https://github.com/equinor/fusion-framework/pull/3515) [`6cb288b`](https://github.com/equinor/fusion-framework/commit/6cb288b9e1ec4fae68ae6899735c176837bb4275) Thanks [@odinr](https://github.com/odinr)! - ## Global Biome Configuration Modernization
213
283
 
214
284
  **Workspace-wide changes:**
285
+
215
286
  - Remove 19 rule overrides from `biome.json` to use Biome's strict "error" defaults
216
287
  - Enable `correctness/useUniqueElementIds` accessibility rule globally
217
288
  - Reduce configuration size by 40% (60+ → ~35 lines)
218
289
  - Eliminate all custom linting rule customizations
219
290
 
220
291
  **Package-specific changes:**
292
+
221
293
  - Replace static IDs with React `useId()` hooks in bookmark and dev-portal components
222
294
  - Fix `suspicious/noAssignInExpressions` violations in context, legacy-interopt, and observable packages
223
295
  - Update 11 React components for accessibility compliance
@@ -264,6 +336,7 @@
264
336
  - [#3349](https://github.com/equinor/fusion-framework/pull/3349) [`c511123`](https://github.com/equinor/fusion-framework/commit/c511123c835e24e9ddefcc4c47c2455f5df12087) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump vite from 6.x to 7.1.5
265
337
 
266
338
  Major version update of Vite build tool across all packages. This update includes:
339
+
267
340
  - Enhanced build performance and caching
268
341
  - Better error reporting with code frames
269
342
  - Improved TypeScript integration
@@ -271,12 +344,14 @@
271
344
  - New development server features
272
345
 
273
346
  ### Links
347
+
274
348
  - [Vite 7.1.5 Release Notes](https://github.com/vitejs/vite/releases/tag/v7.1.5)
275
349
  - [Vite 7.x Migration Guide](https://vitejs.dev/guide/migration)
276
350
 
277
351
  ### Patch Changes
278
352
 
279
353
  - [#3365](https://github.com/equinor/fusion-framework/pull/3365) [`6eeef2f`](https://github.com/equinor/fusion-framework/commit/6eeef2f2033dfacf7c972295c8c2cc2d4cd83976) Thanks [@dependabot](https://github.com/apps/dependabot)! - Updated @equinor/eds-tokens from 0.9.2 to 0.10.0
354
+
280
355
  - Added support for CSS custom properties via variables-static.css and variables-dynamic.css
281
356
  - Improved design token integration for better CSS compatibility
282
357
  - Updated dependencies and internal tooling (pnpm v10, node v22)
@@ -286,6 +361,7 @@
286
361
  - [#3400](https://github.com/equinor/fusion-framework/pull/3400) [`aed6c53`](https://github.com/equinor/fusion-framework/commit/aed6c5385df496a86d06dc0af9dacafc255ea605) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump @equinor/eds-core-react from 0.45.1 to 0.49.0
287
362
 
288
363
  ### New Features
364
+
289
365
  - ✨ Always show "add new option" in Autocomplete when onAddNewOption is provided
290
366
  - ✨ Tabs call onChange with provided value if present
291
367
  - ✨ Add disabled prop to Tooltip
@@ -293,6 +369,7 @@
293
369
  - ✨ Add support for adding new options in Autocomplete
294
370
 
295
371
  ### Bug Fixes
372
+
296
373
  - 🐛 Autocomplete - Don't call onOptionsChange when clicking "Add new"
297
374
  - 🐛 Table - Fix Firefox table header wrapping issue
298
375
  - 🐛 Tabs documentation type mismatch - update onChange parameter from number to number | string
@@ -304,24 +381,28 @@
304
381
  - 🐛 Menu: Ensure onClose is called when a MenuItem without onClick is clicked
305
382
 
306
383
  ### Links
384
+
307
385
  - [GitHub releases](https://github.com/equinor/design-system/releases/tag/eds-core-react%400.49.0)
308
386
  - [npm changelog](https://www.npmjs.com/package/@equinor/eds-core-react?activeTab=versions)
309
387
 
310
388
  - [#3366](https://github.com/equinor/fusion-framework/pull/3366) [`daa362e`](https://github.com/equinor/fusion-framework/commit/daa362e7d92ad362e46d666c434d0f09687abad5) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update @equinor/eds-core-react from 0.48.0 to 0.49.0
311
389
 
312
390
  ### Changes
391
+
313
392
  - Updated @equinor/eds-core-react dependency to latest version across all packages
314
393
  - Fixed peerDependencies version mismatch in bookmark package
315
394
  - Includes bug fixes for Autocomplete and Table components
316
395
  - Adds new Autocomplete features for "add new option" functionality
317
396
 
318
397
  ### Affected Packages
398
+
319
399
  - packages/dev-portal
320
400
  - packages/react/components/bookmark
321
401
  - cookbooks/app-react-feature-flag
322
402
  - cookbooks/app-react-people
323
403
 
324
404
  ### Links
405
+
325
406
  - [GitHub releases](https://github.com/equinor/design-system/releases)
326
407
  - [Full Changelog](https://github.com/equinor/design-system/compare/eds-core-react@0.48.0...eds-core-react@0.49.0)
327
408
 
@@ -330,6 +411,7 @@
330
411
  ### Patch Changes
331
412
 
332
413
  - [#3381](https://github.com/equinor/fusion-framework/pull/3381) [`bae9c95`](https://github.com/equinor/fusion-framework/commit/bae9c9554f335d0384b864436874bded47d00ed8) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update rollup from 4.49.0 to 4.50.2
414
+
333
415
  - Updated rollup dependency via vite transitive dependency
334
416
  - Includes bug fixes for tree-shaking array destructuring patterns
335
417
  - Performance improvements and platform support updates
@@ -357,6 +439,7 @@
357
439
  The refactor moves specific functionality and code related to the development portal into its own dedicated package to improve modularity and maintainability.
358
440
 
359
441
  **Features**
442
+
360
443
  - Development portal for the Fusion framework
361
444
  - Support for MSAL authentication
362
445
  - Integration with service discovery
@@ -391,6 +474,7 @@
391
474
  ### Patch Changes
392
475
 
393
476
  - [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`84c16d7`](https://github.com/equinor/fusion-framework/commit/84c16d74c3235f809ce4c3e75868be12010ed695) Thanks [@odinr](https://github.com/odinr)! - Add `prepack` script to `dev-portal` and `dev-server` packages
477
+
394
478
  - Added a `prepack` script to `@equinor/fusion-framework-dev-portal` and `@equinor/fusion-framework-dev-server` to ensure the build runs before packaging.
395
479
  - This helps guarantee that the latest build artifacts are included when publishing these packages.
396
480
 
package/README.md CHANGED
@@ -21,6 +21,24 @@ The following environment variables must be set in `.env` or in the environment
21
21
  - FUSION_MSAL_TENANT_ID: The tenant ID for MSAL authentication.
22
22
  - FUSION_SERVICE_DISCOVERY_URL: The URL for service discovery.
23
23
  - FUSION_SERVICE_SCOPE: The scopes for the service.
24
+ - FUSION_SPA_AG_GRID_KEY: (Optional) AG Grid Enterprise license key for local development. When provided, this eliminates AG Grid license console warnings when running the portal locally with AG Grid-enabled features.
25
+
26
+ ### Local AG Grid Configuration
27
+
28
+ To use AG Grid Enterprise features without console warnings during local development:
29
+
30
+ 1. Obtain an AG Grid Enterprise license key from your organization
31
+ 2. Add the key to your `.env` file:
32
+ ```sh
33
+ FUSION_SPA_AG_GRID_KEY=your-license-key-here
34
+ ```
35
+ 3. Start the dev portal:
36
+ ```sh
37
+ pnpm start
38
+ ```
39
+ 4. Verify the configuration by opening the portal and checking the browser console - there should be no AG Grid license warnings
40
+
41
+ **Note**: The license key is only used for local development and is never committed to the repository or deployed to production.
24
42
 
25
43
  ## Development
26
44