create-puck-app 0.16.0-canary.ef2e5ec → 0.16.0-canary.fc564d7
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/templates/next/app/[...puckPath]/page.tsx +1 -1
- package/templates/next/app/favicon.ico +0 -0
- package/templates/next/app/puck/[...puckPath]/client.tsx +2 -2
- package/templates/next/app/puck/[...puckPath]/page.tsx +3 -1
- package/templates/next/app/puck/page.tsx +1 -1
- package/templates/next/package.json.hbs +2 -2
- package/templates/remix/app/root.tsx +3 -0
- package/templates/remix/app/styles/shared.css +3 -0
package/package.json
CHANGED
Binary file
|
@@ -4,12 +4,12 @@ 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}
|
11
11
|
data={data}
|
12
|
-
onPublish={async (data
|
12
|
+
onPublish={async (data) => {
|
13
13
|
await fetch("/puck/api", {
|
14
14
|
method: "post",
|
15
15
|
body: JSON.stringify({ data, path }),
|
@@ -1 +1 @@
|
|
1
|
-
export { default, generateMetadata } from "./[...puckPath]/page";
|
1
|
+
export { default, generateMetadata, dynamic } from "./[...puckPath]/page";
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"dependencies": {
|
12
12
|
"@measured/puck": "{{puckVersion}}",
|
13
13
|
"classnames": "^2.3.2",
|
14
|
-
"next": "^
|
14
|
+
"next": "^14.2.11",
|
15
15
|
"react": "^18.2.0",
|
16
16
|
"react-dom": "^18.2.0"
|
17
17
|
},
|
@@ -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": "^
|
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() {
|