@libs-ui/components-inputs-quill 0.2.348-8 → 0.2.350-1

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/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './quill.component';
2
- export * from './quill2x.component';
3
2
  export * from './interfaces/quill.interface';
3
+ export * from './quill2x.component';
4
4
  export * from './interfaces/quill2x.interface';
5
+ export { getHTMLFromDeltaOfQuill, convertHtmlToDivBlocks, getDeltaOfQuillFromHTML, processPasteData, insertContentWithRange } from './utils/quill.define';
6
+ export { getHTMLFromDeltaOfQuill2x, getDeltaOfQuill2xFromHTML, isEmptyQuill2x } from './utils/quill2x.define';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libs-ui/components-inputs-quill",
3
- "version": "0.2.348-8",
3
+ "version": "0.2.350-1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
@@ -8,25 +8,25 @@
8
8
  "quill2x": "npm:quill@2.0.3",
9
9
  "@ssumo/quill-resize-module": "1.0.3",
10
10
  "parchment": "1.1.4",
11
- "@libs-ui/components-label": "0.2.348-8",
11
+ "@libs-ui/components-label": "0.2.350-1",
12
12
  "quill-delta": "5.1.0",
13
- "@libs-ui/components-inputs-valid": "0.2.348-8",
14
- "@libs-ui/components-modal": "0.2.348-8",
15
- "@libs-ui/utils": "0.2.348-8",
16
- "@libs-ui/components-buttons-button": "0.2.348-8",
17
- "@libs-ui/components-buttons-select-color": "0.2.348-8",
18
- "@libs-ui/components-dropdown": "0.2.348-8",
19
- "@libs-ui/components-inputs-emoji": "0.2.348-8",
20
- "@libs-ui/components-inputs-mention": "0.2.348-8",
21
- "@libs-ui/components-list": "0.2.348-8",
22
- "@libs-ui/components-popover": "0.2.348-8",
23
- "@libs-ui/interfaces-types": "0.2.348-8",
24
- "@libs-ui/services-dynamic-component": "0.2.348-8",
13
+ "@libs-ui/components-inputs-valid": "0.2.350-1",
14
+ "@libs-ui/components-modal": "0.2.350-1",
15
+ "@libs-ui/utils": "0.2.350-1",
16
+ "@libs-ui/components-buttons-button": "0.2.350-1",
17
+ "@libs-ui/components-buttons-select-color": "0.2.350-1",
18
+ "@libs-ui/components-dropdown": "0.2.350-1",
19
+ "@libs-ui/components-inputs-emoji": "0.2.350-1",
20
+ "@libs-ui/components-inputs-mention": "0.2.350-1",
21
+ "@libs-ui/components-list": "0.2.350-1",
22
+ "@libs-ui/components-popover": "0.2.350-1",
23
+ "@libs-ui/interfaces-types": "0.2.350-1",
24
+ "@libs-ui/services-dynamic-component": "0.2.350-1",
25
25
  "@ngx-translate/core": "^15.0.0",
26
26
  "rxjs": "~7.8.0",
27
- "@libs-ui/components-spinner": "0.2.348-8",
28
- "@libs-ui/services-notification": "0.2.348-8",
29
- "@libs-ui/services-http-request": "0.2.348-8"
27
+ "@libs-ui/components-spinner": "0.2.350-1",
28
+ "@libs-ui/services-notification": "0.2.350-1",
29
+ "@libs-ui/services-http-request": "0.2.350-1"
30
30
  },
31
31
  "sideEffects": false,
32
32
  "module": "fesm2022/libs-ui-components-inputs-quill.mjs",
@@ -1,4 +1,5 @@
1
1
  import { IListConfigItem } from '@libs-ui/components-list';
2
+ import Delta from 'quill-delta';
2
3
  import { IQuillLink, IQuillToolbarConfig, IQuillUploadImageConfig, TYPE_MODE_BAR_CONFIG_OPTION } from '../interfaces/quill.interface';
3
4
  export declare const listDataAlign: () => {
4
5
  key: string;
@@ -23,3 +24,22 @@ export declare const iconList: () => Array<{
23
24
  export declare const uploadImageConfigDefault: () => IQuillUploadImageConfig;
24
25
  export declare const linkDefault: () => IQuillLink;
25
26
  export declare const fontSizeWhiteList: () => string[];
27
+ export declare const getHTMLFromDeltaOfQuill: (delta: Delta, options?: {
28
+ getRootHtml?: boolean;
29
+ replaceNewLineTo?: string;
30
+ replaceTagBRTo?: string;
31
+ replaceBrToDiv?: boolean;
32
+ functionReplaceDelta?: (op: Delta) => void;
33
+ replaceTags?: {
34
+ tag: string;
35
+ replaceTo: string;
36
+ }[];
37
+ }) => string;
38
+ export declare const convertHtmlToDivBlocks: (html: string) => string;
39
+ export declare const getDeltaOfQuillFromHTML: (html: string) => Promise<Delta>;
40
+ export declare const processPasteData: (e: ClipboardEvent, config: {
41
+ element: HTMLElement;
42
+ handlerPasteFile?: (files: FileList) => void;
43
+ callBack?: (positonReturn: "file" | "range" | "content" | "no-content") => void;
44
+ }) => Promise<void>;
45
+ export declare const insertContentWithRange: (content: string, savedRange: Range, element: HTMLElement) => void;
@@ -1,4 +1,5 @@
1
1
  import { TranslateService } from '@ngx-translate/core';
2
+ import Delta from 'quill-delta';
2
3
  import Quill2x from 'quill2x';
3
4
  export declare const createTableSelector: (quill: Quill2x, anchorEl: HTMLElement | null, translate: TranslateService) => void;
4
5
  export declare const createContextMenuOptionTable: (quill: Quill2x, translate: TranslateService) => void;
@@ -7,4 +8,16 @@ export declare const mergeCells: (startCell: HTMLElement, endCell: HTMLElement)
7
8
  export declare function splitCells(cellSplit: HTMLElement): void;
8
9
  export declare const getAllTablesWithSpan: (quill: any) => void;
9
10
  export declare const registerQuill2x: () => void;
10
- export declare const isEmptyQuill: (quill: Quill2x | null) => boolean;
11
+ export declare const isEmptyQuill2x: (quill: Quill2x | null) => boolean;
12
+ export declare const getHTMLFromDeltaOfQuill2x: (delta: Delta, options?: {
13
+ getRootHtml?: boolean;
14
+ replaceNewLineTo?: string;
15
+ replaceTagBRTo?: string;
16
+ replaceBrToDiv?: boolean;
17
+ functionReplaceDelta?: (op: Delta) => void;
18
+ replaceTags?: {
19
+ tag: string;
20
+ replaceTo: string;
21
+ }[];
22
+ }) => string;
23
+ export declare const getDeltaOfQuill2xFromHTML: (html: string) => Promise<Delta>;