@khanacademy/perseus-editor 32.3.2 → 33.0.1
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/article-editor.d.ts +11 -13
- package/dist/editor.d.ts +4 -4
- package/dist/es/index.js +5 -5
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/widgets/image-editor/utils.d.ts +0 -12
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +0 -294
- package/package.json +8 -8
|
@@ -18,18 +18,6 @@ export declare const wbFieldStylesWithDescription: {
|
|
|
18
18
|
marginBlockEnd: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Given a known aspect ratio, and a new side length,
|
|
23
|
-
* return the other side length that maintains the aspect ratio.
|
|
24
|
-
*
|
|
25
|
-
* Ratio math: x/y = x'/y'
|
|
26
|
-
* newWidth/newHeight = width/height
|
|
27
|
-
* => newWidth = (newHeight * width) / height
|
|
28
|
-
* or
|
|
29
|
-
* newHeight/newWidth = height/width
|
|
30
|
-
* => newHeight = (newWidth * height) / width
|
|
31
|
-
*/
|
|
32
|
-
export declare function getOtherSideLengthWithPreservedAspectRatio(sideLength: number, otherSideLength: number, newSideLength: number): number;
|
|
33
21
|
/**
|
|
34
22
|
* Checks if a dimension is invalid. A dimension is valid if it's
|
|
35
23
|
* a positive, non-infinite number.
|
|
@@ -52,7 +52,6 @@ declare const InteractiveGraph: {
|
|
|
52
52
|
baseElements?: {
|
|
53
53
|
Link: React.ComponentType<any>;
|
|
54
54
|
};
|
|
55
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
56
55
|
trackInteraction?: (args: {
|
|
57
56
|
type: string;
|
|
58
57
|
id: string;
|
|
@@ -61,13 +60,9 @@ declare const InteractiveGraph: {
|
|
|
61
60
|
visible: number;
|
|
62
61
|
}>) => void;
|
|
63
62
|
customKeypad?: boolean;
|
|
64
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
65
63
|
isMobile?: boolean;
|
|
66
64
|
isMobileApp?: boolean;
|
|
67
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
68
65
|
hintProgressColor?: string;
|
|
69
|
-
canScrollPage?: boolean;
|
|
70
|
-
editorChangeDelay?: number;
|
|
71
66
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
72
67
|
}> & {
|
|
73
68
|
baseElements: NonNullable<Readonly<{
|
|
@@ -86,7 +81,6 @@ declare const InteractiveGraph: {
|
|
|
86
81
|
baseElements?: {
|
|
87
82
|
Link: React.ComponentType<any>;
|
|
88
83
|
};
|
|
89
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
90
84
|
trackInteraction?: (args: {
|
|
91
85
|
type: string;
|
|
92
86
|
id: string;
|
|
@@ -95,83 +89,11 @@ declare const InteractiveGraph: {
|
|
|
95
89
|
visible: number;
|
|
96
90
|
}>) => void;
|
|
97
91
|
customKeypad?: boolean;
|
|
98
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
99
92
|
isMobile?: boolean;
|
|
100
93
|
isMobileApp?: boolean;
|
|
101
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
102
94
|
hintProgressColor?: string;
|
|
103
|
-
canScrollPage?: boolean;
|
|
104
|
-
editorChangeDelay?: number;
|
|
105
95
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
106
96
|
}>["baseElements"]>;
|
|
107
|
-
canScrollPage: NonNullable<Readonly<{
|
|
108
|
-
isArticle?: boolean;
|
|
109
|
-
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
110
|
-
showAlignmentOptions?: boolean;
|
|
111
|
-
readOnly?: boolean;
|
|
112
|
-
editingDisabled?: boolean;
|
|
113
|
-
answerableCallback?: (arg1: boolean) => unknown;
|
|
114
|
-
getAnotherHint?: () => unknown;
|
|
115
|
-
interactionCallback?: (widgetData: {
|
|
116
|
-
[widgetId: string]: any;
|
|
117
|
-
}) => void;
|
|
118
|
-
imagePlaceholder?: React.ReactNode;
|
|
119
|
-
widgetPlaceholder?: React.ReactNode;
|
|
120
|
-
baseElements?: {
|
|
121
|
-
Link: React.ComponentType<any>;
|
|
122
|
-
};
|
|
123
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
124
|
-
trackInteraction?: (args: {
|
|
125
|
-
type: string;
|
|
126
|
-
id: string;
|
|
127
|
-
correct?: boolean;
|
|
128
|
-
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
129
|
-
visible: number;
|
|
130
|
-
}>) => void;
|
|
131
|
-
customKeypad?: boolean;
|
|
132
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
133
|
-
isMobile?: boolean;
|
|
134
|
-
isMobileApp?: boolean;
|
|
135
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
136
|
-
hintProgressColor?: string;
|
|
137
|
-
canScrollPage?: boolean;
|
|
138
|
-
editorChangeDelay?: number;
|
|
139
|
-
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
140
|
-
}>["canScrollPage"]>;
|
|
141
|
-
editorChangeDelay: NonNullable<Readonly<{
|
|
142
|
-
isArticle?: boolean;
|
|
143
|
-
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
144
|
-
showAlignmentOptions?: boolean;
|
|
145
|
-
readOnly?: boolean;
|
|
146
|
-
editingDisabled?: boolean;
|
|
147
|
-
answerableCallback?: (arg1: boolean) => unknown;
|
|
148
|
-
getAnotherHint?: () => unknown;
|
|
149
|
-
interactionCallback?: (widgetData: {
|
|
150
|
-
[widgetId: string]: any;
|
|
151
|
-
}) => void;
|
|
152
|
-
imagePlaceholder?: React.ReactNode;
|
|
153
|
-
widgetPlaceholder?: React.ReactNode;
|
|
154
|
-
baseElements?: {
|
|
155
|
-
Link: React.ComponentType<any>;
|
|
156
|
-
};
|
|
157
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
158
|
-
trackInteraction?: (args: {
|
|
159
|
-
type: string;
|
|
160
|
-
id: string;
|
|
161
|
-
correct?: boolean;
|
|
162
|
-
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
163
|
-
visible: number;
|
|
164
|
-
}>) => void;
|
|
165
|
-
customKeypad?: boolean;
|
|
166
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
167
|
-
isMobile?: boolean;
|
|
168
|
-
isMobileApp?: boolean;
|
|
169
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
170
|
-
hintProgressColor?: string;
|
|
171
|
-
canScrollPage?: boolean;
|
|
172
|
-
editorChangeDelay?: number;
|
|
173
|
-
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
174
|
-
}>["editorChangeDelay"]>;
|
|
175
97
|
isArticle: NonNullable<Readonly<{
|
|
176
98
|
isArticle?: boolean;
|
|
177
99
|
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
@@ -188,7 +110,6 @@ declare const InteractiveGraph: {
|
|
|
188
110
|
baseElements?: {
|
|
189
111
|
Link: React.ComponentType<any>;
|
|
190
112
|
};
|
|
191
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
192
113
|
trackInteraction?: (args: {
|
|
193
114
|
type: string;
|
|
194
115
|
id: string;
|
|
@@ -197,13 +118,9 @@ declare const InteractiveGraph: {
|
|
|
197
118
|
visible: number;
|
|
198
119
|
}>) => void;
|
|
199
120
|
customKeypad?: boolean;
|
|
200
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
201
121
|
isMobile?: boolean;
|
|
202
122
|
isMobileApp?: boolean;
|
|
203
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
204
123
|
hintProgressColor?: string;
|
|
205
|
-
canScrollPage?: boolean;
|
|
206
|
-
editorChangeDelay?: number;
|
|
207
124
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
208
125
|
}>["isArticle"]>;
|
|
209
126
|
isMobile: NonNullable<Readonly<{
|
|
@@ -222,7 +139,6 @@ declare const InteractiveGraph: {
|
|
|
222
139
|
baseElements?: {
|
|
223
140
|
Link: React.ComponentType<any>;
|
|
224
141
|
};
|
|
225
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
226
142
|
trackInteraction?: (args: {
|
|
227
143
|
type: string;
|
|
228
144
|
id: string;
|
|
@@ -231,13 +147,9 @@ declare const InteractiveGraph: {
|
|
|
231
147
|
visible: number;
|
|
232
148
|
}>) => void;
|
|
233
149
|
customKeypad?: boolean;
|
|
234
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
235
150
|
isMobile?: boolean;
|
|
236
151
|
isMobileApp?: boolean;
|
|
237
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
238
152
|
hintProgressColor?: string;
|
|
239
|
-
canScrollPage?: boolean;
|
|
240
|
-
editorChangeDelay?: number;
|
|
241
153
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
242
154
|
}>["isMobile"]>;
|
|
243
155
|
isMobileApp: NonNullable<Readonly<{
|
|
@@ -256,7 +168,6 @@ declare const InteractiveGraph: {
|
|
|
256
168
|
baseElements?: {
|
|
257
169
|
Link: React.ComponentType<any>;
|
|
258
170
|
};
|
|
259
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
260
171
|
trackInteraction?: (args: {
|
|
261
172
|
type: string;
|
|
262
173
|
id: string;
|
|
@@ -265,13 +176,9 @@ declare const InteractiveGraph: {
|
|
|
265
176
|
visible: number;
|
|
266
177
|
}>) => void;
|
|
267
178
|
customKeypad?: boolean;
|
|
268
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
269
179
|
isMobile?: boolean;
|
|
270
180
|
isMobileApp?: boolean;
|
|
271
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
272
181
|
hintProgressColor?: string;
|
|
273
|
-
canScrollPage?: boolean;
|
|
274
|
-
editorChangeDelay?: number;
|
|
275
182
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
276
183
|
}>["isMobileApp"]>;
|
|
277
184
|
editingDisabled: NonNullable<Readonly<{
|
|
@@ -290,7 +197,6 @@ declare const InteractiveGraph: {
|
|
|
290
197
|
baseElements?: {
|
|
291
198
|
Link: React.ComponentType<any>;
|
|
292
199
|
};
|
|
293
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
294
200
|
trackInteraction?: (args: {
|
|
295
201
|
type: string;
|
|
296
202
|
id: string;
|
|
@@ -299,13 +205,9 @@ declare const InteractiveGraph: {
|
|
|
299
205
|
visible: number;
|
|
300
206
|
}>) => void;
|
|
301
207
|
customKeypad?: boolean;
|
|
302
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
303
208
|
isMobile?: boolean;
|
|
304
209
|
isMobileApp?: boolean;
|
|
305
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
306
210
|
hintProgressColor?: string;
|
|
307
|
-
canScrollPage?: boolean;
|
|
308
|
-
editorChangeDelay?: number;
|
|
309
211
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
310
212
|
}>["editingDisabled"]>;
|
|
311
213
|
onFocusChange: NonNullable<Readonly<{
|
|
@@ -324,7 +226,6 @@ declare const InteractiveGraph: {
|
|
|
324
226
|
baseElements?: {
|
|
325
227
|
Link: React.ComponentType<any>;
|
|
326
228
|
};
|
|
327
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
328
229
|
trackInteraction?: (args: {
|
|
329
230
|
type: string;
|
|
330
231
|
id: string;
|
|
@@ -333,13 +234,9 @@ declare const InteractiveGraph: {
|
|
|
333
234
|
visible: number;
|
|
334
235
|
}>) => void;
|
|
335
236
|
customKeypad?: boolean;
|
|
336
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
337
237
|
isMobile?: boolean;
|
|
338
238
|
isMobileApp?: boolean;
|
|
339
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
340
239
|
hintProgressColor?: string;
|
|
341
|
-
canScrollPage?: boolean;
|
|
342
|
-
editorChangeDelay?: number;
|
|
343
240
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
344
241
|
}>["onFocusChange"]>;
|
|
345
242
|
readOnly: NonNullable<Readonly<{
|
|
@@ -358,7 +255,6 @@ declare const InteractiveGraph: {
|
|
|
358
255
|
baseElements?: {
|
|
359
256
|
Link: React.ComponentType<any>;
|
|
360
257
|
};
|
|
361
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
362
258
|
trackInteraction?: (args: {
|
|
363
259
|
type: string;
|
|
364
260
|
id: string;
|
|
@@ -367,49 +263,11 @@ declare const InteractiveGraph: {
|
|
|
367
263
|
visible: number;
|
|
368
264
|
}>) => void;
|
|
369
265
|
customKeypad?: boolean;
|
|
370
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
371
266
|
isMobile?: boolean;
|
|
372
267
|
isMobileApp?: boolean;
|
|
373
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
374
268
|
hintProgressColor?: string;
|
|
375
|
-
canScrollPage?: boolean;
|
|
376
|
-
editorChangeDelay?: number;
|
|
377
269
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
378
270
|
}>["readOnly"]>;
|
|
379
|
-
setDrawingAreaAvailable: NonNullable<Readonly<{
|
|
380
|
-
isArticle?: boolean;
|
|
381
|
-
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
382
|
-
showAlignmentOptions?: boolean;
|
|
383
|
-
readOnly?: boolean;
|
|
384
|
-
editingDisabled?: boolean;
|
|
385
|
-
answerableCallback?: (arg1: boolean) => unknown;
|
|
386
|
-
getAnotherHint?: () => unknown;
|
|
387
|
-
interactionCallback?: (widgetData: {
|
|
388
|
-
[widgetId: string]: any;
|
|
389
|
-
}) => void;
|
|
390
|
-
imagePlaceholder?: React.ReactNode;
|
|
391
|
-
widgetPlaceholder?: React.ReactNode;
|
|
392
|
-
baseElements?: {
|
|
393
|
-
Link: React.ComponentType<any>;
|
|
394
|
-
};
|
|
395
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
396
|
-
trackInteraction?: (args: {
|
|
397
|
-
type: string;
|
|
398
|
-
id: string;
|
|
399
|
-
correct?: boolean;
|
|
400
|
-
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
401
|
-
visible: number;
|
|
402
|
-
}>) => void;
|
|
403
|
-
customKeypad?: boolean;
|
|
404
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
405
|
-
isMobile?: boolean;
|
|
406
|
-
isMobileApp?: boolean;
|
|
407
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
408
|
-
hintProgressColor?: string;
|
|
409
|
-
canScrollPage?: boolean;
|
|
410
|
-
editorChangeDelay?: number;
|
|
411
|
-
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
412
|
-
}>["setDrawingAreaAvailable"]>;
|
|
413
271
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
414
272
|
isArticle?: boolean;
|
|
415
273
|
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
@@ -426,7 +284,6 @@ declare const InteractiveGraph: {
|
|
|
426
284
|
baseElements?: {
|
|
427
285
|
Link: React.ComponentType<any>;
|
|
428
286
|
};
|
|
429
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
430
287
|
trackInteraction?: (args: {
|
|
431
288
|
type: string;
|
|
432
289
|
id: string;
|
|
@@ -435,13 +292,9 @@ declare const InteractiveGraph: {
|
|
|
435
292
|
visible: number;
|
|
436
293
|
}>) => void;
|
|
437
294
|
customKeypad?: boolean;
|
|
438
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
439
295
|
isMobile?: boolean;
|
|
440
296
|
isMobileApp?: boolean;
|
|
441
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
442
297
|
hintProgressColor?: string;
|
|
443
|
-
canScrollPage?: boolean;
|
|
444
|
-
editorChangeDelay?: number;
|
|
445
298
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
446
299
|
}>["showAlignmentOptions"]>;
|
|
447
300
|
}>;
|
|
@@ -525,7 +378,6 @@ declare const InteractiveGraph: {
|
|
|
525
378
|
baseElements?: {
|
|
526
379
|
Link: React.ComponentType<any>;
|
|
527
380
|
};
|
|
528
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
529
381
|
trackInteraction?: (args: {
|
|
530
382
|
type: string;
|
|
531
383
|
id: string;
|
|
@@ -534,13 +386,9 @@ declare const InteractiveGraph: {
|
|
|
534
386
|
visible: number;
|
|
535
387
|
}>) => void;
|
|
536
388
|
customKeypad?: boolean;
|
|
537
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
538
389
|
isMobile?: boolean;
|
|
539
390
|
isMobileApp?: boolean;
|
|
540
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
541
391
|
hintProgressColor?: string;
|
|
542
|
-
canScrollPage?: boolean;
|
|
543
|
-
editorChangeDelay?: number;
|
|
544
392
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
545
393
|
}> & {
|
|
546
394
|
baseElements: NonNullable<Readonly<{
|
|
@@ -559,7 +407,6 @@ declare const InteractiveGraph: {
|
|
|
559
407
|
baseElements?: {
|
|
560
408
|
Link: React.ComponentType<any>;
|
|
561
409
|
};
|
|
562
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
563
410
|
trackInteraction?: (args: {
|
|
564
411
|
type: string;
|
|
565
412
|
id: string;
|
|
@@ -568,83 +415,11 @@ declare const InteractiveGraph: {
|
|
|
568
415
|
visible: number;
|
|
569
416
|
}>) => void;
|
|
570
417
|
customKeypad?: boolean;
|
|
571
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
572
418
|
isMobile?: boolean;
|
|
573
419
|
isMobileApp?: boolean;
|
|
574
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
575
420
|
hintProgressColor?: string;
|
|
576
|
-
canScrollPage?: boolean;
|
|
577
|
-
editorChangeDelay?: number;
|
|
578
421
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
579
422
|
}>["baseElements"]>;
|
|
580
|
-
canScrollPage: NonNullable<Readonly<{
|
|
581
|
-
isArticle?: boolean;
|
|
582
|
-
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
583
|
-
showAlignmentOptions?: boolean;
|
|
584
|
-
readOnly?: boolean;
|
|
585
|
-
editingDisabled?: boolean;
|
|
586
|
-
answerableCallback?: (arg1: boolean) => unknown;
|
|
587
|
-
getAnotherHint?: () => unknown;
|
|
588
|
-
interactionCallback?: (widgetData: {
|
|
589
|
-
[widgetId: string]: any;
|
|
590
|
-
}) => void;
|
|
591
|
-
imagePlaceholder?: React.ReactNode;
|
|
592
|
-
widgetPlaceholder?: React.ReactNode;
|
|
593
|
-
baseElements?: {
|
|
594
|
-
Link: React.ComponentType<any>;
|
|
595
|
-
};
|
|
596
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
597
|
-
trackInteraction?: (args: {
|
|
598
|
-
type: string;
|
|
599
|
-
id: string;
|
|
600
|
-
correct?: boolean;
|
|
601
|
-
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
602
|
-
visible: number;
|
|
603
|
-
}>) => void;
|
|
604
|
-
customKeypad?: boolean;
|
|
605
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
606
|
-
isMobile?: boolean;
|
|
607
|
-
isMobileApp?: boolean;
|
|
608
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
609
|
-
hintProgressColor?: string;
|
|
610
|
-
canScrollPage?: boolean;
|
|
611
|
-
editorChangeDelay?: number;
|
|
612
|
-
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
613
|
-
}>["canScrollPage"]>;
|
|
614
|
-
editorChangeDelay: NonNullable<Readonly<{
|
|
615
|
-
isArticle?: boolean;
|
|
616
|
-
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
617
|
-
showAlignmentOptions?: boolean;
|
|
618
|
-
readOnly?: boolean;
|
|
619
|
-
editingDisabled?: boolean;
|
|
620
|
-
answerableCallback?: (arg1: boolean) => unknown;
|
|
621
|
-
getAnotherHint?: () => unknown;
|
|
622
|
-
interactionCallback?: (widgetData: {
|
|
623
|
-
[widgetId: string]: any;
|
|
624
|
-
}) => void;
|
|
625
|
-
imagePlaceholder?: React.ReactNode;
|
|
626
|
-
widgetPlaceholder?: React.ReactNode;
|
|
627
|
-
baseElements?: {
|
|
628
|
-
Link: React.ComponentType<any>;
|
|
629
|
-
};
|
|
630
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
631
|
-
trackInteraction?: (args: {
|
|
632
|
-
type: string;
|
|
633
|
-
id: string;
|
|
634
|
-
correct?: boolean;
|
|
635
|
-
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
636
|
-
visible: number;
|
|
637
|
-
}>) => void;
|
|
638
|
-
customKeypad?: boolean;
|
|
639
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
640
|
-
isMobile?: boolean;
|
|
641
|
-
isMobileApp?: boolean;
|
|
642
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
643
|
-
hintProgressColor?: string;
|
|
644
|
-
canScrollPage?: boolean;
|
|
645
|
-
editorChangeDelay?: number;
|
|
646
|
-
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
647
|
-
}>["editorChangeDelay"]>;
|
|
648
423
|
isArticle: NonNullable<Readonly<{
|
|
649
424
|
isArticle?: boolean;
|
|
650
425
|
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
@@ -661,7 +436,6 @@ declare const InteractiveGraph: {
|
|
|
661
436
|
baseElements?: {
|
|
662
437
|
Link: React.ComponentType<any>;
|
|
663
438
|
};
|
|
664
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
665
439
|
trackInteraction?: (args: {
|
|
666
440
|
type: string;
|
|
667
441
|
id: string;
|
|
@@ -670,13 +444,9 @@ declare const InteractiveGraph: {
|
|
|
670
444
|
visible: number;
|
|
671
445
|
}>) => void;
|
|
672
446
|
customKeypad?: boolean;
|
|
673
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
674
447
|
isMobile?: boolean;
|
|
675
448
|
isMobileApp?: boolean;
|
|
676
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
677
449
|
hintProgressColor?: string;
|
|
678
|
-
canScrollPage?: boolean;
|
|
679
|
-
editorChangeDelay?: number;
|
|
680
450
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
681
451
|
}>["isArticle"]>;
|
|
682
452
|
isMobile: NonNullable<Readonly<{
|
|
@@ -695,7 +465,6 @@ declare const InteractiveGraph: {
|
|
|
695
465
|
baseElements?: {
|
|
696
466
|
Link: React.ComponentType<any>;
|
|
697
467
|
};
|
|
698
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
699
468
|
trackInteraction?: (args: {
|
|
700
469
|
type: string;
|
|
701
470
|
id: string;
|
|
@@ -704,13 +473,9 @@ declare const InteractiveGraph: {
|
|
|
704
473
|
visible: number;
|
|
705
474
|
}>) => void;
|
|
706
475
|
customKeypad?: boolean;
|
|
707
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
708
476
|
isMobile?: boolean;
|
|
709
477
|
isMobileApp?: boolean;
|
|
710
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
711
478
|
hintProgressColor?: string;
|
|
712
|
-
canScrollPage?: boolean;
|
|
713
|
-
editorChangeDelay?: number;
|
|
714
479
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
715
480
|
}>["isMobile"]>;
|
|
716
481
|
isMobileApp: NonNullable<Readonly<{
|
|
@@ -729,7 +494,6 @@ declare const InteractiveGraph: {
|
|
|
729
494
|
baseElements?: {
|
|
730
495
|
Link: React.ComponentType<any>;
|
|
731
496
|
};
|
|
732
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
733
497
|
trackInteraction?: (args: {
|
|
734
498
|
type: string;
|
|
735
499
|
id: string;
|
|
@@ -738,13 +502,9 @@ declare const InteractiveGraph: {
|
|
|
738
502
|
visible: number;
|
|
739
503
|
}>) => void;
|
|
740
504
|
customKeypad?: boolean;
|
|
741
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
742
505
|
isMobile?: boolean;
|
|
743
506
|
isMobileApp?: boolean;
|
|
744
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
745
507
|
hintProgressColor?: string;
|
|
746
|
-
canScrollPage?: boolean;
|
|
747
|
-
editorChangeDelay?: number;
|
|
748
508
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
749
509
|
}>["isMobileApp"]>;
|
|
750
510
|
editingDisabled: NonNullable<Readonly<{
|
|
@@ -763,7 +523,6 @@ declare const InteractiveGraph: {
|
|
|
763
523
|
baseElements?: {
|
|
764
524
|
Link: React.ComponentType<any>;
|
|
765
525
|
};
|
|
766
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
767
526
|
trackInteraction?: (args: {
|
|
768
527
|
type: string;
|
|
769
528
|
id: string;
|
|
@@ -772,13 +531,9 @@ declare const InteractiveGraph: {
|
|
|
772
531
|
visible: number;
|
|
773
532
|
}>) => void;
|
|
774
533
|
customKeypad?: boolean;
|
|
775
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
776
534
|
isMobile?: boolean;
|
|
777
535
|
isMobileApp?: boolean;
|
|
778
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
779
536
|
hintProgressColor?: string;
|
|
780
|
-
canScrollPage?: boolean;
|
|
781
|
-
editorChangeDelay?: number;
|
|
782
537
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
783
538
|
}>["editingDisabled"]>;
|
|
784
539
|
onFocusChange: NonNullable<Readonly<{
|
|
@@ -797,7 +552,6 @@ declare const InteractiveGraph: {
|
|
|
797
552
|
baseElements?: {
|
|
798
553
|
Link: React.ComponentType<any>;
|
|
799
554
|
};
|
|
800
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
801
555
|
trackInteraction?: (args: {
|
|
802
556
|
type: string;
|
|
803
557
|
id: string;
|
|
@@ -806,13 +560,9 @@ declare const InteractiveGraph: {
|
|
|
806
560
|
visible: number;
|
|
807
561
|
}>) => void;
|
|
808
562
|
customKeypad?: boolean;
|
|
809
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
810
563
|
isMobile?: boolean;
|
|
811
564
|
isMobileApp?: boolean;
|
|
812
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
813
565
|
hintProgressColor?: string;
|
|
814
|
-
canScrollPage?: boolean;
|
|
815
|
-
editorChangeDelay?: number;
|
|
816
566
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
817
567
|
}>["onFocusChange"]>;
|
|
818
568
|
readOnly: NonNullable<Readonly<{
|
|
@@ -831,7 +581,6 @@ declare const InteractiveGraph: {
|
|
|
831
581
|
baseElements?: {
|
|
832
582
|
Link: React.ComponentType<any>;
|
|
833
583
|
};
|
|
834
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
835
584
|
trackInteraction?: (args: {
|
|
836
585
|
type: string;
|
|
837
586
|
id: string;
|
|
@@ -840,49 +589,11 @@ declare const InteractiveGraph: {
|
|
|
840
589
|
visible: number;
|
|
841
590
|
}>) => void;
|
|
842
591
|
customKeypad?: boolean;
|
|
843
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
844
592
|
isMobile?: boolean;
|
|
845
593
|
isMobileApp?: boolean;
|
|
846
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
847
594
|
hintProgressColor?: string;
|
|
848
|
-
canScrollPage?: boolean;
|
|
849
|
-
editorChangeDelay?: number;
|
|
850
595
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
851
596
|
}>["readOnly"]>;
|
|
852
|
-
setDrawingAreaAvailable: NonNullable<Readonly<{
|
|
853
|
-
isArticle?: boolean;
|
|
854
|
-
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
855
|
-
showAlignmentOptions?: boolean;
|
|
856
|
-
readOnly?: boolean;
|
|
857
|
-
editingDisabled?: boolean;
|
|
858
|
-
answerableCallback?: (arg1: boolean) => unknown;
|
|
859
|
-
getAnotherHint?: () => unknown;
|
|
860
|
-
interactionCallback?: (widgetData: {
|
|
861
|
-
[widgetId: string]: any;
|
|
862
|
-
}) => void;
|
|
863
|
-
imagePlaceholder?: React.ReactNode;
|
|
864
|
-
widgetPlaceholder?: React.ReactNode;
|
|
865
|
-
baseElements?: {
|
|
866
|
-
Link: React.ComponentType<any>;
|
|
867
|
-
};
|
|
868
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
869
|
-
trackInteraction?: (args: {
|
|
870
|
-
type: string;
|
|
871
|
-
id: string;
|
|
872
|
-
correct?: boolean;
|
|
873
|
-
} & Partial<import("../../../../perseus/src/types").TrackingGradedGroupExtraArguments> & Partial<{
|
|
874
|
-
visible: number;
|
|
875
|
-
}>) => void;
|
|
876
|
-
customKeypad?: boolean;
|
|
877
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
878
|
-
isMobile?: boolean;
|
|
879
|
-
isMobileApp?: boolean;
|
|
880
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
881
|
-
hintProgressColor?: string;
|
|
882
|
-
canScrollPage?: boolean;
|
|
883
|
-
editorChangeDelay?: number;
|
|
884
|
-
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
885
|
-
}>["setDrawingAreaAvailable"]>;
|
|
886
597
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
887
598
|
isArticle?: boolean;
|
|
888
599
|
onFocusChange?: (newFocusPath: import("@khanacademy/perseus").FocusPath, oldFocusPath: import("@khanacademy/perseus").FocusPath, keypadHeight?: number, focusedElement?: HTMLElement) => unknown;
|
|
@@ -899,7 +610,6 @@ declare const InteractiveGraph: {
|
|
|
899
610
|
baseElements?: {
|
|
900
611
|
Link: React.ComponentType<any>;
|
|
901
612
|
};
|
|
902
|
-
imagePreloader?: (dimensions: import("../../../../perseus/src/types").Dimensions) => React.ReactNode;
|
|
903
613
|
trackInteraction?: (args: {
|
|
904
614
|
type: string;
|
|
905
615
|
id: string;
|
|
@@ -908,13 +618,9 @@ declare const InteractiveGraph: {
|
|
|
908
618
|
visible: number;
|
|
909
619
|
}>) => void;
|
|
910
620
|
customKeypad?: boolean;
|
|
911
|
-
nativeKeypadProxy?: (blur: () => void) => import("@khanacademy/math-input").KeypadAPI;
|
|
912
621
|
isMobile?: boolean;
|
|
913
622
|
isMobileApp?: boolean;
|
|
914
|
-
setDrawingAreaAvailable?: (arg1: boolean) => unknown;
|
|
915
623
|
hintProgressColor?: string;
|
|
916
|
-
canScrollPage?: boolean;
|
|
917
|
-
editorChangeDelay?: number;
|
|
918
624
|
flags?: Record<"input-number-to-numeric-input", boolean>;
|
|
919
625
|
}>["showAlignmentOptions"]>;
|
|
920
626
|
}>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Perseus editors",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "33.0.1",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"mafs": "^0.19.0",
|
|
37
37
|
"tiny-invariant": "1.3.1",
|
|
38
38
|
"@khanacademy/kas": "2.2.3",
|
|
39
|
-
"@khanacademy/keypad-context": "3.2.
|
|
40
|
-
"@khanacademy/kmath": "2.4.
|
|
41
|
-
"@khanacademy/math-input": "26.4.
|
|
42
|
-
"@khanacademy/perseus": "
|
|
43
|
-
"@khanacademy/perseus-core": "
|
|
44
|
-
"@khanacademy/perseus-linter": "5.1.
|
|
45
|
-
"@khanacademy/perseus-score": "8.11.
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.63",
|
|
40
|
+
"@khanacademy/kmath": "2.4.21",
|
|
41
|
+
"@khanacademy/math-input": "26.4.35",
|
|
42
|
+
"@khanacademy/perseus": "78.0.1",
|
|
43
|
+
"@khanacademy/perseus-core": "28.0.1",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.1.2",
|
|
45
|
+
"@khanacademy/perseus-score": "8.11.5",
|
|
46
46
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|