@worksafevictoria/wcl7.5 1.16.0-beta.1 → 1.16.0-beta.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.16.0-beta.1",
3
+ "version": "1.16.0-beta.3",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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
- value:
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
- value:
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
- value:
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.value : ''"
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.value : ''"
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,8 +124,7 @@ export default {
124
124
  return false
125
125
  },
126
126
  hasContent(item) {
127
- // Changed to processed from value for rich text field.
128
- return item?.field_rich_text?.value
127
+ return item?.field_rich_text?.processed
129
128
  },
130
129
  },
131
130
  }
package/src/index.js CHANGED
@@ -2,12 +2,12 @@
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/HomepageHeader/index.vue'
5
+ import HomepageHeader from './components/Containers/HomepageHeaderNew/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
9
  // Replace AppHeader with AppHeaderNew to introduce new header
10
- import AppHeader from './components/Global/AppHeader/index.vue'
10
+ import AppHeader from './components/Global/AppHeaderNew/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'