@ecodev/natural-editor 43.0.0 → 44.0.2

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.
File without changes
@@ -14,11 +14,13 @@ export interface ClassDialogData {
14
14
  }
15
15
  export declare class ClassDialogComponent {
16
16
  private dialogRef;
17
- readonly classControl: FormControl;
18
- readonly form: FormGroup;
17
+ readonly classControl: FormControl<string>;
18
+ readonly form: FormGroup<{
19
+ class: FormControl<string>;
20
+ }>;
19
21
  constructor(data: ClassDialogData, dialogRef: MatDialogRef<ClassDialogComponent, ClassDialogData>);
20
22
  maybeConfirm(): void;
21
23
  private confirm;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ClassDialogComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<ClassDialogComponent, "ng-component", never, {}, {}, never, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<ClassDialogComponent, "ng-component", never, {}, {}, never, never, false>;
24
26
  }
@@ -15,12 +15,14 @@ export interface ColorDialogData {
15
15
  export declare class ColorDialogComponent {
16
16
  private dialogRef;
17
17
  readonly colors: string[][];
18
- readonly colorControl: FormControl;
19
- readonly form: FormGroup;
18
+ readonly colorControl: FormControl<string>;
19
+ readonly form: FormGroup<{
20
+ color: FormControl<string>;
21
+ }>;
20
22
  constructor(data: ColorDialogData, dialogRef: MatDialogRef<ColorDialogComponent, ColorDialogData>);
21
23
  maybeConfirm(): void;
22
24
  private confirm;
23
25
  selectColor(color: string): void;
24
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDialogComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<ColorDialogComponent, "ng-component", never, {}, {}, never, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorDialogComponent, "ng-component", never, {}, {}, never, never, false>;
26
28
  }
@@ -25,5 +25,5 @@ export declare class NaturalCustomCssDirective implements OnDestroy {
25
25
  constructor(document: Document);
26
26
  ngOnDestroy(): void;
27
27
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalCustomCssDirective, never>;
28
- static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalCustomCssDirective, "[naturalCustomCss]", never, { "naturalCustomCss": "naturalCustomCss"; }, {}, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalCustomCssDirective, "[naturalCustomCss]", never, { "naturalCustomCss": "naturalCustomCss"; }, {}, never, never, false>;
29
29
  }
@@ -59,5 +59,5 @@ export declare class NaturalEditorComponent implements OnInit, OnDestroy, Contro
59
59
  run(event: Event, key: Key): void;
60
60
  upload(file: File): void;
61
61
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalEditorComponent, [{ optional: true; self: true; }, null, null, null]>;
62
- static ɵcmp: i0.ɵɵComponentDeclaration<NaturalEditorComponent, "natural-editor", never, { "imageUploader": "imageUploader"; }, { "contentChange": "contentChange"; "save": "save"; }, never, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<NaturalEditorComponent, "natural-editor", never, { "imageUploader": "imageUploader"; }, { "contentChange": "contentChange"; "save": "save"; }, never, never, false>;
63
63
  }
@@ -14,11 +14,13 @@ export interface IdDialogData {
14
14
  }
15
15
  export declare class IdDialogComponent {
16
16
  private dialogRef;
17
- readonly idControl: FormControl;
18
- readonly form: FormGroup;
17
+ readonly idControl: FormControl<string>;
18
+ readonly form: FormGroup<{
19
+ id: FormControl<string>;
20
+ }>;
19
21
  constructor(data: IdDialogData, dialogRef: MatDialogRef<IdDialogComponent, IdDialogData>);
20
22
  maybeConfirm(): void;
21
23
  private confirm;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<IdDialogComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<IdDialogComponent, "ng-component", never, {}, {}, never, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<IdDialogComponent, "ng-component", never, {}, {}, never, never, false>;
24
26
  }
@@ -7,12 +7,15 @@ export interface LinkDialogData {
7
7
  }
8
8
  export declare class LinkDialogComponent {
9
9
  private dialogRef;
10
- readonly hrefControl: FormControl;
11
- readonly titleControl: FormControl;
12
- readonly form: FormGroup;
10
+ readonly hrefControl: FormControl<string>;
11
+ readonly titleControl: FormControl<string>;
12
+ readonly form: FormGroup<{
13
+ href: FormControl<string>;
14
+ title: FormControl<string>;
15
+ }>;
13
16
  constructor(data: LinkDialogData, dialogRef: MatDialogRef<LinkDialogComponent, LinkDialogData>);
14
17
  maybeConfirm(): void;
15
18
  private confirm;
16
19
  static ɵfac: i0.ɵɵFactoryDeclaration<LinkDialogComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<LinkDialogComponent, "ng-component", never, {}, {}, never, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<LinkDialogComponent, "ng-component", never, {}, {}, never, never, false>;
18
21
  }
@@ -1,8 +1,7 @@
1
- import { EditorState } from 'prosemirror-state';
1
+ import { Command, EditorState } from 'prosemirror-state';
2
2
  import { MarkType } from 'prosemirror-model';
3
3
  import { MenuItem, MenuItemSpec } from 'prosemirror-menu';
4
4
  import { Item } from './item';
5
- import { Command } from 'prosemirror-commands';
6
5
  export declare function markActive(state: EditorState, type: MarkType): boolean;
7
6
  /**
8
7
  * Convert built-in `MenuItem` into our Angular specific `Item`
@@ -1,5 +1,8 @@
1
- import { Keymap } from 'prosemirror-commands';
2
1
  import { Schema } from 'prosemirror-model';
2
+ import { Command } from 'prosemirror-state';
3
+ declare type Keymap = {
4
+ [key: string]: Command;
5
+ };
3
6
  /**
4
7
  * Inspect the given schema looking for marks and nodes from the
5
8
  * basic schema, and if found, add key bindings related to them.
@@ -30,3 +33,4 @@ import { Schema } from 'prosemirror-model';
30
33
  * remove the binding, or a new key name string.
31
34
  */
32
35
  export declare function buildKeymap(schema: Schema, isMac: boolean): Keymap;
36
+ export {};
@@ -1,3 +1,3 @@
1
1
  import { Schema } from 'prosemirror-model';
2
- export declare const basicSchema: Schema<"text" | "doc" | "paragraph" | "heading" | "hard_break" | "ordered_list" | "bullet_list" | "list_item", "link" | "em" | "strong">;
3
- export declare const advancedSchema: Schema<"blockquote" | "table" | "image" | "text" | "doc" | "paragraph" | "horizontal_rule" | "heading" | "code_block" | "hard_break" | "ordered_list" | "bullet_list" | "list_item" | "table_row" | "table_cell" | "table_header", "link" | "em" | "strong">;
2
+ export declare const basicSchema: Schema<keyof import("orderedmap").default<import("prosemirror-model").NodeSpec>, keyof import("orderedmap").default<import("prosemirror-model").MarkSpec>>;
3
+ export declare const advancedSchema: Schema<keyof import("orderedmap").default<import("prosemirror-model").NodeSpec>, "link" | "em" | "strong">;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ecodev/natural-editor",
3
- "version": "43.0.0",
3
+ "version": "44.0.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
7
7
  "exports": {
8
8
  ".": {
9
9
  "sass": "./theming/_natural-editor.theme.scss",
10
- "types": "./ecodev-natural-editor.d.ts",
10
+ "types": "./index.d.ts",
11
11
  "esm2020": "./esm2020/ecodev-natural-editor.mjs",
12
12
  "es2020": "./fesm2020/ecodev-natural-editor.mjs",
13
13
  "es2015": "./fesm2015/ecodev-natural-editor.mjs",
@@ -47,8 +47,12 @@
47
47
  "tslib": "^2.3.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@angular/common": "^13.2.0",
51
- "@angular/core": "^13.2.0",
50
+ "@angular/common": "^14.1.0",
51
+ "@angular/core": "^14.1.0",
52
+ "@angular/forms": "^14.1.0",
53
+ "@angular/material": "^14.1.0",
54
+ "@angular/platform-browser": "^14.1.0",
55
+ "@angular/platform-browser-dynamic": "^14.1.0",
52
56
  "@ecodev/natural": ">40.0"
53
57
  },
54
58
  "module": "fesm2015/ecodev-natural-editor.mjs",
@@ -56,5 +60,5 @@
56
60
  "esm2020": "esm2020/ecodev-natural-editor.mjs",
57
61
  "fesm2020": "fesm2020/ecodev-natural-editor.mjs",
58
62
  "fesm2015": "fesm2015/ecodev-natural-editor.mjs",
59
- "typings": "ecodev-natural-editor.d.ts"
63
+ "typings": "index.d.ts"
60
64
  }