@pie-element/multiple-choice 9.16.4-next.12 → 9.16.4-next.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.
@@ -1,61 +1,37 @@
1
1
  exports.model = (id, element) => ({
2
2
  id,
3
3
  element,
4
- choiceMode: 'checkbox',
5
- choicePrefix: 'numbers',
4
+ keyMode: 'none',
5
+ lockChoiceOrder: true,
6
+ choiceMode: 'radio',
6
7
  choices: [
7
8
  {
8
- correct: true,
9
- value: 'sweden',
10
- label: 'Sweden',
11
- feedback: {
12
- type: 'none',
13
- value: '',
14
- },
9
+ correct: false,
10
+ label: '<math><mi>a</mi><mo>=</mo><mroot><mn>4</mn><mn>3</mn></mroot></math>',
11
+ value: '1',
12
+ rationale:
13
+ 'Student(s) may have correctly found the cube root of 64, but they may have put it under a cube root sign.',
15
14
  },
16
15
  {
17
- value: 'iceland',
18
- label: 'Iceland',
19
- feedback: {
20
- type: 'none',
21
- value: '',
22
- },
23
- rationale: 'Rationale for Iceland',
16
+ correct: false,
17
+ label: '<math><mi>a</mi><mo>=</mo><msqrt><mn>8</mn></msqrt></math>',
18
+ value: '2',
19
+ rationale:
20
+ 'Student(s) may have mistaken the exponent of 3 for an exponent of 2 and may have correctly found the square root of 64 and put it under a square root sign.',
24
21
  },
25
22
  {
26
- value: 'norway',
27
- label: 'Norway',
28
- feedback: {
29
- type: 'none',
30
- value: '',
31
- },
32
- rationale: 'Rationale for Norway',
23
+ correct: true,
24
+ label: '<math><mi>a</mi><mo>=</mo><mroot><mn>64</mn><mn>3</mn></mroot></math>',
25
+ value: '3',
26
+ rationale: 'Correct answer',
33
27
  },
34
28
  {
35
- correct: true,
36
- value: 'finland',
37
- label: 'Finland',
38
- feedback: {
39
- type: 'none',
40
- value: '',
41
- },
42
- rationale: 'Rationale for Finland',
29
+ correct: false,
30
+ label: '<math><mi>a</mi><mo>=</mo><msqrt><mn>64</mn></msqrt></math>',
31
+ value: '4',
32
+ rationale: 'Student(s) may have mistaken the exponent of 3 for an exponent of 2.',
43
33
  },
44
34
  ],
45
- extraCSSRules: {
46
- names: ['red', 'blue'],
47
- rules: `
48
- .red {
49
- color: red !important;
50
- }
51
-
52
- .blue {
53
- color: blue !important;
54
- }
55
- `,
56
- },
57
- prompt: '',
58
- promptEnabled: true,
59
- toolbarEditorPosition: 'bottom',
60
- rubricEnabled: false,
35
+ prompt:
36
+ 'Consider the equation <math><msup><mi>a</mi><mn>3</mn></msup><mo>=</mo><mn>64</mn></math>.<br>\n<br>\nPart A:<br>\n<br>\nWhat is the solution to the equation?',
61
37
  });
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.0.4/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_lodash, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.0.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@8.0.2/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
package/module/demo.js CHANGED
@@ -7,63 +7,39 @@ var generate = {};
7
7
  generate.model = (id, element) => ({
8
8
  id,
9
9
  element,
10
- choiceMode: 'checkbox',
11
- choicePrefix: 'numbers',
10
+ keyMode: 'none',
11
+ lockChoiceOrder: true,
12
+ choiceMode: 'radio',
12
13
  choices: [
13
14
  {
14
- correct: true,
15
- value: 'sweden',
16
- label: 'Sweden',
17
- feedback: {
18
- type: 'none',
19
- value: '',
20
- },
15
+ correct: false,
16
+ label: '<math><mi>a</mi><mo>=</mo><mroot><mn>4</mn><mn>3</mn></mroot></math>',
17
+ value: '1',
18
+ rationale:
19
+ 'Student(s) may have correctly found the cube root of 64, but they may have put it under a cube root sign.',
21
20
  },
22
21
  {
23
- value: 'iceland',
24
- label: 'Iceland',
25
- feedback: {
26
- type: 'none',
27
- value: '',
28
- },
29
- rationale: 'Rationale for Iceland',
22
+ correct: false,
23
+ label: '<math><mi>a</mi><mo>=</mo><msqrt><mn>8</mn></msqrt></math>',
24
+ value: '2',
25
+ rationale:
26
+ 'Student(s) may have mistaken the exponent of 3 for an exponent of 2 and may have correctly found the square root of 64 and put it under a square root sign.',
30
27
  },
31
28
  {
32
- value: 'norway',
33
- label: 'Norway',
34
- feedback: {
35
- type: 'none',
36
- value: '',
37
- },
38
- rationale: 'Rationale for Norway',
29
+ correct: true,
30
+ label: '<math><mi>a</mi><mo>=</mo><mroot><mn>64</mn><mn>3</mn></mroot></math>',
31
+ value: '3',
32
+ rationale: 'Correct answer',
39
33
  },
40
34
  {
41
- correct: true,
42
- value: 'finland',
43
- label: 'Finland',
44
- feedback: {
45
- type: 'none',
46
- value: '',
47
- },
48
- rationale: 'Rationale for Finland',
35
+ correct: false,
36
+ label: '<math><mi>a</mi><mo>=</mo><msqrt><mn>64</mn></msqrt></math>',
37
+ value: '4',
38
+ rationale: 'Student(s) may have mistaken the exponent of 3 for an exponent of 2.',
49
39
  },
50
40
  ],
51
- extraCSSRules: {
52
- names: ['red', 'blue'],
53
- rules: `
54
- .red {
55
- color: red !important;
56
- }
57
-
58
- .blue {
59
- color: blue !important;
60
- }
61
- `,
62
- },
63
- prompt: '',
64
- promptEnabled: true,
65
- toolbarEditorPosition: 'bottom',
66
- rubricEnabled: false,
41
+ prompt:
42
+ 'Consider the equation <math><msup><mi>a</mi><mn>3</mn></msup><mo>=</mo><mn>64</mn></math>.<br>\n<br>\nPart A:<br>\n<br>\nWhat is the solution to the equation?',
67
43
  });
68
44
 
69
45
  const { model } = generate;
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.0.4/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.0.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@8.0.2/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "5.0.4"
7
+ "version": "5.0.3"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
@@ -5,63 +5,39 @@ var generate = {};
5
5
  generate.model = (id, element) => ({
6
6
  id,
7
7
  element,
8
- choiceMode: 'checkbox',
9
- choicePrefix: 'numbers',
8
+ keyMode: 'none',
9
+ lockChoiceOrder: true,
10
+ choiceMode: 'radio',
10
11
  choices: [
11
12
  {
12
- correct: true,
13
- value: 'sweden',
14
- label: 'Sweden',
15
- feedback: {
16
- type: 'none',
17
- value: '',
18
- },
13
+ correct: false,
14
+ label: '<math><mi>a</mi><mo>=</mo><mroot><mn>4</mn><mn>3</mn></mroot></math>',
15
+ value: '1',
16
+ rationale:
17
+ 'Student(s) may have correctly found the cube root of 64, but they may have put it under a cube root sign.',
19
18
  },
20
19
  {
21
- value: 'iceland',
22
- label: 'Iceland',
23
- feedback: {
24
- type: 'none',
25
- value: '',
26
- },
27
- rationale: 'Rationale for Iceland',
20
+ correct: false,
21
+ label: '<math><mi>a</mi><mo>=</mo><msqrt><mn>8</mn></msqrt></math>',
22
+ value: '2',
23
+ rationale:
24
+ 'Student(s) may have mistaken the exponent of 3 for an exponent of 2 and may have correctly found the square root of 64 and put it under a square root sign.',
28
25
  },
29
26
  {
30
- value: 'norway',
31
- label: 'Norway',
32
- feedback: {
33
- type: 'none',
34
- value: '',
35
- },
36
- rationale: 'Rationale for Norway',
27
+ correct: true,
28
+ label: '<math><mi>a</mi><mo>=</mo><mroot><mn>64</mn><mn>3</mn></mroot></math>',
29
+ value: '3',
30
+ rationale: 'Correct answer',
37
31
  },
38
32
  {
39
- correct: true,
40
- value: 'finland',
41
- label: 'Finland',
42
- feedback: {
43
- type: 'none',
44
- value: '',
45
- },
46
- rationale: 'Rationale for Finland',
33
+ correct: false,
34
+ label: '<math><mi>a</mi><mo>=</mo><msqrt><mn>64</mn></msqrt></math>',
35
+ value: '4',
36
+ rationale: 'Student(s) may have mistaken the exponent of 3 for an exponent of 2.',
47
37
  },
48
38
  ],
49
- extraCSSRules: {
50
- names: ['red', 'blue'],
51
- rules: `
52
- .red {
53
- color: red !important;
54
- }
55
-
56
- .blue {
57
- color: blue !important;
58
- }
59
- `,
60
- },
61
- prompt: '',
62
- promptEnabled: true,
63
- toolbarEditorPosition: 'bottom',
64
- rubricEnabled: false,
39
+ prompt:
40
+ 'Consider the equation <math><msup><mi>a</mi><mn>3</mn></msup><mo>=</mo><mn>64</mn></math>.<br>\n<br>\nPart A:<br>\n<br>\nWhat is the solution to the equation?',
65
41
  });
66
42
 
67
43
  const { model } = generate;
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.0.4/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_pie_lib__pie_toolbox_math_rendering, _dll_debug} from "../../../@pie-lib/pie-toolbox-math-rendering-module@5.0.3/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@8.0.2/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pie-element/multiple-choice",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "9.16.4-next.12+9f80f957f",
4
+ "version": "9.16.4-next.2+036cb25b0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -19,7 +19,7 @@
19
19
  "react-test-renderer": "^16.3.2",
20
20
  "react-transition-group": "^2.3.1"
21
21
  },
22
- "gitHead": "9f80f957fbd75495babbc70ecc4b775422aa1a25",
22
+ "gitHead": "036cb25b08006ce6cbb09b50102d0c807996c6fc",
23
23
  "scripts": {
24
24
  "postpublish": "../../scripts/postpublish"
25
25
  },