@khanacademy/perseus-editor 32.0.3 → 32.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/widget-editor-settings.d.ts +0 -2
- package/dist/es/index.js +7 -7
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/testing/feature-flags-util.d.ts +0 -4
- package/dist/widgets/interactive-graph-editor/components/graph-type-selector.d.ts +0 -2
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +24 -24
- package/package.json +8 -8
|
@@ -3,8 +3,6 @@ declare const DEFAULT_FEATURE_FLAGS: {
|
|
|
3
3
|
"perseus-test-flag-2": boolean;
|
|
4
4
|
"image-widget-upgrade-gif-controls": boolean;
|
|
5
5
|
"image-widget-upgrade-scale": boolean;
|
|
6
|
-
"interactive-graph-vector": boolean;
|
|
7
|
-
"interactive-graph-not-scored": boolean;
|
|
8
6
|
"input-number-to-numeric-input": boolean;
|
|
9
7
|
};
|
|
10
8
|
/** Utility to get feature flags with optional overrides for testing.
|
|
@@ -16,8 +14,6 @@ export declare function getFeatureFlags(overrides?: Partial<typeof DEFAULT_FEATU
|
|
|
16
14
|
"perseus-test-flag-2": boolean;
|
|
17
15
|
"image-widget-upgrade-gif-controls": boolean;
|
|
18
16
|
"image-widget-upgrade-scale": boolean;
|
|
19
|
-
"interactive-graph-vector": boolean;
|
|
20
|
-
"interactive-graph-not-scored": boolean;
|
|
21
17
|
"input-number-to-numeric-input": boolean;
|
|
22
18
|
};
|
|
23
19
|
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import type { APIOptionsWithDefaults } from "@khanacademy/perseus";
|
|
3
2
|
type GraphTypeSelectorProps = {
|
|
4
3
|
graphType: string;
|
|
5
4
|
onChange: (newGraphType: string) => void;
|
|
6
|
-
apiOptions: APIOptionsWithDefaults;
|
|
7
5
|
};
|
|
8
6
|
declare const GraphTypeSelector: (props: GraphTypeSelectorProps) => React.JSX.Element;
|
|
9
7
|
export default GraphTypeSelector;
|
|
@@ -68,7 +68,7 @@ declare const InteractiveGraph: {
|
|
|
68
68
|
hintProgressColor?: string;
|
|
69
69
|
canScrollPage?: boolean;
|
|
70
70
|
editorChangeDelay?: number;
|
|
71
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
71
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
72
72
|
}> & {
|
|
73
73
|
baseElements: NonNullable<Readonly<{
|
|
74
74
|
isArticle?: boolean;
|
|
@@ -102,7 +102,7 @@ declare const InteractiveGraph: {
|
|
|
102
102
|
hintProgressColor?: string;
|
|
103
103
|
canScrollPage?: boolean;
|
|
104
104
|
editorChangeDelay?: number;
|
|
105
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
105
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
106
106
|
}>["baseElements"]>;
|
|
107
107
|
canScrollPage: NonNullable<Readonly<{
|
|
108
108
|
isArticle?: boolean;
|
|
@@ -136,7 +136,7 @@ declare const InteractiveGraph: {
|
|
|
136
136
|
hintProgressColor?: string;
|
|
137
137
|
canScrollPage?: boolean;
|
|
138
138
|
editorChangeDelay?: number;
|
|
139
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
139
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
140
140
|
}>["canScrollPage"]>;
|
|
141
141
|
editorChangeDelay: NonNullable<Readonly<{
|
|
142
142
|
isArticle?: boolean;
|
|
@@ -170,7 +170,7 @@ declare const InteractiveGraph: {
|
|
|
170
170
|
hintProgressColor?: string;
|
|
171
171
|
canScrollPage?: boolean;
|
|
172
172
|
editorChangeDelay?: number;
|
|
173
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
173
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
174
174
|
}>["editorChangeDelay"]>;
|
|
175
175
|
isArticle: NonNullable<Readonly<{
|
|
176
176
|
isArticle?: boolean;
|
|
@@ -204,7 +204,7 @@ declare const InteractiveGraph: {
|
|
|
204
204
|
hintProgressColor?: string;
|
|
205
205
|
canScrollPage?: boolean;
|
|
206
206
|
editorChangeDelay?: number;
|
|
207
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
207
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
208
208
|
}>["isArticle"]>;
|
|
209
209
|
isMobile: NonNullable<Readonly<{
|
|
210
210
|
isArticle?: boolean;
|
|
@@ -238,7 +238,7 @@ declare const InteractiveGraph: {
|
|
|
238
238
|
hintProgressColor?: string;
|
|
239
239
|
canScrollPage?: boolean;
|
|
240
240
|
editorChangeDelay?: number;
|
|
241
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
241
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
242
242
|
}>["isMobile"]>;
|
|
243
243
|
isMobileApp: NonNullable<Readonly<{
|
|
244
244
|
isArticle?: boolean;
|
|
@@ -272,7 +272,7 @@ declare const InteractiveGraph: {
|
|
|
272
272
|
hintProgressColor?: string;
|
|
273
273
|
canScrollPage?: boolean;
|
|
274
274
|
editorChangeDelay?: number;
|
|
275
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
275
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
276
276
|
}>["isMobileApp"]>;
|
|
277
277
|
editingDisabled: NonNullable<Readonly<{
|
|
278
278
|
isArticle?: boolean;
|
|
@@ -306,7 +306,7 @@ declare const InteractiveGraph: {
|
|
|
306
306
|
hintProgressColor?: string;
|
|
307
307
|
canScrollPage?: boolean;
|
|
308
308
|
editorChangeDelay?: number;
|
|
309
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
309
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
310
310
|
}>["editingDisabled"]>;
|
|
311
311
|
onFocusChange: NonNullable<Readonly<{
|
|
312
312
|
isArticle?: boolean;
|
|
@@ -340,7 +340,7 @@ declare const InteractiveGraph: {
|
|
|
340
340
|
hintProgressColor?: string;
|
|
341
341
|
canScrollPage?: boolean;
|
|
342
342
|
editorChangeDelay?: number;
|
|
343
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
343
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
344
344
|
}>["onFocusChange"]>;
|
|
345
345
|
readOnly: NonNullable<Readonly<{
|
|
346
346
|
isArticle?: boolean;
|
|
@@ -374,7 +374,7 @@ declare const InteractiveGraph: {
|
|
|
374
374
|
hintProgressColor?: string;
|
|
375
375
|
canScrollPage?: boolean;
|
|
376
376
|
editorChangeDelay?: number;
|
|
377
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
377
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
378
378
|
}>["readOnly"]>;
|
|
379
379
|
setDrawingAreaAvailable: NonNullable<Readonly<{
|
|
380
380
|
isArticle?: boolean;
|
|
@@ -408,7 +408,7 @@ declare const InteractiveGraph: {
|
|
|
408
408
|
hintProgressColor?: string;
|
|
409
409
|
canScrollPage?: boolean;
|
|
410
410
|
editorChangeDelay?: number;
|
|
411
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
411
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
412
412
|
}>["setDrawingAreaAvailable"]>;
|
|
413
413
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
414
414
|
isArticle?: boolean;
|
|
@@ -442,7 +442,7 @@ declare const InteractiveGraph: {
|
|
|
442
442
|
hintProgressColor?: string;
|
|
443
443
|
canScrollPage?: boolean;
|
|
444
444
|
editorChangeDelay?: number;
|
|
445
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
445
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
446
446
|
}>["showAlignmentOptions"]>;
|
|
447
447
|
}>;
|
|
448
448
|
keypadElement?: any;
|
|
@@ -541,7 +541,7 @@ declare const InteractiveGraph: {
|
|
|
541
541
|
hintProgressColor?: string;
|
|
542
542
|
canScrollPage?: boolean;
|
|
543
543
|
editorChangeDelay?: number;
|
|
544
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
544
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
545
545
|
}> & {
|
|
546
546
|
baseElements: NonNullable<Readonly<{
|
|
547
547
|
isArticle?: boolean;
|
|
@@ -575,7 +575,7 @@ declare const InteractiveGraph: {
|
|
|
575
575
|
hintProgressColor?: string;
|
|
576
576
|
canScrollPage?: boolean;
|
|
577
577
|
editorChangeDelay?: number;
|
|
578
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
578
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
579
579
|
}>["baseElements"]>;
|
|
580
580
|
canScrollPage: NonNullable<Readonly<{
|
|
581
581
|
isArticle?: boolean;
|
|
@@ -609,7 +609,7 @@ declare const InteractiveGraph: {
|
|
|
609
609
|
hintProgressColor?: string;
|
|
610
610
|
canScrollPage?: boolean;
|
|
611
611
|
editorChangeDelay?: number;
|
|
612
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
612
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
613
613
|
}>["canScrollPage"]>;
|
|
614
614
|
editorChangeDelay: NonNullable<Readonly<{
|
|
615
615
|
isArticle?: boolean;
|
|
@@ -643,7 +643,7 @@ declare const InteractiveGraph: {
|
|
|
643
643
|
hintProgressColor?: string;
|
|
644
644
|
canScrollPage?: boolean;
|
|
645
645
|
editorChangeDelay?: number;
|
|
646
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
646
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
647
647
|
}>["editorChangeDelay"]>;
|
|
648
648
|
isArticle: NonNullable<Readonly<{
|
|
649
649
|
isArticle?: boolean;
|
|
@@ -677,7 +677,7 @@ declare const InteractiveGraph: {
|
|
|
677
677
|
hintProgressColor?: string;
|
|
678
678
|
canScrollPage?: boolean;
|
|
679
679
|
editorChangeDelay?: number;
|
|
680
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
680
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
681
681
|
}>["isArticle"]>;
|
|
682
682
|
isMobile: NonNullable<Readonly<{
|
|
683
683
|
isArticle?: boolean;
|
|
@@ -711,7 +711,7 @@ declare const InteractiveGraph: {
|
|
|
711
711
|
hintProgressColor?: string;
|
|
712
712
|
canScrollPage?: boolean;
|
|
713
713
|
editorChangeDelay?: number;
|
|
714
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
714
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
715
715
|
}>["isMobile"]>;
|
|
716
716
|
isMobileApp: NonNullable<Readonly<{
|
|
717
717
|
isArticle?: boolean;
|
|
@@ -745,7 +745,7 @@ declare const InteractiveGraph: {
|
|
|
745
745
|
hintProgressColor?: string;
|
|
746
746
|
canScrollPage?: boolean;
|
|
747
747
|
editorChangeDelay?: number;
|
|
748
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
748
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
749
749
|
}>["isMobileApp"]>;
|
|
750
750
|
editingDisabled: NonNullable<Readonly<{
|
|
751
751
|
isArticle?: boolean;
|
|
@@ -779,7 +779,7 @@ declare const InteractiveGraph: {
|
|
|
779
779
|
hintProgressColor?: string;
|
|
780
780
|
canScrollPage?: boolean;
|
|
781
781
|
editorChangeDelay?: number;
|
|
782
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
782
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
783
783
|
}>["editingDisabled"]>;
|
|
784
784
|
onFocusChange: NonNullable<Readonly<{
|
|
785
785
|
isArticle?: boolean;
|
|
@@ -813,7 +813,7 @@ declare const InteractiveGraph: {
|
|
|
813
813
|
hintProgressColor?: string;
|
|
814
814
|
canScrollPage?: boolean;
|
|
815
815
|
editorChangeDelay?: number;
|
|
816
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
816
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
817
817
|
}>["onFocusChange"]>;
|
|
818
818
|
readOnly: NonNullable<Readonly<{
|
|
819
819
|
isArticle?: boolean;
|
|
@@ -847,7 +847,7 @@ declare const InteractiveGraph: {
|
|
|
847
847
|
hintProgressColor?: string;
|
|
848
848
|
canScrollPage?: boolean;
|
|
849
849
|
editorChangeDelay?: number;
|
|
850
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
850
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
851
851
|
}>["readOnly"]>;
|
|
852
852
|
setDrawingAreaAvailable: NonNullable<Readonly<{
|
|
853
853
|
isArticle?: boolean;
|
|
@@ -881,7 +881,7 @@ declare const InteractiveGraph: {
|
|
|
881
881
|
hintProgressColor?: string;
|
|
882
882
|
canScrollPage?: boolean;
|
|
883
883
|
editorChangeDelay?: number;
|
|
884
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
884
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
885
885
|
}>["setDrawingAreaAvailable"]>;
|
|
886
886
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
887
887
|
isArticle?: boolean;
|
|
@@ -915,7 +915,7 @@ declare const InteractiveGraph: {
|
|
|
915
915
|
hintProgressColor?: string;
|
|
916
916
|
canScrollPage?: boolean;
|
|
917
917
|
editorChangeDelay?: number;
|
|
918
|
-
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input"
|
|
918
|
+
flags?: Record<"image-widget-upgrade-gif-controls" | "image-widget-upgrade-scale" | "input-number-to-numeric-input", boolean>;
|
|
919
919
|
}>["showAlignmentOptions"]>;
|
|
920
920
|
}>;
|
|
921
921
|
keypadElement?: 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": "32.0.
|
|
6
|
+
"version": "32.0.5",
|
|
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": "77.
|
|
43
|
-
"@khanacademy/perseus-core": "27.0.
|
|
44
|
-
"@khanacademy/perseus-linter": "5.0.
|
|
45
|
-
"@khanacademy/perseus-score": "8.10.
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.57",
|
|
40
|
+
"@khanacademy/kmath": "2.4.15",
|
|
41
|
+
"@khanacademy/math-input": "26.4.29",
|
|
42
|
+
"@khanacademy/perseus": "77.8.0",
|
|
43
|
+
"@khanacademy/perseus-core": "27.0.3",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.0.12",
|
|
45
|
+
"@khanacademy/perseus-score": "8.10.5",
|
|
46
46
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|