@khanacademy/perseus-core 28.1.0 → 28.3.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.
@@ -10,7 +10,7 @@ export declare const parseExpressionWidget: import("../parser-types").Parser<imp
10
10
  times: boolean;
11
11
  visibleLabel: string | undefined;
12
12
  ariaLabel: string | undefined;
13
- buttonSets: ("basic" | "basic+div" | "trig" | "prealgebra" | "logarithms" | "basic relations" | "advanced relations" | "scientific")[];
13
+ buttonSets: ("scientific" | "basic" | "basic+div" | "trig" | "prealgebra" | "logarithms" | "basic relations" | "advanced relations")[];
14
14
  buttonsVisible: "always" | "never" | "focused" | undefined;
15
15
  extraKeys: ("PLUS" | "MINUS" | "NEGATIVE" | "TIMES" | "DIVIDE" | "DECIMAL" | "PERIOD" | "PERCENT" | "CDOT" | "EQUAL" | "NEQ" | "GT" | "LT" | "GEQ" | "LEQ" | "FRAC_INCLUSIVE" | "FRAC_EXCLUSIVE" | "FRAC" | "EXP" | "EXP_2" | "EXP_3" | "SQRT" | "CUBE_ROOT" | "RADICAL" | "LEFT_PAREN" | "RIGHT_PAREN" | "LN" | "LOG" | "LOG_N" | "SIN" | "COS" | "TAN" | "PI" | "THETA" | "UP" | "RIGHT" | "DOWN" | "LEFT" | "BACKSPACE" | "DISMISS" | "JUMP_OUT_PARENTHESES" | "JUMP_OUT_EXPONENT" | "JUMP_OUT_BASE" | "JUMP_INTO_NUMERATOR" | "JUMP_OUT_NUMERATOR" | "JUMP_OUT_DENOMINATOR" | "NUM_0" | "NUM_1" | "NUM_2" | "NUM_3" | "NUM_4" | "NUM_5" | "NUM_6" | "NUM_7" | "NUM_8" | "NUM_9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z")[] | undefined;
16
16
  }>>>;
@@ -1 +1 @@
1
- export declare const parseLegacyButtonSets: import("../parser-types").Parser<("basic" | "basic+div" | "trig" | "prealgebra" | "logarithms" | "basic relations" | "advanced relations" | "scientific")[]>;
1
+ export declare const parseLegacyButtonSets: import("../parser-types").Parser<("scientific" | "basic" | "basic+div" | "trig" | "prealgebra" | "logarithms" | "basic relations" | "advanced relations")[]>;
@@ -1,8 +1,11 @@
1
- export declare const parsePerseusAnswerArea: import("../parser-types").Parser<import("../general-purpose-parsers/object-types").OptionalizeProperties<{
1
+ type CalculatorVariant = "scientific" | "graphing" | "four_function";
2
+ export declare const parsePerseusAnswerArea: import("../parser-types").Parser<{
3
+ calculatorVariant: CalculatorVariant | null;
2
4
  calculator: boolean;
3
5
  financialCalculatorMonthlyPayment: boolean;
4
6
  financialCalculatorTotalAmount: boolean;
5
7
  financialCalculatorTimeToPayOff: boolean;
6
8
  periodicTable: boolean;
7
9
  periodicTableWithKey: boolean;
8
- }>>;
10
+ }>;
11
+ export {};
@@ -0,0 +1,63 @@
1
+ declare const _default: {
2
+ question: {
3
+ content: string;
4
+ images: {};
5
+ widgets: {
6
+ "interactive-graph 1": {
7
+ type: string;
8
+ alignment: string;
9
+ static: boolean;
10
+ graded: boolean;
11
+ options: {
12
+ step: number[];
13
+ backgroundImage: {
14
+ url: null;
15
+ };
16
+ markings: string;
17
+ labels: string[];
18
+ labelLocation: string;
19
+ showProtractor: boolean;
20
+ showTooltips: boolean;
21
+ range: number[][];
22
+ showAxisArrows: {
23
+ xMin: boolean;
24
+ xMax: boolean;
25
+ yMin: boolean;
26
+ yMax: boolean;
27
+ };
28
+ showAxisTicks: {
29
+ x: boolean;
30
+ y: boolean;
31
+ };
32
+ lockedFigures: {
33
+ type: string;
34
+ coord: number[];
35
+ text: undefined;
36
+ color: undefined;
37
+ size: undefined;
38
+ }[];
39
+ graph: {
40
+ type: string;
41
+ };
42
+ correct: {
43
+ type: string;
44
+ };
45
+ };
46
+ version: {
47
+ major: number;
48
+ minor: number;
49
+ };
50
+ };
51
+ };
52
+ };
53
+ answerArea: {
54
+ calculator: boolean;
55
+ financialCalculatorMonthlyPayment: boolean;
56
+ financialCalculatorTotalAmount: boolean;
57
+ financialCalculatorTimeToPayOff: boolean;
58
+ periodicTable: boolean;
59
+ periodicTableWithKey: boolean;
60
+ };
61
+ hints: never[];
62
+ };
63
+ export default _default;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Shared Perseus infrastructure",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "28.1.0",
6
+ "version": "28.3.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "tiny-invariant": "1.3.1",
40
40
  "@khanacademy/kas": "2.2.3",
41
- "@khanacademy/perseus-utils": "2.1.5",
42
- "@khanacademy/pure-markdown": "2.2.8"
41
+ "@khanacademy/pure-markdown": "2.3.0",
42
+ "@khanacademy/perseus-utils": "2.1.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@khanacademy/wonder-stuff-core": "3.0.0",