Skip to content

Commit

Permalink
Merge pull request #2922 from udecode/registry
Browse files Browse the repository at this point in the history
Update Registry
  • Loading branch information
zbeyens authored Feb 5, 2024
2 parents 053a3d3 + a72247f commit d1d028e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"files": [
{
"name": "mention-combobox.tsx",
"content": "import React from 'react';\nimport { ComboboxProps } from '@udecode/plate-combobox';\nimport { getPluginOptions, useEditorRef } from '@udecode/plate-common';\nimport {\n ELEMENT_MENTION,\n getMentionOnSelectItem,\n MentionPlugin,\n} from '@udecode/plate-mention';\n\nimport { Combobox } from './combobox';\n\nexport function MentionCombobox({\n pluginKey = ELEMENT_MENTION,\n id = pluginKey,\n ...props\n}: Partial<ComboboxProps> & {\n pluginKey?: string;\n}) {\n const editor = useEditorRef();\n\n const { trigger } = getPluginOptions<MentionPlugin>(editor, pluginKey);\n\n return (\n <Combobox\n id={id}\n trigger={trigger!}\n controlled\n onSelectItem={getMentionOnSelectItem({\n key: pluginKey,\n })}\n {...props}\n />\n );\n}\n"
"content": "import React from 'react';\nimport { ComboboxProps } from '@udecode/plate-combobox';\nimport { getPluginOptions, useEditorRef } from '@udecode/plate-common';\nimport {\n ELEMENT_MENTION,\n getMentionOnSelectItem,\n MentionPlugin,\n} from '@udecode/plate-mention';\n\nimport { Combobox } from './combobox';\n\nexport function MentionCombobox({\n pluginKey = ELEMENT_MENTION,\n id = pluginKey,\n ...props\n}: Partial<ComboboxProps> & {\n pluginKey?: string;\n}) {\n const editor = useEditorRef();\n\n const { trigger } = getPluginOptions<MentionPlugin>(editor, pluginKey);\n\n return (\n <div onMouseDown={(e) => e.preventDefault()}>\n <Combobox\n id={id}\n trigger={trigger!}\n controlled\n onSelectItem={getMentionOnSelectItem({\n key: pluginKey,\n })}\n {...props}\n />\n </div>\n );\n}\n"
}
],
"type": "components:plate-ui"
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6940,7 +6940,7 @@ __metadata:
languageName: unknown
linkType: soft

"@udecode/plate-toggle@npm:30.1.2, @udecode/plate-toggle@workspace:^, @udecode/plate-toggle@workspace:packages/toggle":
"@udecode/plate-toggle@npm:30.3.2, @udecode/plate-toggle@workspace:^, @udecode/plate-toggle@workspace:packages/toggle":
version: 0.0.0-use.local
resolution: "@udecode/plate-toggle@workspace:packages/toggle"
dependencies:
Expand Down Expand Up @@ -7085,7 +7085,7 @@ __metadata:
"@udecode/plate-suggestion": "npm:30.1.2"
"@udecode/plate-tabbable": "npm:30.1.2"
"@udecode/plate-table": "npm:30.1.2"
"@udecode/plate-toggle": "npm:30.1.2"
"@udecode/plate-toggle": "npm:30.3.2"
"@udecode/plate-trailing-block": "npm:30.1.2"
peerDependencies:
react: ">=16.8.0"
Expand Down

0 comments on commit d1d028e

Please sign in to comment.