@opentiny/fluent-editor 3.23.2 → 3.23.3

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.
Files changed (257) hide show
  1. package/README.md +103 -102
  2. package/es/attributors/line-height.es.js.map +1 -1
  3. package/es/config/base64-image.es.js.map +1 -1
  4. package/es/config/editor.config.es.js.map +1 -1
  5. package/es/config/editor.utils.es.js.map +1 -1
  6. package/es/config/i18n/en-us.es.js.map +1 -1
  7. package/es/config/i18n/zh-cn.es.js.map +1 -1
  8. package/es/config/icons.config.es.js.map +1 -1
  9. package/es/config/index.es.js +15 -1
  10. package/es/config/index.es.js.map +1 -1
  11. package/es/counter/index.es.js.map +1 -1
  12. package/es/custom-clipboard.es.js.map +1 -1
  13. package/es/custom-image/BlotFormatter.es.js.map +1 -1
  14. package/es/custom-image/Options.es.js.map +1 -1
  15. package/es/custom-image/actions/Action.es.js.map +1 -1
  16. package/es/custom-image/actions/CustomResizeAction.es.js.map +1 -1
  17. package/es/custom-image/actions/DeleteAction.es.js.map +1 -1
  18. package/es/custom-image/image.es.js.map +1 -1
  19. package/es/custom-image/specs/BlotSpec.es.js.map +1 -1
  20. package/es/custom-image/specs/CustomImageSpec.es.js.map +1 -1
  21. package/es/custom-image/specs/ImageSpec.es.js.map +1 -1
  22. package/es/custom-uploader.es.js +13 -2
  23. package/es/custom-uploader.es.js.map +1 -1
  24. package/es/emoji/emoji-list/people.es.js.map +1 -1
  25. package/es/emoji/emoji-list.es.js.map +1 -1
  26. package/es/emoji/emoji-map.es.js.map +1 -1
  27. package/es/emoji/formats/emoji-blot.es.js.map +1 -1
  28. package/es/emoji/index.es.js.map +1 -1
  29. package/es/emoji/modules/emoji.es.js.map +1 -1
  30. package/es/emoji/modules/toolbar-emoji.es.js.map +1 -1
  31. package/es/emoji/utils.es.js.map +1 -1
  32. package/es/file/formats/file.es.js.map +1 -1
  33. package/es/file/index.es.js.map +1 -1
  34. package/es/file/modules/file-bar.es.js.map +1 -1
  35. package/es/fluent-editor.es.js.map +1 -1
  36. package/es/global-link/constants.es.js.map +1 -1
  37. package/es/global-link/formats/customer-widget-link.es.js.map +1 -1
  38. package/es/global-link/formats/doc-link.es.js.map +1 -1
  39. package/es/global-link/formats/wiki-link.es.js.map +1 -1
  40. package/es/global-link/formats/work-item-link.es.js.map +1 -1
  41. package/es/global-link/index.es.js.map +1 -1
  42. package/es/global-link/utils/createTable.es.js.map +1 -1
  43. package/es/index.es.js +15 -1
  44. package/es/index.es.js.map +1 -1
  45. package/es/link/formats/link.es.js.map +1 -1
  46. package/es/link/index.es.js.map +1 -1
  47. package/es/link/modules/tooltip.es.js.map +1 -1
  48. package/es/mathlive/formats.es.js.map +1 -1
  49. package/es/mathlive/index.es.js.map +1 -1
  50. package/es/mathlive/tooltip.es.js.map +1 -1
  51. package/es/mention/Mention.es.js.map +1 -1
  52. package/es/mention/MentionLink.es.js.map +1 -1
  53. package/es/mention/constants.es.js.map +1 -1
  54. package/es/quick-menu/index.es.js.map +1 -1
  55. package/es/screenshot/index.es.js.map +1 -1
  56. package/es/soft-break/index.es.js.map +1 -1
  57. package/es/strike/index.es.js.map +1 -1
  58. package/es/syntax/index.es.js.map +1 -1
  59. package/es/table/better-table.es.js.map +1 -1
  60. package/es/table/formats/header.es.js.map +1 -1
  61. package/es/table/formats/list.es.js.map +1 -1
  62. package/es/table/formats/table.es.js.map +1 -1
  63. package/es/table/modules/table-column-tool.es.js.map +1 -1
  64. package/es/table/modules/table-operation-menu.es.js +9 -3
  65. package/es/table/modules/table-operation-menu.es.js.map +1 -1
  66. package/es/table/modules/table-scroll-bar.es.js.map +1 -1
  67. package/es/table/modules/table-selection.es.js.map +1 -1
  68. package/es/table/table-config.es.js.map +1 -1
  69. package/es/table/utils/index.es.js.map +1 -1
  70. package/es/table/utils/node-matchers.es.js.map +1 -1
  71. package/es/toolbar/better-picker.es.js.map +1 -1
  72. package/es/toolbar/index.es.js.map +1 -1
  73. package/es/utils/debounce.es.js.map +1 -1
  74. package/es/utils/method.es.js.map +1 -1
  75. package/es/video/index.es.js.map +1 -1
  76. package/lib/attributors/line-height.cjs.js.map +1 -1
  77. package/lib/config/base64-image.cjs.js.map +1 -1
  78. package/lib/config/editor.config.cjs.js.map +1 -1
  79. package/lib/config/editor.utils.cjs.js.map +1 -1
  80. package/lib/config/i18n/en-us.cjs.js.map +1 -1
  81. package/lib/config/i18n/zh-cn.cjs.js.map +1 -1
  82. package/lib/config/icons.config.cjs.js.map +1 -1
  83. package/lib/config/index.cjs.js +13 -0
  84. package/lib/config/index.cjs.js.map +1 -1
  85. package/lib/counter/index.cjs.js.map +1 -1
  86. package/lib/custom-clipboard.cjs.js.map +1 -1
  87. package/lib/custom-image/BlotFormatter.cjs.js.map +1 -1
  88. package/lib/custom-image/Options.cjs.js.map +1 -1
  89. package/lib/custom-image/actions/Action.cjs.js.map +1 -1
  90. package/lib/custom-image/actions/CustomResizeAction.cjs.js.map +1 -1
  91. package/lib/custom-image/actions/DeleteAction.cjs.js.map +1 -1
  92. package/lib/custom-image/image.cjs.js.map +1 -1
  93. package/lib/custom-image/specs/BlotSpec.cjs.js.map +1 -1
  94. package/lib/custom-image/specs/CustomImageSpec.cjs.js.map +1 -1
  95. package/lib/custom-image/specs/ImageSpec.cjs.js.map +1 -1
  96. package/lib/custom-uploader.cjs.js +13 -2
  97. package/lib/custom-uploader.cjs.js.map +1 -1
  98. package/lib/emoji/emoji-list/people.cjs.js.map +1 -1
  99. package/lib/emoji/emoji-list.cjs.js.map +1 -1
  100. package/lib/emoji/emoji-map.cjs.js.map +1 -1
  101. package/lib/emoji/formats/emoji-blot.cjs.js.map +1 -1
  102. package/lib/emoji/index.cjs.js.map +1 -1
  103. package/lib/emoji/modules/emoji.cjs.js.map +1 -1
  104. package/lib/emoji/modules/toolbar-emoji.cjs.js.map +1 -1
  105. package/lib/emoji/utils.cjs.js.map +1 -1
  106. package/lib/file/formats/file.cjs.js.map +1 -1
  107. package/lib/file/index.cjs.js.map +1 -1
  108. package/lib/file/modules/file-bar.cjs.js.map +1 -1
  109. package/lib/fluent-editor.cjs.js.map +1 -1
  110. package/lib/global-link/constants.cjs.js.map +1 -1
  111. package/lib/global-link/formats/customer-widget-link.cjs.js.map +1 -1
  112. package/lib/global-link/formats/doc-link.cjs.js.map +1 -1
  113. package/lib/global-link/formats/wiki-link.cjs.js.map +1 -1
  114. package/lib/global-link/formats/work-item-link.cjs.js.map +1 -1
  115. package/lib/global-link/index.cjs.js.map +1 -1
  116. package/lib/global-link/utils/createTable.cjs.js.map +1 -1
  117. package/lib/index.cjs.js +14 -0
  118. package/lib/index.cjs.js.map +1 -1
  119. package/lib/link/formats/link.cjs.js.map +1 -1
  120. package/lib/link/index.cjs.js.map +1 -1
  121. package/lib/link/modules/tooltip.cjs.js.map +1 -1
  122. package/lib/mathlive/formats.cjs.js.map +1 -1
  123. package/lib/mathlive/index.cjs.js.map +1 -1
  124. package/lib/mathlive/tooltip.cjs.js.map +1 -1
  125. package/lib/mention/Mention.cjs.js.map +1 -1
  126. package/lib/mention/MentionLink.cjs.js.map +1 -1
  127. package/lib/mention/constants.cjs.js.map +1 -1
  128. package/lib/quick-menu/index.cjs.js.map +1 -1
  129. package/lib/screenshot/index.cjs.js.map +1 -1
  130. package/lib/soft-break/index.cjs.js.map +1 -1
  131. package/lib/strike/index.cjs.js.map +1 -1
  132. package/lib/syntax/index.cjs.js.map +1 -1
  133. package/lib/table/better-table.cjs.js.map +1 -1
  134. package/lib/table/formats/header.cjs.js.map +1 -1
  135. package/lib/table/formats/list.cjs.js.map +1 -1
  136. package/lib/table/formats/table.cjs.js.map +1 -1
  137. package/lib/table/modules/table-column-tool.cjs.js.map +1 -1
  138. package/lib/table/modules/table-operation-menu.cjs.js +9 -3
  139. package/lib/table/modules/table-operation-menu.cjs.js.map +1 -1
  140. package/lib/table/modules/table-scroll-bar.cjs.js.map +1 -1
  141. package/lib/table/modules/table-selection.cjs.js.map +1 -1
  142. package/lib/table/table-config.cjs.js.map +1 -1
  143. package/lib/table/utils/index.cjs.js.map +1 -1
  144. package/lib/table/utils/node-matchers.cjs.js.map +1 -1
  145. package/lib/toolbar/better-picker.cjs.js.map +1 -1
  146. package/lib/toolbar/index.cjs.js.map +1 -1
  147. package/lib/utils/debounce.cjs.js.map +1 -1
  148. package/lib/utils/method.cjs.js.map +1 -1
  149. package/lib/video/index.cjs.js.map +1 -1
  150. package/package.json +57 -57
  151. package/types/attributors/font-size.d.ts +1 -1
  152. package/types/attributors/font-style.d.ts +1 -1
  153. package/types/attributors/index.d.ts +4 -4
  154. package/types/attributors/line-height.d.ts +1 -1
  155. package/types/attributors/text-indent.d.ts +1 -1
  156. package/types/config/base64-image.d.ts +3 -3
  157. package/types/config/editor.config.d.ts +225 -225
  158. package/types/config/editor.utils.d.ts +42 -42
  159. package/types/config/i18n/en-us.d.ts +106 -106
  160. package/types/config/i18n/zh-cn.d.ts +106 -106
  161. package/types/config/icons.config.d.ts +34 -34
  162. package/types/config/index.d.ts +9 -8
  163. package/types/config/types/additional-toolbar-item.interface.d.ts +7 -6
  164. package/types/config/types/content-change.interface.d.ts +13 -13
  165. package/types/config/types/content-save.interface.d.ts +6 -6
  166. package/types/config/types/counter-option.interface.d.ts +8 -7
  167. package/types/config/types/editor-config.interface.d.ts +26 -18
  168. package/types/config/types/editor-modules.interface.d.ts +30 -29
  169. package/types/config/types/editor-toolbar.interface.d.ts +4 -3
  170. package/types/config/types/file-operation.interface.d.ts +11 -10
  171. package/types/config/types/focus-change.interface.d.ts +4 -4
  172. package/types/config/types/fullscreen-module.interface.d.ts +4 -4
  173. package/types/config/types/help-panel-item.interface.d.ts +5 -5
  174. package/types/config/types/help-panel-option.interface.d.ts +6 -5
  175. package/types/config/types/image-module.interface.d.ts +3 -3
  176. package/types/config/types/image-upload.interface.d.ts +6 -5
  177. package/types/config/types/index.d.ts +23 -23
  178. package/types/config/types/load-on-demand-module.interface.d.ts +5 -5
  179. package/types/config/types/mention-module.interface.d.ts +8 -8
  180. package/types/config/types/paste-change.interface.d.ts +5 -4
  181. package/types/config/types/quick-menu-module.interface.d.ts +3 -3
  182. package/types/config/types/range.interface.d.ts +4 -4
  183. package/types/config/types/registry-options.interface.d.ts +5 -5
  184. package/types/config/types/selection-change.interface.d.ts +7 -6
  185. package/types/config/types/toolbar-item.interface.d.ts +13 -13
  186. package/types/config/types/type.d.ts +4 -3
  187. package/types/config/types/validate-error.interface.d.ts +13 -13
  188. package/types/counter/index.d.ts +15 -14
  189. package/types/custom-clipboard.d.ts +27 -26
  190. package/types/custom-image/BlotFormatter.d.ts +21 -20
  191. package/types/custom-image/Options.d.ts +36 -36
  192. package/types/custom-image/actions/Action.d.ts +7 -7
  193. package/types/custom-image/actions/CustomResizeAction.d.ts +23 -22
  194. package/types/custom-image/actions/DeleteAction.d.ts +6 -5
  195. package/types/custom-image/image.d.ts +28 -28
  196. package/types/custom-image/specs/BlotSpec.d.ts +11 -10
  197. package/types/custom-image/specs/CustomImageSpec.d.ts +18 -17
  198. package/types/custom-image/specs/ImageSpec.d.ts +9 -8
  199. package/types/custom-uploader.d.ts +30 -28
  200. package/types/emoji/emoji-list/index.d.ts +1 -1
  201. package/types/emoji/emoji-list/people.d.ts +1 -1
  202. package/types/emoji/emoji-list.d.ts +2 -2
  203. package/types/emoji/emoji-map.d.ts +2 -2
  204. package/types/emoji/formats/emoji-blot.d.ts +13 -13
  205. package/types/emoji/index.d.ts +7 -6
  206. package/types/emoji/modules/emoji.d.ts +38 -38
  207. package/types/emoji/modules/toolbar-emoji.d.ts +8 -8
  208. package/types/emoji/utils.d.ts +1 -1
  209. package/types/file/formats/file.d.ts +15 -15
  210. package/types/file/index.d.ts +10 -9
  211. package/types/file/modules/file-bar.d.ts +14 -14
  212. package/types/fluent-editor.d.ts +13 -12
  213. package/types/format-painter/index.d.ts +14 -13
  214. package/types/fullscreen/handler.d.ts +2 -1
  215. package/types/global-link/constants.d.ts +3 -3
  216. package/types/global-link/formats/customer-widget-link.d.ts +14 -14
  217. package/types/global-link/formats/doc-link.d.ts +17 -17
  218. package/types/global-link/formats/wiki-link.d.ts +16 -16
  219. package/types/global-link/formats/work-item-link.d.ts +16 -16
  220. package/types/global-link/global-link-panel.d.ts +18 -17
  221. package/types/global-link/index.d.ts +18 -18
  222. package/types/global-link/utils/createTable.d.ts +1 -1
  223. package/types/index.d.ts +3 -2
  224. package/types/link/formats/link.d.ts +15 -14
  225. package/types/link/index.d.ts +6 -6
  226. package/types/link/modules/tooltip.d.ts +32 -31
  227. package/types/mathlive/formats.d.ts +21 -20
  228. package/types/mathlive/index.d.ts +7 -6
  229. package/types/mathlive/tooltip.d.ts +15 -14
  230. package/types/mention/Mention.d.ts +54 -53
  231. package/types/mention/MentionLink.d.ts +15 -14
  232. package/types/mention/constants.d.ts +3 -3
  233. package/types/quick-menu/index.d.ts +21 -20
  234. package/types/screenshot/index.d.ts +18 -17
  235. package/types/soft-break/index.d.ts +14 -14
  236. package/types/strike/index.d.ts +7 -7
  237. package/types/syntax/index.d.ts +13 -12
  238. package/types/table/better-table.d.ts +25 -24
  239. package/types/table/formats/header.d.ts +22 -22
  240. package/types/table/formats/list.d.ts +34 -34
  241. package/types/table/formats/table.d.ts +146 -145
  242. package/types/table/modules/table-column-tool.d.ts +23 -23
  243. package/types/table/modules/table-operation-menu.d.ts +38 -38
  244. package/types/table/modules/table-scroll-bar.d.ts +33 -33
  245. package/types/table/modules/table-selection.d.ts +37 -37
  246. package/types/table/table-config.d.ts +38 -38
  247. package/types/table/utils/index.d.ts +17 -17
  248. package/types/table/utils/node-matchers.d.ts +9 -9
  249. package/types/toolbar/better-picker.d.ts +1 -1
  250. package/types/toolbar/index.d.ts +8 -7
  251. package/types/toolbar/toolbar-tip.d.ts +7 -6
  252. package/types/utils/debounce.d.ts +6 -6
  253. package/types/utils/image.d.ts +1 -1
  254. package/types/utils/is.d.ts +2 -2
  255. package/types/utils/method.d.ts +6 -6
  256. package/types/utils/scroll-lock.d.ts +6 -6
  257. package/types/video/index.d.ts +15 -14
@@ -1,14 +1,15 @@
1
1
  import { default as Toolbar } from 'quill/modules/toolbar';
2
- interface FormatData {
3
- formatPainter: {
4
- rangeFormat: Record<string, any>;
5
- isFormatterLock: boolean;
6
- isFormating: boolean;
7
- prepareLock: boolean;
8
- };
9
- }
10
- export declare function FormatPainter(this: Toolbar & FormatData): void;
11
- export declare namespace FormatPainter {
12
- var toolName: string;
13
- }
14
- export {};
2
+
3
+ interface FormatData {
4
+ formatPainter: {
5
+ rangeFormat: Record<string, any>;
6
+ isFormatterLock: boolean;
7
+ isFormating: boolean;
8
+ prepareLock: boolean;
9
+ };
10
+ }
11
+ export declare function FormatPainter(this: Toolbar & FormatData): void;
12
+ export declare namespace FormatPainter {
13
+ var toolName: string;
14
+ }
15
+ export {};
@@ -1,2 +1,3 @@
1
1
  import { FluentEditorToolbar } from '../config/types';
2
- export declare function fullscreenHandler(this: FluentEditorToolbar): void;
2
+
3
+ export declare function fullscreenHandler(this: FluentEditorToolbar): void;
@@ -1,3 +1,3 @@
1
- export declare const ON_WIKI_LINK_REMOVE = "wiki-link/remove";
2
- export declare const ON_DOC_LINK_REMOVE = "doc-link/remove";
3
- export declare const ON_WORK_ITEM_LINK_REMOVE = "work-item-link/remove";
1
+ export declare const ON_WIKI_LINK_REMOVE = "wiki-link/remove";
2
+ export declare const ON_DOC_LINK_REMOVE = "doc-link/remove";
3
+ export declare const ON_WORK_ITEM_LINK_REMOVE = "work-item-link/remove";
@@ -1,14 +1,14 @@
1
- declare const BlockEmbed: unknown;
2
- declare class CustomerWidgetLink extends BlockEmbed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- static create(value: any): any;
7
- static value(domNode: any): {
8
- type: any;
9
- id: any;
10
- value: any;
11
- };
12
- constructor(scroll: any, domNode: any, data: any);
13
- }
14
- export default CustomerWidgetLink;
1
+ declare const BlockEmbed: unknown;
2
+ declare class CustomerWidgetLink extends BlockEmbed {
3
+ static blotName: string;
4
+ static tagName: string;
5
+ static className: string;
6
+ static create(value: any): any;
7
+ static value(domNode: any): {
8
+ type: any;
9
+ id: any;
10
+ value: any;
11
+ };
12
+ constructor(scroll: any, domNode: any, data: any);
13
+ }
14
+ export default CustomerWidgetLink;
@@ -1,17 +1,17 @@
1
- declare const Embed: unknown;
2
- declare class DocumentLink extends Embed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- docData: any;
7
- scroll: any;
8
- static create(value: any): any;
9
- static value(domNode: any): {
10
- link: any;
11
- icon: any;
12
- text: any;
13
- };
14
- constructor(scroll: any, domNode: any, data: any);
15
- remove(): any;
16
- }
17
- export default DocumentLink;
1
+ declare const Embed: unknown;
2
+ declare class DocumentLink extends Embed {
3
+ static blotName: string;
4
+ static tagName: string;
5
+ static className: string;
6
+ docData: any;
7
+ scroll: any;
8
+ static create(value: any): any;
9
+ static value(domNode: any): {
10
+ link: any;
11
+ icon: any;
12
+ text: any;
13
+ };
14
+ constructor(scroll: any, domNode: any, data: any);
15
+ remove(): any;
16
+ }
17
+ export default DocumentLink;
@@ -1,16 +1,16 @@
1
- declare const Embed: unknown;
2
- declare class WikiLink extends Embed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- wikiData: any;
7
- scroll: any;
8
- static create(value: any): any;
9
- static value(domNode: any): {
10
- link: any;
11
- text: any;
12
- };
13
- constructor(scroll: any, domNode: any, data: any);
14
- remove(): any;
15
- }
16
- export default WikiLink;
1
+ declare const Embed: unknown;
2
+ declare class WikiLink extends Embed {
3
+ static blotName: string;
4
+ static tagName: string;
5
+ static className: string;
6
+ wikiData: any;
7
+ scroll: any;
8
+ static create(value: any): any;
9
+ static value(domNode: any): {
10
+ link: any;
11
+ text: any;
12
+ };
13
+ constructor(scroll: any, domNode: any, data: any);
14
+ remove(): any;
15
+ }
16
+ export default WikiLink;
@@ -1,16 +1,16 @@
1
- declare const BlockEmbed: unknown;
2
- declare class WorkItemLink extends BlockEmbed {
3
- static blotName: string;
4
- static tagName: string;
5
- static className: string;
6
- workItemData: any;
7
- scroll: any;
8
- static create(value: any): any;
9
- static value(domNode: any): {
10
- link: any;
11
- data: any;
12
- };
13
- constructor(scroll: any, domNode: any, data: any);
14
- remove(): any;
15
- }
16
- export default WorkItemLink;
1
+ declare const BlockEmbed: unknown;
2
+ declare class WorkItemLink extends BlockEmbed {
3
+ static blotName: string;
4
+ static tagName: string;
5
+ static className: string;
6
+ workItemData: any;
7
+ scroll: any;
8
+ static create(value: any): any;
9
+ static value(domNode: any): {
10
+ link: any;
11
+ data: any;
12
+ };
13
+ constructor(scroll: any, domNode: any, data: any);
14
+ remove(): any;
15
+ }
16
+ export default WorkItemLink;
@@ -1,18 +1,19 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- interface WikiLink {
3
- link: string;
4
- text: string;
5
- }
6
- interface DocLink {
7
- link: string;
8
- text: string;
9
- icon: string;
10
- }
11
- export interface GlobalLinkPanel {
12
- wikiLink: EventEmitter<WikiLink[]>;
13
- docLink: EventEmitter<DocLink[]>;
14
- workItemLink: EventEmitter<any>;
15
- close?: EventEmitter<any>;
16
- autoClose?: boolean;
17
- }
18
- export {};
2
+
3
+ interface WikiLink {
4
+ link: string;
5
+ text: string;
6
+ }
7
+ interface DocLink {
8
+ link: string;
9
+ text: string;
10
+ icon: string;
11
+ }
12
+ export interface GlobalLinkPanel {
13
+ wikiLink: EventEmitter<WikiLink[]>;
14
+ docLink: EventEmitter<DocLink[]>;
15
+ workItemLink: EventEmitter<any>;
16
+ close?: EventEmitter<any>;
17
+ autoClose?: boolean;
18
+ }
19
+ export {};
@@ -1,18 +1,18 @@
1
- declare const Module: unknown;
2
- declare class GlobalLink extends Module {
3
- open: boolean;
4
- wrap: any;
5
- panel: any;
6
- quill: any;
7
- static register(): void;
8
- constructor(quill: any, options: any);
9
- onEditorClick(evt: any): void;
10
- handleLinkClick(linkNode: any): void;
11
- handleGlobalLinkButtonClick(_value: any): void;
12
- triggerPanel(): void;
13
- addWikiLink(wikiData: any): void;
14
- addDocLink(docData: any): void;
15
- addWorkItemLink(workItemData: any): void;
16
- closePanel(): void;
17
- }
18
- export default GlobalLink;
1
+ declare const Module: unknown;
2
+ declare class GlobalLink extends Module {
3
+ open: boolean;
4
+ wrap: any;
5
+ panel: any;
6
+ quill: any;
7
+ static register(): void;
8
+ constructor(quill: any, options: any);
9
+ onEditorClick(evt: any): void;
10
+ handleLinkClick(linkNode: any): void;
11
+ handleGlobalLinkButtonClick(_value: any): void;
12
+ triggerPanel(): void;
13
+ addWikiLink(wikiData: any): void;
14
+ addDocLink(docData: any): void;
15
+ addWorkItemLink(workItemData: any): void;
16
+ closePanel(): void;
17
+ }
18
+ export default GlobalLink;
@@ -1 +1 @@
1
- export declare function createTable(data: any[]): HTMLTableElement;
1
+ export declare function createTable(data: any[]): HTMLTableElement;
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import { default as FluentEditor } from './fluent-editor';
2
- export * from './config';
3
- export default FluentEditor;
2
+
3
+ export * from './config';
4
+ export default FluentEditor;
@@ -1,15 +1,16 @@
1
1
  import { default as TypeInline } from 'quill/blots/inline';
2
- declare const Inline: typeof TypeInline;
3
- export default class Link extends Inline {
4
- static blotName: string;
5
- static tagName: string;
6
- static SANITIZED_URL: string;
7
- static PROTOCOL_WHITELIST: string[];
8
- static className: string;
9
- static autoProtocol: string;
10
- static create(value: any): HTMLElement;
11
- static formats(domNode: any): any;
12
- static sanitize(url: any): any;
13
- format(name: any, value: any): void;
14
- }
15
- export {};
2
+
3
+ declare const Inline: typeof TypeInline;
4
+ export default class Link extends Inline {
5
+ static blotName: string;
6
+ static tagName: string;
7
+ static SANITIZED_URL: string;
8
+ static PROTOCOL_WHITELIST: string[];
9
+ static className: string;
10
+ static autoProtocol: string;
11
+ static create(value: any): HTMLElement;
12
+ static formats(domNode: any): any;
13
+ static sanitize(url: any): any;
14
+ format(name: any, value: any): void;
15
+ }
16
+ export {};
@@ -1,6 +1,6 @@
1
- declare const Module: typeof import('quill/core/module').default;
2
- declare class Link extends Module {
3
- static register(): void;
4
- constructor(quill: any, options: any);
5
- }
6
- export default Link;
1
+ declare const Module: typeof import('quill/core/module').default;
2
+ declare class Link extends Module {
3
+ static register(): void;
4
+ constructor(quill: any, options: any);
5
+ }
6
+ export default Link;
@@ -1,32 +1,33 @@
1
1
  import { BaseTooltip } from 'quill/themes/base';
2
- export default class Tooltip extends BaseTooltip {
3
- static TEMPLATE: string;
4
- isInputFocus: boolean;
5
- isHover: boolean;
6
- debouncedHideToolTip: any;
7
- debouncedShowToolTip: any;
8
- hide: any;
9
- linkRange: any;
10
- quill: any;
11
- root: any;
12
- restoreFocus: any;
13
- textbox: any;
14
- boundsContainer: any;
15
- options: {
16
- autoProtocol: string;
17
- };
18
- constructor(quill: any, bounds: any);
19
- setTemplate(): void;
20
- resolveOptions(): void;
21
- shouldHide(): boolean;
22
- hideToolTip(): void;
23
- showToolTip(name: any, value: any, range: any): void;
24
- handleMouseLeave(): void;
25
- handleMouseEnter(event: any): void;
26
- listen(): void;
27
- save(): void;
28
- position(reference: any): number;
29
- edit(mode: string, preview: any, range: any): void;
30
- show(): void;
31
- addHttpProtocol(url: string): string;
32
- }
2
+
3
+ export default class Tooltip extends BaseTooltip {
4
+ static TEMPLATE: string;
5
+ isInputFocus: boolean;
6
+ isHover: boolean;
7
+ debouncedHideToolTip: any;
8
+ debouncedShowToolTip: any;
9
+ hide: any;
10
+ linkRange: any;
11
+ quill: any;
12
+ root: any;
13
+ restoreFocus: any;
14
+ textbox: any;
15
+ boundsContainer: any;
16
+ options: {
17
+ autoProtocol: string;
18
+ };
19
+ constructor(quill: any, bounds: any);
20
+ setTemplate(): void;
21
+ resolveOptions(): void;
22
+ shouldHide(): boolean;
23
+ hideToolTip(): void;
24
+ showToolTip(name: any, value: any, range: any): void;
25
+ handleMouseLeave(): void;
26
+ handleMouseEnter(event: any): void;
27
+ listen(): void;
28
+ save(): void;
29
+ position(reference: any): number;
30
+ edit(mode: string, preview: any, range: any): void;
31
+ show(): void;
32
+ addHttpProtocol(url: string): string;
33
+ }
@@ -1,22 +1,23 @@
1
1
  import { MathfieldElement } from 'mathlive';
2
2
  import { Root } from 'parchment';
3
- declare const Parchment: typeof import("parchment");
4
- type MathliveBlotMode = 'dialog' | 'only-read';
5
- export default class MathliveBlot extends Parchment.EmbedBlot {
6
- domNode: MathfieldElement;
7
- static blotName: string;
8
- static tagName: string;
9
- static className: string;
10
- mode: MathliveBlotMode;
11
- static create(obj: {
12
- value: string;
13
- mode: MathliveBlotMode;
14
- }): MathfieldElement;
15
- static value(domNode: MathfieldElement): {
16
- value: string;
17
- mode: string;
18
- };
19
- constructor(scroll: Root, domNode: MathfieldElement);
20
- html(): string;
21
- }
22
- export {};
3
+
4
+ declare const Parchment: typeof import("parchment");
5
+ type MathliveBlotMode = 'dialog' | 'only-read';
6
+ export default class MathliveBlot extends Parchment.EmbedBlot {
7
+ domNode: MathfieldElement;
8
+ static blotName: string;
9
+ static tagName: string;
10
+ static className: string;
11
+ mode: MathliveBlotMode;
12
+ static create(obj: {
13
+ value: string;
14
+ mode: MathliveBlotMode;
15
+ }): MathfieldElement;
16
+ static value(domNode: MathfieldElement): {
17
+ value: string;
18
+ mode: string;
19
+ };
20
+ constructor(scroll: Root, domNode: MathfieldElement);
21
+ html(): string;
22
+ }
23
+ export {};
@@ -1,8 +1,9 @@
1
1
  import { default as Quill } from 'quill';
2
2
  import { default as MathliveTooltip } from './tooltip';
3
- export default class MathliveModule {
4
- quill: Quill;
5
- tooltip: MathliveTooltip;
6
- constructor(quill: Quill);
7
- createDialog(value?: string): void;
8
- }
3
+
4
+ export default class MathliveModule {
5
+ quill: Quill;
6
+ tooltip: MathliveTooltip;
7
+ constructor(quill: Quill);
8
+ createDialog(value?: string): void;
9
+ }
@@ -2,17 +2,18 @@ import { MathfieldElement } from 'mathlive';
2
2
  import { Bounds } from 'quill/core/selection';
3
3
  import { default as TypeTooltip } from 'quill/ui/tooltip';
4
4
  import { default as Quill } from 'quill';
5
- declare const Tooltip: typeof TypeTooltip;
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
- }
18
- export {};
5
+
6
+ declare const Tooltip: typeof TypeTooltip;
7
+ export default class MathliveTooltip extends Tooltip {
8
+ static TEMPLATE: string;
9
+ mathliveDom: MathfieldElement;
10
+ editValue?: string;
11
+ constructor(quill: Quill, boundsContainer?: HTMLElement);
12
+ listen(): void;
13
+ cancel(): void;
14
+ edit(value?: string): void;
15
+ restoreFocus(): void;
16
+ save(): void;
17
+ position(reference: Bounds): number;
18
+ }
19
+ export {};
@@ -1,54 +1,55 @@
1
1
  import { default as Quill } from 'quill';
2
- interface MentionOption {
3
- containerClass?: string;
4
- defaultLink?: string;
5
- itemActiveClass?: string;
6
- itemKey: string;
7
- itemClass?: string;
8
- listClass?: string;
9
- listHideClass?: string;
10
- maxHeight?: number;
11
- mentionChar?: string;
12
- remove?: (data: any) => void;
13
- renderMentionItem?: (data: any) => string | HTMLElement;
14
- renderMentionText?: (data: any) => string | HTMLElement;
15
- search?: (term: string) => Promise<any[]>;
16
- searchKey: string;
17
- select?: (data: any) => void;
18
- target?: string;
19
- }
20
- declare class Mention {
21
- private quill;
22
- private readonly options;
23
- private readonly mentionListEL;
24
- private activeMentionIndex;
25
- private latestMentionList;
26
- private latestMentionCharPos;
27
- private latestCaretPos;
28
- private searchTerm;
29
- private needInsertBr;
30
- private readonly defaultOptions;
31
- static register(): void;
32
- constructor(quill: Quill, options: MentionOption);
33
- on(eventName: any, callback: any): void;
34
- getMentionItemIndex(itemEl: Element): unknown;
35
- handleTextChange: (_delta: any, _oldDelta: any, source: any) => void;
36
- handleMouseClick(_itemEl: HTMLLIElement, index: number): void;
37
- handleMouseEnter(_itemEl: HTMLLIElement, index: number): void;
38
- handleArrowUpKey: () => boolean;
39
- handleArrowDownKey: () => boolean;
40
- handleEnterKey: () => boolean;
41
- handleEscapeKey: () => boolean;
42
- getActiveMentionItem(): Element;
43
- isOpen(): boolean;
44
- searchMentionListByTerm(term: string): Promise<void>;
45
- showMentionList(mentionList: any[]): void;
46
- hideMentionList(): void;
47
- setMentionListPos(): void;
48
- render(mentionList: any[]): void;
49
- highlightMentionItem(index: number): void;
50
- scrollIntoView(node: Element): void;
51
- selectMentionItem(index?: number, isClick?: boolean): void;
52
- insertMentionBlot(activeMentionItem: any, isClick?: boolean): void;
53
- }
54
- export { Mention as default };
2
+
3
+ interface MentionOption {
4
+ containerClass?: string;
5
+ defaultLink?: string;
6
+ itemActiveClass?: string;
7
+ itemKey: string;
8
+ itemClass?: string;
9
+ listClass?: string;
10
+ listHideClass?: string;
11
+ maxHeight?: number;
12
+ mentionChar?: string;
13
+ remove?: (data: any) => void;
14
+ renderMentionItem?: (data: any) => string | HTMLElement;
15
+ renderMentionText?: (data: any) => string | HTMLElement;
16
+ search?: (term: string) => Promise<any[]>;
17
+ searchKey: string;
18
+ select?: (data: any) => void;
19
+ target?: string;
20
+ }
21
+ declare class Mention {
22
+ private quill;
23
+ private readonly options;
24
+ private readonly mentionListEL;
25
+ private activeMentionIndex;
26
+ private latestMentionList;
27
+ private latestMentionCharPos;
28
+ private latestCaretPos;
29
+ private searchTerm;
30
+ private needInsertBr;
31
+ private readonly defaultOptions;
32
+ static register(): void;
33
+ constructor(quill: Quill, options: MentionOption);
34
+ on(eventName: any, callback: any): void;
35
+ getMentionItemIndex(itemEl: Element): unknown;
36
+ handleTextChange: (_delta: any, _oldDelta: any, source: any) => void;
37
+ handleMouseClick(_itemEl: HTMLLIElement, index: number): void;
38
+ handleMouseEnter(_itemEl: HTMLLIElement, index: number): void;
39
+ handleArrowUpKey: () => boolean;
40
+ handleArrowDownKey: () => boolean;
41
+ handleEnterKey: () => boolean;
42
+ handleEscapeKey: () => boolean;
43
+ getActiveMentionItem(): Element;
44
+ isOpen(): boolean;
45
+ searchMentionListByTerm(term: string): Promise<void>;
46
+ showMentionList(mentionList: any[]): void;
47
+ hideMentionList(): void;
48
+ setMentionListPos(): void;
49
+ render(mentionList: any[]): void;
50
+ highlightMentionItem(index: number): void;
51
+ scrollIntoView(node: Element): void;
52
+ selectMentionItem(index?: number, isClick?: boolean): void;
53
+ insertMentionBlot(activeMentionItem: any, isClick?: boolean): void;
54
+ }
55
+ export { Mention as default };
@@ -1,15 +1,16 @@
1
1
  import { default as TypeEmbed } from 'quill/blots/embed';
2
- declare const Embed: typeof TypeEmbed;
3
- declare class MentionLink extends Embed {
4
- static blotName: string;
5
- static tagName: string;
6
- static className: string;
7
- scroll: any;
8
- mentionData: any;
9
- static create(data: any): HTMLElement;
10
- static value(domNode: HTMLElement): Record<string, any>;
11
- constructor(scroll: any, domNode: any, data: any);
12
- value(): any;
13
- remove(): void;
14
- }
15
- export { MentionLink as default };
2
+
3
+ declare const Embed: typeof TypeEmbed;
4
+ declare class MentionLink extends Embed {
5
+ static blotName: string;
6
+ static tagName: string;
7
+ static className: string;
8
+ scroll: any;
9
+ mentionData: any;
10
+ static create(data: any): HTMLElement;
11
+ static value(domNode: HTMLElement): Record<string, any>;
12
+ constructor(scroll: any, domNode: any, data: any);
13
+ value(): any;
14
+ remove(): void;
15
+ }
16
+ export { MentionLink as default };
@@ -1,3 +1,3 @@
1
- export declare const ON_MENTION_LINK_REMOVE = "mention-link/remove";
2
- export declare const MENTION_CHAR = "mentionChar";
3
- export declare const DEFAULT_MENTION_CHAR = "@";
1
+ export declare const ON_MENTION_LINK_REMOVE = "mention-link/remove";
2
+ export declare const MENTION_CHAR = "mentionChar";
3
+ export declare const DEFAULT_MENTION_CHAR = "@";