@juki-team/base-ui 1.5.14 → 1.5.16
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.
- package/dist/esm/ArrowForwardIcon-BIC54sbk.js +1 -0
- package/dist/esm/BarChart-54h6GU3p.js +1 -0
- package/dist/esm/{CartesianChart-DCv2SXML.js → CartesianChart-cNl_tqN9.js} +1 -1
- package/dist/esm/ChangePasswordModal-DGIG264-.js +1 -0
- package/dist/esm/CodeEditor-C5-1AgZR.js +1 -0
- package/dist/esm/CodeViewer-CQrzGpJT.js +1 -0
- package/dist/esm/Collapse-Cx9QTKZD.js +1 -0
- package/dist/esm/{DataGrid-1GBbtJPo.js → DataGrid-Bu-7Atkf.js} +1 -1
- package/dist/esm/DataViewer-Cv0iOPJ_.js +1 -0
- package/dist/esm/DrawerView-Cbw3l2O7.js +1 -0
- package/dist/esm/ExcalidrawButton-zJFah1nC.js +1 -0
- package/dist/esm/GraphvizViewer-DsTGulG0.js +1 -0
- package/dist/esm/ImageLoaderCropper-Bk1LxSbD.js +1 -0
- package/dist/esm/InputCellPhoneNumber-BaFBGcAe.js +1 -0
- package/dist/esm/{InputColor-UJ28fLOn.js → InputColor-DhUlWGSD.js} +1 -1
- package/dist/esm/LineChart-BQ1UY4l8.js +1 -0
- package/dist/esm/{LoaderLayer-CyitSTCe.js → LoaderLayer-aKmuHFys.js} +1 -1
- package/dist/esm/MdMath-DvH_O_A3.js +1 -0
- package/dist/esm/{MdMathEditor-DWwwX_SO.js → MdMathEditor-4-bjr11C.js} +1 -1
- package/dist/esm/{Popover-CmhtPayh.js → Popover-C0pozkRR.js} +1 -1
- package/dist/esm/ReplyIcon-DFPc1kie.js +1 -0
- package/dist/esm/{SettingsIcon-CegP07CF.js → SettingsIcon-P_1rE3U0.js} +1 -1
- package/dist/esm/SlideDeck-0cxhxG3b.js +1 -0
- package/dist/esm/{TableEyeIcon-C4nuk_xp.js → TableEyeIcon-5qDbI7lU.js} +1 -1
- package/dist/esm/{TableOfContents-B7API9_v.js → TableOfContents-DG7lfEl8.js} +1 -1
- package/dist/esm/Tooltip-OI-qyixa.js +1 -0
- package/dist/esm/UserCodeEditor-XI5CMxYI.js +61 -0
- package/dist/esm/VirtualizedRowsFixed-DH6WrMq1.js +1 -0
- package/dist/esm/WorksheetAsSlides-vK1Nqrlr.js +1 -0
- package/dist/esm/{WorksheetBodies-dstnMykc.js → WorksheetBodies-AupmhX--.js} +1 -1
- package/dist/esm/WorksheetContents-RcU2Wigz.js +1 -0
- package/dist/esm/WorksheetEditor-BExsBWi8.js +1 -0
- package/dist/esm/WorksheetNode-BTU0R61c.js +1 -0
- package/dist/esm/WorksheetViewer-Bn_SoOic.js +1 -0
- package/dist/esm/abnfDiagram-WEYOIA3C-Dpw6XMB5.js +1 -0
- package/dist/esm/{arc-DomqdCJb.js → arc-CVDK40Ip.js} +1 -1
- package/dist/esm/architectureDiagram-ZHVYKT53-CwRCJS-f.js +1 -0
- package/dist/esm/blockDiagram-RJAE7QA3-BsveJL2h.js +1 -0
- package/dist/esm/c4Diagram-XDPPPE54-DT_YwSdM.js +1 -0
- package/dist/esm/channel-DfU2WyO4.js +1 -0
- package/dist/esm/{chunk-2E7WHVMD-Beocb-Jh.js → chunk-2E7WHVMD-CDFgC3vV.js} +1 -1
- package/dist/esm/{chunk-2Q5K7J3B-BvYoUWYj.js → chunk-2Q5K7J3B-kc9wbXRi.js} +1 -1
- package/dist/esm/{chunk-4EMNKR2T-CwTwaoZv.js → chunk-4EMNKR2T-BOCYiV20.js} +1 -1
- package/dist/esm/{chunk-55XCU76K-Bm2vEyhO.js → chunk-55XCU76K-B9fq0Aas.js} +1 -1
- package/dist/esm/{chunk-5VM5RSS4-bDfGkvI-.js → chunk-5VM5RSS4-BiSpRiw9.js} +1 -1
- package/dist/esm/{chunk-JWPE2WC7-WoJ0Gwzc.js → chunk-JWPE2WC7-fUi3mFpq.js} +1 -1
- package/dist/esm/{chunk-NQOKRVIF-BsYoUZL4.js → chunk-NQOKRVIF-9yhnn9l0.js} +1 -1
- package/dist/esm/{chunk-VQ5W62QI-BTvKzH75.js → chunk-VQ5W62QI-k74sEYFL.js} +1 -1
- package/dist/esm/{chunk-XXDRQBXY-ClHdtw3t.js → chunk-XXDRQBXY-DJJHL2aw.js} +1 -1
- package/dist/esm/{chunk-ZCHMQSOR-BuzD1sYe.js → chunk-ZCHMQSOR-DZxET8Hs.js} +1 -1
- package/dist/esm/classDiagram-v2-4MYWR3UA-Ccw8sMnD.js +1 -0
- package/dist/esm/{commons-CmbPiYDE.js → commons-Bam9oxAR.js} +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/cose-bilkent-JH36ORCC-iT9n9qMD.js +1 -0
- package/dist/esm/cynefinDiagram-WF24UDRP-COkkadSX.js +1 -0
- package/dist/esm/dagre-NK4GIZVX-B2jYnU0Q.js +1 -0
- package/dist/esm/diagram-CBK3MWTC-DzCzOobH.js +1 -0
- package/dist/esm/diagram-I5XIIV2D-ChGPyzwT.js +1 -0
- package/dist/esm/diagram-ODIL2UCW-_jTs4ZGf.js +1 -0
- package/dist/esm/diagram-PFBEJUXE-C66lVsSz.js +1 -0
- package/dist/esm/diagram-RJA3I4VV-QELSA6fF.js +1 -0
- package/dist/esm/diagram-TYUNFSNR-Be-cdxPq.js +1 -0
- package/dist/esm/ebnfDiagram-V4P3TTPT-Cr1EANnv.js +1 -0
- package/dist/esm/elk-QONTBCTQ-CqfCbAWo.js +1 -0
- package/dist/esm/enums.js +1 -1
- package/dist/esm/erDiagram-KYQIGQAA-DMgweTFG.js +1 -0
- package/dist/esm/flowDiagram-IUGLLWBU-B4pY13UK.js +1 -0
- package/dist/esm/ganttDiagram-R7GPNTJY-YkRR1QZl.js +1 -0
- package/dist/esm/gitGraphDiagram-PDYL7XHY-BuhZy85T.js +1 -0
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/{index-DBVTTZ07.js → index-CTKRTL8i.js} +1 -1
- package/dist/esm/{index-P2yxumel.js → index-DU7OAICx.js} +1 -1
- package/dist/esm/{index-D9j3iMPO.js → index-DWLuqDsD.js} +1 -1
- package/dist/esm/index-c3o5xJQl.js +1 -0
- package/dist/esm/index-w_leOmyv.js +1 -0
- package/dist/esm/infoDiagram-MVDRKAX5-CfqZ5lu9.js +1 -0
- package/dist/esm/ishikawaDiagram-HPEHV2GE-fwZw1vDt.js +1 -0
- package/dist/esm/journeyDiagram-BOSHW7O7-CJ0qr25S.js +1 -0
- package/dist/esm/kanban-definition-FNSA4HC5-D467uQkY.js +1 -0
- package/dist/esm/main.js +1 -1
- package/dist/esm/{mermaid.core-GJX79pQL.js → mermaid.core-QEjDbduh.js} +2 -2
- package/dist/esm/mindmap-definition-6OY57UG3-BLQmSwVy.js +1 -0
- package/dist/esm/pegDiagram-ECIUJNBX-BD9B5ipu.js +1 -0
- package/dist/esm/pieDiagram-GNMPY74T-ALgTthPz.js +1 -0
- package/dist/esm/quadrantDiagram-D57K4MC3-DvM56mui.js +1 -0
- package/dist/esm/railroadDiagram-Y72NRBL7-Bbmv8kBV.js +1 -0
- package/dist/esm/requirementDiagram-EQYSW5RA-B2-FtMv8.js +1 -0
- package/dist/esm/sankeyDiagram-SY24JHO5-a4Tjq4bh.js +1 -0
- package/dist/esm/sequenceDiagram-BLEHNHQU-D51n1e3_.js +1 -0
- package/dist/esm/server.js +1 -1
- package/dist/esm/settings-Cd8fftVp.js +1 -0
- package/dist/esm/settings.js +1 -1
- package/dist/esm/sizeCapture-INFHLROL-EvtR_ZF3.js +1 -0
- package/dist/esm/stateDiagram-v2-A6IESKWZ-Dy_vLRVL.js +1 -0
- package/dist/esm/swimlanes-B3ENRKFQ-0pqT2-Jw.js +1 -0
- package/dist/esm/swimlanesDiagram-AYQRV4AK-COayinaD.js +1 -0
- package/dist/esm/timeline-definition-JXYKGLGB-DFhOynr-.js +1 -0
- package/dist/esm/{types-DS5jBUtV.js → types-C6dLWyzP.js} +1 -1
- package/dist/esm/usecaseDiagram-WPOLBNNX-MTVBbHK8.js +1 -0
- package/dist/esm/vennDiagram-Q3Y3IDCW-CgaIfPfv.js +1 -0
- package/dist/esm/wardleyDiagram-IVAIDKWA-CEQzSAI4.js +1 -0
- package/dist/esm/websocket-BppBoZUJ.js +1 -0
- package/dist/esm/xychartDiagram-4URNHDU4-BQJJ7mH2.js +1 -0
- package/dist/module-types/src/components/helpers/problem.d.ts +1 -1
- package/dist/module-types/src/components/helpers/websocket.d.ts +5 -11
- package/dist/module-types/src/components/hooks/useInjectOrganizationStyles.d.ts +1 -0
- package/dist/module-types/src/components/hooks/useJudge.d.ts +2 -2
- package/dist/module-types/src/components/hooks/useJukiUser.d.ts +17 -17
- package/dist/module-types/src/components/hooks/{useCompanyPresence.d.ts → useOrganizationPresence.d.ts} +3 -3
- package/dist/module-types/src/components/hooks/useOwnPresence.d.ts +1 -1
- package/dist/module-types/src/components/hooks/useSubmissionsJudging.d.ts +12 -0
- package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
- package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +1 -1
- package/dist/module-types/src/components/organisms/HorizontalMenu/MenuParts.d.ts +19 -0
- package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +3 -1
- package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
- package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +4 -4
- package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +8 -3
- package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +5 -4
- package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +2 -2
- package/dist/module-types/src/components/organisms/UserChip/types.d.ts +2 -2
- package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
- package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +3 -3
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +2 -2
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +2 -2
- package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +2 -2
- package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +2 -2
- package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
- package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
- package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +2 -2
- package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +1 -1
- package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +2 -2
- package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +1 -1
- package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
- package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
- package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
- package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +2 -2
- package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +4 -4
- package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +3 -3
- package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
- package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +5 -5
- package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
- package/dist/module-types/src/components/templates/MainMenu/types.d.ts +1 -1
- package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
- package/dist/module-types/src/components/templates/ProblemView/types.d.ts +3 -3
- package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
- package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +1 -1
- package/dist/module-types/src/components/templates/UserProfile/types.d.ts +3 -3
- package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +2 -2
- package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +3 -3
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +3 -3
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +2 -2
- package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +2 -2
- package/dist/module-types/src/components/templates/members/types.d.ts +6 -6
- package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
- package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
- package/dist/module-types/src/components/templates/problem/types.d.ts +10 -10
- package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
- package/dist/module-types/src/components/templates/submission/types.d.ts +9 -9
- package/dist/module-types/src/components/types/index.d.ts +6 -6
- package/dist/module-types/src/constants/index.d.ts +2 -2
- package/dist/module-types/src/enums/index.d.ts +1 -1
- package/dist/module-types/src/hooks/index.d.ts +2 -1
- package/dist/module-types/src/settings/ApiManager.d.ts +77 -93
- package/dist/module-types/src/settings/AppRoutes.d.ts +2 -2
- package/dist/module-types/src/stores/submissionsLive/useSubmissionsLiveStore.d.ts +26 -0
- package/dist/module-types/src/stores/websocket/topicChannels.d.ts +11 -10
- package/dist/module-types/src/stores/websocket/types.d.ts +4 -7
- package/package.json +2 -2
- package/dist/esm/ArrowForwardIcon-C9lEPgxF.js +0 -1
- package/dist/esm/BarChart-CmUpEfgx.js +0 -1
- package/dist/esm/ChangePasswordModal-CLhaqd0t.js +0 -1
- package/dist/esm/CodeEditor-BCPgv2Cb.js +0 -1
- package/dist/esm/CodeViewer-BRpMXuea.js +0 -1
- package/dist/esm/Collapse-afKIPlSN.js +0 -1
- package/dist/esm/DataViewer-sY3-mm2f.js +0 -1
- package/dist/esm/DrawerView-CDVcbXRh.js +0 -1
- package/dist/esm/ExcalidrawButton-DpC-H9ia.js +0 -1
- package/dist/esm/GraphvizViewer-BVrLuU49.js +0 -1
- package/dist/esm/ImageLoaderCropper-qgwMwAGw.js +0 -1
- package/dist/esm/InputCellPhoneNumber-EJdJwdOU.js +0 -1
- package/dist/esm/LineChart-CK_uehIw.js +0 -1
- package/dist/esm/MdMath-DdXwM7hb.js +0 -1
- package/dist/esm/ReplyIcon-CxQ2sdad.js +0 -1
- package/dist/esm/SlideDeck-BCpZmg4u.js +0 -1
- package/dist/esm/Tooltip-C_PscPTv.js +0 -1
- package/dist/esm/UserCodeEditor-DqHZdH0s.js +0 -61
- package/dist/esm/VirtualizedRowsFixed-ExvaHy3O.js +0 -1
- package/dist/esm/WorksheetAsSlides-Bf0TBaKQ.js +0 -1
- package/dist/esm/WorksheetContents-DSLbRrOR.js +0 -1
- package/dist/esm/WorksheetEditor-DHgjrze5.js +0 -1
- package/dist/esm/WorksheetNode-BWrXWPtD.js +0 -1
- package/dist/esm/WorksheetViewer-BtWO3C0N.js +0 -1
- package/dist/esm/abnfDiagram-WEYOIA3C-Hw5eOSwT.js +0 -1
- package/dist/esm/architectureDiagram-ZHVYKT53-BU7Zo-Vd.js +0 -1
- package/dist/esm/blockDiagram-RJAE7QA3-DSHzRL6J.js +0 -1
- package/dist/esm/c4Diagram-XDPPPE54-CpLQ9pqY.js +0 -1
- package/dist/esm/channel-p0K5iSo0.js +0 -1
- package/dist/esm/classDiagram-v2-4MYWR3UA-BGFOFtLW.js +0 -1
- package/dist/esm/cose-bilkent-JH36ORCC-WrGk8F3q.js +0 -1
- package/dist/esm/cynefinDiagram-WF24UDRP-plMeajnN.js +0 -1
- package/dist/esm/dagre-NK4GIZVX-DFmweJ5L.js +0 -1
- package/dist/esm/diagram-CBK3MWTC-Do3xyOgp.js +0 -1
- package/dist/esm/diagram-I5XIIV2D-BjcBIOdi.js +0 -1
- package/dist/esm/diagram-ODIL2UCW-B9Avmrsd.js +0 -1
- package/dist/esm/diagram-PFBEJUXE-BspjnifG.js +0 -1
- package/dist/esm/diagram-RJA3I4VV-CDb0YVvV.js +0 -1
- package/dist/esm/diagram-TYUNFSNR-CowQmn1U.js +0 -1
- package/dist/esm/ebnfDiagram-V4P3TTPT-DoV9Lfm1.js +0 -1
- package/dist/esm/elk-QONTBCTQ-Di5ig-t7.js +0 -1
- package/dist/esm/erDiagram-KYQIGQAA-bd6-MJG2.js +0 -1
- package/dist/esm/flowDiagram-IUGLLWBU-B0MSMUTA.js +0 -1
- package/dist/esm/ganttDiagram-R7GPNTJY-lkIa_H6_.js +0 -1
- package/dist/esm/gitGraphDiagram-PDYL7XHY-Vj--WuIK.js +0 -1
- package/dist/esm/index-KB6gLBva.js +0 -1
- package/dist/esm/index-jAIWmSeN.js +0 -1
- package/dist/esm/infoDiagram-MVDRKAX5-DOeZ2-C8.js +0 -1
- package/dist/esm/ishikawaDiagram-HPEHV2GE-CENo4osB.js +0 -1
- package/dist/esm/journeyDiagram-BOSHW7O7-C2tDYh4z.js +0 -1
- package/dist/esm/kanban-definition-FNSA4HC5-CoyAxabP.js +0 -1
- package/dist/esm/mindmap-definition-6OY57UG3-Cz5x8Ddo.js +0 -1
- package/dist/esm/pegDiagram-ECIUJNBX-Cp7mSGqB.js +0 -1
- package/dist/esm/pieDiagram-GNMPY74T-DoaR6KZl.js +0 -1
- package/dist/esm/quadrantDiagram-D57K4MC3-vGvfladt.js +0 -1
- package/dist/esm/railroadDiagram-Y72NRBL7-CC8xjkre.js +0 -1
- package/dist/esm/requirementDiagram-EQYSW5RA-CvYZNdVi.js +0 -1
- package/dist/esm/sankeyDiagram-SY24JHO5-DTEzoJWs.js +0 -1
- package/dist/esm/sequenceDiagram-BLEHNHQU-B1ssXHBq.js +0 -1
- package/dist/esm/settings-oXVFKYs2.js +0 -1
- package/dist/esm/sizeCapture-INFHLROL-BpAWjro_.js +0 -1
- package/dist/esm/stateDiagram-v2-A6IESKWZ-BpWTAT11.js +0 -1
- package/dist/esm/swimlanes-B3ENRKFQ-CRPiPPkB.js +0 -1
- package/dist/esm/swimlanesDiagram-AYQRV4AK-CPu0_glt.js +0 -1
- package/dist/esm/timeline-definition-JXYKGLGB-D7lhGXLl.js +0 -1
- package/dist/esm/usecaseDiagram-WPOLBNNX-07MB5ZhJ.js +0 -1
- package/dist/esm/vennDiagram-Q3Y3IDCW-BF4CwCTB.js +0 -1
- package/dist/esm/wardleyDiagram-IVAIDKWA-CE_jsTBp.js +0 -1
- package/dist/esm/websocket-CXHGKJlm.js +0 -1
- package/dist/esm/xychartDiagram-4URNHDU4-DK5TR51V.js +0 -1
- 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 {
|
|
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,
|
|
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
|
-
|
|
16
|
+
organizationKey: string;
|
|
17
17
|
};
|
|
18
|
-
body:
|
|
18
|
+
body: SignInPayloadDto;
|
|
19
19
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
20
20
|
signUp: (props: {
|
|
21
|
-
body:
|
|
21
|
+
body: SignUpPayloadDto;
|
|
22
22
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
23
23
|
createUser: (props: {
|
|
24
24
|
params?: {
|
|
25
|
-
|
|
25
|
+
organizationKey: string;
|
|
26
26
|
};
|
|
27
|
-
body:
|
|
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
|
-
|
|
39
|
+
organizationKey: string;
|
|
40
40
|
nickname: string;
|
|
41
41
|
};
|
|
42
|
-
body:
|
|
42
|
+
body: UpdatePasswordPayloadDto;
|
|
43
43
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
44
44
|
resetPassword: (props: {
|
|
45
45
|
params: {
|
|
46
|
-
|
|
46
|
+
organizationKey: string;
|
|
47
47
|
nickname: string;
|
|
48
48
|
};
|
|
49
49
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
50
50
|
createSession: (props: {
|
|
51
51
|
params?: {
|
|
52
|
-
|
|
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
|
-
|
|
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
|
-
|
|
97
|
+
organizationKey: string;
|
|
98
98
|
};
|
|
99
99
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
100
100
|
getProfile: (props: {
|
|
101
101
|
params: {
|
|
102
102
|
nickname: string;
|
|
103
|
-
|
|
103
|
+
organizationKey: string;
|
|
104
104
|
};
|
|
105
105
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
106
106
|
getLogs: (props: {
|
|
107
107
|
params: {
|
|
108
108
|
nickname: string;
|
|
109
|
-
|
|
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
|
-
|
|
129
|
+
organizationKey: string;
|
|
130
130
|
};
|
|
131
|
-
body:
|
|
131
|
+
body: UpdateUserProfileDataPayloadDto;
|
|
132
132
|
}) => ResponseAPI<HTTPMethod.PUT>;
|
|
133
133
|
updateProfileImage: (props: {
|
|
134
134
|
params: {
|
|
135
135
|
nickname: string;
|
|
136
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
273
|
+
organizationKey?: string;
|
|
282
274
|
};
|
|
283
275
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
284
276
|
getData: (props: {
|
|
285
277
|
params: {
|
|
286
278
|
key: string;
|
|
287
|
-
|
|
279
|
+
organizationKey?: string;
|
|
288
280
|
};
|
|
289
281
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
290
282
|
getDataEvents: (props: {
|
|
291
283
|
params: {
|
|
292
284
|
key: string;
|
|
293
|
-
|
|
285
|
+
organizationKey?: string;
|
|
294
286
|
};
|
|
295
287
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
296
288
|
getDataMembers: (props: {
|
|
297
289
|
params: {
|
|
298
290
|
key: string;
|
|
299
|
-
|
|
291
|
+
organizationKey?: string;
|
|
300
292
|
};
|
|
301
293
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
302
294
|
getDataClarifications: (props: {
|
|
303
295
|
params: {
|
|
304
296
|
key: string;
|
|
305
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
350
|
+
organizationKey?: string;
|
|
359
351
|
};
|
|
360
352
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
361
353
|
};
|
|
362
354
|
retrieve: (props: {
|
|
363
355
|
params: {
|
|
364
356
|
key: string;
|
|
365
|
-
|
|
357
|
+
organizationKey?: string;
|
|
366
358
|
};
|
|
367
359
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
368
360
|
editGlobal: (props: {
|
|
369
361
|
params: {
|
|
370
362
|
key: string;
|
|
371
|
-
|
|
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
|
-
|
|
382
|
-
|
|
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
|
-
|
|
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
|
-
|
|
401
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
511
|
+
organization: {
|
|
528
512
|
get: (props: void | {
|
|
529
513
|
params: {
|
|
530
|
-
|
|
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
|
-
|
|
520
|
+
organizationKey: string;
|
|
537
521
|
};
|
|
538
522
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
539
|
-
|
|
523
|
+
getTrustedOrganizationsList: (props: void | {
|
|
540
524
|
params: {
|
|
541
|
-
|
|
525
|
+
organizationKey: string;
|
|
542
526
|
};
|
|
543
527
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
544
528
|
getResourceSpecifications: (props: void | {
|
|
545
529
|
params: {
|
|
546
|
-
|
|
530
|
+
organizationKey: string;
|
|
547
531
|
};
|
|
548
532
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
549
533
|
getEmailData: (props: void | {
|
|
550
534
|
params: {
|
|
551
|
-
|
|
535
|
+
organizationKey: string;
|
|
552
536
|
};
|
|
553
537
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
554
538
|
updateImage: (props: {
|
|
555
539
|
params?: {
|
|
556
|
-
|
|
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
|
-
|
|
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?:
|
|
559
|
+
styles?: OrganizationStyles;
|
|
576
560
|
};
|
|
577
561
|
}) => ResponseAPI<HTTPMethod.PATCH>;
|
|
578
562
|
updateSensitiveData: (props: {
|
|
579
563
|
params: {
|
|
580
|
-
|
|
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
|
-
|
|
588
|
-
|
|
589
|
-
plan?:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
766
|
+
organizationKey?: string;
|
|
783
767
|
};
|
|
784
768
|
body: {
|
|
785
769
|
name: string;
|
|
@@ -797,20 +781,20 @@ export declare class ApiManager {
|
|
|
797
781
|
}) => ResponseAPI<HTTPMethod.PUT>;
|
|
798
782
|
};
|
|
799
783
|
statistics: {
|
|
800
|
-
|
|
784
|
+
getOrganizationStats: (props: {
|
|
801
785
|
params: {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
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
|
-
|
|
794
|
+
organizationKey?: string;
|
|
811
795
|
problemKey: string;
|
|
812
|
-
|
|
813
|
-
|
|
796
|
+
startsAt: number;
|
|
797
|
+
endsAt: number;
|
|
814
798
|
};
|
|
815
799
|
}) => ResponseAPI<HTTPMethod.GET>;
|
|
816
800
|
};
|
|
@@ -829,7 +813,7 @@ export declare class ApiManager {
|
|
|
829
813
|
tags: string[];
|
|
830
814
|
elements: OrderedExcalidrawElement[];
|
|
831
815
|
appsState: AppState;
|
|
832
|
-
members:
|
|
816
|
+
members: EntityMembersDto;
|
|
833
817
|
};
|
|
834
818
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
835
819
|
updateData: (props: {
|
|
@@ -841,7 +825,7 @@ export declare class ApiManager {
|
|
|
841
825
|
tags: string[];
|
|
842
826
|
elements: OrderedExcalidrawElement[];
|
|
843
827
|
appsState: AppState;
|
|
844
|
-
members:
|
|
828
|
+
members: EntityMembersDto;
|
|
845
829
|
};
|
|
846
830
|
}) => ResponseAPI<HTTPMethod.PUT>;
|
|
847
831
|
getMetadata: (props: {
|
|
@@ -869,7 +853,7 @@ export declare class ApiManager {
|
|
|
869
853
|
name: string;
|
|
870
854
|
tags: string[];
|
|
871
855
|
files: CodeEditorFiles<CodeLanguage.MERMAID>;
|
|
872
|
-
members:
|
|
856
|
+
members: EntityMembersDto;
|
|
873
857
|
};
|
|
874
858
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
875
859
|
updateData: (props: {
|
|
@@ -880,7 +864,7 @@ export declare class ApiManager {
|
|
|
880
864
|
name: string;
|
|
881
865
|
tags: string[];
|
|
882
866
|
files: CodeEditorFiles<CodeLanguage.MERMAID>;
|
|
883
|
-
members:
|
|
867
|
+
members: EntityMembersDto;
|
|
884
868
|
};
|
|
885
869
|
}) => ResponseAPI<HTTPMethod.PUT>;
|
|
886
870
|
getMetadata: (props: {
|
|
@@ -908,7 +892,7 @@ export declare class ApiManager {
|
|
|
908
892
|
name: string;
|
|
909
893
|
tags: string[];
|
|
910
894
|
files: CodeEditorFiles<CodeLanguage.MERMAID>;
|
|
911
|
-
members:
|
|
895
|
+
members: EntityMembersDto;
|
|
912
896
|
};
|
|
913
897
|
}) => ResponseAPI<HTTPMethod.POST>;
|
|
914
898
|
updateData: (props: {
|
|
@@ -919,7 +903,7 @@ export declare class ApiManager {
|
|
|
919
903
|
name: string;
|
|
920
904
|
tags: string[];
|
|
921
905
|
files: CodeEditorFiles<CodeLanguage.MARKDOWN>;
|
|
922
|
-
members:
|
|
906
|
+
members: EntityMembersDto;
|
|
923
907
|
};
|
|
924
908
|
}) => ResponseAPI<HTTPMethod.PUT>;
|
|
925
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,
|
|
8
|
+
view({ nickname, organizationKey, tab }: {
|
|
9
9
|
nickname: string;
|
|
10
|
-
|
|
10
|
+
organizationKey: string;
|
|
11
11
|
tab?: ProfileTab;
|
|
12
12
|
}): string;
|
|
13
13
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ProblemVerdict, SubmissionRunStatus, type TestInfo } from '@juki-team/commons';
|
|
2
|
+
export interface LiveSubmissionData {
|
|
3
|
+
status: SubmissionRunStatus;
|
|
4
|
+
verdict: ProblemVerdict;
|
|
5
|
+
points: number;
|
|
6
|
+
testInfo?: TestInfo;
|
|
7
|
+
createdAt: number;
|
|
8
|
+
}
|
|
9
|
+
export interface LiveSubmission {
|
|
10
|
+
judging: boolean;
|
|
11
|
+
data: LiveSubmissionData;
|
|
12
|
+
/** when the last accepted message arrived (client clock) */
|
|
13
|
+
receivedAt: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const isTerminalStatus: (status: SubmissionRunStatus) => status is SubmissionRunStatus.FAILED | SubmissionRunStatus.COMPLETED;
|
|
16
|
+
interface SubmissionsLiveState {
|
|
17
|
+
entries: Record<string, LiveSubmission>;
|
|
18
|
+
apply: (submitId: string, data: LiveSubmissionData) => void;
|
|
19
|
+
remove: (submitId: string) => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Live state of the submissions by submitId, fed by the websocket messages. It lives outside the cells so it survives
|
|
23
|
+
* their unmounts (virtualized rows while scrolling, changing tabs) and is shared by every cell of a submission.
|
|
24
|
+
*/
|
|
25
|
+
export declare const useSubmissionsLiveStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SubmissionsLiveState>>;
|
|
26
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientId, UserPresenceData,
|
|
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,18 +10,19 @@ 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
|
-
* -
|
|
14
|
-
*
|
|
13
|
+
* - problem being viewed (`problem:{key}:{role}`): its token param is requested while it is viewed
|
|
14
|
+
* - organization presence (`presence:organization:{id}`): this tab enters the presence of its organization (`presence` only, it
|
|
15
|
+
* does not receive the others); the administrators watching a organization also receive it (`presence-subscribe`)
|
|
15
16
|
*
|
|
16
17
|
* The messages are dispatched with the same keys as the subscriptions (`getWebSocketResponseEventKeyOfResponse`).
|
|
17
18
|
*/
|
|
18
|
-
type Dispatch = (key: string, data:
|
|
19
|
+
type Dispatch = (key: string, data: WebSocketResponseEventDto) => void;
|
|
19
20
|
/**
|
|
20
21
|
* Params sent to the API when requesting the Ably token: the API decides what is granted for them.
|
|
21
22
|
*/
|
|
22
23
|
export declare const getTopicChannelsAuthParams: () => {
|
|
23
24
|
contestKey?: string;
|
|
24
|
-
|
|
25
|
+
problemKey?: string;
|
|
25
26
|
presenceCompanyKey?: string;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
@@ -30,7 +31,7 @@ export declare const getTopicChannelsAuthParams: () => {
|
|
|
30
31
|
export declare const setTopicChannelsCapability: (tokenCapability: unknown) => void;
|
|
31
32
|
type PresenceListener = (members: Ably.PresenceMessage[]) => void;
|
|
32
33
|
/**
|
|
33
|
-
* Data of this tab in the presence of its
|
|
34
|
+
* Data of this tab in the presence of its organization (informative, the identity is the clientId verified by Ably).
|
|
34
35
|
*/
|
|
35
36
|
export declare const setOwnPresenceData: (data: UserPresenceData) => void;
|
|
36
37
|
/**
|
|
@@ -38,13 +39,13 @@ export declare const setOwnPresenceData: (data: UserPresenceData) => void;
|
|
|
38
39
|
*/
|
|
39
40
|
export declare const initTopicChannels: (realtimeClient: Ably.Realtime, newClientId: ClientId, newDispatch: Dispatch) => void;
|
|
40
41
|
/**
|
|
41
|
-
* Registers the topic channel (and the contest
|
|
42
|
+
* Registers the topic channel (and the contest token param) of a subscription.
|
|
42
43
|
* Returns the function to unregister it.
|
|
43
44
|
*/
|
|
44
|
-
export declare const addTopicSubscription: (event:
|
|
45
|
+
export declare const addTopicSubscription: (event: WebSocketSubscribeEventDto) => () => void;
|
|
45
46
|
/**
|
|
46
|
-
* Watches the live presence of the clients of a
|
|
47
|
+
* Watches the live presence of the clients of a organization (the API only grants it to its user administrators).
|
|
47
48
|
* The listener receives every present member on each change. Returns the function to stop watching.
|
|
48
49
|
*/
|
|
49
|
-
export declare const
|
|
50
|
+
export declare const watchOrganizationPresence: (organizationKey: string, listener: PresenceListener) => () => void;
|
|
50
51
|
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import Ably from 'ably';
|
|
1
|
+
import { WebSocketResponseEventDto, WebSocketSubscribeEventDto } from '@juki-team/commons';
|
|
3
2
|
type Message = {
|
|
4
3
|
key: string;
|
|
5
|
-
data:
|
|
4
|
+
data: WebSocketResponseEventDto;
|
|
6
5
|
};
|
|
7
6
|
type Subscriber = (message: Message) => void;
|
|
8
7
|
export interface WebsocketSubStore {
|
|
9
|
-
channelPublishMessages: Ably.RealtimeChannel | null;
|
|
10
8
|
newAuth: () => void;
|
|
11
|
-
setProps: (props: Partial<Pick<WebsocketSubStore, 'channelPublishMessages'>>) => void;
|
|
12
9
|
subscribers: Record<string, Subscriber[]>;
|
|
13
|
-
broadcastMessage: (key: string, data:
|
|
14
|
-
subscribeToEvent: (event:
|
|
10
|
+
broadcastMessage: (key: string, data: WebSocketResponseEventDto) => void;
|
|
11
|
+
subscribeToEvent: (event: WebSocketSubscribeEventDto, callback: Subscriber) => () => void;
|
|
15
12
|
}
|
|
16
13
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juki-team/base-ui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/juki-team/base-ui"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@floating-ui/react": "^0.27.20",
|
|
92
92
|
"@handsontable/react-wrapper": "^18.1.2",
|
|
93
93
|
"@hookform/resolvers": "^6.0.2",
|
|
94
|
-
"@juki-team/commons": "0.1.
|
|
94
|
+
"@juki-team/commons": "0.1.47",
|
|
95
95
|
"@mdx-js/mdx": "^3.1.1",
|
|
96
96
|
"@milkdown/components": "^7.23.0",
|
|
97
97
|
"@milkdown/core": "^7.23.0",
|