@pie-element/math-inline 7.26.1-next.0 → 7.26.1-next.7

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/print.js CHANGED
@@ -8138,7 +8138,9 @@ class SimpleQuestionBlockRaw extends React$2.Component {
8138
8138
  model: PropTypes$1.object.isRequired,
8139
8139
  emptyResponse: PropTypes$1.bool,
8140
8140
  session: PropTypes$1.object.isRequired,
8141
- showCorrect: PropTypes$1.bool
8141
+ showCorrect: PropTypes$1.bool,
8142
+ onSubFieldFocus: PropTypes$1.func.isRequired,
8143
+ showKeypad: PropTypes$1.bool.isRequired
8142
8144
  };
8143
8145
  }
8144
8146
  constructor(props) {
@@ -8146,17 +8148,8 @@ class SimpleQuestionBlockRaw extends React$2.Component {
8146
8148
  SimpleQuestionBlockRaw.prototype.__init.call(this);
8147
8149
  SimpleQuestionBlockRaw.prototype.__init2.call(this);
8148
8150
  SimpleQuestionBlockRaw.prototype.__init3.call(this);
8149
- this.state = {
8150
- showKeypad: true
8151
- };
8152
8151
  this.mathToolBarId = `math-toolbar-${new Date().getTime()}`;
8153
8152
  }
8154
- componentDidMount() {
8155
- window.addEventListener('click', this.handleClick);
8156
- }
8157
- componentWillUnmount() {
8158
- window.removeEventListener('click', this.handleClick);
8159
- }
8160
8153
  __init() {
8161
8154
  this.mathToolBarContainsTarget = e => document.getElementById(this.mathToolBarId).contains(e.target);
8162
8155
  }
@@ -8172,12 +8165,13 @@ class SimpleQuestionBlockRaw extends React$2.Component {
8172
8165
  };
8173
8166
  }
8174
8167
  __init3() {
8175
- this.onFocus = () => this.setState({
8176
- showKeypad: true
8177
- });
8168
+ this.onFocus = () => {
8169
+ const {onSubFieldFocus} = this.props;
8170
+ onSubFieldFocus(this.mathToolBarId);
8171
+ };
8178
8172
  }
8179
8173
  render() {
8180
- const {classes, model, showCorrect, session, emptyResponse, onSimpleResponseChange} = this.props;
8174
+ const {classes, model, showCorrect, session, emptyResponse, onSimpleResponseChange, showKeypad} = this.props;
8181
8175
  const {config, disabled, correctness} = model || ({});
8182
8176
  if (!config) {
8183
8177
  return;
@@ -8186,10 +8180,11 @@ class SimpleQuestionBlockRaw extends React$2.Component {
8186
8180
  const {responses, equationEditor} = config;
8187
8181
  return React$2.createElement('div', {
8188
8182
  className: classes.expression,
8183
+ 'data-keypad': true,
8189
8184
  __self: this,
8190
8185
  __source: {
8191
8186
  fileName: _jsxFileName$1,
8192
- lineNumber: 62
8187
+ lineNumber: 57
8193
8188
  }
8194
8189
  }, showCorrect || disabled ? React$2.createElement('div', {
8195
8190
  className: cx$1(classes.static, {
@@ -8199,21 +8194,21 @@ class SimpleQuestionBlockRaw extends React$2.Component {
8199
8194
  __self: this,
8200
8195
  __source: {
8201
8196
  fileName: _jsxFileName$1,
8202
- lineNumber: 64
8197
+ lineNumber: 59
8203
8198
  }
8204
8199
  }, React$2.createElement(mq$1.Static, {
8205
8200
  latex: showCorrect ? responses && responses.length && responses[0].answer : session.response || '',
8206
8201
  __self: this,
8207
8202
  __source: {
8208
8203
  fileName: _jsxFileName$1,
8209
- lineNumber: 70
8204
+ lineNumber: 65
8210
8205
  }
8211
8206
  })) : React$2.createElement('div', {
8212
8207
  id: this.mathToolBarId,
8213
8208
  __self: this,
8214
8209
  __source: {
8215
8210
  fileName: _jsxFileName$1,
8216
- lineNumber: 75
8211
+ lineNumber: 70
8217
8212
  }
8218
8213
  }, React$2.createElement(MathToolbar, {
8219
8214
  classNames: {
@@ -8225,12 +8220,12 @@ class SimpleQuestionBlockRaw extends React$2.Component {
8225
8220
  onDone: () => {},
8226
8221
  onFocus: this.onFocus,
8227
8222
  controlledKeypad: true,
8228
- showKeypad: this.state.showKeypad,
8223
+ showKeypad: showKeypad,
8229
8224
  hideDoneButton: true,
8230
8225
  __self: this,
8231
8226
  __source: {
8232
8227
  fileName: _jsxFileName$1,
8233
- lineNumber: 76
8228
+ lineNumber: 71
8234
8229
  }
8235
8230
  })));
8236
8231
  }
@@ -11614,6 +11609,9 @@ class Main extends React$1.Component {
11614
11609
  Main.prototype.__init11.call(this);
11615
11610
  Main.prototype.__init12.call(this);
11616
11611
  Main.prototype.__init13.call(this);
11612
+ Main.prototype.__init14.call(this);
11613
+ Main.prototype.__init15.call(this);
11614
+ Main.prototype.__init16.call(this);
11617
11615
  const answers = {};
11618
11616
  if (props.model.config && props.model.config.expression) {
11619
11617
  let answerBlocks = 1;
@@ -11630,7 +11628,8 @@ class Main extends React$1.Component {
11630
11628
  answers
11631
11629
  },
11632
11630
  activeAnswerBlock: '',
11633
- showCorrect: this.props.model.config.alwaysShowCorrect || false
11631
+ showCorrect: this.props.model.config.alwaysShowCorrect || false,
11632
+ tooltipContainerRef: React$1.createRef()
11634
11633
  };
11635
11634
  }
11636
11635
  UNSAFE_componentWillMount() {
@@ -11737,8 +11736,13 @@ class Main extends React$1.Component {
11737
11736
  this.updateAria();
11738
11737
  setTimeout(() => renderMath$1(this.root), 100);
11739
11738
  }
11740
- componentDidUpdate() {
11739
+ componentDidUpdate(prevProps, prevState) {
11741
11740
  this.handleAnswerBlockDomUpdate();
11741
+ const prevResponseType = _optionalChain([prevProps, 'access', _7 => _7.model, 'optionalAccess', _8 => _8.config, 'optionalAccess', _9 => _9.responseType]);
11742
+ const currentResponseType = _optionalChain([this, 'access', _10 => _10.props, 'access', _11 => _11.model, 'optionalAccess', _12 => _12.config, 'optionalAccess', _13 => _13.responseType]);
11743
+ if (prevResponseType !== currentResponseType) {
11744
+ this.updateAria();
11745
+ }
11742
11746
  }
11743
11747
  __init2() {
11744
11748
  this.updateAria = () => {
@@ -11757,7 +11761,7 @@ class Main extends React$1.Component {
11757
11761
  instructionsElement = document.createElement('span');
11758
11762
  instructionsElement.id = instructionsId;
11759
11763
  instructionsElement.className = classes.srOnly;
11760
- instructionsElement.textContent = 'This field automatically displays a math keypad. Both keypad and keyboard input are accepted, and keyboard entry accepts LaTeX markup.';
11764
+ instructionsElement.textContent = 'This field supports both keypad and keyboard input. Use the keyboard to access and interact with the on-screen math keypad, which accepts LaTeX markup. Use the down arrow key to open the keypad and navigate its buttons. Use the escape key to close the keypad and return to the input field.';
11761
11765
  parent.insertBefore(instructionsElement, elem);
11762
11766
  }
11763
11767
  elem.setAttribute('aria-describedby', instructionsId);
@@ -11767,9 +11771,64 @@ class Main extends React$1.Component {
11767
11771
  };
11768
11772
  }
11769
11773
  __init3() {
11770
- this.onDone = () => {};
11774
+ this.focusFirstKeypadElement = () => {
11775
+ setTimeout(() => {
11776
+ const keypadElement = document.querySelector('[data-keypad]');
11777
+ if (keypadElement) {
11778
+ const firstButton = keypadElement.querySelector("button, [role='button']");
11779
+ if (firstButton) {
11780
+ firstButton.focus();
11781
+ }
11782
+ }
11783
+ }, 0);
11784
+ };
11771
11785
  }
11772
11786
  __init4() {
11787
+ this.handleKeyDown = (event, id) => {
11788
+ const isAnswerInputFocused = document.activeElement.getAttribute('aria-label') === 'Enter answer.';
11789
+ const isClickOrTouchEvent = event.type === 'click' || event.type === 'touchstart';
11790
+ if (isAnswerInputFocused && (event.key === 'ArrowDown' || isClickOrTouchEvent)) {
11791
+ this.setState({
11792
+ activeAnswerBlock: id
11793
+ }, () => {
11794
+ if (event.key === 'ArrowDown') {
11795
+ this.focusFirstKeypadElement();
11796
+ }
11797
+ });
11798
+ }
11799
+ if (!isAnswerInputFocused && isClickOrTouchEvent || event.key === 'Escape') {
11800
+ this.setState({
11801
+ activeAnswerBlock: ''
11802
+ });
11803
+ }
11804
+ };
11805
+ }
11806
+ __init5() {
11807
+ this.onSubFieldFocus = id => {
11808
+ const handleEvent = event => {
11809
+ this.handleKeyDown(event, id);
11810
+ };
11811
+ document.addEventListener('keydown', handleEvent);
11812
+ document.addEventListener('click', handleEvent);
11813
+ document.addEventListener('touchstart', handleEvent);
11814
+ };
11815
+ }
11816
+ __init6() {
11817
+ this.cleanupKeyDownListener = () => {
11818
+ document.removeEventListener('keydown', this.handleEvent);
11819
+ document.removeEventListener('click', this.handleEvent);
11820
+ document.removeEventListener('touchstart', this.handleEvent);
11821
+ };
11822
+ }
11823
+ componentWillUnmount() {
11824
+ if (this.cleanupKeyDownListener) {
11825
+ this.cleanupKeyDownListener();
11826
+ }
11827
+ }
11828
+ __init7() {
11829
+ this.onDone = () => {};
11830
+ }
11831
+ __init8() {
11773
11832
  this.onSimpleResponseChange = response => {
11774
11833
  this.setState(state => ({
11775
11834
  session: {
@@ -11779,14 +11838,7 @@ class Main extends React$1.Component {
11779
11838
  }), this.callOnSessionChange);
11780
11839
  };
11781
11840
  }
11782
- __init5() {
11783
- this.onSubFieldFocus = id => {
11784
- this.setState({
11785
- activeAnswerBlock: id
11786
- });
11787
- };
11788
- }
11789
- __init6() {
11841
+ __init9() {
11790
11842
  this.toNodeData = data => {
11791
11843
  if (!data) {
11792
11844
  return;
@@ -11811,12 +11863,12 @@ class Main extends React$1.Component {
11811
11863
  }
11812
11864
  };
11813
11865
  }
11814
- __init7() {
11866
+ __init10() {
11815
11867
  this.setInput = input => {
11816
11868
  this.input = input;
11817
11869
  };
11818
11870
  }
11819
- __init8() {
11871
+ __init11() {
11820
11872
  this.onClick = data => {
11821
11873
  const c = this.toNodeData(data);
11822
11874
  if (c.type === 'clear') {
@@ -11837,7 +11889,7 @@ class Main extends React$1.Component {
11837
11889
  this.input.focus();
11838
11890
  };
11839
11891
  }
11840
- __init9() {
11892
+ __init12() {
11841
11893
  this.callOnSessionChange = () => {
11842
11894
  const {onSessionChange} = this.props;
11843
11895
  if (onSessionChange) {
@@ -11845,14 +11897,14 @@ class Main extends React$1.Component {
11845
11897
  }
11846
11898
  };
11847
11899
  }
11848
- __init10() {
11900
+ __init13() {
11849
11901
  this.toggleShowCorrect = show => {
11850
11902
  this.setState({
11851
11903
  showCorrect: show
11852
11904
  }, this.handleAnswerBlockDomUpdate);
11853
11905
  };
11854
11906
  }
11855
- __init11() {
11907
+ __init14() {
11856
11908
  this.subFieldChanged = (name, subfieldValue) => {
11857
11909
  updateSpans();
11858
11910
  if (name) {
@@ -11871,7 +11923,7 @@ class Main extends React$1.Component {
11871
11923
  }
11872
11924
  };
11873
11925
  }
11874
- __init12() {
11926
+ __init15() {
11875
11927
  this.getFieldName = (changeField, fields) => {
11876
11928
  const {answers} = this.state.session;
11877
11929
  if (Object.keys(answers || ({})).length) {
@@ -11883,7 +11935,7 @@ class Main extends React$1.Component {
11883
11935
  }
11884
11936
  };
11885
11937
  }
11886
- __init13() {
11938
+ __init16() {
11887
11939
  this.onBlur = e => {
11888
11940
  const {relatedTarget, currentTarget} = e || ({});
11889
11941
  function getParentWithRoleTooltip(element, depth = 0) {
@@ -11897,7 +11949,7 @@ class Main extends React$1.Component {
11897
11949
  }
11898
11950
  function getDeepChildDataKeypad(element, depth = 0) {
11899
11951
  if (!element || depth >= 4) return null;
11900
- const child = _optionalChain([element, 'optionalAccess', _7 => _7.children, 'optionalAccess', _8 => _8[0]]);
11952
+ const child = _optionalChain([element, 'optionalAccess', _14 => _14.children, 'optionalAccess', _15 => _15[0]]);
11901
11953
  if (!child) return null;
11902
11954
  if (child.attributes && child.attributes['data-keypad']) {
11903
11955
  return child;
@@ -11906,7 +11958,7 @@ class Main extends React$1.Component {
11906
11958
  }
11907
11959
  const parentWithTooltipRole = getParentWithRoleTooltip(relatedTarget);
11908
11960
  const childWithDataKeypad = parentWithTooltipRole ? getDeepChildDataKeypad(parentWithTooltipRole) : null;
11909
- if (!relatedTarget || !currentTarget || !_optionalChain([childWithDataKeypad, 'optionalAccess', _9 => _9.attributes, 'access', _10 => _10['data-keypad']])) {
11961
+ if (!relatedTarget || !currentTarget || !_optionalChain([childWithDataKeypad, 'optionalAccess', _16 => _16.attributes, 'access', _17 => _17['data-keypad']])) {
11910
11962
  this.setState({
11911
11963
  activeAnswerBlock: ''
11912
11964
  });
@@ -11926,7 +11978,7 @@ class Main extends React$1.Component {
11926
11978
  }
11927
11979
  render() {
11928
11980
  const {model, classes} = this.props;
11929
- const {activeAnswerBlock, showCorrect, session} = this.state;
11981
+ const {activeAnswerBlock, showCorrect, session, tooltipContainerRef} = this.state;
11930
11982
  const {config, correctness, disabled, view, teacherInstructions, rationale, feedback, animationsDisabled, printMode, alwaysShowCorrect, language} = model || ({});
11931
11983
  if (!config) {
11932
11984
  return null;
@@ -11946,7 +11998,7 @@ class Main extends React$1.Component {
11946
11998
  __self: this,
11947
11999
  __source: {
11948
12000
  fileName: _jsxFileName,
11949
- lineNumber: 512
12001
+ lineNumber: 569
11950
12002
  }
11951
12003
  }, React$1.createElement(mq.Static, {
11952
12004
  className: classes.static,
@@ -11960,7 +12012,7 @@ class Main extends React$1.Component {
11960
12012
  __self: this,
11961
12013
  __source: {
11962
12014
  fileName: _jsxFileName,
11963
- lineNumber: 513
12015
+ lineNumber: 570
11964
12016
  }
11965
12017
  }));
11966
12018
  const midContent = React$1.createElement('div', {
@@ -11968,14 +12020,14 @@ class Main extends React$1.Component {
11968
12020
  __self: this,
11969
12021
  __source: {
11970
12022
  fileName: _jsxFileName,
11971
- lineNumber: 527
12023
+ lineNumber: 584
11972
12024
  }
11973
12025
  }, mode === 'gather' && React$1.createElement('h2', {
11974
12026
  className: classes.srOnly,
11975
12027
  __self: this,
11976
12028
  __source: {
11977
12029
  fileName: _jsxFileName,
11978
- lineNumber: 528
12030
+ lineNumber: 585
11979
12031
  }
11980
12032
  }, "Math Equation Response Question"), viewMode && teacherInstructions && hasText(teacherInstructions) && (!animationsDisabled ? React$1.createElement(Collapsible, {
11981
12033
  className: classes.collapsible,
@@ -11986,7 +12038,7 @@ class Main extends React$1.Component {
11986
12038
  __self: this,
11987
12039
  __source: {
11988
12040
  fileName: _jsxFileName,
11989
- lineNumber: 534
12041
+ lineNumber: 591
11990
12042
  }
11991
12043
  }, React$1.createElement('div', {
11992
12044
  dangerouslySetInnerHTML: {
@@ -11995,7 +12047,7 @@ class Main extends React$1.Component {
11995
12047
  __self: this,
11996
12048
  __source: {
11997
12049
  fileName: _jsxFileName,
11998
- lineNumber: 538
12050
+ lineNumber: 595
11999
12051
  }
12000
12052
  })) : React$1.createElement('div', {
12001
12053
  dangerouslySetInnerHTML: {
@@ -12004,28 +12056,28 @@ class Main extends React$1.Component {
12004
12056
  __self: this,
12005
12057
  __source: {
12006
12058
  fileName: _jsxFileName,
12007
- lineNumber: 541
12059
+ lineNumber: 598
12008
12060
  }
12009
12061
  })), prompt && React$1.createElement('div', {
12010
12062
  className: classes.promptContainer,
12011
12063
  __self: this,
12012
12064
  __source: {
12013
12065
  fileName: _jsxFileName,
12014
- lineNumber: 545
12066
+ lineNumber: 602
12015
12067
  }
12016
12068
  }, React$1.createElement(PreviewPrompt, {
12017
12069
  prompt: prompt,
12018
12070
  __self: this,
12019
12071
  __source: {
12020
12072
  fileName: _jsxFileName,
12021
- lineNumber: 546
12073
+ lineNumber: 603
12022
12074
  }
12023
12075
  })), studentPrintMode ? printView : React$1.createElement(Readable, {
12024
12076
  false: true,
12025
12077
  __self: this,
12026
12078
  __source: {
12027
12079
  fileName: _jsxFileName,
12028
- lineNumber: 553
12080
+ lineNumber: 610
12029
12081
  }
12030
12082
  }, React$1.createElement('div', {
12031
12083
  className: classes.inputAndKeypadContainer,
@@ -12033,7 +12085,7 @@ class Main extends React$1.Component {
12033
12085
  __self: this,
12034
12086
  __source: {
12035
12087
  fileName: _jsxFileName,
12036
- lineNumber: 554
12088
+ lineNumber: 611
12037
12089
  }
12038
12090
  }, responseType === ResponseTypes.simple && React$1.createElement(SimpleQuestionBlock, {
12039
12091
  onSimpleResponseChange: this.onSimpleResponseChange,
@@ -12041,12 +12093,15 @@ class Main extends React$1.Component {
12041
12093
  emptyResponse: emptyResponse,
12042
12094
  model: model,
12043
12095
  session: session,
12096
+ onSubFieldFocus: this.onSubFieldFocus,
12097
+ showKeypad: !!activeAnswerBlock,
12044
12098
  __self: this,
12045
12099
  __source: {
12046
12100
  fileName: _jsxFileName,
12047
- lineNumber: 556
12101
+ lineNumber: 613
12048
12102
  }
12049
12103
  }), responseType === ResponseTypes.advanced && React$1.createElement('div', {
12104
+ ref: tooltipContainerRef,
12050
12105
  className: cx(classes.expression, {
12051
12106
  [classes.incorrect]: !emptyResponse && !correct && !showCorrect,
12052
12107
  [classes.correct]: !emptyResponse && (correct || showCorrect),
@@ -12057,7 +12112,7 @@ class Main extends React$1.Component {
12057
12112
  __self: this,
12058
12113
  __source: {
12059
12114
  fileName: _jsxFileName,
12060
- lineNumber: 566
12115
+ lineNumber: 625
12061
12116
  }
12062
12117
  }, React$1.createElement(Tooltip, {
12063
12118
  ref: ref => this.setTooltipRef(ref),
@@ -12068,6 +12123,9 @@ class Main extends React$1.Component {
12068
12123
  tooltip: classes.keypadTooltip,
12069
12124
  popper: classes.keypadTooltipPopper
12070
12125
  },
12126
+ PopperProps: {
12127
+ container: _optionalChain([tooltipContainerRef, 'optionalAccess', _18 => _18.current]) || undefined
12128
+ },
12071
12129
  title: Object.keys(session.answers).map(answerId => answerId === activeAnswerBlock && !(showCorrect || disabled) && React$1.createElement('div', {
12072
12130
  'data-keypad': true,
12073
12131
  key: answerId,
@@ -12078,7 +12136,7 @@ class Main extends React$1.Component {
12078
12136
  __self: this,
12079
12137
  __source: {
12080
12138
  fileName: _jsxFileName,
12081
- lineNumber: 587
12139
+ lineNumber: 650
12082
12140
  }
12083
12141
  }, React$1.createElement(HorizontalKeypad, {
12084
12142
  additionalKeys: additionalKeys,
@@ -12087,13 +12145,13 @@ class Main extends React$1.Component {
12087
12145
  __self: this,
12088
12146
  __source: {
12089
12147
  fileName: _jsxFileName,
12090
- lineNumber: 596
12148
+ lineNumber: 659
12091
12149
  }
12092
12150
  })) || null),
12093
12151
  __self: this,
12094
12152
  __source: {
12095
12153
  fileName: _jsxFileName,
12096
- lineNumber: 575
12154
+ lineNumber: 635
12097
12155
  }
12098
12156
  }, React$1.createElement(mq.Static, {
12099
12157
  className: classes.static,
@@ -12107,7 +12165,7 @@ class Main extends React$1.Component {
12107
12165
  __self: this,
12108
12166
  __source: {
12109
12167
  fileName: _jsxFileName,
12110
- lineNumber: 606
12168
+ lineNumber: 669
12111
12169
  }
12112
12170
  }))))), viewMode && displayNote && React$1.createElement('div', {
12113
12171
  className: classes.note,
@@ -12117,7 +12175,7 @@ class Main extends React$1.Component {
12117
12175
  __self: this,
12118
12176
  __source: {
12119
12177
  fileName: _jsxFileName,
12120
- lineNumber: 624
12178
+ lineNumber: 687
12121
12179
  }
12122
12180
  }), viewMode && rationale && hasText(rationale) && (!animationsDisabled ? React$1.createElement(Collapsible, {
12123
12181
  labels: {
@@ -12127,7 +12185,7 @@ class Main extends React$1.Component {
12127
12185
  __self: this,
12128
12186
  __source: {
12129
12187
  fileName: _jsxFileName,
12130
- lineNumber: 631
12188
+ lineNumber: 694
12131
12189
  }
12132
12190
  }, React$1.createElement('div', {
12133
12191
  dangerouslySetInnerHTML: {
@@ -12136,7 +12194,7 @@ class Main extends React$1.Component {
12136
12194
  __self: this,
12137
12195
  __source: {
12138
12196
  fileName: _jsxFileName,
12139
- lineNumber: 632
12197
+ lineNumber: 695
12140
12198
  }
12141
12199
  })) : React$1.createElement('div', {
12142
12200
  dangerouslySetInnerHTML: {
@@ -12145,7 +12203,7 @@ class Main extends React$1.Component {
12145
12203
  __self: this,
12146
12204
  __source: {
12147
12205
  fileName: _jsxFileName,
12148
- lineNumber: 635
12206
+ lineNumber: 698
12149
12207
  }
12150
12208
  })));
12151
12209
  if (tooltipModeEnabled && (showCorrectAnswerToggle || teacherInstructions && hasText(teacherInstructions) || rationale && hasText(rationale) || feedback)) {
@@ -12160,14 +12218,14 @@ class Main extends React$1.Component {
12160
12218
  __self: this,
12161
12219
  __source: {
12162
12220
  fileName: _jsxFileName,
12163
- lineNumber: 656
12221
+ lineNumber: 719
12164
12222
  }
12165
12223
  }, React$1.createElement('div', {
12166
12224
  className: classes.main,
12167
12225
  __self: this,
12168
12226
  __source: {
12169
12227
  fileName: _jsxFileName,
12170
- lineNumber: 657
12228
+ lineNumber: 720
12171
12229
  }
12172
12230
  }, showCorrectAnswerToggle && React$1.createElement(CorrectAnswerToggle, {
12173
12231
  language: language,
@@ -12178,7 +12236,7 @@ class Main extends React$1.Component {
12178
12236
  __self: this,
12179
12237
  __source: {
12180
12238
  fileName: _jsxFileName,
12181
- lineNumber: 659
12239
+ lineNumber: 722
12182
12240
  }
12183
12241
  })), teacherInstructions && hasText(teacherInstructions) && React$1.createElement(Collapsible, {
12184
12242
  className: classes.collapsible,
@@ -12190,14 +12248,14 @@ class Main extends React$1.Component {
12190
12248
  __self: this,
12191
12249
  __source: {
12192
12250
  fileName: _jsxFileName,
12193
- lineNumber: 670
12251
+ lineNumber: 733
12194
12252
  }
12195
12253
  }, React$1.createElement(PreviewPrompt, {
12196
12254
  prompt: teacherInstructions,
12197
12255
  __self: this,
12198
12256
  __source: {
12199
12257
  fileName: _jsxFileName,
12200
- lineNumber: 678
12258
+ lineNumber: 741
12201
12259
  }
12202
12260
  })), displayNote && hasText(note) && React$1.createElement(Collapsible, {
12203
12261
  className: classes.collapsible,
@@ -12213,14 +12271,14 @@ class Main extends React$1.Component {
12213
12271
  __self: this,
12214
12272
  __source: {
12215
12273
  fileName: _jsxFileName,
12216
- lineNumber: 682
12274
+ lineNumber: 745
12217
12275
  }
12218
12276
  }, React$1.createElement(PreviewPrompt, {
12219
12277
  prompt: note,
12220
12278
  __self: this,
12221
12279
  __source: {
12222
12280
  fileName: _jsxFileName,
12223
- lineNumber: 690
12281
+ lineNumber: 753
12224
12282
  }
12225
12283
  })), rationale && hasText(rationale) && React$1.createElement(Collapsible, {
12226
12284
  className: classes.collapsible,
@@ -12232,14 +12290,14 @@ class Main extends React$1.Component {
12232
12290
  __self: this,
12233
12291
  __source: {
12234
12292
  fileName: _jsxFileName,
12235
- lineNumber: 695
12293
+ lineNumber: 758
12236
12294
  }
12237
12295
  }, React$1.createElement(PreviewPrompt, {
12238
12296
  prompt: rationale,
12239
12297
  __self: this,
12240
12298
  __source: {
12241
12299
  fileName: _jsxFileName,
12242
- lineNumber: 703
12300
+ lineNumber: 766
12243
12301
  }
12244
12302
  })), feedback && React$1.createElement(Feedback, {
12245
12303
  correctness: correctness.correctness,
@@ -12247,13 +12305,13 @@ class Main extends React$1.Component {
12247
12305
  __self: this,
12248
12306
  __source: {
12249
12307
  fileName: _jsxFileName,
12250
- lineNumber: 707
12308
+ lineNumber: 770
12251
12309
  }
12252
12310
  })),
12253
12311
  __self: this,
12254
12312
  __source: {
12255
12313
  fileName: _jsxFileName,
12256
- lineNumber: 648
12314
+ lineNumber: 711
12257
12315
  }
12258
12316
  }, React$1.createElement('div', {
12259
12317
  className: classes.mainContainer,
@@ -12261,7 +12319,7 @@ class Main extends React$1.Component {
12261
12319
  __self: this,
12262
12320
  __source: {
12263
12321
  fileName: _jsxFileName,
12264
- lineNumber: 711
12322
+ lineNumber: 774
12265
12323
  }
12266
12324
  }, midContent));
12267
12325
  }
@@ -12271,7 +12329,7 @@ class Main extends React$1.Component {
12271
12329
  __self: this,
12272
12330
  __source: {
12273
12331
  fileName: _jsxFileName,
12274
- lineNumber: 719
12332
+ lineNumber: 782
12275
12333
  }
12276
12334
  }, midContent);
12277
12335
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "7.26.1-next.0+38ced5340",
7
+ "version": "7.26.1-next.7+9d14615fc",
8
8
  "main": "lib/index.js",
9
9
  "description": "",
10
10
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "author": "",
26
26
  "license": "ISC",
27
- "gitHead": "38ced5340848ae14e27c36cf6d0a30eecebda77a",
27
+ "gitHead": "9d14615fc9d273d061c33e8cc55850f8671226a1",
28
28
  "module": "src/index.js",
29
29
  "exports": {
30
30
  ".": "./src/index.js",