@capytale/meta-player 0.3.0 → 0.3.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.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -9,6 +9,9 @@
9
9
  border: none;
10
10
  border-radius: 0;
11
11
  overflow-y: hidden;
12
+ & > * {
13
+ overflow-y: hidden;
14
+ }
12
15
  .pedagoContainer[data-show-pedago="false"] & {
13
16
  & > :first-child {
14
17
  display: none;
@@ -23,7 +23,7 @@ export type Instructions = {
23
23
 
24
24
  export type Icon = {
25
25
  path: string;
26
- style: any;
26
+ style?: any;
27
27
  };
28
28
 
29
29
  interface ActivityJSData {
@@ -174,8 +174,10 @@ export const useActivityJsEssentials = () => {
174
174
  ab.assignmentNode.binaryData.value = data;
175
175
  };
176
176
  const hasAssignment = !!ab.assignmentNode;
177
+ const title = ab.title.value;
177
178
  return {
178
179
  mode,
180
+ title,
179
181
  hasAssignment,
180
182
  getActivityContent,
181
183
  getAssignmentContent,
@@ -30,7 +30,9 @@ const ActivityInfo: React.FC = () => {
30
30
  className={styles.activityLogo}
31
31
  src={icon.path}
32
32
  style={{
33
- backgroundColor: icon.style["background-color"],
33
+ backgroundColor: icon.style
34
+ ? icon.style["background-color"] || "white"
35
+ : "white",
34
36
  }}
35
37
  />
36
38
  )}