@khanacademy/perseus-editor 27.5.5 → 27.5.7
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.
|
@@ -87,7 +87,7 @@ declare const InteractiveGraph: {
|
|
|
87
87
|
hintProgressColor?: string;
|
|
88
88
|
canScrollPage?: boolean;
|
|
89
89
|
editorChangeDelay?: number;
|
|
90
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
90
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
91
91
|
}> & {
|
|
92
92
|
baseElements: NonNullable<Readonly<{
|
|
93
93
|
isArticle?: boolean;
|
|
@@ -122,7 +122,7 @@ declare const InteractiveGraph: {
|
|
|
122
122
|
hintProgressColor?: string;
|
|
123
123
|
canScrollPage?: boolean;
|
|
124
124
|
editorChangeDelay?: number;
|
|
125
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
125
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
126
126
|
}>["baseElements"]>;
|
|
127
127
|
canScrollPage: NonNullable<Readonly<{
|
|
128
128
|
isArticle?: boolean;
|
|
@@ -157,7 +157,7 @@ declare const InteractiveGraph: {
|
|
|
157
157
|
hintProgressColor?: string;
|
|
158
158
|
canScrollPage?: boolean;
|
|
159
159
|
editorChangeDelay?: number;
|
|
160
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
160
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
161
161
|
}>["canScrollPage"]>;
|
|
162
162
|
editorChangeDelay: NonNullable<Readonly<{
|
|
163
163
|
isArticle?: boolean;
|
|
@@ -192,7 +192,7 @@ declare const InteractiveGraph: {
|
|
|
192
192
|
hintProgressColor?: string;
|
|
193
193
|
canScrollPage?: boolean;
|
|
194
194
|
editorChangeDelay?: number;
|
|
195
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
195
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
196
196
|
}>["editorChangeDelay"]>;
|
|
197
197
|
groupAnnotator: NonNullable<Readonly<{
|
|
198
198
|
isArticle?: boolean;
|
|
@@ -227,7 +227,7 @@ declare const InteractiveGraph: {
|
|
|
227
227
|
hintProgressColor?: string;
|
|
228
228
|
canScrollPage?: boolean;
|
|
229
229
|
editorChangeDelay?: number;
|
|
230
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
230
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
231
231
|
}>["groupAnnotator"]>;
|
|
232
232
|
isArticle: NonNullable<Readonly<{
|
|
233
233
|
isArticle?: boolean;
|
|
@@ -262,7 +262,7 @@ declare const InteractiveGraph: {
|
|
|
262
262
|
hintProgressColor?: string;
|
|
263
263
|
canScrollPage?: boolean;
|
|
264
264
|
editorChangeDelay?: number;
|
|
265
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
265
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
266
266
|
}>["isArticle"]>;
|
|
267
267
|
isMobile: NonNullable<Readonly<{
|
|
268
268
|
isArticle?: boolean;
|
|
@@ -297,7 +297,7 @@ declare const InteractiveGraph: {
|
|
|
297
297
|
hintProgressColor?: string;
|
|
298
298
|
canScrollPage?: boolean;
|
|
299
299
|
editorChangeDelay?: number;
|
|
300
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
300
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
301
301
|
}>["isMobile"]>;
|
|
302
302
|
isMobileApp: NonNullable<Readonly<{
|
|
303
303
|
isArticle?: boolean;
|
|
@@ -332,7 +332,7 @@ declare const InteractiveGraph: {
|
|
|
332
332
|
hintProgressColor?: string;
|
|
333
333
|
canScrollPage?: boolean;
|
|
334
334
|
editorChangeDelay?: number;
|
|
335
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
335
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
336
336
|
}>["isMobileApp"]>;
|
|
337
337
|
onFocusChange: NonNullable<Readonly<{
|
|
338
338
|
isArticle?: boolean;
|
|
@@ -367,7 +367,7 @@ declare const InteractiveGraph: {
|
|
|
367
367
|
hintProgressColor?: string;
|
|
368
368
|
canScrollPage?: boolean;
|
|
369
369
|
editorChangeDelay?: number;
|
|
370
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
370
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
371
371
|
}>["onFocusChange"]>;
|
|
372
372
|
readOnly: NonNullable<Readonly<{
|
|
373
373
|
isArticle?: boolean;
|
|
@@ -402,7 +402,7 @@ declare const InteractiveGraph: {
|
|
|
402
402
|
hintProgressColor?: string;
|
|
403
403
|
canScrollPage?: boolean;
|
|
404
404
|
editorChangeDelay?: number;
|
|
405
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
405
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
406
406
|
}>["readOnly"]>;
|
|
407
407
|
setDrawingAreaAvailable: NonNullable<Readonly<{
|
|
408
408
|
isArticle?: boolean;
|
|
@@ -437,7 +437,7 @@ declare const InteractiveGraph: {
|
|
|
437
437
|
hintProgressColor?: string;
|
|
438
438
|
canScrollPage?: boolean;
|
|
439
439
|
editorChangeDelay?: number;
|
|
440
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
440
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
441
441
|
}>["setDrawingAreaAvailable"]>;
|
|
442
442
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
443
443
|
isArticle?: boolean;
|
|
@@ -472,7 +472,7 @@ declare const InteractiveGraph: {
|
|
|
472
472
|
hintProgressColor?: string;
|
|
473
473
|
canScrollPage?: boolean;
|
|
474
474
|
editorChangeDelay?: number;
|
|
475
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
475
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
476
476
|
}>["showAlignmentOptions"]>;
|
|
477
477
|
}>;
|
|
478
478
|
keypadElement?: any;
|
|
@@ -482,7 +482,6 @@ declare const InteractiveGraph: {
|
|
|
482
482
|
findWidgets: (criterion: import("../../../../perseus/src/types").FilterCriterion) => ReadonlyArray<import("../../../../perseus/src/types").Widget>;
|
|
483
483
|
reviewMode: boolean;
|
|
484
484
|
showSolutions?: import("@khanacademy/perseus-core").ShowSolutions;
|
|
485
|
-
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
486
485
|
handleUserInput: (newUserInput: PerseusGraphType, cb?: () => void, silent?: boolean) => void;
|
|
487
486
|
isLastUsedWidget: boolean;
|
|
488
487
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
@@ -754,7 +753,7 @@ declare const InteractiveGraph: {
|
|
|
754
753
|
hintProgressColor?: string;
|
|
755
754
|
canScrollPage?: boolean;
|
|
756
755
|
editorChangeDelay?: number;
|
|
757
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
756
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
758
757
|
}> & {
|
|
759
758
|
baseElements: NonNullable<Readonly<{
|
|
760
759
|
isArticle?: boolean;
|
|
@@ -789,7 +788,7 @@ declare const InteractiveGraph: {
|
|
|
789
788
|
hintProgressColor?: string;
|
|
790
789
|
canScrollPage?: boolean;
|
|
791
790
|
editorChangeDelay?: number;
|
|
792
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
791
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
793
792
|
}>["baseElements"]>;
|
|
794
793
|
canScrollPage: NonNullable<Readonly<{
|
|
795
794
|
isArticle?: boolean;
|
|
@@ -824,7 +823,7 @@ declare const InteractiveGraph: {
|
|
|
824
823
|
hintProgressColor?: string;
|
|
825
824
|
canScrollPage?: boolean;
|
|
826
825
|
editorChangeDelay?: number;
|
|
827
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
826
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
828
827
|
}>["canScrollPage"]>;
|
|
829
828
|
editorChangeDelay: NonNullable<Readonly<{
|
|
830
829
|
isArticle?: boolean;
|
|
@@ -859,7 +858,7 @@ declare const InteractiveGraph: {
|
|
|
859
858
|
hintProgressColor?: string;
|
|
860
859
|
canScrollPage?: boolean;
|
|
861
860
|
editorChangeDelay?: number;
|
|
862
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
861
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
863
862
|
}>["editorChangeDelay"]>;
|
|
864
863
|
groupAnnotator: NonNullable<Readonly<{
|
|
865
864
|
isArticle?: boolean;
|
|
@@ -894,7 +893,7 @@ declare const InteractiveGraph: {
|
|
|
894
893
|
hintProgressColor?: string;
|
|
895
894
|
canScrollPage?: boolean;
|
|
896
895
|
editorChangeDelay?: number;
|
|
897
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
896
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
898
897
|
}>["groupAnnotator"]>;
|
|
899
898
|
isArticle: NonNullable<Readonly<{
|
|
900
899
|
isArticle?: boolean;
|
|
@@ -929,7 +928,7 @@ declare const InteractiveGraph: {
|
|
|
929
928
|
hintProgressColor?: string;
|
|
930
929
|
canScrollPage?: boolean;
|
|
931
930
|
editorChangeDelay?: number;
|
|
932
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
931
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
933
932
|
}>["isArticle"]>;
|
|
934
933
|
isMobile: NonNullable<Readonly<{
|
|
935
934
|
isArticle?: boolean;
|
|
@@ -964,7 +963,7 @@ declare const InteractiveGraph: {
|
|
|
964
963
|
hintProgressColor?: string;
|
|
965
964
|
canScrollPage?: boolean;
|
|
966
965
|
editorChangeDelay?: number;
|
|
967
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
966
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
968
967
|
}>["isMobile"]>;
|
|
969
968
|
isMobileApp: NonNullable<Readonly<{
|
|
970
969
|
isArticle?: boolean;
|
|
@@ -999,7 +998,7 @@ declare const InteractiveGraph: {
|
|
|
999
998
|
hintProgressColor?: string;
|
|
1000
999
|
canScrollPage?: boolean;
|
|
1001
1000
|
editorChangeDelay?: number;
|
|
1002
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
1001
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
1003
1002
|
}>["isMobileApp"]>;
|
|
1004
1003
|
onFocusChange: NonNullable<Readonly<{
|
|
1005
1004
|
isArticle?: boolean;
|
|
@@ -1034,7 +1033,7 @@ declare const InteractiveGraph: {
|
|
|
1034
1033
|
hintProgressColor?: string;
|
|
1035
1034
|
canScrollPage?: boolean;
|
|
1036
1035
|
editorChangeDelay?: number;
|
|
1037
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
1036
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
1038
1037
|
}>["onFocusChange"]>;
|
|
1039
1038
|
readOnly: NonNullable<Readonly<{
|
|
1040
1039
|
isArticle?: boolean;
|
|
@@ -1069,7 +1068,7 @@ declare const InteractiveGraph: {
|
|
|
1069
1068
|
hintProgressColor?: string;
|
|
1070
1069
|
canScrollPage?: boolean;
|
|
1071
1070
|
editorChangeDelay?: number;
|
|
1072
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
1071
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
1073
1072
|
}>["readOnly"]>;
|
|
1074
1073
|
setDrawingAreaAvailable: NonNullable<Readonly<{
|
|
1075
1074
|
isArticle?: boolean;
|
|
@@ -1104,7 +1103,7 @@ declare const InteractiveGraph: {
|
|
|
1104
1103
|
hintProgressColor?: string;
|
|
1105
1104
|
canScrollPage?: boolean;
|
|
1106
1105
|
editorChangeDelay?: number;
|
|
1107
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
1106
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
1108
1107
|
}>["setDrawingAreaAvailable"]>;
|
|
1109
1108
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
1110
1109
|
isArticle?: boolean;
|
|
@@ -1139,7 +1138,7 @@ declare const InteractiveGraph: {
|
|
|
1139
1138
|
hintProgressColor?: string;
|
|
1140
1139
|
canScrollPage?: boolean;
|
|
1141
1140
|
editorChangeDelay?: number;
|
|
1142
|
-
flags?: Record<"new-radio-widget", boolean>;
|
|
1141
|
+
flags?: Record<"new-radio-widget" | "image-widget-upgrade", boolean>;
|
|
1143
1142
|
}>["showAlignmentOptions"]>;
|
|
1144
1143
|
}>;
|
|
1145
1144
|
keypadElement?: any;
|
|
@@ -1149,7 +1148,6 @@ declare const InteractiveGraph: {
|
|
|
1149
1148
|
findWidgets: (criterion: import("../../../../perseus/src/types").FilterCriterion) => ReadonlyArray<import("../../../../perseus/src/types").Widget>;
|
|
1150
1149
|
reviewMode: boolean;
|
|
1151
1150
|
showSolutions?: import("@khanacademy/perseus-core").ShowSolutions;
|
|
1152
|
-
onChange: import("@khanacademy/perseus").ChangeHandler;
|
|
1153
1151
|
handleUserInput: (newUserInput: PerseusGraphType, cb?: () => void, silent?: boolean) => void;
|
|
1154
1152
|
isLastUsedWidget: boolean;
|
|
1155
1153
|
linterContext: import("@khanacademy/perseus-linter").LinterContextProps;
|
|
@@ -18,8 +18,11 @@ export interface RadioEditorProps extends Changeable.ChangeableProps {
|
|
|
18
18
|
declare class RadioEditor extends React.Component<RadioEditorProps> {
|
|
19
19
|
static widgetName: "radio";
|
|
20
20
|
static defaultProps: RadioDefaultWidgetOptions;
|
|
21
|
+
componentDidMount(): void;
|
|
21
22
|
onMultipleSelectChange: (arg1: any) => any;
|
|
22
23
|
onCountChoicesChange: (arg1: any) => void;
|
|
24
|
+
generateChoiceId: (index: number) => string;
|
|
25
|
+
ensureValidIds: (choiceId: string, index: number) => string;
|
|
23
26
|
onChange: (arg1: any) => void;
|
|
24
27
|
onStatusChange: (choiceIndex: number, correct: boolean) => void;
|
|
25
28
|
onContentChange: (arg1: any, arg2: any) => void;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "27.5.
|
|
6
|
+
"version": "27.5.7",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"katex": "0.11.1",
|
|
35
35
|
"mafs": "^0.19.0",
|
|
36
36
|
"tiny-invariant": "1.3.1",
|
|
37
|
-
"@khanacademy/
|
|
38
|
-
"@khanacademy/
|
|
39
|
-
"@khanacademy/
|
|
40
|
-
"@khanacademy/
|
|
41
|
-
"@khanacademy/perseus": "
|
|
42
|
-
"@khanacademy/
|
|
43
|
-
"@khanacademy/perseus-
|
|
37
|
+
"@khanacademy/kmath": "2.2.6",
|
|
38
|
+
"@khanacademy/math-input": "26.2.6",
|
|
39
|
+
"@khanacademy/kas": "2.1.1",
|
|
40
|
+
"@khanacademy/perseus": "69.1.0",
|
|
41
|
+
"@khanacademy/perseus-core": "19.1.0",
|
|
42
|
+
"@khanacademy/keypad-context": "3.2.6",
|
|
43
|
+
"@khanacademy/perseus-linter": "4.3.6",
|
|
44
|
+
"@khanacademy/perseus-score": "7.7.6",
|
|
44
45
|
"@khanacademy/perseus-utils": "2.1.0",
|
|
45
|
-
"@khanacademy/perseus-core": "19.0.2",
|
|
46
46
|
"@khanacademy/pure-markdown": "2.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|