diff --git a/.changeset/tricky-forks-attend.md b/.changeset/tricky-forks-attend.md new file mode 100644 index 0000000000..8cf9d8e456 --- /dev/null +++ b/.changeset/tricky-forks-attend.md @@ -0,0 +1,6 @@ +--- +"@khanacademy/perseus": patch +"@khanacademy/perseus-editor": patch +--- + +Internal: Move InteractiveGraphEditor to its own directory diff --git a/packages/perseus-editor/src/all-editors.ts b/packages/perseus-editor/src/all-editors.ts index d399412e74..343bd99dc5 100644 --- a/packages/perseus-editor/src/all-editors.ts +++ b/packages/perseus-editor/src/all-editors.ts @@ -13,7 +13,7 @@ import IframeEditor from "./widgets/iframe-editor"; import ImageEditor from "./widgets/image-editor"; import InputNumberEditor from "./widgets/input-number-editor"; import InteractionEditor from "./widgets/interaction-editor"; -import InteractiveGraphEditor from "./widgets/interactive-graph-editor"; +import InteractiveGraphEditor from "./widgets/interactive-graph-editor/interactive-graph-editor"; import LabelImageEditor from "./widgets/label-image-editor"; import MatcherEditor from "./widgets/matcher-editor"; import MatrixEditor from "./widgets/matrix-editor"; diff --git a/packages/perseus-editor/src/components/graph-locked-figures/locked-figures-section.tsx b/packages/perseus-editor/src/components/graph-locked-figures/locked-figures-section.tsx index be786e19bc..8bf39b9e92 100644 --- a/packages/perseus-editor/src/components/graph-locked-figures/locked-figures-section.tsx +++ b/packages/perseus-editor/src/components/graph-locked-figures/locked-figures-section.tsx @@ -17,7 +17,7 @@ import LockedFigureSelect from "./locked-figure-select"; import LockedFigureSettings from "./locked-figure-settings"; import type {LockedFigureSettingsMovementType} from "./locked-figure-settings-actions"; -import type {Props as InteractiveGraphEditorProps} from "../../widgets/interactive-graph-editor"; +import type {Props as InteractiveGraphEditorProps} from "../../widgets/interactive-graph-editor/interactive-graph-editor"; import type {LockedFigure, LockedFigureType} from "@khanacademy/perseus"; type Props = { diff --git a/packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx b/packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx index 0dba6ec8ce..1cb07282d5 100644 --- a/packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx +++ b/packages/perseus-editor/src/widgets/__stories__/interactive-graph-editor.stories.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import {flags} from "../../__stories__/flags-for-api-options"; import {getDefaultFigureForType} from "../../components/util"; -import InteractiveGraphEditor from "../interactive-graph-editor"; +import InteractiveGraphEditor from "../interactive-graph-editor/interactive-graph-editor"; import InteractiveGraphEditorArgTypes from "./interactive-graph-editor.argtypes"; diff --git a/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor-locked-figures.test.tsx b/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor-locked-figures.test.tsx index 5a3dc92cca..9af887e86f 100644 --- a/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor-locked-figures.test.tsx +++ b/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor-locked-figures.test.tsx @@ -7,7 +7,7 @@ import * as React from "react"; import {testDependencies} from "../../../../../testing/test-dependencies"; import {flags} from "../../__stories__/flags-for-api-options"; import {getDefaultFigureForType} from "../../components/util"; -import InteractiveGraphEditor from "../interactive-graph-editor"; +import InteractiveGraphEditor from "../interactive-graph-editor/interactive-graph-editor"; import type {PerseusGraphType} from "@khanacademy/perseus"; import type {UserEvent} from "@testing-library/user-event"; diff --git a/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor.test.tsx b/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor.test.tsx index 4b10a9940f..3a1433db39 100644 --- a/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor.test.tsx +++ b/packages/perseus-editor/src/widgets/__tests__/interactive-graph-editor.test.tsx @@ -8,7 +8,7 @@ import {testDependencies} from "../../../../../testing/test-dependencies"; import {waitForInitialGraphieRender} from "../../../../../testing/wait"; import {flags} from "../../__stories__/flags-for-api-options"; import {getDefaultFigureForType} from "../../components/util"; -import InteractiveGraphEditor from "../interactive-graph-editor"; +import InteractiveGraphEditor from "../interactive-graph-editor/interactive-graph-editor"; import type {PerseusGraphType} from "@khanacademy/perseus"; import type {PropsFor} from "@khanacademy/wonder-blocks-core"; diff --git a/packages/perseus-editor/src/widgets/interactive-graph-editor.tsx b/packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx similarity index 97% rename from packages/perseus-editor/src/widgets/interactive-graph-editor.tsx rename to packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx index debb8ded2b..cc0bd596c9 100644 --- a/packages/perseus-editor/src/widgets/interactive-graph-editor.tsx +++ b/packages/perseus-editor/src/widgets/interactive-graph-editor/interactive-graph-editor.tsx @@ -15,16 +15,16 @@ import {StyleSheet} from "aphrodite"; import * as React from "react"; import _ from "underscore"; -import LabeledRow from "../components/graph-locked-figures/labeled-row"; -import LockedFiguresSection from "../components/graph-locked-figures/locked-figures-section"; -import GraphPointsCountSelector from "../components/graph-points-count-selector"; -import GraphTypeSelector from "../components/graph-type-selector"; -import {InteractiveGraphCorrectAnswer} from "../components/interactive-graph-correct-answer"; -import InteractiveGraphSettings from "../components/interactive-graph-settings"; -import SegmentCountSelector from "../components/segment-count-selector"; -import StartCoordsSettings from "../components/start-coords-settings"; -import {shouldShowStartCoordsUI} from "../components/util"; -import {parsePointCount} from "../util/points"; +import LabeledRow from "../../components/graph-locked-figures/labeled-row"; +import LockedFiguresSection from "../../components/graph-locked-figures/locked-figures-section"; +import GraphPointsCountSelector from "../../components/graph-points-count-selector"; +import GraphTypeSelector from "../../components/graph-type-selector"; +import {InteractiveGraphCorrectAnswer} from "../../components/interactive-graph-correct-answer"; +import InteractiveGraphSettings from "../../components/interactive-graph-settings"; +import SegmentCountSelector from "../../components/segment-count-selector"; +import StartCoordsSettings from "../../components/start-coords-settings"; +import {shouldShowStartCoordsUI} from "../../components/util"; +import {parsePointCount} from "../../util/points"; import type { PerseusImageBackground,