@khanacademy/perseus 87.1.0 → 87.1.2
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/lint.d.ts +9 -28
- package/dist/components/linter-link.d.ts +34 -0
- package/dist/es/index.js +15 -14
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +1 -1
- package/dist/styles/constants.d.ts +0 -3
- package/dist/widgets/interactive-graphs/graphs/strings/absolute-value.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/angle.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/announcement.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/circle.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/coord-quadrant.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/exponential.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/linear-system.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/logarithm.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/point.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/polygon.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/quadratic.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/ray.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/segment.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/sinusoid.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/tangent.d.ts +1 -1
- package/dist/widgets/interactive-graphs/graphs/strings/vector.d.ts +1 -1
- package/package.json +9 -9
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export declare const baseFontFamily = "'Lato', sans-serif";
|
|
2
1
|
export declare const boldFontFamily = "'Lato-Bold', 'Lato', sans-serif";
|
|
3
2
|
export declare const white = "#FFFFFF";
|
|
4
3
|
export declare const gray76 = "#BABEC2";
|
|
5
4
|
export declare const gray68 = "#888D93";
|
|
6
|
-
export declare const gray17 = "#21242c";
|
|
7
5
|
export declare const pureSmMin = "568px";
|
|
8
6
|
export declare const pureMdMin = "768px";
|
|
9
7
|
export declare const pureLgMin = "1024px";
|
|
@@ -25,6 +23,5 @@ export declare const radioMarginWidth = 2;
|
|
|
25
23
|
export declare const warningColor = "#f86700";
|
|
26
24
|
export declare const warningColorHover = "#df5c00";
|
|
27
25
|
export declare const warningColorActive = "#c75300";
|
|
28
|
-
export declare const publishBlockingErrorColor = "#be2612";
|
|
29
26
|
export declare const articleMaxWidthInPx = 688;
|
|
30
27
|
export declare const articleMaxWidthTableInPx = 512;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { AbsoluteValueGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srAbsoluteValuePointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { AngleGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srAnglePointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
1
2
|
import type { InteractiveGraphStateAnnouncement } from "../../types";
|
|
2
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
3
3
|
export declare function getAnnouncementText(state: InteractiveGraphStateAnnouncement, strings: PerseusStrings, locale: string): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { CircleGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srCircleRadiusPointLabel(x: number, y: number, centerX: number, strings: PerseusStrings, locale: string, pointLabel?: string): string;
|
|
5
5
|
export declare function srCircleCenterLabel(x: number, y: number, strings: PerseusStrings, locale: string): string;
|
|
6
6
|
type CircleGraphDescriptionStrings = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PerseusStrings } from "
|
|
1
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
2
|
import type { Coord } from "@khanacademy/perseus-core";
|
|
3
3
|
type GraphLocations = "origin" | "x-axis" | "y-axis" | 1 | 2 | 3 | 4;
|
|
4
4
|
export declare function getCoordQuadrant(coord: Coord): GraphLocations;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { ExponentialGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srExponentialPointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { LinearSystemGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srLinearSystemPointLabel(state: {
|
|
5
5
|
lineIndex: number;
|
|
6
6
|
pointIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { LogarithmGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srLogarithmPointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
1
2
|
import type { PointGraphState } from "../../types";
|
|
2
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
3
3
|
export declare function describePointGraph(state: PointGraphState, i18n: {
|
|
4
4
|
strings: PerseusStrings;
|
|
5
5
|
locale: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { PolygonGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
import type { PerseusInteractiveGraphWidgetOptions } from "@khanacademy/perseus-core";
|
|
5
5
|
export declare function srPolygonLabel(coords: ReadonlyArray<readonly [number, number]>, pointLabels: ReadonlyArray<string> | undefined, strings: PerseusStrings, locale: string): string;
|
|
6
6
|
type PolygonGraphDescriptionStrings = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { QuadraticGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
import type { Coord } from "@khanacademy/perseus-core";
|
|
5
5
|
export declare function srQuadraticPointLabel(state: {
|
|
6
6
|
pointIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { RayGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srRayPointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { SegmentGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srSegmentPointLabel(state: {
|
|
5
5
|
segmentIndex: number;
|
|
6
6
|
pointIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { SinusoidGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srSinusoidPointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { TangentGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srTangentPointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
pointLabel: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18nContextType } from "../../../../components/i18n-context";
|
|
2
|
+
import type { PerseusStrings } from "../../../../strings";
|
|
2
3
|
import type { VectorGraphState } from "../../types";
|
|
3
|
-
import type { PerseusStrings } from "@khanacademy/perseus/strings";
|
|
4
4
|
export declare function srVectorPointLabel(state: {
|
|
5
5
|
pointIndex: number;
|
|
6
6
|
x: number;
|
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": "87.1.
|
|
6
|
+
"version": "87.1.2",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"tiny-invariant": "1.3.1",
|
|
47
47
|
"uuid": "^10.0.0",
|
|
48
48
|
"@khanacademy/kas": "2.2.6",
|
|
49
|
-
"@khanacademy/keypad-context": "3.2.
|
|
50
|
-
"@khanacademy/kmath": "2.4.
|
|
51
|
-
"@khanacademy/math-input": "27.0.
|
|
52
|
-
"@khanacademy/perseus-core": "
|
|
53
|
-
"@khanacademy/perseus-linter": "5.3.
|
|
54
|
-
"@khanacademy/perseus-score": "8.12.
|
|
55
|
-
"@khanacademy/
|
|
49
|
+
"@khanacademy/keypad-context": "3.2.90",
|
|
50
|
+
"@khanacademy/kmath": "2.4.49",
|
|
51
|
+
"@khanacademy/math-input": "27.0.13",
|
|
52
|
+
"@khanacademy/perseus-core": "39.0.0",
|
|
53
|
+
"@khanacademy/perseus-linter": "5.3.1",
|
|
54
|
+
"@khanacademy/perseus-score": "8.12.22",
|
|
55
|
+
"@khanacademy/perseus-utils": "2.1.5",
|
|
56
56
|
"@khanacademy/pure-markdown": "2.3.2",
|
|
57
|
-
"@khanacademy/
|
|
57
|
+
"@khanacademy/simple-markdown": "3.0.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@khanacademy/wonder-blocks-announcer": "1.1.1",
|