@capytale/meta-player 0.2.3 → 0.2.4
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
|
@@ -133,7 +133,7 @@ export const useActivityJsEssentials = () => {
|
|
|
133
133
|
//@ts-expect-error
|
|
134
134
|
return ab.activityNode.content.value as string | null;
|
|
135
135
|
};
|
|
136
|
-
const
|
|
136
|
+
const getAssignmentContent = () => {
|
|
137
137
|
if (!ab.assignmentNode) {
|
|
138
138
|
throw new Error("No assignment node");
|
|
139
139
|
}
|
|
@@ -173,10 +173,12 @@ export const useActivityJsEssentials = () => {
|
|
|
173
173
|
//@ts-expect-error
|
|
174
174
|
ab.assignmentNode.binaryData.value = data;
|
|
175
175
|
};
|
|
176
|
+
const hasAssignment = !!ab.assignmentNode;
|
|
176
177
|
return {
|
|
177
178
|
mode,
|
|
179
|
+
hasAssignment,
|
|
178
180
|
getActivityContent,
|
|
179
|
-
|
|
181
|
+
getAssignmentContent,
|
|
180
182
|
getActivityBinaryData,
|
|
181
183
|
getAssignmentBinaryData,
|
|
182
184
|
setActivityContent,
|