Skip to content

Commit

Permalink
Merge pull request #981 from alvarlagerlof/revert-980-expose-viewer
Browse files Browse the repository at this point in the history
Revert "Expose viewer component"
  • Loading branch information
alvarlagerlof committed May 21, 2024
2 parents d9657ed + 4d01604 commit b302410
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
10 changes: 0 additions & 10 deletions .changeset/twenty-islands-move.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/src/components/ViewerPayload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function ViewerPayload({ defaultPayload }: { defaultPayload: string }) {
);
}

export function Viewer({ payload }: { payload: string }) {
function Viewer({ payload }: { payload: string }) {
const messages = [
{
type: "RSC_CHUNK",
Expand Down
6 changes: 1 addition & 5 deletions packages/core/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { RscChunkMessage } from "./types";
import {
ViewerPayload,
Viewer as unstable_Viewer,
} from "./components/ViewerPayload";
import { ViewerPayload } from "./components/ViewerPayload";
import { ViewerStreams } from "./components/ViewerStreams";
import { ViewerStreamsEmptyState } from "./components/ViewerStreamsEmptyState";
import { Logo } from "./components/Logo";
Expand All @@ -21,7 +18,6 @@ import { createFlightResponse as unstable_createFlightResponse } from "./createF
export {
type RscChunkMessage,
ViewerPayload,
unstable_Viewer,
ViewerStreams,
ViewerStreamsEmptyState,
Logo,
Expand Down

0 comments on commit b302410

Please sign in to comment.