@khanacademy/perseus-editor 4.2.1 → 4.2.2

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
@@ -25,7 +25,7 @@ import * as i18n$1 from '@khanacademy/wonder-blocks-i18n';
25
25
 
26
26
  // This file is processed by a Rollup plugin (replace) to inject the production
27
27
  const libName = "@khanacademy/perseus-editor";
28
- const libVersion = "4.2.1";
28
+ const libVersion = "4.2.2";
29
29
  addLibraryVersionToPerseusDebug(libName, libVersion);
30
30
 
31
31
  function _extends() {
package/dist/index.js CHANGED
@@ -64,7 +64,7 @@ var i18n__namespace = /*#__PURE__*/_interopNamespace(i18n$1);
64
64
 
65
65
  // This file is processed by a Rollup plugin (replace) to inject the production
66
66
  const libName = "@khanacademy/perseus-editor";
67
- const libVersion = "4.2.1";
67
+ const libVersion = "4.2.2";
68
68
  perseusCore.addLibraryVersionToPerseusDebug(libName, libVersion);
69
69
 
70
70
  function _extends() {
@@ -17,7 +17,9 @@ declare const InteractiveGraph: {
17
17
  readOnly?: boolean | undefined;
18
18
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
19
19
  getAnotherHint?: (() => unknown) | undefined;
20
- interactionCallback?: (() => unknown) | undefined;
20
+ interactionCallback?: ((widgetData: {
21
+ [widgetId: string]: any;
22
+ }) => void) | undefined;
21
23
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
22
24
  imagePlaceholder?: React.ReactNode;
23
25
  widgetPlaceholder?: React.ReactNode;
@@ -85,7 +87,9 @@ declare const InteractiveGraph: {
85
87
  readOnly?: boolean | undefined;
86
88
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
87
89
  getAnotherHint?: (() => unknown) | undefined;
88
- interactionCallback?: (() => unknown) | undefined;
90
+ interactionCallback?: ((widgetData: {
91
+ [widgetId: string]: any;
92
+ }) => void) | undefined;
89
93
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
90
94
  imagePlaceholder?: React.ReactNode;
91
95
  widgetPlaceholder?: React.ReactNode;
@@ -173,7 +177,9 @@ declare const InteractiveGraph: {
173
177
  readOnly?: boolean | undefined;
174
178
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
175
179
  getAnotherHint?: (() => unknown) | undefined;
176
- interactionCallback?: (() => unknown) | undefined;
180
+ interactionCallback?: ((widgetData: {
181
+ [widgetId: string]: any;
182
+ }) => void) | undefined;
177
183
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
178
184
  imagePlaceholder?: React.ReactNode;
179
185
  widgetPlaceholder?: React.ReactNode;
@@ -242,7 +248,9 @@ declare const InteractiveGraph: {
242
248
  readOnly?: boolean | undefined;
243
249
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
244
250
  getAnotherHint?: (() => unknown) | undefined;
245
- interactionCallback?: (() => unknown) | undefined;
251
+ interactionCallback?: ((widgetData: {
252
+ [widgetId: string]: any;
253
+ }) => void) | undefined;
246
254
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
247
255
  imagePlaceholder?: React.ReactNode;
248
256
  widgetPlaceholder?: React.ReactNode;
@@ -311,7 +319,9 @@ declare const InteractiveGraph: {
311
319
  readOnly?: boolean | undefined;
312
320
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
313
321
  getAnotherHint?: (() => unknown) | undefined;
314
- interactionCallback?: (() => unknown) | undefined;
322
+ interactionCallback?: ((widgetData: {
323
+ [widgetId: string]: any;
324
+ }) => void) | undefined;
315
325
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
316
326
  imagePlaceholder?: React.ReactNode;
317
327
  widgetPlaceholder?: React.ReactNode;
@@ -388,7 +398,9 @@ declare const InteractiveGraph: {
388
398
  readOnly?: boolean | undefined;
389
399
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
390
400
  getAnotherHint?: (() => unknown) | undefined;
391
- interactionCallback?: (() => unknown) | undefined;
401
+ interactionCallback?: ((widgetData: {
402
+ [widgetId: string]: any;
403
+ }) => void) | undefined;
392
404
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
393
405
  imagePlaceholder?: React.ReactNode;
394
406
  widgetPlaceholder?: React.ReactNode;
@@ -504,7 +516,9 @@ declare const InteractiveGraph: {
504
516
  readOnly?: boolean | undefined;
505
517
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
506
518
  getAnotherHint?: (() => unknown) | undefined;
507
- interactionCallback?: (() => unknown) | undefined;
519
+ interactionCallback?: ((widgetData: {
520
+ [widgetId: string]: any;
521
+ }) => void) | undefined;
508
522
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
509
523
  imagePlaceholder?: React.ReactNode;
510
524
  widgetPlaceholder?: React.ReactNode;
@@ -578,7 +592,9 @@ declare const InteractiveGraph: {
578
592
  readOnly?: boolean | undefined;
579
593
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
580
594
  getAnotherHint?: (() => unknown) | undefined;
581
- interactionCallback?: (() => unknown) | undefined;
595
+ interactionCallback?: ((widgetData: {
596
+ [widgetId: string]: any;
597
+ }) => void) | undefined;
582
598
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
583
599
  imagePlaceholder?: React.ReactNode;
584
600
  widgetPlaceholder?: React.ReactNode;
@@ -649,7 +665,9 @@ declare const InteractiveGraph: {
649
665
  readOnly?: boolean | undefined;
650
666
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
651
667
  getAnotherHint?: (() => unknown) | undefined;
652
- interactionCallback?: (() => unknown) | undefined;
668
+ interactionCallback?: ((widgetData: {
669
+ [widgetId: string]: any;
670
+ }) => void) | undefined;
653
671
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
654
672
  imagePlaceholder?: React.ReactNode;
655
673
  widgetPlaceholder?: React.ReactNode;
@@ -719,7 +737,9 @@ declare const InteractiveGraph: {
719
737
  readOnly?: boolean | undefined;
720
738
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
721
739
  getAnotherHint?: (() => unknown) | undefined;
722
- interactionCallback?: (() => unknown) | undefined;
740
+ interactionCallback?: ((widgetData: {
741
+ [widgetId: string]: any;
742
+ }) => void) | undefined;
723
743
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
724
744
  imagePlaceholder?: React.ReactNode;
725
745
  widgetPlaceholder?: React.ReactNode;
@@ -788,7 +808,9 @@ declare const InteractiveGraph: {
788
808
  readOnly?: boolean | undefined;
789
809
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
790
810
  getAnotherHint?: (() => unknown) | undefined;
791
- interactionCallback?: (() => unknown) | undefined;
811
+ interactionCallback?: ((widgetData: {
812
+ [widgetId: string]: any;
813
+ }) => void) | undefined;
792
814
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
793
815
  imagePlaceholder?: React.ReactNode;
794
816
  widgetPlaceholder?: React.ReactNode;
@@ -857,7 +879,9 @@ declare const InteractiveGraph: {
857
879
  readOnly?: boolean | undefined;
858
880
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
859
881
  getAnotherHint?: (() => unknown) | undefined;
860
- interactionCallback?: (() => unknown) | undefined;
882
+ interactionCallback?: ((widgetData: {
883
+ [widgetId: string]: any;
884
+ }) => void) | undefined;
861
885
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
862
886
  imagePlaceholder?: React.ReactNode;
863
887
  widgetPlaceholder?: React.ReactNode;
@@ -927,7 +951,9 @@ declare const InteractiveGraph: {
927
951
  readOnly?: boolean | undefined;
928
952
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
929
953
  getAnotherHint?: (() => unknown) | undefined;
930
- interactionCallback?: (() => unknown) | undefined;
954
+ interactionCallback?: ((widgetData: {
955
+ [widgetId: string]: any;
956
+ }) => void) | undefined;
931
957
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
932
958
  imagePlaceholder?: React.ReactNode;
933
959
  widgetPlaceholder?: React.ReactNode;
@@ -1015,7 +1041,9 @@ declare const InteractiveGraph: {
1015
1041
  readOnly?: boolean | undefined;
1016
1042
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1017
1043
  getAnotherHint?: (() => unknown) | undefined;
1018
- interactionCallback?: (() => unknown) | undefined;
1044
+ interactionCallback?: ((widgetData: {
1045
+ [widgetId: string]: any;
1046
+ }) => void) | undefined;
1019
1047
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1020
1048
  imagePlaceholder?: React.ReactNode;
1021
1049
  widgetPlaceholder?: React.ReactNode;
@@ -1084,7 +1112,9 @@ declare const InteractiveGraph: {
1084
1112
  readOnly?: boolean | undefined;
1085
1113
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1086
1114
  getAnotherHint?: (() => unknown) | undefined;
1087
- interactionCallback?: (() => unknown) | undefined;
1115
+ interactionCallback?: ((widgetData: {
1116
+ [widgetId: string]: any;
1117
+ }) => void) | undefined;
1088
1118
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1089
1119
  imagePlaceholder?: React.ReactNode;
1090
1120
  widgetPlaceholder?: React.ReactNode;
@@ -1153,7 +1183,9 @@ declare const InteractiveGraph: {
1153
1183
  readOnly?: boolean | undefined;
1154
1184
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1155
1185
  getAnotherHint?: (() => unknown) | undefined;
1156
- interactionCallback?: (() => unknown) | undefined;
1186
+ interactionCallback?: ((widgetData: {
1187
+ [widgetId: string]: any;
1188
+ }) => void) | undefined;
1157
1189
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1158
1190
  imagePlaceholder?: React.ReactNode;
1159
1191
  widgetPlaceholder?: React.ReactNode;
@@ -1230,7 +1262,9 @@ declare const InteractiveGraph: {
1230
1262
  readOnly?: boolean | undefined;
1231
1263
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1232
1264
  getAnotherHint?: (() => unknown) | undefined;
1233
- interactionCallback?: (() => unknown) | undefined;
1265
+ interactionCallback?: ((widgetData: {
1266
+ [widgetId: string]: any;
1267
+ }) => void) | undefined;
1234
1268
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1235
1269
  imagePlaceholder?: React.ReactNode;
1236
1270
  widgetPlaceholder?: React.ReactNode;
@@ -1346,7 +1380,9 @@ declare const InteractiveGraph: {
1346
1380
  readOnly?: boolean | undefined;
1347
1381
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1348
1382
  getAnotherHint?: (() => unknown) | undefined;
1349
- interactionCallback?: (() => unknown) | undefined;
1383
+ interactionCallback?: ((widgetData: {
1384
+ [widgetId: string]: any;
1385
+ }) => void) | undefined;
1350
1386
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1351
1387
  imagePlaceholder?: React.ReactNode;
1352
1388
  widgetPlaceholder?: React.ReactNode;
@@ -1420,7 +1456,9 @@ declare const InteractiveGraph: {
1420
1456
  readOnly?: boolean | undefined;
1421
1457
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1422
1458
  getAnotherHint?: (() => unknown) | undefined;
1423
- interactionCallback?: (() => unknown) | undefined;
1459
+ interactionCallback?: ((widgetData: {
1460
+ [widgetId: string]: any;
1461
+ }) => void) | undefined;
1424
1462
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1425
1463
  imagePlaceholder?: React.ReactNode;
1426
1464
  widgetPlaceholder?: React.ReactNode;
@@ -1491,7 +1529,9 @@ declare const InteractiveGraph: {
1491
1529
  readOnly?: boolean | undefined;
1492
1530
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1493
1531
  getAnotherHint?: (() => unknown) | undefined;
1494
- interactionCallback?: (() => unknown) | undefined;
1532
+ interactionCallback?: ((widgetData: {
1533
+ [widgetId: string]: any;
1534
+ }) => void) | undefined;
1495
1535
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1496
1536
  imagePlaceholder?: React.ReactNode;
1497
1537
  widgetPlaceholder?: React.ReactNode;
@@ -1561,7 +1601,9 @@ declare const InteractiveGraph: {
1561
1601
  readOnly?: boolean | undefined;
1562
1602
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1563
1603
  getAnotherHint?: (() => unknown) | undefined;
1564
- interactionCallback?: (() => unknown) | undefined;
1604
+ interactionCallback?: ((widgetData: {
1605
+ [widgetId: string]: any;
1606
+ }) => void) | undefined;
1565
1607
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1566
1608
  imagePlaceholder?: React.ReactNode;
1567
1609
  widgetPlaceholder?: React.ReactNode;
@@ -1630,7 +1672,9 @@ declare const InteractiveGraph: {
1630
1672
  readOnly?: boolean | undefined;
1631
1673
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1632
1674
  getAnotherHint?: (() => unknown) | undefined;
1633
- interactionCallback?: (() => unknown) | undefined;
1675
+ interactionCallback?: ((widgetData: {
1676
+ [widgetId: string]: any;
1677
+ }) => void) | undefined;
1634
1678
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1635
1679
  imagePlaceholder?: React.ReactNode;
1636
1680
  widgetPlaceholder?: React.ReactNode;
@@ -1699,7 +1743,9 @@ declare const InteractiveGraph: {
1699
1743
  readOnly?: boolean | undefined;
1700
1744
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1701
1745
  getAnotherHint?: (() => unknown) | undefined;
1702
- interactionCallback?: (() => unknown) | undefined;
1746
+ interactionCallback?: ((widgetData: {
1747
+ [widgetId: string]: any;
1748
+ }) => void) | undefined;
1703
1749
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1704
1750
  imagePlaceholder?: React.ReactNode;
1705
1751
  widgetPlaceholder?: React.ReactNode;
@@ -1784,7 +1830,9 @@ declare const InteractiveGraph: {
1784
1830
  readOnly?: boolean | undefined;
1785
1831
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1786
1832
  getAnotherHint?: (() => unknown) | undefined;
1787
- interactionCallback?: (() => unknown) | undefined;
1833
+ interactionCallback?: ((widgetData: {
1834
+ [widgetId: string]: any;
1835
+ }) => void) | undefined;
1788
1836
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1789
1837
  imagePlaceholder?: React.ReactNode;
1790
1838
  widgetPlaceholder?: React.ReactNode;
@@ -1853,7 +1901,9 @@ declare const InteractiveGraph: {
1853
1901
  readOnly?: boolean | undefined;
1854
1902
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1855
1903
  getAnotherHint?: (() => unknown) | undefined;
1856
- interactionCallback?: (() => unknown) | undefined;
1904
+ interactionCallback?: ((widgetData: {
1905
+ [widgetId: string]: any;
1906
+ }) => void) | undefined;
1857
1907
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1858
1908
  imagePlaceholder?: React.ReactNode;
1859
1909
  widgetPlaceholder?: React.ReactNode;
@@ -1922,7 +1972,9 @@ declare const InteractiveGraph: {
1922
1972
  readOnly?: boolean | undefined;
1923
1973
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1924
1974
  getAnotherHint?: (() => unknown) | undefined;
1925
- interactionCallback?: (() => unknown) | undefined;
1975
+ interactionCallback?: ((widgetData: {
1976
+ [widgetId: string]: any;
1977
+ }) => void) | undefined;
1926
1978
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1927
1979
  imagePlaceholder?: React.ReactNode;
1928
1980
  widgetPlaceholder?: React.ReactNode;
@@ -1991,7 +2043,9 @@ declare const InteractiveGraph: {
1991
2043
  readOnly?: boolean | undefined;
1992
2044
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
1993
2045
  getAnotherHint?: (() => unknown) | undefined;
1994
- interactionCallback?: (() => unknown) | undefined;
2046
+ interactionCallback?: ((widgetData: {
2047
+ [widgetId: string]: any;
2048
+ }) => void) | undefined;
1995
2049
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
1996
2050
  imagePlaceholder?: React.ReactNode;
1997
2051
  widgetPlaceholder?: React.ReactNode;
@@ -2060,7 +2114,9 @@ declare const InteractiveGraph: {
2060
2114
  readOnly?: boolean | undefined;
2061
2115
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2062
2116
  getAnotherHint?: (() => unknown) | undefined;
2063
- interactionCallback?: (() => unknown) | undefined;
2117
+ interactionCallback?: ((widgetData: {
2118
+ [widgetId: string]: any;
2119
+ }) => void) | undefined;
2064
2120
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2065
2121
  imagePlaceholder?: React.ReactNode;
2066
2122
  widgetPlaceholder?: React.ReactNode;
@@ -2129,7 +2185,9 @@ declare const InteractiveGraph: {
2129
2185
  readOnly?: boolean | undefined;
2130
2186
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2131
2187
  getAnotherHint?: (() => unknown) | undefined;
2132
- interactionCallback?: (() => unknown) | undefined;
2188
+ interactionCallback?: ((widgetData: {
2189
+ [widgetId: string]: any;
2190
+ }) => void) | undefined;
2133
2191
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2134
2192
  imagePlaceholder?: React.ReactNode;
2135
2193
  widgetPlaceholder?: React.ReactNode;
@@ -2199,7 +2257,9 @@ declare const InteractiveGraph: {
2199
2257
  readOnly?: boolean | undefined;
2200
2258
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2201
2259
  getAnotherHint?: (() => unknown) | undefined;
2202
- interactionCallback?: (() => unknown) | undefined;
2260
+ interactionCallback?: ((widgetData: {
2261
+ [widgetId: string]: any;
2262
+ }) => void) | undefined;
2203
2263
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2204
2264
  imagePlaceholder?: React.ReactNode;
2205
2265
  widgetPlaceholder?: React.ReactNode;
@@ -2268,7 +2328,9 @@ declare const InteractiveGraph: {
2268
2328
  readOnly?: boolean | undefined;
2269
2329
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2270
2330
  getAnotherHint?: (() => unknown) | undefined;
2271
- interactionCallback?: (() => unknown) | undefined;
2331
+ interactionCallback?: ((widgetData: {
2332
+ [widgetId: string]: any;
2333
+ }) => void) | undefined;
2272
2334
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2273
2335
  imagePlaceholder?: React.ReactNode;
2274
2336
  widgetPlaceholder?: React.ReactNode;
@@ -2337,7 +2399,9 @@ declare const InteractiveGraph: {
2337
2399
  readOnly?: boolean | undefined;
2338
2400
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2339
2401
  getAnotherHint?: (() => unknown) | undefined;
2340
- interactionCallback?: (() => unknown) | undefined;
2402
+ interactionCallback?: ((widgetData: {
2403
+ [widgetId: string]: any;
2404
+ }) => void) | undefined;
2341
2405
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2342
2406
  imagePlaceholder?: React.ReactNode;
2343
2407
  widgetPlaceholder?: React.ReactNode;
@@ -2406,7 +2470,9 @@ declare const InteractiveGraph: {
2406
2470
  readOnly?: boolean | undefined;
2407
2471
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2408
2472
  getAnotherHint?: (() => unknown) | undefined;
2409
- interactionCallback?: (() => unknown) | undefined;
2473
+ interactionCallback?: ((widgetData: {
2474
+ [widgetId: string]: any;
2475
+ }) => void) | undefined;
2410
2476
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2411
2477
  imagePlaceholder?: React.ReactNode;
2412
2478
  widgetPlaceholder?: React.ReactNode;
@@ -2475,7 +2541,9 @@ declare const InteractiveGraph: {
2475
2541
  readOnly?: boolean | undefined;
2476
2542
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2477
2543
  getAnotherHint?: (() => unknown) | undefined;
2478
- interactionCallback?: (() => unknown) | undefined;
2544
+ interactionCallback?: ((widgetData: {
2545
+ [widgetId: string]: any;
2546
+ }) => void) | undefined;
2479
2547
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2480
2548
  imagePlaceholder?: React.ReactNode;
2481
2549
  widgetPlaceholder?: React.ReactNode;
@@ -2544,7 +2612,9 @@ declare const InteractiveGraph: {
2544
2612
  readOnly?: boolean | undefined;
2545
2613
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2546
2614
  getAnotherHint?: (() => unknown) | undefined;
2547
- interactionCallback?: (() => unknown) | undefined;
2615
+ interactionCallback?: ((widgetData: {
2616
+ [widgetId: string]: any;
2617
+ }) => void) | undefined;
2548
2618
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2549
2619
  imagePlaceholder?: React.ReactNode;
2550
2620
  widgetPlaceholder?: React.ReactNode;
@@ -2613,7 +2683,9 @@ declare const InteractiveGraph: {
2613
2683
  readOnly?: boolean | undefined;
2614
2684
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2615
2685
  getAnotherHint?: (() => unknown) | undefined;
2616
- interactionCallback?: (() => unknown) | undefined;
2686
+ interactionCallback?: ((widgetData: {
2687
+ [widgetId: string]: any;
2688
+ }) => void) | undefined;
2617
2689
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2618
2690
  imagePlaceholder?: React.ReactNode;
2619
2691
  widgetPlaceholder?: React.ReactNode;
@@ -2682,7 +2754,9 @@ declare const InteractiveGraph: {
2682
2754
  readOnly?: boolean | undefined;
2683
2755
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2684
2756
  getAnotherHint?: (() => unknown) | undefined;
2685
- interactionCallback?: (() => unknown) | undefined;
2757
+ interactionCallback?: ((widgetData: {
2758
+ [widgetId: string]: any;
2759
+ }) => void) | undefined;
2686
2760
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2687
2761
  imagePlaceholder?: React.ReactNode;
2688
2762
  widgetPlaceholder?: React.ReactNode;
@@ -2751,7 +2825,9 @@ declare const InteractiveGraph: {
2751
2825
  readOnly?: boolean | undefined;
2752
2826
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2753
2827
  getAnotherHint?: (() => unknown) | undefined;
2754
- interactionCallback?: (() => unknown) | undefined;
2828
+ interactionCallback?: ((widgetData: {
2829
+ [widgetId: string]: any;
2830
+ }) => void) | undefined;
2755
2831
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2756
2832
  imagePlaceholder?: React.ReactNode;
2757
2833
  widgetPlaceholder?: React.ReactNode;
@@ -2820,7 +2896,9 @@ declare const InteractiveGraph: {
2820
2896
  readOnly?: boolean | undefined;
2821
2897
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2822
2898
  getAnotherHint?: (() => unknown) | undefined;
2823
- interactionCallback?: (() => unknown) | undefined;
2899
+ interactionCallback?: ((widgetData: {
2900
+ [widgetId: string]: any;
2901
+ }) => void) | undefined;
2824
2902
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2825
2903
  imagePlaceholder?: React.ReactNode;
2826
2904
  widgetPlaceholder?: React.ReactNode;
@@ -2889,7 +2967,9 @@ declare const InteractiveGraph: {
2889
2967
  readOnly?: boolean | undefined;
2890
2968
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2891
2969
  getAnotherHint?: (() => unknown) | undefined;
2892
- interactionCallback?: (() => unknown) | undefined;
2970
+ interactionCallback?: ((widgetData: {
2971
+ [widgetId: string]: any;
2972
+ }) => void) | undefined;
2893
2973
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2894
2974
  imagePlaceholder?: React.ReactNode;
2895
2975
  widgetPlaceholder?: React.ReactNode;
@@ -2958,7 +3038,9 @@ declare const InteractiveGraph: {
2958
3038
  readOnly?: boolean | undefined;
2959
3039
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
2960
3040
  getAnotherHint?: (() => unknown) | undefined;
2961
- interactionCallback?: (() => unknown) | undefined;
3041
+ interactionCallback?: ((widgetData: {
3042
+ [widgetId: string]: any;
3043
+ }) => void) | undefined;
2962
3044
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
2963
3045
  imagePlaceholder?: React.ReactNode;
2964
3046
  widgetPlaceholder?: React.ReactNode;
@@ -3027,7 +3109,9 @@ declare const InteractiveGraph: {
3027
3109
  readOnly?: boolean | undefined;
3028
3110
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
3029
3111
  getAnotherHint?: (() => unknown) | undefined;
3030
- interactionCallback?: (() => unknown) | undefined;
3112
+ interactionCallback?: ((widgetData: {
3113
+ [widgetId: string]: any;
3114
+ }) => void) | undefined;
3031
3115
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
3032
3116
  imagePlaceholder?: React.ReactNode;
3033
3117
  widgetPlaceholder?: React.ReactNode;
@@ -3096,7 +3180,9 @@ declare const InteractiveGraph: {
3096
3180
  readOnly?: boolean | undefined;
3097
3181
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
3098
3182
  getAnotherHint?: (() => unknown) | undefined;
3099
- interactionCallback?: (() => unknown) | undefined;
3183
+ interactionCallback?: ((widgetData: {
3184
+ [widgetId: string]: any;
3185
+ }) => void) | undefined;
3100
3186
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
3101
3187
  imagePlaceholder?: React.ReactNode;
3102
3188
  widgetPlaceholder?: React.ReactNode;
@@ -3165,7 +3251,9 @@ declare const InteractiveGraph: {
3165
3251
  readOnly?: boolean | undefined;
3166
3252
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
3167
3253
  getAnotherHint?: (() => unknown) | undefined;
3168
- interactionCallback?: (() => unknown) | undefined;
3254
+ interactionCallback?: ((widgetData: {
3255
+ [widgetId: string]: any;
3256
+ }) => void) | undefined;
3169
3257
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
3170
3258
  imagePlaceholder?: React.ReactNode;
3171
3259
  widgetPlaceholder?: React.ReactNode;
@@ -3234,7 +3322,9 @@ declare const InteractiveGraph: {
3234
3322
  readOnly?: boolean | undefined;
3235
3323
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
3236
3324
  getAnotherHint?: (() => unknown) | undefined;
3237
- interactionCallback?: (() => unknown) | undefined;
3325
+ interactionCallback?: ((widgetData: {
3326
+ [widgetId: string]: any;
3327
+ }) => void) | undefined;
3238
3328
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
3239
3329
  imagePlaceholder?: React.ReactNode;
3240
3330
  widgetPlaceholder?: React.ReactNode;
@@ -3304,7 +3394,9 @@ declare const InteractiveGraph: {
3304
3394
  readOnly?: boolean | undefined;
3305
3395
  answerableCallback?: ((arg1: boolean) => unknown) | undefined;
3306
3396
  getAnotherHint?: (() => unknown) | undefined;
3307
- interactionCallback?: (() => unknown) | undefined;
3397
+ interactionCallback?: ((widgetData: {
3398
+ [widgetId: string]: any;
3399
+ }) => void) | undefined;
3308
3400
  groupAnnotator?: ((groupNumber: number, widgetId: string) => React.ReactNode) | undefined;
3309
3401
  imagePlaceholder?: React.ReactNode;
3310
3402
  widgetPlaceholder?: React.ReactNode;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "4.2.1",
6
+ "version": "4.2.2",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@khanacademy/kas": "^0.3.8",
29
29
  "@khanacademy/kmath": "^0.1.12",
30
- "@khanacademy/math-input": "^17.0.8",
31
- "@khanacademy/perseus": "^19.2.1",
30
+ "@khanacademy/math-input": "^17.1.0",
31
+ "@khanacademy/perseus": "^19.3.0",
32
32
  "@khanacademy/perseus-core": "1.4.2"
33
33
  },
34
34
  "devDependencies": {