@khanacademy/perseus-core 25.0.0 → 26.0.1

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.
@@ -3,20 +3,6 @@
3
3
  * or screen, based on the widgets it contains.
4
4
  */
5
5
  import type { PerseusItem } from "./data-schema";
6
- /**
7
- * Returns a list of widget types that cause a given Perseus item to require
8
- * the use of a screen or mouse.
9
- *
10
- * For now we'll just check the `accessible` field on each of the widgets
11
- * in the item data, but in the future we may specify accessibility on
12
- * each widget with higher granularity.
13
- *
14
- * @deprecated This function returns a list of widget _types_ that violate our
15
- * accessibility requirements which is not very accurate given that some
16
- * instances _could_ be accessible and some not based on their widget options.
17
- * In most cases, you should use {@link isItemAccessible} instead.
18
- */
19
- export declare function violatingWidgets(itemData: PerseusItem): Array<string>;
20
6
  /**
21
7
  * Returns true if the given Perseus item is accessible (i.e., does not contain
22
8
  * any widgets that violate our accessibility requirements).
@@ -311,8 +311,19 @@ export type WidgetOptions<Type extends string, Options extends Record<string, an
311
311
  */
312
312
  static?: boolean;
313
313
  /**
314
- * Whether a widget is scored. Usually true except for IFrame widgets (deprecated).
314
+ * Whether a widget is scored.
315
315
  * Default: true
316
+ *
317
+ * The behavior depends on how the widget decides to implement it.
318
+ * For example, Interactive Graph will render an ungraded graph
319
+ * that is still interactive that learners can use to visualize
320
+ * math.
321
+ *
322
+ * Historical uses seem questionable (See LEMS-3958):
323
+ * - IFrame
324
+ * - Explanation
325
+ * - Image
326
+ * - Transformer (deprecated)
316
327
  */
317
328
  graded?: boolean;
318
329
  /**