@capytale/meta-player 0.5.17 → 0.5.19
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capytale/meta-player",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@capytale/activity.js": "^3.1.
|
|
19
|
+
"@capytale/activity.js": "^3.1.26",
|
|
20
20
|
"@capytale/capytale-anti-triche": "^0.2.1",
|
|
21
21
|
"@capytale/capytale-rich-text-editor": "^0.4.3",
|
|
22
22
|
"@reduxjs/toolkit": "^2.0.1",
|
package/src/activityJs.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import evaluationApi from "@capytale/activity.js/backend/capytale/evaluation";
|
|
2
|
+
import type { ActivityMode } from "@capytale/activity.js/activity/activitySession";
|
|
2
3
|
import type { Evaluation } from "@capytale/activity.js/activity/evaluation/evaluation";
|
|
4
|
+
import devconf from "@capytale/activity.js/util/devconf";
|
|
3
5
|
|
|
4
|
-
export { evaluationApi };
|
|
5
|
-
export type { Evaluation };
|
|
6
|
+
export { evaluationApi, devconf };
|
|
7
|
+
export type { Evaluation, ActivityMode };
|
|
@@ -24,9 +24,9 @@ const InstructionsEditor: React.FC = forwardRef((_props, ref) => {
|
|
|
24
24
|
const htmlInitialContent = useMemo(() => {
|
|
25
25
|
return initialInstructions?.format === "lexical"
|
|
26
26
|
? undefined
|
|
27
|
-
: initialInstructions?.
|
|
27
|
+
: initialInstructions?.htmlValue === null
|
|
28
28
|
? undefined
|
|
29
|
-
: (initialInstructions?.
|
|
29
|
+
: (initialInstructions?.htmlValue as string) || ""; // HTML content in value
|
|
30
30
|
}, [initialInstructions]);
|
|
31
31
|
const initialEditorState = useMemo(() => {
|
|
32
32
|
return initialInstructions?.format === "lexical"
|
package/src/index.tsx
CHANGED
|
@@ -37,6 +37,8 @@ import type {
|
|
|
37
37
|
UploadedFileInfo,
|
|
38
38
|
} from "./features/functionalities/functionalitiesSlice";
|
|
39
39
|
|
|
40
|
+
import type { ActivityMode } from "@capytale/activity.js/activity/activitySession";
|
|
41
|
+
|
|
40
42
|
export {
|
|
41
43
|
MetaPlayer,
|
|
42
44
|
MetaPlayerOptionsSetter,
|
|
@@ -64,4 +66,4 @@ export {
|
|
|
64
66
|
useRefreshAttachedFiles,
|
|
65
67
|
Toast,
|
|
66
68
|
};
|
|
67
|
-
export type { AttachedFileData, UploadedFileInfo, ToastMessage };
|
|
69
|
+
export type { ActivityMode, AttachedFileData, UploadedFileInfo, ToastMessage };
|