@eeacms/volto-hero-block 8.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,4 +11,122 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "A short hint that describes the expected value within this block"
15
+ #: components/Blocks/Hero/LayoutSchema
16
+ msgid "A short hint that describes the expected value within this block"
17
+ msgstr ""
18
+
19
+ #. Default: "Allow only the following blocks types"
20
+ #: components/Blocks/Hero/LayoutSchema
21
+ msgid "Allow only the following blocks types"
22
+ msgstr ""
23
+
24
+ #. Default: "Default"
25
+ #: components/Blocks/Hero/LayoutSchema
26
+ msgid "Default"
27
+ msgstr ""
28
+
29
+ #. Default: "Detailed expected value within this block"
30
+ #: components/Blocks/Hero/LayoutSchema
31
+ msgid "Detailed expected value within this block"
32
+ msgstr ""
33
+
34
+ #. Default: "Disable creation of new blocks after this block"
35
+ #: components/Blocks/Hero/LayoutSchema
36
+ msgid "Disable creation of new blocks after this block"
37
+ msgstr ""
38
+
39
+ #. Default: "Disable drag & drop on this block"
40
+ #: components/Blocks/Hero/LayoutSchema
41
+ msgid "Disable drag & drop on this block"
42
+ msgstr ""
43
+
44
+ #. Default: "Disable editing on hero block settings"
45
+ #: components/Blocks/Hero/LayoutSchema
46
+ msgid "Disable editing on hero block settings"
47
+ msgstr ""
48
+
49
+ #. Default: "Disable editing on hero titles"
50
+ #: components/Blocks/Hero/LayoutSchema
51
+ msgid "Disable editing on hero titles"
52
+ msgstr ""
53
+
54
+ #. Default: "Disable editing on this block"
55
+ #: components/Blocks/Hero/LayoutSchema
56
+ msgid "Disable editing on this block"
57
+ msgstr ""
58
+
59
+ #. Default: "Disable inner buttons"
60
+ #: components/Blocks/Hero/LayoutSchema
61
+ msgid "Disable inner buttons"
62
+ msgstr ""
63
+
64
+ #. Default: "Disable new blocks"
65
+ #: components/Blocks/Hero/LayoutSchema
66
+ msgid "Disable new blocks"
67
+ msgstr ""
68
+
69
+ #. Default: "Don't allow deletion of this block"
70
+ #: components/Blocks/Hero/LayoutSchema
71
+ msgid "Don't allow deletion of this block"
72
+ msgstr ""
14
73
 
74
+ #. Default: "Fixed layout"
75
+ #: components/Blocks/Hero/LayoutSchema
76
+ msgid "Fixed layout"
77
+ msgstr ""
78
+
79
+ #. Default: "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
80
+ #: components/Blocks/Hero/LayoutSchema
81
+ msgid "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
82
+ msgstr ""
83
+
84
+ #. Default: "Fixed position"
85
+ #: components/Blocks/Hero/LayoutSchema
86
+ msgid "Fixed position"
87
+ msgstr ""
88
+
89
+ #. Default: "Helper text"
90
+ #: components/Blocks/Hero/LayoutSchema
91
+ msgid "Helper text"
92
+ msgstr ""
93
+
94
+ #. Default: "Hero"
95
+ #: components/Blocks/Hero/index
96
+ msgid "Hero"
97
+ msgstr ""
98
+
99
+ #. Default: "Hero block settings"
100
+ #: components/Blocks/Hero/LayoutSchema
101
+ msgid "Hero block settings"
102
+ msgstr ""
103
+
104
+ #. Default: "Hide all block related buttons within this block"
105
+ #: components/Blocks/Hero/LayoutSchema
106
+ msgid "Hide all block related buttons within this block"
107
+ msgstr ""
108
+
109
+ #. Default: "Instructions"
110
+ #: components/Blocks/Hero/LayoutSchema
111
+ msgid "Instructions"
112
+ msgstr ""
113
+
114
+ #. Default: "Read-only"
115
+ #: components/Blocks/Hero/LayoutSchema
116
+ msgid "Read-only"
117
+ msgstr ""
118
+
119
+ #. Default: "Read-only settings"
120
+ #: components/Blocks/Hero/LayoutSchema
121
+ msgid "Read-only settings"
122
+ msgstr ""
123
+
124
+ #. Default: "Read-only titles"
125
+ #: components/Blocks/Hero/LayoutSchema
126
+ msgid "Read-only titles"
127
+ msgstr ""
128
+
129
+ #. Default: "Required"
130
+ #: components/Blocks/Hero/LayoutSchema
131
+ msgid "Required"
132
+ msgstr ""
@@ -11,4 +11,122 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "A short hint that describes the expected value within this block"
15
+ #: components/Blocks/Hero/LayoutSchema
16
+ msgid "A short hint that describes the expected value within this block"
17
+ msgstr ""
18
+
19
+ #. Default: "Allow only the following blocks types"
20
+ #: components/Blocks/Hero/LayoutSchema
21
+ msgid "Allow only the following blocks types"
22
+ msgstr ""
23
+
24
+ #. Default: "Default"
25
+ #: components/Blocks/Hero/LayoutSchema
26
+ msgid "Default"
27
+ msgstr ""
28
+
29
+ #. Default: "Detailed expected value within this block"
30
+ #: components/Blocks/Hero/LayoutSchema
31
+ msgid "Detailed expected value within this block"
32
+ msgstr ""
33
+
34
+ #. Default: "Disable creation of new blocks after this block"
35
+ #: components/Blocks/Hero/LayoutSchema
36
+ msgid "Disable creation of new blocks after this block"
37
+ msgstr ""
38
+
39
+ #. Default: "Disable drag & drop on this block"
40
+ #: components/Blocks/Hero/LayoutSchema
41
+ msgid "Disable drag & drop on this block"
42
+ msgstr ""
43
+
44
+ #. Default: "Disable editing on hero block settings"
45
+ #: components/Blocks/Hero/LayoutSchema
46
+ msgid "Disable editing on hero block settings"
47
+ msgstr ""
48
+
49
+ #. Default: "Disable editing on hero titles"
50
+ #: components/Blocks/Hero/LayoutSchema
51
+ msgid "Disable editing on hero titles"
52
+ msgstr ""
53
+
54
+ #. Default: "Disable editing on this block"
55
+ #: components/Blocks/Hero/LayoutSchema
56
+ msgid "Disable editing on this block"
57
+ msgstr ""
58
+
59
+ #. Default: "Disable inner buttons"
60
+ #: components/Blocks/Hero/LayoutSchema
61
+ msgid "Disable inner buttons"
62
+ msgstr ""
63
+
64
+ #. Default: "Disable new blocks"
65
+ #: components/Blocks/Hero/LayoutSchema
66
+ msgid "Disable new blocks"
67
+ msgstr ""
68
+
69
+ #. Default: "Don't allow deletion of this block"
70
+ #: components/Blocks/Hero/LayoutSchema
71
+ msgid "Don't allow deletion of this block"
72
+ msgstr ""
14
73
 
74
+ #. Default: "Fixed layout"
75
+ #: components/Blocks/Hero/LayoutSchema
76
+ msgid "Fixed layout"
77
+ msgstr ""
78
+
79
+ #. Default: "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
80
+ #: components/Blocks/Hero/LayoutSchema
81
+ msgid "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
82
+ msgstr ""
83
+
84
+ #. Default: "Fixed position"
85
+ #: components/Blocks/Hero/LayoutSchema
86
+ msgid "Fixed position"
87
+ msgstr ""
88
+
89
+ #. Default: "Helper text"
90
+ #: components/Blocks/Hero/LayoutSchema
91
+ msgid "Helper text"
92
+ msgstr ""
93
+
94
+ #. Default: "Hero"
95
+ #: components/Blocks/Hero/index
96
+ msgid "Hero"
97
+ msgstr ""
98
+
99
+ #. Default: "Hero block settings"
100
+ #: components/Blocks/Hero/LayoutSchema
101
+ msgid "Hero block settings"
102
+ msgstr ""
103
+
104
+ #. Default: "Hide all block related buttons within this block"
105
+ #: components/Blocks/Hero/LayoutSchema
106
+ msgid "Hide all block related buttons within this block"
107
+ msgstr ""
108
+
109
+ #. Default: "Instructions"
110
+ #: components/Blocks/Hero/LayoutSchema
111
+ msgid "Instructions"
112
+ msgstr ""
113
+
114
+ #. Default: "Read-only"
115
+ #: components/Blocks/Hero/LayoutSchema
116
+ msgid "Read-only"
117
+ msgstr ""
118
+
119
+ #. Default: "Read-only settings"
120
+ #: components/Blocks/Hero/LayoutSchema
121
+ msgid "Read-only settings"
122
+ msgstr ""
123
+
124
+ #. Default: "Read-only titles"
125
+ #: components/Blocks/Hero/LayoutSchema
126
+ msgid "Read-only titles"
127
+ msgstr ""
128
+
129
+ #. Default: "Required"
130
+ #: components/Blocks/Hero/LayoutSchema
131
+ msgid "Required"
132
+ msgstr ""
@@ -11,4 +11,122 @@ msgstr ""
11
11
  "Content-Transfer-Encoding: \n"
12
12
  "Plural-Forms: \n"
13
13
 
14
+ #. Default: "A short hint that describes the expected value within this block"
15
+ #: components/Blocks/Hero/LayoutSchema
16
+ msgid "A short hint that describes the expected value within this block"
17
+ msgstr ""
18
+
19
+ #. Default: "Allow only the following blocks types"
20
+ #: components/Blocks/Hero/LayoutSchema
21
+ msgid "Allow only the following blocks types"
22
+ msgstr ""
23
+
24
+ #. Default: "Default"
25
+ #: components/Blocks/Hero/LayoutSchema
26
+ msgid "Default"
27
+ msgstr ""
28
+
29
+ #. Default: "Detailed expected value within this block"
30
+ #: components/Blocks/Hero/LayoutSchema
31
+ msgid "Detailed expected value within this block"
32
+ msgstr ""
33
+
34
+ #. Default: "Disable creation of new blocks after this block"
35
+ #: components/Blocks/Hero/LayoutSchema
36
+ msgid "Disable creation of new blocks after this block"
37
+ msgstr ""
38
+
39
+ #. Default: "Disable drag & drop on this block"
40
+ #: components/Blocks/Hero/LayoutSchema
41
+ msgid "Disable drag & drop on this block"
42
+ msgstr ""
43
+
44
+ #. Default: "Disable editing on hero block settings"
45
+ #: components/Blocks/Hero/LayoutSchema
46
+ msgid "Disable editing on hero block settings"
47
+ msgstr ""
48
+
49
+ #. Default: "Disable editing on hero titles"
50
+ #: components/Blocks/Hero/LayoutSchema
51
+ msgid "Disable editing on hero titles"
52
+ msgstr ""
53
+
54
+ #. Default: "Disable editing on this block"
55
+ #: components/Blocks/Hero/LayoutSchema
56
+ msgid "Disable editing on this block"
57
+ msgstr ""
58
+
59
+ #. Default: "Disable inner buttons"
60
+ #: components/Blocks/Hero/LayoutSchema
61
+ msgid "Disable inner buttons"
62
+ msgstr ""
63
+
64
+ #. Default: "Disable new blocks"
65
+ #: components/Blocks/Hero/LayoutSchema
66
+ msgid "Disable new blocks"
67
+ msgstr ""
68
+
69
+ #. Default: "Don't allow deletion of this block"
70
+ #: components/Blocks/Hero/LayoutSchema
71
+ msgid "Don't allow deletion of this block"
72
+ msgstr ""
14
73
 
74
+ #. Default: "Fixed layout"
75
+ #: components/Blocks/Hero/LayoutSchema
76
+ msgid "Fixed layout"
77
+ msgstr ""
78
+
79
+ #. Default: "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
80
+ #: components/Blocks/Hero/LayoutSchema
81
+ msgid "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
82
+ msgstr ""
83
+
84
+ #. Default: "Fixed position"
85
+ #: components/Blocks/Hero/LayoutSchema
86
+ msgid "Fixed position"
87
+ msgstr ""
88
+
89
+ #. Default: "Helper text"
90
+ #: components/Blocks/Hero/LayoutSchema
91
+ msgid "Helper text"
92
+ msgstr ""
93
+
94
+ #. Default: "Hero"
95
+ #: components/Blocks/Hero/index
96
+ msgid "Hero"
97
+ msgstr ""
98
+
99
+ #. Default: "Hero block settings"
100
+ #: components/Blocks/Hero/LayoutSchema
101
+ msgid "Hero block settings"
102
+ msgstr ""
103
+
104
+ #. Default: "Hide all block related buttons within this block"
105
+ #: components/Blocks/Hero/LayoutSchema
106
+ msgid "Hide all block related buttons within this block"
107
+ msgstr ""
108
+
109
+ #. Default: "Instructions"
110
+ #: components/Blocks/Hero/LayoutSchema
111
+ msgid "Instructions"
112
+ msgstr ""
113
+
114
+ #. Default: "Read-only"
115
+ #: components/Blocks/Hero/LayoutSchema
116
+ msgid "Read-only"
117
+ msgstr ""
118
+
119
+ #. Default: "Read-only settings"
120
+ #: components/Blocks/Hero/LayoutSchema
121
+ msgid "Read-only settings"
122
+ msgstr ""
123
+
124
+ #. Default: "Read-only titles"
125
+ #: components/Blocks/Hero/LayoutSchema
126
+ msgid "Read-only titles"
127
+ msgstr ""
128
+
129
+ #. Default: "Required"
130
+ #: components/Blocks/Hero/LayoutSchema
131
+ msgid "Required"
132
+ msgstr ""
package/locales/volto.pot CHANGED
@@ -1,16 +1,134 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2023-06-28T10:48:22.678Z\n"
4
+ "POT-Creation-Date: 2026-03-10T22:13:14.190Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
- "MIME-Version: 1.0\n"
8
7
  "Content-Type: text/plain; charset=utf-8\n"
9
8
  "Content-Transfer-Encoding: 8bit\n"
10
9
  "Plural-Forms: nplurals=1; plural=0;\n"
10
+ "MIME-Version: 1.0\n"
11
11
  "Language-Code: en\n"
12
12
  "Language-Name: English\n"
13
13
  "Preferred-Encodings: utf-8\n"
14
14
  "Domain: volto\n"
15
15
 
16
+ #. Default: "A short hint that describes the expected value within this block"
17
+ #: components/Blocks/Hero/LayoutSchema
18
+ msgid "A short hint that describes the expected value within this block"
19
+ msgstr ""
20
+
21
+ #. Default: "Allow only the following blocks types"
22
+ #: components/Blocks/Hero/LayoutSchema
23
+ msgid "Allow only the following blocks types"
24
+ msgstr ""
25
+
26
+ #. Default: "Default"
27
+ #: components/Blocks/Hero/LayoutSchema
28
+ msgid "Default"
29
+ msgstr ""
30
+
31
+ #. Default: "Detailed expected value within this block"
32
+ #: components/Blocks/Hero/LayoutSchema
33
+ msgid "Detailed expected value within this block"
34
+ msgstr ""
35
+
36
+ #. Default: "Disable creation of new blocks after this block"
37
+ #: components/Blocks/Hero/LayoutSchema
38
+ msgid "Disable creation of new blocks after this block"
39
+ msgstr ""
40
+
41
+ #. Default: "Disable drag & drop on this block"
42
+ #: components/Blocks/Hero/LayoutSchema
43
+ msgid "Disable drag & drop on this block"
44
+ msgstr ""
45
+
46
+ #. Default: "Disable editing on hero block settings"
47
+ #: components/Blocks/Hero/LayoutSchema
48
+ msgid "Disable editing on hero block settings"
49
+ msgstr ""
50
+
51
+ #. Default: "Disable editing on hero titles"
52
+ #: components/Blocks/Hero/LayoutSchema
53
+ msgid "Disable editing on hero titles"
54
+ msgstr ""
55
+
56
+ #. Default: "Disable editing on this block"
57
+ #: components/Blocks/Hero/LayoutSchema
58
+ msgid "Disable editing on this block"
59
+ msgstr ""
60
+
61
+ #. Default: "Disable inner buttons"
62
+ #: components/Blocks/Hero/LayoutSchema
63
+ msgid "Disable inner buttons"
64
+ msgstr ""
65
+
66
+ #. Default: "Disable new blocks"
67
+ #: components/Blocks/Hero/LayoutSchema
68
+ msgid "Disable new blocks"
69
+ msgstr ""
70
+
71
+ #. Default: "Don't allow deletion of this block"
72
+ #: components/Blocks/Hero/LayoutSchema
73
+ msgid "Don't allow deletion of this block"
74
+ msgstr ""
75
+
76
+ #. Default: "Fixed layout"
77
+ #: components/Blocks/Hero/LayoutSchema
78
+ msgid "Fixed layout"
79
+ msgstr ""
80
+
81
+ #. Default: "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
82
+ #: components/Blocks/Hero/LayoutSchema
83
+ msgid "Fixed layout, New panes (tabs) created by Editor within this block will be ignored"
84
+ msgstr ""
85
+
86
+ #. Default: "Fixed position"
87
+ #: components/Blocks/Hero/LayoutSchema
88
+ msgid "Fixed position"
89
+ msgstr ""
90
+
91
+ #. Default: "Helper text"
92
+ #: components/Blocks/Hero/LayoutSchema
93
+ msgid "Helper text"
94
+ msgstr ""
95
+
96
+ #. Default: "Hero"
97
+ #: components/Blocks/Hero/index
98
+ msgid "Hero"
99
+ msgstr ""
100
+
101
+ #. Default: "Hero block settings"
102
+ #: components/Blocks/Hero/LayoutSchema
103
+ msgid "Hero block settings"
104
+ msgstr ""
105
+
106
+ #. Default: "Hide all block related buttons within this block"
107
+ #: components/Blocks/Hero/LayoutSchema
108
+ msgid "Hide all block related buttons within this block"
109
+ msgstr ""
110
+
111
+ #. Default: "Instructions"
112
+ #: components/Blocks/Hero/LayoutSchema
113
+ msgid "Instructions"
114
+ msgstr ""
115
+
116
+ #. Default: "Read-only"
117
+ #: components/Blocks/Hero/LayoutSchema
118
+ msgid "Read-only"
119
+ msgstr ""
120
+
121
+ #. Default: "Read-only settings"
122
+ #: components/Blocks/Hero/LayoutSchema
123
+ msgid "Read-only settings"
124
+ msgstr ""
16
125
 
126
+ #. Default: "Read-only titles"
127
+ #: components/Blocks/Hero/LayoutSchema
128
+ msgid "Read-only titles"
129
+ msgstr ""
130
+
131
+ #. Default: "Required"
132
+ #: components/Blocks/Hero/LayoutSchema
133
+ msgid "Required"
134
+ msgstr ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-hero-block",
3
- "version": "8.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "@eeacms/volto-hero-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -4,7 +4,7 @@ import { Icon } from 'semantic-ui-react';
4
4
  import { Provider } from 'react-intl-redux';
5
5
  import configureStore from 'redux-mock-store';
6
6
  import config from '@plone/volto/registry';
7
- import '@testing-library/jest-dom/extend-expect';
7
+ import '@testing-library/jest-dom';
8
8
 
9
9
  import Copyright from './Copyright';
10
10
 
@@ -3,18 +3,15 @@ import cx from 'classnames';
3
3
  import isFunction from 'lodash/isFunction';
4
4
  import { Icon } from 'semantic-ui-react';
5
5
  import config from '@plone/volto/registry';
6
- import { BlocksForm } from '@plone/volto/components';
7
- import EditBlockWrapper from '@plone/volto/components/manage/Blocks/Block/EditBlockWrapper';
6
+ import BlocksForm from '@plone/volto/components/manage/Blocks/Block/BlocksForm';
8
7
  import { v4 as uuid } from 'uuid';
9
8
  import '@eeacms/volto-hero-block/components/Blocks/Hero/edit.css';
10
9
 
11
- import { isEmpty } from 'lodash';
12
- import {
13
- BlockDataForm,
14
- SidebarPortal,
15
- UniversalLink,
16
- } from '@plone/volto/components';
17
- import { BodyClass } from '@plone/volto/helpers';
10
+ import isEmpty from 'lodash/isEmpty';
11
+ import SidebarPortal from '@plone/volto/components/manage/Sidebar/SidebarPortal';
12
+ import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
13
+ import BlockDataForm from '@plone/volto/components/manage/Form/BlockDataForm';
14
+ import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
18
15
  import { getFieldURL } from '@plone/volto/helpers/Url/Url';
19
16
  import { HeroBlockSchema } from './schema';
20
17
  import Copyright from './Copyright';
@@ -140,17 +137,7 @@ export default function Edit(props) {
140
137
  }
141
138
  }}
142
139
  pathname={pathname}
143
- >
144
- {({ draginfo }, editBlock, blockProps) => (
145
- <EditBlockWrapper
146
- draginfo={draginfo}
147
- blockProps={blockProps}
148
- disabled={data.disableInnerButtons}
149
- >
150
- {editBlock}
151
- </EditBlockWrapper>
152
- )}
153
- </BlocksForm>
140
+ />
154
141
  </Hero.Text>
155
142
  <Hero.Meta {...data}>
156
143
  <Metadata {...data} />
@@ -5,7 +5,7 @@ import { IntlProvider } from 'react-intl';
5
5
  import configureStore from 'redux-mock-store';
6
6
  import Edit from './Edit';
7
7
  import config from '@plone/volto/registry';
8
- import '@testing-library/jest-dom/extend-expect';
8
+ import '@testing-library/jest-dom';
9
9
 
10
10
  // Mock uuid to avoid node:crypto import issues
11
11
  jest.mock('uuid', () => ({
@@ -16,32 +16,25 @@ const mockStore = configureStore([]);
16
16
  const observe = jest.fn();
17
17
  const unobserve = jest.fn();
18
18
  const disconnect = jest.fn();
19
- jest.mock('@plone/volto/components', () => {
20
- return {
21
- __esModule: true,
22
- BlocksForm: ({ placeholder, children, onChange, onFocus }) => (
23
- <div id="test">
24
- <div>{placeholder}</div>
25
- {typeof children === 'function'
26
- ? children({}, <div>Mock Edit Block</div>, {})
27
- : children}
28
- </div>
29
- ),
30
- SidebarPortal: ({ children }) => <div>{children}</div>,
31
- BlockDataForm: () => <div></div>,
32
- UniversalLink: () => <div></div>,
33
- RenderBlocks: () => <div></div>,
34
- };
19
+ jest.mock('@plone/volto/components/manage/Blocks/Block/BlocksForm', () => {
20
+ return ({ placeholder }) => (
21
+ <div id="test">
22
+ <div>{placeholder}</div>
23
+ </div>
24
+ );
35
25
  });
36
26
 
37
- jest.mock(
38
- '@plone/volto/components/manage/Blocks/Block/EditBlockWrapper',
39
- () => {
40
- return ({ children }) => (
41
- <div className="edit-block-wrapper">{children}</div>
42
- );
43
- },
44
- );
27
+ jest.mock('@plone/volto/components/manage/Form/BlockDataForm', () => {
28
+ return () => <div></div>;
29
+ });
30
+ jest.mock('@plone/volto/components/manage/Sidebar/SidebarPortal', () => ({
31
+ __esModule: true,
32
+ default: ({ children }) => <div>{children}</div>,
33
+ }));
34
+ jest.mock('@plone/volto/components/manage/UniversalLink/UniversalLink', () => ({
35
+ __esModule: true,
36
+ default: () => <div></div>,
37
+ }));
45
38
  jest.mock('react-router-dom', () => ({
46
39
  useLocation: jest.fn().mockReturnValue({
47
40
  pathname: '/test-jest',
@@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
3
3
  import { Provider } from 'react-intl-redux';
4
4
  import configureStore from 'redux-mock-store';
5
5
  import config from '@plone/volto/registry';
6
- import '@testing-library/jest-dom/extend-expect';
6
+ import '@testing-library/jest-dom';
7
7
 
8
8
  import Hero from './Hero';
9
9
 
@@ -1,8 +1,9 @@
1
1
  import React, { useMemo } from 'react';
2
2
  import cx from 'classnames';
3
3
  import { Icon } from 'semantic-ui-react';
4
- import { UniversalLink, RenderBlocks } from '@plone/volto/components';
5
- import { BodyClass } from '@plone/volto/helpers';
4
+ import UniversalLink from '@plone/volto/components/manage/UniversalLink/UniversalLink';
5
+ import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
6
+ import BodyClass from '@plone/volto/helpers/BodyClass/BodyClass';
6
7
  import { useLocation } from 'react-router-dom';
7
8
  import Hero from './Hero';
8
9
  import Copyright from './Copyright';
@@ -1,4 +1,4 @@
1
- import { addStyling } from '@plone/volto/helpers';
1
+ import { addStyling } from '@plone/volto/helpers/Extensions';
2
2
  import config from '@plone/volto/registry';
3
3
 
4
4
  import alignTopSVG from '@plone/volto/icons/move-up.svg';
@@ -1,7 +1,7 @@
1
1
  import { stylingSchema, HeroBlockSchema } from './schema';
2
2
  import config from '@plone/volto/registry';
3
3
 
4
- jest.mock('@plone/volto/helpers', () => ({
4
+ jest.mock('@plone/volto/helpers/Extensions', () => ({
5
5
  addStyling: jest.fn((schema) => schema),
6
6
  }));
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { createSlateHeader, serializeText } from './helpers';
2
- import { isArray } from 'lodash';
2
+ import isArray from 'lodash/isArray';
3
3
  import { serializeNodes } from '@plone/volto-slate/editor/render';
4
4
 
5
5
  jest.mock('@plone/volto-slate/editor/render', () => ({