@khanacademy/perseus 71.4.2 → 71.6.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/image-loader.d.ts +2 -0
- package/dist/components/svg-image.d.ts +5 -0
- package/dist/es/index.css +2 -2
- package/dist/es/index.css.map +1 -1
- package/dist/es/index.js +12 -12
- package/dist/es/index.js.map +1 -1
- package/dist/es/strings.js +1 -1
- package/dist/es/strings.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/server-item-renderer.d.ts +1 -0
- package/dist/strings.d.ts +4 -0
- package/dist/strings.js +1 -1
- package/dist/strings.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/widgets/expression/expression.d.ts +6 -0
- package/dist/widgets/grapher/grapher.d.ts +2 -0
- package/dist/widgets/interactive-graphs/interactive-graph.d.ts +2 -0
- package/dist/widgets/label-image/label-image.d.ts +2 -0
- package/dist/widgets/mock-widgets/mock-widget.d.ts +2 -0
- package/dist/widgets/numeric-input/numeric-input.class.d.ts +2 -0
- package/dist/widgets/numeric-input/numeric-input.d.ts +4 -0
- package/dist/widgets/plotter/plotter.d.ts +2 -0
- package/dist/widgets/radio/multiple-choice-widget.new.d.ts +2 -0
- package/dist/widgets/radio/radio.ff.d.ts +2 -0
- package/dist/widgets/table/table.d.ts +2 -0
- package/package.json +6 -6
|
@@ -48,6 +48,7 @@ declare class MockWidgetComponent extends React.Component<Props> implements Widg
|
|
|
48
48
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
49
49
|
showAlignmentOptions?: boolean;
|
|
50
50
|
readOnly?: boolean;
|
|
51
|
+
editingDisabled?: boolean;
|
|
51
52
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
52
53
|
getAnotherHint?: () => unknown;
|
|
53
54
|
interactionCallback?: (widgetData: {
|
|
@@ -84,6 +85,7 @@ declare class MockWidgetComponent extends React.Component<Props> implements Widg
|
|
|
84
85
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
85
86
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
86
87
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
88
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
87
89
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
88
90
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
89
91
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -55,6 +55,7 @@ export declare class NumericInput extends React.Component<NumericInputProps> imp
|
|
|
55
55
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
56
56
|
showAlignmentOptions?: boolean;
|
|
57
57
|
readOnly?: boolean;
|
|
58
|
+
editingDisabled?: boolean;
|
|
58
59
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
59
60
|
getAnotherHint?: () => unknown;
|
|
60
61
|
interactionCallback?: (widgetData: {
|
|
@@ -91,6 +92,7 @@ export declare class NumericInput extends React.Component<NumericInputProps> imp
|
|
|
91
92
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
92
93
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
93
94
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
95
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
94
96
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
95
97
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
96
98
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -18,6 +18,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
|
|
|
18
18
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
19
19
|
showAlignmentOptions?: boolean;
|
|
20
20
|
readOnly?: boolean;
|
|
21
|
+
editingDisabled?: boolean;
|
|
21
22
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
22
23
|
getAnotherHint?: () => unknown;
|
|
23
24
|
interactionCallback?: (widgetData: {
|
|
@@ -54,6 +55,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
|
|
|
54
55
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
55
56
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
56
57
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
58
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
57
59
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
58
60
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
59
61
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -79,6 +81,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
|
|
|
79
81
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
80
82
|
showAlignmentOptions?: boolean;
|
|
81
83
|
readOnly?: boolean;
|
|
84
|
+
editingDisabled?: boolean;
|
|
82
85
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
83
86
|
getAnotherHint?: () => unknown;
|
|
84
87
|
interactionCallback?: (widgetData: {
|
|
@@ -115,6 +118,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
|
|
|
115
118
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
116
119
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
117
120
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
121
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
118
122
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
119
123
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
120
124
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -102,6 +102,7 @@ declare class Plotter extends React.Component<Props, State> implements Widget {
|
|
|
102
102
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
103
103
|
showAlignmentOptions?: boolean;
|
|
104
104
|
readOnly?: boolean;
|
|
105
|
+
editingDisabled?: boolean;
|
|
105
106
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
106
107
|
getAnotherHint?: () => unknown;
|
|
107
108
|
interactionCallback?: (widgetData: {
|
|
@@ -138,6 +139,7 @@ declare class Plotter extends React.Component<Props, State> implements Widget {
|
|
|
138
139
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
139
140
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
140
141
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
142
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
141
143
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
142
144
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
143
145
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -51,6 +51,7 @@ declare const Radio: React.ForwardRefExoticComponent<RadioProps & {
|
|
|
51
51
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
52
52
|
showAlignmentOptions?: boolean;
|
|
53
53
|
readOnly?: boolean;
|
|
54
|
+
editingDisabled?: boolean;
|
|
54
55
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
55
56
|
getAnotherHint?: () => unknown;
|
|
56
57
|
interactionCallback?: (widgetData: {
|
|
@@ -87,6 +88,7 @@ declare const Radio: React.ForwardRefExoticComponent<RadioProps & {
|
|
|
87
88
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
88
89
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
89
90
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
91
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
90
92
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
91
93
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
92
94
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -50,6 +50,7 @@ declare class Radio extends RadioOld {
|
|
|
50
50
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
51
51
|
showAlignmentOptions?: boolean;
|
|
52
52
|
readOnly?: boolean;
|
|
53
|
+
editingDisabled?: boolean;
|
|
53
54
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
54
55
|
getAnotherHint?: () => unknown;
|
|
55
56
|
interactionCallback?: (widgetData: {
|
|
@@ -86,6 +87,7 @@ declare class Radio extends RadioOld {
|
|
|
86
87
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
87
88
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
88
89
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
90
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
89
91
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
90
92
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
91
93
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
|
@@ -56,6 +56,7 @@ declare class Table extends React.Component<Props> implements Widget {
|
|
|
56
56
|
GroupMetadataEditor?: React.ComponentType<any>;
|
|
57
57
|
showAlignmentOptions?: boolean;
|
|
58
58
|
readOnly?: boolean;
|
|
59
|
+
editingDisabled?: boolean;
|
|
59
60
|
answerableCallback?: (arg1: boolean) => unknown;
|
|
60
61
|
getAnotherHint?: () => unknown;
|
|
61
62
|
interactionCallback?: (widgetData: {
|
|
@@ -92,6 +93,7 @@ declare class Table extends React.Component<Props> implements Widget {
|
|
|
92
93
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
93
94
|
isMobile: NonNullable<import("../..").APIOptions["isMobile"]>;
|
|
94
95
|
isMobileApp: NonNullable<import("../..").APIOptions["isMobileApp"]>;
|
|
96
|
+
editingDisabled: NonNullable<import("../..").APIOptions["editingDisabled"]>;
|
|
95
97
|
onFocusChange: NonNullable<import("../..").APIOptions["onFocusChange"]>;
|
|
96
98
|
readOnly: NonNullable<import("../..").APIOptions["readOnly"]>;
|
|
97
99
|
setDrawingAreaAvailable: NonNullable<import("../..").APIOptions["setDrawingAreaAvailable"]>;
|
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": "71.
|
|
6
|
+
"version": "71.6.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"@khanacademy/kas": "2.1.3",
|
|
45
45
|
"@khanacademy/keypad-context": "3.2.15",
|
|
46
46
|
"@khanacademy/kmath": "2.2.15",
|
|
47
|
-
"@khanacademy/math-input": "26.2.
|
|
47
|
+
"@khanacademy/math-input": "26.2.17",
|
|
48
48
|
"@khanacademy/perseus-core": "20.1.3",
|
|
49
49
|
"@khanacademy/perseus-linter": "4.4.5",
|
|
50
50
|
"@khanacademy/perseus-score": "8.0.4",
|
|
51
|
+
"@khanacademy/perseus-utils": "2.1.1",
|
|
51
52
|
"@khanacademy/pure-markdown": "2.2.1",
|
|
52
|
-
"@khanacademy/simple-markdown": "2.1.1"
|
|
53
|
-
"@khanacademy/perseus-utils": "2.1.1"
|
|
53
|
+
"@khanacademy/simple-markdown": "2.1.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@khanacademy/wonder-blocks-announcer": "1.0.4",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"intersection-observer": "^0.12.0",
|
|
84
84
|
"jquery": "2.1.1",
|
|
85
85
|
"lodash.debounce": "^4.0.8",
|
|
86
|
-
"prop-types": "15.
|
|
86
|
+
"prop-types": "15.8.1",
|
|
87
87
|
"react": "18.2.0",
|
|
88
88
|
"react-dom": "18.2.0",
|
|
89
89
|
"react-popper": "^2.2.5",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"intersection-observer": "^0.12.0",
|
|
123
123
|
"jquery": "^2.1.1",
|
|
124
124
|
"lodash.debounce": "^4.0.8",
|
|
125
|
-
"prop-types": "^15.
|
|
125
|
+
"prop-types": "^15.8.1",
|
|
126
126
|
"react": "^18.2.0",
|
|
127
127
|
"react-dom": "^18.2.0",
|
|
128
128
|
"react-popper": "^2.2.5",
|