From 4fa144025748d52c80fe4a92f8c0d9ff43f1159b Mon Sep 17 00:00:00 2001 From: ionlizarazu Date: Thu, 9 Jun 2022 16:41:24 +0200 Subject: [PATCH 1/2] fixes --- jest-addon.config.js | 1 + src/components/Blocks/FeaturedBlock/index.js | 8 +++++++- src/index.js | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/jest-addon.config.js b/jest-addon.config.js index 7c15499..03f0568 100644 --- a/jest-addon.config.js +++ b/jest-addon.config.js @@ -11,6 +11,7 @@ module.exports = { '@package/(.*)$': '/src/$1', '@plone/volto-quanta/(.*)$': '/src/addons/volto-quanta/src/$1', '@eeacms/(.*?)/(.*)$': '/src/addons/$1/src/$2', + '@codesyntax/(.*?)/(.*)$': '/src/addons/$1/src/$2', 'volto-slate/(.*)$': '/src/addons/volto-slate/src/$1', '~/(.*)$': '/src/$1', 'load-volto-addons': diff --git a/src/components/Blocks/FeaturedBlock/index.js b/src/components/Blocks/FeaturedBlock/index.js index 33087a1..00ec53b 100644 --- a/src/components/Blocks/FeaturedBlock/index.js +++ b/src/components/Blocks/FeaturedBlock/index.js @@ -1,5 +1,11 @@ import FeaturedBlockView from './FeaturedBlockView'; import FeaturedBlockEdit from './FeaturedBlockEdit'; import FeaturedImageEditor from './FeaturedImageEditor'; +import CarouselFeaturedView from './Variations'; -export { FeaturedBlockView, FeaturedBlockEdit, FeaturedImageEditor }; +export { + FeaturedBlockView, + FeaturedBlockEdit, + FeaturedImageEditor, + CarouselFeaturedView, +}; diff --git a/src/index.js b/src/index.js index 7e8879b..41e1c7c 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import { FeaturedBlockView, FeaturedBlockEdit, } from './components/Blocks/FeaturedBlock'; -import { CarouselFeaturedView } from 'volto-ueu/components/Blocks/FeaturedBlock/Variations'; +import { CarouselFeaturedView } from './components/Blocks/FeaturedBlock/Variations'; const applyConfig = (config) => { config.blocks.blocksConfig = { From ec5badd606cdcd7597769efd0b97d9c26587eb92 Mon Sep 17 00:00:00 2001 From: ionlizarazu Date: Thu, 9 Jun 2022 16:57:28 +0200 Subject: [PATCH 2/2] fix imports --- src/components/Blocks/FeaturedBlock/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Blocks/FeaturedBlock/index.js b/src/components/Blocks/FeaturedBlock/index.js index 00ec53b..b0a7df5 100644 --- a/src/components/Blocks/FeaturedBlock/index.js +++ b/src/components/Blocks/FeaturedBlock/index.js @@ -1,7 +1,7 @@ import FeaturedBlockView from './FeaturedBlockView'; import FeaturedBlockEdit from './FeaturedBlockEdit'; import FeaturedImageEditor from './FeaturedImageEditor'; -import CarouselFeaturedView from './Variations'; +import { CarouselFeaturedView } from './Variations'; export { FeaturedBlockView,