@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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "0.4.3",
6
+ "version": "1.0.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -21,9 +21,9 @@
21
21
  "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
22
22
  },
23
23
  "dependencies": {
24
- "@khanacademy/kas": "^0.2.6",
25
- "@khanacademy/kmath": "^0.0.7",
26
- "@khanacademy/perseus": "^0.4.3"
24
+ "@khanacademy/kas": "^0.2.7",
25
+ "@khanacademy/kmath": "^0.0.8",
26
+ "@khanacademy/perseus": "^1.0.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@khanacademy/wonder-blocks-button": "^2.11.5",
@@ -34,7 +34,7 @@
34
34
  "classnames": "^1.1.4",
35
35
  "create-react-class": "^15.6.3",
36
36
  "jquery": "^2.1.1",
37
- "perseus-build-settings": "^0.0.4",
37
+ "perseus-build-settings": "^0.0.5",
38
38
  "prop-types": "^15.6.1",
39
39
  "react": "16.14.0",
40
40
  "react-dom": "16.14.0",
package/src/editor.jsx CHANGED
@@ -1315,9 +1315,6 @@ class Editor extends React.Component<EditorProps, EditorState> {
1315
1315
  );
1316
1316
  }
1317
1317
 
1318
- // sync-start:widget-id-regex 1271666319 services/content-editing/perseus/translation/content_traversal.go
1319
- // sync-start:widget-id-regex 447601219 services/static/javascript/perseus-all-package/util.js
1320
- // sync-start:widget-id-regex 1400368396 content_internal/perseus_traversal.py
1321
1318
  const contentWithoutWidgets = this.props.content.replace(
1322
1319
  /\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g,
1323
1320
  "",
@@ -1326,7 +1323,6 @@ class Editor extends React.Component<EditorProps, EditorState> {
1326
1323
  const noWidgets = !/\[\[\u2603 (([a-z-]+) ([0-9]+))\]\]/g.test(
1327
1324
  this.props.content,
1328
1325
  );
1329
- // sync-end:widget-id-regex
1330
1326
 
1331
1327
  const warningStyle = {
1332
1328
  borderTop: "none",
@@ -87,7 +87,6 @@ class WithState extends React.Component<Empty, PerseusRadioWidgetOptions> {
87
87
  apiOptions: APIOptions = {
88
88
  satStyling: false,
89
89
  styling: {
90
- radioStyleVersion: "final",
91
90
  primaryProductColor: "red",
92
91
  },
93
92
  };
@@ -179,8 +179,6 @@ class RadioEditor extends React.Component<$FlowFixMe> {
179
179
  </div>
180
180
 
181
181
  <BaseRadio
182
- // eslint-disable-next-line react/no-string-refs
183
- ref="baseRadio"
184
182
  multipleSelect={this.props.multipleSelect}
185
183
  countChoices={this.props.countChoices}
186
184
  numCorrect={numCorrect}