@khanacademy/perseus-editor 0.4.3 → 1.0.1
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/.eslintrc.js +6 -1
- package/CHANGELOG.md +38 -0
- package/dist/es/index.js +3 -9
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/editor.jsx +0 -4
- package/src/widgets/__stories__/radio-editor.stories.jsx +0 -1
- package/src/widgets/radio/editor.jsx +0 -2
package/dist/index.js
CHANGED
|
@@ -1476,15 +1476,11 @@ class Editor extends React__namespace.Component {
|
|
|
1476
1476
|
textareaWrapper = /*#__PURE__*/React__namespace.createElement("div", {
|
|
1477
1477
|
className: "perseus-textarea-pair"
|
|
1478
1478
|
}, completeTextarea);
|
|
1479
|
-
}
|
|
1480
|
-
// sync-start:widget-id-regex 447601219 services/static/javascript/perseus-all-package/util.js
|
|
1481
|
-
// sync-start:widget-id-regex 1400368396 content_internal/perseus_traversal.py
|
|
1482
|
-
|
|
1479
|
+
}
|
|
1483
1480
|
|
|
1484
1481
|
const contentWithoutWidgets = this.props.content.replace(/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g, "");
|
|
1485
1482
|
const noPrompt = contentWithoutWidgets.trim().length === 0;
|
|
1486
|
-
const noWidgets = !/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g.test(this.props.content);
|
|
1487
|
-
|
|
1483
|
+
const noWidgets = !/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g.test(this.props.content);
|
|
1488
1484
|
const warningStyle = {
|
|
1489
1485
|
borderTop: "none",
|
|
1490
1486
|
padding: 4,
|
|
@@ -14422,9 +14418,7 @@ class RadioEditor extends React__namespace.Component {
|
|
|
14422
14418
|
labelAlignment: "right",
|
|
14423
14419
|
countChoices: this.props.countChoices,
|
|
14424
14420
|
onChange: this.onCountChoicesChange
|
|
14425
|
-
}))), /*#__PURE__*/React__namespace.createElement(perseus.BaseRadio
|
|
14426
|
-
, {
|
|
14427
|
-
ref: "baseRadio",
|
|
14421
|
+
}))), /*#__PURE__*/React__namespace.createElement(perseus.BaseRadio, {
|
|
14428
14422
|
multipleSelect: this.props.multipleSelect,
|
|
14429
14423
|
countChoices: this.props.countChoices,
|
|
14430
14424
|
numCorrect: numCorrect,
|