@aegov/designsystem-angular 0.2.25 → 4.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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aegov/designsystem-angular",
3
- "version": "0.2.25",
3
+ "version": "4.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
7
- "@aegov/designsystem": "*"
7
+ "@aegov/designsystem": "^4.0.0"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.3.0"
@@ -22,6 +22,10 @@
22
22
  ".": {
23
23
  "types": "./types/aegov-designsystem-angular.d.ts",
24
24
  "default": "./fesm2022/aegov-designsystem-angular.mjs"
25
+ },
26
+ "./provider": {
27
+ "types": "./types/aegov-designsystem-angular-provider.d.ts",
28
+ "default": "./fesm2022/aegov-designsystem-angular-provider.mjs"
25
29
  }
26
30
  },
27
31
  "type": "module"
@@ -0,0 +1,23 @@
1
+ import { EnvironmentProviders } from '@angular/core';
2
+
3
+ /**
4
+ * Registers every `aegov-*` element through the lazy loader and runs the design
5
+ * system's global script (toast live region, `window.aegovToast`).
6
+ *
7
+ * Add it to the application's providers (`bootstrapApplication`, or the root
8
+ * NgModule's `providers`). It must be an application-level provider: Angular only
9
+ * runs `APP_INITIALIZER` from the root environment injector.
10
+ *
11
+ * The loader is imported dynamically so apps that never call this function don't
12
+ * bundle it (the loader is a side-effect module). It lives in this secondary entry
13
+ * point because a bundler emits the loader's lazy chunks for any `import()` in a
14
+ * module it includes, even inside a function the app never calls: an app that
15
+ * imports only wrappers from `@aegov/designsystem-angular` would otherwise ship
16
+ * ~70 unused chunk files.
17
+ *
18
+ * This is what `provideAppInitializer()` expands to; the token form is used so the
19
+ * package keeps working on Angular 18, which has no `provideAppInitializer()`.
20
+ */
21
+ declare function provideDesignSystem(): EnvironmentProviders;
22
+
23
+ export { provideDesignSystem };