@khanacademy/perseus-editor 27.5.1 → 27.5.3

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.js CHANGED
@@ -61,7 +61,7 @@ import xIcon from '@phosphor-icons/core/regular/x.svg';
61
61
  import checkIcon from '@phosphor-icons/core/bold/check-bold.svg';
62
62
  import minusCircleIcon from '@phosphor-icons/core/bold/minus-circle-bold.svg';
63
63
 
64
- const libName="@khanacademy/perseus-editor";const libVersion="27.5.1";addLibraryVersionToPerseusDebug(libName,libVersion);
64
+ const libName="@khanacademy/perseus-editor";const libVersion="27.5.3";addLibraryVersionToPerseusDebug(libName,libVersion);
65
65
 
66
66
  var jsxRuntime = {exports: {}};
67
67
 
package/dist/index.js CHANGED
@@ -124,7 +124,7 @@ var xIcon__default = /*#__PURE__*/_interopDefaultCompat(xIcon);
124
124
  var checkIcon__default = /*#__PURE__*/_interopDefaultCompat(checkIcon);
125
125
  var minusCircleIcon__default = /*#__PURE__*/_interopDefaultCompat(minusCircleIcon);
126
126
 
127
- const libName="@khanacademy/perseus-editor";const libVersion="27.5.1";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
127
+ const libName="@khanacademy/perseus-editor";const libVersion="27.5.3";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
128
128
 
129
129
  var jsxRuntime = {exports: {}};
130
130
 
@@ -50,6 +50,7 @@ declare const InteractiveGraph: {
50
50
  reviewModeRubric?: Empty | null | undefined;
51
51
  trackInteraction: (extraData?: Empty | undefined) => void;
52
52
  widgetId: string;
53
+ widgetIndex: number;
53
54
  alignment: string | null | undefined;
54
55
  static: boolean | null | undefined;
55
56
  problemNum: number | null | undefined;
@@ -100,14 +101,7 @@ declare const InteractiveGraph: {
100
101
  [widgetId: string]: any;
101
102
  }) => void;
102
103
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
103
- imagePlaceholder?: React.
104
- /**
105
- * An editor for the InteractiveGraph widget, which allows the user to
106
- * specify the graph's properties and the correct answer.
107
- *
108
- * Used in the exercise editor.
109
- */
110
- ReactNode;
104
+ imagePlaceholder?: React.ReactNode;
111
105
  widgetPlaceholder?: React.ReactNode;
112
106
  baseElements?: {
113
107
  Link: React.ComponentType<any>;
@@ -142,14 +136,7 @@ declare const InteractiveGraph: {
142
136
  [widgetId: string]: any;
143
137
  }) => void;
144
138
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
145
- imagePlaceholder?: React.
146
- /**
147
- * An editor for the InteractiveGraph widget, which allows the user to
148
- * specify the graph's properties and the correct answer.
149
- *
150
- * Used in the exercise editor.
151
- */
152
- ReactNode;
139
+ imagePlaceholder?: React.ReactNode;
153
140
  widgetPlaceholder?: React.ReactNode;
154
141
  baseElements?: {
155
142
  Link: React.ComponentType<any>;
@@ -184,14 +171,7 @@ declare const InteractiveGraph: {
184
171
  [widgetId: string]: any;
185
172
  }) => void;
186
173
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
187
- imagePlaceholder?: React.
188
- /**
189
- * An editor for the InteractiveGraph widget, which allows the user to
190
- * specify the graph's properties and the correct answer.
191
- *
192
- * Used in the exercise editor.
193
- */
194
- ReactNode;
174
+ imagePlaceholder?: React.ReactNode;
195
175
  widgetPlaceholder?: React.ReactNode;
196
176
  baseElements?: {
197
177
  Link: React.ComponentType<any>;
@@ -226,14 +206,7 @@ declare const InteractiveGraph: {
226
206
  [widgetId: string]: any;
227
207
  }) => void;
228
208
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
229
- imagePlaceholder?: React.
230
- /**
231
- * An editor for the InteractiveGraph widget, which allows the user to
232
- * specify the graph's properties and the correct answer.
233
- *
234
- * Used in the exercise editor.
235
- */
236
- ReactNode;
209
+ imagePlaceholder?: React.ReactNode;
237
210
  widgetPlaceholder?: React.ReactNode;
238
211
  baseElements?: {
239
212
  Link: React.ComponentType<any>;
@@ -268,14 +241,7 @@ declare const InteractiveGraph: {
268
241
  [widgetId: string]: any;
269
242
  }) => void;
270
243
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
271
- imagePlaceholder?: React.
272
- /**
273
- * An editor for the InteractiveGraph widget, which allows the user to
274
- * specify the graph's properties and the correct answer.
275
- *
276
- * Used in the exercise editor.
277
- */
278
- ReactNode;
244
+ imagePlaceholder?: React.ReactNode;
279
245
  widgetPlaceholder?: React.ReactNode;
280
246
  baseElements?: {
281
247
  Link: React.ComponentType<any>;
@@ -310,14 +276,7 @@ declare const InteractiveGraph: {
310
276
  [widgetId: string]: any;
311
277
  }) => void;
312
278
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
313
- imagePlaceholder?: React.
314
- /**
315
- * An editor for the InteractiveGraph widget, which allows the user to
316
- * specify the graph's properties and the correct answer.
317
- *
318
- * Used in the exercise editor.
319
- */
320
- ReactNode;
279
+ imagePlaceholder?: React.ReactNode;
321
280
  widgetPlaceholder?: React.ReactNode;
322
281
  baseElements?: {
323
282
  Link: React.ComponentType<any>;
@@ -352,14 +311,7 @@ declare const InteractiveGraph: {
352
311
  [widgetId: string]: any;
353
312
  }) => void;
354
313
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
355
- imagePlaceholder?: React.
356
- /**
357
- * An editor for the InteractiveGraph widget, which allows the user to
358
- * specify the graph's properties and the correct answer.
359
- *
360
- * Used in the exercise editor.
361
- */
362
- ReactNode;
314
+ imagePlaceholder?: React.ReactNode;
363
315
  widgetPlaceholder?: React.ReactNode;
364
316
  baseElements?: {
365
317
  Link: React.ComponentType<any>;
@@ -394,14 +346,7 @@ declare const InteractiveGraph: {
394
346
  [widgetId: string]: any;
395
347
  }) => void;
396
348
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
397
- imagePlaceholder?: React.
398
- /**
399
- * An editor for the InteractiveGraph widget, which allows the user to
400
- * specify the graph's properties and the correct answer.
401
- *
402
- * Used in the exercise editor.
403
- */
404
- ReactNode;
349
+ imagePlaceholder?: React.ReactNode;
405
350
  widgetPlaceholder?: React.ReactNode;
406
351
  baseElements?: {
407
352
  Link: React.ComponentType<any>;
@@ -436,14 +381,7 @@ declare const InteractiveGraph: {
436
381
  [widgetId: string]: any;
437
382
  }) => void;
438
383
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
439
- imagePlaceholder?: React.
440
- /**
441
- * An editor for the InteractiveGraph widget, which allows the user to
442
- * specify the graph's properties and the correct answer.
443
- *
444
- * Used in the exercise editor.
445
- */
446
- ReactNode;
384
+ imagePlaceholder?: React.ReactNode;
447
385
  widgetPlaceholder?: React.ReactNode;
448
386
  baseElements?: {
449
387
  Link: React.ComponentType<any>;
@@ -478,14 +416,7 @@ declare const InteractiveGraph: {
478
416
  [widgetId: string]: any;
479
417
  }) => void;
480
418
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
481
- imagePlaceholder?: React.
482
- /**
483
- * An editor for the InteractiveGraph widget, which allows the user to
484
- * specify the graph's properties and the correct answer.
485
- *
486
- * Used in the exercise editor.
487
- */
488
- ReactNode;
419
+ imagePlaceholder?: React.ReactNode;
489
420
  widgetPlaceholder?: React.ReactNode;
490
421
  baseElements?: {
491
422
  Link: React.ComponentType<any>;
@@ -520,14 +451,7 @@ declare const InteractiveGraph: {
520
451
  [widgetId: string]: any;
521
452
  }) => void;
522
453
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
523
- imagePlaceholder?: React.
524
- /**
525
- * An editor for the InteractiveGraph widget, which allows the user to
526
- * specify the graph's properties and the correct answer.
527
- *
528
- * Used in the exercise editor.
529
- */
530
- ReactNode;
454
+ imagePlaceholder?: React.ReactNode;
531
455
  widgetPlaceholder?: React.ReactNode;
532
456
  baseElements?: {
533
457
  Link: React.ComponentType<any>;
@@ -793,6 +717,7 @@ declare const InteractiveGraph: {
793
717
  reviewModeRubric?: Empty | null | undefined;
794
718
  trackInteraction: (extraData?: Empty | undefined) => void;
795
719
  widgetId: string;
720
+ widgetIndex: number;
796
721
  alignment: string | null | undefined;
797
722
  static: boolean | null | undefined;
798
723
  problemNum: number | null | undefined;
@@ -843,14 +768,7 @@ declare const InteractiveGraph: {
843
768
  [widgetId: string]: any;
844
769
  }) => void;
845
770
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
846
- imagePlaceholder?: React.
847
- /**
848
- * An editor for the InteractiveGraph widget, which allows the user to
849
- * specify the graph's properties and the correct answer.
850
- *
851
- * Used in the exercise editor.
852
- */
853
- ReactNode;
771
+ imagePlaceholder?: React.ReactNode;
854
772
  widgetPlaceholder?: React.ReactNode;
855
773
  baseElements?: {
856
774
  Link: React.ComponentType<any>;
@@ -885,14 +803,7 @@ declare const InteractiveGraph: {
885
803
  [widgetId: string]: any;
886
804
  }) => void;
887
805
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
888
- imagePlaceholder?: React.
889
- /**
890
- * An editor for the InteractiveGraph widget, which allows the user to
891
- * specify the graph's properties and the correct answer.
892
- *
893
- * Used in the exercise editor.
894
- */
895
- ReactNode;
806
+ imagePlaceholder?: React.ReactNode;
896
807
  widgetPlaceholder?: React.ReactNode;
897
808
  baseElements?: {
898
809
  Link: React.ComponentType<any>;
@@ -927,14 +838,7 @@ declare const InteractiveGraph: {
927
838
  [widgetId: string]: any;
928
839
  }) => void;
929
840
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
930
- imagePlaceholder?: React.
931
- /**
932
- * An editor for the InteractiveGraph widget, which allows the user to
933
- * specify the graph's properties and the correct answer.
934
- *
935
- * Used in the exercise editor.
936
- */
937
- ReactNode;
841
+ imagePlaceholder?: React.ReactNode;
938
842
  widgetPlaceholder?: React.ReactNode;
939
843
  baseElements?: {
940
844
  Link: React.ComponentType<any>;
@@ -969,14 +873,7 @@ declare const InteractiveGraph: {
969
873
  [widgetId: string]: any;
970
874
  }) => void;
971
875
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
972
- imagePlaceholder?: React.
973
- /**
974
- * An editor for the InteractiveGraph widget, which allows the user to
975
- * specify the graph's properties and the correct answer.
976
- *
977
- * Used in the exercise editor.
978
- */
979
- ReactNode;
876
+ imagePlaceholder?: React.ReactNode;
980
877
  widgetPlaceholder?: React.ReactNode;
981
878
  baseElements?: {
982
879
  Link: React.ComponentType<any>;
@@ -1011,14 +908,7 @@ declare const InteractiveGraph: {
1011
908
  [widgetId: string]: any;
1012
909
  }) => void;
1013
910
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1014
- imagePlaceholder?: React.
1015
- /**
1016
- * An editor for the InteractiveGraph widget, which allows the user to
1017
- * specify the graph's properties and the correct answer.
1018
- *
1019
- * Used in the exercise editor.
1020
- */
1021
- ReactNode;
911
+ imagePlaceholder?: React.ReactNode;
1022
912
  widgetPlaceholder?: React.ReactNode;
1023
913
  baseElements?: {
1024
914
  Link: React.ComponentType<any>;
@@ -1053,14 +943,7 @@ declare const InteractiveGraph: {
1053
943
  [widgetId: string]: any;
1054
944
  }) => void;
1055
945
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1056
- imagePlaceholder?: React.
1057
- /**
1058
- * An editor for the InteractiveGraph widget, which allows the user to
1059
- * specify the graph's properties and the correct answer.
1060
- *
1061
- * Used in the exercise editor.
1062
- */
1063
- ReactNode;
946
+ imagePlaceholder?: React.ReactNode;
1064
947
  widgetPlaceholder?: React.ReactNode;
1065
948
  baseElements?: {
1066
949
  Link: React.ComponentType<any>;
@@ -1095,14 +978,7 @@ declare const InteractiveGraph: {
1095
978
  [widgetId: string]: any;
1096
979
  }) => void;
1097
980
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1098
- imagePlaceholder?: React.
1099
- /**
1100
- * An editor for the InteractiveGraph widget, which allows the user to
1101
- * specify the graph's properties and the correct answer.
1102
- *
1103
- * Used in the exercise editor.
1104
- */
1105
- ReactNode;
981
+ imagePlaceholder?: React.ReactNode;
1106
982
  widgetPlaceholder?: React.ReactNode;
1107
983
  baseElements?: {
1108
984
  Link: React.ComponentType<any>;
@@ -1137,14 +1013,7 @@ declare const InteractiveGraph: {
1137
1013
  [widgetId: string]: any;
1138
1014
  }) => void;
1139
1015
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1140
- imagePlaceholder?: React.
1141
- /**
1142
- * An editor for the InteractiveGraph widget, which allows the user to
1143
- * specify the graph's properties and the correct answer.
1144
- *
1145
- * Used in the exercise editor.
1146
- */
1147
- ReactNode;
1016
+ imagePlaceholder?: React.ReactNode;
1148
1017
  widgetPlaceholder?: React.ReactNode;
1149
1018
  baseElements?: {
1150
1019
  Link: React.ComponentType<any>;
@@ -1179,14 +1048,7 @@ declare const InteractiveGraph: {
1179
1048
  [widgetId: string]: any;
1180
1049
  }) => void;
1181
1050
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1182
- imagePlaceholder?: React.
1183
- /**
1184
- * An editor for the InteractiveGraph widget, which allows the user to
1185
- * specify the graph's properties and the correct answer.
1186
- *
1187
- * Used in the exercise editor.
1188
- */
1189
- ReactNode;
1051
+ imagePlaceholder?: React.ReactNode;
1190
1052
  widgetPlaceholder?: React.ReactNode;
1191
1053
  baseElements?: {
1192
1054
  Link: React.ComponentType<any>;
@@ -1221,14 +1083,7 @@ declare const InteractiveGraph: {
1221
1083
  [widgetId: string]: any;
1222
1084
  }) => void;
1223
1085
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1224
- imagePlaceholder?: React.
1225
- /**
1226
- * An editor for the InteractiveGraph widget, which allows the user to
1227
- * specify the graph's properties and the correct answer.
1228
- *
1229
- * Used in the exercise editor.
1230
- */
1231
- ReactNode;
1086
+ imagePlaceholder?: React.ReactNode;
1232
1087
  widgetPlaceholder?: React.ReactNode;
1233
1088
  baseElements?: {
1234
1089
  Link: React.ComponentType<any>;
@@ -1263,14 +1118,7 @@ declare const InteractiveGraph: {
1263
1118
  [widgetId: string]: any;
1264
1119
  }) => void;
1265
1120
  groupAnnotator?: (groupNumber: number, widgetId: string) => React.ReactNode;
1266
- imagePlaceholder?: React.
1267
- /**
1268
- * An editor for the InteractiveGraph widget, which allows the user to
1269
- * specify the graph's properties and the correct answer.
1270
- *
1271
- * Used in the exercise editor.
1272
- */
1273
- ReactNode;
1121
+ imagePlaceholder?: React.ReactNode;
1274
1122
  widgetPlaceholder?: React.ReactNode;
1275
1123
  baseElements?: {
1276
1124
  Link: React.ComponentType<any>;
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.1",
6
+ "version": "27.5.3",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -35,13 +35,13 @@
35
35
  "mafs": "^0.19.0",
36
36
  "tiny-invariant": "1.3.1",
37
37
  "@khanacademy/kas": "2.1.0",
38
- "@khanacademy/keypad-context": "3.2.1",
39
- "@khanacademy/math-input": "26.2.1",
40
- "@khanacademy/perseus": "67.2.0",
41
- "@khanacademy/kmath": "2.2.1",
42
- "@khanacademy/perseus-core": "18.9.1",
43
- "@khanacademy/perseus-linter": "4.3.1",
44
- "@khanacademy/perseus-score": "7.7.1",
38
+ "@khanacademy/keypad-context": "3.2.3",
39
+ "@khanacademy/kmath": "2.2.3",
40
+ "@khanacademy/math-input": "26.2.3",
41
+ "@khanacademy/perseus": "68.0.1",
42
+ "@khanacademy/perseus-core": "19.0.1",
43
+ "@khanacademy/perseus-linter": "4.3.3",
44
+ "@khanacademy/perseus-score": "7.7.3",
45
45
  "@khanacademy/perseus-utils": "2.1.0",
46
46
  "@khanacademy/pure-markdown": "2.2.0"
47
47
  },