@khanacademy/perseus-core 5.4.0 → 5.4.2

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.
@@ -1,3 +1,4 @@
1
- import type { NumericInputWidget } from "../../data-schema";
1
+ import type { NumericInputWidget, PerseusNumericInputSimplify } from "../../data-schema";
2
2
  import type { Parser } from "../parser-types";
3
+ export declare const parseSimplify: Parser<PerseusNumericInputSimplify>;
3
4
  export declare const parseNumericInputWidget: Parser<NumericInputWidget>;
@@ -1,2 +1,2 @@
1
- import type { PerseusAnswerArea } from "@khanacademy/perseus-core";
1
+ import type { PerseusAnswerArea } from "../../data-schema";
2
2
  export declare const parsePerseusAnswerArea: import("../parser-types").Parser<PerseusAnswerArea>;
@@ -1,6 +1,7 @@
1
1
  import type { PerseusRenderer } from "../data-schema";
2
2
  /**
3
- * Upgrades widget options and removes answerful data for all the widgets in a
4
- * Perseus item.
3
+ * Return a copy of a Perseus item with rubric data removed (ie answers)
4
+ *
5
+ * @param originalItem - the original, full Perseus item (which includes the rubric - aka answer data)
5
6
  */
6
7
  export default function splitPerseusItem(originalItem: PerseusRenderer): PerseusRenderer;
@@ -1,4 +1,4 @@
1
- import type { PerseusCategorizerWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusCategorizerWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusCategorizerWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusDropdownWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusDropdownWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusDropdownWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusExpressionWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusExpressionWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusExpressionWidgetOptions type
@@ -1,3 +1,3 @@
1
- import type { PerseusInteractiveGraphWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusInteractiveGraphWidgetOptions } from "../../data-schema";
2
2
  export type InteractiveGraphPublicWidgetOptions = Pick<PerseusInteractiveGraphWidgetOptions, "step" | "gridStep" | "snapStep" | "backgroundImage" | "markings" | "labels" | "showProtractor" | "showRuler" | "showTooltips" | "rulerLabel" | "rulerTicks" | "range" | "graph" | "lockedFigures" | "fullGraphAriaLabel" | "fullGraphAriaDescription">;
3
3
  export default function getInteractiveGraphPublicWidgetOptions(options: PerseusInteractiveGraphWidgetOptions): InteractiveGraphPublicWidgetOptions;
@@ -1,4 +1,4 @@
1
- import type { PerseusLabelImageMarker, PerseusLabelImageWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusLabelImageMarker, PerseusLabelImageWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusLabelImageWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusMatcherWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusMatcherWidgetOptions } from "../../data-schema";
2
2
  type MatcherInfo = {
3
3
  left: ReadonlyArray<string>;
4
4
  right: ReadonlyArray<string>;
@@ -1,4 +1,4 @@
1
- import type { PerseusMatrixWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusMatrixWidgetOptions } from "../../data-schema";
2
2
  type MatrixPublicWidgetOptions = Pick<PerseusMatrixWidgetOptions, "prefix" | "suffix" | "cursorPosition" | "matrixBoardSize" | "static">;
3
3
  export default function getMatrixPublicWidgetOptions(options: PerseusMatrixWidgetOptions): MatrixPublicWidgetOptions;
4
4
  export {};
@@ -1,4 +1,4 @@
1
- import type { PerseusNumericInputAnswer, PerseusNumericInputWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusNumericInputAnswer, PerseusNumericInputWidgetOptions } from "../../data-schema";
2
2
  type NumericInputAnswerPublicData = Pick<PerseusNumericInputAnswer, "answerForms" | "simplify" | "status">;
3
3
  /**
4
4
  * For details on the individual options, see the
@@ -1,4 +1,4 @@
1
- import type { PerseusOrdererWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusOrdererWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusOrdererWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusPlotterWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusPlotterWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusPlotterWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusRadioChoice, PerseusRadioWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusRadioChoice, PerseusRadioWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusRadioWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusSorterWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusSorterWidgetOptions } from "../../data-schema";
2
2
  /**
3
3
  * For details on the individual options, see the
4
4
  * PerseusSorterWidgetOptions type
@@ -1,4 +1,4 @@
1
- import type { PerseusTableWidgetOptions } from "@khanacademy/perseus-core";
1
+ import type { PerseusTableWidgetOptions } from "../../data-schema";
2
2
  type TablePublicWidgetOptions = Pick<PerseusTableWidgetOptions, "headers" | "rows" | "columns">;
3
3
  export default function getTablePublicWidgetOptions(options: PerseusTableWidgetOptions): TablePublicWidgetOptions;
4
4
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared Perseus infrastructure",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "5.4.0",
6
+ "version": "5.4.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -22,11 +22,13 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@khanacademy/kas": "0.5.0"
25
+ "@khanacademy/kas": "0.5.1",
26
+ "@khanacademy/perseus-utils": "0.0.2"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@khanacademy/wonder-stuff-core": "1.5.4",
29
- "underscore": "^1.4.4"
30
+ "underscore": "^1.4.4",
31
+ "perseus-build-settings": "0.5.1"
30
32
  },
31
33
  "peerDependencies": {
32
34
  "@khanacademy/wonder-stuff-core": "1.5.4",
@@ -1,9 +0,0 @@
1
- /**
2
- * Adds the given perseus library version information to the __perseus_debug__
3
- * object and ensures that the object is attached to `globalThis` (`window` in
4
- * browser environments).
5
- *
6
- * This allows each library to provide runtime version information to assist in
7
- * debugging in production environments.
8
- */
9
- export declare const addLibraryVersionToPerseusDebug: (libraryName: string, libraryVersion: string) => void;