@o3r/core 14.0.0-prerelease.10 → 14.0.0-prerelease.12
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/migration.json +5 -0
- package/package.json +4 -4
- package/schematics/ng-update/index.d.ts +4 -0
- package/schematics/ng-update/index.d.ts.map +1 -1
- package/schematics/ng-update/index.js +21 -1
- package/schematics/ng-update/v14.0/remove-styling-design-deps.d.ts +7 -0
- package/schematics/ng-update/v14.0/remove-styling-design-deps.d.ts.map +1 -0
- package/schematics/ng-update/v14.0/remove-styling-design-deps.js +13 -0
- package/schematics/ng-update/v14.0/update-styling-imports.d.ts +8 -0
- package/schematics/ng-update/v14.0/update-styling-imports.d.ts.map +1 -0
- package/schematics/ng-update/v14.0/update-styling-imports.js +35 -0
package/migration.json
CHANGED
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"description": "Updates of @o3r/core to v12.1.*",
|
|
22
22
|
"factory": "./schematics/ng-update/index#updateV12_1"
|
|
23
23
|
},
|
|
24
|
+
"migration-v14_0": {
|
|
25
|
+
"version": "14.0.0-alpha.0",
|
|
26
|
+
"description": "Updates of @o3r/core to v14.0.* - Remove @o3r/styling and @o3r/design dependencies",
|
|
27
|
+
"factory": "./schematics/ng-update/index#updateV14_0"
|
|
28
|
+
},
|
|
24
29
|
"migration-all": {
|
|
25
30
|
"version": "*",
|
|
26
31
|
"description": "Run on all versions",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/core",
|
|
3
|
-
"version": "14.0.0-prerelease.
|
|
3
|
+
"version": "14.0.0-prerelease.12",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@ngrx/entity": "^21.0.0",
|
|
39
39
|
"@ngrx/store": "^21.0.0",
|
|
40
40
|
"@nx/angular": "^22.0.0",
|
|
41
|
-
"@o3r/telemetry": "~14.0.0-prerelease.
|
|
41
|
+
"@o3r/telemetry": "~14.0.0-prerelease.12",
|
|
42
42
|
"@schematics/angular": "^21.0.0",
|
|
43
43
|
"chokidar": "^4.0.3",
|
|
44
44
|
"globby": "^11.1.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@o3r/schematics": "~14.0.0-prerelease.
|
|
79
|
+
"@o3r/schematics": "~14.0.0-prerelease.12",
|
|
80
80
|
"tslib": "^2.6.2",
|
|
81
81
|
"uuid": "~13.0.0"
|
|
82
82
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@ngrx/store": "~21.0.0",
|
|
89
89
|
"@ngrx/store-devtools": "~21.0.0",
|
|
90
90
|
"@nx/eslint-plugin": "~22.3.3",
|
|
91
|
-
"@o3r/store-sync": "~14.0.0-prerelease.
|
|
91
|
+
"@o3r/store-sync": "~14.0.0-prerelease.12",
|
|
92
92
|
"@stylistic/eslint-plugin": "~5.6.0",
|
|
93
93
|
"@types/jest": "~30.0.0",
|
|
94
94
|
"@typescript-eslint/eslint-plugin": "~8.52.0",
|
|
@@ -15,6 +15,10 @@ export declare const updateV12_0: (options: any) => Rule;
|
|
|
15
15
|
* Update of Otter library V12.1
|
|
16
16
|
*/
|
|
17
17
|
export declare const updateV12_1: (options: any) => Rule;
|
|
18
|
+
/**
|
|
19
|
+
* Update of Otter library V14.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const updateV14_0: (options: any) => Rule;
|
|
18
22
|
/**
|
|
19
23
|
* Update of All versions
|
|
20
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAmCpC;;GAEG;AAEH,eAAO,MAAM,UAAU,wBAAqC,CAAC;AAkB7D;;GAEG;AAEH,eAAO,MAAM,WAAW,wBAAsC,CAAC;AAE/D;;GAEG;AAEH,eAAO,MAAM,WAAW,wBAEvB,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,WAAW,wBAEvB,CAAC;AAiBF;;GAEG;AAEH,eAAO,MAAM,WAAW,wBAAsC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,SAAS,wBAErB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateAll = exports.updateV12_1 = exports.updateV12_0 = exports.updateV10_0 = exports.updateV8_2 = void 0;
|
|
3
|
+
exports.updateAll = exports.updateV14_0 = exports.updateV12_1 = exports.updateV12_0 = exports.updateV10_0 = exports.updateV8_2 = void 0;
|
|
4
4
|
const node_path_1 = require("node:path");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const schematics_2 = require("@o3r/schematics");
|
|
7
7
|
const configuration_1 = require("./v10.0/configuration");
|
|
8
|
+
const remove_styling_design_deps_1 = require("./v14.0/remove-styling-design-deps");
|
|
9
|
+
const update_styling_imports_1 = require("./v14.0/update-styling-imports");
|
|
8
10
|
const import_map_1 = require("./v8.2/import-map");
|
|
9
11
|
const o3rPackageJsonPath = (0, node_path_1.join)(__dirname, '../../package.json');
|
|
10
12
|
/**
|
|
@@ -53,6 +55,24 @@ exports.updateV12_0 = (0, schematics_2.createOtterSchematic)(() => (0, schematic
|
|
|
53
55
|
*/
|
|
54
56
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name
|
|
55
57
|
exports.updateV12_1 = (0, schematics_2.createOtterSchematic)(() => (0, schematics_2.updatePackageGroup)(o3rPackageJsonPath));
|
|
58
|
+
/**
|
|
59
|
+
* Update of Otter library V14.0
|
|
60
|
+
*/
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name
|
|
62
|
+
function updateV14_0Fn() {
|
|
63
|
+
return (tree, context) => {
|
|
64
|
+
const updateRules = [
|
|
65
|
+
update_styling_imports_1.updateStylingImports,
|
|
66
|
+
remove_styling_design_deps_1.removeStylingDesignDependencies
|
|
67
|
+
];
|
|
68
|
+
return (0, schematics_1.chain)(updateRules)(tree, context);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Update of Otter library V14.0
|
|
73
|
+
*/
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- version is in the function name
|
|
75
|
+
exports.updateV14_0 = (0, schematics_2.createOtterSchematic)(updateV14_0Fn);
|
|
56
76
|
/**
|
|
57
77
|
* Update of All versions
|
|
58
78
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* Rule to remove dependencies to `@o3r/styling` and `@o3r/design` packages
|
|
4
|
+
* These packages are no longer needed as dependencies in `@o3r/core`
|
|
5
|
+
*/
|
|
6
|
+
export declare const removeStylingDesignDependencies: Rule;
|
|
7
|
+
//# sourceMappingURL=remove-styling-design-deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-styling-design-deps.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v14.0/remove-styling-design-deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAKpC;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,IAG5C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeStylingDesignDependencies = void 0;
|
|
4
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
/**
|
|
6
|
+
* Rule to remove dependencies to `@o3r/styling` and `@o3r/design` packages
|
|
7
|
+
* These packages are no longer needed as dependencies in `@o3r/core`
|
|
8
|
+
*/
|
|
9
|
+
exports.removeStylingDesignDependencies = (0, schematics_1.removePackages)([
|
|
10
|
+
'@o3r/styling',
|
|
11
|
+
'@o3r/design'
|
|
12
|
+
]);
|
|
13
|
+
//# sourceMappingURL=remove-styling-design-deps.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* Rule to update imports from `@o3r/styling` to the new packages
|
|
4
|
+
* Core interfaces (CssVariable, CssMetadata, CssVariableType) are moved to `@ama-styling/style-dictionary`
|
|
5
|
+
* Devkit interfaces and services are moved to `@ama-styling/devkit`
|
|
6
|
+
*/
|
|
7
|
+
export declare const updateStylingImports: Rule;
|
|
8
|
+
//# sourceMappingURL=update-styling-imports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-styling-imports.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v14.0/update-styling-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAKpC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,IA2BjC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateStylingImports = void 0;
|
|
4
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
/**
|
|
6
|
+
* Rule to update imports from `@o3r/styling` to the new packages
|
|
7
|
+
* Core interfaces (CssVariable, CssMetadata, CssVariableType) are moved to `@ama-styling/style-dictionary`
|
|
8
|
+
* Devkit interfaces and services are moved to `@ama-styling/devkit`
|
|
9
|
+
*/
|
|
10
|
+
exports.updateStylingImports = (0, schematics_1.updateImports)({
|
|
11
|
+
'@o3r/styling': {
|
|
12
|
+
// Core interfaces moved to `@ama-styling/style-dictionary`
|
|
13
|
+
CssVariable: { newPackage: '@ama-styling/style-dictionary' },
|
|
14
|
+
CssVariableType: { newPackage: '@ama-styling/style-dictionary' },
|
|
15
|
+
CssMetadata: { newPackage: '@ama-styling/style-dictionary' },
|
|
16
|
+
// Devkit interfaces and types moved to `@ama-styling/devkit`
|
|
17
|
+
StylingDevtoolsServiceOptions: { newPackage: '@ama-styling/devkit' },
|
|
18
|
+
UpdateStylingVariablesContentMessage: { newPackage: '@ama-styling/devkit' },
|
|
19
|
+
ResetStylingVariablesContentMessage: { newPackage: '@ama-styling/devkit' },
|
|
20
|
+
StylingVariable: { newPackage: '@ama-styling/devkit' },
|
|
21
|
+
GetStylingVariableContentMessage: { newPackage: '@ama-styling/devkit' },
|
|
22
|
+
StylingMessageDataTypes: { newPackage: '@ama-styling/devkit' },
|
|
23
|
+
AvailableStylingMessageContents: { newPackage: '@ama-styling/devkit' },
|
|
24
|
+
THEME_TAG_NAME: { newPackage: '@ama-styling/devkit' },
|
|
25
|
+
PALETTE_TAG_NAME: { newPackage: '@ama-styling/devkit' },
|
|
26
|
+
// Devkit services and classes moved to `@ama-styling/devkit`
|
|
27
|
+
OtterStylingDevtools: { newPackage: '@ama-styling/devkit' },
|
|
28
|
+
StylingDevtoolsMessageService: { newPackage: '@ama-styling/devkit' },
|
|
29
|
+
StylingDevtoolsModule: { newPackage: '@ama-styling/devkit' },
|
|
30
|
+
// Devkit tokens moved to `@ama-styling/devkit`
|
|
31
|
+
OTTER_STYLING_DEVTOOLS_DEFAULT_OPTIONS: { newPackage: '@ama-styling/devkit' },
|
|
32
|
+
OTTER_STYLING_DEVTOOLS_OPTIONS: { newPackage: '@ama-styling/devkit' }
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=update-styling-imports.js.map
|