@tmdjr/ngx-editor-js2 20.0.12 → 20.0.14

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": "@tmdjr/ngx-editor-js2",
3
- "version": "20.0.12",
3
+ "version": "20.0.14",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^20.0.4",
@@ -3,17 +3,12 @@ import { AsyncPipe } from '@angular/common';
3
3
  import { MatCard, MatCardContent } from '@angular/material/card';
4
4
  import { NgxEditorJs2Component } from '@tmdjr/ngx-editor-js2';
5
5
 
6
- import { NgxEditorJs2 } from '../services/ngx-editor-js2';
6
+ import { NgxEditorJs2 } from './services/ngx-editor-js2';
7
+ import { Hero } from './components/hero';
7
8
 
8
9
  @Component({
9
10
  selector: 'app-root',
10
- imports: [
11
- AsyncPipe,
12
- MatCard,
13
- MatCardContent,
14
- NgxEditorJs2Component,
15
- Hero,
16
- ],
11
+ imports: [AsyncPipe, MatCard, MatCardContent, NgxEditorJs2Component, Hero],
17
12
  template: `
18
13
  <main>
19
14
  <app-hero></app-hero>
@@ -50,7 +45,6 @@ import { NgxEditorJs2 } from '../services/ngx-editor-js2';
50
45
  flex-direction: column;
51
46
  align-items: center;
52
47
  gap: 3em;
53
- margin-top: 56px;
54
48
  mat-card {
55
49
  width: 100%;
56
50
  max-width: 800px;
@@ -61,6 +55,6 @@ import { NgxEditorJs2 } from '../services/ngx-editor-js2';
61
55
  `,
62
56
  ],
63
57
  })
64
- export class AppComponent {
58
+ export class App {
65
59
  ngxEditorJs2 = inject(NgxEditorJs2);
66
60
  }
@@ -105,7 +105,7 @@ import { of } from 'rxjs';
105
105
  `,
106
106
  ],
107
107
  })
108
- export class HeroComponent {
108
+ export class Hero {
109
109
  ngxEditorJs2 = inject(NgxEditorJs2);
110
110
 
111
111
  saveValue() {
@@ -31,7 +31,7 @@ const optionalBlocks = {
31
31
  package: '@tmdjr/ngx-editor-js2-mermaidjs',
32
32
  stylePath: 'dist/ngx-editor-js2-mermaidjs',
33
33
  peers: [
34
- { package: 'mermaid' },
34
+ { package: 'mermaid', version: '^11.6.0' },
35
35
  { package: '@ctrl/ngx-codemirror' },
36
36
  { package: '@types/codemirror' },
37
37
  { package: 'codemirror', version: '5.65.9' },
@@ -42,7 +42,7 @@ const optionalBlocks: Record<
42
42
  package: '@tmdjr/ngx-editor-js2-mermaidjs',
43
43
  stylePath: 'dist/ngx-editor-js2-mermaidjs',
44
44
  peers: [
45
- { package: 'mermaid' },
45
+ { package: 'mermaid', version: '^11.6.0' },
46
46
  { package: '@ctrl/ngx-codemirror' },
47
47
  { package: '@types/codemirror' },
48
48
  { package: 'codemirror', version: '5.65.9' },