@weavy/uikit-react 14.0.4 → 15.0.0

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 (360) hide show
  1. package/.vscode/settings.json +2 -0
  2. package/changelog.md +6 -0
  3. package/dist/cjs/client/WeavyClient.d.ts +1 -0
  4. package/dist/cjs/components/Attachment.d.ts +5 -5
  5. package/dist/cjs/components/Blob.d.ts +9 -0
  6. package/dist/cjs/components/Comment.d.ts +18 -0
  7. package/dist/cjs/components/CommentCount.d.ts +7 -0
  8. package/dist/cjs/components/CommentEdit.d.ts +16 -0
  9. package/dist/cjs/components/CommentPlaceholder.d.ts +8 -0
  10. package/dist/cjs/components/CommentTrashed.d.ts +15 -0
  11. package/dist/cjs/components/CommentView.d.ts +18 -0
  12. package/dist/cjs/components/Comments.d.ts +8 -0
  13. package/dist/cjs/components/ConversationListItem.d.ts +1 -1
  14. package/dist/cjs/components/Dropzone.d.ts +10 -0
  15. package/dist/cjs/components/Editor.d.ts +25 -0
  16. package/dist/cjs/components/Embed.d.ts +8 -0
  17. package/dist/cjs/components/FileItem.d.ts +41 -0
  18. package/dist/cjs/components/FileList.d.ts +11 -0
  19. package/dist/cjs/components/FileVersions.d.ts +9 -0
  20. package/dist/cjs/components/Files.d.ts +4 -0
  21. package/dist/cjs/components/Image.d.ts +3 -3
  22. package/dist/cjs/components/MeetingCard.d.ts +1 -1
  23. package/dist/cjs/components/Meetings.d.ts +2 -1
  24. package/dist/cjs/components/Poll.d.ts +8 -0
  25. package/dist/cjs/components/PollOption.d.ts +10 -0
  26. package/dist/cjs/components/Post.d.ts +21 -0
  27. package/dist/cjs/components/PostEdit.d.ts +17 -0
  28. package/dist/cjs/components/PostList.d.ts +6 -0
  29. package/dist/cjs/components/PostPlaceholder.d.ts +8 -0
  30. package/dist/cjs/components/PostTrashed.d.ts +14 -0
  31. package/dist/cjs/components/PostView.d.ts +21 -0
  32. package/dist/cjs/components/Posts.d.ts +4 -0
  33. package/dist/cjs/components/Preview.d.ts +1 -3
  34. package/dist/cjs/components/PreviewFiles.d.ts +10 -0
  35. package/dist/cjs/components/Reactions.d.ts +6 -2
  36. package/dist/cjs/components/SearchUsers.d.ts +2 -1
  37. package/dist/cjs/contexts/CloudFilesContext.d.ts +9 -0
  38. package/dist/cjs/hooks/useApps.d.ts +1 -0
  39. package/dist/cjs/hooks/useCloudFiles.d.ts +3 -0
  40. package/dist/cjs/hooks/useCommentList.d.ts +1 -0
  41. package/dist/cjs/hooks/useEmbeds.d.ts +5 -0
  42. package/dist/cjs/hooks/useFileList.d.ts +1 -0
  43. package/dist/cjs/hooks/useFileUploader.d.ts +8 -0
  44. package/dist/cjs/hooks/useFileVersions.d.ts +2 -0
  45. package/dist/cjs/hooks/useInfiniteScroll.d.ts +4 -0
  46. package/dist/cjs/hooks/useIsFirstRender.d.ts +2 -0
  47. package/dist/cjs/hooks/useMutateApps.d.ts +5 -0
  48. package/dist/cjs/hooks/useMutateComment.d.ts +10 -0
  49. package/dist/cjs/hooks/useMutateConversationName.d.ts +1 -1
  50. package/dist/cjs/hooks/useMutateDeleteReaction.d.ts +3 -1
  51. package/dist/cjs/hooks/useMutateEditComment.d.ts +10 -0
  52. package/dist/cjs/hooks/useMutateEditPost.d.ts +10 -0
  53. package/dist/cjs/hooks/useMutateExternalBlobs.d.ts +2 -2
  54. package/dist/cjs/hooks/useMutateFile.d.ts +26 -0
  55. package/dist/cjs/hooks/useMutateFileRename.d.ts +5 -0
  56. package/dist/cjs/hooks/useMutateFileSubscribe.d.ts +7 -0
  57. package/dist/cjs/hooks/useMutateFileTrash.d.ts +10 -0
  58. package/dist/cjs/hooks/useMutateFileVersion.d.ts +7 -0
  59. package/dist/cjs/hooks/useMutateFiles.d.ts +2 -0
  60. package/dist/cjs/hooks/useMutateLeaveConversation.d.ts +4 -0
  61. package/dist/cjs/hooks/useMutateMessage.d.ts +2 -2
  62. package/dist/cjs/hooks/useMutatePost.d.ts +10 -0
  63. package/dist/cjs/hooks/useMutateReaction.d.ts +3 -1
  64. package/dist/cjs/hooks/useMutateRead.d.ts +1 -1
  65. package/dist/cjs/hooks/useMutateReplaceReaction.d.ts +6 -0
  66. package/dist/cjs/hooks/useMutateRestoreComment.d.ts +5 -0
  67. package/dist/cjs/hooks/useMutateRestorePost.d.ts +4 -0
  68. package/dist/cjs/hooks/useMutateStarred.d.ts +4 -0
  69. package/dist/cjs/hooks/useMutateSubscribe.d.ts +4 -0
  70. package/dist/cjs/hooks/useMutateTrashComment.d.ts +5 -0
  71. package/dist/cjs/hooks/useMutateTrashPost.d.ts +4 -0
  72. package/dist/cjs/hooks/useMutateTyping.d.ts +2 -0
  73. package/dist/cjs/hooks/useMutateUnsubscribe.d.ts +4 -0
  74. package/dist/cjs/hooks/useMutateVote.d.ts +5 -0
  75. package/dist/cjs/hooks/usePost.d.ts +1 -0
  76. package/dist/cjs/hooks/usePosts.d.ts +1 -0
  77. package/dist/cjs/hooks/usePostsList.d.ts +1 -0
  78. package/dist/cjs/hooks/useReactionList.d.ts +1 -0
  79. package/dist/cjs/hooks/useSessionState.d.ts +2 -0
  80. package/dist/cjs/hooks/useUnload.d.ts +2 -0
  81. package/dist/cjs/hooks/useUpdateEffect.d.ts +3 -0
  82. package/dist/cjs/hooks/useVotes.d.ts +1 -0
  83. package/dist/cjs/index.d.ts +3 -1
  84. package/dist/cjs/index.js +28 -6
  85. package/dist/cjs/index.js.map +1 -1
  86. package/dist/cjs/types/ConversationListItem.d.ts +1 -0
  87. package/dist/cjs/types/Files.d.ts +7 -0
  88. package/dist/cjs/types/Message.d.ts +2 -2
  89. package/dist/cjs/types/Posts.d.ts +4 -0
  90. package/dist/cjs/types/interfaces.d.ts +9 -0
  91. package/dist/cjs/types/types.d.ts +138 -22
  92. package/dist/cjs/ui/Dropdown.d.ts +18 -2
  93. package/dist/cjs/ui/Icon.d.ts +10 -2
  94. package/dist/cjs/ui/Overlay.d.ts +3 -1
  95. package/dist/cjs/ui/Sheet.d.ts +14 -0
  96. package/dist/cjs/ui/Spinner.d.ts +2 -1
  97. package/dist/cjs/utils/cacheUtils.d.ts +14 -0
  98. package/dist/cjs/utils/fileUtilities.d.ts +10 -1
  99. package/dist/cjs/utils/mentions.d.ts +6 -0
  100. package/dist/cjs/utils/openUrl.d.ts +1 -0
  101. package/dist/css/weavy-chat.css +637 -218
  102. package/dist/css/weavy-files.css +3046 -0
  103. package/dist/css/weavy-messenger.css +643 -213
  104. package/dist/css/weavy-posts.css +2773 -0
  105. package/dist/css/weavy.css +1749 -308
  106. package/dist/esm/client/WeavyClient.d.ts +1 -0
  107. package/dist/esm/components/Attachment.d.ts +5 -5
  108. package/dist/esm/components/Blob.d.ts +9 -0
  109. package/dist/esm/components/Comment.d.ts +18 -0
  110. package/dist/esm/components/CommentCount.d.ts +7 -0
  111. package/dist/esm/components/CommentEdit.d.ts +16 -0
  112. package/dist/esm/components/CommentPlaceholder.d.ts +8 -0
  113. package/dist/esm/components/CommentTrashed.d.ts +15 -0
  114. package/dist/esm/components/CommentView.d.ts +18 -0
  115. package/dist/esm/components/Comments.d.ts +8 -0
  116. package/dist/esm/components/ConversationListItem.d.ts +1 -1
  117. package/dist/esm/components/Dropzone.d.ts +10 -0
  118. package/dist/esm/components/Editor.d.ts +25 -0
  119. package/dist/esm/components/Embed.d.ts +8 -0
  120. package/dist/esm/components/FileItem.d.ts +41 -0
  121. package/dist/esm/components/FileList.d.ts +11 -0
  122. package/dist/esm/components/FileVersions.d.ts +9 -0
  123. package/dist/esm/components/Files.d.ts +4 -0
  124. package/dist/esm/components/Image.d.ts +3 -3
  125. package/dist/esm/components/MeetingCard.d.ts +1 -1
  126. package/dist/esm/components/Meetings.d.ts +2 -1
  127. package/dist/esm/components/Poll.d.ts +8 -0
  128. package/dist/esm/components/PollOption.d.ts +10 -0
  129. package/dist/esm/components/Post.d.ts +21 -0
  130. package/dist/esm/components/PostEdit.d.ts +17 -0
  131. package/dist/esm/components/PostList.d.ts +6 -0
  132. package/dist/esm/components/PostPlaceholder.d.ts +8 -0
  133. package/dist/esm/components/PostTrashed.d.ts +14 -0
  134. package/dist/esm/components/PostView.d.ts +21 -0
  135. package/dist/esm/components/Posts.d.ts +4 -0
  136. package/dist/esm/components/Preview.d.ts +1 -3
  137. package/dist/esm/components/PreviewFiles.d.ts +10 -0
  138. package/dist/esm/components/Reactions.d.ts +6 -2
  139. package/dist/esm/components/SearchUsers.d.ts +2 -1
  140. package/dist/esm/contexts/CloudFilesContext.d.ts +9 -0
  141. package/dist/esm/hooks/useApps.d.ts +1 -0
  142. package/dist/esm/hooks/useCloudFiles.d.ts +3 -0
  143. package/dist/esm/hooks/useCommentList.d.ts +1 -0
  144. package/dist/esm/hooks/useEmbeds.d.ts +5 -0
  145. package/dist/esm/hooks/useFileList.d.ts +1 -0
  146. package/dist/esm/hooks/useFileUploader.d.ts +8 -0
  147. package/dist/esm/hooks/useFileVersions.d.ts +2 -0
  148. package/dist/esm/hooks/useInfiniteScroll.d.ts +4 -0
  149. package/dist/esm/hooks/useIsFirstRender.d.ts +2 -0
  150. package/dist/esm/hooks/useMutateApps.d.ts +5 -0
  151. package/dist/esm/hooks/useMutateComment.d.ts +10 -0
  152. package/dist/esm/hooks/useMutateConversationName.d.ts +1 -1
  153. package/dist/esm/hooks/useMutateDeleteReaction.d.ts +3 -1
  154. package/dist/esm/hooks/useMutateEditComment.d.ts +10 -0
  155. package/dist/esm/hooks/useMutateEditPost.d.ts +10 -0
  156. package/dist/esm/hooks/useMutateExternalBlobs.d.ts +2 -2
  157. package/dist/esm/hooks/useMutateFile.d.ts +26 -0
  158. package/dist/esm/hooks/useMutateFileRename.d.ts +5 -0
  159. package/dist/esm/hooks/useMutateFileSubscribe.d.ts +7 -0
  160. package/dist/esm/hooks/useMutateFileTrash.d.ts +10 -0
  161. package/dist/esm/hooks/useMutateFileVersion.d.ts +7 -0
  162. package/dist/esm/hooks/useMutateFiles.d.ts +2 -0
  163. package/dist/esm/hooks/useMutateLeaveConversation.d.ts +4 -0
  164. package/dist/esm/hooks/useMutateMessage.d.ts +2 -2
  165. package/dist/esm/hooks/useMutatePost.d.ts +10 -0
  166. package/dist/esm/hooks/useMutateReaction.d.ts +3 -1
  167. package/dist/esm/hooks/useMutateRead.d.ts +1 -1
  168. package/dist/esm/hooks/useMutateReplaceReaction.d.ts +6 -0
  169. package/dist/esm/hooks/useMutateRestoreComment.d.ts +5 -0
  170. package/dist/esm/hooks/useMutateRestorePost.d.ts +4 -0
  171. package/dist/esm/hooks/useMutateStarred.d.ts +4 -0
  172. package/dist/esm/hooks/useMutateSubscribe.d.ts +4 -0
  173. package/dist/esm/hooks/useMutateTrashComment.d.ts +5 -0
  174. package/dist/esm/hooks/useMutateTrashPost.d.ts +4 -0
  175. package/dist/esm/hooks/useMutateTyping.d.ts +2 -0
  176. package/dist/esm/hooks/useMutateUnsubscribe.d.ts +4 -0
  177. package/dist/esm/hooks/useMutateVote.d.ts +5 -0
  178. package/dist/esm/hooks/usePost.d.ts +1 -0
  179. package/dist/esm/hooks/usePosts.d.ts +1 -0
  180. package/dist/esm/hooks/usePostsList.d.ts +1 -0
  181. package/dist/esm/hooks/useReactionList.d.ts +1 -0
  182. package/dist/esm/hooks/useSessionState.d.ts +2 -0
  183. package/dist/esm/hooks/useUnload.d.ts +2 -0
  184. package/dist/esm/hooks/useUpdateEffect.d.ts +3 -0
  185. package/dist/esm/hooks/useVotes.d.ts +1 -0
  186. package/dist/esm/index.d.ts +3 -1
  187. package/dist/esm/index.js +28 -6
  188. package/dist/esm/index.js.map +1 -1
  189. package/dist/esm/types/ConversationListItem.d.ts +1 -0
  190. package/dist/esm/types/Files.d.ts +7 -0
  191. package/dist/esm/types/Message.d.ts +2 -2
  192. package/dist/esm/types/Posts.d.ts +4 -0
  193. package/dist/esm/types/interfaces.d.ts +9 -0
  194. package/dist/esm/types/types.d.ts +138 -22
  195. package/dist/esm/ui/Dropdown.d.ts +18 -2
  196. package/dist/esm/ui/Icon.d.ts +10 -2
  197. package/dist/esm/ui/Overlay.d.ts +3 -1
  198. package/dist/esm/ui/Sheet.d.ts +14 -0
  199. package/dist/esm/ui/Spinner.d.ts +2 -1
  200. package/dist/esm/utils/cacheUtils.d.ts +14 -0
  201. package/dist/esm/utils/fileUtilities.d.ts +10 -1
  202. package/dist/esm/utils/mentions.d.ts +6 -0
  203. package/dist/esm/utils/openUrl.d.ts +1 -0
  204. package/dist/index.d.ts +50 -6
  205. package/package.json +8 -2
  206. package/src/client/WeavyClient.ts +35 -1
  207. package/src/components/Attachment.tsx +20 -13
  208. package/src/components/Blob.tsx +28 -0
  209. package/src/components/Comment.tsx +43 -0
  210. package/src/components/CommentCount.tsx +15 -0
  211. package/src/components/CommentEdit.tsx +48 -0
  212. package/src/components/CommentPlaceholder.tsx +34 -0
  213. package/src/components/CommentTrashed.tsx +45 -0
  214. package/src/components/CommentView.tsx +142 -0
  215. package/src/components/Comments.tsx +78 -0
  216. package/src/components/Conversation.tsx +85 -31
  217. package/src/components/ConversationList.tsx +12 -41
  218. package/src/components/ConversationListItem.tsx +125 -74
  219. package/src/components/Dropzone.tsx +26 -0
  220. package/src/components/Editor.tsx +700 -0
  221. package/src/components/Embed.tsx +80 -0
  222. package/src/components/FileItem.tsx +391 -0
  223. package/src/components/FileList.tsx +166 -0
  224. package/src/components/FileVersions.tsx +100 -0
  225. package/src/components/Files.tsx +294 -0
  226. package/src/components/Image.tsx +11 -10
  227. package/src/components/Meeting.tsx +1 -2
  228. package/src/components/MeetingCard.tsx +1 -1
  229. package/src/components/Meetings.tsx +13 -5
  230. package/src/components/Message.tsx +14 -19
  231. package/src/components/Messages.tsx +38 -64
  232. package/src/components/NewConversation.tsx +8 -6
  233. package/src/components/PdfViewer.tsx +2 -2
  234. package/src/components/Poll.tsx +45 -0
  235. package/src/components/PollOption.tsx +65 -0
  236. package/src/components/Post.tsx +45 -0
  237. package/src/components/PostEdit.tsx +49 -0
  238. package/src/components/PostList.tsx +95 -0
  239. package/src/components/PostPlaceholder.tsx +32 -0
  240. package/src/components/PostTrashed.tsx +35 -0
  241. package/src/components/PostView.tsx +194 -0
  242. package/src/components/Posts.tsx +59 -0
  243. package/src/components/Preview.tsx +16 -23
  244. package/src/components/PreviewFiles.tsx +336 -0
  245. package/src/components/Reactions.tsx +142 -38
  246. package/src/components/SearchUsers.tsx +77 -37
  247. package/src/components/Typing.tsx +1 -1
  248. package/src/{components/FileBrowser.tsx → contexts/CloudFilesContext.tsx} +46 -30
  249. package/src/contexts/PreviewContext.tsx +102 -85
  250. package/src/contexts/WeavyContext.tsx +10 -6
  251. package/src/hooks/useApps.ts +23 -0
  252. package/src/hooks/useCloudFiles.ts +12 -0
  253. package/src/hooks/useCommentList.ts +30 -0
  254. package/src/hooks/useEmbeds.ts +126 -0
  255. package/src/hooks/useEvents.ts +3 -1
  256. package/src/hooks/useFileList.ts +84 -0
  257. package/src/hooks/useFileUploader.ts +38 -1
  258. package/src/hooks/useFileVersions.ts +20 -0
  259. package/src/hooks/useInfiniteScroll.ts +45 -0
  260. package/src/hooks/useIsFirstRender.ts +15 -0
  261. package/src/hooks/useMembers.ts +3 -3
  262. package/src/hooks/useMutateApps.ts +48 -0
  263. package/src/hooks/useMutateComment.ts +60 -0
  264. package/src/hooks/useMutateConversationName.ts +1 -1
  265. package/src/hooks/useMutateDeleteReaction.ts +17 -4
  266. package/src/hooks/useMutateEditComment.ts +63 -0
  267. package/src/hooks/useMutateEditPost.ts +64 -0
  268. package/src/hooks/useMutateExternalBlobs.ts +5 -9
  269. package/src/hooks/useMutateFile.ts +311 -0
  270. package/src/hooks/useMutateFileRename.ts +51 -0
  271. package/src/hooks/useMutateFileSubscribe.ts +80 -0
  272. package/src/hooks/useMutateFileTrash.ts +115 -0
  273. package/src/hooks/useMutateFileVersion.ts +85 -0
  274. package/src/hooks/useMutateFiles.ts +23 -0
  275. package/src/hooks/useMutateLeaveConversation.ts +38 -0
  276. package/src/hooks/useMutateMessage.ts +23 -62
  277. package/src/hooks/useMutatePost.ts +60 -0
  278. package/src/hooks/useMutateReaction.ts +21 -6
  279. package/src/hooks/useMutateRead.ts +8 -2
  280. package/src/hooks/useMutateRemoveMembers.ts +2 -9
  281. package/src/hooks/useMutateReplaceReaction.ts +59 -0
  282. package/src/hooks/useMutateRestoreComment.ts +37 -0
  283. package/src/hooks/useMutateRestorePost.ts +36 -0
  284. package/src/hooks/useMutateStarred.ts +35 -0
  285. package/src/hooks/useMutateSubscribe.ts +36 -0
  286. package/src/hooks/useMutateTrashComment.ts +37 -0
  287. package/src/hooks/useMutateTrashPost.ts +36 -0
  288. package/src/hooks/useMutateTyping.ts +5 -3
  289. package/src/hooks/useMutateUnsubscribe.ts +36 -0
  290. package/src/hooks/useMutateVote.ts +59 -0
  291. package/src/hooks/usePost.ts +20 -0
  292. package/src/hooks/usePosts.ts +21 -0
  293. package/src/hooks/usePostsList.ts +31 -0
  294. package/src/hooks/useReactionList.ts +21 -0
  295. package/src/hooks/useSearchUsers.ts +2 -2
  296. package/src/hooks/useSessionState.ts +23 -0
  297. package/src/hooks/useUnload.ts +19 -0
  298. package/src/hooks/useUpdateEffect.ts +16 -0
  299. package/src/hooks/useVotes.ts +21 -0
  300. package/src/index.ts +5 -1
  301. package/src/scss/theme/_appbar.scss +8 -4
  302. package/src/scss/theme/_card.scss +2 -0
  303. package/src/scss/theme/_comment-editor-cm.scss +5 -1
  304. package/src/scss/theme/_comments.scss +9 -8
  305. package/src/scss/theme/_conversations.scss +4 -0
  306. package/src/scss/theme/_files.scss +2 -81
  307. package/src/scss/theme/_icons.scss +21 -3
  308. package/src/scss/theme/_input.scss +13 -7
  309. package/src/scss/theme/_item.scss +23 -1
  310. package/src/scss/theme/_message-editor-cm.scss +5 -1
  311. package/src/scss/theme/_pager.scss +1 -1
  312. package/src/scss/theme/_post-editor-cm.scss +2 -2
  313. package/src/scss/theme/_post.scss +3 -10
  314. package/src/scss/theme/_preview-pdf-viewer.scss +996 -0
  315. package/src/scss/theme/_preview-pdf.scss +57 -783
  316. package/src/scss/theme/_sheet.scss +4 -1
  317. package/src/scss/theme/_spinner.scss +10 -1
  318. package/src/scss/theme/_tables.scss +2 -0
  319. package/src/scss/theme/base/_scroll.scss +3 -0
  320. package/src/scss/weavy-chat.scss +3 -1
  321. package/src/scss/weavy-files.scss +31 -0
  322. package/src/scss/weavy-messenger.scss +3 -1
  323. package/src/scss/weavy-posts.scss +35 -0
  324. package/src/scss/weavy.scss +2 -0
  325. package/src/types/ConversationListItem.ts +1 -0
  326. package/src/types/Files.ts +7 -0
  327. package/src/types/Message.ts +2 -2
  328. package/src/types/Posts.ts +4 -0
  329. package/src/types/interfaces.ts +13 -0
  330. package/src/types/types.ts +157 -28
  331. package/src/ui/Button.tsx +6 -5
  332. package/src/ui/Dropdown.tsx +67 -16
  333. package/src/ui/Icon.tsx +112 -15
  334. package/src/ui/Overlay.tsx +6 -2
  335. package/src/ui/Sheet.tsx +87 -0
  336. package/src/ui/Spinner.tsx +7 -4
  337. package/src/utils/cacheUtils.ts +246 -0
  338. package/src/utils/fileUtilities.ts +208 -24
  339. package/src/utils/infinite-scroll.js +103 -0
  340. package/src/utils/mentions.ts +50 -0
  341. package/src/utils/openUrl.ts +41 -0
  342. package/src/utils/{scrollToBottom.js → scroll-position.js} +50 -9
  343. package/src/utils/{scrollbarDetection.js → scrollbar-detection.js} +0 -0
  344. package/src/utils/utils.js +15 -1
  345. package/tsconfig.json +1 -1
  346. package/dist/cjs/components/ConversationForm.d.ts +0 -7
  347. package/dist/cjs/components/File.d.ts +0 -9
  348. package/dist/cjs/components/FileBrowser.d.ts +0 -6
  349. package/dist/cjs/hooks/usePreview.d.ts +0 -4
  350. package/dist/cjs/hooks/useReactions.d.ts +0 -3
  351. package/dist/esm/components/ConversationForm.d.ts +0 -7
  352. package/dist/esm/components/File.d.ts +0 -9
  353. package/dist/esm/components/FileBrowser.d.ts +0 -6
  354. package/dist/esm/hooks/usePreview.d.ts +0 -4
  355. package/dist/esm/hooks/useReactions.d.ts +0 -3
  356. package/src/components/ConversationForm.tsx +0 -210
  357. package/src/components/File.tsx +0 -21
  358. package/src/hooks/usePreview.ts +0 -21
  359. package/src/hooks/useReactions.ts +0 -51
  360. package/src/utils/infiniteScroll.js +0 -184
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  :where(:root, :host > *) {
2
3
  --wy-theme: #00658e;
3
4
  --wy-black: #000000;
@@ -303,6 +304,8 @@
303
304
  will-change: scroll-position, opacity;
304
305
  backface-visibility: hidden;
305
306
  max-height: 100%;
307
+ scroll-padding-top: var(--wy-scrollbar-adjust-top, 0);
308
+ scroll-padding-bottom: var(--wy-scrollbar-adjust-bottom, 0);
306
309
  }
307
310
  .wy-scroll-y:not(body) {
308
311
  -webkit-overflow-scrolling: touch;
@@ -455,6 +458,10 @@
455
458
  color: inherit;
456
459
  }
457
460
 
461
+ .wy-appbar-text-trashed {
462
+ text-decoration: line-through;
463
+ }
464
+
458
465
  .wy-toolbars-bottom {
459
466
  position: absolute;
460
467
  z-index: 1030;
@@ -485,9 +492,6 @@
485
492
  color: var(--wy-component-color);
486
493
  box-shadow: var(--wy-outline-variant) 0px -1px 0px 0px inset;
487
494
  }
488
- .wy-toolbar span {
489
- margin-left: 0.25rem;
490
- }
491
495
 
492
496
  .wy-toolbar-center {
493
497
  margin: 0 auto;
@@ -497,6 +501,10 @@
497
501
  text-align: center;
498
502
  }
499
503
 
504
+ .wy-toolbar-text {
505
+ margin-left: 0.25rem;
506
+ }
507
+
500
508
  .wy-footerbars {
501
509
  padding-bottom: 4rem;
502
510
  }
@@ -1337,6 +1345,10 @@
1337
1345
  font-weight: 500;
1338
1346
  }
1339
1347
 
1348
+ .wy-conversations {
1349
+ position: relative;
1350
+ }
1351
+
1340
1352
  .wy-conversation {
1341
1353
  display: flex;
1342
1354
  position: relative;
@@ -1541,7 +1553,7 @@
1541
1553
  opacity: 1;
1542
1554
  }
1543
1555
 
1544
- .wy-icon:not([class*=wy-icon-]):not([class*=wy-kind-]) * {
1556
+ .wy-icon:not([class*=wy-icon-]):not([class*=wy-kind-]):not([data-icon=progress]) * {
1545
1557
  fill: currentColor;
1546
1558
  }
1547
1559
 
@@ -1660,6 +1672,18 @@
1660
1672
  fill: var(--wy-red);
1661
1673
  }
1662
1674
 
1675
+ [data-icon=progress].wy-icon-primary {
1676
+ color: var(--wy-primary);
1677
+ }
1678
+ [data-icon=progress] :first-child {
1679
+ fill: none;
1680
+ stroke: var(--wy-surface-variant);
1681
+ }
1682
+ [data-icon=progress] :last-child {
1683
+ fill: none;
1684
+ stroke: currentColor;
1685
+ }
1686
+
1663
1687
  .wy-image-grid {
1664
1688
  display: flex;
1665
1689
  flex-wrap: wrap;
@@ -1778,8 +1802,9 @@
1778
1802
  border-color: var(--wy-outline-variant);
1779
1803
  }
1780
1804
 
1781
- .wy-is-invalid, .wy-is-invalid:focus {
1782
- border-color: var(--wy-error);
1805
+ .wy-input-label {
1806
+ display: block;
1807
+ margin-bottom: 0.5rem;
1783
1808
  }
1784
1809
 
1785
1810
  .wy-description {
@@ -1787,9 +1812,14 @@
1787
1812
  font-size: var(--wy-font-size-sm);
1788
1813
  }
1789
1814
 
1790
- .wy-input-label {
1791
- display: block;
1792
- margin-bottom: 0.5rem;
1815
+ .wy-is-invalid, .wy-is-invalid:focus {
1816
+ border-color: var(--wy-error);
1817
+ }
1818
+
1819
+ .wy-invalid-feedback {
1820
+ margin-top: 0.25rem;
1821
+ font-size: var(--wy-font-size-sm);
1822
+ color: var(--wy-error);
1793
1823
  }
1794
1824
 
1795
1825
  .wy-input-group {
@@ -1834,7 +1864,7 @@
1834
1864
  text-decoration: none;
1835
1865
  min-height: 3rem;
1836
1866
  }
1837
- .wy-item > .wy-avatar, .wy-item > .wy-icon, .wy-item > .wy-icon-stack {
1867
+ .wy-item > .wy-avatar, .wy-item > .wy-icon, .wy-item > .wy-icon[data-icon=spinner], .wy-item > .wy-icon-stack {
1838
1868
  margin-left: -0.25rem;
1839
1869
  }
1840
1870
 
@@ -1855,6 +1885,9 @@
1855
1885
  .wy-item-body + .wy-emoji {
1856
1886
  margin-right: 0.125rem;
1857
1887
  }
1888
+ .wy-item-body > .wy-icon[data-icon=shield-star] {
1889
+ vertical-align: -0.125rem;
1890
+ }
1858
1891
 
1859
1892
  .wy-item-title {
1860
1893
  color: var(--wy-on-background);
@@ -1906,6 +1939,11 @@
1906
1939
  margin-right: 2rem;
1907
1940
  }
1908
1941
 
1942
+ .wy-action-label {
1943
+ margin-right: 0.5rem;
1944
+ font-style: italic;
1945
+ }
1946
+
1909
1947
  .wy-item-row {
1910
1948
  display: flex;
1911
1949
  align-items: center;
@@ -1953,6 +1991,14 @@
1953
1991
  border-color: var(--wy-component-background-color);
1954
1992
  }
1955
1993
 
1994
+ .wy-item-trashed {
1995
+ text-decoration: line-through;
1996
+ opacity: var(--wy-opacity-disabled);
1997
+ }
1998
+ .wy-item-trashed.wy-item-hover:hover {
1999
+ opacity: 1;
2000
+ }
2001
+
1956
2002
  .wy-item-lg {
1957
2003
  padding: 0.75rem;
1958
2004
  min-height: 4.5rem;
@@ -2152,129 +2198,6 @@
2152
2198
  text-align: center;
2153
2199
  }
2154
2200
 
2155
- .wy-message-editor-top {
2156
- background-color: var(--wy-component-background-color);
2157
- color: var(--wy-component-color);
2158
- }
2159
- @supports (position: sticky) {
2160
- .wy-message-editor-top {
2161
- position: sticky;
2162
- top: 0;
2163
- z-index: 1020;
2164
- }
2165
- }
2166
-
2167
- .wy-message-editor-bottom {
2168
- background-color: var(--wy-component-background-color);
2169
- color: var(--wy-component-color);
2170
- }
2171
- @supports (position: sticky) {
2172
- .wy-message-editor-bottom {
2173
- position: sticky;
2174
- bottom: 0;
2175
- z-index: 1020;
2176
- }
2177
- }
2178
-
2179
- .wy-message-editor-dragging::after {
2180
- content: "Drop files here to upload.";
2181
- background-color: rgba(255, 255, 255, 0.5);
2182
- display: flex;
2183
- justify-content: center;
2184
- align-items: center;
2185
- border: 2px dashed var(--wy-primary);
2186
- font-weight: 700;
2187
- z-index: 10000;
2188
- position: absolute;
2189
- top: 0;
2190
- left: 0;
2191
- bottom: 0;
2192
- right: 0;
2193
- }
2194
-
2195
- .wy-message-form .wy-spinner {
2196
- display: none;
2197
- }
2198
- .wy-message-form.wy-uploading .wy-spinner {
2199
- display: block;
2200
- }
2201
- .wy-message-form.wy-uploading [data-icon=plus] {
2202
- display: none;
2203
- }
2204
- .wy-message-form .wy-picker-list:not(:empty) {
2205
- border-top: 1px solid var(--wy-outline-variant);
2206
- }
2207
-
2208
- .wy-message-editor-inputs {
2209
- display: flex;
2210
- flex-direction: row;
2211
- align-items: flex-end;
2212
- padding: 0.5rem 0.25rem;
2213
- min-height: 3.5rem;
2214
- }
2215
- .wy-message-editor-inputs > :not(:last-child) {
2216
- margin-right: 0.25rem;
2217
- }
2218
-
2219
- .wy-message-editor-buttons {
2220
- flex: 1 0 auto;
2221
- }
2222
-
2223
- .wy-message-editor-text {
2224
- flex: 1 1 100%;
2225
- display: flex;
2226
- flex-direction: column;
2227
- }
2228
-
2229
- .wy-message-editor-mention {
2230
- background: blue;
2231
- color: white;
2232
- }
2233
-
2234
- .wy-message-editor-link {
2235
- background: blue;
2236
- color: white;
2237
- }
2238
-
2239
- .wy-message-editor-grow::after,
2240
- .wy-message-editor-grow > textarea,
2241
- .wy-message-editor-textfield {
2242
- flex: 1 1 100%;
2243
- max-height: 11.25rem;
2244
- background-color: var(--wy-background);
2245
- color: var(--wy-on-background);
2246
- border-radius: 1.25rem;
2247
- border: var(--wy-input-border-width) solid var(--wy-background);
2248
- }
2249
- .wy-message-editor-grow:focus::after,
2250
- .wy-message-editor-grow > textarea:focus,
2251
- .wy-message-editor-textfield:focus {
2252
- border-color: var(--wy-outline-variant);
2253
- }
2254
-
2255
- .wy-message-editor-textcontent {
2256
- font-family: var(--wy-font-family);
2257
- font-size: var(--wy-font-size-base);
2258
- padding: var(--wy-input-padding-y) var(--wy-input-padding-x);
2259
- }
2260
-
2261
- .wy-message-editor-grow {
2262
- display: grid;
2263
- }
2264
- .wy-message-editor-grow::after,
2265
- .wy-message-editor-grow > textarea {
2266
- grid-area: 1/1/2/2;
2267
- }
2268
- .wy-message-editor-grow::after {
2269
- content: attr(data-replicated-value) " ";
2270
- white-space: pre-wrap;
2271
- visibility: hidden;
2272
- }
2273
- .wy-message-editor-grow > textarea {
2274
- resize: none;
2275
- overflow: hidden;
2276
- }
2277
-
2278
2201
  .wy-meta {
2279
2202
  color: var(--wy-outline);
2280
2203
  font-size: var(--wy-font-size-sm);
@@ -2373,7 +2296,7 @@
2373
2296
  opacity: 1;
2374
2297
  }
2375
2298
 
2376
- .wy-pager {
2299
+ tr.wy-pager {
2377
2300
  pointer-events: none;
2378
2301
  }
2379
2302
 
@@ -2786,48 +2709,82 @@ tr.wy-pager td .wy-spinner {
2786
2709
  outline: none;
2787
2710
  }
2788
2711
 
2789
- :root, :host > * {
2790
- --pdfViewer-padding-bottom: 0;
2791
- --page-margin: 2rem auto;
2792
- --page-border: none;
2793
- --spreadHorizontalWrapped-margin-LR: -3.5px;
2794
- --zoom-factor: 1;
2795
- --viewport-scale-factor: 1;
2712
+ :root {
2713
+ --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
2714
+ --input-focus-border-color: Highlight;
2715
+ --input-focus-outline: 1px solid Canvas;
2716
+ --input-unfocused-border-color: transparent;
2717
+ --input-disabled-border-color: transparent;
2718
+ --input-hover-border-color: black;
2719
+ }
2720
+
2721
+ @media (forced-colors: active) {
2722
+ :root {
2723
+ --input-focus-border-color: CanvasText;
2724
+ --input-unfocused-border-color: ActiveText;
2725
+ --input-disabled-border-color: GrayText;
2726
+ --input-hover-border-color: Highlight;
2727
+ }
2728
+ }
2729
+ :root {
2730
+ --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
2731
+ --xfa-focus-outline: auto;
2796
2732
  }
2797
2733
 
2798
- @media screen and (forced-colors: active) {
2799
- :root, :host > * {
2800
- --pdfViewer-padding-bottom: 9px;
2801
- --page-margin: 9px auto 0;
2802
- --page-border: none;
2803
- --spreadHorizontalWrapped-margin-LR: 4.5px;
2734
+ @media (forced-colors: active) {
2735
+ :root {
2736
+ --xfa-focus-outline: 2px solid CanvasText;
2804
2737
  }
2805
2738
  }
2806
2739
  :root {
2807
- --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
2740
+ --focus-outline: solid 2px blue;
2741
+ --hover-outline: dashed 2px blue;
2742
+ --freetext-line-height: 1.35;
2743
+ --freetext-padding: 2px;
2744
+ --editorFreeText-editing-cursor: text;
2745
+ --editorInk-editing-cursor: pointer;
2746
+ }
2747
+
2748
+ @media (forced-colors: active) {
2749
+ :root {
2750
+ --focus-outline: solid 3px ButtonText;
2751
+ --hover-outline: dashed 3px ButtonText;
2752
+ }
2808
2753
  }
2809
-
2810
2754
  :root {
2811
- --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
2755
+ --viewer-container-height: 0;
2756
+ --pdfViewer-padding-bottom: 0;
2757
+ --page-margin: 2rem auto;
2758
+ --page-border: none;
2759
+ --page-border-image: none;
2760
+ --spreadHorizontalWrapped-margin-LR: -3.5px;
2761
+ --scale-factor: 1;
2812
2762
  }
2813
2763
 
2764
+ @media screen and (forced-colors: active) {
2765
+ :root {
2766
+ --page-border: 1px solid CanvasText;
2767
+ --page-border-image: none;
2768
+ --spreadHorizontalWrapped-margin-LR: 3.5px;
2769
+ }
2770
+ }
2814
2771
  .wy-content-pdf {
2815
2772
  /* Copyright 2014 Mozilla Foundation
2816
- *
2817
- * Licensed under the Apache License, Version 2.0 (the "License");
2818
- * you may not use this file except in compliance with the License.
2819
- * You may obtain a copy of the License at
2820
- *
2821
- * http://www.apache.org/licenses/LICENSE-2.0
2822
- *
2823
- * Unless required by applicable law or agreed to in writing, software
2824
- * distributed under the License is distributed on an "AS IS" BASIS,
2825
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2826
- * See the License for the specific language governing permissions and
2827
- * limitations under the License.
2828
- */
2773
+ *
2774
+ * Licensed under the Apache License, Version 2.0 (the "License");
2775
+ * you may not use this file except in compliance with the License.
2776
+ * You may obtain a copy of the License at
2777
+ *
2778
+ * http://www.apache.org/licenses/LICENSE-2.0
2779
+ *
2780
+ * Unless required by applicable law or agreed to in writing, software
2781
+ * distributed under the License is distributed on an "AS IS" BASIS,
2782
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2783
+ * See the License for the specific language governing permissions and
2784
+ * limitations under the License.
2785
+ */
2829
2786
  /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
2830
- * the problem doesn't show up in "text" reference tests. */
2787
+ * the problem doesn't show up in "text" reference tests. */
2831
2788
  /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
2832
2789
  }
2833
2790
  .wy-content-pdf .wy-input[data-pdf-target=pageNumber] {
@@ -2897,11 +2854,12 @@ tr.wy-pager td .wy-spinner {
2897
2854
  right: 0;
2898
2855
  bottom: 0;
2899
2856
  overflow: hidden;
2900
- opacity: 0.2;
2857
+ opacity: 0.25;
2901
2858
  line-height: 1;
2902
2859
  -webkit-text-size-adjust: none;
2903
2860
  -moz-text-size-adjust: none;
2904
2861
  text-size-adjust: none;
2862
+ forced-color-adjust: none;
2905
2863
  }
2906
2864
  .wy-content-pdf .textLayer span,
2907
2865
  .wy-content-pdf .textLayer br {
@@ -2937,10 +2895,12 @@ tr.wy-pager td .wy-spinner {
2937
2895
  background-color: rgb(0, 100, 0);
2938
2896
  }
2939
2897
  .wy-content-pdf .textLayer ::-moz-selection {
2940
- background: rgb(0, 0, 255);
2898
+ background: blue;
2899
+ background: AccentColor;
2941
2900
  }
2942
2901
  .wy-content-pdf .textLayer ::selection {
2943
- background: rgb(0, 0, 255);
2902
+ background: blue;
2903
+ background: AccentColor;
2944
2904
  }
2945
2905
  .wy-content-pdf .textLayer br::-moz-selection {
2946
2906
  background: transparent;
@@ -2964,9 +2924,28 @@ tr.wy-pager td .wy-spinner {
2964
2924
  .wy-content-pdf .textLayer .endOfContent.active {
2965
2925
  top: 0;
2966
2926
  }
2927
+ @media (forced-colors: active) {
2928
+ .wy-content-pdf .annotationLayer .textWidgetAnnotation input:required,
2929
+ .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea:required,
2930
+ .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:required,
2931
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
2932
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
2933
+ outline: 1.5px solid selectedItem;
2934
+ }
2935
+ }
2936
+ .wy-content-pdf .annotationLayer {
2937
+ position: absolute;
2938
+ top: 0;
2939
+ left: 0;
2940
+ pointer-events: none;
2941
+ transform-origin: 0 0;
2942
+ }
2967
2943
  .wy-content-pdf .annotationLayer section {
2968
2944
  position: absolute;
2969
2945
  text-align: initial;
2946
+ pointer-events: auto;
2947
+ box-sizing: border-box;
2948
+ transform-origin: 0 0;
2970
2949
  }
2971
2950
  .wy-content-pdf .annotationLayer .linkAnnotation > a,
2972
2951
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.pushButton > a {
@@ -2978,10 +2957,8 @@ tr.wy-pager td .wy-spinner {
2978
2957
  height: 100%;
2979
2958
  }
2980
2959
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.pushButton > canvas {
2981
- position: relative;
2982
- top: 0;
2983
- left: 0;
2984
- z-index: -1;
2960
+ width: 100%;
2961
+ height: 100%;
2985
2962
  }
2986
2963
  .wy-content-pdf .annotationLayer .linkAnnotation > a:hover,
2987
2964
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
@@ -2992,6 +2969,8 @@ tr.wy-pager td .wy-spinner {
2992
2969
  .wy-content-pdf .annotationLayer .textAnnotation img {
2993
2970
  position: absolute;
2994
2971
  cursor: pointer;
2972
+ width: 100%;
2973
+ height: 100%;
2995
2974
  }
2996
2975
  .wy-content-pdf .annotationLayer .textWidgetAnnotation input,
2997
2976
  .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea,
@@ -2999,15 +2978,21 @@ tr.wy-pager td .wy-spinner {
2999
2978
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input,
3000
2979
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input {
3001
2980
  background-image: var(--annotation-unfocused-field-background);
3002
- border: 1px solid transparent;
2981
+ border: 2px solid var(--input-unfocused-border-color);
3003
2982
  box-sizing: border-box;
3004
- font-size: 9px;
2983
+ font: calc(9px * var(--scale-factor)) sans-serif;
3005
2984
  height: 100%;
3006
2985
  margin: 0;
3007
- padding: 0 3px;
3008
2986
  vertical-align: top;
3009
2987
  width: 100%;
3010
2988
  }
2989
+ .wy-content-pdf .annotationLayer .textWidgetAnnotation input:required,
2990
+ .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea:required,
2991
+ .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:required,
2992
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:required,
2993
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:required {
2994
+ outline: 1.5px solid red;
2995
+ }
3011
2996
  .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select option {
3012
2997
  padding: 0;
3013
2998
  }
@@ -3015,8 +3000,6 @@ tr.wy-pager td .wy-spinner {
3015
3000
  border-radius: 50%;
3016
3001
  }
3017
3002
  .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea {
3018
- font: message-box;
3019
- font-size: 9px;
3020
3003
  resize: none;
3021
3004
  }
3022
3005
  .wy-content-pdf .annotationLayer .textWidgetAnnotation input[disabled],
@@ -3025,7 +3008,7 @@ tr.wy-pager td .wy-spinner {
3025
3008
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
3026
3009
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
3027
3010
  background: none;
3028
- border: 1px solid transparent;
3011
+ border: 2px solid var(--input-disabled-border-color);
3029
3012
  cursor: not-allowed;
3030
3013
  }
3031
3014
  .wy-content-pdf .annotationLayer .textWidgetAnnotation input:hover,
@@ -3033,27 +3016,40 @@ tr.wy-pager td .wy-spinner {
3033
3016
  .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:hover,
3034
3017
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
3035
3018
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
3036
- border: 1px solid rgb(0, 0, 0);
3019
+ border: 2px solid var(--input-hover-border-color);
3020
+ }
3021
+ .wy-content-pdf .annotationLayer .textWidgetAnnotation input:hover,
3022
+ .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea:hover,
3023
+ .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:hover,
3024
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:hover {
3025
+ border-radius: 2px;
3037
3026
  }
3038
3027
  .wy-content-pdf .annotationLayer .textWidgetAnnotation input:focus,
3039
3028
  .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea:focus,
3040
3029
  .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select:focus {
3041
3030
  background: none;
3042
- border: 1px solid transparent;
3031
+ border: 2px solid var(--input-focus-border-color);
3032
+ border-radius: 2px;
3033
+ outline: var(--input-focus-outline);
3043
3034
  }
3044
- .wy-content-pdf .annotationLayer .textWidgetAnnotation input :focus,
3045
- .wy-content-pdf .annotationLayer .textWidgetAnnotation textarea :focus,
3046
- .wy-content-pdf .annotationLayer .choiceWidgetAnnotation select :focus,
3047
3035
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
3048
3036
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
3049
3037
  background-image: none;
3050
3038
  background-color: transparent;
3051
- outline: auto;
3039
+ }
3040
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox :focus {
3041
+ border: 2px solid var(--input-focus-border-color);
3042
+ border-radius: 2px;
3043
+ outline: var(--input-focus-outline);
3044
+ }
3045
+ .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
3046
+ border: 2px solid var(--input-focus-border-color);
3047
+ outline: var(--input-focus-outline);
3052
3048
  }
3053
3049
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
3054
3050
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
3055
3051
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
3056
- background-color: rgb(0, 0, 0);
3052
+ background-color: CanvasText;
3057
3053
  content: "";
3058
3054
  display: block;
3059
3055
  position: absolute;
@@ -3084,11 +3080,11 @@ tr.wy-pager td .wy-spinner {
3084
3080
  }
3085
3081
  .wy-content-pdf .annotationLayer .textWidgetAnnotation input.comb:focus {
3086
3082
  /*
3087
- * Letter spacing is placed on the right side of each character. Hence, the
3088
- * letter spacing of the last character may be placed outside the visible
3089
- * area, causing horizontal scrolling. We avoid this by extending the width
3090
- * when the element has focus and revert this when it loses focus.
3091
- */
3083
+ * Letter spacing is placed on the right side of each character. Hence, the
3084
+ * letter spacing of the last character may be placed outside the visible
3085
+ * area, causing horizontal scrolling. We avoid this by extending the width
3086
+ * when the element has focus and revert this when it loses focus.
3087
+ */
3092
3088
  width: 103%;
3093
3089
  }
3094
3090
  .wy-content-pdf .annotationLayer .buttonWidgetAnnotation.checkBox input,
@@ -3096,44 +3092,50 @@ tr.wy-pager td .wy-spinner {
3096
3092
  -webkit-appearance: none;
3097
3093
  -moz-appearance: none;
3098
3094
  appearance: none;
3099
- padding: 0;
3095
+ }
3096
+ .wy-content-pdf .annotationLayer .popupTriggerArea {
3097
+ height: 100%;
3098
+ width: 100%;
3100
3099
  }
3101
3100
  .wy-content-pdf .annotationLayer .popupWrapper {
3102
3101
  position: absolute;
3103
- width: 20em;
3102
+ font-size: calc(9px * var(--scale-factor));
3103
+ width: 100%;
3104
+ min-width: calc(180px * var(--scale-factor));
3105
+ pointer-events: none;
3104
3106
  }
3105
3107
  .wy-content-pdf .annotationLayer .popup {
3106
3108
  position: absolute;
3107
- z-index: 200;
3108
- max-width: 20em;
3109
+ max-width: calc(180px * var(--scale-factor));
3109
3110
  background-color: rgb(255, 255, 153);
3110
- box-shadow: 0 2px 5px rgb(136, 136, 136);
3111
- border-radius: 2px;
3112
- padding: 6px;
3113
- margin-left: 5px;
3111
+ box-shadow: 0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) rgb(136, 136, 136);
3112
+ border-radius: calc(2px * var(--scale-factor));
3113
+ padding: calc(6px * var(--scale-factor));
3114
+ margin-left: calc(5px * var(--scale-factor));
3114
3115
  cursor: pointer;
3115
3116
  font: message-box;
3116
- font-size: 9px;
3117
3117
  white-space: normal;
3118
3118
  word-wrap: break-word;
3119
+ pointer-events: auto;
3119
3120
  }
3120
3121
  .wy-content-pdf .annotationLayer .popup > * {
3121
- font-size: 9px;
3122
+ font-size: calc(9px * var(--scale-factor));
3122
3123
  }
3123
3124
  .wy-content-pdf .annotationLayer .popup h1 {
3124
3125
  display: inline-block;
3125
3126
  }
3126
3127
  .wy-content-pdf .annotationLayer .popupDate {
3127
3128
  display: inline-block;
3128
- margin-left: 5px;
3129
+ margin-left: calc(5px * var(--scale-factor));
3129
3130
  }
3130
3131
  .wy-content-pdf .annotationLayer .popupContent {
3131
3132
  border-top: 1px solid rgb(51, 51, 51);
3132
- margin-top: 2px;
3133
- padding-top: 2px;
3133
+ margin-top: calc(2px * var(--scale-factor));
3134
+ padding-top: calc(2px * var(--scale-factor));
3134
3135
  }
3135
3136
  .wy-content-pdf .annotationLayer .richText > * {
3136
3137
  white-space: pre-wrap;
3138
+ font-size: calc(9px * var(--scale-factor));
3137
3139
  }
3138
3140
  .wy-content-pdf .annotationLayer .highlightAnnotation,
3139
3141
  .wy-content-pdf .annotationLayer .underlineAnnotation,
@@ -3151,6 +3153,34 @@ tr.wy-pager td .wy-spinner {
3151
3153
  .wy-content-pdf .annotationLayer .fileAttachmentAnnotation {
3152
3154
  cursor: pointer;
3153
3155
  }
3156
+ .wy-content-pdf .annotationLayer section svg {
3157
+ position: absolute;
3158
+ width: 100%;
3159
+ height: 100%;
3160
+ }
3161
+ .wy-content-pdf .annotationLayer .annotationTextContent {
3162
+ position: absolute;
3163
+ width: 100%;
3164
+ height: 100%;
3165
+ opacity: 0;
3166
+ color: transparent;
3167
+ -webkit-user-select: none;
3168
+ -moz-user-select: none;
3169
+ user-select: none;
3170
+ pointer-events: none;
3171
+ }
3172
+ .wy-content-pdf .annotationLayer .annotationTextContent span {
3173
+ width: 100%;
3174
+ display: inline-block;
3175
+ }
3176
+ @media (forced-colors: active) {
3177
+ .wy-content-pdf .xfaLayer *:required {
3178
+ outline: 1.5px solid selectedItem;
3179
+ }
3180
+ }
3181
+ .wy-content-pdf .xfaLayer {
3182
+ background-color: transparent;
3183
+ }
3154
3184
  .wy-content-pdf .xfaLayer .highlight {
3155
3185
  margin: -1px;
3156
3186
  padding: 1px;
@@ -3172,12 +3202,6 @@ tr.wy-pager td .wy-spinner {
3172
3202
  .wy-content-pdf .xfaLayer .highlight.selected {
3173
3203
  background-color: rgb(203, 223, 203);
3174
3204
  }
3175
- .wy-content-pdf .xfaLayer ::-moz-selection {
3176
- background: rgb(0, 0, 255);
3177
- }
3178
- .wy-content-pdf .xfaLayer ::selection {
3179
- background: rgb(0, 0, 255);
3180
- }
3181
3205
  .wy-content-pdf .xfaPage {
3182
3206
  overflow: hidden;
3183
3207
  position: relative;
@@ -3212,6 +3236,9 @@ tr.wy-pager td .wy-spinner {
3212
3236
  pointer-events: auto;
3213
3237
  line-height: inherit;
3214
3238
  }
3239
+ .wy-content-pdf .xfaLayer *:required {
3240
+ outline: 1.5px solid red;
3241
+ }
3215
3242
  .wy-content-pdf .xfaLayer div {
3216
3243
  pointer-events: none;
3217
3244
  }
@@ -3294,12 +3321,12 @@ tr.wy-pager td .wy-spinner {
3294
3321
  .wy-content-pdf .xfaSelect:focus {
3295
3322
  background-image: none;
3296
3323
  background-color: transparent;
3297
- outline: auto;
3324
+ outline: var(--xfa-focus-outline);
3298
3325
  outline-offset: -1px;
3299
3326
  }
3300
3327
  .wy-content-pdf .xfaCheckbox:focus,
3301
3328
  .wy-content-pdf .xfaRadio:focus {
3302
- outline: auto;
3329
+ outline: var(--xfa-focus-outline);
3303
3330
  }
3304
3331
  .wy-content-pdf .xfaTextfield,
3305
3332
  .wy-content-pdf .xfaSelect {
@@ -3310,6 +3337,11 @@ tr.wy-pager td .wy-spinner {
3310
3337
  resize: none;
3311
3338
  background-image: var(--xfa-unfocused-field-background);
3312
3339
  }
3340
+ .wy-content-pdf .xfaSelect {
3341
+ padding-left: 2px;
3342
+ padding-right: 2px;
3343
+ padding-inline: 2px;
3344
+ }
3313
3345
  .wy-content-pdf .xfaTop > .xfaTextfield,
3314
3346
  .wy-content-pdf .xfaTop > .xfaSelect,
3315
3347
  .wy-content-pdf .xfaBottom > .xfaTextfield,
@@ -3420,6 +3452,120 @@ tr.wy-pager td .wy-spinner {
3420
3452
  text-overflow: "";
3421
3453
  }
3422
3454
  }
3455
+ .wy-content-pdf [data-editor-rotation="90"] {
3456
+ transform: rotate(90deg);
3457
+ }
3458
+ .wy-content-pdf [data-editor-rotation="180"] {
3459
+ transform: rotate(180deg);
3460
+ }
3461
+ .wy-content-pdf [data-editor-rotation="270"] {
3462
+ transform: rotate(270deg);
3463
+ }
3464
+ .wy-content-pdf .annotationEditorLayer {
3465
+ background: transparent;
3466
+ position: absolute;
3467
+ top: 0;
3468
+ left: 0;
3469
+ font-size: calc(100px * var(--scale-factor));
3470
+ transform-origin: 0 0;
3471
+ cursor: auto;
3472
+ z-index: 20000;
3473
+ }
3474
+ .wy-content-pdf .annotationEditorLayer.freeTextEditing {
3475
+ cursor: var(--editorFreeText-editing-cursor);
3476
+ }
3477
+ .wy-content-pdf .annotationEditorLayer.inkEditing {
3478
+ cursor: var(--editorInk-editing-cursor);
3479
+ }
3480
+ .wy-content-pdf .annotationEditorLayer .selectedEditor {
3481
+ outline: var(--focus-outline);
3482
+ resize: none;
3483
+ }
3484
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor {
3485
+ position: absolute;
3486
+ background: transparent;
3487
+ border-radius: 3px;
3488
+ padding: calc(var(--freetext-padding) * var(--scale-factor));
3489
+ resize: none;
3490
+ width: auto;
3491
+ height: auto;
3492
+ z-index: 1;
3493
+ transform-origin: 0 0;
3494
+ touch-action: none;
3495
+ cursor: auto;
3496
+ }
3497
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor .internal {
3498
+ background: transparent;
3499
+ border: none;
3500
+ top: 0;
3501
+ left: 0;
3502
+ overflow: visible;
3503
+ white-space: nowrap;
3504
+ resize: none;
3505
+ font: 10px sans-serif;
3506
+ line-height: var(--freetext-line-height);
3507
+ }
3508
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor .overlay {
3509
+ position: absolute;
3510
+ display: none;
3511
+ background: transparent;
3512
+ top: 0;
3513
+ left: 0;
3514
+ width: 100%;
3515
+ height: 100%;
3516
+ }
3517
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor .overlay.enabled {
3518
+ display: block;
3519
+ }
3520
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor .internal:empty::before {
3521
+ content: attr(default-content);
3522
+ color: gray;
3523
+ }
3524
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor .internal:focus {
3525
+ outline: none;
3526
+ }
3527
+ .wy-content-pdf .annotationEditorLayer .inkEditor.disabled {
3528
+ resize: none;
3529
+ }
3530
+ .wy-content-pdf .annotationEditorLayer .inkEditor.disabled.selectedEditor {
3531
+ resize: horizontal;
3532
+ }
3533
+ .wy-content-pdf .annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),
3534
+ .wy-content-pdf .annotationEditorLayer .inkEditor:hover:not(.selectedEditor) {
3535
+ outline: var(--hover-outline);
3536
+ }
3537
+ .wy-content-pdf .annotationEditorLayer .inkEditor {
3538
+ position: absolute;
3539
+ background: transparent;
3540
+ border-radius: 3px;
3541
+ overflow: auto;
3542
+ width: 100%;
3543
+ height: 100%;
3544
+ z-index: 1;
3545
+ transform-origin: 0 0;
3546
+ cursor: auto;
3547
+ }
3548
+ .wy-content-pdf .annotationEditorLayer .inkEditor.editing {
3549
+ resize: none;
3550
+ cursor: inherit;
3551
+ }
3552
+ .wy-content-pdf .annotationEditorLayer .inkEditor .inkEditorCanvas {
3553
+ position: absolute;
3554
+ top: 0;
3555
+ left: 0;
3556
+ width: 100%;
3557
+ height: 100%;
3558
+ touch-action: none;
3559
+ }
3560
+ .wy-content-pdf [data-main-rotation="90"] {
3561
+ transform: rotate(90deg) translateY(-100%);
3562
+ }
3563
+ .wy-content-pdf [data-main-rotation="180"] {
3564
+ transform: rotate(180deg) translate(-100%, -100%);
3565
+ }
3566
+ .wy-content-pdf [data-main-rotation="270"] {
3567
+ transform: rotate(270deg) translateX(-100%);
3568
+ }
3423
3569
  .wy-content-pdf .pdfViewer {
3424
3570
  padding-bottom: var(--pdfViewer-padding-bottom);
3425
3571
  }
@@ -3434,14 +3580,15 @@ tr.wy-pager td .wy-spinner {
3434
3580
  position: relative;
3435
3581
  overflow: visible;
3436
3582
  border: var(--page-border);
3583
+ -o-border-image: var(--page-border-image);
3584
+ border-image: var(--page-border-image);
3437
3585
  background-clip: content-box;
3438
- box-shadow: var(--wy-shadow-level2);
3439
- background-color: #ffffff;
3586
+ background-color: rgb(255, 255, 255);
3440
3587
  }
3441
3588
  .wy-content-pdf .pdfViewer .dummyPage {
3442
3589
  position: relative;
3443
3590
  width: 0;
3444
- /* The height is set via JS, see `BaseViewer.#ensurePageViewVisible`. */
3591
+ height: var(--viewer-container-height);
3445
3592
  }
3446
3593
  .wy-content-pdf .pdfViewer.removePageBorders .page {
3447
3594
  margin: 0 auto 10px;
@@ -3510,6 +3657,12 @@ tr.wy-pager td .wy-spinner {
3510
3657
  .wy-content-pdf .pdfViewer .page .loadingIcon.notVisible {
3511
3658
  background: none;
3512
3659
  }
3660
+ .wy-content-pdf .pdfViewer.enablePermissions .textLayer span {
3661
+ -webkit-user-select: none !important;
3662
+ -moz-user-select: none !important;
3663
+ user-select: none !important;
3664
+ cursor: not-allowed;
3665
+ }
3513
3666
  .wy-content-pdf .pdfPresentationMode .pdfViewer {
3514
3667
  padding-bottom: 0;
3515
3668
  }
@@ -3520,6 +3673,10 @@ tr.wy-pager td .wy-spinner {
3520
3673
  margin: 0 auto;
3521
3674
  border: 2px solid transparent;
3522
3675
  }
3676
+ .wy-content-pdf .pdfViewer .page {
3677
+ box-shadow: var(--wy-shadow-level2);
3678
+ background-color: #ffffff;
3679
+ }
3523
3680
 
3524
3681
  .wy-content-text {
3525
3682
  word-break: break-word;
@@ -3592,6 +3749,51 @@ tr.wy-pager td .wy-spinner {
3592
3749
  background-clip: content-box;
3593
3750
  }
3594
3751
 
3752
+ .wy-sheet {
3753
+ --wy-scrollbar-adjust-top: 0;
3754
+ --wy-scrollbar-adjust-bottom: 0;
3755
+ --wy-component-background-color: var(--wy-surface-3);
3756
+ --wy-component-color: var(--wy-on-surface);
3757
+ background-color: var(--wy-component-background-color);
3758
+ color: var(--wy-component-color);
3759
+ position: fixed;
3760
+ z-index: 1055;
3761
+ display: flex;
3762
+ flex-direction: column;
3763
+ bottom: 0.5rem;
3764
+ left: 0.5rem;
3765
+ right: 0.5rem;
3766
+ max-height: max(50vh, 50%);
3767
+ min-height: 3rem;
3768
+ margin: 0.5rem auto;
3769
+ max-width: 32rem;
3770
+ transition: opacity var(--wy-transition);
3771
+ border-radius: var(--wy-border-radius);
3772
+ box-shadow: var(--wy-shadow-level1);
3773
+ }
3774
+ .wy-sheet > .wy-appbars, .wy-sheet > .wy-appbar {
3775
+ border-top-left-radius: inherit;
3776
+ border-top-right-radius: inherit;
3777
+ }
3778
+
3779
+ .wy-sheet-body {
3780
+ overflow: hidden;
3781
+ padding: 0.5rem;
3782
+ position: relative;
3783
+ min-height: 3rem;
3784
+ }
3785
+
3786
+ .wy-sheet:not(.wy-show) {
3787
+ opacity: 0;
3788
+ transform: translateY(32rem);
3789
+ }
3790
+ .wy-sheet.wy-show {
3791
+ opacity: 1;
3792
+ transform: none;
3793
+ transition: transform var(--wy-transition), opacity var(--wy-transition);
3794
+ pointer-events: auto;
3795
+ }
3796
+
3595
3797
  .wy-spinner, .wy-icon[data-icon=spinner] {
3596
3798
  align-self: center;
3597
3799
  justify-self: center;
@@ -3609,6 +3811,14 @@ tr.wy-pager td .wy-spinner {
3609
3811
  .wy-spinner.wy-spin circle, .wy-icon[data-icon=spinner].wy-spin circle {
3610
3812
  animation: wy-dash 1.4s ease-in-out infinite, wy-color 2.8s ease-in-out infinite;
3611
3813
  }
3814
+ .wy-spinner.wy-spinner-overlay, .wy-icon[data-icon=spinner].wy-spinner-overlay {
3815
+ position: absolute;
3816
+ left: 0;
3817
+ right: 0;
3818
+ top: 0;
3819
+ bottom: 0;
3820
+ margin: auto;
3821
+ }
3612
3822
 
3613
3823
  @keyframes wy-rotate {
3614
3824
  100% {
@@ -3719,6 +3929,8 @@ tr.wy-pager td .wy-spinner {
3719
3929
  .wy-table-sort-link {
3720
3930
  display: inline-flex;
3721
3931
  align-items: center;
3932
+ color: var(--wy-link);
3933
+ cursor: pointer;
3722
3934
  }
3723
3935
 
3724
3936
  .wy-title {
@@ -3790,6 +4002,224 @@ tr.wy-pager td .wy-spinner {
3790
4002
  margin-top: 0.5rem;
3791
4003
  }
3792
4004
 
4005
+ .wy-message-editor-top {
4006
+ background-color: var(--wy-component-background-color);
4007
+ color: var(--wy-component-color);
4008
+ }
4009
+ @supports (position: sticky) {
4010
+ .wy-message-editor-top {
4011
+ position: sticky;
4012
+ top: 0;
4013
+ z-index: 1020;
4014
+ }
4015
+ }
4016
+
4017
+ .wy-message-editor-bottom {
4018
+ background-color: var(--wy-component-background-color);
4019
+ color: var(--wy-component-color);
4020
+ }
4021
+ @supports (position: sticky) {
4022
+ .wy-message-editor-bottom {
4023
+ position: sticky;
4024
+ bottom: 0;
4025
+ z-index: 1020;
4026
+ }
4027
+ }
4028
+
4029
+ .wy-message-editor-dragging::after {
4030
+ content: "Drop files here to upload.";
4031
+ background-color: rgba(255, 255, 255, 0.5);
4032
+ display: flex;
4033
+ justify-content: center;
4034
+ align-items: center;
4035
+ border: 2px dashed var(--wy-primary);
4036
+ font-weight: 700;
4037
+ z-index: 10000;
4038
+ position: absolute;
4039
+ top: 0;
4040
+ left: 0;
4041
+ bottom: 0;
4042
+ right: 0;
4043
+ }
4044
+
4045
+ .wy-message-form .wy-spinner {
4046
+ display: none;
4047
+ }
4048
+ .wy-message-form.wy-uploading .wy-spinner {
4049
+ display: block;
4050
+ }
4051
+ .wy-message-form.wy-uploading [data-icon=plus] {
4052
+ display: none;
4053
+ }
4054
+ .wy-message-form .wy-picker-list:not(:empty) {
4055
+ border-top: 1px solid var(--wy-outline-variant);
4056
+ }
4057
+
4058
+ .wy-message-editor-inputs {
4059
+ display: flex;
4060
+ flex-direction: row;
4061
+ align-items: flex-end;
4062
+ padding: 0.5rem 0.25rem;
4063
+ min-height: 3.5rem;
4064
+ }
4065
+ .wy-message-editor-inputs > :not(:last-child) {
4066
+ margin-right: 0.25rem;
4067
+ }
4068
+
4069
+ .wy-message-editor-buttons {
4070
+ flex: 1 0 auto;
4071
+ }
4072
+
4073
+ .wy-message-editor-text {
4074
+ flex: 1 1 100%;
4075
+ display: flex;
4076
+ flex-direction: column;
4077
+ }
4078
+
4079
+ .wy-message-editor-mention {
4080
+ background: blue;
4081
+ color: white;
4082
+ }
4083
+
4084
+ .wy-message-editor-link {
4085
+ background: blue;
4086
+ color: white;
4087
+ }
4088
+
4089
+ .wy-message-editor .ͼ1.cm-editor,
4090
+ .wy-message-editor-grow::after,
4091
+ .wy-message-editor-grow > textarea,
4092
+ .wy-message-editor-textfield {
4093
+ flex: 1 1 100%;
4094
+ max-height: 11.25rem;
4095
+ background-color: var(--wy-background);
4096
+ color: var(--wy-on-background);
4097
+ border-radius: 1.25rem;
4098
+ border: var(--wy-input-border-width) solid var(--wy-background);
4099
+ }
4100
+ .wy-message-editor .ͼ1.cm-editor:focus,
4101
+ .wy-message-editor-grow:focus::after,
4102
+ .wy-message-editor-grow > textarea:focus,
4103
+ .wy-message-editor-textfield:focus {
4104
+ border-color: var(--wy-outline-variant);
4105
+ }
4106
+
4107
+ .wy-message-editor .ͼ1.cm-editor .cm-content,
4108
+ .wy-message-editor-textcontent {
4109
+ font-family: var(--wy-font-family);
4110
+ font-size: var(--wy-font-size-base);
4111
+ padding: var(--wy-input-padding-y) var(--wy-input-padding-x);
4112
+ }
4113
+
4114
+ .wy-message-editor-grow {
4115
+ display: grid;
4116
+ }
4117
+ .wy-message-editor-grow::after,
4118
+ .wy-message-editor-grow > textarea {
4119
+ grid-area: 1/1/2/2;
4120
+ }
4121
+ .wy-message-editor-grow::after {
4122
+ content: attr(data-replicated-value) " ";
4123
+ white-space: pre-wrap;
4124
+ visibility: hidden;
4125
+ }
4126
+ .wy-message-editor-grow > textarea {
4127
+ resize: none;
4128
+ overflow: hidden;
4129
+ }
4130
+
4131
+ .wy-message-editor .ͼ1 .cm-scroller {
4132
+ font-family: unset;
4133
+ line-height: 1.5;
4134
+ }
4135
+ .wy-message-editor .ͼ1 .cm-widgetBuffer {
4136
+ vertical-align: unset;
4137
+ }
4138
+ .wy-message-editor .ͼ1 .cm-placeholder {
4139
+ color: var(--wy-outline);
4140
+ }
4141
+ .wy-message-editor .ͼ2 .cm-content {
4142
+ caret-color: var(--wy-on-background);
4143
+ }
4144
+ .wy-message-editor .ͼ1.cm-editor.cm-focused {
4145
+ /* default theme in codemirror seems difficult to override */
4146
+ --wy-component-color: var(--wy-on-background);
4147
+ color: var(--wy-component-color);
4148
+ border-color: var(--wy-outline-variant);
4149
+ outline: 0;
4150
+ }
4151
+ .wy-message-editor .ͼ1.cm-editor .cm-scroller {
4152
+ overflow: auto;
4153
+ }
4154
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller {
4155
+ scrollbar-width: thin;
4156
+ scrollbar-color: var(--wy-outline) transparent;
4157
+ }
4158
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar {
4159
+ height: 0.625rem;
4160
+ width: 0.625rem;
4161
+ background: transparent;
4162
+ z-index: 999;
4163
+ }
4164
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar-track {
4165
+ background: transparent;
4166
+ }
4167
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar-thumb {
4168
+ background-color: var(--wy-outline);
4169
+ border: 0.125rem solid transparent;
4170
+ border-radius: 0.5rem;
4171
+ background-clip: padding-box;
4172
+ opacity: 75%;
4173
+ }
4174
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar-thumb:hover {
4175
+ background-color: var(--wy-outline-variant);
4176
+ opacity: 75%;
4177
+ }
4178
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar-thumb:window-inactive {
4179
+ background-color: var(--wy-outline);
4180
+ opacity: 50%;
4181
+ }
4182
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar-button:vertical:start:single-button {
4183
+ height: 0.375rem;
4184
+ }
4185
+ .wy-scrollbars .wy-message-editor .ͼ1.cm-editor .cm-scroller::-webkit-scrollbar-button:vertical:end:single-button {
4186
+ height: 0.375rem;
4187
+ }
4188
+ .wy-message-editor .wy-is-invalid + [data-editor-target] .cm-editor, .wy-message-editor .wy-is-invalid .cm-editor {
4189
+ border-color: var(--wy-error) !important;
4190
+ }
4191
+ .wy-message-editor .ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul {
4192
+ font-family: unset;
4193
+ max-height: 15rem;
4194
+ }
4195
+ .wy-message-editor .ͼ1 .cm-tooltip.cm-tooltip-autocomplete > ul > li {
4196
+ padding: 0;
4197
+ }
4198
+ .wy-message-editor .ͼ2 .cm-tooltip {
4199
+ border: none;
4200
+ background-clip: padding-box;
4201
+ background-color: var(--wy-surface-2);
4202
+ color: var(--wy-on-surface);
4203
+ border-radius: var(--wy-border-radius);
4204
+ box-shadow: var(--wy-shadow-level1);
4205
+ overflow: hidden;
4206
+ z-index: 1000;
4207
+ }
4208
+ .wy-message-editor .ͼ2 .cm-tooltip-autocomplete ul li[aria-selected] {
4209
+ background: var(--wy-primary-container);
4210
+ color: unset;
4211
+ }
4212
+ .wy-message-editor .cm-tooltip-autocomplete .cm-completionLabel {
4213
+ display: none;
4214
+ }
4215
+ .wy-message-editor .cm-tooltip-autocomplete .wy-item-hover:hover, .wy-message-editor .cm-tooltip-autocomplete .wy-item-hover:focus {
4216
+ background: var(--wy-surface-variant);
4217
+ }
4218
+ .wy-message-editor .cm-tooltip-autocomplete .wy-avatar {
4219
+ width: 32px;
4220
+ height: 32px;
4221
+ }
4222
+
3793
4223
  .wy-messenger-provider {
3794
4224
  display: flex;
3795
4225
  min-height: 0;