Skip to content

Commit

Permalink
refactor(volto-slate): Upgrade to @plone/volto-slate - refs #153447
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Oct 26, 2022
1 parent dfbc72a commit d8d9e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jest-addon.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = {
'@package/(.*)$': '<rootDir>/src/$1',
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
'@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
'volto-slate/(.*)$': '<rootDir>/src/addons/volto-slate/src/$1',
'@plone/volto-slate':
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
'~/(.*)$': '<rootDir>/src/$1',
'load-volto-addons':
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isArray } from 'lodash';
import { serializeNodes } from 'volto-slate/editor/render';
import { serializeNodes } from '@plone/volto-slate/editor/render';

export const serializeText = (text) => {
return isArray(text) ? serializeNodes(text) : text;
Expand Down

0 comments on commit d8d9e29

Please sign in to comment.