@worksafevictoria/wcl7.5 1.1.0-beta.73 → 1.1.0-beta.74

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.
@@ -2,6 +2,12 @@
2
2
  import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
3
3
  import { setup } from '@storybook/vue3'
4
4
 
5
+ import { createBootstrap } from 'bootstrap-vue-next'
6
+
7
+ // Add the necessary CSS
8
+ import 'bootstrap/dist/css/bootstrap.css'
9
+ import 'bootstrap-vue-next/dist/bootstrap-vue-next.css'
10
+
5
11
  //Custom fonts
6
12
  import './../src/assets/styles/webfonts.css'
7
13
 
@@ -13,37 +19,38 @@ import './../src/assets/styles/storybook.scss'
13
19
  import 'bootstrap/dist/css/bootstrap.min.css'
14
20
  import './../src/assets/styles/stylesheet.scss'
15
21
 
16
-
17
22
  setup((app) => {
18
23
  app.component('NuxtLink', {
19
24
  props: {
20
25
  to: {
21
26
  type: String,
22
- required: true
23
- }
27
+ required: true,
28
+ },
24
29
  },
25
- template: '<a target="_blank" :href="`https://ws-ui.wsvdigital.com.au${this.to}`"><slot></slot></a>'
30
+ template:
31
+ '<a target="_blank" :href="`https://ws-ui.wsvdigital.com.au${this.to}`"><slot></slot></a>',
26
32
  })
33
+ app.use(createBootstrap())
27
34
  })
28
35
 
29
36
  const preview = {
30
37
  parameters: {
31
38
  options: {
32
39
  storySort: {
33
- method: 'alphabetical'
34
- }
40
+ method: 'alphabetical',
41
+ },
35
42
  },
36
43
  actions: { argTypesRegex: '^on[A-Z].*' },
37
44
  controls: {
38
45
  matchers: {
39
46
  color: /(background|color)$/i,
40
- date: /Date$/i
41
- }
47
+ date: /Date$/i,
48
+ },
42
49
  },
43
50
  viewport: {
44
- viewports: INITIAL_VIEWPORTS
45
- }
46
- }
51
+ viewports: INITIAL_VIEWPORTS,
52
+ },
53
+ },
47
54
  }
48
55
 
49
56
  export default preview
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worksafevictoria/wcl7.5",
3
- "version": "1.1.0-beta.73",
3
+ "version": "1.1.0-beta.74",
4
4
  "main": "src/index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  "@storybook/cli": "^7.6.20",
44
44
  "axios": "^1.6.0",
45
45
  "bootstrap": "^5.3.2",
46
- "bootstrap-vue-next": "^0.25.10",
46
+ "bootstrap-vue-next": "^0.26.18",
47
47
  "date-fns": "^2.30.0",
48
48
  "formiojs": "4.13.13",
49
49
  "storybook-addon-deep-controls": "^0.6.2",
@@ -97,5 +97,6 @@
97
97
  "vite-svg-loader": "^5.1.0",
98
98
  "vitest": "^0.34.6",
99
99
  "vue-jest": "^3.0.7"
100
- }
100
+ },
101
+ "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
101
102
  }
@@ -4,31 +4,37 @@ const defaultValue = {
4
4
  header: 'field_cookie_heading',
5
5
  content: {
6
6
  default: 'field_cookie_content',
7
- small: 'field_cookie_content_small'
7
+ small: 'field_cookie_content_small',
8
8
  },
9
9
  modal: {
10
10
  heading: 'field_modal_heading',
11
11
  functional: {
12
12
  heading: 'field_functional_heading',
13
- description: 'field_functional_description'
13
+ description: 'field_functional_description',
14
14
  },
15
15
  analytics: {
16
16
  heading: 'field_analytics_heading',
17
- description: 'field_analytics_description'
17
+ description: 'field_analytics_description',
18
18
  },
19
19
  marketing: {
20
20
  heading: 'field_marketing_heading',
21
- description: 'field_marketing_description'
22
- }
23
- }
21
+ description: 'field_marketing_description',
22
+ },
23
+ },
24
24
  }
25
25
  export default {
26
26
  title: 'Global/Cookies',
27
27
  component: Cookies,
28
28
  args: {
29
29
  cookieHeader: 'Accept and Reject Cookies',
30
- cookieContent: defaultValue
31
- }
32
- }
30
+ cookieContent: defaultValue,
31
+ },
32
+ }
33
33
 
34
- export const Default = {}
34
+ export const Default = {
35
+ loaders: [
36
+ () => {
37
+ window.localStorage.removeItem('cookieBannerDisplayed')
38
+ },
39
+ ],
40
+ }