@elice/material-exercise 1.250529.0 → 1.250530.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.
- package/cjs/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +4 -2
- package/cjs/hooks/useRunnerRoomWebSocket.js +0 -2
- package/cjs/hooks/useStdioWebSocket.js +0 -2
- package/es/components/material-exercise/exercise-file-editor/ExerciseFileEditor.js +4 -2
- package/es/hooks/useRunnerRoomWebSocket.js +0 -2
- package/es/hooks/useStdioWebSocket.js +0 -2
- package/package.json +3 -3
|
@@ -374,9 +374,11 @@ var ExerciseFileEditor = function ExerciseFileEditor() {
|
|
|
374
374
|
return;
|
|
375
375
|
}
|
|
376
376
|
var content = model.getValue();
|
|
377
|
-
var _wsUsercode$sendOTs = wsUsercode.sendOTs(
|
|
377
|
+
var _wsUsercode$sendOTs = wsUsercode.sendOTs(
|
|
378
|
+
// ot-text-unicode doesn't accept empty deletion. So we fallback to no-op when content = "".
|
|
379
|
+
content.length > 0 ? [{
|
|
378
380
|
d: content
|
|
379
|
-
}, content]),
|
|
381
|
+
}, content] : []),
|
|
380
382
|
requestId = _wsUsercode$sendOTs.requestId;
|
|
381
383
|
usercodeSyncRequestsRef.current.set(requestId, request);
|
|
382
384
|
});
|
|
@@ -10,7 +10,6 @@ var humps = require('humps');
|
|
|
10
10
|
//
|
|
11
11
|
//
|
|
12
12
|
//
|
|
13
|
-
var MAX_WEBSOCKET_RETRY_COUNT = 5;
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
*/
|
|
@@ -134,7 +133,6 @@ var useRunnerRoomWebSocket = function useRunnerRoomWebSocket(_ref) {
|
|
|
134
133
|
return;
|
|
135
134
|
}
|
|
136
135
|
websocket$1.current = new websocket.EliceWebSocket(createUsercodeUrl, undefined, {
|
|
137
|
-
maxRetries: MAX_WEBSOCKET_RETRY_COUNT,
|
|
138
136
|
maxPingQueueTolerance: 1
|
|
139
137
|
});
|
|
140
138
|
websocket$1.current.onopen = wsOpen;
|
|
@@ -7,7 +7,6 @@ var websocket = require('@elice/websocket');
|
|
|
7
7
|
//
|
|
8
8
|
//
|
|
9
9
|
//
|
|
10
|
-
var MAX_WEBSOCKET_RETRY_COUNT = 5;
|
|
11
10
|
/**
|
|
12
11
|
*
|
|
13
12
|
*/
|
|
@@ -159,7 +158,6 @@ var useStdioWebSocket = function useStdioWebSocket(_ref) {
|
|
|
159
158
|
return;
|
|
160
159
|
}
|
|
161
160
|
websocket$1.current = new websocket.EliceWebSocket("".concat(wsUri, "/client/stdio/").concat(roomToken), undefined, {
|
|
162
|
-
maxRetries: MAX_WEBSOCKET_RETRY_COUNT,
|
|
163
161
|
heartAttack: true,
|
|
164
162
|
maxPingQueueTolerance: 1
|
|
165
163
|
});
|
|
@@ -366,9 +366,11 @@ var ExerciseFileEditor = function ExerciseFileEditor() {
|
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
368
|
var content = model.getValue();
|
|
369
|
-
var _wsUsercode$sendOTs = wsUsercode.sendOTs(
|
|
369
|
+
var _wsUsercode$sendOTs = wsUsercode.sendOTs(
|
|
370
|
+
// ot-text-unicode doesn't accept empty deletion. So we fallback to no-op when content = "".
|
|
371
|
+
content.length > 0 ? [{
|
|
370
372
|
d: content
|
|
371
|
-
}, content]),
|
|
373
|
+
}, content] : []),
|
|
372
374
|
requestId = _wsUsercode$sendOTs.requestId;
|
|
373
375
|
usercodeSyncRequestsRef.current.set(requestId, request);
|
|
374
376
|
});
|
|
@@ -8,7 +8,6 @@ import { camelizeKeys } from 'humps';
|
|
|
8
8
|
//
|
|
9
9
|
//
|
|
10
10
|
//
|
|
11
|
-
var MAX_WEBSOCKET_RETRY_COUNT = 5;
|
|
12
11
|
/**
|
|
13
12
|
*
|
|
14
13
|
*/
|
|
@@ -132,7 +131,6 @@ var useRunnerRoomWebSocket = function useRunnerRoomWebSocket(_ref) {
|
|
|
132
131
|
return;
|
|
133
132
|
}
|
|
134
133
|
websocket.current = new EliceWebSocket(createUsercodeUrl, undefined, {
|
|
135
|
-
maxRetries: MAX_WEBSOCKET_RETRY_COUNT,
|
|
136
134
|
maxPingQueueTolerance: 1
|
|
137
135
|
});
|
|
138
136
|
websocket.current.onopen = wsOpen;
|
|
@@ -5,7 +5,6 @@ import { EliceWebSocket } from '@elice/websocket';
|
|
|
5
5
|
//
|
|
6
6
|
//
|
|
7
7
|
//
|
|
8
|
-
var MAX_WEBSOCKET_RETRY_COUNT = 5;
|
|
9
8
|
/**
|
|
10
9
|
*
|
|
11
10
|
*/
|
|
@@ -157,7 +156,6 @@ var useStdioWebSocket = function useStdioWebSocket(_ref) {
|
|
|
157
156
|
return;
|
|
158
157
|
}
|
|
159
158
|
websocket.current = new EliceWebSocket("".concat(wsUri, "/client/stdio/").concat(roomToken), undefined, {
|
|
160
|
-
maxRetries: MAX_WEBSOCKET_RETRY_COUNT,
|
|
161
159
|
heartAttack: true,
|
|
162
160
|
maxPingQueueTolerance: 1
|
|
163
161
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elice/material-exercise",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.250530.0",
|
|
4
4
|
"description": "User view and editing components of Elice material exercise",
|
|
5
5
|
"repository": "https://git.elicer.io/elice/frontend/library/elice-material",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@elice/icons": "^1.230814.0",
|
|
84
84
|
"@elice/intl": "0.241127.0",
|
|
85
85
|
"@elice/markdown": "1.241015.0",
|
|
86
|
-
"@elice/material-shared-types": "1.
|
|
87
|
-
"@elice/material-shared-utils": "1.
|
|
86
|
+
"@elice/material-shared-types": "1.250530.0",
|
|
87
|
+
"@elice/material-shared-utils": "1.250530.0",
|
|
88
88
|
"@elice/mui-elements": "^5.250108.0-controllabel.0",
|
|
89
89
|
"@elice/mui-system": "^5.250108.0-controllabel.0",
|
|
90
90
|
"@elice/types": "1.241220.0",
|