@khanacademy/perseus-score 2.3.6 → 2.3.7
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 +1 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/widgets/categorizer/validate-categorizer.d.ts +1 -1
- package/dist/widgets/interactive-graph/score-interactive-graph.d.ts +1 -1
- package/package.json +7 -5
- package/dist/shared-utils/add-library-version-to-perseus-debug.d.ts +0 -9
package/dist/es/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import * as KAS from '@khanacademy/kas';
|
|
|
3
3
|
import { KhanMath, number, geometry, angles, coefficients } from '@khanacademy/kmath';
|
|
4
4
|
import { PerseusError, Errors, getDecimalSeparator, GrapherUtil, approximateDeepEqual, approximateEqual, deepClone, getMatrixSize, getWidgetIdsFromContent, getUpgradedWidgetOptions } from '@khanacademy/perseus-core';
|
|
5
5
|
import _ from 'underscore';
|
|
6
|
-
import { ErrorCodes as ErrorCodes$1 } from '@khanacademy/perseus-score';
|
|
7
6
|
|
|
8
7
|
const MISSING_PERCENT_ERROR = "MISSING_PERCENT_ERROR";
|
|
9
8
|
const NEEDS_TO_BE_SIMPLIFIED_ERROR = "NEEDS_TO_BE_SIMPLIFIED_ERROR";
|
|
@@ -743,7 +742,7 @@ function validateCategorizer(userInput, validationData) {
|
|
|
743
742
|
if (incomplete) {
|
|
744
743
|
return {
|
|
745
744
|
type: "invalid",
|
|
746
|
-
message: ErrorCodes
|
|
745
|
+
message: ErrorCodes.INVALID_SELECTION_ERROR
|
|
747
746
|
};
|
|
748
747
|
}
|
|
749
748
|
return null;
|