hr-design-system-handlebars 1.75.0 → 1.75.2

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 (68) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/icons/icons/svgmap/copy-ds.svg +5 -21
  3. package/dist/assets/icons/icons/svgmap.min.svg +1 -1
  4. package/dist/assets/index.css +31 -21
  5. package/dist/assets/js/alpine.js +3 -2
  6. package/dist/views/components/content/copytext/components/image/figcaption.hbs +1 -1
  7. package/dist/views/components/content/copytext/components/image/figure.hbs +1 -1
  8. package/dist/views/components/content/copytext/components/media/media_figure.hbs +1 -1
  9. package/dist/views/components/page/components/metadatabox.hbs +1 -1
  10. package/dist/views/components/page/story/story_article.hbs +3 -0
  11. package/dist/views/components/social_sharing/social_sharing_copytext.hbs +1 -1
  12. package/dist/views/components/social_sharing/social_sharing_horizontal.hbs +72 -0
  13. package/{src/stories/views/components/social_sharing/social_sharing_compact_icons.hbs → dist/views/components/social_sharing/social_sharing_icons.hbs} +46 -43
  14. package/dist/views/components/social_sharing/social_sharing_mobile.hbs +71 -0
  15. package/dist/views/components/top_button/top_button.hbs +19 -13
  16. package/dist/views_static/components/content/copytext/components/image/figcaption.hbs +1 -1
  17. package/dist/views_static/components/content/copytext/components/image/figure.hbs +1 -1
  18. package/dist/views_static/components/content/copytext/components/media/media_figure.hbs +1 -1
  19. package/dist/views_static/components/page/components/metadatabox.hbs +1 -1
  20. package/dist/views_static/components/page/story/story_article.hbs +3 -0
  21. package/dist/views_static/components/social_sharing/social_sharing_copytext.hbs +1 -1
  22. package/dist/views_static/components/social_sharing/social_sharing_horizontal.hbs +72 -0
  23. package/dist/{views/components/social_sharing/social_sharing_compact_icons.hbs → views_static/components/social_sharing/social_sharing_icons.hbs} +46 -43
  24. package/dist/views_static/components/social_sharing/social_sharing_mobile.hbs +71 -0
  25. package/dist/views_static/components/top_button/top_button.hbs +19 -13
  26. package/package.json +1 -1
  27. package/src/assets/fixtures/page/metadatabox.json +2 -1
  28. package/src/assets/fixtures/page/metadatabox_comments.json +2 -1
  29. package/src/assets/fixtures/page/metadatabox_more_authors.json +2 -1
  30. package/src/assets/fixtures/page/metadatabox_more_authors_comments.json +2 -1
  31. package/src/assets/fixtures/page/metadatabox_one_author.json +2 -1
  32. package/src/assets/fixtures/page/metadatabox_one_author_comments.json +2 -1
  33. package/src/assets/fixtures/page/metadatabox_one_author_without_picture.json +2 -1
  34. package/src/assets/fixtures/page/story/story.inc.json +2 -1
  35. package/src/assets/fixtures/page/story/story_with_livestream.json +67 -0
  36. package/src/assets/fixtures/socialsharing/socialsharing.inc.json +2 -1
  37. package/src/assets/icons/icons/svgmap/copy-ds.svg +5 -21
  38. package/src/assets/icons/icons/svgmap.min.svg +1 -1
  39. package/src/assets/js/alpine.js +3 -2
  40. package/src/stories/views/components/content/copytext/components/image/figcaption.hbs +1 -1
  41. package/src/stories/views/components/content/copytext/components/image/figure.hbs +1 -1
  42. package/src/stories/views/components/content/copytext/components/media/media_figure.hbs +1 -1
  43. package/src/stories/views/components/page/components/metadatabox.hbs +1 -1
  44. package/src/stories/views/components/page/fixtures/metadatabox.json +1 -1
  45. package/src/stories/views/components/page/fixtures/metadatabox_comments.json +1 -1
  46. package/src/stories/views/components/page/fixtures/metadatabox_more_authors.json +1 -1
  47. package/src/stories/views/components/page/fixtures/metadatabox_more_authors_comments.json +1 -1
  48. package/src/stories/views/components/page/fixtures/metadatabox_one_author.json +1 -1
  49. package/src/stories/views/components/page/fixtures/metadatabox_one_author_comments.json +1 -1
  50. package/src/stories/views/components/page/fixtures/metadatabox_one_author_without_picture.json +1 -1
  51. package/src/stories/views/components/page/story/fixtures/story.json +1 -1
  52. package/src/stories/views/components/page/story/fixtures/story_with_label.json +1 -1
  53. package/src/stories/views/components/page/story/fixtures/story_with_livestream.json +1 -0
  54. package/src/stories/views/components/page/story/fixtures/story_with_square_image.json +1 -1
  55. package/src/stories/views/components/page/story/fixtures/story_with_video.json +1 -1
  56. package/src/stories/views/components/page/story/story_article.hbs +3 -0
  57. package/src/stories/views/components/page/story/story_main.stories.js +11 -1
  58. package/src/stories/views/components/social_sharing/{social_sharing_compact.mdx → social_sharing.mdx} +1 -1
  59. package/src/stories/views/components/social_sharing/social_sharing.stories.js +45 -0
  60. package/src/stories/views/components/social_sharing/social_sharing_copytext.hbs +1 -1
  61. package/src/stories/views/components/social_sharing/social_sharing_horizontal.hbs +72 -0
  62. package/{dist/views_static/components/social_sharing/social_sharing_compact_icons.hbs → src/stories/views/components/social_sharing/social_sharing_icons.hbs} +46 -43
  63. package/src/stories/views/components/social_sharing/social_sharing_mobile.hbs +71 -0
  64. package/src/stories/views/components/top_button/top_button.hbs +19 -13
  65. package/dist/views/components/social_sharing/social_sharing_compact.hbs +0 -87
  66. package/dist/views_static/components/social_sharing/social_sharing_compact.hbs +0 -87
  67. package/src/stories/views/components/social_sharing/social_sharing_compact.hbs +0 -87
  68. package/src/stories/views/components/social_sharing/social_sharing_compact.stories.js +0 -18
@@ -0,0 +1,72 @@
1
+ {{~#with this.socialSharing ~}}
2
+ <div x-data="stickySharingHandler"
3
+ x-init="$watch('$store.sharingIsVisible', () => {$store.sharingIsOpenHorizontal = false; $store.sharingIsOpenMobile = false})"
4
+ class="flex self-center justify-end ml-3 grow"
5
+ x-intersect:leave="$store.sharingIsVisible=false"
6
+ x-intersect:enter="$store.sharingIsVisible=true"
7
+ x-on:resize.window="$store.sharingIsOpenHorizontal = false"
8
+ x-on:keydown.escape.prevent.stop="close($refs.button)"
9
+ @click.outside="close()"
10
+ >
11
+ <div class="relative right-0 flex gap-3 bg-white md:h-auto" >
12
+ <button
13
+ class="{{#with ../this.trackingData}}js-load {{/with}}order-2 p-2 text-white border border-button bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group lg:hidden"
14
+ x-ref="button"
15
+ x-on:click="toggle()"
16
+ :aria-expanded="open"
17
+ :aria-controls="$id('dropdown-button')"
18
+ x-show="$store.sharingIsVisible"
19
+ {{#with ../this.trackingData}}
20
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::sharingmenuopened"}]}'
21
+ {{/with}}
22
+
23
+ >
24
+ {{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
25
+ </button>
26
+ <div
27
+ x-ref="panel"
28
+ :class="$store.sharingIsOpenHorizontal ? 'flex' : 'hidden '"
29
+ :id="$id('dropdown-button')"
30
+ class="self-center bg-white h-8 absolute right-[50px] md:relative md:right-0 md:h-auto lg:flex"
31
+ >
32
+ <ul class="flex gap-3">
33
+ {{> components/social_sharing/social_sharing_icons _socialSharingType="metadatabox"}}
34
+ </ul>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ <script>
39
+ function stickySharingHandler(){
40
+ return {
41
+ open: false,
42
+ sharingIsVisible: true,
43
+ isDesktop: true,
44
+ toggle() {
45
+ var isMobileApple = /^iP/.test(navigator.platform) || /^Mac/.test(navigator.platform) && navigator.maxTouchPoints > 4;
46
+ var isMobileOther= navigator.userAgent.match(/(Android)|(webOS)|(Blackberry)|(Windows Phone)/i);
47
+ var isMobile= isMobileApple || isMobileOther;
48
+ if (navigator.share && isMobile) {
49
+ navigator.share({
50
+ title: document.title,
51
+ text: 'Schau mal was ich auf hessenschau.de gefunden habe!',
52
+ url: window.location.href,
53
+ })
54
+ .then(() => console.log('Shared successfully'))
55
+ .catch((error) => console.error('Sharing failed:', error));
56
+ } else {
57
+ if (this.$store.sharingIsOpenHorizontal) {
58
+ return this.close()
59
+ }
60
+ this.$refs.button.focus()
61
+ this.$store.sharingIsOpenHorizontal = true
62
+
63
+ }
64
+ },
65
+ close(focusAfter) {
66
+ if (!this.$store.sharingIsOpenHorizontal) return
67
+ this.$store.sharingIsOpenHorizontal = false
68
+ }
69
+ }
70
+ }
71
+ </script>
72
+ {{/with}}
@@ -1,3 +1,44 @@
1
+ {{~#with this.copyToClipboardLink}}
2
+ <li x-data="copyHandler()" x-on:click="copyToClipboard" class="relative">
3
+ <button class="{{#with ../_trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
4
+ title="{{loca "share_copy_linktitle" }}"
5
+ data-url="{{this}}"
6
+ {{#with ../_trackingData}}
7
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../_socialSharingType ../_socialSharingType "default" }}::copybutton"}]}'
8
+ {{/with}}
9
+ >
10
+ <span x-cloak class="flex items-center justify-center w-full h-full" x-show="!copySuccess">{{~> components/base/image/icon _addClass="w-full h-full fill-link hover:scale-105" _icon="copy-ds" _iconmap="icons" ~}}</span>
11
+ <span x-cloak class="flex items-center justify-center w-full h-full" x-show="copySuccess">{{~> components/base/image/icon _addClass="w-6 h-6 text-green-600" _icon="status-done" _iconmap="icons" ~}}</span>
12
+ </button>
13
+ <div x-cloak x-show="copySuccess" class="absolute left-8 flex flex-row items-center justify-start px-4 shadow w-auto h-8 top-0 ml-0.5 text-xs bg-white whitespace-nowrap sm480:text-sm font-headingSerif dark:text-text-dark">
14
+ {{loca "share_copy_message" }}
15
+ </div>
16
+ </li>
17
+ <script>
18
+ function copyHandler(){
19
+ return {
20
+ copySuccess: false,
21
+ copyToClipboard(event) {
22
+ const clickedContainer = event.currentTarget.parentNode
23
+ const url = clickedContainer.querySelector ("button:first-of-type").getAttribute('data-url');
24
+ //TODO: maby do this with a magical helper in alpine
25
+ navigator.clipboard
26
+ .writeText(url)
27
+ .then(() => {
28
+ console.log("successfully copied");
29
+ this.copySuccess = true
30
+ window.setTimeout(() => {
31
+ this.copySuccess = false
32
+ }, 2000)
33
+ })
34
+ .catch(() => {
35
+ console.log("something went wrong with copy");
36
+ });
37
+ }
38
+ }
39
+ }
40
+ </script>
41
+ {{/with}}
1
42
  {{~#with this.twitterLink ~}}
2
43
  <li>
3
44
  <a class="{{if (isUserConsentNeeded this) 'js-user-consent-needed ' ''}}{{#with ../_trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
@@ -7,7 +48,7 @@
7
48
  rel="noopener noreferrer"
8
49
  title="{{loca "share_x_linktitle" }}"
9
50
  {{#with ../_trackingData}}
10
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::X"}]}'
51
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../_socialSharingType ../_socialSharingType "default" }}::X"}]}'
11
52
  {{/with}}
12
53
  >
13
54
  {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:scale-105 " _icon="x-ds" _iconmap="icons" ~}}
@@ -23,7 +64,7 @@
23
64
  rel="noopener noreferrer"
24
65
  title="{{loca "share_facebook_linktitle" }}"
25
66
  {{#with ../_trackingData}}
26
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::facebook"}]}'
67
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../_socialSharingType ../_socialSharingType "default" }}::facebook"}]}'
27
68
  {{/with}}
28
69
  >
29
70
  {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:scale-105" _icon="facebook-ds" _iconmap="icons" ~}}
@@ -39,7 +80,7 @@
39
80
  rel="noopener noreferrer"
40
81
  title="{{loca "share_whatsapp_linktitle" }}"
41
82
  {{#with ../_trackingData}}
42
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::whatsapp"}]}'
83
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../_socialSharingType ../_socialSharingType "default" }}::whatsapp"}]}'
43
84
  {{/with}}
44
85
  >
45
86
  {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:scale-105" _icon="whatsapp-ds" _iconmap="icons" ~}}
@@ -53,48 +94,10 @@
53
94
  href="{{this}}"
54
95
  title="{{loca "share_mail_linktitle" }}"
55
96
  {{#with ../_trackingData}}
56
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::mailto"}]}'
97
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../_socialSharingType ../_socialSharingType "default" }}::mailto"}]}'
57
98
  {{/with}}
58
99
  >
59
100
  {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:scale-105" _icon="kontakt-ds" _iconmap="icons" ~}}
60
101
  </a>
61
102
  </li>
62
- {{/with}}
63
-
64
- <li x-data="copyHandler()" x-on:click="copyToClipboard" class="">
65
- <button class="{{#with ../_trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
66
- title="{{loca "share_copy_linktitle" }}"
67
- {{#with ../_trackingData}}
68
- data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::copybutton"}]}'
69
- {{/with}}
70
- >
71
- {{~> components/base/image/icon _addClass="w-full h-full fill-link hover:scale-105" _icon="copy-ds" _iconmap="icons" ~}}
72
- </button>
73
- <div class="absolute flex flex-row items-center justify-start rounded pr-4 shadow hidden w-auto h-8 -mt-8 ml-0.5 text-xs bg-white whitespace-nowrap js-copyMessage sm480:text-sm font-headingSerif dark:text-text-dark">
74
- {{~> components/base/image/icon _addClass="w-7 h-7 text-green-600 mr-4" _icon="status-done" _iconmap="icons" ~}}
75
- {{loca "share_copy_message" }}
76
- </div>
77
- </li>
78
- <script>
79
- function copyHandler(){
80
- return {
81
- copyToClipboard(event) {
82
- const clickedContainer = event.currentTarget.parentNode
83
- const messageDiv = clickedContainer.querySelector('.js-copyMessage')
84
- const el = document.createElement('textarea')
85
- el.value = window.location.href
86
- el.setAttribute('readonly', '')
87
- el.style.position = 'absolute'
88
- el.style.left = '-9999px'
89
- document.body.appendChild(el)
90
- el.select()
91
- document.execCommand('copy')
92
- document.body.removeChild(el)
93
- messageDiv.classList.remove('hidden')
94
- window.setTimeout(() => {
95
- messageDiv.classList.add('hidden')
96
- }, 2000)
97
- }
98
- }
99
- }
100
- </script>
103
+ {{/with}}
@@ -0,0 +1,71 @@
1
+
2
+ {{~#with this.socialSharing ~}}
3
+ <div x-data="stickySharingHandlerMobile"
4
+ class=" relative ml-5 z-100 h-9.5 w-9.5"
5
+ :class="$store.footerIsVisible ? '-mt-6' : '-mt-12'"
6
+ x-on:resize.window="$store.sharingIsOpenMobile = false"
7
+ x-on:keydown.escape.prevent.stop="close($refs.button)"
8
+ @click.outside="close()"
9
+ >
10
+ <div class="absolute bottom-0 flex flex-col self-center gap-3 bg-white">
11
+ <button
12
+ class="{{#with ../this.trackingData}}js-load {{/with}}order-2 p-2 text-white border border-button bg-button ds-button font-heading hover:bg-button--dark hover:border-button--dark active:bg-button--dark group lg:hidden"
13
+ x-ref="button"
14
+ x-on:click="toggle()"
15
+ :aria-expanded="open"
16
+ :aria-controls="$id('dropdown-button')"
17
+
18
+ {{#with ../this.trackingData}}
19
+ data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::sharingmenuopened"}]}'
20
+ {{/with}}
21
+
22
+ >
23
+ {{> components/base/image/icon _addClass="w-5 h-5 fill-current group-hover:fill-link--dark" _icon="sharing" _iconmap="icons" }}
24
+ </button>
25
+ <div
26
+ x-ref="panel"
27
+ :class="$store.sharingIsOpenMobile ? 'flex' : 'hidden '"
28
+ :id="$id('dropdown-button')"
29
+ class="relative right-0 self-center bg-white md:h-auto lg:hidden"
30
+ >
31
+ <ul class="flex flex-col gap-3 mt-2">
32
+ {{> components/social_sharing/social_sharing_icons _socialSharingType="mobile-sticky"}}
33
+ </ul>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <script>
38
+ function stickySharingHandlerMobile(){
39
+ return {
40
+ open: false,
41
+ sharingIsVisible: true,
42
+ isDesktop: true,
43
+ toggle() {
44
+ var isMobileApple = /^iP/.test(navigator.platform) || /^Mac/.test(navigator.platform) && navigator.maxTouchPoints > 4;
45
+ var isMobileOther= navigator.userAgent.match(/(Android)|(webOS)|(Blackberry)|(Windows Phone)/i);
46
+ var isMobile= isMobileApple || isMobileOther;
47
+ if (navigator.share && isMobile) {
48
+ navigator.share({
49
+ title: document.title,
50
+ text: 'Schau mal was ich auf hessenschau.de gefunden habe!',
51
+ url: window.location.href,
52
+ })
53
+ .then(() => console.log('Shared successfully'))
54
+ .catch((error) => console.error('Sharing failed:', error));
55
+ } else {
56
+ if (this.$store.sharingIsOpenMobile) {
57
+ return this.close()
58
+ }
59
+ this.$refs.button.focus()
60
+ this.$store.sharingIsOpenMobile = true
61
+ }
62
+
63
+ },
64
+ close(focusAfter) {
65
+ if (!this.$store.sharingIsOpenMobile) return
66
+ this.$store.sharingIsOpenMobile = false
67
+ }
68
+ }
69
+ }
70
+ </script>
71
+ {{/with}}
@@ -1,21 +1,27 @@
1
- <div class="h-8" x-data="{ isVisible: false }">
2
- <div class="grid h-8 grid-page z-100" :class="{ 'fixed bottom-feature-box-height left-0 w-full': !$store.footerIsVisible }">
3
- <div class="flex justify-end h-8 col-full sm:col-main"
4
- :class="{ 'bg-white': $store.footerIsVisible }">
1
+ <div class="" x-data="{ isVisible: false }">
2
+ <div class="grid grid-page z-100" :class="{ 'fixed bottom-feature-box-height left-0 w-full': !$store.footerIsVisible }">
3
+ <div class="flex justify-between h-0 col-full sm:col-main"
4
+ :class="{ 'bg-white h-8': $store.footerIsVisible }"
5
+ x-show="!$store.sharingIsVisible && isVisible"
6
+ x-transition:enter="transition ease-[cubic-bezier(0.68,-0.3,0.32,1)] duration-500 transform order-first"
7
+ x-transition:enter-start="opacity-0 translate-y-8"
8
+ x-transition:enter-end="opacity-100 translate-y-0"
9
+ x-transition:leave="transition ease-[cubic-bezier(0.68,-0.3,0.32,1)] duration-300"
10
+ x-transition:leave-start="opacity-100 translate-y-0"
11
+ x-transition:leave-end="opacity-0 translate-y-12"
12
+ @scroll.window="isVisible = ((window.pageYOffset * 2) > (window.innerHeight || (document.documentElement || document.body).clientHeight))"
13
+ >
14
+ {{> components/social_sharing/social_sharing_mobile }}
15
+
5
16
  <button
6
- @scroll.window="isVisible = (window.pageYOffset > (window.innerHeight || (document.documentElement || document.body).clientHeight))"
17
+
7
18
  @click="window.scrollTo({top: 0, behavior: 'smooth'})"
8
- x-show="isVisible"
9
- x-transition:enter="transition ease-[cubic-bezier(0.68,-0.3,0.32,1)] duration-500 transform order-first"
10
- x-transition:enter-start="opacity-0 -translate-y-8"
11
- x-transition:enter-end="opacity-100 translate-y-0"
12
- x-transition:leave="transition ease-[cubic-bezier(0.68,-0.3,0.32,1)] duration-300 transform absolute"
13
- x-transition:leave-start="opacity-100 translate-y-0"
14
- x-transition:leave-end="opacity-0 translate-y-12"
15
- class="{{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant="primary"}} -mt-6 z-100 p-2 h-max mr-5 hover:scale-105 [@media(min-width:1170px)]:-mr-14"
19
+ :class="$store.footerIsVisible ? '-mt-6' : '-mt-12'"
20
+ class="{{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant="primary"}} ml-auto z-100 p-2 h-max mr-5 hover:scale-105 [@media(min-width:1170px)]:-mr-14"
16
21
  >
17
22
  {{> components/base/image/icon _icon="arrow-up" _addClass="w-5 h-5 fill-current dark:fill-link-dark"}}
18
23
  </button>
24
+
19
25
  </div>
20
26
  </div>
21
27
  {{! Dieses DIV ist notwendig um bei Seiten mit einem Hintergrund zu vermeiden dass unten eine Lücke entsteht bei der das hintergrundbild durchscheint}}
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.75.0",
9
+ "version": "1.75.2",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -13,6 +13,7 @@
13
13
  "twitterLink": "/twitterLink-url",
14
14
  "facebookLink": "/facebookLink-url",
15
15
  "whatsappLink": "/whatsappLink-url",
16
- "mailtoLink": "/mailtoLink-url"
16
+ "mailtoLink": "/mailtoLink-url",
17
+ "copyToClipboardLink": "/copyToClipboard-url"
17
18
  }
18
19
  }
@@ -17,6 +17,7 @@
17
17
  "twitterLink": "/twitterLink-url",
18
18
  "facebookLink": "/facebookLink-url",
19
19
  "whatsappLink": "/whatsappLink-url",
20
- "mailtoLink": "/mailtoLink-url"
20
+ "mailtoLink": "/mailtoLink-url",
21
+ "copyToClipboardLink": "/copyToClipboard-url"
21
22
  }
22
23
  }
@@ -37,6 +37,7 @@
37
37
  "twitterLink": "/twitterLink-url",
38
38
  "facebookLink": "/facebookLink-url",
39
39
  "whatsappLink": "/whatsappLink-url",
40
- "mailtoLink": "/mailtoLink-url"
40
+ "mailtoLink": "/mailtoLink-url",
41
+ "copyToClipboardLink": "/copyToClipboard-url"
41
42
  }
42
43
  }
@@ -41,6 +41,7 @@
41
41
  "twitterLink": "/twitterLink-url",
42
42
  "facebookLink": "/facebookLink-url",
43
43
  "whatsappLink": "/whatsappLink-url",
44
- "mailtoLink": "/mailtoLink-url"
44
+ "mailtoLink": "/mailtoLink-url",
45
+ "copyToClipboardLink": "/copyToClipboard-url"
45
46
  }
46
47
  }
@@ -27,6 +27,7 @@
27
27
  "twitterLink": "/twitterLink-url",
28
28
  "facebookLink": "/facebookLink-url",
29
29
  "whatsappLink": "/whatsappLink-url",
30
- "mailtoLink": "/mailtoLink-url"
30
+ "mailtoLink": "/mailtoLink-url",
31
+ "copyToClipboardLink": "/copyToClipboard-url"
31
32
  }
32
33
  }
@@ -31,6 +31,7 @@
31
31
  "twitterLink": "/twitterLink-url",
32
32
  "facebookLink": "/facebookLink-url",
33
33
  "whatsappLink": "/whatsappLink-url",
34
- "mailtoLink": "/mailtoLink-url"
34
+ "mailtoLink": "/mailtoLink-url",
35
+ "copyToClipboardLink": "/copyToClipboard-url"
35
36
  }
36
37
  }
@@ -17,6 +17,7 @@
17
17
  "twitterLink": "/twitterLink-url",
18
18
  "facebookLink": "/facebookLink-url",
19
19
  "whatsappLink": "/whatsappLink-url",
20
- "mailtoLink": "/mailtoLink-url"
20
+ "mailtoLink": "/mailtoLink-url",
21
+ "copyToClipboardLink": "/copyToClipboard-url"
21
22
  }
22
23
  }
@@ -134,7 +134,8 @@
134
134
  "twitterLink": "/twitterLink-url",
135
135
  "facebookLink": "/facebookLink-url",
136
136
  "whatsappLink": "/whatsappLink-url",
137
- "mailtoLink": "/mailtoLink-url"
137
+ "mailtoLink": "/mailtoLink-url",
138
+ "copyToClipboardLink": "/copyToClipboard-url"
138
139
  },
139
140
  "programReference": {
140
141
  "hasReference": true,
@@ -0,0 +1,67 @@
1
+ {
2
+
3
+ "@->jsoninclude": "page/story/story.inc.json",
4
+ "@->overrides": [
5
+ {
6
+ "@->contentpath": "teaseritemDS",
7
+ "@->value": {
8
+ "isLivestream": true,
9
+ "showFullSize": {
10
+ "isTrue": false
11
+ },
12
+ "isSsi": true,
13
+ "label": {
14
+ "@->jsoninclude": "teaser/teaser_labels.inc.json",
15
+ "@->contentpath": "video_livestream_copytext_50"
16
+ },
17
+ "toModel": {
18
+ "videoLivestreamElement": {
19
+ "ardPlayerConfig": {
20
+ "@->jsoninclude": "video/videos.inc.json",
21
+ "@->contentpath": "video-livestream-hr-fernsehen"
22
+ },
23
+ "ardPlayerJsonConfig": {
24
+ "@->jsoninclude": "video/videos.inc.json",
25
+ "@->contentpath": "video-livestream-hr-fernsehen"
26
+ }
27
+ },
28
+ "mediaBacklinkToStoryTeaser": {
29
+ "link": {
30
+ "url": "/livestreamseite",
31
+ "isTargetBlank": false
32
+ },
33
+ "content": {
34
+ "readMoreScreenreader": "zum hr3.de Livestream",
35
+ "title": "Eröffnung der Frankfurter Buchmesse",
36
+ "isForeignBrand": false,
37
+ "readMore": "zum hr3.de Livestreamseite"
38
+ },
39
+ "hasIcon": true,
40
+ "iconName": "extern"
41
+ }
42
+ },
43
+ "teaseritem": {
44
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
45
+ "@->contentpath": "copytext_image_50",
46
+ "@->replaceToken": [
47
+ {
48
+ "@->token": "image",
49
+ "@->value": "buchmesse-fahnen-102"
50
+ }
51
+ ]
52
+ },
53
+
54
+ "teaserImage": {
55
+ "@->jsoninclude": "teaser/teaser_images.inc.json",
56
+ "@->contentpath": "copytext_image_50",
57
+ "@->replaceToken": [
58
+ {
59
+ "@->token": "image",
60
+ "@->value": "buchmesse-fahnen-102"
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ }
66
+ ]
67
+ }
@@ -2,5 +2,6 @@
2
2
  "twitterLink" : "#",
3
3
  "whatsappLink" : "#",
4
4
  "facebookLink" : "#",
5
- "mailtoLink" : "#"
5
+ "mailtoLink" : "#",
6
+ "copyToClipboardLink": "#"
6
7
  }
@@ -1,21 +1,5 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 28.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="kontakt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 320 320" style="enable-background:new 0 0 320 320;" xml:space="preserve">
5
- <g>
6
- <path d="M191.5,200L191.5,200l-9.5,13.2c-1.4,2-3.2,3.6-5.2,4.8c-2,1.3-4.3,2.1-6.7,2.5l0,0c-5,0.8-9.8-0.5-13.6-3.2
7
- c-3.8-2.7-6.5-6.9-7.3-11.8l0,0c-0.4-2.4-0.3-4.8,0.2-7.1c0.5-2.3,1.5-4.5,2.9-6.4l9.5-13.2c5.2-7.2-5.7-15.1-11-7.9l-9.5,13.2
8
- c-2.4,3.4-4.2,7.2-5.1,11.2c-0.9,4.1-1.1,8.3-0.4,12.4c1.4,8.7,6.2,15.9,12.8,20.6c6.6,4.7,15,6.9,23.6,5.5
9
- c4.1-0.7,8.1-2.1,11.6-4.3c3.4-2.1,6.5-5,9-8.4l9.5-13.2C207.6,200.7,196.7,192.8,191.5,200z"/>
10
- <path d="M217.6,50.2c0-5.3-4.3-9.7-9.7-9.7H63.8c-15.2,0-27.5,12.4-27.5,27.5v157.6c0,5.3,4.3,9.7,9.7,9.7s9.7-4.3,9.7-9.7V68
11
- c0-4.5,3.7-8.2,8.2-8.2H208C213.3,59.8,217.6,55.5,217.6,50.2z"/>
12
- <path d="M180.7,195.9l18-27.1c5.2-7.2-5.7-15.1-10.9-7.9l-18,27.2C164.6,195.3,175.5,203.1,180.7,195.9z"/>
13
- <path d="M219.6,128.9c-6.6-4.7-15-6.9-23.6-5.5c-4.1,0.7-8.1,2.1-11.6,4.3c-3.5,2.2-6.6,5-9,8.4l-9.7,13.4
14
- c-5.2,7.2,5.8,15.1,11,7.9v0l9.7-13.4c1.4-1.9,3.1-3.6,5.2-4.8c2.1-1.3,4.3-2.1,6.7-2.5c5-0.8,9.8,0.4,13.6,3.2
15
- c3.8,2.7,6.5,6.9,7.3,11.9c0.4,2.3,0.3,4.8-0.2,7.1c-0.5,2.3-1.5,4.5-2.9,6.4l-9.7,13.4c-5.2,7.2,5.8,15.1,11,7.9l9.7-13.4
16
- c2.4-3.4,4.2-7.2,5.1-11.2c0.9-4.1,1.1-8.3,0.4-12.4C231,140.9,226.2,133.6,219.6,128.9z"/>
17
- <path d="M256.2,84.8H112c-15.2,0-27.5,12.4-27.5,27.5V252c0,15.1,12.4,27.5,27.5,27.5h144.2c15.1,0,27.5-12.5,27.5-27.5V112.3
18
- C283.8,97.1,271.4,84.8,256.2,84.8z M264.5,252c0,4.5-3.7,8.2-8.2,8.2H112c-4.5,0-8.2-3.7-8.2-8.2V112.3c0-4.5,3.7-8.2,8.2-8.2
19
- h144.2c4.5,0,8.2,3.7,8.2,8.2V252z"/>
20
- </g>
21
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="copy" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 320 320">
3
+ <path d="M288.4,89.9c-1-14.4-7.5-28.3-18.3-39.1-10.8-10.8-24.7-17.3-39.1-18.3-7.2-.5-14.2.4-20.7,2.6-6.9,2.3-12.9,6.2-18.1,11.3l-48.8,48.8h2.2c1.1,0,2.3.2,3.4.3,6.8.5,13.7,1.9,20.3,4.1l.6.2,37.9-37.9c11.7-11.7,32.7-9.8,46.9,4.4,14.2,14.2,16.1,35.2,4.4,46.9l-62.3,62.4c-5.6,5.6-13.6,8.3-22.5,7.5s-17.6-5.1-24.5-11.9-4.8-3.2-7.7-3.2-5.6,1.1-7.7,3.2c-4.2,4.2-4.2,11.2,0,15.5,10.8,10.8,24.7,17.3,39.1,18.3,1.3,0,2.6.2,3.9.2,5.8,0,11.4-.9,16.8-2.7,6.9-2.3,12.9-6.2,18.1-11.3l62.4-62.4c5.1-5.1,8.9-11.2,11.3-18.1,2.2-6.6,3-13.5,2.5-20.7Z"/>
4
+ <path d="M186.7,134.3c-10.8-10.8-24.7-17.3-39.1-18.3-7.1-.5-14.2.4-20.7,2.6-6.9,2.3-12.9,6.2-18.1,11.3l-62.4,62.4c-5.1,5.1-8.9,11.2-11.3,18.1-2.3,6.6-3.1,13.5-2.6,20.7,1,14.4,7.5,28.3,18.3,39.1,10.8,10.8,24.7,17.3,39.1,18.3,1.3,0,2.6.2,3.9.2,5.8,0,11.4-.9,16.8-2.7,6.9-2.3,12.9-6.2,18.1-11.3l48.8-48.8h-2.2c-1.1,0-2.3-.2-3.4-.3-6.8-.5-13.7-1.9-20.3-4.1l-.6-.2-37.9,37.7c-5.6,5.6-13.6,8.3-22.5,7.5-8.9-.8-17.6-5.1-24.5-11.9-6.8-6.8-11-15.3-11.9-24.1-.9-9,1.7-17.1,7.5-22.9l62.4-62.4c5.6-5.6,13.6-8.3,22.5-7.5s17.6,5.1,24.5,11.9c4.2,4.2,11.2,4.2,15.5,0,2.1-2.1,3.2-4.8,3.2-7.7s-1.1-5.6-3.2-7.7Z"/>
5
+ </svg>