@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.
- package/dist/accessibility.d.ts +0 -14
- package/dist/data-schema.d.ts +12 -1
- package/dist/es/index.item-splitting.js.map +1 -1
- package/dist/es/index.js +7 -5
- package/dist/es/index.js.map +1 -1
- package/dist/feature-flags.d.ts +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.item-splitting.js.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/generators/interactive-graph-widget-generator.d.ts +12 -5
- package/package.json +3 -3
package/dist/accessibility.d.ts
CHANGED
|
@@ -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).
|
package/dist/data-schema.d.ts
CHANGED
|
@@ -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.
|
|
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
|
/**
|