From 13bb1bdf03a62000c07a7d49a56ad09c1433fda0 Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Wed, 29 May 2024 22:56:44 +0100 Subject: [PATCH] feat: add isEditing flag to `puck` object prop This replaces the legacy undocumented `editMode` prop. --- apps/demo/config/root.tsx | 4 ++-- apps/docs/components/Preview/index.tsx | 2 +- .../configuration/component-config.mdx | 23 +++++++++++-------- packages/core/components/DropZone/index.tsx | 10 ++++++-- .../Puck/components/Preview/index.tsx | 4 ++-- packages/core/components/Render/index.tsx | 1 + .../core/components/ServerRender/index.tsx | 1 + packages/core/types/Config.tsx | 1 + 8 files changed, 29 insertions(+), 17 deletions(-) diff --git a/apps/demo/config/root.tsx b/apps/demo/config/root.tsx index 7a253041a9..621ab9aeb6 100644 --- a/apps/demo/config/root.tsx +++ b/apps/demo/config/root.tsx @@ -9,10 +9,10 @@ export type RootProps = { title: string; } & DefaultRootProps; -function Root({ children, editMode }: RootProps) { +function Root({ children, puck }: RootProps) { return ( <> -
+
{children}