hr-design-system-handlebars 1.74.6 → 1.74.7

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.
Files changed (152) hide show
  1. package/.storybook/preview-head.html +35 -3
  2. package/.storybook/preview.js +5 -9
  3. package/CHANGELOG.md +12 -0
  4. package/dist/assets/index.css +3 -3
  5. package/dist/views/components/base/image/responsive_image.hbs +9 -4
  6. package/dist/views/components/content/copytext/components/image/image.hbs +4 -4
  7. package/dist/views/components/content/copytext/copytext.hbs +1 -1
  8. package/dist/views/components/page/base/page_header.hbs +2 -2
  9. package/dist/views/components/page/base/page_wrapper.hbs +1 -1
  10. package/dist/views/components/page/story/story_article.hbs +1 -1
  11. package/dist/views_static/components/base/image/responsive_image.hbs +9 -4
  12. package/dist/views_static/components/content/copytext/components/image/image.hbs +4 -4
  13. package/dist/views_static/components/content/copytext/copytext.hbs +1 -1
  14. package/dist/views_static/components/page/base/page_header.hbs +2 -2
  15. package/dist/views_static/components/page/base/page_wrapper.hbs +1 -1
  16. package/dist/views_static/components/page/story/story_article.hbs +1 -1
  17. package/package.json +1 -1
  18. package/src/assets/fixtures/teaser/teaser_images.inc.json +24 -0
  19. package/src/stories/views/components/base/image/responsive_image.hbs +9 -4
  20. package/src/stories/views/components/content/copytext/components/accordion/fixtures/accordion.json +1 -1
  21. package/src/stories/views/components/content/copytext/components/contentbox/fixtures/contentbox.json +1 -1
  22. package/src/stories/views/components/content/copytext/components/image/image.hbs +4 -4
  23. package/src/stories/views/components/content/copytext/copytext.hbs +1 -1
  24. package/src/stories/views/components/content/copytext/copytext.stories.js +9 -1
  25. package/src/stories/views/components/content/copytext/fixtures/copytext_filedownload.json +1 -1
  26. package/src/stories/views/components/content/copytext/fixtures/copytext_image.json +1 -1
  27. package/src/stories/views/components/content/copytext/fixtures/copytext_infobox.json +1 -1
  28. package/src/stories/views/components/content/copytext/fixtures/copytext_podcastepisode.json +1 -1
  29. package/src/stories/views/components/content/copytext/fixtures/copytext_posterteaser.json +1 -1
  30. package/src/stories/views/components/content/copytext/fixtures/copytext_video.json +1 -1
  31. package/src/stories/views/components/event/calendar/fixtures/event_calendar_event_teaser.json +1 -1
  32. package/src/stories/views/components/page/base/page_header.hbs +2 -2
  33. package/src/stories/views/components/page/base/page_wrapper.hbs +1 -1
  34. package/src/stories/views/components/page/fixtures/page.json +1 -1
  35. package/src/stories/views/components/page/podcast/fixtures/podcast_player_playlist.json +1 -1
  36. package/src/stories/views/components/page/story/fixtures/story.json +1 -1
  37. package/src/stories/views/components/page/story/fixtures/story_with_label.json +1 -1
  38. package/src/stories/views/components/page/story/fixtures/story_with_square_image.json +1 -1
  39. package/src/stories/views/components/page/story/story_article.hbs +1 -1
  40. package/src/stories/views/components/pagination/fixtures/page_pagination.json +1 -1
  41. package/src/stories/views/components/teaser/fixtures/cluster_teaser_100.json +1 -1
  42. package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_genre.json +1 -1
  43. package/src/stories/views/components/teaser/fixtures/cluster_teaser_100_image.json +1 -1
  44. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33.json +1 -1
  45. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_genre.json +1 -1
  46. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_image.json +1 -1
  47. package/src/stories/views/components/teaser/fixtures/cluster_teaser_33_long_title.json +1 -1
  48. package/src/stories/views/components/teaser/fixtures/cluster_teaser_50.json +1 -1
  49. package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_genre.json +1 -1
  50. package/src/stories/views/components/teaser/fixtures/cluster_teaser_50_image.json +1 -1
  51. package/src/stories/views/components/teaser/fixtures/cluster_teaser_Podcast_Channel.json +1 -1
  52. package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_100.json +1 -1
  53. package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_33.json +1 -1
  54. package/src/stories/views/components/teaser/fixtures/cluster_teaser_extern_50.json +1 -1
  55. package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_100.json +1 -1
  56. package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_33.json +1 -1
  57. package/src/stories/views/components/teaser/fixtures/cluster_teaser_ordered_50.json +1 -1
  58. package/src/stories/views/components/teaser/fixtures/stage_teaser.json +1 -1
  59. package/src/stories/views/components/teaser/fixtures/stage_teaser_eventtag.json +1 -1
  60. package/src/stories/views/components/teaser/fixtures/stage_teaser_program.json +1 -1
  61. package/src/stories/views/components/teaser/fixtures/stage_teaser_wide.json +1 -1
  62. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif.json +1 -1
  63. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_audio.json +1 -1
  64. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_download.json +1 -1
  65. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_featured_content.json +1 -1
  66. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_link.json +1 -1
  67. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_live.json +1 -1
  68. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_single_event.json +1 -1
  69. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_two_events.json +1 -1
  70. package/src/stories/views/components/teaser/fixtures/teaser_alternative_100_serif_video.json +1 -1
  71. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif.json +1 -1
  72. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_audio.json +1 -1
  73. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_download.json +1 -1
  74. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_link.json +1 -1
  75. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_live.json +1 -1
  76. package/src/stories/views/components/teaser/fixtures/teaser_alternative_50_serif_video.json +1 -1
  77. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif.json +1 -1
  78. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_audio.json +1 -1
  79. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_comments.json +1 -1
  80. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_label.json +1 -1
  81. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_link.json +1 -1
  82. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_live.json +1 -1
  83. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_program.json +1 -1
  84. package/src/stories/views/components/teaser/fixtures/teaser_alternative_hero_serif_video.json +1 -1
  85. package/src/stories/views/components/teaser/fixtures/teaser_comments_without_teaserinfo.json +1 -1
  86. package/src/stories/views/components/teaser/fixtures/teaser_event_calendar_100_serif.json +1 -1
  87. package/src/stories/views/components/teaser/fixtures/teaser_group_100.json +1 -1
  88. package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight.json +1 -1
  89. package/src/stories/views/components/teaser/fixtures/teaser_group_100_highlight_2.json +1 -1
  90. package/src/stories/views/components/teaser/fixtures/teaser_group_25.json +1 -1
  91. package/src/stories/views/components/teaser/fixtures/teaser_group_related_content_100.json +1 -1
  92. package/src/stories/views/components/teaser/fixtures/teaser_index.json +1 -1
  93. package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_accented.json +1 -1
  94. package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_boxed.json +1 -1
  95. package/src/stories/views/components/teaser/fixtures/teaser_indextext_100_highlighted.json +1 -1
  96. package/src/stories/views/components/teaser/fixtures/teaser_indextext_50_accented.json +1 -1
  97. package/src/stories/views/components/teaser/fixtures/teaser_podcast.json +1 -1
  98. package/src/stories/views/components/teaser/fixtures/teaser_podcast_50.json +1 -1
  99. package/src/stories/views/components/teaser/fixtures/teaser_podcast_playlist.json +1 -1
  100. package/src/stories/views/components/teaser/fixtures/teaser_podcast_playlist_50.json +1 -1
  101. package/src/stories/views/components/teaser/fixtures/teaser_podcast_playlist_filter.json +1 -1
  102. package/src/stories/views/components/teaser/fixtures/teaser_poster_lg.json +1 -1
  103. package/src/stories/views/components/teaser/fixtures/teaser_poster_md.json +1 -1
  104. package/src/stories/views/components/teaser/fixtures/teaser_poster_md_label.json +1 -1
  105. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif.json +1 -1
  106. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_download.json +1 -1
  107. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_link.json +1 -1
  108. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_program.json +1 -1
  109. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_single_event.json +1 -1
  110. package/src/stories/views/components/teaser/fixtures/teaser_standard_100_serif_two_events.json +1 -1
  111. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif.json +1 -1
  112. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio.json +1 -1
  113. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_audio_livestream.json +1 -1
  114. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_link.json +1 -1
  115. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_live.json +1 -1
  116. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_podcast.json +1 -1
  117. package/src/stories/views/components/teaser/fixtures/teaser_standard_25_serif_video.json +1 -1
  118. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_long_geotag.json +1 -1
  119. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif.json +1 -1
  120. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_link.json +1 -1
  121. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_multiple_events.json +1 -1
  122. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event.json +1 -1
  123. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_single_event_status.json +1 -1
  124. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_tabbox.json +1 -1
  125. package/src/stories/views/components/teaser/fixtures/teaser_standard_33_serif_two_events.json +1 -1
  126. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif.json +1 -1
  127. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio.json +1 -1
  128. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_audio_livestream.json +1 -1
  129. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_download.json +1 -1
  130. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_featured_content.json +1 -1
  131. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_link.json +1 -1
  132. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_link_two_click.json +1 -1
  133. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_live.json +1 -1
  134. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_podcast.json +1 -1
  135. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_single_event.json +1 -1
  136. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_tabbox.json +1 -1
  137. package/src/stories/views/components/teaser/fixtures/teaser_standard_50_serif_video.json +1 -1
  138. package/src/stories/views/components/teaser/fixtures/teaser_standard_66_serif_single_event.json +1 -1
  139. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif.json +1 -1
  140. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_comments.json +1 -1
  141. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_label.json +1 -1
  142. package/src/stories/views/components/teaser/fixtures/teaser_standard_hero_serif_link.json +1 -1
  143. package/src/stories/views/components/teaser/fixtures/teaser_tabbox.json +1 -1
  144. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_100.json +1 -1
  145. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero.json +1 -1
  146. package/src/stories/views/components/teaser/fixtures/ticker_teaser_alternativ_hero_audio.json +1 -1
  147. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_100.json +1 -1
  148. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_25.json +1 -1
  149. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_33.json +1 -1
  150. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_50.json +1 -1
  151. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero.json +1 -1
  152. package/src/stories/views/components/teaser/fixtures/ticker_teaser_standard_hero_audio.json +1 -1
@@ -1,7 +1,8 @@
1
1
  <script src="vendor/modernizr/modernizr.cust.js"></script>
2
- <!--to be sure hyphems work correctly lang Attribute needs to be "de"
3
- see: https://github.com/storybookjs/storybook/issues/11706 -->
2
+
4
3
  <script>
4
+ // to be sure hyphems work correctly lang Attribute needs to be "de"
5
+ // see: https://github.com/storybookjs/storybook/issues/11706
5
6
  document.documentElement.setAttribute('lang', 'de')
6
7
 
7
8
  // Javascript workaround damit darkmode nur in der Webview in Delivery funktioniert
@@ -13,4 +14,35 @@ see: https://github.com/storybookjs/storybook/issues/11706 -->
13
14
  darkModePreference.addEventListener("change", setColorScheme);
14
15
  setColorScheme(darkModePreference);
15
16
 
16
- </script>
17
+ // https://github.com/storybookjs/storybook/issues/6113#issuecomment-1183339597
18
+ // On page change, fire DOMContentLoaded event
19
+ function pageChange() {
20
+ console.log("pageChange")
21
+ window.document.dispatchEvent(new Event('storyWasSwitchedAndIsLoaded', {
22
+ bubbles: true,
23
+ cancelable: true
24
+ }));
25
+ }
26
+
27
+ function watchForChanges() {
28
+ const mutationObserver = function(mutationsList) {
29
+ for (let i = 0, len = mutationsList.length; i < len; i++) {
30
+ if (mutationsList[i].type == 'childList') {
31
+ pageChange();
32
+ break;
33
+ }
34
+ }
35
+ };
36
+
37
+ const observer = new MutationObserver(mutationObserver);
38
+ const config = { childList: true, subtree: false };
39
+ observer.observe(document.getElementById('storybook-root'), config);
40
+
41
+ // Remove event listener, otherwise we will re-run this function when we fire our manual event
42
+ document.removeEventListener('DOMContentLoaded', watchForChanges);
43
+ }
44
+
45
+ // Initially create mutation observer
46
+ document.addEventListener('DOMContentLoaded', watchForChanges);
47
+
48
+ </script>
@@ -45,7 +45,6 @@ setConsoleOptions({
45
45
  panelInclude: [...panelInclude, /checkcss/],
46
46
  });
47
47
 
48
-
49
48
  function loadDelayedImages() {
50
49
  setTimeout(function () {
51
50
  var t,
@@ -70,15 +69,12 @@ function loadDelayedImages() {
70
69
  }, 0)
71
70
  }
72
71
 
73
- let eventSrcUrl = null
74
-
75
- document.addEventListener('DOMContentLoaded', function (event) {
76
- console.log('DOM fully loaded and parsed')
77
- console.log('Start feature initialization')
78
-
79
- Initializer.run(document, loadFeature)
80
- setTimeout(loadDelayedImages, 200)
72
+ document.addEventListener('storyWasSwitchedAndIsLoaded', function (event) {
73
+ console.log('storyWasSwitchedAndIsLoaded')
74
+ Initializer.run(document, loadFeature)
75
+ setTimeout(loadDelayedImages, 500)
81
76
  })
77
+ console.log('preview.js is loaded')
82
78
 
83
79
  /*if (process.env.NODE_ENV !== 'production') {
84
80
  console.log(Initializer)
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.74.7 (Fri Jun 21 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - DPE-2945 V2 [#961](https://github.com/mumprod/hr-design-system-handlebars/pull/961) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
1
13
  # v1.74.6 (Fri Jun 21 2024)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -3368,7 +3368,7 @@ article.indexTextDS .indexTextHighlighted .link {
3368
3368
  border-bottom-color: var(--color-secondary-ds);
3369
3369
  }
3370
3370
  .counter-reset {
3371
- counter-reset: cnt1718968237262;
3371
+ counter-reset: cnt1718973784359;
3372
3372
  }
3373
3373
  .hyphens-auto {
3374
3374
  -webkit-hyphens: auto;
@@ -3747,7 +3747,7 @@ article.indexTextDS .indexTextHighlighted .link {
3747
3747
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3748
3748
  }
3749
3749
  .-ordered {
3750
- counter-increment: cnt1718968237262 1;
3750
+ counter-increment: cnt1718973784359 1;
3751
3751
  }
3752
3752
  .-ordered::before {
3753
3753
  position: absolute;
@@ -3763,7 +3763,7 @@ article.indexTextDS .indexTextHighlighted .link {
3763
3763
  letter-spacing: .0125em;
3764
3764
  --tw-text-opacity: 1;
3765
3765
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3766
- content: counter(cnt1718968237262);
3766
+ content: counter(cnt1718973784359);
3767
3767
  }
3768
3768
  /*! ****************************/
3769
3769
  /*! DataPolicy stuff */
@@ -37,11 +37,13 @@
37
37
  <img class="w-full{{~#if ../../_addClassImg}} {{../../_addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}">
38
38
  </noscript>
39
39
  {{/unless}}
40
- <img {{#with this.sizes}}sizes="{{this}}" {{/with~}}
41
- loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
42
- {{#if ../../_noDelay}}
40
+ <img{{#if ../../_isWebview}} data-primary-type="hr-nt:image"
41
+ data-image-id="{{nextRandom}}"{{/if}}
42
+ {{#with this.sizes}} sizes="{{this}}" {{/with~}}
43
+ loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
44
+ {{#if ../../_noDelay}}
43
45
  fetchpriority="high"
44
- {{/if}}
46
+ {{/if}}
45
47
  {{#with this.srcset}} {{#if ../../../_noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
46
48
  src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
47
49
  alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}"
@@ -51,4 +53,7 @@
51
53
  {{~#with ../../_addClass }}</div>{{/with}}
52
54
  {{/with}}
53
55
  {{/if}}
56
+ {{#if ../_isWebview}}
57
+ <script type="application/json" id="{{getRandom}}">{{{../this.imageJson}}}</script>
58
+ {{/if}}
54
59
  {{/withParam}}
@@ -6,7 +6,7 @@
6
6
  _type="story"
7
7
  _variant="100-copytext-portrait"
8
8
  _noAr="true"
9
- _isWebview=../../_isWebview}}
9
+ _isWebview=_isWebview}}
10
10
  {{else}}
11
11
  {{> components/content/copytext/components/image/figure
12
12
  _cssClass="my-6 sm480:my-7 sm480:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid"
@@ -14,7 +14,7 @@
14
14
  _type="story"
15
15
  _variant="copytext-portrait"
16
16
  _noAr="true"
17
- _isWebview=../../_isWebview}}
17
+ _isWebview=_isWebview}}
18
18
  {{/if}}
19
19
  {{else}}
20
20
  {{#if this.showFullSize.isTrue}}
@@ -24,7 +24,7 @@
24
24
  _type="story"
25
25
  _variant="100-copytext"
26
26
  _pictureAddClass="ar-16-9"
27
- _isWebview=../../_isWebview}}
27
+ _isWebview=_isWebview}}
28
28
  {{else}}
29
29
  {{> components/content/copytext/components/image/figure
30
30
  _cssClass="my-6 sm480:my-7 article-full-width sm:article-narrow sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid"
@@ -32,7 +32,7 @@
32
32
  _type="story"
33
33
  _variant="copytext"
34
34
  _pictureAddClass="ar-16-9"
35
- _isWebview=../../_isWebview}}
35
+ _isWebview=_isWebview}}
36
36
  {{/if}}
37
37
  {{/if}}
38
38
 
@@ -10,7 +10,7 @@
10
10
  {{#unless this.isInfoBox}}
11
11
  {{~#with this.paragraphBoxItem }}
12
12
  {{~#if this.isImage}}
13
- {{~> components/content/copytext/components/image/image}}
13
+ {{~> components/content/copytext/components/image/image _isWebview=../../_isWebview}}
14
14
  {{/if~}}
15
15
  {{~#if this.isContentBox}}
16
16
  {{~> components/content/copytext/components/contentbox/contentbox ~}}
@@ -7,9 +7,9 @@
7
7
  <h2>
8
8
  {{#unless this.label }}
9
9
  {{~#if topline}}
10
- <span class="block mb-2 text-base sm480:text-xl font-heading">{{this.topline}}</span>
10
+ <span class="block mb-2 text-base sm480:text-xl font-heading dark:text-text-dark">{{this.topline}}</span>
11
11
  {{/if~}}
12
12
  {{/unless~}}
13
- <span class="text-3xl font-headingSerif sm480:text-4xl">{{this.title}}</span>
13
+ <span class="text-3xl font-headingSerif sm480:text-4xl dark:text-text-dark">{{this.title}}</span>
14
14
  </h2>
15
15
  </header>
@@ -1,5 +1,5 @@
1
1
  <div class="grid grid-page">
2
- <div class="grid bg-white grid-article">
2
+ <div class="grid bg-white dark:bg-black grid-article">
3
3
  {{> @partial-block }}
4
4
  </div>
5
5
  </div>
@@ -15,7 +15,7 @@
15
15
  _type="story"
16
16
  _variant=(if this.showSquareImage.isTrue "100-top-sb-1x1" "100-top-sb")
17
17
  _pictureAddClass=(if this.showSquareImage.isTrue "grid ar-1-1 md:ar-16-9" "ar-16-9")
18
- _isWebview=../../_isWebview
18
+ _isWebview=../../../_webview-adjust_context
19
19
  _noDelay=true}}
20
20
  {{/if}}
21
21
  {{#if this.isVideo}}
@@ -37,11 +37,13 @@
37
37
  <img class="w-full{{~#if ../../_addClassImg}} {{../../_addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}">
38
38
  </noscript>
39
39
  {{/unless}}
40
- <img {{#with this.sizes}}sizes="{{this}}" {{/with~}}
41
- loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
42
- {{#if ../../_noDelay}}
40
+ <img{{#if ../../_isWebview}} data-primary-type="hr-nt:image"
41
+ data-image-id="{{nextRandom}}"{{/if}}
42
+ {{#with this.sizes}} sizes="{{this}}" {{/with~}}
43
+ loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
44
+ {{#if ../../_noDelay}}
43
45
  fetchpriority="high"
44
- {{/if}}
46
+ {{/if}}
45
47
  {{#with this.srcset}} {{#if ../../../_noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
46
48
  src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
47
49
  alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}"
@@ -51,4 +53,7 @@
51
53
  {{~#with ../../_addClass }}</div>{{/with}}
52
54
  {{/with}}
53
55
  {{/if}}
56
+ {{#if ../_isWebview}}
57
+ <script type="application/json" id="{{getRandom}}">{{{../this.imageJson}}}</script>
58
+ {{/if}}
54
59
  {{/withParam}}
@@ -6,7 +6,7 @@
6
6
  _type="story"
7
7
  _variant="100-copytext-portrait"
8
8
  _noAr="true"
9
- _isWebview=../../_isWebview}}
9
+ _isWebview=_isWebview}}
10
10
  {{else}}
11
11
  {{> components/content/copytext/components/image/figure
12
12
  _cssClass="my-6 sm480:my-7 sm480:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid"
@@ -14,7 +14,7 @@
14
14
  _type="story"
15
15
  _variant="copytext-portrait"
16
16
  _noAr="true"
17
- _isWebview=../../_isWebview}}
17
+ _isWebview=_isWebview}}
18
18
  {{/if}}
19
19
  {{else}}
20
20
  {{#if this.showFullSize.isTrue}}
@@ -24,7 +24,7 @@
24
24
  _type="story"
25
25
  _variant="100-copytext"
26
26
  _pictureAddClass="ar-16-9"
27
- _isWebview=../../_isWebview}}
27
+ _isWebview=_isWebview}}
28
28
  {{else}}
29
29
  {{> components/content/copytext/components/image/figure
30
30
  _cssClass="my-6 sm480:my-7 article-full-width sm:article-narrow sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid"
@@ -32,7 +32,7 @@
32
32
  _type="story"
33
33
  _variant="copytext"
34
34
  _pictureAddClass="ar-16-9"
35
- _isWebview=../../_isWebview}}
35
+ _isWebview=_isWebview}}
36
36
  {{/if}}
37
37
  {{/if}}
38
38
 
@@ -10,7 +10,7 @@
10
10
  {{#unless this.isInfoBox}}
11
11
  {{~#with this.paragraphBoxItem }}
12
12
  {{~#if this.isImage}}
13
- {{~> components/content/copytext/components/image/image}}
13
+ {{~> components/content/copytext/components/image/image _isWebview=../../_isWebview}}
14
14
  {{/if~}}
15
15
  {{~#if this.isContentBox}}
16
16
  {{~> components/content/copytext/components/contentbox/contentbox ~}}
@@ -7,9 +7,9 @@
7
7
  <h2>
8
8
  {{#unless this.label }}
9
9
  {{~#if topline}}
10
- <span class="block mb-2 text-base sm480:text-xl font-heading">{{this.topline}}</span>
10
+ <span class="block mb-2 text-base sm480:text-xl font-heading dark:text-text-dark">{{this.topline}}</span>
11
11
  {{/if~}}
12
12
  {{/unless~}}
13
- <span class="text-3xl font-headingSerif sm480:text-4xl">{{this.title}}</span>
13
+ <span class="text-3xl font-headingSerif sm480:text-4xl dark:text-text-dark">{{this.title}}</span>
14
14
  </h2>
15
15
  </header>
@@ -1,5 +1,5 @@
1
1
  <div class="grid grid-page">
2
- <div class="grid bg-white grid-article">
2
+ <div class="grid bg-white dark:bg-black grid-article">
3
3
  {{> @partial-block }}
4
4
  </div>
5
5
  </div>
@@ -15,7 +15,7 @@
15
15
  _type="story"
16
16
  _variant=(if this.showSquareImage.isTrue "100-top-sb-1x1" "100-top-sb")
17
17
  _pictureAddClass=(if this.showSquareImage.isTrue "grid ar-1-1 md:ar-16-9" "ar-16-9")
18
- _isWebview=../../_isWebview
18
+ _isWebview=../_webview
19
19
  _noDelay=true}}
20
20
  {{/if}}
21
21
  {{#if this.isVideo}}
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.74.6",
9
+ "version": "1.74.7",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -2,6 +2,7 @@
2
2
  "teaser_standard": {
3
3
  "alttext": "Lorem ipsum",
4
4
  "copyrightWithLinks": "Vorname Nachname",
5
+ "imageJson": "Beispiel JSON",
5
6
  "responsiveImage": {
6
7
  "asPicture": false,
7
8
  "asImage": true,
@@ -17,6 +18,7 @@
17
18
  "teaser_alternative_hero": {
18
19
  "alttext": "Lorem ipsum",
19
20
  "copyrightWithLinks": "",
21
+ "imageJson": "Beispiel JSON",
20
22
  "responsiveImage": {
21
23
  "asPicture": false,
22
24
  "asImage": true,
@@ -32,6 +34,7 @@
32
34
  "teaser_alternative_100": {
33
35
  "alttext": "Lorem ipsum",
34
36
  "copyrightWithLinks": "",
37
+ "imageJson": "Beispiel JSON",
35
38
  "responsiveImage": {
36
39
  "asPicture": true,
37
40
  "asImage": false,
@@ -53,6 +56,7 @@
53
56
  "teaser_alternative_50": {
54
57
  "alttext": "Lorem ipsum",
55
58
  "copyrightWithLinks": "",
59
+ "imageJson": "Beispiel JSON",
56
60
  "responsiveImage": {
57
61
  "asPicture": true,
58
62
  "asImage": false,
@@ -74,6 +78,7 @@
74
78
  "teaser_tabbox_standard_50": {
75
79
  "alttext": "Lorem ipsum",
76
80
  "copyrightWithLinks": "",
81
+ "imageJson": "Beispiel JSON",
77
82
  "responsiveImage": {
78
83
  "asPicture": true,
79
84
  "asImage": false,
@@ -95,6 +100,7 @@
95
100
  "teaser_tabbox_standard_33": {
96
101
  "alttext": "Lorem ipsum",
97
102
  "copyrightWithLinks": "",
103
+ "imageJson": "Beispiel JSON",
98
104
  "responsiveImage": {
99
105
  "asPicture": true,
100
106
  "asImage": false,
@@ -116,6 +122,7 @@
116
122
  "teaser_tabbox_standard_25": {
117
123
  "alttext": "Lorem ipsum",
118
124
  "copyrightWithLinks": "",
125
+ "imageJson": "Beispiel JSON",
119
126
  "responsiveImage": {
120
127
  "asPicture": true,
121
128
  "asImage": false,
@@ -137,6 +144,7 @@
137
144
  "teaser_tabbox_alternative_50": {
138
145
  "alttext": "Lorem ipsum",
139
146
  "copyrightWithLinks": "",
147
+ "imageJson": "Beispiel JSON",
140
148
  "responsiveImage": {
141
149
  "asPicture": true,
142
150
  "asImage": false,
@@ -158,6 +166,7 @@
158
166
  "teaser_cluster_genre_100": {
159
167
  "alttext": "Lorem ipsum",
160
168
  "copyrightWithLinks": "",
169
+ "imageJson": "Beispiel JSON",
161
170
  "responsiveImage": {
162
171
  "asPicture": true,
163
172
  "asImage": false,
@@ -177,6 +186,7 @@
177
186
  "teaser_cluster_100": {
178
187
  "alttext": "Lorem ipsum",
179
188
  "copyrightWithLinks": "",
189
+ "imageJson": "Beispiel JSON",
180
190
  "responsiveImage": {
181
191
  "asPicture": false,
182
192
  "asImage": true,
@@ -192,6 +202,7 @@
192
202
  "teaser_cluster_50": {
193
203
  "alttext": "Lorem ipsum",
194
204
  "copyrightWithLinks": "",
205
+ "imageJson": "Beispiel JSON",
195
206
  "responsiveImage": {
196
207
  "asPicture": false,
197
208
  "asImage": true,
@@ -207,6 +218,7 @@
207
218
  "teaser_cluster_33": {
208
219
  "alttext": "Lorem ipsum",
209
220
  "copyrightWithLinks": "",
221
+ "imageJson": "Beispiel JSON",
210
222
  "responsiveImage": {
211
223
  "asPicture": false,
212
224
  "asImage": true,
@@ -221,6 +233,7 @@
221
233
  },
222
234
  "teaser_poster_50": {
223
235
  "copyrightWithLinks": "",
236
+ "imageJson": "Beispiel JSON",
224
237
  "responsiveImage": {
225
238
  "asPicture": false,
226
239
  "asImage": true,
@@ -235,6 +248,7 @@
235
248
  },
236
249
  "teaser_poster_16_to_9": {
237
250
  "copyrightWithLinks": "",
251
+ "imageJson": "Beispiel JSON",
238
252
  "responsiveImage": {
239
253
  "asPicture": true,
240
254
  "asImage": false,
@@ -255,6 +269,7 @@
255
269
  },
256
270
  "teaser_poster_wide": {
257
271
  "copyrightWithLinks": "",
272
+ "imageJson": "Beispiel JSON",
258
273
  "responsiveImage": {
259
274
  "asPicture": true,
260
275
  "asImage": false,
@@ -275,6 +290,7 @@
275
290
  },
276
291
  "teaser_poster_33": {
277
292
  "copyrightWithLinks": "",
293
+ "imageJson": "Beispiel JSON",
278
294
  "responsiveImage": {
279
295
  "asPicture": false,
280
296
  "asImage": true,
@@ -289,6 +305,7 @@
289
305
  },
290
306
  "teaser_podcast": {
291
307
  "copyrightWithLinks": "",
308
+ "imageJson": "Beispiel JSON",
292
309
  "responsiveImage": {
293
310
  "asPicture": false,
294
311
  "asImage": true,
@@ -304,6 +321,7 @@
304
321
  "stage_default": {
305
322
  "alttext": "Lorem ipsum",
306
323
  "copyrightWithLinks": "",
324
+ "imageJson": "Beispiel JSON",
307
325
  "responsiveImage": {
308
326
  "asPicture": true,
309
327
  "asImage": false,
@@ -325,6 +343,7 @@
325
343
  "stage_wide": {
326
344
  "alttext": "Lorem ipsum",
327
345
  "copyrightWithLinks": "",
346
+ "imageJson": "Beispiel JSON",
328
347
  "responsiveImage": {
329
348
  "asPicture": true,
330
349
  "asImage": false,
@@ -351,6 +370,7 @@
351
370
  "event-teaser_100": {
352
371
  "alttext": "Lorem ipsum",
353
372
  "copyrightWithLinks": "",
373
+ "imageJson": "Beispiel JSON",
354
374
  "responsiveImage": {
355
375
  "asPicture": true,
356
376
  "asImage": false,
@@ -372,6 +392,7 @@
372
392
  "teaser_25": {
373
393
  "alttext": "Lorem ipsum",
374
394
  "copyrightWithLinks": "",
395
+ "imageJson": "Beispiel JSON",
375
396
  "responsiveImage": {
376
397
  "asPicture": true,
377
398
  "asImage": false,
@@ -393,6 +414,7 @@
393
414
  "teaser_ticker_hero": {
394
415
  "alttext": "Lorem ipsum",
395
416
  "copyrightWithLinks": "",
417
+ "imageJson": "Beispiel JSON",
396
418
  "responsiveImage": {
397
419
  "asPicture": true,
398
420
  "asImage": false,
@@ -419,6 +441,7 @@
419
441
  },
420
442
  "caption": "Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen",
421
443
  "copyrightWithLinks": "Karsten Hufer",
444
+ "imageJson": "Beispiel JSON",
422
445
  "responsiveImage": {
423
446
  "asPicture": false,
424
447
  "asImage": true,
@@ -441,6 +464,7 @@
441
464
  },
442
465
  "caption": "Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen",
443
466
  "copyrightWithLinks": "Karsten Hufer",
467
+ "imageJson": "Beispiel JSON",
444
468
  "responsiveImage": {
445
469
  "asPicture": false,
446
470
  "asImage": true,
@@ -37,11 +37,13 @@
37
37
  <img class="w-full{{~#if ../../_addClassImg}} {{../../_addClassImg}}{{/if}}" src="{{../this.fallback}}" alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}">
38
38
  </noscript>
39
39
  {{/unless}}
40
- <img {{#with this.sizes}}sizes="{{this}}" {{/with~}}
41
- loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
42
- {{#if ../../_noDelay}}
40
+ <img{{#if ../../_isWebview}} data-primary-type="hr-nt:image"
41
+ data-image-id="{{nextRandom}}"{{/if}}
42
+ {{#with this.sizes}} sizes="{{this}}" {{/with~}}
43
+ loading="{{#if ../../_noDelay}}auto{{else}}lazy{{/if}}"
44
+ {{#if ../../_noDelay}}
43
45
  fetchpriority="high"
44
- {{/if}}
46
+ {{/if}}
45
47
  {{#with this.srcset}} {{#if ../../../_noDelay}}srcset{{else}}data-srcset{{/if}}="{{this}}"{{/with}}
46
48
  src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
47
49
  alt="{{#if ../../_alttext}}{{../../_alttext}}{{else}}{{../../this.alttext}}{{/if}}"
@@ -51,4 +53,7 @@
51
53
  {{~#with ../../_addClass }}</div>{{/with}}
52
54
  {{/with}}
53
55
  {{/if}}
56
+ {{#if ../_isWebview}}
57
+ <script type="application/json" id="{{getRandom}}">{{{../this.imageJson}}}</script>
58
+ {{/if}}
54
59
  {{/withParam}}
@@ -1 +1 @@
1
- {"copytext":{"title":"Akkordeon Titel","copytextParagraph":[{"isHeadline":true,"text":"Das ist der erste Eintrag (mit einer ziemlich langen Headline, die so lang ist, dass sie umbricht)"},{"paragraphBoxItem":{"isImage":true,"Image":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/hasebe-kane-102_v-1to1__medium.jpg","sources":[{"sizes":"(min-width: 768px) 460px, (min-width: 640px) calc(100vw - 8.5rem), calc(100vw - 2.5rem)","srcset":"images/hasebe-kane-102_v-1to1__small.jpg 380w, images/hasebe-kane-102_v-1to1__medium.jpg 480w, images/hasebe-kane-102_v-1to1.jpg 720w, images/hasebe-kane-102_v-1to1__large.jpg 960w"}]}}},"isParagraph":true,"text":{"split":[{"isText":true,"text":"Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten können. Um ein triviales Beispiel zu nehmen, wer von uns unterzieht sich je anstrengender körperlicher Betätigung, außer um Vorteile daraus zu ziehen?"},{"isUl":true,"text":"<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"},{"isOl":true,"text":"<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"}]}},{"isHeadline":true,"text":"Das ist der zweite Eintrag"},{"paragraphBoxItem":{"isImage":true,"Image":{"copyrightWithLinks":"","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/buchmesse-fahnen-102_v-1to1__medium.jpg","sources":[{"sizes":"(min-width: 768px) 460px, (min-width: 640px) calc(100vw - 8.5rem), calc(100vw - 2.5rem)","srcset":"images/buchmesse-fahnen-102_v-1to1__small.jpg 380w, images/buchmesse-fahnen-102_v-1to1__medium.jpg 480w, images/buchmesse-fahnen-102_v-1to1.jpg 720w, images/buchmesse-fahnen-102_v-1to1__large.jpg 960w"}]}}},"isParagraph":true,"text":{"split":[{"isText":true,"text":"Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten können. Um ein triviales Beispiel zu nehmen, wer von uns unterzieht sich je anstrengender körperlicher Betätigung, außer um Vorteile daraus zu ziehen?"}]}},{"isHeadline":true,"text":"Das ist der dritte Eintrag"},{"isParagraph":true,"text":{"split":[{"isText":true,"text":"Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten können. Um ein triviales Beispiel zu nehmen, wer von uns unterzieht sich je anstrengender körperlicher Betätigung, außer um Vorteile daraus zu ziehen?"},{"isUl":true,"text":"<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"}]}}]}}
1
+ {"copytext":{"title":"Akkordeon Titel","copytextParagraph":[{"isHeadline":true,"text":"Das ist der erste Eintrag (mit einer ziemlich langen Headline, die so lang ist, dass sie umbricht)"},{"paragraphBoxItem":{"isImage":true,"Image":{"copyrightWithLinks":"","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/hasebe-kane-102_v-1to1__medium.jpg","sources":[{"sizes":"(min-width: 768px) 460px, (min-width: 640px) calc(100vw - 8.5rem), calc(100vw - 2.5rem)","srcset":"images/hasebe-kane-102_v-1to1__small.jpg 380w, images/hasebe-kane-102_v-1to1__medium.jpg 480w, images/hasebe-kane-102_v-1to1.jpg 720w, images/hasebe-kane-102_v-1to1__large.jpg 960w"}]}}},"isParagraph":true,"text":{"split":[{"isText":true,"text":"Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten können. Um ein triviales Beispiel zu nehmen, wer von uns unterzieht sich je anstrengender körperlicher Betätigung, außer um Vorteile daraus zu ziehen?"},{"isUl":true,"text":"<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"},{"isOl":true,"text":"<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"}]}},{"isHeadline":true,"text":"Das ist der zweite Eintrag"},{"paragraphBoxItem":{"isImage":true,"Image":{"copyrightWithLinks":"","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/buchmesse-fahnen-102_v-1to1__medium.jpg","sources":[{"sizes":"(min-width: 768px) 460px, (min-width: 640px) calc(100vw - 8.5rem), calc(100vw - 2.5rem)","srcset":"images/buchmesse-fahnen-102_v-1to1__small.jpg 380w, images/buchmesse-fahnen-102_v-1to1__medium.jpg 480w, images/buchmesse-fahnen-102_v-1to1.jpg 720w, images/buchmesse-fahnen-102_v-1to1__large.jpg 960w"}]}}},"isParagraph":true,"text":{"split":[{"isText":true,"text":"Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten können. Um ein triviales Beispiel zu nehmen, wer von uns unterzieht sich je anstrengender körperlicher Betätigung, außer um Vorteile daraus zu ziehen?"}]}},{"isHeadline":true,"text":"Das ist der dritte Eintrag"},{"isParagraph":true,"text":{"split":[{"isText":true,"text":"Auch gibt es niemanden, der den Schmerz an sich liebt, sucht oder wünscht, nur, weil er Schmerz ist, es sei denn, es kommt zu zufälligen Umständen, in denen Mühen und Schmerz ihm große Freude bereiten können. Um ein triviales Beispiel zu nehmen, wer von uns unterzieht sich je anstrengender körperlicher Betätigung, außer um Vorteile daraus zu ziehen?"},{"isUl":true,"text":"<li>Auch gibt es niemanden,</li><li>der den Schmerz an sich liebt</li>"}]}}]}}
@@ -1 +1 @@
1
- {"copytext":{"title":"Contentbox: Volle Breite, mit Bild über halbe Breite","showFullSize":{"isTrue":true},"copytextParagraph":[{"paragraphBoxItem":{"isImage":true,"showFullSize":{"isTrue":false},"showPortrait":{"isTrue":false},"caption":"Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen","copyrightWithLinks":"Karsten Hufer","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/buchmesse-fahnen-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/buchmesse-fahnen-102_v-16to9__small.jpg 320w, images/buchmesse-fahnen-102_v-16to9__medium.jpg 480w, images/buchmesse-fahnen-102_v-16to9__medium__extended.jpg 640w, images/buchmesse-fahnen-102_v-16to9.jpg 960w, images/buchmesse-fahnen-102_v-16to9__retina.jpg 1920w"}]}}}],"copytext":{"paragraph":[{"isParagraph":true,"text":{"split":[{"isText":true,"text":"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod <strong>tempor invidunt</strong> ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata <i>sanctus est Lorem ipsum</i> dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut <a href='#' class='link'>labore et dolore</a> magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod."}]}}]}}}
1
+ {"copytext":{"title":"Contentbox: Volle Breite, mit Bild über halbe Breite","showFullSize":{"isTrue":true},"copytextParagraph":[{"paragraphBoxItem":{"isImage":true,"showFullSize":{"isTrue":false},"showPortrait":{"isTrue":false},"caption":"Zum Glück ragt Hessens höchster Berg, die Wasserkuppe, gelegentlich aus der derzeitigen Nebelsuppe heraus, und so gelang mit dem Sternenteleskop ein Blick auf den magischen Rosetten-Nebel, einer Himmelsregion, in der gerade neue Sterne geboren werden. - Diese spektakuläre Momentaufnahme hat uns hessenschau.de-Nutzer Michael Keusgen zukommen lassen","copyrightWithLinks":"Karsten Hufer","imageJson":"Beispiel JSON","responsiveImage":{"asPicture":false,"asImage":true,"fallback":"images/buchmesse-fahnen-102_v-16to9__medium.jpg","sources":[{"sizes":"(min-width: 1024px) 960px, (min-width: 640px) calc(100vw - 4rem), 100vw","srcset":"images/buchmesse-fahnen-102_v-16to9__small.jpg 320w, images/buchmesse-fahnen-102_v-16to9__medium.jpg 480w, images/buchmesse-fahnen-102_v-16to9__medium__extended.jpg 640w, images/buchmesse-fahnen-102_v-16to9.jpg 960w, images/buchmesse-fahnen-102_v-16to9__retina.jpg 1920w"}]}}}],"copytext":{"paragraph":[{"isParagraph":true,"text":{"split":[{"isText":true,"text":"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod <strong>tempor invidunt</strong> ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata <i>sanctus est Lorem ipsum</i> dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut <a href='#' class='link'>labore et dolore</a> magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod."}]}}]}}}
@@ -6,7 +6,7 @@
6
6
  _type="story"
7
7
  _variant="100-copytext-portrait"
8
8
  _noAr="true"
9
- _isWebview=../../_isWebview}}
9
+ _isWebview=_isWebview}}
10
10
  {{else}}
11
11
  {{> components/content/copytext/components/image/figure
12
12
  _cssClass="my-6 sm480:my-7 sm480:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid"
@@ -14,7 +14,7 @@
14
14
  _type="story"
15
15
  _variant="copytext-portrait"
16
16
  _noAr="true"
17
- _isWebview=../../_isWebview}}
17
+ _isWebview=_isWebview}}
18
18
  {{/if}}
19
19
  {{else}}
20
20
  {{#if this.showFullSize.isTrue}}
@@ -24,7 +24,7 @@
24
24
  _type="story"
25
25
  _variant="100-copytext"
26
26
  _pictureAddClass="ar-16-9"
27
- _isWebview=../../_isWebview}}
27
+ _isWebview=_isWebview}}
28
28
  {{else}}
29
29
  {{> components/content/copytext/components/image/figure
30
30
  _cssClass="my-6 sm480:my-7 article-full-width sm:article-narrow sm:mr-5 sm:w-1/2 w-auto flex-col float-none sm:float-left break-inside-avoid page-break-inside-avoid"
@@ -32,7 +32,7 @@
32
32
  _type="story"
33
33
  _variant="copytext"
34
34
  _pictureAddClass="ar-16-9"
35
- _isWebview=../../_isWebview}}
35
+ _isWebview=_isWebview}}
36
36
  {{/if}}
37
37
  {{/if}}
38
38
 
@@ -10,7 +10,7 @@
10
10
  {{#unless this.isInfoBox}}
11
11
  {{~#with this.paragraphBoxItem }}
12
12
  {{~#if this.isImage}}
13
- {{~> components/content/copytext/components/image/image}}
13
+ {{~> components/content/copytext/components/image/image _isWebview=../../_isWebview}}
14
14
  {{/if~}}
15
15
  {{~#if this.isContentBox}}
16
16
  {{~> components/content/copytext/components/contentbox/contentbox ~}}
@@ -66,7 +66,15 @@ export const WithImage = {
66
66
  name: 'Image',
67
67
  args: copytext_image_json,
68
68
  }
69
-
69
+ export const WithImageWebview = {
70
+ render: Template.bind({}),
71
+ name: 'Image Webview',
72
+
73
+ args: {
74
+ ...copytext_image_json,
75
+ _isWebview: true
76
+ }
77
+ }
70
78
  export const WithInfobox = {
71
79
  render: Template.bind({}),
72
80
  name: 'Infobox',