@khanacademy/perseus 91.0.0 → 91.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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { B as ButtonGroup, G as Graphie, H as HUD, I as Icon, a as InlineIcon, M as MathInput, b as MultiButtonGroup, N as NumberInput, R as RangeInput, S as SvgImage, T as TextInput, r as registerWidgets, c as basicWidgets, e as extraWidgets, d as replaceDeprecatedWidgets, P as PerseusI18nContext, A as ApiOptions, C as ClassNames, j as jsxRuntimeExports, U as UserInputManager, f as Renderer, D as DependenciesContext, g as Util, h as getDependencies, J as JiptParagraphs, i as hintPaddingInlineStart, k as hintBorderWidth, m as mediaQueries, s as sharedStyles, l as context$1, n as getWidgetTypeByWidgetId, o as getWidgetExport, p as PerseusMarkdown, t as typeToButton, q as getEquationString, u as defaultPlotProps, v as chooseType, w as DEFAULT_GRAPHER_PROPS } from './chunk-register-all-widgets-for-testing-nYS5kWmb.js';
2
- export { L as Categorizer, $ as Dependencies, E as Expression, X as GrapherWidget, z as InputNumber, O as InteractiveGraphWidget, a5 as KhanColors, a0 as Log, a1 as MathRenderingContext, Q as MatrixWidget, F as NumericInput, a3 as PerseusI18nContextProvider, W as PlotterWidget, K as Radio, V as TableWidget, x as Widgets, _ as bodyXsmallBold, a8 as containerSizeClass, ac as contentHasWidgetType, at as deriveUserInputFromSerializedState, af as getAbsoluteValueCoords, as as getAngleCoords, ag as getCircleCoords, ah as getExponentialCoords, a9 as getInteractiveBoxFromSizeClass, aj as getLineCoords, ak as getLinearSystemCoords, ai as getLogarithmCoords, al as getPointCoords, am as getPolygonCoords, ar as getQuadraticCoords, an as getSegmentCoords, ao as getSinusoidCoords, ap as getTangentCoords, aq as getVectorCoords, ad as getWidgetFromWidgetMap, ab as getWidgetSubTypeByWidgetId, ae as getWidgetsFromWidgetMap, Y as iconChevronDown, Z as iconTrash, a2 as interactiveSizes, aa as mathOnlyParser, au as parseDataFromJSONP, a6 as preprocessTex, a7 as registerAllWidgetsForTesting, a4 as usePerseusI18n, y as widgets } from './chunk-register-all-widgets-for-testing-nYS5kWmb.js';
1
+ import { B as ButtonGroup, G as Graphie, H as HUD, I as Icon, a as InlineIcon, M as MathInput, b as MultiButtonGroup, N as NumberInput, R as RangeInput, S as SvgImage, T as TextInput, r as registerWidgets, c as basicWidgets, e as extraWidgets, d as replaceDeprecatedWidgets, P as PerseusI18nContext, A as ApiOptions, C as ClassNames, j as jsxRuntimeExports, U as UserInputManager, f as Renderer, D as DependenciesContext, g as Util, h as getDependencies, J as JiptParagraphs, i as hintPaddingInlineStart, k as hintBorderWidth, m as mediaQueries, s as sharedStyles, l as context$1, n as getWidgetTypeByWidgetId, o as getWidgetExport, p as PerseusMarkdown, t as typeToButton, q as getEquationString, u as defaultPlotProps, v as chooseType, w as DEFAULT_GRAPHER_PROPS } from './chunk-register-all-widgets-for-testing-CWjQ_I3u.js';
2
+ export { L as Categorizer, $ as Dependencies, E as Expression, X as GrapherWidget, z as InputNumber, O as InteractiveGraphWidget, a5 as KhanColors, a0 as Log, a1 as MathRenderingContext, Q as MatrixWidget, F as NumericInput, a3 as PerseusI18nContextProvider, W as PlotterWidget, K as Radio, V as TableWidget, x as Widgets, _ as bodyXsmallBold, a8 as containerSizeClass, ac as contentHasWidgetType, at as deriveUserInputFromSerializedState, af as getAbsoluteValueCoords, as as getAngleCoords, ag as getCircleCoords, ah as getExponentialCoords, a9 as getInteractiveBoxFromSizeClass, aj as getLineCoords, ak as getLinearSystemCoords, ai as getLogarithmCoords, al as getPointCoords, am as getPolygonCoords, ar as getQuadraticCoords, an as getSegmentCoords, ao as getSinusoidCoords, ap as getTangentCoords, aq as getVectorCoords, ad as getWidgetFromWidgetMap, ab as getWidgetSubTypeByWidgetId, ae as getWidgetsFromWidgetMap, Y as iconChevronDown, Z as iconTrash, a2 as interactiveSizes, aa as mathOnlyParser, au as parseDataFromJSONP, a6 as preprocessTex, a7 as registerAllWidgetsForTesting, a4 as usePerseusI18n, y as widgets } from './chunk-register-all-widgets-for-testing-CWjQ_I3u.js';
3
3
  import { addLibraryVersionToPerseusDebug } from '@khanacademy/perseus-utils';
4
4
  import * as React from 'react';
5
5
  import { createElement } from 'react';
@@ -85,7 +85,7 @@ var components = /*#__PURE__*/Object.freeze({
85
85
 
86
86
  const init=function(){registerWidgets(basicWidgets);registerWidgets(extraWidgets);replaceDeprecatedWidgets();};
87
87
 
88
- const libName="@khanacademy/perseus";const libVersion="91.0.0";addLibraryVersionToPerseusDebug(libName,libVersion);
88
+ const libName="@khanacademy/perseus";const libVersion="91.1.0";addLibraryVersionToPerseusDebug(libName,libVersion);
89
89
 
90
90
  const apiVersion={major:12,minor:0};
91
91
 
@@ -4,10 +4,11 @@ type DebugAccordionUIProps = {
4
4
  score: PerseusScore | undefined;
5
5
  userInput: UserInputMap | undefined;
6
6
  perseusItem: PerseusItem;
7
+ expanded?: boolean;
7
8
  updateJson: (json: string) => boolean;
8
9
  };
9
10
  /**
10
11
  * A component that renders the debug accordion UI for Perseus items
11
12
  */
12
- export declare const DebugAccordionUI: ({ score, userInput, perseusItem, updateJson, }: DebugAccordionUIProps) => React.ReactElement;
13
+ export declare const DebugAccordionUI: ({ score, userInput, perseusItem, expanded, updateJson, }: DebugAccordionUIProps) => React.ReactElement;
13
14
  export {};
@@ -8,9 +8,10 @@ type Props = {
8
8
  linterContext?: LinterContextProps;
9
9
  reviewMode?: boolean;
10
10
  showSolutions?: ShowSolutions;
11
+ expanded?: boolean;
11
12
  };
12
13
  /**
13
14
  * ServerItemRendererWithDebugUI is a component that renders a Perseus item with debug UI controls
14
15
  */
15
- export declare const ServerItemRendererWithDebugUI: ({ item, apiOptions, linterContext, reviewMode, showSolutions, }: Props) => React.ReactElement;
16
+ export declare const ServerItemRendererWithDebugUI: ({ item, apiOptions, linterContext, reviewMode, showSolutions, expanded, }: Props) => React.ReactElement;
16
17
  export {};
package/dist/testing.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a7 as registerAllWidgetsForTesting, j as jsxRuntimeExports } from './chunk-register-all-widgets-for-testing-nYS5kWmb.js';
1
+ import { a7 as registerAllWidgetsForTesting, j as jsxRuntimeExports } from './chunk-register-all-widgets-for-testing-CWjQ_I3u.js';
2
2
  import React__default from 'react';
3
3
  import { View } from '@khanacademy/wonder-blocks-core';
4
4
  import { spacing } from '@khanacademy/wonder-blocks-tokens';
@@ -26,5 +26,10 @@ export type MafsGraphProps = {
26
26
  static: boolean | null | undefined;
27
27
  widgetId: string;
28
28
  ungradedDescriptionId?: string;
29
+ /**
30
+ * Whether the learner must interact with the graph to move on from the
31
+ * question. Announced to screen readers as part of the graph instructions.
32
+ */
33
+ isRequired?: boolean;
29
34
  };
30
35
  export declare const MafsGraph: (props: MafsGraphProps) => React.JSX.Element;
@@ -30,6 +30,7 @@ export type StatefulMafsGraphProps = {
30
30
  widgetId: string;
31
31
  graded?: boolean | null;
32
32
  ungradedDescriptionId?: string;
33
+ isRequired?: boolean;
33
34
  };
34
35
  export type StatefulMafsGraphType = {
35
36
  getUserInput: () => PerseusInteractiveGraphUserInput;
@@ -15,6 +15,7 @@ type Props = {
15
15
  onFocus?: () => void;
16
16
  onBlur?: () => void;
17
17
  disabled?: boolean;
18
+ required?: boolean;
18
19
  style?: StyleType;
19
20
  id: string;
20
21
  linterContext?: LinterContextProps;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Core Perseus API (includes renderers and widgets)",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "91.0.0",
6
+ "version": "91.1.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,12 +35,12 @@
35
35
  "tiny-invariant": "1.3.1",
36
36
  "uuid": "^10.0.0",
37
37
  "@khanacademy/kas": "3.0.0",
38
- "@khanacademy/keypad-context": "6.0.4",
39
- "@khanacademy/kmath": "3.0.5",
40
- "@khanacademy/math-input": "30.0.5",
41
- "@khanacademy/perseus-core": "41.2.0",
42
- "@khanacademy/perseus-linter": "6.1.2",
43
- "@khanacademy/perseus-score": "9.0.5",
38
+ "@khanacademy/keypad-context": "6.0.5",
39
+ "@khanacademy/kmath": "3.0.6",
40
+ "@khanacademy/math-input": "30.1.0",
41
+ "@khanacademy/perseus-core": "41.2.1",
42
+ "@khanacademy/perseus-linter": "6.1.3",
43
+ "@khanacademy/perseus-score": "9.0.6",
44
44
  "@khanacademy/perseus-utils": "3.0.0",
45
45
  "@khanacademy/pure-markdown": "3.0.0",
46
46
  "@khanacademy/simple-markdown": "4.0.0"