@notectl/angular 2.2.1 → 2.2.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.
package/README.md CHANGED
@@ -299,6 +299,8 @@ notectl ships plugins for:
299
299
  - Tables
300
300
  - Code blocks
301
301
  - Images
302
+ - Math and formulas (MathML)
303
+ - Video embeds
302
304
  - Text color and highlight
303
305
  - Alignment and text direction
304
306
  - Fonts and font sizes
@@ -558,8 +558,8 @@ class NotectlEditorComponent {
558
558
  }
559
559
  return editor;
560
560
  }
561
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
562
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: NotectlEditorComponent, isStandalone: true, selector: "ntl-editor", inputs: { plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, features: { classPropertyName: "features", publicName: "features", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonlyMode: { classPropertyName: "readonlyMode", publicName: "readonlyMode", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, maxHistoryDepth: { classPropertyName: "maxHistoryDepth", publicName: "maxHistoryDepth", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, paperSize: { classPropertyName: "paperSize", publicName: "paperSize", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, styleNonce: { classPropertyName: "styleNonce", publicName: "styleNonce", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { content: "contentChange", value: "valueChange", stateChange: "stateChange", selectionChange: "selectionChange", editorFocus: "editorFocus", editorBlur: "editorBlur", ready: "ready", touch: "touch" }, host: { properties: { "attr.aria-disabled": "effectiveReadonly() ? \"true\" : null", "class.ntl-editor-disabled": "effectiveReadonly()" } }, providers: [
561
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
562
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.1", type: NotectlEditorComponent, isStandalone: true, selector: "ntl-editor", inputs: { plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, toolbar: { classPropertyName: "toolbar", publicName: "toolbar", isSignal: true, isRequired: false, transformFunction: null }, features: { classPropertyName: "features", publicName: "features", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonlyMode: { classPropertyName: "readonlyMode", publicName: "readonlyMode", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, maxHistoryDepth: { classPropertyName: "maxHistoryDepth", publicName: "maxHistoryDepth", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, paperSize: { classPropertyName: "paperSize", publicName: "paperSize", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, styleNonce: { classPropertyName: "styleNonce", publicName: "styleNonce", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { content: "contentChange", value: "valueChange", stateChange: "stateChange", selectionChange: "selectionChange", editorFocus: "editorFocus", editorBlur: "editorBlur", ready: "ready", touch: "touch" }, host: { properties: { "attr.aria-disabled": "effectiveReadonly() ? \"true\" : null", "class.ntl-editor-disabled": "effectiveReadonly()" } }, providers: [
563
563
  {
564
564
  provide: NG_VALUE_ACCESSOR,
565
565
  useExisting: forwardRef(() => NotectlEditorComponent),
@@ -567,7 +567,7 @@ class NotectlEditorComponent {
567
567
  },
568
568
  ], viewQueries: [{ propertyName: "hostRef", first: true, predicate: ["host"], descendants: true, isSignal: true }], ngImport: i0, template: '<div #host></div>', isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
569
569
  }
570
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlEditorComponent, decorators: [{
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlEditorComponent, decorators: [{
571
571
  type: Component,
572
572
  args: [{ selector: 'ntl-editor', standalone: true, template: '<div #host></div>', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
573
573
  {
@@ -588,10 +588,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
588
588
  * but it no longer participates in value accessor registration.
589
589
  */
590
590
  class NotectlValueAccessorDirective {
591
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlValueAccessorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
592
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: NotectlValueAccessorDirective, isStandalone: true, selector: "ntl-editor[formControl], ntl-editor[formControlName], ntl-editor[ngModel]", ngImport: i0 });
591
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlValueAccessorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
592
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.1", type: NotectlValueAccessorDirective, isStandalone: true, selector: "ntl-editor[formControl], ntl-editor[formControlName], ntl-editor[ngModel]", ngImport: i0 });
593
593
  }
594
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlValueAccessorDirective, decorators: [{
594
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlValueAccessorDirective, decorators: [{
595
595
  type: Directive,
596
596
  args: [{
597
597
  selector: 'ntl-editor[formControl], ntl-editor[formControlName], ntl-editor[ngModel]',
@@ -683,10 +683,10 @@ class NotectlEditorService {
683
683
  dispatch(tr) {
684
684
  this.editorRef()?.dispatch(tr);
685
685
  }
686
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
687
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlEditorService });
686
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlEditorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
687
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlEditorService });
688
688
  }
689
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: NotectlEditorService, decorators: [{
689
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: NotectlEditorService, decorators: [{
690
690
  type: Injectable
691
691
  }], ctorParameters: () => [] });
692
692
 
package/package.json CHANGED
@@ -1,63 +1,65 @@
1
1
  {
2
- "name": "@notectl/angular",
3
- "version": "2.2.1",
4
- "description": "Angular integration for the notectl rich text editor. Provides a standalone component, reactive forms support, and DI service.",
5
- "license": "MIT",
6
- "type": "module",
7
- "main": "./dist/fesm2022/notectl-angular.mjs",
8
- "module": "./dist/fesm2022/notectl-angular.mjs",
9
- "types": "./dist/types/notectl-angular.d.ts",
10
- "typings": "./dist/types/notectl-angular.d.ts",
11
- "sideEffects": false,
12
- "files": ["dist", "README.md", "LICENSE"],
13
- "keywords": [
14
- "angular",
15
- "rich-text-editor",
16
- "notectl",
17
- "web-component",
18
- "editor",
19
- "wysiwyg",
20
- "reactive-forms",
21
- "signals"
22
- ],
23
- "repository": {
24
- "type": "git",
25
- "url": "https://github.com/Samyssmile/notectl.git",
26
- "directory": "packages/angular"
27
- },
28
- "homepage": "https://github.com/Samyssmile/notectl",
29
- "bugs": {
30
- "url": "https://github.com/Samyssmile/notectl/issues"
31
- },
32
- "scripts": {
33
- "build": "ng-packagr -p ng-package.json",
34
- "prepack": "cp ../../README.md ./README.md && cp ../../LICENSE ./LICENSE",
35
- "postpack": "rm -f ./README.md ./LICENSE",
36
- "test": "vitest run",
37
- "test:watch": "vitest",
38
- "typecheck": "tsc --noEmit"
39
- },
40
- "dependencies": {
41
- "tslib": "^2.8.1"
42
- },
43
- "peerDependencies": {
44
- "@angular/core": ">=21.0.0",
45
- "@angular/forms": ">=21.0.0",
46
- "@notectl/core": "^2.2.1",
47
- "rxjs": ">=7.0.0"
48
- },
49
- "devDependencies": {
50
- "@angular/compiler": "^22.0.0",
51
- "@angular/compiler-cli": "^22.0.0",
52
- "@angular/core": "^22.0.0",
53
- "@angular/forms": "^22.0.0",
54
- "@angular/platform-browser": "^22.0.0",
55
- "@angular/platform-browser-dynamic": "^22.0.0",
56
- "@notectl/core": "workspace:*",
57
- "ng-packagr": "^22.0.0",
58
- "rxjs": "~7.8.2",
59
- "typescript": "^6.0.0",
60
- "vite": "^8.0.8",
61
- "vitest": "^4.1.2"
62
- }
63
- }
2
+ "name": "@notectl/angular",
3
+ "version": "2.2.2",
4
+ "description": "Angular integration for the notectl rich text editor. Provides a standalone component, reactive forms support, and DI service.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/fesm2022/notectl-angular.mjs",
8
+ "module": "./dist/fesm2022/notectl-angular.mjs",
9
+ "types": "./dist/types/notectl-angular.d.ts",
10
+ "typings": "./dist/types/notectl-angular.d.ts",
11
+ "sideEffects": false,
12
+ "files": [
13
+ "dist",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "keywords": [
18
+ "angular",
19
+ "rich-text-editor",
20
+ "notectl",
21
+ "web-component",
22
+ "editor",
23
+ "wysiwyg",
24
+ "reactive-forms",
25
+ "signals"
26
+ ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/Samyssmile/notectl.git",
30
+ "directory": "packages/angular"
31
+ },
32
+ "homepage": "https://github.com/Samyssmile/notectl",
33
+ "bugs": {
34
+ "url": "https://github.com/Samyssmile/notectl/issues"
35
+ },
36
+ "dependencies": {
37
+ "tslib": "^2.8.1"
38
+ },
39
+ "peerDependencies": {
40
+ "@angular/core": ">=21.0.0",
41
+ "@angular/forms": ">=21.0.0",
42
+ "@notectl/core": "^2.2.2",
43
+ "rxjs": ">=7.0.0"
44
+ },
45
+ "devDependencies": {
46
+ "@angular/compiler": "^22.0.1",
47
+ "@angular/compiler-cli": "^22.0.0",
48
+ "@angular/core": "^22.0.1",
49
+ "@angular/forms": "^22.0.0",
50
+ "@angular/platform-browser": "^22.0.0",
51
+ "@angular/platform-browser-dynamic": "^22.0.0",
52
+ "ng-packagr": "^22.0.0",
53
+ "rxjs": "~7.8.2",
54
+ "typescript": "^6.0.0",
55
+ "vite": "^8.0.16",
56
+ "vitest": "^4.1.2",
57
+ "@notectl/core": "2.2.2"
58
+ },
59
+ "scripts": {
60
+ "build": "ng-packagr -p ng-package.json",
61
+ "test": "vitest run",
62
+ "test:watch": "vitest",
63
+ "typecheck": "tsc --noEmit"
64
+ }
65
+ }