@udecode/plate-mention
Advanced tools
Comparing version 9.0.0 to 9.1.0
# @udecode/plate-mention | ||
## 9.1.0 | ||
## 9.0.0 | ||
@@ -4,0 +6,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { ComboboxOnSelectItem, Data, TComboboxItem } from '@udecode/plate-combobox'; | ||
import { PlatePluginKey } from '@udecode/plate-core'; | ||
import { ComboboxOnSelectItem, Data, TComboboxItem } from '@udecode/plate-ui-combobox'; | ||
import { MentionNodeData } from './types'; | ||
@@ -4,0 +4,0 @@ export interface CreateMentionNode<TData extends Data> { |
import { findNode, getPluginType, getPlugin, insertNodes, createPluginFactory, getBlockAbove } from '@udecode/plate-core'; | ||
import { Range, Transforms, Editor, Node } from 'slate'; | ||
import { comboboxStore } from '@udecode/plate-ui-combobox'; | ||
import { comboboxActions, comboboxSelectors } from '@udecode/plate-combobox'; | ||
import { HistoryEditor } from 'slate-history'; | ||
@@ -127,3 +127,3 @@ | ||
if (currentMentionInput) { | ||
comboboxStore.set.text(Node.string(currentMentionInput[0])); | ||
comboboxActions.text(Node.string(currentMentionInput[0])); | ||
} | ||
@@ -145,3 +145,3 @@ } else if (operation.type === 'set_selection') { | ||
if (currentMentionInputPath) { | ||
comboboxStore.set.targetRange(editor.selection); | ||
comboboxActions.targetRange(editor.selection); | ||
} | ||
@@ -153,3 +153,3 @@ } else if (operation.type === 'insert_node' && isNodeMentionInput(editor, operation.node)) { | ||
comboboxStore.set.open({ | ||
comboboxActions.open({ | ||
activeId: id, | ||
@@ -164,3 +164,3 @@ text: '', | ||
comboboxStore.set.reset(); | ||
comboboxActions.reset(); | ||
} | ||
@@ -214,3 +214,3 @@ }; | ||
const targetRange = comboboxStore.get.targetRange(); | ||
const targetRange = comboboxSelectors.targetRange(); | ||
if (!targetRange) return; | ||
@@ -252,3 +252,3 @@ const { | ||
}); | ||
return comboboxStore.set.reset(); | ||
return comboboxActions.reset(); | ||
}; | ||
@@ -255,0 +255,0 @@ |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var slate = require('slate'); | ||
var plateUiCombobox = require('@udecode/plate-ui-combobox'); | ||
var plateCombobox = require('@udecode/plate-combobox'); | ||
var slateHistory = require('slate-history'); | ||
@@ -132,3 +132,3 @@ | ||
if (currentMentionInput) { | ||
plateUiCombobox.comboboxStore.set.text(slate.Node.string(currentMentionInput[0])); | ||
plateCombobox.comboboxActions.text(slate.Node.string(currentMentionInput[0])); | ||
} | ||
@@ -150,3 +150,3 @@ } else if (operation.type === 'set_selection') { | ||
if (currentMentionInputPath) { | ||
plateUiCombobox.comboboxStore.set.targetRange(editor.selection); | ||
plateCombobox.comboboxActions.targetRange(editor.selection); | ||
} | ||
@@ -158,3 +158,3 @@ } else if (operation.type === 'insert_node' && isNodeMentionInput(editor, operation.node)) { | ||
plateUiCombobox.comboboxStore.set.open({ | ||
plateCombobox.comboboxActions.open({ | ||
activeId: id, | ||
@@ -169,3 +169,3 @@ text: '', | ||
plateUiCombobox.comboboxStore.set.reset(); | ||
plateCombobox.comboboxActions.reset(); | ||
} | ||
@@ -219,3 +219,3 @@ }; | ||
const targetRange = plateUiCombobox.comboboxStore.get.targetRange(); | ||
const targetRange = plateCombobox.comboboxSelectors.targetRange(); | ||
if (!targetRange) return; | ||
@@ -257,3 +257,3 @@ const { | ||
}); | ||
return plateUiCombobox.comboboxStore.set.reset(); | ||
return plateCombobox.comboboxActions.reset(); | ||
}; | ||
@@ -260,0 +260,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { Data, NoData } from '@udecode/plate-combobox'; | ||
import { TElement } from '@udecode/plate-core'; | ||
import { Data, NoData } from '@udecode/plate-ui-combobox'; | ||
import { CreateMentionNode } from './getMentionOnSelectItem'; | ||
@@ -4,0 +4,0 @@ export interface MentionNodeData { |
{ | ||
"name": "@udecode/plate-mention", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"description": "Mention plugin for Plate", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@udecode/plate-ui-combobox": "9.0.0", | ||
"@udecode/plate-combobox": "9.1.0", | ||
"@udecode/plate-core": "9.0.0" | ||
@@ -38,0 +38,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62348
70136
+ Added@udecode/plate-combobox@9.1.0(transitive)
- Removed@udecode/plate-ui-combobox@9.0.0
- Removed@popperjs/core@2.10.2(transitive)
- Removed@udecode/plate-styled-components@9.0.0(transitive)
- Removed@udecode/plate-ui-combobox@9.0.0(transitive)
- Removed@udecode/plate-ui-popper@9.0.0(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-fast-compare@3.2.2(transitive)
- Removedreact-is@19.0.0(transitive)
- Removedreact-popper@2.2.5(transitive)
- Removedwarning@4.0.3(transitive)
- Removedzustand@3.5.11(transitive)