@o3r/application 13.1.0-prerelease.0 → 13.1.0-prerelease.11

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.
@@ -47,10 +47,10 @@ class OtterApplicationDevtools {
47
47
  isProduction: isProductionEnvironment(this.document?.body.dataset)
48
48
  };
49
49
  }
50
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OtterApplicationDevtools, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
51
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
50
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: OtterApplicationDevtools, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
51
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
54
54
  type: Injectable,
55
55
  args: [{ providedIn: 'root' }]
56
56
  }] });
@@ -78,10 +78,10 @@ class ApplicationDevtoolsConsoleService {
78
78
  displayApplicationInfo() {
79
79
  console.info('Application info', this.applicationDevtools.getApplicationInformation());
80
80
  }
81
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
81
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
85
85
  type: Injectable,
86
86
  args: [{
87
87
  providedIn: 'root'
@@ -206,10 +206,10 @@ class ApplicationDevtoolsMessageService {
206
206
  .catch((err) => this.logger.warn('Visual testing utilities are not available:', err));
207
207
  this.sendApplicationInformation();
208
208
  }
209
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
210
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
209
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
210
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
211
211
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
213
213
  type: Injectable,
214
214
  args: [{
215
215
  providedIn: 'root'
@@ -232,16 +232,16 @@ class ApplicationDevtoolsModule {
232
232
  ]
233
233
  };
234
234
  }
235
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
236
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsModule }); }
237
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
235
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
236
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsModule }); }
237
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
238
238
  { provide: OTTER_APPLICATION_DEVTOOLS_OPTIONS, useValue: OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS },
239
239
  ApplicationDevtoolsMessageService,
240
240
  ApplicationDevtoolsConsoleService,
241
241
  OtterApplicationDevtools
242
242
  ] }); }
243
243
  }
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
245
245
  type: NgModule,
246
246
  args: [{
247
247
  providers: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/application",
3
- "version": "13.1.0-prerelease.0",
3
+ "version": "13.1.0-prerelease.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,11 +26,11 @@
26
26
  "@angular-devkit/schematics": "^20.0.0",
27
27
  "@angular/common": "^20.0.0",
28
28
  "@angular/core": "^20.0.0",
29
- "@o3r/core": "^13.1.0-prerelease.0",
30
- "@o3r/logger": "^13.1.0-prerelease.0",
31
- "@o3r/routing": "^13.1.0-prerelease.0",
32
- "@o3r/schematics": "^13.1.0-prerelease.0",
33
- "@o3r/testing": "^13.1.0-prerelease.0",
29
+ "@o3r/core": "^13.1.0-prerelease.11",
30
+ "@o3r/logger": "^13.1.0-prerelease.11",
31
+ "@o3r/routing": "^13.1.0-prerelease.11",
32
+ "@o3r/schematics": "^13.1.0-prerelease.11",
33
+ "@o3r/testing": "^13.1.0-prerelease.11",
34
34
  "@schematics/angular": "^20.0.0",
35
35
  "rxjs": "^7.8.1",
36
36
  "ts-node": "~10.9.2",
@@ -55,7 +55,7 @@
55
55
  }
56
56
  },
57
57
  "dependencies": {
58
- "@o3r/schematics": "^13.1.0-prerelease.0",
58
+ "@o3r/schematics": "^13.1.0-prerelease.11",
59
59
  "tslib": "^2.6.2"
60
60
  },
61
61
  "engines": {
package/migration.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular_devkit/schematics/collection-schema.json",
3
- "schematics": {
4
- "migration-v10_0": {
5
- "version": "10.0.0-alpha.0",
6
- "description": "Updates of @o3r/application to v10.0.*",
7
- "factory": "./schematics/ng-update/index#updateV10_0"
8
- }
9
- }
10
- }
@@ -1,65 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "$id": "CmsMetadataSchema",
4
- "type": "object",
5
- "title": "Schema of CMS application configuration",
6
- "description": "Schema used to indicate the configuration to the CMS when the application is loaded by it",
7
- "additionalProperties": false,
8
- "required": [
9
- "localisationsFolder"
10
- ],
11
- "properties": {
12
- "assetsFolder": {
13
- "type": "string",
14
- "description": "The relative path to the assets folder to import",
15
- "default": "dist/assets"
16
- },
17
- "localisationsFolder": {
18
- "type": "string",
19
- "description": "The relative path to the localizations (.json files) folder to import"
20
- },
21
- "placeholderCssFiles": {
22
- "type": "array",
23
- "description": "An array of the CSS files which are used by placeholders at runtime. These files will be used in the placeholder editor",
24
- "items": {
25
- "type": "string"
26
- },
27
- "default": []
28
- },
29
- "defaultLanguage": {
30
- "type": "string",
31
- "description": "The language code present in the localisation.metadata.json file",
32
- "default": "en"
33
- },
34
- "functionalContentsFolder": {
35
- "type": "string",
36
- "description": "The relative path to the functional contents metadata folder to import",
37
- "default": "functional-contents-metadata"
38
- },
39
- "features": {
40
- "type": "object",
41
- "description": "Set of additional CMS features that can be activated or deactivated for the application",
42
- "properties": {
43
- "themingCssOverrideEnabled": {
44
- "type": "boolean",
45
- "description": "Specifies that the blueprint supports theming CSS file customization",
46
- "default": false
47
- },
48
- "themingCssVariablesEnabled": {
49
- "type": "boolean",
50
- "description": "Specifies that the blueprint supports theming CSS variables customization",
51
- "default": true
52
- }
53
- }
54
- },
55
- "migrationScriptFolder": {
56
- "type": "string",
57
- "description": "The relative path to the migration scripts",
58
- "default": "migration-scripts"
59
- },
60
- "migrationScriptVersionDependency": {
61
- "type": "string",
62
- "description": "Name of the package dependency to get the current blueprint version from. If the dependency is not found, the field version in the package.json will be used instead if defined. If not defined, no migration script will be executed"
63
- }
64
- }
65
- }
@@ -1,6 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- /**
3
- * update of Otter library V10.0
4
- */
5
- export declare function updateV10_0(): Rule;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAKpC;;GAEG;AAEH,wBAAgB,WAAW,IAAI,IAAI,CAMlC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateV10_0 = updateV10_0;
4
- const schematics_1 = require("@angular-devkit/schematics");
5
- const update_cms_config_1 = require("./v10.0/update-cms-config");
6
- /**
7
- * update of Otter library V10.0
8
- */
9
- // eslint-disable-next-line @typescript-eslint/naming-convention -- function name contains the version
10
- function updateV10_0() {
11
- const updateRules = [
12
- (0, update_cms_config_1.updateCmsJsonFile)()
13
- ];
14
- return (0, schematics_1.chain)(updateRules);
15
- }
16
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- import type { Rule } from '@angular-devkit/schematics';
2
- /**
3
- * Update Otter cms.json in an Angular Project
4
- */
5
- export declare function updateCmsJsonFile(): Rule;
6
- //# sourceMappingURL=update-cms-config.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-cms-config.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v10.0/update-cms-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAuBxC"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateCmsJsonFile = updateCmsJsonFile;
4
- const node_path_1 = require("node:path");
5
- /**
6
- * Update Otter cms.json in an Angular Project
7
- */
8
- function updateCmsJsonFile() {
9
- return (tree, context) => {
10
- const filesToUpdate = {};
11
- tree.visit((path) => {
12
- if ((0, node_path_1.basename)(path) === 'cms.json') {
13
- try {
14
- const contentObj = tree.readJson(path);
15
- if (typeof contentObj === 'object' && !contentObj.$schema) {
16
- filesToUpdate[path] = contentObj;
17
- }
18
- }
19
- catch {
20
- context.logger.warn(`Failed to parse '${path}'`);
21
- }
22
- }
23
- });
24
- Object.entries(filesToUpdate).forEach(([path, contentObj]) => {
25
- contentObj.$schema = 'https://github.com/AmadeusITGroup/otter/blob/main/packages/@o3r/application/schemas/cms.schema.json';
26
- tree.overwrite(path, JSON.stringify(contentObj, null, 2));
27
- });
28
- return tree;
29
- };
30
- }
31
- //# sourceMappingURL=update-cms-config.js.map