@anthusai/papyrus 1.0.0-next.27 → 1.0.0-next.28

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.
@@ -1,12 +1,5 @@
1
- import { NewsDeskClientProvider } from "../../components/news-desk-client-provider";
2
- import { resolveDevSandboxEditorAuth } from "../../lib/dev-sandbox-editor-auth";
1
+ import { NewsroomClientShell } from "../../components/newsroom-client-shell";
3
2
 
4
3
  export default function NewsroomLayout({ children }: Readonly<{ children: React.ReactNode }>) {
5
- const devSandboxEditorAuth = resolveDevSandboxEditorAuth();
6
-
7
- return (
8
- <NewsDeskClientProvider devSandboxEditorAuth={devSandboxEditorAuth}>
9
- {children}
10
- </NewsDeskClientProvider>
11
- );
4
+ return <NewsroomClientShell>{children}</NewsroomClientShell>;
12
5
  }
package/app/page.tsx CHANGED
@@ -18,6 +18,7 @@ import { SITE_BRAND, rootRoute } from "../lib/site-brand";
18
18
  import { notFound, redirect } from "next/navigation";
19
19
  import { getReaderBasePath } from "../lib/reader-base-path";
20
20
  import { buildRootRedirectTarget } from "../lib/root-route-redirect";
21
+ import { NewsroomClientShell } from "../components/newsroom-client-shell";
21
22
  import NewsDeskRootPage, { type NewsDeskRootSearchParams } from "./newsroom/page";
22
23
 
23
24
  export const dynamic = "force-dynamic";
@@ -42,7 +43,11 @@ export default async function Home({ searchParams }: HomePageProps) {
42
43
  const publicationOwnsRoot = getReaderBasePath() !== "";
43
44
 
44
45
  if (!publicationOwnsRoot && rootRoute.kind === "newsroom" && !scenarioId) {
45
- return <NewsDeskRootPage searchParams={searchParams} />;
46
+ return (
47
+ <NewsroomClientShell>
48
+ <NewsDeskRootPage searchParams={searchParams} />
49
+ </NewsroomClientShell>
50
+ );
46
51
  }
47
52
 
48
53
  if (!publicationOwnsRoot && rootRoute.kind === "redirect") {
@@ -0,0 +1,12 @@
1
+ import { NewsDeskClientProvider } from "./news-desk-client-provider";
2
+ import { resolveDevSandboxEditorAuth } from "../lib/dev-sandbox-editor-auth";
3
+
4
+ export function NewsroomClientShell({ children }: Readonly<{ children: React.ReactNode }>) {
5
+ const devSandboxEditorAuth = resolveDevSandboxEditorAuth();
6
+
7
+ return (
8
+ <NewsDeskClientProvider devSandboxEditorAuth={devSandboxEditorAuth}>
9
+ {children}
10
+ </NewsDeskClientProvider>
11
+ );
12
+ }
package/package.json CHANGED
@@ -86,6 +86,7 @@
86
86
  "./components/newsroom-article-editor": "./components/newsroom-article-editor.tsx",
87
87
  "./components/newsroom-articles-view": "./components/newsroom-articles-view.tsx",
88
88
  "./components/newsroom-assignments-view": "./components/newsroom-assignments-view.tsx",
89
+ "./components/newsroom-client-shell": "./components/newsroom-client-shell.tsx",
89
90
  "./components/newsroom-ops-overview": "./components/newsroom-ops-overview.tsx",
90
91
  "./components/newsroom-ops-shell": "./components/newsroom-ops-shell.tsx",
91
92
  "./components/newsroom-references-view": "./components/newsroom-references-view.tsx",
@@ -293,7 +294,7 @@
293
294
  "optional": true
294
295
  }
295
296
  },
296
- "version": "1.0.0-next.27",
297
+ "version": "1.0.0-next.28",
297
298
  "dependencies": {
298
299
  "@aws-amplify/adapter-nextjs": "^1.7.3",
299
300
  "@aws-sdk/client-cognito-identity-provider": "3.1045.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-next.27",
2
+ "version": "1.0.0-next.28",
3
3
  "routes": [
4
4
  {
5
5
  "file": "app/%5F_preview/[[...path]]/route.ts",