@khanacademy/perseus 78.3.0 → 78.4.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.
@@ -5,14 +5,14 @@ import type { PerseusNumericInputAnswerForm, PerseusNumericInputRubric, PerseusN
5
5
  type ExternalProps = WidgetProps<PerseusNumericInputWidgetOptions, PerseusNumericInputUserInput>;
6
6
  export type NumericInputProps = ExternalProps & {
7
7
  size: NonNullable<ExternalProps["size"]>;
8
- rightAlign: NonNullable<ExternalProps["rightAlign"]>;
8
+ textAlign: NonNullable<ExternalProps["textAlign"]>;
9
9
  apiOptions: NonNullable<ExternalProps["apiOptions"]>;
10
10
  coefficient: NonNullable<ExternalProps["coefficient"]>;
11
11
  answerForms: ReadonlyArray<PerseusNumericInputAnswerForm>;
12
12
  labelText: string;
13
13
  linterContext: NonNullable<ExternalProps["linterContext"]>;
14
14
  };
15
- type DefaultProps = Pick<NumericInputProps, "size" | "rightAlign" | "apiOptions" | "coefficient" | "answerForms" | "labelText" | "linterContext" | "userInput">;
15
+ type DefaultProps = Pick<NumericInputProps, "size" | "apiOptions" | "coefficient" | "answerForms" | "labelText" | "linterContext" | "userInput">;
16
16
  /**
17
17
  * The NumericInput widget is a numeric input field that supports a variety of
18
18
  * answer forms, including integers, decimals, fractions, and mixed numbers.
@@ -43,7 +43,7 @@ export declare class NumericInput extends React.Component<NumericInputProps> imp
43
43
  labelText: string;
44
44
  size: string;
45
45
  coefficient: boolean;
46
- rightAlign: boolean;
46
+ textAlign: "left" | "right" | "center";
47
47
  trackInteraction: (extraData?: Empty | undefined) => void;
48
48
  widgetId: string;
49
49
  widgetIndex: number;
@@ -63,7 +63,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
63
63
  containerSizeClass: import("../../util/sizing-utils").SizeClass;
64
64
  } & {
65
65
  size: NonNullable<string>;
66
- rightAlign: NonNullable<boolean | undefined>;
66
+ textAlign: NonNullable<"center" | "left" | "right">;
67
67
  apiOptions: NonNullable<Readonly<Readonly<{
68
68
  isArticle?: boolean;
69
69
  onFocusChange?: (newFocusPath: import("../..").FocusPath, oldFocusPath: import("../..").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
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": "78.3.0",
6
+ "version": "78.4.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -43,12 +43,12 @@
43
43
  "tiny-invariant": "1.3.1",
44
44
  "uuid": "^10.0.0",
45
45
  "@khanacademy/kas": "2.2.3",
46
- "@khanacademy/keypad-context": "3.2.66",
47
- "@khanacademy/kmath": "2.4.24",
48
- "@khanacademy/math-input": "26.4.38",
49
- "@khanacademy/perseus-core": "28.3.0",
50
- "@khanacademy/perseus-linter": "5.1.5",
51
- "@khanacademy/perseus-score": "8.11.8",
46
+ "@khanacademy/keypad-context": "3.2.67",
47
+ "@khanacademy/kmath": "2.4.25",
48
+ "@khanacademy/math-input": "26.4.39",
49
+ "@khanacademy/perseus-core": "29.0.0",
50
+ "@khanacademy/perseus-linter": "5.1.6",
51
+ "@khanacademy/perseus-score": "8.11.9",
52
52
  "@khanacademy/perseus-utils": "2.1.5",
53
53
  "@khanacademy/pure-markdown": "2.3.0",
54
54
  "@khanacademy/simple-markdown": "2.2.3"