@worksafevictoria/wcl7.5 1.15.0-beta.3 → 1.15.0-beta.5
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/package.json
CHANGED
|
@@ -5,7 +5,7 @@ const mockAccordionItems = [
|
|
|
5
5
|
field_title: 'Item one',
|
|
6
6
|
field_pre_heading: 'preheading text',
|
|
7
7
|
field_rich_text: {
|
|
8
|
-
|
|
8
|
+
processed:
|
|
9
9
|
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>',
|
|
10
10
|
},
|
|
11
11
|
id: 'id-1',
|
|
@@ -14,7 +14,7 @@ const mockAccordionItems = [
|
|
|
14
14
|
field_title: 'Item two',
|
|
15
15
|
field_pre_heading: 'preheading text',
|
|
16
16
|
field_rich_text: {
|
|
17
|
-
|
|
17
|
+
processed:
|
|
18
18
|
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>',
|
|
19
19
|
},
|
|
20
20
|
id: 'id-2',
|
|
@@ -23,7 +23,7 @@ const mockAccordionItems = [
|
|
|
23
23
|
field_title: 'Item three',
|
|
24
24
|
field_pre_heading: 'preheading text',
|
|
25
25
|
field_rich_text: {
|
|
26
|
-
|
|
26
|
+
processed:
|
|
27
27
|
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>',
|
|
28
28
|
},
|
|
29
29
|
id: 'id-3',
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<stepper-item
|
|
23
23
|
v-if="isStepper"
|
|
24
24
|
:itemid="item.id ? item.id : '' + index"
|
|
25
|
-
:content="hasContent(item) ? item.field_rich_text.
|
|
25
|
+
:content="hasContent(item) ? item.field_rich_text.processed : ''"
|
|
26
26
|
:title="item.field_title"
|
|
27
27
|
class="accordion__item stepper"
|
|
28
28
|
:rtl="rtl || item.field_rtl"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<accordion-item
|
|
34
34
|
v-if="!isStepper"
|
|
35
35
|
:itemid="item.id ? item.id : '' + index"
|
|
36
|
-
:content="hasContent(item) ? item.field_rich_text.
|
|
36
|
+
:content="hasContent(item) ? item.field_rich_text.processed : ''"
|
|
37
37
|
:title="item.field_title"
|
|
38
38
|
class="accordion__item"
|
|
39
39
|
:rtl="rtl || item.field_rtl"
|
|
@@ -124,7 +124,8 @@ export default {
|
|
|
124
124
|
return false
|
|
125
125
|
},
|
|
126
126
|
hasContent(item) {
|
|
127
|
-
|
|
127
|
+
// Changed to processed from value for rich text field.
|
|
128
|
+
return item?.field_rich_text?.processed
|
|
128
129
|
},
|
|
129
130
|
},
|
|
130
131
|
}
|
package/src/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Global
|
|
1
|
+
// Global Components - replace Homepageheader with HomepageHeaderNew to introduce new header
|
|
2
2
|
import Container from './components/Containers/Container/index.vue'
|
|
3
3
|
import Row from './components/Containers/Row/index.vue'
|
|
4
4
|
import Column from './components/Containers/Column/index.vue'
|
|
5
|
-
import HomepageHeader from './components/Containers/
|
|
5
|
+
import HomepageHeader from './components/Containers/HomepageHeader/index.vue'
|
|
6
6
|
import Subheader from './components/Containers/Subheader/index.vue'
|
|
7
7
|
import SectionGroup from './components/Containers/SectionGroup/index.vue'
|
|
8
8
|
import CarouselComponent from './components/Containers/Carousel/index.vue'
|
|
9
|
-
|
|
10
|
-
import AppHeader from './components/Global/
|
|
9
|
+
// Replace AppHeader with AppHeaderNew to introduce new header
|
|
10
|
+
import AppHeader from './components/Global/AppHeader/index.vue'
|
|
11
11
|
import AppFooter from './components/Global/AppFooter/index.vue'
|
|
12
12
|
import HeroHeader from './components/Global/HeroHeader/index.vue'
|
|
13
13
|
import SocialShare from './components/Global/SocialShare/index.vue'
|