hr-design-system-handlebars 1.88.3 → 1.89.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/CHANGELOG.md +25 -0
- package/dist/assets/index.css +379 -274
- package/dist/assets/js/components/mediaplayer/ardPlayerLoader.subfeature.js +14 -3
- package/dist/views/components/content/copytext/components/contentbox/contentbox.hbs +3 -3
- package/dist/views/components/content/copytext/components/infobox.hbs +3 -3
- package/dist/views/components/teaser/cluster/teaser_cluster.hbs +1 -1
- package/dist/views_static/components/content/copytext/components/contentbox/contentbox.hbs +3 -3
- package/dist/views_static/components/content/copytext/components/infobox.hbs +3 -3
- package/dist/views_static/components/teaser/cluster/teaser_cluster.hbs +1 -1
- package/package.json +1 -1
- package/src/assets/fixtures/audio/audios.inc.json +6 -3
- package/src/assets/fixtures/video/videos.inc.json +6 -3
- package/src/assets/tailwind.css +445 -294
- package/src/stories/views/components/content/copytext/components/contentbox/contentbox.hbs +3 -3
- package/src/stories/views/components/content/copytext/components/infobox.hbs +3 -3
- package/src/stories/views/components/content/copytext/fixtures/copytext_audio.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_audio_livestream.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_image.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_livestream.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_media_components.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_non_media_components.json +1 -1
- package/src/stories/views/components/content/copytext/fixtures/copytext_video.json +1 -1
- package/src/stories/views/components/mediaplayer/ardPlayerLoader.subfeature.js +14 -3
- package/src/stories/views/components/mediaplayer/fixtures/mediaplayer.json +1 -1
- package/src/stories/views/components/page/fixtures/page.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_audio.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_label.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_livestream.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_square_image.json +1 -1
- package/src/stories/views/components/page/story/fixtures/story_with_video.json +1 -1
- package/src/stories/views/components/pagination/fixtures/page_pagination.json +1 -1
- package/src/stories/views/components/teaser/cluster/teaser_cluster.hbs +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight_2.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_group_related_content_100.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_index.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio_livestream.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio_livestream.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_live.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_video.json +1 -1
- package/src/stories/views/components/teaser/fixtures/teaser_tabbox.json +1 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero_audio.json +1 -1
- package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio.json +1 -1
- package/src/stories/views/components/teaser/ticker/teaser_ticker_timeline.stories.js +1 -1
- package/tailwind.config.js +2 -2
|
@@ -13,7 +13,9 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
|
|
|
13
13
|
settingsCookie = new SettingsCookie(),
|
|
14
14
|
isPlayerDebug = options.isPlayerDebug || false,
|
|
15
15
|
playerLocation = trackingData.playerLocation || "Default",
|
|
16
|
-
playerSize = trackingData.playerSize || options.teaserSize
|
|
16
|
+
playerSize = trackingData.playerSize || options.teaserSize,
|
|
17
|
+
isDarkmodeAllowed = options.isDarkmodeAllowed,
|
|
18
|
+
darkModePreference = window.matchMedia("(prefers-color-scheme: dark)");
|
|
17
19
|
let mediaCollection = options.mediaCollection,
|
|
18
20
|
playerConfig = options.playerConfig,
|
|
19
21
|
isPlayerStarted = false,
|
|
@@ -62,6 +64,9 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
|
|
|
62
64
|
}
|
|
63
65
|
whenAvailable('ardplayer', function () {
|
|
64
66
|
player = new ardplayer.Player(playerId, playerConfig, mediaCollection)
|
|
67
|
+
|
|
68
|
+
player.setLightMode(isDarkmodeAllowed ? !darkModePreference.matches : true)
|
|
69
|
+
|
|
65
70
|
if (isPlayerDebug) {
|
|
66
71
|
ardplayer.debug(true, true, true, true)
|
|
67
72
|
}
|
|
@@ -79,10 +84,12 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
|
|
|
79
84
|
}, interval)
|
|
80
85
|
}
|
|
81
86
|
|
|
87
|
+
const handleThemeSwitch = function (event) {
|
|
88
|
+
player.setLightMode(!event.matches)
|
|
89
|
+
}
|
|
90
|
+
|
|
82
91
|
const bindPlayerEvents = function () {
|
|
83
92
|
player.$.on(ardplayer.Player.EVENT_PLAY_STREAM, function (event) {
|
|
84
|
-
console.log(event.target)
|
|
85
|
-
console.debug(`options.teaserSize: ${options.teaserSize}`)
|
|
86
93
|
const geotag = hr$('.js-geotag', rootElement)[0]
|
|
87
94
|
if (!isPlayerStarted) {
|
|
88
95
|
trackPlayerStart()
|
|
@@ -114,6 +121,8 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
|
|
|
114
121
|
}
|
|
115
122
|
})
|
|
116
123
|
|
|
124
|
+
|
|
125
|
+
|
|
117
126
|
listen('player_start', function (event) {
|
|
118
127
|
if (player) {
|
|
119
128
|
let playerIdFromConfig = parseInt(playerId)
|
|
@@ -126,6 +135,8 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
|
|
|
126
135
|
}
|
|
127
136
|
}
|
|
128
137
|
})
|
|
138
|
+
|
|
139
|
+
listen("change", handleThemeSwitch, darkModePreference)
|
|
129
140
|
}
|
|
130
141
|
|
|
131
142
|
const trackPlayerStart = function () {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
{{#each this.paragraph}}
|
|
34
34
|
{{#each this.text.split}}
|
|
35
35
|
{{#if this.isText}}
|
|
36
|
-
<p class="mt-4 text-base
|
|
36
|
+
<p class="copytextParagraphDS {{#if ../../../this.title}} mt-4{{else}}{{#if ../../../this.copytextParagraph.[0].paragraphBoxItem}} mt-4{{else}}{{#if @../first}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{else}} mt-4{{/if}}{{/if}}{{/if}} text-base sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
|
|
37
37
|
{{/if}}
|
|
38
38
|
{{#if this.isUl}}
|
|
39
|
-
<ul class="
|
|
39
|
+
<ul class="copytextParagraphDS {{#if ../../../this.title}} mt-4{{else}}{{#if ../../../this.copytextParagraph.[0].paragraphBoxItem}} mt-4{{else}}{{#if @../first}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-disc sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
|
|
40
40
|
{{/if}}
|
|
41
41
|
{{#if this.isOl}}
|
|
42
|
-
<ol class="
|
|
42
|
+
<ol class="copytextParagraphDS {{#if ../../../this.title}} mt-4{{else}}{{#if ../../../this.copytextParagraph.[0].paragraphBoxItem}} mt-4{{else}}{{#if @../first}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-decimal sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
|
|
43
43
|
{{/if}}
|
|
44
44
|
{{/each}}
|
|
45
45
|
{{/each}}
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
|
|
32
32
|
{{#each this.text.split}}
|
|
33
33
|
{{#if this.isText}}
|
|
34
|
-
<p class="mt-4 text-base
|
|
34
|
+
<p class="copytextParagraphDS {{#if ../this.paragraphProperties.[0].title}} mt-4{{else}}{{#if ../this.paragraphBoxItem}} mt-4{{else}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{/if}}{{/if}} text-base sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
|
|
35
35
|
{{/if}}
|
|
36
36
|
{{#if this.isUl}}
|
|
37
|
-
<ul class="
|
|
37
|
+
<ul class="copytextParagraphDS {{#if ../this.paragraphProperties.[0].title}} mt-4{{else}}{{#if ../this.paragraphBoxItem}} mt-4{{else}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-disc sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
|
|
38
38
|
{{/if}}
|
|
39
39
|
{{#if this.isOl}}
|
|
40
|
-
<ol class="
|
|
40
|
+
<ol class="copytextParagraphDS {{#if ../this.paragraphProperties.[0].title}} mt-4{{else}}{{#if ../this.paragraphBoxItem}} mt-4{{else}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-decimal sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
|
|
41
41
|
{{/if}}
|
|
42
42
|
{{/each}}
|
|
43
43
|
{{~#block "subParagraphs"}}{{/block~}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<h2 class="flex items-center px-5 py-5 text-clusterTeaserHeadline">
|
|
5
5
|
{{#if this.teaserLogo}}
|
|
6
6
|
<span>
|
|
7
|
-
{{> components/base/image/icon _icon=this.teaserLogo _iconmap="cluster-teaser" _addClass=(inline-switch this.teaserLogo '["hessenschau_de","tagesschau_de","sportschau"]' '["fill-blue-congress w-10 md:w-12 h-10 md:h-12","fill-blue-midnight w-40 lg:w-52 h-8 md:h-12","fill-blue-deepSeaDream w-40 lg:w-52 h-8 md:h-12"]')}}
|
|
7
|
+
{{> components/base/image/icon _icon=this.teaserLogo _iconmap="cluster-teaser" _addClass=(inline-switch this.teaserLogo '["hessenschau_de","tagesschau_de","sportschau"]' '["fill-blue-congress-hex w-10 md:w-12 h-10 md:h-12","fill-blue-midnight w-40 lg:w-52 h-8 md:h-12","fill-blue-deepSeaDream w-40 lg:w-52 h-8 md:h-12"]')}}
|
|
8
8
|
</span>
|
|
9
9
|
{{/if}}
|
|
10
10
|
{{#if this.title}}
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
{{#each this.paragraph}}
|
|
34
34
|
{{#each this.text.split}}
|
|
35
35
|
{{#if this.isText}}
|
|
36
|
-
<p class="mt-4 text-base
|
|
36
|
+
<p class="copytextParagraphDS {{#if ../../../this.title}} mt-4{{else}}{{#if ../../../this.copytextParagraph.[0].paragraphBoxItem}} mt-4{{else}}{{#if @../first}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{else}} mt-4{{/if}}{{/if}}{{/if}} text-base sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
|
|
37
37
|
{{/if}}
|
|
38
38
|
{{#if this.isUl}}
|
|
39
|
-
<ul class="
|
|
39
|
+
<ul class="copytextParagraphDS {{#if ../../../this.title}} mt-4{{else}}{{#if ../../../this.copytextParagraph.[0].paragraphBoxItem}} mt-4{{else}}{{#if @../first}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-disc sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
|
|
40
40
|
{{/if}}
|
|
41
41
|
{{#if this.isOl}}
|
|
42
|
-
<ol class="
|
|
42
|
+
<ol class="copytextParagraphDS {{#if ../../../this.title}} mt-4{{else}}{{#if ../../../this.copytextParagraph.[0].paragraphBoxItem}} mt-4{{else}}{{#if @../first}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-decimal sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
|
|
43
43
|
{{/if}}
|
|
44
44
|
{{/each}}
|
|
45
45
|
{{/each}}
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
|
|
32
32
|
{{#each this.text.split}}
|
|
33
33
|
{{#if this.isText}}
|
|
34
|
-
<p class="mt-4 text-base
|
|
34
|
+
<p class="copytextParagraphDS {{#if ../this.paragraphProperties.[0].title}} mt-4{{else}}{{#if ../this.paragraphBoxItem}} mt-4{{else}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{/if}}{{/if}} text-base sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
|
|
35
35
|
{{/if}}
|
|
36
36
|
{{#if this.isUl}}
|
|
37
|
-
<ul class="
|
|
37
|
+
<ul class="copytextParagraphDS {{#if ../this.paragraphProperties.[0].title}} mt-4{{else}}{{#if ../this.paragraphBoxItem}} mt-4{{else}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-disc sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
|
|
38
38
|
{{/if}}
|
|
39
39
|
{{#if this.isOl}}
|
|
40
|
-
<ol class="
|
|
40
|
+
<ol class="copytextParagraphDS {{#if ../this.paragraphProperties.[0].title}} mt-4{{else}}{{#if ../this.paragraphBoxItem}} mt-4{{else}}{{#if @first}} -mt-0.5{{else}} mt-4{{/if}}{{/if}}{{/if}} overflow-hidden pl-5 text-base list-decimal sm480:text-lg sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
|
|
41
41
|
{{/if}}
|
|
42
42
|
{{/each}}
|
|
43
43
|
{{~#block "subParagraphs"}}{{/block~}}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<h2 class="flex items-center px-5 py-5 text-clusterTeaserHeadline">
|
|
5
5
|
{{#if this.teaserLogo}}
|
|
6
6
|
<span>
|
|
7
|
-
{{> components/base/image/icon _icon=this.teaserLogo _iconmap="cluster-teaser" _addClass=(inline-switch this.teaserLogo '["hessenschau_de","tagesschau_de","sportschau"]' '["fill-blue-congress w-10 md:w-12 h-10 md:h-12","fill-blue-midnight w-40 lg:w-52 h-8 md:h-12","fill-blue-deepSeaDream w-40 lg:w-52 h-8 md:h-12"]')}}
|
|
7
|
+
{{> components/base/image/icon _icon=this.teaserLogo _iconmap="cluster-teaser" _addClass=(inline-switch this.teaserLogo '["hessenschau_de","tagesschau_de","sportschau"]' '["fill-blue-congress-hex w-10 md:w-12 h-10 md:h-12","fill-blue-midnight w-40 lg:w-52 h-8 md:h-12","fill-blue-deepSeaDream w-40 lg:w-52 h-8 md:h-12"]')}}
|
|
8
8
|
</span>
|
|
9
9
|
{{/if}}
|
|
10
10
|
{{#if this.title}}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.89.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
"jsUrl": "./vendor/ardplayer/ardplayer-hr-6.8.3.82603554.js",
|
|
61
61
|
"isAutoplay": true,
|
|
62
62
|
"teaserSize": "100",
|
|
63
|
-
"realTeaserSize": "100"
|
|
63
|
+
"realTeaserSize": "100",
|
|
64
|
+
"isDarkmodeAllowed": true
|
|
64
65
|
},
|
|
65
66
|
"audio-2": {
|
|
66
67
|
"playerConfig": {
|
|
@@ -118,7 +119,8 @@
|
|
|
118
119
|
"jsUrl": "./vendor/ardplayer/ardplayer-hr-6.8.3.82603554.js",
|
|
119
120
|
"isAutoplay": true,
|
|
120
121
|
"teaserSize": "100",
|
|
121
|
-
"realTeaserSize": "100"
|
|
122
|
+
"realTeaserSize": "100",
|
|
123
|
+
"isDarkmodeAllowed": true
|
|
122
124
|
},
|
|
123
125
|
"audio-podcast": {
|
|
124
126
|
"playerConfig": {
|
|
@@ -265,6 +267,7 @@
|
|
|
265
267
|
"jsUrl": "./vendor/ardplayer/ardplayer-hr-6.8.3.82603554.js",
|
|
266
268
|
"isAutoplay": true,
|
|
267
269
|
"teaserSize": "50",
|
|
268
|
-
"realTeaserSize": "50"
|
|
270
|
+
"realTeaserSize": "50",
|
|
271
|
+
"isDarkmodeAllowed": true
|
|
269
272
|
}
|
|
270
273
|
}
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
"isAutoplay": true,
|
|
75
75
|
"isPlayerDebug": false,
|
|
76
76
|
"teaserSize": "100",
|
|
77
|
-
"realTeaserSize": "100"
|
|
77
|
+
"realTeaserSize": "100",
|
|
78
|
+
"isDarkmodeAllowed": true
|
|
78
79
|
},
|
|
79
80
|
"video-2": {
|
|
80
81
|
"playerConfig": {
|
|
@@ -151,7 +152,8 @@
|
|
|
151
152
|
"isAutoplay": true,
|
|
152
153
|
"isPlayerDebug": true,
|
|
153
154
|
"teaserSize": "100",
|
|
154
|
-
"realTeaserSize": "100"
|
|
155
|
+
"realTeaserSize": "100",
|
|
156
|
+
"isDarkmodeAllowed": true
|
|
155
157
|
},
|
|
156
158
|
"video-livestream-hr-fernsehen": {
|
|
157
159
|
"playerConfig": {
|
|
@@ -218,6 +220,7 @@
|
|
|
218
220
|
"jsUrl": "./vendor/ardplayer/ardplayer-hr-6.8.3.82603554.js",
|
|
219
221
|
"teaserSize": "100",
|
|
220
222
|
"realTeaserSize": "100",
|
|
221
|
-
"isAutoplay": true
|
|
223
|
+
"isAutoplay": true,
|
|
224
|
+
"isDarkmodeAllowed": true
|
|
222
225
|
}
|
|
223
226
|
}
|