Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/www/src/registry/ui/ai-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ import {
PopoverContent,
} from '@/components/ui/popover';
import { cn } from '@/lib/utils';
import { commentPlugin } from '@/registry/components/editor/plugins/comment-kit';

import { commentPlugin } from '../components/editor/plugins/comment-kit';
import { AIChatEditor } from './ai-chat-editor';

export function AIMenu() {
Expand Down Expand Up @@ -166,6 +166,7 @@ export function AIMenu() {
const block = editor.api.block({ at: anchorNode[1] });
setAnchorElement(editor.api.toDOMNode(block![0]!)!);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isLoading]);

if (isLoading && mode === 'insert') return null;
Expand Down
3 changes: 3 additions & 0 deletions templates/plate-playground-template/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const compat = new FlatCompat({
});

const eslintConfig = [
{
ignores: ['.next'],
},
...compat.extends('next/core-web-vitals', 'next/typescript'),
{
plugins: {
Expand Down
5 changes: 0 additions & 5 deletions templates/plate-playground-template/next-env.d.ts

This file was deleted.

83 changes: 42 additions & 41 deletions templates/plate-playground-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,32 @@
"build": "next build",
"depset": "pnpm dlx depset@latest @udecode --yes",
"dev": "next dev --turbo",
"lint": "next lint",
"lint:fix": "next lint --fix && prettier --write . --log-level warn",
"lint": "eslint",
"lint:fix": "eslint --fix && prettier --write . --log-level warn",
"preview": "next build && next start",
"start": "next start",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@ai-sdk/openai": "^1.3.22",
"@ai-sdk/provider": "^1.1.3",
"@ai-sdk/provider-utils": "^2.2.8",
"@ai-sdk/react": "^1.2.12",
"@ai-sdk/openai": "^2.0.32",
"@ai-sdk/provider": "2.0.0",
"@ai-sdk/google": "2.0.11",
"@ai-sdk/provider-utils": "3.0.9",
"@ai-sdk/react": "2.0.47",
"@ariakit/react": "^0.4.18",
"@emoji-mart/data": "1.2.1",
"@faker-js/faker": "^9.9.0",
"@platejs/ai": "^49.2.4",
"@faker-js/faker": "^10.0.0",
"@platejs/ai": "^50.2.0",
"@platejs/autoformat": "^49.0.0",
"@platejs/basic-nodes": "^49.0.0",
"@platejs/basic-styles": "^49.0.0",
"@platejs/callout": "^49.0.0",
"@platejs/caption": "^49.0.0",
"@platejs/code-block": "^49.0.0",
"@platejs/combobox": "^49.0.0",
"@platejs/comment": "^49.0.0",
"@platejs/comment": "^50.2.0",
"@platejs/date": "^49.0.2",
"@platejs/dnd": "^49.2.10",
"@platejs/dnd": "^49.2.22",
"@platejs/docx": "^49.0.0",
"@platejs/emoji": "^49.0.0",
"@platejs/excalidraw": "^49.0.0",
Expand All @@ -39,76 +40,76 @@
"@platejs/juice": "^49.0.0",
"@platejs/layout": "^49.2.1",
"@platejs/link": "^49.1.1",
"@platejs/list": "^49.2.0",
"@platejs/markdown": "^49.2.1",
"@platejs/list": "^50.2.0",
"@platejs/markdown": "^50.2.0",
"@platejs/math": "^49.0.0",
"@platejs/media": "^49.0.0",
"@platejs/mention": "^49.0.0",
"@platejs/resizable": "^49.0.0",
"@platejs/selection": "^49.2.4",
"@platejs/selection": "^50.2.0",
"@platejs/slash-command": "^49.0.0",
"@platejs/suggestion": "^49.0.0",
"@platejs/suggestion": "^50.2.0",
"@platejs/table": "^49.1.13",
"@platejs/toc": "^49.0.0",
"@platejs/toggle": "^49.0.0",
"@radix-ui/react-alert-dialog": "^1.1.14",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-avatar": "^1.1.10",
"@radix-ui/react-checkbox": "^1.3.2",
"@radix-ui/react-context-menu": "^2.2.15",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-dropdown-menu": "^2.1.15",
"@radix-ui/react-popover": "^1.1.14",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-context-menu": "^2.2.16",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slot": "^1.2.3",
"@radix-ui/react-toolbar": "^1.1.10",
"@radix-ui/react-tooltip": "^1.2.7",
"@radix-ui/react-toolbar": "^1.1.11",
"@radix-ui/react-tooltip": "^1.2.8",
"@udecode/cn": "^49.0.15",
"@uploadthing/react": "7.3.1",
"ai": "^4.3.16",
"@uploadthing/react": "7.3.3",
"ai": "5.0.47",
"class-variance-authority": "0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"date-fns": "^4.1.0",
"html2canvas-pro": "^1.5.11",
"lodash": "^4.17.21",
"lowlight": "^3.3.0",
"lucide-react": "0.539.0",
"next": "^15.4.6",
"lucide-react": "0.544.0",
"next": "^15.5.3",
"pdf-lib": "^1.17.1",
"platejs": "^49.2.9",
"platejs": "^49.2.21",
"react": "^19.1.1",
"react-day-picker": "^9.8.1",
"react-day-picker": "^9.10.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^19.1.1",
"react-lite-youtube-embed": "^2.5.3",
"react-player": "^3.3.1",
"react-lite-youtube-embed": "^2.5.6",
"react-player": "3.3.3",
"react-textarea-autosize": "^8.5.9",
"react-tweet": "^3.2.2",
"remark-gfm": "^4.0.1",
"remark-math": "^6.0.0",
"sonner": "^2.0.7",
"tailwind-merge": "3.3.1",
"tailwind-scrollbar-hide": "^4.0.0",
"tw-animate-css": "^1.3.6",
"uploadthing": "7.7.2",
"tw-animate-css": "^1.3.8",
"uploadthing": "7.7.4",
"use-file-picker": "2.1.2",
"zod": "^4.0.17"
"zod": "^4.1.9"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@tailwindcss/postcss": "4.1.11",
"@types/node": "^24.2.1",
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"eslint": "^9.33.0",
"eslint-config-next": "15.4.6",
"eslint-plugin-unused-imports": "^4.1.4",
"@tailwindcss/postcss": "4.1.13",
"@types/node": "^24.5.2",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"eslint": "^9.36.0",
"eslint-config-next": "15.5.3",
"eslint-plugin-unused-imports": "^4.2.0",
"postcss": "^8.5.6",
"prettier": "^3.6.2",
"prettier-plugin-packagejson": "^2.5.19",
"prettier-plugin-tailwindcss": "^0.6.14",
"tailwindcss": "4.1.11",
"tailwindcss": "4.1.13",
"typescript": "5.9.2"
},
"pnpm": {
Expand Down
Loading