@khanacademy/perseus-score 4.0.1 → 4.1.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.
@@ -0,0 +1,16 @@
1
+ import type { UserInputMap } from "./validation.types";
2
+ import type { PerseusItem } from "@khanacademy/perseus-core";
3
+ /**
4
+ * Check the emptiness of DINER widgets (for the AX team):
5
+ * - Dropdown
6
+ * - InteractiveGraph
7
+ * - NumericInput
8
+ * - Expression
9
+ * - Radio
10
+ *
11
+ * @param {PerseusItem} itemData
12
+ * @param {UserInputMap} userInputMap
13
+ * @returns {boolean} true if there's an empty widget, otherwise false
14
+ */
15
+ declare function hasEmptyDINERWidgets(itemData: PerseusItem, userInputMap: UserInputMap): boolean;
16
+ export default hasEmptyDINERWidgets;
package/dist/index.d.ts CHANGED
@@ -32,5 +32,6 @@ export { default as validateTable } from "./widgets/table/validate-table";
32
32
  export { default as scoreInputNumber, inputNumberAnswerTypes, } from "./widgets/input-number/score-input-number";
33
33
  export { scorePerseusItem, scoreWidgetsFunctional, flattenScores } from "./score";
34
34
  export { emptyWidgetsFunctional } from "./validate";
35
+ export { default as hasEmptyDINERWidgets } from "./has-empty-diner-widgets";
35
36
  export type { PerseusMockWidgetRubric, PerseusMockWidgetUserInput, } from "./widgets/mock-widget/mock-widget-validation.types";
36
37
  export * from "./widgets/widget-registry";