@khanacademy/perseus-editor 35.0.3 → 35.1.0
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/all-editors.d.ts +1 -2
- package/dist/article-editor.d.ts +1 -1
- package/dist/components/alignment-select.d.ts +1 -1
- package/dist/components/typed-single-select.d.ts +43 -0
- package/dist/components/widget-editor-settings.d.ts +1 -1
- package/dist/components/widget-editor.d.ts +3 -3
- package/dist/editor.d.ts +0 -2
- package/dist/es/index.js +38 -38
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +37 -37
- package/dist/index.js.map +1 -1
- package/dist/testing/feature-flags-util.d.ts +0 -1
- package/dist/widgets/interactive-graph-editor/components/graph-type-selector.d.ts +4 -2
- package/dist/widgets/interactive-graph-editor/interactive-graph-editor.d.ts +18 -18
- package/dist/widgets/interactive-graph-editor/locked-figures/locked-function-examples.d.ts +2 -4
- package/package.json +7 -7
- package/dist/widgets/molecule-editor.d.ts +0 -16
|
@@ -7,7 +7,6 @@ declare const DEFAULT_FEATURE_FLAGS: Record<"perseus-test-flag-1" | "perseus-tes
|
|
|
7
7
|
export declare function getFeatureFlags(overrides?: Partial<typeof DEFAULT_FEATURE_FLAGS>): {
|
|
8
8
|
"perseus-renderer-upgrade": boolean;
|
|
9
9
|
"desmos-calculator": boolean;
|
|
10
|
-
"perseus-enable-point-label-field": boolean;
|
|
11
10
|
"perseus-test-flag-1": boolean;
|
|
12
11
|
"perseus-test-flag-2": boolean;
|
|
13
12
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import type { PerseusGraphType } from "@khanacademy/perseus-core";
|
|
3
|
+
type GraphType = PerseusGraphType["type"];
|
|
2
4
|
interface GraphTypeSelectorProps {
|
|
3
|
-
graphType:
|
|
5
|
+
graphType: GraphType;
|
|
4
6
|
disabled?: boolean;
|
|
5
|
-
onChange: (newGraphType:
|
|
7
|
+
onChange: (newGraphType: GraphType) => void;
|
|
6
8
|
}
|
|
7
9
|
declare const GraphTypeSelector: (props: GraphTypeSelectorProps) => React.JSX.Element;
|
|
8
10
|
export default GraphTypeSelector;
|
|
@@ -63,7 +63,7 @@ declare const InteractiveGraph: {
|
|
|
63
63
|
isMobile?: boolean;
|
|
64
64
|
isMobileApp?: boolean;
|
|
65
65
|
hintProgressColor?: string;
|
|
66
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
66
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
67
67
|
}> & {
|
|
68
68
|
baseElements: NonNullable<Readonly<{
|
|
69
69
|
isArticle?: boolean;
|
|
@@ -92,7 +92,7 @@ declare const InteractiveGraph: {
|
|
|
92
92
|
isMobile?: boolean;
|
|
93
93
|
isMobileApp?: boolean;
|
|
94
94
|
hintProgressColor?: string;
|
|
95
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
95
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
96
96
|
}>["baseElements"]>;
|
|
97
97
|
isArticle: NonNullable<Readonly<{
|
|
98
98
|
isArticle?: boolean;
|
|
@@ -121,7 +121,7 @@ declare const InteractiveGraph: {
|
|
|
121
121
|
isMobile?: boolean;
|
|
122
122
|
isMobileApp?: boolean;
|
|
123
123
|
hintProgressColor?: string;
|
|
124
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
124
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
125
125
|
}>["isArticle"]>;
|
|
126
126
|
isMobile: NonNullable<Readonly<{
|
|
127
127
|
isArticle?: boolean;
|
|
@@ -150,7 +150,7 @@ declare const InteractiveGraph: {
|
|
|
150
150
|
isMobile?: boolean;
|
|
151
151
|
isMobileApp?: boolean;
|
|
152
152
|
hintProgressColor?: string;
|
|
153
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
153
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
154
154
|
}>["isMobile"]>;
|
|
155
155
|
isMobileApp: NonNullable<Readonly<{
|
|
156
156
|
isArticle?: boolean;
|
|
@@ -179,7 +179,7 @@ declare const InteractiveGraph: {
|
|
|
179
179
|
isMobile?: boolean;
|
|
180
180
|
isMobileApp?: boolean;
|
|
181
181
|
hintProgressColor?: string;
|
|
182
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
182
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
183
183
|
}>["isMobileApp"]>;
|
|
184
184
|
editingDisabled: NonNullable<Readonly<{
|
|
185
185
|
isArticle?: boolean;
|
|
@@ -208,7 +208,7 @@ declare const InteractiveGraph: {
|
|
|
208
208
|
isMobile?: boolean;
|
|
209
209
|
isMobileApp?: boolean;
|
|
210
210
|
hintProgressColor?: string;
|
|
211
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
211
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
212
212
|
}>["editingDisabled"]>;
|
|
213
213
|
onFocusChange: NonNullable<Readonly<{
|
|
214
214
|
isArticle?: boolean;
|
|
@@ -237,7 +237,7 @@ declare const InteractiveGraph: {
|
|
|
237
237
|
isMobile?: boolean;
|
|
238
238
|
isMobileApp?: boolean;
|
|
239
239
|
hintProgressColor?: string;
|
|
240
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
240
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
241
241
|
}>["onFocusChange"]>;
|
|
242
242
|
readOnly: NonNullable<Readonly<{
|
|
243
243
|
isArticle?: boolean;
|
|
@@ -266,7 +266,7 @@ declare const InteractiveGraph: {
|
|
|
266
266
|
isMobile?: boolean;
|
|
267
267
|
isMobileApp?: boolean;
|
|
268
268
|
hintProgressColor?: string;
|
|
269
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
269
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
270
270
|
}>["readOnly"]>;
|
|
271
271
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
272
272
|
isArticle?: boolean;
|
|
@@ -295,7 +295,7 @@ declare const InteractiveGraph: {
|
|
|
295
295
|
isMobile?: boolean;
|
|
296
296
|
isMobileApp?: boolean;
|
|
297
297
|
hintProgressColor?: string;
|
|
298
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
298
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
299
299
|
}>["showAlignmentOptions"]>;
|
|
300
300
|
}>;
|
|
301
301
|
keypadElement?: any;
|
|
@@ -389,7 +389,7 @@ declare const InteractiveGraph: {
|
|
|
389
389
|
isMobile?: boolean;
|
|
390
390
|
isMobileApp?: boolean;
|
|
391
391
|
hintProgressColor?: string;
|
|
392
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
392
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
393
393
|
}> & {
|
|
394
394
|
baseElements: NonNullable<Readonly<{
|
|
395
395
|
isArticle?: boolean;
|
|
@@ -418,7 +418,7 @@ declare const InteractiveGraph: {
|
|
|
418
418
|
isMobile?: boolean;
|
|
419
419
|
isMobileApp?: boolean;
|
|
420
420
|
hintProgressColor?: string;
|
|
421
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
421
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
422
422
|
}>["baseElements"]>;
|
|
423
423
|
isArticle: NonNullable<Readonly<{
|
|
424
424
|
isArticle?: boolean;
|
|
@@ -447,7 +447,7 @@ declare const InteractiveGraph: {
|
|
|
447
447
|
isMobile?: boolean;
|
|
448
448
|
isMobileApp?: boolean;
|
|
449
449
|
hintProgressColor?: string;
|
|
450
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
450
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
451
451
|
}>["isArticle"]>;
|
|
452
452
|
isMobile: NonNullable<Readonly<{
|
|
453
453
|
isArticle?: boolean;
|
|
@@ -476,7 +476,7 @@ declare const InteractiveGraph: {
|
|
|
476
476
|
isMobile?: boolean;
|
|
477
477
|
isMobileApp?: boolean;
|
|
478
478
|
hintProgressColor?: string;
|
|
479
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
479
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
480
480
|
}>["isMobile"]>;
|
|
481
481
|
isMobileApp: NonNullable<Readonly<{
|
|
482
482
|
isArticle?: boolean;
|
|
@@ -505,7 +505,7 @@ declare const InteractiveGraph: {
|
|
|
505
505
|
isMobile?: boolean;
|
|
506
506
|
isMobileApp?: boolean;
|
|
507
507
|
hintProgressColor?: string;
|
|
508
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
508
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
509
509
|
}>["isMobileApp"]>;
|
|
510
510
|
editingDisabled: NonNullable<Readonly<{
|
|
511
511
|
isArticle?: boolean;
|
|
@@ -534,7 +534,7 @@ declare const InteractiveGraph: {
|
|
|
534
534
|
isMobile?: boolean;
|
|
535
535
|
isMobileApp?: boolean;
|
|
536
536
|
hintProgressColor?: string;
|
|
537
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
537
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
538
538
|
}>["editingDisabled"]>;
|
|
539
539
|
onFocusChange: NonNullable<Readonly<{
|
|
540
540
|
isArticle?: boolean;
|
|
@@ -563,7 +563,7 @@ declare const InteractiveGraph: {
|
|
|
563
563
|
isMobile?: boolean;
|
|
564
564
|
isMobileApp?: boolean;
|
|
565
565
|
hintProgressColor?: string;
|
|
566
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
566
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
567
567
|
}>["onFocusChange"]>;
|
|
568
568
|
readOnly: NonNullable<Readonly<{
|
|
569
569
|
isArticle?: boolean;
|
|
@@ -592,7 +592,7 @@ declare const InteractiveGraph: {
|
|
|
592
592
|
isMobile?: boolean;
|
|
593
593
|
isMobileApp?: boolean;
|
|
594
594
|
hintProgressColor?: string;
|
|
595
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
595
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
596
596
|
}>["readOnly"]>;
|
|
597
597
|
showAlignmentOptions: NonNullable<Readonly<{
|
|
598
598
|
isArticle?: boolean;
|
|
@@ -621,7 +621,7 @@ declare const InteractiveGraph: {
|
|
|
621
621
|
isMobile?: boolean;
|
|
622
622
|
isMobileApp?: boolean;
|
|
623
623
|
hintProgressColor?: string;
|
|
624
|
-
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator"
|
|
624
|
+
flags?: Record<"perseus-renderer-upgrade" | "desmos-calculator", boolean>;
|
|
625
625
|
}>["showAlignmentOptions"]>;
|
|
626
626
|
}>;
|
|
627
627
|
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": "35.0
|
|
6
|
+
"version": "35.1.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -36,12 +36,12 @@
|
|
|
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.6.
|
|
42
|
-
"@khanacademy/perseus": "
|
|
43
|
-
"@khanacademy/perseus-core": "
|
|
44
|
-
"@khanacademy/perseus-linter": "5.1.
|
|
39
|
+
"@khanacademy/keypad-context": "3.2.76",
|
|
40
|
+
"@khanacademy/kmath": "2.4.35",
|
|
41
|
+
"@khanacademy/math-input": "26.6.5",
|
|
42
|
+
"@khanacademy/perseus": "82.0.0",
|
|
43
|
+
"@khanacademy/perseus-core": "33.0.0",
|
|
44
|
+
"@khanacademy/perseus-linter": "5.1.16",
|
|
45
45
|
"@khanacademy/perseus-utils": "2.1.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
type Props = any;
|
|
3
|
-
declare class MoleculeWidgetEditor extends React.Component<Props> {
|
|
4
|
-
static propTypes: {
|
|
5
|
-
rotationAngle: any;
|
|
6
|
-
smiles: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
};
|
|
9
|
-
static widgetName: "molecule-renderer";
|
|
10
|
-
change: (arg1: any, arg2: any, arg3: any) => any;
|
|
11
|
-
updateMolecule: (arg1: string) => void;
|
|
12
|
-
updateRotation: (arg1: string) => void;
|
|
13
|
-
serialize: () => any;
|
|
14
|
-
render(): React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export default MoleculeWidgetEditor;
|