Skip to content

Commit 23b144b

Browse files
committed
ci
1 parent 58125cf commit 23b144b

8 files changed

+305
-310
lines changed
File renamed without changes.

packages/suggestion/src/lib/BaseSuggestionPlugin.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ import {
33
type PluginConfig,
44
type WithPartial,
55
createTSlatePlugin,
6-
isSlateString,
76
nanoid,
87
} from '@udecode/plate';
98

109
import type { SuggestionUser, TSuggestion } from './types';
1110

12-
import { findSuggestionNode } from './queries';
13-
import { getSuggestionId } from './utils';
1411
import { withSuggestion } from './withSuggestion';
1512

1613
export const SUGGESTION_KEYS = {

packages/suggestion/src/lib/transforms/addMarkSuggestion.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ export const addMarkSuggestion = (
1919
value: any
2020
) => {
2121
editor.getApi(BaseSuggestionPlugin).suggestion.withoutSuggestions(() => {
22-
const { id, createdAt} = getAddMarkProps();
23-
22+
const { id, createdAt } = getAddMarkProps();
2423

2524
const match = (n: TNode) => {
2625
if (!TextApi.isText(n)) return false;

packages/suggestion/src/lib/transforms/addSuggestionMark.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { SlateEditor } from '@udecode/plate';
33
import { BaseSuggestionPlugin, SUGGESTION_KEYS } from '../BaseSuggestionPlugin';
44
import { findSuggestionProps } from '../queries/findSuggestionId';
55

6+
// TODO: Refactor
67
export const addSuggestionMark = (editor: SlateEditor) => {
78
if (!editor.selection) return;
89

packages/suggestion/src/lib/transforms/removeMarkSuggestion.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const removeMarkSuggestion = (editor: SlateEditor, key: string) => {
1717
editor.getApi(BaseSuggestionPlugin).suggestion.withoutSuggestions(() => {
1818
const { id, createdAt } = getRemoveMarkProps();
1919

20-
2120
const match = (n: TNode) => {
2221
if (!TextApi.isText(n)) return false;
2322
// if the node is already marked as a suggestion, we don't want to remove it unless it's a removeMark suggestion

0 commit comments

Comments
 (0)