@equinor/fusion-framework-vite-plugin-spa 1.0.0-next.9 → 1.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,5 +1,31 @@
1
1
  # @equinor/fusion-framework-vite-plugin-spa
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253) Thanks [@odinr](https://github.com/odinr)! - Introducing a powerful new Vite plugin for building Single Page Applications (SPAs) with the Fusion Framework and Vite. This plugin significantly streamlines the development workflow by automating HTML template generation, bootstrapping authentication and service discovery, and enabling seamless portal loading and API proxying.
8
+
9
+ **Purpose**:
10
+
11
+ This plugin represents a strategic modularization of the Fusion Framework CLI codebase. By extracting the SPA functionality into its own dedicated package, we've simplified the CLI's architecture while enabling greater flexibility. This modular design allows the SPA component to be replaced or reused by third-party developers independently of the CLI. The primary goal is to maintain a cleaner, more maintainable codebase through proper separation of concerns, with the CLI using this plugin rather than containing this functionality directly.
12
+
13
+ **Key Features**:
14
+
15
+ - **Fusion Framework Bootstrap**: Automatically initializes core modules and renders configured portals
16
+ - **Service Discovery**: Enables dynamic service routing and eliminates hardcoded service endpoints
17
+ - **MSAL Authentication**: Provides seamless Azure AD integration with configurable authentication flows
18
+ - **Service Worker**: Intercepts network requests to add authentication tokens and rewrite URLs for proxying
19
+ - **Portal Integration**: Loads and renders any portal by ID from local packages or the Fusion Portal Service
20
+ - **Environment Configuration**: Supports flexible configuration through code or `.env` files with proper naming conventions
21
+ - **Custom Templates**: Allows full control over HTML document structure while maintaining environment variable injection
22
+ - **Custom Bootstrap**: Supports advanced customization of the application initialization process
23
+ - **API Service Integration**: Works with `@equinor/fusion-framework-vite-plugin-api-service` for enhanced development capabilities
24
+
25
+ This plugin is designed for seamless integration with the Fusion Framework CLI and provides flexible configuration for both standard and advanced SPA scenarios.
26
+
27
+ > Note: This plugin is intended for use in non-production environments only, primarily as a development and testing tool.
28
+
3
29
  ## 1.0.0-next.9
4
30
 
5
31
  ### Patch Changes