@khanacademy/perseus-editor 14.6.5 → 14.7.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/dist/es/index.js CHANGED
@@ -46,7 +46,7 @@ import arrowCounterClockwise from '@phosphor-icons/core/bold/arrow-counter-clock
46
46
 
47
47
  // This file is processed by a Rollup plugin (replace) to inject the production
48
48
  const libName = "@khanacademy/perseus-editor";
49
- const libVersion = "14.6.5";
49
+ const libVersion = "14.7.0";
50
50
  addLibraryVersionToPerseusDebug(libName, libVersion);
51
51
 
52
52
  function _extends() {
package/dist/index.js CHANGED
@@ -98,7 +98,7 @@ var arrowCounterClockwise__default = /*#__PURE__*/_interopDefaultLegacy(arrowCou
98
98
 
99
99
  // This file is processed by a Rollup plugin (replace) to inject the production
100
100
  const libName = "@khanacademy/perseus-editor";
101
- const libVersion = "14.6.5";
101
+ const libVersion = "14.7.0";
102
102
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
103
103
 
104
104
  function _extends() {
@@ -486,9 +486,7 @@ declare const InteractiveGraph: {
486
486
  areAngleGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle): boolean;
487
487
  arePointGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint): boolean;
488
488
  arePolygonGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
489
- areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean; /**
490
- * The background image to display in the graph area and its properties.
491
- */
489
+ areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
492
490
  _lineStroke: () => {
493
491
  "stroke-width"?: number | undefined;
494
492
  };
@@ -500,22 +498,15 @@ declare const InteractiveGraph: {
500
498
  removeLinearControls: () => void;
501
499
  addQuadraticControls: () => void;
502
500
  updateQuadratic: () => void;
503
- removeQuadraticControls: () => void;
501
+ removeQuadraticControls: () => void; /**
502
+ * Whether to show the protractor on the graph.
503
+ */
504
504
  addSinusoidControls: () => void;
505
505
  updateSinusoid: () => void;
506
506
  removeSinusoidControls: () => void;
507
507
  addCircleControls: () => void;
508
508
  removeCircleControls: () => void;
509
509
  addLinearSystemControls: () => void;
510
- /**
511
- * The current correct answer for the graph. Updated by this component
512
- * when the graph is changed.
513
- *
514
- * Note that the "Correct answer:" textbox is not an interactive
515
- * element. Instead, it is a representation of the correct answer based
516
- * on the state of the interactive graph previewed at the bottom of the
517
- * editor page.
518
- */
519
510
  removeLinearSystemControls: () => void;
520
511
  isCoordInTrash: (arg1: import("@khanacademy/perseus").Coord) => boolean;
521
512
  createPointForPointsType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
@@ -537,7 +528,6 @@ declare const InteractiveGraph: {
537
528
  removeAngleControls: () => void;
538
529
  toggleShowSides: () => void;
539
530
  getUserInput(): PerseusGraphType;
540
- simpleValidate(rubric: import("../../../../perseus/src/validation.types").PerseusInteractiveGraphRubric): import("@khanacademy/perseus").PerseusScore;
541
531
  focus: () => void;
542
532
  render(): React.ReactNode;
543
533
  setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
@@ -1092,7 +1082,6 @@ declare const InteractiveGraph: {
1092
1082
  }>;
1093
1083
  mafsRef: React.RefObject<import("../../../../perseus/src/widgets/interactive-graphs/stateful-mafs-graph").StatefulMafsGraphType>;
1094
1084
  getUserInput(): PerseusGraphType;
1095
- simpleValidate(rubric: import("../../../../perseus/src/validation.types").PerseusInteractiveGraphRubric): import("@khanacademy/perseus").PerseusScore;
1096
1085
  render(): React.JSX.Element;
1097
1086
  context: unknown;
1098
1087
  setState<K_1 extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
@@ -2310,9 +2299,7 @@ declare const InteractiveGraph: {
2310
2299
  areAngleGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeAngle): boolean;
2311
2300
  arePointGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePoint): boolean;
2312
2301
  arePolygonGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypePolygon): boolean;
2313
- areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean; /**
2314
- * The background image to display in the graph area and its properties.
2315
- */
2302
+ areSegmentGraphsEqual(prevGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment, currentGraph: import("../../../../perseus/src/perseus-types").PerseusGraphTypeSegment): boolean;
2316
2303
  _lineStroke: () => {
2317
2304
  "stroke-width"?: number | undefined;
2318
2305
  };
@@ -2324,22 +2311,15 @@ declare const InteractiveGraph: {
2324
2311
  removeLinearControls: () => void;
2325
2312
  addQuadraticControls: () => void;
2326
2313
  updateQuadratic: () => void;
2327
- removeQuadraticControls: () => void;
2314
+ removeQuadraticControls: () => void; /**
2315
+ * Whether to show the protractor on the graph.
2316
+ */
2328
2317
  addSinusoidControls: () => void;
2329
2318
  updateSinusoid: () => void;
2330
2319
  removeSinusoidControls: () => void;
2331
2320
  addCircleControls: () => void;
2332
2321
  removeCircleControls: () => void;
2333
2322
  addLinearSystemControls: () => void;
2334
- /**
2335
- * The current correct answer for the graph. Updated by this component
2336
- * when the graph is changed.
2337
- *
2338
- * Note that the "Correct answer:" textbox is not an interactive
2339
- * element. Instead, it is a representation of the correct answer based
2340
- * on the state of the interactive graph previewed at the bottom of the
2341
- * editor page.
2342
- */
2343
2323
  removeLinearSystemControls: () => void;
2344
2324
  isCoordInTrash: (arg1: import("@khanacademy/perseus").Coord) => boolean;
2345
2325
  createPointForPointsType: (arg1: import("@khanacademy/perseus").Coord, arg2: number) => any;
@@ -2361,7 +2341,6 @@ declare const InteractiveGraph: {
2361
2341
  removeAngleControls: () => void;
2362
2342
  toggleShowSides: () => void;
2363
2343
  getUserInput(): PerseusGraphType;
2364
- simpleValidate(rubric: import("../../../../perseus/src/validation.types").PerseusInteractiveGraphRubric): import("@khanacademy/perseus").PerseusScore;
2365
2344
  focus: () => void;
2366
2345
  render(): React.ReactNode;
2367
2346
  setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
@@ -2916,7 +2895,6 @@ declare const InteractiveGraph: {
2916
2895
  }>;
2917
2896
  mafsRef: React.RefObject<import("../../../../perseus/src/widgets/interactive-graphs/stateful-mafs-graph").StatefulMafsGraphType>;
2918
2897
  getUserInput(): PerseusGraphType;
2919
- simpleValidate(rubric: import("../../../../perseus/src/validation.types").PerseusInteractiveGraphRubric): import("@khanacademy/perseus").PerseusScore;
2920
2898
  render(): React.JSX.Element;
2921
2899
  context: unknown;
2922
2900
  setState<K_1 extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
@@ -5643,7 +5621,6 @@ declare const InteractiveGraph: {
5643
5621
  linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
5644
5622
  containerSizeClass: SizingUtils.SizeClass;
5645
5623
  }): string;
5646
- validate(userInput: PerseusGraphType, rubric: import("../../../../perseus/src/validation.types").PerseusInteractiveGraphRubric): import("@khanacademy/perseus").PerseusScore;
5647
5624
  getUserInputFromProps(props: PerseusInteractiveGraphWidgetOptions & {
5648
5625
  widgetId: string;
5649
5626
  alignment: string | null | undefined;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "14.6.5",
6
+ "version": "14.7.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -37,8 +37,8 @@
37
37
  "@khanacademy/kas": "^0.3.14",
38
38
  "@khanacademy/keypad-context": "^1.0.3",
39
39
  "@khanacademy/kmath": "^0.1.15",
40
- "@khanacademy/math-input": "^21.0.4",
41
- "@khanacademy/perseus": "^36.1.2",
40
+ "@khanacademy/math-input": "^21.1.0",
41
+ "@khanacademy/perseus": "^37.0.0",
42
42
  "@khanacademy/perseus-core": "1.5.2",
43
43
  "mafs": "^0.19.0"
44
44
  },