Skip to content

Commit 50bcc91

Browse files
committed
fix
1 parent 6457429 commit 50bcc91

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

apps/www/src/registry/registry-blocks.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const blocks: Registry['items'] = [
6464

6565
'ai-menu',
6666
'ghost-text',
67-
'comments-popover',
67+
'block-discussion',
6868
'cursor-overlay',
6969
'editor',
7070
'block-context-menu',
@@ -78,6 +78,7 @@ export const blocks: Registry['items'] = [
7878
'column-element',
7979
'column-group-element',
8080
'comment-leaf',
81+
'suggestion-leaf',
8182
'date-element',
8283
'draggable',
8384
'equation-element',
@@ -100,7 +101,6 @@ export const blocks: Registry['items'] = [
100101
'paragraph-element',
101102
'placeholder',
102103
'slash-input-element',
103-
'suggestion-popover',
104104
'table-cell-element',
105105
'table-element',
106106
'table-row-element',

apps/www/src/registry/registry-components.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ const plugins: Registry['items'] = [
212212
},
213213
],
214214
name: 'comments-plugin',
215-
registryDependencies: ['comments-popover'],
215+
registryDependencies: ['block-discussion'],
216216
type: 'registry:component',
217217
},
218218
{
@@ -235,6 +235,7 @@ const plugins: Registry['items'] = [
235235
},
236236
],
237237
name: 'suggestion-plugin',
238+
registryDependencies: ['suggestion-line-break'],
238239
type: 'registry:component',
239240
},
240241
{

apps/www/src/registry/registry-ui.ts

+16-6
Original file line numberDiff line numberDiff line change
@@ -209,31 +209,30 @@ export const uiComponents: Registry['items'] = [
209209
description: 'A popover interface for managing comments and replies.',
210210
docs: [
211211
{ route: '/docs/comments' },
212-
{ route: siteConfig.links.plateProComponent('comments-popover') },
212+
{ route: siteConfig.links.plateProComponent('block-discussion') },
213213
],
214214
examples: ['comments-demo', 'comments-pro'],
215215
},
216216
files: [
217217
{ path: 'plate-ui/comment-create-form.tsx', type: 'registry:ui' },
218218
{ path: 'plate-ui/comment.tsx', type: 'registry:ui' },
219219
{ path: 'plate-ui/block-discussion.tsx', type: 'registry:ui' },
220+
{ path: 'plate-ui/block-suggestion.tsx', type: 'registry:ui' },
220221
],
221-
name: 'comments-popover',
222+
name: 'block-discussion',
222223
registryDependencies: ['popover', 'avatar'],
223224
type: 'registry:ui',
224225
},
225226
{
226227
dependencies: ['@udecode/plate-suggestion'],
227228
doc: {
228-
description: 'A popover interface for managing suggestions.',
229+
description: 'A suggestion line break.',
229230
docs: [{ route: '/docs/suggestion' }],
230231
},
231232
files: [
232233
{ path: 'plate-ui/suggestion-line-break.tsx', type: 'registry:ui' },
233-
{ path: 'plate-ui/block-suggestion.tsx', type: 'registry:ui' },
234-
{ path: 'plate-ui/block-discussion.tsx', type: 'registry:ui' },
235234
],
236-
name: 'suggestion-popover',
235+
name: 'suggestion-line-break',
237236
type: 'registry:ui',
238237
},
239238
{
@@ -1096,6 +1095,17 @@ export const uiNodes: Registry['items'] = [
10961095
registryDependencies: [],
10971096
type: 'registry:ui',
10981097
},
1098+
{
1099+
dependencies: ['@udecode/plate-suggestion'],
1100+
doc: {
1101+
description: 'A text component for suggestion.',
1102+
docs: [{ route: '/docs/suggestion' }],
1103+
},
1104+
files: [{ path: 'plate-ui/suggestion-leaf.tsx', type: 'registry:ui' }],
1105+
name: 'suggestion-leaf',
1106+
registryDependencies: [],
1107+
type: 'registry:ui',
1108+
},
10991109
{
11001110
dependencies: ['@udecode/plate-date'],
11011111
doc: {

0 commit comments

Comments
 (0)