@pie-element/ebsr 9.0.2-next.13 → 9.0.2-next.15

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 (54) hide show
  1. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  2. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +2478 -0
  3. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
  4. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  5. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  6. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  7. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  8. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +1949 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +133 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +248 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +610 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +18 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +869 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +18 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +306 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +36 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +614 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +469 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +53 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +411 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +327 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +332 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +165 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +156 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +96 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +359 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +35 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/package.json +31 -0
  52. package/configure/package.json +2 -2
  53. package/controller/package.json +1 -1
  54. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","dropdown","MAX_CHOICES","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","rationaleHolder","flex","marginTop","marginLeft","accessibilityHolder","choiceConfigurationHolder","display","flexDirection","choiceConfiguration","switchElement","justifyContent","margin","addButton","disableButton","cursor","pointerEvents","backgroundColor","color","disabled","flexContainer","alignItems","titleText","fontSize","typography","marginRight","tooltip","whiteSpace","maxWidth","errorText","palette","error","main","Design","props","classes","model","configuration","onPromptChanged","onChoiceChanged","onRemoveChoice","onAddChoice","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","addChoiceButton","contentDimensions","feedback","deleteChoice","choiceMode","choicePrefix","partialScoring","lockChoiceOrder","teacherInstructions","studentInstructions","rationale","accessibility","scoringType","sequentialChoiceLabels","settingsPanelDisabled","choicesLayout","spellCheck","gridColumns","maxImageWidth","maxImageHeight","prompt","withRubric","mathMlOptions","language","languageChoices","maxAnswerChoices","limitChoicesNumber","teacherInstructionsEnabled","rationaleEnabled","accessibilityLabelsEnabled","feedbackEnabled","promptEnabled","spellCheckEnabled","choices","errors","toolbarEditorPosition","choicesErrors","correctResponseError","answerChoicesError","nrOfColumnsAvailable","length","Array","from","_","i","labelPlugins","audio","video","toolbarOpts","position","validationMessage","defaultImageMaxWidth","defaultImageMaxHeight","addChoiceButtonTooltip","panelSettings","label","enabled","options","panelProperties","studentInstructionsEnabled","rubricEnabled","Settings","Properties","map","choice","index","c","value","root","Main","showWarning","onModelChanged","minAnswerChoices","setState","splice","push","utils","firstAvailableIndex","type","correct","key","correctFound","state","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAA2CC,kBAA3C,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA2CD,kBAA3C,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAA2CF,kBAA3C,CAAuBE,KAAvB;AAAA,IAA8BC,QAA9B,GAA2CH,kBAA3C,CAA8BG,QAA9B;AAEA,IAAMC,WAAW,GAAG,CAApB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAFrB;AAGZC,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KADW;AAMzBE,IAAAA,eAAe,EAAE;AACfC,MAAAA,IAAI,EAAE,CADS;AAEfC,MAAAA,SAAS,EAAET,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,GAFjB;AAGfF,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAHlB;AAIfK,MAAAA,UAAU,EAAEV,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAJlB,KANQ;AAYzBM,IAAAA,mBAAmB,EAAE;AACnBH,MAAAA,IAAI,EAAE,CADa;AAEnBC,MAAAA,SAAS,EAAET,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,GAFb;AAGnBF,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,G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AKnF,KADX;AAEE,QAAA,aAAa,EAAE,KAAKoF,cAFtB;AAGE,QAAA,cAAc,EAAE,KAAK9E,cAHvB;AAIE,QAAA,eAAe,EAAE,KAAKD,eAJxB;AAKE,QAAA,WAAW,EAAE,KAAKE,WALpB;AAME,QAAA,eAAe,EAAE,KAAKH,eANxB;AAOE,QAAA,4BAA4B,EAAE,KAAKQ;AAPrC,SAPF,CADF;AAmBD;;;EA3IuBoF,kBAAMC,S;;;iCAAnBf,I,eACQ;AACjBhF,EAAAA,KAAK,EAAEgG,sBAAUC,MAAV,CAAiBC,UADP;AAEjBjG,EAAAA,aAAa,EAAE+F,sBAAUC,MAAV,CAAiBC,UAFf;AAGjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAHX;AAIjBlB,EAAAA,cAAc,EAAEc,sBAAUK,IAAV,CAAeH,UAJd;AAKjBzF,EAAAA,sBAAsB,EAAEuF,sBAAUK,IAAV,CAAeH,UALtB;AAMjBnG,EAAAA,OAAO,EAAEiG,sBAAUC,MAAV,CAAiBC,UANT;AAOjB5F,EAAAA,YAAY,EAAE0F,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AAPG,C;AA6IrB,IAAMM,MAAM,GAAG,wBAAWnJ,MAAX,EAAmB2H,IAAnB,CAAf;eAEewB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/pie-toolbox/editable-html';\nimport {\n AlertDialog,\n InputContainer,\n ChoiceConfiguration,\n settings,\n layout,\n choiceUtils as utils,\n} from '@pie-lib/pie-toolbox/config-ui';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport Info from '@material-ui/icons/Info';\nimport merge from 'lodash/merge';\nimport { generateValidationMessage } from './utils';\n\nconst { Panel, toggle, radio, dropdown } = settings;\n\nconst MAX_CHOICES = 9;\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n rationaleHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n accessibilityHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n choiceConfigurationHolder: {\n display: 'flex',\n flexDirection: 'column',\n marginBottom: theme.spacing.unit,\n },\n choiceConfiguration: {\n width: '100%',\n },\n switchElement: {\n justifyContent: 'space-between',\n margin: 0,\n },\n addButton: {\n marginTop: theme.spacing.unit,\n float: 'right',\n },\n disableButton: {\n cursor: 'not-allowed',\n pointerEvents: 'all',\n backgroundColor: color.disabled(),\n '&:hover': {\n backgroundColor: color.disabled(),\n },\n '&:focus': {\n backgroundColor: color.disabled(),\n },\n },\n flexContainer: {\n display: 'flex',\n alignItems: 'center',\n },\n titleText: {\n fontSize: theme.typography.fontSize + 2,\n marginRight: theme.spacing.unit,\n },\n tooltip: {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre',\n maxWidth: '500px',\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n onChoiceChanged,\n onRemoveChoice,\n onAddChoice,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged,\n } = props;\n\n const {\n addChoiceButton = {},\n contentDimensions = {},\n feedback = {},\n deleteChoice = {},\n choiceMode = {},\n choicePrefix = {},\n partialScoring = {},\n lockChoiceOrder = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n accessibility = {},\n scoringType = {},\n sequentialChoiceLabels = {},\n settingsPanelDisabled,\n choicesLayout,\n spellCheck = {},\n gridColumns,\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n let { maxAnswerChoices } = configuration || {};\n const {\n limitChoicesNumber,\n teacherInstructionsEnabled,\n rationaleEnabled,\n accessibilityLabelsEnabled,\n feedbackEnabled,\n promptEnabled,\n spellCheckEnabled,\n choices,\n errors,\n toolbarEditorPosition,\n } = model || {};\n\n const { choicesErrors, correctResponseError, answerChoicesError } = errors || {};\n const nrOfColumnsAvailable = choices?.length ? Array.from({ length: choices.length }, (_, i) => `${i + 1}`) : [];\n\n const labelPlugins = {\n audio: { disabled: true },\n video: { disabled: true },\n };\n\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n const validationMessage = generateValidationMessage(configuration);\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const addChoiceButtonTooltip =\n maxAnswerChoices && choices?.length >= maxAnswerChoices ? `Only ${maxAnswerChoices} allowed maximum` : '';\n\n const panelSettings = {\n choiceMode: choiceMode.settings && radio(choiceMode.label, ['checkbox', 'radio']),\n 'sequentialChoiceLabels.enabled': sequentialChoiceLabels.settings && toggle(sequentialChoiceLabels.label, true),\n choicePrefix: choicePrefix.settings && radio(choicePrefix.label, ['numbers', 'letters']),\n partialScoring: partialScoring.settings && toggle(partialScoring.label),\n lockChoiceOrder: lockChoiceOrder.settings && toggle(lockChoiceOrder.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n choicesLayout: choicesLayout.settings && dropdown(choicesLayout.label, ['vertical', 'grid', 'horizontal']),\n gridColumns:\n choicesLayout.settings &&\n model.choicesLayout === 'grid' &&\n nrOfColumnsAvailable.length > 0 &&\n dropdown(gridColumns.label, nrOfColumnsAvailable),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n accessibilityLabelsEnabled: accessibility.settings && toggle(accessibility.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n disableUnderline\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n maxImageWidth={maxImageWidth && maxImageWidth.prompt}\n maxImageHeight={maxImageHeight && maxImageHeight.prompt}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n <div className={classes.flexContainer}>\n <Typography className={classes.titleText}>Choices</Typography>\n <Tooltip\n classes={{ tooltip: classes.tooltip }}\n disableFocusListener\n disableTouchListener\n placement={'right'}\n title={validationMessage}\n >\n <Info fontSize={'small'} color={'primary'} />\n </Tooltip>\n </div>\n\n {choices.map((choice, index) => (\n <div key={`choice-${index}`} className={classes.choiceConfigurationHolder}>\n <ChoiceConfiguration\n key={index}\n index={index + 1}\n useLetterOrdering={model.choicePrefix === 'letters'}\n className={classes.choiceConfiguration}\n mode={model.choiceMode}\n data={choice}\n defaultFeedback={{}}\n imageSupport={imageSupport}\n disableImageAlignmentButtons={true}\n onDelete={() => onRemoveChoice(index)}\n onChange={(c) => onChoiceChanged(index, c)}\n allowFeedBack={feedbackEnabled}\n allowDelete={deleteChoice.settings}\n noLabels\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n error={choicesErrors?.[choice.value] || null}\n noCorrectAnswerError={correctResponseError}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n />\n\n {rationaleEnabled && (\n <InputContainer key={`rationale-${index}`} label={rationale.label} className={classes.rationaleHolder}>\n <EditableHtml\n className={classes.rationale}\n markup={choice.rationale || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, rationale: c })}\n imageSupport={imageSupport}\n toolbarOpts={toolbarOpts}\n pluginProps={labelPlugins}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n\n {accessibilityLabelsEnabled && (\n <InputContainer\n key={`accessibility-${index}`}\n label={accessibility.label}\n className={classes.accessibilityHolder}\n >\n <EditableHtml\n className={classes.accessibility}\n markup={choice.accessibility || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, accessibility: c })}\n imageSupport={imageSupport}\n pluginProps={labelPlugins}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n </InputContainer>\n )}\n </div>\n ))}\n\n {correctResponseError && <div className={classes.errorText}>{correctResponseError}</div>}\n {answerChoicesError && <div className={classes.errorText}>{answerChoicesError}</div>}\n\n {addChoiceButton.settings && (\n <Tooltip title={addChoiceButtonTooltip} classes={{ tooltip: classes.tooltip }}>\n <Button\n classes={{ root: maxAnswerChoices && choices?.length >= maxAnswerChoices && classes.disableButton }}\n className={classes.addButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={onAddChoice}\n >\n {addChoiceButton.label}\n </Button>\n </Tooltip>\n )}\n </layout.ConfigLayout>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n state = { showWarning: false };\n\n onRemoveChoice = (index) => {\n const { model, configuration, onModelChanged } = this.props;\n const { minAnswerChoices } = configuration || {};\n\n if (minAnswerChoices && model.choices.length === minAnswerChoices) {\n this.setState({ showWarning: true });\n\n return;\n }\n\n model.choices.splice(index, 1);\n onModelChanged(model);\n };\n\n onAddChoice = () => {\n const { model, configuration, onModelChanged } = this.props;\n let { maxAnswerChoices } = configuration || {};\n const { limitChoicesNumber } = model || {};\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n if (maxAnswerChoices && model.choices.length >= maxAnswerChoices) {\n return;\n }\n\n model.choices.push({\n label: '',\n value: utils.firstAvailableIndex(\n model.choices.map((c) => c.value),\n 0,\n ),\n feedback: { type: 'none' },\n });\n\n onModelChanged(model);\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n if (choice.correct && model.choiceMode === 'radio') {\n model.choices = model.choices.map((c) => merge({}, c, { correct: false }));\n }\n\n model.choices.splice(index, 1, choice);\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({\n ...this.props.model,\n prompt,\n });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions,\n });\n };\n\n onModelChanged = (model, key) => {\n const { onModelChanged } = this.props;\n\n switch (key) {\n case 'choiceMode': {\n let value = model.choiceMode;\n\n if (value === 'radio') {\n let correctFound = false;\n\n model.choices = model.choices.map((c) => {\n if (correctFound) {\n c.correct = false;\n\n return c;\n }\n\n if (c.correct) {\n correctFound = true;\n }\n\n return c;\n });\n }\n\n onModelChanged(model, true);\n break;\n }\n\n default:\n onModelChanged(model);\n break;\n }\n };\n\n render() {\n const { configuration: { minAnswerChoices } = {} } = this.props;\n const { showWarning } = this.state;\n\n return (\n <React.Fragment>\n <AlertDialog\n open={showWarning}\n title=\"Warning\"\n text={`There can't be less than ${minAnswerChoices || 0} choices.`}\n onConfirm={() => this.setState({ showWarning: false })}\n />\n <Design\n {...this.props}\n onChangeModel={this.onModelChanged}\n onRemoveChoice={this.onRemoveChoice}\n onChoiceChanged={this.onChoiceChanged}\n onAddChoice={this.onAddChoice}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n </React.Fragment>\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.generateValidationMessage = void 0;
7
+
8
+ var generateValidationMessage = function generateValidationMessage(config) {
9
+ var minAnswerChoices = config.minAnswerChoices,
10
+ maxAnswerChoices = config.maxAnswerChoices;
11
+ var answerChoicesMessage = "\nThere should be at least ".concat(minAnswerChoices, " ") + (maxAnswerChoices ? "and at most ".concat(maxAnswerChoices, " ") : '') + 'answer choices defined.' + '\nEvery answer choice should be non-blank and unique.';
12
+ var correctAnswerMessage = '\nA correct answer must be defined.';
13
+ var message = 'Validation requirements:' + answerChoicesMessage + correctAnswerMessage;
14
+ return message;
15
+ };
16
+
17
+ exports.generateValidationMessage = generateValidationMessage;
18
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils.js"],"names":["generateValidationMessage","config","minAnswerChoices","maxAnswerChoices","answerChoicesMessage","correctAnswerMessage","message"],"mappings":";;;;;;;AAAO,IAAMA,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACC,MAAD,EAAY;AACnD,MAAQC,gBAAR,GAA+CD,MAA/C,CAAQC,gBAAR;AAAA,MAA0BC,gBAA1B,GAA+CF,MAA/C,CAA0BE,gBAA1B;AAEA,MAAMC,oBAAoB,GACxB,qCAA8BF,gBAA9B,UACCC,gBAAgB,yBAAkBA,gBAAlB,SAAwC,EADzD,IAEA,yBAFA,GAGA,uDAJF;AAMA,MAAME,oBAAoB,GAAG,qCAA7B;AAEA,MAAMC,OAAO,GAAG,6BAA6BF,oBAA7B,GAAoDC,oBAApE;AAEA,SAAOC,OAAP;AACD,CAdM","sourcesContent":["export const generateValidationMessage = (config) => {\n const { minAnswerChoices, maxAnswerChoices } = config;\n\n const answerChoicesMessage =\n `\\nThere should be at least ${minAnswerChoices} ` +\n (maxAnswerChoices ? `and at most ${maxAnswerChoices} ` : '') +\n 'answer choices defined.' +\n '\\nEvery answer choice should be non-blank and unique.';\n\n const correctAnswerMessage = '\\nA correct answer must be defined.';\n\n const message = 'Validation requirements:' + answerChoicesMessage + correctAnswerMessage;\n\n return message;\n};\n"],"file":"utils.js"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@pie-element/multiple-choice-configure",
3
+ "version": "6.0.1",
4
+ "private": true,
5
+ "main": "lib/index.js",
6
+ "module": "src/index.js",
7
+ "dependencies": {
8
+ "@material-ui/core": "^3.9.2",
9
+ "@material-ui/icons": "^3.0.1",
10
+ "@pie-framework/pie-configure-events": "^1.3.0",
11
+ "@pie-lib/pie-toolbox": "1.0.12-next.3",
12
+ "debug": "^3.1.0",
13
+ "lodash": "^4.17.15",
14
+ "prop-types": "^15.6.2",
15
+ "react": "^16.8.1",
16
+ "react-dom": "^16.8.1"
17
+ }
18
+ }
@@ -0,0 +1,527 @@
1
+ [
2
+ {
3
+ "type": "feat",
4
+ "scope": "general",
5
+ "subject": "initialize default model (#129)",
6
+ "merge": null,
7
+ "header": "feat(general): initialize default model (#129)",
8
+ "body": "* feat: initialize empty README\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* fix: add babel-transform-runtime in order to support async/await\n\n* bump yarn lock\n\n* update snapshots",
9
+ "footer": null,
10
+ "notes": [],
11
+ "hash": "b62d0585a86c8e2fbe5a6181b869a28c1131756b",
12
+ "gitTags": "",
13
+ "committerDate": "2019-03-12 15:47:20 -0400",
14
+ "isTagged": true,
15
+ "tag": "@pie-element/multiple-choice-controller@1.4.0"
16
+ },
17
+ {
18
+ "type": "feat",
19
+ "scope": "multiple-choice",
20
+ "subject": "refactored the code of the multiple-choice package in order to use the new layout",
21
+ "merge": null,
22
+ "header": "feat(multiple-choice): refactored the code of the multiple-choice package in order to use the new layout",
23
+ "body": null,
24
+ "footer": null,
25
+ "notes": [],
26
+ "hash": "b16b654ae8881e0af9d271c533a27510d751f54f",
27
+ "gitTags": "",
28
+ "committerDate": "2018-12-17 19:40:38 +0200",
29
+ "isTagged": true,
30
+ "tag": "@pie-element/multiple-choice-controller@1.3.0"
31
+ },
32
+ {
33
+ "type": "fix",
34
+ "scope": null,
35
+ "subject": "conflict",
36
+ "merge": null,
37
+ "header": "fix: conflict",
38
+ "body": null,
39
+ "footer": null,
40
+ "notes": [],
41
+ "hash": "b854c6bf9d8139161ae34c16556edf48eb7ba942",
42
+ "gitTags": "",
43
+ "committerDate": "2018-11-12 12:28:04 +0000",
44
+ "isTagged": true,
45
+ "tag": "@pie-element/multiple-choice-controller@1.2.2"
46
+ },
47
+ {
48
+ "type": "fix",
49
+ "scope": "dependencies-add",
50
+ "subject": "added dependencies where needed",
51
+ "merge": null,
52
+ "header": "fix(dependencies-add): added dependencies where needed",
53
+ "body": null,
54
+ "footer": null,
55
+ "notes": [],
56
+ "hash": "23df697120b76a227930c00a7976e79c33ccdcd7",
57
+ "gitTags": " (origin/fix/added-dependencies-where-needed)",
58
+ "committerDate": "2018-11-09 11:31:39 +0200",
59
+ "isTagged": true,
60
+ "tag": "@pie-element/multiple-choice-controller@1.2.2"
61
+ },
62
+ {
63
+ "type": "feat",
64
+ "scope": "choice-interaction-update",
65
+ "subject": "made the requested changes for the multiple-choice package",
66
+ "merge": null,
67
+ "header": "feat(choice-interaction-update): made the requested changes for the multiple-choice package",
68
+ "body": null,
69
+ "footer": null,
70
+ "notes": [],
71
+ "hash": "d03dc1a5b60c00d4c135e6ade1fce26c3612ff69",
72
+ "gitTags": "",
73
+ "committerDate": "2018-10-31 10:13:38 +0200",
74
+ "isTagged": true,
75
+ "tag": "@pie-element/multiple-choice-controller@1.2.0"
76
+ },
77
+ {
78
+ "type": "feat",
79
+ "scope": "ch497",
80
+ "subject": "updated the partial scoring for 3 packages: match, select-text and multiple-choice",
81
+ "merge": null,
82
+ "header": "feat(ch497): updated the partial scoring for 3 packages: match, select-text and multiple-choice",
83
+ "body": null,
84
+ "footer": null,
85
+ "notes": [],
86
+ "hash": "5a46b061aec68b46cd34f358d6bc239fa96df6fd",
87
+ "gitTags": "",
88
+ "committerDate": "2018-10-29 14:27:25 +0200",
89
+ "isTagged": true,
90
+ "tag": "@pie-element/multiple-choice-controller@1.2.0"
91
+ },
92
+ {
93
+ "type": "fix",
94
+ "scope": null,
95
+ "subject": "build fixes",
96
+ "merge": null,
97
+ "header": "fix: build fixes",
98
+ "body": null,
99
+ "footer": null,
100
+ "notes": [],
101
+ "hash": "3c3a7f20ff7805fa1265eb7b187b80d77e1820ac",
102
+ "gitTags": "",
103
+ "committerDate": "2018-09-20 09:49:51 +0100",
104
+ "isTagged": true,
105
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
106
+ },
107
+ {
108
+ "type": "feat",
109
+ "scope": null,
110
+ "subject": "add outcome method to controller",
111
+ "merge": null,
112
+ "header": "feat: add outcome method to controller",
113
+ "body": null,
114
+ "footer": null,
115
+ "notes": [],
116
+ "hash": "ec2853ed83ff977e55155dcd8aa3301f97bfcc67",
117
+ "gitTags": "",
118
+ "committerDate": "2018-08-15 21:36:45 -0400",
119
+ "isTagged": true,
120
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
121
+ },
122
+ {
123
+ "type": "feat",
124
+ "scope": "root",
125
+ "subject": "use @pie-lib/config-ui choiceUtils",
126
+ "merge": null,
127
+ "header": "feat(root): use @pie-lib/config-ui choiceUtils",
128
+ "body": null,
129
+ "footer": null,
130
+ "notes": [],
131
+ "hash": "2a3f180b41e7e9a36a0758dcbe4fdb86f253a50c",
132
+ "gitTags": "",
133
+ "committerDate": "2018-04-24 21:28:59 -0400",
134
+ "isTagged": true,
135
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
136
+ },
137
+ {
138
+ "type": "fix",
139
+ "scope": "dependencies",
140
+ "subject": "version bump",
141
+ "merge": null,
142
+ "header": "fix(dependencies): version bump",
143
+ "body": null,
144
+ "footer": null,
145
+ "notes": [],
146
+ "hash": "ee6d3d0cd4b0a1d87fd4ab4e161c3b686d7b05bb",
147
+ "gitTags": "",
148
+ "committerDate": "2018-04-24 11:34:37 -0400",
149
+ "isTagged": true,
150
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
151
+ },
152
+ {
153
+ "type": "chore",
154
+ "scope": "test",
155
+ "subject": "set up some tests",
156
+ "merge": null,
157
+ "header": "chore(test): set up some tests",
158
+ "body": null,
159
+ "footer": null,
160
+ "notes": [],
161
+ "hash": "37936ae5e2ad4427159cecb53e460f77a98a46bc",
162
+ "gitTags": "",
163
+ "committerDate": "2018-04-17 15:03:45 -0400",
164
+ "isTagged": true,
165
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
166
+ },
167
+ {
168
+ "type": "feat",
169
+ "scope": null,
170
+ "subject": "partial scoring",
171
+ "merge": null,
172
+ "header": "feat: partial scoring",
173
+ "body": null,
174
+ "footer": null,
175
+ "notes": [],
176
+ "hash": "928bcc3169dee6de905118acf53573a794611873",
177
+ "gitTags": "",
178
+ "committerDate": "2019-04-02 17:11:17 +0100",
179
+ "isTagged": true,
180
+ "tag": "@pie-element/multiple-choice-controller@1.5.0"
181
+ },
182
+ {
183
+ "type": "feat",
184
+ "scope": null,
185
+ "subject": "support env.partialScoring, disable for radio",
186
+ "merge": null,
187
+ "header": "feat: support env.partialScoring, disable for radio",
188
+ "body": null,
189
+ "footer": null,
190
+ "notes": [],
191
+ "hash": "40862cb9e50eac0d055c31c1349b7a94aa06475b",
192
+ "gitTags": "",
193
+ "committerDate": "2019-04-02 11:20:20 +0100",
194
+ "isTagged": true,
195
+ "tag": "@pie-element/multiple-choice-controller@1.5.0"
196
+ },
197
+ {
198
+ "type": "feat",
199
+ "scope": null,
200
+ "subject": "allow config to control the UI",
201
+ "merge": null,
202
+ "header": "feat: allow config to control the UI",
203
+ "body": null,
204
+ "footer": null,
205
+ "notes": [],
206
+ "hash": "70551b83c6ad216661e8699f944dd0fcfa630f07",
207
+ "gitTags": "",
208
+ "committerDate": "2019-03-19 12:46:28 +0200",
209
+ "isTagged": true,
210
+ "tag": "@pie-element/multiple-choice-controller@1.5.0"
211
+ },
212
+ {
213
+ "type": "fix",
214
+ "scope": "multiple-choice",
215
+ "subject": "Refactored using new established naming convention and updated tests.",
216
+ "merge": null,
217
+ "header": "fix(multiple-choice): Refactored using new established naming convention and updated tests.",
218
+ "body": null,
219
+ "footer": null,
220
+ "notes": [],
221
+ "hash": "78ffbaeb9cf4bbd4ef88a57addb9a1221089903c",
222
+ "gitTags": "",
223
+ "committerDate": "2019-04-17 06:50:02 +0300",
224
+ "isTagged": true,
225
+ "tag": "@pie-element/multiple-choice-controller@1.5.2"
226
+ },
227
+ {
228
+ "type": "feat",
229
+ "scope": null,
230
+ "subject": "added rationale support",
231
+ "merge": null,
232
+ "header": "feat: added rationale support",
233
+ "body": null,
234
+ "footer": null,
235
+ "notes": [],
236
+ "hash": "3c1edf3da6101d62f3cd4d06dc22c64ca2560205",
237
+ "gitTags": "",
238
+ "committerDate": "2019-05-14 16:45:35 +0300",
239
+ "isTagged": true,
240
+ "tag": "@pie-element/multiple-choice-controller@1.6.0"
241
+ },
242
+ {
243
+ "type": "feat",
244
+ "scope": null,
245
+ "subject": "added rationale support.",
246
+ "merge": null,
247
+ "header": "feat: added rationale support.",
248
+ "body": null,
249
+ "footer": null,
250
+ "notes": [],
251
+ "hash": "1ddc13742d8a585befca50702889c8c8fa47ad6c",
252
+ "gitTags": "",
253
+ "committerDate": "2019-05-09 16:57:00 +0300",
254
+ "isTagged": true,
255
+ "tag": "@pie-element/multiple-choice-controller@1.6.0"
256
+ },
257
+ {
258
+ "type": "chore",
259
+ "scope": null,
260
+ "subject": "downgrade console.error calls to TODO (#261)",
261
+ "merge": null,
262
+ "header": "chore: downgrade console.error calls to TODO (#261)",
263
+ "body": null,
264
+ "footer": null,
265
+ "notes": [],
266
+ "hash": "623e43fb29db0f2dc3c88a8711476689ea8e3969",
267
+ "gitTags": "",
268
+ "committerDate": "2019-07-01 18:02:20 -0400",
269
+ "isTagged": true,
270
+ "tag": "@pie-element/multiple-choice-controller@1.6.3"
271
+ },
272
+ {
273
+ "type": "fix",
274
+ "scope": "editable-html",
275
+ "subject": "fixed lots of stuff regarding the editable-html",
276
+ "merge": null,
277
+ "header": "fix(editable-html): fixed lots of stuff regarding the editable-html",
278
+ "body": null,
279
+ "footer": null,
280
+ "notes": [],
281
+ "hash": "12c112917e0b5065ec35efdbdc276703602a6c68",
282
+ "gitTags": " (origin/andrei/fixes)",
283
+ "committerDate": "2019-07-07 14:16:34 -0400",
284
+ "isTagged": true,
285
+ "tag": "@pie-element/multiple-choice-controller@1.6.7"
286
+ },
287
+ {
288
+ "type": "fix",
289
+ "scope": null,
290
+ "subject": "null choices were throwing 'choices.map is not a function' error.",
291
+ "merge": null,
292
+ "header": "fix: null choices were throwing 'choices.map is not a function' error.",
293
+ "body": null,
294
+ "footer": null,
295
+ "notes": [],
296
+ "hash": "54d0c8ccc7594665b7a8736d2497119f5d8c2533",
297
+ "gitTags": "",
298
+ "committerDate": "2019-08-21 13:55:48 +0300",
299
+ "isTagged": true,
300
+ "tag": "@pie-element/multiple-choice-controller@1.6.12"
301
+ },
302
+ {
303
+ "type": "feat",
304
+ "scope": null,
305
+ "subject": "Session null/empty check.",
306
+ "merge": null,
307
+ "header": "feat: Session null/empty check.",
308
+ "body": "Check for each interaction if: has outcome function, outcome function returns { score: 0, empty: true } if session null/empty/undefined, everywhere where session is used we handle if session is null/empty/undefined and test each function that uses session. [match-list, match, math-inline, multiple-choice, number-line, placement-ordering, point-intercept, select-text, text-entry]",
309
+ "footer": null,
310
+ "notes": [],
311
+ "hash": "f24dc8bfe6761d0c7bacf674f5ec30068bfd03d8",
312
+ "gitTags": "",
313
+ "committerDate": "2019-08-27 09:02:11 +0300",
314
+ "isTagged": true,
315
+ "tag": "@pie-element/multiple-choice-controller@1.7.0"
316
+ },
317
+ {
318
+ "type": "fix",
319
+ "scope": null,
320
+ "subject": "bump pie-lib/controller-utils",
321
+ "merge": null,
322
+ "header": "fix: bump pie-lib/controller-utils",
323
+ "body": null,
324
+ "footer": null,
325
+ "notes": [],
326
+ "hash": "ba3de006afa1ddaa582a531779be766c9715f64c",
327
+ "gitTags": "",
328
+ "committerDate": "2019-08-30 23:15:07 +0300",
329
+ "isTagged": true,
330
+ "tag": "@pie-element/multiple-choice-controller@1.8.0"
331
+ },
332
+ {
333
+ "type": "feat",
334
+ "scope": null,
335
+ "subject": "make use of updateSession callback",
336
+ "merge": null,
337
+ "header": "feat: make use of updateSession callback",
338
+ "body": null,
339
+ "footer": null,
340
+ "notes": [],
341
+ "hash": "c82de8804012bf1755430187426685d6c3eda329",
342
+ "gitTags": "",
343
+ "committerDate": "2019-08-22 15:54:34 +0100",
344
+ "isTagged": true,
345
+ "tag": "@pie-element/multiple-choice-controller@1.8.0"
346
+ },
347
+ {
348
+ "type": "fix",
349
+ "scope": null,
350
+ "subject": "Show Correct Answer was not working properly: replaced allowFeedback (used to send data to pie-ui) with feedbackEnabled (can be changed in settings panel).",
351
+ "merge": null,
352
+ "header": "fix: Show Correct Answer was not working properly: replaced allowFeedback (used to send data to pie-ui) with feedbackEnabled (can be changed in settings panel).",
353
+ "body": null,
354
+ "footer": null,
355
+ "notes": [],
356
+ "hash": "494bf3a471a90e704cbb5ffdb9f44a198646f276",
357
+ "gitTags": "",
358
+ "committerDate": "2019-09-27 09:22:59 +0300",
359
+ "isTagged": true,
360
+ "tag": "@pie-element/multiple-choice-controller@2.1.0"
361
+ },
362
+ {
363
+ "type": "feat",
364
+ "scope": "multiple-choice",
365
+ "subject": "model based prompt",
366
+ "merge": null,
367
+ "header": "feat(multiple-choice): model based prompt",
368
+ "body": null,
369
+ "footer": null,
370
+ "notes": [],
371
+ "hash": "d90c1a1c83f1efb2c941016812f7296f90ba1e57",
372
+ "gitTags": "",
373
+ "committerDate": "2019-09-25 18:24:54 +0300",
374
+ "isTagged": true,
375
+ "tag": "@pie-element/multiple-choice-controller@2.1.0"
376
+ },
377
+ {
378
+ "type": "fix",
379
+ "scope": null,
380
+ "subject": "bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
381
+ "merge": null,
382
+ "header": "fix: bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
383
+ "body": null,
384
+ "footer": null,
385
+ "notes": [],
386
+ "hash": "0a33d688d6d9e5f239daba982bfbdeebb10ba4ab",
387
+ "gitTags": "",
388
+ "committerDate": "2019-10-11 12:38:26 +0100",
389
+ "isTagged": true,
390
+ "tag": "@pie-element/multiple-choice-controller@3.0.1"
391
+ },
392
+ {
393
+ "type": "fix",
394
+ "scope": null,
395
+ "subject": "bump @pie-lib/controller-utils@^0.2.2",
396
+ "merge": null,
397
+ "header": "fix: bump @pie-lib/controller-utils@^0.2.2",
398
+ "body": null,
399
+ "footer": null,
400
+ "notes": [],
401
+ "hash": "edae61cd4f686b2e1611cf0cad710112177fff2e",
402
+ "gitTags": "",
403
+ "committerDate": "2019-10-15 12:11:16 +0100",
404
+ "isTagged": true,
405
+ "tag": "@pie-element/multiple-choice-controller@3.0.2"
406
+ },
407
+ {
408
+ "type": "fix",
409
+ "scope": null,
410
+ "subject": "ch2766 fix unresolved promise (#366)",
411
+ "merge": null,
412
+ "header": "fix: ch2766 fix unresolved promise (#366)",
413
+ "body": "* fix: resolve null when instructor is not role\n\n* chore: typo\n\n* chore: correct response resolve, match interaction\n\n* chore: correct response unresolved\n\n* chore: categorize resolve correct response\n\n* fix: createCorrectResponseSession unresolved promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: ch2776 resolve createCorrectResponse promise",
414
+ "footer": "* fix: Fixed createCorrectResponseSession and added tests for it. (#365)",
415
+ "notes": [],
416
+ "hash": "9057b7fd08e4f5b07e953a5acd053e1945df57f2",
417
+ "gitTags": " (origin/develop, origin/HEAD)",
418
+ "committerDate": "2019-10-16 15:50:55 -0400",
419
+ "isTagged": true,
420
+ "tag": "@pie-element/multiple-choice-controller@3.0.4"
421
+ },
422
+ {
423
+ "type": "fix",
424
+ "scope": null,
425
+ "subject": "feedbackEnabled should not be the property that decides whether the choice correctness is displayed or not.",
426
+ "merge": null,
427
+ "header": "fix: feedbackEnabled should not be the property that decides whether the choice correctness is displayed or not.",
428
+ "body": null,
429
+ "footer": null,
430
+ "notes": [],
431
+ "hash": "b69adfd687b185b39f030e5e5060d2219c8491d6",
432
+ "gitTags": "",
433
+ "committerDate": "2019-11-04 17:50:07 +0200",
434
+ "isTagged": true,
435
+ "tag": "@pie-element/multiple-choice-controller@3.0.6"
436
+ },
437
+ {
438
+ "type": "fix",
439
+ "scope": null,
440
+ "subject": "PIE-201 - store prompts and answers in session, fix",
441
+ "merge": null,
442
+ "header": "fix: PIE-201 - store prompts and answers in session, fix",
443
+ "body": "controller-utils to use 0 as key",
444
+ "footer": null,
445
+ "notes": [],
446
+ "hash": "23802242e0bc647f929f6db4dfd4b03f0112f2fb",
447
+ "gitTags": "",
448
+ "committerDate": "2019-11-18 20:35:06 +0000",
449
+ "isTagged": true,
450
+ "tag": "@pie-element/multiple-choice-controller@3.0.7"
451
+ },
452
+ {
453
+ "type": "feat",
454
+ "scope": "normalization",
455
+ "subject": "added a choicePrefix default value in case one is not given [ch6650]",
456
+ "merge": null,
457
+ "header": "feat(normalization): added a choicePrefix default value in case one is not given [ch6650]",
458
+ "body": null,
459
+ "footer": null,
460
+ "notes": [],
461
+ "hash": "955ff4040a4d5acc24fd8d8335b3557226a22396",
462
+ "gitTags": " (origin/ch6650/multiple-choice-no-prefix)",
463
+ "committerDate": "2019-12-24 13:43:07 +0200",
464
+ "isTagged": true,
465
+ "tag": "@pie-element/multiple-choice-controller@3.1.0"
466
+ },
467
+ {
468
+ "type": "fix",
469
+ "scope": null,
470
+ "subject": "bump ui versions",
471
+ "merge": null,
472
+ "header": "fix: bump ui versions",
473
+ "body": null,
474
+ "footer": null,
475
+ "notes": [],
476
+ "hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
477
+ "gitTags": "",
478
+ "committerDate": "2020-03-31 19:25:13 +0100",
479
+ "isTagged": true,
480
+ "tag": "@pie-element/multiple-choice-controller@3.2.0"
481
+ },
482
+ {
483
+ "type": "fix",
484
+ "scope": null,
485
+ "subject": "bump all packages to avoid tag conflict",
486
+ "merge": null,
487
+ "header": "fix: bump all packages to avoid tag conflict",
488
+ "body": null,
489
+ "footer": null,
490
+ "notes": [],
491
+ "hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
492
+ "gitTags": " (develop)",
493
+ "committerDate": "2020-04-10 20:01:37 +0100",
494
+ "isTagged": true,
495
+ "tag": "@pie-element/multiple-choice-controller@3.2.1"
496
+ },
497
+ {
498
+ "type": "fix",
499
+ "scope": null,
500
+ "subject": "PD-127: MC Choice Prefix Issue (Set 'letters' as default choicePrefix)",
501
+ "merge": null,
502
+ "header": "fix: PD-127: MC Choice Prefix Issue (Set 'letters' as default choicePrefix)",
503
+ "body": null,
504
+ "footer": null,
505
+ "notes": [],
506
+ "hash": "27cd7adf01276ecd09094c4d7808807590a8c00a",
507
+ "gitTags": "",
508
+ "committerDate": "2020-04-13 09:47:09 +0300",
509
+ "isTagged": true,
510
+ "tag": "@pie-element/multiple-choice-controller@3.2.2"
511
+ },
512
+ {
513
+ "type": "fix",
514
+ "scope": null,
515
+ "subject": "bump ui/lib versions",
516
+ "merge": null,
517
+ "header": "fix: bump ui/lib versions",
518
+ "body": null,
519
+ "footer": null,
520
+ "notes": [],
521
+ "hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
522
+ "gitTags": "",
523
+ "committerDate": "2020-04-14 15:36:44 +0100",
524
+ "isTagged": true,
525
+ "tag": "@pie-element/multiple-choice-controller@3.2.3"
526
+ }
527
+ ]