@ctzhian/tiptap 3.0.0 → 3.0.2

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 (825) hide show
  1. package/dist/{app/editor/Editor → Editor}/demo.d.ts +1 -1
  2. package/dist/{app/editor/Editor → Editor}/demo.js +2 -5
  3. package/dist/{app/editor/Editor → Editor}/index.d.ts +1 -1
  4. package/dist/{app/editor/Editor → Editor}/index.js +9 -10
  5. package/dist/{app/editor/EditorDiff → EditorDiff}/demo.d.ts +1 -1
  6. package/dist/{app/editor/EditorDiff → EditorDiff}/demo.js +2 -3
  7. package/dist/{app/editor/EditorDiff → EditorDiff}/index.js +2 -2
  8. package/dist/{features/markdown → EditorMarkdown}/Toolbar.d.ts +1 -2
  9. package/dist/EditorMarkdown/Toolbar.js +942 -0
  10. package/dist/{app/editor/EditorMarkdown → EditorMarkdown}/demo.d.ts +1 -1
  11. package/dist/{app/editor/EditorMarkdown → EditorMarkdown}/demo.js +2 -4
  12. package/dist/{features/markdown → EditorMarkdown}/index.d.ts +3 -3
  13. package/dist/EditorMarkdown/index.js +566 -0
  14. package/dist/{app/editor/EditorThemeProvider → EditorThemeProvider}/index.d.ts +1 -1
  15. package/dist/{app/editor/EditorThemeProvider → EditorThemeProvider}/index.js +2 -2
  16. package/dist/{features/toolbar → EditorToolbar}/index.d.ts +1 -1
  17. package/dist/EditorToolbar/index.js +361 -0
  18. package/dist/{components → component}/ActionDropdown/index.d.ts +1 -1
  19. package/dist/{components → component}/ActionDropdown/index.js +37 -23
  20. package/dist/{components → component}/CustomBubbleMenu/index.d.ts +1 -1
  21. package/dist/{components → component}/CustomBubbleMenu/index.js +3 -4
  22. package/dist/{features/drag-handle → component/CustomDragHandle}/index.d.ts +1 -1
  23. package/dist/component/CustomDragHandle/index.js +1372 -0
  24. package/dist/component/FloatingPopover/index.js +120 -0
  25. package/dist/component/HoverPopover/index.js +162 -0
  26. package/dist/{components → component}/Menu/NestedList.d.ts +1 -1
  27. package/dist/{components → component}/Menu/NestedList.js +41 -19
  28. package/dist/{components → component}/Menu/index.d.ts +1 -1
  29. package/dist/{components → component}/Menu/index.js +21 -13
  30. package/dist/component/Toolbar/EditorAlignSelect.js +187 -0
  31. package/dist/component/Toolbar/EditorCode.js +161 -0
  32. package/dist/{components → component}/Toolbar/EditorHeading.js +1 -1
  33. package/dist/component/Toolbar/EditorInsert/index.js +491 -0
  34. package/dist/component/Toolbar/EditorListSelect.js +174 -0
  35. package/dist/{components/Toolbar/CommandSelect.js → component/Toolbar/EditorMath.js} +84 -54
  36. package/dist/{components → component}/Toolbar/EditorMore/NotificationDialog.js +2 -2
  37. package/dist/{components → component}/Toolbar/EditorMore/index.d.ts +1 -1
  38. package/dist/{components → component}/Toolbar/EditorMore/index.js +11 -6
  39. package/dist/component/Toolbar/EditorScript.js +161 -0
  40. package/dist/component/Toolbar/EditorVerticalAlignSelect.js +174 -0
  41. package/dist/{components → component}/Toolbar/Item.js +1 -1
  42. package/dist/{components → component}/Toolbar/TableSizePicker.js +1 -1
  43. package/dist/{components → component}/Toolbar/index.d.ts +0 -1
  44. package/dist/{components → component}/Toolbar/index.js +0 -1
  45. package/dist/{constants → contants}/enums.d.ts +0 -2
  46. package/dist/{constants → contants}/enums.js +5 -19
  47. package/dist/{constants → contants}/slash-commands.js +1 -1
  48. package/dist/{editor-core/extensions → extension}/component/Alert/index.js +3 -3
  49. package/dist/{editor-core/extensions → extension}/component/Attachment/AttachmentContent.js +2 -2
  50. package/dist/{editor-core/extensions → extension}/component/Attachment/Insert.d.ts +1 -1
  51. package/dist/{editor-core/extensions → extension}/component/Attachment/Insert.js +58 -50
  52. package/dist/{editor-core/extensions → extension}/component/Attachment/index.d.ts +1 -1
  53. package/dist/{editor-core/extensions → extension}/component/Attachment/index.js +28 -20
  54. package/dist/{editor-core/extensions → extension}/component/Audio/AudioPlayer.d.ts +1 -1
  55. package/dist/{editor-core/extensions → extension}/component/Audio/AudioPlayer.js +4 -13
  56. package/dist/{editor-core/extensions → extension}/component/Audio/Insert.d.ts +2 -2
  57. package/dist/{editor-core/extensions → extension}/component/Audio/Insert.js +249 -85
  58. package/dist/extension/component/Audio/index.d.ts +14 -0
  59. package/dist/{editor-core/extensions → extension}/component/Audio/index.js +208 -111
  60. package/dist/{editor-core/extensions/component/CodeBlock/shared.js → extension/component/CodeBlock/Readonly.js} +134 -42
  61. package/dist/extension/component/CodeBlock/index.js +374 -0
  62. package/dist/{editor-core/extensions → extension}/component/DrawPanel/index.d.ts +1 -1
  63. package/dist/{editor-core/extensions → extension}/component/DrawPanel/index.js +2 -2
  64. package/dist/{editor-core/extensions → extension}/component/FlipGrid/ColumnView.js +3 -3
  65. package/dist/{editor-core/extensions → extension}/component/Flow/Edit.js +1 -1
  66. package/dist/{editor-core/extensions → extension}/component/Flow/Insert.js +2 -2
  67. package/dist/{editor-core/extensions → extension}/component/Flow/index.d.ts +1 -1
  68. package/dist/{editor-core/extensions → extension}/component/Flow/index.js +4 -4
  69. package/dist/{features/media/iframe → extension/component/Iframe}/Insert.d.ts +1 -1
  70. package/dist/{features/media/iframe → extension/component/Iframe}/Insert.js +52 -21
  71. package/dist/{features/media/iframe → extension/component/Iframe}/index.d.ts +1 -1
  72. package/dist/{features/media/iframe → extension/component/Iframe}/index.js +393 -97
  73. package/dist/{features/media/image → extension/component/Image}/Crop.d.ts +1 -1
  74. package/dist/{features/media/image → extension/component/Image}/Insert.d.ts +1 -1
  75. package/dist/{features/media/image → extension/component/Image}/Insert.js +107 -35
  76. package/dist/{features/media/image → extension/component/Image}/Readonly.js +1 -1
  77. package/dist/{features/media/image → extension/component/Image}/index.d.ts +1 -1
  78. package/dist/{features/media/image → extension/component/Image}/index.js +296 -102
  79. package/dist/{editor-core/extensions → extension}/component/Link/Insert.d.ts +1 -1
  80. package/dist/extension/component/Link/Insert.js +252 -0
  81. package/dist/{editor-core/extensions → extension}/component/Link/LinkContent.d.ts +1 -1
  82. package/dist/{editor-core/extensions → extension}/component/Link/LinkContent.js +9 -6
  83. package/dist/{editor-core/extensions → extension}/component/Link/Markdown.js +1 -1
  84. package/dist/{editor-core/extensions → extension}/component/Link/index.d.ts +8 -0
  85. package/dist/{editor-core/extensions → extension}/component/Link/index.js +124 -72
  86. package/dist/{editor-core/extensions → extension}/component/Mathematics/block/Readonly.d.ts +1 -1
  87. package/dist/{editor-core/extensions → extension}/component/Mathematics/block/index.d.ts +4 -3
  88. package/dist/{editor-core/extensions → extension}/component/Mathematics/block/index.js +39 -18
  89. package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/Readonly.d.ts +1 -1
  90. package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/index.d.ts +4 -3
  91. package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/index.js +40 -17
  92. package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/Overlay.d.ts +1 -1
  93. package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/Overlay.js +1 -1
  94. package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/index.d.ts +1 -1
  95. package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/index.js +5 -5
  96. package/dist/extension/component/TableCellHandleMenu/index.js +512 -0
  97. package/dist/{features/table → extension/component}/TableExtendButton/index.d.ts +1 -1
  98. package/dist/{features/table → extension/component}/TableExtendButton/index.js +2 -2
  99. package/dist/{features/table → extension/component}/TableHandle/TableHandleAddButton.d.ts +1 -1
  100. package/dist/{features/table → extension/component}/TableHandle/TableHandleAddButton.js +2 -2
  101. package/dist/{features/table → extension/component}/TableHandle/TableHandleMenu.d.ts +1 -1
  102. package/dist/{features/table → extension/component}/TableHandle/TableHandleMenu.js +265 -48
  103. package/dist/{features/table → extension/component}/TableHandle/index.d.ts +12 -0
  104. package/dist/extension/component/TableHandle/index.js +140 -0
  105. package/dist/{features/table → extension/component}/TableHandle/use-table-handle-positioning.js +1 -1
  106. package/dist/{features/table → extension/component}/TableHandle/use-table-handle-state.d.ts +1 -1
  107. package/dist/{features/table → extension/component}/TableSelectionOverlay/index.js +1 -1
  108. package/dist/{editor-core/extensions → extension}/component/Tooltip/EditPopover.js +22 -12
  109. package/dist/{editor-core/extensions → extension}/component/Tooltip/index.js +1 -1
  110. package/dist/{editor-core/extensions → extension}/component/UploadProgress/Inline.d.ts +1 -2
  111. package/dist/{editor-core/extensions/component/UploadProgress/shared.js → extension/component/UploadProgress/Inline.js} +50 -39
  112. package/dist/{editor-core/extensions → extension}/component/UploadProgress/index.d.ts +3 -2
  113. package/dist/extension/component/UploadProgress/index.js +111 -0
  114. package/dist/{features/media/video → extension/component/Video}/Insert.d.ts +1 -1
  115. package/dist/{features/media/video → extension/component/Video}/Insert.js +111 -35
  116. package/dist/{features/media/video → extension/component/Video}/index.d.ts +1 -1
  117. package/dist/{features/media/video → extension/component/Video}/index.js +379 -86
  118. package/dist/extension/extension/ImeComposition.d.ts +2 -0
  119. package/dist/{editor-core/extensions → extension}/extension/ImeComposition.js +23 -10
  120. package/dist/{editor-core/extensions → extension}/extension/StructuredDiff.js +2 -1
  121. package/dist/extension/index.d.ts +2 -0
  122. package/dist/{editor-core/extensions/builders.js → extension/index.js} +92 -126
  123. package/dist/{editor-core/extensions → extension}/node/Attachment.d.ts +1 -1
  124. package/dist/{editor-core/extensions → extension}/node/Attachment.js +3 -15
  125. package/dist/{editor-core/extensions → extension}/node/Audio.d.ts +1 -1
  126. package/dist/{editor-core/extensions → extension}/node/Audio.js +19 -11
  127. package/dist/{editor-core/extensions → extension}/node/CodeBlockLowlight.js +33 -6
  128. package/dist/{editor-core/extensions → extension}/node/DrawPanel.d.ts +1 -1
  129. package/dist/{editor-core/extensions → extension}/node/FileHandler.d.ts +2 -2
  130. package/dist/{editor-core/extensions → extension}/node/FileHandler.js +2 -2
  131. package/dist/{editor-core/extensions → extension}/node/Flow/index.d.ts +1 -1
  132. package/dist/{editor-core/extensions → extension}/node/Iframe.d.ts +1 -1
  133. package/dist/{editor-core/extensions → extension}/node/Iframe.js +1 -1
  134. package/dist/{editor-core/extensions → extension}/node/Image.d.ts +1 -1
  135. package/dist/{editor-core/extensions → extension}/node/Image.js +2 -2
  136. package/dist/{editor-core/extensions → extension}/node/Link/index.js +5 -11
  137. package/dist/extension/node/ListKit.js +23 -0
  138. package/dist/{editor-core/extensions → extension}/node/Mathematics.d.ts +1 -1
  139. package/dist/extension/node/Mathematics.js +97 -0
  140. package/dist/{editor-core/extensions → extension}/node/Mention.d.ts +1 -1
  141. package/dist/{editor-core/extensions → extension}/node/Table.js +1 -1
  142. package/dist/{features/table/plugin → extension/node/TableHandler}/index.d.ts +1 -3
  143. package/dist/{features/table/plugin → extension/node/TableHandler}/index.js +2 -5
  144. package/dist/{features/table/plugin/shared.d.ts → extension/node/TableHandler/plugin.d.ts} +16 -8
  145. package/dist/extension/node/TableHandler/plugin.js +1083 -0
  146. package/dist/{editor-core/extensions → extension}/node/TableOfContents/index.d.ts +1 -1
  147. package/dist/{editor-core/extensions → extension}/node/TableOfContents/index.js +1 -1
  148. package/dist/{editor-core/extensions → extension}/node/TableOfContents/plugin.js +3 -2
  149. package/dist/{editor-core/extensions → extension}/node/Video.d.ts +1 -1
  150. package/dist/{editor-core/extensions → extension}/node/Video.js +2 -2
  151. package/dist/{editor-core/extensions → extension}/suggestion/mention.d.ts +1 -1
  152. package/dist/{editor-core/extensions → extension}/suggestion/mention.js +1 -1
  153. package/dist/{editor-core/extensions → extension}/suggestion/slash.d.ts +1 -1
  154. package/dist/{editor-core/extensions → extension}/suggestion/slash.js +1 -1
  155. package/dist/{hooks → hook}/fn.d.ts +1 -1
  156. package/dist/{hooks → hook}/fn.js +1 -1
  157. package/dist/{hooks → hook}/index.d.ts +1 -1
  158. package/dist/{hooks → hook}/index.js +13 -23
  159. package/dist/index.d.ts +10 -10
  160. package/dist/index.js +10 -10
  161. package/dist/themes/componentStyleOverrides.js +1 -1
  162. package/dist/themes/index.d.ts +1 -1
  163. package/dist/{utils → util}/fileHandler.d.ts +2 -2
  164. package/dist/util/fileHandler.js +82 -0
  165. package/dist/util/index.d.ts +35 -0
  166. package/dist/util/index.js +165 -0
  167. package/dist/{utils → util}/resourceExtractor.d.ts +1 -1
  168. package/dist/{utils → util}/resourceExtractor.js +1 -1
  169. package/dist/{utils → util}/shortcutKey.js +1 -1
  170. package/package.json +32 -36
  171. package/dist/app/editor/EditorMarkdown/index.d.ts +0 -1
  172. package/dist/app/editor/EditorMarkdown/index.js +0 -1
  173. package/dist/components/FloatingPopover/index.js +0 -66
  174. package/dist/components/HoverPopover/index.js +0 -56
  175. package/dist/components/Toolbar/CommandSelect.d.ts +0 -20
  176. package/dist/components/Toolbar/EditorAlignSelect.js +0 -76
  177. package/dist/components/Toolbar/EditorCode.js +0 -50
  178. package/dist/components/Toolbar/EditorInsert/index.js +0 -40
  179. package/dist/components/Toolbar/EditorInsert/menu-builders.d.ts +0 -3
  180. package/dist/components/Toolbar/EditorInsert/menu-builders.js +0 -407
  181. package/dist/components/Toolbar/EditorListSelect.js +0 -62
  182. package/dist/components/Toolbar/EditorMath.js +0 -54
  183. package/dist/components/Toolbar/EditorMore/menu-builders.d.ts +0 -5
  184. package/dist/components/Toolbar/EditorMore/menu-builders.js +0 -13
  185. package/dist/components/Toolbar/EditorScript.js +0 -50
  186. package/dist/components/Toolbar/EditorVerticalAlignSelect.js +0 -64
  187. package/dist/components/shared/menu-item-content.d.ts +0 -7
  188. package/dist/components/shared/menu-item-content.js +0 -23
  189. package/dist/components/shared/menu-surface.d.ts +0 -13
  190. package/dist/components/shared/menu-surface.js +0 -35
  191. package/dist/components/shared/use-floating-popover.d.ts +0 -16
  192. package/dist/components/shared/use-floating-popover.js +0 -79
  193. package/dist/components/shared/use-hover-popover.d.ts +0 -15
  194. package/dist/components/shared/use-hover-popover.js +0 -96
  195. package/dist/components/shared/use-popover-anchor.d.ts +0 -8
  196. package/dist/components/shared/use-popover-anchor.js +0 -26
  197. package/dist/editor-core/extensions/builders.d.ts +0 -13
  198. package/dist/editor-core/extensions/catalog.d.ts +0 -22
  199. package/dist/editor-core/extensions/catalog.js +0 -326
  200. package/dist/editor-core/extensions/component/Audio/index.d.ts +0 -5
  201. package/dist/editor-core/extensions/component/Audio/shared.d.ts +0 -12
  202. package/dist/editor-core/extensions/component/Audio/shared.js +0 -48
  203. package/dist/editor-core/extensions/component/Audio/use-audio-upload-fields.d.ts +0 -21
  204. package/dist/editor-core/extensions/component/Audio/use-audio-upload-fields.js +0 -48
  205. package/dist/editor-core/extensions/component/CodeBlock/Readonly.js +0 -124
  206. package/dist/editor-core/extensions/component/CodeBlock/index.js +0 -330
  207. package/dist/editor-core/extensions/component/CodeBlock/shared.d.ts +0 -15
  208. package/dist/editor-core/extensions/component/Link/Insert.js +0 -162
  209. package/dist/editor-core/extensions/component/Link/shared.d.ts +0 -26
  210. package/dist/editor-core/extensions/component/Link/shared.js +0 -74
  211. package/dist/editor-core/extensions/component/Mathematics/shared.d.ts +0 -18
  212. package/dist/editor-core/extensions/component/Mathematics/shared.js +0 -64
  213. package/dist/editor-core/extensions/component/UploadProgress/Inline.js +0 -28
  214. package/dist/editor-core/extensions/component/UploadProgress/file-meta.d.ts +0 -4
  215. package/dist/editor-core/extensions/component/UploadProgress/file-meta.js +0 -42
  216. package/dist/editor-core/extensions/component/UploadProgress/index.js +0 -19
  217. package/dist/editor-core/extensions/component/UploadProgress/shared.d.ts +0 -10
  218. package/dist/editor-core/extensions/component/shared/edit-popover.d.ts +0 -27
  219. package/dist/editor-core/extensions/component/shared/edit-popover.js +0 -82
  220. package/dist/editor-core/extensions/component/shared/insert-popover.d.ts +0 -34
  221. package/dist/editor-core/extensions/component/shared/insert-popover.js +0 -160
  222. package/dist/editor-core/extensions/component/shared/resource-form.d.ts +0 -26
  223. package/dist/editor-core/extensions/component/shared/resource-form.js +0 -78
  224. package/dist/editor-core/extensions/component/shared/upload-flow.d.ts +0 -25
  225. package/dist/editor-core/extensions/component/shared/upload-flow.js +0 -143
  226. package/dist/editor-core/extensions/extension/ImeComposition.d.ts +0 -12
  227. package/dist/editor-core/extensions/extension/ime-shared.d.ts +0 -11
  228. package/dist/editor-core/extensions/extension/ime-shared.js +0 -20
  229. package/dist/editor-core/extensions/index.d.ts +0 -4
  230. package/dist/editor-core/extensions/index.js +0 -6
  231. package/dist/editor-core/extensions/node/ListKit.js +0 -18
  232. package/dist/editor-core/extensions/node/Mathematics.js +0 -58
  233. package/dist/editor-core/extensions/node/code-block-lowlight-shared.d.ts +0 -14
  234. package/dist/editor-core/extensions/node/code-block-lowlight-shared.js +0 -34
  235. package/dist/editor-core/extensions/node/list-shared.d.ts +0 -18
  236. package/dist/editor-core/extensions/node/list-shared.js +0 -18
  237. package/dist/editor-core/extensions/node/mathematics-shared.d.ts +0 -7
  238. package/dist/editor-core/extensions/node/mathematics-shared.js +0 -40
  239. package/dist/editor-core/extensions/node/resource-shared.d.ts +0 -13
  240. package/dist/editor-core/extensions/node/resource-shared.js +0 -45
  241. package/dist/editor-core/extensions/plugin-keys.d.ts +0 -2
  242. package/dist/editor-core/extensions/plugin-keys.js +0 -2
  243. package/dist/features/drag-handle/action-count-badge.d.ts +0 -5
  244. package/dist/features/drag-handle/action-count-badge.js +0 -23
  245. package/dist/features/drag-handle/action-groups.d.ts +0 -13
  246. package/dist/features/drag-handle/action-groups.js +0 -49
  247. package/dist/features/drag-handle/convert-builders.d.ts +0 -8
  248. package/dist/features/drag-handle/convert-builders.js +0 -201
  249. package/dist/features/drag-handle/download-builders.d.ts +0 -7
  250. package/dist/features/drag-handle/download-builders.js +0 -237
  251. package/dist/features/drag-handle/drag-handle-header.d.ts +0 -17
  252. package/dist/features/drag-handle/drag-handle-header.js +0 -233
  253. package/dist/features/drag-handle/index.js +0 -210
  254. package/dist/features/drag-handle/insert-builders.d.ts +0 -3
  255. package/dist/features/drag-handle/insert-builders.js +0 -81
  256. package/dist/features/drag-handle/menu-builders.d.ts +0 -4
  257. package/dist/features/drag-handle/menu-builders.js +0 -4
  258. package/dist/features/drag-handle/menu-shared.d.ts +0 -11
  259. package/dist/features/drag-handle/menu-shared.js +0 -102
  260. package/dist/features/drag-handle/node-actions.d.ts +0 -5
  261. package/dist/features/drag-handle/node-actions.js +0 -57
  262. package/dist/features/drag-handle/style-builders.d.ts +0 -8
  263. package/dist/features/drag-handle/style-builders.js +0 -197
  264. package/dist/features/drag-handle/types.d.ts +0 -27
  265. package/dist/features/drag-handle/types.js +0 -1
  266. package/dist/features/drag-handle/use-current-node-context.d.ts +0 -11
  267. package/dist/features/drag-handle/use-current-node-context.js +0 -109
  268. package/dist/features/markdown/Toolbar.js +0 -81
  269. package/dist/features/markdown/index.js +0 -284
  270. package/dist/features/markdown/toolbar-actions.d.ts +0 -82
  271. package/dist/features/markdown/toolbar-actions.js +0 -734
  272. package/dist/features/markdown/toolbar-menu.d.ts +0 -9
  273. package/dist/features/markdown/toolbar-menu.js +0 -87
  274. package/dist/features/markdown/toolbar-tool-list.d.ts +0 -12
  275. package/dist/features/markdown/toolbar-tool-list.js +0 -24
  276. package/dist/features/markdown/use-ace-composition.d.ts +0 -5
  277. package/dist/features/markdown/use-ace-composition.js +0 -39
  278. package/dist/features/markdown/use-display-mode.d.ts +0 -8
  279. package/dist/features/markdown/use-display-mode.js +0 -28
  280. package/dist/features/markdown/use-markdown-file-inputs.d.ts +0 -10
  281. package/dist/features/markdown/use-markdown-file-inputs.js +0 -69
  282. package/dist/features/markdown/use-markdown-sync.d.ts +0 -13
  283. package/dist/features/markdown/use-markdown-sync.js +0 -56
  284. package/dist/features/markdown/use-markdown-transfer.d.ts +0 -18
  285. package/dist/features/markdown/use-markdown-transfer.js +0 -123
  286. package/dist/features/markdown/use-markdown-upload.d.ts +0 -13
  287. package/dist/features/markdown/use-markdown-upload.js +0 -98
  288. package/dist/features/media/shared/media-edit-popover.d.ts +0 -26
  289. package/dist/features/media/shared/media-edit-popover.js +0 -105
  290. package/dist/features/media/shared/media-hover-toolbar.d.ts +0 -18
  291. package/dist/features/media/shared/media-hover-toolbar.js +0 -140
  292. package/dist/features/media/shared/media-resize-handles.d.ts +0 -8
  293. package/dist/features/media/shared/media-resize-handles.js +0 -70
  294. package/dist/features/media/shared/use-media-resize.d.ts +0 -20
  295. package/dist/features/media/shared/use-media-resize.js +0 -88
  296. package/dist/features/media/shared/use-media-width.d.ts +0 -14
  297. package/dist/features/media/shared/use-media-width.js +0 -76
  298. package/dist/features/table/TableCellHandleMenu/index.js +0 -234
  299. package/dist/features/table/TableHandle/index.js +0 -73
  300. package/dist/features/table/TableHandle/menu-builders.d.ts +0 -14
  301. package/dist/features/table/TableHandle/menu-builders.js +0 -242
  302. package/dist/features/table/TableHandle/table-handle-group.d.ts +0 -16
  303. package/dist/features/table/TableHandle/table-handle-group.js +0 -84
  304. package/dist/features/table/TableHandle/use-table-handle-visibility.d.ts +0 -14
  305. package/dist/features/table/TableHandle/use-table-handle-visibility.js +0 -47
  306. package/dist/features/table/TableHandle/use-table-menu-open.d.ts +0 -12
  307. package/dist/features/table/TableHandle/use-table-menu-open.js +0 -39
  308. package/dist/features/table/plugin/decorations.d.ts +0 -9
  309. package/dist/features/table/plugin/decorations.js +0 -80
  310. package/dist/features/table/plugin/drag-helpers.d.ts +0 -11
  311. package/dist/features/table/plugin/drag-helpers.js +0 -188
  312. package/dist/features/table/plugin/hover-state.d.ts +0 -27
  313. package/dist/features/table/plugin/hover-state.js +0 -60
  314. package/dist/features/table/plugin/plugin.d.ts +0 -4
  315. package/dist/features/table/plugin/plugin.js +0 -512
  316. package/dist/features/table/plugin/positioning.d.ts +0 -40
  317. package/dist/features/table/plugin/positioning.js +0 -124
  318. package/dist/features/table/plugin/shared.js +0 -9
  319. package/dist/features/table/plugin/state-sync.d.ts +0 -12
  320. package/dist/features/table/plugin/state-sync.js +0 -75
  321. package/dist/features/toolbar/index.js +0 -179
  322. package/dist/features/toolbar/toolbar-config.d.ts +0 -32
  323. package/dist/features/toolbar/toolbar-config.js +0 -209
  324. package/dist/features/toolbar/toolbar-divider.d.ts +0 -3
  325. package/dist/features/toolbar/toolbar-divider.js +0 -14
  326. package/dist/features/toolbar/toolbar-sections.d.ts +0 -23
  327. package/dist/features/toolbar/toolbar-sections.js +0 -107
  328. package/dist/utils/color.d.ts +0 -1
  329. package/dist/utils/color.js +0 -18
  330. package/dist/utils/diff/index.d.ts +0 -2
  331. package/dist/utils/diff/index.js +0 -2
  332. package/dist/utils/editor.d.ts +0 -6
  333. package/dist/utils/editor.js +0 -29
  334. package/dist/utils/embed.d.ts +0 -2
  335. package/dist/utils/embed.js +0 -27
  336. package/dist/utils/file/index.d.ts +0 -3
  337. package/dist/utils/file/index.js +0 -3
  338. package/dist/utils/file.d.ts +0 -3
  339. package/dist/utils/file.js +0 -20
  340. package/dist/utils/fileHandler.js +0 -69
  341. package/dist/utils/index.d.ts +0 -10
  342. package/dist/utils/index.js +0 -10
  343. package/dist/utils/link.d.ts +0 -5
  344. package/dist/utils/link.js +0 -25
  345. package/dist/utils/resource.d.ts +0 -2
  346. package/dist/utils/resource.js +0 -38
  347. package/dist/utils/table/index.d.ts +0 -1
  348. package/dist/utils/table/index.js +0 -1
  349. /package/dist/{app/editor/EditorDiff → EditorDiff}/index.d.ts +0 -0
  350. /package/dist/{features/markdown → EditorMarkdown}/UploadProgress.d.ts +0 -0
  351. /package/dist/{features/markdown → EditorMarkdown}/UploadProgress.js +0 -0
  352. /package/dist/{features/markdown → EditorMarkdown}/util.d.ts +0 -0
  353. /package/dist/{features/markdown → EditorMarkdown}/util.js +0 -0
  354. /package/dist/{components → component}/CustomFloatingMenu/index.d.ts +0 -0
  355. /package/dist/{components → component}/CustomFloatingMenu/index.js +0 -0
  356. /package/dist/{components → component}/FloatingPopover/index.d.ts +0 -0
  357. /package/dist/{components → component}/HoverPopover/index.d.ts +0 -0
  358. /package/dist/{components → component}/Icons/add-circle-fill-icon.d.ts +0 -0
  359. /package/dist/{components → component}/Icons/add-circle-fill-icon.js +0 -0
  360. /package/dist/{components → component}/Icons/add-line-icon.d.ts +0 -0
  361. /package/dist/{components → component}/Icons/add-line-icon.js +0 -0
  362. /package/dist/{components → component}/Icons/ai-generate-2-icon.d.ts +0 -0
  363. /package/dist/{components → component}/Icons/ai-generate-2-icon.js +0 -0
  364. /package/dist/{components → component}/Icons/ai-generate-text-icon.d.ts +0 -0
  365. /package/dist/{components → component}/Icons/ai-generate-text-icon.js +0 -0
  366. /package/dist/{components → component}/Icons/align-bottom-icon.d.ts +0 -0
  367. /package/dist/{components → component}/Icons/align-bottom-icon.js +0 -0
  368. /package/dist/{components → component}/Icons/align-center-icon.d.ts +0 -0
  369. /package/dist/{components → component}/Icons/align-center-icon.js +0 -0
  370. /package/dist/{components → component}/Icons/align-justify-icon.d.ts +0 -0
  371. /package/dist/{components → component}/Icons/align-justify-icon.js +0 -0
  372. /package/dist/{components → component}/Icons/align-left-icon.d.ts +0 -0
  373. /package/dist/{components → component}/Icons/align-left-icon.js +0 -0
  374. /package/dist/{components → component}/Icons/align-right-icon.d.ts +0 -0
  375. /package/dist/{components → component}/Icons/align-right-icon.js +0 -0
  376. /package/dist/{components → component}/Icons/align-top-icon.d.ts +0 -0
  377. /package/dist/{components → component}/Icons/align-top-icon.js +0 -0
  378. /package/dist/{components → component}/Icons/align-vertically-icon.d.ts +0 -0
  379. /package/dist/{components → component}/Icons/align-vertically-icon.js +0 -0
  380. /package/dist/{components → component}/Icons/anticlockwise-line-icon.d.ts +0 -0
  381. /package/dist/{components → component}/Icons/anticlockwise-line-icon.js +0 -0
  382. /package/dist/{components → component}/Icons/arrow-down-s-line-icon.d.ts +0 -0
  383. /package/dist/{components → component}/Icons/arrow-down-s-line-icon.js +0 -0
  384. /package/dist/{components → component}/Icons/arrow-go-back-line-icon.d.ts +0 -0
  385. /package/dist/{components → component}/Icons/arrow-go-back-line-icon.js +0 -0
  386. /package/dist/{components → component}/Icons/arrow-go-forward-line-icon.d.ts +0 -0
  387. /package/dist/{components → component}/Icons/arrow-go-forward-line-icon.js +0 -0
  388. /package/dist/{components → component}/Icons/arrow-left-wide-line-icon.d.ts +0 -0
  389. /package/dist/{components → component}/Icons/arrow-left-wide-line-icon.js +0 -0
  390. /package/dist/{components → component}/Icons/at-line-icon.d.ts +0 -0
  391. /package/dist/{components → component}/Icons/at-line-icon.js +0 -0
  392. /package/dist/{components → component}/Icons/attachment-2-icon.d.ts +0 -0
  393. /package/dist/{components → component}/Icons/attachment-2-icon.js +0 -0
  394. /package/dist/{components → component}/Icons/attachment-line-icon.d.ts +0 -0
  395. /package/dist/{components → component}/Icons/attachment-line-icon.js +0 -0
  396. /package/dist/{components → component}/Icons/bilibili-line-icon.d.ts +0 -0
  397. /package/dist/{components → component}/Icons/bilibili-line-icon.js +0 -0
  398. /package/dist/{components → component}/Icons/bold-icon.d.ts +0 -0
  399. /package/dist/{components → component}/Icons/bold-icon.js +0 -0
  400. /package/dist/{components → component}/Icons/brush-line-icon.d.ts +0 -0
  401. /package/dist/{components → component}/Icons/brush-line-icon.js +0 -0
  402. /package/dist/{components → component}/Icons/carousel-view-icon.d.ts +0 -0
  403. /package/dist/{components → component}/Icons/carousel-view-icon.js +0 -0
  404. /package/dist/{components → component}/Icons/checkbox-blank-circle-line-icon.d.ts +0 -0
  405. /package/dist/{components → component}/Icons/checkbox-blank-circle-line-icon.js +0 -0
  406. /package/dist/{components → component}/Icons/checkbox-circle-fill-icon.d.ts +0 -0
  407. /package/dist/{components → component}/Icons/checkbox-circle-fill-icon.js +0 -0
  408. /package/dist/{components → component}/Icons/checkbox-circle-line-icon.d.ts +0 -0
  409. /package/dist/{components → component}/Icons/checkbox-circle-line-icon.js +0 -0
  410. /package/dist/{components → component}/Icons/chrome-icon.d.ts +0 -0
  411. /package/dist/{components → component}/Icons/chrome-icon.js +0 -0
  412. /package/dist/{components → component}/Icons/clockwise-line-icon.d.ts +0 -0
  413. /package/dist/{components → component}/Icons/clockwise-line-icon.js +0 -0
  414. /package/dist/{components → component}/Icons/close-circle-fill-icon.d.ts +0 -0
  415. /package/dist/{components → component}/Icons/close-circle-fill-icon.js +0 -0
  416. /package/dist/{components → component}/Icons/code-box-line-icon.d.ts +0 -0
  417. /package/dist/{components → component}/Icons/code-box-line-icon.js +0 -0
  418. /package/dist/{components → component}/Icons/code-line-icon.d.ts +0 -0
  419. /package/dist/{components → component}/Icons/code-line-icon.js +0 -0
  420. /package/dist/{components → component}/Icons/code-s-slash-line-icon.d.ts +0 -0
  421. /package/dist/{components → component}/Icons/code-s-slash-line-icon.js +0 -0
  422. /package/dist/{components → component}/Icons/collapse-horizontal-line.d.ts +0 -0
  423. /package/dist/{components → component}/Icons/collapse-horizontal-line.js +0 -0
  424. /package/dist/{components → component}/Icons/collapse-icon.d.ts +0 -0
  425. /package/dist/{components → component}/Icons/collapse-icon.js +0 -0
  426. /package/dist/{components → component}/Icons/command-line-icon.d.ts +0 -0
  427. /package/dist/{components → component}/Icons/command-line-icon.js +0 -0
  428. /package/dist/{components → component}/Icons/copy-icon.d.ts +0 -0
  429. /package/dist/{components → component}/Icons/copy-icon.js +0 -0
  430. /package/dist/{components → component}/Icons/custom-size-icon.d.ts +0 -0
  431. /package/dist/{components → component}/Icons/custom-size-icon.js +0 -0
  432. /package/dist/{components → component}/Icons/delete-back-2-line-icon.d.ts +0 -0
  433. /package/dist/{components → component}/Icons/delete-back-2-line-icon.js +0 -0
  434. /package/dist/{components → component}/Icons/delete-column-icon.d.ts +0 -0
  435. /package/dist/{components → component}/Icons/delete-column-icon.js +0 -0
  436. /package/dist/{components → component}/Icons/delete-line-icon.d.ts +0 -0
  437. /package/dist/{components → component}/Icons/delete-line-icon.js +0 -0
  438. /package/dist/{components → component}/Icons/delete-row-icon.d.ts +0 -0
  439. /package/dist/{components → component}/Icons/delete-row-icon.js +0 -0
  440. /package/dist/{components → component}/Icons/double-quotes-l-icon.d.ts +0 -0
  441. /package/dist/{components → component}/Icons/double-quotes-l-icon.js +0 -0
  442. /package/dist/{components → component}/Icons/download-2-line-icon.d.ts +0 -0
  443. /package/dist/{components → component}/Icons/download-2-line-icon.js +0 -0
  444. /package/dist/{components → component}/Icons/download-line-icon.d.ts +0 -0
  445. /package/dist/{components → component}/Icons/download-line-icon.js +0 -0
  446. /package/dist/{components → component}/Icons/draggable-icon.d.ts +0 -0
  447. /package/dist/{components → component}/Icons/draggable-icon.js +0 -0
  448. /package/dist/{components → component}/Icons/edit-box-line-icon.d.ts +0 -0
  449. /package/dist/{components → component}/Icons/edit-box-line-icon.js +0 -0
  450. /package/dist/{components → component}/Icons/edit-line-icon.d.ts +0 -0
  451. /package/dist/{components → component}/Icons/edit-line-icon.js +0 -0
  452. /package/dist/{components → component}/Icons/emotion-line-icon.d.ts +0 -0
  453. /package/dist/{components → component}/Icons/emotion-line-icon.js +0 -0
  454. /package/dist/{components → component}/Icons/eraser-line-icon.d.ts +0 -0
  455. /package/dist/{components → component}/Icons/eraser-line-icon.js +0 -0
  456. /package/dist/{components → component}/Icons/error-warning-fill-icon.d.ts +0 -0
  457. /package/dist/{components → component}/Icons/error-warning-fill-icon.js +0 -0
  458. /package/dist/{components → component}/Icons/expand-horizontal-line-icon.d.ts +0 -0
  459. /package/dist/{components → component}/Icons/expand-horizontal-line-icon.js +0 -0
  460. /package/dist/{components → component}/Icons/expend-icon.d.ts +0 -0
  461. /package/dist/{components → component}/Icons/expend-icon.js +0 -0
  462. /package/dist/{components → component}/Icons/export-line-icon.d.ts +0 -0
  463. /package/dist/{components → component}/Icons/export-line-icon.js +0 -0
  464. /package/dist/{components → component}/Icons/eye-line-icon.d.ts +0 -0
  465. /package/dist/{components → component}/Icons/eye-line-icon.js +0 -0
  466. /package/dist/{components → component}/Icons/file-copy-line-icon.d.ts +0 -0
  467. /package/dist/{components → component}/Icons/file-copy-line-icon.js +0 -0
  468. /package/dist/{components → component}/Icons/file-icon.d.ts +0 -0
  469. /package/dist/{components → component}/Icons/file-icon.js +0 -0
  470. /package/dist/{components → component}/Icons/file-upload-line-icon.d.ts +0 -0
  471. /package/dist/{components → component}/Icons/file-upload-line-icon.js +0 -0
  472. /package/dist/{components → component}/Icons/flip-grid-icon.d.ts +0 -0
  473. /package/dist/{components → component}/Icons/flip-grid-icon.js +0 -0
  474. /package/dist/{components → component}/Icons/flip-left-line-icon.d.ts +0 -0
  475. /package/dist/{components → component}/Icons/flip-left-line-icon.js +0 -0
  476. /package/dist/{components → component}/Icons/flip-right-line-icon.d.ts +0 -0
  477. /package/dist/{components → component}/Icons/flip-right-line-icon.js +0 -0
  478. /package/dist/{components → component}/Icons/flow-chart-icon.d.ts +0 -0
  479. /package/dist/{components → component}/Icons/flow-chart-icon.js +0 -0
  480. /package/dist/{components → component}/Icons/folder-2-line-icon.d.ts +0 -0
  481. /package/dist/{components → component}/Icons/folder-2-line-icon.js +0 -0
  482. /package/dist/{components → component}/Icons/font-color-icon.d.ts +0 -0
  483. /package/dist/{components → component}/Icons/font-color-icon.js +0 -0
  484. /package/dist/{components → component}/Icons/font-family-icon.d.ts +0 -0
  485. /package/dist/{components → component}/Icons/font-family-icon.js +0 -0
  486. /package/dist/{components → component}/Icons/font-size-icon.d.ts +0 -0
  487. /package/dist/{components → component}/Icons/font-size-icon.js +0 -0
  488. /package/dist/{components → component}/Icons/format-clear-icon.d.ts +0 -0
  489. /package/dist/{components → component}/Icons/format-clear-icon.js +0 -0
  490. /package/dist/{components → component}/Icons/formula-icon.d.ts +0 -0
  491. /package/dist/{components → component}/Icons/formula-icon.js +0 -0
  492. /package/dist/{components → component}/Icons/fullscreen-exit-line-icon.d.ts +0 -0
  493. /package/dist/{components → component}/Icons/fullscreen-exit-line-icon.js +0 -0
  494. /package/dist/{components → component}/Icons/fullscreen-line-icon.d.ts +0 -0
  495. /package/dist/{components → component}/Icons/fullscreen-line-icon.js +0 -0
  496. /package/dist/{components → component}/Icons/functions-icon.d.ts +0 -0
  497. /package/dist/{components → component}/Icons/functions-icon.js +0 -0
  498. /package/dist/{components → component}/Icons/game-line-icon.d.ts +0 -0
  499. /package/dist/{components → component}/Icons/game-line-icon.js +0 -0
  500. /package/dist/{components → component}/Icons/h-1-icon.d.ts +0 -0
  501. /package/dist/{components → component}/Icons/h-1-icon.js +0 -0
  502. /package/dist/{components → component}/Icons/h-2-icon.d.ts +0 -0
  503. /package/dist/{components → component}/Icons/h-2-icon.js +0 -0
  504. /package/dist/{components → component}/Icons/h-3-icon.d.ts +0 -0
  505. /package/dist/{components → component}/Icons/h-3-icon.js +0 -0
  506. /package/dist/{components → component}/Icons/h-4-icon.d.ts +0 -0
  507. /package/dist/{components → component}/Icons/h-4-icon.js +0 -0
  508. /package/dist/{components → component}/Icons/h-5-icon.d.ts +0 -0
  509. /package/dist/{components → component}/Icons/h-5-icon.js +0 -0
  510. /package/dist/{components → component}/Icons/h-6-icon.d.ts +0 -0
  511. /package/dist/{components → component}/Icons/h-6-icon.js +0 -0
  512. /package/dist/{components → component}/Icons/heading-icon.d.ts +0 -0
  513. /package/dist/{components → component}/Icons/heading-icon.js +0 -0
  514. /package/dist/{components → component}/Icons/image-add-line-icon.d.ts +0 -0
  515. /package/dist/{components → component}/Icons/image-add-line-icon.js +0 -0
  516. /package/dist/{components → component}/Icons/image-line-icon.d.ts +0 -0
  517. /package/dist/{components → component}/Icons/image-line-icon.js +0 -0
  518. /package/dist/{components → component}/Icons/import-line-icon.d.ts +0 -0
  519. /package/dist/{components → component}/Icons/import-line-icon.js +0 -0
  520. /package/dist/{components → component}/Icons/indent-decrease-icon.d.ts +0 -0
  521. /package/dist/{components → component}/Icons/indent-decrease-icon.js +0 -0
  522. /package/dist/{components → component}/Icons/indent-increase-icon.d.ts +0 -0
  523. /package/dist/{components → component}/Icons/indent-increase-icon.js +0 -0
  524. /package/dist/{components → component}/Icons/index.d.ts +0 -0
  525. /package/dist/{components → component}/Icons/index.js +0 -0
  526. /package/dist/{components → component}/Icons/information-2-fill-icon.d.ts +0 -0
  527. /package/dist/{components → component}/Icons/information-2-fill-icon.js +0 -0
  528. /package/dist/{components → component}/Icons/information-2-line-icon.d.ts +0 -0
  529. /package/dist/{components → component}/Icons/information-2-line-icon.js +0 -0
  530. /package/dist/{components → component}/Icons/insert-column-left-icon.d.ts +0 -0
  531. /package/dist/{components → component}/Icons/insert-column-left-icon.js +0 -0
  532. /package/dist/{components → component}/Icons/insert-column-right-icon.d.ts +0 -0
  533. /package/dist/{components → component}/Icons/insert-column-right-icon.js +0 -0
  534. /package/dist/{components → component}/Icons/insert-row-bottom-icon.d.ts +0 -0
  535. /package/dist/{components → component}/Icons/insert-row-bottom-icon.js +0 -0
  536. /package/dist/{components → component}/Icons/insert-row-top-icon.d.ts +0 -0
  537. /package/dist/{components → component}/Icons/insert-row-top-icon.js +0 -0
  538. /package/dist/{components → component}/Icons/italic-icon.d.ts +0 -0
  539. /package/dist/{components → component}/Icons/italic-icon.js +0 -0
  540. /package/dist/{components → component}/Icons/keyboard-line-icon.d.ts +0 -0
  541. /package/dist/{components → component}/Icons/keyboard-line-icon.js +0 -0
  542. /package/dist/{components → component}/Icons/layout-left-2-line-icon.d.ts +0 -0
  543. /package/dist/{components → component}/Icons/layout-left-2-line-icon.js +0 -0
  544. /package/dist/{components → component}/Icons/layout-top-2-line-icon.d.ts +0 -0
  545. /package/dist/{components → component}/Icons/layout-top-2-line-icon.js +0 -0
  546. /package/dist/{components → component}/Icons/link-icon.d.ts +0 -0
  547. /package/dist/{components → component}/Icons/link-icon.js +0 -0
  548. /package/dist/{components → component}/Icons/link-unlink-icon.d.ts +0 -0
  549. /package/dist/{components → component}/Icons/link-unlink-icon.js +0 -0
  550. /package/dist/{components → component}/Icons/list-check-2-icon.d.ts +0 -0
  551. /package/dist/{components → component}/Icons/list-check-2-icon.js +0 -0
  552. /package/dist/{components → component}/Icons/list-check-3-icon.d.ts +0 -0
  553. /package/dist/{components → component}/Icons/list-check-3-icon.js +0 -0
  554. /package/dist/{components → component}/Icons/list-ordered-2-icon.d.ts +0 -0
  555. /package/dist/{components → component}/Icons/list-ordered-2-icon.js +0 -0
  556. /package/dist/{components → component}/Icons/list-unordered-icon.d.ts +0 -0
  557. /package/dist/{components → component}/Icons/list-unordered-icon.js +0 -0
  558. /package/dist/{components → component}/Icons/mark-pen-line-icon.d.ts +0 -0
  559. /package/dist/{components → component}/Icons/mark-pen-line-icon.js +0 -0
  560. /package/dist/{components → component}/Icons/markdown-line-icon.d.ts +0 -0
  561. /package/dist/{components → component}/Icons/markdown-line-icon.js +0 -0
  562. /package/dist/{components → component}/Icons/markup-line-icon.d.ts +0 -0
  563. /package/dist/{components → component}/Icons/markup-line-icon.js +0 -0
  564. /package/dist/{components → component}/Icons/menu-fold-2-fill-icon.d.ts +0 -0
  565. /package/dist/{components → component}/Icons/menu-fold-2-fill-icon.js +0 -0
  566. /package/dist/{components → component}/Icons/merge-cells-horizontal-icon.d.ts +0 -0
  567. /package/dist/{components → component}/Icons/merge-cells-horizontal-icon.js +0 -0
  568. /package/dist/{components → component}/Icons/merge-cells-vertical-icon.d.ts +0 -0
  569. /package/dist/{components → component}/Icons/merge-cells-vertical-icon.js +0 -0
  570. /package/dist/{components → component}/Icons/mind-map-icon.d.ts +0 -0
  571. /package/dist/{components → component}/Icons/mind-map-icon.js +0 -0
  572. /package/dist/{components → component}/Icons/more-line-icon.d.ts +0 -0
  573. /package/dist/{components → component}/Icons/more-line-icon.js +0 -0
  574. /package/dist/{components → component}/Icons/movie-line-icon.d.ts +0 -0
  575. /package/dist/{components → component}/Icons/movie-line-icon.js +0 -0
  576. /package/dist/{components → component}/Icons/music-2-line-icon.d.ts +0 -0
  577. /package/dist/{components → component}/Icons/music-2-line-icon.js +0 -0
  578. /package/dist/{components → component}/Icons/node-tree-icon.d.ts +0 -0
  579. /package/dist/{components → component}/Icons/node-tree-icon.js +0 -0
  580. /package/dist/{components → component}/Icons/notification-3-line-icon.d.ts +0 -0
  581. /package/dist/{components → component}/Icons/notification-3-line-icon.js +0 -0
  582. /package/dist/{components → component}/Icons/organization-chart-icon.d.ts +0 -0
  583. /package/dist/{components → component}/Icons/organization-chart-icon.js +0 -0
  584. /package/dist/{components → component}/Icons/pause-line-icon.d.ts +0 -0
  585. /package/dist/{components → component}/Icons/pause-line-icon.js +0 -0
  586. /package/dist/{components → component}/Icons/play-line-icon.d.ts +0 -0
  587. /package/dist/{components → component}/Icons/play-line-icon.js +0 -0
  588. /package/dist/{components → component}/Icons/question-fill-icon.d.ts +0 -0
  589. /package/dist/{components → component}/Icons/question-fill-icon.js +0 -0
  590. /package/dist/{components → component}/Icons/quote-text-icon.d.ts +0 -0
  591. /package/dist/{components → component}/Icons/quote-text-icon.js +0 -0
  592. /package/dist/{components → component}/Icons/repeat-2-line-icon.d.ts +0 -0
  593. /package/dist/{components → component}/Icons/repeat-2-line-icon.js +0 -0
  594. /package/dist/{components → component}/Icons/reset-left-fill-icon.d.ts +0 -0
  595. /package/dist/{components → component}/Icons/reset-left-fill-icon.js +0 -0
  596. /package/dist/{components → component}/Icons/scissors-cut-line-icon.d.ts +0 -0
  597. /package/dist/{components → component}/Icons/scissors-cut-line-icon.js +0 -0
  598. /package/dist/{components → component}/Icons/screenshot-line-icon.d.ts +0 -0
  599. /package/dist/{components → component}/Icons/screenshot-line-icon.js +0 -0
  600. /package/dist/{components → component}/Icons/scroll-to-bottom-line-icon.d.ts +0 -0
  601. /package/dist/{components → component}/Icons/scroll-to-bottom-line-icon.js +0 -0
  602. /package/dist/{components → component}/Icons/separator-icon.d.ts +0 -0
  603. /package/dist/{components → component}/Icons/separator-icon.js +0 -0
  604. /package/dist/{components → component}/Icons/share-box-line-icon.d.ts +0 -0
  605. /package/dist/{components → component}/Icons/share-box-line-icon.js +0 -0
  606. /package/dist/{components → component}/Icons/sketching-icon.d.ts +0 -0
  607. /package/dist/{components → component}/Icons/sketching-icon.js +0 -0
  608. /package/dist/{components → component}/Icons/skip-down-icon.d.ts +0 -0
  609. /package/dist/{components → component}/Icons/skip-down-icon.js +0 -0
  610. /package/dist/{components → component}/Icons/skip-left-icon.d.ts +0 -0
  611. /package/dist/{components → component}/Icons/skip-left-icon.js +0 -0
  612. /package/dist/{components → component}/Icons/skip-right-icon.d.ts +0 -0
  613. /package/dist/{components → component}/Icons/skip-right-icon.js +0 -0
  614. /package/dist/{components → component}/Icons/skip-up-icon.d.ts +0 -0
  615. /package/dist/{components → component}/Icons/skip-up-icon.js +0 -0
  616. /package/dist/{components → component}/Icons/slash-commands-2-icon.d.ts +0 -0
  617. /package/dist/{components → component}/Icons/slash-commands-2-icon.js +0 -0
  618. /package/dist/{components → component}/Icons/speed-line-icon.d.ts +0 -0
  619. /package/dist/{components → component}/Icons/speed-line-icon.js +0 -0
  620. /package/dist/{components → component}/Icons/split-cells-horizontal-icon.d.ts +0 -0
  621. /package/dist/{components → component}/Icons/split-cells-horizontal-icon.js +0 -0
  622. /package/dist/{components → component}/Icons/split-cells-vertical-icon.d.ts +0 -0
  623. /package/dist/{components → component}/Icons/split-cells-vertical-icon.js +0 -0
  624. /package/dist/{components → component}/Icons/square-root-icon.d.ts +0 -0
  625. /package/dist/{components → component}/Icons/square-root-icon.js +0 -0
  626. /package/dist/{components → component}/Icons/strikethrough-icon.d.ts +0 -0
  627. /package/dist/{components → component}/Icons/strikethrough-icon.js +0 -0
  628. /package/dist/{components → component}/Icons/subscript-icon.d.ts +0 -0
  629. /package/dist/{components → component}/Icons/subscript-icon.js +0 -0
  630. /package/dist/{components → component}/Icons/superscript-icon.d.ts +0 -0
  631. /package/dist/{components → component}/Icons/superscript-icon.js +0 -0
  632. /package/dist/{components → component}/Icons/table-2-icon.d.ts +0 -0
  633. /package/dist/{components → component}/Icons/table-2-icon.js +0 -0
  634. /package/dist/{components → component}/Icons/table-view-icon.d.ts +0 -0
  635. /package/dist/{components → component}/Icons/table-view-icon.js +0 -0
  636. /package/dist/{components → component}/Icons/text-icon.d.ts +0 -0
  637. /package/dist/{components → component}/Icons/text-icon.js +0 -0
  638. /package/dist/{components → component}/Icons/text-wrap-icon.d.ts +0 -0
  639. /package/dist/{components → component}/Icons/text-wrap-icon.js +0 -0
  640. /package/dist/{components → component}/Icons/title-icon.d.ts +0 -0
  641. /package/dist/{components → component}/Icons/title-icon.js +0 -0
  642. /package/dist/{components → component}/Icons/tooltip-line-icon.d.ts +0 -0
  643. /package/dist/{components → component}/Icons/tooltip-line-icon.js +0 -0
  644. /package/dist/{components → component}/Icons/underline-icon.d.ts +0 -0
  645. /package/dist/{components → component}/Icons/underline-icon.js +0 -0
  646. /package/dist/{components → component}/Icons/upload-cloud-2-line-icon.d.ts +0 -0
  647. /package/dist/{components → component}/Icons/upload-cloud-2-line-icon.js +0 -0
  648. /package/dist/{components → component}/Icons/upload-icon.d.ts +0 -0
  649. /package/dist/{components → component}/Icons/upload-icon.js +0 -0
  650. /package/dist/{components → component}/Icons/user-smile-fill-icon.d.ts +0 -0
  651. /package/dist/{components → component}/Icons/user-smile-fill-icon.js +0 -0
  652. /package/dist/{components → component}/Icons/volume-down-line-icon.d.ts +0 -0
  653. /package/dist/{components → component}/Icons/volume-down-line-icon.js +0 -0
  654. /package/dist/{components → component}/Icons/volume-mute-line-icon.d.ts +0 -0
  655. /package/dist/{components → component}/Icons/volume-mute-line-icon.js +0 -0
  656. /package/dist/{components → component}/Icons/volume-up-line-icon.d.ts +0 -0
  657. /package/dist/{components → component}/Icons/volume-up-line-icon.js +0 -0
  658. /package/dist/{components → component}/Icons/window-fill-icon.d.ts +0 -0
  659. /package/dist/{components → component}/Icons/window-fill-icon.js +0 -0
  660. /package/dist/{components → component}/ImageViewer/Item.d.ts +0 -0
  661. /package/dist/{components → component}/ImageViewer/Item.js +0 -0
  662. /package/dist/{components → component}/ImageViewer/Provider.d.ts +0 -0
  663. /package/dist/{components → component}/ImageViewer/Provider.js +0 -0
  664. /package/dist/{components → component}/ImageViewer/Toolbar.d.ts +0 -0
  665. /package/dist/{components → component}/ImageViewer/Toolbar.js +0 -0
  666. /package/dist/{components → component}/ImageViewer/context.d.ts +0 -0
  667. /package/dist/{components → component}/ImageViewer/context.js +0 -0
  668. /package/dist/{components → component}/ImageViewer/index.d.ts +0 -0
  669. /package/dist/{components → component}/ImageViewer/index.js +0 -0
  670. /package/dist/{components → component}/ImageViewer/styles.d.ts +0 -0
  671. /package/dist/{components → component}/ImageViewer/styles.js +0 -0
  672. /package/dist/{components → component}/ImageViewer/types.d.ts +0 -0
  673. /package/dist/{components → component}/ImageViewer/types.js +0 -0
  674. /package/dist/{components → component}/Toolbar/EditorAlignSelect.d.ts +0 -0
  675. /package/dist/{components → component}/Toolbar/EditorCode.d.ts +0 -0
  676. /package/dist/{components → component}/Toolbar/EditorFontBgColor.d.ts +0 -0
  677. /package/dist/{components → component}/Toolbar/EditorFontBgColor.js +0 -0
  678. /package/dist/{components → component}/Toolbar/EditorFontColor.d.ts +0 -0
  679. /package/dist/{components → component}/Toolbar/EditorFontColor.js +0 -0
  680. /package/dist/{components → component}/Toolbar/EditorFontSize.d.ts +0 -0
  681. /package/dist/{components → component}/Toolbar/EditorFontSize.js +0 -0
  682. /package/dist/{components → component}/Toolbar/EditorHeading.d.ts +0 -0
  683. /package/dist/{components → component}/Toolbar/EditorInsert/index.d.ts +0 -0
  684. /package/dist/{components → component}/Toolbar/EditorListSelect.d.ts +0 -0
  685. /package/dist/{components → component}/Toolbar/EditorMath.d.ts +0 -0
  686. /package/dist/{components → component}/Toolbar/EditorMore/NotificationDialog.d.ts +0 -0
  687. /package/dist/{components → component}/Toolbar/EditorScript.d.ts +0 -0
  688. /package/dist/{components → component}/Toolbar/EditorVerticalAlignSelect.d.ts +0 -0
  689. /package/dist/{components → component}/Toolbar/Item.d.ts +0 -0
  690. /package/dist/{components → component}/Toolbar/TableSizePicker.d.ts +0 -0
  691. /package/dist/{components → component}/index.d.ts +0 -0
  692. /package/dist/{components → component}/index.js +0 -0
  693. /package/dist/{constants → contants}/highlight.d.ts +0 -0
  694. /package/dist/{constants → contants}/highlight.js +0 -0
  695. /package/dist/{constants → contants}/markdown-placeholder.d.ts +0 -0
  696. /package/dist/{constants → contants}/markdown-placeholder.js +0 -0
  697. /package/dist/{constants → contants}/placeholder.d.ts +0 -0
  698. /package/dist/{constants → contants}/placeholder.js +0 -0
  699. /package/dist/{constants → contants}/shortcut-key.d.ts +0 -0
  700. /package/dist/{constants → contants}/shortcut-key.js +0 -0
  701. /package/dist/{constants → contants}/slash-commands.d.ts +0 -0
  702. /package/dist/{editor-core/extensions → extension}/component/Alert/index.d.ts +0 -0
  703. /package/dist/{editor-core/extensions → extension}/component/Attachment/AttachmentContent.d.ts +0 -0
  704. /package/dist/{editor-core/extensions → extension}/component/CodeBlock/Readonly.d.ts +0 -0
  705. /package/dist/{editor-core/extensions → extension}/component/CodeBlock/index.d.ts +0 -0
  706. /package/dist/{editor-core/extensions → extension}/component/DrawPanel/ExcalidrawEditor.d.ts +0 -0
  707. /package/dist/{editor-core/extensions → extension}/component/DrawPanel/ExcalidrawEditor.js +0 -0
  708. /package/dist/{editor-core/extensions → extension}/component/DrawPanel/Modal.d.ts +0 -0
  709. /package/dist/{editor-core/extensions → extension}/component/DrawPanel/Modal.js +0 -0
  710. /package/dist/{editor-core/extensions → extension}/component/EmojiList/index.d.ts +0 -0
  711. /package/dist/{editor-core/extensions → extension}/component/EmojiList/index.js +0 -0
  712. /package/dist/{editor-core/extensions → extension}/component/FlipGrid/ColumnView.d.ts +0 -0
  713. /package/dist/{editor-core/extensions → extension}/component/FlipGrid/index.d.ts +0 -0
  714. /package/dist/{editor-core/extensions → extension}/component/FlipGrid/index.js +0 -0
  715. /package/dist/{editor-core/extensions → extension}/component/FlipGrid/utils.d.ts +0 -0
  716. /package/dist/{editor-core/extensions → extension}/component/FlipGrid/utils.js +0 -0
  717. /package/dist/{editor-core/extensions → extension}/component/Flow/Edit.d.ts +0 -0
  718. /package/dist/{editor-core/extensions → extension}/component/Flow/FlowDiagram.d.ts +0 -0
  719. /package/dist/{editor-core/extensions → extension}/component/Flow/FlowDiagram.js +0 -0
  720. /package/dist/{editor-core/extensions → extension}/component/Flow/Insert.d.ts +0 -0
  721. /package/dist/{editor-core/extensions → extension}/component/Flow/Readonly.d.ts +0 -0
  722. /package/dist/{editor-core/extensions → extension}/component/Flow/Readonly.js +0 -0
  723. /package/dist/{editor-core/extensions → extension}/component/Flow/useMermaidRender.d.ts +0 -0
  724. /package/dist/{editor-core/extensions → extension}/component/Flow/useMermaidRender.js +0 -0
  725. /package/dist/{editor-core/extensions → extension}/component/Flow/utils.d.ts +0 -0
  726. /package/dist/{editor-core/extensions → extension}/component/Flow/utils.js +0 -0
  727. /package/dist/{features/media/iframe → extension/component/Iframe}/Readonly.d.ts +0 -0
  728. /package/dist/{features/media/iframe → extension/component/Iframe}/Readonly.js +0 -0
  729. /package/dist/{features/media/image → extension/component/Image}/Crop.js +0 -0
  730. /package/dist/{features/media/image → extension/component/Image}/Readonly.d.ts +0 -0
  731. /package/dist/{editor-core/extensions → extension}/component/Link/Markdown.d.ts +0 -0
  732. /package/dist/{editor-core/extensions → extension}/component/Mathematics/block/Readonly.js +0 -0
  733. /package/dist/{editor-core/extensions → extension}/component/Mathematics/index.d.ts +0 -0
  734. /package/dist/{editor-core/extensions → extension}/component/Mathematics/index.js +0 -0
  735. /package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/Readonly.js +0 -0
  736. /package/dist/{editor-core/extensions → extension}/component/MentionList/index.d.ts +0 -0
  737. /package/dist/{editor-core/extensions → extension}/component/MentionList/index.js +0 -0
  738. /package/dist/{features/table → extension/component}/TableCellHandleMenu/index.d.ts +0 -0
  739. /package/dist/{features/table → extension/component}/TableExtendButton/TableExtendButton.css +0 -0
  740. /package/dist/{features/table → extension/component}/TableExtendButton/use-table-extend-row-column.d.ts +0 -0
  741. /package/dist/{features/table → extension/component}/TableExtendButton/use-table-extend-row-column.js +0 -0
  742. /package/dist/{features/table → extension/component}/TableHandle/TableHandleMenu.css +0 -0
  743. /package/dist/{features/table → extension/component}/TableHandle/use-table-handle-positioning.d.ts +0 -0
  744. /package/dist/{features/table → extension/component}/TableHandle/use-table-handle-state.js +0 -0
  745. /package/dist/{features/table → extension/component}/TableSelectionOverlay/index.d.ts +0 -0
  746. /package/dist/{editor-core/extensions → extension}/component/Tooltip/EditPopover.d.ts +0 -0
  747. /package/dist/{editor-core/extensions → extension}/component/Tooltip/index.d.ts +0 -0
  748. /package/dist/{features/media/video → extension/component/Video}/Readonly.d.ts +0 -0
  749. /package/dist/{features/media/video → extension/component/Video}/Readonly.js +0 -0
  750. /package/dist/{editor-core/extensions → extension}/extension/AiWriting.d.ts +0 -0
  751. /package/dist/{editor-core/extensions → extension}/extension/AiWriting.js +0 -0
  752. /package/dist/{editor-core/extensions → extension}/extension/SlashCommands.d.ts +0 -0
  753. /package/dist/{editor-core/extensions → extension}/extension/SlashCommands.js +0 -0
  754. /package/dist/{editor-core/extensions → extension}/extension/StructuredDiff.d.ts +0 -0
  755. /package/dist/{editor-core/extensions → extension}/extension/index.d.ts +0 -0
  756. /package/dist/{editor-core/extensions → extension}/extension/index.js +0 -0
  757. /package/dist/{editor-core/extensions → extension}/mark/Code.d.ts +0 -0
  758. /package/dist/{editor-core/extensions → extension}/mark/Code.js +0 -0
  759. /package/dist/{editor-core/extensions → extension}/mark/Tooltip.d.ts +0 -0
  760. /package/dist/{editor-core/extensions → extension}/mark/Tooltip.js +0 -0
  761. /package/dist/{editor-core/extensions → extension}/node/Alert.d.ts +0 -0
  762. /package/dist/{editor-core/extensions → extension}/node/Alert.js +0 -0
  763. /package/dist/{editor-core/extensions → extension}/node/CodeBlockLowlight.d.ts +0 -0
  764. /package/dist/{editor-core/extensions → extension}/node/Details.d.ts +0 -0
  765. /package/dist/{editor-core/extensions → extension}/node/Details.js +0 -0
  766. /package/dist/{editor-core/extensions → extension}/node/DrawPanel.js +0 -0
  767. /package/dist/{editor-core/extensions → extension}/node/Emoji.d.ts +0 -0
  768. /package/dist/{editor-core/extensions → extension}/node/Emoji.js +0 -0
  769. /package/dist/{editor-core/extensions → extension}/node/FlipGrid.d.ts +0 -0
  770. /package/dist/{editor-core/extensions → extension}/node/FlipGrid.js +0 -0
  771. /package/dist/{editor-core/extensions → extension}/node/Flow/index.js +0 -0
  772. /package/dist/{editor-core/extensions → extension}/node/HorizontalRule.d.ts +0 -0
  773. /package/dist/{editor-core/extensions → extension}/node/HorizontalRule.js +0 -0
  774. /package/dist/{editor-core/extensions → extension}/node/Indent.d.ts +0 -0
  775. /package/dist/{editor-core/extensions → extension}/node/Indent.js +0 -0
  776. /package/dist/{editor-core/extensions → extension}/node/InlineUploadProgress.d.ts +0 -0
  777. /package/dist/{editor-core/extensions → extension}/node/InlineUploadProgress.js +0 -0
  778. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/autolink.d.ts +0 -0
  779. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/autolink.js +0 -0
  780. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/clickHandler.d.ts +0 -0
  781. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/clickHandler.js +0 -0
  782. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/pasteHandler.d.ts +0 -0
  783. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/pasteHandler.js +0 -0
  784. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/whitespace.d.ts +0 -0
  785. /package/dist/{editor-core/extensions → extension}/node/Link/helpers/whitespace.js +0 -0
  786. /package/dist/{editor-core/extensions → extension}/node/Link/index.d.ts +0 -0
  787. /package/dist/{editor-core/extensions → extension}/node/ListKit.d.ts +0 -0
  788. /package/dist/{editor-core/extensions → extension}/node/Mention.js +0 -0
  789. /package/dist/{editor-core/extensions → extension}/node/Script.d.ts +0 -0
  790. /package/dist/{editor-core/extensions → extension}/node/Script.js +0 -0
  791. /package/dist/{editor-core/extensions → extension}/node/Table.d.ts +0 -0
  792. /package/dist/{features/table/plugin → extension/node/TableHandler}/create-image.d.ts +0 -0
  793. /package/dist/{features/table/plugin → extension/node/TableHandler}/create-image.js +0 -0
  794. /package/dist/{editor-core/extensions → extension}/node/TableOfContents/plugin.d.ts +0 -0
  795. /package/dist/{editor-core/extensions → extension}/node/TableOfContents/types.d.ts +0 -0
  796. /package/dist/{editor-core/extensions → extension}/node/TableOfContents/types.js +0 -0
  797. /package/dist/{editor-core/extensions → extension}/node/TableOfContents/util.d.ts +0 -0
  798. /package/dist/{editor-core/extensions → extension}/node/TableOfContents/util.js +0 -0
  799. /package/dist/{editor-core/extensions → extension}/node/UploadProgress.d.ts +0 -0
  800. /package/dist/{editor-core/extensions → extension}/node/UploadProgress.js +0 -0
  801. /package/dist/{editor-core/extensions → extension}/node/VerticalAlign.d.ts +0 -0
  802. /package/dist/{editor-core/extensions → extension}/node/VerticalAlign.js +0 -0
  803. /package/dist/{editor-core/extensions → extension}/node/YamlFormat.d.ts +0 -0
  804. /package/dist/{editor-core/extensions → extension}/node/YamlFormat.js +0 -0
  805. /package/dist/{editor-core/extensions → extension}/node/Youtube.d.ts +0 -0
  806. /package/dist/{editor-core/extensions → extension}/node/Youtube.js +0 -0
  807. /package/dist/{editor-core/extensions → extension}/node/index.d.ts +0 -0
  808. /package/dist/{editor-core/extensions → extension}/node/index.js +0 -0
  809. /package/dist/{editor-core/extensions → extension}/suggestion/emoji.d.ts +0 -0
  810. /package/dist/{editor-core/extensions → extension}/suggestion/emoji.js +0 -0
  811. /package/dist/{types → type}/index.d.ts +0 -0
  812. /package/dist/{types → type}/index.js +0 -0
  813. /package/dist/{utils → util}/decorations.d.ts +0 -0
  814. /package/dist/{utils → util}/decorations.js +0 -0
  815. /package/dist/{utils → util}/fileDownload.d.ts +0 -0
  816. /package/dist/{utils → util}/fileDownload.js +0 -0
  817. /package/dist/{utils → util}/floating.d.ts +0 -0
  818. /package/dist/{utils → util}/floating.js +0 -0
  819. /package/dist/{utils → util}/linewiseConvert.d.ts +0 -0
  820. /package/dist/{utils → util}/linewiseConvert.js +0 -0
  821. /package/dist/{utils → util}/shortcutKey.d.ts +0 -0
  822. /package/dist/{utils → util}/structuredDiff.d.ts +0 -0
  823. /package/dist/{utils → util}/structuredDiff.js +0 -0
  824. /package/dist/{utils → util}/table-utils.d.ts +0 -0
  825. /package/dist/{utils → util}/table-utils.js +0 -0
@@ -1,330 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["className"];
3
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
- import { ArrowDownSLineIcon, CheckboxCircleLineIcon, FileCopyLineIcon } from "../../../../components/Icons";
18
- import { Box, Divider, ListSubheader, MenuItem, Select, Stack, TextField } from '@mui/material';
19
- import { NodeViewContent, NodeViewWrapper } from '@tiptap/react';
20
- import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
21
- import ReadonlyCodeBlock from "./Readonly";
22
- import { DEFAULT_CODE_BLOCK_TITLE, filterCodeLanguages, isCustomCodeLanguage, useCodeBlockCopy } from "./shared";
23
- var CodeBlockView = function CodeBlockView(props) {
24
- var node = props.node,
25
- updateAttributes = props.updateAttributes,
26
- selected = props.selected,
27
- editor = props.editor;
28
- var _useState = useState(false),
29
- _useState2 = _slicedToArray(_useState, 2),
30
- showTitleInput = _useState2[0],
31
- setShowTitleInput = _useState2[1];
32
- var _useState3 = useState(node.attrs.title || ''),
33
- _useState4 = _slicedToArray(_useState3, 2),
34
- titleValue = _useState4[0],
35
- setTitleValue = _useState4[1];
36
- var _useState5 = useState(''),
37
- _useState6 = _slicedToArray(_useState5, 2),
38
- searchText = _useState6[0],
39
- setSearchText = _useState6[1];
40
- var menuListRef = useRef(null);
41
- var attrs = node.attrs;
42
- var _useCodeBlockCopy = useCodeBlockCopy(node.textContent || ''),
43
- copyText = _useCodeBlockCopy.copyText,
44
- handleCopy = _useCodeBlockCopy.handleCopy;
45
- var filteredLanguages = useMemo(function () {
46
- return filterCodeLanguages(searchText);
47
- }, [searchText]);
48
-
49
- // 当搜索文本改变时,重置滚动位置
50
- useEffect(function () {
51
- if (menuListRef.current) {
52
- menuListRef.current.scrollTop = 0;
53
- }
54
- }, [searchText]);
55
- var handleLanguageChange = useCallback(function (language) {
56
- updateAttributes({
57
- language: language
58
- });
59
- }, [updateAttributes]);
60
- var handleTitleToggle = useCallback(function (event) {
61
- event.preventDefault();
62
- event.stopPropagation();
63
- setShowTitleInput(!showTitleInput);
64
- }, [showTitleInput]);
65
- var handleTitleChange = useCallback(function (event) {
66
- setTitleValue(event.target.value);
67
- }, []);
68
- var handleTitleSubmit = useCallback(function () {
69
- updateAttributes({
70
- title: titleValue
71
- });
72
- setShowTitleInput(false);
73
- }, [titleValue, updateAttributes]);
74
- var handleTitleKeyDown = useCallback(function (event) {
75
- if (event.key === 'Enter') {
76
- event.preventDefault();
77
- handleTitleSubmit();
78
- } else if (event.key === 'Escape') {
79
- event.preventDefault();
80
- setTitleValue(attrs.title || '');
81
- setShowTitleInput(false);
82
- }
83
- }, [handleTitleSubmit, attrs.title]);
84
- if (!editor.isEditable) {
85
- return /*#__PURE__*/React.createElement(ReadonlyCodeBlock, props);
86
- }
87
- return /*#__PURE__*/React.createElement(NodeViewWrapper, {
88
- className: "codeblock-wrapper ".concat(selected ? 'ProseMirror-selectednode' : ''),
89
- "data-drag-handle": true
90
- }, /*#__PURE__*/React.createElement(Box, {
91
- sx: {
92
- position: 'relative',
93
- border: '1px solid',
94
- borderColor: 'divider',
95
- borderRadius: 'var(--mui-shape-borderRadius)',
96
- overflow: 'hidden'
97
- }
98
- }, /*#__PURE__*/React.createElement(Stack, {
99
- direction: "row",
100
- alignItems: "center",
101
- justifyContent: "space-between",
102
- className: "codeblock-toolbar",
103
- sx: {
104
- position: 'absolute',
105
- top: 0,
106
- left: 0,
107
- right: 0,
108
- height: '1.25rem',
109
- lineHeight: '1.25rem',
110
- pl: 2.5,
111
- pr: 1,
112
- py: 2,
113
- zIndex: 1,
114
- color: 'text.tertiary',
115
- borderBottom: '1px solid',
116
- borderColor: 'divider'
117
- }
118
- }, showTitleInput ? /*#__PURE__*/React.createElement(Box, {
119
- sx: {
120
- flex: 1,
121
- height: '1.25rem',
122
- lineHeight: '1.25rem',
123
- borderRadius: '4px',
124
- bgcolor: 'background.paper3',
125
- boxSizing: 'border-box',
126
- letterSpacing: '0.01rem'
127
- }
128
- }, /*#__PURE__*/React.createElement(TextField, {
129
- fullWidth: true,
130
- size: "small",
131
- placeholder: "\u8BF7\u8F93\u5165\u4EE3\u7801\u5757\u540D\u79F0",
132
- value: titleValue,
133
- onChange: handleTitleChange,
134
- onKeyDown: handleTitleKeyDown,
135
- onBlur: handleTitleSubmit,
136
- autoFocus: true,
137
- sx: {
138
- '& .MuiInputBase-input': {
139
- p: 0,
140
- height: '1.25rem',
141
- lineHeight: '1.25rem',
142
- fontSize: '0.875rem',
143
- color: 'text.tertiary'
144
- },
145
- '& .MuiInputBase-input::placeholder': {
146
- fontSize: '0.875rem'
147
- },
148
- '& .MuiOutlinedInput-root': {
149
- '& fieldset': {
150
- border: 'none',
151
- top: 0,
152
- p: 0
153
- }
154
- }
155
- }
156
- })) : /*#__PURE__*/React.createElement(Box, {
157
- sx: {
158
- flex: 1,
159
- fontSize: '0.875rem',
160
- letterSpacing: '0.01rem'
161
- },
162
- onClick: handleTitleToggle
163
- }, attrs.title || DEFAULT_CODE_BLOCK_TITLE), /*#__PURE__*/React.createElement(Stack, {
164
- direction: "row",
165
- alignItems: "center",
166
- sx: {
167
- fontSize: '0.75rem',
168
- flexShrink: 0
169
- }
170
- }, /*#__PURE__*/React.createElement(Select, {
171
- value: attrs.language || 'auto',
172
- onChange: function onChange(e) {
173
- return handleLanguageChange(e.target.value);
174
- },
175
- onClose: function onClose() {
176
- return setSearchText('');
177
- },
178
- size: "small",
179
- variant: "outlined",
180
- sx: {
181
- px: 0,
182
- height: '1.25rem',
183
- fontSize: '0.75rem',
184
- bgcolor: 'inherit',
185
- color: 'inherit',
186
- '&.MuiOutlinedInput-root .MuiSelect-select': {
187
- p: 0,
188
- pl: 1,
189
- pr: 'calc(var(--mui-spacing-unit) * 3) !important'
190
- },
191
- '& .MuiSelect-icon': {
192
- color: 'inherit'
193
- },
194
- '& .MuiOutlinedInput-notchedOutline': {
195
- border: 'none'
196
- }
197
- },
198
- IconComponent: function IconComponent(_ref) {
199
- var className = _ref.className,
200
- rest = _objectWithoutProperties(_ref, _excluded);
201
- return /*#__PURE__*/React.createElement(ArrowDownSLineIcon, _extends({
202
- className: className
203
- }, rest, {
204
- sx: {
205
- fontSize: '1rem'
206
- }
207
- }));
208
- },
209
- MenuProps: {
210
- PaperProps: {
211
- sx: {
212
- maxHeight: 400,
213
- p: 0
214
- }
215
- },
216
- autoFocus: false,
217
- MenuListProps: {
218
- ref: menuListRef
219
- }
220
- }
221
- }, /*#__PURE__*/React.createElement(ListSubheader, {
222
- sx: {
223
- position: 'sticky',
224
- top: 0,
225
- bgcolor: 'background.default',
226
- zIndex: 1,
227
- p: 0.5,
228
- lineHeight: 1
229
- }
230
- }, /*#__PURE__*/React.createElement(TextField, {
231
- size: "small",
232
- autoFocus: true,
233
- placeholder: "\u641C\u7D22\u8BED\u8A00...",
234
- fullWidth: true,
235
- value: searchText,
236
- onChange: function onChange(e) {
237
- return setSearchText(e.target.value);
238
- },
239
- onKeyDown: function onKeyDown(e) {
240
- e.stopPropagation();
241
- },
242
- sx: {
243
- '& .MuiInputBase-root': {
244
- fontSize: '0.75rem'
245
- }
246
- }
247
- })), searchText && /*#__PURE__*/React.createElement(MenuItem, {
248
- value: searchText,
249
- sx: {
250
- fontSize: '0.75rem',
251
- height: '30px',
252
- m: 0.5,
253
- bgcolor: 'action.hover',
254
- fontWeight: 500
255
- }
256
- }, searchText, filteredLanguages.length === 0 && ' (自定义)'), !searchText && attrs.language && isCustomCodeLanguage(attrs.language) && /*#__PURE__*/React.createElement(MenuItem, {
257
- value: attrs.language,
258
- sx: {
259
- fontSize: '0.75rem',
260
- height: '30px',
261
- m: 0.5
262
- }
263
- }, attrs.language), filteredLanguages.map(function (lang) {
264
- return /*#__PURE__*/React.createElement(MenuItem, {
265
- key: lang.value,
266
- value: lang.value,
267
- sx: {
268
- fontSize: '0.75rem',
269
- height: '30px',
270
- m: 0.5
271
- }
272
- }, lang.label);
273
- })), /*#__PURE__*/React.createElement(Divider, {
274
- orientation: "vertical",
275
- flexItem: true,
276
- sx: {
277
- height: '1rem',
278
- alignSelf: 'center',
279
- borderColor: 'divider'
280
- }
281
- }), /*#__PURE__*/React.createElement(Stack, {
282
- direction: "row",
283
- alignItems: "center",
284
- gap: 0.5,
285
- onClick: handleCopy,
286
- sx: {
287
- px: 1,
288
- py: 0.5,
289
- borderRadius: 'var(--mui-shape-borderRadius)',
290
- cursor: 'pointer',
291
- userSelect: 'none',
292
- bgcolor: 'inherit',
293
- color: 'inherit'
294
- }
295
- }, copyText === '复制成功' ? /*#__PURE__*/React.createElement(CheckboxCircleLineIcon, {
296
- sx: {
297
- fontSize: '0.75rem',
298
- color: 'success.main'
299
- }
300
- }) : /*#__PURE__*/React.createElement(FileCopyLineIcon, {
301
- sx: {
302
- fontSize: '0.75rem',
303
- color: 'inherit'
304
- }
305
- }), /*#__PURE__*/React.createElement(Box, {
306
- sx: _objectSpread({
307
- lineHeight: 1
308
- }, copyText === '复制成功' ? {
309
- color: 'success.main'
310
- } : {})
311
- }, copyText)))), /*#__PURE__*/React.createElement(Box, {
312
- component: 'pre',
313
- sx: {
314
- m: 0
315
- }
316
- }, /*#__PURE__*/React.createElement(NodeViewContent, {
317
- as: "code",
318
- className: "hljs",
319
- style: {
320
- backgroundColor: 'var(--mui-palette-background-paper3)',
321
- color: 'var(--mui-palette-text-primary)',
322
- padding: '3rem 1.25rem 0.75rem 1.25rem',
323
- fontSize: '0.875rem',
324
- lineHeight: '1.5',
325
- whiteSpace: 'pre-wrap',
326
- wordBreak: 'break-word'
327
- }
328
- }))));
329
- };
330
- export default CodeBlockView;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- export interface CodeBlockAttributes {
3
- language?: string;
4
- title?: string;
5
- }
6
- export declare const DEFAULT_CODE_BLOCK_TITLE = "\u4EE3\u7801\u5757";
7
- export declare const filterCodeLanguages: (searchText: string) => {
8
- value: string;
9
- label: string;
10
- }[];
11
- export declare const isCustomCodeLanguage: (language?: string) => boolean;
12
- export declare const useCodeBlockCopy: (codeText: string) => {
13
- copyText: string;
14
- handleCopy: (event: React.MouseEvent<HTMLElement>) => Promise<(() => void) | undefined>;
15
- };
@@ -1,162 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { LinkIcon } from "../../../../components/Icons";
8
- import { Box, Button, Stack } from "@mui/material";
9
- import { NodeViewWrapper } from "@tiptap/react";
10
- import React, { useEffect, useState } from "react";
11
- import { InsertPopover, InsertTriggerCard, useInsertPopover } from "../shared/insert-popover";
12
- import { ResourceRadioField, ResourceTextField } from "../shared/resource-form";
13
- import { LINK_DISPLAY_OPTIONS } from "./shared";
14
- var InsertLink = function InsertLink(_ref) {
15
- var updateAttributes = _ref.updateAttributes,
16
- deleteNode = _ref.deleteNode,
17
- attrs = _ref.attrs,
18
- editor = _ref.editor;
19
- var isMarkdown = editor.options.contentType === 'markdown';
20
- var _useState = useState(attrs.title || ''),
21
- _useState2 = _slicedToArray(_useState, 2),
22
- title = _useState2[0],
23
- setTitle = _useState2[1];
24
- var _useState3 = useState(attrs.href || ''),
25
- _useState4 = _slicedToArray(_useState3, 2),
26
- href = _useState4[0],
27
- setHref = _useState4[1];
28
- var _useState5 = useState(attrs.type || 'icon'),
29
- _useState6 = _slicedToArray(_useState5, 2),
30
- type = _useState6[0],
31
- setType = _useState6[1];
32
- var _useState7 = useState(attrs.target || '_blank'),
33
- _useState8 = _slicedToArray(_useState7, 2),
34
- target = _useState8[0],
35
- setTarget = _useState8[1];
36
- var _useInsertPopover = useInsertPopover(),
37
- anchorEl = _useInsertPopover.anchorEl,
38
- triggerRef = _useInsertPopover.triggerRef,
39
- openFromEvent = _useInsertPopover.openFromEvent,
40
- openFromTrigger = _useInsertPopover.openFromTrigger,
41
- close = _useInsertPopover.close,
42
- isOpen = _useInsertPopover.isOpen;
43
- var handleSave = function handleSave() {
44
- if (type === 'block') {
45
- editor.commands.setBlockLink({
46
- title: title,
47
- href: href,
48
- type: type,
49
- target: target
50
- });
51
- } else {
52
- updateAttributes === null || updateAttributes === void 0 || updateAttributes({
53
- title: title,
54
- href: href,
55
- type: type,
56
- target: target
57
- });
58
- }
59
- };
60
- var handleDeleteLink = function handleDeleteLink() {
61
- deleteNode === null || deleteNode === void 0 || deleteNode();
62
- editor.commands.insertContent(attrs.title);
63
- };
64
- useEffect(function () {
65
- if (!attrs.href && attrs.title && !isOpen) {
66
- setTimeout(function () {
67
- openFromTrigger();
68
- }, 100);
69
- }
70
- }, [attrs.href, attrs.title, isOpen, openFromTrigger]);
71
- return /*#__PURE__*/React.createElement(NodeViewWrapper, {
72
- className: "link-wrapper ".concat(attrs.class),
73
- as: 'span'
74
- }, /*#__PURE__*/React.createElement(InsertTriggerCard, {
75
- ref: triggerRef,
76
- icon: /*#__PURE__*/React.createElement(LinkIcon, {
77
- sx: {
78
- fontSize: '1rem',
79
- flexShrink: 0
80
- }
81
- }),
82
- text: /*#__PURE__*/React.createElement(Box, {
83
- component: 'span'
84
- }, "\u6DFB\u52A0", title ? "\u201C".concat(title, "\u201D") : '', "\u94FE\u63A5"),
85
- onClick: openFromEvent,
86
- minWidth: 0
87
- }), /*#__PURE__*/React.createElement(InsertPopover, {
88
- open: isOpen,
89
- anchorEl: anchorEl,
90
- onClose: close
91
- }, /*#__PURE__*/React.createElement(Stack, {
92
- gap: 2,
93
- sx: {
94
- p: 2,
95
- width: 350
96
- }
97
- }, /*#__PURE__*/React.createElement(ResourceTextField, {
98
- label: "\u5730\u5740",
99
- textFieldProps: {
100
- value: href,
101
- onChange: function onChange(e) {
102
- return setHref(e.target.value);
103
- },
104
- placeholder: "https://example.com",
105
- required: true,
106
- error: href.length > 0 && !href.trim(),
107
- helperText: href.length > 0 && !href.trim() ? "请输入有效的链接地址" : ""
108
- }
109
- }), /*#__PURE__*/React.createElement(ResourceTextField, {
110
- label: "\u6807\u9898",
111
- textFieldProps: {
112
- value: title,
113
- onChange: function onChange(e) {
114
- return setTitle(e.target.value);
115
- },
116
- placeholder: "链接标题(可选)"
117
- }
118
- }), !isMarkdown && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResourceRadioField, {
119
- label: "\u98CE\u683C",
120
- value: type,
121
- onChange: function onChange(value) {
122
- return setType(value);
123
- },
124
- options: LINK_DISPLAY_OPTIONS.map(function (option) {
125
- return {
126
- value: option.key,
127
- label: option.label
128
- };
129
- })
130
- }), /*#__PURE__*/React.createElement(ResourceRadioField, {
131
- label: "\u6253\u5F00",
132
- value: target,
133
- onChange: function onChange(value) {
134
- return setTarget(value);
135
- },
136
- options: [{
137
- value: '_blank',
138
- label: '新窗口'
139
- }, {
140
- value: '_self',
141
- label: '当前窗口'
142
- }]
143
- })), /*#__PURE__*/React.createElement(Stack, {
144
- direction: "row",
145
- gap: 1
146
- }, /*#__PURE__*/React.createElement(Button, {
147
- variant: "outlined",
148
- size: "small",
149
- fullWidth: true,
150
- onClick: handleDeleteLink
151
- }, "\u53D6\u6D88\u94FE\u63A5"), /*#__PURE__*/React.createElement(Button, {
152
- variant: "contained",
153
- size: "small",
154
- fullWidth: true,
155
- onClick: function onClick() {
156
- handleSave();
157
- close();
158
- },
159
- disabled: !href.trim()
160
- }, "\u63D2\u5165\u94FE\u63A5")))));
161
- };
162
- export default InsertLink;
@@ -1,26 +0,0 @@
1
- import { Editor } from "@tiptap/core";
2
- import React from "react";
3
- export type LinkDisplayType = 'text' | 'icon' | 'block';
4
- export interface LinkAttributes {
5
- href: string;
6
- target: string;
7
- class: string;
8
- title: string;
9
- rel: string;
10
- type: LinkDisplayType;
11
- }
12
- export declare const LINK_DISPLAY_OPTIONS: Array<{
13
- key: LinkDisplayType;
14
- label: string;
15
- icon: React.ReactNode;
16
- }>;
17
- export declare const buildLinkNodeAttrs: (attrs: LinkAttributes, overrides?: Partial<LinkAttributes>) => LinkAttributes;
18
- export declare const replaceLinkNodeAtPos: ({ editor, pos, nodeSize, nodeType, attrs, }: {
19
- editor: Editor;
20
- pos: number;
21
- nodeSize: number;
22
- nodeType: 'inlineLink' | 'blockLink';
23
- attrs: LinkAttributes;
24
- }) => boolean;
25
- export declare const getResolvedLinkTitle: (attrs: Pick<LinkAttributes, 'href' | 'title'>) => string;
26
- export declare const getLinkFavicon: (href?: string) => string;
@@ -1,74 +0,0 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { CarouselViewIcon, ScrollToBottomLineIcon, TextIcon } from "../../../../components/Icons";
8
- import React from "react";
9
- import { getLinkTitle } from "../../../../utils";
10
- export var LINK_DISPLAY_OPTIONS = [{
11
- key: 'text',
12
- label: '文字',
13
- icon: /*#__PURE__*/React.createElement(TextIcon, {
14
- sx: {
15
- fontSize: '1rem'
16
- }
17
- })
18
- }, {
19
- key: 'icon',
20
- label: '图标文字',
21
- icon: /*#__PURE__*/React.createElement(ScrollToBottomLineIcon, {
22
- sx: {
23
- transform: 'rotate(90deg)',
24
- fontSize: '1rem'
25
- }
26
- })
27
- }, {
28
- key: 'block',
29
- label: '卡片',
30
- icon: /*#__PURE__*/React.createElement(CarouselViewIcon, {
31
- sx: {
32
- transform: 'rotate(90deg)',
33
- fontSize: '1rem'
34
- }
35
- })
36
- }];
37
- export var buildLinkNodeAttrs = function buildLinkNodeAttrs(attrs) {
38
- var overrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
39
- return _objectSpread({
40
- title: attrs.title,
41
- href: attrs.href,
42
- type: attrs.type,
43
- target: attrs.target,
44
- class: attrs.class,
45
- rel: attrs.rel
46
- }, overrides);
47
- };
48
- export var replaceLinkNodeAtPos = function replaceLinkNodeAtPos(_ref) {
49
- var editor = _ref.editor,
50
- pos = _ref.pos,
51
- nodeSize = _ref.nodeSize,
52
- nodeType = _ref.nodeType,
53
- attrs = _ref.attrs;
54
- return editor.chain().focus().deleteRange({
55
- from: pos,
56
- to: pos + nodeSize
57
- }).insertContentAt(pos, {
58
- type: nodeType,
59
- attrs: attrs
60
- }).run();
61
- };
62
- export var getResolvedLinkTitle = function getResolvedLinkTitle(attrs) {
63
- return attrs.title || getLinkTitle(attrs.href);
64
- };
65
- export var getLinkFavicon = function getLinkFavicon(href) {
66
- if (!href) {
67
- return '';
68
- }
69
- try {
70
- return new URL(href).origin + '/favicon.ico';
71
- } catch (_unused) {
72
- return '';
73
- }
74
- };
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- export type MathAttributes = {
3
- latex: string;
4
- };
5
- export declare const createMathAttributes: (base: MathAttributes, overrides?: Partial<MathAttributes>) => MathAttributes;
6
- export declare const renderMathToElement: ({ latex, element, displayMode, onError, }: {
7
- latex?: string | undefined;
8
- element: HTMLElement | null;
9
- displayMode: boolean;
10
- onError?: ((error: Error) => void) | undefined;
11
- }) => void;
12
- export declare const MathEditorPopover: ({ value, onChange, onSubmit, multiline, placeholder, }: {
13
- value: string;
14
- onChange: (value: string) => void;
15
- onSubmit: () => void;
16
- multiline?: boolean | undefined;
17
- placeholder: string;
18
- }) => React.JSX.Element;