@o3r/components 11.2.0-prerelease.9 → 11.3.0-prerelease.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/builders/component-extractor/helpers/component/component-config.extractor.d.ts +5 -5
- package/builders/component-extractor/helpers/component/component-config.extractor.d.ts.map +1 -1
- package/builders/component-extractor/index.js +3 -3
- package/core/component.output.d.ts +2 -5
- package/core/component.output.d.ts.map +1 -1
- package/esm2022/core/component.output.mjs +1 -1
- package/esm2022/devkit/components-devtools.message.service.mjs +3 -3
- package/esm2022/devkit/components-devtools.module.mjs +4 -4
- package/esm2022/rules-engine/placeholder.action-handler.mjs +3 -3
- package/esm2022/rules-engine/placeholder.rules-engine.effect.mjs +3 -3
- package/esm2022/rules-engine/placeholder.rules-engine.module.mjs +4 -4
- package/esm2022/stores/placeholder-request/placeholder-request.module.mjs +4 -4
- package/esm2022/stores/placeholder-template/placeholder-template.module.mjs +4 -4
- package/esm2022/tools/component-replacement/c11n.directive.mjs +3 -3
- package/esm2022/tools/component-replacement/c11n.mock.module.mjs +10 -10
- package/esm2022/tools/component-replacement/c11n.module.mjs +4 -4
- package/esm2022/tools/component-replacement/c11n.service.mjs +3 -3
- package/esm2022/tools/pipes/capitalize/capitalize.module.mjs +4 -4
- package/esm2022/tools/pipes/capitalize/capitalize.pipe.mjs +6 -6
- package/esm2022/tools/pipes/duration/duration.module.mjs +4 -4
- package/esm2022/tools/pipes/duration/duration.pipe.mjs +6 -6
- package/esm2022/tools/pipes/keep-white-space/keep-white-space.module.mjs +4 -4
- package/esm2022/tools/pipes/keep-white-space/keep-white-space.pipe.mjs +6 -6
- package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.module.mjs +4 -4
- package/esm2022/tools/pipes/replace-with-bold/replace-with-bold.pipe.mjs +6 -6
- package/esm2022/tools/placeholder/placeholder.component.mjs +3 -3
- package/esm2022/tools/placeholder/placeholder.module.mjs +4 -4
- package/fesm2022/o3r-components-rules-engine.mjs +10 -10
- package/fesm2022/o3r-components.mjs +82 -82
- package/package.json +20 -20
- package/schematics/cms-adapter/index.d.ts.map +1 -1
- package/schematics/cms-adapter/index.js +1 -3
- package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -1
- package/schematics/ng-add/helpers/devtools-registration.js +2 -1
- package/schematics/ng-add/index.js +2 -2
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.registerDevtools = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const path = tslib_1.__importStar(require("node:path"));
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
6
7
|
const DEVTOOL_MODULE_NAME = 'ComponentsDevtoolsModule';
|
|
7
8
|
const DEVTOOL_SERVICE_NAME = 'ComponentsDevtoolsMessageService';
|
|
8
|
-
const PACKAGE_NAME =
|
|
9
|
+
const PACKAGE_NAME = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(__dirname, '..', '..', '..', 'package.json'), { encoding: 'utf8' })).name;
|
|
9
10
|
/**
|
|
10
11
|
* Register Devtools to the application
|
|
11
12
|
* @param tree
|
|
@@ -25,7 +25,7 @@ function ngAddFn(options) {
|
|
|
25
25
|
const { NodeDependencyType } = await Promise.resolve().then(() => tslib_1.__importStar(require('@schematics/angular/utility/dependencies')));
|
|
26
26
|
options = { ...getDefaultOptionsForSchematic(getWorkspaceConfig(tree), '@o3r/components', 'ng-add', options), ...options };
|
|
27
27
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
28
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: '
|
|
28
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: 'utf8' }));
|
|
29
29
|
const depsInfo = getO3rPeerDeps(packageJsonPath);
|
|
30
30
|
if (options.enableMetadataExtract) {
|
|
31
31
|
depsInfo.o3rPeerDeps = [...depsInfo.o3rPeerDeps, '@o3r/extractors'];
|
|
@@ -64,7 +64,7 @@ function ngAddFn(options) {
|
|
|
64
64
|
await (0, devtools_registration_1.registerDevtools)(options)
|
|
65
65
|
]);
|
|
66
66
|
context.logger.info(`The package ${depsInfo.packageName} comes with a debug mechanism`);
|
|
67
|
-
context.logger.info('Get more information on the following page: https://github.com/AmadeusITGroup/otter/tree/main/docs/components/
|
|
67
|
+
context.logger.info('Get more information on the following page: https://github.com/AmadeusITGroup/otter/tree/main/docs/components/INTRODUCTION.md#Runtime-debugging');
|
|
68
68
|
return () => rule(tree, context);
|
|
69
69
|
};
|
|
70
70
|
}
|