@khanacademy/perseus 31.0.1 → 32.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/components/input-with-examples.d.ts +1 -1
- package/dist/components/number-input.d.ts +1 -1
- package/dist/components/range-input.d.ts +1 -1
- package/dist/components/sortable.d.ts +5 -5
- package/dist/components/text-input.d.ts +1 -1
- package/dist/components/text-list-editor.d.ts +1 -1
- package/dist/es/index.css +1 -1
- package/dist/es/index.js +615 -535
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1450 -1369
- package/dist/index.js.map +1 -1
- package/dist/perseus-types.d.ts +1 -10
- package/dist/widget-container.d.ts +1 -1
- package/dist/widgets/__shared__/test-keypad-context-wrapper.d.ts +6 -0
- package/dist/widgets/{categorizer.d.ts → categorizer/categorizer.d.ts} +14 -14
- package/dist/widgets/categorizer/index.d.ts +1 -0
- package/dist/widgets/{cs-program.d.ts → cs-program/cs-program.d.ts} +7 -7
- package/dist/widgets/cs-program/index.d.ts +1 -0
- package/dist/widgets/{definition.d.ts → definition/definition.d.ts} +11 -11
- package/dist/widgets/definition/index.d.ts +1 -0
- package/dist/widgets/{dropdown.d.ts → dropdown/dropdown.d.ts} +9 -9
- package/dist/widgets/dropdown/index.d.ts +1 -0
- package/dist/widgets/{explanation.d.ts → explanation/explanation.d.ts} +14 -14
- package/dist/widgets/explanation/index.d.ts +1 -0
- package/dist/widgets/{expression.d.ts → expression/expression.d.ts} +66 -66
- package/dist/widgets/expression/index.d.ts +1 -0
- package/dist/widgets/{graded-group-answer-bar.d.ts → graded-group/graded-group-answer-bar.d.ts} +3 -3
- package/dist/widgets/{graded-group.d.ts → graded-group/graded-group.d.ts} +11 -11
- package/dist/widgets/graded-group/index.d.ts +1 -0
- package/dist/widgets/{graded-group-set.d.ts → graded-group-set/graded-group-set.d.ts} +11 -11
- package/dist/widgets/graded-group-set/index.d.ts +1 -0
- package/dist/widgets/{grapher.d.ts → grapher/grapher.d.ts} +15 -15
- package/dist/widgets/grapher/index.d.ts +1 -0
- package/dist/widgets/{group.d.ts → group/group.d.ts} +12 -12
- package/dist/widgets/group/index.d.ts +1 -0
- package/dist/widgets/{iframe.d.ts → iframe/iframe.d.ts} +10 -10
- package/dist/widgets/iframe/index.d.ts +1 -0
- package/dist/widgets/{image.d.ts → image/image.d.ts} +12 -12
- package/dist/widgets/image/index.d.ts +1 -0
- package/dist/widgets/input-number/index.d.ts +1 -0
- package/dist/widgets/{input-number.d.ts → input-number/input-number.d.ts} +19 -19
- package/dist/widgets/interaction/index.d.ts +1 -0
- package/dist/widgets/{interaction.d.ts → interaction/interaction.d.ts} +12 -12
- package/dist/widgets/interactive-graphs/graphs/components/movable-point-view.d.ts +8 -4
- package/dist/widgets/interactive-graphs/graphs/components/movable-point.d.ts +2 -1
- package/dist/widgets/interactive-graphs/reducer/interactive-graph-action.d.ts +29 -1
- package/dist/widgets/interactive-graphs/types.d.ts +1 -0
- package/dist/widgets/label-image/index.d.ts +1 -0
- package/dist/widgets/{label-image.d.ts → label-image/label-image.d.ts} +24 -24
- package/dist/widgets/matcher/index.d.ts +1 -0
- package/dist/widgets/{matcher.d.ts → matcher/matcher.d.ts} +11 -11
- package/dist/widgets/matrix/index.d.ts +1 -0
- package/dist/widgets/{matrix.d.ts → matrix/matrix.d.ts} +12 -12
- package/dist/widgets/measurer/index.d.ts +1 -0
- package/dist/widgets/measurer/measurer.d.ts +21 -0
- package/dist/widgets/molecule/index.d.ts +1 -0
- package/dist/widgets/{molecule.d.ts → molecule/molecule.d.ts} +10 -10
- package/dist/widgets/number-line/index.d.ts +1 -0
- package/dist/widgets/{number-line.d.ts → number-line/number-line.d.ts} +11 -11
- package/dist/widgets/numeric-input/index.d.ts +1 -0
- package/dist/widgets/{numeric-input.d.ts → numeric-input/numeric-input.d.ts} +13 -13
- package/dist/widgets/orderer/index.d.ts +1 -0
- package/dist/widgets/{orderer.d.ts → orderer/orderer.d.ts} +10 -10
- package/dist/widgets/passage/index.d.ts +2 -0
- package/dist/widgets/{passage.d.ts → passage/passage.d.ts} +15 -15
- package/dist/widgets/passage-ref/index.d.ts +1 -0
- package/dist/widgets/{passage-ref.d.ts → passage-ref/passage-ref.d.ts} +16 -16
- package/dist/widgets/passage-ref-target/index.d.ts +1 -0
- package/dist/widgets/{passage-ref-target.d.ts → passage-ref-target/passage-ref-target.d.ts} +12 -12
- package/dist/widgets/phet-simulation/index.d.ts +1 -0
- package/dist/widgets/{phet-simulation.d.ts → phet-simulation/phet-simulation.d.ts} +13 -15
- package/dist/widgets/plotter/index.d.ts +1 -0
- package/dist/widgets/{plotter.d.ts → plotter/plotter.d.ts} +11 -11
- package/dist/widgets/python-program/index.d.ts +1 -0
- package/dist/widgets/{python-program.d.ts → python-program/python-program.d.ts} +7 -7
- package/dist/widgets/radio/index.d.ts +2 -0
- package/dist/widgets/radio/radio-component.d.ts +66 -0
- package/dist/widgets/radio/radio.d.ts +22 -66
- package/dist/widgets/sorter/index.d.ts +1 -0
- package/dist/widgets/{sorter.d.ts → sorter/sorter.d.ts} +8 -8
- package/dist/widgets/table/index.d.ts +1 -0
- package/dist/widgets/{table.d.ts → table/table.d.ts} +10 -10
- package/dist/widgets/video/index.d.ts +1 -0
- package/dist/widgets/{video.d.ts → video/video.d.ts} +11 -11
- package/package.json +45 -45
- package/dist/widgets/measurer.d.ts +0 -21
- package/dist/widgets/radio.d.ts +0 -22
- /package/dist/widgets/{video-transcript-link.d.ts → video/video-transcript-link.d.ts} +0 -0
|
@@ -1,66 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
noneOfTheAboveIndex?: number | null | undefined;
|
|
24
|
-
noneOfTheAboveSelected?: boolean;
|
|
25
|
-
};
|
|
26
|
-
type Rubric = PerseusRadioWidgetOptions;
|
|
27
|
-
type Props = WidgetProps<RenderProps, Rubric>;
|
|
28
|
-
type DefaultProps = Required<Pick<Props, "choices" | "multipleSelect" | "countChoices" | "deselectEnabled" | "linterContext" | "showSolutions">>;
|
|
29
|
-
export type RadioChoiceWithMetadata = PerseusRadioChoice & {
|
|
30
|
-
originalIndex: number;
|
|
31
|
-
correct: boolean;
|
|
32
|
-
};
|
|
33
|
-
declare class Radio extends React.Component<Props> {
|
|
34
|
-
static contextType: React.Context<{
|
|
35
|
-
strings: PerseusStrings;
|
|
36
|
-
locale: string;
|
|
37
|
-
}>;
|
|
38
|
-
context: React.ContextType<typeof PerseusI18nContext>;
|
|
39
|
-
focusFunction: FocusFunction;
|
|
40
|
-
static defaultProps: DefaultProps;
|
|
41
|
-
static validate(userInput: UserInput, rubric: Rubric, strings: PerseusStrings): PerseusScore;
|
|
42
|
-
static getUserInputFromProps(props: Props): UserInput;
|
|
43
|
-
componentDidUpdate(prevProps: Props): void;
|
|
44
|
-
_renderRenderer: (content?: string) => React.ReactElement;
|
|
45
|
-
focus(choiceIndex?: number | null): boolean;
|
|
46
|
-
registerFocusFunction(fun: FocusFunction): void;
|
|
47
|
-
updateChoices: (newValueLists: Readonly<{
|
|
48
|
-
checked: ReadonlyArray<boolean>;
|
|
49
|
-
crossedOut: ReadonlyArray<boolean>;
|
|
50
|
-
}>) => void;
|
|
51
|
-
getUserInput: () => UserInput;
|
|
52
|
-
simpleValidate: (arg1: PerseusRadioWidgetOptions) => PerseusScore;
|
|
53
|
-
/**
|
|
54
|
-
* Turn on rationale display for the currently selected choices. Note that
|
|
55
|
-
* this leaves rationales on for choices that are already showing
|
|
56
|
-
* rationales.
|
|
57
|
-
* @deprecated Internal only. Use `showSolutions` prop instead.
|
|
58
|
-
*/
|
|
59
|
-
showRationalesForCurrentlySelectedChoices: (arg1: PerseusRadioWidgetOptions) => void;
|
|
60
|
-
/**
|
|
61
|
-
* Deselects any currently-selected choices that are not correct choices.
|
|
62
|
-
*/
|
|
63
|
-
deselectIncorrectSelectedChoices: () => void;
|
|
64
|
-
render(): React.ReactNode;
|
|
65
|
-
}
|
|
66
|
-
export default Radio;
|
|
1
|
+
import Radio from "./radio-component";
|
|
2
|
+
declare const _default: Readonly<{
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
getWidget?: (() => typeof Radio) | undefined;
|
|
6
|
+
widget: typeof Radio;
|
|
7
|
+
accessible?: boolean | ((props: any) => boolean) | undefined;
|
|
8
|
+
hidden?: boolean | undefined;
|
|
9
|
+
version?: import("../../types").Version | undefined;
|
|
10
|
+
supportedAlignments?: readonly import("../../types").Alignment[] | undefined;
|
|
11
|
+
defaultAlignment?: import("../../types").Alignment | undefined;
|
|
12
|
+
getDefaultAlignment?: (() => import("../../types").Alignment) | undefined;
|
|
13
|
+
isLintable?: boolean | undefined;
|
|
14
|
+
tracking?: import("../../types").Tracking | undefined;
|
|
15
|
+
traverseChildWidgets?: any;
|
|
16
|
+
transform?: import("../../types").WidgetTransform | undefined;
|
|
17
|
+
staticTransform?: import("../../types").WidgetTransform | undefined;
|
|
18
|
+
propUpgrades?: {
|
|
19
|
+
[key: string]: (arg1: any) => any;
|
|
20
|
+
} | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./sorter";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import type { SortableOption } from "
|
|
3
|
+
import type { SortableOption } from "../../components/sortable";
|
|
4
4
|
declare class Sorter extends React.Component<any, any> {
|
|
5
5
|
_isMounted: boolean;
|
|
6
6
|
static propTypes: {
|
|
@@ -64,15 +64,15 @@ declare const _default: Readonly<{
|
|
|
64
64
|
widget: typeof Sorter;
|
|
65
65
|
accessible?: boolean | ((props: any) => boolean) | undefined;
|
|
66
66
|
hidden?: boolean | undefined;
|
|
67
|
-
version?: import("
|
|
68
|
-
supportedAlignments?: readonly import("
|
|
69
|
-
defaultAlignment?: import("
|
|
70
|
-
getDefaultAlignment?: (() => import("
|
|
67
|
+
version?: import("../../types").Version | undefined;
|
|
68
|
+
supportedAlignments?: readonly import("../../types").Alignment[] | undefined;
|
|
69
|
+
defaultAlignment?: import("../../types").Alignment | undefined;
|
|
70
|
+
getDefaultAlignment?: (() => import("../../types").Alignment) | undefined;
|
|
71
71
|
isLintable?: boolean | undefined;
|
|
72
|
-
tracking?: import("
|
|
72
|
+
tracking?: import("../../types").Tracking | undefined;
|
|
73
73
|
traverseChildWidgets?: any;
|
|
74
|
-
transform?: import("
|
|
75
|
-
staticTransform?: import("
|
|
74
|
+
transform?: import("../../types").WidgetTransform | undefined;
|
|
75
|
+
staticTransform?: import("../../types").WidgetTransform | undefined;
|
|
76
76
|
propUpgrades?: {
|
|
77
77
|
[key: string]: (arg1: any) => any;
|
|
78
78
|
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./table";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from "prop-types";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { PerseusI18nContext } from "
|
|
4
|
-
import type { PerseusStrings } from "
|
|
3
|
+
import { PerseusI18nContext } from "../../components/i18n-context";
|
|
4
|
+
import type { PerseusStrings } from "../../strings";
|
|
5
5
|
declare class Table extends React.Component<any> {
|
|
6
6
|
static contextType: React.Context<{
|
|
7
7
|
strings: PerseusStrings;
|
|
@@ -32,7 +32,6 @@ declare class Table extends React.Component<any> {
|
|
|
32
32
|
static defaultProps: any;
|
|
33
33
|
_getRows: () => number;
|
|
34
34
|
_getColumns: () => number;
|
|
35
|
-
render(): React.ReactNode;
|
|
36
35
|
getUserInput: () => any;
|
|
37
36
|
onValueChange: (arg1: any, arg2: any, arg3: any) => void;
|
|
38
37
|
onHeaderChange: (arg1: number, arg2: any) => void;
|
|
@@ -46,6 +45,7 @@ declare class Table extends React.Component<any> {
|
|
|
46
45
|
getInputPaths: () => ReadonlyArray<ReadonlyArray<string>>;
|
|
47
46
|
getGrammarTypeForPath: (arg1: any) => string;
|
|
48
47
|
setInputValue: (arg1: any, arg2: any, arg3: any) => void;
|
|
48
|
+
render(): React.ReactNode;
|
|
49
49
|
}
|
|
50
50
|
declare const _default: Readonly<{
|
|
51
51
|
name: string;
|
|
@@ -54,15 +54,15 @@ declare const _default: Readonly<{
|
|
|
54
54
|
widget: typeof Table;
|
|
55
55
|
accessible?: boolean | ((props: any) => boolean) | undefined;
|
|
56
56
|
hidden?: boolean | undefined;
|
|
57
|
-
version?: import("
|
|
58
|
-
supportedAlignments?: readonly import("
|
|
59
|
-
defaultAlignment?: import("
|
|
60
|
-
getDefaultAlignment?: (() => import("
|
|
57
|
+
version?: import("../../types").Version | undefined;
|
|
58
|
+
supportedAlignments?: readonly import("../../types").Alignment[] | undefined;
|
|
59
|
+
defaultAlignment?: import("../../types").Alignment | undefined;
|
|
60
|
+
getDefaultAlignment?: (() => import("../../types").Alignment) | undefined;
|
|
61
61
|
isLintable?: boolean | undefined;
|
|
62
|
-
tracking?: import("
|
|
62
|
+
tracking?: import("../../types").Tracking | undefined;
|
|
63
63
|
traverseChildWidgets?: any;
|
|
64
|
-
transform?: import("
|
|
65
|
-
staticTransform?: import("
|
|
64
|
+
transform?: import("../../types").WidgetTransform | undefined;
|
|
65
|
+
staticTransform?: import("../../types").WidgetTransform | undefined;
|
|
66
66
|
propUpgrades?: {
|
|
67
67
|
[key: string]: (arg1: any) => any;
|
|
68
68
|
} | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./video";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* This is a video widget for embedding videos in articles.
|
|
3
3
|
*/
|
|
4
4
|
import * as React from "react";
|
|
5
|
-
import { PerseusI18nContext } from "
|
|
6
|
-
import type { PerseusVideoWidgetOptions } from "
|
|
7
|
-
import type { PerseusScore, WidgetProps } from "
|
|
5
|
+
import { PerseusI18nContext } from "../../components/i18n-context";
|
|
6
|
+
import type { PerseusVideoWidgetOptions } from "../../perseus-types";
|
|
7
|
+
import type { PerseusScore, WidgetProps } from "../../types";
|
|
8
8
|
type UserInput = null;
|
|
9
9
|
type Rubric = PerseusVideoWidgetOptions;
|
|
10
10
|
type RenderProps = PerseusVideoWidgetOptions;
|
|
@@ -16,7 +16,7 @@ type Props = WidgetProps<RenderProps, Rubric> & {
|
|
|
16
16
|
*/
|
|
17
17
|
declare class Video extends React.Component<Props> {
|
|
18
18
|
static contextType: React.Context<{
|
|
19
|
-
strings: import("
|
|
19
|
+
strings: import("../../strings").PerseusStrings;
|
|
20
20
|
locale: string;
|
|
21
21
|
}>;
|
|
22
22
|
context: React.ContextType<typeof PerseusI18nContext>;
|
|
@@ -38,15 +38,15 @@ declare const _default: Readonly<{
|
|
|
38
38
|
widget: typeof Video;
|
|
39
39
|
accessible?: boolean | ((props: any) => boolean) | undefined;
|
|
40
40
|
hidden?: boolean | undefined;
|
|
41
|
-
version?: import("
|
|
42
|
-
supportedAlignments?: readonly import("
|
|
43
|
-
defaultAlignment?: import("
|
|
44
|
-
getDefaultAlignment?: (() => import("
|
|
41
|
+
version?: import("../../types").Version | undefined;
|
|
42
|
+
supportedAlignments?: readonly import("../../types").Alignment[] | undefined;
|
|
43
|
+
defaultAlignment?: import("../../types").Alignment | undefined;
|
|
44
|
+
getDefaultAlignment?: (() => import("../../types").Alignment) | undefined;
|
|
45
45
|
isLintable?: boolean | undefined;
|
|
46
|
-
tracking?: import("
|
|
46
|
+
tracking?: import("../../types").Tracking | undefined;
|
|
47
47
|
traverseChildWidgets?: any;
|
|
48
|
-
transform?: import("
|
|
49
|
-
staticTransform?: import("
|
|
48
|
+
transform?: import("../../types").WidgetTransform | undefined;
|
|
49
|
+
staticTransform?: import("../../types").WidgetTransform | undefined;
|
|
50
50
|
propUpgrades?: {
|
|
51
51
|
[key: string]: (arg1: any) => any;
|
|
52
52
|
} | undefined;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "32.0.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -41,36 +41,36 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@khanacademy/kas": "^0.3.12",
|
|
44
|
+
"@khanacademy/keypad-context": "^1.0.1",
|
|
44
45
|
"@khanacademy/kmath": "^0.1.13",
|
|
45
|
-
"@khanacademy/
|
|
46
|
-
"@khanacademy/math-input": "^21.0.1",
|
|
46
|
+
"@khanacademy/math-input": "^21.0.2",
|
|
47
47
|
"@khanacademy/perseus-core": "1.5.0",
|
|
48
48
|
"@khanacademy/perseus-linter": "^1.2.0",
|
|
49
|
-
"@khanacademy/pure-markdown": "^0.3.
|
|
50
|
-
"@khanacademy/simple-markdown": "^0.13.
|
|
49
|
+
"@khanacademy/pure-markdown": "^0.3.8",
|
|
50
|
+
"@khanacademy/simple-markdown": "^0.13.1",
|
|
51
51
|
"@use-gesture/react": "^10.2.27",
|
|
52
52
|
"mafs": "0.19.0",
|
|
53
53
|
"uuid": "^10.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@khanacademy/wonder-blocks-banner": "3.
|
|
57
|
-
"@khanacademy/wonder-blocks-button": "6.3.
|
|
58
|
-
"@khanacademy/wonder-blocks-clickable": "4.2.
|
|
59
|
-
"@khanacademy/wonder-blocks-core": "6.4.
|
|
60
|
-
"@khanacademy/wonder-blocks-data": "13.0.
|
|
61
|
-
"@khanacademy/wonder-blocks-dropdown": "5.
|
|
62
|
-
"@khanacademy/wonder-blocks-form": "
|
|
63
|
-
"@khanacademy/wonder-blocks-icon": "4.1.
|
|
64
|
-
"@khanacademy/wonder-blocks-icon-button": "5.
|
|
65
|
-
"@khanacademy/wonder-blocks-layout": "2.
|
|
66
|
-
"@khanacademy/wonder-blocks-link": "6.1.
|
|
67
|
-
"@khanacademy/wonder-blocks-pill": "2.
|
|
68
|
-
"@khanacademy/wonder-blocks-popover": "3.2.
|
|
69
|
-
"@khanacademy/wonder-blocks-progress-spinner": "2.1.
|
|
70
|
-
"@khanacademy/wonder-blocks-switch": "1.1.
|
|
71
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
72
|
-
"@khanacademy/wonder-blocks-tooltip": "2.
|
|
73
|
-
"@khanacademy/wonder-blocks-typography": "2.1.
|
|
56
|
+
"@khanacademy/wonder-blocks-banner": "3.1.7",
|
|
57
|
+
"@khanacademy/wonder-blocks-button": "6.3.8",
|
|
58
|
+
"@khanacademy/wonder-blocks-clickable": "4.2.6",
|
|
59
|
+
"@khanacademy/wonder-blocks-core": "6.4.3",
|
|
60
|
+
"@khanacademy/wonder-blocks-data": "13.0.10",
|
|
61
|
+
"@khanacademy/wonder-blocks-dropdown": "5.4.5",
|
|
62
|
+
"@khanacademy/wonder-blocks-form": "4.9.0",
|
|
63
|
+
"@khanacademy/wonder-blocks-icon": "4.1.3",
|
|
64
|
+
"@khanacademy/wonder-blocks-icon-button": "5.3.4",
|
|
65
|
+
"@khanacademy/wonder-blocks-layout": "2.1.3",
|
|
66
|
+
"@khanacademy/wonder-blocks-link": "6.1.6",
|
|
67
|
+
"@khanacademy/wonder-blocks-pill": "2.4.5",
|
|
68
|
+
"@khanacademy/wonder-blocks-popover": "3.2.13",
|
|
69
|
+
"@khanacademy/wonder-blocks-progress-spinner": "2.1.5",
|
|
70
|
+
"@khanacademy/wonder-blocks-switch": "1.1.20",
|
|
71
|
+
"@khanacademy/wonder-blocks-tokens": "2.0.0",
|
|
72
|
+
"@khanacademy/wonder-blocks-tooltip": "2.4.0",
|
|
73
|
+
"@khanacademy/wonder-blocks-typography": "2.1.14",
|
|
74
74
|
"@khanacademy/wonder-stuff-core": "1.5.2",
|
|
75
75
|
"@phosphor-icons/core": "^2.0.2",
|
|
76
76
|
"@popperjs/core": "^2.10.2",
|
|
@@ -82,30 +82,30 @@
|
|
|
82
82
|
"lodash.debounce": "^4.0.8",
|
|
83
83
|
"perseus-build-settings": "^0.4.1",
|
|
84
84
|
"prop-types": "15.6.1",
|
|
85
|
-
"react": "
|
|
86
|
-
"react-dom": "
|
|
85
|
+
"react": "^18.2.0",
|
|
86
|
+
"react-dom": "^18.2.0",
|
|
87
87
|
"react-popper": "^2.2.5",
|
|
88
88
|
"underscore": "^1.4.4"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@khanacademy/wonder-blocks-banner": "3.
|
|
92
|
-
"@khanacademy/wonder-blocks-button": "6.3.
|
|
93
|
-
"@khanacademy/wonder-blocks-clickable": "4.2.
|
|
94
|
-
"@khanacademy/wonder-blocks-core": "6.4.
|
|
95
|
-
"@khanacademy/wonder-blocks-data": "13.0.
|
|
96
|
-
"@khanacademy/wonder-blocks-dropdown": "5.
|
|
97
|
-
"@khanacademy/wonder-blocks-form": "
|
|
98
|
-
"@khanacademy/wonder-blocks-icon": "4.1.
|
|
99
|
-
"@khanacademy/wonder-blocks-icon-button": "5.
|
|
100
|
-
"@khanacademy/wonder-blocks-layout": "2.
|
|
101
|
-
"@khanacademy/wonder-blocks-link": "6.1.
|
|
102
|
-
"@khanacademy/wonder-blocks-pill": "2.
|
|
103
|
-
"@khanacademy/wonder-blocks-popover": "3.2.
|
|
104
|
-
"@khanacademy/wonder-blocks-progress-spinner": "2.1.
|
|
105
|
-
"@khanacademy/wonder-blocks-switch": "1.1.
|
|
106
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
107
|
-
"@khanacademy/wonder-blocks-tooltip": "2.
|
|
108
|
-
"@khanacademy/wonder-blocks-typography": "2.1.
|
|
91
|
+
"@khanacademy/wonder-blocks-banner": "3.1.7",
|
|
92
|
+
"@khanacademy/wonder-blocks-button": "6.3.8",
|
|
93
|
+
"@khanacademy/wonder-blocks-clickable": "4.2.6",
|
|
94
|
+
"@khanacademy/wonder-blocks-core": "6.4.3",
|
|
95
|
+
"@khanacademy/wonder-blocks-data": "13.0.10",
|
|
96
|
+
"@khanacademy/wonder-blocks-dropdown": "5.4.5",
|
|
97
|
+
"@khanacademy/wonder-blocks-form": "4.9.0",
|
|
98
|
+
"@khanacademy/wonder-blocks-icon": "4.1.3",
|
|
99
|
+
"@khanacademy/wonder-blocks-icon-button": "5.3.4",
|
|
100
|
+
"@khanacademy/wonder-blocks-layout": "2.1.3",
|
|
101
|
+
"@khanacademy/wonder-blocks-link": "6.1.6",
|
|
102
|
+
"@khanacademy/wonder-blocks-pill": "2.4.5",
|
|
103
|
+
"@khanacademy/wonder-blocks-popover": "3.2.13",
|
|
104
|
+
"@khanacademy/wonder-blocks-progress-spinner": "2.1.5",
|
|
105
|
+
"@khanacademy/wonder-blocks-switch": "1.1.20",
|
|
106
|
+
"@khanacademy/wonder-blocks-tokens": "2.0.0",
|
|
107
|
+
"@khanacademy/wonder-blocks-tooltip": "2.4.0",
|
|
108
|
+
"@khanacademy/wonder-blocks-typography": "2.1.14",
|
|
109
109
|
"@khanacademy/wonder-stuff-core": "1.5.2",
|
|
110
110
|
"@phosphor-icons/core": "^2.0.2",
|
|
111
111
|
"@popperjs/core": "^2.10.2",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
"jquery": "^2.1.1",
|
|
117
117
|
"lodash.debounce": "^4.0.8",
|
|
118
118
|
"prop-types": "15.6.1",
|
|
119
|
-
"react": "
|
|
120
|
-
"react-dom": "
|
|
119
|
+
"react": "^18.2.0",
|
|
120
|
+
"react-dom": "^18.2.0",
|
|
121
121
|
"react-popper": "^2.2.5",
|
|
122
122
|
"underscore": "^1.4.4"
|
|
123
123
|
},
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare const _default: Readonly<{
|
|
2
|
-
name: string;
|
|
3
|
-
displayName: string;
|
|
4
|
-
getWidget?: (() => any) | undefined;
|
|
5
|
-
widget: any;
|
|
6
|
-
accessible?: boolean | ((props: any) => boolean) | undefined;
|
|
7
|
-
hidden?: boolean | undefined;
|
|
8
|
-
version?: import("../types").Version | undefined;
|
|
9
|
-
supportedAlignments?: readonly import("../types").Alignment[] | undefined;
|
|
10
|
-
defaultAlignment?: import("../types").Alignment | undefined;
|
|
11
|
-
getDefaultAlignment?: (() => import("../types").Alignment) | undefined;
|
|
12
|
-
isLintable?: boolean | undefined;
|
|
13
|
-
tracking?: import("../types").Tracking | undefined;
|
|
14
|
-
traverseChildWidgets?: any;
|
|
15
|
-
transform?: import("../types").WidgetTransform | undefined;
|
|
16
|
-
staticTransform?: import("../types").WidgetTransform | undefined;
|
|
17
|
-
propUpgrades?: {
|
|
18
|
-
[key: string]: (arg1: any) => any;
|
|
19
|
-
} | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export default _default;
|
package/dist/widgets/radio.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Radio from "./radio/radio";
|
|
2
|
-
declare const _default: Readonly<{
|
|
3
|
-
name: string;
|
|
4
|
-
displayName: string;
|
|
5
|
-
getWidget?: (() => typeof Radio) | undefined;
|
|
6
|
-
widget: typeof Radio;
|
|
7
|
-
accessible?: boolean | ((props: any) => boolean) | undefined;
|
|
8
|
-
hidden?: boolean | undefined;
|
|
9
|
-
version?: import("../types").Version | undefined;
|
|
10
|
-
supportedAlignments?: readonly import("../types").Alignment[] | undefined;
|
|
11
|
-
defaultAlignment?: import("../types").Alignment | undefined;
|
|
12
|
-
getDefaultAlignment?: (() => import("../types").Alignment) | undefined;
|
|
13
|
-
isLintable?: boolean | undefined;
|
|
14
|
-
tracking?: import("../types").Tracking | undefined;
|
|
15
|
-
traverseChildWidgets?: any;
|
|
16
|
-
transform?: import("../types").WidgetTransform | undefined;
|
|
17
|
-
staticTransform?: import("../types").WidgetTransform | undefined;
|
|
18
|
-
propUpgrades?: {
|
|
19
|
-
[key: string]: (arg1: any) => any;
|
|
20
|
-
} | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
export default _default;
|
|
File without changes
|