@khanacademy/perseus-core 5.4.1 → 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.
- package/dist/es/index.js +63 -105
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +65 -106
- package/dist/index.js.map +1 -1
- package/dist/parse-perseus-json/perseus-parsers/perseus-answer-area.d.ts +1 -1
- package/dist/widgets/categorizer/categorizer-util.d.ts +1 -1
- package/dist/widgets/dropdown/dropdown-util.d.ts +1 -1
- package/dist/widgets/expression/expression-util.d.ts +1 -1
- package/dist/widgets/interactive-graph/interactive-graph-util.d.ts +1 -1
- package/dist/widgets/label-image/label-image-util.d.ts +1 -1
- package/dist/widgets/matcher/matcher-util.d.ts +1 -1
- package/dist/widgets/matrix/matrix-util.d.ts +1 -1
- package/dist/widgets/numeric-input/numeric-input-util.d.ts +1 -1
- package/dist/widgets/orderer/orderer-util.d.ts +1 -1
- package/dist/widgets/plotter/plotter-util.d.ts +1 -1
- package/dist/widgets/radio/radio-util.d.ts +1 -1
- package/dist/widgets/sorter/sorter-util.d.ts +1 -1
- package/dist/widgets/table/table-util.d.ts +1 -1
- package/package.json +5 -3
- package/dist/shared-utils/add-library-version-to-perseus-debug.d.ts +0 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PerseusAnswerArea } from "
|
|
1
|
+
import type { PerseusAnswerArea } from "../../data-schema";
|
|
2
2
|
export declare const parsePerseusAnswerArea: import("../parser-types").Parser<PerseusAnswerArea>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { PerseusInteractiveGraphWidgetOptions } from "
|
|
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 "
|
|
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 { PerseusMatrixWidgetOptions } from "
|
|
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 "
|
|
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 { PerseusRadioChoice, PerseusRadioWidgetOptions } from "
|
|
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 { PerseusTableWidgetOptions } from "
|
|
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.
|
|
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.
|
|
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;
|