@pie-element/likert 4.1.2-next.5 → 4.1.3

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 (87) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +1468 -0
  3. package/LICENSE.md +5 -0
  4. package/configure/CHANGELOG.json +1 -0
  5. package/configure/CHANGELOG.md +1385 -0
  6. package/configure/lib/choiceGenerator.js +219 -0
  7. package/configure/lib/choiceGenerator.js.map +1 -0
  8. package/configure/lib/defaults.js +100 -0
  9. package/configure/lib/defaults.js.map +1 -0
  10. package/configure/lib/index.js +106 -0
  11. package/configure/lib/index.js.map +1 -0
  12. package/configure/lib/likertEntities.js +24 -0
  13. package/configure/lib/likertEntities.js.map +1 -0
  14. package/configure/lib/main.js +388 -0
  15. package/configure/lib/main.js.map +1 -0
  16. package/configure/package.json +27 -0
  17. package/controller/CHANGELOG.json +1 -0
  18. package/controller/CHANGELOG.md +90 -0
  19. package/controller/lib/defaults.js +17 -0
  20. package/controller/lib/defaults.js.map +1 -0
  21. package/controller/lib/index.js +81 -0
  22. package/controller/lib/index.js.map +1 -0
  23. package/controller/package.json +17 -0
  24. package/docs/config-schema.json +2011 -0
  25. package/docs/config-schema.json.md +1487 -0
  26. package/docs/demo/config.js +8 -0
  27. package/docs/demo/generate.js +22 -0
  28. package/docs/demo/index.html +1 -0
  29. package/docs/demo/session.js +6 -0
  30. package/docs/pie-schema.json +966 -0
  31. package/docs/pie-schema.json.md +711 -0
  32. package/lib/choice-input.js +90 -0
  33. package/lib/choice-input.js.map +1 -0
  34. package/lib/index.js +64 -0
  35. package/lib/index.js.map +1 -0
  36. package/lib/likert.js +97 -0
  37. package/lib/likert.js.map +1 -0
  38. package/lib/likertEntities.js +11 -0
  39. package/lib/likertEntities.js.map +1 -0
  40. package/lib/main.js +42 -0
  41. package/lib/main.js.map +1 -0
  42. package/lib/session-updater.js +15 -0
  43. package/lib/session-updater.js.map +1 -0
  44. package/package.json +21 -83
  45. package/readme.md +55 -0
  46. package/configure.js +0 -2
  47. package/controller.js +0 -1
  48. package/dist/author/choiceGenerator.d.ts +0 -13
  49. package/dist/author/choiceGenerator.js +0 -255
  50. package/dist/author/defaults.d.ts +0 -102
  51. package/dist/author/defaults.js +0 -60
  52. package/dist/author/index.d.ts +0 -31
  53. package/dist/author/index.js +0 -73
  54. package/dist/author/likertEntities.d.ts +0 -25
  55. package/dist/author/likertEntities.js +0 -18
  56. package/dist/author/main.d.ts +0 -27
  57. package/dist/author/main.js +0 -298
  58. package/dist/browser/Radio-DABxV66W.js +0 -9454
  59. package/dist/browser/Radio-DABxV66W.js.map +0 -1
  60. package/dist/browser/author/index.js +0 -45281
  61. package/dist/browser/author/index.js.map +0 -1
  62. package/dist/browser/controller/index.js +0 -51
  63. package/dist/browser/controller/index.js.map +0 -1
  64. package/dist/browser/delivery/index.js +0 -219
  65. package/dist/browser/delivery/index.js.map +0 -1
  66. package/dist/browser/likert.css +0 -2
  67. package/dist/controller/defaults.d.ts +0 -19
  68. package/dist/controller/defaults.js +0 -13
  69. package/dist/controller/index.d.ts +0 -19
  70. package/dist/controller/index.js +0 -41
  71. package/dist/delivery/choice-input.d.ts +0 -27
  72. package/dist/delivery/choice-input.js +0 -59
  73. package/dist/delivery/index.d.ts +0 -19
  74. package/dist/delivery/index.js +0 -44
  75. package/dist/delivery/likert.d.ts +0 -26
  76. package/dist/delivery/likert.js +0 -70
  77. package/dist/delivery/likertEntities.d.ts +0 -12
  78. package/dist/delivery/likertEntities.js +0 -7
  79. package/dist/delivery/main.d.ts +0 -23
  80. package/dist/delivery/main.js +0 -37
  81. package/dist/delivery/session-updater.d.ts +0 -9
  82. package/dist/index.d.ts +0 -1
  83. package/dist/index.iife.d.ts +0 -8
  84. package/dist/index.iife.js +0 -145
  85. package/dist/index.js +0 -2
  86. package/dist/runtime-support.d.ts +0 -12
  87. package/dist/runtime-support.js +0 -12
@@ -0,0 +1,388 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = exports.Main = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _propTypes = _interopRequireDefault(require("prop-types"));
12
+ var _editableHtmlTipTap = _interopRequireDefault(require("@pie-lib/editable-html-tip-tap"));
13
+ var _Radio = _interopRequireDefault(require("@mui/material/Radio"));
14
+ var _RadioGroup = _interopRequireDefault(require("@mui/material/RadioGroup"));
15
+ var _FormControlLabel = _interopRequireDefault(require("@mui/material/FormControlLabel"));
16
+ var _configUi = require("@pie-lib/config-ui");
17
+ var _styles = require("@mui/material/styles");
18
+ var _lodashEs = require("lodash-es");
19
+ var _likertEntities = require("./likertEntities");
20
+ var _choiceGenerator = _interopRequireDefault(require("./choiceGenerator"));
21
+ var _renderUi = require("@pie-lib/render-ui");
22
+ const {
23
+ Panel,
24
+ toggle,
25
+ radio
26
+ } = _configUi.settings;
27
+ const PromptHolder = (0, _styles.styled)(_configUi.InputContainer)(({
28
+ theme
29
+ }) => ({
30
+ width: '100%',
31
+ paddingTop: theme.spacing(2),
32
+ marginBottom: theme.spacing(2)
33
+ }));
34
+ const RadioButtonsWrapper = (0, _styles.styled)('div')({
35
+ display: 'flex',
36
+ flexDirection: 'column'
37
+ });
38
+ const RadioButtonsColumnHeader = (0, _styles.styled)('p')(({
39
+ theme
40
+ }) => ({
41
+ color: theme.palette.grey[400],
42
+ fontSize: theme.typography.fontSize - 2
43
+ }));
44
+ const LikertLabelHolder = (0, _styles.styled)('div')(({
45
+ theme
46
+ }) => ({
47
+ display: 'flex',
48
+ width: '100%',
49
+ alignItems: 'flex-start',
50
+ marginBottom: theme.spacing(2)
51
+ }));
52
+ const LikertOptionsHolder = (0, _styles.styled)('div')(({
53
+ theme
54
+ }) => ({
55
+ display: 'flex',
56
+ width: '100%',
57
+ justifyContent: 'space-around',
58
+ marginBottom: theme.spacing(2.5)
59
+ }));
60
+ const LikertLabelInput = (0, _styles.styled)(_configUi.InputContainer)({
61
+ width: 'calc(100% - 200px)',
62
+ marginRight: 0
63
+ });
64
+ const ErrorMessage = (0, _styles.styled)('p')(({
65
+ theme
66
+ }) => ({
67
+ color: theme.palette.error.main,
68
+ fontSize: theme.typography.fontSize - 2
69
+ }));
70
+ const StyledNumberTextField = (0, _styles.styled)(_configUi.NumberTextField)({
71
+ width: '100%'
72
+ });
73
+ const FlexRow = (0, _styles.styled)('div')({
74
+ display: 'flex',
75
+ flexDirection: 'row'
76
+ });
77
+ const LikertValueHolder = (0, _styles.styled)('div')(({
78
+ theme
79
+ }) => ({
80
+ paddingLeft: theme.spacing(2.5),
81
+ width: '150px'
82
+ }));
83
+ const StyledEditableHtml = (0, _styles.styled)(_editableHtmlTipTap.default)(({
84
+ theme
85
+ }) => ({
86
+ paddingTop: theme.spacing(2)
87
+ }));
88
+ const InputFormGroupIndex = (0, _styles.styled)('span')(({
89
+ theme
90
+ }) => ({
91
+ width: '30px',
92
+ paddingTop: theme.spacing(4)
93
+ }));
94
+ const ErrorText = (0, _styles.styled)('div')(({
95
+ theme
96
+ }) => ({
97
+ fontSize: theme.typography.fontSize - 2,
98
+ color: theme.palette.error.main,
99
+ paddingTop: theme.spacing(1)
100
+ }));
101
+ const CustomColorRadio = (0, _styles.styled)(_Radio.default)({
102
+ color: `${_renderUi.color.tertiary()} !important`
103
+ });
104
+ const LikertOrientation = props => {
105
+ const {
106
+ model,
107
+ onChangeModel
108
+ } = props;
109
+ const onChangeLikertOrientation = e => {
110
+ const likertOrientation = e.target.value;
111
+ onChangeModel({
112
+ ...model,
113
+ likertOrientation
114
+ });
115
+ };
116
+ return /*#__PURE__*/_react.default.createElement(RadioButtonsWrapper, null, /*#__PURE__*/_react.default.createElement(RadioButtonsColumnHeader, null, "Likert Orientation"), /*#__PURE__*/_react.default.createElement(_RadioGroup.default, {
117
+ "aria-label": "likertOrientation",
118
+ name: "likertOrientation",
119
+ value: model.likertOrientation,
120
+ onChange: onChangeLikertOrientation
121
+ }, /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
122
+ value: _likertEntities.LIKERT_ORIENTATION.horizontal,
123
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
124
+ label: "Horizontal"
125
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
126
+ value: _likertEntities.LIKERT_ORIENTATION.vertical,
127
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
128
+ label: "Vertical"
129
+ })));
130
+ };
131
+ const LikertScale = props => {
132
+ const {
133
+ model,
134
+ onChangeModel
135
+ } = props;
136
+ const onChangeLikertScale = e => {
137
+ const likertScale = e.target.value;
138
+ onChangeModel({
139
+ ...model,
140
+ likertScale,
141
+ choices: (0, _choiceGenerator.default)(likertScale, model.likertType)
142
+ });
143
+ };
144
+ return /*#__PURE__*/_react.default.createElement(RadioButtonsWrapper, null, /*#__PURE__*/_react.default.createElement(RadioButtonsColumnHeader, null, "Likert Scale"), /*#__PURE__*/_react.default.createElement(_RadioGroup.default, {
145
+ "aria-label": "likertScale",
146
+ name: "likertScale",
147
+ value: model.likertScale,
148
+ onChange: onChangeLikertScale
149
+ }, /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
150
+ value: _likertEntities.LIKERT_SCALE.likert3,
151
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
152
+ label: "Likert 3"
153
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
154
+ value: _likertEntities.LIKERT_SCALE.likert5,
155
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
156
+ label: "Likert 5"
157
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
158
+ value: _likertEntities.LIKERT_SCALE.likert7,
159
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
160
+ label: "Likert 7"
161
+ })));
162
+ };
163
+ const LikertType = props => {
164
+ const {
165
+ model,
166
+ onChangeModel
167
+ } = props;
168
+ const onChangeLikertType = e => {
169
+ const likertType = e.target.value;
170
+ onChangeModel({
171
+ ...model,
172
+ likertType,
173
+ choices: (0, _choiceGenerator.default)(model.likertScale, likertType)
174
+ });
175
+ };
176
+ return /*#__PURE__*/_react.default.createElement(RadioButtonsWrapper, null, /*#__PURE__*/_react.default.createElement(RadioButtonsColumnHeader, null, "Label Type"), /*#__PURE__*/_react.default.createElement(FlexRow, null, /*#__PURE__*/_react.default.createElement(_RadioGroup.default, {
177
+ "aria-label": "likertLabelType",
178
+ name: "likertLabelType",
179
+ value: model.likertType,
180
+ onChange: onChangeLikertType
181
+ }, /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
182
+ value: _likertEntities.LIKERT_TYPE.agreement,
183
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
184
+ label: "Agreement"
185
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
186
+ value: _likertEntities.LIKERT_TYPE.frequency,
187
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
188
+ label: "Frequency"
189
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
190
+ value: _likertEntities.LIKERT_TYPE.yesNo,
191
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
192
+ label: "Yes/No"
193
+ })), /*#__PURE__*/_react.default.createElement(_RadioGroup.default, {
194
+ "aria-label": "likertLabelType",
195
+ name: "likertLabelType",
196
+ value: model.likertType,
197
+ onChange: onChangeLikertType
198
+ }, /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
199
+ value: _likertEntities.LIKERT_TYPE.importance,
200
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
201
+ label: "Importance"
202
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
203
+ value: _likertEntities.LIKERT_TYPE.likelihood,
204
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
205
+ label: "Likelihood"
206
+ }), /*#__PURE__*/_react.default.createElement(_FormControlLabel.default, {
207
+ value: _likertEntities.LIKERT_TYPE.like,
208
+ control: /*#__PURE__*/_react.default.createElement(CustomColorRadio, null),
209
+ label: "Like"
210
+ }))));
211
+ };
212
+ const buildValuesMap = model => model.choices.reduce((acc, choice) => {
213
+ const accClone = {
214
+ ...acc
215
+ };
216
+ const choiceValue = parseInt(choice.value);
217
+ if (!accClone[choiceValue]) {
218
+ accClone[choiceValue] = 0;
219
+ }
220
+ return {
221
+ ...accClone,
222
+ [choiceValue]: accClone[choiceValue] + 1
223
+ };
224
+ }, {});
225
+ const Design = props => {
226
+ const {
227
+ configuration,
228
+ imageSupport,
229
+ model,
230
+ onChangeModel,
231
+ onChoiceChanged,
232
+ onConfigurationChanged,
233
+ onPromptChanged,
234
+ onTeacherInstructionsChanged,
235
+ uploadSoundSupport
236
+ } = props;
237
+ const {
238
+ contentDimensions = {},
239
+ prompt = {},
240
+ scoringType = {},
241
+ settingsPanelDisabled,
242
+ spellCheck = {},
243
+ teacherInstructions = {},
244
+ baseInputConfiguration = {},
245
+ likertChoice = {}
246
+ } = configuration || {};
247
+ const {
248
+ errors = {},
249
+ extraCSSRules,
250
+ spellCheckEnabled,
251
+ teacherInstructionsEnabled
252
+ } = model || {};
253
+ const {
254
+ prompt: promptError,
255
+ teacherInstructions: teacherInstructionsError
256
+ } = errors;
257
+ const valuesMap = buildValuesMap(model);
258
+ const panelProperties = {
259
+ teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
260
+ spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),
261
+ scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
262
+ };
263
+ const getPluginProps = (props = {}) => {
264
+ return Object.assign({
265
+ ...baseInputConfiguration
266
+ }, props || {});
267
+ };
268
+ return /*#__PURE__*/_react.default.createElement(_configUi.layout.ConfigLayout, {
269
+ extraCSSRules: extraCSSRules,
270
+ dimensions: contentDimensions,
271
+ hideSettings: settingsPanelDisabled,
272
+ settings: /*#__PURE__*/_react.default.createElement(Panel, {
273
+ model: model,
274
+ onChangeModel: onChangeModel,
275
+ configuration: configuration,
276
+ onChangeConfiguration: onConfigurationChanged,
277
+ groups: {
278
+ Properties: panelProperties
279
+ }
280
+ })
281
+ }, teacherInstructionsEnabled && /*#__PURE__*/_react.default.createElement(PromptHolder, {
282
+ label: teacherInstructions.label
283
+ }, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
284
+ markup: model.teacherInstructions || '',
285
+ onChange: onTeacherInstructionsChanged,
286
+ imageSupport: imageSupport,
287
+ nonEmpty: false,
288
+ error: teacherInstructionsError,
289
+ spellCheck: spellCheckEnabled,
290
+ uploadSoundSupport: uploadSoundSupport,
291
+ pluginProps: getPluginProps(teacherInstructions?.inputConfiguration)
292
+ }), teacherInstructionsError && /*#__PURE__*/_react.default.createElement(ErrorText, null, teacherInstructionsError)), /*#__PURE__*/_react.default.createElement(PromptHolder, {
293
+ label: prompt.label
294
+ }, /*#__PURE__*/_react.default.createElement(_editableHtmlTipTap.default, {
295
+ markup: model.prompt,
296
+ onChange: onPromptChanged,
297
+ imageSupport: imageSupport,
298
+ nonEmpty: false,
299
+ error: promptError,
300
+ spellCheck: spellCheckEnabled,
301
+ disableUnderline: true,
302
+ uploadSoundSupport: uploadSoundSupport,
303
+ pluginProps: getPluginProps(prompt?.inputConfiguration)
304
+ }), promptError && /*#__PURE__*/_react.default.createElement(ErrorText, null, promptError)), /*#__PURE__*/_react.default.createElement(LikertOptionsHolder, null, /*#__PURE__*/_react.default.createElement(LikertScale, {
305
+ model: model,
306
+ onChangeModel: onChangeModel
307
+ }), /*#__PURE__*/_react.default.createElement(LikertType, {
308
+ model: model,
309
+ onChangeModel: onChangeModel
310
+ }), /*#__PURE__*/_react.default.createElement(LikertOrientation, {
311
+ model: model,
312
+ onChangeModel: onChangeModel
313
+ })), model.choices.map((choice, index) => /*#__PURE__*/_react.default.createElement(LikertLabelHolder, {
314
+ key: `choice-${index}`
315
+ }, /*#__PURE__*/_react.default.createElement(InputFormGroupIndex, null, index + 1, "."), /*#__PURE__*/_react.default.createElement(LikertLabelInput, {
316
+ key: `likert-label-${index}`,
317
+ label: 'Likert Label'
318
+ }, /*#__PURE__*/_react.default.createElement(StyledEditableHtml, {
319
+ markup: choice.label || '',
320
+ onChange: c => onChoiceChanged(index, {
321
+ ...choice,
322
+ label: c
323
+ }),
324
+ imageSupport: imageSupport,
325
+ spellCheck: spellCheckEnabled,
326
+ uploadSoundSupport: uploadSoundSupport,
327
+ pluginProps: getPluginProps(likertChoice?.inputConfiguration)
328
+ })), /*#__PURE__*/_react.default.createElement(LikertValueHolder, null, /*#__PURE__*/_react.default.createElement(StyledNumberTextField, {
329
+ label: 'Likert Value',
330
+ value: choice.value,
331
+ max: 100,
332
+ min: -100,
333
+ onChange: (e, t) => {
334
+ onChoiceChanged(index, {
335
+ ...choice,
336
+ value: t
337
+ });
338
+ },
339
+ imageSupport: imageSupport
340
+ }), valuesMap[choice.value] && valuesMap[choice.value] > 1 && /*#__PURE__*/_react.default.createElement(ErrorMessage, null, "Value should be unique")))));
341
+ };
342
+ class Main extends _react.default.Component {
343
+ constructor(...args) {
344
+ super(...args);
345
+ (0, _defineProperty2.default)(this, "onChoiceChanged", (index, choice) => {
346
+ const {
347
+ model,
348
+ onModelChanged
349
+ } = this.props;
350
+ model.choices = model.choices.map(choice => (0, _lodashEs.merge)({}, choice));
351
+ model.choices.splice(index, 1, choice);
352
+ onModelChanged(model);
353
+ });
354
+ (0, _defineProperty2.default)(this, "onPromptChanged", prompt => {
355
+ this.props.onModelChanged({
356
+ ...this.props.model,
357
+ prompt
358
+ });
359
+ });
360
+ (0, _defineProperty2.default)(this, "onTeacherInstructionsChanged", teacherInstructions => {
361
+ this.props.onModelChanged({
362
+ ...this.props.model,
363
+ teacherInstructions
364
+ });
365
+ });
366
+ }
367
+ render() {
368
+ return /*#__PURE__*/_react.default.createElement(Design, (0, _extends2.default)({}, this.props, {
369
+ onChangeModel: this.props.onModelChanged,
370
+ onChoiceChanged: this.onChoiceChanged,
371
+ onPromptChanged: this.onPromptChanged,
372
+ onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
373
+ }));
374
+ }
375
+ }
376
+ exports.Main = Main;
377
+ (0, _defineProperty2.default)(Main, "propTypes", {
378
+ model: _propTypes.default.object.isRequired,
379
+ disableSidePanel: _propTypes.default.bool,
380
+ onModelChanged: _propTypes.default.func.isRequired,
381
+ onConfigurationChanged: _propTypes.default.func.isRequired,
382
+ imageSupport: _propTypes.default.shape({
383
+ add: _propTypes.default.func.isRequired,
384
+ delete: _propTypes.default.func.isRequired
385
+ })
386
+ });
387
+ var _default = exports.default = Main;
388
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","names":["_react","_interopRequireDefault","require","_propTypes","_editableHtmlTipTap","_Radio","_RadioGroup","_FormControlLabel","_configUi","_styles","_lodashEs","_likertEntities","_choiceGenerator","_renderUi","Panel","toggle","radio","settings","PromptHolder","styled","InputContainer","theme","width","paddingTop","spacing","marginBottom","RadioButtonsWrapper","display","flexDirection","RadioButtonsColumnHeader","color","palette","grey","fontSize","typography","LikertLabelHolder","alignItems","LikertOptionsHolder","justifyContent","LikertLabelInput","marginRight","ErrorMessage","error","main","StyledNumberTextField","NumberTextField","FlexRow","LikertValueHolder","paddingLeft","StyledEditableHtml","EditableHtml","InputFormGroupIndex","ErrorText","CustomColorRadio","Radio","tertiary","LikertOrientation","props","model","onChangeModel","onChangeLikertOrientation","e","likertOrientation","target","value","default","createElement","name","onChange","LIKERT_ORIENTATION","horizontal","control","label","vertical","LikertScale","onChangeLikertScale","likertScale","choices","generateChoices","likertType","LIKERT_SCALE","likert3","likert5","likert7","LikertType","onChangeLikertType","LIKERT_TYPE","agreement","frequency","yesNo","importance","likelihood","like","buildValuesMap","reduce","acc","choice","accClone","choiceValue","parseInt","Design","configuration","imageSupport","onChoiceChanged","onConfigurationChanged","onPromptChanged","onTeacherInstructionsChanged","uploadSoundSupport","contentDimensions","prompt","scoringType","settingsPanelDisabled","spellCheck","teacherInstructions","baseInputConfiguration","likertChoice","errors","extraCSSRules","spellCheckEnabled","teacherInstructionsEnabled","promptError","teacherInstructionsError","valuesMap","panelProperties","getPluginProps","Object","assign","layout","ConfigLayout","dimensions","hideSettings","onChangeConfiguration","groups","Properties","markup","nonEmpty","pluginProps","inputConfiguration","disableUnderline","map","index","key","c","max","min","t","Main","React","Component","constructor","args","_defineProperty2","onModelChanged","merge","splice","render","_extends2","exports","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","delete","_default"],"sources":["../src/main.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport Radio from '@mui/material/Radio';\nimport RadioGroup from '@mui/material/RadioGroup';\nimport FormControlLabel from '@mui/material/FormControlLabel';\nimport { InputContainer, settings, layout, NumberTextField } from '@pie-lib/config-ui';\nimport { styled } from '@mui/material/styles';\nimport { merge } from 'lodash-es';\nimport { LIKERT_TYPE, LIKERT_SCALE, LIKERT_ORIENTATION } from './likertEntities';\nimport generateChoices from './choiceGenerator';\nimport { color } from '@pie-lib/render-ui';\n\nconst { Panel, toggle, radio } = settings;\n\nconst PromptHolder = styled(InputContainer)(({ theme }) => ({\n width: '100%',\n paddingTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n}));\n\nconst RadioButtonsWrapper = styled('div')({\n display: 'flex',\n flexDirection: 'column',\n});\n\nconst RadioButtonsColumnHeader = styled('p')(({ theme }) => ({\n color: theme.palette.grey[400],\n fontSize: theme.typography.fontSize - 2,\n}));\n\nconst LikertLabelHolder = styled('div')(({ theme }) => ({\n display: 'flex',\n width: '100%',\n alignItems: 'flex-start',\n marginBottom: theme.spacing(2),\n}));\n\nconst LikertOptionsHolder = styled('div')(({ theme }) => ({\n display: 'flex',\n width: '100%',\n justifyContent: 'space-around',\n marginBottom: theme.spacing(2.5),\n}));\n\nconst LikertLabelInput = styled(InputContainer)({\n width: 'calc(100% - 200px)',\n marginRight: 0,\n});\n\nconst ErrorMessage = styled('p')(({ theme }) => ({\n color: theme.palette.error.main,\n fontSize: theme.typography.fontSize - 2,\n}));\n\nconst StyledNumberTextField = styled(NumberTextField)({\n width: '100%',\n});\n\nconst FlexRow = styled('div')({\n display: 'flex',\n flexDirection: 'row',\n});\n\nconst LikertValueHolder = styled('div')(({ theme }) => ({\n paddingLeft: theme.spacing(2.5),\n width: '150px',\n}));\n\nconst StyledEditableHtml = styled(EditableHtml)(({ theme }) => ({\n paddingTop: theme.spacing(2),\n}));\n\nconst InputFormGroupIndex = styled('span')(({ theme }) => ({\n width: '30px',\n paddingTop: theme.spacing(4),\n}));\n\nconst ErrorText = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nconst CustomColorRadio = styled(Radio)({\n color: `${color.tertiary()} !important`,\n});\n\nconst LikertOrientation = (props) => {\n const { model, onChangeModel } = props;\n\n const onChangeLikertOrientation = (e) => {\n const likertOrientation = e.target.value;\n\n onChangeModel({ ...model, likertOrientation });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Likert Orientation</RadioButtonsColumnHeader>\n <RadioGroup\n aria-label=\"likertOrientation\"\n name=\"likertOrientation\"\n value={model.likertOrientation}\n onChange={onChangeLikertOrientation}\n >\n <FormControlLabel value={LIKERT_ORIENTATION.horizontal} control={<CustomColorRadio />} label=\"Horizontal\" />\n <FormControlLabel value={LIKERT_ORIENTATION.vertical} control={<CustomColorRadio />} label=\"Vertical\" />\n </RadioGroup>\n </RadioButtonsWrapper>\n );\n};\n\nconst LikertScale = (props) => {\n const { model, onChangeModel } = props;\n const onChangeLikertScale = (e) => {\n const likertScale = e.target.value;\n\n onChangeModel({\n ...model,\n likertScale,\n choices: generateChoices(likertScale, model.likertType),\n });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Likert Scale</RadioButtonsColumnHeader>\n <RadioGroup aria-label=\"likertScale\" name=\"likertScale\" value={model.likertScale} onChange={onChangeLikertScale}>\n <FormControlLabel value={LIKERT_SCALE.likert3} control={<CustomColorRadio />} label=\"Likert 3\" />\n <FormControlLabel value={LIKERT_SCALE.likert5} control={<CustomColorRadio />} label=\"Likert 5\" />\n <FormControlLabel value={LIKERT_SCALE.likert7} control={<CustomColorRadio />} label=\"Likert 7\" />\n </RadioGroup>\n </RadioButtonsWrapper>\n );\n};\n\nconst LikertType = (props) => {\n const { model, onChangeModel } = props;\n const onChangeLikertType = (e) => {\n const likertType = e.target.value;\n\n onChangeModel({\n ...model,\n likertType,\n choices: generateChoices(model.likertScale, likertType),\n });\n };\n\n return (\n <RadioButtonsWrapper>\n <RadioButtonsColumnHeader>Label Type</RadioButtonsColumnHeader>\n\n <FlexRow>\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.agreement} control={<CustomColorRadio />} label=\"Agreement\" />\n <FormControlLabel value={LIKERT_TYPE.frequency} control={<CustomColorRadio />} label=\"Frequency\" />\n <FormControlLabel value={LIKERT_TYPE.yesNo} control={<CustomColorRadio />} label=\"Yes/No\" />\n </RadioGroup>\n\n <RadioGroup\n aria-label=\"likertLabelType\"\n name=\"likertLabelType\"\n value={model.likertType}\n onChange={onChangeLikertType}\n >\n <FormControlLabel value={LIKERT_TYPE.importance} control={<CustomColorRadio />} label=\"Importance\" />\n <FormControlLabel value={LIKERT_TYPE.likelihood} control={<CustomColorRadio />} label=\"Likelihood\" />\n <FormControlLabel value={LIKERT_TYPE.like} control={<CustomColorRadio />} label=\"Like\" />\n </RadioGroup>\n </FlexRow>\n </RadioButtonsWrapper>\n );\n};\n\nconst buildValuesMap = (model) =>\n model.choices.reduce((acc, choice) => {\n const accClone = { ...acc };\n const choiceValue = parseInt(choice.value);\n\n if (!accClone[choiceValue]) {\n accClone[choiceValue] = 0;\n }\n\n return { ...accClone, [choiceValue]: accClone[choiceValue] + 1 };\n }, {});\n\nconst Design = (props) => {\n const {\n configuration,\n imageSupport,\n model,\n onChangeModel,\n onChoiceChanged,\n onConfigurationChanged,\n onPromptChanged,\n onTeacherInstructionsChanged,\n uploadSoundSupport,\n } = props;\n const {\n contentDimensions = {},\n prompt = {},\n scoringType = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n baseInputConfiguration = {},\n likertChoice = {},\n } = configuration || {};\n const { errors = {}, extraCSSRules, spellCheckEnabled, teacherInstructionsEnabled } = model || {};\n const { prompt: promptError, teacherInstructions: teacherInstructionsError } = errors;\n\n const valuesMap = buildValuesMap(model);\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n };\n\n const getPluginProps = (props = {}) => {\n return Object.assign(\n {\n ...baseInputConfiguration,\n },\n props || {},\n );\n };\n\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\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 Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <PromptHolder label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={teacherInstructionsError}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n />\n {teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}\n </PromptHolder>\n )}\n\n <PromptHolder label={prompt.label}>\n <EditableHtml\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n spellCheck={spellCheckEnabled}\n disableUnderline\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n />\n {promptError && <ErrorText>{promptError}</ErrorText>}\n </PromptHolder>\n\n <LikertOptionsHolder>\n <LikertScale model={model} onChangeModel={onChangeModel} />\n <LikertType model={model} onChangeModel={onChangeModel} />\n <LikertOrientation model={model} onChangeModel={onChangeModel} />\n </LikertOptionsHolder>\n\n {model.choices.map((choice, index) => (\n <LikertLabelHolder key={`choice-${index}`}>\n <InputFormGroupIndex>{index + 1}.</InputFormGroupIndex>\n <LikertLabelInput key={`likert-label-${index}`} label={'Likert Label'}>\n <StyledEditableHtml\n markup={choice.label || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, label: c })}\n imageSupport={imageSupport}\n spellCheck={spellCheckEnabled}\n uploadSoundSupport={uploadSoundSupport}\n pluginProps={getPluginProps(likertChoice?.inputConfiguration)}\n />\n </LikertLabelInput>\n\n <LikertValueHolder>\n <StyledNumberTextField\n label={'Likert Value'}\n value={choice.value}\n max={100}\n min={-100}\n onChange={(e, t) => {\n onChoiceChanged(index, { ...choice, value: t });\n }}\n imageSupport={imageSupport}\n />\n {valuesMap[choice.value] && valuesMap[choice.value] > 1 && (\n <ErrorMessage>Value should be unique</ErrorMessage>\n )}\n </LikertValueHolder>\n </LikertLabelHolder>\n ))}\n </layout.ConfigLayout>\n );\n};\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n model.choices = model.choices.map((choice) => merge({}, choice));\n model.choices.splice(index, 1, choice);\n\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({ ...this.props.model, prompt });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({ ...this.props.model, teacherInstructions });\n };\n\n render() {\n return (\n <Design\n {...this.props}\n onChangeModel={this.props.onModelChanged}\n onChoiceChanged={this.onChoiceChanged}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n );\n }\n}\n\nexport default Main;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,mBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,iBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,gBAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,SAAA,GAAAX,OAAA;AAEA,MAAM;EAAEY,KAAK;EAAEC,MAAM;EAAEC;AAAM,CAAC,GAAGC,kBAAQ;AAEzC,MAAMC,YAAY,GAAG,IAAAC,cAAM,EAACC,wBAAc,CAAC,CAAC,CAAC;EAAEC;AAAM,CAAC,MAAM;EAC1DC,KAAK,EAAE,MAAM;EACbC,UAAU,EAAEF,KAAK,CAACG,OAAO,CAAC,CAAC,CAAC;EAC5BC,YAAY,EAAEJ,KAAK,CAACG,OAAO,CAAC,CAAC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;IACzE,CAAC;EAAA;EAED0C,MAAMA,CAAA,EAAG;IACP,oBACE3J,MAAA,CAAAiE,OAAA,CAAAC,aAAA,CAACkC,MAAM,MAAAwD,SAAA,CAAA3F,OAAA,MACD,IAAI,CAACR,KAAK;MACdE,aAAa,EAAE,IAAI,CAACF,KAAK,CAAC+F,cAAe;MACzCjD,eAAe,EAAE,IAAI,CAACA,eAAgB;MACtCE,eAAe,EAAE,IAAI,CAACA,eAAgB;MACtCC,4BAA4B,EAAE,IAAI,CAACA;IAA6B,EACjE,CAAC;EAEN;AACF;AAACmD,OAAA,CAAAX,IAAA,GAAAA,IAAA;AAAA,IAAAK,gBAAA,CAAAtF,OAAA,EAxCYiF,IAAI,eACI;EACjBxF,KAAK,EAAEoG,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClCC,gBAAgB,EAAEH,kBAAS,CAACI,IAAI;EAChCV,cAAc,EAAEM,kBAAS,CAACK,IAAI,CAACH,UAAU;EACzCxD,sBAAsB,EAAEsD,kBAAS,CAACK,IAAI,CAACH,UAAU;EACjD1D,YAAY,EAAEwD,kBAAS,CAACM,KAAK,CAAC;IAC5BC,GAAG,EAAEP,kBAAS,CAACK,IAAI,CAACH,UAAU;IAC9BM,MAAM,EAAER,kBAAS,CAACK,IAAI,CAACH;EACzB,CAAC;AACH,CAAC;AAAA,IAAAO,QAAA,GAAAV,OAAA,CAAA5F,OAAA,GAgCYiF,IAAI","ignoreList":[]}
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@pie-element/likert-configure",
3
+ "private": true,
4
+ "version": "3.1.3",
5
+ "description": "",
6
+ "main": "lib/index.js",
7
+ "module": "src/index.js",
8
+ "author": "",
9
+ "dependencies": {
10
+ "@emotion/react": "^11.14.0",
11
+ "@emotion/style": "^0.8.0",
12
+ "@mui/icons-material": "^7.3.4",
13
+ "@mui/material": "^7.3.4",
14
+ "@pie-framework/pie-configure-events": "^1.3.0",
15
+ "@pie-lib/config-ui": "13.0.7",
16
+ "@pie-lib/editable-html-tip-tap": "2.1.5",
17
+ "@pie-lib/render-ui": "6.1.2",
18
+ "debug": "^4.1.1",
19
+ "prop-types": "^15.8.1",
20
+ "react": "18.3.1",
21
+ "react-dom": "18.3.1"
22
+ },
23
+ "scripts": {
24
+ "test": "./node_modules/.bin/jest"
25
+ },
26
+ "license": "ISC"
27
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,90 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [3.0.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.2...@pie-element/likert-controller@3.0.3) (2026-05-21)
7
+
8
+ **Note:** Version bump only for package @pie-element/likert-controller
9
+
10
+ ## [3.0.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.2-next.0...@pie-element/likert-controller@3.0.2) (2026-05-21)
11
+
12
+ **Note:** Version bump only for package @pie-element/likert-controller
13
+
14
+ ## [3.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@3.0.0...@pie-element/likert-controller@3.0.1) (2026-04-28)
15
+
16
+ **Note:** Version bump only for package @pie-element/likert-controller
17
+
18
+ ## [1.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@1.1.1...@pie-element/likert-controller@1.2.1) (2025-10-16)
19
+
20
+ **Note:** Version bump only for package @pie-element/likert-controller
21
+
22
+ # [1.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@1.1.1...@pie-element/likert-controller@1.2.0) (2025-10-15)
23
+
24
+ **Note:** Version bump only for package @pie-element/likert-controller
25
+
26
+ ## [1.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@1.0.1...@pie-element/likert-controller@1.1.1) (2025-10-10)
27
+
28
+ **Note:** Version bump only for package @pie-element/likert-controller
29
+
30
+ # [1.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@1.0.0...@pie-element/likert-controller@1.1.0) (2025-10-07)
31
+
32
+ **Note:** Version bump only for package @pie-element/likert-controller
33
+
34
+ ## [1.0.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.1.2...@pie-element/likert-controller@1.0.1) (2025-10-02)
35
+
36
+ **Note:** Version bump only for package @pie-element/likert-controller
37
+
38
+ # [1.0.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.1.2...@pie-element/likert-controller@1.0.0) (2025-10-01)
39
+
40
+ **Note:** Version bump only for package @pie-element/likert-controller
41
+
42
+ ## [0.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.1.1...@pie-element/likert-controller@0.1.2) (2025-06-05)
43
+
44
+ ### Bug Fixes
45
+
46
+ - add validation for audio content PD-4123 ([f0ce3f1](https://github.com/pie-framework/pie-elements/commit/f0ce3f19a12fd4cfe2d2159ca4af801d866dc8a9))
47
+
48
+ ## [0.1.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.1.0...@pie-element/likert-controller@0.1.1) (2024-10-22)
49
+
50
+ **Note:** Version bump only for package @pie-element/likert-controller
51
+
52
+ # [0.1.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.15...@pie-element/likert-controller@0.1.0) (2024-03-28)
53
+
54
+ ### Features
55
+
56
+ - **likert:** add required fields functionality PD-3595 ([629eb63](https://github.com/pie-framework/pie-elements/commit/629eb633c074156286a47239c5a5d29e796b4c16))
57
+
58
+ ## [0.0.15](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.14...@pie-element/likert-controller@0.0.15) (2022-12-07)
59
+
60
+ **Note:** Version bump only for package @pie-element/likert-controller
61
+
62
+ ## [0.0.11](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.9...@pie-element/likert-controller@0.0.11) (2021-11-11)
63
+
64
+ **Note:** Version bump only for package @pie-element/likert-controller
65
+
66
+ ## [0.0.10](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.9...@pie-element/likert-controller@0.0.10) (2021-11-11)
67
+
68
+ **Note:** Version bump only for package @pie-element/likert-controller
69
+
70
+ ## [0.0.9](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.7...@pie-element/likert-controller@0.0.9) (2021-08-05)
71
+
72
+ ### Bug Fixes
73
+
74
+ - force bump ([5ea7295](https://github.com/pie-framework/pie-elements/commit/5ea7295e4755fbc492a76e7ec69e5fc35b196919))
75
+
76
+ ## [0.0.7](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.5...@pie-element/likert-controller@0.0.7) (2021-03-03)
77
+
78
+ **Note:** Version bump only for package @pie-element/likert-controller
79
+
80
+ ## [0.0.5](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.3...@pie-element/likert-controller@0.0.5) (2021-03-03)
81
+
82
+ **Note:** Version bump only for package @pie-element/likert-controller
83
+
84
+ ## [0.0.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/likert-controller@0.0.2...@pie-element/likert-controller@0.0.3) (2020-08-13)
85
+
86
+ **Note:** Version bump only for package @pie-element/likert-controller
87
+
88
+ ## 0.0.2 (2020-08-07)
89
+
90
+ **Note:** Version bump only for package @pie-element/likert-controller
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ choices: [],
9
+ likertOrientation: 'horizontal',
10
+ likertScale: 'likert3',
11
+ likertType: 'agreement',
12
+ prompt: '',
13
+ promptEnabled: true,
14
+ teacherInstructions: '',
15
+ teacherInstructionsEnabled: true
16
+ };
17
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","names":["choices","likertOrientation","likertScale","likertType","prompt","promptEnabled","teacherInstructions","teacherInstructionsEnabled"],"sources":["../src/defaults.js"],"sourcesContent":["export default {\n choices: [],\n likertOrientation: 'horizontal',\n likertScale: 'likert3',\n likertType: 'agreement',\n prompt: '',\n promptEnabled: true,\n teacherInstructions: '',\n teacherInstructionsEnabled: true,\n};\n"],"mappings":";;;;;;iCAAe;EACbA,OAAO,EAAE,EAAE;EACXC,iBAAiB,EAAE,YAAY;EAC/BC,WAAW,EAAE,SAAS;EACtBC,UAAU,EAAE,WAAW;EACvBC,MAAM,EAAE,EAAE;EACVC,aAAa,EAAE,IAAI;EACnBC,mBAAmB,EAAE,EAAE;EACvBC,0BAA0B,EAAE;AAC9B,CAAC","ignoreList":[]}