@khanacademy/perseus-editor 2.6.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/article-editor.d.ts +1 -2
  3. package/dist/components/form-wrapped-text-field.d.ts +1 -10
  4. package/dist/components/graph-points-count-selector.d.ts +1 -1
  5. package/dist/es/index.js +414 -436
  6. package/dist/es/index.js.map +1 -1
  7. package/dist/index.js +411 -435
  8. package/dist/index.js.map +1 -1
  9. package/dist/widgets/input-number-editor.d.ts +1 -2
  10. package/dist/widgets/interactive-graph-editor.d.ts +48 -47
  11. package/dist/widgets/plotter-editor.d.ts +47 -23
  12. package/package.json +12 -12
  13. package/src/__stories__/editor.stories.tsx +3 -1
  14. package/src/__tests__/i18n.test.ts +1 -1
  15. package/src/article-editor.tsx +13 -14
  16. package/src/components/checkbox.tsx +2 -1
  17. package/src/components/dropdown-option.tsx +13 -12
  18. package/src/components/form-wrapped-text-field.tsx +5 -2
  19. package/src/components/graph-points-count-selector.tsx +3 -1
  20. package/src/components/graph-settings.tsx +1 -1
  21. package/src/components/hover-behavior.ts +2 -2
  22. package/src/components/json-editor.tsx +2 -2
  23. package/src/components/sortable.tsx +1 -1
  24. package/src/components/util.ts +1 -1
  25. package/src/components/widget-editor.tsx +8 -7
  26. package/src/diffs/__tests__/structured-item-diff.test.ts +8 -8
  27. package/src/diffs/renderer-diff.tsx +3 -3
  28. package/src/diffs/split-diff.ts +2 -2
  29. package/src/diffs/structured-item-diff.tsx +11 -10
  30. package/src/diffs/text-diff.tsx +1 -1
  31. package/src/diffs/widget-diff.tsx +2 -2
  32. package/src/editor-page.tsx +8 -8
  33. package/src/editor.tsx +37 -36
  34. package/src/hint-editor.tsx +28 -27
  35. package/src/i18n.ts +4 -4
  36. package/src/iframe-content-renderer.tsx +10 -10
  37. package/src/item-editor.tsx +4 -4
  38. package/src/katex-mhchem/parser.js +24 -24
  39. package/src/multirenderer-editor.tsx +11 -11
  40. package/src/widgets/__stories__/label-image-editor.stories.tsx +1 -0
  41. package/src/widgets/__stories__/radio-editor.stories.tsx +1 -0
  42. package/src/widgets/categorizer-editor.tsx +3 -3
  43. package/src/widgets/cs-program-editor.tsx +2 -2
  44. package/src/widgets/definition-editor.tsx +3 -2
  45. package/src/widgets/dropdown-editor.tsx +9 -8
  46. package/src/widgets/example-graphie-widget-editor.tsx +1 -1
  47. package/src/widgets/example-graphie-widget.tsx +2 -2
  48. package/src/widgets/example-widget-editor.tsx +2 -2
  49. package/src/widgets/example-widget.tsx +4 -3
  50. package/src/widgets/explanation-editor.tsx +4 -3
  51. package/src/widgets/expression-editor.tsx +9 -9
  52. package/src/widgets/graded-group-editor.tsx +7 -6
  53. package/src/widgets/graded-group-set-editor.tsx +3 -3
  54. package/src/widgets/grapher-editor.tsx +3 -2
  55. package/src/widgets/group-editor.tsx +4 -3
  56. package/src/widgets/iframe-editor.tsx +5 -4
  57. package/src/widgets/input-number-editor.tsx +6 -6
  58. package/src/widgets/interaction-editor.tsx +103 -102
  59. package/src/widgets/interactive-graph-editor.tsx +12 -8
  60. package/src/widgets/label-image/marker.tsx +2 -1
  61. package/src/widgets/label-image/question-markers.tsx +1 -1
  62. package/src/widgets/lights-puzzle-editor.tsx +5 -4
  63. package/src/widgets/matrix-editor.tsx +2 -2
  64. package/src/widgets/measurer-editor.tsx +7 -6
  65. package/src/widgets/molecule-editor.tsx +2 -2
  66. package/src/widgets/number-line-editor.tsx +2 -1
  67. package/src/widgets/numeric-input-editor.tsx +2 -2
  68. package/src/widgets/orderer-editor.tsx +3 -2
  69. package/src/widgets/passage-editor.tsx +3 -3
  70. package/src/widgets/passage-ref-editor.tsx +4 -3
  71. package/src/widgets/passage-ref-target-editor.tsx +1 -1
  72. package/src/widgets/plotter-editor.tsx +253 -243
  73. package/src/widgets/radio/editor.tsx +3 -3
  74. package/src/widgets/reaction-diagram-editor.tsx +5 -5
  75. package/src/widgets/sequence-editor.tsx +1 -1
  76. package/src/widgets/simple-markdown-tester-editor.tsx +4 -3
  77. package/src/widgets/simple-markdown-tester.tsx +2 -2
  78. package/src/widgets/simulator-editor.tsx +1 -1
  79. package/src/widgets/sorter-editor.tsx +2 -1
  80. package/src/widgets/table-editor.tsx +1 -1
  81. package/src/widgets/transformer-editor.tsx +10 -10
  82. package/src/widgets/unit-editor.tsx +5 -5
  83. package/tsconfig-build.tsbuildinfo +1 -1
  84. package/dist/all-editors.js.flow +0 -8
  85. package/dist/all-widgets.js.flow +0 -34
  86. package/dist/article-editor.js.flow +0 -72
  87. package/dist/components/blur-input.js.flow +0 -25
  88. package/dist/components/checkbox.js.flow +0 -26
  89. package/dist/components/device-framer.js.flow +0 -20
  90. package/dist/components/drag-target.js.flow +0 -8
  91. package/dist/components/dropdown-option.js.flow +0 -49
  92. package/dist/components/form-wrapped-text-field.js.flow +0 -45
  93. package/dist/components/graph-points-count-selector.js.flow +0 -12
  94. package/dist/components/graph-settings.js.flow +0 -8
  95. package/dist/components/graph-type-selector.js.flow +0 -12
  96. package/dist/components/hover-behavior.js.flow +0 -48
  97. package/dist/components/json-editor.js.flow +0 -8
  98. package/dist/components/link.js.flow +0 -50
  99. package/dist/components/section-control-button.js.flow +0 -25
  100. package/dist/components/segment-count-selector.js.flow +0 -11
  101. package/dist/components/simple-button.js.flow +0 -18
  102. package/dist/components/sortable.js.flow +0 -8
  103. package/dist/components/util.js.flow +0 -9
  104. package/dist/components/viewport-resizer.js.flow +0 -22
  105. package/dist/components/widget-editor.js.flow +0 -91
  106. package/dist/components/widget-select.js.flow +0 -16
  107. package/dist/diffs/article-diff.js.flow +0 -71
  108. package/dist/diffs/item-diff.js.flow +0 -41
  109. package/dist/diffs/renderer-diff.js.flow +0 -25
  110. package/dist/diffs/split-diff.js.flow +0 -8
  111. package/dist/diffs/string-array-diff.js.flow +0 -11
  112. package/dist/diffs/structured-item-diff.js.flow +0 -37
  113. package/dist/diffs/tags-diff.js.flow +0 -24
  114. package/dist/diffs/text-diff.js.flow +0 -21
  115. package/dist/diffs/widget-diff-performer.js.flow +0 -8
  116. package/dist/diffs/widget-diff.js.flow +0 -31
  117. package/dist/editor-page.js.flow +0 -72
  118. package/dist/editor.js.flow +0 -96
  119. package/dist/hint-editor.js.flow +0 -87
  120. package/dist/i18n.js.flow +0 -13
  121. package/dist/iframe-content-renderer.js.flow +0 -28
  122. package/dist/index.js.flow +0 -23
  123. package/dist/item-editor.js.flow +0 -46
  124. package/dist/item-extras-editor.js.flow +0 -23
  125. package/dist/katex-error-view.js.flow +0 -24
  126. package/dist/multirenderer-editor.js.flow +0 -46
  127. package/dist/stateful-article-editor.js.flow +0 -16
  128. package/dist/stateful-editor-page.js.flow +0 -8
  129. package/dist/testing-widgets.js.flow +0 -34
  130. package/dist/util/points.js.flow +0 -9
  131. package/dist/util/register-all-widgets-and-editors-for-testing.js.flow +0 -7
  132. package/dist/widgets/categorizer-editor.js.flow +0 -62
  133. package/dist/widgets/cs-program-editor.js.flow +0 -25
  134. package/dist/widgets/definition-editor.js.flow +0 -23
  135. package/dist/widgets/dropdown-editor.js.flow +0 -37
  136. package/dist/widgets/example-graphie-widget-editor.js.flow +0 -25
  137. package/dist/widgets/example-graphie-widget.js.flow +0 -102
  138. package/dist/widgets/example-widget-editor.js.flow +0 -26
  139. package/dist/widgets/example-widget.js.flow +0 -86
  140. package/dist/widgets/explanation-editor.js.flow +0 -27
  141. package/dist/widgets/expression-editor.js.flow +0 -43
  142. package/dist/widgets/graded-group-editor.js.flow +0 -68
  143. package/dist/widgets/graded-group-set-editor.js.flow +0 -66
  144. package/dist/widgets/grapher-editor.js.flow +0 -21
  145. package/dist/widgets/group-editor.js.flow +0 -64
  146. package/dist/widgets/iframe-editor.js.flow +0 -24
  147. package/dist/widgets/image-editor.js.flow +0 -8
  148. package/dist/widgets/input-number-editor.js.flow +0 -77
  149. package/dist/widgets/interaction/constraint-editor.js.flow +0 -35
  150. package/dist/widgets/interaction-editor.js.flow +0 -36
  151. package/dist/widgets/interactive-graph-editor.js.flow +0 -5803
  152. package/dist/widgets/label-image/answer-choices.js.flow +0 -16
  153. package/dist/widgets/label-image/behavior.js.flow +0 -17
  154. package/dist/widgets/label-image/marker.js.flow +0 -32
  155. package/dist/widgets/label-image/question-markers.js.flow +0 -23
  156. package/dist/widgets/label-image/select-image.js.flow +0 -13
  157. package/dist/widgets/label-image-editor.js.flow +0 -44
  158. package/dist/widgets/lights-puzzle-editor.js.flow +0 -34
  159. package/dist/widgets/matcher-editor.js.flow +0 -28
  160. package/dist/widgets/matrix-editor.js.flow +0 -26
  161. package/dist/widgets/measurer-editor.js.flow +0 -42
  162. package/dist/widgets/molecule-editor.js.flow +0 -23
  163. package/dist/widgets/number-line-editor.js.flow +0 -45
  164. package/dist/widgets/numeric-input-editor.js.flow +0 -8
  165. package/dist/widgets/orderer-editor.js.flow +0 -30
  166. package/dist/widgets/passage-editor.js.flow +0 -24
  167. package/dist/widgets/passage-ref-editor.js.flow +0 -17
  168. package/dist/widgets/passage-ref-target-editor.js.flow +0 -22
  169. package/dist/widgets/plotter-editor.js.flow +0 -53
  170. package/dist/widgets/radio/editor.js.flow +0 -81
  171. package/dist/widgets/reaction-diagram-editor.js.flow +0 -26
  172. package/dist/widgets/sequence-editor.js.flow +0 -73
  173. package/dist/widgets/simple-markdown-tester-editor.js.flow +0 -23
  174. package/dist/widgets/simple-markdown-tester.js.flow +0 -61
  175. package/dist/widgets/simulator-editor.js.flow +0 -26
  176. package/dist/widgets/sorter-editor.js.flow +0 -22
  177. package/dist/widgets/table-editor.js.flow +0 -24
  178. package/dist/widgets/transformer-editor.js.flow +0 -17
  179. package/dist/widgets/unit-editor.js.flow +0 -41
  180. package/dist/widgets/video-editor.js.flow +0 -25
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @khanacademy/ts-no-error-suppressions */
1
2
  /* eslint-disable @babel/no-invalid-this, react/no-unsafe, react/sort-comp */
2
3
  import {
3
4
  components,
@@ -70,7 +71,7 @@ class PointEditor extends React.Component<PointEditorProps> {
70
71
  buttonSets={[]}
71
72
  buttonsVisible="never"
72
73
  value={this.props.coordX}
73
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
74
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
74
75
  onChange={this.change("coordX")}
75
76
  />
76
77
  <TeX>,</TeX>{" "}
@@ -78,7 +79,7 @@ class PointEditor extends React.Component<PointEditorProps> {
78
79
  buttonSets={[]}
79
80
  buttonsVisible="never"
80
81
  value={this.props.coordY}
81
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
82
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
82
83
  onChange={this.change("coordY")}
83
84
  />
84
85
  <TeX>\Large)</TeX>
@@ -86,7 +87,7 @@ class PointEditor extends React.Component<PointEditorProps> {
86
87
  <div className="perseus-widget-row">
87
88
  <ColorPicker
88
89
  value={this.props.color}
89
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
90
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
90
91
  onChange={this.change("color")}
91
92
  />
92
93
  </div>
@@ -145,7 +146,7 @@ class LineEditor extends React.Component<LineEditorProps> {
145
146
  buttonSets={[]}
146
147
  buttonsVisible="never"
147
148
  value={this.props.startX}
148
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
149
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
149
150
  onChange={this.change("startX")}
150
151
  />
151
152
  <TeX>,</TeX>{" "}
@@ -153,7 +154,7 @@ class LineEditor extends React.Component<LineEditorProps> {
153
154
  buttonSets={[]}
154
155
  buttonsVisible="never"
155
156
  value={this.props.startY}
156
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
157
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
157
158
  onChange={this.change("startY")}
158
159
  />
159
160
  <TeX>\Large)</TeX>
@@ -164,7 +165,7 @@ class LineEditor extends React.Component<LineEditorProps> {
164
165
  buttonSets={[]}
165
166
  buttonsVisible="never"
166
167
  value={this.props.endX}
167
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
168
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
168
169
  onChange={this.change("endX")}
169
170
  />
170
171
  <TeX>,</TeX>{" "}
@@ -172,7 +173,7 @@ class LineEditor extends React.Component<LineEditorProps> {
172
173
  buttonSets={[]}
173
174
  buttonsVisible="never"
174
175
  value={this.props.endY}
175
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
176
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
176
177
  onChange={this.change("endY")}
177
178
  />
178
179
  <TeX>\Large)</TeX>
@@ -180,20 +181,20 @@ class LineEditor extends React.Component<LineEditorProps> {
180
181
  <div className="perseus-widget-row">
181
182
  <ColorPicker
182
183
  value={this.props.color}
183
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
184
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
184
185
  onChange={this.change("color")}
185
186
  />
186
187
  </div>
187
188
  <div className="perseus-widget-row">
188
189
  <DashPicker
189
190
  value={this.props.strokeDasharray}
190
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
191
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
191
192
  onChange={this.change("strokeDasharray")}
192
193
  />
193
194
  &nbsp; &nbsp;
194
195
  <ArrowPicker
195
196
  value={this.props.arrows}
196
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
197
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
197
198
  onChange={this.change("arrows")}
198
199
  />
199
200
  </div>
@@ -203,7 +204,7 @@ class LineEditor extends React.Component<LineEditorProps> {
203
204
  <NumberInput
204
205
  value={this.props.strokeWidth}
205
206
  placeholder={2}
206
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
207
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
207
208
  onChange={this.change("strokeWidth")}
208
209
  />
209
210
  </div>
@@ -281,7 +282,7 @@ class MovablePointEditor extends React.Component<MovablePointEditorProps> {
281
282
  onChange={this.change("varSubscript")}
282
283
  />
283
284
  </div>
284
- {/* @ts-expect-error [FEI-5003] - TS2769 - No overload matches this call. */}
285
+ {/* @ts-expect-error - TS2769 - No overload matches this call. */}
285
286
  <ConstraintEditor {...this.props} />
286
287
  </div>
287
288
  );
@@ -389,7 +390,7 @@ class MovableLineEditor extends React.Component<MovableLineEditorProps> {
389
390
  <div className="perseus-widget-row">
390
391
  All constraints are applied to the start point.
391
392
  </div>
392
- {/* @ts-expect-error [FEI-5003] - TS2769 - No overload matches this call. */}
393
+ {/* @ts-expect-error - TS2769 - No overload matches this call. */}
393
394
  <ConstraintEditor {...this.props} />
394
395
  </div>
395
396
  );
@@ -442,7 +443,7 @@ class FunctionEditor extends React.Component<FunctionEditorProps> {
442
443
  buttonSets={[]}
443
444
  buttonsVisible="never"
444
445
  value={this.props.value}
445
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
446
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
446
447
  onChange={this.change("value")}
447
448
  />
448
449
  </div>
@@ -452,7 +453,7 @@ class FunctionEditor extends React.Component<FunctionEditorProps> {
452
453
  buttonSets={[]}
453
454
  buttonsVisible="never"
454
455
  value={this.props.rangeMin}
455
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
456
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
456
457
  onChange={this.change("rangeMin")}
457
458
  />
458
459
  <TeX>,</TeX>{" "}
@@ -460,7 +461,7 @@ class FunctionEditor extends React.Component<FunctionEditorProps> {
460
461
  buttonSets={[]}
461
462
  buttonsVisible="never"
462
463
  value={this.props.rangeMax}
463
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
464
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
464
465
  onChange={this.change("rangeMax")}
465
466
  />
466
467
  <TeX>\Large)</TeX>
@@ -468,14 +469,14 @@ class FunctionEditor extends React.Component<FunctionEditorProps> {
468
469
  <div className="perseus-widget-row">
469
470
  <ColorPicker
470
471
  value={this.props.color}
471
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
472
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
472
473
  onChange={this.change("color")}
473
474
  />
474
475
  </div>
475
476
  <div className="perseus-widget-row">
476
477
  <DashPicker
477
478
  value={this.props.strokeDasharray}
478
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
479
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
479
480
  onChange={this.change("strokeDasharray")}
480
481
  />
481
482
  </div>
@@ -485,7 +486,7 @@ class FunctionEditor extends React.Component<FunctionEditorProps> {
485
486
  <NumberInput
486
487
  value={this.props.strokeWidth}
487
488
  placeholder={2}
488
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
489
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
489
490
  onChange={this.change("strokeWidth")}
490
491
  />
491
492
  </div>
@@ -543,7 +544,7 @@ class ParametricEditor extends React.Component<ParametricEditorProps> {
543
544
  buttonSets={[]}
544
545
  buttonsVisible="never"
545
546
  value={this.props.x}
546
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
547
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
547
548
  onChange={this.change("x")}
548
549
  />
549
550
  </div>
@@ -553,7 +554,7 @@ class ParametricEditor extends React.Component<ParametricEditorProps> {
553
554
  buttonSets={[]}
554
555
  buttonsVisible="never"
555
556
  value={this.props.y}
556
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
557
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
557
558
  onChange={this.change("y")}
558
559
  />
559
560
  </div>
@@ -563,7 +564,7 @@ class ParametricEditor extends React.Component<ParametricEditorProps> {
563
564
  buttonSets={[]}
564
565
  buttonsVisible="never"
565
566
  value={this.props.rangeMin}
566
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
567
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
567
568
  onChange={this.change("rangeMin")}
568
569
  />
569
570
  <TeX>,</TeX>{" "}
@@ -571,7 +572,7 @@ class ParametricEditor extends React.Component<ParametricEditorProps> {
571
572
  buttonSets={[]}
572
573
  buttonsVisible="never"
573
574
  value={this.props.rangeMax}
574
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
575
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
575
576
  onChange={this.change("rangeMax")}
576
577
  />
577
578
  <TeX>\Large)</TeX>
@@ -579,14 +580,14 @@ class ParametricEditor extends React.Component<ParametricEditorProps> {
579
580
  <div className="perseus-widget-row">
580
581
  <ColorPicker
581
582
  value={this.props.color}
582
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
583
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
583
584
  onChange={this.change("color")}
584
585
  />
585
586
  </div>
586
587
  <div className="perseus-widget-row">
587
588
  <DashPicker
588
589
  value={this.props.strokeDasharray}
589
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
590
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
590
591
  onChange={this.change("strokeDasharray")}
591
592
  />
592
593
  </div>
@@ -596,7 +597,7 @@ class ParametricEditor extends React.Component<ParametricEditorProps> {
596
597
  <NumberInput
597
598
  value={this.props.strokeWidth}
598
599
  placeholder={2}
599
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
600
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
600
601
  onChange={this.change("strokeWidth")}
601
602
  />
602
603
  </div>
@@ -646,7 +647,7 @@ class LabelEditor extends React.Component<LabelEditorProps> {
646
647
  <div className="perseus-widget-row">
647
648
  <TextInput
648
649
  value={this.props.label}
649
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
650
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
650
651
  onChange={this.change("label")}
651
652
  style={{
652
653
  width: "100%",
@@ -659,7 +660,7 @@ class LabelEditor extends React.Component<LabelEditorProps> {
659
660
  buttonSets={[]}
660
661
  buttonsVisible="never"
661
662
  value={this.props.coordX}
662
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
663
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
663
664
  onChange={this.change("coordX")}
664
665
  />
665
666
  <TeX>,</TeX>{" "}
@@ -667,7 +668,7 @@ class LabelEditor extends React.Component<LabelEditorProps> {
667
668
  buttonSets={[]}
668
669
  buttonsVisible="never"
669
670
  value={this.props.coordY}
670
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
671
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
671
672
  onChange={this.change("coordY")}
672
673
  />
673
674
  <TeX>\Large)</TeX>
@@ -675,7 +676,7 @@ class LabelEditor extends React.Component<LabelEditorProps> {
675
676
  <div className="perseus-widget-row">
676
677
  <ColorPicker
677
678
  value={this.props.color}
678
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
679
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
679
680
  onChange={this.change("color")}
680
681
  />
681
682
  </div>
@@ -728,7 +729,7 @@ class RectangleEditor extends React.Component<RectangleEditorProps> {
728
729
  buttonSets={[]}
729
730
  buttonsVisible="never"
730
731
  value={this.props.coordX}
731
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
732
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
732
733
  onChange={this.change("coordX")}
733
734
  />
734
735
  <TeX>,</TeX>{" "}
@@ -736,7 +737,7 @@ class RectangleEditor extends React.Component<RectangleEditorProps> {
736
737
  buttonSets={[]}
737
738
  buttonsVisible="never"
738
739
  value={this.props.coordY}
739
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
740
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
740
741
  onChange={this.change("coordY")}
741
742
  />
742
743
  <TeX>\Large)</TeX>
@@ -747,7 +748,7 @@ class RectangleEditor extends React.Component<RectangleEditorProps> {
747
748
  buttonSets={[]}
748
749
  buttonsVisible="never"
749
750
  value={this.props.width}
750
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
751
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
751
752
  onChange={this.change("width")}
752
753
  />
753
754
  </div>
@@ -757,7 +758,7 @@ class RectangleEditor extends React.Component<RectangleEditorProps> {
757
758
  buttonSets={[]}
758
759
  buttonsVisible="never"
759
760
  value={this.props.height}
760
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
761
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
761
762
  onChange={this.change("height")}
762
763
  />
763
764
  </div>
@@ -765,7 +766,7 @@ class RectangleEditor extends React.Component<RectangleEditorProps> {
765
766
  <ColorPicker
766
767
  value={this.props.color}
767
768
  lightColors={true}
768
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
769
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
769
770
  onChange={this.change("color")}
770
771
  />
771
772
  </div>
@@ -844,7 +845,7 @@ class InteractionEditor extends React.Component<
844
845
  _updateGraphProps: (arg1: any) => any = (newProps) => {
845
846
  // TODO(eater): GraphSettings should name this tickStep instead
846
847
  // of step. Grr..
847
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
848
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
848
849
  this.change({
849
850
  graph: _.extend(_.omit(newProps, "step"), {
850
851
  tickStep: newProps.step,
@@ -890,14 +891,14 @@ class InteractionEditor extends React.Component<
890
891
  if (elementType === "movable-point") {
891
892
  nextSubscript =
892
893
  _.max([_.max(this.state.usedVarSubscripts), -1]) + 1;
893
- // @ts-expect-error [FEI-5003] - TS2339 - Property 'varSubscript' does not exist on type '{}'.
894
+ // @ts-expect-error - TS2339 - Property 'varSubscript' does not exist on type '{}'.
894
895
  newElement.options.varSubscript = nextSubscript;
895
896
  } else if (elementType === "movable-line") {
896
897
  nextSubscript =
897
898
  _.max([_.max(this.state.usedVarSubscripts), -1]) + 1;
898
- // @ts-expect-error [FEI-5003] - TS2339 - Property 'startSubscript' does not exist on type '{}'.
899
+ // @ts-expect-error - TS2339 - Property 'startSubscript' does not exist on type '{}'.
899
900
  newElement.options.startSubscript = nextSubscript;
900
- // @ts-expect-error [FEI-5003] - TS2339 - Property 'endSubscript' does not exist on type '{}'.
901
+ // @ts-expect-error - TS2339 - Property 'endSubscript' does not exist on type '{}'.
901
902
  newElement.options.endSubscript = nextSubscript + 1;
902
903
  } else if (elementType === "function") {
903
904
  // TODO(eater): The 22nd function added will be {(x) since '{'
@@ -912,10 +913,10 @@ class InteractionEditor extends React.Component<
912
913
  "e".charCodeAt(0),
913
914
  ]) + 1,
914
915
  );
915
- // @ts-expect-error [FEI-5003] - TS2339 - Property 'funcName' does not exist on type '{}'.
916
+ // @ts-expect-error - TS2339 - Property 'funcName' does not exist on type '{}'.
916
917
  newElement.options.funcName = nextLetter;
917
918
  }
918
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
919
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
919
920
  this.change({
920
921
  elements: this.props.elements.concat(newElement),
921
922
  });
@@ -923,7 +924,7 @@ class InteractionEditor extends React.Component<
923
924
 
924
925
  _deleteElement: (arg1: number) => void = (index) => {
925
926
  const element = this.props.elements[index];
926
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
927
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
927
928
  this.change({elements: _.without(this.props.elements, element)});
928
929
  };
929
930
 
@@ -931,7 +932,7 @@ class InteractionEditor extends React.Component<
931
932
  const element = this.props.elements[index];
932
933
  const newElements = _.without(this.props.elements, element);
933
934
  newElements.splice(index - 1, 0, element);
934
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
935
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
935
936
  this.change({elements: newElements});
936
937
  };
937
938
 
@@ -939,7 +940,7 @@ class InteractionEditor extends React.Component<
939
940
  const element = this.props.elements[index];
940
941
  const newElements = _.without(this.props.elements, element);
941
942
  newElements.splice(index + 1, 0, element);
942
- // @ts-expect-error [FEI-5003] - TS2554 - Expected 3 arguments, but got 1.
943
+ // @ts-expect-error - TS2554 - Expected 3 arguments, but got 1.
943
944
  this.change({elements: newElements});
944
945
  };
945
946
 
@@ -952,7 +953,7 @@ class InteractionEditor extends React.Component<
952
953
 
953
954
  return (
954
955
  <div className="perseus-widget-interaction-editor">
955
- {/* @ts-expect-error [FEI-5003] - TS2322 - Type '{ children: (false | Element)[]; title: string; }' is not assignable to type 'Pick<Readonly<ElementContainerProps> & Readonly<{ children?: ReactNode; }>, "children" | "onDelete" | "onDown" | "onUp">'. */}
956
+ {/* @ts-expect-error - TS2322 - Type '{ children: (false | Element)[]; title: string; }' is not assignable to type 'Pick<Readonly<ElementContainerProps> & Readonly<{ children?: ReactNode; }>, "children" | "onDelete" | "onDown" | "onUp">'. */}
956
957
  <ElementContainer title="Grid settings">
957
958
  <GraphSettings
958
959
  editableSettings={["canvas", "graph"]}
@@ -992,23 +993,23 @@ class InteractionEditor extends React.Component<
992
993
  onUp={
993
994
  n === 0
994
995
  ? null
995
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
996
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
996
997
  this._moveElementUp.bind(this, n)
997
998
  }
998
999
  // eslint-disable-next-line react/jsx-no-bind
999
1000
  onDown={
1000
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1001
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1001
1002
  n === this.props.elements.length - 1
1002
1003
  ? null
1003
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1004
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1004
1005
  this._moveElementDown.bind(
1005
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1006
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1006
1007
  this,
1007
1008
  n,
1008
1009
  )
1009
1010
  }
1010
1011
  // eslint-disable-next-line react/jsx-no-bind
1011
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1012
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1012
1013
  onDelete={this._deleteElement.bind(this, n)}
1013
1014
  key={element.key}
1014
1015
  >
@@ -1017,7 +1018,7 @@ class InteractionEditor extends React.Component<
1017
1018
  onChange={(newProps) => {
1018
1019
  const elements = JSON.parse(
1019
1020
  JSON.stringify(
1020
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1021
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1021
1022
  this.props.elements,
1022
1023
  ),
1023
1024
  );
@@ -1025,7 +1026,7 @@ class InteractionEditor extends React.Component<
1025
1026
  elements[n].options,
1026
1027
  newProps,
1027
1028
  );
1028
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1029
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1029
1030
  this.change({elements: elements});
1030
1031
  }}
1031
1032
  />
@@ -1063,23 +1064,23 @@ class InteractionEditor extends React.Component<
1063
1064
  onUp={
1064
1065
  n === 0
1065
1066
  ? null
1066
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1067
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1067
1068
  this._moveElementUp.bind(this, n)
1068
1069
  }
1069
1070
  // eslint-disable-next-line react/jsx-no-bind
1070
1071
  onDown={
1071
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1072
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1072
1073
  n === this.props.elements.length - 1
1073
1074
  ? null
1074
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1075
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1075
1076
  this._moveElementDown.bind(
1076
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1077
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1077
1078
  this,
1078
1079
  n,
1079
1080
  )
1080
1081
  }
1081
1082
  // eslint-disable-next-line react/jsx-no-bind
1082
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1083
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1083
1084
  onDelete={this._deleteElement.bind(this, n)}
1084
1085
  key={element.key}
1085
1086
  >
@@ -1088,7 +1089,7 @@ class InteractionEditor extends React.Component<
1088
1089
  onChange={(newProps) => {
1089
1090
  const elements = JSON.parse(
1090
1091
  JSON.stringify(
1091
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1092
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1092
1093
  this.props.elements,
1093
1094
  ),
1094
1095
  );
@@ -1096,7 +1097,7 @@ class InteractionEditor extends React.Component<
1096
1097
  elements[n].options,
1097
1098
  newProps,
1098
1099
  );
1099
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1100
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1100
1101
  this.change({elements: elements});
1101
1102
  }}
1102
1103
  />
@@ -1122,23 +1123,23 @@ class InteractionEditor extends React.Component<
1122
1123
  onUp={
1123
1124
  n === 0
1124
1125
  ? null
1125
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1126
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1126
1127
  this._moveElementUp.bind(this, n)
1127
1128
  }
1128
1129
  // eslint-disable-next-line react/jsx-no-bind
1129
1130
  onDown={
1130
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1131
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1131
1132
  n === this.props.elements.length - 1
1132
1133
  ? null
1133
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1134
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1134
1135
  this._moveElementDown.bind(
1135
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1136
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1136
1137
  this,
1137
1138
  n,
1138
1139
  )
1139
1140
  }
1140
1141
  // eslint-disable-next-line react/jsx-no-bind
1141
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1142
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1142
1143
  onDelete={this._deleteElement.bind(this, n)}
1143
1144
  key={element.key}
1144
1145
  >
@@ -1147,7 +1148,7 @@ class InteractionEditor extends React.Component<
1147
1148
  onChange={(newProps) => {
1148
1149
  const elements = JSON.parse(
1149
1150
  JSON.stringify(
1150
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1151
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1151
1152
  this.props.elements,
1152
1153
  ),
1153
1154
  );
@@ -1155,7 +1156,7 @@ class InteractionEditor extends React.Component<
1155
1156
  elements[n].options,
1156
1157
  newProps,
1157
1158
  );
1158
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1159
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1159
1160
  this.change({elements: elements});
1160
1161
  }}
1161
1162
  />
@@ -1189,23 +1190,23 @@ class InteractionEditor extends React.Component<
1189
1190
  onUp={
1190
1191
  n === 0
1191
1192
  ? null
1192
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1193
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1193
1194
  this._moveElementUp.bind(this, n)
1194
1195
  }
1195
1196
  // eslint-disable-next-line react/jsx-no-bind
1196
1197
  onDown={
1197
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1198
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1198
1199
  n === this.props.elements.length - 1
1199
1200
  ? null
1200
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1201
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1201
1202
  this._moveElementDown.bind(
1202
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1203
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1203
1204
  this,
1204
1205
  n,
1205
1206
  )
1206
1207
  }
1207
1208
  // eslint-disable-next-line react/jsx-no-bind
1208
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1209
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1209
1210
  onDelete={this._deleteElement.bind(this, n)}
1210
1211
  key={element.key}
1211
1212
  >
@@ -1214,7 +1215,7 @@ class InteractionEditor extends React.Component<
1214
1215
  onChange={(newProps) => {
1215
1216
  const elements = JSON.parse(
1216
1217
  JSON.stringify(
1217
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1218
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1218
1219
  this.props.elements,
1219
1220
  ),
1220
1221
  );
@@ -1222,7 +1223,7 @@ class InteractionEditor extends React.Component<
1222
1223
  elements[n].options,
1223
1224
  newProps,
1224
1225
  );
1225
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1226
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1226
1227
  this.change({elements: elements});
1227
1228
  }}
1228
1229
  />
@@ -1246,22 +1247,22 @@ class InteractionEditor extends React.Component<
1246
1247
  onUp={
1247
1248
  n === 0
1248
1249
  ? null
1249
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1250
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1250
1251
  this._moveElementUp.bind(this, n)
1251
1252
  }
1252
1253
  // eslint-disable-next-line react/jsx-no-bind
1253
1254
  onDown={
1254
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1255
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1255
1256
  n === this.props.elements.length - 1
1256
1257
  ? null
1257
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1258
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1258
1259
  this._moveElementDown.bind(
1259
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1260
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1260
1261
  this,
1261
1262
  n,
1262
1263
  )
1263
1264
  }
1264
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1265
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1265
1266
  onDelete={this._deleteElement}
1266
1267
  key={element.key}
1267
1268
  >
@@ -1270,7 +1271,7 @@ class InteractionEditor extends React.Component<
1270
1271
  onChange={(newProps) => {
1271
1272
  const elements = JSON.parse(
1272
1273
  JSON.stringify(
1273
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1274
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1274
1275
  this.props.elements,
1275
1276
  ),
1276
1277
  );
@@ -1278,7 +1279,7 @@ class InteractionEditor extends React.Component<
1278
1279
  elements[n].options,
1279
1280
  newProps,
1280
1281
  );
1281
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1282
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1282
1283
  this.change({elements: elements});
1283
1284
  }}
1284
1285
  />
@@ -1293,22 +1294,22 @@ class InteractionEditor extends React.Component<
1293
1294
  onUp={
1294
1295
  n === 0
1295
1296
  ? null
1296
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1297
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1297
1298
  this._moveElementUp.bind(this, n)
1298
1299
  }
1299
1300
  // eslint-disable-next-line react/jsx-no-bind
1300
1301
  onDown={
1301
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1302
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1302
1303
  n === this.props.elements.length - 1
1303
1304
  ? null
1304
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1305
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1305
1306
  this._moveElementDown.bind(
1306
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1307
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1307
1308
  this,
1308
1309
  n,
1309
1310
  )
1310
1311
  }
1311
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1312
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1312
1313
  onDelete={this._deleteElement}
1313
1314
  key={element.key}
1314
1315
  >
@@ -1317,7 +1318,7 @@ class InteractionEditor extends React.Component<
1317
1318
  onChange={(newProps) => {
1318
1319
  const elements = JSON.parse(
1319
1320
  JSON.stringify(
1320
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1321
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1321
1322
  this.props.elements,
1322
1323
  ),
1323
1324
  );
@@ -1325,7 +1326,7 @@ class InteractionEditor extends React.Component<
1325
1326
  elements[n].options,
1326
1327
  newProps,
1327
1328
  );
1328
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1329
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1329
1330
  this.change({elements: elements});
1330
1331
  }}
1331
1332
  />
@@ -1349,22 +1350,22 @@ class InteractionEditor extends React.Component<
1349
1350
  onUp={
1350
1351
  n === 0
1351
1352
  ? null
1352
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1353
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1353
1354
  this._moveElementUp.bind(this, n)
1354
1355
  }
1355
1356
  // eslint-disable-next-line react/jsx-no-bind
1356
1357
  onDown={
1357
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1358
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1358
1359
  n === this.props.elements.length - 1
1359
1360
  ? null
1360
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1361
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1361
1362
  this._moveElementDown.bind(
1362
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1363
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1363
1364
  this,
1364
1365
  n,
1365
1366
  )
1366
1367
  }
1367
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1368
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1368
1369
  onDelete={this._deleteElement}
1369
1370
  key={element.key}
1370
1371
  >
@@ -1373,7 +1374,7 @@ class InteractionEditor extends React.Component<
1373
1374
  onChange={(newProps) => {
1374
1375
  const elements = JSON.parse(
1375
1376
  JSON.stringify(
1376
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1377
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1377
1378
  this.props.elements,
1378
1379
  ),
1379
1380
  );
@@ -1381,7 +1382,7 @@ class InteractionEditor extends React.Component<
1381
1382
  elements[n].options,
1382
1383
  newProps,
1383
1384
  );
1384
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1385
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1385
1386
  this.change({elements: elements});
1386
1387
  }}
1387
1388
  />
@@ -1413,22 +1414,22 @@ class InteractionEditor extends React.Component<
1413
1414
  onUp={
1414
1415
  n === 0
1415
1416
  ? null
1416
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1417
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation. | TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1417
1418
  this._moveElementUp.bind(this, n)
1418
1419
  }
1419
1420
  // eslint-disable-next-line react/jsx-no-bind
1420
1421
  onDown={
1421
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1422
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1422
1423
  n === this.props.elements.length - 1
1423
1424
  ? null
1424
- : // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1425
+ : // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1425
1426
  this._moveElementDown.bind(
1426
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1427
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1427
1428
  this,
1428
1429
  n,
1429
1430
  )
1430
1431
  }
1431
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1432
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1432
1433
  onDelete={this._deleteElement}
1433
1434
  key={element.key}
1434
1435
  >
@@ -1437,7 +1438,7 @@ class InteractionEditor extends React.Component<
1437
1438
  onChange={(newProps) => {
1438
1439
  const elements = JSON.parse(
1439
1440
  JSON.stringify(
1440
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1441
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1441
1442
  this.props.elements,
1442
1443
  ),
1443
1444
  );
@@ -1445,7 +1446,7 @@ class InteractionEditor extends React.Component<
1445
1446
  elements[n].options,
1446
1447
  newProps,
1447
1448
  );
1448
- // @ts-expect-error [FEI-5003] - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1449
+ // @ts-expect-error - TS2683 - 'this' implicitly has type 'any' because it does not have a type annotation.
1449
1450
  this.change({elements: elements});
1450
1451
  }}
1451
1452
  />
@@ -1456,7 +1457,7 @@ class InteractionEditor extends React.Component<
1456
1457
  this,
1457
1458
  )}
1458
1459
  <div className="perseus-widget-interaction-editor-select-element">
1459
- {/* @ts-expect-error [FEI-5003] - TS2322 - Type '(arg1: ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'ChangeEventHandler<HTMLSelectElement>'. */}
1460
+ {/* @ts-expect-error - TS2322 - Type '(arg1: ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'ChangeEventHandler<HTMLSelectElement>'. */}
1460
1461
  <select onChange={this._addNewElement}>
1461
1462
  <option value="">Add an element{"\u2026"}</option>
1462
1463
  <option disabled>--</option>