From 57602dc7544e95a40fa3e1a9a65c49ec227811cc Mon Sep 17 00:00:00 2001 From: Jeremy Wiebe Date: Mon, 16 Sep 2024 12:02:45 -0700 Subject: [PATCH 1/2] Export beta ContentPreview component --- packages/perseus-editor/src/content-preview.tsx | 8 ++++---- packages/perseus-editor/src/index.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/perseus-editor/src/content-preview.tsx b/packages/perseus-editor/src/content-preview.tsx index 73194b8164..2572a17a19 100644 --- a/packages/perseus-editor/src/content-preview.tsx +++ b/packages/perseus-editor/src/content-preview.tsx @@ -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 diff --git a/packages/perseus-editor/src/index.ts b/packages/perseus-editor/src/index.ts index 14438825fe..9bcdba065e 100644 --- a/packages/perseus-editor/src/index.ts +++ b/packages/perseus-editor/src/index.ts @@ -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"; From 61501c5e47e1858a7efecb76edddb5d2fcf7a8d4 Mon Sep 17 00:00:00 2001 From: Jeremy Wiebe Date: Mon, 16 Sep 2024 12:06:45 -0700 Subject: [PATCH 2/2] Changeset --- .changeset/lucky-mails-obey.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lucky-mails-obey.md diff --git a/.changeset/lucky-mails-obey.md b/.changeset/lucky-mails-obey.md new file mode 100644 index 0000000000..486c4956d2 --- /dev/null +++ b/.changeset/lucky-mails-obey.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/perseus-editor": minor +--- + +Export beta version of `ContentPreview` component