@doenet/assignment-viewer 0.1.0-alpha-10 → 0.1.0-alpha-11

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.
Files changed (2) hide show
  1. package/dist/index.js +0 -16
  2. package/package.json +5 -2
package/dist/index.js CHANGED
@@ -3185,14 +3185,6 @@ function SingleDocActivity({
3185
3185
  const [initialDoenetState, setInitialDoenetState] = useState(
3186
3186
  state.doenetStateIdx === null ? null : doenetStates[state.doenetStateIdx] ?? null
3187
3187
  );
3188
- console.log({
3189
- doenetStateIdx: state.doenetStateIdx,
3190
- resultingState: state.doenetStateIdx !== null && doenetStates[state.doenetStateIdx],
3191
- attemptNumber,
3192
- attemptNumberInState: state.attemptNumber,
3193
- loadedStateNum,
3194
- usedLoadedStateNum: loadedStateNumUsed
3195
- });
3196
3188
  const [requestedVariantIndex, setRequestedVariantIndex] = useState(
3197
3189
  state.currentVariant
3198
3190
  );
@@ -3457,7 +3449,6 @@ function activityDoenetStateReducer(state, action) {
3457
3449
  };
3458
3450
  window.postMessage(message);
3459
3451
  }
3460
- console.log("setting state to", action.state);
3461
3452
  return action.state;
3462
3453
  }
3463
3454
  case "generateNewActivityAttempt": {
@@ -3540,9 +3531,7 @@ function activityDoenetStateReducer(state, action) {
3540
3531
  };
3541
3532
  }
3542
3533
  case "updateSingleState": {
3543
- console.log("updateSingleState", action, state);
3544
3534
  const newActivityDoenetState = updateSingleDocState(action, state);
3545
- console.log({ newActivityDoenetState });
3546
3535
  if (action.allowSaveState) {
3547
3536
  const newActivityState = newActivityDoenetState.activityState;
3548
3537
  const itemScores = extractActivityItemCredit(newActivityState);
@@ -3648,7 +3637,6 @@ function Viewer({
3648
3637
  initializeActivityAndDoenetState
3649
3638
  );
3650
3639
  const [loadedStateNum, setLoadedStateNum] = useState(0);
3651
- console.log({ activityDoenetState });
3652
3640
  const activityState = activityDoenetState.activityState;
3653
3641
  const itemSequence = getItemSequence(activityState);
3654
3642
  const [currentItemIdx, setCurrentItemIdx] = useState(0);
@@ -3719,16 +3707,13 @@ function Viewer({
3719
3707
  return;
3720
3708
  }
3721
3709
  if (event.data.subject === "SPLICE.getState.response" && event.data.message_id === message_id) {
3722
- console.log("received getState.response");
3723
3710
  const exportedState = event.data.state;
3724
3711
  if (isExportedActivityState(exportedState)) {
3725
- console.log("It's exported state");
3726
3712
  if (validateStateAndSource(exportedState, source)) {
3727
3713
  const state = addSourceToActivityState(
3728
3714
  exportedState.activityState,
3729
3715
  source
3730
3716
  );
3731
- console.log("validated!");
3732
3717
  activityDoenetStateDispatch({
3733
3718
  type: "set",
3734
3719
  state: {
@@ -3787,7 +3772,6 @@ function Viewer({
3787
3772
  setCurrentItemIdx((was) => Math.max(0, was - 1));
3788
3773
  }
3789
3774
  function reportScoreAndStateCallback(msg) {
3790
- console.log("reportScoreAndStateCallback!!!!", msg);
3791
3775
  if (isSingleDocReportStateMessage(msg)) {
3792
3776
  activityDoenetStateDispatch({
3793
3777
  type: "updateSingleState",
package/package.json CHANGED
@@ -2,11 +2,14 @@
2
2
  "name": "@doenet/assignment-viewer",
3
3
  "private": false,
4
4
  "description": "View assignments from questions written in DoenetML",
5
- "version": "0.1.0-alpha-10",
5
+ "version": "0.1.0-alpha-11",
6
6
  "license": "AGPL-3.0-or-later",
7
7
  "homepage": "https://github.com/Doenet/assignment-viewer#readme",
8
8
  "type": "module",
9
- "repository": "github:Doenet/assignment-viewer",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Doenet/assignment-viewer.git"
12
+ },
10
13
  "files": [
11
14
  "/dist"
12
15
  ],