File tree Expand file tree Collapse file tree 11 files changed +15
-13
lines changed
packages/volto-code-block Expand file tree Collapse file tree 11 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1+ Remove barrel imports from @plone/volto. @ericof
Original file line number Diff line number Diff line change 1+ Code block: Wrap the Caption component inside the main block. @ericof
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { BlockDataForm } from '@plone/volto/components' ;
2+ import { BlockDataForm } from '@plone/volto/components/manage/Form ' ;
33import { codeSchema } from './schema' ;
44import { useIntl } from 'react-intl' ;
55
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ const CodeView = (props) => {
3030 lineNbr = { lineNbr }
3131 />
3232 </ div >
33+ { caption_title && (
34+ < Caption title = { caption_title } description = { caption_description } />
35+ ) }
3336 </ div >
3437 ) }
35- { caption_title && (
36- < Caption title = { caption_title } description = { caption_description } />
37- ) }
3838 </ >
3939 ) ;
4040} ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { withBlockExtensions } from '@plone/volto/helpers' ;
3- import { SidebarPortal } from '@plone/volto/components' ;
2+ import { withBlockExtensions } from '@plone/volto/helpers/Extensions/withBlockExtensions ' ;
3+ import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal ' ;
44import config from '@plone/volto/registry' ;
55import CodeBlockData from './Data' ;
66import Caption from '../../Caption/Caption.jsx' ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { withBlockExtensions } from '@plone/volto/helpers' ;
2+ import { withBlockExtensions } from '@plone/volto/helpers/Extensions/withBlockExtensions ' ;
33import CodeView from './DefaultView' ;
44
55const CodeBlockView = ( props ) => {
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { BlockDataForm } from '@plone/volto/components' ;
2+ import { BlockDataForm } from '@plone/volto/components/manage/Form ' ;
33import { gistSchema } from './schema' ;
44import { useIntl } from 'react-intl' ;
55
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { withBlockExtensions } from '@plone/volto/helpers' ;
3- import { SidebarPortal } from '@plone/volto/components' ;
2+ import { withBlockExtensions } from '@plone/volto/helpers/Extensions/withBlockExtensions ' ;
3+ import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal ' ;
44import GistBlockData from './Data' ;
55import View from './DefaultView' ;
66
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { withBlockExtensions } from '@plone/volto/helpers' ;
2+ import { withBlockExtensions } from '@plone/volto/helpers/Extensions/withBlockExtensions ' ;
33import GistView from './DefaultView' ;
44
55const GistBlockView = ( props ) => {
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { withBlockExtensions } from '@plone/volto/helpers' ;
2+ import { withBlockExtensions } from '@plone/volto/helpers/Extensions/withBlockExtensions ' ;
33import config from '@plone/volto/registry' ;
44import Editor from '../../Editor/Editor.tsx' ;
55import { highlight } from 'prismjs/components/prism-core' ;
You can’t perform that action at this time.
0 commit comments