@ecodev/natural-editor 55.9.0 → 56.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.
Files changed (34) hide show
  1. package/esm2022/lib/class-dialog/class-dialog.component.mjs +8 -18
  2. package/esm2022/lib/color-dialog/color-dialog.component.mjs +11 -14
  3. package/esm2022/lib/custom-css/custom-css.directive.mjs +6 -6
  4. package/esm2022/lib/editor/editor.component.mjs +14 -16
  5. package/esm2022/lib/id-dialog/id-dialog.component.mjs +8 -18
  6. package/esm2022/lib/link-dialog/link-dialog.component.mjs +8 -18
  7. package/esm2022/lib/utils/image.mjs +10 -9
  8. package/esm2022/lib/utils/inputrules.mjs +1 -1
  9. package/esm2022/lib/utils/items/cell-background-color-item.mjs +1 -1
  10. package/esm2022/lib/utils/items/class-item.mjs +1 -1
  11. package/esm2022/lib/utils/items/horizontal-rule-item.mjs +1 -1
  12. package/esm2022/lib/utils/items/id-item.mjs +1 -1
  13. package/esm2022/lib/utils/items/item.mjs +1 -1
  14. package/esm2022/lib/utils/items/link-item.mjs +1 -1
  15. package/esm2022/lib/utils/items/table-item.mjs +1 -1
  16. package/esm2022/lib/utils/items/text-align-item.mjs +1 -1
  17. package/esm2022/lib/utils/items/utils.mjs +1 -1
  18. package/esm2022/lib/utils/keymap.mjs +4 -4
  19. package/esm2022/lib/utils/menu.mjs +1 -1
  20. package/esm2022/lib/utils/schema/heading.mjs +1 -1
  21. package/esm2022/lib/utils/schema/paragraph-with-alignment.mjs +1 -1
  22. package/esm2022/lib/utils/schema/schema.mjs +2 -2
  23. package/esm2022/lib/utils/schema/table.mjs +2 -2
  24. package/esm2022/public-api.mjs +2 -3
  25. package/fesm2022/ecodev-natural-editor.mjs +61 -85
  26. package/fesm2022/ecodev-natural-editor.mjs.map +1 -1
  27. package/lib/class-dialog/class-dialog.component.d.ts +2 -2
  28. package/lib/color-dialog/color-dialog.component.d.ts +2 -2
  29. package/lib/id-dialog/id-dialog.component.d.ts +2 -2
  30. package/lib/link-dialog/link-dialog.component.d.ts +2 -2
  31. package/lib/utils/keymap.d.ts +1 -3
  32. package/lib/utils/schema/schema.d.ts +1 -1
  33. package/package.json +5 -5
  34. package/public-api.d.ts +0 -1
@@ -1,7 +1,7 @@
1
1
  import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { FormControl, FormGroup } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export interface ClassDialogData {
4
+ export type ClassDialogData = {
5
5
  /**
6
6
  * CSS class names
7
7
  *
@@ -11,7 +11,7 @@ export interface ClassDialogData {
11
11
  * - `"my-class my-other-class"`
12
12
  */
13
13
  class: string;
14
- }
14
+ };
15
15
  export declare class ClassDialogComponent {
16
16
  private dialogRef;
17
17
  readonly classControl: FormControl<string>;
@@ -1,7 +1,7 @@
1
1
  import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { FormControl, FormGroup } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export interface ColorDialogData {
4
+ export type ColorDialogData = {
5
5
  /**
6
6
  * Empty string means no color set at all. Anything else must be a valid CSS color in hexa format.
7
7
  *
@@ -11,7 +11,7 @@ export interface ColorDialogData {
11
11
  * - `"#ff4000"`
12
12
  */
13
13
  color: string;
14
- }
14
+ };
15
15
  export declare class ColorDialogComponent {
16
16
  private dialogRef;
17
17
  readonly colors: string[][];
@@ -1,7 +1,7 @@
1
1
  import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { FormControl, FormGroup } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export interface IdDialogData {
4
+ export type IdDialogData = {
5
5
  /**
6
6
  * ID name
7
7
  *
@@ -11,7 +11,7 @@ export interface IdDialogData {
11
11
  * - `"my-id"`
12
12
  */
13
13
  id: string;
14
- }
14
+ };
15
15
  export declare class IdDialogComponent {
16
16
  private dialogRef;
17
17
  readonly idControl: FormControl<string>;
@@ -1,10 +1,10 @@
1
1
  import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { FormControl, FormGroup } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
- export interface LinkDialogData {
4
+ export type LinkDialogData = {
5
5
  href: string;
6
6
  title?: string;
7
- }
7
+ };
8
8
  export declare class LinkDialogComponent {
9
9
  private dialogRef;
10
10
  readonly hrefControl: FormControl<string>;
@@ -1,8 +1,6 @@
1
1
  import { Schema } from 'prosemirror-model';
2
2
  import { Command } from 'prosemirror-state';
3
- type Keymap = {
4
- [key: string]: Command;
5
- };
3
+ type Keymap = Record<string, Command>;
6
4
  /**
7
5
  * Inspect the given schema looking for marks and nodes from the
8
6
  * basic schema, and if found, add key bindings related to them.
@@ -1,3 +1,3 @@
1
1
  import { Schema } from 'prosemirror-model';
2
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">;
3
+ export declare const advancedSchema: Schema<keyof import("orderedmap").default<import("prosemirror-model").NodeSpec>, "em" | "link" | "strong">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural-editor",
3
- "version": "55.9.0",
3
+ "version": "56.0.2",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,
@@ -33,10 +33,10 @@
33
33
  "tslib": "^2.5.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@angular/common": "^16.1.0",
37
- "@angular/core": "^16.1.0",
38
- "@angular/forms": "^16.1.0",
39
- "@angular/material": "^16.1.0",
36
+ "@angular/common": "^17.2.0",
37
+ "@angular/core": "^17.2.0",
38
+ "@angular/forms": "^17.2.0",
39
+ "@angular/material": "^17.2.0",
40
40
  "@ecodev/natural": ">50.0"
41
41
  },
42
42
  "module": "fesm2022/ecodev-natural-editor.mjs",
package/public-api.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import '@angular/localize/init';
2
1
  export { NaturalCustomCssDirective } from './lib/custom-css/custom-css.directive';
3
2
  export { NaturalEditorComponent } from './lib/editor/editor.component';