@khanacademy/perseus-editor 14.11.2 → 14.12.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/article-editor.d.ts +9 -12
- package/dist/editor-page.d.ts +3 -1
- package/dist/es/index.js +65087 -433
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +65093 -430
- package/dist/index.js.map +1 -1
- package/dist/util/deprecated-widgets/input-number.d.ts +8 -0
- package/dist/util/deprecated-widgets/modernize-widgets-utils.d.ts +3 -0
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-figure-aria.d.ts +2 -1
- package/dist/widgets/interactive-graph-editor/locked-figures/util.d.ts +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PerseusRenderer, PerseusWidgetsMap } from "@khanacademy/perseus";
|
|
2
|
+
type WidgetRenameMap = {
|
|
3
|
+
[oldKey: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const inputNumberToNumericInput: (json: PerseusRenderer) => PerseusRenderer;
|
|
6
|
+
export declare const convertInputNumberWidgetOptions: (json: PerseusRenderer, renameMap: WidgetRenameMap) => PerseusWidgetsMap;
|
|
7
|
+
export declare const getInputNumberRenameMap: (json: PerseusRenderer) => WidgetRenameMap;
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
type Props = {
|
|
3
3
|
ariaLabel: string | undefined;
|
|
4
|
-
prePopulatedAriaLabel
|
|
4
|
+
prePopulatedAriaLabel?: string;
|
|
5
|
+
getPrepopulatedAriaLabel?: () => Promise<string>;
|
|
5
6
|
onChangeProps: (props: {
|
|
6
7
|
ariaLabel?: string | undefined;
|
|
7
8
|
}) => void;
|
|
@@ -8,3 +8,4 @@ export declare function getDefaultFigureForType(type: "function"): LockedFunctio
|
|
|
8
8
|
export declare function getDefaultFigureForType(type: "label"): LockedLabelType;
|
|
9
9
|
export declare function getDefaultFigureForType(type: LockedFigureType): LockedFigure;
|
|
10
10
|
export declare function generateLockedFigureAppearanceDescription(color: LockedFigureColor, strokeStyle?: LockedLineStyle, fill?: LockedFigureFillType): string;
|
|
11
|
+
export declare function generateSpokenMathDetails(mathString: string): Promise<string>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "14.
|
|
6
|
+
"version": "14.12.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
"@khanacademy/keypad-context": "^1.0.4",
|
|
39
39
|
"@khanacademy/kmath": "^0.1.16",
|
|
40
40
|
"@khanacademy/math-input": "^21.1.4",
|
|
41
|
-
"@khanacademy/perseus": "^41.
|
|
41
|
+
"@khanacademy/perseus": "^41.5.0",
|
|
42
42
|
"@khanacademy/perseus-core": "1.5.3",
|
|
43
|
+
"@khanacademy/pure-markdown": "^0.3.11",
|
|
43
44
|
"mafs": "^0.19.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|