@eeacms/volto-clms-theme 1.0.163 → 1.0.165
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.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.0.165](https://github.com/eea/volto-clms-theme/compare/1.0.164...1.0.165) - 19 January 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- CLMS hybrid FAQ view [Unai - [`a56b5ce`](https://github.com/eea/volto-clms-theme/commit/a56b5ced82fe61ebbd80e9af9e5bc70af597b80d)]
|
|
12
|
+
### [1.0.164](https://github.com/eea/volto-clms-theme/compare/1.0.163...1.0.164) - 18 January 2023
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- lint fix [Unai - [`95c026b`](https://github.com/eea/volto-clms-theme/commit/95c026be26ce6c9f6b546f0a281af29f248facfe)]
|
|
17
|
+
- FAQBlockView only taking data from blocks [Unai - [`def427e`](https://github.com/eea/volto-clms-theme/commit/def427e671bd0e2fc1508f286ca728694631f64b)]
|
|
18
|
+
- hybrid FAQBlockView [Unai - [`37ad5a1`](https://github.com/eea/volto-clms-theme/commit/37ad5a181e46e5d44a7e19ad187e3a0912503617)]
|
|
7
19
|
### [1.0.163](https://github.com/eea/volto-clms-theme/compare/1.0.162...1.0.163) - 17 January 2023
|
|
8
20
|
|
|
9
21
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import AnimateHeight from 'react-animate-height';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import { searchContent } from '@plone/volto/actions';
|
|
5
|
-
import config from '@plone/volto/registry';
|
|
6
4
|
import { Accordion, Segment } from 'semantic-ui-react';
|
|
5
|
+
|
|
6
|
+
import { searchContent } from '@plone/volto/actions';
|
|
7
7
|
import { Icon, UniversalLink } from '@plone/volto/components';
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
8
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
9
|
+
import { hasBlocksData } from '@plone/volto/helpers';
|
|
10
10
|
import penSVG from '@plone/volto/icons/pen.svg';
|
|
11
|
+
import config from '@plone/volto/registry';
|
|
12
|
+
import { CclTabs } from '@eeacms/volto-clms-theme/components/CclTab';
|
|
13
|
+
// import { StringToHTML } from '@eeacms/volto-clms-theme/components/CclUtils';
|
|
11
14
|
|
|
12
15
|
const CclFAQBlockView = (props) => {
|
|
13
16
|
const { isEditMode } = props;
|
|
@@ -150,9 +153,12 @@ const CclFAQBlockView = (props) => {
|
|
|
150
153
|
duration={500}
|
|
151
154
|
height={'auto'}
|
|
152
155
|
>
|
|
153
|
-
<StringToHTML
|
|
156
|
+
{/* <StringToHTML
|
|
154
157
|
string={item.text ? item.text.data : ''}
|
|
155
|
-
/>
|
|
158
|
+
/> */}
|
|
159
|
+
{hasBlocksData(item) && (
|
|
160
|
+
<RenderBlocks content={item} />
|
|
161
|
+
)}
|
|
156
162
|
</AnimateHeight>
|
|
157
163
|
</Accordion.Content>
|
|
158
164
|
</Accordion>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
4
|
+
|
|
5
|
+
const CLMSFAQView = (props) => {
|
|
6
|
+
const { content } = props;
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div className="ccl-container">
|
|
10
|
+
<>
|
|
11
|
+
<h1 className="page-title">{content.title}</h1>
|
|
12
|
+
<div className="faq-detail">
|
|
13
|
+
<RenderBlocks {...props} />
|
|
14
|
+
</div>
|
|
15
|
+
</>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default CLMSFAQView;
|
package/src/index.js
CHANGED
|
@@ -22,6 +22,7 @@ import ProfileView from './components/CLMSProfileView/CLMSProfileView';
|
|
|
22
22
|
import SubscriptionView from './components/CLMSSubscriptionView/SubscriptionView';
|
|
23
23
|
import CLMSWorkOpportunityView from '@eeacms/volto-clms-theme/components/CLMSWorkOpportunityView/WorkOpportunityView';
|
|
24
24
|
import CLMSUseCaseView from './components/CLMSUseCasesView/CLMSUseCasesView';
|
|
25
|
+
import CLMSFAQView from './components/CLMSFAQView/CLMSFAQView';
|
|
25
26
|
|
|
26
27
|
// WIDGET
|
|
27
28
|
import BoundingWidget from './components/Widgets/BoundingWidget';
|
|
@@ -63,6 +64,7 @@ const applyConfig = (config) => {
|
|
|
63
64
|
'eea.meeting.email': CLMSMeetingEmailView,
|
|
64
65
|
WorkOpportunity: CLMSWorkOpportunityView,
|
|
65
66
|
Tender: CLMSWorkOpportunityView,
|
|
67
|
+
FAQ: CLMSFAQView,
|
|
66
68
|
},
|
|
67
69
|
};
|
|
68
70
|
config.blocks = {
|