@pie-element/multiple-choice 9.16.4-next.2 → 9.16.4-next.22
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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/docs/demo/generate.js +47 -23
- package/module/configure.js +2 -2
- package/module/demo.js +47 -23
- package/module/element.js +2 -2
- package/module/manifest.json +2 -2
- package/module/print-demo.js +47 -23
- package/module/print.js +2 -2
- package/package.json +3 -3
package/configure/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@material-ui/core": "^3.9.2",
|
|
9
9
|
"@material-ui/icons": "^3.0.1",
|
|
10
10
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "2.
|
|
11
|
+
"@pie-lib/pie-toolbox": "2.19.0",
|
|
12
12
|
"debug": "^3.1.0",
|
|
13
13
|
"lodash": "^4.17.15",
|
|
14
14
|
"prop-types": "^15.6.2",
|
package/controller/package.json
CHANGED
package/docs/demo/generate.js
CHANGED
|
@@ -1,37 +1,61 @@
|
|
|
1
1
|
exports.model = (id, element) => ({
|
|
2
2
|
id,
|
|
3
3
|
element,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
choiceMode: 'radio',
|
|
4
|
+
choiceMode: 'checkbox',
|
|
5
|
+
choicePrefix: 'numbers',
|
|
7
6
|
choices: [
|
|
8
7
|
{
|
|
9
|
-
correct:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
correct: true,
|
|
9
|
+
value: 'sweden',
|
|
10
|
+
label: 'Sweden',
|
|
11
|
+
feedback: {
|
|
12
|
+
type: 'none',
|
|
13
|
+
value: '',
|
|
14
|
+
},
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
|
-
|
|
17
|
-
label: '
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
value: 'iceland',
|
|
18
|
+
label: 'Iceland',
|
|
19
|
+
feedback: {
|
|
20
|
+
type: 'none',
|
|
21
|
+
value: '',
|
|
22
|
+
},
|
|
23
|
+
rationale: 'Rationale for Iceland',
|
|
21
24
|
},
|
|
22
25
|
{
|
|
23
|
-
|
|
24
|
-
label: '
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
value: 'norway',
|
|
27
|
+
label: 'Norway',
|
|
28
|
+
feedback: {
|
|
29
|
+
type: 'none',
|
|
30
|
+
value: '',
|
|
31
|
+
},
|
|
32
|
+
rationale: 'Rationale for Norway',
|
|
27
33
|
},
|
|
28
34
|
{
|
|
29
|
-
correct:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
correct: true,
|
|
36
|
+
value: 'finland',
|
|
37
|
+
label: 'Finland',
|
|
38
|
+
feedback: {
|
|
39
|
+
type: 'none',
|
|
40
|
+
value: '',
|
|
41
|
+
},
|
|
42
|
+
rationale: 'Rationale for Finland',
|
|
33
43
|
},
|
|
34
44
|
],
|
|
35
|
-
|
|
36
|
-
'
|
|
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,
|
|
37
61
|
});
|
package/module/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
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.
|
|
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";
|
|
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.3/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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/module/demo.js
CHANGED
|
@@ -7,39 +7,63 @@ var generate = {};
|
|
|
7
7
|
generate.model = (id, element) => ({
|
|
8
8
|
id,
|
|
9
9
|
element,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
choiceMode: 'radio',
|
|
10
|
+
choiceMode: 'checkbox',
|
|
11
|
+
choicePrefix: 'numbers',
|
|
13
12
|
choices: [
|
|
14
13
|
{
|
|
15
|
-
correct:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
correct: true,
|
|
15
|
+
value: 'sweden',
|
|
16
|
+
label: 'Sweden',
|
|
17
|
+
feedback: {
|
|
18
|
+
type: 'none',
|
|
19
|
+
value: '',
|
|
20
|
+
},
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
|
-
|
|
23
|
-
label: '
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
value: 'iceland',
|
|
24
|
+
label: 'Iceland',
|
|
25
|
+
feedback: {
|
|
26
|
+
type: 'none',
|
|
27
|
+
value: '',
|
|
28
|
+
},
|
|
29
|
+
rationale: 'Rationale for Iceland',
|
|
27
30
|
},
|
|
28
31
|
{
|
|
29
|
-
|
|
30
|
-
label: '
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
value: 'norway',
|
|
33
|
+
label: 'Norway',
|
|
34
|
+
feedback: {
|
|
35
|
+
type: 'none',
|
|
36
|
+
value: '',
|
|
37
|
+
},
|
|
38
|
+
rationale: 'Rationale for Norway',
|
|
33
39
|
},
|
|
34
40
|
{
|
|
35
|
-
correct:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
correct: true,
|
|
42
|
+
value: 'finland',
|
|
43
|
+
label: 'Finland',
|
|
44
|
+
feedback: {
|
|
45
|
+
type: 'none',
|
|
46
|
+
value: '',
|
|
47
|
+
},
|
|
48
|
+
rationale: 'Rationale for Finland',
|
|
39
49
|
},
|
|
40
50
|
],
|
|
41
|
-
|
|
42
|
-
'
|
|
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,
|
|
43
67
|
});
|
|
44
68
|
|
|
45
69
|
const { model } = generate;
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
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.
|
|
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";
|
|
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.3/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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/module/manifest.json
CHANGED
package/module/print-demo.js
CHANGED
|
@@ -5,39 +5,63 @@ var generate = {};
|
|
|
5
5
|
generate.model = (id, element) => ({
|
|
6
6
|
id,
|
|
7
7
|
element,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
choiceMode: 'radio',
|
|
8
|
+
choiceMode: 'checkbox',
|
|
9
|
+
choicePrefix: 'numbers',
|
|
11
10
|
choices: [
|
|
12
11
|
{
|
|
13
|
-
correct:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
correct: true,
|
|
13
|
+
value: 'sweden',
|
|
14
|
+
label: 'Sweden',
|
|
15
|
+
feedback: {
|
|
16
|
+
type: 'none',
|
|
17
|
+
value: '',
|
|
18
|
+
},
|
|
18
19
|
},
|
|
19
20
|
{
|
|
20
|
-
|
|
21
|
-
label: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
value: 'iceland',
|
|
22
|
+
label: 'Iceland',
|
|
23
|
+
feedback: {
|
|
24
|
+
type: 'none',
|
|
25
|
+
value: '',
|
|
26
|
+
},
|
|
27
|
+
rationale: 'Rationale for Iceland',
|
|
25
28
|
},
|
|
26
29
|
{
|
|
27
|
-
|
|
28
|
-
label: '
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
value: 'norway',
|
|
31
|
+
label: 'Norway',
|
|
32
|
+
feedback: {
|
|
33
|
+
type: 'none',
|
|
34
|
+
value: '',
|
|
35
|
+
},
|
|
36
|
+
rationale: 'Rationale for Norway',
|
|
31
37
|
},
|
|
32
38
|
{
|
|
33
|
-
correct:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
correct: true,
|
|
40
|
+
value: 'finland',
|
|
41
|
+
label: 'Finland',
|
|
42
|
+
feedback: {
|
|
43
|
+
type: 'none',
|
|
44
|
+
value: '',
|
|
45
|
+
},
|
|
46
|
+
rationale: 'Rationale for Finland',
|
|
37
47
|
},
|
|
38
48
|
],
|
|
39
|
-
|
|
40
|
-
'
|
|
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,
|
|
41
65
|
});
|
|
42
66
|
|
|
43
67
|
const { model } = generate;
|
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.
|
|
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.
|
|
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";
|
|
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.3/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) {
|
|
5
5
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/multiple-choice",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "9.16.4-next.
|
|
4
|
+
"version": "9.16.4-next.22+259128220",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
10
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
11
|
-
"@pie-lib/pie-toolbox": "2.
|
|
11
|
+
"@pie-lib/pie-toolbox": "2.19.0",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"debug": "^4.1.1",
|
|
14
14
|
"enzyme-to-json": "^3.3.3",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"react-test-renderer": "^16.3.2",
|
|
20
20
|
"react-transition-group": "^2.3.1"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "25912822021b4c6750e89622d99a342c17a48f56",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"postpublish": "../../scripts/postpublish"
|
|
25
25
|
},
|