@richhtmleditor/angular 1.0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rajkishor Sahu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,157 @@
1
+ # @richhtmleditor/angular
2
+
3
+ Angular standalone component for Rich HTML Editor, built on [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core). WYSIWYG authoring with toolbar presets, `ControlValueAccessor` for reactive forms, and plugin support for enterprise AI, comments, and workflows.
4
+
5
+ **Current release: 1.0.0** — Depends on `@richhtmleditor/core` **^1.0.0**.
6
+
7
+ **Repository:** [github.com/rajkishorsahu89/richhtmleditor](https://github.com/rajkishorsahu89/richhtmleditor)
8
+
9
+ **Demo:** [richhtmleditor.vercel.app](https://richhtmleditor.vercel.app/) — [demo](https://richhtmleditor.vercel.app/demo) · [guide](https://richhtmleditor.vercel.app/guide) · [API](https://richhtmleditor.vercel.app/api). Doc Preview joint demo: [doc-preview-app.vercel.app/demo/enterprise](https://doc-preview-app.vercel.app/demo/enterprise)
10
+
11
+ ### What's in 1.0.0
12
+
13
+ - **`RichHtmlEditorComponent`** — selector `richhtmleditor`; mounts `createEditor` on init
14
+ - **`ControlValueAccessor`** — bind with `[(ngModel)]` or `formControlName` (HTML string value)
15
+ - **Toolbar & features** — `[toolbar]`, `[features]`, `[plugins]` mirror core `CreateEditorOptions`
16
+ - **Events** — `(contentChange)` and `(save)` emit `EditorContent` (`html` + `json`)
17
+ - Re-exports all public symbols from `@richhtmleditor/core`
18
+
19
+ > Ships as ESM with TypeScript declarations. Works with **Angular 19+**, **20**, and **21** (`@angular/core` ^19 \|\| ^20 \|\| ^21). Import [`@richhtmleditor/themes`](https://www.npmjs.com/package/@richhtmleditor/themes) CSS in `angular.json` or global styles.
20
+
21
+ **Keywords:** `richhtmleditor` `angular` `standalone` `wysiwyg` `rich-text-editor` `forms`
22
+
23
+ ## Install
24
+
25
+ ```bash
26
+ npm install @richhtmleditor/angular @richhtmleditor/themes
27
+ # Adds @richhtmleditor/core automatically.
28
+ # Peer deps: @angular/core ^19 || ^20 || ^21.
29
+ # Optional enterprise plugins:
30
+ npm install @richhtmleditor/enterprise @richhtmleditor/ai @richhtmleditor/comments @richhtmleditor/workflows
31
+ ```
32
+
33
+ ## Usage — component
34
+
35
+ ```ts
36
+ // app.component.ts
37
+ import { Component } from "@angular/core";
38
+ import { RichHtmlEditorComponent } from "@richhtmleditor/angular";
39
+
40
+ @Component({
41
+ selector: "app-root",
42
+ standalone: true,
43
+ imports: [RichHtmlEditorComponent],
44
+ template: `
45
+ <richhtmleditor
46
+ [toolbar]="{ preset: 'standard' }"
47
+ [content]="html"
48
+ (contentChange)="html = $event.html"
49
+ />
50
+ `
51
+ })
52
+ export class AppComponent {
53
+ html = "<p>Hello <strong>world</strong></p>";
54
+ }
55
+ ```
56
+
57
+ Add styles once in `angular.json`:
58
+
59
+ ```json
60
+ "styles": ["node_modules/@richhtmleditor/themes/richhtmleditor.css"]
61
+ ```
62
+
63
+ ## Usage — reactive forms
64
+
65
+ ```html
66
+ <richhtmleditor
67
+ formControlName="body"
68
+ [toolbar]="'standard'"
69
+ [features]="features"
70
+ />
71
+ ```
72
+
73
+ ```ts
74
+ import { FormControl, ReactiveFormsModule } from "@angular/forms";
75
+ import type { EditorFeatureFlags } from "@richhtmleditor/angular";
76
+
77
+ features: EditorFeatureFlags = { tables: true, media: true };
78
+ body = new FormControl("<p>Draft content</p>");
79
+ ```
80
+
81
+ ## Usage — enterprise plugins
82
+
83
+ ```ts
84
+ import { createAiPlugin } from "@richhtmleditor/ai";
85
+ import { createCommentsPlugin } from "@richhtmleditor/comments";
86
+ import { createWorkflowsPlugin } from "@richhtmleditor/workflows";
87
+ import { resolveEnterpriseFeatures } from "@richhtmleditor/enterprise/browser";
88
+
89
+ const gate = resolveEnterpriseFeatures({ token: "RHE-ENT-DEMO-2026-FULL" });
90
+
91
+ plugins = [
92
+ createAiPlugin({ onGenerate: async (req) => callYourLlm(req) }),
93
+ createCommentsPlugin({ author: "Reviewer" }),
94
+ createWorkflowsPlugin({ actor: "Legal", role: "editor" })
95
+ ];
96
+ features = gate.features;
97
+ ```
98
+
99
+ ```html
100
+ <richhtmleditor
101
+ [features]="features"
102
+ [plugins]="plugins"
103
+ [toolbar]="{ preset: 'full' }"
104
+ />
105
+ ```
106
+
107
+ Demo key (documentation only): `RHE-ENT-DEMO-2026-FULL`
108
+
109
+ ## API
110
+
111
+ ### `RichHtmlEditorComponent` inputs
112
+
113
+ | Input | Type | Description |
114
+ | --- | --- | --- |
115
+ | `content` | `string` | Initial HTML (also set via `writeValue` / `ngModel`). |
116
+ | `editable` | `boolean` | Enable editing (default `true`). |
117
+ | `dark` | `boolean` | Dark theme tokens. |
118
+ | `theme` | `EditorThemeTokens` | Custom CSS variable overrides. |
119
+ | `toolbar` | `ToolbarConfig \| ToolbarPresetId` | Toolbar preset or custom layout. |
120
+ | `features` | `EditorFeatureFlags` | Feature gates (tables, AI, comments, workflows, …). |
121
+ | `plugins` | `EditorPlugin[]` | Enterprise and custom plugins. |
122
+ | `toolMounts` | `CreateEditorOptions["toolMounts"]` | Per-tool custom DOM mounts. |
123
+
124
+ ### `RichHtmlEditorComponent` outputs
125
+
126
+ | Output | Type | Description |
127
+ | --- | --- | --- |
128
+ | `contentChange` | `EditorContent` | Emitted on every document edit (`html` + `json`). |
129
+ | `save` | `EditorContent` | Emitted when the user triggers save. |
130
+
131
+ ### Angular vs React naming
132
+
133
+ | Angular | React |
134
+ | --- | --- |
135
+ | `<richhtmleditor>` | `<RichHtmlEditor />` |
136
+ | `(contentChange)` | `onChange` |
137
+ | `(save)` | `onSave` |
138
+ | `[content]` | `content` |
139
+
140
+ ## Browser support
141
+
142
+ Requires a modern browser with `contentEditable`, `Selection`, and `fetch`. Mount `<richhtmleditor>` only in the browser for SSR (e.g. `afterNextRender` or `@if (isBrowser)`).
143
+
144
+ ## Related packages
145
+
146
+ - [`@richhtmleditor/core`](https://www.npmjs.com/package/@richhtmleditor/core) — framework-agnostic engine (auto-installed).
147
+ - [`@richhtmleditor/themes`](https://www.npmjs.com/package/@richhtmleditor/themes) — shared CSS.
148
+ - [`@richhtmleditor/enterprise`](https://www.npmjs.com/package/@richhtmleditor/enterprise) — licence tokens and feature flags.
149
+ - [`@richhtmleditor/ai`](https://www.npmjs.com/package/@richhtmleditor/ai) — AI authoring plugin.
150
+ - [`@richhtmleditor/comments`](https://www.npmjs.com/package/@richhtmleditor/comments) — review comments plugin.
151
+ - [`@richhtmleditor/workflows`](https://www.npmjs.com/package/@richhtmleditor/workflows) — approval workflows plugin.
152
+ - [`@richhtmleditor/react`](https://www.npmjs.com/package/@richhtmleditor/react) — React component on the same core.
153
+ - [`@richhtmleditor/vue`](https://www.npmjs.com/package/@richhtmleditor/vue) — Vue 3 component on the same core.
154
+
155
+ ## License
156
+
157
+ [MIT](./LICENSE)
@@ -0,0 +1,3 @@
1
+ export { RichHtmlEditorComponent } from "./richhtmleditor.component.js";
2
+ export * from "@richhtmleditor/core";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,cAAc,sBAAsB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { RichHtmlEditorComponent } from "./richhtmleditor.component.js";
2
+ export * from "@richhtmleditor/core";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from "@angular/core";
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import { type CreateEditorOptions, type EditorContent, type EditorFeatureFlags, type EditorPlugin, type EditorThemeTokens, type ToolbarConfig, type ToolbarPresetId } from "@richhtmleditor/core";
4
+ export declare class RichHtmlEditorComponent implements ControlValueAccessor, AfterViewInit, OnChanges, OnDestroy {
5
+ private readonly cdr;
6
+ mountRef: ElementRef<HTMLDivElement>;
7
+ content?: string;
8
+ editable: boolean;
9
+ dark: boolean;
10
+ theme?: EditorThemeTokens;
11
+ toolbar?: ToolbarConfig | ToolbarPresetId;
12
+ features?: EditorFeatureFlags;
13
+ plugins?: EditorPlugin[];
14
+ toolMounts?: CreateEditorOptions["toolMounts"];
15
+ contentChange: EventEmitter<EditorContent>;
16
+ save: EventEmitter<EditorContent>;
17
+ private editor;
18
+ private mounted;
19
+ private pendingValue;
20
+ private onChangeFn;
21
+ private onTouchedFn;
22
+ writeValue(value: string | null): void;
23
+ registerOnChange(fn: (value: string) => void): void;
24
+ registerOnTouched(fn: () => void): void;
25
+ setDisabledState(isDisabled: boolean): void;
26
+ ngAfterViewInit(): void;
27
+ ngOnChanges(changes: SimpleChanges): void;
28
+ ngOnDestroy(): void;
29
+ private mountEditor;
30
+ private remountEditor;
31
+ }
32
+ //# sourceMappingURL=richhtmleditor.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richhtmleditor.component.d.ts","sourceRoot":"","sources":["../src/richhtmleditor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAIb,UAAU,EACV,YAAY,EAEZ,SAAS,EACT,SAAS,EAET,aAAa,EAId,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAE9B,qBAqBa,uBAAwB,YAAW,oBAAoB,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS;IACvG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAA6B;IAEX,QAAQ,EAAG,UAAU,CAAC,cAAc,CAAC,CAAC;IAEnE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,UAAQ;IAChB,IAAI,UAAS;IACb,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,OAAO,CAAC,EAAE,aAAa,GAAG,eAAe,CAAC;IAC1C,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,mBAAmB,CAAC,YAAY,CAAC,CAAC;IAE9C,aAAa,8BAAqC;IAClD,IAAI,8BAAqC;IAEnD,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,WAAW,CAAwB;IAE3C,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAOtC,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAInD,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAIvC,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAK3C,eAAe,IAAI,IAAI;IAKvB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IA4BzC,WAAW,IAAI,IAAI;IAKnB,OAAO,CAAC,WAAW;IA2BnB,OAAO,CAAC,aAAa;CAKtB"}
@@ -0,0 +1,157 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, forwardRef, inject } from "@angular/core";
8
+ import { NG_VALUE_ACCESSOR } from "@angular/forms";
9
+ import { createEditor } from "@richhtmleditor/core";
10
+ let RichHtmlEditorComponent = class RichHtmlEditorComponent {
11
+ constructor() {
12
+ this.cdr = inject(ChangeDetectorRef);
13
+ this.editable = true;
14
+ this.dark = false;
15
+ this.contentChange = new EventEmitter();
16
+ this.save = new EventEmitter();
17
+ this.editor = null;
18
+ this.mounted = false;
19
+ this.pendingValue = null;
20
+ this.onChangeFn = () => { };
21
+ this.onTouchedFn = () => { };
22
+ }
23
+ writeValue(value) {
24
+ this.pendingValue = value;
25
+ if (this.editor && value !== null && this.editor.getHTML() !== value) {
26
+ this.editor.setContent(value);
27
+ }
28
+ }
29
+ registerOnChange(fn) {
30
+ this.onChangeFn = fn;
31
+ }
32
+ registerOnTouched(fn) {
33
+ this.onTouchedFn = fn;
34
+ }
35
+ setDisabledState(isDisabled) {
36
+ this.editable = !isDisabled;
37
+ this.editor?.setEditable(!isDisabled);
38
+ }
39
+ ngAfterViewInit() {
40
+ this.mounted = true;
41
+ this.mountEditor();
42
+ }
43
+ ngOnChanges(changes) {
44
+ if (!this.mounted || !this.editor) {
45
+ return;
46
+ }
47
+ if (changes["content"] && this.content !== undefined && this.editor.getHTML() !== this.content) {
48
+ this.editor.setContent(this.content);
49
+ }
50
+ if (changes["editable"]) {
51
+ this.editor.setEditable(this.editable);
52
+ }
53
+ if (changes["toolbar"] || changes["toolMounts"]) {
54
+ if (this.toolbar) {
55
+ this.editor.setToolbar(this.toolbar);
56
+ }
57
+ }
58
+ if (changes["features"] || changes["plugins"]) {
59
+ this.remountEditor();
60
+ }
61
+ if (changes["dark"] || changes["theme"] || changes["toolMounts"]) {
62
+ this.remountEditor();
63
+ }
64
+ }
65
+ ngOnDestroy() {
66
+ this.editor?.destroy();
67
+ this.editor = null;
68
+ }
69
+ mountEditor() {
70
+ const initial = this.pendingValue ?? this.content;
71
+ const options = {
72
+ element: this.mountRef.nativeElement,
73
+ content: initial ?? undefined,
74
+ editable: this.editable,
75
+ dark: this.dark,
76
+ theme: this.theme,
77
+ toolbar: this.toolbar,
78
+ features: this.features,
79
+ plugins: this.plugins,
80
+ toolMounts: this.toolMounts,
81
+ onChange: (value) => {
82
+ this.contentChange.emit(value);
83
+ this.onChangeFn(value.html);
84
+ this.cdr.markForCheck();
85
+ },
86
+ onSave: (value) => {
87
+ this.save.emit(value);
88
+ this.onTouchedFn();
89
+ }
90
+ };
91
+ this.editor = createEditor(options);
92
+ this.editor.on("blur", () => this.onTouchedFn());
93
+ }
94
+ remountEditor() {
95
+ this.editor?.destroy();
96
+ this.mountRef.nativeElement.replaceChildren();
97
+ this.mountEditor();
98
+ }
99
+ };
100
+ __decorate([
101
+ ViewChild("mount", { static: true })
102
+ ], RichHtmlEditorComponent.prototype, "mountRef", void 0);
103
+ __decorate([
104
+ Input()
105
+ ], RichHtmlEditorComponent.prototype, "content", void 0);
106
+ __decorate([
107
+ Input()
108
+ ], RichHtmlEditorComponent.prototype, "editable", void 0);
109
+ __decorate([
110
+ Input()
111
+ ], RichHtmlEditorComponent.prototype, "dark", void 0);
112
+ __decorate([
113
+ Input()
114
+ ], RichHtmlEditorComponent.prototype, "theme", void 0);
115
+ __decorate([
116
+ Input()
117
+ ], RichHtmlEditorComponent.prototype, "toolbar", void 0);
118
+ __decorate([
119
+ Input()
120
+ ], RichHtmlEditorComponent.prototype, "features", void 0);
121
+ __decorate([
122
+ Input()
123
+ ], RichHtmlEditorComponent.prototype, "plugins", void 0);
124
+ __decorate([
125
+ Input()
126
+ ], RichHtmlEditorComponent.prototype, "toolMounts", void 0);
127
+ __decorate([
128
+ Output()
129
+ ], RichHtmlEditorComponent.prototype, "contentChange", void 0);
130
+ __decorate([
131
+ Output()
132
+ ], RichHtmlEditorComponent.prototype, "save", void 0);
133
+ RichHtmlEditorComponent = __decorate([
134
+ Component({
135
+ selector: "richhtmleditor",
136
+ standalone: true,
137
+ changeDetection: ChangeDetectionStrategy.OnPush,
138
+ providers: [
139
+ {
140
+ provide: NG_VALUE_ACCESSOR,
141
+ useExisting: forwardRef(() => RichHtmlEditorComponent),
142
+ multi: true
143
+ }
144
+ ],
145
+ template: `<div class="de-angular-host"><div #mount></div></div>`,
146
+ styles: [
147
+ `
148
+ .de-angular-host {
149
+ display: block;
150
+ min-height: 280px;
151
+ }
152
+ `
153
+ ]
154
+ })
155
+ ], RichHtmlEditorComponent);
156
+ export { RichHtmlEditorComponent };
157
+ //# sourceMappingURL=richhtmleditor.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"richhtmleditor.component.js","sourceRoot":"","sources":["../src/richhtmleditor.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAEL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EAET,YAAY,EACZ,KAAK,EAGL,MAAM,EAEN,SAAS,EACT,UAAU,EACV,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAwB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,YAAY,EASb,MAAM,sBAAsB,CAAC;AAuBvB,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAA7B;QACY,QAAG,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAKxC,aAAQ,GAAG,IAAI,CAAC;QAChB,SAAI,GAAG,KAAK,CAAC;QAOZ,kBAAa,GAAG,IAAI,YAAY,EAAiB,CAAC;QAClD,SAAI,GAAG,IAAI,YAAY,EAAiB,CAAC;QAE3C,WAAM,GAA0B,IAAI,CAAC;QACrC,YAAO,GAAG,KAAK,CAAC;QAChB,iBAAY,GAAkB,IAAI,CAAC;QACnC,eAAU,GAA4B,GAAG,EAAE,GAAE,CAAC,CAAC;QAC/C,gBAAW,GAAe,GAAG,EAAE,GAAE,CAAC,CAAC;IA4F7C,CAAC;IA1FC,UAAU,CAAC,KAAoB;QAC7B,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,IAAI,CAAC,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,KAAK,EAAE,CAAC;YACrE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED,gBAAgB,CAAC,EAA2B;QAC1C,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;IACvB,CA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C;IACnD,CAAC;IAEO,aAAa;QACnB,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;QACvB,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,eAAe,EAAE,CAAC;QAC9C,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;CACF,CAAA;AA9GuC;IAArC,SAAS,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;yDAAuC;AAEnE;IAAR,KAAK,EAAE;wDAAkB;AACjB;IAAR,KAAK,EAAE;yDAAiB;AAChB;IAAR,KAAK,EAAE;qDAAc;AACb;IAAR,KAAK,EAAE;sDAA2B;AAC1B;IAAR,KAAK,EAAE;wDAA2C;AAC1C;IAAR,KAAK,EAAE;yDAA+B;AAC9B;IAAR,KAAK,EAAE;wDAA0B;AACzB;IAAR,KAAK,EAAE;2DAAgD;AAE9C;IAAT,MAAM,EAAE;8DAAmD;AAClD;IAAT,MAAM,EAAE;qDAA0C;AAfxC,uBAAuB;IArBnC,SAAS,CAAC;QACT,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,SAAS,EAAE;YACT;gBACE,OAAO,EAAE,iBAAiB;gBAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;gBACtD,KAAK,EAAE,IAAI;aACZ;SACF;QACD,QAAQ,EAAE,uDAAuD;QACjE,MAAM,EAAE;YACN;;;;;KAKC;SACF;KACF,CAAC;GACW,uBAAuB,CAiHnC"}
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@richhtmleditor/angular",
3
+ "version": "1.0.0",
4
+ "description": "Angular wrapper for Rich HTML Editor.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc -p tsconfig.json",
21
+ "prepack": "node ../../scripts/assert-pack-ready.mjs"
22
+ },
23
+ "dependencies": {
24
+ "@richhtmleditor/core": "^1.0.0"
25
+ },
26
+ "peerDependencies": {
27
+ "@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0"
28
+ },
29
+ "devDependencies": {
30
+ "@angular/core": "^21.0.0"
31
+ },
32
+ "keywords": [
33
+ "richhtmleditor",
34
+ "angular",
35
+ "rich-text-editor",
36
+ "wysiwyg"
37
+ ],
38
+ "license": "MIT",
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "engines": {
43
+ "node": ">=18"
44
+ }
45
+ }