@zambon-dev/framework 1.1.1 → 1.2.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
@@ -23,7 +23,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
 
24
24
  ### ⚠ Breaking Changes / Migration
25
25
 
26
- ## [1.1.1] - 2026-06-20
26
+ ## [1.2.0] - 2026-07-24
27
+
28
+ ### Added
29
+
30
+ - `AppConfig` now accepts optional application metadata through a second `options` argument:
31
+ `appName`, `companyName`, `environment`, `logoUrl`, `version`, `notificationsEnabled`, and
32
+ `notificationsUrl`. These are consumed by the shared application shell (top bar + navigation).
33
+ Existing `new AppConfig(baseUrl)` calls continue to work unchanged (`notificationsEnabled`
34
+ defaults to `false`, other new fields to empty strings).
27
35
 
28
36
  ### Fixed
29
37
 
@@ -41,6 +49,6 @@ None.
41
49
  available via [GitHub Releases](https://github.com/RicardoZambon/ZLibraries/releases) and the
42
50
  `framework-v*` tags.
43
51
 
44
- [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/framework-v1.1.1...HEAD
45
- [1.1.1]: https://github.com/RicardoZambon/ZLibraries/releases/tag/framework-v1.1.1
52
+ [Unreleased]: https://github.com/RicardoZambon/ZLibraries/compare/framework-v1.2.0...HEAD
53
+ [1.2.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/framework-v1.2.0
46
54
  [1.1.0]: https://github.com/RicardoZambon/ZLibraries/releases/tag/framework-v1.1.0
@@ -3602,8 +3602,29 @@ const APP_CONFIG = new InjectionToken('Manually constructed AppConfig', {
3602
3602
  });
3603
3603
  class AppConfig {
3604
3604
  BASE_URL;
3605
- constructor(baseUrl) {
3605
+ /** Application name shown in the top bar brand block. */
3606
+ appName;
3607
+ /** Company name shown beneath the application name. */
3608
+ companyName;
3609
+ /** Environment key (e.g. 'DEV', 'QA', 'STG', 'PROD'). Empty string when unset. */
3610
+ environment;
3611
+ /** Optional brand logo URL shown in the top bar. */
3612
+ logoUrl;
3613
+ /** Whether the top-bar notifications feature (bell + badge) is enabled. */
3614
+ notificationsEnabled;
3615
+ /** SignalR hub URL the notifications service connects to when enabled. */
3616
+ notificationsUrl;
3617
+ /** Application version string (e.g. '1.4.0'), shown at the bottom of the navigation. */
3618
+ version;
3619
+ constructor(baseUrl, options) {
3606
3620
  this.BASE_URL = baseUrl;
3621
+ this.appName = options?.appName ?? '';
3622
+ this.companyName = options?.companyName ?? '';
3623
+ this.environment = options?.environment ?? '';
3624
+ this.logoUrl = options?.logoUrl;
3625
+ this.notificationsEnabled = options?.notificationsEnabled ?? false;
3626
+ this.notificationsUrl = options?.notificationsUrl ?? '';
3627
+ this.version = options?.version ?? '';
3607
3628
  }
3608
3629
  }
3609
3630