@pie-element/ebsr 10.3.3-next.10 → 10.3.3-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.
- package/module/configure.js +1 -1
- package/module/element.js +17 -34
- package/module/manifest.json +1 -1
- package/module/print.js +17 -34
- package/package.json +3 -3
package/module/configure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.
|
|
1
|
+
import {_dll_react, _dll_prop_types, _dll_lodash, _dll_react_dom} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.1.1/module/index.js";
|
|
2
2
|
import MultipleChoiceConfigure from '@pie-element/multiple-choice/configure/lib';
|
|
3
3
|
import {_dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.8.1/module/index.js";
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
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@3.
|
|
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@3.1.1/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@5.8.1/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) {
|
|
@@ -12842,45 +12842,26 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12842
12842
|
lineNumber: 245
|
|
12843
12843
|
}
|
|
12844
12844
|
});
|
|
12845
|
-
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
12846
|
-
if (minSelections && maxSelections) {
|
|
12847
|
-
return minSelections === maxSelections ? translator.t('translation:multipleChoice:minmaxSelections_equal', {
|
|
12848
|
-
lng: language,
|
|
12849
|
-
minSelections
|
|
12850
|
-
}) : translator.t('translation:multipleChoice:minmaxSelections_range', {
|
|
12851
|
-
lng: language,
|
|
12852
|
-
minSelections,
|
|
12853
|
-
maxSelections
|
|
12854
|
-
});
|
|
12855
|
-
}
|
|
12856
|
-
if (minSelections) {
|
|
12857
|
-
return translator.t('translation:multipleChoice:minSelections', {
|
|
12858
|
-
lng: language,
|
|
12859
|
-
minSelections
|
|
12860
|
-
});
|
|
12861
|
-
}
|
|
12862
|
-
return '';
|
|
12863
|
-
};
|
|
12864
12845
|
return React$2.createElement('div', {
|
|
12865
12846
|
className: classNames(classes.main, className, 'multiple-choice'),
|
|
12866
12847
|
__self: this,
|
|
12867
12848
|
__source: {
|
|
12868
12849
|
fileName: _jsxFileName$1,
|
|
12869
|
-
lineNumber:
|
|
12850
|
+
lineNumber: 254
|
|
12870
12851
|
}
|
|
12871
12852
|
}, partLabel && React$2.createElement('h3', {
|
|
12872
12853
|
className: classes.partLabel,
|
|
12873
12854
|
__self: this,
|
|
12874
12855
|
__source: {
|
|
12875
12856
|
fileName: _jsxFileName$1,
|
|
12876
|
-
lineNumber:
|
|
12857
|
+
lineNumber: 255
|
|
12877
12858
|
}
|
|
12878
12859
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12879
12860
|
className: classes.teacherInstructions,
|
|
12880
12861
|
__self: this,
|
|
12881
12862
|
__source: {
|
|
12882
12863
|
fileName: _jsxFileName$1,
|
|
12883
|
-
lineNumber:
|
|
12864
|
+
lineNumber: 260
|
|
12884
12865
|
}
|
|
12885
12866
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12886
12867
|
labels: {
|
|
@@ -12890,14 +12871,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12890
12871
|
__self: this,
|
|
12891
12872
|
__source: {
|
|
12892
12873
|
fileName: _jsxFileName$1,
|
|
12893
|
-
lineNumber:
|
|
12874
|
+
lineNumber: 262
|
|
12894
12875
|
}
|
|
12895
12876
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12896
12877
|
className: classes.fieldset,
|
|
12897
12878
|
__self: this,
|
|
12898
12879
|
__source: {
|
|
12899
12880
|
fileName: _jsxFileName$1,
|
|
12900
|
-
lineNumber:
|
|
12881
|
+
lineNumber: 276
|
|
12901
12882
|
}
|
|
12902
12883
|
}, React$2.createElement(PreviewPrompt, {
|
|
12903
12884
|
className: "prompt",
|
|
@@ -12908,7 +12889,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12908
12889
|
__self: this,
|
|
12909
12890
|
__source: {
|
|
12910
12891
|
fileName: _jsxFileName$1,
|
|
12911
|
-
lineNumber:
|
|
12892
|
+
lineNumber: 277
|
|
12912
12893
|
}
|
|
12913
12894
|
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12914
12895
|
show: showCorrectAnswerToggle,
|
|
@@ -12918,7 +12899,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12918
12899
|
__self: this,
|
|
12919
12900
|
__source: {
|
|
12920
12901
|
fileName: _jsxFileName$1,
|
|
12921
|
-
lineNumber:
|
|
12902
|
+
lineNumber: 286
|
|
12922
12903
|
}
|
|
12923
12904
|
}), React$2.createElement('div', {
|
|
12924
12905
|
className: classNames({
|
|
@@ -12929,7 +12910,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12929
12910
|
__self: this,
|
|
12930
12911
|
__source: {
|
|
12931
12912
|
fileName: _jsxFileName$1,
|
|
12932
|
-
lineNumber:
|
|
12913
|
+
lineNumber: 294
|
|
12933
12914
|
}
|
|
12934
12915
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12935
12916
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12952,21 +12933,24 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12952
12933
|
__self: this,
|
|
12953
12934
|
__source: {
|
|
12954
12935
|
fileName: _jsxFileName$1,
|
|
12955
|
-
lineNumber:
|
|
12936
|
+
lineNumber: 302
|
|
12956
12937
|
}
|
|
12957
12938
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12958
12939
|
className: classes.errorText,
|
|
12959
12940
|
__self: this,
|
|
12960
12941
|
__source: {
|
|
12961
12942
|
fileName: _jsxFileName$1,
|
|
12962
|
-
lineNumber:
|
|
12943
|
+
lineNumber: 326
|
|
12963
12944
|
}
|
|
12964
|
-
},
|
|
12945
|
+
}, translator.t(`translation:multipleChoice:minSelections_${minSelections === 1 ? 'one' : 'other'}`, {
|
|
12946
|
+
lng: language,
|
|
12947
|
+
minSelections
|
|
12948
|
+
})), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12965
12949
|
className: classes.errorText,
|
|
12966
12950
|
__self: this,
|
|
12967
12951
|
__source: {
|
|
12968
12952
|
fileName: _jsxFileName$1,
|
|
12969
|
-
lineNumber:
|
|
12953
|
+
lineNumber: 334
|
|
12970
12954
|
}
|
|
12971
12955
|
}, translator.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12972
12956
|
lng: language,
|
|
@@ -13085,8 +13069,7 @@ const debug$1 = _dll_debug;
|
|
|
13085
13069
|
const {renderMath: renderMath} = _dll_pie_lib__pie_toolbox_math_rendering;
|
|
13086
13070
|
const log$1 = debug$1('pie-ui:multiple-choice');
|
|
13087
13071
|
const isComplete = (session, model, audioComplete) => {
|
|
13088
|
-
|
|
13089
|
-
if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
|
|
13072
|
+
if (model.autoplayAudioEnabled && !audioComplete) {
|
|
13090
13073
|
return false;
|
|
13091
13074
|
}
|
|
13092
13075
|
if (!session || !session.value) {
|
package/module/manifest.json
CHANGED
package/module/print.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@3.
|
|
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@3.1.1/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@5.8.1/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) {
|
|
@@ -12805,45 +12805,26 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12805
12805
|
lineNumber: 245
|
|
12806
12806
|
}
|
|
12807
12807
|
});
|
|
12808
|
-
const getMultipleChoiceMinSelectionErrorMessage = () => {
|
|
12809
|
-
if (minSelections && maxSelections) {
|
|
12810
|
-
return minSelections === maxSelections ? translator$1.t('translation:multipleChoice:minmaxSelections_equal', {
|
|
12811
|
-
lng: language,
|
|
12812
|
-
minSelections
|
|
12813
|
-
}) : translator$1.t('translation:multipleChoice:minmaxSelections_range', {
|
|
12814
|
-
lng: language,
|
|
12815
|
-
minSelections,
|
|
12816
|
-
maxSelections
|
|
12817
|
-
});
|
|
12818
|
-
}
|
|
12819
|
-
if (minSelections) {
|
|
12820
|
-
return translator$1.t('translation:multipleChoice:minSelections', {
|
|
12821
|
-
lng: language,
|
|
12822
|
-
minSelections
|
|
12823
|
-
});
|
|
12824
|
-
}
|
|
12825
|
-
return '';
|
|
12826
|
-
};
|
|
12827
12808
|
return React$2.createElement('div', {
|
|
12828
12809
|
className: classNames(classes.main, className, 'multiple-choice'),
|
|
12829
12810
|
__self: this,
|
|
12830
12811
|
__source: {
|
|
12831
12812
|
fileName: _jsxFileName$1,
|
|
12832
|
-
lineNumber:
|
|
12813
|
+
lineNumber: 254
|
|
12833
12814
|
}
|
|
12834
12815
|
}, partLabel && React$2.createElement('h3', {
|
|
12835
12816
|
className: classes.partLabel,
|
|
12836
12817
|
__self: this,
|
|
12837
12818
|
__source: {
|
|
12838
12819
|
fileName: _jsxFileName$1,
|
|
12839
|
-
lineNumber:
|
|
12820
|
+
lineNumber: 255
|
|
12840
12821
|
}
|
|
12841
12822
|
}, partLabel), this.renderHeading(), teacherInstructions && React$2.createElement('div', {
|
|
12842
12823
|
className: classes.teacherInstructions,
|
|
12843
12824
|
__self: this,
|
|
12844
12825
|
__source: {
|
|
12845
12826
|
fileName: _jsxFileName$1,
|
|
12846
|
-
lineNumber:
|
|
12827
|
+
lineNumber: 260
|
|
12847
12828
|
}
|
|
12848
12829
|
}, !animationsDisabled ? React$2.createElement(Collapsible, {
|
|
12849
12830
|
labels: {
|
|
@@ -12853,14 +12834,14 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12853
12834
|
__self: this,
|
|
12854
12835
|
__source: {
|
|
12855
12836
|
fileName: _jsxFileName$1,
|
|
12856
|
-
lineNumber:
|
|
12837
|
+
lineNumber: 262
|
|
12857
12838
|
}
|
|
12858
12839
|
}, teacherInstructionsDiv) : teacherInstructionsDiv), React$2.createElement('fieldset', {
|
|
12859
12840
|
className: classes.fieldset,
|
|
12860
12841
|
__self: this,
|
|
12861
12842
|
__source: {
|
|
12862
12843
|
fileName: _jsxFileName$1,
|
|
12863
|
-
lineNumber:
|
|
12844
|
+
lineNumber: 276
|
|
12864
12845
|
}
|
|
12865
12846
|
}, React$2.createElement(PreviewPrompt, {
|
|
12866
12847
|
className: "prompt",
|
|
@@ -12871,7 +12852,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12871
12852
|
__self: this,
|
|
12872
12853
|
__source: {
|
|
12873
12854
|
fileName: _jsxFileName$1,
|
|
12874
|
-
lineNumber:
|
|
12855
|
+
lineNumber: 277
|
|
12875
12856
|
}
|
|
12876
12857
|
}), !alwaysShowCorrect && React$2.createElement(CorrectAnswerToggle, {
|
|
12877
12858
|
show: showCorrectAnswerToggle,
|
|
@@ -12881,7 +12862,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12881
12862
|
__self: this,
|
|
12882
12863
|
__source: {
|
|
12883
12864
|
fileName: _jsxFileName$1,
|
|
12884
|
-
lineNumber:
|
|
12865
|
+
lineNumber: 286
|
|
12885
12866
|
}
|
|
12886
12867
|
}), React$2.createElement('div', {
|
|
12887
12868
|
className: classNames({
|
|
@@ -12892,7 +12873,7 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12892
12873
|
__self: this,
|
|
12893
12874
|
__source: {
|
|
12894
12875
|
fileName: _jsxFileName$1,
|
|
12895
|
-
lineNumber:
|
|
12876
|
+
lineNumber: 294
|
|
12896
12877
|
}
|
|
12897
12878
|
}, choices.map((choice, index) => React$2.createElement(StyledChoice, {
|
|
12898
12879
|
choicesLayout: this.props.choicesLayout,
|
|
@@ -12915,21 +12896,24 @@ class MultipleChoice$1 extends React$2.Component {
|
|
|
12915
12896
|
__self: this,
|
|
12916
12897
|
__source: {
|
|
12917
12898
|
fileName: _jsxFileName$1,
|
|
12918
|
-
lineNumber:
|
|
12899
|
+
lineNumber: 302
|
|
12919
12900
|
}
|
|
12920
12901
|
})))), choiceMode === 'checkbox' && selections < minSelections && React$2.createElement('div', {
|
|
12921
12902
|
className: classes.errorText,
|
|
12922
12903
|
__self: this,
|
|
12923
12904
|
__source: {
|
|
12924
12905
|
fileName: _jsxFileName$1,
|
|
12925
|
-
lineNumber:
|
|
12906
|
+
lineNumber: 326
|
|
12926
12907
|
}
|
|
12927
|
-
},
|
|
12908
|
+
}, translator$1.t(`translation:multipleChoice:minSelections_${minSelections === 1 ? 'one' : 'other'}`, {
|
|
12909
|
+
lng: language,
|
|
12910
|
+
minSelections
|
|
12911
|
+
})), choiceMode === 'checkbox' && maxSelectionsErrorState && React$2.createElement('div', {
|
|
12928
12912
|
className: classes.errorText,
|
|
12929
12913
|
__self: this,
|
|
12930
12914
|
__source: {
|
|
12931
12915
|
fileName: _jsxFileName$1,
|
|
12932
|
-
lineNumber:
|
|
12916
|
+
lineNumber: 334
|
|
12933
12917
|
}
|
|
12934
12918
|
}, translator$1.t(`translation:multipleChoice:maxSelections_${maxSelections === 1 ? 'one' : 'other'}`, {
|
|
12935
12919
|
lng: language,
|
|
@@ -13085,8 +13069,7 @@ const debug$1 = _dll_debug;
|
|
|
13085
13069
|
const {renderMath: renderMath} = _dll_pie_lib__pie_toolbox_math_rendering;
|
|
13086
13070
|
const log$1 = debug$1('pie-ui:multiple-choice');
|
|
13087
13071
|
const isComplete = (session, model, audioComplete) => {
|
|
13088
|
-
|
|
13089
|
-
if (autoplayAudioEnabled && completeAudioEnabled && !audioComplete) {
|
|
13072
|
+
if (model.autoplayAudioEnabled && !audioComplete) {
|
|
13090
13073
|
return false;
|
|
13091
13074
|
}
|
|
13092
13075
|
if (!session || !session.value) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/ebsr",
|
|
3
|
-
"version": "10.3.3-next.
|
|
3
|
+
"version": "10.3.3-next.2+593f17b29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": "pie-framework/pie-elements",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-element/multiple-choice": "^9.9.2-next.
|
|
10
|
+
"@pie-element/multiple-choice": "^9.9.2-next.2+593f17b29",
|
|
11
11
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
12
12
|
"@pie-lib/pie-toolbox": "2.8.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"author": "pie framework developers",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "593f17b29d3047c261650c9a46579424206098db",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|