@po-ui/ng-code-editor 6.11.0 → 6.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-code-editor",
3
- "version": "6.11.0",
3
+ "version": "6.12.0",
4
4
  "tag": "next",
5
5
  "description": "PO UI - Code Editor",
6
6
  "author": "PO UI",
@@ -12,8 +12,8 @@
12
12
  },
13
13
  "schematics": "./schematics/collection.json",
14
14
  "dependencies": {
15
- "@po-ui/ng-components": "6.11.0",
16
- "@po-ui/ng-schematics": "6.11.0",
15
+ "@po-ui/ng-components": "6.12.0",
16
+ "@po-ui/ng-schematics": "6.12.0",
17
17
  "monaco-editor": "0.24.0",
18
18
  "core-js": "^3.13.0",
19
19
  "intl": "^1.2.5",
@@ -23,7 +23,7 @@
23
23
  "@angular/common": "^13.0.2",
24
24
  "@angular/core": "^13.0.2",
25
25
  "@angular/forms": "^13.0.2",
26
- "@po-ui/ng-components": "6.11.0",
26
+ "@po-ui/ng-components": "6.12.0",
27
27
  "monaco-editor": "0.24.0",
28
28
  "zone.js": "~0.11.4"
29
29
  },
Binary file
@@ -31,7 +31,7 @@ function default_1(options) {
31
31
  exports.default = default_1;
32
32
  function addPoPackageAndInstall() {
33
33
  return (tree, context) => {
34
- (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-code-editor', '6.11.0');
34
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-code-editor', '6.12.0');
35
35
  // install packages
36
36
  context.addTask(new tasks_1.NodePackageInstallTask());
37
37
  };
@@ -16,14 +16,14 @@ describe('Schematic: ng-add', () => {
16
16
  name: 'po'
17
17
  };
18
18
  let appTree;
19
- beforeEach(() => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
19
+ beforeEach(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
20
20
  appTree = yield runner.runExternalSchematicAsync('@schematics/angular', 'workspace', workspaceOptions).toPromise();
21
21
  appTree = yield runner
22
22
  .runExternalSchematicAsync('@schematics/angular', 'application', componentOptions, appTree)
23
23
  .toPromise();
24
24
  }));
25
25
  describe('Dependencies:', () => {
26
- it('should update package.json with @po-ui/ng-code-editor dependency and run nodePackageInstall', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
26
+ it('should update package.json with @po-ui/ng-code-editor dependency and run nodePackageInstall', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
27
27
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
28
28
  const packageJson = JSON.parse(getFileContent(tree, '/package.json'));
29
29
  const dependencies = packageJson.dependencies;
@@ -33,7 +33,7 @@ describe('Schematic: ng-add', () => {
33
33
  }));
34
34
  });
35
35
  describe('Imports:', () => {
36
- it('should add the PoCodeEditorModule to the project module', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
36
+ it('should add the PoCodeEditorModule to the project module', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
37
37
  const poCodeEditorModuleName = 'PoCodeEditorModule';
38
38
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
39
39
  const fileContent = getFileContent(tree, `projects/${componentOptions.name}/src/app/app.module.ts`);
@@ -42,14 +42,14 @@ describe('Schematic: ng-add', () => {
42
42
  });
43
43
  describe('Theme configuration:', () => {
44
44
  const defaultThemePath = './node_modules/@po-ui/style/css/po-theme-default.min.css';
45
- it('should add default theme in styles of build project', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
45
+ it('should add default theme in styles of build project', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
46
46
  var _a;
47
47
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
48
48
  const workspace = (_a = (0, project_1.getWorkspaceConfigGracefully)(tree)) !== null && _a !== void 0 ? _a : {};
49
49
  const project = (0, project_1.getProjectFromWorkspace)(workspace);
50
50
  expectProjectPropertyFile(project, defaultThemePath, 'styles');
51
51
  }));
52
- it('shouldn`t add a theme file in styles of build project multiple times', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
52
+ it('shouldn`t add a theme file in styles of build project multiple times', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
53
53
  var _b;
54
54
  writePropertiesFileToWorkspace(appTree, defaultThemePath, 'styles');
55
55
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
@@ -65,7 +65,7 @@ describe('Schematic: ng-add', () => {
65
65
  'input': 'node_modules/monaco-editor/min',
66
66
  'output': '/assets/monaco/'
67
67
  };
68
- it('should add assets of build project', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
68
+ it('should add assets of build project', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
69
69
  var _a;
70
70
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
71
71
  const workspace = (_a = (0, project_1.getWorkspaceConfigGracefully)(tree)) !== null && _a !== void 0 ? _a : {};
@@ -74,7 +74,7 @@ describe('Schematic: ng-add', () => {
74
74
  const hasMonacoAssets = assets.some(element => typeof element === 'object' && JSON.stringify(element) === JSON.stringify(defaultAssetsPath));
75
75
  expect(hasMonacoAssets).toBe(true);
76
76
  }));
77
- it('shouldn`t add a monaco assets file in assets of build project multiple times', () => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
77
+ it('shouldn`t add a monaco assets file in assets of build project multiple times', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
78
78
  var _b;
79
79
  writePropertiesFileToWorkspace(appTree, `${defaultAssetsPath}`, 'assets');
80
80
  const tree = yield runner.runSchematicAsync('ng-add', componentOptions, appTree).toPromise();
Binary file