From 739eb790371fb9cb6a86a488bd6afb51f516c05e Mon Sep 17 00:00:00 2001 From: zbeyens Date: Wed, 20 Nov 2024 16:40:50 +0100 Subject: [PATCH] docs --- apps/www/public/r/styles/default/editor-ai.json | 2 +- apps/www/src/__registry__/default/block/editor-ai/page.tsx | 4 ++++ apps/www/src/registry/default/block/editor-ai/page.tsx | 4 ++++ templates/plate-playground-template/src/app/editor/page.tsx | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/www/public/r/styles/default/editor-ai.json b/apps/www/public/r/styles/default/editor-ai.json index 3461872848..64039d6cab 100644 --- a/apps/www/public/r/styles/default/editor-ai.json +++ b/apps/www/public/r/styles/default/editor-ai.json @@ -26,7 +26,7 @@ "description": "An AI editor", "files": [ { - "content": "import { PlateEditor } from '@/components/editor/plate-editor';\nimport { SettingsProvider } from '@/components/editor/settings';\n\nexport default function Page() {\n return (\n
\n \n \n \n
\n );\n}\n", + "content": "import { Toaster } from 'sonner';\n\nimport { PlateEditor } from '@/components/editor/plate-editor';\nimport { SettingsProvider } from '@/components/editor/settings';\n\nexport default function Page() {\n return (\n
\n \n \n \n\n \n
\n );\n}\n", "path": "block/editor-ai/page.tsx", "target": "app/editor/page.tsx", "type": "registry:page" diff --git a/apps/www/src/__registry__/default/block/editor-ai/page.tsx b/apps/www/src/__registry__/default/block/editor-ai/page.tsx index 081a1c1e37..7b88f3790f 100644 --- a/apps/www/src/__registry__/default/block/editor-ai/page.tsx +++ b/apps/www/src/__registry__/default/block/editor-ai/page.tsx @@ -1,3 +1,5 @@ +import { Toaster } from 'sonner'; + import { PlateEditor } from '@/registry/default/block/editor-ai/components/editor/plate-editor'; import { SettingsProvider } from '@/registry/default/components/editor/settings'; @@ -13,6 +15,8 @@ export default function Page() { + + ); } diff --git a/apps/www/src/registry/default/block/editor-ai/page.tsx b/apps/www/src/registry/default/block/editor-ai/page.tsx index 081a1c1e37..7b88f3790f 100644 --- a/apps/www/src/registry/default/block/editor-ai/page.tsx +++ b/apps/www/src/registry/default/block/editor-ai/page.tsx @@ -1,3 +1,5 @@ +import { Toaster } from 'sonner'; + import { PlateEditor } from '@/registry/default/block/editor-ai/components/editor/plate-editor'; import { SettingsProvider } from '@/registry/default/components/editor/settings'; @@ -13,6 +15,8 @@ export default function Page() { + + ); } diff --git a/templates/plate-playground-template/src/app/editor/page.tsx b/templates/plate-playground-template/src/app/editor/page.tsx index b3e81118ba..9f48689e67 100644 --- a/templates/plate-playground-template/src/app/editor/page.tsx +++ b/templates/plate-playground-template/src/app/editor/page.tsx @@ -1,3 +1,5 @@ +import { Toaster } from 'sonner'; + import { PlateEditor } from '@/components/editor/plate-editor'; import { SettingsProvider } from '@/components/editor/settings'; @@ -7,6 +9,8 @@ export default function Page() { + + ); }