Skip to content

Commit b17c354

Browse files
committed
fix
1 parent 54e1590 commit b17c354

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

.changeset/clever-ducks-shine.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/platejs-ai-minor.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
---
2-
"@platejs/ai": minor
2+
"@platejs/ai": patch
33
---
44

5-
Added `rejectAISuggestions` utility and refactored `acceptAISuggestions` into a reusable module
6-
7-
- **Added** new `rejectAISuggestions` utility function that rejects all transient AI suggestions in the editor
8-
- **Refactored** `acceptAISuggestions` logic from `acceptAIChat` transform into a standalone utility module
9-
- **Exported** both `acceptAISuggestions` and `rejectAISuggestions` from the ai-chat utils for reuse across different transforms
10-
11-
These utilities provide a consistent way to accept or reject AI-generated suggestions, enabling better control over AI-assisted content in the editor.
5+
Added `rejectAISuggestions` and `acceptAISuggestions` utility.

apps/www/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
33
/// <reference types="next/navigation-types/compat/navigation" />
4-
import "./.next/dev/types/routes.d.ts";
4+
import "./.next/types/routes.d.ts";
55

66
// NOTE: This file should not be edited
77
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

apps/www/src/registry/ui/suggestion-node.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function SuggestionLeaf(props: PlateLeafProps<TSuggestionText>) {
6969
suggestionVariants({
7070
insertActive: hasActive || hasHover,
7171
remove: hasRemove,
72-
removeActive: hasActive || (hasHover && hasRemove),
72+
removeActive: (hasActive || hasHover) && hasRemove,
7373
})
7474
)}
7575
attributes={{

docs/components/changelog.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Since Plate UI is not a component library, a changelog is maintained here.
88

99
Use the [CLI](https://platejs.org/docs/components/cli) to install the latest version of the components.
1010

11+
### October 21 #26.9
12+
- `suggestion-kit`: Remove `BlockSuggestion`use `SuggestionLineBreak` instead to fixes styles.
13+
1114
### October 17 #26.8
1215
- **Static Components**: Updated all static component imports to use new `platejs/static` path
1316
- `*-node-static` components: Updated imports from `@platejs/core/react` to `platejs/static`

0 commit comments

Comments
 (0)