@domternal/angular 0.11.1 → 0.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.
@@ -12,6 +12,11 @@ declare const DEFAULT_EXTENSIONS: AnyExtension[];
12
12
  declare class DomternalEditorComponent implements ControlValueAccessor, OnDestroy {
13
13
  readonly editorRef: _angular_core.Signal<ElementRef<HTMLDivElement>>;
14
14
  readonly extensions: _angular_core.InputSignal<AnyExtension[]>;
15
+ /**
16
+ * Whether the built-in History extension is included. Disable it when an
17
+ * extension brings its own undo/redo, such as collaborative editing.
18
+ */
19
+ readonly history: _angular_core.InputSignal<boolean>;
15
20
  readonly content: _angular_core.InputSignal<Content>;
16
21
  readonly editable: _angular_core.InputSignal<boolean>;
17
22
  readonly autofocus: _angular_core.InputSignal<FocusPosition>;
@@ -57,7 +62,7 @@ declare class DomternalEditorComponent implements ControlValueAccessor, OnDestro
57
62
  private recreateEditor;
58
63
  private createEditor;
59
64
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DomternalEditorComponent, never>;
60
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DomternalEditorComponent, "domternal-editor", never, { "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "outputFormat": { "alias": "outputFormat"; "required": false; "isSignal": true; }; }, { "editorCreated": "editorCreated"; "contentUpdated": "contentUpdated"; "selectionChanged": "selectionChanged"; "focusChanged": "focusChanged"; "blurChanged": "blurChanged"; "editorDestroyed": "editorDestroyed"; }, never, never, true, never>;
65
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DomternalEditorComponent, "domternal-editor", never, { "extensions": { "alias": "extensions"; "required": false; "isSignal": true; }; "history": { "alias": "history"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "editable": { "alias": "editable"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "outputFormat": { "alias": "outputFormat"; "required": false; "isSignal": true; }; }, { "editorCreated": "editorCreated"; "contentUpdated": "contentUpdated"; "selectionChanged": "selectionChanged"; "focusChanged": "focusChanged"; "blurChanged": "blurChanged"; "editorDestroyed": "editorDestroyed"; }, never, never, true, never>;
61
66
  }
62
67
 
63
68
  declare class DomternalToolbarComponent implements OnDestroy {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domternal/angular",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "description": "Angular components for Domternal editor",
5
5
  "author": "https://github.com/ThomasNowHere",
6
6
  "license": "MIT",
@@ -16,7 +16,7 @@
16
16
  "peerDependencies": {
17
17
  "@angular/core": ">=17.1.0",
18
18
  "@angular/forms": ">=17.1.0",
19
- "@domternal/core": ">=0.11.0"
19
+ "@domternal/core": ">=0.12.0"
20
20
  },
21
21
  "files": [
22
22
  "dist"
@@ -27,7 +27,7 @@
27
27
  "scripts": {
28
28
  "build": "ng-packagr -p ng-package.json",
29
29
  "lint": "eslint src",
30
- "prepublishOnly": "pnpm build && node -e \"const p=JSON.parse(require('fs').readFileSync('package.json','utf8'));delete p.devDependencies;if(p.dependencies){for(const[k,v]of Object.entries(p.dependencies)){if(v==='workspace:*')p.dependencies[k]='>=0.11.0'}}require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n')\"",
30
+ "prepublishOnly": "pnpm build && node -e \"const p=JSON.parse(require('fs').readFileSync('package.json','utf8'));delete p.devDependencies;if(p.dependencies){for(const[k,v]of Object.entries(p.dependencies)){if(v==='workspace:*')p.dependencies[k]='>=0.12.0'}}require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n')\"",
31
31
  "postpublish": "git checkout package.json"
32
32
  },
33
33
  "keywords": [