@khanacademy/perseus 87.2.1 → 87.2.2

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.
@@ -37,8 +37,6 @@ export declare const useItemRenderer: (item: PerseusItem, apiOptions?: APIOption
37
37
  hintProgressColor?: string;
38
38
  flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator" | "article-extras" | "dnd-widget-fitb", boolean>;
39
39
  };
40
- toggleMobile: (isMobile: boolean) => void;
41
- toggleRtl: (isRtl: boolean) => void;
42
40
  updateJson: (json: string) => boolean;
43
41
  handleReset: () => void;
44
42
  handleSkip: () => void;
@@ -1,7 +1,5 @@
1
1
  import type { PerseusItem, ShowSolutions, PerseusScore, UserInputMap } from "@khanacademy/perseus-core";
2
2
  export type ItemRendererState = {
3
- isMobile: boolean;
4
- isRtl: boolean;
5
3
  perseusItem: PerseusItem;
6
4
  originalItem: PerseusItem;
7
5
  answerless: boolean;
@@ -14,12 +12,6 @@ export type ItemRendererState = {
14
12
  reviewMode: boolean;
15
13
  };
16
14
  export type ItemRendererAction = {
17
- type: "TOGGLE_MOBILE";
18
- payload: boolean;
19
- } | {
20
- type: "TOGGLE_RTL";
21
- payload: boolean;
22
- } | {
23
15
  type: "UPDATE_ITEM";
24
16
  payload: PerseusItem;
25
17
  } | {
@@ -43,5 +35,5 @@ export type ItemRendererAction = {
43
35
  } | {
44
36
  type: "SKIP_TO_SOLUTION";
45
37
  };
46
- export declare const createInitialState: (item: PerseusItem, isMobile?: boolean, isRtl?: boolean, reviewMode?: boolean, showSolutions?: ShowSolutions) => ItemRendererState;
38
+ export declare const createInitialState: (item: PerseusItem, reviewMode?: boolean, showSolutions?: ShowSolutions) => ItemRendererState;
47
39
  export declare const itemRendererReducer: (state: ItemRendererState, action: ItemRendererAction) => ItemRendererState;
@@ -3,7 +3,6 @@ import type { APIOptions } from "../types";
3
3
  import type { PerseusItem, ShowSolutions } from "@khanacademy/perseus-core";
4
4
  import type { LinterContextProps } from "@khanacademy/perseus-linter";
5
5
  type Props = {
6
- title?: string;
7
6
  item: PerseusItem;
8
7
  apiOptions?: APIOptions;
9
8
  linterContext?: LinterContextProps;
@@ -13,5 +12,5 @@ type Props = {
13
12
  /**
14
13
  * ServerItemRendererWithDebugUI is a component that renders a Perseus item with debug UI controls
15
14
  */
16
- export declare const ServerItemRendererWithDebugUI: ({ title, item, apiOptions, linterContext, reviewMode, showSolutions, }: Props) => React.ReactElement;
15
+ export declare const ServerItemRendererWithDebugUI: ({ item, apiOptions, linterContext, reviewMode, showSolutions, }: Props) => React.ReactElement;
17
16
  export {};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ type StorybookViewOptions = {
3
+ isMobile: boolean | undefined;
4
+ isRtl: boolean;
5
+ };
6
+ export declare const StorybookViewOptionsContext: React.Context<StorybookViewOptions>;
7
+ export {};
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": "87.2.1",
6
+ "version": "87.2.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -46,12 +46,12 @@
46
46
  "tiny-invariant": "1.3.1",
47
47
  "uuid": "^10.0.0",
48
48
  "@khanacademy/kas": "2.2.6",
49
- "@khanacademy/keypad-context": "3.2.93",
50
- "@khanacademy/kmath": "2.4.52",
51
- "@khanacademy/math-input": "27.0.17",
52
- "@khanacademy/perseus-core": "39.2.1",
53
- "@khanacademy/perseus-linter": "5.4.2",
54
- "@khanacademy/perseus-score": "8.12.25",
49
+ "@khanacademy/keypad-context": "4.0.0",
50
+ "@khanacademy/kmath": "2.4.53",
51
+ "@khanacademy/math-input": "28.0.0",
52
+ "@khanacademy/perseus-core": "39.2.2",
53
+ "@khanacademy/perseus-linter": "5.4.3",
54
+ "@khanacademy/perseus-score": "8.12.26",
55
55
  "@khanacademy/perseus-utils": "2.1.5",
56
56
  "@khanacademy/pure-markdown": "2.3.2",
57
57
  "@khanacademy/simple-markdown": "3.0.1"
@@ -1,13 +0,0 @@
1
- import * as React from "react";
2
- type DebugHeaderProps = {
3
- title: string;
4
- isMobile: boolean;
5
- isRtl: boolean;
6
- onToggleMobile: (isMobile: boolean) => void;
7
- onToggleRtl: (isRtl: boolean) => void;
8
- };
9
- /**
10
- * A component that renders the header for the debug UI
11
- */
12
- export declare const DebugHeader: ({ title, isMobile, isRtl, onToggleMobile, onToggleRtl, }: DebugHeaderProps) => React.ReactElement;
13
- export {};