@khanacademy/perseus-editor 42.1.1 → 43.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 +9 -0
- package/dist/article-editor.d.ts +0 -6
- package/dist/combined-hints-editor.d.ts +13 -14
- package/dist/components/pairs-editor.d.ts +14 -0
- package/dist/components/widget-editor.d.ts +1 -1
- package/dist/components/widget-select.d.ts +2 -0
- package/dist/editor-page.d.ts +0 -11
- package/dist/editor.d.ts +3 -3
- package/dist/es/index.css +1 -1
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +18 -14
- package/dist/es/index.js.map +1 -1
- package/dist/extras-editor.d.ts +0 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +18 -14
- package/dist/index.js.map +1 -1
- package/dist/item-editor.d.ts +0 -1
- package/dist/widgets/cs-program-editor/cs-program-editor.d.ts +3 -3
- package/dist/widgets/definition-editor/definition-editor.d.ts +3 -3
- package/dist/widgets/fill-in-the-blank-editor/fill-in-the-blank-editor.d.ts +17 -0
- package/dist/widgets/fill-in-the-blank-editor/index.d.ts +1 -0
- package/dist/widgets/iframe-editor/iframe-editor.d.ts +1 -2
- package/package.json +34 -34
package/dist/item-editor.d.ts
CHANGED
|
@@ -51,7 +51,6 @@ declare class ItemEditor extends React.Component<Props> {
|
|
|
51
51
|
handleExtrasChange: (newProps: Partial<PerseusAnswerArea>) => void;
|
|
52
52
|
getSaveWarnings: () => any;
|
|
53
53
|
handleA11yReport: (report: A11yReport | null) => void;
|
|
54
|
-
serialize(): PerseusItem;
|
|
55
54
|
render(): React.ReactNode;
|
|
56
55
|
}
|
|
57
56
|
export default ItemEditor;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* This editor is for embedding Khan Academy CS programs.
|
|
3
3
|
*/
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import type { ChangeableProps } from "../../mixins/changeable";
|
|
6
5
|
import type { PerseusCSProgramWidgetOptions } from "@khanacademy/perseus-core";
|
|
7
|
-
interface CSProgramEditorProps extends PerseusCSProgramWidgetOptions
|
|
6
|
+
interface CSProgramEditorProps extends PerseusCSProgramWidgetOptions {
|
|
7
|
+
onChange: (options: PerseusCSProgramWidgetOptions) => void;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* This is the main editor for this widget, to specify all the options.
|
|
11
11
|
*/
|
|
12
12
|
declare class CSProgramEditor extends React.Component<CSProgramEditorProps> {
|
|
13
13
|
change: (...args: ReadonlyArray<unknown>) => any;
|
|
14
|
-
|
|
14
|
+
handleChange(changed: Partial<PerseusCSProgramWidgetOptions>): void;
|
|
15
15
|
_handleProgramIDChange: (arg1: string) => void;
|
|
16
16
|
serialize: () => any;
|
|
17
17
|
render(): React.ReactNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { InitializeWidgetOptionsParams } from "../../editor";
|
|
3
|
-
import type { ChangeableProps } from "../../mixins/changeable";
|
|
4
3
|
import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
|
|
5
4
|
import type { PerseusDefinitionWidgetOptions } from "@khanacademy/perseus-core";
|
|
6
|
-
interface Props extends PerseusDefinitionWidgetOptions
|
|
5
|
+
interface Props extends PerseusDefinitionWidgetOptions {
|
|
7
6
|
apiOptions?: APIOptionsWithDefaults;
|
|
7
|
+
onChange: (options: PerseusDefinitionWidgetOptions) => void;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* An editor for adding an interactive definition widget that allows content
|
|
@@ -13,7 +13,7 @@ interface Props extends PerseusDefinitionWidgetOptions, ChangeableProps {
|
|
|
13
13
|
declare class DefinitionEditor extends React.Component<Props> {
|
|
14
14
|
static defaultProps: PerseusDefinitionWidgetOptions;
|
|
15
15
|
static initializeWidgetOptions(params: InitializeWidgetOptionsParams): PerseusDefinitionWidgetOptions;
|
|
16
|
-
|
|
16
|
+
handleChange(changed: Partial<PerseusDefinitionWidgetOptions>): void;
|
|
17
17
|
serialize: () => any;
|
|
18
18
|
render(): React.ReactNode;
|
|
19
19
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
|
|
3
|
+
import type { PerseusFillInTheBlankWidgetOptions } from "@khanacademy/perseus-core";
|
|
4
|
+
/**
|
|
5
|
+
* Imperative API that WidgetEditor calls
|
|
6
|
+
*/
|
|
7
|
+
type FillInTheBlankEditorHandle = {
|
|
8
|
+
serialize: () => PerseusFillInTheBlankWidgetOptions;
|
|
9
|
+
getSaveWarnings: () => string[];
|
|
10
|
+
};
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<PerseusFillInTheBlankWidgetOptions & {
|
|
12
|
+
onChange: (newOptions: Partial<PerseusFillInTheBlankWidgetOptions>, callback?: () => void) => void;
|
|
13
|
+
apiOptions?: APIOptionsWithDefaults;
|
|
14
|
+
} & React.RefAttributes<FillInTheBlankEditorHandle>> & {
|
|
15
|
+
defaultProps: PerseusFillInTheBlankWidgetOptions;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./fill-in-the-blank-editor";
|
|
@@ -8,8 +8,7 @@ interface IframeEditorProps extends PerseusIFrameWidgetOptions, ChangeableProps
|
|
|
8
8
|
*/
|
|
9
9
|
declare class IframeEditor extends React.Component<IframeEditorProps> {
|
|
10
10
|
static defaultProps: PerseusIFrameWidgetOptions;
|
|
11
|
-
change: (arg1: any
|
|
12
|
-
handleSettingsChange: (arg1: any) => void;
|
|
11
|
+
change: (arg1: any) => any;
|
|
13
12
|
serialize: () => any;
|
|
14
13
|
render(): React.ReactNode;
|
|
15
14
|
}
|
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": "43.0.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -36,35 +36,35 @@
|
|
|
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/
|
|
41
|
-
"@khanacademy/
|
|
42
|
-
"@khanacademy/
|
|
43
|
-
"@khanacademy/
|
|
44
|
-
"@khanacademy/perseus-linter": "5.4.
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.93",
|
|
40
|
+
"@khanacademy/kmath": "2.4.52",
|
|
41
|
+
"@khanacademy/math-input": "27.0.17",
|
|
42
|
+
"@khanacademy/perseus": "87.2.1",
|
|
43
|
+
"@khanacademy/perseus-core": "39.2.1",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.4.2",
|
|
45
45
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@khanacademy/mathjax-renderer": "3.2.0",
|
|
49
|
-
"@khanacademy/wonder-blocks-accordion": "3.2.
|
|
50
|
-
"@khanacademy/wonder-blocks-badge": "1.1.
|
|
51
|
-
"@khanacademy/wonder-blocks-banner": "5.1.
|
|
52
|
-
"@khanacademy/wonder-blocks-button": "11.7.
|
|
53
|
-
"@khanacademy/wonder-blocks-clickable": "8.3.
|
|
49
|
+
"@khanacademy/wonder-blocks-accordion": "3.2.1",
|
|
50
|
+
"@khanacademy/wonder-blocks-badge": "1.1.26",
|
|
51
|
+
"@khanacademy/wonder-blocks-banner": "5.1.16",
|
|
52
|
+
"@khanacademy/wonder-blocks-button": "11.7.12",
|
|
53
|
+
"@khanacademy/wonder-blocks-clickable": "8.3.1",
|
|
54
54
|
"@khanacademy/wonder-blocks-core": "12.5.0",
|
|
55
|
-
"@khanacademy/wonder-blocks-dropdown": "10.12.
|
|
56
|
-
"@khanacademy/wonder-blocks-form": "7.6.
|
|
55
|
+
"@khanacademy/wonder-blocks-dropdown": "10.12.6",
|
|
56
|
+
"@khanacademy/wonder-blocks-form": "7.6.15",
|
|
57
57
|
"@khanacademy/wonder-blocks-icon": "6.0.2",
|
|
58
|
-
"@khanacademy/wonder-blocks-icon-button": "12.0.
|
|
58
|
+
"@khanacademy/wonder-blocks-icon-button": "12.0.1",
|
|
59
59
|
"@khanacademy/wonder-blocks-labeled-field": "4.1.11",
|
|
60
60
|
"@khanacademy/wonder-blocks-layout": "3.1.62",
|
|
61
|
-
"@khanacademy/wonder-blocks-link": "10.4.
|
|
62
|
-
"@khanacademy/wonder-blocks-pill": "3.1.
|
|
63
|
-
"@khanacademy/wonder-blocks-popover": "6.3.
|
|
64
|
-
"@khanacademy/wonder-blocks-switch": "3.4.
|
|
61
|
+
"@khanacademy/wonder-blocks-link": "10.4.1",
|
|
62
|
+
"@khanacademy/wonder-blocks-pill": "3.1.78",
|
|
63
|
+
"@khanacademy/wonder-blocks-popover": "6.3.18",
|
|
64
|
+
"@khanacademy/wonder-blocks-switch": "3.4.14",
|
|
65
65
|
"@khanacademy/wonder-blocks-timing": "7.1.0",
|
|
66
66
|
"@khanacademy/wonder-blocks-tokens": "18.0.0",
|
|
67
|
-
"@khanacademy/wonder-blocks-tooltip": "4.2.
|
|
67
|
+
"@khanacademy/wonder-blocks-tooltip": "4.2.7",
|
|
68
68
|
"@khanacademy/wonder-blocks-typography": "5.0.5",
|
|
69
69
|
"@khanacademy/wonder-stuff-core": "3.0.0",
|
|
70
70
|
"@phosphor-icons/core": "2.0.2",
|
|
@@ -79,25 +79,25 @@
|
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@khanacademy/mathjax-renderer": "^3.2.0",
|
|
82
|
-
"@khanacademy/wonder-blocks-accordion": "^3.2.
|
|
83
|
-
"@khanacademy/wonder-blocks-badge": "^1.1.
|
|
84
|
-
"@khanacademy/wonder-blocks-banner": "^5.1.
|
|
85
|
-
"@khanacademy/wonder-blocks-button": "^11.7.
|
|
86
|
-
"@khanacademy/wonder-blocks-clickable": "^8.3.
|
|
82
|
+
"@khanacademy/wonder-blocks-accordion": "^3.2.1",
|
|
83
|
+
"@khanacademy/wonder-blocks-badge": "^1.1.26",
|
|
84
|
+
"@khanacademy/wonder-blocks-banner": "^5.1.16",
|
|
85
|
+
"@khanacademy/wonder-blocks-button": "^11.7.12",
|
|
86
|
+
"@khanacademy/wonder-blocks-clickable": "^8.3.1",
|
|
87
87
|
"@khanacademy/wonder-blocks-core": "^12.5.0",
|
|
88
|
-
"@khanacademy/wonder-blocks-dropdown": "^10.12.
|
|
89
|
-
"@khanacademy/wonder-blocks-form": "^7.6.
|
|
88
|
+
"@khanacademy/wonder-blocks-dropdown": "^10.12.6",
|
|
89
|
+
"@khanacademy/wonder-blocks-form": "^7.6.15",
|
|
90
90
|
"@khanacademy/wonder-blocks-icon": "^6.0.2",
|
|
91
|
-
"@khanacademy/wonder-blocks-icon-button": "^12.0.
|
|
91
|
+
"@khanacademy/wonder-blocks-icon-button": "^12.0.1",
|
|
92
92
|
"@khanacademy/wonder-blocks-labeled-field": "^4.1.11",
|
|
93
93
|
"@khanacademy/wonder-blocks-layout": "^3.1.62",
|
|
94
|
-
"@khanacademy/wonder-blocks-link": "^10.4.
|
|
95
|
-
"@khanacademy/wonder-blocks-pill": "^3.1.
|
|
96
|
-
"@khanacademy/wonder-blocks-popover": "^6.3.
|
|
97
|
-
"@khanacademy/wonder-blocks-switch": "^3.4.
|
|
94
|
+
"@khanacademy/wonder-blocks-link": "^10.4.1",
|
|
95
|
+
"@khanacademy/wonder-blocks-pill": "^3.1.78",
|
|
96
|
+
"@khanacademy/wonder-blocks-popover": "^6.3.18",
|
|
97
|
+
"@khanacademy/wonder-blocks-switch": "^3.4.14",
|
|
98
98
|
"@khanacademy/wonder-blocks-timing": "^7.1.0",
|
|
99
99
|
"@khanacademy/wonder-blocks-tokens": "^18.0.0",
|
|
100
|
-
"@khanacademy/wonder-blocks-tooltip": "^4.2.
|
|
100
|
+
"@khanacademy/wonder-blocks-tooltip": "^4.2.7",
|
|
101
101
|
"@khanacademy/wonder-blocks-typography": "^5.0.5",
|
|
102
102
|
"@khanacademy/wonder-stuff-core": "^3.0.0",
|
|
103
103
|
"@phosphor-icons/core": "^2.0.2",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
},
|
|
111
111
|
"keywords": [],
|
|
112
112
|
"khan": {
|
|
113
|
-
"catalogHash": "
|
|
113
|
+
"catalogHash": "805fca55165d3d1f"
|
|
114
114
|
},
|
|
115
115
|
"scripts": {}
|
|
116
116
|
}
|