@onecx/angular-integration-interface 7.6.0 → 8.0.0-rc.10

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.
Files changed (33) hide show
  1. package/README.md +13 -4
  2. package/fesm2022/onecx-angular-integration-interface-mocks.mjs +23 -26
  3. package/fesm2022/onecx-angular-integration-interface-mocks.mjs.map +1 -1
  4. package/fesm2022/onecx-angular-integration-interface.mjs +81 -64
  5. package/fesm2022/onecx-angular-integration-interface.mjs.map +1 -1
  6. package/package.json +8 -21
  7. package/{mocks/index.d.ts → types/onecx-angular-integration-interface-mocks.d.ts} +0 -1
  8. package/{index.d.ts → types/onecx-angular-integration-interface.d.ts} +19 -18
  9. package/migrations/index.d.ts +0 -5
  10. package/migrations/index.js +0 -9
  11. package/migrations/index.js.map +0 -1
  12. package/migrations/test-utils/test-setup.d.ts +0 -1
  13. package/migrations/test-utils/test-setup.js +0 -6
  14. package/migrations/test-utils/test-setup.js.map +0 -1
  15. package/migrations/v6/migrate-onecx-to-v6.d.ts +0 -2
  16. package/migrations/v6/migrate-onecx-to-v6.js +0 -8
  17. package/migrations/v6/migrate-onecx-to-v6.js.map +0 -1
  18. package/migrations/v6/remove-add-initialize-module-guard.d.ts +0 -2
  19. package/migrations/v6/remove-add-initialize-module-guard.js +0 -29
  20. package/migrations/v6/remove-add-initialize-module-guard.js.map +0 -1
  21. package/migrations/v6/remove-auth-service.d.ts +0 -2
  22. package/migrations/v6/remove-auth-service.js +0 -28
  23. package/migrations/v6/remove-auth-service.js.map +0 -1
  24. package/migrations/v6/replace-provide-app-service-mock.d.ts +0 -2
  25. package/migrations/v6/replace-provide-app-service-mock.js +0 -14
  26. package/migrations/v6/replace-provide-app-service-mock.js.map +0 -1
  27. package/migrations/v6/utils/remove-and-track-import.d.ts +0 -2
  28. package/migrations/v6/utils/remove-and-track-import.js +0 -14
  29. package/migrations/v6/utils/remove-and-track-import.js.map +0 -1
  30. package/migrations/v6/warn-removed-properties-from-theme-service.d.ts +0 -3
  31. package/migrations/v6/warn-removed-properties-from-theme-service.js +0 -24
  32. package/migrations/v6/warn-removed-properties-from-theme-service.js.map +0 -1
  33. package/migrations.json +0 -58
@@ -1,3 +0,0 @@
1
- import { Tree } from '@nx/devkit';
2
- export declare function warnThemeServiceRemovedProperties(tree: Tree, srcDirectoryPath: string): void;
3
- export declare function warnThemeServiceRemovedMethods(tree: Tree, srcDirectoryPath: string): void;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.warnThemeServiceRemovedProperties = warnThemeServiceRemovedProperties;
4
- exports.warnThemeServiceRemovedMethods = warnThemeServiceRemovedMethods;
5
- const nx_migration_utils_1 = require("@onecx/nx-migration-utils");
6
- const THEME_SERVICE_REMOVED_PROPERTY = 'baseUrlV1';
7
- const THEME_SERVICE_REMOVED_METHODS = ['getThemeRef', 'loadAndApplyTheme', 'apply'];
8
- function warnThemeServiceRemovedProperties(tree, srcDirectoryPath) {
9
- const detectedPropertyInFiles = (0, nx_migration_utils_1.detectMethodCallsInFiles)(tree, srcDirectoryPath, THEME_SERVICE_REMOVED_PROPERTY, 'ThemeService');
10
- if (detectedPropertyInFiles.size > 0) {
11
- const warningPropertyCalls = `ThemeService property ${THEME_SERVICE_REMOVED_PROPERTY} have been removed in v6. Please remove these usages and adapt your code accordingly.`;
12
- (0, nx_migration_utils_1.printWarnings)(warningPropertyCalls, Array.from(detectedPropertyInFiles.keys()));
13
- }
14
- }
15
- function warnThemeServiceRemovedMethods(tree, srcDirectoryPath) {
16
- THEME_SERVICE_REMOVED_METHODS.forEach((method) => {
17
- const detectedMethodCalls = (0, nx_migration_utils_1.detectMethodCallsInFiles)(tree, srcDirectoryPath, method, 'ThemeService');
18
- if (detectedMethodCalls.size > 0) {
19
- const warningMethodCall = `ThemeService method '${method}' has been removed in v6. Only currentTheme$ property is available. Please adapt your code accordingly.`;
20
- (0, nx_migration_utils_1.printWarnings)(warningMethodCall, Array.from(detectedMethodCalls.keys()));
21
- }
22
- });
23
- }
24
- //# sourceMappingURL=warn-removed-properties-from-theme-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"warn-removed-properties-from-theme-service.js","sourceRoot":"","sources":["../../../../../libs/angular-integration-interface/migrations/v6/warn-removed-properties-from-theme-service.ts"],"names":[],"mappings":";;AAMA,8EAYC;AAED,wEAQC;AA3BD,kEAAmF;AAEnF,MAAM,8BAA8B,GAAG,WAAW,CAAA;AAClD,MAAM,6BAA6B,GAAG,CAAC,aAAa,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA;AAEnF,SAAgB,iCAAiC,CAAC,IAAU,EAAE,gBAAwB;IACpF,MAAM,uBAAuB,GAAG,IAAA,6CAAwB,EACtD,IAAI,EACJ,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,CACf,CAAA;IAED,IAAI,uBAAuB,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,oBAAoB,GAAG,yBAAyB,8BAA8B,uFAAuF,CAAA;QAC3K,IAAA,kCAAa,EAAC,oBAAoB,EAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IACjF,CAAC;AACH,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAU,EAAE,gBAAwB;IACjF,6BAA6B,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QAC/C,MAAM,mBAAmB,GAAG,IAAA,6CAAwB,EAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,cAAc,CAAC,CAAA;QACpG,IAAI,mBAAmB,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YACjC,MAAM,iBAAiB,GAAG,wBAAwB,MAAM,yGAAyG,CAAA;YACjK,IAAA,kCAAa,EAAC,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;QAC1E,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/migrations.json DELETED
@@ -1,58 +0,0 @@
1
- {
2
- "generators": {
3
- "migrate-onecx-to-v6": {
4
- "cli": "nx",
5
- "version": "6.0.0",
6
- "description": "Update package json to Angular 19, PrimeNG 19, OneCX versions to v6 and other dependencies to be compatible with Angular 19.",
7
- "factory": "migrations/v6/migrate-onecx-to-v6"
8
- },
9
- "remove-add-initialize-module-guard": {
10
- "cli": "nx",
11
- "version": "6.0.0",
12
- "description": "Removes all occurrences of addInitializeModuleGuard.",
13
- "factory": "migrations/v6/remove-add-initialize-module-guard"
14
- },
15
- "replace-provide-app-service-mock": {
16
- "cli": "nx",
17
- "version": "6.0.0",
18
- "description": "Detects and replaces all occurrences of provideAppServiceMock with provideAppStateServiceMock.",
19
- "factory": "migrations/v6/replace-provide-app-service-mock"
20
- },
21
- "remove-auth-service": {
22
- "cli": "nx",
23
- "version": "6.0.0",
24
- "description": "Removes all imports of IAuthService and AUTH_SERVICE and warns for usage.",
25
- "factory": "migrations/v6/remove-auth-service"
26
- },
27
- "warn-removed-properties-from-theme-service": {
28
- "cli": "nx",
29
- "version": "6.0.0",
30
- "description": "Warns about the properties which were removed from themeService",
31
- "factory": "migrations/v6/warn-removed-properties-from-theme-service"
32
- }
33
- },
34
- "packageJsonUpdates": {
35
- "6.0.0": {
36
- "version": "6.0.0",
37
- "packages": {
38
- "@angular/cli": {
39
- "version": "~19.0.0",
40
- "alwaysAddToPackageJson": false
41
- },
42
- "@nx/angular": {
43
- "version": "~20.3.0",
44
- "alwaysAddToPackageJson": false
45
- },
46
- "@ngx-translate/core": {
47
- "version": "~16.0.4",
48
- "alwaysAddToPackageJson": false
49
- },
50
- "primeng": {
51
- "version": "~19.0.0",
52
- "alwaysAddToPackageJson": false
53
- }
54
- }
55
- },
56
- "version": "null"
57
- }
58
- }