@khanacademy/perseus-editor 46.1.1 → 46.1.3
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/components/widget-editor-container.d.ts +1 -2
- package/dist/index.js +901 -919
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +2 -1
- package/dist/widgets/cs-program-editor/cs-program-editor.d.ts +0 -1
- package/dist/widgets/interaction-editor/line-editor.d.ts +0 -1
- package/package.json +7 -7
- package/dist/mixins/changeable.d.ts +0 -28
package/dist/messages.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Issue } from "./components/issues-panel";
|
|
2
|
+
import type { LintHelpLink } from "@khanacademy/perseus-linter";
|
|
2
3
|
export declare const WARNINGS: {
|
|
3
4
|
inaccessibleWidget: (widgetType: string, widgetId: string) => Issue;
|
|
4
|
-
genericLinterWarning: (rule: string, message: string, severity: number | undefined) => Issue;
|
|
5
|
+
genericLinterWarning: (rule: string, message: string, severity: number | undefined, helpLink: LintHelpLink) => Issue;
|
|
5
6
|
texError: (math: string, errorMessage: string, index: number) => Issue;
|
|
6
7
|
};
|
|
@@ -9,7 +9,6 @@ type Props = WidgetEditorProps<PerseusCSProgramWidgetOptions>;
|
|
|
9
9
|
* This is the main editor for this widget, to specify all the options.
|
|
10
10
|
*/
|
|
11
11
|
declare class CSProgramEditor extends React.Component<Props> {
|
|
12
|
-
change: (...args: ReadonlyArray<unknown>) => any;
|
|
13
12
|
handleChange(changed: Partial<PerseusCSProgramWidgetOptions>): void;
|
|
14
13
|
_handleProgramIDChange: (arg1: string) => void;
|
|
15
14
|
render(): React.ReactNode;
|
|
@@ -6,7 +6,6 @@ interface Props extends PerseusInteractionLineElementOptions {
|
|
|
6
6
|
declare class LineEditor extends React.Component<Props> {
|
|
7
7
|
static defaultProps: PerseusInteractionLineElementOptions;
|
|
8
8
|
handleChange(changes: Partial<PerseusInteractionLineElementOptions>): void;
|
|
9
|
-
change: (arg1: any, arg2?: any, arg3?: any) => any;
|
|
10
9
|
render(): React.ReactNode;
|
|
11
10
|
}
|
|
12
11
|
export default LineEditor;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "46.1.
|
|
6
|
+
"version": "46.1.3",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@khanacademy/keypad-context": "6.0.
|
|
28
|
-
"@khanacademy/kmath": "3.1.
|
|
29
|
-
"@khanacademy/math-input": "30.2.
|
|
30
|
-
"@khanacademy/perseus": "95.0
|
|
31
|
-
"@khanacademy/perseus-core": "42.
|
|
32
|
-
"@khanacademy/perseus-linter": "8.
|
|
27
|
+
"@khanacademy/keypad-context": "6.0.17",
|
|
28
|
+
"@khanacademy/kmath": "3.1.10",
|
|
29
|
+
"@khanacademy/math-input": "30.2.7",
|
|
30
|
+
"@khanacademy/perseus": "95.1.0",
|
|
31
|
+
"@khanacademy/perseus-core": "42.6.0",
|
|
32
|
+
"@khanacademy/perseus-linter": "8.3.0",
|
|
33
33
|
"@khanacademy/perseus-utils": "3.0.2",
|
|
34
34
|
"axe-core": "^4.11.0",
|
|
35
35
|
"katex": "0.11.1",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Changeable
|
|
3
|
-
*
|
|
4
|
-
* Adds a this.change() function to a component
|
|
5
|
-
*
|
|
6
|
-
* This.change takes prop changes as parameters, and calls
|
|
7
|
-
* this.props.onChange with the modified props.
|
|
8
|
-
*/
|
|
9
|
-
type ChangeFn = (newPropsOrSinglePropName: string | {
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}, propValue?: any, callback?: () => unknown) => any;
|
|
12
|
-
/**
|
|
13
|
-
* this.change()
|
|
14
|
-
*
|
|
15
|
-
* Can be called as follows:
|
|
16
|
-
* this.change(newProps, callback);
|
|
17
|
-
*
|
|
18
|
-
* this.change(propName, propValue, callback);
|
|
19
|
-
*
|
|
20
|
-
* this.change(propName) -> returns a lambda that takes a prop value to
|
|
21
|
-
* set and a callback to call after having set that value.
|
|
22
|
-
*
|
|
23
|
-
* TODO(LEMS-3245) remove Changeable
|
|
24
|
-
*
|
|
25
|
-
* @deprecated
|
|
26
|
-
*/
|
|
27
|
-
export declare const deprecatedChangeableChange: ChangeFn;
|
|
28
|
-
export {};
|