@khanacademy/perseus 66.2.2 → 66.4.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/es/index.css +13 -1
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +55 -55
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +13 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +57 -54
- package/dist/index.js.map +1 -1
- package/dist/widget-ai-utils/categorizer/categorizer-ai-utils.d.ts +1 -1
- package/dist/widget-ai-utils/matrix/matrix-ai-utils.d.ts +1 -1
- package/dist/widgets/categorizer/categorizer.d.ts +3 -7
- package/dist/widgets/dropdown/dropdown.d.ts +10 -10
- package/dist/widgets/expression/expression.d.ts +14 -21
- package/dist/widgets/graded-group/graded-group.d.ts +1 -2
- package/dist/widgets/graded-group-set/graded-group-set.d.ts +1 -2
- package/dist/widgets/grapher/grapher.d.ts +2 -34
- package/dist/widgets/group/group.d.ts +1 -2
- package/dist/widgets/image/image.d.ts +1 -2
- package/dist/widgets/input-number/input-number.d.ts +1 -4
- package/dist/widgets/interactive-graphs/interactive-graph-question-builder.d.ts +7 -0
- package/dist/widgets/interactive-graphs/interactive-graph.d.ts +16 -1
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -0
- package/dist/widgets/interactive-graphs/reducer/use-graph-config.d.ts +2 -1
- package/dist/widgets/interactive-graphs/stateful-mafs-graph.d.ts +1 -0
- package/dist/widgets/matrix/matrix.d.ts +1 -11
- package/dist/widgets/passage/passage.d.ts +1 -8
- package/dist/widgets/passage-ref/passage-ref.d.ts +0 -5
- package/dist/widgets/passage-ref-target/passage-ref-target.d.ts +0 -1
- package/dist/widgets/plotter/plotter.d.ts +0 -1
- package/dist/widgets/radio/base-radio.d.ts +1 -0
- package/dist/widgets/radio/choice.new.d.ts +9 -26
- package/dist/widgets/radio/multiple-choice-component.new.d.ts +3 -25
- package/dist/widgets/radio/multiple-choice-widget.new.d.ts +17 -1
- package/dist/widgets/video/video.d.ts +1 -2
- package/package.json +42 -42
- package/dist/widgets/radio/choice-none-above.new.d.ts +0 -14
- package/dist/widgets/radio/focus-ring.new.d.ts +0 -19
- package/dist/widgets/radio/multiple-choice-option.new.d.ts +0 -11
- package/dist/widgets/radio/option-status.new.d.ts +0 -23
|
@@ -6,8 +6,7 @@ import { PerseusI18nContext } from "../../components/i18n-context";
|
|
|
6
6
|
import type { Widget, WidgetProps } from "../../types";
|
|
7
7
|
import type { UnsupportedWidgetPromptJSON } from "../../widget-ai-utils/unsupported-widget";
|
|
8
8
|
import type { PerseusVideoWidgetOptions } from "@khanacademy/perseus-core";
|
|
9
|
-
type
|
|
10
|
-
type Props = WidgetProps<RenderProps> & {
|
|
9
|
+
type Props = WidgetProps<PerseusVideoWidgetOptions> & {
|
|
11
10
|
alignment: string;
|
|
12
11
|
};
|
|
13
12
|
/**
|
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": "66.
|
|
6
|
+
"version": "66.4.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -42,36 +42,36 @@
|
|
|
42
42
|
"tiny-invariant": "1.3.1",
|
|
43
43
|
"uuid": "^10.0.0",
|
|
44
44
|
"@khanacademy/kas": "2.1.0",
|
|
45
|
-
"@khanacademy/keypad-context": "3.1.
|
|
46
|
-
"@khanacademy/kmath": "2.1.
|
|
47
|
-
"@khanacademy/math-input": "26.1.
|
|
48
|
-
"@khanacademy/perseus-core": "18.
|
|
49
|
-
"@khanacademy/perseus-linter": "4.2.
|
|
50
|
-
"@khanacademy/perseus-score": "7.
|
|
51
|
-
"@khanacademy/pure-markdown": "2.2.0",
|
|
45
|
+
"@khanacademy/keypad-context": "3.1.3",
|
|
46
|
+
"@khanacademy/kmath": "2.1.3",
|
|
47
|
+
"@khanacademy/math-input": "26.1.4",
|
|
48
|
+
"@khanacademy/perseus-core": "18.6.0",
|
|
49
|
+
"@khanacademy/perseus-linter": "4.2.3",
|
|
50
|
+
"@khanacademy/perseus-score": "7.6.0",
|
|
52
51
|
"@khanacademy/perseus-utils": "2.1.0",
|
|
52
|
+
"@khanacademy/pure-markdown": "2.2.0",
|
|
53
53
|
"@khanacademy/simple-markdown": "2.1.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@khanacademy/wonder-blocks-banner": "4.2.
|
|
57
|
-
"@khanacademy/wonder-blocks-button": "
|
|
58
|
-
"@khanacademy/wonder-blocks-clickable": "7.1.
|
|
56
|
+
"@khanacademy/wonder-blocks-banner": "4.2.14",
|
|
57
|
+
"@khanacademy/wonder-blocks-button": "11.0.0",
|
|
58
|
+
"@khanacademy/wonder-blocks-clickable": "7.1.20",
|
|
59
59
|
"@khanacademy/wonder-blocks-core": "12.3.0",
|
|
60
60
|
"@khanacademy/wonder-blocks-data": "14.1.4",
|
|
61
|
-
"@khanacademy/wonder-blocks-dropdown": "10.3.
|
|
62
|
-
"@khanacademy/wonder-blocks-form": "7.3.
|
|
63
|
-
"@khanacademy/wonder-blocks-icon-button": "10.3.
|
|
64
|
-
"@khanacademy/wonder-blocks-icon": "5.2.
|
|
65
|
-
"@khanacademy/wonder-blocks-labeled-field": "
|
|
66
|
-
"@khanacademy/wonder-blocks-layout": "3.1.
|
|
67
|
-
"@khanacademy/wonder-blocks-link": "9.1.
|
|
68
|
-
"@khanacademy/wonder-blocks-pill": "3.1.
|
|
69
|
-
"@khanacademy/wonder-blocks-popover": "6.1.
|
|
70
|
-
"@khanacademy/wonder-blocks-progress-spinner": "3.1.
|
|
71
|
-
"@khanacademy/wonder-blocks-switch": "3.3.
|
|
72
|
-
"@khanacademy/wonder-blocks-tokens": "12.0.
|
|
73
|
-
"@khanacademy/wonder-blocks-tooltip": "4.1.
|
|
74
|
-
"@khanacademy/wonder-blocks-typography": "4.2.
|
|
61
|
+
"@khanacademy/wonder-blocks-dropdown": "10.3.2",
|
|
62
|
+
"@khanacademy/wonder-blocks-form": "7.3.2",
|
|
63
|
+
"@khanacademy/wonder-blocks-icon-button": "10.3.15",
|
|
64
|
+
"@khanacademy/wonder-blocks-icon": "5.2.14",
|
|
65
|
+
"@khanacademy/wonder-blocks-labeled-field": "4.0.0",
|
|
66
|
+
"@khanacademy/wonder-blocks-layout": "3.1.31",
|
|
67
|
+
"@khanacademy/wonder-blocks-link": "9.1.20",
|
|
68
|
+
"@khanacademy/wonder-blocks-pill": "3.1.35",
|
|
69
|
+
"@khanacademy/wonder-blocks-popover": "6.1.24",
|
|
70
|
+
"@khanacademy/wonder-blocks-progress-spinner": "3.1.31",
|
|
71
|
+
"@khanacademy/wonder-blocks-switch": "3.3.13",
|
|
72
|
+
"@khanacademy/wonder-blocks-tokens": "12.0.2",
|
|
73
|
+
"@khanacademy/wonder-blocks-tooltip": "4.1.38",
|
|
74
|
+
"@khanacademy/wonder-blocks-typography": "4.2.16",
|
|
75
75
|
"@khanacademy/wonder-stuff-core": "1.5.5",
|
|
76
76
|
"@phosphor-icons/core": "2.0.2",
|
|
77
77
|
"@popperjs/core": "2.10.2",
|
|
@@ -90,25 +90,25 @@
|
|
|
90
90
|
"raphael": "1.5.4"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@khanacademy/wonder-blocks-banner": "^4.2.
|
|
94
|
-
"@khanacademy/wonder-blocks-button": "^
|
|
95
|
-
"@khanacademy/wonder-blocks-clickable": "^7.1.
|
|
93
|
+
"@khanacademy/wonder-blocks-banner": "^4.2.14",
|
|
94
|
+
"@khanacademy/wonder-blocks-button": "^11.0.0",
|
|
95
|
+
"@khanacademy/wonder-blocks-clickable": "^7.1.20",
|
|
96
96
|
"@khanacademy/wonder-blocks-core": "^12.3.0",
|
|
97
97
|
"@khanacademy/wonder-blocks-data": "^14.1.4",
|
|
98
|
-
"@khanacademy/wonder-blocks-dropdown": "^10.3.
|
|
99
|
-
"@khanacademy/wonder-blocks-form": "^7.3.
|
|
100
|
-
"@khanacademy/wonder-blocks-icon": "^5.2.
|
|
101
|
-
"@khanacademy/wonder-blocks-icon-button": "^10.3.
|
|
102
|
-
"@khanacademy/wonder-blocks-labeled-field": "^
|
|
103
|
-
"@khanacademy/wonder-blocks-layout": "^3.1.
|
|
104
|
-
"@khanacademy/wonder-blocks-link": "^9.1.
|
|
105
|
-
"@khanacademy/wonder-blocks-pill": "^3.1.
|
|
106
|
-
"@khanacademy/wonder-blocks-popover": "^6.1.
|
|
107
|
-
"@khanacademy/wonder-blocks-progress-spinner": "^3.1.
|
|
108
|
-
"@khanacademy/wonder-blocks-switch": "^3.3.
|
|
109
|
-
"@khanacademy/wonder-blocks-tokens": "^12.0.
|
|
110
|
-
"@khanacademy/wonder-blocks-tooltip": "^4.1.
|
|
111
|
-
"@khanacademy/wonder-blocks-typography": "^4.2.
|
|
98
|
+
"@khanacademy/wonder-blocks-dropdown": "^10.3.2",
|
|
99
|
+
"@khanacademy/wonder-blocks-form": "^7.3.2",
|
|
100
|
+
"@khanacademy/wonder-blocks-icon": "^5.2.14",
|
|
101
|
+
"@khanacademy/wonder-blocks-icon-button": "^10.3.15",
|
|
102
|
+
"@khanacademy/wonder-blocks-labeled-field": "^4.0.0",
|
|
103
|
+
"@khanacademy/wonder-blocks-layout": "^3.1.31",
|
|
104
|
+
"@khanacademy/wonder-blocks-link": "^9.1.20",
|
|
105
|
+
"@khanacademy/wonder-blocks-pill": "^3.1.35",
|
|
106
|
+
"@khanacademy/wonder-blocks-popover": "^6.1.24",
|
|
107
|
+
"@khanacademy/wonder-blocks-progress-spinner": "^3.1.31",
|
|
108
|
+
"@khanacademy/wonder-blocks-switch": "^3.3.13",
|
|
109
|
+
"@khanacademy/wonder-blocks-tokens": "^12.0.2",
|
|
110
|
+
"@khanacademy/wonder-blocks-tooltip": "^4.1.38",
|
|
111
|
+
"@khanacademy/wonder-blocks-typography": "^4.2.16",
|
|
112
112
|
"@khanacademy/wonder-stuff-core": "^1.5.5",
|
|
113
113
|
"@phosphor-icons/core": "^2.0.2",
|
|
114
114
|
"@popperjs/core": "^2.10.2",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { ChoiceProps } from "./choice.new";
|
|
3
|
-
interface ChoiceNoneAboveProps extends ChoiceProps {
|
|
4
|
-
showContent?: boolean;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* This component is a duplicate of the ChoiceNoneAbove component in choice-none-above.tsx
|
|
8
|
-
* for the Radio Revitalization Project. (LEMS-2933)
|
|
9
|
-
* This component will eventually replace choice-none-above.tsx when the feature flag is no longer needed.
|
|
10
|
-
*
|
|
11
|
-
* TODO(LEMS-2994): Clean up this file.
|
|
12
|
-
*/
|
|
13
|
-
declare const ChoiceNoneAbove: React.ForwardRefExoticComponent<ChoiceNoneAboveProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
-
export default ChoiceNoneAbove;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renders a circular selection ring around the child.
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
interface FocusRingProps {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
color?: string;
|
|
9
|
-
multipleSelect?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* This component is a duplicate of the FocusRing component in focus-ring.tsx
|
|
13
|
-
* for the Radio Revitalization Project. (LEMS-2933)
|
|
14
|
-
* This component will eventually replace focus-ring.tsx when the feature flag is no longer needed.
|
|
15
|
-
*
|
|
16
|
-
* TODO(LEMS-2994): Clean up this file.
|
|
17
|
-
*/
|
|
18
|
-
declare const FocusRing: ({ visible, color, multipleSelect, children, }: FocusRingProps) => React.ReactElement;
|
|
19
|
-
export default FocusRing;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface IndicatorProps {
|
|
3
|
-
checked: boolean;
|
|
4
|
-
children: React.ReactNode | React.ReactNode[];
|
|
5
|
-
indicatorContent: string;
|
|
6
|
-
isMultiSelect: boolean;
|
|
7
|
-
showCorrectness?: "correct" | "wrong";
|
|
8
|
-
updateChecked: (isChecked: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Choice: (props: IndicatorProps) => React.JSX.Element;
|
|
11
|
-
export default Choice;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Renders text indicating whether the choice was correct or
|
|
3
|
-
* not and whether the choice was selected or not.
|
|
4
|
-
* This information is redundant with that provided in the
|
|
5
|
-
* ChoiceIcon visualizations but is meant to make the distinctions
|
|
6
|
-
* between the states more immediately clear to users.
|
|
7
|
-
*/
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
interface OptionStatusProps {
|
|
10
|
-
correct: boolean;
|
|
11
|
-
checked: boolean;
|
|
12
|
-
previouslyAnswered: boolean;
|
|
13
|
-
reviewMode: boolean;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* This component is a duplicate of the OptionStatus component in option-status.tsx
|
|
17
|
-
* for the Radio Revitalization Project. (LEMS-2933)
|
|
18
|
-
* This component will eventually replace option-status.tsx when the feature flag is no longer needed.
|
|
19
|
-
*
|
|
20
|
-
* TODO(LEMS-2994): Clean up this file.
|
|
21
|
-
*/
|
|
22
|
-
declare const OptionStatus: ({ checked, correct, previouslyAnswered, reviewMode, }: OptionStatusProps) => React.ReactElement | null;
|
|
23
|
-
export default OptionStatus;
|