@capytale/meta-player 0.8.2 → 0.8.3
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/.prettierrc.json +4 -4
- package/LICENSE +674 -674
- package/README.md +12 -12
- package/eslint.config.js +28 -28
- package/index.html +15 -15
- package/package.json +60 -60
- package/public/themes/lara-dark-blue/theme.css +7015 -7015
- package/public/themes/lara-light-blue/theme.css +7005 -7005
- package/src/App.tsx +139 -139
- package/src/AppRedux.css +39 -39
- package/src/MetaPlayer.tsx +170 -170
- package/src/activityJs.ts +7 -7
- package/src/app/createAppSlice.ts +6 -6
- package/src/app/hooks.ts +12 -12
- package/src/app/store.ts +52 -52
- package/src/app.module.scss +80 -80
- package/src/demo.tsx +87 -87
- package/src/external/prime.ts +5 -5
- package/src/features/activityData/ExitWarning.ts +28 -28
- package/src/features/activityData/IsAntiCheatExitDetectionDisabledSetter.tsx +19 -19
- package/src/features/activityData/IsDirtySetter.tsx +17 -17
- package/src/features/activityData/MetaPlayerOptionsSetter.tsx +41 -41
- package/src/features/activityData/activityDataSlice.ts +256 -256
- package/src/features/activityData/activityJsData.ts +82 -82
- package/src/features/activityData/hooks.ts +34 -34
- package/src/features/activityData/metaPlayerOptions.ts +23 -23
- package/src/features/activityData/uiState.ts +20 -20
- package/src/features/activityJS/ActivityJSProvider.tsx +339 -339
- package/src/features/activityJS/AfterResetAction.tsx +23 -23
- package/src/features/activityJS/AfterSaveAction.tsx +23 -23
- package/src/features/activityJS/BeforeResetAction.tsx +23 -23
- package/src/features/activityJS/BeforeSaveAction.tsx +23 -23
- package/src/features/activityJS/Saver.tsx +167 -167
- package/src/features/activityJS/hooks.ts +85 -85
- package/src/features/activityJS/internal-hooks.ts +96 -96
- package/src/features/activityJS/saverSlice.ts +96 -96
- package/src/features/activitySettings/ActivitySettingsSetter.tsx +21 -21
- package/src/features/activitySettings/hooks.ts +12 -12
- package/src/features/activitySettings/index.tsx +43 -43
- package/src/features/activitySettings/store.ts +108 -108
- package/src/features/activitySettings/style.module.scss +8 -8
- package/src/features/activitySettings/types.ts +140 -140
- package/src/features/activitySettings/ui.tsx +299 -299
- package/src/features/functionalities/AttachedFilesFunctionality.ts +23 -23
- package/src/features/functionalities/PreviewDialog.tsx +83 -83
- package/src/features/functionalities/functionalitiesSlice.ts +98 -98
- package/src/features/functionalities/hooks.ts +70 -70
- package/src/features/layout/hooks.ts +7 -7
- package/src/features/layout/layoutSlice.ts +90 -90
- package/src/features/navbar/activity-info/index.tsx +54 -54
- package/src/features/navbar/activity-info/style.module.scss +38 -38
- package/src/features/navbar/activity-menu/ActivityQuickActions.tsx +57 -57
- package/src/features/navbar/activity-menu/index.tsx +154 -153
- package/src/features/navbar/activity-menu/style.module.scss +7 -7
- package/src/features/navbar/capytale-menu/CloneDialog.tsx +75 -75
- package/src/features/navbar/capytale-menu/Countdown.tsx +312 -312
- package/src/features/navbar/capytale-menu/CountdownAndSaveButton.tsx +115 -115
- package/src/features/navbar/capytale-menu/index.tsx +260 -260
- package/src/features/navbar/capytale-menu/style.module.scss +8 -8
- package/src/features/navbar/index.tsx +39 -39
- package/src/features/navbar/navbarSlice.ts +79 -79
- package/src/features/navbar/review-navbar/GradingNav.tsx +128 -128
- package/src/features/navbar/review-navbar/index.tsx +18 -18
- package/src/features/navbar/review-navbar/style.module.scss +22 -22
- package/src/features/navbar/sidebars/ActivitySidebarActions.tsx +57 -57
- package/src/features/navbar/sidebars/AttachedFilesSidebarContent.module.scss +43 -43
- package/src/features/navbar/sidebars/AttachedFilesSidebarContent.tsx +181 -181
- package/src/features/navbar/sidebars/SettingsSidebarContent.tsx +192 -192
- package/src/features/navbar/sidebars/style.module.scss +15 -15
- package/src/features/navbar/student-utils.ts +11 -11
- package/src/features/navbar/style.module.scss +65 -65
- package/src/features/pedago/InstructionsEditor.tsx +102 -102
- package/src/features/pedago/PdfEditor.tsx +91 -91
- package/src/features/pedago/PedagoCommands.tsx +353 -353
- package/src/features/pedago/SharedNotesEditor.tsx +144 -144
- package/src/features/pedago/index.tsx +207 -204
- package/src/features/pedago/style.module.scss +233 -233
- package/src/features/theming/ThemeSwitcher.tsx +51 -51
- package/src/features/theming/hooks.ts +6 -6
- package/src/features/theming/themingSlice.ts +93 -93
- package/src/features/toast.tsx +38 -38
- package/src/hooks/index.ts +16 -16
- package/src/index.css +132 -132
- package/src/index.ts +90 -90
- package/src/logo.svg +1 -1
- package/src/my_json_data.js +4146 -4146
- package/src/settings.ts +6 -6
- package/src/types.ts +9 -9
- package/src/utils/ButtonDoubleIcon.tsx +35 -35
- package/src/utils/CardSelector.tsx +41 -41
- package/src/utils/ErrorBoundary.tsx +41 -41
- package/src/utils/PopupButton.tsx +134 -134
- package/src/utils/activity.ts +8 -8
- package/src/utils/breakpoints.ts +4 -4
- package/src/utils/capytale.ts +10 -10
- package/src/utils/clipboard.ts +11 -11
- package/src/utils/download.ts +7 -7
- package/src/utils/equality.ts +32 -32
- package/src/utils/server-clock.ts +42 -42
- package/src/utils/style.module.scss +45 -45
- package/src/utils/useFullscreen.ts +65 -65
- package/src/vite-env.d.ts +1 -1
- package/tsconfig.json +28 -28
- package/tsconfig.node.json +9 -9
- package/vite.config.ts +11 -11
package/src/index.ts
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
import "primeicons/primeicons.css";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
|
|
4
|
-
import MetaPlayer from "./MetaPlayer";
|
|
5
|
-
import MetaPlayerOptionsSetter from "./features/activityData/MetaPlayerOptionsSetter";
|
|
6
|
-
import BeforeSaveAction from "./features/activityJS/BeforeSaveAction";
|
|
7
|
-
import BeforeResetAction from "./features/activityJS/BeforeResetAction";
|
|
8
|
-
import AfterSaveAction from "./features/activityJS/AfterSaveAction";
|
|
9
|
-
import AfterResetAction from "./features/activityJS/AfterResetAction";
|
|
10
|
-
import { useMode, useWorkflow } from "./hooks";
|
|
11
|
-
import { useThemeType } from "./features/theming/hooks";
|
|
12
|
-
import {
|
|
13
|
-
useActivityJS,
|
|
14
|
-
useActivitySession,
|
|
15
|
-
useActivityBunch,
|
|
16
|
-
useActivityJsEssentials,
|
|
17
|
-
} from "./features/activityJS/ActivityJSProvider";
|
|
18
|
-
import {
|
|
19
|
-
useNotifyIsDirty,
|
|
20
|
-
useCanSave,
|
|
21
|
-
useSave,
|
|
22
|
-
} from "./features/activityData/hooks";
|
|
23
|
-
import { useOrientation } from "./features/layout/hooks";
|
|
24
|
-
import { ActivitySidebarActionsSetter } from "./features/navbar/sidebars/ActivitySidebarActions";
|
|
25
|
-
import { ActivityQuickActionsSetter } from "./features/navbar/activity-menu/ActivityQuickActions";
|
|
26
|
-
import ActivitySettingsSetter from "./features/activitySettings/ActivitySettingsSetter";
|
|
27
|
-
import IsDirtySetter from "./features/activityData/IsDirtySetter";
|
|
28
|
-
import AttachedFilesFunctionality from "./features/functionalities/AttachedFilesFunctionality";
|
|
29
|
-
import { useRefreshAttachedFiles } from "./features/functionalities/hooks";
|
|
30
|
-
import { useRegisterActivitySettings } from "./features/activitySettings/hooks";
|
|
31
|
-
import {
|
|
32
|
-
usePreviewTextFile,
|
|
33
|
-
usePreviewImageFile,
|
|
34
|
-
} from "./features/functionalities/hooks";
|
|
35
|
-
import { Toast } from "./external/prime";
|
|
36
|
-
import { useToast } from "./features/toast";
|
|
37
|
-
import type { ToastMessage } from "./external/prime";
|
|
38
|
-
import type {
|
|
39
|
-
AttachedFileData,
|
|
40
|
-
UploadedFileInfo,
|
|
41
|
-
} from "./features/functionalities/functionalitiesSlice";
|
|
42
|
-
|
|
43
|
-
import type { ActivityMode } from "@capytale/activity.js/activity/activitySession";
|
|
44
|
-
import type {
|
|
45
|
-
ActivitySettings,
|
|
46
|
-
InferValue,
|
|
47
|
-
} from "./features/activitySettings/types";
|
|
48
|
-
import type { Workflow } from "./features/activityData/activityJsData";
|
|
49
|
-
import type { BinaryDataMode } from "./features/activityJS/ActivityJSProvider";
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
MetaPlayer,
|
|
53
|
-
MetaPlayerOptionsSetter,
|
|
54
|
-
BeforeSaveAction,
|
|
55
|
-
BeforeResetAction,
|
|
56
|
-
AfterSaveAction,
|
|
57
|
-
AfterResetAction,
|
|
58
|
-
useMode,
|
|
59
|
-
useWorkflow,
|
|
60
|
-
useActivityJS,
|
|
61
|
-
useActivitySession,
|
|
62
|
-
useActivityBunch,
|
|
63
|
-
useActivityJsEssentials,
|
|
64
|
-
useNotifyIsDirty,
|
|
65
|
-
useCanSave,
|
|
66
|
-
useSave,
|
|
67
|
-
useOrientation,
|
|
68
|
-
useThemeType,
|
|
69
|
-
useRegisterActivitySettings,
|
|
70
|
-
usePreviewTextFile,
|
|
71
|
-
usePreviewImageFile,
|
|
72
|
-
ActivitySidebarActionsSetter,
|
|
73
|
-
ActivityQuickActionsSetter,
|
|
74
|
-
ActivitySettingsSetter,
|
|
75
|
-
IsDirtySetter,
|
|
76
|
-
AttachedFilesFunctionality,
|
|
77
|
-
useRefreshAttachedFiles,
|
|
78
|
-
useToast,
|
|
79
|
-
Toast,
|
|
80
|
-
};
|
|
81
|
-
export type {
|
|
82
|
-
ActivityMode,
|
|
83
|
-
ActivitySettings,
|
|
84
|
-
InferValue,
|
|
85
|
-
AttachedFileData,
|
|
86
|
-
BinaryDataMode,
|
|
87
|
-
ToastMessage,
|
|
88
|
-
UploadedFileInfo,
|
|
89
|
-
Workflow,
|
|
90
|
-
};
|
|
1
|
+
import "primeicons/primeicons.css";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
|
|
4
|
+
import MetaPlayer from "./MetaPlayer";
|
|
5
|
+
import MetaPlayerOptionsSetter from "./features/activityData/MetaPlayerOptionsSetter";
|
|
6
|
+
import BeforeSaveAction from "./features/activityJS/BeforeSaveAction";
|
|
7
|
+
import BeforeResetAction from "./features/activityJS/BeforeResetAction";
|
|
8
|
+
import AfterSaveAction from "./features/activityJS/AfterSaveAction";
|
|
9
|
+
import AfterResetAction from "./features/activityJS/AfterResetAction";
|
|
10
|
+
import { useMode, useWorkflow } from "./hooks";
|
|
11
|
+
import { useThemeType } from "./features/theming/hooks";
|
|
12
|
+
import {
|
|
13
|
+
useActivityJS,
|
|
14
|
+
useActivitySession,
|
|
15
|
+
useActivityBunch,
|
|
16
|
+
useActivityJsEssentials,
|
|
17
|
+
} from "./features/activityJS/ActivityJSProvider";
|
|
18
|
+
import {
|
|
19
|
+
useNotifyIsDirty,
|
|
20
|
+
useCanSave,
|
|
21
|
+
useSave,
|
|
22
|
+
} from "./features/activityData/hooks";
|
|
23
|
+
import { useOrientation } from "./features/layout/hooks";
|
|
24
|
+
import { ActivitySidebarActionsSetter } from "./features/navbar/sidebars/ActivitySidebarActions";
|
|
25
|
+
import { ActivityQuickActionsSetter } from "./features/navbar/activity-menu/ActivityQuickActions";
|
|
26
|
+
import ActivitySettingsSetter from "./features/activitySettings/ActivitySettingsSetter";
|
|
27
|
+
import IsDirtySetter from "./features/activityData/IsDirtySetter";
|
|
28
|
+
import AttachedFilesFunctionality from "./features/functionalities/AttachedFilesFunctionality";
|
|
29
|
+
import { useRefreshAttachedFiles } from "./features/functionalities/hooks";
|
|
30
|
+
import { useRegisterActivitySettings } from "./features/activitySettings/hooks";
|
|
31
|
+
import {
|
|
32
|
+
usePreviewTextFile,
|
|
33
|
+
usePreviewImageFile,
|
|
34
|
+
} from "./features/functionalities/hooks";
|
|
35
|
+
import { Toast } from "./external/prime";
|
|
36
|
+
import { useToast } from "./features/toast";
|
|
37
|
+
import type { ToastMessage } from "./external/prime";
|
|
38
|
+
import type {
|
|
39
|
+
AttachedFileData,
|
|
40
|
+
UploadedFileInfo,
|
|
41
|
+
} from "./features/functionalities/functionalitiesSlice";
|
|
42
|
+
|
|
43
|
+
import type { ActivityMode } from "@capytale/activity.js/activity/activitySession";
|
|
44
|
+
import type {
|
|
45
|
+
ActivitySettings,
|
|
46
|
+
InferValue,
|
|
47
|
+
} from "./features/activitySettings/types";
|
|
48
|
+
import type { Workflow } from "./features/activityData/activityJsData";
|
|
49
|
+
import type { BinaryDataMode } from "./features/activityJS/ActivityJSProvider";
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
MetaPlayer,
|
|
53
|
+
MetaPlayerOptionsSetter,
|
|
54
|
+
BeforeSaveAction,
|
|
55
|
+
BeforeResetAction,
|
|
56
|
+
AfterSaveAction,
|
|
57
|
+
AfterResetAction,
|
|
58
|
+
useMode,
|
|
59
|
+
useWorkflow,
|
|
60
|
+
useActivityJS,
|
|
61
|
+
useActivitySession,
|
|
62
|
+
useActivityBunch,
|
|
63
|
+
useActivityJsEssentials,
|
|
64
|
+
useNotifyIsDirty,
|
|
65
|
+
useCanSave,
|
|
66
|
+
useSave,
|
|
67
|
+
useOrientation,
|
|
68
|
+
useThemeType,
|
|
69
|
+
useRegisterActivitySettings,
|
|
70
|
+
usePreviewTextFile,
|
|
71
|
+
usePreviewImageFile,
|
|
72
|
+
ActivitySidebarActionsSetter,
|
|
73
|
+
ActivityQuickActionsSetter,
|
|
74
|
+
ActivitySettingsSetter,
|
|
75
|
+
IsDirtySetter,
|
|
76
|
+
AttachedFilesFunctionality,
|
|
77
|
+
useRefreshAttachedFiles,
|
|
78
|
+
useToast,
|
|
79
|
+
Toast,
|
|
80
|
+
};
|
|
81
|
+
export type {
|
|
82
|
+
ActivityMode,
|
|
83
|
+
ActivitySettings,
|
|
84
|
+
InferValue,
|
|
85
|
+
AttachedFileData,
|
|
86
|
+
BinaryDataMode,
|
|
87
|
+
ToastMessage,
|
|
88
|
+
UploadedFileInfo,
|
|
89
|
+
Workflow,
|
|
90
|
+
};
|
package/src/logo.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="#764ABC"><path d="M65.6 65.4c2.9-.3 5.1-2.8 5-5.8-.1-3-2.6-5.4-5.6-5.4h-.2c-3.1.1-5.5 2.7-5.4 5.8.1 1.5.7 2.8 1.6 3.7-3.4 6.7-8.6 11.6-16.4 15.7-5.3 2.8-10.8 3.8-16.3 3.1-4.5-.6-8-2.6-10.2-5.9-3.2-4.9-3.5-10.2-.8-15.5 1.9-3.8 4.9-6.6 6.8-8-.4-1.3-1-3.5-1.3-5.1-14.5 10.5-13 24.7-8.6 31.4 3.3 5 10 8.1 17.4 8.1 2 0 4-.2 6-.7 12.8-2.5 22.5-10.1 28-21.4z"/><path d="M83.2 53c-7.6-8.9-18.8-13.8-31.6-13.8H50c-.9-1.8-2.8-3-4.9-3h-.2c-3.1.1-5.5 2.7-5.4 5.8.1 3 2.6 5.4 5.6 5.4h.2c2.2-.1 4.1-1.5 4.9-3.4H52c7.6 0 14.8 2.2 21.3 6.5 5 3.3 8.6 7.6 10.6 12.8 1.7 4.2 1.6 8.3-.2 11.8-2.8 5.3-7.5 8.2-13.7 8.2-4 0-7.8-1.2-9.8-2.1-1.1 1-3.1 2.6-4.5 3.6 4.3 2 8.7 3.1 12.9 3.1 9.6 0 16.7-5.3 19.4-10.6 2.9-5.8 2.7-15.8-4.8-24.3z"/><path d="M32.4 67.1c.1 3 2.6 5.4 5.6 5.4h.2c3.1-.1 5.5-2.7 5.4-5.8-.1-3-2.6-5.4-5.6-5.4h-.2c-.2 0-.5 0-.7.1-4.1-6.8-5.8-14.2-5.2-22.2.4-6 2.4-11.2 5.9-15.5 2.9-3.7 8.5-5.5 12.3-5.6 10.6-.2 15.1 13 15.4 18.3 1.3.3 3.5 1 5 1.5-1.2-16.2-11.2-24.6-20.8-24.6-9 0-17.3 6.5-20.6 16.1-4.6 12.8-1.6 25.1 4 34.8-.5.7-.8 1.8-.7 2.9z"/></g></svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><g fill="#764ABC"><path d="M65.6 65.4c2.9-.3 5.1-2.8 5-5.8-.1-3-2.6-5.4-5.6-5.4h-.2c-3.1.1-5.5 2.7-5.4 5.8.1 1.5.7 2.8 1.6 3.7-3.4 6.7-8.6 11.6-16.4 15.7-5.3 2.8-10.8 3.8-16.3 3.1-4.5-.6-8-2.6-10.2-5.9-3.2-4.9-3.5-10.2-.8-15.5 1.9-3.8 4.9-6.6 6.8-8-.4-1.3-1-3.5-1.3-5.1-14.5 10.5-13 24.7-8.6 31.4 3.3 5 10 8.1 17.4 8.1 2 0 4-.2 6-.7 12.8-2.5 22.5-10.1 28-21.4z"/><path d="M83.2 53c-7.6-8.9-18.8-13.8-31.6-13.8H50c-.9-1.8-2.8-3-4.9-3h-.2c-3.1.1-5.5 2.7-5.4 5.8.1 3 2.6 5.4 5.6 5.4h.2c2.2-.1 4.1-1.5 4.9-3.4H52c7.6 0 14.8 2.2 21.3 6.5 5 3.3 8.6 7.6 10.6 12.8 1.7 4.2 1.6 8.3-.2 11.8-2.8 5.3-7.5 8.2-13.7 8.2-4 0-7.8-1.2-9.8-2.1-1.1 1-3.1 2.6-4.5 3.6 4.3 2 8.7 3.1 12.9 3.1 9.6 0 16.7-5.3 19.4-10.6 2.9-5.8 2.7-15.8-4.8-24.3z"/><path d="M32.4 67.1c.1 3 2.6 5.4 5.6 5.4h.2c3.1-.1 5.5-2.7 5.4-5.8-.1-3-2.6-5.4-5.6-5.4h-.2c-.2 0-.5 0-.7.1-4.1-6.8-5.8-14.2-5.2-22.2.4-6 2.4-11.2 5.9-15.5 2.9-3.7 8.5-5.5 12.3-5.6 10.6-.2 15.1 13 15.4 18.3 1.3.3 3.5 1 5 1.5-1.2-16.2-11.2-24.6-20.8-24.6-9 0-17.3 6.5-20.6 16.1-4.6 12.8-1.6 25.1 4 34.8-.5.7-.8 1.8-.7 2.9z"/></g></svg>
|