@ones-editor/editor 0.0.3 → 0.0.4

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 (432) 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 +2 -1
  4. package/@ones-editor/block-locker/src/i18n/en-US.d.ts +8 -0
  5. package/@ones-editor/block-locker/src/i18n/index.d.ts +1 -0
  6. package/@ones-editor/block-locker/src/i18n/ja-JP.d.ts +8 -0
  7. package/@ones-editor/block-locker/src/i18n/zh-CN.d.ts +8 -0
  8. package/@ones-editor/block-locker/src/index.d.ts +4 -1
  9. package/@ones-editor/block-locker/src/paste-handler.d.ts +4 -0
  10. package/@ones-editor/block-menu/src/block-menu/index.d.ts +3 -1
  11. package/@ones-editor/block-menu/src/block-menu/items/block-command-items.d.ts +1 -1
  12. package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +3 -2
  13. package/@ones-editor/block-menu/src/block-menu/items/text-styles/text-style-item.d.ts +3 -0
  14. package/@ones-editor/block-menu/src/block-menu-button/drag-drop/drag-handler.d.ts +5 -4
  15. package/@ones-editor/block-menu/src/block-menu-button/drag-drop/find-preview-element.d.ts +1 -1
  16. package/@ones-editor/block-menu/src/block-menu-button/drag-preview/index.d.ts +2 -2
  17. package/@ones-editor/block-menu/src/locale/en-us.d.ts +4 -0
  18. package/@ones-editor/block-menu/src/locale/ja-jp.d.ts +25 -0
  19. package/@ones-editor/block-menu/src/locale/zh-cn.d.ts +4 -0
  20. package/@ones-editor/block-resizer/src/index.d.ts +1 -0
  21. package/@ones-editor/code-block/src/code-block/caption/caption-input-handler.d.ts +2 -2
  22. package/@ones-editor/code-block/src/code-block/child-container.d.ts +2 -2
  23. package/@ones-editor/code-block/src/code-block/code-caret.d.ts +7 -0
  24. package/@ones-editor/code-block/src/code-block/code-copy.d.ts +4 -0
  25. package/@ones-editor/code-block/src/code-block/create-empty-code.d.ts +2 -2
  26. package/@ones-editor/code-block/src/code-block/index.d.ts +3 -1
  27. package/@ones-editor/code-block/src/code-block/settings/index.d.ts +3 -0
  28. package/@ones-editor/code-block/src/code-block/types.d.ts +3 -0
  29. package/@ones-editor/code-block/src/icons/copy.d.ts +1 -1
  30. package/@ones-editor/code-block/src/icons/wrap.d.ts +1 -1
  31. package/@ones-editor/code-block/src/index.d.ts +2 -0
  32. package/@ones-editor/code-block/src/locale/en-us.d.ts +5 -0
  33. package/@ones-editor/code-block/src/locale/ja-jp.d.ts +12 -0
  34. package/@ones-editor/code-block/src/locale/zh-cn.d.ts +5 -0
  35. package/@ones-editor/column-block/package.json +8 -0
  36. package/@ones-editor/column-block/src/child-containers.d.ts +2 -0
  37. package/@ones-editor/column-block/src/columns-options.d.ts +2 -0
  38. package/@ones-editor/column-block/src/columns-properties.d.ts +15 -0
  39. package/@ones-editor/column-block/src/index.d.ts +4 -0
  40. package/@ones-editor/column-block/src/types.d.ts +11 -0
  41. package/@ones-editor/comments/src/actions/add-comment-to-block.d.ts +3 -2
  42. package/@ones-editor/comments/src/actions/add-comment-to-text-block.d.ts +2 -1
  43. package/@ones-editor/comments/src/actions/editor-add-comment.d.ts +2 -0
  44. package/@ones-editor/comments/src/comment-input-handler/paste-handler.d.ts +5 -0
  45. package/@ones-editor/comments/src/comment-item/comment-item.d.ts +2 -0
  46. package/@ones-editor/comments/src/comment-item/mobile-comment-item/mobile-comment-item.d.ts +1 -0
  47. package/@ones-editor/comments/src/comments/comments.d.ts +4 -4
  48. package/@ones-editor/comments/src/comments-helper/active-comment.d.ts +1 -1
  49. package/@ones-editor/comments/src/comments-helper/utils.d.ts +1 -1
  50. package/@ones-editor/comments/src/comments-list/arrange-items.d.ts +1 -1
  51. package/@ones-editor/comments/src/comments-list/comments-list.d.ts +3 -11
  52. package/@ones-editor/comments/src/comments-list/group-item.d.ts +1 -0
  53. package/@ones-editor/comments/src/comments-list/group-list.d.ts +6 -4
  54. package/@ones-editor/comments/src/comments-list/mini-comment/group-list.d.ts +1 -0
  55. package/@ones-editor/comments/src/comments-list/mini-comment/mini-comments-list.d.ts +1 -4
  56. package/@ones-editor/comments/src/comments-list/mobile-comments-list/group-list.d.ts +1 -0
  57. package/@ones-editor/comments/src/comments-list/mobile-comments-list/mobile-comments-list.d.ts +5 -3
  58. package/@ones-editor/comments/src/index.d.ts +1 -0
  59. package/@ones-editor/comments/src/locale/en-us.d.ts +2 -0
  60. package/@ones-editor/comments/src/locale/ja-jp.d.ts +3 -0
  61. package/@ones-editor/comments/src/locale/zh-cn.d.ts +3 -0
  62. package/@ones-editor/comments/src/text-comments/comments-command-provider.d.ts +1 -0
  63. package/@ones-editor/comments/src/types.d.ts +16 -4
  64. package/@ones-editor/core/src/core/block-renderers/standard-block-render.d.ts +2 -0
  65. package/@ones-editor/core/src/core/blocks/block-anchor/create-block-anchor.d.ts +1 -0
  66. package/@ones-editor/core/src/core/blocks/common/block-dom.d.ts +2 -0
  67. package/@ones-editor/core/src/core/blocks/common/block-properties.d.ts +7 -1
  68. package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +4 -4
  69. package/@ones-editor/core/src/core/blocks/text-blocks/index.d.ts +1 -0
  70. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-markdown.d.ts +3 -0
  71. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-html.d.ts +3 -0
  72. package/@ones-editor/core/src/core/blocks/text-blocks/text-block/to-plain-text.d.ts +3 -0
  73. package/@ones-editor/core/src/core/boxes/anchor-box/index.d.ts +3 -0
  74. package/@ones-editor/core/src/core/boxes/editor-boxes.d.ts +1 -0
  75. package/@ones-editor/core/src/core/boxes/image-box/index.d.ts +3 -0
  76. package/@ones-editor/core/src/core/boxes/index.d.ts +3 -1
  77. package/@ones-editor/core/src/core/composition/clipboard/copy.d.ts +3 -2
  78. package/@ones-editor/core/src/core/composition/clipboard/cut.d.ts +1 -1
  79. package/@ones-editor/core/src/core/composition/clipboard/paste.d.ts +2 -2
  80. package/@ones-editor/core/src/core/composition/editor-input.d.ts +6 -1
  81. package/@ones-editor/core/src/core/composition/index.d.ts +1 -1
  82. package/@ones-editor/core/src/core/containers/root-container.d.ts +3 -1
  83. package/@ones-editor/core/src/core/converter/block-to-html.d.ts +2 -2
  84. package/@ones-editor/core/src/core/converter/block-to-markdown.d.ts +2 -2
  85. package/@ones-editor/core/src/core/converter/block-to-text.d.ts +2 -2
  86. package/@ones-editor/core/src/core/data-converter/editor-data-converter.d.ts +4 -2
  87. package/@ones-editor/core/src/core/doc/doc.d.ts +18 -3
  88. package/@ones-editor/core/src/core/doc/rich-text/insert-text.d.ts +2 -1
  89. package/@ones-editor/core/src/core/doc/to-plain-text.d.ts +1 -0
  90. package/@ones-editor/core/src/core/editor/actions/add-text-attribute.d.ts +2 -2
  91. package/@ones-editor/core/src/core/editor/actions/auto-insert-block.d.ts +2 -2
  92. package/@ones-editor/core/src/core/editor/actions/break-text-block.d.ts +2 -0
  93. package/@ones-editor/core/src/core/editor/actions/delete-block-text.d.ts +2 -2
  94. package/@ones-editor/core/src/core/editor/actions/focus-to-end.d.ts +0 -1
  95. package/@ones-editor/core/src/core/editor/actions/insert-block.d.ts +2 -2
  96. package/@ones-editor/core/src/core/editor/actions/insert-text.d.ts +3 -2
  97. package/@ones-editor/core/src/core/editor/actions/is-writable.d.ts +1 -1
  98. package/@ones-editor/core/src/core/editor/editor-dom/dom-events.d.ts +2 -2
  99. package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +10 -4
  100. package/@ones-editor/core/src/core/index.d.ts +1 -0
  101. package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +5 -1
  102. package/@ones-editor/core/src/core/input-handler/remove-quoted.d.ts +2 -0
  103. package/@ones-editor/core/src/core/selection/actions/index.d.ts +2 -2
  104. package/@ones-editor/core/src/core/selection/actions/select-all.d.ts +3 -1
  105. package/@ones-editor/core/src/core/selection/actions/select-block.d.ts +2 -0
  106. package/@ones-editor/core/src/core/selection/actions/word-offset.d.ts +1 -1
  107. package/@ones-editor/core/src/core/selection/editor-selection.d.ts +3 -2
  108. package/@ones-editor/core/src/core/selection/index.d.ts +1 -0
  109. package/@ones-editor/core/src/core/selection/range/simple-range.d.ts +2 -1
  110. package/@ones-editor/core/src/core/selection/select-handler.d.ts +5 -1
  111. package/@ones-editor/core/src/core/settings/index.d.ts +3 -3
  112. package/@ones-editor/core/src/core/types.d.ts +69 -28
  113. package/@ones-editor/core/src/core/undo-manager/actions/action.d.ts +4 -1
  114. package/@ones-editor/core/src/helper/block-helper.d.ts +1 -1
  115. package/@ones-editor/core/src/helper/find-block.d.ts +3 -0
  116. package/@ones-editor/core/src/helper/index.d.ts +1 -0
  117. package/@ones-editor/core/src/i18n/en-us.d.ts +3 -0
  118. package/@ones-editor/core/src/i18n/i18n.d.ts +63 -1
  119. package/@ones-editor/core/src/i18n/ja-jp.d.ts +20 -0
  120. package/@ones-editor/core/src/i18n/zh-cn.d.ts +3 -0
  121. package/@ones-editor/core/src/local-doc/index.d.ts +11 -3
  122. package/@ones-editor/core/src/utils/abbreviation.d.ts +27 -0
  123. package/@ones-editor/core/src/utils/client.d.ts +1 -0
  124. package/@ones-editor/core/src/utils/dom-scroll.d.ts +3 -1
  125. package/@ones-editor/core/src/utils/dom.d.ts +3 -0
  126. package/@ones-editor/core/src/utils/file.d.ts +3 -0
  127. package/@ones-editor/core/src/utils/index.d.ts +2 -0
  128. package/@ones-editor/core/src/utils/logger/index.d.ts +9 -0
  129. package/@ones-editor/core/src/utils/overflow-text.d.ts +1 -0
  130. package/@ones-editor/details-block/package.json +8 -0
  131. package/@ones-editor/details-block/src/auto-expand.d.ts +7 -0
  132. package/@ones-editor/details-block/src/create-empty-details.d.ts +8 -0
  133. package/@ones-editor/details-block/src/details-dom.d.ts +3 -0
  134. package/@ones-editor/details-block/src/details-object.d.ts +11 -0
  135. package/@ones-editor/details-block/src/details-options.d.ts +2 -0
  136. package/@ones-editor/details-block/src/index.d.ts +4 -0
  137. package/@ones-editor/details-block/src/types.d.ts +5 -0
  138. package/@ones-editor/details-block/src/update-expand.d.ts +3 -0
  139. package/@ones-editor/dividing-line-embed/src/i18n/en-us.d.ts +1 -0
  140. package/@ones-editor/dividing-line-embed/src/i18n/ja-jp.d.ts +7 -0
  141. package/@ones-editor/dividing-line-embed/src/i18n/zh-cn.d.ts +1 -0
  142. package/@ones-editor/drawio-embed/src/drawio-embed.d.ts +1 -0
  143. package/@ones-editor/drawio-embed/src/helper/index.d.ts +16 -10
  144. package/@ones-editor/drawio-embed/src/lang/en-us.d.ts +9 -4
  145. package/@ones-editor/drawio-embed/src/lang/index.d.ts +1 -1
  146. package/@ones-editor/drawio-embed/src/lang/ja-jp.d.ts +12 -0
  147. package/@ones-editor/drawio-embed/src/lang/zh-cn.d.ts +9 -4
  148. package/@ones-editor/drawio-embed/types/index.d.ts +4 -4
  149. package/@ones-editor/drop-target/src/drop-indicator.d.ts +1 -0
  150. package/@ones-editor/drop-target/src/drop-target.d.ts +3 -1
  151. package/@ones-editor/drop-target/src/handlers/drag-file.d.ts +7 -0
  152. package/@ones-editor/drop-target/src/handlers/patch-insert-file.d.ts +2 -0
  153. package/@ones-editor/drop-target/src/index.d.ts +2 -1
  154. package/@ones-editor/embed-block-helper/src/block-properties/embed-block-properties.d.ts +3 -1
  155. package/@ones-editor/embed-block-helper/src/block-resizer/index.d.ts +14 -0
  156. package/@ones-editor/embed-block-helper/src/index.d.ts +2 -0
  157. package/@ones-editor/embed-block-helper/src/locale/en-us.d.ts +7 -0
  158. package/@ones-editor/embed-block-helper/src/locale/index.d.ts +1 -0
  159. package/@ones-editor/embed-block-helper/src/locale/ja-jp.d.ts +7 -0
  160. package/@ones-editor/embed-block-helper/src/locale/zh-cn.d.ts +7 -0
  161. package/@ones-editor/excalidraw/package.json +11 -0
  162. package/@ones-editor/excalidraw/src/excalidraw/block-properties.d.ts +2 -0
  163. package/@ones-editor/excalidraw/src/excalidraw/editor.d.ts +2 -0
  164. package/@ones-editor/excalidraw/src/index.d.ts +4 -0
  165. package/@ones-editor/excalidraw/src/types.d.ts +9 -0
  166. package/@ones-editor/excalidraw/src/utils/excalidraw-data.d.ts +4 -0
  167. package/@ones-editor/exclusive-block/package.json +6 -0
  168. package/@ones-editor/exclusive-block/src/exclusive-block-hook.d.ts +6 -0
  169. package/@ones-editor/exclusive-block/src/exclusive-block.d.ts +22 -0
  170. package/@ones-editor/exclusive-block/src/exclusive-dom.d.ts +5 -0
  171. package/@ones-editor/exclusive-block/src/handle-remote-exclusive-message.d.ts +3 -0
  172. package/@ones-editor/exclusive-block/src/index.d.ts +7 -0
  173. package/@ones-editor/exclusive-block/src/locale/en-us.d.ts +7 -0
  174. package/@ones-editor/exclusive-block/src/locale/index.d.ts +1 -0
  175. package/@ones-editor/exclusive-block/src/locale/ja-jp.d.ts +7 -0
  176. package/@ones-editor/exclusive-block/src/locale/zh-cn.d.ts +7 -0
  177. package/@ones-editor/exclusive-block/src/types.d.ts +7 -0
  178. package/@ones-editor/file/package.json +8 -0
  179. package/@ones-editor/file/src/file-box/index.d.ts +4 -0
  180. package/@ones-editor/file/src/file-embed/card/file-icon.d.ts +1 -0
  181. package/@ones-editor/file/src/file-embed/card/index.d.ts +6 -0
  182. package/@ones-editor/file/src/file-embed/download-file.d.ts +2 -0
  183. package/@ones-editor/file/src/file-embed/index.d.ts +4 -0
  184. package/@ones-editor/file/src/index.d.ts +5 -0
  185. package/@ones-editor/file/src/locale/en-us.d.ts +12 -0
  186. package/@ones-editor/file/src/locale/index.d.ts +1 -0
  187. package/@ones-editor/file/src/locale/ja-jp.d.ts +12 -0
  188. package/@ones-editor/file/src/locale/zh-cn.d.ts +12 -0
  189. package/@ones-editor/file/src/types.d.ts +24 -0
  190. package/@ones-editor/find-dialog/src/doc/doc-handler.d.ts +15 -0
  191. package/@ones-editor/find-dialog/src/find-dialog.d.ts +4 -1
  192. package/@ones-editor/find-dialog/src/highlights/highligh-text.d.ts +3 -0
  193. package/@ones-editor/find-dialog/src/highlights/highlight-dom.d.ts +1 -0
  194. package/@ones-editor/find-dialog/src/locale/ja-jp.d.ts +13 -0
  195. package/@ones-editor/graph-embed/assets/index.d.ts +2 -0
  196. package/@ones-editor/graph-embed/src/helper/graph-base.d.ts +9 -3
  197. package/@ones-editor/graph-embed/src/helper/graph-block-commands.d.ts +5 -3
  198. package/@ones-editor/graph-embed/src/lang/en-us.d.ts +10 -5
  199. package/@ones-editor/graph-embed/src/lang/ja-jp.d.ts +13 -0
  200. package/@ones-editor/graph-embed/src/lang/zh-cn.d.ts +6 -3
  201. package/@ones-editor/heading-collapse/src/heading-collapse-button/drop-handler.d.ts +1 -1
  202. package/@ones-editor/heading-collapse/src/index.d.ts +1 -0
  203. package/@ones-editor/heading-collapse/src/locale/en-us.d.ts +7 -0
  204. package/@ones-editor/heading-collapse/src/locale/index.d.ts +1 -0
  205. package/@ones-editor/heading-collapse/src/locale/ja-jp.d.ts +7 -0
  206. package/@ones-editor/heading-collapse/src/locale/zh-cn.d.ts +7 -0
  207. package/@ones-editor/html-to-doc/src/html-to-doc/normal-html/code.d.ts +1 -0
  208. package/@ones-editor/image-embed/package.json +2 -1
  209. package/@ones-editor/image-embed/src/copy-handler.d.ts +8 -0
  210. package/@ones-editor/image-embed/src/drag-drop/drag-handler.d.ts +9 -2
  211. package/@ones-editor/image-embed/src/drag-drop/handle-drop-over.d.ts +5 -1
  212. package/@ones-editor/image-embed/src/drag-drop/handle-drop.d.ts +1 -1
  213. package/@ones-editor/image-embed/src/empty-image-converter.d.ts +5 -0
  214. package/@ones-editor/image-embed/src/image-data.d.ts +6 -4
  215. package/@ones-editor/image-embed/src/image-file.d.ts +4 -0
  216. package/@ones-editor/image-embed/src/image-object.d.ts +5 -1
  217. package/@ones-editor/image-embed/src/image-resizer.d.ts +3 -0
  218. package/@ones-editor/image-embed/src/index.d.ts +5 -2
  219. package/@ones-editor/image-embed/src/locale/en-us.d.ts +2 -1
  220. package/@ones-editor/image-embed/src/locale/ja-jp.d.ts +17 -0
  221. package/@ones-editor/image-embed/src/locale/zh-cn.d.ts +1 -0
  222. package/@ones-editor/image-embed/src/paste-handler.d.ts +7 -0
  223. package/@ones-editor/image-embed/src/shortcuts/copy-image.d.ts +2 -0
  224. package/@ones-editor/image-embed/src/shortcuts/image-clipboard-data.d.ts +7 -0
  225. package/@ones-editor/image-embed/src/shortcuts/index.d.ts +3 -2
  226. package/@ones-editor/image-embed/src/types.d.ts +9 -2
  227. package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +1 -0
  228. package/@ones-editor/input-handlers/src/i18n/en-us.d.ts +1 -0
  229. package/@ones-editor/input-handlers/src/i18n/ja-jp.d.ts +11 -0
  230. package/@ones-editor/input-handlers/src/i18n/zh-cn.d.ts +1 -0
  231. package/@ones-editor/input-handlers/src/index.d.ts +2 -2
  232. package/@ones-editor/input-handlers/src/markdown-shortcuts/index.d.ts +2 -1
  233. package/@ones-editor/input-handlers/src/markdown-shortcuts/match-block-convert.d.ts +1 -0
  234. package/@ones-editor/input-handlers/src/markdown-shortcuts/table-converter.d.ts +2 -0
  235. package/@ones-editor/list-block/src/converter/convert-list-to.d.ts +2 -0
  236. package/@ones-editor/list-block/src/converter/convert-to-list.d.ts +14 -0
  237. package/@ones-editor/list-block/src/converter/index.d.ts +2 -14
  238. package/@ones-editor/list-block/src/drop/index.d.ts +1 -1
  239. package/@ones-editor/list-block/src/index.d.ts +7 -3
  240. package/@ones-editor/list-block/src/keyboard/shortcut.d.ts +3 -0
  241. package/@ones-editor/list-block/src/lang/ja-jp.d.ts +21 -0
  242. package/@ones-editor/list-block/src/level/change-multi-levels.d.ts +2 -0
  243. package/@ones-editor/list-block/src/level/decrease-level.d.ts +1 -0
  244. package/@ones-editor/list-block/src/marker/customize-start-dialog.d.ts +1 -0
  245. package/@ones-editor/list-block/src/mindmap/index.d.ts +1 -1
  246. package/@ones-editor/list-block/src/mindmap/to-mindmap/close-mindmap.d.ts +1 -0
  247. package/@ones-editor/list-block/src/mindmap/to-mindmap/index.d.ts +3 -1
  248. package/@ones-editor/list-block/src/start/fix-start-by-list.d.ts +9 -0
  249. package/@ones-editor/list-block/src/types.d.ts +2 -1
  250. package/@ones-editor/list-block/src/utils/list-brother.d.ts +5 -1
  251. package/@ones-editor/list-block/src/utils/list-parent.d.ts +1 -0
  252. package/@ones-editor/markdown-to-doc/src/markdown-to-doc.d.ts +1 -0
  253. package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/latex.d.ts +4 -0
  254. package/@ones-editor/markdown-to-doc/src/tokens/block-tokens/paragraph.d.ts +1 -0
  255. package/@ones-editor/mathjax/package.json +3 -0
  256. package/@ones-editor/mathjax/src/index.d.ts +2 -1
  257. package/@ones-editor/mathjax/src/locale/ja-jp.d.ts +7 -0
  258. package/@ones-editor/mathjax/src/mathjax-box/convert-mathjax.d.ts +5 -0
  259. package/@ones-editor/mathjax/src/mathjax-box/mathjax-editor.d.ts +18 -2
  260. package/@ones-editor/media-embed/src/core/media-embed.d.ts +4 -2
  261. package/@ones-editor/media-embed/src/core/media.d.ts +10 -4
  262. package/@ones-editor/media-embed/src/core/video-resizer.d.ts +1 -0
  263. package/@ones-editor/media-embed/src/locale/ja-jp.d.ts +19 -0
  264. package/@ones-editor/media-embed/src/utils/file.d.ts +1 -2
  265. package/@ones-editor/mention/src/block-mention.d.ts +1 -1
  266. package/@ones-editor/mention/src/dom/mention-button.d.ts +1 -1
  267. package/@ones-editor/mention/src/index.d.ts +1 -0
  268. package/@ones-editor/mention/src/locale/en-us.d.ts +6 -0
  269. package/@ones-editor/mention/src/locale/index.d.ts +1 -0
  270. package/@ones-editor/mention/src/locale/ja-jp.d.ts +6 -0
  271. package/@ones-editor/mention/src/locale/zh-cn.d.ts +6 -0
  272. package/@ones-editor/mention/src/mention.d.ts +2 -9
  273. package/@ones-editor/mention/src/types.d.ts +12 -1
  274. package/@ones-editor/misc/src/index.d.ts +2 -1
  275. package/@ones-editor/misc/src/is-secure-env.d.ts +1 -0
  276. package/@ones-editor/mobile-helper/package.json +9 -0
  277. package/@ones-editor/mobile-helper/src/index.d.ts +11 -0
  278. package/@ones-editor/paste-handler/src/paste-handler.d.ts +1 -1
  279. package/@ones-editor/paste-handler/src/text-data-converter.d.ts +2 -2
  280. package/@ones-editor/paste-special/src/index.d.ts +1 -0
  281. package/@ones-editor/paste-special/src/locale/en-us.d.ts +8 -0
  282. package/@ones-editor/paste-special/src/locale/index.d.ts +1 -0
  283. package/@ones-editor/paste-special/src/locale/ja-jp.d.ts +8 -0
  284. package/@ones-editor/paste-special/src/locale/zh-cn.d.ts +8 -0
  285. package/@ones-editor/paste-special/src/paste-special-handler.d.ts +2 -2
  286. package/@ones-editor/scroll-container/src/dom-utils.d.ts +8 -0
  287. package/@ones-editor/scroll-container/src/index.d.ts +8 -18
  288. package/@ones-editor/scroll-container/src/observer/container-resize-observer.d.ts +2 -1
  289. package/@ones-editor/scroll-container/src/observer/locating-resize-observer.d.ts +13 -0
  290. package/@ones-editor/scroll-container/src/scroll-listener.d.ts +3 -0
  291. package/@ones-editor/scroll-container/src/types.d.ts +3 -1
  292. package/@ones-editor/scroll-container/src/utils.d.ts +1 -0
  293. package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +3 -3
  294. package/@ones-editor/sharedb-doc/src/doc/comments.d.ts +0 -1
  295. package/@ones-editor/sharedb-doc/src/doc/op-parser/parse-handler.d.ts +25 -0
  296. package/@ones-editor/sharedb-doc/src/doc/sharedb-client.d.ts +5 -4
  297. package/@ones-editor/sharedb-doc/src/doc/sharedb-doc.d.ts +14 -4
  298. package/@ones-editor/sharedb-doc/src/index.d.ts +1 -0
  299. package/@ones-editor/sharedb-doc/src/types.d.ts +3 -2
  300. package/@ones-editor/table-block/src/constant/index.d.ts +1 -0
  301. package/@ones-editor/table-block/src/locale/en-us.d.ts +5 -0
  302. package/@ones-editor/table-block/src/locale/ja-jp.d.ts +27 -0
  303. package/@ones-editor/table-block/src/locale/zh-cn.d.ts +5 -0
  304. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar-handler.d.ts +14 -1
  305. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar-scroll.d.ts +2 -0
  306. package/@ones-editor/table-block/src/table-block/border-bar/table-border-bar.d.ts +2 -1
  307. package/@ones-editor/table-block/src/table-block/border-bar/table-row-column-toolbar.d.ts +1 -0
  308. package/@ones-editor/table-block/src/table-block/convert-table-to.d.ts +2 -0
  309. package/@ones-editor/table-block/src/table-block/doc-change-handler.d.ts +2 -0
  310. package/@ones-editor/table-block/src/table-block/doc-table-data.d.ts +2 -2
  311. package/@ones-editor/table-block/src/table-block/selection-range.d.ts +2 -1
  312. package/@ones-editor/table-block/src/table-block/table-creator/index.d.ts +1 -1
  313. package/@ones-editor/table-block/src/table-block/table-dom.d.ts +1 -0
  314. package/@ones-editor/table-block/src/table-block/table-resize/resize-gripper.d.ts +1 -1
  315. package/@ones-editor/table-block/src/table-block/table-scroll-events.d.ts +2 -0
  316. package/@ones-editor/table-block/src/types.d.ts +5 -0
  317. package/@ones-editor/tabs-block/package.json +8 -0
  318. package/@ones-editor/tabs-block/src/active-tab.d.ts +2 -0
  319. package/@ones-editor/tabs-block/src/create-empty-tabs.d.ts +8 -0
  320. package/@ones-editor/tabs-block/src/index.d.ts +4 -0
  321. package/@ones-editor/tabs-block/src/tabs-dom.d.ts +4 -0
  322. package/@ones-editor/tabs-block/src/tabs-object.d.ts +14 -0
  323. package/@ones-editor/tabs-block/src/tabs-options.d.ts +2 -0
  324. package/@ones-editor/tabs-block/src/types.d.ts +8 -0
  325. package/@ones-editor/templates/package.json +9 -0
  326. package/@ones-editor/templates/src/index.d.ts +4 -0
  327. package/@ones-editor/templates/src/locale/en-us.d.ts +9 -0
  328. package/@ones-editor/templates/src/locale/index.d.ts +1 -0
  329. package/@ones-editor/templates/src/locale/ja-jp.d.ts +9 -0
  330. package/@ones-editor/templates/src/locale/zh-cn.d.ts +9 -0
  331. package/@ones-editor/templates/src/templates/select-template.d.ts +7 -0
  332. package/@ones-editor/templates/src/templates/types.d.ts +14 -0
  333. package/@ones-editor/text-commands/src/index.d.ts +2 -1
  334. package/@ones-editor/text-commands/src/locale/en-us.d.ts +1 -14
  335. package/@ones-editor/text-commands/src/locale/ja-jp.d.ts +13 -0
  336. package/@ones-editor/text-commands/src/locale/zh-cn.d.ts +1 -14
  337. package/@ones-editor/text-commands/src/shortcut-handler.d.ts +2 -0
  338. package/@ones-editor/text-commands/src/text-command-provider.d.ts +1 -1
  339. package/@ones-editor/to-docx/src/doc2other/core.d.ts +1 -1
  340. package/@ones-editor/toc/src/build-toc.d.ts +4 -2
  341. package/@ones-editor/toc/src/heading-scroll/index.d.ts +22 -0
  342. package/@ones-editor/toc/src/heading-scroll/utils.d.ts +7 -0
  343. package/@ones-editor/toc/src/index.d.ts +3 -0
  344. package/@ones-editor/toc/src/locale/en-us.d.ts +6 -0
  345. package/@ones-editor/toc/src/locale/index.d.ts +1 -0
  346. package/@ones-editor/toc/src/locale/ja-jp.d.ts +6 -0
  347. package/@ones-editor/toc/src/locale/zh-cn.d.ts +6 -0
  348. package/@ones-editor/toc/src/toc-provider.d.ts +2 -1
  349. package/@ones-editor/toc/src/types.d.ts +3 -0
  350. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  351. package/@ones-editor/ui/src/index.d.ts +7 -3
  352. package/@ones-editor/ui/src/locale/en-us.d.ts +12 -20
  353. package/@ones-editor/ui/src/locale/ja-jp.d.ts +43 -0
  354. package/@ones-editor/ui/src/locale/zh-cn.d.ts +4 -12
  355. package/@ones-editor/ui/src/quick-menu/basic-commands.d.ts +5 -0
  356. package/@ones-editor/ui/src/quick-menu/basic-menu-items.d.ts +13 -12
  357. package/@ones-editor/ui/src/quick-menu/index.d.ts +7 -6
  358. package/@ones-editor/ui/src/quick-menu/inline-box-items.d.ts +8 -14
  359. package/@ones-editor/ui/src/quick-menu/insert-empty-block.d.ts +4 -2
  360. package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +4 -1
  361. package/@ones-editor/ui/src/quick-menu/types.d.ts +24 -1
  362. package/@ones-editor/ui/src/toolbar/box-only.d.ts +2 -0
  363. package/@ones-editor/ui/src/toolbar/commands/paragraph.d.ts +1 -0
  364. package/@ones-editor/ui/src/toolbar/helper.d.ts +1 -1
  365. package/@ones-editor/ui/src/toolbar/object-commands.d.ts +5 -1
  366. package/@ones-editor/ui/src/toolbar/toolbar-handler.d.ts +3 -1
  367. package/@ones-editor/ui/src/tooltips/index.d.ts +6 -1
  368. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest-menu.d.ts +24 -13
  369. package/@ones-editor/ui-base/src/auto-suggest/auto-suggest.d.ts +12 -2
  370. package/@ones-editor/ui-base/src/auto-suggest/editor-auto-suggest-menu.d.ts +12 -0
  371. package/@ones-editor/ui-base/src/auto-suggest/index.d.ts +2 -1
  372. package/@ones-editor/ui-base/src/auto-suggest/should-focus-to-editor.d.ts +2 -0
  373. package/@ones-editor/ui-base/src/command-bar/command-bar.d.ts +9 -3
  374. package/@ones-editor/ui-base/src/command-bar/fixed-toolbar.d.ts +12 -0
  375. package/@ones-editor/ui-base/src/command-bar/index.d.ts +2 -1
  376. package/@ones-editor/ui-base/src/command-bar/init-toolbar-item.d.ts +6 -0
  377. package/@ones-editor/ui-base/src/command-bar/manual-command-bar.d.ts +2 -1
  378. package/@ones-editor/ui-base/src/command-bar/types.d.ts +13 -2
  379. package/@ones-editor/ui-base/src/components/button.d.ts +1 -1
  380. package/@ones-editor/ui-base/src/components/checkbox.d.ts +3 -0
  381. package/@ones-editor/ui-base/src/components/index.d.ts +2 -0
  382. package/@ones-editor/ui-base/src/components/loading.d.ts +2 -0
  383. package/@ones-editor/ui-base/src/dialog/index.d.ts +1 -0
  384. package/@ones-editor/ui-base/src/dialog/manual-close-dialog.d.ts +1 -1
  385. package/@ones-editor/ui-base/src/dialog/types.d.ts +4 -0
  386. package/@ones-editor/ui-base/src/dropdown/index.d.ts +44 -0
  387. package/@ones-editor/ui-base/src/icons/index.d.ts +7 -1
  388. package/@ones-editor/ui-base/src/index.d.ts +2 -0
  389. package/@ones-editor/ui-base/src/input/create-input.d.ts +1 -0
  390. package/@ones-editor/ui-base/src/item-shortcuts/index.d.ts +1 -0
  391. package/@ones-editor/ui-base/src/list/drop-down-filterable-list.d.ts +2 -2
  392. package/@ones-editor/ui-base/src/locale/en-us.d.ts +1 -0
  393. package/@ones-editor/ui-base/src/locale/ja-jp.d.ts +12 -0
  394. package/@ones-editor/ui-base/src/locale/zh-cn.d.ts +1 -0
  395. package/@ones-editor/versions/src/history-doc/history-doc.d.ts +6 -5
  396. package/@ones-editor/versions/src/index.d.ts +1 -1
  397. package/@ones-editor/versions/src/locale/en-us.d.ts +29 -0
  398. package/@ones-editor/versions/src/locale/ja-jp.d.ts +44 -0
  399. package/@ones-editor/versions/src/locale/zh-cn.d.ts +29 -0
  400. package/@ones-editor/versions/src/types.d.ts +8 -8
  401. package/@ones-editor/versions/src/utils/index.d.ts +2 -2
  402. package/@ones-editor/versions/src/version-dialog/index.d.ts +26 -2
  403. package/@ones-editor/versions/src/version-dialog/play-history.d.ts +1 -2
  404. package/@ones-editor/versions/src/version-dialog/size-limit-textarea.d.ts +23 -0
  405. package/@ones-editor/versions/src/version-dialog/version-helper.d.ts +3 -0
  406. package/@ones-editor/versions/src/version-dialog/version-info-header.d.ts +13 -0
  407. package/@ones-editor/versions/src/version-dialog/version-list.d.ts +23 -9
  408. package/@ones-editor/versions/src/version-dialog/versions-dropdown.d.ts +27 -0
  409. package/@ones-editor/webpage-embed/src/locale/en-us.d.ts +6 -0
  410. package/@ones-editor/webpage-embed/src/locale/ja-jp.d.ts +27 -0
  411. package/@ones-editor/webpage-embed/src/locale/zh-cn.d.ts +6 -0
  412. package/@ones-editor/webpage-embed/src/types.d.ts +3 -0
  413. package/@ones-editor/webpage-embed/src/ui/dialog.d.ts +2 -2
  414. package/@ones-editor/webpage-embed/src/webpage-embed/webpage-items.d.ts +2 -14
  415. package/dist/comments/create-comment-editor.d.ts +4 -7
  416. package/dist/comments/local-doc-comments-provider.d.ts +19 -0
  417. package/dist/comments/{comments-provider.d.ts → sharedb-doc-comments-provider.d.ts} +4 -6
  418. package/dist/index.d.ts +24 -4
  419. package/dist/index.js +483 -374
  420. package/dist/lang/en-us.d.ts +19 -0
  421. package/dist/lang/index.d.ts +1 -0
  422. package/dist/lang/ja-jp.d.ts +19 -0
  423. package/dist/lang/zh-cn.d.ts +19 -0
  424. package/dist/standard-components.d.ts +3 -0
  425. package/dist/types.d.ts +45 -5
  426. package/dist/versions/versions-provider.d.ts +1 -1
  427. package/package.json +7 -1
  428. package/@ones-editor/block-menu/src/icons/index.d.ts +0 -4
  429. package/@ones-editor/graph-embed/src/lang/utils.d.ts +0 -3
  430. package/@ones-editor/list-block/src/command/covert-to-list.d.ts +0 -3
  431. package/@ones-editor/versions/src/version-dialog/actions-buttons.d.ts +0 -17
  432. /package/@ones-editor/block-menu/src/block-menu-button/{drag-drop → drag-preview}/element-to-data-url.d.ts +0 -0
@@ -2,18 +2,18 @@
2
2
  import { Connection, Doc } from 'sharedb/lib/client';
3
3
  import ReconnectingWebSocket, { Event } from 'reconnecting-websocket';
4
4
  import { EventEmitter } from 'events';
5
- import { AuthMessage, ReAuthFunc } from '../types';
5
+ import { AuthMessage, ReauthFunc } from '../types';
6
6
  import './sharedb-ext';
7
7
  export declare class AuthConnection {
8
8
  url: string;
9
- private reAuthFunc?;
9
+ private reauthFunc?;
10
10
  connection?: Connection;
11
11
  ws?: ReconnectingWebSocket;
12
12
  retryCount: number;
13
13
  events: EventEmitter;
14
14
  token: string | null;
15
15
  resourceToken: string | null;
16
- constructor(url: string, reAuthFunc?: ReAuthFunc | undefined);
16
+ constructor(url: string, reauthFunc?: ReauthFunc | undefined);
17
17
  getBaseURL(): string;
18
18
  getBase64BaseURL(): string;
19
19
  auth(auth: AuthMessage): Promise<{
@@ -9,7 +9,6 @@ export interface ShareDBDocCommentBase {
9
9
  created: number;
10
10
  modified: number;
11
11
  blocks?: DocBlocks;
12
- doc?: DocObject;
13
12
  }
14
13
  export type ShareDBDocComment = ShareDBDocCommentBase & {
15
14
  [index: string]: DocBlocks;
@@ -0,0 +1,25 @@
1
+ import { DocBlock, DocBlockTextActions, OnesEditorHistoryDataParseHandler } from '../../../../../@ones-editor/core';
2
+ type ActionType = 'deleteBlock' | 'insertBlock' | 'deleteBlockData' | 'insertBlockData' | 'updateBlockText' | 'deleteContainer' | 'createContainer' | 'deleteComment' | 'createComment' | 'updateComment';
3
+ interface Action {
4
+ type: ActionType;
5
+ containerId?: string;
6
+ }
7
+ export declare class ParseHandler {
8
+ private outerHandler;
9
+ private local;
10
+ private actions;
11
+ constructor(outerHandler: OnesEditorHistoryDataParseHandler, local: boolean);
12
+ pushActions(action: Action): void;
13
+ onDeleteBlock(containerId: string, blockIndex: number): void;
14
+ onInsertBlock(containerId: string, blockIndex: number, data: DocBlock): void;
15
+ onDeleteBlockData(containerId: string, blockIndex: number, key: string): void;
16
+ onInsertBlockData(containerId: string, blockIndex: number, key: string, value: unknown): void;
17
+ onUpdateBlockText(containerId: string, blockIndex: number, richTextData: DocBlockTextActions): void;
18
+ onDeleteContainer(containerId: string): void;
19
+ onCreateContainer(containerId: string, data: DocBlock[]): void;
20
+ onDeleteComment(commentId: string): void;
21
+ onCreateComment(commentId: string): void;
22
+ onUpdateComment(commentId: string): void;
23
+ end(): void;
24
+ }
25
+ export {};
@@ -1,16 +1,16 @@
1
- import { BuildResourceUrlOptions, DocVersion } from '../../../../@ones-editor/core';
1
+ import { BuildResourceUrlOptions, DocVersion, OnesEditorDocVersionExtra } from '../../../../@ones-editor/core';
2
2
  import { Doc } from 'sharedb/lib/client';
3
3
  import { Event } from 'reconnecting-websocket';
4
4
  import type { AxiosResponse } from 'axios';
5
5
  import { AuthConnection } from './auth-connection';
6
- import { EditorDoc, ReAuthFunc, AuthMessage, OnProgress, EditorOp, LinkDetails } from '../types';
6
+ import { EditorDoc, ReauthFunc, AuthMessage, OnProgress, EditorOp, LinkDetails } from '../types';
7
7
  export default class ShareDBClient {
8
8
  connection: AuthConnection;
9
9
  auth: AuthMessage;
10
10
  private doc;
11
- private reAuthFunc?;
11
+ private reauthFunc?;
12
12
  clientId: string;
13
- constructor(auth: AuthMessage, serverUrl: string, reAuthFunc?: ReAuthFunc);
13
+ constructor(auth: AuthMessage, serverUrl: string, reauthFunc?: ReauthFunc);
14
14
  editorServer(): string;
15
15
  close(logout: boolean): void;
16
16
  on(event: 'open' | 'close' | 'error', callback: (event: Event | Error) => void): void;
@@ -46,6 +46,7 @@ export default class ShareDBClient {
46
46
  doc: EditorDoc;
47
47
  ops: EditorOp[];
48
48
  }>;
49
+ updateVersionExtra(version: number, tagId: string, extra: OnesEditorDocVersionExtra): Promise<void>;
49
50
  revertVersion(ver: number): Promise<void>;
50
51
  createVersion(tag: string, publish: boolean): Promise<any>;
51
52
  recognizeLink(url: string): Promise<LinkDetails>;
@@ -1,4 +1,4 @@
1
- import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
1
+ import { BuildResourceUrlOptions, DocBlock, DocBlockDelta, DocBlockText, DocBlockTextActions, DocObject, DocVersion, EventCallbacks, OnesEditorComment, OnesEditorDoc, OnesEditorDocHistoryData, OnesEditorDocServerMeta, OnesEditorDocStatus, OnesEditorDocVersionExtra, OnesEditorDocVersionHelper, OnesEditorHistoryDataParseHandler, UploadResourceOptions, UploadResourceResult } from '../../../../@ones-editor/core';
2
2
  import { Doc } from 'sharedb/lib/client';
3
3
  import { LocalPresence } from 'sharedb/lib/sharedb';
4
4
  import RemoteCaretsHandler from './remote-caret-handler';
@@ -11,13 +11,18 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
11
11
  remoteCaretHandler: RemoteCaretsHandler;
12
12
  batching: number;
13
13
  status: OnesEditorDocStatus;
14
- constructor(client: ShareDBClient, doc: Doc);
14
+ disableLogout: boolean;
15
+ destroyed: boolean;
16
+ constructor(client: ShareDBClient, doc: Doc, disableLogout?: boolean);
15
17
  beginBatchUpdate(): number;
16
18
  endBatchUpdate(): number;
17
19
  static load(options: ShareDBDocOptions): Promise<ShareDBDoc>;
18
20
  private handleNothingPending;
19
21
  private handleCreate;
20
22
  private handleDel;
23
+ private handleReload;
24
+ private handleReset;
25
+ private handleWriteConflictError;
21
26
  private setStatus;
22
27
  initEvents(): void;
23
28
  clearEvents(): void;
@@ -34,19 +39,23 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
34
39
  toJSON(): DocObject;
35
40
  private submitOp;
36
41
  createDoc: (data: EditorDoc) => Promise<void>;
37
- private submitInsertChildContainer;
42
+ private submitInsertChildContainers;
38
43
  private submitDeleteChildContainer;
39
44
  private submitInsertBlock;
40
45
  private submitDeleteBlock;
41
46
  private submitUpdateBlockData;
42
47
  private submitUpdateRichText;
43
48
  getContainerBlocks(containerId: string): DocBlock[];
49
+ findContainerBlocks(containerId: string): DocBlock[];
44
50
  getBlockData(containerId: string, blockIndex: number): DocBlock;
45
51
  localInsertBlock(containerId: string, blockIndex: number, data: DocBlock): DocBlock;
46
52
  localDeleteBlock(containerId: string, blockIndex: number): DocBlock;
47
53
  localUpdateBlockText(containerId: string, blockIndex: number, actions: DocBlockTextActions): DocBlockText;
48
54
  localUpdateBlockData(containerId: string, blockIndex: number, delta: DocBlockDelta): DocBlock;
49
- localInsertChildContainer(containerId: string, blocks: DocBlock[]): void;
55
+ localInsertChildContainers(containers: {
56
+ containerId: string;
57
+ blocks: DocBlock[];
58
+ }[]): void;
50
59
  localDeleteChildContainers(containerIds: string[]): void;
51
60
  getComments(): OnesEditorComment[];
52
61
  getComment(commentId: string): OnesEditorComment;
@@ -91,6 +100,7 @@ export default class ShareDBDoc extends EventCallbacks<ShareDBDocCallbacks> impl
91
100
  doc: DocObject;
92
101
  versionData: unknown;
93
102
  }>;
103
+ updateVersionExtra(version: number, tagId: string, extra: OnesEditorDocVersionExtra): Promise<void>;
94
104
  revertVersion(ver: number): Promise<void>;
95
105
  createVersion(tag: string, publish: boolean): Promise<DocVersion>;
96
106
  recognizeLink(url: string): Promise<import("../types").LinkDetails>;
@@ -1,4 +1,5 @@
1
1
  import ShareDBDoc from './doc/sharedb-doc';
2
2
  import { RemoteCarets, RemoteCaretsDecorator } from './remote-carets';
3
3
  export { ShareDBDoc, RemoteCarets, RemoteCaretsDecorator };
4
+ export * from './doc/comments';
4
5
  export * from './types';
@@ -62,14 +62,15 @@ export declare const FileExtError: {
62
62
  };
63
63
  export declare const AuthHeader = "x-live-editor-token";
64
64
  export declare const BaseURLHeader = "x-live-editor-base-url";
65
- export type ReAuthFunc = () => Promise<AuthMessage>;
65
+ export type ReauthFunc = () => Promise<AuthMessage>;
66
66
  export type OnProgress = (percentage: number) => void;
67
67
  export interface ShareDBDocOptions {
68
68
  auth: AuthMessage;
69
69
  serverUrl: string;
70
- reAuthFunc?: ReAuthFunc;
70
+ reauthFunc?: ReauthFunc;
71
71
  autoCreateDoc?: boolean;
72
72
  templateData?: EditorDoc;
73
+ disableLogout?: boolean;
73
74
  }
74
75
  export interface EditorOp {
75
76
  c: string;
@@ -6,3 +6,4 @@ export declare enum TABLE_CLASS {
6
6
  }
7
7
  export declare const TABLE_BAR_WIDTH = 6;
8
8
  export declare const INSERT_BUTTON_SIZE = 20;
9
+ export declare const TABLE_CELL_MENU_BUTTON_CLASS = "table-cell-menu-btn";
@@ -6,6 +6,11 @@ declare const _default: {
6
6
  mergeCell: string;
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
+ deleteTable: string;
10
+ insertCol: string;
11
+ insertRow: string;
12
+ deleteCol: string;
13
+ deleteRow: string;
9
14
  tableConfig: {
10
15
  rowTitle: string;
11
16
  colTitle: string;
@@ -0,0 +1,27 @@
1
+ declare const _default: {
2
+ table: {
3
+ cellBackground: string;
4
+ deleteSelectRow: string;
5
+ deleteSelectCol: string;
6
+ mergeCell: string;
7
+ splitCell: string;
8
+ tableConfigKey: string;
9
+ deleteTable: string;
10
+ insertCol: string;
11
+ insertRow: string;
12
+ deleteCol: string;
13
+ deleteRow: string;
14
+ tableConfig: {
15
+ rowTitle: string;
16
+ colTitle: string;
17
+ stripeStyle: string;
18
+ hideBorder: string;
19
+ showBorder: string;
20
+ showChart: string;
21
+ hideChart: string;
22
+ };
23
+ title: string;
24
+ abstract: string;
25
+ };
26
+ };
27
+ export default _default;
@@ -6,6 +6,11 @@ declare const _default: {
6
6
  mergeCell: string;
7
7
  splitCell: string;
8
8
  tableConfigKey: string;
9
+ deleteTable: string;
10
+ insertCol: string;
11
+ insertRow: string;
12
+ deleteCol: string;
13
+ deleteRow: string;
9
14
  tableConfig: {
10
15
  rowTitle: string;
11
16
  colTitle: string;
@@ -1,2 +1,15 @@
1
- import { OnesEditor } from '../../../../../@ones-editor/core';
1
+ import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
2
+ export declare class TableBlockBorderHandler {
3
+ private editor;
4
+ private activeTableBar;
5
+ constructor(editor: OnesEditor);
6
+ destroy(): void;
7
+ handleBlockDeleted: (editor: OnesEditor, block: BlockElement) => void;
8
+ handleSelectionChanged: (editor: OnesEditor) => void;
9
+ handleScroll: () => void;
10
+ show(tableBlock: BlockElement): void;
11
+ update(): void;
12
+ closeToolbar(): void;
13
+ hide(): void;
14
+ }
2
15
  export declare function handleTableBorderBar(editor: OnesEditor, type: 'create' | 'update'): void;
@@ -0,0 +1,2 @@
1
+ import { ScrollContainer } from '../../../../../@ones-editor/scroll-container';
2
+ export declare function handleResetBarPos(scrollContainer: ScrollContainer): void;
@@ -2,7 +2,7 @@ import { BlockElement, OnesEditor } from '../../../../../@ones-editor/core';
2
2
  export declare class TableBorderBar {
3
3
  private editor;
4
4
  tableBlock: BlockElement;
5
- private toolbar;
5
+ private toolbar?;
6
6
  private resizeObserver;
7
7
  constructor(editor: OnesEditor, tableBlock: BlockElement);
8
8
  close(): void;
@@ -10,5 +10,6 @@ export declare class TableBorderBar {
10
10
  update(): void;
11
11
  handleReadonlyChanged: (editor: OnesEditor) => void;
12
12
  handleBlockUpdated: () => void;
13
+ handleScroll: () => void;
13
14
  handleTableResize: () => void;
14
15
  }
@@ -10,4 +10,5 @@ export default class TableRowColumnToolbar {
10
10
  destroy(): void;
11
11
  handleSelectionChange: (bar: AbstractCommandBar, id: string) => void;
12
12
  handleClick: (bar: AbstractCommandBar, item: CommandItem, elem: HTMLElement) => void;
13
+ handleToolbarClose: () => void;
13
14
  }
@@ -0,0 +1,2 @@
1
+ import { OnesEditor, DocBlock, DocObject, BlockPath } from '../../../../@ones-editor/core';
2
+ export declare function convertTo(editor: OnesEditor, blockData: DocBlock, doc: DocObject, type: 'text' | 'html' | 'markdown', path: BlockPath): string;
@@ -0,0 +1,2 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ export declare function handleTableDocChanged(editor: OnesEditor): void;
@@ -3,14 +3,14 @@ export interface DocTableBlockData extends DocBlock {
3
3
  rows: number;
4
4
  cols: number;
5
5
  children: string[];
6
- widths: number[];
6
+ colsWidth: number[];
7
7
  showChart?: boolean;
8
8
  noBorder?: boolean;
9
9
  hasRowTitle?: boolean;
10
10
  hasColTitle?: boolean;
11
11
  isStripeStyle?: boolean;
12
12
  }
13
- export declare const DEFAULT_COLUMN_WIDTH = 100;
13
+ export declare const DEFAULT_COLUMN_WIDTH = 200;
14
14
  export declare const MIN_COLUMN_WIDTH = 40;
15
15
  export type SelectTableCustom = {
16
16
  colIndex?: number;
@@ -1,4 +1,4 @@
1
- import { BlockElement, ComplexBlockPosition, OnesEditor } from '../../../../@ones-editor/core';
1
+ import { BlockElement, ComplexBlockPosition, OnesEditor, SelectionRange } from '../../../../@ones-editor/core';
2
2
  export declare function getTableSelectionRange(tableBlock: BlockElement, start: ComplexBlockPosition, end: ComplexBlockPosition): {
3
3
  fromRow: number;
4
4
  toRow: number;
@@ -9,3 +9,4 @@ export declare function getTableSelectedRowsAndColumns(editor: OnesEditor, table
9
9
  selectedRows: Set<number>;
10
10
  selectedColumns: Set<number>;
11
11
  };
12
+ export declare function findActiveTableBlockAsRange(editor: OnesEditor, range: SelectionRange): BlockElement | null;
@@ -20,5 +20,5 @@ declare class TableCreatorItem implements CommandItem, CreateTableData {
20
20
  handleTableCreatorLeave: () => void;
21
21
  handleTableCreatorCellEnter: (event: MouseEvent) => void;
22
22
  }
23
- export declare function getTableCreatorItem(editor: OnesEditor): TableCreatorItem;
23
+ export declare function getTableCreatorItem(): TableCreatorItem;
24
24
  export {};
@@ -4,6 +4,7 @@ export declare function getTableScrollKey(block: BlockElement): string;
4
4
  export declare function getTableContent(editor: OnesEditor, block: BlockElement): HTMLDivElement;
5
5
  export declare function getBlockTable(block: BlockElement): HTMLTableElement;
6
6
  export declare function getTableTools(editor: OnesEditor, block: BlockElement): HTMLElement;
7
+ export declare function findExistsTableTools(editor: OnesEditor, block: BlockElement): HTMLElement | null;
7
8
  export declare function getTableCells(table: HTMLTableElement): HTMLTableCellElement[];
8
9
  export declare function getChildContainerInCell(cell: HTMLTableCellElement): ContainerElement;
9
10
  export declare function getTableContainers(table: HTMLTableElement): ContainerElement[];
@@ -8,4 +8,4 @@ export declare function getExistsResizeGripper(editor: OnesEditor, block: BlockE
8
8
  export declare function createResizeGripper(editor: OnesEditor, block: BlockElement): HTMLDivElement;
9
9
  export declare function updateResizeGripper(editor: OnesEditor, block: BlockElement, cell: HTMLTableCellElement): void;
10
10
  export declare function removeAllResizeGripper(editor: OnesEditor): void;
11
- export declare function setTableColumnWidths(editor: OnesEditor, block: BlockElement, widths: number[]): void;
11
+ export declare function setTableColumnWidths(editor: OnesEditor, block: BlockElement, colsWidth: number[]): void;
@@ -8,12 +8,14 @@ export declare class TableScrollEvents {
8
8
  autoScrollTimer: null | number;
9
9
  constructor(editor: OnesEditor);
10
10
  handleMouseDown: (event: MouseEvent) => void;
11
+ private getBarFloatWindowBottom;
11
12
  private handleAutoScroll;
12
13
  handleMouseUp: () => void;
13
14
  clearAutoScroll(): void;
14
15
  setAutoScroll(dir: NonNullable<ScrollDirType>): void;
15
16
  handleSelectionChanged: (editor: OnesEditor) => void;
16
17
  handleScroll: (scrollContainer: ScrollContainer) => void;
18
+ handleReset: (scrollContainer: ScrollContainer) => void;
17
19
  destroy(): void;
18
20
  }
19
21
  export declare function handleTableScrollEvents(editor: OnesEditor): TableScrollEvents;
@@ -1,4 +1,9 @@
1
1
  export interface TableOptions {
2
2
  chartCdn?: string;
3
3
  locatingContainer: Element;
4
+ barFloatWindowBottom?: number | (() => number);
5
+ isSetScale?: () => boolean;
6
+ allowScrollBarFixed?: boolean;
7
+ hideCellMenu?: boolean;
8
+ hideToolbar?: boolean;
4
9
  }
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@ones-editor/tabs-block",
3
+ "version": "1.0.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "./src/index.ts",
7
+ "types": "src/index.d.ts"
8
+ }
@@ -0,0 +1,2 @@
1
+ import { BlockElement, OnesEditor } from '../../../@ones-editor/core';
2
+ export declare function activeTab(editor: OnesEditor, block: BlockElement, index: number): void;
@@ -0,0 +1,8 @@
1
+ import { OnesEditor } from '../../../@ones-editor/core';
2
+ import { DocTabsBlock } from './types';
3
+ export declare function createEmptyTabsData(editor: OnesEditor, options?: {
4
+ count?: number;
5
+ }): {
6
+ blockData: DocTabsBlock;
7
+ focusBlockId: string;
8
+ } | null;
@@ -0,0 +1,4 @@
1
+ import { ComplexKindBlock } from '../../../@ones-editor/core';
2
+ import './tabs-styles.scss';
3
+ declare const TabsBlock: ComplexKindBlock;
4
+ export default TabsBlock;
@@ -0,0 +1,4 @@
1
+ import { BlockContentElement, BlockElement, BlockPath, ContainerElement, OnesEditor } from '../../../@ones-editor/core';
2
+ import { DocTabsBlock } from './types';
3
+ export declare function createTabs(editor: OnesEditor, path: BlockPath, container: ContainerElement, blockElement: BlockElement, blockData: DocTabsBlock): BlockContentElement;
4
+ export declare function getTabsContainers(block: BlockElement): ContainerElement[];
@@ -0,0 +1,14 @@
1
+ import { BlockElement, OnesEditor, OnesEditorCustom } from '../../../@ones-editor/core';
2
+ export default class TabsObject implements OnesEditorCustom {
3
+ private editor;
4
+ private blockId;
5
+ private activeTabIndex;
6
+ constructor(editor: OnesEditor, blockId: string);
7
+ destroy(): void;
8
+ getTabs(): import("./types").TabData[];
9
+ getActiveTab(): import("./types").TabData;
10
+ getActiveTabIndex(): number;
11
+ indexOf(id: string): number;
12
+ setActiveTab(id: string): void;
13
+ static get(editor: OnesEditor, block: BlockElement | string): TabsObject;
14
+ }
@@ -0,0 +1,2 @@
1
+ import { BlockOptions, OnesEditor } from '../../../@ones-editor/core';
2
+ export declare function getTabsOptions(editor: OnesEditor): BlockOptions;
@@ -0,0 +1,8 @@
1
+ import { DocBlock } from '../../../@ones-editor/core';
2
+ export interface TabData {
3
+ name: string;
4
+ }
5
+ export interface DocTabsBlock extends DocBlock {
6
+ tabs: TabData[];
7
+ children: string[];
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@ones-editor/templates",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "main": "./src/index.ts",
7
+ "devDependencies": {},
8
+ "types": "src/index.d.ts"
9
+ }
@@ -0,0 +1,4 @@
1
+ import './locale';
2
+ import { autoShowHideTemplates } from './templates/select-template';
3
+ export * from './templates/types';
4
+ export { autoShowHideTemplates };
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ templates: {
3
+ title: string;
4
+ create: string;
5
+ choose: string;
6
+ customizedMark: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ templates: {
3
+ title: string;
4
+ create: string;
5
+ choose: string;
6
+ customizedMark: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ templates: {
3
+ title: string;
4
+ create: string;
5
+ choose: string;
6
+ customizedMark: string;
7
+ };
8
+ };
9
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ import './select-templates.scss';
3
+ interface ShowTemplatesOptions {
4
+ reset?: boolean;
5
+ }
6
+ export declare function autoShowHideTemplates(editor: OnesEditor, options?: ShowTemplatesOptions): void;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import { OnesEditor } from '../../../../@ones-editor/core';
2
+ export interface DocTemplate {
3
+ docId: string;
4
+ name: string;
5
+ thumbnailUrl?: string;
6
+ }
7
+ export interface TemplateOptions {
8
+ templates: DocTemplate[];
9
+ placeHolderImageSrc?: string;
10
+ showTemplateTitleAttr?: boolean;
11
+ onChooseTemplate?: (editor: OnesEditor) => void;
12
+ onApplyTemplate?: (editor: OnesEditor, template: DocTemplate) => Promise<void>;
13
+ onTemplateChooserStatusChanged?: (editor: OnesEditor, cardContainer: HTMLElement | null, status: 'visible' | 'hide') => void;
14
+ }
@@ -1,3 +1,4 @@
1
1
  import TextCommandProvider from './text-command-provider';
2
+ import { HideTooltipShortcuts } from './shortcut-handler';
2
3
  import './locale';
3
- export { TextCommandProvider };
4
+ export { TextCommandProvider, HideTooltipShortcuts };
@@ -7,20 +7,7 @@ declare const _default: {
7
7
  code: string;
8
8
  subscript: string;
9
9
  superscript: string;
10
- };
11
- commandDesc: {
12
- mac: {
13
- bold: string;
14
- italic: string;
15
- underline: string;
16
- strikethrough: string;
17
- };
18
- window: {
19
- bold: string;
20
- italic: string;
21
- underline: string;
22
- strikethrough: string;
23
- };
10
+ more: string;
24
11
  };
25
12
  };
26
13
  export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ commands: {
3
+ bold: string;
4
+ italic: string;
5
+ underline: string;
6
+ strikethrough: string;
7
+ code: string;
8
+ subscript: string;
9
+ superscript: string;
10
+ more: string;
11
+ };
12
+ };
13
+ export default _default;
@@ -7,20 +7,7 @@ declare const _default: {
7
7
  code: string;
8
8
  subscript: string;
9
9
  superscript: string;
10
- };
11
- commandDesc: {
12
- mac: {
13
- bold: string;
14
- italic: string;
15
- underline: string;
16
- strikethrough: string;
17
- };
18
- window: {
19
- bold: string;
20
- italic: string;
21
- underline: string;
22
- strikethrough: string;
23
- };
10
+ more: string;
24
11
  };
25
12
  };
26
13
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { ShortcutRecords } from '../../../@ones-editor/core';
2
+ export declare const HideTooltipShortcuts: ShortcutRecords;
@@ -11,9 +11,9 @@ export default class TextCommandProvider implements OnesEditorCommandProvider {
11
11
  executeCommand(editor: OnesEditor, block: BlockElement, range: SelectionRange, item: BlockCommandItem, params: CommandParams, result: CommandResult): boolean;
12
12
  private executeCommandOnEmptyText;
13
13
  private getCommandsOnEmptyText;
14
+ private setCommandsStates;
14
15
  getEmptyBlockTextAttributes(editor: OnesEditor, blockId: string): DocBlockTextAttributes | undefined;
15
16
  private handleChangeColor;
16
- private handleBeforePopupPalette;
17
17
  private getEmptyTextBlockColor;
18
18
  private setEmptyTextBlockColor;
19
19
  private static toTextCommand;
@@ -11,7 +11,7 @@ export interface BlocksGenerator {
11
11
  addTextBlock(obj: BlockObject): Promise<void>;
12
12
  addCodeBlockObject(obj: CodeObject): Promise<void>;
13
13
  addListBlockObject(parent: string, obj: BlockObject): Promise<void>;
14
- addImagesBlockObject(obj: BlockObject, maxWidth: number): Promise<void>;
14
+ addImagesBlockObject(block: DocBlock, obj: BlockObject, maxWidth: number): Promise<void>;
15
15
  addSeparatorBlock(): void;
16
16
  addVideoPlaceholder(): void;
17
17
  addAudioPlaceholder(): void;
@@ -1,4 +1,4 @@
1
- import { DocBlock, DocObject } from '../../../@ones-editor/core';
1
+ import { DocBlock, DocObject, OnesEditor } from '../../../@ones-editor/core';
2
2
  export interface TocNode {
3
3
  parentNode: TocNode | null;
4
4
  children: TocNode[];
@@ -7,8 +7,10 @@ export interface TocNode {
7
7
  block: DocBlock;
8
8
  }
9
9
  export declare class OnesEditorToc {
10
+ private editor;
10
11
  nodes: TocNode[];
12
+ constructor(editor: OnesEditor);
11
13
  private appendBlock;
12
14
  private findParent;
13
- static buildToc(doc: DocObject): OnesEditorToc;
15
+ static buildToc(editor: OnesEditor, doc: DocObject): OnesEditorToc;
14
16
  }