@khanacademy/perseus-editor 28.0.0 → 28.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.
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ import type { Props as ImageEditorProps } from "../image-editor";
3
+ import type { PerseusImageBackground } from "@khanacademy/perseus-core";
4
+ interface Props {
5
+ backgroundImage: PerseusImageBackground;
6
+ onChange: ImageEditorProps["onChange"];
7
+ }
8
+ export default function ImageDimensionsInput({ backgroundImage, onChange, }: Props): React.JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ import type { Props } from "../image-editor";
3
+ export default function ImageSettings({ alt, backgroundImage, apiOptions, caption, longDescription, title, onChange, }: Props): React.JSX.Element | null;
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- import type { Props } from "./image-editor";
2
+ import type { Props } from "../image-editor";
3
3
  export default function ImageUrlInput({ backgroundImage, onChange }: Props): React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ export declare const wbFieldStyles: {
2
+ root: {
3
+ marginBlockEnd: string;
4
+ };
5
+ label: {
6
+ paddingBlockEnd: string;
7
+ };
8
+ };
9
+ export declare const wbFieldStylesWithDescription: {
10
+ label: {
11
+ paddingBlockEnd: number;
12
+ };
13
+ description: {
14
+ paddingBlockStart: number;
15
+ paddingBlockEnd: string;
16
+ };
17
+ root: {
18
+ marginBlockEnd: string;
19
+ };
20
+ };
21
+ /**
22
+ * Given a known aspect ratio, and a new side length,
23
+ * return the other side length that maintains the aspect ratio.
24
+ *
25
+ * Ratio math: x/y = x'/y'
26
+ * newWidth/newHeight = width/height
27
+ * => newWidth = (newHeight * width) / height
28
+ * or
29
+ * newHeight/newWidth = height/width
30
+ * => newHeight = (newWidth * height) / width
31
+ */
32
+ export declare function getOtherSideLengthWithPreservedAspectRatio(sideLength: number, otherSideLength: number, newSideLength: number): number;
@@ -23,7 +23,7 @@ declare const InteractiveGraph: {
23
23
  lockedFigures: LockedFigure[];
24
24
  fullGraphAriaLabel?: string;
25
25
  fullGraphAriaDescription?: string;
26
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): {
26
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): {
27
27
  mafsRef: React.RefObject<import("../../../../perseus/src/widgets/interactive-graphs/stateful-mafs-graph").StatefulMafsGraphType>;
28
28
  getUserInput(): import("@khanacademy/perseus-core").PerseusInteractiveGraphUserInput;
29
29
  getPromptJSON(): import("../../../../perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils").InteractiveGraphPromptJSON | import("../../../../perseus/src/widget-ai-utils/unsupported-widget").UnsupportedWidgetPromptJSON;
@@ -47,7 +47,6 @@ declare const InteractiveGraph: {
47
47
  lockedFigures: LockedFigure[];
48
48
  fullGraphAriaLabel?: string;
49
49
  fullGraphAriaDescription?: string;
50
- reviewModeRubric?: Empty | null | undefined;
51
50
  trackInteraction: (extraData?: Empty | undefined) => void;
52
51
  widgetId: string;
53
52
  widgetIndex: number;
@@ -511,7 +510,7 @@ declare const InteractiveGraph: {
511
510
  lockedFigures: LockedFigure[];
512
511
  fullGraphAriaLabel?: string;
513
512
  fullGraphAriaDescription?: string;
514
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>;
513
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>;
515
514
  state: Readonly<any>;
516
515
  refs: {
517
516
  [key: string]: React.ReactInstance;
@@ -537,7 +536,7 @@ declare const InteractiveGraph: {
537
536
  lockedFigures: LockedFigure[];
538
537
  fullGraphAriaLabel?: string;
539
538
  fullGraphAriaDescription?: string;
540
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): boolean;
539
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): boolean;
541
540
  componentWillUnmount?(): void;
542
541
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
543
542
  getSnapshotBeforeUpdate?(prevProps: Readonly<{
@@ -560,7 +559,7 @@ declare const InteractiveGraph: {
560
559
  lockedFigures: LockedFigure[];
561
560
  fullGraphAriaLabel?: string;
562
561
  fullGraphAriaDescription?: string;
563
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, prevState: Readonly<any>): any;
562
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, prevState: Readonly<any>): any;
564
563
  componentDidUpdate?(prevProps: Readonly<{
565
564
  step: [number, number];
566
565
  gridStep?: [x: number, y: number];
@@ -581,7 +580,7 @@ declare const InteractiveGraph: {
581
580
  lockedFigures: LockedFigure[];
582
581
  fullGraphAriaLabel?: string;
583
582
  fullGraphAriaDescription?: string;
584
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, prevState: Readonly<any>, snapshot?: any): void;
583
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, prevState: Readonly<any>, snapshot?: any): void;
585
584
  componentWillMount?(): void;
586
585
  UNSAFE_componentWillMount?(): void;
587
586
  componentWillReceiveProps?(nextProps: Readonly<{
@@ -604,7 +603,7 @@ declare const InteractiveGraph: {
604
603
  lockedFigures: LockedFigure[];
605
604
  fullGraphAriaLabel?: string;
606
605
  fullGraphAriaDescription?: string;
607
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextContext: any): void;
606
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextContext: any): void;
608
607
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
609
608
  step: [number, number];
610
609
  gridStep?: [x: number, y: number];
@@ -625,7 +624,7 @@ declare const InteractiveGraph: {
625
624
  lockedFigures: LockedFigure[];
626
625
  fullGraphAriaLabel?: string;
627
626
  fullGraphAriaDescription?: string;
628
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextContext: any): void;
627
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextContext: any): void;
629
628
  componentWillUpdate?(nextProps: Readonly<{
630
629
  step: [number, number];
631
630
  gridStep?: [x: number, y: number];
@@ -646,7 +645,7 @@ declare const InteractiveGraph: {
646
645
  lockedFigures: LockedFigure[];
647
646
  fullGraphAriaLabel?: string;
648
647
  fullGraphAriaDescription?: string;
649
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
648
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
650
649
  UNSAFE_componentWillUpdate?(nextProps: Readonly<{
651
650
  step: [number, number];
652
651
  gridStep?: [x: number, y: number];
@@ -667,7 +666,7 @@ declare const InteractiveGraph: {
667
666
  lockedFigures: LockedFigure[];
668
667
  fullGraphAriaLabel?: string;
669
668
  fullGraphAriaDescription?: string;
670
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
669
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
671
670
  };
672
671
  new (props: {
673
672
  step: [number, number];
@@ -689,7 +688,7 @@ declare const InteractiveGraph: {
689
688
  lockedFigures: LockedFigure[];
690
689
  fullGraphAriaLabel?: string;
691
690
  fullGraphAriaDescription?: string;
692
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>, context: any): {
691
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>, context: any): {
693
692
  mafsRef: React.RefObject<import("../../../../perseus/src/widgets/interactive-graphs/stateful-mafs-graph").StatefulMafsGraphType>;
694
693
  getUserInput(): import("@khanacademy/perseus-core").PerseusInteractiveGraphUserInput;
695
694
  getPromptJSON(): import("../../../../perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils").InteractiveGraphPromptJSON | import("../../../../perseus/src/widget-ai-utils/unsupported-widget").UnsupportedWidgetPromptJSON;
@@ -713,7 +712,6 @@ declare const InteractiveGraph: {
713
712
  lockedFigures: LockedFigure[];
714
713
  fullGraphAriaLabel?: string;
715
714
  fullGraphAriaDescription?: string;
716
- reviewModeRubric?: Empty | null | undefined;
717
715
  trackInteraction: (extraData?: Empty | undefined) => void;
718
716
  widgetId: string;
719
717
  widgetIndex: number;
@@ -1177,7 +1175,7 @@ declare const InteractiveGraph: {
1177
1175
  lockedFigures: LockedFigure[];
1178
1176
  fullGraphAriaLabel?: string;
1179
1177
  fullGraphAriaDescription?: string;
1180
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>;
1178
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>;
1181
1179
  state: Readonly<any>;
1182
1180
  refs: {
1183
1181
  [key: string]: React.ReactInstance;
@@ -1203,7 +1201,7 @@ declare const InteractiveGraph: {
1203
1201
  lockedFigures: LockedFigure[];
1204
1202
  fullGraphAriaLabel?: string;
1205
1203
  fullGraphAriaDescription?: string;
1206
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): boolean;
1204
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): boolean;
1207
1205
  componentWillUnmount?(): void;
1208
1206
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
1209
1207
  getSnapshotBeforeUpdate?(prevProps: Readonly<{
@@ -1226,7 +1224,7 @@ declare const InteractiveGraph: {
1226
1224
  lockedFigures: LockedFigure[];
1227
1225
  fullGraphAriaLabel?: string;
1228
1226
  fullGraphAriaDescription?: string;
1229
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, prevState: Readonly<any>): any;
1227
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, prevState: Readonly<any>): any;
1230
1228
  componentDidUpdate?(prevProps: Readonly<{
1231
1229
  step: [number, number];
1232
1230
  gridStep?: [x: number, y: number];
@@ -1247,7 +1245,7 @@ declare const InteractiveGraph: {
1247
1245
  lockedFigures: LockedFigure[];
1248
1246
  fullGraphAriaLabel?: string;
1249
1247
  fullGraphAriaDescription?: string;
1250
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, prevState: Readonly<any>, snapshot?: any): void;
1248
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, prevState: Readonly<any>, snapshot?: any): void;
1251
1249
  componentWillMount?(): void;
1252
1250
  UNSAFE_componentWillMount?(): void;
1253
1251
  componentWillReceiveProps?(nextProps: Readonly<{
@@ -1270,7 +1268,7 @@ declare const InteractiveGraph: {
1270
1268
  lockedFigures: LockedFigure[];
1271
1269
  fullGraphAriaLabel?: string;
1272
1270
  fullGraphAriaDescription?: string;
1273
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextContext: any): void;
1271
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextContext: any): void;
1274
1272
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
1275
1273
  step: [number, number];
1276
1274
  gridStep?: [x: number, y: number];
@@ -1291,7 +1289,7 @@ declare const InteractiveGraph: {
1291
1289
  lockedFigures: LockedFigure[];
1292
1290
  fullGraphAriaLabel?: string;
1293
1291
  fullGraphAriaDescription?: string;
1294
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextContext: any): void;
1292
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextContext: any): void;
1295
1293
  componentWillUpdate?(nextProps: Readonly<{
1296
1294
  step: [number, number];
1297
1295
  gridStep?: [x: number, y: number];
@@ -1312,7 +1310,7 @@ declare const InteractiveGraph: {
1312
1310
  lockedFigures: LockedFigure[];
1313
1311
  fullGraphAriaLabel?: string;
1314
1312
  fullGraphAriaDescription?: string;
1315
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
1313
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
1316
1314
  UNSAFE_componentWillUpdate?(nextProps: Readonly<{
1317
1315
  step: [number, number];
1318
1316
  gridStep?: [x: number, y: number];
@@ -1333,7 +1331,7 @@ declare const InteractiveGraph: {
1333
1331
  lockedFigures: LockedFigure[];
1334
1332
  fullGraphAriaLabel?: string;
1335
1333
  fullGraphAriaDescription?: string;
1336
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
1334
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>>, nextState: Readonly<any>, nextContext: any): void;
1337
1335
  };
1338
1336
  defaultProps: {
1339
1337
  labels: string[];
@@ -1367,7 +1365,7 @@ declare const InteractiveGraph: {
1367
1365
  lockedFigures: LockedFigure[];
1368
1366
  fullGraphAriaLabel?: string;
1369
1367
  fullGraphAriaDescription?: string;
1370
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1368
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1371
1369
  getPointCoords(graph: import("@khanacademy/perseus-core").PerseusGraphTypePoint, props: {
1372
1370
  step: [number, number];
1373
1371
  gridStep?: [x: number, y: number];
@@ -1388,7 +1386,7 @@ declare const InteractiveGraph: {
1388
1386
  lockedFigures: LockedFigure[];
1389
1387
  fullGraphAriaLabel?: string;
1390
1388
  fullGraphAriaDescription?: string;
1391
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1389
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1392
1390
  getLinearSystemCoords(graph: PerseusGraphType, props: {
1393
1391
  step: [number, number];
1394
1392
  gridStep?: [x: number, y: number];
@@ -1409,7 +1407,7 @@ declare const InteractiveGraph: {
1409
1407
  lockedFigures: LockedFigure[];
1410
1408
  fullGraphAriaLabel?: string;
1411
1409
  fullGraphAriaDescription?: string;
1412
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[][];
1410
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[][];
1413
1411
  getPolygonCoords(graph: PerseusGraphType, props: {
1414
1412
  step: [number, number];
1415
1413
  gridStep?: [x: number, y: number];
@@ -1430,7 +1428,7 @@ declare const InteractiveGraph: {
1430
1428
  lockedFigures: LockedFigure[];
1431
1429
  fullGraphAriaLabel?: string;
1432
1430
  fullGraphAriaDescription?: string;
1433
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1431
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1434
1432
  getSegmentCoords(graph: import("@khanacademy/perseus-core").PerseusGraphTypeSegment, props: {
1435
1433
  step: [number, number];
1436
1434
  gridStep?: [x: number, y: number];
@@ -1451,7 +1449,7 @@ declare const InteractiveGraph: {
1451
1449
  lockedFigures: LockedFigure[];
1452
1450
  fullGraphAriaLabel?: string;
1453
1451
  fullGraphAriaDescription?: string;
1454
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[][];
1452
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[][];
1455
1453
  getAngleCoords(graph: import("@khanacademy/perseus-core").PerseusGraphTypeAngle, props: {
1456
1454
  step: [number, number];
1457
1455
  gridStep?: [x: number, y: number];
@@ -1472,7 +1470,7 @@ declare const InteractiveGraph: {
1472
1470
  lockedFigures: LockedFigure[];
1473
1471
  fullGraphAriaLabel?: string;
1474
1472
  fullGraphAriaDescription?: string;
1475
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): [import("@khanacademy/perseus").Coord, import("@khanacademy/perseus").Coord, import("@khanacademy/perseus").Coord];
1473
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): [import("@khanacademy/perseus").Coord, import("@khanacademy/perseus").Coord, import("@khanacademy/perseus").Coord];
1476
1474
  normalizeCoords(coordsList: import("@khanacademy/perseus").Coord[], ranges: [import("@khanacademy/kmath").Range, import("@khanacademy/kmath").Range]): import("@khanacademy/perseus").Coord[];
1477
1475
  getEquationString(props: {
1478
1476
  step: [number, number];
@@ -1494,7 +1492,7 @@ declare const InteractiveGraph: {
1494
1492
  lockedFigures: LockedFigure[];
1495
1493
  fullGraphAriaLabel?: string;
1496
1494
  fullGraphAriaDescription?: string;
1497
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1495
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1498
1496
  pointsFromNormalized(props: {
1499
1497
  step: [number, number];
1500
1498
  gridStep?: [x: number, y: number];
@@ -1515,7 +1513,7 @@ declare const InteractiveGraph: {
1515
1513
  lockedFigures: LockedFigure[];
1516
1514
  fullGraphAriaLabel?: string;
1517
1515
  fullGraphAriaDescription?: string;
1518
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>, coordsList: import("@khanacademy/perseus").Coord[], noSnap?: boolean): import("@khanacademy/perseus").Coord[];
1516
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>, coordsList: import("@khanacademy/perseus").Coord[], noSnap?: boolean): import("@khanacademy/perseus").Coord[];
1519
1517
  getNoneEquationString(): string;
1520
1518
  getLinearEquationString(props: {
1521
1519
  step: [number, number];
@@ -1537,7 +1535,7 @@ declare const InteractiveGraph: {
1537
1535
  lockedFigures: LockedFigure[];
1538
1536
  fullGraphAriaLabel?: string;
1539
1537
  fullGraphAriaDescription?: string;
1540
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1538
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1541
1539
  getCurrentQuadraticCoefficients(props: {
1542
1540
  step: [number, number];
1543
1541
  gridStep?: [x: number, y: number];
@@ -1558,7 +1556,7 @@ declare const InteractiveGraph: {
1558
1556
  lockedFigures: LockedFigure[];
1559
1557
  fullGraphAriaLabel?: string;
1560
1558
  fullGraphAriaDescription?: string;
1561
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/kmath").QuadraticCoefficient;
1559
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/kmath").QuadraticCoefficient;
1562
1560
  defaultQuadraticCoords(props: {
1563
1561
  step: [number, number];
1564
1562
  gridStep?: [x: number, y: number];
@@ -1579,7 +1577,7 @@ declare const InteractiveGraph: {
1579
1577
  lockedFigures: LockedFigure[];
1580
1578
  fullGraphAriaLabel?: string;
1581
1579
  fullGraphAriaDescription?: string;
1582
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("../../../../perseus/src/widgets/interactive-graphs/types").QuadraticGraphState["coords"];
1580
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("../../../../perseus/src/widgets/interactive-graphs/types").QuadraticGraphState["coords"];
1583
1581
  getQuadraticEquationString(props: {
1584
1582
  step: [number, number];
1585
1583
  gridStep?: [x: number, y: number];
@@ -1600,7 +1598,7 @@ declare const InteractiveGraph: {
1600
1598
  lockedFigures: LockedFigure[];
1601
1599
  fullGraphAriaLabel?: string;
1602
1600
  fullGraphAriaDescription?: string;
1603
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1601
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1604
1602
  getCurrentSinusoidCoefficients(props: {
1605
1603
  step: [number, number];
1606
1604
  gridStep?: [x: number, y: number];
@@ -1621,7 +1619,7 @@ declare const InteractiveGraph: {
1621
1619
  lockedFigures: LockedFigure[];
1622
1620
  fullGraphAriaLabel?: string;
1623
1621
  fullGraphAriaDescription?: string;
1624
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/kmath").SineCoefficient;
1622
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/kmath").SineCoefficient;
1625
1623
  defaultSinusoidCoords(props: {
1626
1624
  step: [number, number];
1627
1625
  gridStep?: [x: number, y: number];
@@ -1642,7 +1640,7 @@ declare const InteractiveGraph: {
1642
1640
  lockedFigures: LockedFigure[];
1643
1641
  fullGraphAriaLabel?: string;
1644
1642
  fullGraphAriaDescription?: string;
1645
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1643
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): import("@khanacademy/perseus").Coord[];
1646
1644
  getSinusoidEquationString(props: {
1647
1645
  step: [number, number];
1648
1646
  gridStep?: [x: number, y: number];
@@ -1663,7 +1661,7 @@ declare const InteractiveGraph: {
1663
1661
  lockedFigures: LockedFigure[];
1664
1662
  fullGraphAriaLabel?: string;
1665
1663
  fullGraphAriaDescription?: string;
1666
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1664
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1667
1665
  getCircleEquationString(props: {
1668
1666
  step: [number, number];
1669
1667
  gridStep?: [x: number, y: number];
@@ -1684,7 +1682,7 @@ declare const InteractiveGraph: {
1684
1682
  lockedFigures: LockedFigure[];
1685
1683
  fullGraphAriaLabel?: string;
1686
1684
  fullGraphAriaDescription?: string;
1687
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1685
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1688
1686
  getLinearSystemEquationString(props: {
1689
1687
  step: [number, number];
1690
1688
  gridStep?: [x: number, y: number];
@@ -1705,7 +1703,7 @@ declare const InteractiveGraph: {
1705
1703
  lockedFigures: LockedFigure[];
1706
1704
  fullGraphAriaLabel?: string;
1707
1705
  fullGraphAriaDescription?: string;
1708
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1706
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1709
1707
  getPointEquationString(props: {
1710
1708
  step: [number, number];
1711
1709
  gridStep?: [x: number, y: number];
@@ -1726,7 +1724,7 @@ declare const InteractiveGraph: {
1726
1724
  lockedFigures: LockedFigure[];
1727
1725
  fullGraphAriaLabel?: string;
1728
1726
  fullGraphAriaDescription?: string;
1729
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1727
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1730
1728
  getSegmentEquationString(props: {
1731
1729
  step: [number, number];
1732
1730
  gridStep?: [x: number, y: number];
@@ -1747,7 +1745,7 @@ declare const InteractiveGraph: {
1747
1745
  lockedFigures: LockedFigure[];
1748
1746
  fullGraphAriaLabel?: string;
1749
1747
  fullGraphAriaDescription?: string;
1750
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1748
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1751
1749
  getRayEquationString(props: {
1752
1750
  step: [number, number];
1753
1751
  gridStep?: [x: number, y: number];
@@ -1768,7 +1766,7 @@ declare const InteractiveGraph: {
1768
1766
  lockedFigures: LockedFigure[];
1769
1767
  fullGraphAriaLabel?: string;
1770
1768
  fullGraphAriaDescription?: string;
1771
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1769
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1772
1770
  getPolygonEquationString(props: {
1773
1771
  step: [number, number];
1774
1772
  gridStep?: [x: number, y: number];
@@ -1789,7 +1787,7 @@ declare const InteractiveGraph: {
1789
1787
  lockedFigures: LockedFigure[];
1790
1788
  fullGraphAriaLabel?: string;
1791
1789
  fullGraphAriaDescription?: string;
1792
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1790
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1793
1791
  getAngleEquationString(props: {
1794
1792
  step: [number, number];
1795
1793
  gridStep?: [x: number, y: number];
@@ -1810,7 +1808,7 @@ declare const InteractiveGraph: {
1810
1808
  lockedFigures: LockedFigure[];
1811
1809
  fullGraphAriaLabel?: string;
1812
1810
  fullGraphAriaDescription?: string;
1813
- } & import("../../../../perseus/src/types").UniversalWidgetProps<Empty, PerseusGraphType, Empty>): string;
1811
+ } & import("../../../../perseus/src/types").UniversalWidgetProps<PerseusGraphType, Empty>): string;
1814
1812
  contextType?: React.Context<any> | undefined;
1815
1813
  };
1816
1814
  type InteractiveGraphProps = PropsFor<typeof InteractiveGraph>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Perseus editors",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "28.0.0",
6
+ "version": "28.1.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -38,9 +38,9 @@
38
38
  "@khanacademy/keypad-context": "3.2.9",
39
39
  "@khanacademy/kmath": "2.2.9",
40
40
  "@khanacademy/math-input": "26.2.9",
41
- "@khanacademy/perseus": "70.1.0",
41
+ "@khanacademy/perseus": "71.0.0",
42
42
  "@khanacademy/perseus-core": "19.4.0",
43
- "@khanacademy/perseus-linter": "4.3.9",
43
+ "@khanacademy/perseus-linter": "4.3.10",
44
44
  "@khanacademy/perseus-score": "7.7.9",
45
45
  "@khanacademy/perseus-utils": "2.1.0",
46
46
  "@khanacademy/pure-markdown": "2.2.0"
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import type { Props } from "./image-editor";
3
- export default function ImageSettings({ alt, backgroundImage, apiOptions, caption, longDescription, title, onChange, }: Props): React.JSX.Element | null;
4
- export declare const wbFieldStylesWithDescription: {
5
- label: {
6
- paddingBlockEnd: number;
7
- fontWeight: string;
8
- };
9
- description: {
10
- paddingBlockStart: number;
11
- paddingBlockEnd: string;
12
- };
13
- root: {
14
- marginBlockEnd: string;
15
- };
16
- };