@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/dist/index.js CHANGED
@@ -2994,6 +2994,17 @@ const ExpressionWithDependencies = /*#__PURE__*/React__namespace.forwardRef((pro
2994
2994
  analytics: deps.analytics
2995
2995
  }, props));
2996
2996
  });
2997
+
2998
+ // HACK: Propogate "static" methods onto our wrapper component.
2999
+ // In the future we should adjust client apps to not depend on these static
3000
+ // methods and instead adjust Peresus to provide these facilities through
3001
+ // instance methods on our Renderers.
3002
+ // @ts-expect-error - TS2339 - Property 'validate' does not exist on type
3003
+ ExpressionWithDependencies.validate = Expression.validate;
3004
+ // @ts-expect-error - TS2339 - Property 'validate' does not exist on type
3005
+ ExpressionWithDependencies.getUserInputFromProps = Expression.getUserInputFromProps;
3006
+ // @ts-expect-error - TS2339 - Property 'validate' does not exist on type
3007
+ ExpressionWithDependencies.getOneCorrectAnswerFromRubric = Expression.getOneCorrectAnswerFromRubric;
2997
3008
  var Expression$1 = {
2998
3009
  name: "expression",
2999
3010
  displayName: "Expression / Equation",