wendang-react 0.0.0-stage → 0.5.6

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 (548) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +381 -0
  3. package/README.md +478 -2
  4. package/dist/bindings/yjs.js +5 -0
  5. package/dist/chunks/AnchoredPanel-D3nte06T.js +68 -0
  6. package/dist/chunks/MindMapCanvas-D5XwjVH1.js +2072 -0
  7. package/dist/chunks/MindMapViewer-CQTQAgNq.js +180 -0
  8. package/dist/chunks/SpreadsheetViewer-DN_QQGud.js +157 -0
  9. package/dist/chunks/code-highlight-BmaqTe1m.js +30 -0
  10. package/dist/chunks/code-highlight-engine-BFDzDPzy.js +40 -0
  11. package/dist/chunks/comment-hint-DN7LKJAn.js +296 -0
  12. package/dist/chunks/composition-state-Bl-U1R_2.js +40 -0
  13. package/dist/chunks/extensions-B-CVVQhp.js +4210 -0
  14. package/dist/chunks/fuzzy-match-DYQR-4w2.js +89 -0
  15. package/dist/chunks/hooks-C53Dp0pr.js +35 -0
  16. package/dist/chunks/host-C-V688Rq.js +197 -0
  17. package/dist/chunks/index-Ii536CFG.js +720 -0
  18. package/dist/chunks/katex-WjrodtTU.js +71 -0
  19. package/dist/chunks/mind-map-controller-B6SxK3GZ.js +479 -0
  20. package/dist/chunks/mind-map-delete-CVsxdXfs.js +31 -0
  21. package/dist/chunks/mind-map-input-CEWRz_t6.js +43 -0
  22. package/dist/chunks/mind-topic-text-BBNTbFSe.js +446 -0
  23. package/dist/chunks/nodes-iKqTGr_N.js +291 -0
  24. package/dist/chunks/popover-placement-D3xVYdkt.js +47 -0
  25. package/dist/chunks/worksheet-engine-TJ54m0KC.js +125 -0
  26. package/dist/chunks/worksheet-preview-DsDVWxIM.js +129 -0
  27. package/dist/document/viewer.js +287 -0
  28. package/dist/document.js +3620 -0
  29. package/dist/index.js +8 -0
  30. package/dist/mindmap/viewer.js +6 -0
  31. package/dist/mindmap.js +123 -0
  32. package/dist/shared.js +52 -0
  33. package/dist/spreadsheet/viewer.js +5 -0
  34. package/dist/spreadsheet/xlsx.js +299 -0
  35. package/dist/spreadsheet.js +120 -0
  36. package/dist/styles/callout.css +34 -0
  37. package/dist/styles/code-block.css +58 -0
  38. package/dist/styles/content-style.css +619 -0
  39. package/dist/styles/editor-interaction.css +621 -0
  40. package/dist/styles/file-video.css +12 -0
  41. package/dist/styles/image-preview.css +103 -0
  42. package/dist/styles/mind-map-block.css +14 -0
  43. package/dist/styles/mind-map-canvas.css +80 -0
  44. package/dist/styles/mind-map-comments.css +93 -0
  45. package/dist/styles/mind-map-details.css +7 -0
  46. package/dist/styles/mind-map-preview.css +7 -0
  47. package/dist/styles/mind-map-topic.css +112 -0
  48. package/dist/styles/page-picker.css +47 -0
  49. package/dist/styles/renderer.css +45 -0
  50. package/dist/styles/spreadsheet-editor.css +3 -0
  51. package/dist/styles/tokens.css +154 -0
  52. package/dist/styles/video-dialog.css +41 -0
  53. package/dist/styles/video-embed.css +35 -0
  54. package/dist/styles.css +2615 -0
  55. package/dist/types/bindings/yjs.d.ts +3 -0
  56. package/dist/types/document/viewer.d.ts +3 -0
  57. package/dist/types/document.d.ts +7 -0
  58. package/dist/types/editor/BlockAffordance.d.ts +47 -0
  59. package/dist/types/editor/CalloutView.d.ts +2 -0
  60. package/dist/types/editor/CodeBlockView.d.ts +9 -0
  61. package/dist/types/editor/DocumentColorPanel.d.ts +8 -0
  62. package/dist/types/editor/DocumentEditor.d.ts +71 -0
  63. package/dist/types/editor/ImagePreview.d.ts +10 -0
  64. package/dist/types/editor/LinkPopover.d.ts +21 -0
  65. package/dist/types/editor/PagePicker.d.ts +7 -0
  66. package/dist/types/editor/SelectionToolbar.d.ts +11 -0
  67. package/dist/types/editor/SlashMenu.d.ts +30 -0
  68. package/dist/types/editor/TableControls.d.ts +9 -0
  69. package/dist/types/editor/VideoEmbedDialog.d.ts +6 -0
  70. package/dist/types/editor/document-gestures.d.ts +13 -0
  71. package/dist/types/editor/extensions.d.ts +29 -0
  72. package/dist/types/editor/nodes.d.ts +20 -0
  73. package/dist/types/editor/same-document.d.ts +2 -0
  74. package/dist/types/engine/collab/presence.d.ts +1 -0
  75. package/dist/types/engine/editor/block-commands.d.ts +35 -0
  76. package/dist/types/engine/editor/block-conversion.d.ts +12 -0
  77. package/dist/types/engine/editor/block-drag.d.ts +16 -0
  78. package/dist/types/engine/editor/block-menu-placement.d.ts +16 -0
  79. package/dist/types/engine/editor/callout-commands.d.ts +4 -0
  80. package/dist/types/engine/editor/collab-change-origin.d.ts +2 -0
  81. package/dist/types/engine/editor/delete-block.d.ts +2 -0
  82. package/dist/types/engine/editor/extensions/block-format.d.ts +19 -0
  83. package/dist/types/engine/editor/extensions/block-handle.d.ts +17 -0
  84. package/dist/types/engine/editor/extensions/block-menu-highlight.d.ts +4 -0
  85. package/dist/types/engine/editor/extensions/block-selection.d.ts +117 -0
  86. package/dist/types/engine/editor/extensions/code-highlight.d.ts +2 -0
  87. package/dist/types/engine/editor/extensions/collab-cursor.d.ts +13 -0
  88. package/dist/types/engine/editor/extensions/ime-guard.d.ts +8 -0
  89. package/dist/types/engine/editor/extensions/inline-comments.d.ts +15 -0
  90. package/dist/types/engine/editor/extensions/paste-sanitizer.d.ts +4 -0
  91. package/dist/types/engine/editor/extensions/slash.d.ts +16 -0
  92. package/dist/types/engine/editor/extensions/table-interaction.d.ts +9 -0
  93. package/dist/types/engine/editor/extensions/upload-placeholder.d.ts +48 -0
  94. package/dist/types/engine/editor/image-preview-gesture.d.ts +3 -0
  95. package/dist/types/engine/editor/ime/composition-state.d.ts +9 -0
  96. package/dist/types/engine/editor/insert-block.d.ts +6 -0
  97. package/dist/types/engine/editor/insert-picker-logic.d.ts +13 -0
  98. package/dist/types/engine/editor/link-edit.d.ts +10 -0
  99. package/dist/types/engine/editor/mind-map-controller.d.ts +63 -0
  100. package/dist/types/engine/editor/mind-map-delete.d.ts +7 -0
  101. package/dist/types/engine/editor/mind-map-drag.d.ts +16 -0
  102. package/dist/types/engine/editor/mind-map-input.d.ts +16 -0
  103. package/dist/types/engine/editor/mind-map-selection.d.ts +11 -0
  104. package/dist/types/engine/editor/nodes/columns.d.ts +6 -0
  105. package/dist/types/engine/editor/nodes/file-nodeview.d.ts +4 -0
  106. package/dist/types/engine/editor/nodes/file.d.ts +2 -0
  107. package/dist/types/engine/editor/nodes/image-gallery.d.ts +2 -0
  108. package/dist/types/engine/editor/nodes/image-nodeview.d.ts +4 -0
  109. package/dist/types/engine/editor/nodes/image.d.ts +1 -0
  110. package/dist/types/engine/editor/nodes/inline-style.d.ts +4 -0
  111. package/dist/types/engine/editor/nodes/math-nodeview.d.ts +2 -0
  112. package/dist/types/engine/editor/nodes/math.d.ts +3 -0
  113. package/dist/types/engine/editor/nodes/mention.d.ts +2 -0
  114. package/dist/types/engine/editor/nodes/mind-map-schema.d.ts +6 -0
  115. package/dist/types/engine/editor/nodes/page-link.d.ts +2 -0
  116. package/dist/types/engine/editor/nodes/table-cell.d.ts +4 -0
  117. package/dist/types/engine/editor/nodes/video-embed-schema.d.ts +2 -0
  118. package/dist/types/engine/editor/popover-placement.d.ts +35 -0
  119. package/dist/types/engine/editor/table-clipboard.d.ts +3 -0
  120. package/dist/types/engine/editor/table-commands.d.ts +20 -0
  121. package/dist/types/engine/editor/table-geometry.d.ts +34 -0
  122. package/dist/types/engine/editor/table-menu-placement.d.ts +30 -0
  123. package/dist/types/engine/editor/tracked-target.d.ts +8 -0
  124. package/dist/types/engine/editor/trailing-paragraph.d.ts +2 -0
  125. package/dist/types/engine/host.d.ts +2 -0
  126. package/dist/types/engine/renderer/attachments.d.ts +11 -0
  127. package/dist/types/engine/renderer/katex.d.ts +7 -0
  128. package/dist/types/engine/renderer/lazy-visible.d.ts +11 -0
  129. package/dist/types/engine/shared/callout.d.ts +1 -0
  130. package/dist/types/engine/shared/code-block.d.ts +1 -0
  131. package/dist/types/engine/shared/code-highlight-engine.d.ts +2 -0
  132. package/dist/types/engine/shared/code-highlight.d.ts +8 -0
  133. package/dist/types/engine/shared/comment-hint-position.d.ts +20 -0
  134. package/dist/types/engine/shared/comment-hint.d.ts +2 -0
  135. package/dist/types/engine/shared/document-colors.d.ts +1 -0
  136. package/dist/types/engine/shared/fuzzy-match.d.ts +13 -0
  137. package/dist/types/engine/shared/image-gallery.d.ts +1 -0
  138. package/dist/types/engine/shared/inline-comments.d.ts +1 -0
  139. package/dist/types/engine/shared/mind-map-phase2.d.ts +1 -0
  140. package/dist/types/engine/shared/mind-map.d.ts +1 -0
  141. package/dist/types/engine/shared/mind-topic-text.d.ts +1 -0
  142. package/dist/types/engine/shared/modal-stack.d.ts +6 -0
  143. package/dist/types/engine/shared/page-candidates.d.ts +6 -0
  144. package/dist/types/engine/shared/pinyin.d.ts +6 -0
  145. package/dist/types/engine/shared/preview-items.d.ts +10 -0
  146. package/dist/types/engine/shared/safe-href.d.ts +1 -0
  147. package/dist/types/engine/shared/table-cell-format.d.ts +1 -0
  148. package/dist/types/engine/shared/table-layout.d.ts +1 -0
  149. package/dist/types/engine/shared/video-embed.d.ts +1 -0
  150. package/dist/types/engine/shared/video-feedback.d.ts +1 -0
  151. package/dist/types/engine/shared/workbook.d.ts +1 -0
  152. package/dist/types/engine/worksheets/worksheet-engine.d.ts +16 -0
  153. package/dist/types/engine/worksheets/worksheet-format.d.ts +20 -0
  154. package/dist/types/engine/worksheets/worksheet-preview.d.ts +17 -0
  155. package/dist/types/engine/worksheets/worksheet-xlsx.d.ts +21 -0
  156. package/dist/types/engine/wui/core/dialog.d.ts +5 -0
  157. package/dist/types/engine/wui/core/listbox.d.ts +8 -0
  158. package/dist/types/engine/wui/core/placement.d.ts +40 -0
  159. package/dist/types/hooks.d.ts +7 -0
  160. package/dist/types/host-types.d.ts +58 -0
  161. package/dist/types/host.d.ts +24 -0
  162. package/dist/types/index.d.ts +5 -0
  163. package/dist/types/mindmap/Comments.d.ts +9 -0
  164. package/dist/types/mindmap/Details.d.ts +13 -0
  165. package/dist/types/mindmap/Field.d.ts +10 -0
  166. package/dist/types/mindmap/MindMapCanvas.d.ts +19 -0
  167. package/dist/types/mindmap/MindMapEditor.d.ts +30 -0
  168. package/dist/types/mindmap/MindMapViewer.d.ts +23 -0
  169. package/dist/types/mindmap/TopicLabel.d.ts +4 -0
  170. package/dist/types/mindmap/viewer.d.ts +2 -0
  171. package/dist/types/mindmap.d.ts +4 -0
  172. package/dist/types/renderer/CodeToolbar.d.ts +10 -0
  173. package/dist/types/renderer/DocumentViewer.d.ts +23 -0
  174. package/dist/types/renderer/media.d.ts +33 -0
  175. package/dist/types/shared.d.ts +12 -0
  176. package/dist/types/spreadsheet/SpreadsheetEditor.d.ts +23 -0
  177. package/dist/types/spreadsheet/SpreadsheetViewer.d.ts +13 -0
  178. package/dist/types/spreadsheet/viewer.d.ts +2 -0
  179. package/dist/types/spreadsheet/xlsx.d.ts +2 -0
  180. package/dist/types/spreadsheet.d.ts +3 -0
  181. package/dist/types/wui/AnchoredPanel.d.ts +14 -0
  182. package/dist/types/wui/Dropdown.d.ts +18 -0
  183. package/dist/types/wui/Icon.d.ts +7 -0
  184. package/dist/types/wui/Tooltip.d.ts +5 -0
  185. package/dist/types/wui/index.d.ts +69 -0
  186. package/package.json +122 -3
  187. package/third-party-notices/@fast-csv__format@4.3.5-LICENSE.txt +21 -0
  188. package/third-party-notices/@fast-csv__parse@4.3.6-LICENSE.txt +21 -0
  189. package/third-party-notices/@flatten-js__interval-tree@1.1.3-LICENSE.txt +21 -0
  190. package/third-party-notices/@floating-ui__core@1.8.0-LICENSE.txt +20 -0
  191. package/third-party-notices/@floating-ui__dom@1.8.0-LICENSE.txt +20 -0
  192. package/third-party-notices/@floating-ui__react-dom@2.1.9-LICENSE.txt +20 -0
  193. package/third-party-notices/@floating-ui__utils@0.2.12-LICENSE.txt +20 -0
  194. package/third-party-notices/@grpc__grpc-js@1.14.6-LICENSE.txt +201 -0
  195. package/third-party-notices/@grpc__proto-loader@0.8.1-LICENSE.txt +201 -0
  196. package/third-party-notices/@js-sdsl__ordered-map@4.4.2-LICENSE.txt +21 -0
  197. package/third-party-notices/@protobufjs__aspromise@1.1.2-LICENSE.txt +26 -0
  198. package/third-party-notices/@protobufjs__base64@1.1.2-LICENSE.txt +26 -0
  199. package/third-party-notices/@protobufjs__codegen@2.0.5-LICENSE.txt +26 -0
  200. package/third-party-notices/@protobufjs__eventemitter@1.1.1-LICENSE.txt +26 -0
  201. package/third-party-notices/@protobufjs__fetch@1.1.1-LICENSE.txt +26 -0
  202. package/third-party-notices/@protobufjs__float@1.0.2-LICENSE.txt +26 -0
  203. package/third-party-notices/@protobufjs__path@1.1.2-LICENSE.txt +26 -0
  204. package/third-party-notices/@protobufjs__pool@1.1.0-LICENSE.txt +26 -0
  205. package/third-party-notices/@protobufjs__utf8@1.1.2-LICENSE.txt +26 -0
  206. package/third-party-notices/@radix-ui__primitive@1.2.0-LICENSE.txt +21 -0
  207. package/third-party-notices/@radix-ui__react-arrow@1.1.17-LICENSE.txt +21 -0
  208. package/third-party-notices/@radix-ui__react-collection@1.2.0-LICENSE.txt +21 -0
  209. package/third-party-notices/@radix-ui__react-compose-refs@1.1.5-LICENSE.txt +21 -0
  210. package/third-party-notices/@radix-ui__react-context@1.3.0-LICENSE.txt +21 -0
  211. package/third-party-notices/@radix-ui__react-dialog@1.3.1-LICENSE.txt +21 -0
  212. package/third-party-notices/@radix-ui__react-direction@1.2.0-LICENSE.txt +21 -0
  213. package/third-party-notices/@radix-ui__react-dismissable-layer@1.2.1-LICENSE.txt +21 -0
  214. package/third-party-notices/@radix-ui__react-dropdown-menu@2.2.1-LICENSE.txt +21 -0
  215. package/third-party-notices/@radix-ui__react-focus-guards@1.2.0-LICENSE.txt +21 -0
  216. package/third-party-notices/@radix-ui__react-focus-scope@1.3.1-LICENSE.txt +21 -0
  217. package/third-party-notices/@radix-ui__react-hover-card@1.2.1-LICENSE.txt +21 -0
  218. package/third-party-notices/@radix-ui__react-id@1.1.4-LICENSE.txt +21 -0
  219. package/third-party-notices/@radix-ui__react-menu@2.2.1-LICENSE.txt +21 -0
  220. package/third-party-notices/@radix-ui__react-popover@1.3.1-LICENSE.txt +21 -0
  221. package/third-party-notices/@radix-ui__react-popper@1.4.0-LICENSE.txt +21 -0
  222. package/third-party-notices/@radix-ui__react-portal@1.2.0-LICENSE.txt +21 -0
  223. package/third-party-notices/@radix-ui__react-presence@1.1.11-LICENSE.txt +21 -0
  224. package/third-party-notices/@radix-ui__react-primitive@2.2.0-LICENSE.txt +21 -0
  225. package/third-party-notices/@radix-ui__react-roving-focus@1.2.1-LICENSE.txt +21 -0
  226. package/third-party-notices/@radix-ui__react-separator@1.2.0-LICENSE.txt +21 -0
  227. package/third-party-notices/@radix-ui__react-slot@1.5.0-LICENSE.txt +21 -0
  228. package/third-party-notices/@radix-ui__react-use-callback-ref@1.1.5-LICENSE.txt +21 -0
  229. package/third-party-notices/@radix-ui__react-use-controllable-state@1.3.0-LICENSE.txt +21 -0
  230. package/third-party-notices/@radix-ui__react-use-effect-event@0.0.5-LICENSE.txt +21 -0
  231. package/third-party-notices/@radix-ui__react-use-is-hydrated@0.1.3-LICENSE.txt +21 -0
  232. package/third-party-notices/@radix-ui__react-use-layout-effect@1.1.4-LICENSE.txt +21 -0
  233. package/third-party-notices/@radix-ui__react-use-rect@1.1.4-LICENSE.txt +21 -0
  234. package/third-party-notices/@radix-ui__react-use-size@1.1.5-LICENSE.txt +21 -0
  235. package/third-party-notices/@radix-ui__rect@1.1.3-LICENSE.txt +21 -0
  236. package/third-party-notices/@tiptap__core@3.31.4-LICENSE.md.txt +21 -0
  237. package/third-party-notices/@tiptap__extension-blockquote@3.31.4-LICENSE.md.txt +21 -0
  238. package/third-party-notices/@tiptap__extension-bold@3.31.4-LICENSE.md.txt +21 -0
  239. package/third-party-notices/@tiptap__extension-bullet-list@3.31.4-LICENSE.md.txt +21 -0
  240. package/third-party-notices/@tiptap__extension-code-block@3.31.4-LICENSE.md.txt +21 -0
  241. package/third-party-notices/@tiptap__extension-code@3.31.4-LICENSE.md.txt +21 -0
  242. package/third-party-notices/@tiptap__extension-collaboration@3.31.4-LICENSE.md.txt +21 -0
  243. package/third-party-notices/@tiptap__extension-document@3.31.4-LICENSE.md.txt +21 -0
  244. package/third-party-notices/@tiptap__extension-dropcursor@3.31.4-LICENSE.md.txt +21 -0
  245. package/third-party-notices/@tiptap__extension-gapcursor@3.31.4-LICENSE.md.txt +21 -0
  246. package/third-party-notices/@tiptap__extension-hard-break@3.31.4-LICENSE.md.txt +21 -0
  247. package/third-party-notices/@tiptap__extension-heading@3.31.4-LICENSE.md.txt +21 -0
  248. package/third-party-notices/@tiptap__extension-horizontal-rule@3.31.4-LICENSE.md.txt +21 -0
  249. package/third-party-notices/@tiptap__extension-image@3.31.4-LICENSE.md.txt +21 -0
  250. package/third-party-notices/@tiptap__extension-italic@3.31.4-LICENSE.md.txt +21 -0
  251. package/third-party-notices/@tiptap__extension-link@3.31.4-LICENSE.md.txt +21 -0
  252. package/third-party-notices/@tiptap__extension-list-item@3.31.4-LICENSE.md.txt +21 -0
  253. package/third-party-notices/@tiptap__extension-list-keymap@3.31.4-LICENSE.md.txt +21 -0
  254. package/third-party-notices/@tiptap__extension-list@3.31.4-LICENSE.md.txt +21 -0
  255. package/third-party-notices/@tiptap__extension-ordered-list@3.31.4-LICENSE.md.txt +21 -0
  256. package/third-party-notices/@tiptap__extension-paragraph@3.31.4-LICENSE.md.txt +21 -0
  257. package/third-party-notices/@tiptap__extension-placeholder@3.31.4-LICENSE.md.txt +21 -0
  258. package/third-party-notices/@tiptap__extension-strike@3.31.4-LICENSE.md.txt +21 -0
  259. package/third-party-notices/@tiptap__extension-table-cell@3.31.4-LICENSE.md.txt +21 -0
  260. package/third-party-notices/@tiptap__extension-table-header@3.31.4-LICENSE.md.txt +21 -0
  261. package/third-party-notices/@tiptap__extension-table-row@3.31.4-LICENSE.md.txt +21 -0
  262. package/third-party-notices/@tiptap__extension-table@3.31.4-LICENSE.md.txt +21 -0
  263. package/third-party-notices/@tiptap__extension-task-item@3.31.4-LICENSE.md.txt +21 -0
  264. package/third-party-notices/@tiptap__extension-task-list@3.31.4-LICENSE.md.txt +21 -0
  265. package/third-party-notices/@tiptap__extension-text@3.31.4-LICENSE.md.txt +21 -0
  266. package/third-party-notices/@tiptap__extension-underline@3.31.4-LICENSE.md.txt +21 -0
  267. package/third-party-notices/@tiptap__extensions@3.31.4-LICENSE.md.txt +21 -0
  268. package/third-party-notices/@tiptap__pm@3.31.4-LICENSE.txt +21 -0
  269. package/third-party-notices/@tiptap__starter-kit@3.31.4-LICENSE.md.txt +21 -0
  270. package/third-party-notices/@tiptap__y-tiptap@3.0.7-LICENSE.txt +22 -0
  271. package/third-party-notices/@types__hast@3.0.5-LICENSE.txt +21 -0
  272. package/third-party-notices/@types__node@14.18.63-LICENSE.txt +21 -0
  273. package/third-party-notices/@types__node@26.6.2-LICENSE.txt +21 -0
  274. package/third-party-notices/@types__react-dom@19.3.0-LICENSE.txt +21 -0
  275. package/third-party-notices/@types__react@19.3.0-LICENSE.txt +21 -0
  276. package/third-party-notices/@types__unist@3.0.3-LICENSE.txt +21 -0
  277. package/third-party-notices/@univerjs__core@1.1.0-LICENSE.txt +176 -0
  278. package/third-party-notices/@univerjs__design@1.1.0-LICENSE.txt +176 -0
  279. package/third-party-notices/@univerjs__docs-ui@1.1.0-LICENSE.txt +176 -0
  280. package/third-party-notices/@univerjs__docs@1.1.0-LICENSE.txt +176 -0
  281. package/third-party-notices/@univerjs__drawing@1.1.0-LICENSE.txt +176 -0
  282. package/third-party-notices/@univerjs__engine-formula@1.1.0-LICENSE.txt +176 -0
  283. package/third-party-notices/@univerjs__engine-render@1.1.0-LICENSE.txt +176 -0
  284. package/third-party-notices/@univerjs__icons@1.46.0-LICENSE.txt +21 -0
  285. package/third-party-notices/@univerjs__network@1.1.0-LICENSE.txt +176 -0
  286. package/third-party-notices/@univerjs__preset-sheets-core@1.1.0-LICENSE.txt +176 -0
  287. package/third-party-notices/@univerjs__preset-sheets-filter@1.1.0-LICENSE.txt +176 -0
  288. package/third-party-notices/@univerjs__preset-sheets-sort@1.1.0-LICENSE.txt +176 -0
  289. package/third-party-notices/@univerjs__presets@1.1.0-LICENSE.txt +176 -0
  290. package/third-party-notices/@univerjs__rpc@1.1.0-LICENSE.txt +176 -0
  291. package/third-party-notices/@univerjs__sheets-filter-ui@1.1.0-LICENSE.txt +176 -0
  292. package/third-party-notices/@univerjs__sheets-filter@1.1.0-LICENSE.txt +176 -0
  293. package/third-party-notices/@univerjs__sheets-formula-ui@1.1.0-LICENSE.txt +176 -0
  294. package/third-party-notices/@univerjs__sheets-formula@1.1.0-LICENSE.txt +176 -0
  295. package/third-party-notices/@univerjs__sheets-numfmt-ui@1.1.0-LICENSE.txt +176 -0
  296. package/third-party-notices/@univerjs__sheets-numfmt@1.1.0-LICENSE.txt +176 -0
  297. package/third-party-notices/@univerjs__sheets-sort-ui@1.1.0-LICENSE.txt +176 -0
  298. package/third-party-notices/@univerjs__sheets-sort@1.1.0-LICENSE.txt +176 -0
  299. package/third-party-notices/@univerjs__sheets-ui@1.1.0-LICENSE.txt +176 -0
  300. package/third-party-notices/@univerjs__sheets@1.1.0-LICENSE.txt +176 -0
  301. package/third-party-notices/@univerjs__telemetry@1.1.0-LICENSE.txt +176 -0
  302. package/third-party-notices/@univerjs__themes@1.1.0-LICENSE.txt +176 -0
  303. package/third-party-notices/@univerjs__ui@1.1.0-LICENSE.txt +176 -0
  304. package/third-party-notices/@wendellhu__redi@1.1.3-LICENSE.txt +7 -0
  305. package/third-party-notices/ansi-regex@5.0.1-license.txt +9 -0
  306. package/third-party-notices/ansi-styles@4.3.0-license.txt +9 -0
  307. package/third-party-notices/archiver-utils@2.1.0-LICENSE.txt +22 -0
  308. package/third-party-notices/archiver-utils@3.0.4-LICENSE.txt +22 -0
  309. package/third-party-notices/archiver@5.3.2-LICENSE.txt +22 -0
  310. package/third-party-notices/aria-hidden@1.2.6-LICENSE.txt +21 -0
  311. package/third-party-notices/array-buffer-byte-length@1.0.2-LICENSE.txt +21 -0
  312. package/third-party-notices/arraybuffer.prototype.slice@1.0.4-LICENSE.txt +21 -0
  313. package/third-party-notices/async-function@1.0.0-LICENSE.txt +21 -0
  314. package/third-party-notices/async-lock@1.4.1-LICENSE.txt +22 -0
  315. package/third-party-notices/async@3.2.6-LICENSE.txt +19 -0
  316. package/third-party-notices/available-typed-arrays@1.0.7-LICENSE.txt +21 -0
  317. package/third-party-notices/balanced-match@1.0.2-LICENSE.md.txt +21 -0
  318. package/third-party-notices/base64-js@1.5.1-LICENSE.txt +21 -0
  319. package/third-party-notices/big-integer@1.6.52-LICENSE.txt +24 -0
  320. package/third-party-notices/bl@4.1.0-LICENSE.md.txt +13 -0
  321. package/third-party-notices/bluebird@3.4.7-LICENSE.txt +21 -0
  322. package/third-party-notices/brace-expansion@1.1.21-LICENSE.txt +21 -0
  323. package/third-party-notices/brace-expansion@2.1.7-LICENSE.txt +21 -0
  324. package/third-party-notices/buffer-crc32@0.2.13-LICENSE.txt +19 -0
  325. package/third-party-notices/buffer-indexof-polyfill@1.0.2-LICENSE.txt +22 -0
  326. package/third-party-notices/buffer@5.7.1-LICENSE.txt +21 -0
  327. package/third-party-notices/call-bind-apply-helpers@1.0.2-LICENSE.txt +21 -0
  328. package/third-party-notices/call-bind@1.0.9-LICENSE.txt +21 -0
  329. package/third-party-notices/call-bound@1.0.4-LICENSE.txt +21 -0
  330. package/third-party-notices/class-variance-authority@0.7.1-LICENSE.txt +190 -0
  331. package/third-party-notices/cliui@8.0.1-LICENSE.txt.txt +14 -0
  332. package/third-party-notices/clsx@2.1.1-license.txt +9 -0
  333. package/third-party-notices/cmdk@1.1.1-LICENSE.md.txt +21 -0
  334. package/third-party-notices/collapse-white-space@2.1.0-license.txt +22 -0
  335. package/third-party-notices/color-convert@2.0.1-LICENSE.txt +21 -0
  336. package/third-party-notices/color-name@1.1.4-LICENSE.txt +8 -0
  337. package/third-party-notices/commander@15.0.0-LICENSE.txt +22 -0
  338. package/third-party-notices/compress-commons@4.1.2-LICENSE.txt +22 -0
  339. package/third-party-notices/concat-map@0.0.1-LICENSE.txt +18 -0
  340. package/third-party-notices/core-util-is@1.0.3-LICENSE.txt +19 -0
  341. package/third-party-notices/crc-32@1.2.2-LICENSE.txt +201 -0
  342. package/third-party-notices/crc32-stream@4.0.3-LICENSE.txt +22 -0
  343. package/third-party-notices/csstype@3.2.3-LICENSE.txt +19 -0
  344. package/third-party-notices/data-view-buffer@1.0.2-LICENSE.txt +21 -0
  345. package/third-party-notices/data-view-byte-length@1.0.2-LICENSE.txt +21 -0
  346. package/third-party-notices/data-view-byte-offset@1.0.1-LICENSE.txt +21 -0
  347. package/third-party-notices/dayjs@1.11.23-LICENSE.txt +21 -0
  348. package/third-party-notices/decimal.js@10.6.0-LICENCE.md.txt +23 -0
  349. package/third-party-notices/define-data-property@1.1.4-LICENSE.txt +21 -0
  350. package/third-party-notices/define-properties@1.2.1-LICENSE.txt +21 -0
  351. package/third-party-notices/dequal@2.0.3-license.txt +21 -0
  352. package/third-party-notices/detect-node-es@1.1.0-LICENSE.txt +21 -0
  353. package/third-party-notices/devlop@1.1.0-license.txt +22 -0
  354. package/third-party-notices/dunder-proto@1.0.1-LICENSE.txt +21 -0
  355. package/third-party-notices/duplexer2@0.1.4-LICENSE.md.txt +26 -0
  356. package/third-party-notices/end-of-stream@1.4.5-LICENSE.txt +21 -0
  357. package/third-party-notices/es-abstract-get@1.0.0-LICENSE.txt +21 -0
  358. package/third-party-notices/es-abstract@1.24.2-LICENSE.txt +21 -0
  359. package/third-party-notices/es-define-property@1.0.1-LICENSE.txt +21 -0
  360. package/third-party-notices/es-errors@1.3.0-LICENSE.txt +21 -0
  361. package/third-party-notices/es-object-atoms@1.1.2-LICENSE.txt +21 -0
  362. package/third-party-notices/es-set-tostringtag@2.1.0-LICENSE.txt +21 -0
  363. package/third-party-notices/es-to-primitive@1.3.4-LICENSE.txt +22 -0
  364. package/third-party-notices/escalade@3.2.0-license.txt +9 -0
  365. package/third-party-notices/exceljs@4.4.0-LICENSE.txt +22 -0
  366. package/third-party-notices/fast-csv@4.3.6-LICENSE.txt +21 -0
  367. package/third-party-notices/fast-diff@1.3.0-LICENSE.txt +201 -0
  368. package/third-party-notices/for-each@0.3.5-LICENSE.txt +22 -0
  369. package/third-party-notices/fs-constants@1.0.0-LICENSE.txt +21 -0
  370. package/third-party-notices/fs.realpath@1.0.0-LICENSE.txt +43 -0
  371. package/third-party-notices/fstream@1.0.12-LICENSE.txt +15 -0
  372. package/third-party-notices/function-bind@1.1.2-LICENSE.txt +20 -0
  373. package/third-party-notices/function.prototype.name@1.2.0-LICENSE.txt +21 -0
  374. package/third-party-notices/functions-have-names@1.2.3-LICENSE.txt +21 -0
  375. package/third-party-notices/generator-function@2.0.1-LICENSE.md.txt +7 -0
  376. package/third-party-notices/get-caller-file@2.0.5-LICENSE.md.txt +6 -0
  377. package/third-party-notices/get-intrinsic@1.3.0-LICENSE.txt +21 -0
  378. package/third-party-notices/get-nonce@1.0.1-LICENSE.txt +21 -0
  379. package/third-party-notices/get-proto@1.0.1-LICENSE.txt +21 -0
  380. package/third-party-notices/get-symbol-description@1.1.0-LICENSE.txt +21 -0
  381. package/third-party-notices/glob@7.2.3-LICENSE.txt +21 -0
  382. package/third-party-notices/globalthis@1.0.4-LICENSE.txt +21 -0
  383. package/third-party-notices/gopd@1.2.0-LICENSE.txt +21 -0
  384. package/third-party-notices/graceful-fs@4.2.11-LICENSE.txt +15 -0
  385. package/third-party-notices/has-bigints@1.1.0-LICENSE.txt +21 -0
  386. package/third-party-notices/has-property-descriptors@1.0.2-LICENSE.txt +21 -0
  387. package/third-party-notices/has-proto@1.2.0-LICENSE.txt +21 -0
  388. package/third-party-notices/has-symbols@1.1.0-LICENSE.txt +21 -0
  389. package/third-party-notices/has-tostringtag@1.0.2-LICENSE.txt +21 -0
  390. package/third-party-notices/hasown@2.0.4-LICENSE.txt +21 -0
  391. package/third-party-notices/highlight.js@11.11.2-LICENSE.txt +29 -0
  392. package/third-party-notices/ieee754@1.2.1-LICENSE.txt +11 -0
  393. package/third-party-notices/immediate@3.0.6-LICENSE.txt.txt +20 -0
  394. package/third-party-notices/inflight@1.0.6-LICENSE.txt +15 -0
  395. package/third-party-notices/inherits@2.0.4-LICENSE.txt +16 -0
  396. package/third-party-notices/internal-slot@1.1.0-LICENSE.txt +21 -0
  397. package/third-party-notices/is-array-buffer@3.0.5-LICENSE.txt +21 -0
  398. package/third-party-notices/is-async-function@2.1.1-LICENSE.txt +20 -0
  399. package/third-party-notices/is-bigint@1.1.0-LICENSE.txt +21 -0
  400. package/third-party-notices/is-boolean-object@1.2.2-LICENSE.txt +22 -0
  401. package/third-party-notices/is-callable@1.2.7-LICENSE.txt +22 -0
  402. package/third-party-notices/is-data-view@1.0.2-LICENSE.txt +21 -0
  403. package/third-party-notices/is-date-object@1.1.0-LICENSE.txt +22 -0
  404. package/third-party-notices/is-document.all@1.0.0-LICENSE.txt +21 -0
  405. package/third-party-notices/is-finalizationregistry@1.1.1-LICENSE.txt +21 -0
  406. package/third-party-notices/is-fullwidth-code-point@3.0.0-license.txt +9 -0
  407. package/third-party-notices/is-generator-function@1.1.2-LICENSE.txt +20 -0
  408. package/third-party-notices/is-map@2.0.3-LICENSE.txt +21 -0
  409. package/third-party-notices/is-negative-zero@2.0.3-LICENSE.txt +20 -0
  410. package/third-party-notices/is-number-object@1.1.1-LICENSE.txt +22 -0
  411. package/third-party-notices/is-regex@1.2.1-LICENSE.txt +20 -0
  412. package/third-party-notices/is-set@2.0.3-LICENSE.txt +21 -0
  413. package/third-party-notices/is-shared-array-buffer@1.0.4-LICENSE.txt +21 -0
  414. package/third-party-notices/is-string@1.1.1-LICENSE.txt +22 -0
  415. package/third-party-notices/is-symbol@1.1.1-LICENSE.txt +22 -0
  416. package/third-party-notices/is-typed-array@1.1.15-LICENSE.txt +22 -0
  417. package/third-party-notices/is-weakmap@2.0.2-LICENSE.txt +21 -0
  418. package/third-party-notices/is-weakref@1.1.1-LICENSE.txt +21 -0
  419. package/third-party-notices/is-weakset@2.0.4-LICENSE.txt +21 -0
  420. package/third-party-notices/isarray@2.0.5-LICENSE.txt +21 -0
  421. package/third-party-notices/isomorphic.js@0.2.5-LICENSE.txt +21 -0
  422. package/third-party-notices/jszip@3.10.2-LICENSE.markdown.txt +651 -0
  423. package/third-party-notices/katex@0.18.9-LICENSE.txt +21 -0
  424. package/third-party-notices/kdbush@4.1.0-LICENSE.txt +15 -0
  425. package/third-party-notices/lazystream@1.0.1-LICENSE.txt +23 -0
  426. package/third-party-notices/lib0@0.2.119-LICENSE.txt +21 -0
  427. package/third-party-notices/lie@3.3.0-license.md.txt +7 -0
  428. package/third-party-notices/linkifyjs@4.3.3-LICENSE.txt +19 -0
  429. package/third-party-notices/listenercount@1.0.1-LICENSE.md.txt +5 -0
  430. package/third-party-notices/lodash-es@4.18.1-LICENSE.txt +47 -0
  431. package/third-party-notices/lodash.camelcase@4.3.0-LICENSE.txt +47 -0
  432. package/third-party-notices/lodash.defaults@4.2.0-LICENSE.txt +47 -0
  433. package/third-party-notices/lodash.difference@4.5.0-LICENSE.txt +47 -0
  434. package/third-party-notices/lodash.escaperegexp@4.1.2-LICENSE.txt +47 -0
  435. package/third-party-notices/lodash.flatten@4.4.0-LICENSE.txt +47 -0
  436. package/third-party-notices/lodash.groupby@4.6.0-LICENSE.txt +47 -0
  437. package/third-party-notices/lodash.isboolean@3.0.3-LICENSE.txt +22 -0
  438. package/third-party-notices/lodash.isequal@4.5.0-LICENSE.txt +47 -0
  439. package/third-party-notices/lodash.isfunction@3.0.9-LICENSE.txt +47 -0
  440. package/third-party-notices/lodash.isnil@4.0.0-LICENSE.txt +22 -0
  441. package/third-party-notices/lodash.isplainobject@4.0.6-LICENSE.txt +47 -0
  442. package/third-party-notices/lodash.isundefined@3.0.1-LICENSE.txt.txt +22 -0
  443. package/third-party-notices/lodash.union@4.6.0-LICENSE.txt +47 -0
  444. package/third-party-notices/lodash.uniq@4.5.0-LICENSE.txt +47 -0
  445. package/third-party-notices/long@5.3.2-LICENSE.txt +202 -0
  446. package/third-party-notices/lowlight@3.3.0-license.txt +22 -0
  447. package/third-party-notices/math-intrinsics@1.1.0-LICENSE.txt +21 -0
  448. package/third-party-notices/minimatch@3.1.5-LICENSE.txt +15 -0
  449. package/third-party-notices/minimatch@5.1.9-LICENSE.txt +15 -0
  450. package/third-party-notices/minimist@1.2.8-LICENSE.txt +18 -0
  451. package/third-party-notices/mkdirp@0.5.6-LICENSE.txt +21 -0
  452. package/third-party-notices/n-gram@2.0.2-license.txt +22 -0
  453. package/third-party-notices/normalize-path@3.0.0-LICENSE.txt +21 -0
  454. package/third-party-notices/numfmt@4.0.1-LICENSE.txt +19 -0
  455. package/third-party-notices/object-inspect@1.13.4-LICENSE.txt +21 -0
  456. package/third-party-notices/object-keys@1.1.1-LICENSE.txt +21 -0
  457. package/third-party-notices/object.assign@4.1.7-LICENSE.txt +21 -0
  458. package/third-party-notices/once@1.4.0-LICENSE.txt +15 -0
  459. package/third-party-notices/orderedmap@2.1.1-LICENSE.txt +19 -0
  460. package/third-party-notices/own-keys@1.0.2-LICENSE.txt +21 -0
  461. package/third-party-notices/pako@1.0.11-LICENSE.txt +21 -0
  462. package/third-party-notices/path-is-absolute@1.0.1-license.txt +21 -0
  463. package/third-party-notices/possible-typed-array-names@1.1.0-LICENSE.txt +21 -0
  464. package/third-party-notices/process-nextick-args@2.0.1-license.md.txt +19 -0
  465. package/third-party-notices/prosemirror-changeset@2.4.4-LICENSE.txt +19 -0
  466. package/third-party-notices/prosemirror-commands@1.7.2-LICENSE.txt +19 -0
  467. package/third-party-notices/prosemirror-dropcursor@1.8.4-LICENSE.txt +19 -0
  468. package/third-party-notices/prosemirror-gapcursor@1.4.1-LICENSE.txt +19 -0
  469. package/third-party-notices/prosemirror-history@1.5.1-LICENSE.txt +19 -0
  470. package/third-party-notices/prosemirror-inputrules@1.5.1-LICENSE.txt +19 -0
  471. package/third-party-notices/prosemirror-keymap@1.2.3-LICENSE.txt +19 -0
  472. package/third-party-notices/prosemirror-model@1.25.12-LICENSE.txt +19 -0
  473. package/third-party-notices/prosemirror-schema-list@1.5.1-LICENSE.txt +19 -0
  474. package/third-party-notices/prosemirror-state@1.4.4-LICENSE.txt +19 -0
  475. package/third-party-notices/prosemirror-tables@1.8.5-LICENSE.txt +19 -0
  476. package/third-party-notices/prosemirror-transform@1.12.2-LICENSE.txt +19 -0
  477. package/third-party-notices/prosemirror-view@1.42.6-LICENSE.txt +19 -0
  478. package/third-party-notices/protobufjs@7.6.6-LICENSE.txt +39 -0
  479. package/third-party-notices/quickselect@3.0.0-LICENSE.txt +15 -0
  480. package/third-party-notices/rbush@4.0.1-LICENSE.txt +21 -0
  481. package/third-party-notices/react-dom@19.3.1-LICENSE.txt +21 -0
  482. package/third-party-notices/react-remove-scroll@2.7.2-LICENSE.txt +21 -0
  483. package/third-party-notices/react-style-singleton@2.2.3-LICENSE.txt +21 -0
  484. package/third-party-notices/react@19.3.1-LICENSE.txt +21 -0
  485. package/third-party-notices/readable-stream@2.3.8-LICENSE.txt +47 -0
  486. package/third-party-notices/readable-stream@3.6.2-LICENSE.txt +47 -0
  487. package/third-party-notices/readdir-glob@1.1.3-LICENSE.txt +201 -0
  488. package/third-party-notices/reflect.getprototypeof@1.0.10-LICENSE.txt +21 -0
  489. package/third-party-notices/regexp.prototype.flags@1.5.4-LICENSE.txt +22 -0
  490. package/third-party-notices/require-directory@2.1.1-LICENSE.txt +22 -0
  491. package/third-party-notices/rimraf@2.7.1-LICENSE.txt +15 -0
  492. package/third-party-notices/rope-sequence@1.3.4-LICENSE.txt +19 -0
  493. package/third-party-notices/rxjs@7.8.2-LICENSE.txt.txt +202 -0
  494. package/third-party-notices/safe-array-concat@1.1.4-LICENSE.txt +21 -0
  495. package/third-party-notices/safe-buffer@5.1.2-LICENSE.txt +21 -0
  496. package/third-party-notices/safe-buffer@5.2.1-LICENSE.txt +21 -0
  497. package/third-party-notices/safe-push-apply@1.0.0-LICENSE.txt +21 -0
  498. package/third-party-notices/safe-regex-test@1.1.0-LICENSE.txt +21 -0
  499. package/third-party-notices/scheduler@0.28.0-LICENSE.txt +21 -0
  500. package/third-party-notices/set-function-length@1.2.2-LICENSE.txt +21 -0
  501. package/third-party-notices/set-function-name@2.0.2-LICENSE.txt +21 -0
  502. package/third-party-notices/set-proto@1.0.0-LICENSE.txt +21 -0
  503. package/third-party-notices/setimmediate@1.0.5-LICENSE.txt.txt +20 -0
  504. package/third-party-notices/side-channel-list@1.0.1-LICENSE.txt +21 -0
  505. package/third-party-notices/side-channel-map@1.0.1-LICENSE.txt +21 -0
  506. package/third-party-notices/side-channel-weakmap@1.0.2-LICENSE.txt +21 -0
  507. package/third-party-notices/side-channel@1.1.1-LICENSE.txt +21 -0
  508. package/third-party-notices/sonner@2.0.8-LICENSE.md.txt +21 -0
  509. package/third-party-notices/stop-iteration-iterator@1.1.0-LICENSE.txt +21 -0
  510. package/third-party-notices/string-width@4.2.3-license.txt +9 -0
  511. package/third-party-notices/string.prototype.trim@1.2.11-LICENSE.txt +21 -0
  512. package/third-party-notices/string.prototype.trimend@1.0.10-LICENSE.txt +21 -0
  513. package/third-party-notices/string.prototype.trimstart@1.0.8-LICENSE.txt +21 -0
  514. package/third-party-notices/string_decoder@1.1.1-LICENSE.txt +48 -0
  515. package/third-party-notices/string_decoder@1.3.0-LICENSE.txt +48 -0
  516. package/third-party-notices/strip-ansi@6.0.1-license.txt +9 -0
  517. package/third-party-notices/tar-stream@2.2.0-LICENSE.txt +21 -0
  518. package/third-party-notices/tiny-pinyin@1.3.2-LICENSE.txt +21 -0
  519. package/third-party-notices/tmp@0.2.7-LICENSE.txt +21 -0
  520. package/third-party-notices/traverse@0.3.10-LICENSE.txt +21 -0
  521. package/third-party-notices/trigram-utils@2.0.1-license.txt +22 -0
  522. package/third-party-notices/tslib@2.8.1-LICENSE.txt.txt +12 -0
  523. package/third-party-notices/typed-array-buffer@1.0.3-LICENSE.txt +21 -0
  524. package/third-party-notices/typed-array-byte-length@1.0.3-LICENSE.txt +21 -0
  525. package/third-party-notices/typed-array-byte-offset@1.0.5-LICENSE.txt +21 -0
  526. package/third-party-notices/typed-array-length@1.0.8-LICENSE.txt +21 -0
  527. package/third-party-notices/typedarray.prototype.slice@1.0.6-LICENSE.txt +21 -0
  528. package/third-party-notices/unbox-primitive@1.1.0-LICENSE.txt +21 -0
  529. package/third-party-notices/undici-types@8.9.0-LICENSE.txt +21 -0
  530. package/third-party-notices/unzipper@0.10.14-LICENSE.txt +25 -0
  531. package/third-party-notices/use-callback-ref@1.3.3-LICENSE.txt +21 -0
  532. package/third-party-notices/use-sidecar@1.1.3-LICENSE.txt +21 -0
  533. package/third-party-notices/util-deprecate@1.0.2-LICENSE.txt +24 -0
  534. package/third-party-notices/uuid@8.3.2-LICENSE.md.txt +9 -0
  535. package/third-party-notices/w3c-keyname@2.2.8-LICENSE.txt +19 -0
  536. package/third-party-notices/which-boxed-primitive@1.1.1-LICENSE.txt +21 -0
  537. package/third-party-notices/which-builtin-type@1.2.1-LICENSE.txt +21 -0
  538. package/third-party-notices/which-collection@1.0.2-LICENSE.txt +21 -0
  539. package/third-party-notices/which-typed-array@1.1.24-LICENSE.txt +22 -0
  540. package/third-party-notices/wrap-ansi@7.0.0-license.txt +9 -0
  541. package/third-party-notices/wrappy@1.0.2-LICENSE.txt +15 -0
  542. package/third-party-notices/xmlchars@2.2.0-LICENSE.txt +18 -0
  543. package/third-party-notices/y-protocols@1.0.7-LICENSE.txt +21 -0
  544. package/third-party-notices/y18n@5.0.8-LICENSE.txt +13 -0
  545. package/third-party-notices/yargs-parser@21.1.1-LICENSE.txt.txt +14 -0
  546. package/third-party-notices/yargs@17.7.3-LICENSE.txt +21 -0
  547. package/third-party-notices/yjs@13.6.33-LICENSE.txt +23 -0
  548. package/third-party-notices/zip-stream@4.1.1-LICENSE.txt +22 -0
@@ -0,0 +1,621 @@
1
+ /* 编辑态图片:src 由 node view 按 attachmentId 解析而来(正文不存存储地址)。
2
+ 给个最小样式,避免加载中/缺失时排版跳动。 */
3
+ .ywiki-prose img.ywiki-image {
4
+ max-width: 100%;
5
+ border-radius: var(--content-media-radius);
6
+ display: block;
7
+ }
8
+ /**
9
+ * 图片容器(node view)的**三层结构**:
10
+ * frame(块级、占满整行)→ 水平对齐(flex justify-content)
11
+ * inner(贴合图片尺寸)→ 选中框 / 四角手柄 / 块选中高亮
12
+ * img
13
+ *
14
+ * 选中框必须画在 **inner** 上(用户反馈"编辑图片大小时外框没有跟随图片
15
+ * 大小变化"):frame 占满整行,蓝框会横跨整行、右边空出一大片,看起来
16
+ * 像框没跟着图片走。
17
+ */
18
+ .ywiki-prose .ywiki-image-frame {
19
+ display: flex;
20
+ justify-content: center;
21
+ /* 图注在图片下方:纵向排列,图片仍按 justify-content 水平对齐 */
22
+ flex-direction: column;
23
+ align-items: center;
24
+ }
25
+ /* 有图注时,图片与图注各自成行;图片的水平对齐交给内层 */
26
+ .ywiki-prose .ywiki-image-frame.has-caption > .ywiki-image-inner { align-self: center; }
27
+ /* 图注:一行灰色小字,超出省略(完整内容见 title) */
28
+ .ywiki-prose .ywiki-image-caption {
29
+ max-width: 100%;
30
+ margin-top: 6px;
31
+ padding: 0 2px;
32
+ color: var(--color-text-muted);
33
+ font-size: 12px;
34
+ line-height: 1.5;
35
+ text-align: center;
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap;
39
+ user-select: text;
40
+ }
41
+ .ywiki-prose .ywiki-image-gallery {
42
+ display: flex;
43
+ flex-wrap: wrap;
44
+ align-items: flex-start;
45
+ gap: 8px;
46
+ width: 100%;
47
+ }
48
+ /**
49
+ * 图片行**整行选中**:给整行加一圈描边。
50
+ *
51
+ * 只给每张图铺底色是不够的——图片之间的间隙、行首行尾的留白都没有任何
52
+ * 选中信号,整行看起来和未选中几乎一样(用户实测反馈:"一行全选中也要有
53
+ * 选中效果")。
54
+ *
55
+ * 不能用普通块的 `::before` 蓝带:图片行是 flex 容器,绝对定位的伪元素
56
+ * 会参与 flex 布局计算,外扩的 6px 也容易被行高吃掉。改为与其它自带外观
57
+ * 的块一致的实色描边;圆角取 6px,与表格的选中框对齐。
58
+ */
59
+ .ywiki-prose .ywiki-image-gallery.is-block-selected {
60
+ outline: 2px solid var(--color-accent);
61
+ outline-offset: 2px;
62
+ border-radius: 6px;
63
+ }
64
+ /**
65
+ * 单张图片(独立图片块)被**整块选中**:给图片本身加一圈描边。
66
+ *
67
+ * 图片块没有自带外观,走的是"普通块铺蓝带"分支,结果只有一条半透明底色
68
+ * 与图片上的淡色覆盖,**没有边框**——与表格、高亮块、文件卡片的选中观感
69
+ * 不一致(用户实测反馈:"只有一张图的选中没有边框")。
70
+ *
71
+ * 只作用于独立图片(图片行内的子图不带 `is-block-selected`,整行选中时
72
+ * 描边画在行容器上),因此不会与图片行的整行框重叠。
73
+ */
74
+ .ywiki-prose .ywiki-image-frame.is-block-selected .ywiki-image-inner {
75
+ outline: 2px solid var(--color-accent);
76
+ outline-offset: 2px;
77
+ border-radius: 6px;
78
+ }
79
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame.is-in-gallery .ywiki-image-inner {
80
+ /* 图片行里不显示四角缩放手柄(等高排布,单图改宽会破坏对齐)。 */
81
+ cursor: default;
82
+ }
83
+ .ywiki-prose .ywiki-image-gallery {
84
+ position: relative;
85
+ }
86
+ /* 图片行内的框选矩形(挂在 portal 上,视口坐标定位) */
87
+ .ywiki-gallery-marquee {
88
+ position: fixed;
89
+ z-index: 69;
90
+ border: 1px solid color-mix(in srgb, var(--color-accent) 70%, transparent);
91
+ background: color-mix(in srgb, var(--color-accent) 12%, transparent);
92
+ border-radius: 2px;
93
+ pointer-events: none;
94
+ }
95
+ /**
96
+ * 图片上的选中覆盖层:**只有一个 `::after`,强度固定 16%**。
97
+ *
98
+ * ## 为什么必须合并到一个选择器(用户实测:"为什么还有蓝色区域")
99
+ *
100
+ * 这里曾经有两处独立规则写同一个 `::after`:
101
+ * - 框选命中(`.is-multi-picked`)16%;
102
+ * - 整块选中(`.ywiki-image-frame.is-block-selected`)18%。
103
+ *
104
+ * 两者可以同时命中(框选后松手会转成块选区),于是同一个伪元素被两条规则
105
+ * 分别赋值——后者胜出,颜色却与整页带(16%)不一致,图上出现一块更深的矩形。
106
+ * 更早还叠过一层 frame 的 16% 背景,合计接近 50%。
107
+ *
108
+ * 现在统一为一条规则、一个强度:图片区域与非图片区域的选中底色完全相同。
109
+ *
110
+ * `outline` 仍按状态区分(框选中是实线、块选中不描边)——那表达的是"这是
111
+ * 框选出来的"与"这块在选区里"的差别,不影响底色。
112
+ */
113
+ .ywiki-prose .ywiki-image-frame.is-multi-picked .ywiki-image-inner,
114
+ .ywiki-prose .ywiki-image-frame.is-block-selected-image .ywiki-image-inner,
115
+ .wendang-portal .ywiki-image-frame.is-multi-picked .ywiki-image-inner {
116
+ /**
117
+ * 圆角与表格/其他块的选中描边统一为 6px(用户反馈:"图片选中的圆角
118
+ * 和表格选中的差不多,现在有点不一致")。早先是 3px/4px,混在一起时
119
+ * 图片的框明显更方。
120
+ */
121
+ outline: 2px solid var(--color-accent);
122
+ outline-offset: 2px;
123
+ border-radius: 6px;
124
+ }
125
+ .ywiki-prose .is-block-selected .ywiki-image-inner::after,
126
+ .ywiki-prose .ywiki-image-frame.is-multi-picked .ywiki-image-inner::after,
127
+ .ywiki-prose .ywiki-image-frame.is-block-selected-image .ywiki-image-inner::after,
128
+ .wendang-portal .ywiki-image-frame.is-multi-picked .ywiki-image-inner::after {
129
+ content: '';
130
+ position: absolute;
131
+ inset: 0;
132
+ border-radius: var(--content-media-radius, 4px);
133
+ background: color-mix(in srgb, var(--color-accent) 16%, transparent);
134
+ pointer-events: none;
135
+ }
136
+ /**
137
+ * 跨图片拖拽:**落点提示**。
138
+ *
139
+ * ## 从"虚线框"改为"柔和的整体高亮"(用户反馈:虚线框看起来比较生硬)
140
+ *
141
+ * 原先落在目标图上画 2px dashed outline。虚线在照片这类复杂底图上会碎成
142
+ * 一段段,而且"框住整张图"的观感太抢眼——它表达的是"我要插到这里",不是
143
+ * "这张图被选中了",用户的原话是"看怎么处理更好看点"。
144
+ *
145
+ * 现在改成两层柔和的信号:
146
+ * 1. 图片本身叠一层淡强调色(和块选中同一套语言,`::after` 已存在,复用);
147
+ * 2. 外加一圈 2px 实线 + 3px 留白的描边,颜色是强调色但带透明度。
148
+ *
149
+ * 不用虚线、不用发光:拖拽是高频操作,提示需要"看得见但不吵"。
150
+ */
151
+ .ywiki-prose .ywiki-image-frame.is-image-drop-target .ywiki-image-inner {
152
+ outline: 2px solid color-mix(in srgb, var(--color-accent) 70%, transparent);
153
+ outline-offset: 3px;
154
+ border-radius: var(--content-media-radius, 6px);
155
+ }
156
+ /* 落点图上再叠一层淡色,明确"松手就并到这里" */
157
+ .ywiki-prose .ywiki-image-frame.is-image-drop-target .ywiki-image-inner::after {
158
+ content: '';
159
+ position: absolute;
160
+ inset: 0;
161
+ border-radius: var(--content-media-radius, 6px);
162
+ background: color-mix(in srgb, var(--color-accent) 14%, transparent);
163
+ pointer-events: none;
164
+ }
165
+
166
+ /**
167
+ * 插入指示线:一条**细长的圆头光带**,插在将要落入的位置。
168
+ *
169
+ * 几何与颜色都由脚本内联(挂在 portal / body 上取不到主题变量),这里只给
170
+ * 形状与层级。圆头 + 柔和外发光让它看起来像"一根发光的针",比纯色方块轻。
171
+ */
172
+ .ywiki-image-drop-line,
173
+ .ywiki-gallery-drop-line {
174
+ position: fixed;
175
+ border-radius: 999px;
176
+ pointer-events: none;
177
+ /* 必须高于图片行内容,否则会被图片盖住、看起来"拖拽没有反馈" */
178
+ z-index: 70;
179
+ }
180
+ .ywiki-image-drop-line { z-index: 60; }
181
+ /**
182
+ * 指示线两端的小圆点:把"针"的两端收圆,视觉上更像刻度而不是一条色块。
183
+ * 用伪元素而不是额外 DOM,避免拖拽期间频繁创建节点。
184
+ */
185
+ .ywiki-image-drop-line::before,
186
+ .ywiki-image-drop-line::after,
187
+ .ywiki-gallery-drop-line::before,
188
+ .ywiki-gallery-drop-line::after {
189
+ content: '';
190
+ position: absolute;
191
+ left: 50%;
192
+ width: 7px;
193
+ height: 7px;
194
+ margin-left: -3.5px;
195
+ border-radius: 50%;
196
+ background: inherit;
197
+ }
198
+ .ywiki-image-drop-line::before,
199
+ .ywiki-gallery-drop-line::before { top: -3px; }
200
+ .ywiki-image-drop-line::after,
201
+ .ywiki-gallery-drop-line::after { bottom: -3px; }
202
+ .wendang-portal .ywiki-gallery-drop-line,
203
+ .wendang-portal .ywiki-image-drop-line { position: fixed; }
204
+ .ywiki-prose .ywiki-image-frame.is-gallery-dragging {
205
+ opacity: 0.55;
206
+ }
207
+ /**
208
+ * 图片行(飞书口径):**按比例铺满整行**,高度由比例自然产生。
209
+ *
210
+ * 为什么不用固定行高:固定行高在图片少时右侧留一大片空白(实测两图并排只占
211
+ * 一半宽度)。飞书改成「各列按 比例/比例和 分宽度」——列宽加起来正好铺满,
212
+ * 高度 = 可用宽 / 比例和,因此同行几乎等高且无空白。
213
+ *
214
+ * `--ywiki-image-ratio` 由 node view 按原图宽高比写入,`flex-basis` 用比例
215
+ * 作为权重,`flex-grow` 让它们把剩余空间按权重分掉。
216
+ */
217
+ .ywiki-prose .ywiki-image-gallery {
218
+ /* 12px 间距与飞书的 column-gap 实测一致 */
219
+ gap: 12px;
220
+ align-items: flex-start;
221
+ }
222
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame {
223
+ flex: 1 1 0;
224
+ /* 基础宽度置零,完全由 flex-grow 按比例分配,避免比例小的图先占位 */
225
+ min-width: 0;
226
+ width: auto;
227
+ height: auto;
228
+ max-width: none;
229
+ justify-content: flex-start;
230
+ }
231
+ /* 分配权重 = 原始比例 × 用户拖角设定的相对缩放(`--ywiki-image-weight`) */
232
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame {
233
+ flex-grow: calc(var(--ywiki-image-ratio, 1) * var(--ywiki-image-weight, 1));
234
+ }
235
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame .ywiki-image-inner {
236
+ width: 100%;
237
+ max-width: none;
238
+ }
239
+ /**
240
+ * 图库内图片高度由比例与列宽共同决定:
241
+ * `width:100%` + `aspect-ratio` 让高度自动算出来,不用固定行高。
242
+ * 没有 aspect-ratio(历史图片)时退回 4:3,等补算比例后再自动校正。
243
+ */
244
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame img.ywiki-image {
245
+ width: 100%;
246
+ height: auto;
247
+ max-width: none;
248
+ aspect-ratio: var(--ywiki-image-ratio, 1.3333);
249
+ object-fit: contain;
250
+ border-radius: var(--content-media-radius);
251
+ }
252
+ /**
253
+ * 图片**加载中**:渐变沿边框流动的指示(与阅读端同一口径)。
254
+ *
255
+ * 不再用"整块灰底 + 微光"——静态灰块在浅色页面上看不出在加载,更像"图丢了"。
256
+ * 现在是一条沿圆角绕圈的渐变,像贪吃蛇一样顺着边框跑,图片区域本身保持透明。
257
+ *
258
+ * 实现同阅读端:conic-gradient + `mask-composite: exclude` 挖空中间,只留 2px
259
+ * 边框;旋转靠 `@property` 注册的角度变量插值(定义在 content-style.css,
260
+ * 该文件也被编辑器引入)。加载完成后 `data-image-loading` 移除,遮罩随之消失。
261
+ */
262
+ .ywiki-prose .ywiki-image-frame img.ywiki-image[data-image-loading] {
263
+ box-sizing: border-box;
264
+ padding: 3px;
265
+ border-radius: var(--content-media-radius);
266
+ background-image: conic-gradient(
267
+ from var(--ywiki-image-flow-angle),
268
+ color-mix(in srgb, var(--color-accent) 14%, var(--color-surface-subtle)) 0turn 55%,
269
+ color-mix(in srgb, var(--color-accent) 55%, transparent) 78%,
270
+ var(--color-accent) 92%,
271
+ color-mix(in srgb, var(--color-accent) 14%, var(--color-surface-subtle)) 100%
272
+ );
273
+ -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
274
+ -webkit-mask-clip: content-box, border-box;
275
+ -webkit-mask-composite: xor;
276
+ mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
277
+ mask-clip: content-box, border-box;
278
+ mask-composite: exclude;
279
+ animation: ywiki-image-flow 1.4s linear infinite;
280
+ /* 独立图片没有 aspect-ratio 撑高,需要最小高度才看得见框 */
281
+ min-height: 120px;
282
+ }
283
+ /* 图片行内的高度由 aspect-ratio 与列宽决定,不叠加最小高度(否则整行被撑高) */
284
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame img.ywiki-image[data-image-loading] {
285
+ min-height: 0;
286
+ }
287
+ /**
288
+ * 加载失败:淡底 + 细实线边框,**不流动**。
289
+ *
290
+ * "在转 = 还在取 / 静止 = 取不到",靠动效区分,不需要图标或文字。
291
+ * 不用虚线:缩略图尺寸下虚线会碎成一段段,看起来像边框画错了。
292
+ */
293
+ .ywiki-prose .ywiki-image-frame img.ywiki-image[data-image-error] {
294
+ box-sizing: border-box;
295
+ min-height: 72px;
296
+ background-color: color-mix(in srgb, var(--color-surface-subtle) 70%, var(--color-border));
297
+ border-radius: var(--content-media-radius);
298
+ outline: 1px solid color-mix(in srgb, var(--color-border-strong) 55%, transparent);
299
+ outline-offset: -1px;
300
+ }
301
+ .ywiki-prose .ywiki-image-gallery > .ywiki-image-frame img.ywiki-image[data-image-error] {
302
+ min-height: 0;
303
+ }
304
+ @media (prefers-reduced-motion: reduce) {
305
+ .ywiki-prose .ywiki-image-frame img.ywiki-image[data-image-loading] {
306
+ animation: none;
307
+ }
308
+ }
309
+
310
+ /* 显式缩放过(data-sized)的图默认靠左:缩放锚点在左缘,拖动位置稳定 */
311
+ .ywiki-prose .ywiki-image-frame[data-sized] {
312
+ justify-content: flex-start;
313
+ }
314
+ /* 显式对齐(图片工具条的左/中/右)优先于上面的默认规则 */
315
+ .ywiki-prose .ywiki-image-frame[data-align='left'] { justify-content: flex-start; }
316
+ .ywiki-prose .ywiki-image-frame[data-align='center'] { justify-content: center; }
317
+ .ywiki-prose .ywiki-image-frame[data-align='right'] { justify-content: flex-end; }
318
+
319
+ /* inner 贴合图片:选中框/手柄相对它定位,才随图片尺寸变化 */
320
+ .ywiki-prose .ywiki-image-inner {
321
+ position: relative;
322
+ display: inline-block;
323
+ max-width: 100%;
324
+ line-height: 0;
325
+ }
326
+ /* 缩放期间禁止选中文本:跟手拖动时若触发文字选区会打断手感 */
327
+ .ywiki-prose .ywiki-image-frame.is-resizing {
328
+ user-select: none;
329
+ }
330
+
331
+ /**
332
+ * 选中态(对齐飞书截图):蓝框 + 四角圆点手柄,拖动等比缩放。
333
+ * 手柄只在"用户点过这张图"时显示(见 `.img-pick-active` 门控说明),
334
+ * 未选中时 display:none,既不拦截点击也不产生视觉噪声。
335
+ */
336
+ /**
337
+ * 四角手柄的尺寸与观感对齐飞书(实测飞书是 20×20 的命中区)。
338
+ *
339
+ * 早前是 10px 的小圆点:在 380px 宽的缩略图上几乎看不见,用户反馈
340
+ * "选中了但看不清是不是选中了"(实测飞书明显更醒目)。这里放大到 14px
341
+ * 的实心圆 + 2px 蓝描边 + 白色打底,并给整块加一圈白色外发光,
342
+ * 保证在深色/蓝色图片上也能分辨。
343
+ */
344
+ .ywiki-prose .ywiki-image-handle {
345
+ display: none;
346
+ position: absolute;
347
+ width: 14px;
348
+ height: 14px;
349
+ box-sizing: border-box;
350
+ border: 2px solid var(--color-accent);
351
+ border-radius: 50%;
352
+ background: #fff;
353
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
354
+ z-index: 3;
355
+ }
356
+ /*
357
+ * 选中外观需**同时**满足:node view 处于选中态,且用户点过这张图
358
+ * (`.img-pick-active`)。只看前者会被 PM 的默认选区骗到——文档以图片
359
+ * 开头时一打开页面就是 NodeSelection,不门控就会出现"没点过却带蓝框"。
360
+ */
361
+ .editor-shell.img-pick-active .ywiki-prose .ywiki-image-frame.is-selected .ywiki-image-inner {
362
+ /**
363
+ * 双层描边:内层蓝色实线 + 外层白色细线。
364
+ *
365
+ * 单用蓝色在蓝底图片上几乎看不出边界(用户反馈"看不清有没有选中");
366
+ * 白色隔离带让边框在任何底图上都有对比,与飞书的观感一致。
367
+ *
368
+ * 圆角与表格/其它块的选中框统一为 6px(用户反馈"图片选中的圆角和表格
369
+ * 选中的差不多,现在有点不一致"):早先这里是 4px,图片行的框是 3px,
370
+ * 与表格的 6px 摆在一起时能明显看出差别。
371
+ */
372
+ outline: 2px solid var(--color-accent);
373
+ outline-offset: 3px;
374
+ border-radius: 6px;
375
+ box-shadow: 0 0 0 5px #fff, 0 0 0 6px color-mix(in srgb, var(--color-accent) 28%, transparent);
376
+ }
377
+ .editor-shell.img-pick-active .ywiki-prose .ywiki-image-frame.is-selected .ywiki-image-handle {
378
+ display: block;
379
+ }
380
+ /*
381
+ * 图片行内**显示**四角手柄(对齐飞书):拖角调整该图的相对权重,
382
+ * 整行按新权重重算,因此仍然铺满、仍然等高。
383
+ * 唯一的例外是「整行处于块选区」时——那时拖动语义是移动整行,
384
+ * 由行内重排逻辑让位给整块拖拽(见 image-nodeview 的 mousedown 判定)。
385
+ */
386
+ .editor-shell.img-pick-active .ywiki-prose .ywiki-image-frame.is-selected.is-in-gallery .ywiki-image-handle {
387
+ display: block;
388
+ }
389
+ /* 图片行内仍画选中蓝框,但只包住被选中的那一张(inner 贴合图片) */
390
+ .editor-shell.img-pick-active .ywiki-prose .ywiki-image-frame.is-selected.is-in-gallery .ywiki-image-inner {
391
+ outline: 2px solid var(--color-accent);
392
+ outline-offset: 3px;
393
+ /* 与其它块/图片的选中框同一圆角 */
394
+ border-radius: 6px;
395
+ }
396
+ /* 四个角:手柄中心骑在蓝框上(outline-offset 3px + 手柄半宽 7px = -10px) */
397
+ .ywiki-prose .ywiki-image-handle.handle-nw { left: -10px; top: -10px; cursor: nwse-resize; }
398
+ .ywiki-prose .ywiki-image-handle.handle-ne { right: -10px; top: -10px; cursor: nesw-resize; }
399
+ .ywiki-prose .ywiki-image-handle.handle-sw { left: -10px; bottom: -10px; cursor: nesw-resize; }
400
+ .ywiki-prose .ywiki-image-handle.handle-se { right: -10px; bottom: -10px; cursor: nwse-resize; }
401
+
402
+ /**
403
+ * 已选中的图片:放大镜光标(点击再次 = 打开大图预览)。
404
+ * 拖拽缩放期间必须让位给缩放光标——否则指针拖离手柄、落在图片上时
405
+ * 会突然变成放大镜(用户实测反馈)。
406
+ */
407
+ .editor-shell.img-pick-active .ywiki-prose .ywiki-image-frame.is-selected:not(.is-resizing) img.ywiki-image {
408
+ cursor: zoom-in;
409
+ }
410
+ .ywiki-prose img.ywiki-image[data-image-missing] {
411
+ min-width: 120px;
412
+ min-height: 40px;
413
+ border: 1px dashed var(--color-border-strong);
414
+ background: var(--color-surface-subtle);
415
+ }
416
+
417
+ /**
418
+ * 块级选中:普通块铺蓝底,**自带视觉身份的块只加外圈**。
419
+ *
420
+ * ## 两种画法,按块是否有自己的「脸」来分
421
+ *
422
+ * 飞书的做法(用户提供了对照截图)是一套区分得很清楚的规则:
423
+ *
424
+ * - **普通块**(段落、标题、列表、引用、图片…)——本来没有底色,选中时铺一条
425
+ * 半透明蓝带,一眼能看出"这一段被选中了";
426
+ * - **自带视觉身份的块**(高亮块、表格、代码块)——它们本来就有底色或边框,
427
+ * 再往里铺一层蓝会把内容染色、把表格单元格弄脏。这些块只在**外围加一圈
428
+ * 描边**,表达"这块在选区里",内容配色完全不动。
429
+ *
430
+ * 早先我一度把两类统一成蓝底,结果表格单元格被整片染蓝、高亮块的黄绿底色
431
+ * 也被改掉——用户明确纠正:"像这类(高亮、表格等等)都可以有个外圈,不用蓝色
432
+ * 背景"。
433
+ *
434
+ * ## 宽度只到正文列,不能铺到整页
435
+ *
436
+ * 曾经把带子向两侧溢出到"页面横带"边缘,那是把**可起手区域**和**高亮宽度**
437
+ * 混为一谈了:起手区可以宽(用户在页面空白处按下就能拖选),但高亮必须只覆盖
438
+ * 正文,否则左侧目录、右侧大纲栏也被染蓝(用户原话:"我内容区域在红框区域,
439
+ * 为啥选中后有个这么宽的蓝色背景?不合理啊!")。
440
+ *
441
+ * ## 为什么普通块用伪元素而不是直接改 `background`
442
+ *
443
+ * 直接改背景会与块自身可能存在的底色冲突;伪元素能叠一层半透明,原底色仍透出。
444
+ * 不能用 `z-index: -1`:那会让底色跑到祖先背景之后(`.tiptap` 是
445
+ * `position: relative`),一旦宿主给正文加了底色,高亮就整块消失。
446
+ */
447
+ .ywiki-prose .is-block-selected {
448
+ position: relative;
449
+ border-radius: 6px;
450
+ }
451
+
452
+ /**
453
+ * 普通块:铺半透明蓝带。
454
+ *
455
+ * 排除自带视觉身份的块(见下方外圈分支)——这是两类画法的唯一分界。
456
+ * 用 `[data-block-chrome]` 声明式判断,而不是硬枚举类名:新增块时只在自己的
457
+ * 渲染代码里加属性即可,不必回来改这里(思维导图就曾因为漏改而错误地变成蓝底)。
458
+ */
459
+ .ywiki-prose .is-block-selected:not([data-block-chrome]):not(.doc-callout):not(.tableWrapper):not(.code-block-wrap):not(.ywiki-image-gallery)::before {
460
+ content: '';
461
+ position: absolute;
462
+ /**
463
+ * 四周比块本身**外扩**,让选中色不要紧贴文字(用户反馈"文字选中区域
464
+ * 往外扩一下")。块盒子就是文字行盒,贴着它画会让文字看起来被框死。
465
+ *
466
+ * 纵向外扩量由 `measureBlocksPadding` 按**实测块间距**逐块写入:
467
+ * - 相邻两个都选中:各溢出间隙的一半 → 两块拼成连续一条,且不重叠
468
+ * (间隙实测 6.86px 到 21px 不等,写死一个值必然要么留白缝要么叠出深线);
469
+ * - 开边一侧(首块上方 / 末块下方):用 `SELECT_PAD_Y` 给文字留呼吸空间。
470
+ *
471
+ * 横向用 `SELECT_PAD_X`:再宽就会溢出正文列(用户此前明确反对底色超出版心)。
472
+ * 两侧同时外扩,因此带子比正文列宽 2×6px,仍落在阅读区留白内。
473
+ */
474
+ top: calc(-1 * var(--block-select-pad-top, 5px));
475
+ bottom: calc(-1 * var(--block-select-pad-bottom, 5px));
476
+ left: calc(-1 * var(--block-select-pad-x, 6px));
477
+ right: calc(-1 * var(--block-select-pad-x, 6px));
478
+ background: color-mix(in srgb, var(--color-accent) 16%, transparent);
479
+ /* 6px 圆角:外扩后的矩形边角更明显,需要圆角才不生硬 */
480
+ border-radius: 6px;
481
+ pointer-events: none;
482
+ }
483
+
484
+ /**
485
+ * 自带视觉身份的块:**只加外圈,不铺蓝底**。
486
+ *
487
+ * ## 哪些块算"自带视觉身份"
488
+ *
489
+ * 判据是「它本身已经有可见的边框、底色或独立画布」。这类块再往里铺一层蓝,
490
+ * 会把内容染色或把画布弄脏;只在外围加圈,既表达"在选区里",又不改内容观感:
491
+ *
492
+ * - 高亮块(浅色底 + 边框)
493
+ * - 表格(网格线)
494
+ * - 代码块(深色底)
495
+ * - 思维导图(独立画布;用户实测:"为啥思维导图没有框而是蓝色")
496
+ * - 文件卡片 / 视频嵌入(自带卡片外观)
497
+ * - 分栏(多列结构,铺底色会把两栏之间的空隙也染上)
498
+ *
499
+ * 其余块(段落、标题、列表、引用、图片…)没有自己的外观,走蓝底分支。
500
+ *
501
+ * ## 为什么用 `[data-block-chrome]` 而不是继续堆类名选择器
502
+ *
503
+ * 之前是 `:is(.doc-callout, .tableWrapper, .code-block-wrap)` 硬枚举。每新增
504
+ * 一种块都要改两处(`:not()` 与 `:is()`),漏一处就会退化成"这个块又变蓝了"——
505
+ * 思维导图就是这么漏掉的。改为让节点自己在根元素上声明 `data-block-chrome`,
506
+ * 新增块时只在自己的渲染代码里加一个属性,不必再来碰这里。
507
+ *
508
+ * `outline` 而不是 `border`:border 会参与盒模型,给一个已经撑满正文列宽度的
509
+ * 表格加上 2px 边框会让它溢出或挤压内容;outline 不占布局,`outline-offset`
510
+ * 还能让它落在块的外侧,正好是"外圈"的观感。
511
+ *
512
+ * 用 55% 而非更浅的透明度:高亮块是浅蓝底、代码块是深底、表格有网格线,
513
+ * 太淡的圈在这些底色上都看不清边界。
514
+ */
515
+ .ywiki-prose :is([data-block-chrome], .doc-callout, .tableWrapper, .code-block-wrap).is-block-selected {
516
+ /**
517
+ * 描边圆角跟着**块自己的圆角**走,而不是写死 6px。
518
+ *
519
+ * 各块自带外观的圆角并不统一(高亮块 9px、文件卡片 8px、思维导图 12px),
520
+ * 写死一个值就会出现"框的角比块本身的角更方"的错位观感(用户实测反馈:
521
+ * "思维导图的选中圆角最好和选中带边框的圆角一致")。用变量按块类型覆盖,
522
+ * 默认 6px 与表格一致。
523
+ */
524
+ --block-select-radius: 6px;
525
+ /**
526
+ * 实色而不是 55% 半透明:高亮块自带浅色底与彩色边框,半透明蓝圈叠在
527
+ * 这些底色上几乎看不出来(用户反馈"高亮没有被选中、没有边框")。与图片
528
+ * 选中的描边用同一个强度,所有块的"被选中"一眼可辨且观感一致。
529
+ */
530
+ outline: 2px solid var(--color-accent);
531
+ outline-offset: 2px;
532
+ /* 与铺色分支同一圆角,两种选中画的观感才统一 */
533
+ border-radius: var(--block-select-radius);
534
+ }
535
+ /* 各块按自身外观的圆角覆盖描边圆角(值取自它们各自的 border-radius) */
536
+ .ywiki-prose .doc-callout.is-block-selected { --block-select-radius: 9px; }
537
+ .ywiki-prose .doc-file-attachment.is-block-selected { --block-select-radius: 8px; }
538
+ .ywiki-prose [data-mind-map-node].is-block-selected { --block-select-radius: 12px; }
539
+
540
+ /* 块级拖拽期间:屏蔽浏览器原生的字形级选中高亮。
541
+ 块级选择本质上是一个覆盖整块文字的文本选区(复制/删除需要它),
542
+ 但浏览器会为它画字形级蓝底,与"整块底色"叠在一起很乱。
543
+ 这里只影响绘制,不影响选区模型与复制行为。 */
544
+ .ywiki-prose.is-block-selecting ::selection,
545
+ .ywiki-prose.is-block-selecting *::selection {
546
+ background: transparent;
547
+ color: inherit;
548
+ }
549
+
550
+ /**
551
+ * 拖拽选择框(飞书式的矩形,跟随鼠标)。
552
+ *
553
+ * ## 必须**填充**,不能只描边(用户对比飞书截图后指出)
554
+ *
555
+ * 此前这里刻意只画边框、不铺底色,理由是"填充会盖住高亮块/表格的颜色"。
556
+ * 但飞书的拖拽框本身就是一块**半透明蓝色矩形**,用户一眼就能判断"我现在框住
557
+ * 了哪些内容、范围有多大";只有边框时,框内的内容看起来和框外没区别,
558
+ * 拖动过程中几乎无法判断落点,这正是用户反馈的差异。
559
+ *
560
+ * 用极低的透明度(12%)解决当初的顾虑:底色仍然透得出来,不会把高亮色
561
+ * 染成另一种颜色;框的边界由 1px 实线 + 白描边交代清楚。
562
+ */
563
+ .block-marquee {
564
+ position: absolute;
565
+ z-index: 33;
566
+ pointer-events: none;
567
+ /**
568
+ * 宽高由插件按「按下点 → 当前指针」的拖拽矩形写入,边框必须算在尺寸内——
569
+ * 否则 1px 边框会让框比鼠标实际划出的范围多出 2px(用户实测:左边贴合、
570
+ * 右边多出一截)。
571
+ */
572
+ box-sizing: border-box;
573
+ background: color-mix(in srgb, var(--color-accent) 12%, transparent);
574
+ border: 1px solid color-mix(in srgb, var(--color-accent) 65%, transparent);
575
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-surface) 60%, transparent);
576
+ border-radius: 2px;
577
+ }
578
+
579
+ /* ---------------------------------------------------------------- 表格交互样式 */
580
+ /* 这几条此前完全缺失:resizable 生效但没有任何可视反馈,选中态也没有高亮,
581
+ 导致"能拖列宽但看不出在哪拖、选中了格子也不知道"。 */
582
+ /**
583
+ * 列宽拖拽手柄。
584
+ *
585
+ * prosemirror-tables 为**每一行**各插一个 4px 宽的 widget,默认样式是强调色 +
586
+ * 60% 透明度:鼠标经过列边界时它会在表格上竖着亮起一条分段蓝线,既没有
587
+ * 拖拽反馈,也不像任何已知控件(用户反馈"表格里这个蓝色是什么?没什么用吧")。
588
+ *
589
+ * 改为两级语义:
590
+ * - 悬停边界:中性色细线,连续贯穿整列(`top/bottom: -1px` 补齐行间缝隙),
591
+ * 配合 `col-resize` 光标表达"这里可以拖";
592
+ * - 真正拖拽中(单元格带 `column-resize-dragging`):才使用强调色。
593
+ */
594
+ .ywiki-prose .column-resize-handle {
595
+ position: absolute;
596
+ right: -2px;
597
+ top: -4px;
598
+ bottom: -4px;
599
+ width: 3px;
600
+ border-radius: 2px;
601
+ background-color: var(--color-border-strong, #b9c3d2);
602
+ pointer-events: none;
603
+ }
604
+ .ywiki-prose .column-resize-dragging .column-resize-handle {
605
+ background-color: var(--color-accent, #2f6feb);
606
+ box-shadow: 0 0 0 1px var(--color-surface, #fff);
607
+ }
608
+ .ywiki-prose.resize-cursor, .ywiki-prose .resize-cursor { cursor: col-resize; }
609
+ /* 矩形选中的单元格 */
610
+ .ywiki-prose .selectedCell:after {
611
+ content: '';
612
+ position: absolute;
613
+ inset: 0;
614
+ background: color-mix(in srgb, var(--color-accent) 8%, transparent);
615
+ pointer-events: none;
616
+ z-index: 2;
617
+ }
618
+ .ywiki-prose td,
619
+ .ywiki-prose th {
620
+ position: relative;
621
+ }
@@ -0,0 +1,12 @@
1
+ .doc-file-video { margin-top: 8px; }
2
+ .doc-file-video video {
3
+ width: 100%;
4
+ max-height: 420px;
5
+ border-radius: 6px;
6
+ background: #000;
7
+ }
8
+ .doc-file-video-fallback {
9
+ margin: 0;
10
+ font-size: 13px;
11
+ color: var(--color-text-faint);
12
+ }