@khanacademy/perseus 78.1.0 → 78.2.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/es/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server-item-renderer.d.ts +1 -1
- package/dist/testing/feature-flags-util.d.ts +2 -0
- package/dist/testing/item-renderer-hooks.d.ts +1 -1
- package/dist/widgets/dropdown/dropdown.d.ts +1 -1
- package/dist/widgets/expression/expression.d.ts +2 -2
- package/dist/widgets/interactive-graphs/interactive-graph.d.ts +1 -1
- package/dist/widgets/label-image/label-image.d.ts +1 -1
- package/dist/widgets/mock-widgets/mock-widget.d.ts +1 -1
- package/dist/widgets/numeric-input/numeric-input.class.d.ts +1 -1
- package/dist/widgets/numeric-input/numeric-input.d.ts +2 -2
- package/dist/widgets/table/table.d.ts +1 -1
- package/package.json +7 -7
package/dist/es/index.js
CHANGED
|
@@ -2078,7 +2078,7 @@ var extraWidgets = [CSProgram$1,Categorizer$1,Definition$1,DeprecatedStandin$1,D
|
|
|
2078
2078
|
|
|
2079
2079
|
const init=function(){registerWidgets(basicWidgets);registerWidgets(extraWidgets);replaceDeprecatedWidgets();};
|
|
2080
2080
|
|
|
2081
|
-
const libName="@khanacademy/perseus";const libVersion="78.
|
|
2081
|
+
const libName="@khanacademy/perseus";const libVersion="78.2.0";addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
2082
2082
|
|
|
2083
2083
|
const apiVersion={major:12,minor:0};
|
|
2084
2084
|
|
package/dist/index.js
CHANGED
|
@@ -2132,7 +2132,7 @@ var extraWidgets = [CSProgram$1,Categorizer$1,Definition$1,DeprecatedStandin$1,D
|
|
|
2132
2132
|
|
|
2133
2133
|
const init=function(){registerWidgets(basicWidgets);registerWidgets(extraWidgets);replaceDeprecatedWidgets();};
|
|
2134
2134
|
|
|
2135
|
-
const libName="@khanacademy/perseus";const libVersion="78.
|
|
2135
|
+
const libName="@khanacademy/perseus";const libVersion="78.2.0";perseusUtils.addLibraryVersionToPerseusDebug(libName,libVersion);
|
|
2136
2136
|
|
|
2137
2137
|
const apiVersion={major:12,minor:0};
|
|
2138
2138
|
|
|
@@ -118,7 +118,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<Pick<SharedRenderer
|
|
|
118
118
|
isMobile?: boolean;
|
|
119
119
|
isMobileApp?: boolean;
|
|
120
120
|
hintProgressColor?: string;
|
|
121
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
121
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
122
122
|
}> | undefined;
|
|
123
123
|
linterContext?: PerseusLinter.LinterContextProps | undefined;
|
|
124
124
|
onRendered?: ((isRendered: boolean) => void) | undefined;
|
|
@@ -5,6 +5,7 @@ declare const DEFAULT_FEATURE_FLAGS: {
|
|
|
5
5
|
"interactive-graph-not-scored": boolean;
|
|
6
6
|
"input-number-to-numeric-input": boolean;
|
|
7
7
|
"grapher-to-interactive-graph": boolean;
|
|
8
|
+
"desmos-calculator": boolean;
|
|
8
9
|
};
|
|
9
10
|
/** Utility to get feature flags with optional overrides for testing.
|
|
10
11
|
* sample usage:
|
|
@@ -17,5 +18,6 @@ export declare function getFeatureFlags(overrides?: Partial<typeof DEFAULT_FEATU
|
|
|
17
18
|
"interactive-graph-not-scored": boolean;
|
|
18
19
|
"input-number-to-numeric-input": boolean;
|
|
19
20
|
"grapher-to-interactive-graph": boolean;
|
|
21
|
+
"desmos-calculator": boolean;
|
|
20
22
|
};
|
|
21
23
|
export {};
|
|
@@ -34,7 +34,7 @@ export declare const useItemRenderer: (item: PerseusItem, apiOptions?: APIOption
|
|
|
34
34
|
}>) => void;
|
|
35
35
|
isMobileApp?: boolean;
|
|
36
36
|
hintProgressColor?: string;
|
|
37
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
37
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
38
38
|
};
|
|
39
39
|
toggleMobile: (isMobile: boolean) => void;
|
|
40
40
|
toggleRtl: (isRtl: boolean) => void;
|
|
@@ -47,7 +47,7 @@ declare const _default: {
|
|
|
47
47
|
isMobile?: boolean;
|
|
48
48
|
isMobileApp?: boolean;
|
|
49
49
|
hintProgressColor?: string;
|
|
50
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
50
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
51
51
|
}> & {
|
|
52
52
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
53
53
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -37,7 +37,7 @@ export declare const Expression: React.ForwardRefExoticComponent<PerseusExpressi
|
|
|
37
37
|
isMobile?: boolean;
|
|
38
38
|
isMobileApp?: boolean;
|
|
39
39
|
hintProgressColor?: string;
|
|
40
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
40
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
41
41
|
}> & {
|
|
42
42
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
43
43
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -109,7 +109,7 @@ declare const _default: {
|
|
|
109
109
|
isMobile?: boolean;
|
|
110
110
|
isMobileApp?: boolean;
|
|
111
111
|
hintProgressColor?: string;
|
|
112
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
112
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
113
113
|
}> & {
|
|
114
114
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
115
115
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -194,7 +194,7 @@ declare class InteractiveGraph extends React.Component<Props, State> {
|
|
|
194
194
|
isMobile?: boolean;
|
|
195
195
|
isMobileApp?: boolean;
|
|
196
196
|
hintProgressColor?: string;
|
|
197
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
197
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
198
198
|
}> & {
|
|
199
199
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
200
200
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -146,7 +146,7 @@ declare const _default: {
|
|
|
146
146
|
isMobile?: boolean;
|
|
147
147
|
isMobileApp?: boolean;
|
|
148
148
|
hintProgressColor?: string;
|
|
149
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
149
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
150
150
|
}> & {
|
|
151
151
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
152
152
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -70,7 +70,7 @@ declare class MockWidgetComponent extends React.Component<Props> implements Widg
|
|
|
70
70
|
isMobile?: boolean;
|
|
71
71
|
isMobileApp?: boolean;
|
|
72
72
|
hintProgressColor?: string;
|
|
73
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
73
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
74
74
|
}> & {
|
|
75
75
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
76
76
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -78,7 +78,7 @@ export declare class NumericInput extends React.Component<NumericInputProps> imp
|
|
|
78
78
|
isMobile?: boolean;
|
|
79
79
|
isMobileApp?: boolean;
|
|
80
80
|
hintProgressColor?: string;
|
|
81
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
81
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
82
82
|
}> & {
|
|
83
83
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
84
84
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -40,7 +40,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
|
|
|
40
40
|
isMobile?: boolean;
|
|
41
41
|
isMobileApp?: boolean;
|
|
42
42
|
hintProgressColor?: string;
|
|
43
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
43
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
44
44
|
}> & {
|
|
45
45
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
46
46
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -91,7 +91,7 @@ export declare const NumericInputComponent: React.ForwardRefExoticComponent<impo
|
|
|
91
91
|
isMobile?: boolean;
|
|
92
92
|
isMobileApp?: boolean;
|
|
93
93
|
hintProgressColor?: string;
|
|
94
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
94
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
95
95
|
}> & {
|
|
96
96
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
97
97
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
|
@@ -78,7 +78,7 @@ declare class Table extends React.Component<Props> implements Widget {
|
|
|
78
78
|
isMobile?: boolean;
|
|
79
79
|
isMobileApp?: boolean;
|
|
80
80
|
hintProgressColor?: string;
|
|
81
|
-
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph", boolean>;
|
|
81
|
+
flags?: Record<"input-number-to-numeric-input" | "grapher-to-interactive-graph" | "desmos-calculator", boolean>;
|
|
82
82
|
}> & {
|
|
83
83
|
baseElements: NonNullable<import("../..").APIOptions["baseElements"]>;
|
|
84
84
|
isArticle: NonNullable<import("../..").APIOptions["isArticle"]>;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Core Perseus API (includes renderers and widgets)",
|
|
4
4
|
"author": "Khan Academy",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "78.
|
|
6
|
+
"version": "78.2.0",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"tiny-invariant": "1.3.1",
|
|
44
44
|
"uuid": "^10.0.0",
|
|
45
45
|
"@khanacademy/kas": "2.2.3",
|
|
46
|
-
"@khanacademy/keypad-context": "3.2.
|
|
47
|
-
"@khanacademy/kmath": "2.4.
|
|
48
|
-
"@khanacademy/math-input": "26.4.
|
|
49
|
-
"@khanacademy/perseus-core": "28.
|
|
50
|
-
"@khanacademy/perseus-linter": "5.1.
|
|
51
|
-
"@khanacademy/perseus-score": "8.11.
|
|
46
|
+
"@khanacademy/keypad-context": "3.2.65",
|
|
47
|
+
"@khanacademy/kmath": "2.4.23",
|
|
48
|
+
"@khanacademy/math-input": "26.4.37",
|
|
49
|
+
"@khanacademy/perseus-core": "28.2.0",
|
|
50
|
+
"@khanacademy/perseus-linter": "5.1.4",
|
|
51
|
+
"@khanacademy/perseus-score": "8.11.7",
|
|
52
52
|
"@khanacademy/perseus-utils": "2.1.5",
|
|
53
53
|
"@khanacademy/pure-markdown": "2.2.8",
|
|
54
54
|
"@khanacademy/simple-markdown": "2.2.3"
|