@khanacademy/perseus-editor 5.3.0 → 6.0.1

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.
@@ -1,2 +1,39 @@
1
- declare const _default: any[];
1
+ import CategorizerEditor from "./widgets/categorizer-editor";
2
+ import CSProgramEditor from "./widgets/cs-program-editor";
3
+ import DefinitionEditor from "./widgets/definition-editor";
4
+ import DeprecatedStandinEditor from "./widgets/deprecated-standin-editor";
5
+ import DropdownEditor from "./widgets/dropdown-editor";
6
+ import ExampleGraphieWidgetEditor from "./widgets/example-graphie-widget-editor";
7
+ import ExampleWidgetEditor from "./widgets/example-widget-editor";
8
+ import ExplanationEditor from "./widgets/explanation-editor";
9
+ import ExpressionEditor from "./widgets/expression-editor";
10
+ import GradedGroupEditor from "./widgets/graded-group-editor";
11
+ import GradedGroupSetEditor from "./widgets/graded-group-set-editor";
12
+ import GrapherEditor from "./widgets/grapher-editor";
13
+ import GroupEditor from "./widgets/group-editor";
14
+ import IframeEditor from "./widgets/iframe-editor";
15
+ import ImageEditor from "./widgets/image-editor";
16
+ import InputNumberEditor from "./widgets/input-number-editor";
17
+ import InteractionEditor from "./widgets/interaction-editor";
18
+ import InteractiveGraphEditor from "./widgets/interactive-graph-editor";
19
+ import LabelImageEditor from "./widgets/label-image-editor";
20
+ import MatcherEditor from "./widgets/matcher-editor";
21
+ import MatrixEditor from "./widgets/matrix-editor";
22
+ import MeasurerEditor from "./widgets/measurer-editor";
23
+ import MoleculeEditor from "./widgets/molecule-editor";
24
+ import NumberLineEditor from "./widgets/number-line-editor";
25
+ import NumericInputEditor from "./widgets/numeric-input-editor";
26
+ import OrdererEditor from "./widgets/orderer-editor";
27
+ import PassageEditor from "./widgets/passage-editor";
28
+ import PassageRefEditor from "./widgets/passage-ref-editor";
29
+ import PassageRefTargetEditor from "./widgets/passage-ref-target-editor";
30
+ import PlotterEditor from "./widgets/plotter-editor";
31
+ import PythonProgramEditor from "./widgets/python-program-editor";
32
+ import RadioEditor from "./widgets/radio/editor";
33
+ import SimpleMarkdownTesterEditor from "./widgets/simple-markdown-tester-editor";
34
+ import SorterEditor from "./widgets/sorter-editor";
35
+ import TableEditor from "./widgets/table-editor";
36
+ import UnitEditor from "./widgets/unit-editor";
37
+ import VideoEditor from "./widgets/video-editor";
38
+ declare const _default: (typeof CategorizerEditor | typeof CSProgramEditor | typeof DefinitionEditor | typeof DeprecatedStandinEditor | typeof DropdownEditor | typeof ExampleGraphieWidgetEditor | typeof ExampleWidgetEditor | typeof ExplanationEditor | typeof ExpressionEditor | typeof GradedGroupEditor | typeof GradedGroupSetEditor | typeof GrapherEditor | typeof GroupEditor | typeof IframeEditor | typeof ImageEditor | typeof InputNumberEditor | typeof InteractionEditor | typeof InteractiveGraphEditor | typeof LabelImageEditor | typeof MatcherEditor | typeof MatrixEditor | typeof MeasurerEditor | typeof MoleculeEditor | typeof NumberLineEditor | typeof NumericInputEditor | typeof OrdererEditor | typeof PassageEditor | typeof PassageRefEditor | typeof PassageRefTargetEditor | typeof PlotterEditor | typeof PythonProgramEditor | typeof RadioEditor | typeof SimpleMarkdownTesterEditor | typeof SorterEditor | typeof TableEditor | typeof UnitEditor | typeof VideoEditor)[];
2
39
  export default _default;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { type LockedFigureColor } from "@khanacademy/perseus";
3
+ type Props = {
4
+ color: LockedFigureColor;
5
+ filled?: boolean;
6
+ decorative?: boolean;
7
+ };
8
+ declare const ColorSwatch: (props: Props) => JSX.Element;
9
+ export default ColorSwatch;
@@ -5,7 +5,8 @@
5
5
  * Used in the interactive graph editor's locked figures section.
6
6
  */
7
7
  /// <reference types="react" />
8
+ import type { Props as LockedLineProps } from "./locked-line-settings";
8
9
  import type { Props as LockedPointProps } from "./locked-point-settings";
9
- type Props = LockedPointProps;
10
+ type Props = LockedPointProps | LockedLineProps;
10
11
  declare const LockedFigureSettings: (props: Props) => JSX.Element | null;
11
12
  export default LockedFigureSettings;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import type { LockedFigure, LockedLineType } from "@khanacademy/perseus";
3
+ export type Props = LockedLineType & {
4
+ onRemove: () => void;
5
+ onChangeProps: (newProps: Partial<LockedFigure>) => void;
6
+ };
7
+ declare const LockedLineSettings: (props: Props) => JSX.Element;
8
+ export default LockedLineSettings;
package/dist/es/index.css CHANGED
@@ -569,6 +569,7 @@
569
569
  .perseus-widget-radio .choice-editor,
570
570
  .perseus-widget-radio .clue-editor {
571
571
  display: inline-block;
572
+ width: 100%;
572
573
  }
573
574
  .perseus-widget-radio .delete-choice {
574
575
  margin-left: 5px;
@@ -579,7 +580,6 @@
579
580
  display: inline-block;
580
581
  margin: 0 0 5px;
581
582
  vertical-align: top;
582
- width: 280px;
583
583
  }
584
584
  .perseus-widget-radio .perseus-single-editor p {
585
585
  margin: 0;