@khanacademy/perseus-editor 1.0.10 → 1.0.13
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/CHANGELOG.md +25 -0
- package/dist/es/index.js +2 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/editor.jsx +2 -2
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.13",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@khanacademy/kas": "^0.2.7",
|
|
25
25
|
"@khanacademy/kmath": "^0.0.8",
|
|
26
|
-
"@khanacademy/perseus": "^1.
|
|
26
|
+
"@khanacademy/perseus": "^1.4.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@khanacademy/wonder-blocks-button": "^
|
|
30
|
-
"@khanacademy/wonder-blocks-clickable": "^2.
|
|
29
|
+
"@khanacademy/wonder-blocks-button": "^3.0.13",
|
|
30
|
+
"@khanacademy/wonder-blocks-clickable": "^2.4.4",
|
|
31
31
|
"@khanacademy/wonder-blocks-color": "^1.1.20",
|
|
32
32
|
"@khanacademy/wonder-blocks-i18n": "^1.2.3",
|
|
33
33
|
"aphrodite": "^1.2.5",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"underscore": "^1.4.4"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@khanacademy/wonder-blocks-button": "^
|
|
45
|
-
"@khanacademy/wonder-blocks-clickable": "^2.
|
|
44
|
+
"@khanacademy/wonder-blocks-button": "^3.0.13",
|
|
45
|
+
"@khanacademy/wonder-blocks-clickable": "^2.4.4",
|
|
46
46
|
"@khanacademy/wonder-blocks-color": "^1.1.20",
|
|
47
47
|
"@khanacademy/wonder-blocks-i18n": "^1.2.3",
|
|
48
48
|
"aphrodite": "^1.2.5",
|
|
@@ -55,4 +55,4 @@
|
|
|
55
55
|
"underscore": "^1.4.4"
|
|
56
56
|
},
|
|
57
57
|
"keywords": []
|
|
58
|
-
}
|
|
58
|
+
}
|
package/src/editor.jsx
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
PerseusMarkdown,
|
|
11
11
|
Util,
|
|
12
12
|
Widgets,
|
|
13
|
-
|
|
13
|
+
WIDGET_PROP_DENYLIST,
|
|
14
14
|
} from "@khanacademy/perseus";
|
|
15
15
|
import $ from "jquery";
|
|
16
16
|
// eslint-disable-next-line import/no-unresolved
|
|
@@ -133,7 +133,7 @@ type WidgetEditorState = {|
|
|
|
133
133
|
const _upgradeWidgetInfo = (props: WidgetEditorProps): WidgetInfo => {
|
|
134
134
|
// We can't call serialize here because this.refs.widget
|
|
135
135
|
// doesn't exist before this component is mounted.
|
|
136
|
-
const filteredProps = _.omit(props,
|
|
136
|
+
const filteredProps = _.omit(props, WIDGET_PROP_DENYLIST);
|
|
137
137
|
return Widgets.upgradeWidgetInfoToLatestVersion(filteredProps);
|
|
138
138
|
};
|
|
139
139
|
|