@khanacademy/perseus-editor 0.4.3 → 1.0.0
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 +29 -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/.eslintrc.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* eslint-disable import/no-commonjs */
|
|
2
|
+
const path = require("path");
|
|
3
|
+
|
|
2
4
|
module.exports = {
|
|
3
5
|
rules: {
|
|
4
|
-
"import/no-extraneous-dependencies":
|
|
6
|
+
"import/no-extraneous-dependencies": [
|
|
7
|
+
"error",
|
|
8
|
+
{packageDir: [__dirname, path.join(__dirname, "../../")]},
|
|
9
|
+
],
|
|
5
10
|
},
|
|
6
11
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @khanacademy/perseus-editor
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- f9e0cda6: Change API shape: remove radioStyleVersion, add primaryProductColor to styling
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 28170809: refactors base-radio to be a functional component
|
|
12
|
+
- f567f660: Update the eslint config to look at both the package.json for the package and the one from the root
|
|
13
|
+
- Updated dependencies [2a3ac714]
|
|
14
|
+
- Updated dependencies [28170809]
|
|
15
|
+
- Updated dependencies [ea104d1c]
|
|
16
|
+
- Updated dependencies [8c6c60f5]
|
|
17
|
+
- Updated dependencies [80e2cafc]
|
|
18
|
+
- Updated dependencies [f567f660]
|
|
19
|
+
- Updated dependencies [e8a60745]
|
|
20
|
+
- Updated dependencies [61a7084e]
|
|
21
|
+
- Updated dependencies [16eccaea]
|
|
22
|
+
- Updated dependencies [eeaa9010]
|
|
23
|
+
- Updated dependencies [d4d2b3a6]
|
|
24
|
+
- Updated dependencies [46859806]
|
|
25
|
+
- Updated dependencies [f9e0cda6]
|
|
26
|
+
- Updated dependencies [f5682ad6]
|
|
27
|
+
- Updated dependencies [61a7084e]
|
|
28
|
+
- @khanacademy/perseus@1.0.0
|
|
29
|
+
- @khanacademy/kas@0.2.7
|
|
30
|
+
- @khanacademy/kmath@0.0.8
|
|
31
|
+
|
|
3
32
|
## 0.4.3
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
|
@@ -1504,15 +1504,11 @@ class Editor extends React.Component {
|
|
|
1504
1504
|
textareaWrapper = /*#__PURE__*/React.createElement("div", {
|
|
1505
1505
|
className: "perseus-textarea-pair"
|
|
1506
1506
|
}, completeTextarea);
|
|
1507
|
-
}
|
|
1508
|
-
// sync-start:widget-id-regex 447601219 services/static/javascript/perseus-all-package/util.js
|
|
1509
|
-
// sync-start:widget-id-regex 1400368396 content_internal/perseus_traversal.py
|
|
1510
|
-
|
|
1507
|
+
}
|
|
1511
1508
|
|
|
1512
1509
|
var contentWithoutWidgets = this.props.content.replace(/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g, "");
|
|
1513
1510
|
var noPrompt = contentWithoutWidgets.trim().length === 0;
|
|
1514
|
-
var noWidgets = !/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g.test(this.props.content);
|
|
1515
|
-
|
|
1511
|
+
var noWidgets = !/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g.test(this.props.content);
|
|
1516
1512
|
var warningStyle = {
|
|
1517
1513
|
borderTop: "none",
|
|
1518
1514
|
padding: 4,
|
|
@@ -14450,9 +14446,7 @@ class RadioEditor extends React.Component {
|
|
|
14450
14446
|
labelAlignment: "right",
|
|
14451
14447
|
countChoices: this.props.countChoices,
|
|
14452
14448
|
onChange: this.onCountChoicesChange
|
|
14453
|
-
}))), /*#__PURE__*/React.createElement(BaseRadio
|
|
14454
|
-
, {
|
|
14455
|
-
ref: "baseRadio",
|
|
14449
|
+
}))), /*#__PURE__*/React.createElement(BaseRadio, {
|
|
14456
14450
|
multipleSelect: this.props.multipleSelect,
|
|
14457
14451
|
countChoices: this.props.countChoices,
|
|
14458
14452
|
numCorrect: numCorrect,
|