@o3r/application 13.1.0-prerelease.5 → 13.1.0-prerelease.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/application",
3
- "version": "13.1.0-prerelease.5",
3
+ "version": "13.1.0-prerelease.7",
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.5",
30
- "@o3r/logger": "^13.1.0-prerelease.5",
31
- "@o3r/routing": "^13.1.0-prerelease.5",
32
- "@o3r/schematics": "^13.1.0-prerelease.5",
33
- "@o3r/testing": "^13.1.0-prerelease.5",
29
+ "@o3r/core": "^13.1.0-prerelease.7",
30
+ "@o3r/logger": "^13.1.0-prerelease.7",
31
+ "@o3r/routing": "^13.1.0-prerelease.7",
32
+ "@o3r/schematics": "^13.1.0-prerelease.7",
33
+ "@o3r/testing": "^13.1.0-prerelease.7",
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.5",
58
+ "@o3r/schematics": "^13.1.0-prerelease.7",
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 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":";;AAYA,kCAMC;AAlBD,2DAGoC;AACpC,iEAEmC;AAEnC;;GAEG;AACH,sGAAsG;AACtG,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,IAAA,qCAAiB,GAAE;KACpB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC"}
@@ -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
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-cms-config.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v10.0/update-cms-config.ts"],"names":[],"mappings":";;AAUA,8CAuBC;AAjCD,yCAEmB;AAKnB;;GAEG;AACH,SAAgB,iBAAiB;IAC/B,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,aAAa,GAAwB,EAAE,CAAC;QAE9C,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;YAClB,IAAI,IAAA,oBAAQ,EAAC,IAAI,CAAC,KAAK,UAAU,EAAE,CAAC;gBAClC,IAAI,CAAC;oBACH,MAAM,UAAU,GAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;oBAC5C,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;wBAC1D,aAAa,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;oBACnC,CAAC;gBACH,CAAC;gBAAC,MAAM,CAAC;oBACP,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,IAAI,GAAG,CAAC,CAAC;gBACnD,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EAAE;YAC3D,UAAU,CAAC,OAAO,GAAG,qGAAqG,CAAC;YAC3H,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}