@juki-team/base-ui 1.5.13 → 1.5.15

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 (258) hide show
  1. package/dist/esm/ArrowForwardIcon-Bd0B_Kwe.js +1 -0
  2. package/dist/esm/BarChart-B6teyAwl.js +1 -0
  3. package/dist/esm/{CartesianChart-DYpkf6Ou.js → CartesianChart-BZZYJ31q.js} +1 -1
  4. package/dist/esm/ChangePasswordModal-wjB2d2a0.js +1 -0
  5. package/dist/esm/CodeEditor--mRrq7Xc.js +1 -0
  6. package/dist/esm/CodeViewer-C2keyN4-.js +1 -0
  7. package/dist/esm/Collapse-C_rZY9aE.js +1 -0
  8. package/dist/esm/{DataGrid-BdFgb8IP.js → DataGrid-DbFP5mTw.js} +1 -1
  9. package/dist/esm/DataViewer-lFoDNwIZ.js +1 -0
  10. package/dist/esm/DrawerView-BLwtJxwY.js +1 -0
  11. package/dist/esm/ExcalidrawButton-CrNTOZTX.js +1 -0
  12. package/dist/esm/GraphvizViewer-beaBRsJd.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-_ZIo2zEm.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-CusvoWas.js +1 -0
  15. package/dist/esm/{InputColor-CHgGjI3f.js → InputColor-ADhkNitB.js} +1 -1
  16. package/dist/esm/LineChart-DUg6yaTg.js +1 -0
  17. package/dist/esm/{LoaderLayer-ECtsj85k.js → LoaderLayer-Csc8unUJ.js} +1 -1
  18. package/dist/esm/MdMath-Dstso3EJ.js +1 -0
  19. package/dist/esm/{MdMathEditor-Dvq5oODw.js → MdMathEditor-BMYIOhto.js} +1 -1
  20. package/dist/esm/{Popover-CX8YffOd.js → Popover-DRm9Iqcj.js} +1 -1
  21. package/dist/esm/ReplyIcon-BAIEk00m.js +1 -0
  22. package/dist/esm/{SettingsIcon-B9nmP4lD.js → SettingsIcon-Cd0qgB0A.js} +1 -1
  23. package/dist/esm/SlideDeck-C0Py_6HO.js +1 -0
  24. package/dist/esm/{TableEyeIcon-Mb5aFvN0.js → TableEyeIcon-CYXh-eSU.js} +1 -1
  25. package/dist/esm/{TableOfContents-BBAEZx6Z.js → TableOfContents-GPaHLa0x.js} +1 -1
  26. package/dist/esm/Tooltip-DZbA_43G.js +1 -0
  27. package/dist/esm/UserCodeEditor-D_rQzIU2.js +61 -0
  28. package/dist/esm/VirtualizedRowsFixed-BgL_awYQ.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-B8zp1Rak.js +1 -0
  30. package/dist/esm/{WorksheetBodies-CO67-rEz.js → WorksheetBodies-Cr9jJtnr.js} +1 -1
  31. package/dist/esm/WorksheetContents-Y4b_IwYP.js +1 -0
  32. package/dist/esm/WorksheetEditor-BoecibGe.js +1 -0
  33. package/dist/esm/{WorksheetNode-BgNNzY8I.js → WorksheetNode-DTyHDssN.js} +1 -1
  34. package/dist/esm/WorksheetViewer-BkyLzOi4.js +1 -0
  35. package/dist/esm/abnfDiagram-WEYOIA3C-C_CVppQA.js +1 -0
  36. package/dist/esm/{arc-COK0VEkT.js → arc-vEmnBEcc.js} +1 -1
  37. package/dist/esm/architectureDiagram-ZHVYKT53-CCcP7rrg.js +1 -0
  38. package/dist/esm/blockDiagram-RJAE7QA3-DU8sn8Km.js +1 -0
  39. package/dist/esm/c4Diagram-XDPPPE54-DQFPX695.js +1 -0
  40. package/dist/esm/channel-5x2nMoMO.js +1 -0
  41. package/dist/esm/{chunk-2E7WHVMD-CVBqw5fR.js → chunk-2E7WHVMD-p2GM0eBD.js} +1 -1
  42. package/dist/esm/{chunk-2Q5K7J3B-CyZYeWxE.js → chunk-2Q5K7J3B-Cy8SGmP2.js} +1 -1
  43. package/dist/esm/{chunk-4EMNKR2T-D1yHHif8.js → chunk-4EMNKR2T-CyLGLodZ.js} +1 -1
  44. package/dist/esm/{chunk-55XCU76K-CvYWAV_o.js → chunk-55XCU76K-BN8xVJCh.js} +1 -1
  45. package/dist/esm/{chunk-5VM5RSS4-CS0kZLYA.js → chunk-5VM5RSS4-D3PGx3gp.js} +1 -1
  46. package/dist/esm/{chunk-JWPE2WC7-Ct5OBLCL.js → chunk-JWPE2WC7-BJAR6xMq.js} +1 -1
  47. package/dist/esm/{chunk-NQOKRVIF-D0-2mmH4.js → chunk-NQOKRVIF-fUehRCXZ.js} +1 -1
  48. package/dist/esm/{chunk-VQ5W62QI-CsGo0PTx.js → chunk-VQ5W62QI-mHHsR0s0.js} +1 -1
  49. package/dist/esm/{chunk-XXDRQBXY-DPPGTM3w.js → chunk-XXDRQBXY-DLLBlZjr.js} +1 -1
  50. package/dist/esm/{chunk-ZCHMQSOR-Bvjutmxm.js → chunk-ZCHMQSOR-t517tTkb.js} +1 -1
  51. package/dist/esm/classDiagram-v2-4MYWR3UA-CrNA_w1s.js +1 -0
  52. package/dist/esm/{commons-iref2pEJ.js → commons-BLDufAOm.js} +1 -1
  53. package/dist/esm/constants.js +1 -1
  54. package/dist/esm/cose-bilkent-JH36ORCC-DTawllqu.js +1 -0
  55. package/dist/esm/cynefinDiagram-WF24UDRP-DWwhOkSi.js +1 -0
  56. package/dist/esm/dagre-NK4GIZVX-Jm0gIaFX.js +1 -0
  57. package/dist/esm/diagram-CBK3MWTC-CcOs3Ceh.js +1 -0
  58. package/dist/esm/diagram-I5XIIV2D-BBh0FWXm.js +1 -0
  59. package/dist/esm/diagram-ODIL2UCW-BlztNr6r.js +1 -0
  60. package/dist/esm/diagram-PFBEJUXE-DtRoe0ng.js +1 -0
  61. package/dist/esm/diagram-RJA3I4VV-LdjGFjBw.js +1 -0
  62. package/dist/esm/diagram-TYUNFSNR-D8WXXh7g.js +1 -0
  63. package/dist/esm/ebnfDiagram-V4P3TTPT-DESDKr7D.js +1 -0
  64. package/dist/esm/elk-QONTBCTQ-DDBz4veG.js +1 -0
  65. package/dist/esm/enums.js +1 -1
  66. package/dist/esm/erDiagram-KYQIGQAA-CBg-NMBs.js +1 -0
  67. package/dist/esm/flowDiagram-IUGLLWBU-BytjhPBX.js +1 -0
  68. package/dist/esm/ganttDiagram-R7GPNTJY-BKQtPa2l.js +1 -0
  69. package/dist/esm/gitGraphDiagram-PDYL7XHY-SgW1IIil.js +1 -0
  70. package/dist/esm/helpers.js +1 -1
  71. package/dist/esm/index-38k9tHSo.js +1 -0
  72. package/dist/esm/index-3QSNRp1k.js +1 -0
  73. package/dist/esm/{index-B5Soolr4.js → index-CEgC-P3H.js} +1 -1
  74. package/dist/esm/{index-70SVfF-m.js → index-D954khxt.js} +1 -1
  75. package/dist/esm/{index-DkZReaeM.js → index-yFCV1i1-.js} +1 -1
  76. package/dist/esm/infoDiagram-MVDRKAX5-DfklDIw_.js +1 -0
  77. package/dist/esm/ishikawaDiagram-HPEHV2GE-BgFDqFFr.js +1 -0
  78. package/dist/esm/journeyDiagram-BOSHW7O7-DMgZlI3B.js +1 -0
  79. package/dist/esm/kanban-definition-FNSA4HC5-6nGtZdla.js +1 -0
  80. package/dist/esm/main.js +1 -1
  81. package/dist/esm/{mermaid.core-DRk6tt5W.js → mermaid.core-VF3HuzPL.js} +2 -2
  82. package/dist/esm/mindmap-definition-6OY57UG3-CldUD6qU.js +1 -0
  83. package/dist/esm/pegDiagram-ECIUJNBX-CxOzmAR6.js +1 -0
  84. package/dist/esm/pieDiagram-GNMPY74T-CVzFNxbL.js +1 -0
  85. package/dist/esm/quadrantDiagram-D57K4MC3-zu8PK3sn.js +1 -0
  86. package/dist/esm/railroadDiagram-Y72NRBL7-32O5vSNO.js +1 -0
  87. package/dist/esm/requirementDiagram-EQYSW5RA-y8y1LAQQ.js +1 -0
  88. package/dist/esm/sankeyDiagram-SY24JHO5-B6RN54HY.js +1 -0
  89. package/dist/esm/sequenceDiagram-BLEHNHQU-x0406cvr.js +1 -0
  90. package/dist/esm/server.js +1 -1
  91. package/dist/esm/settings-6x4qNkNZ.js +1 -0
  92. package/dist/esm/settings.js +1 -1
  93. package/dist/esm/sizeCapture-INFHLROL--wG_Awhp.js +1 -0
  94. package/dist/esm/stateDiagram-v2-A6IESKWZ-BO6rHKAj.js +1 -0
  95. package/dist/esm/swimlanes-B3ENRKFQ-Bn5D5Wx7.js +1 -0
  96. package/dist/esm/swimlanesDiagram-AYQRV4AK-Ba9zNATm.js +1 -0
  97. package/dist/esm/timeline-definition-JXYKGLGB-BEJjWLZB.js +1 -0
  98. package/dist/esm/{types-DsZvEANP.js → types-B-kh3Oeb.js} +1 -1
  99. package/dist/esm/usecaseDiagram-WPOLBNNX-RyH7DcwX.js +1 -0
  100. package/dist/esm/vennDiagram-Q3Y3IDCW-CxTrhG-i.js +1 -0
  101. package/dist/esm/wardleyDiagram-IVAIDKWA-pBsrgWov.js +1 -0
  102. package/dist/esm/websocket-D79arGLt.js +1 -0
  103. package/dist/esm/xychartDiagram-4URNHDU4-CA9STbh6.js +1 -0
  104. package/dist/module-types/src/components/helpers/problem.d.ts +1 -1
  105. package/dist/module-types/src/components/helpers/websocket.d.ts +3 -11
  106. package/dist/module-types/src/components/hooks/useInjectOrganizationStyles.d.ts +1 -0
  107. package/dist/module-types/src/components/hooks/useJudge.d.ts +2 -2
  108. package/dist/module-types/src/components/hooks/useJukiUser.d.ts +17 -17
  109. package/dist/module-types/src/components/hooks/useOrganizationPresence.d.ts +18 -0
  110. package/dist/module-types/src/components/hooks/useOwnPresence.d.ts +5 -0
  111. package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
  112. package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +1 -1
  113. package/dist/module-types/src/components/organisms/HorizontalMenu/MenuParts.d.ts +19 -0
  114. package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +3 -1
  115. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  116. package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +4 -4
  117. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +2 -2
  118. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +3 -3
  119. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +2 -2
  120. package/dist/module-types/src/components/organisms/UserChip/types.d.ts +2 -2
  121. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  122. package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +3 -3
  123. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +2 -2
  124. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +2 -2
  125. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +2 -2
  126. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +2 -2
  127. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  128. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
  129. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +2 -2
  130. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +1 -1
  131. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +2 -2
  132. package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +1 -1
  133. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
  134. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
  135. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  136. package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +2 -2
  137. package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +4 -4
  138. package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +3 -3
  139. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  140. package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +5 -5
  141. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
  142. package/dist/module-types/src/components/templates/MainMenu/types.d.ts +1 -1
  143. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
  144. package/dist/module-types/src/components/templates/ProblemView/types.d.ts +3 -3
  145. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  146. package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +1 -1
  147. package/dist/module-types/src/components/templates/UserProfile/types.d.ts +3 -3
  148. package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +2 -2
  149. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +2 -2
  150. package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +2 -2
  151. package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +2 -2
  152. package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +2 -2
  153. package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +2 -2
  154. package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +2 -2
  155. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +2 -2
  156. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +2 -2
  157. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +2 -2
  158. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +2 -2
  159. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +2 -2
  160. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +2 -2
  161. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +2 -2
  162. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +2 -2
  163. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +3 -3
  164. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +2 -2
  165. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +2 -2
  166. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +2 -2
  167. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
  168. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +3 -3
  169. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +2 -2
  170. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +2 -2
  171. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +2 -2
  172. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +2 -2
  173. package/dist/module-types/src/components/templates/members/types.d.ts +6 -6
  174. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  175. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  176. package/dist/module-types/src/components/templates/problem/types.d.ts +10 -10
  177. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  178. package/dist/module-types/src/components/templates/submission/types.d.ts +9 -9
  179. package/dist/module-types/src/components/types/index.d.ts +6 -6
  180. package/dist/module-types/src/constants/index.d.ts +2 -2
  181. package/dist/module-types/src/enums/index.d.ts +1 -1
  182. package/dist/module-types/src/hooks/index.d.ts +2 -1
  183. package/dist/module-types/src/settings/ApiManager.d.ts +77 -101
  184. package/dist/module-types/src/settings/AppRoutes.d.ts +2 -2
  185. package/dist/module-types/src/stores/websocket/topicChannels.d.ts +17 -5
  186. package/dist/module-types/src/stores/websocket/types.d.ts +4 -8
  187. package/package.json +5 -5
  188. package/dist/esm/ArrowForwardIcon-DelUFdaJ.js +0 -1
  189. package/dist/esm/BarChart-D2X8Qu4u.js +0 -1
  190. package/dist/esm/ChangePasswordModal-yc4D7RMs.js +0 -1
  191. package/dist/esm/CodeEditor-Dxp5QnTB.js +0 -1
  192. package/dist/esm/CodeViewer-BSZXIngC.js +0 -1
  193. package/dist/esm/Collapse-D-w5SKss.js +0 -1
  194. package/dist/esm/DataViewer-DVVGkDSK.js +0 -1
  195. package/dist/esm/DrawerView-DCRvckZd.js +0 -1
  196. package/dist/esm/ExcalidrawButton-_a-eNbyb.js +0 -1
  197. package/dist/esm/GraphvizViewer-B2-JVx0t.js +0 -1
  198. package/dist/esm/ImageLoaderCropper-wV-hPOjq.js +0 -1
  199. package/dist/esm/InputCellPhoneNumber-Bcl22QsC.js +0 -1
  200. package/dist/esm/LineChart-ByKPkVhP.js +0 -1
  201. package/dist/esm/MdMath-DljkRDxR.js +0 -1
  202. package/dist/esm/ReplyIcon-BNYBKbgb.js +0 -1
  203. package/dist/esm/SlideDeck-C0n93gz0.js +0 -1
  204. package/dist/esm/Tooltip-DB0S1ErV.js +0 -1
  205. package/dist/esm/UserCodeEditor-B1d5gyVE.js +0 -61
  206. package/dist/esm/VirtualizedRowsFixed-ChX4ON0l.js +0 -1
  207. package/dist/esm/WorksheetAsSlides-CpiXbUML.js +0 -1
  208. package/dist/esm/WorksheetContents-ClZpiXB-.js +0 -1
  209. package/dist/esm/WorksheetEditor-CjAvgOx6.js +0 -1
  210. package/dist/esm/WorksheetViewer-DVQitUzi.js +0 -1
  211. package/dist/esm/abnfDiagram-WEYOIA3C-CwJ1V2U1.js +0 -1
  212. package/dist/esm/architectureDiagram-ZHVYKT53-CM6AQFKG.js +0 -1
  213. package/dist/esm/blockDiagram-RJAE7QA3-CdSNo9Pe.js +0 -1
  214. package/dist/esm/c4Diagram-XDPPPE54-BhfYKASq.js +0 -1
  215. package/dist/esm/channel-DWjyymG_.js +0 -1
  216. package/dist/esm/classDiagram-v2-4MYWR3UA-J_cOAAHS.js +0 -1
  217. package/dist/esm/cose-bilkent-JH36ORCC-BHzp2aV0.js +0 -1
  218. package/dist/esm/cynefinDiagram-WF24UDRP-B3Y9mCh3.js +0 -1
  219. package/dist/esm/dagre-NK4GIZVX-BSfh-C_i.js +0 -1
  220. package/dist/esm/diagram-CBK3MWTC-w-BT1S7I.js +0 -1
  221. package/dist/esm/diagram-I5XIIV2D-wMqo87b_.js +0 -1
  222. package/dist/esm/diagram-ODIL2UCW-DQhUXqDu.js +0 -1
  223. package/dist/esm/diagram-PFBEJUXE-BlCntZMJ.js +0 -1
  224. package/dist/esm/diagram-RJA3I4VV-Cev21A9i.js +0 -1
  225. package/dist/esm/diagram-TYUNFSNR-BiiLNoPs.js +0 -1
  226. package/dist/esm/ebnfDiagram-V4P3TTPT-BWNnHl88.js +0 -1
  227. package/dist/esm/elk-QONTBCTQ-DhvgoeNg.js +0 -1
  228. package/dist/esm/erDiagram-KYQIGQAA-DkFGw08p.js +0 -1
  229. package/dist/esm/flowDiagram-IUGLLWBU-B-Bxdnen.js +0 -1
  230. package/dist/esm/ganttDiagram-R7GPNTJY-Bvr90Acy.js +0 -1
  231. package/dist/esm/gitGraphDiagram-PDYL7XHY-DHszoB7b.js +0 -1
  232. package/dist/esm/index-2PTQqTnK.js +0 -1
  233. package/dist/esm/index-BpcqEzEG.js +0 -1
  234. package/dist/esm/infoDiagram-MVDRKAX5-D05SjyVf.js +0 -1
  235. package/dist/esm/ishikawaDiagram-HPEHV2GE-50RQ8Owd.js +0 -1
  236. package/dist/esm/journeyDiagram-BOSHW7O7-DnHu8DYt.js +0 -1
  237. package/dist/esm/kanban-definition-FNSA4HC5-BF3y0Q5O.js +0 -1
  238. package/dist/esm/mindmap-definition-6OY57UG3-D2VvQCn5.js +0 -1
  239. package/dist/esm/pegDiagram-ECIUJNBX-LCa_e2vp.js +0 -1
  240. package/dist/esm/pieDiagram-GNMPY74T-BFxRc695.js +0 -1
  241. package/dist/esm/quadrantDiagram-D57K4MC3-m-v5Oved.js +0 -1
  242. package/dist/esm/railroadDiagram-Y72NRBL7-CGhQNkt2.js +0 -1
  243. package/dist/esm/requirementDiagram-EQYSW5RA-D4TUJX2j.js +0 -1
  244. package/dist/esm/sankeyDiagram-SY24JHO5-qeunG13D.js +0 -1
  245. package/dist/esm/sequenceDiagram-BLEHNHQU-Bf8dSGiP.js +0 -1
  246. package/dist/esm/settings-CBGV-lz3.js +0 -1
  247. package/dist/esm/sizeCapture-INFHLROL-B0tQoQkY.js +0 -1
  248. package/dist/esm/stateDiagram-v2-A6IESKWZ-D-bM5qVN.js +0 -1
  249. package/dist/esm/swimlanes-B3ENRKFQ-DR9euVhL.js +0 -1
  250. package/dist/esm/swimlanesDiagram-AYQRV4AK-D0-BBYnj.js +0 -1
  251. package/dist/esm/timeline-definition-JXYKGLGB-ChsOD2es.js +0 -1
  252. package/dist/esm/usecaseDiagram-WPOLBNNX-DZFg1Zof.js +0 -1
  253. package/dist/esm/vennDiagram-Q3Y3IDCW-DAW-dDy7.js +0 -1
  254. package/dist/esm/wardleyDiagram-IVAIDKWA-B-gsebc8.js +0 -1
  255. package/dist/esm/websocket-CdeP8N_S.js +0 -1
  256. package/dist/esm/xychartDiagram-4URNHDU4-DS3Qm0VA.js +0 -1
  257. package/dist/module-types/src/components/hooks/useClientTrackLocation.d.ts +0 -1
  258. package/dist/module-types/src/components/hooks/useInjectCompanyStyles.d.ts +0 -1
@@ -1,9 +1,9 @@
1
1
  import { OrderedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
2
2
  import { AppState } from '@excalidraw/excalidraw/types';
3
- import { ClientId, CodeEditorFiles, CodeEditorSubmissionDTO, CodeLanguage, CodeRunDTO, EntityMembersDTO, FilesJukiPub, GroupByTimestampKey, HTTPMethod, JkmdSubmissionDTO, Judge, JudgeLanguage, Language, CompanyPlan, CompanyStyles, ProblemVerdict, QuizOptionsSubmissionDTO, QuizProblemSubmissionDTO, Theme, UpsertWorksheetDTO, UserRoles, UserSettings } from '@juki-team/commons';
3
+ import { CodeEditorFiles, CodeEditorSubmissionDto, CodeLanguage, CodeRunDto, EntityMembersDto, FilesJukiPub, GroupByTimestampKey, HTTPMethod, JkmdSubmissionDto, Judge, JudgeLanguage, Language, OrganizationPlan, OrganizationStyles, ProblemVerdict, QuizOptionsSubmissionDto, QuizProblemSubmissionDto, Theme, UpsertWorksheetDto, UserRoles, UserSettings } from '@juki-team/commons';
4
4
  import type { ErrorInfo } from 'react';
5
5
  import { RowDataType } from '../components/molecules/_lazy_/DataGrid/types';
6
- import { AuthorizedRequestType, SignInPayloadDTO, SignUpPayloadDTO, UpdatePasswordPayloadDTO, UpdateUserProfileDataPayloadDTO } from '../components/types';
6
+ import { AuthorizedRequestType, SignInPayloadDto, SignUpPayloadDto, UpdatePasswordPayloadDto, UpdateUserProfileDataPayloadDto } from '../components/types';
7
7
  type ResponseAPI<M extends HTTPMethod = HTTPMethod.GET> = {
8
8
  url: string;
9
9
  } & AuthorizedRequestType<M>;
@@ -13,18 +13,18 @@ export declare class ApiManager {
13
13
  ping: (props: void) => ResponseAPI<HTTPMethod.GET>;
14
14
  signIn: (props: {
15
15
  params?: {
16
- companyKey: string;
16
+ organizationKey: string;
17
17
  };
18
- body: SignInPayloadDTO;
18
+ body: SignInPayloadDto;
19
19
  }) => ResponseAPI<HTTPMethod.POST>;
20
20
  signUp: (props: {
21
- body: SignUpPayloadDTO;
21
+ body: SignUpPayloadDto;
22
22
  }) => ResponseAPI<HTTPMethod.POST>;
23
23
  createUser: (props: {
24
24
  params?: {
25
- companyKey: string;
25
+ organizationKey: string;
26
26
  };
27
- body: SignUpPayloadDTO & {
27
+ body: SignUpPayloadDto & {
28
28
  overwrite: boolean;
29
29
  };
30
30
  }) => ResponseAPI<HTTPMethod.POST>;
@@ -36,20 +36,20 @@ export declare class ApiManager {
36
36
  }) => ResponseAPI<HTTPMethod.POST>;
37
37
  updatePassword: (props: {
38
38
  params: {
39
- companyKey: string;
39
+ organizationKey: string;
40
40
  nickname: string;
41
41
  };
42
- body: UpdatePasswordPayloadDTO;
42
+ body: UpdatePasswordPayloadDto;
43
43
  }) => ResponseAPI<HTTPMethod.POST>;
44
44
  resetPassword: (props: {
45
45
  params: {
46
- companyKey: string;
46
+ organizationKey: string;
47
47
  nickname: string;
48
48
  };
49
49
  }) => ResponseAPI<HTTPMethod.POST>;
50
50
  createSession: (props: {
51
51
  params?: {
52
- companyKey: string;
52
+ organizationKey: string;
53
53
  };
54
54
  body: {
55
55
  nickname: string;
@@ -80,7 +80,7 @@ export declare class ApiManager {
80
80
  user: {
81
81
  getSummaryList: (props: void | {
82
82
  params: {
83
- companyKey: string;
83
+ organizationKey: string;
84
84
  };
85
85
  }) => ResponseAPI<HTTPMethod.GET>;
86
86
  getSystemList: (props: {
@@ -94,19 +94,19 @@ export declare class ApiManager {
94
94
  getSummary: (props: {
95
95
  params: {
96
96
  nickname: string;
97
- companyKey: string;
97
+ organizationKey: string;
98
98
  };
99
99
  }) => ResponseAPI<HTTPMethod.GET>;
100
100
  getProfile: (props: {
101
101
  params: {
102
102
  nickname: string;
103
- companyKey: string;
103
+ organizationKey: string;
104
104
  };
105
105
  }) => ResponseAPI<HTTPMethod.GET>;
106
106
  getLogs: (props: {
107
107
  params: {
108
108
  nickname: string;
109
- companyKey: string;
109
+ organizationKey: string;
110
110
  };
111
111
  }) => ResponseAPI<HTTPMethod.GET>;
112
112
  getMySessions: (props: void) => ResponseAPI<HTTPMethod.GET>;
@@ -126,14 +126,14 @@ export declare class ApiManager {
126
126
  updateProfileData: (props: {
127
127
  params: {
128
128
  nickname: string;
129
- companyKey: string;
129
+ organizationKey: string;
130
130
  };
131
- body: UpdateUserProfileDataPayloadDTO;
131
+ body: UpdateUserProfileDataPayloadDto;
132
132
  }) => ResponseAPI<HTTPMethod.PUT>;
133
133
  updateProfileImage: (props: {
134
134
  params: {
135
135
  nickname: string;
136
- companyKey: string;
136
+ organizationKey: string;
137
137
  };
138
138
  body: {
139
139
  contentType: string;
@@ -142,14 +142,14 @@ export declare class ApiManager {
142
142
  updatePreferences: (props: {
143
143
  params: {
144
144
  nickname: string;
145
- companyKey: string;
145
+ organizationKey: string;
146
146
  };
147
147
  body: UserSettings;
148
148
  }) => ResponseAPI<HTTPMethod.PUT>;
149
149
  updateRoles: (props: {
150
150
  params: {
151
151
  nickname: string;
152
- companyKey: string;
152
+ organizationKey: string;
153
153
  };
154
154
  body: UserRoles;
155
155
  }) => ResponseAPI<HTTPMethod.PUT>;
@@ -160,7 +160,7 @@ export declare class ApiManager {
160
160
  }) => ResponseAPI<HTTPMethod.DELETE>;
161
161
  checkData: (props: {
162
162
  params: {
163
- companyKey: string;
163
+ organizationKey: string;
164
164
  };
165
165
  body: {
166
166
  users: {
@@ -172,14 +172,6 @@ export declare class ApiManager {
172
172
  }[];
173
173
  };
174
174
  }) => ResponseAPI<HTTPMethod.POST>;
175
- clientTrack: (props: {
176
- body: {
177
- clientId: ClientId;
178
- location: boolean;
179
- screenshot: boolean;
180
- device: boolean;
181
- };
182
- }) => ResponseAPI<HTTPMethod.POST>;
183
175
  };
184
176
  problem: {
185
177
  create: (props: void) => ResponseAPI<HTTPMethod.POST>;
@@ -278,52 +270,52 @@ export declare class ApiManager {
278
270
  getMetadata: (props: {
279
271
  params: {
280
272
  key: string;
281
- companyKey?: string;
273
+ organizationKey?: string;
282
274
  };
283
275
  }) => ResponseAPI<HTTPMethod.GET>;
284
276
  getData: (props: {
285
277
  params: {
286
278
  key: string;
287
- companyKey?: string;
279
+ organizationKey?: string;
288
280
  };
289
281
  }) => ResponseAPI<HTTPMethod.GET>;
290
282
  getDataEvents: (props: {
291
283
  params: {
292
284
  key: string;
293
- companyKey?: string;
285
+ organizationKey?: string;
294
286
  };
295
287
  }) => ResponseAPI<HTTPMethod.GET>;
296
288
  getDataMembers: (props: {
297
289
  params: {
298
290
  key: string;
299
- companyKey?: string;
291
+ organizationKey?: string;
300
292
  };
301
293
  }) => ResponseAPI<HTTPMethod.GET>;
302
294
  getDataClarifications: (props: {
303
295
  params: {
304
296
  key: string;
305
- companyKey?: string;
297
+ organizationKey?: string;
306
298
  };
307
299
  }) => ResponseAPI<HTTPMethod.GET>;
308
300
  getScoreboard: (props: {
309
301
  params: {
310
302
  key: string;
311
303
  unfrozen: boolean;
312
- companyKey?: string;
304
+ organizationKey?: string;
313
305
  official: boolean;
314
306
  };
315
307
  }) => ResponseAPI<HTTPMethod.GET>;
316
308
  getLogs: (props: {
317
309
  params: {
318
310
  key: string;
319
- companyKey?: string;
311
+ organizationKey?: string;
320
312
  };
321
313
  }) => ResponseAPI<HTTPMethod.GET>;
322
314
  submit: (props: {
323
315
  params: {
324
316
  key: string;
325
317
  problemKey: string;
326
- companyKey?: string;
318
+ organizationKey?: string;
327
319
  };
328
320
  body: {
329
321
  language: string;
@@ -333,14 +325,14 @@ export declare class ApiManager {
333
325
  recalculateScoreboard: (props: {
334
326
  params: {
335
327
  key: string;
336
- companyKey?: string;
328
+ organizationKey?: string;
337
329
  official: boolean;
338
330
  };
339
331
  }) => ResponseAPI<HTTPMethod.POST>;
340
332
  recalculatePrerequisites: (props: {
341
333
  params: {
342
334
  key: string;
343
- companyKey?: string;
335
+ organizationKey?: string;
344
336
  };
345
337
  }) => ResponseAPI<HTTPMethod.POST>;
346
338
  problem: {
@@ -348,27 +340,27 @@ export declare class ApiManager {
348
340
  params: {
349
341
  key: string;
350
342
  problemKey: string;
351
- companyKey?: string;
343
+ organizationKey?: string;
352
344
  };
353
345
  }) => ResponseAPI<HTTPMethod.POST>;
354
346
  retrieve: (props: {
355
347
  params: {
356
348
  key: string;
357
349
  problemKey: string;
358
- companyKey?: string;
350
+ organizationKey?: string;
359
351
  };
360
352
  }) => ResponseAPI<HTTPMethod.POST>;
361
353
  };
362
354
  retrieve: (props: {
363
355
  params: {
364
356
  key: string;
365
- companyKey?: string;
357
+ organizationKey?: string;
366
358
  };
367
359
  }) => ResponseAPI<HTTPMethod.POST>;
368
360
  editGlobal: (props: {
369
361
  params: {
370
362
  key: string;
371
- companyKey?: string;
363
+ organizationKey?: string;
372
364
  };
373
365
  body: {
374
366
  name: string;
@@ -378,8 +370,8 @@ export declare class ApiManager {
378
370
  index: string;
379
371
  points: number;
380
372
  color: string;
381
- startTimestamp: number;
382
- endTimestamp: number;
373
+ startsAt: number;
374
+ endsAt: number;
383
375
  };
384
376
  };
385
377
  tags: string[];
@@ -387,7 +379,7 @@ export declare class ApiManager {
387
379
  }) => ResponseAPI<HTTPMethod.PUT>;
388
380
  createGlobal: (props: {
389
381
  params: {
390
- companyKey?: string;
382
+ organizationKey?: string;
391
383
  };
392
384
  body: {
393
385
  name: string;
@@ -397,8 +389,8 @@ export declare class ApiManager {
397
389
  index: string;
398
390
  points: number;
399
391
  color: string;
400
- startTimestamp: number;
401
- endTimestamp: number;
392
+ startsAt: number;
393
+ endsAt: number;
402
394
  };
403
395
  };
404
396
  tags: string[];
@@ -407,7 +399,7 @@ export declare class ApiManager {
407
399
  unlinkSubmissions: (props: {
408
400
  params: {
409
401
  key: string;
410
- companyKey?: string;
402
+ organizationKey?: string;
411
403
  };
412
404
  }) => ResponseAPI<HTTPMethod.POST>;
413
405
  };
@@ -513,47 +505,39 @@ export declare class ApiManager {
513
505
  };
514
506
  code: {
515
507
  run: (props: {
516
- body: CodeRunDTO;
517
- }) => ResponseAPI<HTTPMethod.POST>;
518
- };
519
- ia: {
520
- chatCompletions: (props: {
521
- body: {
522
- content: string;
523
- connectionId: string;
524
- };
508
+ body: CodeRunDto;
525
509
  }) => ResponseAPI<HTTPMethod.POST>;
526
510
  };
527
- company: {
511
+ organization: {
528
512
  get: (props: void | {
529
513
  params: {
530
- companyKey: string;
514
+ organizationKey: string;
531
515
  };
532
516
  }) => ResponseAPI<HTTPMethod.GET>;
533
517
  getPermissionList: (props: void) => ResponseAPI<HTTPMethod.GET>;
534
518
  getJudgeList: (props: void | {
535
519
  params: {
536
- companyKey: string;
520
+ organizationKey: string;
537
521
  };
538
522
  }) => ResponseAPI<HTTPMethod.GET>;
539
- getTrustedCompaniesList: (props: void | {
523
+ getTrustedOrganizationsList: (props: void | {
540
524
  params: {
541
- companyKey: string;
525
+ organizationKey: string;
542
526
  };
543
527
  }) => ResponseAPI<HTTPMethod.GET>;
544
528
  getResourceSpecifications: (props: void | {
545
529
  params: {
546
- companyKey: string;
530
+ organizationKey: string;
547
531
  };
548
532
  }) => ResponseAPI<HTTPMethod.GET>;
549
533
  getEmailData: (props: void | {
550
534
  params: {
551
- companyKey: string;
535
+ organizationKey: string;
552
536
  };
553
537
  }) => ResponseAPI<HTTPMethod.GET>;
554
538
  updateImage: (props: {
555
539
  params?: {
556
- companyKey: string;
540
+ organizationKey: string;
557
541
  };
558
542
  body: {
559
543
  logoType: string;
@@ -562,7 +546,7 @@ export declare class ApiManager {
562
546
  }) => ResponseAPI<HTTPMethod.PUT>;
563
547
  updateData: (props: {
564
548
  params: {
565
- companyKey: string;
549
+ organizationKey: string;
566
550
  };
567
551
  body: {
568
552
  name?: string;
@@ -572,21 +556,21 @@ export declare class ApiManager {
572
556
  contactTelegram?: string;
573
557
  contactCellPhoneNumber?: string;
574
558
  contactEmail?: string;
575
- styles?: CompanyStyles;
559
+ styles?: OrganizationStyles;
576
560
  };
577
561
  }) => ResponseAPI<HTTPMethod.PATCH>;
578
562
  updateSensitiveData: (props: {
579
563
  params: {
580
- companyKey: string;
564
+ organizationKey: string;
581
565
  };
582
566
  body: {
583
567
  managerUserNickname?: string;
584
568
  systemAdminUserNickname?: string;
585
569
  hosts?: string[];
586
570
  judgeKeys?: string[];
587
- trustedCompaniesKeys?: string[];
588
- startTimestamp?: number;
589
- plan?: CompanyPlan;
571
+ trustedOrganizationsKeys?: string[];
572
+ startsAt?: number;
573
+ plan?: OrganizationPlan;
590
574
  };
591
575
  }) => ResponseAPI<HTTPMethod.PATCH>;
592
576
  };
@@ -641,14 +625,14 @@ export declare class ApiManager {
641
625
  getData: (props: {
642
626
  params: {
643
627
  key: string;
644
- companyKey?: string;
628
+ organizationKey?: string;
645
629
  };
646
630
  }) => ResponseAPI<HTTPMethod.GET>;
647
631
  update: (props: {
648
632
  params: {
649
633
  key: string;
650
634
  };
651
- body: UpsertWorksheetDTO;
635
+ body: UpsertWorksheetDto;
652
636
  }) => ResponseAPI<HTTPMethod.PUT>;
653
637
  getList: (props: {
654
638
  params: {
@@ -670,28 +654,28 @@ export declare class ApiManager {
670
654
  worksheetKey: string;
671
655
  secondaryKey?: string;
672
656
  };
673
- body: JkmdSubmissionDTO;
657
+ body: JkmdSubmissionDto;
674
658
  }) => ResponseAPI<HTTPMethod.POST>;
675
659
  submitCodeEditor: (props: {
676
660
  params: {
677
661
  worksheetKey: string;
678
662
  secondaryKey?: string;
679
663
  };
680
- body: CodeEditorSubmissionDTO;
664
+ body: CodeEditorSubmissionDto;
681
665
  }) => ResponseAPI<HTTPMethod.POST>;
682
666
  submitQuizProblem: (props: {
683
667
  params: {
684
668
  worksheetKey: string;
685
669
  secondaryKey?: string;
686
670
  };
687
- body: QuizProblemSubmissionDTO;
671
+ body: QuizProblemSubmissionDto;
688
672
  }) => ResponseAPI<HTTPMethod.POST>;
689
673
  submitQuizOptions: (props: {
690
674
  params: {
691
675
  worksheetKey: string;
692
676
  secondaryKey?: string;
693
677
  };
694
- body: QuizOptionsSubmissionDTO;
678
+ body: QuizOptionsSubmissionDto;
695
679
  }) => ResponseAPI<HTTPMethod.POST>;
696
680
  };
697
681
  system: {
@@ -754,7 +738,7 @@ export declare class ApiManager {
754
738
  sessionId: string;
755
739
  assignmentId: string;
756
740
  };
757
- body: CodeEditorSubmissionDTO;
741
+ body: CodeEditorSubmissionDto;
758
742
  }) => ResponseAPI<HTTPMethod.POST>;
759
743
  };
760
744
  documentTemplate: {
@@ -779,7 +763,7 @@ export declare class ApiManager {
779
763
  updateData: (props: {
780
764
  params: {
781
765
  key: string;
782
- companyKey?: string;
766
+ organizationKey?: string;
783
767
  };
784
768
  body: {
785
769
  name: string;
@@ -797,28 +781,20 @@ export declare class ApiManager {
797
781
  }) => ResponseAPI<HTTPMethod.PUT>;
798
782
  };
799
783
  statistics: {
800
- getCompanyStats: (props: {
784
+ getOrganizationStats: (props: {
801
785
  params: {
802
- companyKey?: string;
803
- startTimestamp: number;
804
- endTimestamp: number;
786
+ organizationKey?: string;
787
+ startsAt: number;
788
+ endsAt: number;
805
789
  groupBy: GroupByTimestampKey[];
806
790
  };
807
791
  }) => ResponseAPI<HTTPMethod.GET>;
808
792
  getProblemStats: (props: {
809
793
  params: {
810
- companyKey?: string;
794
+ organizationKey?: string;
811
795
  problemKey: string;
812
- startTimestamp: number;
813
- endTimestamp: number;
814
- };
815
- }) => ResponseAPI<HTTPMethod.GET>;
816
- getUsersTracksStats: (props: {
817
- params: {
818
- companyKeys: string;
819
- startTimestamp: number;
820
- endTimestamp: number;
821
- groupBy: GroupByTimestampKey[];
796
+ startsAt: number;
797
+ endsAt: number;
822
798
  };
823
799
  }) => ResponseAPI<HTTPMethod.GET>;
824
800
  };
@@ -837,7 +813,7 @@ export declare class ApiManager {
837
813
  tags: string[];
838
814
  elements: OrderedExcalidrawElement[];
839
815
  appsState: AppState;
840
- members: EntityMembersDTO;
816
+ members: EntityMembersDto;
841
817
  };
842
818
  }) => ResponseAPI<HTTPMethod.POST>;
843
819
  updateData: (props: {
@@ -849,7 +825,7 @@ export declare class ApiManager {
849
825
  tags: string[];
850
826
  elements: OrderedExcalidrawElement[];
851
827
  appsState: AppState;
852
- members: EntityMembersDTO;
828
+ members: EntityMembersDto;
853
829
  };
854
830
  }) => ResponseAPI<HTTPMethod.PUT>;
855
831
  getMetadata: (props: {
@@ -877,7 +853,7 @@ export declare class ApiManager {
877
853
  name: string;
878
854
  tags: string[];
879
855
  files: CodeEditorFiles<CodeLanguage.MERMAID>;
880
- members: EntityMembersDTO;
856
+ members: EntityMembersDto;
881
857
  };
882
858
  }) => ResponseAPI<HTTPMethod.POST>;
883
859
  updateData: (props: {
@@ -888,7 +864,7 @@ export declare class ApiManager {
888
864
  name: string;
889
865
  tags: string[];
890
866
  files: CodeEditorFiles<CodeLanguage.MERMAID>;
891
- members: EntityMembersDTO;
867
+ members: EntityMembersDto;
892
868
  };
893
869
  }) => ResponseAPI<HTTPMethod.PUT>;
894
870
  getMetadata: (props: {
@@ -916,7 +892,7 @@ export declare class ApiManager {
916
892
  name: string;
917
893
  tags: string[];
918
894
  files: CodeEditorFiles<CodeLanguage.MERMAID>;
919
- members: EntityMembersDTO;
895
+ members: EntityMembersDto;
920
896
  };
921
897
  }) => ResponseAPI<HTTPMethod.POST>;
922
898
  updateData: (props: {
@@ -927,7 +903,7 @@ export declare class ApiManager {
927
903
  name: string;
928
904
  tags: string[];
929
905
  files: CodeEditorFiles<CodeLanguage.MARKDOWN>;
930
- members: EntityMembersDTO;
906
+ members: EntityMembersDto;
931
907
  };
932
908
  }) => ResponseAPI<HTTPMethod.PUT>;
933
909
  getMetadata: (props: {
@@ -5,9 +5,9 @@ export declare class AppRoutes {
5
5
  JUDGE(_origin?: string): {
6
6
  home(): string;
7
7
  profiles: {
8
- view({ nickname, companyKey, tab }: {
8
+ view({ nickname, organizationKey, tab }: {
9
9
  nickname: string;
10
- companyKey: string;
10
+ organizationKey: string;
11
11
  tab?: ProfileTab;
12
12
  }): string;
13
13
  };
@@ -1,4 +1,4 @@
1
- import { ClientId, WebSocketResponseEventDTO, WebSocketSubscribeEventDTO } from '@juki-team/commons';
1
+ import { ClientId, UserPresenceData, WebSocketResponseEventDto, WebSocketSubscribeEventDto } from '@juki-team/commons';
2
2
  import type Ably from 'ably';
3
3
  /**
4
4
  * TOPIC channels manager.
@@ -10,28 +10,40 @@ import type Ably from 'ably';
10
10
  * - private channels of the token (`session:{id}`, `user:{id}`): always
11
11
  * - topic channels needed by the active subscriptions (`getChannelOfWebSocketSubscribeEvent`): while they are used
12
12
  * - role channels of the contest being viewed (`contest:{key}:{role}` granted in the token): while it is viewed
13
+ * - organization presence (`presence:organization:{id}`): this tab enters the presence of its organization (`presence` only, it
14
+ * does not receive the others); the administrators watching a organization also receive it (`presence-subscribe`)
13
15
  *
14
16
  * The messages are dispatched with the same keys as the subscriptions (`getWebSocketResponseEventKeyOfResponse`).
15
17
  */
16
- type Dispatch = (key: string, data: WebSocketResponseEventDTO) => void;
18
+ type Dispatch = (key: string, data: WebSocketResponseEventDto) => void;
17
19
  /**
18
20
  * Params sent to the API when requesting the Ably token: the API decides what is granted for them.
19
21
  */
20
22
  export declare const getTopicChannelsAuthParams: () => {
21
23
  contestKey?: string;
22
- trackedClientId?: string;
24
+ presenceCompanyKey?: string;
23
25
  };
24
26
  /**
25
27
  * Capability of the last token returned by the API (called from the Ably authCallback).
26
28
  */
27
29
  export declare const setTopicChannelsCapability: (tokenCapability: unknown) => void;
30
+ type PresenceListener = (members: Ably.PresenceMessage[]) => void;
31
+ /**
32
+ * Data of this tab in the presence of its organization (informative, the identity is the clientId verified by Ably).
33
+ */
34
+ export declare const setOwnPresenceData: (data: UserPresenceData) => void;
28
35
  /**
29
36
  * Sets the Ably client of the current clientId (called when the client is created).
30
37
  */
31
38
  export declare const initTopicChannels: (realtimeClient: Ably.Realtime, newClientId: ClientId, newDispatch: Dispatch) => void;
32
39
  /**
33
- * Registers the topic channel (and the contest / tracked client token params) of a subscription.
40
+ * Registers the topic channel (and the contest token param) of a subscription.
34
41
  * Returns the function to unregister it.
35
42
  */
36
- export declare const addTopicSubscription: (event: WebSocketSubscribeEventDTO) => () => void;
43
+ export declare const addTopicSubscription: (event: WebSocketSubscribeEventDto) => () => void;
44
+ /**
45
+ * Watches the live presence of the clients of a organization (the API only grants it to its user administrators).
46
+ * The listener receives every present member on each change. Returns the function to stop watching.
47
+ */
48
+ export declare const watchOrganizationPresence: (organizationKey: string, listener: PresenceListener) => () => void;
37
49
  export {};
@@ -1,17 +1,13 @@
1
- import { WebSocketResponseEventDTO, WebSocketSubscribeEventDTO } from '@juki-team/commons';
2
- import Ably from 'ably';
1
+ import { WebSocketResponseEventDto, WebSocketSubscribeEventDto } from '@juki-team/commons';
3
2
  type Message = {
4
3
  key: string;
5
- data: WebSocketResponseEventDTO;
4
+ data: WebSocketResponseEventDto;
6
5
  };
7
6
  type Subscriber = (message: Message) => void;
8
7
  export interface WebsocketSubStore {
9
- channelPublishSubscription: Ably.RealtimeChannel | null;
10
- channelPublishMessages: Ably.RealtimeChannel | null;
11
8
  newAuth: () => void;
12
- setProps: (props: Partial<Pick<WebsocketSubStore, 'channelPublishMessages' | 'channelPublishSubscription'>>) => void;
13
9
  subscribers: Record<string, Subscriber[]>;
14
- broadcastMessage: (key: string, data: WebSocketResponseEventDTO) => void;
15
- subscribeToEvent: (event: WebSocketSubscribeEventDTO, callback: Subscriber) => () => void;
10
+ broadcastMessage: (key: string, data: WebSocketResponseEventDto) => void;
11
+ subscribeToEvent: (event: WebSocketSubscribeEventDto, callback: Subscriber) => () => void;
16
12
  }
17
13
  export {};