@worksafevictoria/wcl7.5 1.0.0 → 1.1.0-beta.1
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/.env +4 -2
- package/.eslintrc.cjs +1 -1
- package/.eslintrc.js +2 -1
- package/.husky/pre-commit +4 -0
- package/.storybook/preview.js +10 -0
- package/README.md +14 -0
- package/babel.config.js +7 -6
- package/bin/deploy.sh +3 -3
- package/ci/build/build_validation.yml +10 -7
- package/ci/release/beta.yml +6 -5
- package/ci/release/master.yml +6 -5
- package/jest.config.js +3 -1
- package/package.json +14 -9
- package/public/.nojekyll +1 -0
- package/src/components/Global/Cookies/{index.storieshide.js → index.stories.js} +5 -16
- package/src/components/Global/Cookies/index.vue +122 -136
- package/src/components/Global/Cookies/styles.scss +10 -2
- package/src/components/Global/DirectoryFilters/SingleTaxonomy/index.vue +53 -47
- package/src/components/Global/GlobalNotice/index.stories.js +8 -0
- package/src/components/Global/GlobalNotice/index.vue +71 -137
- package/src/components/Global/HeroHeader/styles.scss +2 -1
- package/src/components/Paragraphs/BrowseContent/index.stories.js +39 -57
- package/src/components/SubComponents/FormInstance/stories/mocks/checkbox.json +21 -0
- package/src/components/SubComponents/VideoThumbnail/index.stories.js +9 -4
- package/src/components/SubComponents/VideoThumbnail/index.vue +93 -96
- package/vite.config.js +5 -1
|
@@ -15,45 +15,37 @@
|
|
|
15
15
|
/>
|
|
16
16
|
</div>
|
|
17
17
|
</a>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
<!-- Modal -->
|
|
19
|
+
<div v-if="showModal" :id="wcl-video-modal" class="modal" tabindex="-1" aria-modal="true" role="dialog" style="display: block;">
|
|
20
|
+
<div class="modal-dialog modal-dialog-scrollable">
|
|
21
|
+
<div class="modal-content">
|
|
22
|
+
<div class="modal-header">
|
|
23
|
+
<button type="button" class="btn-close" @click="showModal = !showModal" aria-label="close"></button>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="modal-body">
|
|
26
|
+
<div class="wcl-video-modal__video">
|
|
27
|
+
<video-media
|
|
28
|
+
:media-title="video.mediaTitle"
|
|
29
|
+
:media-description="video.mediaDescription"
|
|
30
|
+
:video-id="video.id"
|
|
31
|
+
:provider="video.provider"
|
|
32
|
+
:transcript="video.transcript"
|
|
33
|
+
:transcript-title="video.transcriptTitle"
|
|
34
|
+
:fix-width="video.fixWidth"
|
|
35
|
+
:rtl="video.rtl"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
35
39
|
</div>
|
|
36
|
-
</template>
|
|
37
|
-
<div class="wcl-video-modal__video">
|
|
38
|
-
<video-media
|
|
39
|
-
:media-title="video.mediaTitle"
|
|
40
|
-
:media-description="video.mediaDescription"
|
|
41
|
-
:video-id="video.id"
|
|
42
|
-
:provider="video.provider"
|
|
43
|
-
:transcript="video.transcript"
|
|
44
|
-
:transcript-title="video.transcriptTitle"
|
|
45
|
-
:fix-width="video.fixWidth"
|
|
46
|
-
:rtl="video.rtl"
|
|
47
|
-
/>
|
|
48
40
|
</div>
|
|
49
|
-
</
|
|
41
|
+
</div>
|
|
50
42
|
</div>
|
|
51
43
|
</template>
|
|
52
44
|
|
|
53
45
|
<script>
|
|
54
46
|
import VideoMedia from './../../Paragraphs/VideoPlayer/index.vue'
|
|
55
|
-
import VideoPlay from './../../../assets/icons/video-play.svg'
|
|
56
|
-
import IconClose from './../../../assets/icons/icon-close.svg'
|
|
47
|
+
import VideoPlay from './../../../assets/icons/video-play.svg?url'
|
|
48
|
+
import IconClose from './../../../assets/icons/icon-close.svg?url'
|
|
57
49
|
|
|
58
50
|
export default {
|
|
59
51
|
name: 'VideoThumbnail',
|
|
@@ -112,83 +104,88 @@ export default {
|
|
|
112
104
|
<style lang="scss">
|
|
113
105
|
@import '../../../includes/scss/all';
|
|
114
106
|
// The modal styling
|
|
115
|
-
|
|
116
|
-
.
|
|
117
|
-
|
|
118
|
-
@media only screen and (max-width: 1150px) {
|
|
119
|
-
margin: {
|
|
120
|
-
left: 15px;
|
|
121
|
-
right: 15px;
|
|
122
|
-
top: 15px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
107
|
+
.modal {
|
|
108
|
+
background: rgba(0,0,0,0.5)
|
|
109
|
+
}
|
|
125
110
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
111
|
+
.modal-backdrop {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
.modal-dialog {
|
|
115
|
+
max-width: 1110px;
|
|
116
|
+
@media only screen and (max-width: 1150px) {
|
|
117
|
+
margin: {
|
|
118
|
+
left: 15px;
|
|
119
|
+
right: 15px;
|
|
120
|
+
top: 15px;
|
|
129
121
|
}
|
|
122
|
+
}
|
|
130
123
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
background: $white;
|
|
136
|
-
z-index: 1;
|
|
137
|
-
width: 100%;
|
|
124
|
+
.modal-content {
|
|
125
|
+
position: relative;
|
|
126
|
+
border-radius: 8px;
|
|
127
|
+
}
|
|
138
128
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
129
|
+
.modal-header {
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 0;
|
|
132
|
+
height: 45px;
|
|
133
|
+
background: $white;
|
|
134
|
+
z-index: 1;
|
|
135
|
+
width: 100%;
|
|
136
|
+
|
|
137
|
+
&__wrap {
|
|
138
|
+
position: relative;
|
|
139
|
+
width: 100%;
|
|
140
|
+
a {
|
|
141
|
+
position: absolute;
|
|
142
|
+
right: 0;
|
|
143
|
+
z-index: 1;
|
|
144
|
+
&.rtl {
|
|
145
|
+
right: auto;
|
|
146
|
+
left: 0;
|
|
147
|
+
}
|
|
148
|
+
svg {
|
|
149
|
+
fill: $black;
|
|
153
150
|
}
|
|
154
151
|
}
|
|
155
152
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
153
|
+
}
|
|
154
|
+
.modal-body {
|
|
155
|
+
padding: 32px;
|
|
156
|
+
margin-top: 16px;
|
|
157
|
+
.video-player {
|
|
158
|
+
@include fp(min-height, 250, 588);
|
|
159
|
+
}
|
|
162
160
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
h3 {
|
|
170
|
-
margin: 0;
|
|
171
|
-
font-style: normal;
|
|
172
|
-
font-weight: bold;
|
|
173
|
-
font-size: 28px;
|
|
174
|
-
line-height: 32px;
|
|
175
|
-
margin-bottom: 16px;
|
|
176
|
-
display: inline-block;
|
|
177
|
-
width: 98%;
|
|
178
|
-
}
|
|
161
|
+
.paragraph--video-media {
|
|
162
|
+
margin: 0;
|
|
163
|
+
.container {
|
|
164
|
+
padding: 0;
|
|
165
|
+
width: 100%;
|
|
179
166
|
}
|
|
180
|
-
|
|
181
|
-
|
|
167
|
+
h3 {
|
|
168
|
+
margin: 0;
|
|
169
|
+
font-style: normal;
|
|
170
|
+
font-weight: bold;
|
|
171
|
+
font-size: 28px;
|
|
172
|
+
line-height: 32px;
|
|
173
|
+
margin-bottom: 16px;
|
|
174
|
+
display: inline-block;
|
|
175
|
+
width: 98%;
|
|
182
176
|
}
|
|
183
177
|
}
|
|
184
|
-
.
|
|
185
|
-
|
|
186
|
-
border: none;
|
|
187
|
-
}
|
|
188
|
-
.modal-footer {
|
|
189
|
-
display: none;
|
|
178
|
+
.section-group__block {
|
|
179
|
+
max-width: 100%;
|
|
190
180
|
}
|
|
191
181
|
}
|
|
182
|
+
.modal-header,
|
|
183
|
+
.modal-footer {
|
|
184
|
+
border: none;
|
|
185
|
+
}
|
|
186
|
+
.modal-footer {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
192
189
|
}
|
|
193
190
|
</style>
|
|
194
191
|
<style lang="scss" scoped>
|
package/vite.config.js
CHANGED
|
@@ -14,6 +14,10 @@ export default defineConfig({
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
define: {
|
|
17
|
-
'process.env.
|
|
17
|
+
'process.env.SHOW_COOKIE': `"${process.env.SHOW_COOKIE}"`,
|
|
18
|
+
'process.env.CONTENT_API_URL': `"${process.env.CONTENT_API_URL}"`,
|
|
19
|
+
'process.env.IS_STORYBOOK': `"${process.env.IS_STORYBOOK}"`,
|
|
20
|
+
'process.env.CARETAKER': `"${process.env.CARETAKER}"`,
|
|
21
|
+
'process.env.SHOW_GLOBAL_NOTICE': `"${process.env.SHOW_GLOBAL_NOTICE}"`
|
|
18
22
|
}
|
|
19
23
|
})
|