@khanacademy/perseus-editor 35.3.0 → 36.0.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.
Files changed (79) hide show
  1. package/dist/all-editors.d.ts +5 -5
  2. package/dist/components/widget-editor.d.ts +1 -1
  3. package/dist/es/index.css +4 -4
  4. package/dist/es/index.js +51 -49
  5. package/dist/es/index.js.map +1 -1
  6. package/dist/index.css +4 -4
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +50 -47
  9. package/dist/index.js.map +1 -1
  10. package/dist/widgets/{categorizer-editor.d.ts → categorizer-editor/categorizer-editor.d.ts} +5 -9
  11. package/dist/widgets/categorizer-editor/index.d.ts +1 -0
  12. package/dist/widgets/{cs-program-editor.d.ts → cs-program-editor/cs-program-editor.d.ts} +4 -5
  13. package/dist/widgets/cs-program-editor/index.d.ts +1 -0
  14. package/dist/widgets/{definition-editor.d.ts → definition-editor/definition-editor.d.ts} +7 -9
  15. package/dist/widgets/definition-editor/index.d.ts +1 -0
  16. package/dist/widgets/deprecated-standin-editor/index.d.ts +1 -0
  17. package/dist/widgets/dropdown-editor/index.d.ts +1 -0
  18. package/dist/widgets/{explanation-editor.d.ts → explanation-editor/explanation-editor.d.ts} +6 -12
  19. package/dist/widgets/explanation-editor/index.d.ts +1 -0
  20. package/dist/widgets/expression-editor/index.d.ts +1 -0
  21. package/dist/widgets/free-response-editor/index.d.ts +1 -0
  22. package/dist/widgets/{graded-group-editor.d.ts → graded-group-editor/graded-group-editor.d.ts} +6 -10
  23. package/dist/widgets/graded-group-editor/index.d.ts +1 -0
  24. package/dist/widgets/{graded-group-set-editor.d.ts → graded-group-set-editor/graded-group-set-editor.d.ts} +6 -7
  25. package/dist/widgets/graded-group-set-editor/index.d.ts +1 -0
  26. package/dist/widgets/grapher-editor/index.d.ts +1 -0
  27. package/dist/widgets/{group-editor.d.ts → group-editor/group-editor.d.ts} +1 -1
  28. package/dist/widgets/group-editor/index.d.ts +1 -0
  29. package/dist/widgets/{iframe-editor.d.ts → iframe-editor/iframe-editor.d.ts} +3 -4
  30. package/dist/widgets/iframe-editor/index.d.ts +1 -0
  31. package/dist/widgets/image-editor/index.d.ts +1 -0
  32. package/dist/widgets/input-number-editor/index.d.ts +1 -0
  33. package/dist/widgets/{input-number-editor.d.ts → input-number-editor/input-number-editor.d.ts} +1 -1
  34. package/dist/widgets/interaction-editor/index.d.ts +1 -2
  35. package/dist/widgets/interactive-graph-editor/index.d.ts +1 -0
  36. package/dist/widgets/interactive-graph-editor/locked-figures/ellipse-swatch.d.ts +2 -2
  37. package/dist/widgets/interactive-graph-editor/locked-figures/line-stroke-select.d.ts +15 -5
  38. package/dist/widgets/interactive-graph-editor/locked-figures/polygon-swatch.d.ts +2 -2
  39. package/dist/widgets/interactive-graph-editor/locked-figures/util.d.ts +2 -2
  40. package/dist/widgets/label-image-editor/index.d.ts +1 -0
  41. package/dist/widgets/matcher-editor/index.d.ts +1 -0
  42. package/dist/widgets/matrix-editor/index.d.ts +1 -0
  43. package/dist/widgets/{matrix-editor.d.ts → matrix-editor/matrix-editor.d.ts} +5 -9
  44. package/dist/widgets/measurer-editor/index.d.ts +1 -0
  45. package/dist/widgets/{measurer-editor.d.ts → measurer-editor/measurer-editor.d.ts} +3 -12
  46. package/dist/widgets/number-line-editor/index.d.ts +1 -0
  47. package/dist/widgets/numeric-input-editor/index.d.ts +1 -0
  48. package/dist/widgets/orderer-editor/index.d.ts +1 -0
  49. package/dist/widgets/phet-simulation-editor/index.d.ts +1 -0
  50. package/dist/widgets/plotter-editor/index.d.ts +1 -0
  51. package/dist/widgets/python-program-editor/index.d.ts +1 -0
  52. package/dist/widgets/radio-editor/index.d.ts +1 -0
  53. package/dist/widgets/radio-editor/radio-editor.mockData.d.ts +80 -0
  54. package/dist/widgets/sorter-editor/index.d.ts +1 -0
  55. package/dist/widgets/storybook-constants.d.ts +1 -0
  56. package/dist/widgets/table-editor/index.d.ts +1 -0
  57. package/dist/widgets/video-editor/index.d.ts +1 -0
  58. package/package.json +7 -7
  59. /package/dist/widgets/{deprecated-standin-editor.d.ts → deprecated-standin-editor/deprecated-standin-editor.d.ts} +0 -0
  60. /package/dist/widgets/{dropdown-editor.d.ts → dropdown-editor/dropdown-editor.d.ts} +0 -0
  61. /package/dist/widgets/{expression-editor.d.ts → expression-editor/expression-editor.d.ts} +0 -0
  62. /package/dist/widgets/{free-response-editor.d.ts → free-response-editor/free-response-editor.d.ts} +0 -0
  63. /package/dist/widgets/{grapher-editor.d.ts → grapher-editor/grapher-editor.d.ts} +0 -0
  64. /package/dist/widgets/{matcher-editor.d.ts → matcher-editor/matcher-editor.d.ts} +0 -0
  65. /package/dist/widgets/{number-line-editor.d.ts → number-line-editor/number-line-editor.d.ts} +0 -0
  66. /package/dist/widgets/{numeric-input-editor.d.ts → numeric-input-editor/numeric-input-editor.d.ts} +0 -0
  67. /package/dist/widgets/{orderer-editor.d.ts → orderer-editor/orderer-editor.d.ts} +0 -0
  68. /package/dist/widgets/{phet-simulation-editor.d.ts → phet-simulation-editor/phet-simulation-editor.d.ts} +0 -0
  69. /package/dist/widgets/{plotter-editor.d.ts → plotter-editor/plotter-editor.d.ts} +0 -0
  70. /package/dist/widgets/{python-program-editor.d.ts → python-program-editor/python-program-editor.d.ts} +0 -0
  71. /package/dist/widgets/{radio/editor.d.ts → radio-editor/radio-editor.d.ts} +0 -0
  72. /package/dist/widgets/{radio → radio-editor}/radio-image-editor.d.ts +0 -0
  73. /package/dist/widgets/{radio → radio-editor}/radio-option-content-and-image-editor.d.ts +0 -0
  74. /package/dist/widgets/{radio → radio-editor}/radio-option-settings-actions.d.ts +0 -0
  75. /package/dist/widgets/{radio → radio-editor}/radio-option-settings.d.ts +0 -0
  76. /package/dist/widgets/{radio → radio-editor}/radio-status-pill.d.ts +0 -0
  77. /package/dist/widgets/{radio → radio-editor}/utils.d.ts +0 -0
  78. /package/dist/widgets/{sorter-editor.d.ts → sorter-editor/sorter-editor.d.ts} +0 -0
  79. /package/dist/widgets/{table-editor.d.ts → table-editor/table-editor.d.ts} +0 -0
@@ -1,18 +1,14 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
3
+ import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
2
4
  import type { CategorizerDefaultWidgetOptions } from "@khanacademy/perseus-core";
3
- type Props = any;
5
+ interface Props extends CategorizerDefaultWidgetOptions, Changeable.ChangeableProps {
6
+ apiOptions?: APIOptionsWithDefaults;
7
+ }
4
8
  /**
5
9
  * An editor for adding a categorizer widget that allows users to sort items into categories.
6
10
  */
7
11
  declare class CategorizerEditor extends React.Component<Props> {
8
- static propTypes: {
9
- apiOptions: any;
10
- items: any;
11
- categories: any;
12
- values: any;
13
- randomizeItems: any;
14
- onChange: any;
15
- };
16
12
  static widgetName: "categorizer";
17
13
  static defaultProps: CategorizerDefaultWidgetOptions;
18
14
  change: (arg1: any, arg2: any, arg3: any) => any;
@@ -0,0 +1 @@
1
+ export { default } from "./categorizer-editor";
@@ -1,17 +1,16 @@
1
1
  /**
2
2
  * This editor is for embedding Khan Academy CS programs.
3
3
  */
4
+ import { Changeable } from "@khanacademy/perseus";
4
5
  import * as React from "react";
5
6
  import type { CSProgramDefaultWidgetOptions } from "@khanacademy/perseus-core";
7
+ interface CSProgramEditorProps extends CSProgramDefaultWidgetOptions, Changeable.ChangeableProps {
8
+ }
6
9
  /**
7
10
  * This is the main editor for this widget, to specify all the options.
8
11
  */
9
- declare class CSProgramEditor extends React.Component<any> {
10
- static propTypes: {
11
- onChange: any;
12
- };
12
+ declare class CSProgramEditor extends React.Component<CSProgramEditorProps> {
13
13
  static widgetName: "cs-program";
14
- static defaultProps: CSProgramDefaultWidgetOptions;
15
14
  change: (...args: ReadonlyArray<unknown>) => any;
16
15
  _handleSettingsChange: (arg1: any) => void;
17
16
  _handleProgramIDChange: (arg1: string) => void;
@@ -0,0 +1 @@
1
+ export { default } from "./cs-program-editor";
@@ -1,21 +1,19 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
2
- import type { InitializeWidgetOptionsParams } from "../editor";
3
+ import type { InitializeWidgetOptionsParams } from "../../editor";
4
+ import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
3
5
  import type { DefinitionDefaultWidgetOptions } from "@khanacademy/perseus-core";
4
- type Props = any;
6
+ interface Props extends DefinitionDefaultWidgetOptions, Changeable.ChangeableProps {
7
+ apiOptions?: APIOptionsWithDefaults;
8
+ }
5
9
  /**
6
10
  * An editor for adding an interactive definition widget that allows content
7
11
  * editors to embed clickable terms with expandable explanations within content.
8
12
  */
9
13
  declare class DefinitionEditor extends React.Component<Props> {
10
- static propTypes: {
11
- togglePrompt: any;
12
- definition: any;
13
- apiOptions: any;
14
- onChange: any;
15
- };
16
14
  static widgetName: "definition";
17
15
  static defaultProps: DefinitionDefaultWidgetOptions;
18
- static initializeWidgetOptions(params: InitializeWidgetOptionsParams): any;
16
+ static initializeWidgetOptions(params: InitializeWidgetOptionsParams): DefinitionDefaultWidgetOptions;
19
17
  change: (arg1: any, arg2: any, arg3: any) => any;
20
18
  serialize: () => any;
21
19
  render(): React.ReactNode;
@@ -0,0 +1 @@
1
+ export { default } from "./definition-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./deprecated-standin-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./dropdown-editor";
@@ -1,22 +1,16 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
3
+ import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
2
4
  import type { ExplanationDefaultWidgetOptions } from "@khanacademy/perseus-core";
3
- type Props = any;
4
- type State = any;
5
+ interface Props extends ExplanationDefaultWidgetOptions, Changeable.ChangeableProps {
6
+ apiOptions?: APIOptionsWithDefaults;
7
+ }
5
8
  /**
6
9
  * An editor for adding an explanation widget that provides supplementary information to users.
7
10
  */
8
- declare class ExplanationEditor extends React.Component<Props, State> {
9
- static propTypes: {
10
- showPrompt: any;
11
- hidePrompt: any;
12
- explanation: any;
13
- widgets: any;
14
- apiOptions: any;
15
- onChange: any;
16
- };
11
+ declare class ExplanationEditor extends React.Component<Props> {
17
12
  static widgetName: "explanation";
18
13
  static defaultProps: ExplanationDefaultWidgetOptions;
19
- state: State;
20
14
  change: (arg1: any, arg2: any, arg3: any) => any;
21
15
  serialize: () => any;
22
16
  render(): React.ReactNode;
@@ -0,0 +1 @@
1
+ export { default } from "./explanation-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./expression-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./free-response-editor";
@@ -1,16 +1,12 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
2
- import Editor from "../editor";
3
+ import Editor from "../../editor";
4
+ import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
3
5
  import type { GradedGroupDefaultWidgetOptions } from "@khanacademy/perseus-core";
4
- type Props = any;
6
+ interface Props extends GradedGroupDefaultWidgetOptions, Changeable.ChangeableProps {
7
+ apiOptions?: APIOptionsWithDefaults;
8
+ }
5
9
  declare class GradedGroupEditor extends React.Component<Props> {
6
- static propTypes: {
7
- title: any;
8
- content: any;
9
- widgets: any;
10
- images: any;
11
- apiOptions: any;
12
- onChange: any;
13
- };
14
10
  static widgetName: "graded-group";
15
11
  static defaultProps: GradedGroupDefaultWidgetOptions;
16
12
  editor: React.RefObject<Editor>;
@@ -0,0 +1 @@
1
+ export { default } from "./graded-group-editor";
@@ -1,13 +1,12 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
3
+ import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
2
4
  import type { GradedGroupSetDefaultWidgetOptions } from "@khanacademy/perseus-core";
3
- type Props = any;
5
+ interface Props extends GradedGroupSetDefaultWidgetOptions, Changeable.ChangeableProps {
6
+ apiOptions?: APIOptionsWithDefaults;
7
+ }
4
8
  declare class GradedGroupSetEditor extends React.Component<Props> {
5
9
  _editors: Array<any>;
6
- static propTypes: {
7
- apiOptions: any;
8
- gradedGroups: any;
9
- onChange: any;
10
- };
11
10
  static widgetName: "graded-group-set";
12
11
  static defaultProps: GradedGroupSetDefaultWidgetOptions;
13
12
  UNSAFE_componentWillMount(): void;
@@ -16,7 +15,7 @@ declare class GradedGroupSetEditor extends React.Component<Props> {
16
15
  serialize: () => {
17
16
  gradedGroups: any;
18
17
  };
19
- renderGroups: () => React.ReactElement;
18
+ renderGroups: () => React.ReactNode;
20
19
  addGroup: () => void;
21
20
  render(): React.ReactNode;
22
21
  }
@@ -0,0 +1 @@
1
+ export { default } from "./graded-group-set-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./grapher-editor";
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import Editor from "../editor";
2
+ import Editor from "../../editor";
3
3
  import type { GroupDefaultWidgetOptions, PerseusRenderer } from "@khanacademy/perseus-core";
4
4
  type Props = any;
5
5
  declare class GroupEditor extends React.Component<Props> {
@@ -0,0 +1 @@
1
+ export { default } from "./group-editor";
@@ -1,13 +1,12 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import { type IFrameDefaultWidgetOptions } from "@khanacademy/perseus-core";
2
3
  import * as React from "react";
3
- type IframeEditorProps = any;
4
+ interface IframeEditorProps extends IFrameDefaultWidgetOptions, Changeable.ChangeableProps {
5
+ }
4
6
  /**
5
7
  * This is the main editor for this widget, to specify all the options.
6
8
  */
7
9
  declare class IframeEditor extends React.Component<IframeEditorProps> {
8
- static propTypes: {
9
- onChange: any;
10
- };
11
10
  static widgetName: "iframe";
12
11
  static defaultProps: IFrameDefaultWidgetOptions;
13
12
  change: (arg1: any, arg2: any, arg3: any) => any;
@@ -0,0 +1 @@
1
+ export { default } from "./iframe-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./image-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./input-number-editor";
@@ -1,4 +1,4 @@
1
- import NumericInputEditor from "./numeric-input-editor";
1
+ import NumericInputEditor from "../numeric-input-editor";
2
2
  /**
3
3
  * An editor for adding an input number widget that allows users to enter numerical values.
4
4
  */
@@ -1,2 +1 @@
1
- import InteractionEditor from "./interaction-editor";
2
- export default InteractionEditor;
1
+ export { default } from "./interaction-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./interactive-graph-editor";
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
- import type { LockedFigureColor, LockedFigureFillType } from "@khanacademy/perseus-core";
2
+ import type { LockedFigureColor, LockedFigureFillType, LockedFigureStrokeStyle } from "@khanacademy/perseus-core";
3
3
  type Props = {
4
4
  color: LockedFigureColor;
5
5
  fillStyle: LockedFigureFillType;
6
- strokeStyle: "solid" | "dashed";
6
+ strokeStyle: LockedFigureStrokeStyle;
7
7
  };
8
8
  declare const EllipseSwatch: (props: Props) => React.JSX.Element;
9
9
  export default EllipseSwatch;
@@ -1,11 +1,21 @@
1
1
  import * as React from "react";
2
+ import type { LockedFigureStrokeStyle } from "@khanacademy/perseus-core";
2
3
  import type { StyleType } from "@khanacademy/wonder-blocks-core";
3
- type StyleOptions = "solid" | "dashed";
4
- interface Props {
5
- selectedValue: StyleOptions;
6
- onChange: (newValue: StyleOptions) => void;
4
+ export declare const lineStrokeStyleOptions: {
5
+ readonly solid: "solid";
6
+ readonly dashed: "dashed";
7
+ };
8
+ export declare const fillableStrokeStyleOptions: {
9
+ readonly solid: "solid";
10
+ readonly dashed: "dashed";
11
+ readonly none: "none";
12
+ };
13
+ interface Props<T extends LockedFigureStrokeStyle> {
14
+ selectedValue: T;
15
+ onChange: (newValue: T) => void;
16
+ options: Record<T, string>;
7
17
  containerStyle?: StyleType;
8
18
  editingDisabled?: boolean;
9
19
  }
10
- declare const LineStrokeSelect: (props: Props) => React.JSX.Element;
20
+ declare const LineStrokeSelect: <T extends LockedFigureStrokeStyle>(props: Props<T>) => React.JSX.Element;
11
21
  export default LineStrokeSelect;
@@ -1,9 +1,9 @@
1
1
  import * as React from "react";
2
- import type { LockedFigureColor, LockedFigureFillType } from "@khanacademy/perseus-core";
2
+ import type { LockedFigureColor, LockedFigureFillType, LockedFigureStrokeStyle } from "@khanacademy/perseus-core";
3
3
  type Props = {
4
4
  color: LockedFigureColor;
5
5
  fillStyle: LockedFigureFillType;
6
- strokeStyle: "solid" | "dashed";
6
+ strokeStyle: LockedFigureStrokeStyle;
7
7
  };
8
8
  declare const PolygonSwatch: (props: Props) => React.JSX.Element;
9
9
  export default PolygonSwatch;
@@ -1,5 +1,5 @@
1
- import { type LockedFigureColor, type LockedFigureFillType, type LockedLabelType, type LockedLineStyle, type StrokeWeight } from "@khanacademy/perseus-core";
2
- export declare function generateLockedFigureAppearanceDescription(color: LockedFigureColor, strokeStyle?: LockedLineStyle, fill?: LockedFigureFillType, weight?: StrokeWeight): string;
1
+ import { type LockedFigureColor, type LockedFigureFillType, type LockedFigureStrokeStyle, type LockedLabelType, type StrokeWeight } from "@khanacademy/perseus-core";
2
+ export declare function generateLockedFigureAppearanceDescription(color: LockedFigureColor, strokeStyle?: LockedFigureStrokeStyle, fill?: LockedFigureFillType, weight?: StrokeWeight): string;
3
3
  /**
4
4
  * Given a string that may contain math within TeX represented by $...$,
5
5
  * returns the spoken math equivalent using the SpeechRuleEngine.
@@ -0,0 +1 @@
1
+ export { default } from "./label-image-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./matcher-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./matrix-editor";
@@ -1,15 +1,11 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
3
+ import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
2
4
  import type { MatrixDefaultWidgetOptions } from "@khanacademy/perseus-core";
3
- type Props = any;
5
+ interface Props extends MatrixDefaultWidgetOptions, Changeable.ChangeableProps {
6
+ apiOptions: APIOptionsWithDefaults;
7
+ }
4
8
  declare class MatrixEditor extends React.Component<Props> {
5
- static propTypes: {
6
- matrixBoardSize: any;
7
- answers: any;
8
- prefix: any;
9
- suffix: any;
10
- cursorPosition: any;
11
- onChange: any;
12
- };
13
9
  static widgetName: "matrix";
14
10
  static defaultProps: MatrixDefaultWidgetOptions;
15
11
  change: (arg1: any, arg2?: any, arg3?: any) => any;
@@ -0,0 +1 @@
1
+ export { default } from "./measurer-editor";
@@ -1,19 +1,10 @@
1
+ import { Changeable } from "@khanacademy/perseus";
1
2
  import * as React from "react";
2
3
  import type { MeasurerDefaultWidgetOptions } from "@khanacademy/perseus-core";
3
- type Props = any;
4
+ interface Props extends MeasurerDefaultWidgetOptions, Changeable.ChangeableProps {
5
+ }
4
6
  declare class MeasurerEditor extends React.Component<Props> {
5
7
  static widgetName: "measurer";
6
- static propTypes: {
7
- box: any;
8
- image: any;
9
- showProtractor: any;
10
- showRuler: any;
11
- rulerLabel: any;
12
- rulerTicks: any;
13
- rulerPixels: any;
14
- rulerLength: any;
15
- onChange: any;
16
- };
17
8
  static defaultProps: MeasurerDefaultWidgetOptions;
18
9
  className: string;
19
10
  change: (arg1: any, arg2: any, arg3: any) => any;
@@ -0,0 +1 @@
1
+ export { default } from "./number-line-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./numeric-input-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./orderer-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./phet-simulation-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./plotter-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./python-program-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./radio-editor";
@@ -0,0 +1,80 @@
1
+ export declare const mockIds: string[];
2
+ export declare const singleChoice: {
3
+ id: string;
4
+ content: string;
5
+ };
6
+ export declare const threeChoicesWithCorrect: ({
7
+ id: string;
8
+ content: string;
9
+ correct?: undefined;
10
+ } | {
11
+ id: string;
12
+ content: string;
13
+ correct: boolean;
14
+ })[];
15
+ export declare const threeChoicesWithCorrectAndNoneOfTheAbove: ({
16
+ id: string;
17
+ content: string;
18
+ correct: boolean;
19
+ isNoneOfTheAbove?: undefined;
20
+ } | {
21
+ id: string;
22
+ content: string;
23
+ correct?: undefined;
24
+ isNoneOfTheAbove?: undefined;
25
+ } | {
26
+ id: string;
27
+ content: string;
28
+ isNoneOfTheAbove: boolean;
29
+ correct?: undefined;
30
+ })[];
31
+ export declare const fourChoices: {
32
+ id: string;
33
+ content: string;
34
+ }[];
35
+ export declare const fourChoicesWithAllIncorrect: {
36
+ id: string;
37
+ content: string;
38
+ correct: boolean;
39
+ }[];
40
+ export declare const fourChoicesWithFirstCorrect: {
41
+ id: string;
42
+ content: string;
43
+ correct: boolean;
44
+ }[];
45
+ export declare const fourChoicesWithSecondCorrect: {
46
+ id: string;
47
+ content: string;
48
+ correct: boolean;
49
+ }[];
50
+ export declare const fourChoicesWithTwoCorrect: {
51
+ id: string;
52
+ content: string;
53
+ correct: boolean;
54
+ }[];
55
+ export declare const fourChoicesWithNoneOfTheAboveAndCorrect: ({
56
+ id: string;
57
+ content: string;
58
+ correct?: undefined;
59
+ } | {
60
+ id: string;
61
+ content: string;
62
+ correct: boolean;
63
+ } | {
64
+ id: string;
65
+ content: string;
66
+ isNoneOfTheAbove: boolean;
67
+ })[];
68
+ export declare const fourChoicesWithOneChoice1A: {
69
+ id: string;
70
+ content: string;
71
+ }[];
72
+ export declare const fourChoicesWithOneRationale: ({
73
+ id: string;
74
+ content: string;
75
+ rationale: string;
76
+ } | {
77
+ id: string;
78
+ content: string;
79
+ rationale?: undefined;
80
+ })[];
@@ -0,0 +1 @@
1
+ export { default } from "./sorter-editor";
@@ -0,0 +1 @@
1
+ export declare const PROD_EDITOR_WIDTH = 330;
@@ -0,0 +1 @@
1
+ export { default } from "./table-editor";
@@ -0,0 +1 @@
1
+ export { default } from "./video-editor";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "35.3.0",
6
+ "version": "36.0.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -36,12 +36,12 @@
36
36
  "mafs": "^0.19.0",
37
37
  "tiny-invariant": "1.3.1",
38
38
  "@khanacademy/kas": "2.2.6",
39
- "@khanacademy/keypad-context": "3.2.80",
40
- "@khanacademy/kmath": "2.4.39",
41
- "@khanacademy/math-input": "27.0.0",
42
- "@khanacademy/perseus": "83.0.1",
43
- "@khanacademy/perseus-core": "34.0.2",
44
- "@khanacademy/perseus-linter": "5.1.20",
39
+ "@khanacademy/keypad-context": "3.2.82",
40
+ "@khanacademy/kmath": "2.4.41",
41
+ "@khanacademy/math-input": "27.0.2",
42
+ "@khanacademy/perseus": "84.0.0",
43
+ "@khanacademy/perseus-core": "35.0.0",
44
+ "@khanacademy/perseus-linter": "5.1.22",
45
45
  "@khanacademy/perseus-utils": "2.1.5"
46
46
  },
47
47
  "devDependencies": {
File without changes