@weavy/uikit-react 14.0.3 → 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 +10 -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
@@ -2,33 +2,73 @@
2
2
  @use "base/colors";
3
3
  @use "base/scroll";
4
4
 
5
- :root, :host > * {
6
- --pdfViewer-padding-bottom: 0;
7
- --page-margin: 2rem auto;
8
- --page-border: none;
9
- --spreadHorizontalWrapped-margin-LR: -3.5px;
10
- --zoom-factor: 1;
11
- --viewport-scale-factor: 1;
5
+ // pdfjs :roots copied from pdfjs-dist/web/pdf_viewer.css
6
+
7
+ :root {
8
+ --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>");
9
+ --input-focus-border-color: Highlight;
10
+ --input-focus-outline: 1px solid Canvas;
11
+ --input-unfocused-border-color: transparent;
12
+ --input-disabled-border-color: transparent;
13
+ --input-hover-border-color: black;
12
14
  }
13
15
 
14
- // How to test?
15
- @media screen and (forced-colors: active) {
16
- :root, :host > * {
17
- --pdfViewer-padding-bottom: 9px;
18
- --page-margin: 9px auto 0;
19
- --page-border: none;
20
- --spreadHorizontalWrapped-margin-LR: 4.5px;
16
+ @media (forced-colors: active) {
17
+ :root {
18
+ --input-focus-border-color: CanvasText;
19
+ --input-unfocused-border-color: ActiveText;
20
+ --input-disabled-border-color: GrayText;
21
+ --input-hover-border-color: Highlight;
21
22
  }
22
23
  }
23
24
 
24
25
  :root {
25
- --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>");
26
+ --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>");
27
+ --xfa-focus-outline: auto;
28
+ }
29
+
30
+ @media (forced-colors: active) {
31
+ :root {
32
+ --xfa-focus-outline: 2px solid CanvasText;
33
+ }
26
34
  }
27
35
 
28
36
  :root {
29
- --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>");
37
+ --focus-outline: solid 2px blue;
38
+ --hover-outline: dashed 2px blue;
39
+ --freetext-line-height: 1.35;
40
+ --freetext-padding: 2px;
41
+ --editorFreeText-editing-cursor: text;
42
+ --editorInk-editing-cursor: pointer;
43
+ }
44
+
45
+ @media (forced-colors: active) {
46
+ :root {
47
+ --focus-outline: solid 3px ButtonText;
48
+ --hover-outline: dashed 3px ButtonText;
49
+ }
30
50
  }
31
51
 
52
+ :root {
53
+ --viewer-container-height: 0;
54
+ --pdfViewer-padding-bottom: 0;
55
+ --page-margin: 2rem auto;
56
+ --page-border: none;
57
+ --page-border-image: none;
58
+ --spreadHorizontalWrapped-margin-LR: -3.5px;
59
+ --scale-factor: 1;
60
+ }
61
+
62
+ @media screen and (forced-colors: active) {
63
+ :root {
64
+ --page-border: 1px solid CanvasText;
65
+ --page-border-image: none;
66
+ --spreadHorizontalWrapped-margin-LR: 3.5px;
67
+ }
68
+ }
69
+
70
+ // Weavy styling
71
+
32
72
  .wy-content-pdf {
33
73
 
34
74
  .wy-input[data-pdf-target=pageNumber] {
@@ -57,777 +97,11 @@
57
97
  }
58
98
  }
59
99
  }
60
- /* Copyright 2014 Mozilla Foundation
61
- *
62
- * Licensed under the Apache License, Version 2.0 (the "License");
63
- * you may not use this file except in compliance with the License.
64
- * You may obtain a copy of the License at
65
- *
66
- * http://www.apache.org/licenses/LICENSE-2.0
67
- *
68
- * Unless required by applicable law or agreed to in writing, software
69
- * distributed under the License is distributed on an "AS IS" BASIS,
70
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
71
- * See the License for the specific language governing permissions and
72
- * limitations under the License.
73
- */
74
-
75
- .textLayer {
76
- position: absolute;
77
- text-align: initial;
78
- left: 0;
79
- top: 0;
80
- right: 0;
81
- bottom: 0;
82
- overflow: hidden;
83
- opacity: 0.2;
84
- line-height: 1;
85
- -webkit-text-size-adjust: none;
86
- -moz-text-size-adjust: none;
87
- text-size-adjust: none;
88
- }
89
-
90
- .textLayer span,
91
- .textLayer br {
92
- color: transparent;
93
- position: absolute;
94
- white-space: pre;
95
- cursor: text;
96
- transform-origin: 0% 0%;
97
- }
98
- /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
99
- * the problem doesn't show up in "text" reference tests. */
100
- .textLayer span.markedContent {
101
- top: 0;
102
- height: 0;
103
- }
104
-
105
- .textLayer .highlight {
106
- margin: -1px;
107
- padding: 1px;
108
- background-color: rgba(180, 0, 170, 1);
109
- border-radius: 4px;
110
- }
111
-
112
- .textLayer .highlight.appended {
113
- position: initial;
114
- }
115
-
116
- .textLayer .highlight.begin {
117
- border-radius: 4px 0 0 4px;
118
- }
119
-
120
- .textLayer .highlight.end {
121
- border-radius: 0 4px 4px 0;
122
- }
123
-
124
- .textLayer .highlight.middle {
125
- border-radius: 0;
126
- }
127
-
128
- .textLayer .highlight.selected {
129
- background-color: rgba(0, 100, 0, 1);
130
- }
131
-
132
- .textLayer ::-moz-selection {
133
- background: rgba(0, 0, 255, 1);
134
- }
135
-
136
- .textLayer ::selection {
137
- background: rgba(0, 0, 255, 1);
138
- }
139
- /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
140
- .textLayer br::-moz-selection {
141
- background: transparent;
142
- }
143
-
144
- .textLayer br::selection {
145
- background: transparent;
146
- }
147
-
148
- .textLayer .endOfContent {
149
- display: block;
150
- position: absolute;
151
- left: 0;
152
- top: 100%;
153
- right: 0;
154
- bottom: 0;
155
- z-index: -1;
156
- cursor: default;
157
- -webkit-user-select: none;
158
- -moz-user-select: none;
159
- user-select: none;
160
- }
161
-
162
- .textLayer .endOfContent.active {
163
- top: 0;
164
- }
165
-
166
-
167
-
168
-
169
- .annotationLayer section {
170
- position: absolute;
171
- text-align: initial;
172
- }
173
-
174
- .annotationLayer .linkAnnotation > a,
175
- .annotationLayer .buttonWidgetAnnotation.pushButton > a {
176
- position: absolute;
177
- font-size: 1em;
178
- top: 0;
179
- left: 0;
180
- width: 100%;
181
- height: 100%;
182
- }
183
-
184
- .annotationLayer .buttonWidgetAnnotation.pushButton > canvas {
185
- position: relative;
186
- top: 0;
187
- left: 0;
188
- z-index: -1;
189
- }
190
-
191
- .annotationLayer .linkAnnotation > a:hover,
192
- .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
193
- opacity: 0.2;
194
- background: rgba(255, 255, 0, 1);
195
- box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
196
- }
197
-
198
- .annotationLayer .textAnnotation img {
199
- position: absolute;
200
- cursor: pointer;
201
- }
202
-
203
- .annotationLayer .textWidgetAnnotation input,
204
- .annotationLayer .textWidgetAnnotation textarea,
205
- .annotationLayer .choiceWidgetAnnotation select,
206
- .annotationLayer .buttonWidgetAnnotation.checkBox input,
207
- .annotationLayer .buttonWidgetAnnotation.radioButton input {
208
- background-image: var(--annotation-unfocused-field-background);
209
- border: 1px solid transparent;
210
- box-sizing: border-box;
211
- font-size: 9px;
212
- height: 100%;
213
- margin: 0;
214
- padding: 0 3px;
215
- vertical-align: top;
216
- width: 100%;
217
- }
218
-
219
- .annotationLayer .choiceWidgetAnnotation select option {
220
- padding: 0;
221
- }
222
-
223
- .annotationLayer .buttonWidgetAnnotation.radioButton input {
224
- border-radius: 50%;
225
- }
226
-
227
- .annotationLayer .textWidgetAnnotation textarea {
228
- font: message-box;
229
- font-size: 9px;
230
- resize: none;
231
- }
232
-
233
- .annotationLayer .textWidgetAnnotation input[disabled],
234
- .annotationLayer .textWidgetAnnotation textarea[disabled],
235
- .annotationLayer .choiceWidgetAnnotation select[disabled],
236
- .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
237
- .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
238
- background: none;
239
- border: 1px solid transparent;
240
- cursor: not-allowed;
241
- }
242
-
243
- .annotationLayer .textWidgetAnnotation input:hover,
244
- .annotationLayer .textWidgetAnnotation textarea:hover,
245
- .annotationLayer .choiceWidgetAnnotation select:hover,
246
- .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
247
- .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
248
- border: 1px solid rgba(0, 0, 0, 1);
249
- }
250
-
251
- .annotationLayer .textWidgetAnnotation input:focus,
252
- .annotationLayer .textWidgetAnnotation textarea:focus,
253
- .annotationLayer .choiceWidgetAnnotation select:focus {
254
- background: none;
255
- border: 1px solid transparent;
256
- }
257
-
258
- .annotationLayer .textWidgetAnnotation input :focus,
259
- .annotationLayer .textWidgetAnnotation textarea :focus,
260
- .annotationLayer .choiceWidgetAnnotation select :focus,
261
- .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
262
- .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
263
- background-image: none;
264
- background-color: transparent;
265
- outline: auto;
266
- }
267
-
268
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
269
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
270
- .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
271
- background-color: rgba(0, 0, 0, 1);
272
- content: "";
273
- display: block;
274
- position: absolute;
275
- }
276
-
277
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
278
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
279
- height: 80%;
280
- left: 45%;
281
- width: 1px;
282
- }
283
-
284
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
285
- transform: rotate(45deg);
286
- }
287
-
288
- .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
289
- transform: rotate(-45deg);
290
- }
291
-
292
- .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
293
- border-radius: 50%;
294
- height: 50%;
295
- left: 30%;
296
- top: 20%;
297
- width: 50%;
298
- }
299
-
300
- .annotationLayer .textWidgetAnnotation input.comb {
301
- font-family: monospace;
302
- padding-left: 2px;
303
- padding-right: 0;
304
- }
305
-
306
- .annotationLayer .textWidgetAnnotation input.comb:focus {
307
- /*
308
- * Letter spacing is placed on the right side of each character. Hence, the
309
- * letter spacing of the last character may be placed outside the visible
310
- * area, causing horizontal scrolling. We avoid this by extending the width
311
- * when the element has focus and revert this when it loses focus.
312
- */
313
- width: 103%;
314
- }
315
-
316
- .annotationLayer .buttonWidgetAnnotation.checkBox input,
317
- .annotationLayer .buttonWidgetAnnotation.radioButton input {
318
- -webkit-appearance: none;
319
- -moz-appearance: none;
320
- appearance: none;
321
- padding: 0;
322
- }
323
-
324
- .annotationLayer .popupWrapper {
325
- position: absolute;
326
- width: 20em;
327
- }
328
-
329
- .annotationLayer .popup {
330
- position: absolute;
331
- z-index: 200;
332
- max-width: 20em;
333
- background-color: rgba(255, 255, 153, 1);
334
- box-shadow: 0 2px 5px rgba(136, 136, 136, 1);
335
- border-radius: 2px;
336
- padding: 6px;
337
- margin-left: 5px;
338
- cursor: pointer;
339
- font: message-box;
340
- font-size: 9px;
341
- white-space: normal;
342
- word-wrap: break-word;
343
- }
344
-
345
- .annotationLayer .popup > * {
346
- font-size: 9px;
347
- }
348
-
349
- .annotationLayer .popup h1 {
350
- display: inline-block;
351
- }
352
-
353
- .annotationLayer .popupDate {
354
- display: inline-block;
355
- margin-left: 5px;
356
- }
357
-
358
- .annotationLayer .popupContent {
359
- border-top: 1px solid rgba(51, 51, 51, 1);
360
- margin-top: 2px;
361
- padding-top: 2px;
362
- }
363
-
364
- .annotationLayer .richText > * {
365
- white-space: pre-wrap;
366
- }
367
-
368
- .annotationLayer .highlightAnnotation,
369
- .annotationLayer .underlineAnnotation,
370
- .annotationLayer .squigglyAnnotation,
371
- .annotationLayer .strikeoutAnnotation,
372
- .annotationLayer .freeTextAnnotation,
373
- .annotationLayer .lineAnnotation svg line,
374
- .annotationLayer .squareAnnotation svg rect,
375
- .annotationLayer .circleAnnotation svg ellipse,
376
- .annotationLayer .polylineAnnotation svg polyline,
377
- .annotationLayer .polygonAnnotation svg polygon,
378
- .annotationLayer .caretAnnotation,
379
- .annotationLayer .inkAnnotation svg polyline,
380
- .annotationLayer .stampAnnotation,
381
- .annotationLayer .fileAttachmentAnnotation {
382
- cursor: pointer;
383
- }
384
-
385
-
386
-
387
-
388
- .xfaLayer .highlight {
389
- margin: -1px;
390
- padding: 1px;
391
- background-color: rgba(239, 203, 237, 1);
392
- border-radius: 4px;
393
- }
394
-
395
- .xfaLayer .highlight.appended {
396
- position: initial;
397
- }
398
-
399
- .xfaLayer .highlight.begin {
400
- border-radius: 4px 0 0 4px;
401
- }
402
-
403
- .xfaLayer .highlight.end {
404
- border-radius: 0 4px 4px 0;
405
- }
406
-
407
- .xfaLayer .highlight.middle {
408
- border-radius: 0;
409
- }
410
-
411
- .xfaLayer .highlight.selected {
412
- background-color: rgba(203, 223, 203, 1);
413
- }
414
-
415
- .xfaLayer ::-moz-selection {
416
- background: rgba(0, 0, 255, 1);
417
- }
418
-
419
- .xfaLayer ::selection {
420
- background: rgba(0, 0, 255, 1);
421
- }
422
-
423
- .xfaPage {
424
- overflow: hidden;
425
- position: relative;
426
- }
427
-
428
- .xfaContentarea {
429
- position: absolute;
430
- }
431
-
432
- .xfaPrintOnly {
433
- display: none;
434
- }
435
-
436
- .xfaLayer {
437
- position: absolute;
438
- text-align: initial;
439
- top: 0;
440
- left: 0;
441
- transform-origin: 0 0;
442
- line-height: 1.2;
443
- }
444
-
445
- .xfaLayer * {
446
- color: inherit;
447
- font: inherit;
448
- font-style: inherit;
449
- font-weight: inherit;
450
- font-kerning: inherit;
451
- letter-spacing: -0.01px;
452
- text-align: inherit;
453
- text-decoration: inherit;
454
- box-sizing: border-box;
455
- background-color: transparent;
456
- padding: 0;
457
- margin: 0;
458
- pointer-events: auto;
459
- line-height: inherit;
460
- }
461
-
462
- .xfaLayer div {
463
- pointer-events: none;
464
- }
465
-
466
- .xfaLayer svg {
467
- pointer-events: none;
468
- }
469
-
470
- .xfaLayer svg * {
471
- pointer-events: none;
472
- }
473
-
474
- .xfaLayer a {
475
- color: blue;
476
- }
477
-
478
- .xfaRich li {
479
- margin-left: 3em;
480
- }
481
-
482
- .xfaFont {
483
- color: black;
484
- font-weight: normal;
485
- font-kerning: none;
486
- font-size: 10px;
487
- font-style: normal;
488
- letter-spacing: 0;
489
- text-decoration: none;
490
- vertical-align: 0;
491
- }
492
-
493
- .xfaCaption {
494
- overflow: hidden;
495
- flex: 0 0 auto;
496
- }
497
-
498
- .xfaCaptionForCheckButton {
499
- overflow: hidden;
500
- flex: 1 1 auto;
501
- }
502
-
503
- .xfaLabel {
504
- height: 100%;
505
- width: 100%;
506
- }
507
-
508
- .xfaLeft {
509
- display: flex;
510
- flex-direction: row;
511
- align-items: center;
512
- }
513
-
514
- .xfaRight {
515
- display: flex;
516
- flex-direction: row-reverse;
517
- align-items: center;
518
- }
519
-
520
- .xfaLeft > .xfaCaption,
521
- .xfaLeft > .xfaCaptionForCheckButton,
522
- .xfaRight > .xfaCaption,
523
- .xfaRight > .xfaCaptionForCheckButton {
524
- max-height: 100%;
525
- }
526
-
527
- .xfaTop {
528
- display: flex;
529
- flex-direction: column;
530
- align-items: flex-start;
531
- }
532
-
533
- .xfaBottom {
534
- display: flex;
535
- flex-direction: column-reverse;
536
- align-items: flex-start;
537
- }
538
-
539
- .xfaTop > .xfaCaption,
540
- .xfaTop > .xfaCaptionForCheckButton,
541
- .xfaBottom > .xfaCaption,
542
- .xfaBottom > .xfaCaptionForCheckButton {
543
- width: 100%;
544
- }
545
-
546
- .xfaBorder {
547
- background-color: transparent;
548
- position: absolute;
549
- pointer-events: none;
550
- }
551
-
552
- .xfaWrapped {
553
- width: 100%;
554
- height: 100%;
555
- }
556
-
557
- .xfaTextfield:focus,
558
- .xfaSelect:focus {
559
- background-image: none;
560
- background-color: transparent;
561
- outline: auto;
562
- outline-offset: -1px;
563
- }
564
-
565
- .xfaCheckbox:focus,
566
- .xfaRadio:focus {
567
- outline: auto;
568
- }
569
-
570
- .xfaTextfield,
571
- .xfaSelect {
572
- height: 100%;
573
- width: 100%;
574
- flex: 1 1 auto;
575
- border: none;
576
- resize: none;
577
- background-image: var(--xfa-unfocused-field-background);
578
- }
579
-
580
- .xfaTop > .xfaTextfield,
581
- .xfaTop > .xfaSelect,
582
- .xfaBottom > .xfaTextfield,
583
- .xfaBottom > .xfaSelect {
584
- flex: 0 1 auto;
585
- }
586
-
587
- .xfaButton {
588
- cursor: pointer;
589
- width: 100%;
590
- height: 100%;
591
- border: none;
592
- text-align: center;
593
- }
594
-
595
- .xfaLink {
596
- width: 100%;
597
- height: 100%;
598
- position: absolute;
599
- top: 0;
600
- left: 0;
601
- }
602
-
603
- .xfaCheckbox,
604
- .xfaRadio {
605
- width: 100%;
606
- height: 100%;
607
- flex: 0 0 auto;
608
- border: none;
609
- }
610
-
611
- .xfaRich {
612
- white-space: pre-wrap;
613
- width: 100%;
614
- height: 100%;
615
- }
616
-
617
- .xfaImage {
618
- -o-object-position: left top;
619
- object-position: left top;
620
- -o-object-fit: contain;
621
- object-fit: contain;
622
- width: 100%;
623
- height: 100%;
624
- }
625
-
626
- .xfaLrTb,
627
- .xfaRlTb,
628
- .xfaTb {
629
- display: flex;
630
- flex-direction: column;
631
- align-items: stretch;
632
- }
633
-
634
- .xfaLr {
635
- display: flex;
636
- flex-direction: row;
637
- align-items: stretch;
638
- }
639
-
640
- .xfaRl {
641
- display: flex;
642
- flex-direction: row-reverse;
643
- align-items: stretch;
644
- }
645
-
646
- .xfaTb > div {
647
- justify-content: left;
648
- }
649
-
650
- .xfaPosition {
651
- position: relative;
652
- }
653
-
654
- .xfaArea {
655
- position: relative;
656
- }
657
-
658
- .xfaValignMiddle {
659
- display: flex;
660
- align-items: center;
661
- }
662
-
663
- .xfaTable {
664
- display: flex;
665
- flex-direction: column;
666
- align-items: stretch;
667
- }
668
-
669
- .xfaTable .xfaRow {
670
- display: flex;
671
- flex-direction: row;
672
- align-items: stretch;
673
- }
674
-
675
- .xfaTable .xfaRlRow {
676
- display: flex;
677
- flex-direction: row-reverse;
678
- align-items: stretch;
679
- flex: 1;
680
- }
681
-
682
- .xfaTable .xfaRlRow > div {
683
- flex: 1;
684
- }
685
-
686
- .xfaNonInteractive input,
687
- .xfaNonInteractive textarea,
688
- .xfaDisabled input,
689
- .xfaDisabled textarea,
690
- .xfaReadOnly input,
691
- .xfaReadOnly textarea {
692
- background: initial;
693
- }
694
-
695
- @media print {
696
- .xfaTextfield,
697
- .xfaSelect {
698
- background: transparent;
699
- }
700
-
701
- .xfaSelect {
702
- -webkit-appearance: none;
703
- -moz-appearance: none;
704
- appearance: none;
705
- text-indent: 1px;
706
- text-overflow: "";
707
- }
708
- }
709
-
710
-
711
-
712
- .pdfViewer {
713
- padding-bottom: var(--pdfViewer-padding-bottom);
714
- }
715
100
 
716
- .pdfViewer .canvasWrapper {
717
- overflow: hidden;
718
- }
101
+ @import "preview-pdf-viewer";
719
102
 
720
103
  .pdfViewer .page {
721
- direction: ltr;
722
- width: 816px;
723
- height: 1056px;
724
- margin: var(--page-margin);
725
- position: relative;
726
- overflow: visible;
727
- border: var(--page-border);
728
- background-clip: content-box;
729
- //border-image: url(/images/pdf/shadow.png) 9 9 repeat;
730
104
  box-shadow: vars.$shadow-level2;
731
105
  background-color: colors.$white;
732
106
  }
733
-
734
- .pdfViewer .dummyPage {
735
- position: relative;
736
- width: 0;
737
- /* The height is set via JS, see `BaseViewer.#ensurePageViewVisible`. */
738
- }
739
-
740
- .pdfViewer.removePageBorders .page {
741
- margin: 0 auto 10px;
742
- border: none;
743
- }
744
-
745
- .pdfViewer.singlePageView {
746
- display: inline-block;
747
- }
748
-
749
- .pdfViewer.singlePageView .page {
750
- margin: 0;
751
- border: none;
752
- }
753
-
754
- .pdfViewer.scrollHorizontal,
755
- .pdfViewer.scrollWrapped,
756
- .spread {
757
- margin-left: 3.5px;
758
- margin-right: 3.5px;
759
- text-align: center;
760
- }
761
-
762
- .pdfViewer.scrollHorizontal,
763
- .spread {
764
- white-space: nowrap;
765
- }
766
-
767
- .pdfViewer.removePageBorders,
768
- .pdfViewer.scrollHorizontal .spread,
769
- .pdfViewer.scrollWrapped .spread {
770
- margin-left: 0;
771
- margin-right: 0;
772
- }
773
-
774
- .spread .page,
775
- .spread .dummyPage,
776
- .pdfViewer.scrollHorizontal .page,
777
- .pdfViewer.scrollWrapped .page,
778
- .pdfViewer.scrollHorizontal .spread,
779
- .pdfViewer.scrollWrapped .spread {
780
- display: inline-block;
781
- vertical-align: middle;
782
- }
783
-
784
- .spread .page,
785
- .pdfViewer.scrollHorizontal .page,
786
- .pdfViewer.scrollWrapped .page {
787
- margin-left: var(--spreadHorizontalWrapped-margin-LR);
788
- margin-right: var(--spreadHorizontalWrapped-margin-LR);
789
- }
790
-
791
- .pdfViewer.removePageBorders .spread .page,
792
- .pdfViewer.removePageBorders.scrollHorizontal .page,
793
- .pdfViewer.removePageBorders.scrollWrapped .page {
794
- margin-left: 5px;
795
- margin-right: 5px;
796
- }
797
-
798
- .pdfViewer .page canvas {
799
- margin: 0;
800
- display: block;
801
- }
802
-
803
- .pdfViewer .page canvas[hidden] {
804
- display: none;
805
- }
806
-
807
- .pdfViewer .page .loadingIcon {
808
- position: absolute;
809
- display: block;
810
- left: 0;
811
- top: 0;
812
- right: 0;
813
- bottom: 0;
814
- //background: url("/images/pdf/loading-icon.gif") center no-repeat;
815
- }
816
-
817
- .pdfViewer .page .loadingIcon.notVisible {
818
- background: none;
819
- }
820
-
821
- .pdfPresentationMode .pdfViewer {
822
- padding-bottom: 0;
823
- }
824
-
825
- .pdfPresentationMode .spread {
826
- margin: 0;
827
- }
828
-
829
- .pdfPresentationMode .pdfViewer .page {
830
- margin: 0 auto;
831
- border: 2px solid transparent;
832
- }
833
107
  }