@tectra-ng/editor 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tectra-ng/editor",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Rich text editor for tectra: toolbar, menus, links, images, mentions and a renderer for saved HTML.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://tectra-ng.com",
@@ -13,19 +13,29 @@
13
13
  "keywords": [
14
14
  "tectra",
15
15
  "angular",
16
+ "angular-editor",
16
17
  "editor",
17
18
  "rich-text",
18
- "wysiwyg"
19
+ "rich-text-editor",
20
+ "text-editor",
21
+ "wysiwyg",
22
+ "wysiwyg-editor",
23
+ "html-editor",
24
+ "markdown",
25
+ "mentions",
26
+ "emoji",
27
+ "prosemirror",
28
+ "signals"
19
29
  ],
20
30
  "peerDependencies": {
21
31
  "@angular/cdk": "^22.0.0",
22
32
  "@angular/common": "^22.0.0",
23
33
  "@angular/core": "^22.0.0",
24
34
  "@angular/forms": "^22.0.0",
25
- "@tectra-ng/core": "^0.1.5",
26
- "@tectra-ng/icons": "^0.1.5",
27
- "@tectra-ng/themes": "^0.1.5",
28
- "@tectra-ng/ui": "^0.1.5",
35
+ "@tectra-ng/core": "^0.1.6",
36
+ "@tectra-ng/icons": "^0.1.6",
37
+ "@tectra-ng/themes": "^0.1.6",
38
+ "@tectra-ng/ui": "^0.1.6",
29
39
  "@angular/platform-browser": "^22.0.0"
30
40
  },
31
41
  "dependencies": {
@@ -9,17 +9,18 @@ export interface TxEditorImageClickEvent {
9
9
  alt: string;
10
10
  }
11
11
  export declare function isQuillHtml(html: string | null | undefined): boolean;
12
- export declare function fromQuillHtml(html: string | null | undefined): string;
13
- export declare function toQuillHtml(html: string | null | undefined): string;
14
- export declare function toEditorHtml(html: string | null | undefined): string;
15
- export declare function formatEditorHtml(html: string, format: TxEditorFormat): string;
16
- export declare function sanitizeEditorHtml(html: string | null | undefined): string;
12
+ export declare function fromQuillHtml(html: string | null | undefined, document?: Document | null): string;
13
+ export declare function toQuillHtml(html: string | null | undefined, document?: Document | null): string;
14
+ export declare function toEditorHtml(html: string | null | undefined, document?: Document | null): string;
15
+ export declare function formatEditorHtml(html: string, format: TxEditorFormat, document?: Document | null): string;
16
+ export declare function sanitizeEditorHtml(html: string | null | undefined, document?: Document | null): string;
17
17
  export declare class TxEditorProseStyles {
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TxEditorProseStyles, never>;
19
19
  static ɵcmp: i0.ɵɵComponentDeclaration<TxEditorProseStyles, "tx-editor-prose-styles", never, {}, {}, never, never, true, never>;
20
20
  }
21
21
  export declare class TxEditorContent {
22
22
  private sanitizer;
23
+ private document;
23
24
  readonly html: import("@angular/core").InputSignal<string | null | undefined>;
24
25
  readonly previewImages: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
25
26
  readonly dt: import("@angular/core").InputSignal<TectraDeepPartial<{
@@ -1 +1 @@
1
- {"version":3,"file":"tectra-ng-editor-content.d.ts","names":[],"sources":["../../../../packages/editor/content/src/editor-content.types.ts","../../../../packages/editor/content/src/editor-html.ts","../../../../packages/editor/content/src/editor-sanitizer.ts","../../../../packages/editor/content/src/editor-prose-styles.component.ts","../../../../packages/editor/content/src/editor-content.component.ts"],"mappings":";;;YAAY;YAEA;iBAEK;EACf,eAAe,aAAa;EAC5B;EACA;;wBCoHc,YAAY;wBAIZ,cAAc;wBA0Fd,YAAY;wBAiFZ,aAAa;wBAIb,iBAAiB,cAAc,QAAQ;wBCnMvC,mBAAmB;qBClGtB;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBC0CA;UACH;WAEC,8BAAI;WACJ,uCAAa;WACb,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU,iBAAA;WAEV,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,sDAAA;mBACH;qBACE,iCAAO;IAAiB;IAAa;;qBACrC,qCAAW;qBACX,kCAAQ,2CAAA;WAClB,mCAAS;;;;YAqBR,QAAQ,OAAO;YAOf,UAAU,OAAO;UAQnB;SAvDG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}
1
+ {"version":3,"file":"tectra-ng-editor-content.d.ts","names":[],"sources":["../../../../packages/editor/content/src/editor-content.types.ts","../../../../packages/editor/content/src/editor-html.ts","../../../../packages/editor/content/src/editor-sanitizer.ts","../../../../packages/editor/content/src/editor-prose-styles.component.ts","../../../../packages/editor/content/src/editor-content.component.ts"],"mappings":";;;YAAY;YAEA;iBAEK;EACf,eAAe,aAAa;EAC5B;EACA;;wBCgHc,YAAY;wBAIZ,cAAc,iCAAiC,WAAW;wBA2F1D,YAAY,iCAAiC,WAAW;wBAiFxD,aAAa,iCAAiC,WAAW;wBAIzD,iBAAiB,cAAc,QAAQ,gBAAgB,WAAW;wBC9LlE,mBAAmB,iCAAiC,WAAW;qBCpGlE;SAAA,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;;qBC0CA;UACH;UACA;WAEC,8BAAI;WACJ,uCAAa;WACb,4BAAE,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WACF,4BAAE,YAAA,QAAA,OAAA,sDAAA,mBAAA;WACF,mCAAS,YAAA;WACT,kCAAQ;WAER,oCAAU,iBAAA;WAEV,sCAAY,wCAAA;WACZ,oCAAU;WACV,qCAAW,OAAA,QAAA,OAAA,sDAAA;mBACH;qBACE,iCAAO;IAAiB;IAAa;;qBACrC,qCAAW;qBACX,kCAAQ,2CAAA;WAClB,mCAAS;;;;YAqBR,QAAQ,OAAO;YAOf,UAAU,OAAO;UAQnB;SAxDG,MAAA,GAAA,qBAAA;SAAA,MAAA,GAAA,uBAAA;IAAe;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;IAAA;MAAA;MAAA;MAAA;;;IAAA"}