cosey 0.9.5 → 0.10.1

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 (427) hide show
  1. package/README.md +1 -1
  2. package/components/audio-card/audio-card.js +1 -1
  3. package/components/close/close.js +1 -1
  4. package/components/col/col.api.d.ts +1 -1
  5. package/components/context-menu/content.js +1 -1
  6. package/components/dnd-sort/dnd-sort-item.js +1 -1
  7. package/components/editor/button-group.d.ts +2 -0
  8. package/components/editor/button-group.js +20 -0
  9. package/components/editor/button-select.d.ts +14 -0
  10. package/components/editor/button-select.js +51 -0
  11. package/components/editor/button-split.d.ts +25 -0
  12. package/components/editor/button-split.js +68 -0
  13. package/components/editor/button.d.ts +19 -0
  14. package/components/editor/button.js +40 -0
  15. package/components/editor/contents/content-code-block.d.ts +18 -0
  16. package/components/editor/contents/content-code-block.js +51 -0
  17. package/components/editor/contents/content-formula.d.ts +12 -0
  18. package/components/editor/contents/content-formula.js +48 -0
  19. package/components/editor/contents/content-formula.style.js +14 -0
  20. package/components/editor/contents/content-image.d.ts +29 -0
  21. package/components/editor/contents/content-image.js +89 -0
  22. package/components/editor/{components/list/list.style.d.ts → contents/content-image.style.d.ts} +1 -1
  23. package/components/editor/contents/content-image.style.js +20 -0
  24. package/components/editor/contents/content-link.d.ts +16 -0
  25. package/components/editor/contents/content-link.js +74 -0
  26. package/components/editor/contents/content-link.stye.d.ts +4 -0
  27. package/components/editor/contents/content-link.stye.js +17 -0
  28. package/components/editor/contents/content-list-item.d.ts +21 -0
  29. package/components/editor/contents/content-list-item.js +41 -0
  30. package/components/editor/contents/content-list-item.style.d.ts +4 -0
  31. package/components/editor/contents/content-list-item.style.js +52 -0
  32. package/components/editor/contents/content-placeholder.d.ts +2 -0
  33. package/components/editor/contents/content-placeholder.js +24 -0
  34. package/components/editor/contents/content-placeholder.style.d.ts +4 -0
  35. package/components/editor/contents/content-placeholder.style.js +19 -0
  36. package/components/editor/contents/content-table.d.ts +2 -0
  37. package/components/editor/contents/content-table.js +133 -0
  38. package/components/editor/contents/content-table.style.d.ts +4 -0
  39. package/components/editor/contents/content-table.style.js +21 -0
  40. package/components/editor/contents/content-video.d.ts +26 -0
  41. package/components/editor/contents/content-video.js +73 -0
  42. package/components/editor/contents/content-video.style.d.ts +4 -0
  43. package/components/editor/contents/content-video.style.js +20 -0
  44. package/components/editor/contents/resize.d.ts +37 -0
  45. package/components/editor/contents/resize.js +133 -0
  46. package/components/editor/{components/resize → contents}/resize.style.d.ts +1 -1
  47. package/components/editor/{components/resize → contents}/resize.style.js +14 -34
  48. package/components/editor/contents/upload.d.ts +17 -0
  49. package/components/editor/contents/upload.js +80 -0
  50. package/components/editor/contents/upload.style.d.ts +4 -0
  51. package/components/editor/contents/upload.style.js +38 -0
  52. package/components/editor/contents/widget-popover.d.ts +389 -0
  53. package/components/editor/contents/widget-popover.js +36 -0
  54. package/components/editor/contents/widget-popover.style.d.ts +4 -0
  55. package/components/editor/contents/widget-popover.style.js +15 -0
  56. package/components/editor/editor.api.d.ts +14 -6
  57. package/components/editor/editor.api.js +10 -6
  58. package/components/editor/editor.d.ts +15 -8
  59. package/components/editor/editor.js +178 -76
  60. package/components/editor/editor.style.d.ts +5 -1
  61. package/components/editor/editor.style.js +121 -253
  62. package/components/editor/{components/color-picker/color-picker.js → formats/color-picker.api.js} +3 -3
  63. package/components/editor/formats/color-picker.d.ts +20 -0
  64. package/components/editor/formats/color-picker.js +154 -0
  65. package/components/editor/{components/color-picker → formats}/color-picker.style.d.ts +1 -1
  66. package/components/editor/{components/color-picker → formats}/color-picker.style.js +1 -1
  67. package/components/editor/formats/format-align.d.ts +22 -0
  68. package/components/editor/formats/format-align.js +38 -0
  69. package/components/editor/formats/format-background.d.ts +2 -0
  70. package/components/editor/formats/format-background.js +60 -0
  71. package/components/editor/formats/format-block-quote.d.ts +2 -0
  72. package/components/editor/formats/format-block-quote.js +27 -0
  73. package/components/editor/formats/format-clear.d.ts +2 -0
  74. package/components/editor/formats/format-clear.js +25 -0
  75. package/components/editor/formats/format-code-block.d.ts +2 -0
  76. package/components/editor/formats/format-code-block.js +27 -0
  77. package/components/editor/formats/format-color.d.ts +2 -0
  78. package/components/editor/formats/format-color.js +59 -0
  79. package/components/editor/formats/format-font.d.ts +2 -0
  80. package/components/editor/formats/format-font.js +46 -0
  81. package/components/editor/formats/format-formula.d.ts +2 -0
  82. package/components/editor/formats/format-formula.js +133 -0
  83. package/components/editor/formats/format-heading.d.ts +2 -0
  84. package/components/editor/formats/format-heading.js +52 -0
  85. package/components/editor/formats/format-image.d.ts +2 -0
  86. package/components/editor/formats/format-image.js +140 -0
  87. package/components/editor/formats/format-indent.d.ts +20 -0
  88. package/components/editor/formats/format-indent.js +35 -0
  89. package/components/editor/formats/format-link.d.ts +2 -0
  90. package/components/editor/formats/format-link.js +114 -0
  91. package/components/editor/formats/format-list.d.ts +22 -0
  92. package/components/editor/formats/format-list.js +39 -0
  93. package/components/editor/formats/format-mark.d.ts +20 -0
  94. package/components/editor/formats/format-mark.js +38 -0
  95. package/components/editor/formats/format-size-delta.d.ts +24 -0
  96. package/components/editor/formats/format-size-delta.js +43 -0
  97. package/components/editor/formats/format-size.d.ts +2 -0
  98. package/components/editor/formats/format-size.js +51 -0
  99. package/components/editor/formats/format-source.d.ts +2 -0
  100. package/components/editor/formats/format-source.js +69 -0
  101. package/components/editor/formats/format-table.d.ts +2 -0
  102. package/components/editor/formats/format-table.js +85 -0
  103. package/components/editor/formats/format-table.style.d.ts +4 -0
  104. package/components/editor/{components/toolbar/formats/table.style.js → formats/format-table.style.js} +2 -2
  105. package/components/editor/formats/format-video.d.ts +2 -0
  106. package/components/editor/formats/format-video.js +117 -0
  107. package/components/editor/formats/picker.d.ts +45 -0
  108. package/components/editor/formats/picker.js +91 -0
  109. package/components/editor/{components/picker → formats}/picker.style.d.ts +1 -1
  110. package/components/editor/{components/picker → formats}/picker.style.js +1 -1
  111. package/components/editor/formats/select-list.d.ts +28 -0
  112. package/components/editor/formats/select-list.js +47 -0
  113. package/components/editor/formats/select-list.style.d.ts +4 -0
  114. package/components/editor/{components/list/list.style.js → formats/select-list.style.js} +2 -2
  115. package/components/editor/formats/select.d.ts +32 -0
  116. package/components/editor/formats/select.js +61 -0
  117. package/components/editor/hooks/useBlockValueActive.d.ts +1 -0
  118. package/components/editor/hooks/useBlockValueActive.js +21 -0
  119. package/components/editor/hooks/useFocus.d.ts +5 -0
  120. package/components/editor/hooks/useFocus.js +18 -0
  121. package/components/editor/{components/color-picker → hooks}/useHistoryColor.js +1 -1
  122. package/components/editor/hooks/useMarkActive.d.ts +1 -0
  123. package/components/editor/hooks/useMarkActive.js +13 -0
  124. package/components/editor/hooks/useMarkValue.d.ts +1 -0
  125. package/components/editor/hooks/useMarkValue.js +21 -0
  126. package/components/editor/index.d.ts +25 -13
  127. package/components/editor/index.js +3 -21
  128. package/components/editor/plugins/align.d.ts +8 -0
  129. package/components/editor/plugins/align.js +13 -0
  130. package/components/editor/plugins/background.d.ts +7 -0
  131. package/components/editor/plugins/background.js +19 -0
  132. package/components/editor/plugins/block-quote.d.ts +8 -0
  133. package/components/editor/plugins/block-quote.js +34 -0
  134. package/components/editor/plugins/clear.d.ts +7 -0
  135. package/components/editor/plugins/clear.js +53 -0
  136. package/components/editor/plugins/code-block.d.ts +13 -0
  137. package/components/editor/plugins/code-block.js +356 -0
  138. package/components/editor/plugins/color.d.ts +7 -0
  139. package/components/editor/plugins/color.js +21 -0
  140. package/components/editor/plugins/font.d.ts +7 -0
  141. package/components/editor/plugins/font.js +17 -0
  142. package/components/editor/plugins/formula.d.ts +11 -0
  143. package/components/editor/{components/toolbar/formats → plugins}/formula.js +50 -1
  144. package/components/editor/plugins/heading.d.ts +9 -0
  145. package/components/editor/plugins/heading.js +70 -0
  146. package/components/editor/plugins/html.d.ts +7 -0
  147. package/components/editor/plugins/html.js +30 -0
  148. package/components/editor/plugins/image.d.ts +8 -0
  149. package/components/editor/plugins/image.js +63 -0
  150. package/components/editor/plugins/indent.d.ts +7 -0
  151. package/components/editor/plugins/indent.js +47 -0
  152. package/components/editor/plugins/index.d.ts +2 -0
  153. package/components/editor/plugins/index.js +50 -0
  154. package/components/editor/plugins/keyboard.d.ts +41 -0
  155. package/components/editor/plugins/keyboard.js +120 -0
  156. package/components/editor/plugins/link.d.ts +8 -0
  157. package/components/editor/plugins/link.js +56 -0
  158. package/components/editor/plugins/list/deserialize.d.ts +3 -0
  159. package/components/editor/plugins/list/deserialize.js +106 -0
  160. package/components/editor/plugins/list/format.d.ts +3 -0
  161. package/components/editor/plugins/list/format.js +155 -0
  162. package/components/editor/plugins/list/indent.d.ts +2 -0
  163. package/components/editor/plugins/list/indent.js +38 -0
  164. package/components/editor/plugins/list/index.d.ts +10 -0
  165. package/components/editor/plugins/list/index.js +61 -0
  166. package/components/editor/plugins/list/insert-break.d.ts +2 -0
  167. package/components/editor/plugins/list/insert-break.js +19 -0
  168. package/components/editor/plugins/list/normalize.d.ts +3 -0
  169. package/components/editor/plugins/list/normalize.js +168 -0
  170. package/components/editor/plugins/list/serialize.d.ts +3 -0
  171. package/components/editor/plugins/list/serialize.js +63 -0
  172. package/components/editor/plugins/list/utils.d.ts +6 -0
  173. package/components/editor/plugins/list/utils.js +24 -0
  174. package/components/editor/plugins/mark.d.ts +7 -0
  175. package/components/editor/plugins/mark.js +27 -0
  176. package/components/editor/plugins/render.d.ts +11 -0
  177. package/components/editor/plugins/render.js +54 -0
  178. package/components/editor/plugins/serialize.d.ts +10 -0
  179. package/components/editor/plugins/serialize.js +342 -0
  180. package/components/editor/plugins/size.d.ts +8 -0
  181. package/components/editor/plugins/size.js +47 -0
  182. package/components/editor/plugins/table.d.ts +21 -0
  183. package/components/editor/plugins/table.js +702 -0
  184. package/components/editor/plugins/video.d.ts +8 -0
  185. package/components/editor/plugins/video.js +40 -0
  186. package/components/editor/toolbar.d.ts +2 -0
  187. package/components/editor/toolbar.js +20 -0
  188. package/components/editor/types.d.ts +194 -0
  189. package/components/editor/types.js +55 -0
  190. package/components/editor/usePopoverContainer.d.ts +8 -0
  191. package/components/editor/usePopoverContainer.js +31 -0
  192. package/components/editor/utils.d.ts +77 -0
  193. package/components/editor/utils.js +165 -0
  194. package/components/field/components/checkbox-group/checkbox-group.vue.js +1 -1
  195. package/components/field/components/editor/editor.d.ts +16 -0
  196. package/components/field/components/editor/editor.vue.d.ts +4 -0
  197. package/components/field/components/editor/editor.vue.js +21 -0
  198. package/components/field/components/password/password.vue.js +1 -1
  199. package/components/field/components/select/select.vue.js +1 -1
  200. package/components/field/field.api.d.ts +3 -0
  201. package/components/field/field.api.js +18 -16
  202. package/components/file-card/file-card.js +1 -1
  203. package/components/form/form-item.vue.js +2 -2
  204. package/components/form/form.api.d.ts +3 -3
  205. package/components/form/form.api.js +1 -1
  206. package/components/form/form.d.ts +6 -6
  207. package/components/form/index.d.ts +17 -17
  208. package/components/form/useBubbleTemplate.js +1 -1
  209. package/components/form-dialog/form-dialog.api.js +1 -1
  210. package/components/form-dialog/form-dialog.d.ts +5 -5
  211. package/components/form-drawer/form-drawer.d.ts +5 -5
  212. package/components/form-drawer/index.d.ts +15 -15
  213. package/components/form-group/form-group.js +1 -1
  214. package/components/form-list/index.d.ts +5 -5
  215. package/components/form-query/form-query.d.ts +5 -5
  216. package/components/form-query/form-query.js +1 -1
  217. package/components/form-query/index.d.ts +15 -15
  218. package/components/highlight/highlight.api.d.ts +30 -12
  219. package/components/highlight/highlight.api.js +3 -19
  220. package/components/highlight/highlight.d.ts +7 -3
  221. package/components/highlight/highlight.js +6 -6
  222. package/components/highlight/highlight.style.d.ts +1 -0
  223. package/components/highlight/highlight.style.js +288 -54
  224. package/components/highlight/index.d.ts +15 -6
  225. package/components/highlight/index.js +1 -1
  226. package/components/icon/icon.api.d.ts +11 -0
  227. package/components/icon/icon.api.js +10 -0
  228. package/components/icon/icon.d.ts +16 -5
  229. package/components/icon/icon.js +59 -0
  230. package/components/icon/icon.style.d.ts +4 -0
  231. package/components/icon/{style/index.js → icon.style.js} +1 -1
  232. package/components/icon/index.d.ts +24 -7
  233. package/components/icon/index.js +2 -1
  234. package/components/iconify-icon/iconify-icon.api.d.ts +15 -0
  235. package/components/iconify-icon/iconify-icon.api.js +20 -0
  236. package/components/iconify-icon/iconify-icon.d.ts +21 -6
  237. package/components/iconify-icon/iconify-icon.js +22 -8
  238. package/components/iconify-icon/index.d.ts +37 -4
  239. package/components/iconify-icon/index.js +2 -2
  240. package/components/index.d.ts +1 -0
  241. package/components/index.js +5 -4
  242. package/components/input-number-range/index.d.ts +39 -30
  243. package/components/input-number-range/input-number-range.api.d.ts +10 -10
  244. package/components/input-number-range/input-number-range.d.ts +23 -20
  245. package/components/input-number-range/input-number-range.js +1 -1
  246. package/components/snug-menu/snug-menu-item.vue.js +2 -2
  247. package/components/stack-dialog/index.d.ts +3 -3
  248. package/components/stack-dialog/stack-dialog.d.ts +1 -1
  249. package/components/svg-icon/index.d.ts +16 -4
  250. package/components/svg-icon/index.js +2 -1
  251. package/components/svg-icon/svg-icon.api.d.ts +7 -0
  252. package/components/svg-icon/svg-icon.api.js +7 -0
  253. package/components/svg-icon/svg-icon.d.ts +10 -3
  254. package/components/svg-icon/svg-icon.js +18 -0
  255. package/components/table/index.d.ts +12 -12
  256. package/components/table/table-column/table-column.js +1 -1
  257. package/components/table/table-export/table-export.d.ts +5 -5
  258. package/components/table/table-query/table-query.d.ts +5 -5
  259. package/components/table/table.d.ts +5 -5
  260. package/components/table/table.js +1 -1
  261. package/components/table/table.vue.d.ts +7 -7
  262. package/components/table/table.vue.js +5 -5
  263. package/components/table-action/item.js +1 -1
  264. package/components/toggle/toggle.js +1 -1
  265. package/components/upload/index.d.ts +3 -4
  266. package/components/upload/index.js +0 -1
  267. package/components/upload/upload-item.js +1 -1
  268. package/components/upload/upload.api.d.ts +2 -2
  269. package/components/upload/upload.d.ts +2 -2
  270. package/components/upload/upload.js +4 -4
  271. package/components/video-card/video-card.js +1 -1
  272. package/config/root-config-provider.js +2 -2
  273. package/{components/upload-context.d.ts → config/upload.d.ts} +2 -2
  274. package/{components/upload-context.js → config/upload.js} +3 -3
  275. package/hooks/index.d.ts +2 -0
  276. package/hooks/index.js +2 -0
  277. package/hooks/useObjectUrl.d.ts +2 -0
  278. package/hooks/useObjectUrl.js +27 -0
  279. package/hooks/useSingleUpload.d.ts +15 -0
  280. package/hooks/useSingleUpload.js +64 -0
  281. package/layout/layout-menu/style/index.js +1 -1
  282. package/locale/lang/ar.d.ts +2 -0
  283. package/locale/lang/ar.js +3 -1
  284. package/locale/lang/en.d.ts +2 -0
  285. package/locale/lang/en.js +3 -1
  286. package/locale/lang/zh-cn.d.ts +2 -0
  287. package/locale/lang/zh-cn.js +3 -1
  288. package/package.json +11 -7
  289. package/utils/array.d.ts +1 -1
  290. package/utils/browser.d.ts +1 -0
  291. package/utils/browser.js +3 -2
  292. package/utils/file.d.ts +5 -0
  293. package/utils/file.js +24 -1
  294. package/utils/index.js +2 -2
  295. package/utils/url.d.ts +4 -0
  296. package/utils/url.js +10 -0
  297. package/components/editor/components/button-group.vue.d.ts +0 -12
  298. package/components/editor/components/button-group.vue.js +0 -19
  299. package/components/editor/components/button.vue.d.ts +0 -17
  300. package/components/editor/components/button.vue.js +0 -35
  301. package/components/editor/components/color-picker/color-picker.vue.d.ts +0 -23
  302. package/components/editor/components/color-picker/color-picker.vue.js +0 -181
  303. package/components/editor/components/list/list.d.ts +0 -6
  304. package/components/editor/components/list/list.vue.d.ts +0 -11
  305. package/components/editor/components/list/list.vue.js +0 -51
  306. package/components/editor/components/picker/picker.vue.d.ts +0 -25
  307. package/components/editor/components/picker/picker.vue.js +0 -95
  308. package/components/editor/components/resize/resize.d.ts +0 -23
  309. package/components/editor/components/resize/resize.js +0 -88
  310. package/components/editor/components/resize/resize.vue.d.ts +0 -2
  311. package/components/editor/components/resize/resize.vue.js +0 -204
  312. package/components/editor/components/select-button.vue.d.ts +0 -15
  313. package/components/editor/components/select-button.vue.js +0 -46
  314. package/components/editor/components/select.vue.d.ts +0 -14
  315. package/components/editor/components/select.vue.js +0 -67
  316. package/components/editor/components/split-button.vue.d.ts +0 -22
  317. package/components/editor/components/split-button.vue.js +0 -69
  318. package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +0 -4
  319. package/components/editor/components/table-toolbar/table-toolbar.style.js +0 -22
  320. package/components/editor/components/table-toolbar/table-toolbar.vue.d.ts +0 -2
  321. package/components/editor/components/table-toolbar/table-toolbar.vue.js +0 -182
  322. package/components/editor/components/toolbar/formats/align.vue.d.ts +0 -5
  323. package/components/editor/components/toolbar/formats/align.vue.js +0 -52
  324. package/components/editor/components/toolbar/formats/background.vue.d.ts +0 -2
  325. package/components/editor/components/toolbar/formats/background.vue.js +0 -70
  326. package/components/editor/components/toolbar/formats/blockquote.vue.d.ts +0 -2
  327. package/components/editor/components/toolbar/formats/blockquote.vue.js +0 -39
  328. package/components/editor/components/toolbar/formats/bold.vue.d.ts +0 -2
  329. package/components/editor/components/toolbar/formats/bold.vue.js +0 -39
  330. package/components/editor/components/toolbar/formats/clean.vue.d.ts +0 -2
  331. package/components/editor/components/toolbar/formats/clean.vue.js +0 -26
  332. package/components/editor/components/toolbar/formats/code-block.vue.d.ts +0 -2
  333. package/components/editor/components/toolbar/formats/code-block.vue.js +0 -39
  334. package/components/editor/components/toolbar/formats/code.vue.d.ts +0 -2
  335. package/components/editor/components/toolbar/formats/code.vue.js +0 -39
  336. package/components/editor/components/toolbar/formats/color.vue.d.ts +0 -2
  337. package/components/editor/components/toolbar/formats/color.vue.js +0 -69
  338. package/components/editor/components/toolbar/formats/font.vue.d.ts +0 -2
  339. package/components/editor/components/toolbar/formats/font.vue.js +0 -59
  340. package/components/editor/components/toolbar/formats/formula.d.ts +0 -4
  341. package/components/editor/components/toolbar/formats/formula.vue.d.ts +0 -2
  342. package/components/editor/components/toolbar/formats/formula.vue.js +0 -154
  343. package/components/editor/components/toolbar/formats/header.vue.d.ts +0 -2
  344. package/components/editor/components/toolbar/formats/header.vue.js +0 -68
  345. package/components/editor/components/toolbar/formats/image.vue.d.ts +0 -2
  346. package/components/editor/components/toolbar/formats/image.vue.js +0 -26
  347. package/components/editor/components/toolbar/formats/indent.vue.d.ts +0 -5
  348. package/components/editor/components/toolbar/formats/indent.vue.js +0 -36
  349. package/components/editor/components/toolbar/formats/italic.vue.d.ts +0 -2
  350. package/components/editor/components/toolbar/formats/italic.vue.js +0 -39
  351. package/components/editor/components/toolbar/formats/link.vue.d.ts +0 -2
  352. package/components/editor/components/toolbar/formats/link.vue.js +0 -218
  353. package/components/editor/components/toolbar/formats/list.vue.d.ts +0 -5
  354. package/components/editor/components/toolbar/formats/list.vue.js +0 -50
  355. package/components/editor/components/toolbar/formats/script.vue.d.ts +0 -5
  356. package/components/editor/components/toolbar/formats/script.vue.js +0 -50
  357. package/components/editor/components/toolbar/formats/size-delta.vue.d.ts +0 -5
  358. package/components/editor/components/toolbar/formats/size-delta.vue.js +0 -79
  359. package/components/editor/components/toolbar/formats/size.vue.d.ts +0 -2
  360. package/components/editor/components/toolbar/formats/size.vue.js +0 -56
  361. package/components/editor/components/toolbar/formats/source.vue.d.ts +0 -2
  362. package/components/editor/components/toolbar/formats/source.vue.js +0 -78
  363. package/components/editor/components/toolbar/formats/strike.vue.d.ts +0 -2
  364. package/components/editor/components/toolbar/formats/strike.vue.js +0 -39
  365. package/components/editor/components/toolbar/formats/strikethrough.vue.d.ts +0 -2
  366. package/components/editor/components/toolbar/formats/strikethrough.vue.js +0 -39
  367. package/components/editor/components/toolbar/formats/table.style.d.ts +0 -4
  368. package/components/editor/components/toolbar/formats/table.vue.d.ts +0 -2
  369. package/components/editor/components/toolbar/formats/table.vue.js +0 -100
  370. package/components/editor/components/toolbar/formats/underline.vue.d.ts +0 -2
  371. package/components/editor/components/toolbar/formats/underline.vue.js +0 -39
  372. package/components/editor/components/toolbar/formats/video.vue.d.ts +0 -2
  373. package/components/editor/components/toolbar/formats/video.vue.js +0 -123
  374. package/components/editor/components/toolbar/toolbar.d.ts +0 -36
  375. package/components/editor/components/toolbar/toolbar.js +0 -137
  376. package/components/editor/components/toolbar/toolbar.vue.d.ts +0 -3
  377. package/components/editor/components/toolbar/toolbar.vue.js +0 -130
  378. package/components/editor/components/toolbar/toolbarContext.d.ts +0 -8
  379. package/components/editor/components/toolbar/toolbarContext.js +0 -3
  380. package/components/editor/formats/align.d.ts +0 -2
  381. package/components/editor/formats/align.js +0 -6
  382. package/components/editor/formats/font.d.ts +0 -7
  383. package/components/editor/formats/font.js +0 -36
  384. package/components/editor/formats/formula.d.ts +0 -9
  385. package/components/editor/formats/formula.js +0 -29
  386. package/components/editor/formats/image.d.ts +0 -13
  387. package/components/editor/formats/image.js +0 -46
  388. package/components/editor/formats/indent.d.ts +0 -10
  389. package/components/editor/formats/indent.js +0 -37
  390. package/components/editor/formats/kbd.d.ts +0 -7
  391. package/components/editor/formats/kbd.js +0 -13
  392. package/components/editor/formats/link.d.ts +0 -28
  393. package/components/editor/formats/link.js +0 -51
  394. package/components/editor/formats/list.d.ts +0 -13
  395. package/components/editor/formats/list.js +0 -57
  396. package/components/editor/formats/size.d.ts +0 -3
  397. package/components/editor/formats/size.js +0 -9
  398. package/components/editor/formats/video.d.ts +0 -16
  399. package/components/editor/formats/video.js +0 -44
  400. package/components/editor/modules/custom-list.d.ts +0 -5
  401. package/components/editor/modules/custom-list.js +0 -23
  402. package/components/editor/modules/image-uploader/formats/image-loading.d.ts +0 -16
  403. package/components/editor/modules/image-uploader/formats/image-loading.js +0 -31
  404. package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +0 -2
  405. package/components/editor/modules/image-uploader/formats/image-loading.style.js +0 -46
  406. package/components/editor/modules/image-uploader/image-uploader.d.ts +0 -18
  407. package/components/editor/modules/image-uploader/image-uploader.js +0 -134
  408. package/components/editor/modules/syntax/index.d.ts +0 -2
  409. package/components/editor/modules/syntax/index.js +0 -1
  410. package/components/editor/modules/syntax/syntaxOptions.d.ts +0 -8
  411. package/components/editor/modules/syntax/syntaxOptions.js +0 -23
  412. package/components/editor/quill.d.ts +0 -1
  413. package/components/editor/quill.js +0 -33
  414. package/components/editor/quillContext.d.ts +0 -6
  415. package/components/editor/quillContext.js +0 -3
  416. package/components/icon/icon.vue.d.ts +0 -13
  417. package/components/icon/icon.vue.js +0 -76
  418. package/components/iconify-icon/iconify-icon.vue.d.ts +0 -3
  419. package/components/iconify-icon/iconify-icon.vue.js +0 -38
  420. package/components/svg-icon/svg-icon.vue.d.ts +0 -3
  421. package/components/svg-icon/svg-icon.vue.js +0 -29
  422. /package/components/{icon/style/index.d.ts → editor/contents/content-formula.style.d.ts} +0 -0
  423. /package/components/editor/{components/color-picker/color-picker.d.ts → formats/color-picker.api.d.ts} +0 -0
  424. /package/components/editor/{components/picker/picker.d.ts → formats/picker.api.d.ts} +0 -0
  425. /package/components/editor/{components/picker/picker.js → formats/picker.api.js} +0 -0
  426. /package/components/editor/{components/color-picker → hooks}/useHistoryColor.d.ts +0 -0
  427. /package/components/{editor/components/list/list.js → field/components/editor/editor.js} +0 -0
@@ -0,0 +1,117 @@
1
+ import { defineComponent, computed, ref, reactive, createVNode, Fragment } from 'vue';
2
+ import { useEditor } from 'slate-vue3';
3
+ import stdin_default$2 from '../../icon/icon.js';
4
+ import stdin_default$1 from '../button.js';
5
+ import stdin_default$3 from '../../form-dialog/form-dialog.js';
6
+ import stdin_default$4 from '../../form/form.js';
7
+ import stdin_default$5 from '../../form/form-item.vue.js';
8
+ import { isPointingAt, getPointingOptions } from '../utils.js';
9
+ import { useLocale } from '../../../hooks/useLocale.js';
10
+
11
+ var stdin_default = defineComponent({
12
+ name: "CoEditorFormatVideo",
13
+ setup() {
14
+ const {
15
+ t
16
+ } = useLocale();
17
+ const editor = useEditor();
18
+ const isActive = computed(() => isPointingAt(editor, "video"));
19
+ const onClick = () => {
20
+ if (!editor.selection) return;
21
+ const nodes = editor.nodes(getPointingOptions(editor, "video"));
22
+ const {
23
+ done,
24
+ value
25
+ } = nodes.next();
26
+ if (done) {
27
+ Object.assign(model, {
28
+ url: "",
29
+ width: "",
30
+ height: ""
31
+ });
32
+ actionType.value = "insert";
33
+ } else {
34
+ const [node] = value;
35
+ Object.assign(model, {
36
+ url: node.url,
37
+ width: node.width,
38
+ height: node.height
39
+ });
40
+ actionType.value = "update";
41
+ }
42
+ visible.value = true;
43
+ };
44
+ const visible = ref(false);
45
+ const actionType = ref("insert");
46
+ const title = computed(() => `${actionType.value === "update" ? t("co.editor.edit") : t("co.editor.insert")}${t("co.editor.video")}`);
47
+ const model = reactive({
48
+ url: "",
49
+ width: "",
50
+ height: ""
51
+ });
52
+ const onSubmit = () => {
53
+ if (!editor.selection) return;
54
+ if (!model.url.trim()) return;
55
+ if (actionType.value === "update") {
56
+ editor.setNodes({
57
+ ...model
58
+ }, getPointingOptions(editor, "video"));
59
+ } else {
60
+ editor.insertVideo(model.url, model.width, model.height);
61
+ }
62
+ };
63
+ return () => {
64
+ return createVNode(Fragment, null, [createVNode(stdin_default$1, {
65
+ "active": isActive.value,
66
+ "onClick": onClick
67
+ }, {
68
+ default: () => [createVNode(stdin_default$2, {
69
+ "name": "co:video-player"
70
+ }, null)]
71
+ }), createVNode(stdin_default$3, {
72
+ "modelValue": visible.value,
73
+ "onUpdate:modelValue": $event => visible.value = $event,
74
+ "title": title.value,
75
+ "width": "sm"
76
+ }, {
77
+ default: () => [createVNode(stdin_default$4, {
78
+ "model": model,
79
+ "labelWidth": "auto",
80
+ "grid": true,
81
+ "rowProps": {
82
+ gutter: 16
83
+ },
84
+ "submit": onSubmit
85
+ }, {
86
+ default: () => [createVNode(stdin_default$5, {
87
+ "modelValue": model.url,
88
+ "onUpdate:modelValue": $event => model.url = $event,
89
+ "prop": "url",
90
+ "label": "URL",
91
+ "field-type": "input"
92
+ }, null), createVNode(stdin_default$5, {
93
+ "modelValue": model.width,
94
+ "onUpdate:modelValue": $event => model.width = $event,
95
+ "prop": "width",
96
+ "label": t("co.editor.width"),
97
+ "field-type": "input",
98
+ "colProps": {
99
+ span: 12
100
+ }
101
+ }, null), createVNode(stdin_default$5, {
102
+ "modelValue": model.height,
103
+ "onUpdate:modelValue": $event => model.height = $event,
104
+ "prop": "height",
105
+ "label": t("co.editor.height"),
106
+ "field-type": "input",
107
+ "colProps": {
108
+ span: 12
109
+ }
110
+ }, null)]
111
+ })]
112
+ })]);
113
+ };
114
+ }
115
+ });
116
+
117
+ export { stdin_default as default };
@@ -0,0 +1,45 @@
1
+ import { PropType, SlotsType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ popperClass: {
4
+ type: null;
5
+ };
6
+ visible: {
7
+ type: BooleanConstructor;
8
+ };
9
+ maxHeight: {
10
+ type: StringConstructor;
11
+ };
12
+ triggerTarget: {
13
+ type: PropType<HTMLElement | null>;
14
+ };
15
+ nopadding: {
16
+ type: BooleanConstructor;
17
+ };
18
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ 'update:visible': (visible: boolean) => boolean;
20
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ popperClass: {
22
+ type: null;
23
+ };
24
+ visible: {
25
+ type: BooleanConstructor;
26
+ };
27
+ maxHeight: {
28
+ type: StringConstructor;
29
+ };
30
+ triggerTarget: {
31
+ type: PropType<HTMLElement | null>;
32
+ };
33
+ nopadding: {
34
+ type: BooleanConstructor;
35
+ };
36
+ }>> & Readonly<{
37
+ "onUpdate:visible"?: ((visible: boolean) => any) | undefined;
38
+ }>, {
39
+ visible: boolean;
40
+ nopadding: boolean;
41
+ }, SlotsType<{
42
+ default: {};
43
+ content: {};
44
+ }>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
+ export default _default;
@@ -0,0 +1,91 @@
1
+ import { defineComponent, useTemplateRef, ref, provide, computed, onMounted, onBeforeUnmount, createVNode } from 'vue';
2
+ import { ElTooltip } from 'element-plus';
3
+ import stdin_default$1 from './picker.style.js';
4
+ import { pickerContextKey } from './picker.api.js';
5
+ import { isBoolean } from '../../../utils/is.js';
6
+ import { useComponentConfig } from '../../config-provider/config-provider.api.js';
7
+
8
+ var stdin_default = defineComponent({
9
+ name: "CoEditorPicker",
10
+ props: {
11
+ popperClass: {
12
+ type: null
13
+ },
14
+ visible: {
15
+ type: Boolean
16
+ },
17
+ maxHeight: {
18
+ type: String
19
+ },
20
+ triggerTarget: {
21
+ type: [Object, null]
22
+ },
23
+ nopadding: {
24
+ type: Boolean
25
+ }
26
+ },
27
+ emits: {
28
+ "update:visible": visible => isBoolean(visible)
29
+ },
30
+ slots: Object,
31
+ setup(props, {
32
+ slots,
33
+ emit
34
+ }) {
35
+ const {
36
+ prefixCls
37
+ } = useComponentConfig("editor-picker");
38
+ const {
39
+ hashId
40
+ } = stdin_default$1(prefixCls);
41
+ const contentRef = useTemplateRef("content");
42
+ const contextTriggerTarget = ref();
43
+ provide(pickerContextKey, {
44
+ triggerTarget: contextTriggerTarget
45
+ });
46
+ const mergedTriggerTarget = computed(() => {
47
+ return props.triggerTarget || contextTriggerTarget.value;
48
+ });
49
+ const onDocClick = event => {
50
+ const target = event.target;
51
+ if (!props.visible || mergedTriggerTarget.value && mergedTriggerTarget.value.contains(target) || contentRef.value?.contains(target)) {
52
+ return;
53
+ }
54
+ emit("update:visible", false);
55
+ };
56
+ onMounted(() => {
57
+ document.addEventListener("click", onDocClick, false);
58
+ });
59
+ onBeforeUnmount(() => {
60
+ document.removeEventListener("click", onDocClick, false);
61
+ });
62
+ return () => {
63
+ return createVNode(ElTooltip, {
64
+ "visible": props.visible,
65
+ "showArrow": false,
66
+ "placement": "bottom-start",
67
+ "offset": 0,
68
+ "gpuAcceleration": false,
69
+ "popperClass": [hashId.value, props.popperClass, `${prefixCls.value}-panel`],
70
+ "stopPopperMouseEvent": false,
71
+ "effect": "light",
72
+ "trigger": "click",
73
+ "persistent": true
74
+ }, {
75
+ default: slots.default,
76
+ content: () => createVNode("div", {
77
+ "ref": "content",
78
+ "class": [`${prefixCls.value}-content`, {
79
+ "is-nopadding": props.nopadding
80
+ }],
81
+ "style": {
82
+ maxHeight: props.maxHeight
83
+ },
84
+ "onMousedown": event => event.preventDefault()
85
+ }, [slots.content?.({})])
86
+ });
87
+ };
88
+ }
89
+ });
90
+
91
+ export { stdin_default as default };
@@ -1,4 +1,4 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../../theme/theme-context").ThemeManager) => {
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
2
2
  hashId: import("vue").Ref<string, string>;
3
3
  };
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { getSimpleStyleHook } from '../../../theme/getSimpleStyleHook.js';
1
+ import { getSimpleStyleHook } from '../../theme/getSimpleStyleHook.js';
2
2
 
3
3
  var stdin_default = getSimpleStyleHook("CoEditorPicker", (token) => {
4
4
  const { componentCls } = token;
@@ -0,0 +1,28 @@
1
+ import { CSSProperties, PropType } from 'vue';
2
+ export interface SelectListItem {
3
+ label: string;
4
+ value: any;
5
+ style?: CSSProperties;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ selectedValue: {
9
+ type: null;
10
+ };
11
+ list: {
12
+ type: PropType<SelectListItem[]>;
13
+ required: true;
14
+ };
15
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ select: (item: SelectListItem) => boolean;
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ selectedValue: {
19
+ type: null;
20
+ };
21
+ list: {
22
+ type: PropType<SelectListItem[]>;
23
+ required: true;
24
+ };
25
+ }>> & Readonly<{
26
+ onSelect?: ((item: SelectListItem) => any) | undefined;
27
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { defineComponent, createVNode } from 'vue';
2
+ import stdin_default$1 from './select-list.style.js';
3
+ import { isObject } from '../../../utils/is.js';
4
+ import { useComponentConfig } from '../../config-provider/config-provider.api.js';
5
+
6
+ var stdin_default = defineComponent({
7
+ name: "CoEditorSelectList",
8
+ props: {
9
+ selectedValue: {
10
+ type: null
11
+ },
12
+ list: {
13
+ type: Array,
14
+ required: true
15
+ }
16
+ },
17
+ emits: {
18
+ select: item => isObject(item)
19
+ },
20
+ setup(props, {
21
+ emit
22
+ }) {
23
+ const {
24
+ prefixCls
25
+ } = useComponentConfig("editor-select-list");
26
+ const {
27
+ hashId
28
+ } = stdin_default$1(prefixCls);
29
+ const onSelect = item => {
30
+ emit("select", item);
31
+ };
32
+ return () => {
33
+ return createVNode("div", {
34
+ "class": [hashId.value, prefixCls.value]
35
+ }, [props.list.map(item => createVNode("div", {
36
+ "key": item.value,
37
+ "class": [`${prefixCls.value}-item`, {
38
+ "is-active": props.selectedValue === item.value
39
+ }],
40
+ "style": item.style,
41
+ "onClick": () => onSelect(item)
42
+ }, [item.label]))]);
43
+ };
44
+ }
45
+ });
46
+
47
+ export { stdin_default as default };
@@ -0,0 +1,4 @@
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
2
+ hashId: import("vue").Ref<string, string>;
3
+ };
4
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { getSimpleStyleHook } from '../../../theme/getSimpleStyleHook.js';
1
+ import { getSimpleStyleHook } from '../../theme/getSimpleStyleHook.js';
2
2
 
3
- var stdin_default = getSimpleStyleHook("CoEditorListPicker", (token) => {
3
+ var stdin_default = getSimpleStyleHook("EditorSelectList", (token) => {
4
4
  const { componentCls } = token;
5
5
  return {
6
6
  [componentCls]: {
@@ -0,0 +1,32 @@
1
+ import { PropType } from 'vue';
2
+ import { type SelectListItem } from './select-list';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ list: {
5
+ type: PropType<SelectListItem[]>;
6
+ required: true;
7
+ };
8
+ modelValue: {
9
+ type: null;
10
+ };
11
+ buttonWidth: {
12
+ type: StringConstructor;
13
+ };
14
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ 'update:modelValue': (value: any) => true;
16
+ change: (value: any) => true;
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ list: {
19
+ type: PropType<SelectListItem[]>;
20
+ required: true;
21
+ };
22
+ modelValue: {
23
+ type: null;
24
+ };
25
+ buttonWidth: {
26
+ type: StringConstructor;
27
+ };
28
+ }>> & Readonly<{
29
+ onChange?: ((value: any) => any) | undefined;
30
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
+ export default _default;
@@ -0,0 +1,61 @@
1
+ import { defineComponent, ref, computed, createVNode } from 'vue';
2
+ import stdin_default$1 from './picker.js';
3
+ import stdin_default$3 from '../button-select.js';
4
+ import stdin_default$2 from './select-list.js';
5
+
6
+ var stdin_default = defineComponent({
7
+ name: "CoEditorSelect",
8
+ props: {
9
+ list: {
10
+ type: Array,
11
+ required: true
12
+ },
13
+ modelValue: {
14
+ type: null
15
+ },
16
+ buttonWidth: {
17
+ type: String
18
+ }
19
+ },
20
+ emits: {
21
+ "update:modelValue": value => !!value || true,
22
+ change: value => !!value || true
23
+ },
24
+ setup(props, {
25
+ emit
26
+ }) {
27
+ const visible = ref(false);
28
+ const displayedLabel = computed(() => {
29
+ return props.list.find(item => item.value === props.modelValue)?.label || props.modelValue;
30
+ });
31
+ const onSelect = item => {
32
+ emit("update:modelValue", item.value);
33
+ emit("change", item.value);
34
+ visible.value = false;
35
+ };
36
+ const onClick = () => {
37
+ visible.value = !visible.value;
38
+ };
39
+ return () => {
40
+ return createVNode(stdin_default$1, {
41
+ "visible": visible.value,
42
+ "onUpdate:visible": $event => visible.value = $event,
43
+ "max-height": "300px"
44
+ }, {
45
+ default: () => createVNode(stdin_default$3, {
46
+ "width": props.buttonWidth,
47
+ "onClick": onClick
48
+ }, {
49
+ default: () => [displayedLabel.value]
50
+ }),
51
+ content: () => createVNode(stdin_default$2, {
52
+ "list": props.list,
53
+ "selectedValue": props.modelValue,
54
+ "onSelect": onSelect
55
+ }, null)
56
+ });
57
+ };
58
+ }
59
+ });
60
+
61
+ export { stdin_default as default };
@@ -0,0 +1 @@
1
+ export declare function useBlockValueActive(key: string, value: string): import("vue").ComputedRef<boolean>;
@@ -0,0 +1,21 @@
1
+ import { useEditor } from 'slate-vue3';
2
+ import { Editor, Element } from 'slate-vue3/core';
3
+ import { computed } from 'vue';
4
+
5
+ function useBlockValueActive(key, value) {
6
+ const editor = useEditor();
7
+ return computed(() => {
8
+ if (!editor.selection) return false;
9
+ const [match] = Array.from(
10
+ editor.nodes({
11
+ at: Editor.unhangRange(editor, editor.selection),
12
+ match: (n) => {
13
+ return !Editor.isEditor(n) && Element.isElement(n) && n[key] === value;
14
+ }
15
+ })
16
+ );
17
+ return !!match;
18
+ });
19
+ }
20
+
21
+ export { useBlockValueActive };
@@ -0,0 +1,5 @@
1
+ export declare function useFocus(): {
2
+ isFocus: import("vue").Ref<boolean, boolean>;
3
+ onFocus: () => void;
4
+ onBlur: () => void;
5
+ };
@@ -0,0 +1,18 @@
1
+ import { ref } from 'vue';
2
+
3
+ function useFocus() {
4
+ const isFocus = ref(false);
5
+ const onFocus = () => {
6
+ isFocus.value = true;
7
+ };
8
+ const onBlur = () => {
9
+ isFocus.value = false;
10
+ };
11
+ return {
12
+ isFocus,
13
+ onFocus,
14
+ onBlur
15
+ };
16
+ }
17
+
18
+ export { useFocus };
@@ -1,5 +1,5 @@
1
1
  import { ref } from 'vue';
2
- import { usePersist } from '../../../../hooks/usePersist.js';
2
+ import { usePersist } from '../../../hooks/usePersist.js';
3
3
 
4
4
  const historyColorKey = "Cosey:historyColor";
5
5
  let historyColors = null;
@@ -0,0 +1 @@
1
+ export declare function useMarkActive(mark: string): import("vue").ComputedRef<boolean>;
@@ -0,0 +1,13 @@
1
+ import { useEditor } from 'slate-vue3';
2
+ import { Editor } from 'slate-vue3/core';
3
+ import { computed } from 'vue';
4
+
5
+ function useMarkActive(mark) {
6
+ const editor = useEditor();
7
+ return computed(() => {
8
+ const marks = Editor.marks(editor);
9
+ return marks ? marks[mark] === true : false;
10
+ });
11
+ }
12
+
13
+ export { useMarkActive };
@@ -0,0 +1 @@
1
+ export declare function useMarkValue(mark: string, initial?: boolean | string): import("vue").Ref<string | boolean, string | boolean>;
@@ -0,0 +1,21 @@
1
+ import { useEditor } from 'slate-vue3';
2
+ import { Editor } from 'slate-vue3/core';
3
+ import { ref, watch } from 'vue';
4
+
5
+ function useMarkValue(mark, initial = "") {
6
+ const editor = useEditor();
7
+ const current = ref(initial);
8
+ watch(
9
+ () => editor.selection,
10
+ () => {
11
+ const marks = Editor.marks(editor);
12
+ current.value = marks ? marks[mark] || "" : "";
13
+ },
14
+ {
15
+ deep: true
16
+ }
17
+ );
18
+ return current;
19
+ }
20
+
21
+ export { useMarkValue };
@@ -10,26 +10,30 @@ declare const _Editor: {
10
10
  height: {
11
11
  type: StringConstructor;
12
12
  };
13
+ maxHeight: {
14
+ type: StringConstructor;
15
+ };
13
16
  readonly: {
14
17
  type: BooleanConstructor;
15
18
  };
19
+ disabled: {
20
+ type: BooleanConstructor;
21
+ };
16
22
  validateEvent: {
17
23
  type: BooleanConstructor;
18
24
  default: boolean;
19
25
  };
20
- request: {
21
- type: import("vue").PropType<import("..").UploadContext["request"]>;
22
- };
23
26
  }>> & Readonly<{
24
27
  onChange?: ((value: string) => any) | undefined;
25
28
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
29
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
- 'update:modelValue': (value: string) => boolean;
28
30
  change: (value: string) => boolean;
31
+ 'update:modelValue': (value: string) => boolean;
29
32
  }, import("vue").PublicProps, {
33
+ disabled: boolean;
30
34
  validateEvent: boolean;
31
35
  readonly: boolean;
32
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
36
+ }, true, {}, import("vue").SlotsType<import("./editor.api").EditorSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
33
37
  P: {};
34
38
  B: {};
35
39
  D: {};
@@ -46,20 +50,24 @@ declare const _Editor: {
46
50
  height: {
47
51
  type: StringConstructor;
48
52
  };
53
+ maxHeight: {
54
+ type: StringConstructor;
55
+ };
49
56
  readonly: {
50
57
  type: BooleanConstructor;
51
58
  };
59
+ disabled: {
60
+ type: BooleanConstructor;
61
+ };
52
62
  validateEvent: {
53
63
  type: BooleanConstructor;
54
64
  default: boolean;
55
65
  };
56
- request: {
57
- type: import("vue").PropType<import("..").UploadContext["request"]>;
58
- };
59
66
  }>> & Readonly<{
60
67
  onChange?: ((value: string) => any) | undefined;
61
68
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
62
69
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
70
+ disabled: boolean;
63
71
  validateEvent: boolean;
64
72
  readonly: boolean;
65
73
  }>;
@@ -76,25 +84,29 @@ declare const _Editor: {
76
84
  height: {
77
85
  type: StringConstructor;
78
86
  };
87
+ maxHeight: {
88
+ type: StringConstructor;
89
+ };
79
90
  readonly: {
80
91
  type: BooleanConstructor;
81
92
  };
93
+ disabled: {
94
+ type: BooleanConstructor;
95
+ };
82
96
  validateEvent: {
83
97
  type: BooleanConstructor;
84
98
  default: boolean;
85
99
  };
86
- request: {
87
- type: import("vue").PropType<import("..").UploadContext["request"]>;
88
- };
89
100
  }>> & Readonly<{
90
101
  onChange?: ((value: string) => any) | undefined;
91
102
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
92
103
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
93
- 'update:modelValue': (value: string) => boolean;
94
104
  change: (value: string) => boolean;
105
+ 'update:modelValue': (value: string) => boolean;
95
106
  }, string, {
107
+ disabled: boolean;
96
108
  validateEvent: boolean;
97
109
  readonly: boolean;
98
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
110
+ }, {}, string, import("vue").SlotsType<import("./editor.api").EditorSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
99
111
  export { _Editor as Editor };
100
112
  export default _Editor;