@ones-editor/editor 0.0.3-beta.2 → 0.0.3-beta.200

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 (436) hide show
  1. package/@ones-editor/auto-link/package.json +8 -0
  2. package/@ones-editor/auto-link/src/index.d.ts +3 -0
  3. package/@ones-editor/block-locker/src/hook.d.ts +1 -0
  4. package/@ones-editor/block-locker/src/i18n/en-US.d.ts +8 -0
  5. package/@ones-editor/block-locker/src/i18n/ja-JP.d.ts +8 -0
  6. package/@ones-editor/block-locker/src/i18n/zh-CN.d.ts +8 -0
  7. package/@ones-editor/block-locker/src/index.d.ts +4 -1
  8. package/@ones-editor/block-locker/src/paste-handler.d.ts +4 -0
  9. package/@ones-editor/block-menu/src/block-menu/index.d.ts +3 -1
  10. package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +1 -1
  11. package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +3 -2
  12. package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +5 -3
  13. package/@ones-editor/block-menu/src/block-menu-button/drag-drop/drag-handler.d.ts +5 -4
  14. package/@ones-editor/block-menu/src/block-menu-button/drag-drop/find-preview-element.d.ts +1 -1
  15. package/@ones-editor/block-menu/src/block-menu-button/drag-preview/index.d.ts +2 -2
  16. package/@ones-editor/block-menu/src/locale/en-us.d.ts +4 -0
  17. package/@ones-editor/block-menu/src/locale/ja-jp.d.ts +25 -0
  18. package/@ones-editor/block-menu/src/locale/zh-cn.d.ts +4 -0
  19. package/@ones-editor/block-resizer/src/index.d.ts +1 -0
  20. package/@ones-editor/code-block/src/code-block/caption/caption-input-handler.d.ts +2 -2
  21. package/@ones-editor/code-block/src/code-block/child-container.d.ts +2 -2
  22. package/@ones-editor/code-block/src/code-block/code-caret.d.ts +7 -0
  23. package/@ones-editor/code-block/src/code-block/code-copy.d.ts +4 -0
  24. package/@ones-editor/code-block/src/code-block/create-empty-code.d.ts +2 -2
  25. package/@ones-editor/code-block/src/code-block/index.d.ts +3 -1
  26. package/@ones-editor/code-block/src/code-block/settings/index.d.ts +3 -0
  27. package/@ones-editor/code-block/src/code-block/types.d.ts +3 -0
  28. package/@ones-editor/code-block/src/icons/copy.d.ts +1 -1
  29. package/@ones-editor/code-block/src/icons/wrap.d.ts +1 -1
  30. package/@ones-editor/code-block/src/index.d.ts +1 -0
  31. package/@ones-editor/code-block/src/locale/en-us.d.ts +5 -0
  32. package/@ones-editor/code-block/src/locale/ja-jp.d.ts +12 -0
  33. package/@ones-editor/code-block/src/locale/zh-cn.d.ts +5 -0
  34. package/@ones-editor/column-block/package.json +8 -0
  35. package/@ones-editor/column-block/src/child-containers.d.ts +2 -0
  36. package/@ones-editor/column-block/src/columns-options.d.ts +2 -0
  37. package/@ones-editor/column-block/src/columns-properties.d.ts +15 -0
  38. package/@ones-editor/column-block/src/index.d.ts +4 -0
  39. package/@ones-editor/column-block/src/types.d.ts +11 -0
  40. package/@ones-editor/comments/src/actions/add-comment-to-block.d.ts +3 -2
  41. package/@ones-editor/comments/src/actions/add-comment-to-text-block.d.ts +2 -1
  42. package/@ones-editor/comments/src/actions/editor-add-comment.d.ts +2 -0
  43. package/@ones-editor/comments/src/block-hook/index.d.ts +3 -1
  44. package/@ones-editor/comments/src/comment-editor/index.d.ts +3 -5
  45. package/@ones-editor/comments/src/comment-input-handler/index.d.ts +2 -10
  46. package/@ones-editor/comments/src/comment-input-handler/input-handler.d.ts +11 -0
  47. package/@ones-editor/comments/src/comment-input-handler/paste-handler.d.ts +5 -0
  48. package/@ones-editor/comments/src/comment-input-handler/quick-reply-input-handler.d.ts +7 -0
  49. package/@ones-editor/comments/src/comment-item/comment-item.d.ts +3 -0
  50. package/@ones-editor/comments/src/comment-item/index.d.ts +1 -0
  51. package/@ones-editor/comments/src/comment-item/mobile-comment-item/index.d.ts +1 -0
  52. package/@ones-editor/comments/src/comment-item/mobile-comment-item/mobile-comment-item.d.ts +19 -0
  53. package/@ones-editor/comments/src/comments/comments.d.ts +11 -8
  54. package/@ones-editor/comments/src/comments-button/index.d.ts +3 -1
  55. package/@ones-editor/comments/src/comments-helper/utils.d.ts +2 -2
  56. package/@ones-editor/comments/src/comments-list/arrange-items.d.ts +1 -1
  57. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +1 -9
  58. package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
  59. package/@ones-editor/comments/src/comments-list/group-list.d.ts +4 -2
  60. package/@ones-editor/comments/src/comments-list/index.d.ts +1 -0
  61. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -0
  62. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +0 -4
  63. package/@ones-editor/comments/src/comments-list/mobile-comments-list/children-list.d.ts +17 -0
  64. package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-item.d.ts +30 -0
  65. package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +30 -0
  66. package/@ones-editor/comments/src/comments-list/mobile-comments-list/index.d.ts +1 -0
  67. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +30 -0
  68. package/@ones-editor/comments/src/constant/index.d.ts +1 -1
  69. package/@ones-editor/comments/src/index.d.ts +1 -1
  70. package/@ones-editor/comments/src/locale/en-us.d.ts +3 -0
  71. package/@ones-editor/comments/src/locale/ja-jp.d.ts +4 -0
  72. package/@ones-editor/comments/src/locale/zh-cn.d.ts +4 -0
  73. package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +3 -1
  74. package/@ones-editor/comments/src/types.d.ts +14 -17
  75. package/@ones-editor/core/src/common/index.d.ts +2 -2
  76. package/@ones-editor/core/src/core/block-renderers/standard-block-render.d.ts +2 -0
  77. package/@ones-editor/core/src/core/blocks/block-anchor/create-block-anchor.d.ts +1 -0
  78. package/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +2 -0
  79. package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +7 -1
  80. package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +4 -4
  81. package/@ones-editor/core/src/core/blocks/text-blocks/index.d.ts +1 -0
  82. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-markdown.d.ts +3 -0
  83. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +3 -0
  84. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-text.d.ts +3 -0
  85. package/@ones-editor/core/src/core/boxes/anchor-box/index.d.ts +3 -0
  86. package/@ones-editor/core/src/core/boxes/editor-boxes.d.ts +1 -0
  87. package/@ones-editor/core/src/core/boxes/image-box/index.d.ts +3 -0
  88. package/@ones-editor/core/src/core/boxes/index.d.ts +3 -1
  89. package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +3 -2
  90. package/@ones-editor/core/src/core/composition/clipboard/cut.d.ts +1 -1
  91. package/@ones-editor/core/src/core/composition/clipboard/paste.d.ts +2 -2
  92. package/@ones-editor/core/src/core/composition/editor-input.d.ts +6 -1
  93. package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
  94. package/@ones-editor/core/src/core/containers/root-container.d.ts +2 -1
  95. package/@ones-editor/core/src/core/converter/block-to-html.d.ts +2 -2
  96. package/@ones-editor/core/src/core/converter/block-to-markdown.d.ts +2 -2
  97. package/@ones-editor/core/src/core/converter/block-to-text.d.ts +2 -2
  98. package/@ones-editor/core/src/core/data-converter/editor-data-converter.d.ts +4 -2
  99. package/@ones-editor/core/src/core/doc/doc.d.ts +13 -2
  100. package/@ones-editor/core/src/core/doc/rich-text/insert-text.d.ts +2 -1
  101. package/@ones-editor/core/src/core/doc/to-plain-text.d.ts +1 -0
  102. package/@ones-editor/core/src/core/editor/actions/auto-insert-block.d.ts +2 -2
  103. package/@ones-editor/core/src/core/editor/actions/break-text-block.d.ts +2 -0
  104. package/@ones-editor/core/src/core/editor/actions/delete-block-text.d.ts +2 -2
  105. package/@ones-editor/core/src/core/editor/actions/focus-to-end.d.ts +0 -1
  106. package/@ones-editor/core/src/core/editor/actions/insert-block.d.ts +2 -2
  107. package/@ones-editor/core/src/core/editor/actions/insert-text.d.ts +3 -2
  108. package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +3 -3
  109. package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +5 -3
  110. package/@ones-editor/core/src/core/index.d.ts +1 -0
  111. package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +5 -1
  112. package/@ones-editor/core/src/core/input-handler/remove-quoted.d.ts +2 -0
  113. package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -2
  114. package/@ones-editor/core/src/core/selection/actions/select-all.d.ts +3 -1
  115. package/@ones-editor/core/src/core/selection/actions/select-block.d.ts +2 -0
  116. package/@ones-editor/core/src/core/selection/actions/word-offset.d.ts +1 -1
  117. package/@ones-editor/core/src/core/selection/editor-selection.d.ts +3 -2
  118. package/@ones-editor/core/src/core/selection/index.d.ts +1 -0
  119. package/@ones-editor/core/src/core/selection/range/simple-range.d.ts +2 -1
  120. package/@ones-editor/core/src/core/selection/select-handler.d.ts +5 -1
  121. package/@ones-editor/core/src/core/settings/index.d.ts +3 -3
  122. package/@ones-editor/core/src/core/types.d.ts +66 -26
  123. package/@ones-editor/core/src/helper/block-helper.d.ts +1 -1
  124. package/@ones-editor/core/src/helper/find-block.d.ts +3 -0
  125. package/@ones-editor/core/src/helper/index.d.ts +1 -0
  126. package/@ones-editor/core/src/i18n/en-us.d.ts +3 -0
  127. package/@ones-editor/core/src/i18n/i18n.d.ts +61 -0
  128. package/@ones-editor/core/src/i18n/ja-jp.d.ts +20 -0
  129. package/@ones-editor/core/src/i18n/zh-cn.d.ts +3 -0
  130. package/@ones-editor/core/src/local-doc/index.d.ts +6 -2
  131. package/@ones-editor/core/src/utils/abbreviation.d.ts +27 -0
  132. package/@ones-editor/core/src/utils/client.d.ts +1 -0
  133. package/@ones-editor/core/src/utils/dom-scroll.d.ts +3 -1
  134. package/@ones-editor/core/src/utils/dom.d.ts +3 -0
  135. package/@ones-editor/core/src/utils/file.d.ts +3 -0
  136. package/@ones-editor/core/src/utils/index.d.ts +2 -0
  137. package/@ones-editor/core/src/utils/logger/index.d.ts +9 -3
  138. package/@ones-editor/core/src/utils/overflow-text.d.ts +1 -0
  139. package/@ones-editor/details-block/package.json +8 -0
  140. package/@ones-editor/details-block/src/auto-expand.d.ts +7 -0
  141. package/@ones-editor/details-block/src/create-empty-details.d.ts +8 -0
  142. package/@ones-editor/details-block/src/details-dom.d.ts +3 -0
  143. package/@ones-editor/details-block/src/details-object.d.ts +11 -0
  144. package/@ones-editor/details-block/src/details-options.d.ts +2 -0
  145. package/@ones-editor/details-block/src/index.d.ts +4 -0
  146. package/@ones-editor/details-block/src/types.d.ts +5 -0
  147. package/@ones-editor/details-block/src/update-expand.d.ts +3 -0
  148. package/@ones-editor/dividing-line-embed/src/i18n/en-us.d.ts +1 -0
  149. package/@ones-editor/dividing-line-embed/src/i18n/ja-jp.d.ts +7 -0
  150. package/@ones-editor/dividing-line-embed/src/i18n/zh-cn.d.ts +1 -0
  151. package/@ones-editor/drawio-embed/src/drawio-embed.d.ts +1 -0
  152. package/@ones-editor/drawio-embed/src/helper/default-style.d.ts +1 -0
  153. package/@ones-editor/drawio-embed/src/helper/index.d.ts +16 -10
  154. package/@ones-editor/drawio-embed/src/lang/en-us.d.ts +9 -4
  155. package/@ones-editor/drawio-embed/src/lang/index.d.ts +1 -1
  156. package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +12 -0
  157. package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +9 -4
  158. package/@ones-editor/drawio-embed/types/index.d.ts +4 -4
  159. package/@ones-editor/drop-target/src/drop-indicator.d.ts +1 -0
  160. package/@ones-editor/drop-target/src/drop-target.d.ts +3 -1
  161. package/@ones-editor/drop-target/src/handlers/drag-file.d.ts +7 -0
  162. package/@ones-editor/drop-target/src/handlers/patch-insert-file.d.ts +2 -0
  163. package/@ones-editor/drop-target/src/index.d.ts +2 -1
  164. package/@ones-editor/embed-block-helper/src/block-properties/embed-block-properties.d.ts +3 -1
  165. package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +14 -0
  166. package/@ones-editor/embed-block-helper/src/index.d.ts +2 -0
  167. package/@ones-editor/embed-block-helper/src/locale/en-us.d.ts +7 -0
  168. package/@ones-editor/embed-block-helper/src/locale/index.d.ts +1 -0
  169. package/@ones-editor/embed-block-helper/src/locale/ja-jp.d.ts +7 -0
  170. package/@ones-editor/embed-block-helper/src/locale/zh-cn.d.ts +7 -0
  171. package/@ones-editor/excalidraw/package.json +11 -0
  172. package/@ones-editor/excalidraw/src/excalidraw/block-properties.d.ts +2 -0
  173. package/@ones-editor/excalidraw/src/excalidraw/editor.d.ts +2 -0
  174. package/@ones-editor/excalidraw/src/index.d.ts +4 -0
  175. package/@ones-editor/excalidraw/src/types.d.ts +9 -0
  176. package/@ones-editor/excalidraw/src/utils/excalidraw-data.d.ts +4 -0
  177. package/@ones-editor/exclusive-block/package.json +6 -0
  178. package/@ones-editor/exclusive-block/src/exclusive-block-hook.d.ts +6 -0
  179. package/@ones-editor/exclusive-block/src/exclusive-block.d.ts +22 -0
  180. package/@ones-editor/exclusive-block/src/exclusive-dom.d.ts +5 -0
  181. package/@ones-editor/exclusive-block/src/handle-remote-exclusive-message.d.ts +3 -0
  182. package/@ones-editor/exclusive-block/src/index.d.ts +7 -0
  183. package/@ones-editor/exclusive-block/src/locale/en-us.d.ts +7 -0
  184. package/@ones-editor/exclusive-block/src/locale/index.d.ts +1 -0
  185. package/@ones-editor/exclusive-block/src/locale/ja-jp.d.ts +7 -0
  186. package/@ones-editor/exclusive-block/src/locale/zh-cn.d.ts +7 -0
  187. package/@ones-editor/exclusive-block/src/types.d.ts +7 -0
  188. package/@ones-editor/file/package.json +8 -0
  189. package/@ones-editor/file/src/file-box/index.d.ts +4 -0
  190. package/@ones-editor/file/src/file-embed/card/file-icon.d.ts +1 -0
  191. package/@ones-editor/file/src/file-embed/card/index.d.ts +6 -0
  192. package/@ones-editor/file/src/file-embed/download-file.d.ts +2 -0
  193. package/@ones-editor/file/src/file-embed/index.d.ts +4 -0
  194. package/@ones-editor/file/src/index.d.ts +5 -0
  195. package/@ones-editor/file/src/locale/en-us.d.ts +12 -0
  196. package/@ones-editor/file/src/locale/index.d.ts +1 -0
  197. package/@ones-editor/file/src/locale/ja-jp.d.ts +12 -0
  198. package/@ones-editor/file/src/locale/zh-cn.d.ts +12 -0
  199. package/@ones-editor/file/src/types.d.ts +24 -0
  200. package/@ones-editor/find-dialog/src/doc/doc-handler.d.ts +15 -0
  201. package/@ones-editor/find-dialog/src/find-dialog.d.ts +4 -1
  202. package/@ones-editor/find-dialog/src/highlights/highligh-text.d.ts +3 -0
  203. package/@ones-editor/find-dialog/src/highlights/highlight-dom.d.ts +1 -0
  204. package/@ones-editor/find-dialog/src/locale/ja-jp.d.ts +13 -0
  205. package/@ones-editor/graph-embed/assets/index.d.ts +2 -0
  206. package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +5 -2
  207. package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +5 -3
  208. package/@ones-editor/graph-embed/src/lang/en-us.d.ts +10 -5
  209. package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +13 -0
  210. package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +6 -3
  211. package/@ones-editor/heading-collapse/src/doc-event/index.d.ts +1 -1
  212. package/@ones-editor/heading-collapse/src/heading-collapse-button/drop-handler.d.ts +1 -1
  213. package/@ones-editor/heading-collapse/src/index.d.ts +1 -0
  214. package/@ones-editor/heading-collapse/src/locale/en-us.d.ts +7 -0
  215. package/@ones-editor/heading-collapse/src/locale/index.d.ts +1 -0
  216. package/@ones-editor/heading-collapse/src/locale/ja-jp.d.ts +7 -0
  217. package/@ones-editor/heading-collapse/src/locale/zh-cn.d.ts +7 -0
  218. package/@ones-editor/image-embed/package.json +2 -1
  219. package/@ones-editor/image-embed/src/copy-handler.d.ts +8 -0
  220. package/@ones-editor/image-embed/src/drag-drop/drag-handler.d.ts +9 -2
  221. package/@ones-editor/image-embed/src/drag-drop/handle-drop-over.d.ts +5 -1
  222. package/@ones-editor/image-embed/src/drag-drop/handle-drop.d.ts +1 -1
  223. package/@ones-editor/image-embed/src/empty-image-converter.d.ts +5 -0
  224. package/@ones-editor/image-embed/src/image-data.d.ts +6 -4
  225. package/@ones-editor/image-embed/src/image-file.d.ts +4 -0
  226. package/@ones-editor/image-embed/src/image-object.d.ts +5 -1
  227. package/@ones-editor/image-embed/src/image-resizer.d.ts +3 -0
  228. package/@ones-editor/image-embed/src/index.d.ts +5 -2
  229. package/@ones-editor/image-embed/src/locale/en-us.d.ts +2 -1
  230. package/@ones-editor/image-embed/src/locale/ja-jp.d.ts +17 -0
  231. package/@ones-editor/image-embed/src/locale/zh-cn.d.ts +1 -0
  232. package/@ones-editor/image-embed/src/paste-handler.d.ts +7 -0
  233. package/@ones-editor/image-embed/src/shortcuts/copy-image.d.ts +2 -0
  234. package/@ones-editor/image-embed/src/shortcuts/image-clipboard-data.d.ts +7 -0
  235. package/@ones-editor/image-embed/src/shortcuts/index.d.ts +3 -2
  236. package/@ones-editor/image-embed/src/types.d.ts +9 -2
  237. package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
  238. package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
  239. package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +11 -0
  240. package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
  241. package/@ones-editor/input-handlers/src/markdown-shortcuts/table-converter.d.ts +2 -0
  242. package/@ones-editor/list-block/src/converter/convert-list-to.d.ts +2 -0
  243. package/@ones-editor/list-block/src/converter/convert-to-list.d.ts +14 -0
  244. package/@ones-editor/list-block/src/converter/index.d.ts +2 -14
  245. package/@ones-editor/list-block/src/drop/index.d.ts +1 -1
  246. package/@ones-editor/list-block/src/index.d.ts +6 -3
  247. package/@ones-editor/list-block/src/lang/en-us.d.ts +3 -0
  248. package/@ones-editor/list-block/src/lang/ja-jp.d.ts +21 -0
  249. package/@ones-editor/list-block/src/lang/zh-cn.d.ts +3 -0
  250. package/@ones-editor/list-block/src/level/change-multi-levels.d.ts +2 -0
  251. package/@ones-editor/list-block/src/level/decrease-level.d.ts +1 -0
  252. package/@ones-editor/list-block/src/marker/customize-start-dialog.d.ts +1 -0
  253. package/@ones-editor/list-block/src/mindmap/index.d.ts +1 -1
  254. package/@ones-editor/list-block/src/mindmap/to-mindmap/close-mindmap.d.ts +1 -0
  255. package/@ones-editor/list-block/src/mindmap/to-mindmap/index.d.ts +3 -1
  256. package/@ones-editor/list-block/src/start/fix-start-by-list.d.ts +9 -0
  257. package/@ones-editor/list-block/src/types.d.ts +2 -1
  258. package/@ones-editor/list-block/src/utils/list-brother.d.ts +5 -1
  259. package/@ones-editor/markdown-to-doc/src/markdown-to-doc.d.ts +1 -0
  260. package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/latex.d.ts +4 -0
  261. package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/paragraph.d.ts +1 -0
  262. package/@ones-editor/mathjax/package.json +3 -0
  263. package/@ones-editor/mathjax/src/index.d.ts +2 -1
  264. package/@ones-editor/mathjax/src/locale/ja-jp.d.ts +7 -0
  265. package/@ones-editor/mathjax/src/mathjax-box/convert-mathjax.d.ts +5 -0
  266. package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +2 -2
  267. package/@ones-editor/media-embed/src/core/media-embed.d.ts +4 -2
  268. package/@ones-editor/media-embed/src/core/media.d.ts +10 -4
  269. package/@ones-editor/media-embed/src/core/video-resizer.d.ts +1 -0
  270. package/@ones-editor/media-embed/src/locale/ja-jp.d.ts +19 -0
  271. package/@ones-editor/media-embed/src/utils/file.d.ts +1 -2
  272. package/@ones-editor/mention/src/block-mention.d.ts +10 -0
  273. package/@ones-editor/mention/src/dom/mention-button.d.ts +2 -0
  274. package/@ones-editor/mention/src/index.d.ts +3 -1
  275. package/@ones-editor/mention/src/locale/en-us.d.ts +6 -0
  276. package/@ones-editor/mention/src/locale/index.d.ts +1 -0
  277. package/@ones-editor/mention/src/locale/ja-jp.d.ts +6 -0
  278. package/@ones-editor/mention/src/locale/zh-cn.d.ts +6 -0
  279. package/@ones-editor/mention/src/mention.d.ts +2 -9
  280. package/@ones-editor/mention/src/types.d.ts +12 -1
  281. package/@ones-editor/misc/src/index.d.ts +2 -1
  282. package/@ones-editor/misc/src/is-secure-env.d.ts +1 -0
  283. package/@ones-editor/mobile-helper/package.json +9 -0
  284. package/@ones-editor/mobile-helper/src/index.d.ts +11 -0
  285. package/@ones-editor/paste-handler/src/paste-handler.d.ts +1 -1
  286. package/@ones-editor/paste-handler/src/text-data-converter.d.ts +2 -2
  287. package/@ones-editor/paste-special/src/index.d.ts +1 -0
  288. package/@ones-editor/paste-special/src/locale/en-us.d.ts +8 -0
  289. package/@ones-editor/paste-special/src/locale/index.d.ts +1 -0
  290. package/@ones-editor/paste-special/src/locale/ja-jp.d.ts +8 -0
  291. package/@ones-editor/paste-special/src/locale/zh-cn.d.ts +8 -0
  292. package/@ones-editor/paste-special/src/paste-special-handler.d.ts +2 -2
  293. package/@ones-editor/scroll-container/src/dom-utils.d.ts +8 -0
  294. package/@ones-editor/scroll-container/src/index.d.ts +8 -18
  295. package/@ones-editor/scroll-container/src/observer/container-resize-observer.d.ts +2 -1
  296. package/@ones-editor/scroll-container/src/observer/locating-resize-observer.d.ts +13 -0
  297. package/@ones-editor/scroll-container/src/scroll-listener.d.ts +3 -0
  298. package/@ones-editor/scroll-container/src/types.d.ts +3 -1
  299. package/@ones-editor/scroll-container/src/utils.d.ts +1 -0
  300. package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +3 -3
  301. package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +0 -1
  302. package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +25 -0
  303. package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +5 -4
  304. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +8 -2
  305. package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
  306. package/@ones-editor/sharedb-doc/src/types.d.ts +3 -2
  307. package/@ones-editor/table-block/src/constant/index.d.ts +1 -0
  308. package/@ones-editor/table-block/src/locale/en-us.d.ts +5 -0
  309. package/@ones-editor/table-block/src/locale/ja-jp.d.ts +27 -0
  310. package/@ones-editor/table-block/src/locale/zh-cn.d.ts +5 -0
  311. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar-handler.d.ts +14 -1
  312. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar-scroll.d.ts +2 -0
  313. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar.d.ts +1 -0
  314. package/@ones-editor/table-block/src/table-block/border-bar/table-row-column-toolbar.d.ts +1 -0
  315. package/@ones-editor/table-block/src/table-block/convert-table-to.d.ts +2 -0
  316. package/@ones-editor/table-block/src/table-block/doc-table-data.d.ts +2 -2
  317. package/@ones-editor/table-block/src/table-block/selection-range.d.ts +2 -1
  318. package/@ones-editor/table-block/src/table-block/table-creator/index.d.ts +1 -1
  319. package/@ones-editor/table-block/src/table-block/table-dom.d.ts +1 -0
  320. package/@ones-editor/table-block/src/table-block/table-resize/resize-gripper.d.ts +1 -1
  321. package/@ones-editor/table-block/src/table-block/table-scroll-events.d.ts +2 -0
  322. package/@ones-editor/table-block/src/types.d.ts +3 -0
  323. package/@ones-editor/tabs-block/package.json +8 -0
  324. package/@ones-editor/tabs-block/src/active-tab.d.ts +2 -0
  325. package/@ones-editor/tabs-block/src/create-empty-tabs.d.ts +8 -0
  326. package/@ones-editor/tabs-block/src/index.d.ts +4 -0
  327. package/@ones-editor/tabs-block/src/tabs-dom.d.ts +4 -0
  328. package/@ones-editor/tabs-block/src/tabs-object.d.ts +14 -0
  329. package/@ones-editor/tabs-block/src/tabs-options.d.ts +2 -0
  330. package/@ones-editor/tabs-block/src/types.d.ts +8 -0
  331. package/@ones-editor/templates/package.json +9 -0
  332. package/@ones-editor/templates/src/index.d.ts +4 -0
  333. package/@ones-editor/templates/src/locale/en-us.d.ts +9 -0
  334. package/@ones-editor/templates/src/locale/index.d.ts +1 -0
  335. package/@ones-editor/templates/src/locale/ja-jp.d.ts +9 -0
  336. package/@ones-editor/templates/src/locale/zh-cn.d.ts +9 -0
  337. package/@ones-editor/templates/src/templates/select-template.d.ts +7 -0
  338. package/@ones-editor/templates/src/templates/types.d.ts +14 -0
  339. package/@ones-editor/text-commands/src/index.d.ts +2 -1
  340. package/@ones-editor/text-commands/src/locale/en-us.d.ts +1 -14
  341. package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +13 -0
  342. package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +1 -14
  343. package/@ones-editor/text-commands/src/shortcut-handler.d.ts +2 -0
  344. package/@ones-editor/text-commands/src/text-command-provider.d.ts +1 -0
  345. package/@ones-editor/to-docx/src/doc2other/core.d.ts +1 -1
  346. package/@ones-editor/toc/src/build-toc.d.ts +4 -2
  347. package/@ones-editor/toc/src/heading-scroll/index.d.ts +22 -0
  348. package/@ones-editor/toc/src/heading-scroll/utils.d.ts +7 -0
  349. package/@ones-editor/toc/src/index.d.ts +3 -0
  350. package/@ones-editor/toc/src/locale/en-us.d.ts +6 -0
  351. package/@ones-editor/toc/src/locale/index.d.ts +1 -0
  352. package/@ones-editor/toc/src/locale/ja-jp.d.ts +6 -0
  353. package/@ones-editor/toc/src/locale/zh-cn.d.ts +6 -0
  354. package/@ones-editor/toc/src/toc-provider.d.ts +2 -1
  355. package/@ones-editor/toc/src/types.d.ts +3 -0
  356. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  357. package/@ones-editor/ui/src/index.d.ts +7 -3
  358. package/@ones-editor/ui/src/locale/en-us.d.ts +12 -20
  359. package/@ones-editor/ui/src/locale/ja-jp.d.ts +43 -0
  360. package/@ones-editor/ui/src/locale/zh-cn.d.ts +4 -12
  361. package/@ones-editor/ui/src/quick-menu/basic-commands.d.ts +5 -0
  362. package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +13 -12
  363. package/@ones-editor/ui/src/quick-menu/index.d.ts +7 -6
  364. package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -14
  365. package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +4 -2
  366. package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +4 -1
  367. package/@ones-editor/ui/src/quick-menu/types.d.ts +24 -1
  368. package/@ones-editor/ui/src/toolbar/box-only.d.ts +2 -0
  369. package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +1 -0
  370. package/@ones-editor/ui/src/toolbar/helper.d.ts +1 -1
  371. package/@ones-editor/ui/src/toolbar/object-commands.d.ts +5 -1
  372. package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +3 -1
  373. package/@ones-editor/ui/src/tooltips/index.d.ts +5 -1
  374. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +23 -13
  375. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +11 -2
  376. package/@ones-editor/ui-base/src/auto-suggest/editor-auto-suggest-menu.d.ts +12 -0
  377. package/@ones-editor/ui-base/src/auto-suggest/index.d.ts +2 -1
  378. package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +2 -0
  379. package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +9 -3
  380. package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +12 -0
  381. package/@ones-editor/ui-base/src/command-bar/index.d.ts +2 -1
  382. package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +6 -0
  383. package/@ones-editor/ui-base/src/command-bar/manual-command-bar.d.ts +2 -1
  384. package/@ones-editor/ui-base/src/command-bar/types.d.ts +11 -2
  385. package/@ones-editor/ui-base/src/components/button.d.ts +1 -1
  386. package/@ones-editor/ui-base/src/dialog/index.d.ts +1 -0
  387. package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +2 -1
  388. package/@ones-editor/ui-base/src/dialog/types.d.ts +4 -0
  389. package/@ones-editor/ui-base/src/dropdown/index.d.ts +43 -0
  390. package/@ones-editor/ui-base/src/icons/index.d.ts +7 -1
  391. package/@ones-editor/ui-base/src/index.d.ts +2 -0
  392. package/@ones-editor/ui-base/src/input/create-input.d.ts +1 -0
  393. package/@ones-editor/ui-base/src/item-shortcuts/index.d.ts +1 -0
  394. package/@ones-editor/ui-base/src/list/drop-down-filterable-list.d.ts +2 -2
  395. package/@ones-editor/ui-base/src/locale/en-us.d.ts +1 -0
  396. package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +12 -0
  397. package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +1 -0
  398. package/@ones-editor/versions/src/history-doc/history-doc.d.ts +4 -4
  399. package/@ones-editor/versions/src/index.d.ts +1 -1
  400. package/@ones-editor/versions/src/locale/en-us.d.ts +28 -0
  401. package/@ones-editor/versions/src/locale/ja-jp.d.ts +43 -0
  402. package/@ones-editor/versions/src/locale/zh-cn.d.ts +28 -0
  403. package/@ones-editor/versions/src/types.d.ts +8 -8
  404. package/@ones-editor/versions/src/utils/index.d.ts +2 -2
  405. package/@ones-editor/versions/src/version-dialog/index.d.ts +24 -2
  406. package/@ones-editor/versions/src/version-dialog/play-history.d.ts +1 -2
  407. package/@ones-editor/versions/src/version-dialog/size-limit-textarea.d.ts +23 -0
  408. package/@ones-editor/versions/src/version-dialog/version-helper.d.ts +3 -0
  409. package/@ones-editor/versions/src/version-dialog/version-info-header.d.ts +13 -0
  410. package/@ones-editor/versions/src/version-dialog/version-list.d.ts +21 -9
  411. package/@ones-editor/versions/src/version-dialog/versions-dropdown.d.ts +27 -0
  412. package/@ones-editor/webpage-embed/src/locale/en-us.d.ts +6 -0
  413. package/@ones-editor/webpage-embed/src/locale/ja-jp.d.ts +27 -0
  414. package/@ones-editor/webpage-embed/src/locale/zh-cn.d.ts +6 -0
  415. package/@ones-editor/webpage-embed/src/types.d.ts +3 -0
  416. package/@ones-editor/webpage-embed/src/ui/dialog.d.ts +2 -2
  417. package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +2 -14
  418. package/dist/comments/create-comment-editor.d.ts +4 -10
  419. package/dist/comments/local-doc-comments-provider.d.ts +19 -0
  420. package/dist/comments/{comments-provider.d.ts → sharedb-doc-comments-provider.d.ts} +5 -7
  421. package/dist/index.d.ts +24 -4
  422. package/dist/index.js +730 -29788
  423. package/dist/lang/en-us.d.ts +19 -0
  424. package/dist/lang/index.d.ts +1 -0
  425. package/dist/lang/ja-jp.d.ts +19 -0
  426. package/dist/lang/zh-cn.d.ts +19 -0
  427. package/dist/standard-components.d.ts +3 -0
  428. package/dist/types.d.ts +45 -5
  429. package/dist/versions/versions-provider.d.ts +1 -1
  430. package/package.json +7 -2
  431. package/@ones-editor/block-menu/src/icons/index.d.ts +0 -4
  432. package/@ones-editor/graph-embed/src/lang/utils.d.ts +0 -3
  433. package/@ones-editor/list-block/src/command/covert-to-list.d.ts +0 -3
  434. package/@ones-editor/versions/src/version-dialog/actions-buttons.d.ts +0 -17
  435. /package/@ones-editor/{core/src/utils/logger/fake-process.d.ts → block-locker/src/i18n/index.d.ts} +0 -0
  436. /package/@ones-editor/block-menu/src/block-menu-button/{drag-drop → drag-preview}/element-to-data-url.d.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  declare const _default: {
2
2
  image: {
3
+ title: string;
3
4
  upload: {
4
5
  failed: string;
5
6
  };
@@ -0,0 +1,7 @@
1
+ import { CloneBlockResultInfo, DocObject, OnesEditor, OnesEditorCustom, OnesEditorInputHandler } from '../../../@ones-editor/core';
2
+ export declare class ImagePasteHandler implements OnesEditorInputHandler, OnesEditorCustom {
3
+ private editor;
4
+ constructor(editor: OnesEditor);
5
+ handleAfterPasteDoc(editor: OnesEditor, doc: DocObject, cloneDocResult: CloneBlockResultInfo): Promise<boolean>;
6
+ destroy(): void;
7
+ }
@@ -0,0 +1,2 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function copyImage(editor: OnesEditor, event: ClipboardEvent | null): true | undefined;
@@ -0,0 +1,7 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ import { ImageObject } from '../image-object';
3
+ export declare function getImageClipboardData(editor: OnesEditor, img: HTMLImageElement, imageObject: ImageObject, index: number): readonly [{
4
+ [key: string]: Blob;
5
+ }, {
6
+ [key: string]: string;
7
+ }] | undefined;
@@ -1,3 +1,4 @@
1
- import { ShortcutRecords } from '../../../../@ones-editor/core';
1
+ import { OnesEditor, ShortcutRecords } from '../../../../@ones-editor/core';
2
+ declare function deleteImage(editor: OnesEditor): true | undefined;
2
3
  declare const ImageShortcuts: ShortcutRecords;
3
- export { ImageShortcuts, };
4
+ export { ImageShortcuts, deleteImage, };
@@ -1,6 +1,11 @@
1
- import { DocEmbedData, OnesEditorCustom, TextAlign } from '../../../@ones-editor/core';
1
+ import { DocEmbedData, OnesEditor, OnesEditorCustom, TextAlign } from '../../../@ones-editor/core';
2
2
  export interface ImageOptions {
3
3
  defaultAlign?: TextAlign;
4
+ allowedMedias?: string[];
5
+ maxSize?: number;
6
+ callbacks?: {
7
+ onError?: (editor: OnesEditor, error: Error) => void;
8
+ };
4
9
  }
5
10
  export interface ImageEmbedData extends DocEmbedData {
6
11
  src: string | string[];
@@ -10,7 +15,7 @@ export interface ImageEmbedData extends DocEmbedData {
10
15
  export interface ImageItemData {
11
16
  src: string;
12
17
  width: number;
13
- height: number;
18
+ height: number | 'auto';
14
19
  flex: number;
15
20
  virtualSize: boolean;
16
21
  downloading?: boolean;
@@ -26,4 +31,6 @@ export interface ImageObjectBase extends OnesEditorCustom {
26
31
  requestUploadImage: (index: number) => Promise<void>;
27
32
  setResizing: (resizing: boolean) => void;
28
33
  resetFlex: () => void;
34
+ setAutoFix: (val: boolean) => void;
35
+ isAutoFix: () => boolean;
29
36
  }
@@ -2,5 +2,6 @@ export interface EnforceWithDocumentTitleHandlerOptions {
2
2
  headingLevel?: number;
3
3
  titlePlaceholder?: string;
4
4
  contentPlaceholder?: string | Element;
5
+ readonlyTitlePlaceholder?: string;
5
6
  addPlaceholderToAllCurrentEmptyBlock?: boolean;
6
7
  }
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  list: string;
6
6
  mention: string;
7
7
  quote: string;
8
+ title: string;
8
9
  };
9
10
  };
10
11
  export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ placeholder: {
3
+ default: string;
4
+ heading: string;
5
+ list: string;
6
+ mention: string;
7
+ quote: string;
8
+ title: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  list: string;
6
6
  mention: string;
7
7
  quote: string;
8
+ title: string;
8
9
  };
9
10
  };
10
11
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function convertToTable(editor: OnesEditor, containerId: string, blockIndex: number, offset: number): boolean;
@@ -0,0 +1,2 @@
1
+ import { BlockPath, DocBlock, DocObject, OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function convertListTo(editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'html' | 'text' | 'markdown', path: BlockPath): string;
@@ -0,0 +1,14 @@
1
+ import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
+ import { DocListBlock, ListBlockType } from '../types';
3
+ type ConvertToListData = {
4
+ listType?: ListBlockType;
5
+ };
6
+ export declare function findNearestList(srcBlock: BlockElement, type: ListBlockType): BlockElement | null;
7
+ export declare function convertToList(editor: OnesEditor, srcBlock: BlockElement, options: {
8
+ offset: number;
9
+ data?: ConvertToListData;
10
+ }): {
11
+ blockData: DocListBlock;
12
+ onConverted: (editor: OnesEditor, block: BlockElement) => void;
13
+ } | null;
14
+ export {};
@@ -1,14 +1,2 @@
1
- import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
- import { DocListBlock, ListBlockType } from '../types';
3
- type ConvertToListData = {
4
- listType?: ListBlockType;
5
- };
6
- export declare function findNearestList(srcBlock: BlockElement, type: ListBlockType): BlockElement | null;
7
- export declare function convertToList(editor: OnesEditor, srcBlock: BlockElement, options: {
8
- offset: number;
9
- data?: ConvertToListData;
10
- }): {
11
- blockData: DocListBlock;
12
- onConverted: (editor: OnesEditor, block: BlockElement) => void;
13
- } | null;
14
- export {};
1
+ export * from './convert-to-list';
2
+ export * from './convert-list-to';
@@ -1,2 +1,2 @@
1
1
  import { OnesEditor, BlockElement, DragObject, DropInsertPos, DropOptions } from '../../../../@ones-editor/core';
2
- export declare function handleListDrop(editor: OnesEditor, block: BlockElement, dragObject: DragObject, insertPos: DropInsertPos, options: DropOptions): boolean;
2
+ export declare function handleListDrop(editor: OnesEditor, block: BlockElement, dragData: DragObject | File[], insertPos: DropInsertPos, options: DropOptions): boolean;
@@ -1,9 +1,12 @@
1
1
  import { TextKindBlock } from '../../../@ones-editor/core';
2
2
  import OnesEditorListMindmap from './mindmap';
3
+ import { toMindmap } from './mindmap/to-mindmap';
4
+ import { Mindmap } from './mindmap/mindmap';
5
+ import { resetListStart } from './start/reset-list-start';
6
+ import { getListAllNextBrothers } from './utils/list-brother';
3
7
  import './lang';
4
8
  import './style.scss';
5
- export { type ListOptions } from './types';
9
+ export { type ListOptions, type DocListBlock } from './types';
6
10
  declare const ListBlock: TextKindBlock;
7
- export * from './command/covert-to-list';
8
11
  export * from './keyboard/to-text-block';
9
- export { ListBlock, OnesEditorListMindmap, };
12
+ export { ListBlock, OnesEditorListMindmap, Mindmap, resetListStart, getListAllNextBrothers, toMindmap, };
@@ -6,6 +6,9 @@ declare const _default: {
6
6
  restartList: string;
7
7
  changeNumber: string;
8
8
  numberLabel: string;
9
+ mention: {
10
+ tooltip: string;
11
+ };
9
12
  };
10
13
  mindmap: {
11
14
  viewAsMindMap: string;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ list: {
3
+ confirm: string;
4
+ setStart: string;
5
+ continueList: string;
6
+ restartList: string;
7
+ changeNumber: string;
8
+ numberLabel: string;
9
+ mention: {
10
+ tooltip: string;
11
+ };
12
+ };
13
+ mindmap: {
14
+ viewAsMindMap: string;
15
+ autoFit: string;
16
+ fullScreen: string;
17
+ close: string;
18
+ exitFullscreen: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -6,6 +6,9 @@ declare const _default: {
6
6
  restartList: string;
7
7
  changeNumber: string;
8
8
  numberLabel: string;
9
+ mention: {
10
+ tooltip: string;
11
+ };
9
12
  };
10
13
  mindmap: {
11
14
  viewAsMindMap: string;
@@ -0,0 +1,2 @@
1
+ import { OnesEditor, SelectedBlock } from '../../../../@ones-editor/core';
2
+ export declare function changeMultiBlockLevels(editor: OnesEditor, blocks: SelectedBlock[], type: 'increase' | 'decrease'): boolean;
@@ -1,2 +1,3 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function canDecreaseListBlockLevel(editor: OnesEditor, block: BlockElement): boolean;
2
3
  export declare function decreaseListBlockLevel(editor: OnesEditor, block: BlockElement): boolean;
@@ -7,6 +7,7 @@ export default class CustomizeListStartDialog implements OnesEditorCustom {
7
7
  destroy(): void;
8
8
  show: (editor: OnesEditor, block: BlockElement) => void;
9
9
  private createDialogContent;
10
+ private createNumericInput;
10
11
  private handleDialogShow;
11
12
  private handleOk;
12
13
  private handleKeydown;
@@ -2,7 +2,7 @@ import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../../@ones-ed
2
2
  import './mindmap.scss';
3
3
  export default class OnesEditorListMindmap implements OnesEditorCustom {
4
4
  private editor;
5
- toMindmapButton: HTMLButtonElement;
5
+ toMindmapButton: HTMLElement;
6
6
  currentBlock: BlockElement | null;
7
7
  constructor(editor: OnesEditor);
8
8
  static get(editor: OnesEditor): OnesEditorListMindmap | null;
@@ -1,2 +1,3 @@
1
1
  import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
2
+ export declare function clearMindmap(editor: OnesEditor, block: BlockElement): Promise<void>;
2
3
  export declare function closeMindmap(editor: OnesEditor, block: BlockElement): Promise<void>;
@@ -1,2 +1,4 @@
1
1
  import type { OnesEditor } from '../../../../../@ones-editor/core';
2
- export declare function createToMindmapButton(editor: OnesEditor): HTMLButtonElement;
2
+ import { toMindmap } from './to-mindmap';
3
+ export declare function createToMindmapButton(editor: OnesEditor): HTMLDivElement;
4
+ export { toMindmap, };
@@ -11,3 +11,12 @@ export declare class FixStartByList {
11
11
  constructor(editor: OnesEditor, list: BlockElement, options?: FixStartByListOptions | undefined);
12
12
  fix(): void;
13
13
  }
14
+ export declare class FixStartByBlock {
15
+ private editor;
16
+ listStart: number;
17
+ listNextBrothers: BlockElement[];
18
+ constructor(editor: OnesEditor, block: BlockElement, options?: FixStartByListOptions & {
19
+ start: number;
20
+ });
21
+ fix(): void;
22
+ }
@@ -1,5 +1,6 @@
1
- import { BlockElement, CommandItem, DocBlock, OnesEditor } from '../../../@ones-editor/core';
1
+ import { BlockElement, CommandItem, DocBlock, DocBlockText, OnesEditor } from '../../../@ones-editor/core';
2
2
  export interface DocListBlock extends DocBlock {
3
+ text: DocBlockText;
3
4
  level: number;
4
5
  start: number;
5
6
  ordered: boolean;
@@ -1,5 +1,9 @@
1
1
  import { BlockElement } from '../../../../@ones-editor/core';
2
- export declare function getListPrevBrother(block: BlockElement): BlockElement | null;
2
+ export interface GetListBrotherOptions {
3
+ ignoreGroupId: boolean;
4
+ }
5
+ export declare function getListPrevBrother(block: BlockElement, options?: GetListBrotherOptions): BlockElement | null;
6
+ export declare function getListPrevBrotherIgnoreGroupId(block: BlockElement): BlockElement | null;
3
7
  export declare function getListNextBrother(block: BlockElement): BlockElement | null;
4
8
  export declare function getListAllPrevBrothers(block: BlockElement): BlockElement[];
5
9
  export declare function getListAllNextBrothers(block: BlockElement): BlockElement[];
@@ -1,4 +1,5 @@
1
1
  import { DocObject } from '../../../@ones-editor/core';
2
+ import './types/marked-extended-latex.d';
2
3
  export { getBlocksWidth } from './tokens/block-tokens/table';
3
4
  interface MarkdownToDocOptions {
4
5
  font?: string | Element;
@@ -0,0 +1,4 @@
1
+ import { DocBlock } from '../../../../../@ones-editor/core';
2
+ export declare function latexToBlocks(token: {
3
+ formula: string;
4
+ }): DocBlock[];
@@ -2,3 +2,4 @@ import { marked } from 'marked';
2
2
  import { DocBlock } from '../../../../../@ones-editor/core';
3
3
  import { TokenToBlockOptions } from '../base';
4
4
  export declare function paragraphToBlocks(token: marked.Tokens.Paragraph, options: TokenToBlockOptions): DocBlock[];
5
+ export declare function textToBlocks(token: marked.Tokens.Text, options: TokenToBlockOptions): DocBlock[];
@@ -4,5 +4,8 @@
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
7
+ "devDependencies": {
8
+ "@types/lodash.debounce": "^4.0.7"
9
+ },
7
10
  "types": "src/index.d.ts"
8
11
  }
@@ -3,4 +3,5 @@ import { createEmptyMathjaxBox, editMathjaxBox } from './mathjax-box/mathjax-box
3
3
  import MathjaxEmbed from './mathjax-embed';
4
4
  import './mathjax-style.scss';
5
5
  import './locale';
6
- export { MathjaxBox, MathjaxEmbed, createEmptyMathjaxBox, editMathjaxBox, };
6
+ import ConvertEmptyMathjaxBoxInputHandler from './mathjax-box/convert-mathjax';
7
+ export { MathjaxBox, MathjaxEmbed, createEmptyMathjaxBox, editMathjaxBox, ConvertEmptyMathjaxBoxInputHandler, };
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ mathjax: {
3
+ emptyText: string;
4
+ abstract: string;
5
+ };
6
+ };
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { OnesEditor, OnesEditorInputHandler } from '../../../../@ones-editor/core';
2
+ declare class ConvertEmptyMathjaxBoxInputHandler implements OnesEditorInputHandler {
3
+ handleAfterInsertText(editor: OnesEditor, containerId: string, blockIndex: number, offset: number, text: string): boolean;
4
+ }
5
+ export default ConvertEmptyMathjaxBoxInputHandler;
@@ -1,3 +1,3 @@
1
1
  import { OnesEditor } from '../../../../@ones-editor/core';
2
- export type OnEditFinished = (tex: string) => void;
3
- export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string, onFinished: OnEditFinished): void;
2
+ export type OnEditChange = (tex: string, end: boolean) => void;
3
+ export declare function editMathjax(editor: OnesEditor, elem: HTMLElement, tex: string, onChange: OnEditChange): void;
@@ -1,15 +1,15 @@
1
- import { InsertEmptyBlockOptions, DocEmbedBlock, DocEmbedData } from '../../../../@ones-editor/core';
1
+ import { InsertEmptyBlockOptions, DocEmbedBlock, DocEmbedData, DocObject } from '../../../../@ones-editor/core';
2
2
  import type { Embed, OnesEditor, BlockContentElement, BlockElement } from '../../../../@ones-editor/core';
3
3
  import { MediaType } from '../constant';
4
4
  import { Media } from './media';
5
5
  import type { MediaAbstract, MediaBlockData } from '../types';
6
6
  export declare abstract class MediaEmbed implements Embed {
7
7
  abstract embedType: MediaType;
8
- abstract abstract: MediaAbstract;
9
8
  abstract createMediaElement(editor: OnesEditor, mediaElement: HTMLElement, blockData: MediaBlockData, url: string): HTMLMediaElement;
10
9
  abstract updateMediaElement(editor: OnesEditor, mediaElement: HTMLElement, blockData: MediaBlockData, url: string): HTMLMediaElement;
11
10
  abstract createProgressElement(parent: HTMLElement, val: number, file: File): void;
12
11
  abstract updateProgressElement(parent: HTMLElement, val: number): void;
12
+ abstract getAbstract(): MediaAbstract;
13
13
  getMedia(editor: OnesEditor, id: string): Media;
14
14
  handleInsertEmptyEmbed: (editor: OnesEditor, options: InsertEmptyBlockOptions) => Promise<BlockElement | null>;
15
15
  getOptions(): {
@@ -20,10 +20,12 @@ export declare abstract class MediaEmbed implements Embed {
20
20
  icon: string;
21
21
  order: number;
22
22
  group: string;
23
+ subText: string;
23
24
  }[];
24
25
  handleInsertEmptyEmbed: (editor: OnesEditor, options: InsertEmptyBlockOptions) => Promise<BlockElement | null>;
25
26
  };
26
27
  createEmbedContent(editor: OnesEditor, content: BlockContentElement, blockData: DocEmbedBlock<DocEmbedData>): void;
27
28
  handleUpdateBlock(editor: OnesEditor, block: BlockElement, blockData: DocEmbedBlock<DocEmbedData>): boolean;
28
29
  handleDeleteBlock(editor: OnesEditor, block: BlockElement): void;
30
+ convertTo(editor: OnesEditor, blockData: DocEmbedBlock, doc: DocObject, type: 'html' | 'text' | 'markdown'): string;
29
31
  }
@@ -1,6 +1,10 @@
1
- import type { BlockContentElement } from '../../../../@ones-editor/core';
1
+ import type { OnesEditor, BlockContentElement } from '../../../../@ones-editor/core';
2
+ import { TypedEmitter } from 'tiny-typed-emitter';
2
3
  import type { MediaOptions, MediaBlockData, MediaAbstract } from '../types';
3
- export declare class Media {
4
+ export interface MediaEvent {
5
+ mediaError: (editor: OnesEditor, type: 'upload_error' | 'load_error' | 'empty', blockId: string) => void;
6
+ }
7
+ export declare class Media extends TypedEmitter<MediaEvent> {
4
8
  private options;
5
9
  private mediaContainer;
6
10
  private media;
@@ -14,10 +18,12 @@ export declare class Media {
14
18
  private renderRetry;
15
19
  private renderProgress;
16
20
  private renderMediaElement;
17
- private handleRetry;
18
21
  handleUploadFile: (file: File) => Promise<void>;
19
- renderEmpty(): void;
22
+ renderEmpty(blockData: MediaBlockData): void;
20
23
  getResourceUrl(url: string): string;
24
+ setFullScreen(): void;
25
+ removeFullScreen(): void;
26
+ updateBlockAlign(blockData: MediaBlockData, content: BlockContentElement): void;
21
27
  render(blockData: MediaBlockData, content: BlockContentElement): void;
22
28
  setAbstract(abstract: MediaAbstract): void;
23
29
  destroy: () => void;
@@ -7,6 +7,7 @@ export default class VideoResizer {
7
7
  destroy(): void;
8
8
  private handleHoveringBlockChange;
9
9
  private getVideoElement;
10
+ updateResizer(block: BlockElement): void;
10
11
  disableBlockResize(block: BlockElement): void;
11
12
  enableBlockResize(block: BlockElement, resizableElement: HTMLElement): void;
12
13
  private handleResizing;
@@ -0,0 +1,19 @@
1
+ declare const _default: {
2
+ media: {
3
+ upload: {
4
+ failed: string;
5
+ };
6
+ load: {
7
+ failed: string;
8
+ };
9
+ audio: {
10
+ menuItem: string;
11
+ abstract: string;
12
+ };
13
+ video: {
14
+ menuItem: string;
15
+ abstract: string;
16
+ };
17
+ };
18
+ };
19
+ export default _default;
@@ -1,6 +1,5 @@
1
1
  import type { OnesEditor } from '../../../../@ones-editor/core';
2
2
  import { MediaType } from '../constant';
3
- export declare function getFileExt(file: File): string;
4
3
  export declare function getAccepts(editor: OnesEditor, mediaType: MediaType): string;
5
- export declare function verifyFile(file: File, editor: OnesEditor, mediaType: MediaType): true | Error;
4
+ export declare function verifyFile(file: File, editor: OnesEditor, mediaType: MediaType): void;
6
5
  export declare function isReservedMediaSrc(src: string): boolean;
@@ -0,0 +1,10 @@
1
+ import type { OnesEditorCustom, OnesEditor } from '../../../@ones-editor/core';
2
+ export default class OnesEditorBlockMention implements OnesEditorCustom {
3
+ private editor;
4
+ mentionButton: HTMLElement;
5
+ constructor(editor: OnesEditor);
6
+ private shouldBlockShowMention;
7
+ private handleHoveringBlock;
8
+ private handleMouseDown;
9
+ destroy: () => void;
10
+ }
@@ -0,0 +1,2 @@
1
+ import type { OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function createMentionButton(editor: OnesEditor): HTMLDivElement;
@@ -1,5 +1,7 @@
1
1
  import OnesEditorMention from './mention';
2
2
  import MentionBox from './mention-box';
3
+ import OnesEditorBlockMention from './block-mention';
3
4
  import './mention-style.scss';
4
- export { OnesEditorMention, MentionBox };
5
+ import './locale';
6
+ export { OnesEditorMention, MentionBox, OnesEditorBlockMention };
5
7
  export * from './types';
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ mention: {
3
+ abstract: string;
4
+ };
5
+ };
6
+ export default _default;
@@ -1,19 +1,12 @@
1
1
  import { CommandItem, OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
2
2
  import { AutoSuggestAnchor, OnesEditorAutoSuggest } from '../../../@ones-editor/ui-base';
3
- export type OnesEditorMentionUser = {
4
- userId: string;
5
- displayName: string;
6
- avatarUrl: string;
7
- element?: HTMLElement;
8
- };
9
- export type MentionOptions = {
10
- queryUsers: (editor: OnesEditor, text: string) => Promise<OnesEditorMentionUser[]>;
11
- };
3
+ import { MentionOptions } from './types';
12
4
  export default class OnesEditorMention implements OnesEditorCustom {
13
5
  private editor;
14
6
  private options;
15
7
  suggest: OnesEditorAutoSuggest;
16
8
  constructor(editor: OnesEditor, options: MentionOptions);
9
+ onClose: () => void;
17
10
  destroy(): void;
18
11
  onShow: (suggest: OnesEditorAutoSuggest, containerId: string, blockIndex: number, offset: number) => boolean;
19
12
  onClickItem: (menu: OnesEditorAutoSuggest, item: CommandItem, anchor: AutoSuggestAnchor) => void;
@@ -1,6 +1,17 @@
1
- import { DocBox } from '../../../@ones-editor/core';
1
+ import { DocBox, OnesEditor } from '../../../@ones-editor/core';
2
2
  export interface MentionBoxData extends DocBox {
3
3
  iconUrl: string;
4
4
  text: string;
5
5
  mentionId: string;
6
6
  }
7
+ export type OnesEditorMentionUser = {
8
+ userId: string;
9
+ displayName: string;
10
+ avatarUrl: string;
11
+ element?: HTMLElement;
12
+ email?: string;
13
+ };
14
+ export type MentionOptions = {
15
+ enableFirstBlock?: boolean;
16
+ queryUsers: (editor: OnesEditor, text: string) => Promise<OnesEditorMentionUser[]>;
17
+ };
@@ -1,3 +1,4 @@
1
- export * from './image-downloader';
2
1
  export * from './image';
3
2
  export * from './title';
3
+ export * from './is-secure-env';
4
+ export * from './image-downloader';
@@ -0,0 +1 @@
1
+ export declare function isSecureEnv(): boolean;
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@ones-editor/mobile-helper",
3
+ "version": "1.0.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "./src/index.ts",
7
+ "devDependencies": {},
8
+ "types": "src/index.d.ts"
9
+ }
@@ -0,0 +1,11 @@
1
+ import { OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
2
+ export declare class OnesEditorMobileHelper implements OnesEditorCustom {
3
+ private editor;
4
+ private longPressTimeout;
5
+ constructor(editor: OnesEditor);
6
+ destroy(): void;
7
+ handleSelectionChange: () => void;
8
+ handleLongPress: (event: TouchEvent) => void;
9
+ handleTouchStart: (event: TouchEvent) => void;
10
+ handleTouchEnd: (event: TouchEvent) => void;
11
+ }
@@ -1,6 +1,6 @@
1
1
  import { OnesEditor, OnesEditorDocs, OnesEditorInputHandler } from '../../../@ones-editor/core';
2
2
  export default class OnesEditorPasteHandler implements OnesEditorInputHandler {
3
3
  constructor(editor: OnesEditor);
4
- handleBeforePaste(editor: OnesEditor, event: ClipboardEvent, docs: OnesEditorDocs): Promise<boolean>;
4
+ handleBeforePaste(editor: OnesEditor, event: ClipboardEvent | null, docs: OnesEditorDocs): Promise<boolean>;
5
5
  handleInsertImages(editor: OnesEditor, images: File[]): Promise<void>;
6
6
  }
@@ -1,4 +1,4 @@
1
- import { OnesEditor, OnesEditorDataConverter, OnesEditorDocs } from '../../../@ones-editor/core';
1
+ import { OnesEditor, OnesEditorDataConverter, OnesEditorDocs, PasteOptions } from '../../../@ones-editor/core';
2
2
  export declare class TextDataConverter implements OnesEditorDataConverter {
3
- fromData(editor: OnesEditor, data: DataTransfer): Promise<OnesEditorDocs | undefined>;
3
+ fromData(editor: OnesEditor, data: DataTransfer, options?: PasteOptions): Promise<OnesEditorDocs | undefined>;
4
4
  }
@@ -1,3 +1,4 @@
1
1
  import PasteSpecialHandler from './paste-special-handler';
2
+ import './locale';
2
3
  import './style.scss';
3
4
  export { PasteSpecialHandler };
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ pasteSpecial: {
3
+ originFormats: string;
4
+ plainText: string;
5
+ markdown: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};