jodit 3.20.2 → 3.20.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 (516) hide show
  1. package/build/jodit.css +211 -237
  2. package/build/jodit.es2018.css +160 -161
  3. package/build/jodit.es2018.en.css +160 -161
  4. package/build/jodit.es2018.en.js +257 -120
  5. package/build/jodit.es2018.en.min.css +1 -1
  6. package/build/jodit.es2018.en.min.js +1 -1
  7. package/build/jodit.es2018.js +283 -137
  8. package/build/jodit.es2018.min.css +1 -1
  9. package/build/jodit.es2018.min.js +1 -1
  10. package/build/jodit.js +240 -129
  11. package/build/jodit.min.css +2 -2
  12. package/build/jodit.min.js +1 -1
  13. package/build/plugins/debug/debug.es2018.en.js +1 -1
  14. package/build/plugins/debug/debug.es2018.js +1 -1
  15. package/build/plugins/debug/debug.js +1 -1
  16. package/build/plugins/speech-recognize/speech-recognize.css +1 -1
  17. package/build/plugins/speech-recognize/speech-recognize.es2018.css +1 -1
  18. package/build/plugins/speech-recognize/speech-recognize.es2018.en.css +1 -1
  19. package/build/plugins/speech-recognize/speech-recognize.es2018.en.js +1 -1
  20. package/build/plugins/speech-recognize/speech-recognize.es2018.js +1 -1
  21. package/build/plugins/speech-recognize/speech-recognize.js +1 -1
  22. package/build/vdom.css +1 -1
  23. package/build/vdom.js +46 -1
  24. package/package.json +28 -24
  25. package/src/README.md +2 -0
  26. package/src/config.ts +12 -0
  27. package/src/core/async/README.md +2 -0
  28. package/src/core/async/async.test.js +183 -0
  29. package/src/core/async/async.ts +21 -2
  30. package/src/core/component/README.md +2 -0
  31. package/src/core/create/README.md +2 -0
  32. package/src/core/decorators/cache/README.md +2 -0
  33. package/src/core/decorators/component/README.md +2 -0
  34. package/src/core/decorators/debounce/README.md +2 -0
  35. package/src/core/decorators/hook/README.md +2 -0
  36. package/src/core/decorators/idle/README.md +2 -0
  37. package/src/core/decorators/nonenumerable/README.md +2 -0
  38. package/src/core/decorators/persistent/README.md +2 -0
  39. package/src/core/decorators/wait/README.md +2 -0
  40. package/src/core/decorators/watch/README.md +2 -0
  41. package/src/core/dom/README.md +2 -0
  42. package/src/core/event-emitter/README.md +2 -0
  43. package/src/core/helpers/README.md +2 -0
  44. package/src/core/plugin/README.md +2 -0
  45. package/src/core/request/README.md +2 -0
  46. package/src/core/selection/README.md +2 -0
  47. package/src/core/storage/README.md +2 -0
  48. package/src/core/vdom/README.md +2 -0
  49. package/src/core/view/README.md +2 -0
  50. package/src/core/view/view.ts +9 -1
  51. package/src/index.ts +7 -4
  52. package/src/jodit.ts +4 -2
  53. package/src/langs/index.ts +7 -4
  54. package/{types/types/core.ts → src/langs/keys.js} +1 -10
  55. package/src/modules/README.md +1 -1
  56. package/src/modules/dialog/README.md +2 -0
  57. package/src/modules/dialog/dialog.test.screenshot.js +55 -0
  58. package/src/modules/file-browser/README.md +12 -4
  59. package/src/modules/file-browser/builders/item.ts +1 -0
  60. package/src/modules/file-browser/file-browser.test.screenshot.js +1 -1
  61. package/src/modules/file-browser/file-browser.ts +4 -23
  62. package/src/modules/file-browser/styles/file-browser.less +0 -26
  63. package/src/modules/image-editor/README.md +1 -1
  64. package/src/modules/image-editor/image-editor.test.screenshot.js +1 -1
  65. package/src/modules/index.ts +1 -0
  66. package/src/modules/messages/README.md +33 -0
  67. package/src/modules/messages/message.ts +30 -0
  68. package/src/modules/messages/messages.less +71 -0
  69. package/src/modules/messages/messages.test.js +93 -0
  70. package/src/modules/messages/messages.test.screenshot.js +25 -0
  71. package/src/modules/messages/messages.ts +156 -0
  72. package/src/modules/uploader/README.md +2 -0
  73. package/src/plugins/color/color.test.screenshot.js +26 -0
  74. package/src/plugins/image-properties/image-properties.test.screenshot.js +27 -0
  75. package/src/plugins/index.ts +0 -1
  76. package/src/plugins/limit/README.md +39 -14
  77. package/src/plugins/limit/limit.test.js +30 -4
  78. package/src/plugins/limit/limit.ts +28 -21
  79. package/src/plugins/link/README.md +1 -1
  80. package/src/plugins/link/link.test.screenshot.js +26 -0
  81. package/src/plugins/search/search.test.screenshot.js +38 -0
  82. package/src/plugins/symbols/symbols.test.screenshot.js +25 -0
  83. package/src/styles/icons/README.md +2 -0
  84. package/src/styles/variables.less +7 -3
  85. package/src/types/async.d.ts +9 -2
  86. package/src/types/{core.ts → core.d.ts} +0 -0
  87. package/src/types/file-browser.d.ts +15 -0
  88. package/src/types/index.d.ts +1 -0
  89. package/src/types/messages.d.ts +10 -0
  90. package/src/types/view.d.ts +3 -0
  91. package/tsconfig.json +3 -0
  92. package/types/config.d.ts +0 -506
  93. package/types/core/async/async.d.ts +6 -34
  94. package/types/core/async/index.d.ts +0 -3
  95. package/types/core/component/component.d.ts +0 -81
  96. package/types/core/component/index.d.ts +0 -3
  97. package/types/core/component/statuses.d.ts +0 -3
  98. package/types/core/component/view-component.d.ts +0 -13
  99. package/types/core/constants.d.ts +0 -60
  100. package/types/core/create/create.d.ts +0 -32
  101. package/types/core/create/index.d.ts +0 -3
  102. package/types/core/decorators/component/component.d.ts +0 -9
  103. package/types/core/decorators/debounce/debounce.d.ts +0 -8
  104. package/types/core/decorators/hook/hook.d.ts +0 -8
  105. package/types/core/decorators/idle/idle.d.ts +0 -5
  106. package/types/core/decorators/index.d.ts +0 -5
  107. package/types/core/decorators/nonenumerable/nonenumerable.d.ts +0 -5
  108. package/types/core/decorators/persistent/persistent.d.ts +0 -5
  109. package/types/core/decorators/wait/wait.d.ts +0 -5
  110. package/types/core/decorators/watch/watch.d.ts +0 -8
  111. package/types/core/dom/dom.d.ts +0 -171
  112. package/types/core/dom/index.d.ts +0 -3
  113. package/types/core/dom/lazy-walker.d.ts +0 -3
  114. package/types/core/event-emitter/event-emitter.d.ts +0 -99
  115. package/types/core/event-emitter/eventify.d.ts +0 -25
  116. package/types/core/event-emitter/index.d.ts +0 -3
  117. package/types/core/event-emitter/observable.d.ts +0 -38
  118. package/types/core/event-emitter/store.d.ts +0 -3
  119. package/types/core/global.d.ts +0 -12
  120. package/types/core/helpers/array/as-array.d.ts +0 -3
  121. package/types/core/helpers/array/index.d.ts +0 -3
  122. package/types/core/helpers/array/split-array.d.ts +0 -6
  123. package/types/core/helpers/array/to-array.d.ts +0 -4
  124. package/types/core/helpers/async/index.d.ts +0 -3
  125. package/types/core/helpers/async/set-timeout.d.ts +0 -9
  126. package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -6
  127. package/types/core/helpers/checker/index.d.ts +0 -3
  128. package/types/core/helpers/checker/is-array.d.ts +0 -6
  129. package/types/core/helpers/checker/is-boolean.d.ts +0 -3
  130. package/types/core/helpers/checker/is-equal.d.ts +0 -3
  131. package/types/core/helpers/checker/is-function.d.ts +0 -6
  132. package/types/core/helpers/checker/is-html-from-word.d.ts +0 -6
  133. package/types/core/helpers/checker/is-html.d.ts +0 -3
  134. package/types/core/helpers/checker/is-imp-interface.d.ts +0 -12
  135. package/types/core/helpers/checker/is-int.d.ts +0 -3
  136. package/types/core/helpers/checker/is-jodit-object.d.ts +0 -6
  137. package/types/core/helpers/checker/is-native-function.d.ts +0 -6
  138. package/types/core/helpers/checker/is-number.d.ts +0 -6
  139. package/types/core/helpers/checker/is-numeric.d.ts +0 -3
  140. package/types/core/helpers/checker/is-plain-object.d.ts +0 -6
  141. package/types/core/helpers/checker/is-promise.d.ts +0 -3
  142. package/types/core/helpers/checker/is-string.d.ts +0 -6
  143. package/types/core/helpers/checker/is-url.d.ts +0 -6
  144. package/types/core/helpers/checker/is-valid-name.d.ts +0 -6
  145. package/types/core/helpers/checker/is-view-object.d.ts +0 -6
  146. package/types/core/helpers/checker/is-void.d.ts +0 -6
  147. package/types/core/helpers/checker/is-window.d.ts +0 -3
  148. package/types/core/helpers/color/color-to-hex.d.ts +0 -16
  149. package/types/core/helpers/color/index.d.ts +0 -3
  150. package/types/core/helpers/html/apply-styles.d.ts +0 -5
  151. package/types/core/helpers/html/clean-from-word.d.ts +0 -4
  152. package/types/core/helpers/html/htmlspecialchars.d.ts +0 -6
  153. package/types/core/helpers/html/index.d.ts +0 -3
  154. package/types/core/helpers/html/nl2br.d.ts +0 -6
  155. package/types/core/helpers/html/safe-html.d.ts +0 -3
  156. package/types/core/helpers/html/strip-tags.d.ts +0 -3
  157. package/types/core/helpers/index.d.ts +0 -5
  158. package/types/core/helpers/normalize/index.d.ts +0 -3
  159. package/types/core/helpers/normalize/normalize-color.d.ts +0 -6
  160. package/types/core/helpers/normalize/normalize-key-aliases.d.ts +0 -3
  161. package/types/core/helpers/normalize/normalize-license.d.ts +0 -3
  162. package/types/core/helpers/normalize/normalize-path.d.ts +0 -3
  163. package/types/core/helpers/normalize/normalize-relative-path.d.ts +0 -3
  164. package/types/core/helpers/normalize/normalize-size.d.ts +0 -6
  165. package/types/core/helpers/normalize/normalize-url.d.ts +0 -3
  166. package/types/core/helpers/size/get-content-width.d.ts +0 -3
  167. package/types/core/helpers/size/get-scroll-parent.d.ts +0 -3
  168. package/types/core/helpers/size/index.d.ts +0 -3
  169. package/types/core/helpers/size/inner-width.d.ts +0 -3
  170. package/types/core/helpers/size/offset.d.ts +0 -7
  171. package/types/core/helpers/size/position.d.ts +0 -3
  172. package/types/core/helpers/string/camel-case.d.ts +0 -6
  173. package/types/core/helpers/string/fuzzy-search-index.d.ts +0 -4
  174. package/types/core/helpers/string/i18n.d.ts +0 -31
  175. package/types/core/helpers/string/index.d.ts +0 -3
  176. package/types/core/helpers/string/kebab-case.d.ts +0 -3
  177. package/types/core/helpers/string/stringify.d.ts +0 -3
  178. package/types/core/helpers/string/trim.d.ts +0 -7
  179. package/types/core/helpers/string/ucfirst.d.ts +0 -6
  180. package/types/core/helpers/utils/align.d.ts +0 -12
  181. package/types/core/helpers/utils/append-script.d.ts +0 -12
  182. package/types/core/helpers/utils/assert.d.ts +0 -1
  183. package/types/core/helpers/utils/browser.d.ts +0 -14
  184. package/types/core/helpers/utils/build-query.d.ts +0 -6
  185. package/types/core/helpers/utils/complete-url.d.ts +0 -3
  186. package/types/core/helpers/utils/config-proto.d.ts +0 -33
  187. package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +0 -3
  188. package/types/core/helpers/utils/css.d.ts +0 -6
  189. package/types/core/helpers/utils/ctrl-key.d.ts +0 -7
  190. package/types/core/helpers/utils/data-bind.d.ts +0 -3
  191. package/types/core/helpers/utils/default-language.d.ts +0 -3
  192. package/types/core/helpers/utils/error/error.d.ts +0 -3
  193. package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -3
  194. package/types/core/helpers/utils/error/errors/connection-error.d.ts +0 -3
  195. package/types/core/helpers/utils/error/errors/index.d.ts +0 -3
  196. package/types/core/helpers/utils/error/errors/options-error.d.ts +0 -3
  197. package/types/core/helpers/utils/error/index.d.ts +0 -3
  198. package/types/core/helpers/utils/get-class-name.d.ts +0 -3
  199. package/types/core/helpers/utils/get.d.ts +0 -22
  200. package/types/core/helpers/utils/human-size-to-bytes.d.ts +0 -7
  201. package/types/core/helpers/utils/index.d.ts +0 -3
  202. package/types/core/helpers/utils/mark-deprecated.d.ts +0 -10
  203. package/types/core/helpers/utils/parse-query.d.ts +0 -6
  204. package/types/core/helpers/utils/print.d.ts +0 -9
  205. package/types/core/helpers/utils/reset.d.ts +0 -10
  206. package/types/core/helpers/utils/scroll-into-view.d.ts +0 -3
  207. package/types/core/helpers/utils/selector.d.ts +0 -29
  208. package/types/core/helpers/utils/set.d.ts +0 -16
  209. package/types/core/helpers/utils/stack.d.ts +0 -3
  210. package/types/core/helpers/utils/utils.d.ts +0 -36
  211. package/types/core/helpers/utils/val.d.ts +0 -3
  212. package/types/core/plugin/index.d.ts +0 -3
  213. package/types/core/plugin/plugin-system.d.ts +0 -48
  214. package/types/core/plugin/plugin.d.ts +0 -10
  215. package/types/core/request/ajax.d.ts +0 -8
  216. package/types/core/request/config.d.ts +0 -6
  217. package/types/core/request/index.d.ts +0 -3
  218. package/types/core/request/response.d.ts +0 -3
  219. package/types/core/selection/helpers/index.d.ts +0 -3
  220. package/types/core/selection/helpers/move-node-inside-start.d.ts +0 -7
  221. package/types/core/selection/index.d.ts +0 -3
  222. package/types/core/selection/select.d.ts +0 -180
  223. package/types/core/selection/style/api/element-has-same-style.d.ts +0 -7
  224. package/types/core/selection/style/api/extract.d.ts +0 -16
  225. package/types/core/selection/style/api/finite-state-machine.d.ts +0 -3
  226. package/types/core/selection/style/api/get-suit-child.d.ts +0 -8
  227. package/types/core/selection/style/api/get-suit-parent.d.ts +0 -8
  228. package/types/core/selection/style/api/is-inside-invisible-element.d.ts +0 -4
  229. package/types/core/selection/style/api/is-normal-node.d.ts +0 -4
  230. package/types/core/selection/style/api/is-suit-element.d.ts +0 -24
  231. package/types/core/selection/style/api/toggle/toggle-css.d.ts +0 -4
  232. package/types/core/selection/style/api/toggle/toggle-ordered-list.d.ts +0 -4
  233. package/types/core/selection/style/api/toggle-commit-styles.d.ts +0 -5
  234. package/types/core/selection/style/api/unwrap-children.d.ts +0 -4
  235. package/types/core/selection/style/api/wrap-and-commit-style.d.ts +0 -4
  236. package/types/core/selection/style/api/wrap-ordered-list.d.ts +0 -5
  237. package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +0 -4
  238. package/types/core/selection/style/apply-style.d.ts +0 -3
  239. package/types/core/selection/style/commit-style.d.ts +0 -9
  240. package/types/core/storage/engines/local-storage-provider.d.ts +0 -9
  241. package/types/core/storage/engines/memory-storage-provider.d.ts +0 -3
  242. package/types/core/storage/index.d.ts +0 -3
  243. package/types/core/storage/storage.d.ts +0 -5
  244. package/types/core/traits/dlgs.d.ts +0 -3
  245. package/types/core/traits/elms.d.ts +0 -9
  246. package/types/core/traits/index.d.ts +0 -3
  247. package/types/core/traits/mods.d.ts +0 -11
  248. package/types/core/ui/button/button/button.d.ts +0 -32
  249. package/types/core/ui/button/group/group.d.ts +0 -6
  250. package/types/core/ui/button/index.d.ts +0 -5
  251. package/types/core/ui/button/tooltip/tooltip.d.ts +0 -8
  252. package/types/core/ui/element.d.ts +0 -27
  253. package/types/core/ui/form/block/block.d.ts +0 -4
  254. package/types/core/ui/form/form.d.ts +0 -7
  255. package/types/core/ui/form/index.d.ts +0 -3
  256. package/types/core/ui/form/inputs/area/area.d.ts +0 -7
  257. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +0 -8
  258. package/types/core/ui/form/inputs/file/file.d.ts +0 -4
  259. package/types/core/ui/form/inputs/index.d.ts +0 -3
  260. package/types/core/ui/form/inputs/input/input.d.ts +0 -18
  261. package/types/core/ui/form/inputs/select/select.d.ts +0 -10
  262. package/types/core/ui/form/validators/index.d.ts +0 -3
  263. package/types/core/ui/form/validators/input.d.ts +0 -9
  264. package/types/core/ui/form/validators/select.d.ts +0 -6
  265. package/types/core/ui/group/group.d.ts +0 -32
  266. package/types/core/ui/group/index.d.ts +0 -3
  267. package/types/core/ui/group/list.d.ts +0 -16
  268. package/types/core/ui/group/separator.d.ts +0 -3
  269. package/types/core/ui/group/spacer.d.ts +0 -3
  270. package/types/core/ui/helpers/buttons.d.ts +0 -3
  271. package/types/core/ui/helpers/get-control-type.d.ts +0 -6
  272. package/types/core/ui/helpers/get-strong-control-types.d.ts +0 -3
  273. package/types/core/ui/icon.d.ts +0 -15
  274. package/types/core/ui/index.d.ts +0 -5
  275. package/types/core/ui/popup/index.d.ts +0 -3
  276. package/types/core/ui/popup/popup.d.ts +0 -35
  277. package/types/core/ui/progress-bar/progress-bar.d.ts +0 -10
  278. package/types/core/vdom/helpers/index.d.ts +9 -0
  279. package/types/core/vdom/index.d.ts +8 -0
  280. package/types/core/vdom/interface.d.ts +48 -0
  281. package/types/core/vdom/render/index.d.ts +23 -0
  282. package/types/core/vdom/v-dom-jodit.d.ts +15 -0
  283. package/types/core/view/view-with-toolbar.d.ts +0 -22
  284. package/types/core/view/view.d.ts +2 -65
  285. package/types/index.d.ts +1 -6
  286. package/types/jodit.d.ts +5 -257
  287. package/types/langs/index.d.ts +0 -5
  288. package/types/modules/context-menu/context-menu.d.ts +0 -20
  289. package/types/modules/dialog/alert.d.ts +0 -17
  290. package/types/modules/dialog/confirm.d.ts +0 -17
  291. package/types/modules/dialog/dialog.d.ts +0 -115
  292. package/types/modules/dialog/index.d.ts +0 -5
  293. package/types/modules/dialog/prompt.d.ts +0 -20
  294. package/types/modules/file-browser/builders/context-menu.d.ts +0 -3
  295. package/types/modules/file-browser/builders/elements-map.d.ts +0 -6
  296. package/types/modules/file-browser/builders/item.d.ts +0 -3
  297. package/types/modules/file-browser/data-provider.d.ts +0 -69
  298. package/types/modules/file-browser/factories.d.ts +0 -3
  299. package/types/modules/file-browser/fetch/delete-file.d.ts +0 -6
  300. package/types/modules/file-browser/fetch/load-items.d.ts +0 -6
  301. package/types/modules/file-browser/fetch/load-tree.d.ts +0 -6
  302. package/types/modules/file-browser/file-browser.d.ts +0 -36
  303. package/types/modules/file-browser/index.d.ts +0 -5
  304. package/types/modules/file-browser/listeners/native-listeners.d.ts +0 -3
  305. package/types/modules/file-browser/listeners/self-listeners.d.ts +0 -3
  306. package/types/modules/file-browser/listeners/state-listeners.d.ts +0 -6
  307. package/types/modules/file-browser/ui/index.d.ts +0 -3
  308. package/types/modules/history/command.d.ts +0 -3
  309. package/types/modules/history/history.d.ts +0 -30
  310. package/types/modules/history/snapshot.d.ts +0 -40
  311. package/types/modules/history/stack.d.ts +0 -3
  312. package/types/modules/image-editor/image-editor.d.ts +1 -54
  313. package/types/modules/image-editor/templates/form.d.ts +0 -3
  314. package/types/modules/index.d.ts +1 -5
  315. package/types/modules/messages/message.d.ts +14 -0
  316. package/types/modules/messages/messages.d.ts +27 -0
  317. package/types/modules/status-bar/status-bar.d.ts +0 -20
  318. package/types/modules/table/table.d.ts +0 -57
  319. package/types/modules/toolbar/button/button.d.ts +1 -41
  320. package/types/modules/toolbar/button/content.d.ts +0 -6
  321. package/types/modules/toolbar/button/index.d.ts +0 -3
  322. package/types/modules/toolbar/collection/collection.d.ts +0 -23
  323. package/types/modules/toolbar/collection/editor-collection.d.ts +0 -19
  324. package/types/modules/toolbar/factory.d.ts +0 -11
  325. package/types/modules/uploader/config.d.ts +0 -6
  326. package/types/modules/uploader/helpers/build-data.d.ts +0 -3
  327. package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +0 -6
  328. package/types/modules/uploader/helpers/index.d.ts +0 -3
  329. package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +0 -3
  330. package/types/modules/uploader/helpers/send-files.d.ts +0 -6
  331. package/types/modules/uploader/helpers/send.d.ts +0 -3
  332. package/types/modules/uploader/uploader.d.ts +0 -35
  333. package/types/modules/widget/color-picker/color-picker.d.ts +0 -22
  334. package/types/modules/widget/file-selector/file-selector.d.ts +0 -41
  335. package/types/modules/widget/index.d.ts +0 -5
  336. package/types/modules/widget/tabs/tabs.d.ts +0 -22
  337. package/types/plugins/about/about.d.ts +0 -5
  338. package/types/plugins/add-new-line/add-new-line.d.ts +0 -9
  339. package/types/plugins/add-new-line/config.d.ts +0 -22
  340. package/types/plugins/backspace/backspace.d.ts +0 -14
  341. package/types/plugins/backspace/cases/check-join-neighbors.d.ts +0 -6
  342. package/types/plugins/backspace/cases/check-join-two-lists.d.ts +0 -16
  343. package/types/plugins/backspace/cases/check-not-collapsed.d.ts +0 -16
  344. package/types/plugins/backspace/cases/check-remove-char.d.ts +0 -16
  345. package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +0 -7
  346. package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +0 -16
  347. package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +0 -17
  348. package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +0 -17
  349. package/types/plugins/backspace/cases/check-table-cell.d.ts +0 -17
  350. package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +0 -17
  351. package/types/plugins/backspace/cases/index.d.ts +1 -1
  352. package/types/plugins/backspace/helpers.d.ts +0 -7
  353. package/types/plugins/bold/bold.d.ts +0 -8
  354. package/types/plugins/class-span/class-span.d.ts +0 -27
  355. package/types/plugins/clean-html/clean-html.d.ts +0 -17
  356. package/types/plugins/clean-html/config.d.ts +0 -73
  357. package/types/plugins/clean-html/helpers/get-hash.d.ts +0 -6
  358. package/types/plugins/clean-html/helpers/index.d.ts +0 -3
  359. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +0 -10
  360. package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +0 -7
  361. package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +0 -6
  362. package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +0 -6
  363. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +0 -6
  364. package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +0 -6
  365. package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +0 -6
  366. package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +0 -6
  367. package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +0 -6
  368. package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +0 -6
  369. package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +0 -6
  370. package/types/plugins/clipboard/clipboard.d.ts +0 -10
  371. package/types/plugins/color/color.d.ts +0 -8
  372. package/types/plugins/copy-format/copy-format.d.ts +0 -5
  373. package/types/plugins/copy-format/langs/index.d.ts +25 -0
  374. package/types/plugins/debug/debug.d.ts +11 -0
  375. package/types/plugins/drag-and-drop/drag-and-drop.d.ts +0 -5
  376. package/types/plugins/drag-and-drop-element/config.d.ts +0 -3
  377. package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +0 -26
  378. package/types/plugins/dtd/after-insert/index.d.ts +0 -4
  379. package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +0 -9
  380. package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +0 -9
  381. package/types/plugins/dtd/before-insert/index.d.ts +0 -4
  382. package/types/plugins/dtd/config.d.ts +0 -12
  383. package/types/plugins/enter/enter.d.ts +0 -11
  384. package/types/plugins/enter/helpers/check-br.d.ts +0 -7
  385. package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +0 -7
  386. package/types/plugins/enter/helpers/get-block-wrapper.d.ts +0 -7
  387. package/types/plugins/enter/helpers/has-previous-block.d.ts +0 -6
  388. package/types/plugins/enter/helpers/index.d.ts +0 -3
  389. package/types/plugins/enter/helpers/insert-paragraph.d.ts +0 -7
  390. package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +0 -6
  391. package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +0 -7
  392. package/types/plugins/enter/helpers/split-fragment.d.ts +0 -8
  393. package/types/plugins/enter/helpers/wrap-text.d.ts +0 -8
  394. package/types/plugins/file/file.d.ts +0 -5
  395. package/types/plugins/focus/focus.d.ts +0 -5
  396. package/types/plugins/font/font.d.ts +0 -8
  397. package/types/plugins/format-block/format-block.d.ts +0 -8
  398. package/types/plugins/fullsize/config.d.ts +0 -22
  399. package/types/plugins/fullsize/fullsize.d.ts +0 -8
  400. package/types/plugins/hotkeys/config.d.ts +0 -3
  401. package/types/plugins/hotkeys/hotkeys.d.ts +0 -10
  402. package/types/plugins/hr/hr.d.ts +0 -5
  403. package/types/plugins/iframe/config.d.ts +0 -49
  404. package/types/plugins/iframe/iframe.d.ts +0 -9
  405. package/types/plugins/image/image.d.ts +0 -5
  406. package/types/plugins/image-processor/config.d.ts +0 -3
  407. package/types/plugins/image-processor/image-processor.d.ts +0 -8
  408. package/types/plugins/image-properties/config.d.ts +0 -42
  409. package/types/plugins/image-properties/image-properties.d.ts +0 -42
  410. package/types/plugins/image-properties/templates/form.d.ts +0 -3
  411. package/types/plugins/image-properties/templates/main-tab.d.ts +0 -3
  412. package/types/plugins/image-properties/templates/position-tab.d.ts +0 -3
  413. package/types/plugins/indent/config.d.ts +0 -3
  414. package/types/plugins/indent/helpers.d.ts +0 -4
  415. package/types/plugins/indent/indent.d.ts +0 -8
  416. package/types/plugins/index.d.ts +0 -6
  417. package/types/plugins/inline-popup/config/config.d.ts +0 -3
  418. package/types/plugins/inline-popup/config/items/a.d.ts +8 -0
  419. package/types/plugins/inline-popup/config/items/cells.d.ts +8 -0
  420. package/types/plugins/inline-popup/config/items/iframe.d.ts +8 -0
  421. package/types/plugins/inline-popup/config/items/img.d.ts +9 -0
  422. package/types/plugins/inline-popup/config/items/toolbar.d.ts +7 -0
  423. package/types/plugins/inline-popup/inline-popup.d.ts +0 -36
  424. package/types/plugins/justify/justify.d.ts +0 -8
  425. package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +0 -8
  426. package/types/plugins/limit/config.d.ts +0 -9
  427. package/types/plugins/limit/limit.d.ts +2 -23
  428. package/types/plugins/line-height/config.d.ts +0 -9
  429. package/types/plugins/line-height/langs/index.d.ts +25 -0
  430. package/types/plugins/line-height/line-height.d.ts +0 -5
  431. package/types/plugins/link/config.d.ts +0 -33
  432. package/types/plugins/link/link.d.ts +0 -11
  433. package/types/plugins/link/template.d.ts +0 -3
  434. package/types/plugins/media/config.d.ts +0 -9
  435. package/types/plugins/media/media.d.ts +0 -8
  436. package/types/plugins/mobile/config.d.ts +0 -6
  437. package/types/plugins/mobile/mobile.d.ts +0 -8
  438. package/types/plugins/ordered-list/ordered-list.d.ts +0 -8
  439. package/types/plugins/paste/config.d.ts +0 -19
  440. package/types/plugins/paste/helpers.d.ts +0 -12
  441. package/types/plugins/paste/interface.d.ts +0 -3
  442. package/types/plugins/paste/paste.d.ts +0 -31
  443. package/types/plugins/paste-from-word/config.d.ts +0 -21
  444. package/types/plugins/paste-from-word/paste-from-word.d.ts +0 -11
  445. package/types/plugins/paste-storage/paste-storage.d.ts +0 -8
  446. package/types/plugins/placeholder/config.d.ts +0 -31
  447. package/types/plugins/placeholder/placeholder.d.ts +0 -11
  448. package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +0 -8
  449. package/types/plugins/preview/preview.d.ts +0 -5
  450. package/types/plugins/print/lib/generate-critical-css.d.ts +0 -6
  451. package/types/plugins/print/print.d.ts +0 -5
  452. package/types/plugins/redo-undo/redo-undo.d.ts +0 -9
  453. package/types/plugins/resize-cells/resize-cells.d.ts +0 -42
  454. package/types/plugins/resize-handler/resize-handler.d.ts +0 -26
  455. package/types/plugins/resizer/config.d.ts +0 -31
  456. package/types/plugins/resizer/resizer.d.ts +0 -22
  457. package/types/plugins/search/config.d.ts +0 -21
  458. package/types/plugins/search/helpers/index.d.ts +0 -3
  459. package/types/plugins/search/helpers/sentence-finder.d.ts +0 -3
  460. package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +0 -3
  461. package/types/plugins/search/search.d.ts +0 -22
  462. package/types/plugins/search/ui/search.d.ts +0 -6
  463. package/types/plugins/select/config.d.ts +0 -8
  464. package/types/plugins/select/select.d.ts +0 -19
  465. package/types/plugins/select-cells/select-cells.d.ts +0 -34
  466. package/types/plugins/size/size.d.ts +0 -27
  467. package/types/plugins/source/config.d.ts +0 -25
  468. package/types/plugins/source/editor/engines/ace.d.ts +0 -6
  469. package/types/plugins/source/editor/engines/area.d.ts +0 -3
  470. package/types/plugins/source/editor/engines/index.d.ts +0 -3
  471. package/types/plugins/source/editor/factory.d.ts +0 -3
  472. package/types/plugins/source/editor/sourceEditor.d.ts +0 -6
  473. package/types/plugins/source/source.d.ts +0 -17
  474. package/types/plugins/speech-recognize/config.d.ts +19 -0
  475. package/types/plugins/speech-recognize/constants.d.ts +7 -0
  476. package/types/plugins/speech-recognize/helpers/api.d.ts +7 -0
  477. package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +7 -0
  478. package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +45 -0
  479. package/types/plugins/speech-recognize/helpers/sound.d.ts +11 -0
  480. package/types/plugins/speech-recognize/interface.d.ts +30 -0
  481. package/types/plugins/speech-recognize/langs/index.d.ts +25 -0
  482. package/types/plugins/speech-recognize/speech-recognize.d.ts +19 -0
  483. package/types/plugins/spellcheck/config.d.ts +0 -4
  484. package/types/plugins/spellcheck/langs/index.d.ts +25 -0
  485. package/types/plugins/spellcheck/spellcheck.d.ts +0 -5
  486. package/types/plugins/stat/stat.d.ts +0 -5
  487. package/types/plugins/sticky/config.d.ts +0 -19
  488. package/types/plugins/sticky/sticky.d.ts +0 -18
  489. package/types/plugins/symbols/langs/index.d.ts +25 -0
  490. package/types/plugins/symbols/symbols.d.ts +0 -11
  491. package/types/plugins/tab/cases/index.d.ts +0 -3
  492. package/types/plugins/tab/cases/on-tab-inside-li.d.ts +0 -8
  493. package/types/plugins/tab/config.d.ts +0 -3
  494. package/types/plugins/table/table.d.ts +0 -5
  495. package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +0 -8
  496. package/types/plugins/wrap-nodes/config.d.ts +0 -3
  497. package/types/plugins/xpath/xpath.d.ts +0 -5
  498. package/types/polyfills.d.ts +10 -0
  499. package/types/styles/icons/index.d.ts +0 -5
  500. package/types/types/async.d.ts +9 -2
  501. package/types/types/core.d.ts +7 -1
  502. package/types/types/file-browser.d.ts +15 -0
  503. package/types/types/index.d.ts +1 -0
  504. package/types/types/jodit.d.ts +1 -1
  505. package/types/types/messages.d.ts +10 -0
  506. package/types/types/storage.d.ts +0 -3
  507. package/types/types/traits.d.ts +2 -2
  508. package/types/types/types.d.ts +2 -2
  509. package/types/types/uploader.d.ts +1 -1
  510. package/types/types/view.d.ts +3 -0
  511. package/src/modules/file-browser/__image_snapshots__/file-browser-test-screenshot-js-filebrowser-screenshot-testing-open-filebrowser-works-1-snap.png +0 -0
  512. package/src/modules/image-editor/__image_snapshots__/image-editor-test-screenshot-js-image-editor-screenshot-testing-open-image-editor-works-1-snap.png +0 -0
  513. package/src/plugins/error-messages/README.md +0 -10
  514. package/src/plugins/error-messages/error-messages.ts +0 -109
  515. package/src/plugins/error-messages/errors-messages.less +0 -49
  516. package/types/plugins/error-messages/error-messages.d.ts +0 -29
@@ -3,60 +3,20 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/history
8
- */
9
6
  import type { IJodit, ISnapshot, SnapshotType } from 'jodit/types';
10
7
  import { ViewComponent } from 'jodit/core/component';
11
- /**
12
- * Module for creating snapshot of editor which includes html content and the current selection
13
- */
14
8
  export declare class Snapshot extends ViewComponent<IJodit> implements ISnapshot {
15
- /** @override */
16
9
  className(): string;
17
- /**
18
- * Compare two snapshotes, if and htmls and selections match, then return true
19
- *
20
- * @param first - the first snapshote
21
- * @param second - second shot
22
- */
23
10
  static equal(first: SnapshotType, second: SnapshotType): boolean;
24
- /**
25
- * Calc count element before some node in parentNode. All text nodes are joined
26
- */
27
11
  private static countNodesBeforeInParent;
28
- /**
29
- * Calc normal offset in joined text nodes
30
- */
31
12
  private static strokeOffset;
32
- /**
33
- * Calc whole hierarchy path before some element in editor's tree
34
- */
35
13
  private calcHierarchyLadder;
36
14
  private getElementByLadder;
37
15
  isBlocked: boolean;
38
- /**
39
- * Creates object a snapshot of editor: html and the current selection. Current selection calculate by
40
- * offset by start document
41
- * \{html: string, range: \{startContainer: int, startOffset: int, endContainer: int, endOffset: int\}\} or
42
- * \{html: string\} without selection
43
- */
44
16
  make(): SnapshotType;
45
- /**
46
- * Restores the state of the editor of the snapshot. Rebounding is not only html but selected text
47
- *
48
- * @param snapshot - snapshot of editor resulting from the `[[Snapshot.make]]` method
49
- * @see make
50
- */
51
17
  restore(snapshot: SnapshotType): void;
52
18
  private storeScrollState;
53
19
  private restoreScrollState;
54
- /**
55
- * Restore selection from snapshot
56
- *
57
- * @param snapshot - snapshot of editor resulting from the [[Snapshot.make]] method
58
- * @see make
59
- */
60
20
  restoreOnlySelection(snapshot: SnapshotType): void;
61
21
  destruct(): void;
62
22
  private removeJoditSelection;
@@ -3,9 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/history
8
- */
9
6
  import type { CanUndef, IStack } from 'jodit/types';
10
7
  import type { Command } from './command';
11
8
  export declare class Stack implements IStack {
@@ -3,36 +3,14 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/image-editor/README.md]]
8
- * @packageDocumentation
9
- * @module modules/image-editor
10
- */
11
6
  import './image-editor.less';
12
7
  import type { ImageEditorActionBox, ImageEditorOptions, IFileBrowserDataProvider, IDialog, IViewWithToolbar, IDlgs } from 'jodit/types';
13
8
  import { ViewComponent } from 'jodit/core/component';
14
9
  import './config';
15
10
  interface onSave {
16
- (
17
- /**
18
- * new filename
19
- */
20
- newname: string | void, box: ImageEditorActionBox,
21
- /**
22
- * called after success operation
23
- */
24
- success: () => void,
25
- /**
26
- * called after failed operation
27
- */
28
- failed: (error: Error) => void): void;
11
+ (newname: string | void, box: ImageEditorActionBox, success: () => void, failed: (error: Error) => void): void;
29
12
  }
30
- /**
31
- * The module allows you to edit the image: resize or cut any part of it
32
- *
33
- */
34
13
  export declare class ImageEditor extends ViewComponent<IViewWithToolbar & IDlgs> {
35
- /** @override */
36
14
  className(): string;
37
15
  private resizeUseRatio;
38
16
  private cropUseRatio;
@@ -78,42 +56,11 @@ export declare class ImageEditor extends ViewComponent<IViewWithToolbar & IDlgs>
78
56
  options: ImageEditorOptions;
79
57
  get o(): this['options'];
80
58
  onSave: (name: void | string, data: ImageEditorActionBox, hide: () => void, failed: (e: Error) => void) => void;
81
- /**
82
- * Hide image editor
83
- */
84
59
  hide(): void;
85
- /**
86
- * Open image editor
87
- * @example
88
- * ```javascript
89
- * var jodit = Jodit.make('.editor', {
90
- * imageeditor: {
91
- * crop: false,
92
- * closeAfterSave: true,
93
- * width: 500
94
- * }
95
- * });
96
- * jodit.imageeditor.open('http://xdsoft.net/jodit/images/test.png', function (name, data, success, failed) {
97
- * var img = jodit.node.c('img');
98
- * img.setAttribute('src', 'http://xdsoft.net/jodit/images/test.png');
99
- * if (box.action !== 'resize') {
100
- * return failed('Sorry it is work only in resize mode. For croping use FileBrowser');
101
- * }
102
- * img.style.width = data.w;
103
- * img.style.height = data.h;
104
- * jodit.s.insertNode(img);
105
- * success();
106
- * });
107
- * ```
108
- */
109
60
  open(url: string, save: onSave): Promise<IDialog>;
110
61
  constructor(editor: IViewWithToolbar & IDlgs);
111
- /** @override */
112
62
  destruct(): any;
113
63
  }
114
- /**
115
- * Open Image Editor
116
- */
117
64
  export declare function openImageEditor(this: IViewWithToolbar & {
118
65
  dataProvider: IFileBrowserDataProvider;
119
66
  }, href: string, name: string, path: string, source: string, onSuccess?: () => void, onFailed?: (error: Error) => void): Promise<IDialog>;
@@ -3,8 +3,5 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/image-editor
8
- */
9
6
  import type { ImageEditorOptions, IViewBased } from 'jodit/types';
10
7
  export declare const form: (editor: IViewBased, o: ImageEditorOptions) => HTMLElement;
@@ -3,11 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/README.md]]
8
- * @packageDocumentation
9
- * @module modules
10
- */
11
6
  export * from '../core/event-emitter';
12
7
  export { Async } from '../core/async';
13
8
  export * from '../core/request';
@@ -33,4 +28,5 @@ export { ToolbarEditorCollection } from './toolbar/collection/editor-collection'
33
28
  export { ToolbarCollection } from './toolbar/collection/collection';
34
29
  export * from './toolbar/button';
35
30
  export { Uploader } from './uploader/uploader';
31
+ export { UIMessages } from './messages/messages';
36
32
  export { PluginSystem } from '../core/plugin/plugin-system';
@@ -0,0 +1,14 @@
1
+ /*!
2
+ * Jodit Editor (https://xdsoft.net/jodit/)
3
+ * Released under MIT see LICENSE.txt in the project root for license information.
4
+ * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
+ */
6
+ import type { IViewBased, MessageVariant } from 'jodit/types';
7
+ import { UIElement } from 'jodit/core/ui';
8
+ export declare class UIMessage extends UIElement {
9
+ className(): string;
10
+ constructor(jodit: IViewBased, options: {
11
+ text: string;
12
+ variant: MessageVariant;
13
+ });
14
+ }
@@ -0,0 +1,27 @@
1
+ /*!
2
+ * Jodit Editor (https://xdsoft.net/jodit/)
3
+ * Released under MIT see LICENSE.txt in the project root for license information.
4
+ * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
+ */
6
+ import './messages.less';
7
+ import type { IMessages, IViewBased, MessageVariant } from 'jodit/types';
8
+ import { UIGroup } from 'jodit/core/ui/group/group';
9
+ export declare class UIMessages extends UIGroup implements IMessages {
10
+ readonly options: {
11
+ defaultTimeout: number;
12
+ defaultOffset: number;
13
+ };
14
+ className(): string;
15
+ constructor(jodit: IViewBased, options?: {
16
+ defaultTimeout: number;
17
+ defaultOffset: number;
18
+ });
19
+ info(text: string, timeout?: number): void;
20
+ success(text: string, timeout?: number): void;
21
+ error(text: string, timeout?: number): void;
22
+ message(text: string, variant?: MessageVariant, timeout?: number): void;
23
+ private __message;
24
+ private __getRemoveCallback;
25
+ private __messages;
26
+ private __calcOffsets;
27
+ }
@@ -3,11 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/status-bar/README.md]]
8
- * @packageDocumentation
9
- * @module modules/status-bar
10
- */
11
6
  import './status-bar.less';
12
7
  import type { IJodit, IStatusBar, IDictionary, ModType } from 'jodit/types';
13
8
  import { ViewComponent } from 'jodit/core/component';
@@ -18,27 +13,12 @@ export declare class StatusBar extends ViewComponent<IJodit> implements IStatusB
18
13
  readonly target: HTMLElement;
19
14
  className(): string;
20
15
  container: HTMLDivElement;
21
- /**
22
- * Hide statusbar
23
- */
24
16
  hide(): void;
25
- /**
26
- * Show statusbar
27
- */
28
17
  show(): void;
29
- /**
30
- * Status bar is shown
31
- */
32
18
  get isShown(): boolean;
33
19
  readonly mods: IDictionary<ModType>;
34
- /**
35
- * Height of statusbar
36
- */
37
20
  getHeight(): number;
38
21
  private findEmpty;
39
- /**
40
- * Add element in statusbar
41
- */
42
22
  append(child: HTMLElement, inTheRight?: boolean): void;
43
23
  constructor(jodit: IJodit, target: HTMLElement);
44
24
  destruct(): void;
@@ -3,88 +3,31 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/table/README.md]]
8
- * @packageDocumentation
9
- * @module modules/table
10
- */
11
6
  import type { ICreate, IJodit } from 'jodit/types';
12
7
  import { ViewComponent } from 'jodit/core/component';
13
8
  export declare class Table extends ViewComponent<IJodit> {
14
- /** @override */
15
9
  className(): string;
16
10
  private selected;
17
11
  private static selectedByTable;
18
12
  private recalculateStyles;
19
13
  addSelection(td: HTMLTableCellElement): void;
20
14
  removeSelection(td: HTMLTableCellElement): void;
21
- /**
22
- * Returns array of selected cells
23
- */
24
15
  getAllSelectedCells(): HTMLTableCellElement[];
25
16
  static getSelectedCellsByTable(table: HTMLTableElement): HTMLTableCellElement[];
26
- /** @override **/
27
17
  destruct(): any;
28
- /**
29
- * Returns rows count in the table
30
- */
31
18
  static getRowsCount(table: HTMLTableElement): number;
32
- /**
33
- * Returns columns count in the table
34
- */
35
19
  static getColumnsCount(table: HTMLTableElement): number;
36
- /**
37
- * Generate formal table martix columns*rows
38
- * @param callback - if return false cycle break
39
- */
40
20
  static formalMatrix(table: HTMLTableElement, callback?: (cell: HTMLTableCellElement, row: number, col: number, colSpan: number, rowSpan: number) => false | void): HTMLTableCellElement[][];
41
- /**
42
- * Get cell coordinate in formal table (without colspan and rowspan)
43
- */
44
21
  static formalCoordinate(table: HTMLTableElement, cell: HTMLTableCellElement, max?: boolean): number[];
45
- /**
46
- * Inserts a new line after row what contains the selected cell
47
- *
48
- * @param line - Insert a new line after/before this
49
- * line contains the selected cell
50
- * @param after - Insert a new line after line contains the selected cell
51
- */
52
22
  static appendRow(table: HTMLTableElement, line: false | HTMLTableRowElement, after: boolean, create: ICreate): void;
53
- /**
54
- * Remove row
55
- */
56
23
  static removeRow(table: HTMLTableElement, rowIndex: number): void;
57
- /**
58
- * Insert column before / after all the columns containing the selected cells
59
- */
60
24
  static appendColumn(table: HTMLTableElement, j: number, after: boolean, create: ICreate): void;
61
- /**
62
- * Remove column by index
63
- */
64
25
  static removeColumn(table: HTMLTableElement, j: number): void;
65
- /**
66
- * Define bound for selected cells
67
- */
68
26
  static getSelectedBound(table: HTMLTableElement, selectedCells: HTMLTableCellElement[]): number[][];
69
- /**
70
- * Try recalculate all coluns and rows after change
71
- */
72
27
  static normalizeTable(table: HTMLTableElement): void;
73
- /**
74
- * It combines all of the selected cells into one. The contents of the cells will also be combined
75
- */
76
28
  static mergeSelected(table: HTMLTableElement, jodit: IJodit): void;
77
- /**
78
- * Divides all selected by `jodit_focused_cell` class table cell in 2 parts vertical. Those division into 2 columns
79
- */
80
29
  static splitHorizontal(table: HTMLTableElement, jodit: IJodit): void;
81
- /**
82
- * It splits all the selected cells into 2 parts horizontally. Those. are added new row
83
- */
84
30
  static splitVertical(table: HTMLTableElement, jodit: IJodit): void;
85
- /**
86
- * Set column width used delta value
87
- */
88
31
  static setColumnWidthByDelta(table: HTMLTableElement, column: number, delta: number, noUnmark: boolean, marked: HTMLTableCellElement[]): void;
89
32
  private static mark;
90
33
  private static unmark;
@@ -3,24 +3,18 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/toolbar/button/README.md]]
8
- * @packageDocumentation
9
- * @module modules/toolbar/button
10
- */
11
6
  import './button.less';
12
7
  import type { IControlTypeStrong, IToolbarButton, IToolbarCollection, IViewBased, Nullable } from 'jodit/types';
13
8
  import { UIButton } from 'jodit/core/ui/button';
14
9
  export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UIButton implements IToolbarButton {
15
10
  readonly control: IControlTypeStrong;
16
11
  readonly target: Nullable<HTMLElement>;
17
- /** @override */
18
12
  className(): string;
19
13
  readonly state: {
20
14
  theme: string;
21
15
  currentValue: string;
22
16
  hasTrigger: boolean;
23
- size: "small" | "middle" | "tiny" | "xsmall" | "large";
17
+ size: "tiny" | "xsmall" | "small" | "middle" | "large";
24
18
  name: string;
25
19
  value: string | number | boolean;
26
20
  variant: import("jodit/types").ButtonVariant;
@@ -33,62 +27,28 @@ export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UI
33
27
  tabIndex: import("jodit/types").CanUndef<number>;
34
28
  };
35
29
  protected trigger: HTMLElement;
36
- /**
37
- * Get parent toolbar
38
- */
39
30
  protected get toolbar(): Nullable<IToolbarCollection>;
40
- /**
41
- * Button element
42
- */
43
31
  get button(): HTMLElement;
44
- /** @override **/
45
32
  update(): void;
46
- /**
47
- * Calculates whether the button is active
48
- */
49
33
  private calculateActivatedStatus;
50
- /**
51
- * Calculates whether an element is blocked for the user
52
- */
53
34
  private calculateDisabledStatus;
54
- /** @override */
55
35
  protected onChangeActivated(): void;
56
- /** @override */
57
36
  protected onChangeText(): void;
58
- /** @override */
59
37
  protected onChangeTabIndex(): void;
60
38
  protected onChangeTooltip(): void;
61
- /** @override */
62
39
  protected createContainer(): HTMLElement;
63
- /** @override */
64
40
  focus(): void;
65
41
  protected onChangeHasTrigger(): void;
66
- /** @override */
67
42
  protected onChangeDisabled(): void;
68
- /**
69
- * Add tooltip to button
70
- */
71
43
  protected initTooltip(): void;
72
44
  constructor(jodit: T, control: IControlTypeStrong, target?: Nullable<HTMLElement>);
73
- /**
74
- * Init constant data from control
75
- */
76
45
  private initFromControl;
77
- /**
78
- * Click on trigger button
79
- */
80
46
  protected onTriggerClick(e: MouseEvent): void;
81
47
  private openedPopup;
82
- /**
83
- * Create and open popup list
84
- */
85
48
  private openControlList;
86
49
  protected onOutsideClick(e: MouseEvent): void;
87
50
  private openPopup;
88
51
  private closePopup;
89
- /**
90
- * Click handler
91
- */
92
52
  protected onClick(originalEvent: MouseEvent): void;
93
53
  destruct(): any;
94
54
  }
@@ -3,20 +3,14 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/toolbar/button
8
- */
9
6
  import './content.less';
10
7
  import type { IControlTypeContent, IToolbarButton, IViewBased, Nullable } from 'jodit/types';
11
8
  import { UIButton } from 'jodit/core/ui/button';
12
9
  export declare class ToolbarContent<T extends IViewBased = IViewBased> extends UIButton implements IToolbarButton {
13
10
  readonly control: IControlTypeContent;
14
11
  readonly target: Nullable<HTMLElement>;
15
- /** @override */
16
12
  className(): string;
17
- /** @override */
18
13
  update(): void;
19
- /** @override */
20
14
  protected createContainer(): HTMLElement;
21
15
  constructor(jodit: T, control: IControlTypeContent, target?: Nullable<HTMLElement>);
22
16
  }
@@ -3,8 +3,5 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/toolbar/button
8
- */
9
6
  export * from './button';
10
7
  export * from './content';
@@ -3,40 +3,19 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/toolbar/collection/README.md]]
8
- * @packageDocumentation
9
- * @module modules/toolbar/collection
10
- */
11
6
  import './collection.less';
12
7
  import type { IToolbarButton, IToolbarCollection, IUIButton, Nullable, IControlTypeStrong, IViewBased, ButtonsGroups, IViewWithToolbar, IBound } from 'jodit/types';
13
8
  import { UIList } from 'jodit/core/ui';
14
9
  export declare class ToolbarCollection<T extends IViewWithToolbar = IViewWithToolbar> extends UIList<T> implements IToolbarCollection {
15
- /** @override */
16
10
  className(): string;
17
11
  readonly listenEvents: string;
18
- /**
19
- * First button in list
20
- */
21
12
  get firstButton(): Nullable<IToolbarButton>;
22
13
  protected makeButton(control: IControlTypeStrong, target?: Nullable<HTMLElement>): IUIButton;
23
- /**
24
- * Button should be active
25
- */
26
14
  shouldBeActive(button: IToolbarButton): boolean | undefined;
27
- /**
28
- * Button should be disabled
29
- */
30
15
  shouldBeDisabled(button: IToolbarButton): boolean | undefined;
31
- /**
32
- * Returns current target for button
33
- */
34
16
  getTarget(button: IToolbarButton): Node | null;
35
17
  immediateUpdate(): void;
36
18
  update: import("jodit/types").CallbackFunction<any>;
37
- /**
38
- * Set direction
39
- */
40
19
  setDirection(direction: 'rtl' | 'ltr'): void;
41
20
  private __tooltip;
42
21
  constructor(jodit: IViewBased);
@@ -44,8 +23,6 @@ export declare class ToolbarCollection<T extends IViewWithToolbar = IViewWithToo
44
23
  hide(): void;
45
24
  show(): void;
46
25
  showInline(bound?: IBound): void;
47
- /** @override **/
48
26
  build(items: ButtonsGroups, target?: Nullable<HTMLElement>): this;
49
- /** @override **/
50
27
  destruct(): void;
51
28
  }
@@ -3,35 +3,16 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/toolbar/collection
8
- */
9
6
  import { ToolbarCollection } from './collection';
10
7
  import type { IToolbarButton, IJodit, IBound } from 'jodit/types';
11
8
  export declare class ToolbarEditorCollection extends ToolbarCollection<IJodit> {
12
- /** @override */
13
9
  className(): string;
14
- /** @override */
15
10
  shouldBeDisabled(button: IToolbarButton): boolean;
16
- /** @override */
17
11
  shouldBeActive(button: IToolbarButton): boolean;
18
12
  private checkActiveStatus;
19
- /** @override */
20
13
  getTarget(button: IToolbarButton): Node | null;
21
- /** @override */
22
14
  constructor(jodit: IJodit);
23
- /**
24
- * Adds an invisible element to the container that can handle the
25
- * situation when the editor is inside the <label>
26
- *
27
- * @see https://github.com/jodit/jodit-react/issues/138
28
- */
29
15
  private prependInvisibleInput;
30
- /**
31
- * Show the inline toolbar inside WYSIWYG editor.
32
- * @param bound - you can set the place for displaying the toolbar,
33
- * or the place will be in the place of the cursor
34
- */
35
16
  showInline(bound?: IBound): void;
36
17
  hide(): void;
37
18
  show(): void;
@@ -3,17 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * [[include:modules/toolbar/README.md]]
8
- * @packageDocumentation
9
- * @module modules/toolbar
10
- */
11
6
  import type { IControlTypeStrong, IToolbarButton, IToolbarCollection, IUIElement, IViewBased, Nullable } from 'jodit/types';
12
- /**
13
- * Collection factory
14
- */
15
7
  export declare function makeCollection(jodit: IViewBased, parentElement?: IUIElement): IToolbarCollection;
16
- /**
17
- * Button factory
18
- */
19
8
  export declare function makeButton(jodit: IViewBased, control: IControlTypeStrong, target?: Nullable<HTMLElement>): IToolbarButton;
@@ -3,15 +3,9 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
6
  import type { IUploader, IUploaderOptions } from 'jodit/types';
10
7
  declare module 'jodit/config' {
11
8
  interface Config {
12
- /**
13
- * Enable drag and drop file editor
14
- */
15
9
  enableDragAndDropFileToEditor: boolean;
16
10
  uploader: IUploaderOptions<IUploader>;
17
11
  }
@@ -3,8 +3,5 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
6
  import type { BuildDataResult, IDictionary, IUploader } from 'jodit/types';
10
7
  export declare function buildData(uploader: IUploader, data: FormData | IDictionary<string> | string): BuildDataResult;
@@ -3,10 +3,4 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
- /**
10
- * Convert dataURI to Blob
11
- */
12
6
  export declare function dataURItoBlob(dataURI: string): Blob;
@@ -3,9 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
6
  import type { Nullable } from 'jodit/types';
10
7
  export * from './process-old-browser-drag';
11
8
  export * from './data-uri-to-blob';
@@ -3,8 +3,5 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
6
  import type { HandlerError, HandlerSuccess, IUploader } from 'jodit/types';
10
7
  export declare function processOldBrowserDrag(self: IUploader, cData: DataTransfer | null, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError, onFinally?: () => void): void;
@@ -3,11 +3,5 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
6
  import type { HandlerError, HandlerSuccess, IUploader } from 'jodit/types';
10
- /**
11
- * Send files to server
12
- */
13
7
  export declare function sendFiles(uploader: IUploader, files: FileList | File[] | null, handlerSuccess?: HandlerSuccess, handlerError?: HandlerError, process?: (form: FormData) => void): Promise<any>;
@@ -3,9 +3,6 @@
3
3
  * Released under MIT see LICENSE.txt in the project root for license information.
4
4
  * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
5
5
  */
6
- /**
7
- * @module modules/uploader
8
- */
9
6
  import type { IDictionary, IUploader, IUploaderAnswer } from 'jodit/types';
10
7
  import { Ajax } from 'jodit/core/request';
11
8
  export declare const ajaxInstances: WeakMap<IUploader, Set<Ajax>>;