-
-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c941773
commit 808af9a
Showing
26 changed files
with
460 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
title: AI Leaf | ||
description: Opens the AI menu from the editor toolbar. | ||
component: true | ||
docs: | ||
- route: /docs/ai | ||
title: AI | ||
- route: https://pro.platejs.org/docs/components/ai-leaf | ||
title: AI Leaf | ||
--- | ||
|
||
## Installation | ||
|
||
<Tabs defaultValue="cli"> | ||
|
||
<TabsList> | ||
<TabsTrigger value="cli">CLI</TabsTrigger> | ||
<TabsTrigger value="manual">Manual</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="cli"> | ||
|
||
```bash | ||
npx @udecode/plate-ui@latest add ai-leaf -r plate-ui | ||
``` | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="manual"> | ||
|
||
<Steps> | ||
|
||
<Step> | ||
|
||
Install the following dependencies: | ||
|
||
- [AI](/docs/ai) | ||
|
||
|
||
</Step> | ||
|
||
<Step> | ||
|
||
Copy and paste the following code into your project. | ||
|
||
</Step> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-leaf.tsx" /> | ||
|
||
<Step> | ||
|
||
Update the import paths to match your project setup. | ||
|
||
</Step> | ||
|
||
</Steps> | ||
|
||
</TabsContent> | ||
|
||
</Tabs> | ||
|
||
## Examples | ||
|
||
<ComponentPreview name="playground-demo" id="copilot" /> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-leaf.tsx" /> | ||
|
||
## Plate Plus | ||
|
||
In Plate Plus, we provides more advanced styles and complete backend setup | ||
|
||
All of the backend setup is available in [Potion template](https://pro.platejs.org/docs/templates/potion). | ||
|
||
<ComponentPreviewPro | ||
name="pro-iframe-demo" | ||
id="pro-ai" | ||
component="ai" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
--- | ||
title: AI Menu | ||
description: AI-powered menu for generating and inserting content in the editor. | ||
component: true | ||
docs: | ||
- route: /docs/ai | ||
title: AI | ||
- route: https://pro.platejs.org/docs/components/ai-menu | ||
title: AI Menu | ||
--- | ||
|
||
## Installation | ||
|
||
<Tabs defaultValue="cli"> | ||
|
||
<TabsList> | ||
<TabsTrigger value="cli">CLI</TabsTrigger> | ||
<TabsTrigger value="manual">Manual</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="cli"> | ||
|
||
```bash | ||
npx @udecode/plate-ui@latest add ai-menu -r plate-ui | ||
``` | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="manual"> | ||
|
||
<Steps> | ||
|
||
<Step> | ||
|
||
Install the following dependencies: | ||
|
||
```bash | ||
npm install ai sonner | ||
``` | ||
|
||
- [AI](/docs/ai) | ||
- [Command](/docs/components/command) | ||
- [Popover](/docs/components/popover) | ||
|
||
|
||
</Step> | ||
|
||
<Step> | ||
|
||
Copy and paste the following code into your project. | ||
|
||
</Step> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-menu.tsx" /> | ||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-menu-items.tsx" /> | ||
|
||
<Step> | ||
|
||
Update the import paths to match your project setup. | ||
|
||
</Step> | ||
|
||
</Steps> | ||
|
||
</TabsContent> | ||
|
||
</Tabs> | ||
|
||
## Examples | ||
|
||
<ComponentPreview name="playground-demo" id="copilot" /> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-menu.tsx" /> | ||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-menu-items.tsx" /> | ||
## Plate Plus | ||
|
||
In Plate Plus, we provides more advanced styles and complete backend setup | ||
|
||
All of the backend setup is available in [Potion template](https://pro.platejs.org/docs/templates/potion). | ||
|
||
<ComponentPreviewPro | ||
name="pro-iframe-demo" | ||
id="pro-ai" | ||
component="ai" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
title: AI Toolbar Button | ||
description: AI toolbar button | ||
component: true | ||
docs: | ||
- route: /docs/ai | ||
title: AI | ||
- route: https://pro.platejs.org/docs/components/ai-toolbar-button | ||
title: AI Toolbar Button | ||
--- | ||
|
||
## Installation | ||
|
||
<Tabs defaultValue="cli"> | ||
|
||
<TabsList> | ||
<TabsTrigger value="cli">CLI</TabsTrigger> | ||
<TabsTrigger value="manual">Manual</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="cli"> | ||
|
||
```bash | ||
npx @udecode/plate-ui@latest add ai-toolbar-button -r plate-ui | ||
``` | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="manual"> | ||
|
||
<Steps> | ||
|
||
<Step> | ||
|
||
Install the following dependencies: | ||
|
||
- [AI](/docs/ai) | ||
- [Toolbar](/docs/components/toolbar) | ||
|
||
|
||
</Step> | ||
|
||
<Step> | ||
|
||
Copy and paste the following code into your project. | ||
|
||
</Step> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-toolbar-button.tsx" /> | ||
|
||
<Step> | ||
|
||
Update the import paths to match your project setup. | ||
|
||
</Step> | ||
|
||
</Steps> | ||
|
||
</TabsContent> | ||
|
||
</Tabs> | ||
|
||
## Examples | ||
|
||
<ComponentPreview name="playground-demo" id="copilot" /> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/ai-toolbar-button.tsx" /> | ||
|
||
## Plate Plus | ||
|
||
In Plate Plus, we provides more advanced styles and complete backend setup | ||
|
||
All of the backend setup is available in [Potion template](https://pro.platejs.org/docs/templates/potion). | ||
|
||
<ComponentPreviewPro | ||
name="pro-iframe-demo" | ||
id="pro-ai" | ||
component="ai" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
title: Indent Todo Marker | ||
description: Turn any block into a todo list item. | ||
component: true | ||
docs: | ||
- route: /docs/indent-list | ||
title: Indent List | ||
- route: https://pro.platejs.org/docs/components/indent-todo-marker | ||
title: Indent Todo Marker | ||
--- | ||
|
||
## Installation | ||
|
||
<Tabs defaultValue="cli"> | ||
|
||
<TabsList> | ||
<TabsTrigger value="cli">CLI</TabsTrigger> | ||
<TabsTrigger value="manual">Manual</TabsTrigger> | ||
</TabsList> | ||
<TabsContent value="cli"> | ||
|
||
```bash | ||
npx @udecode/plate-ui@latest add indent-todo-marker -r plate-ui | ||
``` | ||
|
||
</TabsContent> | ||
|
||
<TabsContent value="manual"> | ||
|
||
<Steps> | ||
|
||
<Step> | ||
|
||
Install the following dependencies: | ||
|
||
- [Indent List](/docs/indent-list) | ||
|
||
</Step> | ||
|
||
<Step> | ||
|
||
Copy and paste the following code into your project. | ||
|
||
</Step> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/indent-todo-marker.tsx" /> | ||
|
||
<Step> | ||
|
||
Update the import paths to match your project setup. | ||
|
||
</Step> | ||
|
||
</Steps> | ||
|
||
</TabsContent> | ||
|
||
</Tabs> | ||
|
||
## Examples | ||
|
||
<ComponentPreview name="playground-demo" id="copilot" /> | ||
|
||
<ComponentSource src="../../templates/plate-playground-template/src/components/plate-ui/indent-todo-marker.tsx" /> |
Oops, something went wrong.