Skip to content

Commit

Permalink
remove multipage activity feature (#277)
Browse files Browse the repository at this point in the history
* remove multipage activity feature
* remove apiURLs; support only postMessages
* add `render` flag to DoenetML
* send `allPossibleVariants` message after initializing
* fix mathjax configuration file for version 3
  • Loading branch information
dqnykamp authored Jan 17, 2025
1 parent 74f4ddf commit 0ac7566
Show file tree
Hide file tree
Showing 52 changed files with 988 additions and 8,678 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ src/test/testCode.doenet

**/cypress/videos
**/cypress/screenshots
**/cypress/downloads
runner-results
parallel-weights.json

Expand Down
43 changes: 10 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/doenetml-iframe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@doenet/doenetml-iframe",
"type": "module",
"description": "A renderer for DoenetML contained in an iframe",
"version": "0.7.0-alpha21",
"version": "0.7.0-alpha23",
"license": "AGPL-3.0-or-later",
"homepage": "https://github.com/Doenet/DoenetML#readme",
"private": true,
Expand Down
30 changes: 0 additions & 30 deletions packages/doenetml-iframe/src/iframe-viewer-index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,12 @@ document.addEventListener("DOMContentLoaded", () => {
args,
});
},
updateActivityStatusCallback: (args: unknown) => {
messageParentFromViewer({
callback: "updateActivityStatusCallback",
args,
});
},
updateAttemptNumber: (args: unknown) => {
messageParentFromViewer({
callback: "updateAttemptNumber",
args,
});
},
pageChangedCallback: (args: unknown) => {
messageParentFromViewer({
callback: "pageChangedCallback",
args,
});
},
cidChangedCallback: (args: unknown) => {
messageParentFromViewer({
callback: "cidChangedCallback",
args,
});
},
checkIfCidChanged: (args: unknown) => {
messageParentFromViewer({
callback: "checkIfCidChanged",
args,
});
},
setActivityAsCompleted: (args: unknown) => {
messageParentFromViewer({
callback: "setActivityAsCompleted",
args,
});
},
setIsInErrorState: (args: unknown) => {
messageParentFromViewer({
callback: "setIsInErrorState",
Expand Down
19 changes: 0 additions & 19 deletions packages/doenetml-iframe/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,28 +169,9 @@ export function DoenetViewer({
data.args,
);
}
case "updateActivityStatusCallback": {
return doenetViewerProps.updateActivityStatusCallback?.(
data.args,
);
}
case "updateAttemptNumber": {
return doenetViewerProps.updateAttemptNumber?.(data.args);
}
case "pageChangedCallback": {
return doenetViewerProps.pageChangedCallback?.(data.args);
}
case "cidChangedCallback": {
return doenetViewerProps.cidChangedCallback?.(data.args);
}
case "checkIfCidChanged": {
return doenetViewerProps.checkIfCidChanged?.(data.args);
}
case "setActivityAsCompleted": {
return doenetViewerProps.setActivityAsCompleted?.(
data.args,
);
}
case "setIsInErrorState": {
return doenetViewerProps.setIsInErrorState?.(data.args);
}
Expand Down
Loading

0 comments on commit 0ac7566

Please sign in to comment.