@capytale/meta-player 0.6.0 → 0.6.2

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.6.0",
3
+ "version": "0.6.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -3,6 +3,8 @@ import { TimeRange } from "@capytale/activity.js/common/field";
3
3
  import { InitialEditorStateType } from "@capytale/capytale-rich-text-editor";
4
4
  import { wf } from "@capytale/activity.js/activity/field/workflow";
5
5
 
6
+ export type Workflow = wf;
7
+
6
8
  export type StudentInfo = {
7
9
  firstName: string;
8
10
  lastName: string;
@@ -43,7 +45,7 @@ export type ActivityJSData = {
43
45
  friendlyType: string;
44
46
  comments: string | null;
45
47
  grading: string | null;
46
- workflow: wf | null | undefined;
48
+ workflow: Workflow | null | undefined;
47
49
  antiCheat?: null | {
48
50
  passwordHash?: string | null;
49
51
  startLocked: boolean;
@@ -1,4 +1,5 @@
1
1
  .formLabel {
2
2
  }
3
3
  .formGroup {
4
+ margin-bottom: 1rem;
4
5
  }
@@ -95,7 +95,7 @@ export function ActivitySettingsFormDisplay({
95
95
  className={styles.formLabel}
96
96
  htmlFor={sectionId + "-" + name}
97
97
  >
98
- Range
98
+ {field.label}
99
99
  </label>
100
100
  <InputNumber
101
101
  min={field.min}
package/src/index.tsx CHANGED
@@ -40,6 +40,7 @@ import type {
40
40
  } from "./features/functionalities/functionalitiesSlice";
41
41
 
42
42
  import type { ActivityMode } from "@capytale/activity.js/activity/activitySession";
43
+ import type { Workflow } from "./features/activityData/activityJsData";
43
44
 
44
45
  export {
45
46
  MetaPlayer,
@@ -70,4 +71,10 @@ export {
70
71
  useRefreshAttachedFiles,
71
72
  Toast,
72
73
  };
73
- export type { ActivityMode, AttachedFileData, UploadedFileInfo, ToastMessage };
74
+ export type {
75
+ ActivityMode,
76
+ AttachedFileData,
77
+ UploadedFileInfo,
78
+ ToastMessage,
79
+ Workflow,
80
+ };