@worksafevictoria/wcl7.5 1.1.0-beta.35 → 1.1.0-beta.36

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/jest.config.js CHANGED
@@ -15,7 +15,7 @@ module.exports = {
15
15
  },
16
16
  transform: {
17
17
  '.*\\.vue$': '@vue/vue3-jest',
18
- '^.+\\.js$': 'babel-jest',
18
+ '^.+\\.[t|j]sx?$': 'babel-jest',
19
19
  '.+\\.(svg)$': '<rootDir>/src/mock/jest.svgtransformer.js'
20
20
  },
21
21
  transformIgnorePatterns: ['!node_modules/'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.1.0-beta.35",
3
+ "version": "1.1.0-beta.36",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -58,7 +58,8 @@
58
58
  "devDependencies": {
59
59
  "@babel/core": "^7.24.6",
60
60
  "@babel/plugin-transform-private-property-in-object": "^7.24.6",
61
- "@babel/preset-env": "^7.24.6",
61
+ "@babel/preset-env": "^7.25.3",
62
+ "@babel/preset-react": "^7.24.7",
62
63
  "@rushstack/eslint-patch": "^1.3.3",
63
64
  "@storybook/addon-a11y": "^7.6.3",
64
65
  "@storybook/addon-essentials": "^7.5.1",
@@ -72,7 +73,8 @@
72
73
  "@vue/eslint-config-prettier": "^8.0.0",
73
74
  "@vue/test-utils": "^2.4.6",
74
75
  "@vue/vue3-jest": "^29.2.6",
75
- "babel-jest": "^29.2.6",
76
+ "babel-jest": "^29.7.0",
77
+ "babel-preset-vite": "^1.1.3",
76
78
  "dotenv-webpack": "^8.1.0",
77
79
  "eslint": "^8.49.0",
78
80
  "eslint-plugin-storybook": "^0.6.15",
@@ -42,7 +42,7 @@ export default {
42
42
  title: 'HeroHeader default example',
43
43
  description: '<p class="intro">The page subtitle goes in here... The page subtitle goes in here... The page subtitle goes in here...</p><p><a href="#" class="cta-button">class cta-button</a></p>',
44
44
  image: {
45
- url: 'https://content-v2.api.worksafe.vic.gov.au/sites/default/files/2020-04/Topic-Coronavirus-COVID-19.jpg',
45
+ url: process.env.CONTENT_API_URL + '/sites/default/files/2020-04/Topic-Coronavirus-COVID-19.jpg',
46
46
  alt: 'Some alt text'
47
47
  },
48
48
  cta: cta_content,
@@ -137,7 +137,8 @@ export default {
137
137
  }
138
138
  },
139
139
  mounted() {
140
- if (process.client) {
140
+ let winHref = window.location.href
141
+ if (winHref.toLowerCase().includes("worksafe")) {
141
142
  this.url = window.location.href;
142
143
  }
143
144
  },
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div ref="ffhApp" class="ffh-app">
3
- <!-- <hero-header
3
+ <hero-header
4
4
  :image="null"
5
5
  :title="heroHeader.title"
6
6
  :description="heroHeader.description"
@@ -8,7 +8,7 @@
8
8
  :show-social="false"
9
9
  class="hero-header"
10
10
  >
11
- </hero-header> -->
11
+ </hero-header>
12
12
  <container class="ffh-header">
13
13
  <row>
14
14
  <column>
@@ -54,7 +54,7 @@
54
54
  import Container from '../../Containers/Container/index.vue'
55
55
  import Column from '../../Containers/Column/index.vue'
56
56
  import Row from '../../Containers/Row/index.vue'
57
- // import HeroHeader from '../../Global/HeroHeader/index.vue'
57
+ import HeroHeader from '../../Global/HeroHeader/index.vue'
58
58
  import CardContainer from './CardContainer/index.vue'
59
59
  import ProgressBar from '../../Global/ProgressBar/index.vue'
60
60
  import RiskLevel from './RiskLevel/index.vue'
@@ -66,7 +66,7 @@ export default {
66
66
  Container,
67
67
  Column,
68
68
  Row,
69
- // HeroHeader,
69
+ HeroHeader,
70
70
  CardContainer,
71
71
  ProgressBar,
72
72
  RiskLevel,