@elice/material-runbox 1.250317.0-concurrenttutoring.3 → 1.250319.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.
@@ -28,7 +28,7 @@ var MaterialRunboxAlert = function MaterialRunboxAlert(_ref) {
28
28
  enabled: Boolean(runbox.id && courseId && studentUserId && isTutoring)
29
29
  }),
30
30
  starter = _useMaterialRunboxRun.data;
31
- var isStudentRunboxRunning = (starter === null || starter === void 0 ? void 0 : starter.userId) !== userId;
31
+ var isStudentRunboxRunning = (starter === null || starter === void 0 ? void 0 : starter.userId) && starter.userId !== userId;
32
32
  //
33
33
  //
34
34
  //
@@ -1,5 +1,5 @@
1
1
  import type { RuntimeProps } from '../runtime/Runtime';
2
- type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch' | 'userId'>;
2
+ type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch' | 'userId' | 'studentUserId' | 'isTutoring'>;
3
3
  interface UseRunboxControlReturn {
4
4
  start: (force?: boolean) => Promise<void>;
5
5
  stop: () => Promise<void>;
@@ -39,7 +39,7 @@ var useRunboxControl = function useRunboxControl(props) {
39
39
  runboxId: props.runbox.id,
40
40
  eliceCourseId: props.courseId,
41
41
  runboxStartRequest: {
42
- userId: props.userId
42
+ userId: props.isTutoring ? props.studentUserId : props.userId
43
43
  }
44
44
  }, {
45
45
  signal: signal
@@ -62,7 +62,7 @@ var useRunboxControl = function useRunboxControl(props) {
62
62
  }, _callee);
63
63
  })),
64
64
  // eslint-disable-next-line react-hooks/exhaustive-deps
65
- [props.runbox.id, props.courseId, props.userId, runboxStart]);
65
+ [props.runbox.id, props.courseId, props.userId, props.studentUserId, props.isTutoring, runboxStart]);
66
66
  /**
67
67
  * Stop project.
68
68
  */
@@ -24,7 +24,7 @@ var MaterialRunboxAlert = function MaterialRunboxAlert(_ref) {
24
24
  enabled: Boolean(runbox.id && courseId && studentUserId && isTutoring)
25
25
  }),
26
26
  starter = _useMaterialRunboxRun.data;
27
- var isStudentRunboxRunning = (starter === null || starter === void 0 ? void 0 : starter.userId) !== userId;
27
+ var isStudentRunboxRunning = (starter === null || starter === void 0 ? void 0 : starter.userId) && starter.userId !== userId;
28
28
  //
29
29
  //
30
30
  //
@@ -1,5 +1,5 @@
1
1
  import type { RuntimeProps } from '../runtime/Runtime';
2
- type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch' | 'userId'>;
2
+ type UseRunboxControlProps = Pick<RuntimeProps, 'runbox' | 'courseId' | 'refetch' | 'userId' | 'studentUserId' | 'isTutoring'>;
3
3
  interface UseRunboxControlReturn {
4
4
  start: (force?: boolean) => Promise<void>;
5
5
  stop: () => Promise<void>;
@@ -37,7 +37,7 @@ var useRunboxControl = function useRunboxControl(props) {
37
37
  runboxId: props.runbox.id,
38
38
  eliceCourseId: props.courseId,
39
39
  runboxStartRequest: {
40
- userId: props.userId
40
+ userId: props.isTutoring ? props.studentUserId : props.userId
41
41
  }
42
42
  }, {
43
43
  signal: signal
@@ -60,7 +60,7 @@ var useRunboxControl = function useRunboxControl(props) {
60
60
  }, _callee);
61
61
  })),
62
62
  // eslint-disable-next-line react-hooks/exhaustive-deps
63
- [props.runbox.id, props.courseId, props.userId, runboxStart]);
63
+ [props.runbox.id, props.courseId, props.userId, props.studentUserId, props.isTutoring, runboxStart]);
64
64
  /**
65
65
  * Stop project.
66
66
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-runbox",
3
- "version": "1.250317.0-concurrenttutoring.3",
3
+ "version": "1.250319.0",
4
4
  "description": "User view and editing components of Elice material runbox",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -51,12 +51,12 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@elice/intl": "0.241127.0",
54
- "@elice/material-shared-types": "1.250317.0-concurrenttutoring.3",
55
- "@elice/material-shared-utils": "1.250317.0-concurrenttutoring.3",
54
+ "@elice/material-shared-types": "1.250319.0",
55
+ "@elice/material-shared-utils": "1.250319.0",
56
56
  "@elice/mui-elements": "^5.250108.0-controllabel.0",
57
57
  "@elice/mui-system": "^5.250108.0-controllabel.0",
58
58
  "@elice/mui-x-snackbar": "^5.250108.0-controllabel.0",
59
- "@elice/openapi-client-material-runbox": "1.250317.0-concurrent.0",
59
+ "@elice/openapi-client-material-runbox": "1.250319.0",
60
60
  "@elice/runbox-client": "1.241127.0",
61
61
  "@elice/types": "1.241220.0",
62
62
  "@emotion/react": "^11.10.5",