@khanacademy/perseus-editor 35.3.0 → 35.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.
- package/dist/all-editors.d.ts +5 -5
- package/dist/es/index.css +4 -4
- package/dist/es/index.js +38 -38
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +4 -4
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/widgets/categorizer-editor/index.d.ts +1 -0
- package/dist/widgets/cs-program-editor/index.d.ts +1 -0
- package/dist/widgets/{definition-editor.d.ts → definition-editor/definition-editor.d.ts} +1 -1
- package/dist/widgets/definition-editor/index.d.ts +1 -0
- package/dist/widgets/deprecated-standin-editor/index.d.ts +1 -0
- package/dist/widgets/dropdown-editor/index.d.ts +1 -0
- package/dist/widgets/explanation-editor/index.d.ts +1 -0
- package/dist/widgets/expression-editor/index.d.ts +1 -0
- package/dist/widgets/free-response-editor/index.d.ts +1 -0
- package/dist/widgets/{graded-group-editor.d.ts → graded-group-editor/graded-group-editor.d.ts} +1 -1
- package/dist/widgets/graded-group-editor/index.d.ts +1 -0
- package/dist/widgets/graded-group-set-editor/index.d.ts +1 -0
- package/dist/widgets/grapher-editor/index.d.ts +1 -0
- package/dist/widgets/{group-editor.d.ts → group-editor/group-editor.d.ts} +1 -1
- package/dist/widgets/group-editor/index.d.ts +1 -0
- package/dist/widgets/iframe-editor/index.d.ts +1 -0
- package/dist/widgets/image-editor/index.d.ts +1 -0
- package/dist/widgets/input-number-editor/index.d.ts +1 -0
- package/dist/widgets/{input-number-editor.d.ts → input-number-editor/input-number-editor.d.ts} +1 -1
- package/dist/widgets/interaction-editor/index.d.ts +1 -2
- package/dist/widgets/interactive-graph-editor/index.d.ts +1 -0
- package/dist/widgets/interactive-graph-editor/locked-figures/ellipse-swatch.d.ts +2 -2
- package/dist/widgets/interactive-graph-editor/locked-figures/line-stroke-select.d.ts +15 -5
- package/dist/widgets/interactive-graph-editor/locked-figures/polygon-swatch.d.ts +2 -2
- package/dist/widgets/interactive-graph-editor/locked-figures/util.d.ts +2 -2
- package/dist/widgets/label-image-editor/index.d.ts +1 -0
- package/dist/widgets/matcher-editor/index.d.ts +1 -0
- package/dist/widgets/matrix-editor/index.d.ts +1 -0
- package/dist/widgets/measurer-editor/index.d.ts +1 -0
- package/dist/widgets/number-line-editor/index.d.ts +1 -0
- package/dist/widgets/numeric-input-editor/index.d.ts +1 -0
- package/dist/widgets/orderer-editor/index.d.ts +1 -0
- package/dist/widgets/phet-simulation-editor/index.d.ts +1 -0
- package/dist/widgets/plotter-editor/index.d.ts +1 -0
- package/dist/widgets/python-program-editor/index.d.ts +1 -0
- package/dist/widgets/radio-editor/index.d.ts +1 -0
- package/dist/widgets/radio-editor/radio-editor.mockData.d.ts +80 -0
- package/dist/widgets/sorter-editor/index.d.ts +1 -0
- package/dist/widgets/storybook-constants.d.ts +1 -0
- package/dist/widgets/table-editor/index.d.ts +1 -0
- package/dist/widgets/video-editor/index.d.ts +1 -0
- package/package.json +7 -7
- /package/dist/widgets/{categorizer-editor.d.ts → categorizer-editor/categorizer-editor.d.ts} +0 -0
- /package/dist/widgets/{cs-program-editor.d.ts → cs-program-editor/cs-program-editor.d.ts} +0 -0
- /package/dist/widgets/{deprecated-standin-editor.d.ts → deprecated-standin-editor/deprecated-standin-editor.d.ts} +0 -0
- /package/dist/widgets/{dropdown-editor.d.ts → dropdown-editor/dropdown-editor.d.ts} +0 -0
- /package/dist/widgets/{explanation-editor.d.ts → explanation-editor/explanation-editor.d.ts} +0 -0
- /package/dist/widgets/{expression-editor.d.ts → expression-editor/expression-editor.d.ts} +0 -0
- /package/dist/widgets/{free-response-editor.d.ts → free-response-editor/free-response-editor.d.ts} +0 -0
- /package/dist/widgets/{graded-group-set-editor.d.ts → graded-group-set-editor/graded-group-set-editor.d.ts} +0 -0
- /package/dist/widgets/{grapher-editor.d.ts → grapher-editor/grapher-editor.d.ts} +0 -0
- /package/dist/widgets/{iframe-editor.d.ts → iframe-editor/iframe-editor.d.ts} +0 -0
- /package/dist/widgets/{matcher-editor.d.ts → matcher-editor/matcher-editor.d.ts} +0 -0
- /package/dist/widgets/{matrix-editor.d.ts → matrix-editor/matrix-editor.d.ts} +0 -0
- /package/dist/widgets/{measurer-editor.d.ts → measurer-editor/measurer-editor.d.ts} +0 -0
- /package/dist/widgets/{number-line-editor.d.ts → number-line-editor/number-line-editor.d.ts} +0 -0
- /package/dist/widgets/{numeric-input-editor.d.ts → numeric-input-editor/numeric-input-editor.d.ts} +0 -0
- /package/dist/widgets/{orderer-editor.d.ts → orderer-editor/orderer-editor.d.ts} +0 -0
- /package/dist/widgets/{phet-simulation-editor.d.ts → phet-simulation-editor/phet-simulation-editor.d.ts} +0 -0
- /package/dist/widgets/{plotter-editor.d.ts → plotter-editor/plotter-editor.d.ts} +0 -0
- /package/dist/widgets/{python-program-editor.d.ts → python-program-editor/python-program-editor.d.ts} +0 -0
- /package/dist/widgets/{radio/editor.d.ts → radio-editor/radio-editor.d.ts} +0 -0
- /package/dist/widgets/{radio → radio-editor}/radio-image-editor.d.ts +0 -0
- /package/dist/widgets/{radio → radio-editor}/radio-option-content-and-image-editor.d.ts +0 -0
- /package/dist/widgets/{radio → radio-editor}/radio-option-settings-actions.d.ts +0 -0
- /package/dist/widgets/{radio → radio-editor}/radio-option-settings.d.ts +0 -0
- /package/dist/widgets/{radio → radio-editor}/radio-status-pill.d.ts +0 -0
- /package/dist/widgets/{radio → radio-editor}/utils.d.ts +0 -0
- /package/dist/widgets/{sorter-editor.d.ts → sorter-editor/sorter-editor.d.ts} +0 -0
- /package/dist/widgets/{table-editor.d.ts → table-editor/table-editor.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./categorizer-editor";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./cs-program-editor";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { InitializeWidgetOptionsParams } from "
|
|
2
|
+
import type { InitializeWidgetOptionsParams } from "../../editor";
|
|
3
3
|
import type { DefinitionDefaultWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = any;
|
|
5
5
|
/**
|
|
@@ -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";
|
|
@@ -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";
|
package/dist/widgets/{graded-group-editor.d.ts → graded-group-editor/graded-group-editor.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import Editor from "
|
|
2
|
+
import Editor from "../../editor";
|
|
3
3
|
import type { GradedGroupDefaultWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
4
|
type Props = any;
|
|
5
5
|
declare class GradedGroupEditor extends React.Component<Props> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./graded-group-editor";
|
|
@@ -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 "
|
|
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";
|
|
@@ -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,2 +1 @@
|
|
|
1
|
-
|
|
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:
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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:
|
|
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
|
|
2
|
-
export declare function generateLockedFigureAppearanceDescription(color: LockedFigureColor, strokeStyle?:
|
|
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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./measurer-editor";
|
|
@@ -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.
|
|
6
|
+
"version": "35.4.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.
|
|
40
|
-
"@khanacademy/kmath": "2.4.
|
|
41
|
-
"@khanacademy/math-input": "27.0.
|
|
42
|
-
"@khanacademy/perseus": "83.0
|
|
43
|
-
"@khanacademy/perseus-core": "34.0
|
|
44
|
-
"@khanacademy/perseus-linter": "5.1.
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.81",
|
|
40
|
+
"@khanacademy/kmath": "2.4.40",
|
|
41
|
+
"@khanacademy/math-input": "27.0.1",
|
|
42
|
+
"@khanacademy/perseus": "83.1.0",
|
|
43
|
+
"@khanacademy/perseus-core": "34.1.0",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.1.21",
|
|
45
45
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
/package/dist/widgets/{categorizer-editor.d.ts → categorizer-editor/categorizer-editor.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/widgets/{explanation-editor.d.ts → explanation-editor/explanation-editor.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/widgets/{free-response-editor.d.ts → free-response-editor/free-response-editor.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/widgets/{number-line-editor.d.ts → number-line-editor/number-line-editor.d.ts}
RENAMED
|
File without changes
|
/package/dist/widgets/{numeric-input-editor.d.ts → numeric-input-editor/numeric-input-editor.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|