@khanacademy/perseus-editor 9.0.0 → 11.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 +1 -2
- package/dist/components/interactive-graph-settings.d.ts +0 -17
- package/dist/components/start-coords-line.d.ts +8 -0
- package/dist/components/start-coords-multiline.d.ts +9 -0
- package/dist/components/start-coords-settings.d.ts +9 -0
- package/dist/components/util.d.ts +2 -1
- package/dist/components/widget-editor.d.ts +1 -1
- package/dist/es/index.js +419 -754
- package/dist/es/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +411 -750
- package/dist/index.js.map +1 -1
- package/dist/util/object-utils.d.ts +1 -0
- package/dist/widgets/interactive-graph-editor.d.ts +82 -40
- package/package.json +3 -3
- package/dist/components/start-coord-settings.d.ts +0 -9
- package/dist/stateful-article-editor.d.ts +0 -10
- package/dist/widgets/unit-editor.d.ts +0 -33
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { PerseusGraphType, Range, CollinearTuple } from "@khanacademy/perseus";
|
|
3
|
-
type Props = PerseusGraphType & {
|
|
4
|
-
range: [x: Range, y: Range];
|
|
5
|
-
step: [x: number, y: number];
|
|
6
|
-
onChange: (startCoords: CollinearTuple) => void;
|
|
7
|
-
};
|
|
8
|
-
declare const StartCoordSettings: (props: Props) => React.JSX.Element | null;
|
|
9
|
-
export default StartCoordSettings;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renders an ArticleEditor as a non-controlled component.
|
|
3
|
-
*
|
|
4
|
-
* Normally the parent of ArticleEditor must pass it an onChange callback and
|
|
5
|
-
* then respond to any changes by modifying the ArticleEditor props to reflect
|
|
6
|
-
* those changes. With StatefulArticleEditor changes are stored in state so you
|
|
7
|
-
* can query them with serialize.
|
|
8
|
-
*/
|
|
9
|
-
declare const StatefulArticleEditor: any;
|
|
10
|
-
export default StatefulArticleEditor;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const ALL: "all";
|
|
4
|
-
declare const SOME: "some";
|
|
5
|
-
type UnitExampleProps = any;
|
|
6
|
-
type UnitInputEditorProps = any;
|
|
7
|
-
declare class UnitInputEditor extends React.Component<UnitInputEditorProps> {
|
|
8
|
-
parsed: boolean | null | undefined;
|
|
9
|
-
groupId: string;
|
|
10
|
-
original: any | null | undefined;
|
|
11
|
-
static propTypes: {
|
|
12
|
-
value: PropTypes.Requireable<string>;
|
|
13
|
-
acceptingUnits: PropTypes.Requireable<(string | null | undefined)[]>;
|
|
14
|
-
accepting: PropTypes.Requireable<"some" | "all">;
|
|
15
|
-
sigfigs: PropTypes.Requireable<number>;
|
|
16
|
-
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
17
|
-
};
|
|
18
|
-
static widgetName: "unit-input";
|
|
19
|
-
static defaultProps: UnitInputEditorProps;
|
|
20
|
-
constructor(props: UnitExampleProps);
|
|
21
|
-
UNSAFE_componentWillReceiveProps(nextProps: UnitInputEditorProps): void;
|
|
22
|
-
change: (arg1: any, arg2: any, arg3: any) => any;
|
|
23
|
-
handleAcceptingUnitsChange: (arg1: React.ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
-
handleSigfigChange: (arg1: number) => void;
|
|
25
|
-
_checkSigfigValidity: (arg1: number) => boolean;
|
|
26
|
-
_setAccepting: (arg1: typeof SOME | typeof ALL) => void;
|
|
27
|
-
_doOriginal: (arg1: UnitExampleProps) => void;
|
|
28
|
-
onChange: (arg1: React.ChangeEvent<HTMLInputElement>) => void;
|
|
29
|
-
getSaveWarnings: () => ReadonlyArray<string>;
|
|
30
|
-
serialize: () => any;
|
|
31
|
-
render(): React.ReactNode;
|
|
32
|
-
}
|
|
33
|
-
export default UnitInputEditor;
|