@khanacademy/perseus-editor 38.1.3 → 40.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.
- package/dist/all-editors.d.ts +49 -9
- package/dist/article-editor.d.ts +2 -1
- package/dist/components/util.d.ts +0 -1
- package/dist/components/widget-editor.d.ts +1 -1
- package/dist/es/index.js +135 -140
- package/dist/es/index.js.map +1 -1
- package/dist/{item-extras-editor.d.ts → extras-editor.d.ts} +2 -2
- package/dist/index.js +134 -139
- package/dist/index.js.map +1 -1
- package/dist/item-editor.d.ts +3 -3
- package/dist/styles/global-colors.d.ts +0 -5
- package/dist/testing/feature-flags-util.d.ts +2 -0
- package/dist/widgets/categorizer-editor/categorizer-editor.d.ts +0 -1
- package/dist/widgets/cs-program-editor/cs-program-editor.d.ts +0 -1
- package/dist/widgets/definition-editor/definition-editor.d.ts +0 -1
- package/dist/widgets/deprecated-standin-editor/deprecated-standin-editor.d.ts +0 -1
- package/dist/widgets/dropdown-editor/dropdown-editor.d.ts +0 -1
- package/dist/widgets/explanation-editor/explanation-editor.d.ts +0 -1
- package/dist/widgets/expression-editor/expression-editor.d.ts +0 -1
- package/dist/widgets/free-response-editor/free-response-editor.d.ts +0 -1
- package/dist/widgets/graded-group-editor/graded-group-editor.d.ts +0 -1
- package/dist/widgets/graded-group-set-editor/graded-group-set-editor.d.ts +0 -1
- package/dist/widgets/grapher-editor/grapher-editor.d.ts +0 -1
- package/dist/widgets/group-editor/group-editor.d.ts +0 -1
- package/dist/widgets/iframe-editor/iframe-editor.d.ts +0 -1
- package/dist/widgets/image-editor/image-editor.d.ts +0 -1
- package/dist/widgets/input-number-editor/input-number-editor.d.ts +0 -1
- package/dist/widgets/interaction-editor/interaction-editor.d.ts +0 -1
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +62 -29
- package/dist/widgets/label-image-editor/label-image-editor.d.ts +0 -1
- package/dist/widgets/label-image-editor/marker.d.ts +5 -19
- package/dist/widgets/matcher-editor/matcher-editor.d.ts +0 -1
- package/dist/widgets/matrix-editor/matrix-editor.d.ts +0 -1
- package/dist/widgets/measurer-editor/measurer-editor.d.ts +0 -1
- package/dist/widgets/number-line-editor/number-line-editor.d.ts +0 -1
- package/dist/widgets/numeric-input-editor/numeric-input-editor.d.ts +0 -1
- package/dist/widgets/orderer-editor/orderer-editor.d.ts +0 -1
- package/dist/widgets/phet-simulation-editor/phet-simulation-editor.d.ts +0 -1
- package/dist/widgets/plotter-editor/plotter-editor.d.ts +0 -1
- package/dist/widgets/python-program-editor/python-program-editor.d.ts +0 -1
- package/dist/widgets/radio-editor/radio-editor.d.ts +0 -1
- package/dist/widgets/sorter-editor/sorter-editor.d.ts +0 -1
- package/dist/widgets/table-editor/table-editor.d.ts +0 -1
- package/dist/widgets/video-editor/video-editor.d.ts +0 -1
- package/package.json +13 -11
- package/dist/components/dropdown-option.d.ts +0 -31
|
@@ -12,7 +12,6 @@ type Props = PerseusPhetSimulationWidgetOptions & {
|
|
|
12
12
|
*/
|
|
13
13
|
declare class PhetSimulationEditor extends React.Component<Props> {
|
|
14
14
|
static defaultProps: PerseusPhetSimulationWidgetOptions;
|
|
15
|
-
static widgetName: "phet-simulation";
|
|
16
15
|
serialize(): PerseusPhetSimulationWidgetOptions;
|
|
17
16
|
getSaveWarnings: () => ReadonlyArray<string>;
|
|
18
17
|
render(): React.ReactNode;
|
|
@@ -33,7 +33,6 @@ type State = {
|
|
|
33
33
|
* An editor for adding a plotter widget that allows users to create and customize data visualizations.
|
|
34
34
|
*/
|
|
35
35
|
declare class PlotterEditor extends React.Component<Props, State> {
|
|
36
|
-
static widgetName: "plotter";
|
|
37
36
|
static defaultProps: PerseusPlotterWidgetOptions;
|
|
38
37
|
state: State;
|
|
39
38
|
UNSAFE_componentWillMount(): void;
|
|
@@ -10,7 +10,6 @@ export declare function validateOptions(height: Props["height"], programID: Prop
|
|
|
10
10
|
* An editor for adding a Python program widget that allows users to write, edit and execute Python code.
|
|
11
11
|
*/
|
|
12
12
|
declare class PythonProgramEditor extends React.Component<Props> {
|
|
13
|
-
static widgetName: "python-program";
|
|
14
13
|
static defaultProps: PerseusPythonProgramWidgetOptions;
|
|
15
14
|
change: (...args: ReadonlyArray<unknown>) => any;
|
|
16
15
|
serialize(): PerseusPythonProgramWidgetOptions;
|
|
@@ -17,7 +17,6 @@ export interface RadioEditorProps {
|
|
|
17
17
|
* An editor for adding a radio widget that allows users to select a single option from multiple choices.
|
|
18
18
|
*/
|
|
19
19
|
declare class RadioEditor extends React.Component<RadioEditorProps> {
|
|
20
|
-
static widgetName: "radio";
|
|
21
20
|
static bestPractices: {
|
|
22
21
|
url: string;
|
|
23
22
|
label: string;
|
|
@@ -10,7 +10,6 @@ type SorterEditorHandle = {
|
|
|
10
10
|
declare const _default: React.ForwardRefExoticComponent<PerseusSorterWidgetOptions & {
|
|
11
11
|
onChange: (newOptions: Partial<PerseusSorterWidgetOptions>, callback?: () => void) => void;
|
|
12
12
|
} & React.RefAttributes<SorterEditorHandle>> & {
|
|
13
|
-
widgetName: "sorter";
|
|
14
13
|
defaultProps: PerseusSorterWidgetOptions;
|
|
15
14
|
};
|
|
16
15
|
export default _default;
|
|
@@ -7,7 +7,6 @@ export interface VideoEditorProps extends PerseusVideoWidgetOptions {
|
|
|
7
7
|
* This is the main editor for this widget, to specify all the options.
|
|
8
8
|
*/
|
|
9
9
|
declare class VideoEditor extends React.Component<VideoEditorProps> {
|
|
10
|
-
static widgetName: "video";
|
|
11
10
|
static defaultProps: PerseusVideoWidgetOptions;
|
|
12
11
|
serialize: () => PerseusVideoWidgetOptions;
|
|
13
12
|
render(): React.ReactNode;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "40.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.
|
|
40
|
-
"@khanacademy/kmath": "2.4.
|
|
41
|
-
"@khanacademy/math-input": "27.0.
|
|
42
|
-
"@khanacademy/perseus": "
|
|
43
|
-
"@khanacademy/perseus-core": "38.
|
|
44
|
-
"@khanacademy/perseus-linter": "5.2.
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.89",
|
|
40
|
+
"@khanacademy/kmath": "2.4.48",
|
|
41
|
+
"@khanacademy/math-input": "27.0.11",
|
|
42
|
+
"@khanacademy/perseus": "86.0.0",
|
|
43
|
+
"@khanacademy/perseus-core": "38.1.1",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.2.2",
|
|
45
45
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@khanacademy/wonder-blocks-button": "11.7.7",
|
|
53
53
|
"@khanacademy/wonder-blocks-clickable": "8.2.9",
|
|
54
54
|
"@khanacademy/wonder-blocks-core": "12.4.4",
|
|
55
|
-
"@khanacademy/wonder-blocks-dropdown": "10.
|
|
55
|
+
"@khanacademy/wonder-blocks-dropdown": "10.12.0",
|
|
56
56
|
"@khanacademy/wonder-blocks-form": "7.6.10",
|
|
57
57
|
"@khanacademy/wonder-blocks-icon": "5.3.23",
|
|
58
58
|
"@khanacademy/wonder-blocks-icon-button": "11.4.5",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@khanacademy/wonder-blocks-layout": "3.1.60",
|
|
61
61
|
"@khanacademy/wonder-blocks-link": "10.3.9",
|
|
62
62
|
"@khanacademy/wonder-blocks-pill": "3.1.73",
|
|
63
|
+
"@khanacademy/wonder-blocks-popover": "6.3.12",
|
|
63
64
|
"@khanacademy/wonder-blocks-switch": "3.4.9",
|
|
64
65
|
"@khanacademy/wonder-blocks-timing": "7.1.0",
|
|
65
66
|
"@khanacademy/wonder-blocks-tokens": "17.3.0",
|
|
@@ -77,14 +78,14 @@
|
|
|
77
78
|
"perseus-build-settings": "0.9.1"
|
|
78
79
|
},
|
|
79
80
|
"peerDependencies": {
|
|
80
|
-
"@khanacademy/mathjax-renderer": "^3.
|
|
81
|
+
"@khanacademy/mathjax-renderer": "^3.2.0",
|
|
81
82
|
"@khanacademy/wonder-blocks-accordion": "^3.1.69",
|
|
82
83
|
"@khanacademy/wonder-blocks-badge": "^1.1.21",
|
|
83
84
|
"@khanacademy/wonder-blocks-banner": "^5.1.11",
|
|
84
85
|
"@khanacademy/wonder-blocks-button": "^11.7.7",
|
|
85
86
|
"@khanacademy/wonder-blocks-clickable": "^8.2.9",
|
|
86
87
|
"@khanacademy/wonder-blocks-core": "^12.4.4",
|
|
87
|
-
"@khanacademy/wonder-blocks-dropdown": "^10.
|
|
88
|
+
"@khanacademy/wonder-blocks-dropdown": "^10.12.0",
|
|
88
89
|
"@khanacademy/wonder-blocks-form": "^7.6.10",
|
|
89
90
|
"@khanacademy/wonder-blocks-icon": "^5.3.23",
|
|
90
91
|
"@khanacademy/wonder-blocks-icon-button": "^11.4.5",
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
"@khanacademy/wonder-blocks-layout": "^3.1.60",
|
|
93
94
|
"@khanacademy/wonder-blocks-link": "^10.3.9",
|
|
94
95
|
"@khanacademy/wonder-blocks-pill": "^3.1.73",
|
|
96
|
+
"@khanacademy/wonder-blocks-popover": "^6.3.12",
|
|
95
97
|
"@khanacademy/wonder-blocks-switch": "^3.4.9",
|
|
96
98
|
"@khanacademy/wonder-blocks-timing": "^7.1.0",
|
|
97
99
|
"@khanacademy/wonder-blocks-tokens": "^17.3.0",
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
},
|
|
109
111
|
"keywords": [],
|
|
110
112
|
"khan": {
|
|
111
|
-
"catalogHash": "
|
|
113
|
+
"catalogHash": "13ae9a40665627de"
|
|
112
114
|
},
|
|
113
115
|
"scripts": {}
|
|
114
116
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type Props = {
|
|
3
|
-
value: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
onDropdownClose?: () => void;
|
|
9
|
-
hideFocusState?: boolean;
|
|
10
|
-
testId?: string;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
};
|
|
13
|
-
declare class Option extends React.Component<Props> {
|
|
14
|
-
node: HTMLDivElement;
|
|
15
|
-
handleKeyDown(event: React.KeyboardEvent<HTMLButtonElement>): void;
|
|
16
|
-
render(): React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
declare class OptionGroup extends React.Component<{
|
|
19
|
-
onSelected: (value: string) => void;
|
|
20
|
-
children?: Array<React.ReactElement<React.ComponentProps<typeof Option>>>;
|
|
21
|
-
selectedValues: Array<string>;
|
|
22
|
-
noMargin?: boolean;
|
|
23
|
-
onDropdownClose?: () => void;
|
|
24
|
-
hideFocusState?: boolean;
|
|
25
|
-
}> {
|
|
26
|
-
focusedElement: Element;
|
|
27
|
-
componentDidMount(): void;
|
|
28
|
-
render(): React.ReactNode;
|
|
29
|
-
}
|
|
30
|
-
export { OptionGroup };
|
|
31
|
-
export default Option;
|