@opentiny/fluent-editor 3.21.0 → 3.22.0-alpha.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/README.md +3 -3
- package/es/fluent-editor.es.js +13 -1
- package/es/fluent-editor.es.js.map +1 -1
- package/es/mathlive/formats.es.js +65 -0
- package/es/mathlive/formats.es.js.map +1 -0
- package/es/mathlive/index.es.js +16 -0
- package/es/mathlive/index.es.js.map +1 -0
- package/es/mathlive/tooltip.es.js +69 -0
- package/es/mathlive/tooltip.es.js.map +1 -0
- package/es/mention/Mention.es.js +6 -5
- package/es/mention/Mention.es.js.map +1 -1
- package/es/mention/MentionLink.es.js +21 -7
- package/es/mention/MentionLink.es.js.map +1 -1
- package/lib/fluent-editor.cjs.js +21 -9
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/mathlive/formats.cjs.js +65 -0
- package/lib/mathlive/formats.cjs.js.map +1 -0
- package/lib/mathlive/index.cjs.js +16 -0
- package/lib/mathlive/index.cjs.js.map +1 -0
- package/lib/mathlive/tooltip.cjs.js +69 -0
- package/lib/mathlive/tooltip.cjs.js.map +1 -0
- package/lib/mention/Mention.cjs.js +6 -5
- package/lib/mention/Mention.cjs.js.map +1 -1
- package/lib/mention/MentionLink.cjs.js +21 -7
- package/lib/mention/MentionLink.cjs.js.map +1 -1
- package/package.json +4 -2
- package/style.css +58 -29
- package/types/attributors/font-size.d.ts +1 -0
- package/types/attributors/font-style.d.ts +1 -0
- package/types/attributors/line-height.d.ts +1 -0
- package/types/attributors/text-indent.d.ts +1 -0
- package/types/mathlive/formats.d.ts +28 -0
- package/types/mathlive/index.d.ts +8 -0
- package/types/mathlive/tooltip.d.ts +17 -0
- package/types/mention/Mention.d.ts +0 -1
- package/types/mention/MentionLink.d.ts +6 -8
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as Quill, Module } from 'quill';
|
|
2
|
+
import { default as MathliveTooltip } from './tooltip';
|
|
3
|
+
|
|
4
|
+
export default class MathliveModule extends Module<boolean> {
|
|
5
|
+
tooltip: MathliveTooltip;
|
|
6
|
+
constructor(quill: Quill, options?: boolean);
|
|
7
|
+
createDialog(value?: string): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MathfieldElement } from 'mathlive';
|
|
2
|
+
import { default as Quill } from 'quill';
|
|
3
|
+
import { Bounds } from 'quill/core/selection';
|
|
4
|
+
import { default as Tooltip } from 'quill/ui/tooltip';
|
|
5
|
+
|
|
6
|
+
export default class MathliveTooltip extends Tooltip {
|
|
7
|
+
static TEMPLATE: string;
|
|
8
|
+
mathliveDom: MathfieldElement;
|
|
9
|
+
editValue?: string;
|
|
10
|
+
constructor(quill: Quill, boundsContainer?: HTMLElement);
|
|
11
|
+
listen(): void;
|
|
12
|
+
cancel(): void;
|
|
13
|
+
edit(value?: string): void;
|
|
14
|
+
restoreFocus(): void;
|
|
15
|
+
save(): void;
|
|
16
|
+
position(reference: Bounds): number;
|
|
17
|
+
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as TypeEmbed } from 'quill/blots/embed';
|
|
2
|
+
|
|
3
|
+
declare const Embed: typeof TypeEmbed;
|
|
2
4
|
declare class MentionLink extends Embed {
|
|
3
5
|
static blotName: string;
|
|
4
6
|
static tagName: string;
|
|
5
7
|
static className: string;
|
|
6
8
|
scroll: any;
|
|
7
9
|
mentionData: any;
|
|
8
|
-
static create(data: any):
|
|
9
|
-
static value(domNode:
|
|
10
|
-
char: any;
|
|
11
|
-
text: any;
|
|
12
|
-
name: any;
|
|
13
|
-
};
|
|
10
|
+
static create(data: any): HTMLElement;
|
|
11
|
+
static value(domNode: HTMLElement): Record<string, any>;
|
|
14
12
|
constructor(scroll: any, domNode: any, data: any);
|
|
15
13
|
value(): any;
|
|
16
|
-
remove():
|
|
14
|
+
remove(): void;
|
|
17
15
|
}
|
|
18
16
|
export { MentionLink as default };
|