create-puck-app 0.16.0-canary.a1d52cb → 0.16.0-canary.acdb11d
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/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/next-env.d.ts +1 -1
- package/templates/next/package.json.hbs +1 -1
package/package.json
CHANGED
@@ -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";
|
@@ -2,4 +2,4 @@
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
3
3
|
|
4
4
|
// NOTE: This file should not be edited
|
5
|
-
// see https://nextjs.org/docs/
|
5
|
+
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
|