@khanacademy/perseus-score 2.3.4 → 2.3.6

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/score.d.ts CHANGED
@@ -8,6 +8,13 @@ export declare function scoreIsEmpty(score: PerseusScore): boolean;
8
8
  export declare function flattenScores(widgetScoreMap: {
9
9
  [widgetId: string]: PerseusScore;
10
10
  }): PerseusScore;
11
+ /**
12
+ * score a Perseus item
13
+ *
14
+ * @param perseusRenderData - the full answer data, includes the correct answer
15
+ * @param userInputMap - the user's input for each widget, mapped by ID
16
+ * @param locale - string locale for math parsing ("de" 1.000,00 vs "en" 1,000.00)
17
+ */
11
18
  export declare function scorePerseusItem(perseusRenderData: PerseusRenderer, userInputMap: UserInputMap, locale: string): PerseusScore;
12
19
  export declare function scoreWidgetsFunctional(widgets: PerseusWidgetsMap, widgetIds: ReadonlyArray<string>, userInputMap: UserInputMap, locale: string): {
13
20
  [widgetId: string]: PerseusScore;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus score",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "2.3.4",
6
+ "version": "2.3.6",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -23,15 +23,13 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@khanacademy/kas": "0.5.0",
26
- "@khanacademy/kmath": "0.4.4",
27
- "@khanacademy/perseus-core": "5.3.0"
26
+ "@khanacademy/kmath": "0.4.6",
27
+ "@khanacademy/perseus-core": "5.4.1"
28
28
  },
29
29
  "devDependencies": {
30
- "jquery": "^2.1.1",
31
30
  "underscore": "^1.4.4"
32
31
  },
33
32
  "peerDependencies": {
34
- "jquery": "^2.1.1",
35
33
  "underscore": "^1.4.4"
36
34
  },
37
35
  "keywords": [],