@khanacademy/perseus 10.0.0 → 10.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/CHANGELOG.md +9 -0
- package/dist/es/index.js +11 -0
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/__tests__/mock-asset-loading-widget.tsx +3 -2
- package/src/__tests__/widgets.test.ts +73 -0
- package/src/widgets/expression.tsx +13 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 10.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5f33560b: Revert type changes made in #694
|
|
8
|
+
- 0f95281c: Restore static methods on `Expression` widget component
|
|
9
|
+
- Updated dependencies [781551f9]
|
|
10
|
+
- @khanacademy/math-input@10.1.0
|
|
11
|
+
|
|
3
12
|
## 10.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
package/dist/es/index.js
CHANGED
|
@@ -2931,6 +2931,17 @@ const ExpressionWithDependencies = /*#__PURE__*/React.forwardRef((props, ref) =>
|
|
|
2931
2931
|
analytics: deps.analytics
|
|
2932
2932
|
}, props));
|
|
2933
2933
|
});
|
|
2934
|
+
|
|
2935
|
+
// HACK: Propogate "static" methods onto our wrapper component.
|
|
2936
|
+
// In the future we should adjust client apps to not depend on these static
|
|
2937
|
+
// methods and instead adjust Peresus to provide these facilities through
|
|
2938
|
+
// instance methods on our Renderers.
|
|
2939
|
+
// @ts-expect-error - TS2339 - Property 'validate' does not exist on type
|
|
2940
|
+
ExpressionWithDependencies.validate = Expression.validate;
|
|
2941
|
+
// @ts-expect-error - TS2339 - Property 'validate' does not exist on type
|
|
2942
|
+
ExpressionWithDependencies.getUserInputFromProps = Expression.getUserInputFromProps;
|
|
2943
|
+
// @ts-expect-error - TS2339 - Property 'validate' does not exist on type
|
|
2944
|
+
ExpressionWithDependencies.getOneCorrectAnswerFromRubric = Expression.getOneCorrectAnswerFromRubric;
|
|
2934
2945
|
var Expression$1 = {
|
|
2935
2946
|
name: "expression",
|
|
2936
2947
|
displayName: "Expression / Equation",
|