hr-design-system-handlebars 1.38.3 → 1.38.5

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 CHANGED
@@ -1,3 +1,28 @@
1
+ # v1.38.5 (Mon Sep 11 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - BUGFIX: teaserSize property is camelcased [#722](https://github.com/mumprod/hr-design-system-handlebars/pull/722) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
13
+ # v1.38.4 (Mon Sep 11 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Feature: Remove unused atiHelper [#721](https://github.com/mumprod/hr-design-system-handlebars/pull/721) ([@szuelch](https://github.com/szuelch) [@ampersand83](https://github.com/ampersand83))
18
+
19
+ #### Authors: 2
20
+
21
+ - [@ampersand83](https://github.com/ampersand83)
22
+ - [@szuelch](https://github.com/szuelch)
23
+
24
+ ---
25
+
1
26
  # v1.38.3 (Fri Sep 08 2023)
2
27
 
3
28
  #### 🐛 Bug Fix
@@ -3054,7 +3054,7 @@ video {
3054
3054
  border-bottom-color: var(--color-secondary-ds);
3055
3055
  }
3056
3056
  .counter-reset {
3057
- counter-reset: cnt1694165831182;
3057
+ counter-reset: cnt1694424811234;
3058
3058
  }
3059
3059
  .hyphens-auto {
3060
3060
  -webkit-hyphens: auto;
@@ -3289,7 +3289,7 @@ video {
3289
3289
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3290
3290
  }
3291
3291
  .-ordered {
3292
- counter-increment: cnt1694165831182 1;
3292
+ counter-increment: cnt1694424811234 1;
3293
3293
  }
3294
3294
  .-ordered::before {
3295
3295
  position: absolute;
@@ -3305,7 +3305,7 @@ video {
3305
3305
  letter-spacing: .0125em;
3306
3306
  --tw-text-opacity: 1;
3307
3307
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3308
- content: counter(cnt1694165831182);
3308
+ content: counter(cnt1694424811234);
3309
3309
  }
3310
3310
  /*! ****************************/
3311
3311
  /*! DataPolicy stuff */
@@ -1,4 +1,4 @@
1
- import { isTrackingAllowed, pi } from 'base/tracking/atiHelper.subfeature'
1
+ import { isTrackingAllowed, pi } from 'base/tracking/pianoHelper.subfeature'
2
2
 
3
3
  const ATIMediaHelper = function (
4
4
  avType,
@@ -1,7 +1,7 @@
1
1
  import DatapolicyCookie from 'components/externalService/datapolicyCookie.subfeature'
2
2
  import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
3
3
  import { fireEvent, getJSONCookie, hr$, setJSONCookie, listen } from 'hrQuery'
4
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
4
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
5
5
 
6
6
  const DataPolicySettings = function (context) {
7
7
  const { options } = context,
@@ -24,7 +24,7 @@ const DataPolicySettings = function (context) {
24
24
  //isWebview = window.location.href.match(/(app)/i), //App URL ...app.hr.de
25
25
  cookie = {}
26
26
 
27
- console.log("gelaaaadeeeeeeeen")
27
+ console.log('gelaaaadeeeeeeeen')
28
28
  ///////////////////
29
29
  // OVERLAY START //
30
30
  ///////////////////
@@ -39,7 +39,7 @@ const DataPolicySettings = function (context) {
39
39
  } else {
40
40
  settingsButton.style.display = 'inline-flex'
41
41
  }
42
- } else {
42
+ } else {
43
43
  settingsButton.style.display = 'inline-flex'
44
44
  console.log('Button immer anzeigen, weil nicht App')
45
45
  }
@@ -1,4 +1,4 @@
1
- import { pi, uxAction } from 'base/tracking/atiHelper.subfeature'
1
+ import { pi, uxAction } from 'base/tracking/pianoHelper.subfeature'
2
2
  import { hr$, isString, listen, reinitializeFeature, simulateClickOn } from 'hrQuery'
3
3
  import $ from 'zepto-modules'
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { clearRequestInterval, hr$, requestInterval } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
 
4
4
  const NativeScroll = function (context) {
5
5
  console.log('loaded feature ...')
@@ -20,10 +20,13 @@ const NativeScroll = function (context) {
20
20
  let step = scrollbar.clientWidth - oneScrollbarItem.clientWidth * 1.5,
21
21
  direction = e.currentTarget.classList.contains('-left') ? -1 : 1,
22
22
  distance = direction * step
23
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 22 ~ doScroll ~ direction", direction)
24
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 24 ~ doScroll ~ distance", distance)
23
+ console.log(
24
+ '🚀 ~ file: nativeScroll.feature.js ~ line 22 ~ doScroll ~ direction',
25
+ direction
26
+ )
27
+ console.log('🚀 ~ file: nativeScroll.feature.js ~ line 24 ~ doScroll ~ distance', distance)
25
28
 
26
- console.log('scrollbar ', scrollbar)
29
+ console.log('scrollbar ', scrollbar)
27
30
  console.log('scrollbar width ', scrollbar.clientWidth)
28
31
  console.log('oneScrollbarItem ', oneScrollbarItem)
29
32
  console.log('oneScrollbarItem width ', oneScrollbarItem.clientWidth)
@@ -37,11 +40,17 @@ const NativeScroll = function (context) {
37
40
  if (isTeaser) uxAction('Eventkalender:: Pfeil links geklickt', 1)
38
41
  else uxAction('Eventkalender-Monat:: Pfeil links geklickt', 1)
39
42
  }
40
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 42 ~ doScroll ~ hasNativeSmoothScroll", hasNativeSmoothScroll)
43
+ console.log(
44
+ '🚀 ~ file: nativeScroll.feature.js ~ line 42 ~ doScroll ~ hasNativeSmoothScroll',
45
+ hasNativeSmoothScroll
46
+ )
41
47
 
42
48
  if (hasNativeSmoothScroll) {
43
49
  scrollbar.scrollLeft += distance
44
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 43 ~ doScroll ~ scrollbar.scrollLeft", scrollbar.scrollLeft)
50
+ console.log(
51
+ '🚀 ~ file: nativeScroll.feature.js ~ line 43 ~ doScroll ~ scrollbar.scrollLeft',
52
+ scrollbar.scrollLeft
53
+ )
45
54
  } else {
46
55
  console.log('start smooth scroll')
47
56
  startSmoothScroll(scrollbar.scrollLeft, Date.now(), distance)
@@ -60,7 +69,10 @@ const NativeScroll = function (context) {
60
69
  percentage = timeLapsed / duration
61
70
 
62
71
  percentage = percentage > 1 ? 1 : percentage
63
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 61 ~ loopSmoothScroll ~ percentage", percentage)
72
+ console.log(
73
+ '🚀 ~ file: nativeScroll.feature.js ~ line 61 ~ loopSmoothScroll ~ percentage',
74
+ percentage
75
+ )
64
76
 
65
77
  scrollbar.scrollLeft = start_pos + distance * easeInOutCubic(percentage)
66
78
 
@@ -107,4 +119,4 @@ const NativeScroll = function (context) {
107
119
  }
108
120
  }
109
121
 
110
- export default NativeScroll
122
+ export default NativeScroll
@@ -1,5 +1,5 @@
1
1
  import { hr$, listenOnce, listen } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
  import ArdPlayerLoader from 'components/mediaplayer/ardPlayerLoader.subfeature'
4
4
 
5
5
  const MediaplayerLoader = function (context) {
@@ -8,7 +8,7 @@ const MediaplayerLoader = function (context) {
8
8
  const { options } = context,
9
9
  { element: rootElement } = context,
10
10
  isAutoplay = options.isAutoplay,
11
- teasersize = options.teasersize,
11
+ teaserSize = options.teaserSize,
12
12
  mediaplayerButton = hr$('.js-mediaplayer__button', rootElement.parentNode)[0]
13
13
 
14
14
  const removeVideoHover = function () {
@@ -19,7 +19,7 @@ const MediaplayerLoader = function (context) {
19
19
  const loadArdPlayerLoader = function () {
20
20
  new ArdPlayerLoader(options)
21
21
  removeVideoHover()
22
- uxAction('mediabuttonclick::' + teasersize + '::playButtonClick')
22
+ uxAction('mediabuttonclick::' + teaserSize + '::playButtonClick')
23
23
  }
24
24
 
25
25
  if (isAutoplay) {
@@ -1,5 +1,5 @@
1
1
  import { hr$, listen, unlisten, addLink } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
  import dialogPolyfill from 'dialog-polyfill'
4
4
 
5
5
  const Modal = (context) => {
@@ -1,5 +1,5 @@
1
1
  import { fireEvent, getJSONCookie, hr$, listen, setJSONCookie, unlisten } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
 
4
4
  const ShareCompact = (context) => {
5
5
  const { options } = context
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.38.3",
9
+ "version": "1.38.5",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,4 +1,4 @@
1
- import { isTrackingAllowed, pi } from 'base/tracking/atiHelper.subfeature'
1
+ import { isTrackingAllowed, pi } from 'base/tracking/pianoHelper.subfeature'
2
2
 
3
3
  const ATIMediaHelper = function (
4
4
  avType,
@@ -1,7 +1,7 @@
1
1
  import DatapolicyCookie from 'components/externalService/datapolicyCookie.subfeature'
2
2
  import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
3
3
  import { fireEvent, getJSONCookie, hr$, setJSONCookie, listen } from 'hrQuery'
4
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
4
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
5
5
 
6
6
  const DataPolicySettings = function (context) {
7
7
  const { options } = context,
@@ -24,7 +24,7 @@ const DataPolicySettings = function (context) {
24
24
  //isWebview = window.location.href.match(/(app)/i), //App URL ...app.hr.de
25
25
  cookie = {}
26
26
 
27
- console.log("gelaaaadeeeeeeeen")
27
+ console.log('gelaaaadeeeeeeeen')
28
28
  ///////////////////
29
29
  // OVERLAY START //
30
30
  ///////////////////
@@ -39,7 +39,7 @@ const DataPolicySettings = function (context) {
39
39
  } else {
40
40
  settingsButton.style.display = 'inline-flex'
41
41
  }
42
- } else {
42
+ } else {
43
43
  settingsButton.style.display = 'inline-flex'
44
44
  console.log('Button immer anzeigen, weil nicht App')
45
45
  }
@@ -1,4 +1,4 @@
1
- import { pi, uxAction } from 'base/tracking/atiHelper.subfeature'
1
+ import { pi, uxAction } from 'base/tracking/pianoHelper.subfeature'
2
2
  import { hr$, isString, listen, reinitializeFeature, simulateClickOn } from 'hrQuery'
3
3
  import $ from 'zepto-modules'
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { clearRequestInterval, hr$, requestInterval } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
 
4
4
  const NativeScroll = function (context) {
5
5
  console.log('loaded feature ...')
@@ -20,10 +20,13 @@ const NativeScroll = function (context) {
20
20
  let step = scrollbar.clientWidth - oneScrollbarItem.clientWidth * 1.5,
21
21
  direction = e.currentTarget.classList.contains('-left') ? -1 : 1,
22
22
  distance = direction * step
23
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 22 ~ doScroll ~ direction", direction)
24
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 24 ~ doScroll ~ distance", distance)
23
+ console.log(
24
+ '🚀 ~ file: nativeScroll.feature.js ~ line 22 ~ doScroll ~ direction',
25
+ direction
26
+ )
27
+ console.log('🚀 ~ file: nativeScroll.feature.js ~ line 24 ~ doScroll ~ distance', distance)
25
28
 
26
- console.log('scrollbar ', scrollbar)
29
+ console.log('scrollbar ', scrollbar)
27
30
  console.log('scrollbar width ', scrollbar.clientWidth)
28
31
  console.log('oneScrollbarItem ', oneScrollbarItem)
29
32
  console.log('oneScrollbarItem width ', oneScrollbarItem.clientWidth)
@@ -37,11 +40,17 @@ const NativeScroll = function (context) {
37
40
  if (isTeaser) uxAction('Eventkalender:: Pfeil links geklickt', 1)
38
41
  else uxAction('Eventkalender-Monat:: Pfeil links geklickt', 1)
39
42
  }
40
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 42 ~ doScroll ~ hasNativeSmoothScroll", hasNativeSmoothScroll)
43
+ console.log(
44
+ '🚀 ~ file: nativeScroll.feature.js ~ line 42 ~ doScroll ~ hasNativeSmoothScroll',
45
+ hasNativeSmoothScroll
46
+ )
41
47
 
42
48
  if (hasNativeSmoothScroll) {
43
49
  scrollbar.scrollLeft += distance
44
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 43 ~ doScroll ~ scrollbar.scrollLeft", scrollbar.scrollLeft)
50
+ console.log(
51
+ '🚀 ~ file: nativeScroll.feature.js ~ line 43 ~ doScroll ~ scrollbar.scrollLeft',
52
+ scrollbar.scrollLeft
53
+ )
45
54
  } else {
46
55
  console.log('start smooth scroll')
47
56
  startSmoothScroll(scrollbar.scrollLeft, Date.now(), distance)
@@ -60,7 +69,10 @@ const NativeScroll = function (context) {
60
69
  percentage = timeLapsed / duration
61
70
 
62
71
  percentage = percentage > 1 ? 1 : percentage
63
- console.log("🚀 ~ file: nativeScroll.feature.js ~ line 61 ~ loopSmoothScroll ~ percentage", percentage)
72
+ console.log(
73
+ '🚀 ~ file: nativeScroll.feature.js ~ line 61 ~ loopSmoothScroll ~ percentage',
74
+ percentage
75
+ )
64
76
 
65
77
  scrollbar.scrollLeft = start_pos + distance * easeInOutCubic(percentage)
66
78
 
@@ -107,4 +119,4 @@ const NativeScroll = function (context) {
107
119
  }
108
120
  }
109
121
 
110
- export default NativeScroll
122
+ export default NativeScroll
@@ -1,5 +1,5 @@
1
1
  import { hr$, listenOnce, listen } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
  import ArdPlayerLoader from 'components/mediaplayer/ardPlayerLoader.subfeature'
4
4
 
5
5
  const MediaplayerLoader = function (context) {
@@ -8,7 +8,7 @@ const MediaplayerLoader = function (context) {
8
8
  const { options } = context,
9
9
  { element: rootElement } = context,
10
10
  isAutoplay = options.isAutoplay,
11
- teasersize = options.teasersize,
11
+ teaserSize = options.teaserSize,
12
12
  mediaplayerButton = hr$('.js-mediaplayer__button', rootElement.parentNode)[0]
13
13
 
14
14
  const removeVideoHover = function () {
@@ -19,7 +19,7 @@ const MediaplayerLoader = function (context) {
19
19
  const loadArdPlayerLoader = function () {
20
20
  new ArdPlayerLoader(options)
21
21
  removeVideoHover()
22
- uxAction('mediabuttonclick::' + teasersize + '::playButtonClick')
22
+ uxAction('mediabuttonclick::' + teaserSize + '::playButtonClick')
23
23
  }
24
24
 
25
25
  if (isAutoplay) {
@@ -1,5 +1,5 @@
1
1
  import { hr$, listen, unlisten, addLink } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
  import dialogPolyfill from 'dialog-polyfill'
4
4
 
5
5
  const Modal = (context) => {
@@ -1,5 +1,5 @@
1
1
  import { fireEvent, getJSONCookie, hr$, listen, setJSONCookie, unlisten } from 'hrQuery'
2
- import { uxAction } from 'base/tracking/atiHelper.subfeature'
2
+ import { uxAction } from 'base/tracking/pianoHelper.subfeature'
3
3
 
4
4
  const ShareCompact = (context) => {
5
5
  const { options } = context
@@ -1,36 +0,0 @@
1
- import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
2
-
3
- const isTrackingAllowed = () => {
4
- const trackingCookie = new TrackingCookie()
5
- return trackingCookie.isTrackingAccepted('ati')
6
- }
7
-
8
- const uxAction = (label, secondLevelId) => {
9
- secondLevelId = secondLevelId || window.xtn2
10
- if (window.xt_click && isTrackingAllowed()) {
11
- window.xt_click('this', 'C', secondLevelId, label, 'A')
12
- }
13
- }
14
-
15
- const uxNavigation = (label, secondLevelId) => {
16
- secondLevelId = secondLevelId || window.xtn2
17
- if (window.xt_click && isTrackingAllowed()) {
18
- window.xt_click('this', 'C', secondLevelId, label, 'N')
19
- }
20
- }
21
-
22
- const pi = (label, secondLevelId) => {
23
- secondLevelId = secondLevelId || window.xtn2
24
- if (window.xt_click && isTrackingAllowed()) {
25
- window.xt_click('this', 'F', secondLevelId, label)
26
- }
27
- }
28
-
29
- const download = (label, secondLevelId) => {
30
- secondLevelId = secondLevelId || window.xtn2
31
- if (window.xt_click && isTrackingAllowed()) {
32
- window.xt_click('this', 'C', secondLevelId, label, 'T')
33
- }
34
- }
35
-
36
- export { isTrackingAllowed, uxAction, uxNavigation, pi, download }
@@ -1,36 +0,0 @@
1
- import TrackingCookie from 'components/externalService/trackingCookie.subfeature'
2
-
3
- const isTrackingAllowed = () => {
4
- const trackingCookie = new TrackingCookie()
5
- return trackingCookie.isTrackingAccepted('ati')
6
- }
7
-
8
- const uxAction = (label, secondLevelId) => {
9
- secondLevelId = secondLevelId || window.xtn2
10
- if (window.xt_click && isTrackingAllowed()) {
11
- window.xt_click('this', 'C', secondLevelId, label, 'A')
12
- }
13
- }
14
-
15
- const uxNavigation = (label, secondLevelId) => {
16
- secondLevelId = secondLevelId || window.xtn2
17
- if (window.xt_click && isTrackingAllowed()) {
18
- window.xt_click('this', 'C', secondLevelId, label, 'N')
19
- }
20
- }
21
-
22
- const pi = (label, secondLevelId) => {
23
- secondLevelId = secondLevelId || window.xtn2
24
- if (window.xt_click && isTrackingAllowed()) {
25
- window.xt_click('this', 'F', secondLevelId, label)
26
- }
27
- }
28
-
29
- const download = (label, secondLevelId) => {
30
- secondLevelId = secondLevelId || window.xtn2
31
- if (window.xt_click && isTrackingAllowed()) {
32
- window.xt_click('this', 'C', secondLevelId, label, 'T')
33
- }
34
- }
35
-
36
- export { isTrackingAllowed, uxAction, uxNavigation, pi, download }