@khanacademy/perseus 81.0.1 → 82.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.
Files changed (51) hide show
  1. package/dist/es/index.css +1 -1
  2. package/dist/es/index.css.map +1 -1
  3. package/dist/es/index.js +91 -101
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/strings.js +1 -1
  6. package/dist/es/strings.js.map +1 -1
  7. package/dist/index.css +1 -1
  8. package/dist/index.css.map +1 -1
  9. package/dist/index.js +91 -101
  10. package/dist/index.js.map +1 -1
  11. package/dist/server-item-renderer.d.ts +1 -1
  12. package/dist/strings.d.ts +138 -41
  13. package/dist/strings.js +1 -1
  14. package/dist/strings.js.map +1 -1
  15. package/dist/testing/feature-flags-util.d.ts +0 -1
  16. package/dist/testing/item-renderer-hooks.d.ts +1 -1
  17. package/dist/widgets/dropdown/dropdown.d.ts +1 -1
  18. package/dist/widgets/expression/expression.d.ts +2 -2
  19. package/dist/widgets/free-response/free-response.d.ts +0 -2
  20. package/dist/widgets/image/image.d.ts +1 -1
  21. package/dist/widgets/interactive-graphs/graphs/components/build-point-aria-label.d.ts +7 -1
  22. package/dist/widgets/interactive-graphs/graphs/strings/absolute-value.d.ts +2 -2
  23. package/dist/widgets/interactive-graphs/graphs/strings/angle.d.ts +1 -1
  24. package/dist/widgets/interactive-graphs/graphs/strings/circle.d.ts +1 -1
  25. package/dist/widgets/interactive-graphs/graphs/strings/coord-quadrant.d.ts +1 -1
  26. package/dist/widgets/interactive-graphs/graphs/strings/exponential.d.ts +1 -1
  27. package/dist/widgets/interactive-graphs/graphs/strings/linear-system.d.ts +17 -2
  28. package/dist/widgets/interactive-graphs/graphs/strings/logarithm.d.ts +1 -1
  29. package/dist/widgets/interactive-graphs/graphs/strings/quadratic.d.ts +1 -1
  30. package/dist/widgets/interactive-graphs/graphs/strings/ray.d.ts +1 -1
  31. package/dist/widgets/interactive-graphs/graphs/strings/segment.d.ts +16 -2
  32. package/dist/widgets/interactive-graphs/graphs/strings/sinusoid.d.ts +1 -1
  33. package/dist/widgets/interactive-graphs/graphs/strings/tangent.d.ts +2 -2
  34. package/dist/widgets/interactive-graphs/interactive-graph.d.ts +1 -1
  35. package/dist/widgets/interactive-graphs/mafs-graph.d.ts +0 -2
  36. package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +0 -2
  37. package/dist/widgets/interactive-graphs/types.d.ts +11 -10
  38. package/dist/widgets/label-image/label-image.d.ts +1 -1
  39. package/dist/widgets/measurer/measurer.d.ts +0 -14
  40. package/dist/widgets/mock-widgets/mock-widget.d.ts +1 -1
  41. package/dist/widgets/numeric-input/numeric-input.class.d.ts +1 -1
  42. package/dist/widgets/numeric-input/numeric-input.d.ts +2 -2
  43. package/dist/widgets/plotter/plotter.d.ts +0 -2
  44. package/dist/widgets/table/table.d.ts +1 -1
  45. package/package.json +7 -7
  46. package/dist/widgets/interactive-graphs/graphs/strings/custom-point-label.d.ts +0 -22
  47. package/dist/widgets/molecule/index.d.ts +0 -1
  48. package/dist/widgets/molecule/molecule-drawing.d.ts +0 -5
  49. package/dist/widgets/molecule/molecule-layout.d.ts +0 -81
  50. package/dist/widgets/molecule/molecule.d.ts +0 -23
  51. package/dist/widgets/molecule/smiles-parser.d.ts +0 -19
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
- import type { Widget } from "../../types";
3
- import type { PerseusMoleculeRendererWidgetOptions } from "@khanacademy/perseus-core";
4
- type Props = {
5
- widgetId: PerseusMoleculeRendererWidgetOptions["widgetId"];
6
- smiles: PerseusMoleculeRendererWidgetOptions["smiles"];
7
- rotationAngle: PerseusMoleculeRendererWidgetOptions["rotationAngle"];
8
- };
9
- type DefaultProps = {
10
- rotationAngle: Props["rotationAngle"];
11
- };
12
- declare class MoleculeWidget extends React.Component<Props> implements Widget {
13
- static defaultProps: DefaultProps;
14
- isWidget: true;
15
- render(): React.ReactNode;
16
- }
17
- declare const _default: {
18
- name: string;
19
- displayName: string;
20
- hidden: true;
21
- widget: typeof MoleculeWidget;
22
- };
23
- export default _default;
@@ -1,19 +0,0 @@
1
- declare function ParseError(message: string): void;
2
- /**
3
- * Parse a SMILES string to an internal tree representation.
4
- *
5
- * Args:
6
- * smiles [string]: a string representing the molecule.
7
- *
8
- * Returns: the parse tree (see top-of file docstring for details).
9
- *
10
- * Throws:
11
- * ParseError: if the input is not valid SMILES or contains features not
12
- * yet implemented.
13
- */
14
- declare function parse(smiles: any, ctx: any): any;
15
- declare const _default: {
16
- parse: typeof parse;
17
- ParseError: typeof ParseError;
18
- };
19
- export default _default;