create-puck-app 0.16.0-canary.54b5a87 → 0.16.0-canary.6d43ba0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-puck-app",
3
- "version": "0.16.0-canary.54b5a87",
3
+ "version": "0.16.0-canary.6d43ba0",
4
4
  "author": "Measured Corporation Ltd <hello@measured.co>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",
@@ -23,7 +23,7 @@ export async function generateMetadata({
23
23
  const path = `/${puckPath.join("/")}`;
24
24
 
25
25
  return {
26
- title: getPage(path)?.root.props.title,
26
+ title: getPage(path)?.root.props?.title,
27
27
  };
28
28
  }
29
29
 
Binary file
@@ -4,7 +4,7 @@ import type { Data } from "@measured/puck";
4
4
  import { Puck } from "@measured/puck";
5
5
  import config from "../../../puck.config";
6
6
 
7
- export function Client({ path, data }: { path: string; data: Data }) {
7
+ export function Client({ path, data }: { path: string; data: Partial<Data> }) {
8
8
  return (
9
9
  <Puck
10
10
  config={config}
@@ -36,5 +36,5 @@ export default async function Page({
36
36
  const path = `/${puckPath.join("/")}`;
37
37
  const data = getPage(path);
38
38
 
39
- return <Client path={path} data={data} />;
39
+ return <Client path={path} data={data || {}} />;
40
40
  }
@@ -20,6 +20,6 @@
20
20
  "@types/react": "^18.0.22",
21
21
  "@types/react-dom": "^18.0.7",
22
22
  "eslint-config-custom": "*",
23
- "typescript": "^4.5.3"
23
+ "typescript": "^5.5.4"
24
24
  }
25
25
  }
@@ -9,8 +9,11 @@ import {
9
9
  ScrollRestoration,
10
10
  } from "@remix-run/react";
11
11
 
12
+ import styles from "~/styles/shared.css";
13
+
12
14
  export const links: LinksFunction = () => [
13
15
  ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []),
16
+ { rel: "stylesheet", href: styles },
14
17
  ];
15
18
 
16
19
  export default function App() {
@@ -0,0 +1,3 @@
1
+ body {
2
+ margin: 0;
3
+ }