Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta: Export beta ContentPreview component #1627

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lucky-mails-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@khanacademy/perseus-editor": minor
---

Export beta version of `ContentPreview` component
8 changes: 4 additions & 4 deletions packages/perseus-editor/src/content-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import * as React from "react";
import type {LinterContextProps} from "@khanacademy/perseus-linter";

/**
* The `ContentPreview` component provides a simple preview system for Perseus
* Content. Due to how Persus styles are built, the preview styling matches the
* current device based on the viewport width (using `@media` queries for
* `min-width` and `max-width`).
* BETA!! The `ContentPreview` component provides a simple preview system for
* Perseus Content. Due to how Persus styles are built, the preview styling
* matches the current device based on the viewport width (using `@media`
* queries for `min-width` and `max-width`).
*
* The preview will render the mobile variant (styling and layout) when the
* `previewDevice` is phone or tablet. Note that the styling cannot be matched
Expand Down
1 change: 1 addition & 0 deletions packages/perseus-editor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export {default as StructuredItemDiff} from "./diffs/structured-item-diff";
export {default as EditorPage} from "./editor-page";
export {default as Editor} from "./editor";
export {default as i18n} from "./i18n";
export {default as ContentPreview} from "./content-preview";
export {default as IframeContentRenderer} from "./iframe-content-renderer";
export {default as MultiRendererEditor} from "./multirenderer-editor";
export {default as StatefulEditorPage} from "./stateful-editor-page";
Expand Down