@equinor/fusion-framework-dev-portal 2.0.0-next.0 → 2.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
@@ -1,37 +1,84 @@
1
1
  # @equinor/fusion-framework-dev-portal
2
2
 
3
- ## 2.0.0-next.0
3
+ ## 2.0.0
4
4
 
5
- ### Major Changes
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`7342a52`](https://github.com/equinor/fusion-framework/commit/7342a52cabf7c2e0281a1b5dc1ec6bfb683afe1e)]:
8
+ - @equinor/fusion-framework-module-ag-grid@35.0.0
9
+
10
+ ## 1.4.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @equinor/fusion-framework-app@10.4.6
16
+ - @equinor/fusion-framework@7.4.10
17
+ - @equinor/fusion-framework-dev-server@1.1.29
18
+
19
+ ## 1.4.4
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @equinor/fusion-framework-app@10.4.5
25
+ - @equinor/fusion-framework@7.4.9
26
+ - @equinor/fusion-framework-dev-server@1.1.28
27
+
28
+ ## 1.4.3
29
+
30
+ ### Patch Changes
6
31
 
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.
32
+ - Updated dependencies []:
33
+ - @equinor/fusion-framework-app@10.4.4
34
+ - @equinor/fusion-framework@7.4.8
35
+ - @equinor/fusion-framework-dev-server@1.1.27
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
+ ## 1.4.2
13
38
 
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
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies []:
42
+ - @equinor/fusion-framework-app@10.4.3
43
+ - @equinor/fusion-framework@7.4.7
44
+ - @equinor/fusion-framework-dev-server@1.1.26
45
+
46
+ ## 1.4.1
17
47
 
18
48
  ### Patch Changes
19
49
 
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
50
+ - [#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.
51
+
52
+ - Updated dependencies [[`1b62bd9`](https://github.com/equinor/fusion-framework/commit/1b62bd99410265aff08a3f77996d456d49bfc23d)]:
53
+ - @equinor/fusion-framework-app@10.4.2
54
+
55
+ ## 1.4.0
56
+
57
+ ### Minor Changes
58
+
59
+ - [#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.
60
+
61
+ **Usage:**
21
62
 
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`
63
+ - In your SPA environment file, set `FUSION_SPA_AG_GRID_KEY=your-license-key-here`.
64
+ - The SPA HTML template injects `window.FUSION_AG_GRID_KEY` before bootstrap runs, and the dev-portal picks it up automatically.
25
65
 
26
- The `@equinor/fusion-react-styles` upgrade removes the deprecated `@material-ui/styles@^4.11.5` dependency which was incompatible with React 19.
66
+ Closes: https://github.com/equinor/fusion-core-tasks/issues/93
67
+ Resolves: https://github.com/equinor/fusion-core-tasks/issues/92
68
+ Solves: https://github.com/equinor/fusion/issues/732
27
69
 
28
- This resolves the React 19 blocker identified in issue https://github.com/equinor/fusion-framework/issues/3698
70
+ ## 1.3.0
71
+
72
+ ### Minor Changes
29
73
 
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.
74
+ - [#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.
31
75
 
32
- This is a backward-compatible upgrade - all existing Router 6 patterns continue to work with Router 7. No code changes required.
76
+ Add `ConsoleAnalyticsAdapter` Adapter to analytics module if the feature flag is
77
+ enabled.
33
78
 
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
79
+ By enabling this feature flag, analytics events will be logged out in the
80
+ console. This is useful when you want to test events created by app teams (e.g.
81
+ using `trackFeature` hook).
35
82
 
36
83
  ## 1.2.6
37
84
 
@@ -50,17 +97,20 @@
50
97
  ## New Features
51
98
 
52
99
  ### App Tag/Version Support
100
+
53
101
  - **App Client**: Added `getAppBuild` method to fetch build manifests by app key and tag
54
102
  - **App Module Provider**: Enhanced `getAppManifest` to accept optional tag parameter
55
103
  - **App Loading**: Modified `setCurrentApp` to support `AppReference` objects with tag specification
56
104
  - **URL Integration**: Added `getAppTagFromUrl` utility to extract app tags from URL parameters
57
105
 
58
106
  ### Enhanced Type System
107
+
59
108
  - Added `AppReference` type for specifying app key and optional tag
60
109
  - Extended `AppBundleState` to include optional `tag` property
61
110
  - Updated `AppBuildManifest` type definition for build-specific metadata
62
111
 
63
112
  ### API Improvements
113
+
64
114
  - **AppClient**: Updated interface to support tag-based manifest and build fetching
65
115
  - **App Class**: Added `tag` getter property for accessing current app tag
66
116
  - **Action System**: Enhanced `fetchManifest` action to handle tag parameters
@@ -68,6 +118,7 @@
68
118
  ## Changes by Package
69
119
 
70
120
  ### `@equinor/fusion-framework-module-app`
121
+
71
122
  - **AppClient.ts**: Added `getAppBuild` method with tag support and updated `getAppManifest` signature
72
123
  - **AppModuleProvider.ts**: Enhanced `setCurrentApp` method to handle `AppReference` objects with tags
73
124
  - **App.ts**: Added `tag` getter and improved error handling in initialization
@@ -76,6 +127,7 @@
76
127
  - **flows.ts**: Modified manifest fetching flow to handle tag-based requests
77
128
 
78
129
  ### `@equinor/fusion-framework-dev-portal`
130
+
79
131
  - **AppLoader.tsx**: Added `getAppTagFromUrl` utility function and integrated tag-based app loading
80
132
 
81
133
  ## Usage Examples
@@ -108,14 +160,17 @@
108
160
  ## Migration Guide
109
161
 
110
162
  ### For App Consumers
163
+
111
164
  - No breaking changes - existing code continues to work
112
165
  - Optionally use new tag-based loading for version-specific deployments
113
166
 
114
167
  ### For App Developers
168
+
115
169
  - Consider adding `&tag` URL parameter support for testing different versions
116
170
  - Use new `AppReference` type when programmatically setting current apps with tags
117
171
 
118
172
  ## Technical Details
173
+
119
174
  - **Backward Compatibility**: All changes are backward compatible
120
175
  - **Caching**: Tag-based manifests and builds are cached separately
121
176
  - **Error Handling**: Enhanced error handling for build and manifest loading failures
@@ -141,17 +196,20 @@
141
196
  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
197
 
143
198
  **Changes:**
199
+
144
200
  - Updated Vite from v7.1.10 to v7.1.12
145
201
  - Includes security fix for development server file system checks
146
202
  - Includes compatibility fix for CommonJS plugin
147
203
  - No breaking changes or API modifications
148
204
 
149
205
  **Security Fix (v7.1.11):**
206
+
150
207
  - **dev**: trim trailing slash before `server.fs.deny` check ([#20968](https://github.com/vitejs/vite/issues/20968))
151
208
  - Prevents potential path traversal vulnerability in development server
152
209
  - Only affects development environment, not production builds
153
210
 
154
211
  **Bug Fix (v7.1.12):**
212
+
155
213
  - **deps**: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins issues ([#20990](https://github.com/vitejs/vite/issues/20990))
156
214
  - Improves compatibility with Rollup plugin ecosystem
157
215
  - Prevents potential build issues
@@ -171,10 +229,12 @@
171
229
  ### Patch Changes
172
230
 
173
231
  - [#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.
232
+
174
233
  - Updated `@equinor/fusion-react-person` from `^0.10.3` to `^0.10.10` in app-react-people cookbook
175
234
  - Updated `@equinor/fusion-wc-person` from `^3.1.8` to `^3.2.4` in dev-portal and people-resolver packages
176
235
 
177
236
  - [#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)).
237
+
178
238
  - Added `/portal-proxy` service worker resource configuration in dev-server.ts
179
239
  - Routes portal proxy requests to Fusion portal service API (`/@fusion-api/portals`)
180
240
  - Enables portal proxy functionality for testing against real portal environments
@@ -188,12 +248,14 @@
188
248
  - [#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
249
 
190
250
  **New Features:**
251
+
191
252
  - Enable telemetry tracking for portal usage analytics and monitoring
192
253
  - Configure portal-specific metadata including version and name identification
193
254
  - Set up telemetry event scoping for portal-specific tracking
194
255
  - Attach framework configurator events for comprehensive telemetry coverage
195
256
 
196
257
  **Technical Implementation:**
258
+
197
259
  - Integrate `@equinor/fusion-framework-module-telemetry` module
198
260
  - Configure telemetry with portal metadata (`type: 'portal-telemetry'`)
199
261
  - Set default scope to `['portal']` for event categorization
@@ -201,6 +263,7 @@
201
263
  - Add TypeScript path references for telemetry module
202
264
 
203
265
  **Configuration Updates:**
266
+
204
267
  - Enhanced `config.ts` with detailed telemetry setup and documentation
205
268
  - Updated dependency versions to use `workspace:*` for better monorepo compatibility
206
269
  - Improved code documentation and developer experience features
@@ -212,12 +275,14 @@
212
275
  - [#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
276
 
214
277
  **Workspace-wide changes:**
278
+
215
279
  - Remove 19 rule overrides from `biome.json` to use Biome's strict "error" defaults
216
280
  - Enable `correctness/useUniqueElementIds` accessibility rule globally
217
281
  - Reduce configuration size by 40% (60+ → ~35 lines)
218
282
  - Eliminate all custom linting rule customizations
219
283
 
220
284
  **Package-specific changes:**
285
+
221
286
  - Replace static IDs with React `useId()` hooks in bookmark and dev-portal components
222
287
  - Fix `suspicious/noAssignInExpressions` violations in context, legacy-interopt, and observable packages
223
288
  - Update 11 React components for accessibility compliance
@@ -264,6 +329,7 @@
264
329
  - [#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
330
 
266
331
  Major version update of Vite build tool across all packages. This update includes:
332
+
267
333
  - Enhanced build performance and caching
268
334
  - Better error reporting with code frames
269
335
  - Improved TypeScript integration
@@ -271,12 +337,14 @@
271
337
  - New development server features
272
338
 
273
339
  ### Links
340
+
274
341
  - [Vite 7.1.5 Release Notes](https://github.com/vitejs/vite/releases/tag/v7.1.5)
275
342
  - [Vite 7.x Migration Guide](https://vitejs.dev/guide/migration)
276
343
 
277
344
  ### Patch Changes
278
345
 
279
346
  - [#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
347
+
280
348
  - Added support for CSS custom properties via variables-static.css and variables-dynamic.css
281
349
  - Improved design token integration for better CSS compatibility
282
350
  - Updated dependencies and internal tooling (pnpm v10, node v22)
@@ -286,6 +354,7 @@
286
354
  - [#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
355
 
288
356
  ### New Features
357
+
289
358
  - ✨ Always show "add new option" in Autocomplete when onAddNewOption is provided
290
359
  - ✨ Tabs call onChange with provided value if present
291
360
  - ✨ Add disabled prop to Tooltip
@@ -293,6 +362,7 @@
293
362
  - ✨ Add support for adding new options in Autocomplete
294
363
 
295
364
  ### Bug Fixes
365
+
296
366
  - 🐛 Autocomplete - Don't call onOptionsChange when clicking "Add new"
297
367
  - 🐛 Table - Fix Firefox table header wrapping issue
298
368
  - 🐛 Tabs documentation type mismatch - update onChange parameter from number to number | string
@@ -304,24 +374,28 @@
304
374
  - 🐛 Menu: Ensure onClose is called when a MenuItem without onClick is clicked
305
375
 
306
376
  ### Links
377
+
307
378
  - [GitHub releases](https://github.com/equinor/design-system/releases/tag/eds-core-react%400.49.0)
308
379
  - [npm changelog](https://www.npmjs.com/package/@equinor/eds-core-react?activeTab=versions)
309
380
 
310
381
  - [#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
382
 
312
383
  ### Changes
384
+
313
385
  - Updated @equinor/eds-core-react dependency to latest version across all packages
314
386
  - Fixed peerDependencies version mismatch in bookmark package
315
387
  - Includes bug fixes for Autocomplete and Table components
316
388
  - Adds new Autocomplete features for "add new option" functionality
317
389
 
318
390
  ### Affected Packages
391
+
319
392
  - packages/dev-portal
320
393
  - packages/react/components/bookmark
321
394
  - cookbooks/app-react-feature-flag
322
395
  - cookbooks/app-react-people
323
396
 
324
397
  ### Links
398
+
325
399
  - [GitHub releases](https://github.com/equinor/design-system/releases)
326
400
  - [Full Changelog](https://github.com/equinor/design-system/compare/eds-core-react@0.48.0...eds-core-react@0.49.0)
327
401
 
@@ -330,6 +404,7 @@
330
404
  ### Patch Changes
331
405
 
332
406
  - [#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
407
+
333
408
  - Updated rollup dependency via vite transitive dependency
334
409
  - Includes bug fixes for tree-shaking array destructuring patterns
335
410
  - Performance improvements and platform support updates
@@ -357,6 +432,7 @@
357
432
  The refactor moves specific functionality and code related to the development portal into its own dedicated package to improve modularity and maintainability.
358
433
 
359
434
  **Features**
435
+
360
436
  - Development portal for the Fusion framework
361
437
  - Support for MSAL authentication
362
438
  - Integration with service discovery
@@ -391,6 +467,7 @@
391
467
  ### Patch Changes
392
468
 
393
469
  - [#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
470
+
394
471
  - Added a `prepack` script to `@equinor/fusion-framework-dev-portal` and `@equinor/fusion-framework-dev-server` to ensure the build runs before packaging.
395
472
  - This helps guarantee that the latest build artifacts are included when publishing these packages.
396
473
 
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