diff --git a/package.json b/package.json index d7ef31c115..1a3b9a8ada 100644 --- a/package.json +++ b/package.json @@ -33,17 +33,18 @@ "@blueprintjs/datetime2": "^2.3.3", "@blueprintjs/icons": "^6.0.0", "@blueprintjs/select": "^5.1.3", + "@convergencelabs/ace-collab-ext": "^0.6.0", "@mantine/hooks": "^7.11.2", "@octokit/rest": "^20.0.0", "@reduxjs/toolkit": "^1.9.7", "@sentry/browser": "^8.33.0", "@sourceacademy/c-slang": "^1.0.21", - "@sourceacademy/sharedb-ace": "^2.0.3", + "@sourceacademy/sharedb-ace": "^2.1.1", "@sourceacademy/sling-client": "^0.1.0", "@szhsin/react-menu": "^4.0.0", "@tanstack/react-table": "^8.9.3", "@tremor/react": "^1.8.2", - "ace-builds": "^1.36.3", + "ace-builds": "^1.42.1", "acorn": "^8.9.0", "ag-grid-community": "^32.3.1", "ag-grid-react": "^32.3.1", @@ -58,6 +59,7 @@ "hastscript": "^9.0.0", "i18next": "^25.0.0", "i18next-browser-languagedetector": "^8.0.0", + "immer": "^10.1.1", "java-slang": "^1.0.13", "js-cookie": "^3.0.5", "js-slang": "^1.0.84", @@ -113,7 +115,6 @@ "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/preset-typescript": "^7.24.1", "@babel/runtime": "^7.24.5", - "@convergencelabs/ace-collab-ext": "^0.6.0", "@rsbuild/core": "^1.3.12", "@rsbuild/plugin-eslint": "^1.1.1", "@rsbuild/plugin-node-polyfill": "^1.3.0", @@ -126,7 +127,7 @@ "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "^16.0.0", - "@testing-library/user-event": "^14.4.3", + "@testing-library/user-event": "^14.6.0", "@types/estree": "^1.0.5", "@types/gapi": "^0.0.47", "@types/gapi.auth2": "^0.0.61", diff --git a/src/commons/application/ApplicationTypes.ts b/src/commons/application/ApplicationTypes.ts index 9f91a27e1f..87bc1e9e2d 100644 --- a/src/commons/application/ApplicationTypes.ts +++ b/src/commons/application/ApplicationTypes.ts @@ -418,7 +418,8 @@ export const createDefaultWorkspace = (workspaceLocation: WorkspaceLocation): Wo enableDebugging: true, debuggerContext: {} as DebuggerContext, lastDebuggerResult: undefined, - files: {} + files: {}, + updateUserRoleCallback: () => {} }); const defaultFileName = 'program.js'; diff --git a/src/commons/assessmentWorkspace/__tests__/__snapshots__/AssessmentWorkspace.tsx.snap b/src/commons/assessmentWorkspace/__tests__/__snapshots__/AssessmentWorkspace.tsx.snap index 3f1f133cb7..8d823957e3 100644 --- a/src/commons/assessmentWorkspace/__tests__/__snapshots__/AssessmentWorkspace.tsx.snap +++ b/src/commons/assessmentWorkspace/__tests__/__snapshots__/AssessmentWorkspace.tsx.snap @@ -223,6 +223,7 @@ exports[`AssessmentWorkspace AssessmentWorkspace page with ContestVoting questio
+ +
@@ -1232,6 +1242,7 @@ exports[`AssessmentWorkspace AssessmentWorkspace page with ContestVoting questio