@khanacademy/perseus-editor 13.0.0 → 13.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.
@@ -27,7 +27,7 @@ import OrdererEditor from "./widgets/orderer-editor";
27
27
  import PassageEditor from "./widgets/passage-editor";
28
28
  import PassageRefEditor from "./widgets/passage-ref-editor";
29
29
  import PassageRefTargetEditor from "./widgets/passage-ref-target-editor";
30
- import PhetSimEditor from "./widgets/phet-sim-editor";
30
+ import PhetSimulationEditor from "./widgets/phet-simulation-editor";
31
31
  import PlotterEditor from "./widgets/plotter-editor";
32
32
  import PythonProgramEditor from "./widgets/python-program-editor";
33
33
  import RadioEditor from "./widgets/radio/editor";
@@ -35,5 +35,5 @@ import SimpleMarkdownTesterEditor from "./widgets/simple-markdown-tester-editor"
35
35
  import SorterEditor from "./widgets/sorter-editor";
36
36
  import TableEditor from "./widgets/table-editor";
37
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 PhetSimEditor | typeof PlotterEditor | typeof PythonProgramEditor | typeof RadioEditor | typeof SimpleMarkdownTesterEditor | typeof SorterEditor | typeof TableEditor | typeof VideoEditor)[];
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 PhetSimulationEditor | typeof PlotterEditor | typeof PythonProgramEditor | typeof RadioEditor | typeof SimpleMarkdownTesterEditor | typeof SorterEditor | typeof TableEditor | typeof VideoEditor)[];
39
39
  export default _default;
@@ -21,7 +21,7 @@ declare class WidgetEditor extends React.Component<WidgetEditorProps, WidgetEdit
21
21
  _handleAlignmentChange: (e: React.SyntheticEvent<HTMLSelectElement>) => void;
22
22
  getSaveWarnings: () => any;
23
23
  serialize: () => {
24
- type: "definition" | "group" | "radio" | "table" | "categorizer" | "iframe" | "video" | "image" | "cs-program" | "dropdown" | "example-graphie-widget" | "example-widget" | "explanation" | "expression" | "graded-group-set" | "graded-group" | "grapher" | "input-number" | "interaction" | "interactive-graph" | "label-image" | "matcher" | "matrix" | "measurer" | "molecule-renderer" | "number-line" | "numeric-input" | "orderer" | "passage-ref" | "passage" | "phet-sim" | "plotter" | "python-program" | "passage-ref-target" | "simple-markdown-tester" | "sorter" | "deprecated-standin";
24
+ type: "definition" | "group" | "radio" | "table" | "categorizer" | "iframe" | "video" | "image" | "cs-program" | "dropdown" | "example-graphie-widget" | "example-widget" | "explanation" | "expression" | "graded-group-set" | "graded-group" | "grapher" | "input-number" | "interaction" | "interactive-graph" | "label-image" | "matcher" | "matrix" | "measurer" | "molecule-renderer" | "number-line" | "numeric-input" | "orderer" | "passage-ref" | "passage" | "phet-simulation" | "plotter" | "python-program" | "passage-ref-target" | "simple-markdown-tester" | "sorter" | "deprecated-standin";
25
25
  alignment: string | undefined;
26
26
  static: boolean | undefined;
27
27
  graded: boolean | undefined;
package/dist/es/index.js CHANGED
@@ -41,7 +41,7 @@ import arrowCounterClockwise from '@phosphor-icons/core/bold/arrow-counter-clock
41
41
 
42
42
  // This file is processed by a Rollup plugin (replace) to inject the production
43
43
  const libName = "@khanacademy/perseus-editor";
44
- const libVersion = "13.0.0";
44
+ const libVersion = "13.0.1";
45
45
  addLibraryVersionToPerseusDebug(libName, libVersion);
46
46
 
47
47
  function _extends() {
@@ -31585,12 +31585,6 @@ const LockedFiguresSection = props => {
31585
31585
  onToggle: () => setIsExpanded(!isExpanded),
31586
31586
  isCollapsible: true
31587
31587
  }), isExpanded && /*#__PURE__*/React.createElement(View, null, figures == null ? void 0 : figures.map((figure, index) => {
31588
- if (figure.type === "label") {
31589
- // TODO(LEMS-1795): Add locked label settings.
31590
- // Remove this block once label locked figure
31591
- // settings are implemented.
31592
- return;
31593
- }
31594
31588
  return /*#__PURE__*/React.createElement(LockedFigureSettings, _extends({
31595
31589
  key: `${uniqueId}-locked-${figure}-${index}`,
31596
31590
  showM2bFeatures: props.showM2bFeatures,
@@ -35920,7 +35914,7 @@ PassageRefTargetEditor.defaultProps = {
35920
35914
  };
35921
35915
 
35922
35916
  /* eslint-disable @khanacademy/ts-no-error-suppressions */
35923
- class PhetSimEditor extends React.Component {
35917
+ class PhetSimulationEditor extends React.Component {
35924
35918
  render() {
35925
35919
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabeledTextField, {
35926
35920
  label: "URL",
@@ -35943,11 +35937,11 @@ class PhetSimEditor extends React.Component {
35943
35937
  };
35944
35938
  }
35945
35939
  }
35946
- PhetSimEditor.defaultProps = {
35940
+ PhetSimulationEditor.defaultProps = {
35947
35941
  url: "",
35948
35942
  description: ""
35949
35943
  };
35950
- PhetSimEditor.widgetName = "phet-sim";
35944
+ PhetSimulationEditor.widgetName = "phet-simulation";
35951
35945
 
35952
35946
  const {
35953
35947
  InfoTip: InfoTip$3,
@@ -36895,7 +36889,7 @@ VideoEditor.defaultProps = {
36895
36889
  location: ""
36896
36890
  };
36897
36891
 
36898
- var AllEditors = [CategorizerEditor, CSProgramEditor, DefinitionEditor, DropdownEditor, ExampleGraphieWidgetEditor, ExampleWidgetEditor, ExplanationEditor, ExpressionEditor, GradedGroupEditor, GradedGroupSetEditor, GrapherEditor, GroupEditor, IframeEditor, ImageEditor, InputNumberEditor, InteractionEditor, InteractiveGraphEditor, LabelImageEditor, MatcherEditor, MatrixEditor, MeasurerEditor, MoleculeWidgetEditor, NumberLineEditor, NumericInputEditor, OrdererEditor, PassageEditor, PassageRefEditor, PassageRefTargetEditor, PhetSimEditor, PlotterEditor, PythonProgramEditor, SimpleMarkdownTesterEditor, SorterEditor, TableEditor, VideoEditor, RadioEditor, DeprecatedStandinEditor];
36892
+ var AllEditors = [CategorizerEditor, CSProgramEditor, DefinitionEditor, DropdownEditor, ExampleGraphieWidgetEditor, ExampleWidgetEditor, ExplanationEditor, ExpressionEditor, GradedGroupEditor, GradedGroupSetEditor, GrapherEditor, GroupEditor, IframeEditor, ImageEditor, InputNumberEditor, InteractionEditor, InteractiveGraphEditor, LabelImageEditor, MatcherEditor, MatrixEditor, MeasurerEditor, MoleculeWidgetEditor, NumberLineEditor, NumericInputEditor, OrdererEditor, PassageEditor, PassageRefEditor, PassageRefTargetEditor, PhetSimulationEditor, PlotterEditor, PythonProgramEditor, SimpleMarkdownTesterEditor, SorterEditor, TableEditor, VideoEditor, RadioEditor, DeprecatedStandinEditor];
36899
36893
 
36900
36894
  /* eslint-disable @khanacademy/ts-no-error-suppressions */
36901
36895
  class TextInput extends React.Component {