hr-design-system-handlebars 1.26.2 → 1.27.0

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,27 @@
1
+ # v1.27.0 (Thu Jun 15 2023)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - FEATURE: Use new piano sdk to track clicks [#651](https://github.com/mumprod/hr-design-system-handlebars/pull/651) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
13
+ # v1.26.3 (Wed Jun 14 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - updates tailwind [#650](https://github.com/mumprod/hr-design-system-handlebars/pull/650) ([@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 1
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+
23
+ ---
24
+
1
25
  # v1.26.2 (Mon Jun 12 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -1,5 +1,5 @@
1
1
  /*
2
- ! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com
2
+ ! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com
3
3
  *//*
4
4
  1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
5
5
  2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
@@ -433,6 +433,12 @@ video {
433
433
  --tw-scale-y: 1;
434
434
  }
435
435
 
436
+ .from-black, .from-purple-50, .from-white, .to-purple-100, .md\:from-white {
437
+ --tw-gradient-from-position: ;
438
+ --tw-gradient-via-position: ;
439
+ --tw-gradient-to-position: ;
440
+ }
441
+
436
442
  .btn--secondary, .ds-focus, .ds-focus:not(:focus-visible), .ds-button, .ds-button:not(:focus-visible), .ds-button-round, .ds-button-round:not(:focus-visible), .ds-link, .ds-link:not(:focus-visible), .ds-teaser-focus, .ds-teaser-focus::before, .ds-cta > *, .ds-teaser-focus:not(:focus-visible)::before, .-isOpen, .shadow-inner, .shadow-md, .shadow-xl, .before\:shadow-stage::before {
437
443
  --tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);
438
444
  --tw-ring-shadow: 0 0 rgba(0,0,0,0);
@@ -2063,28 +2069,21 @@ video {
2063
2069
  }
2064
2070
  .from-black {
2065
2071
  --tw-gradient-from: #000000 var(--tw-gradient-from-position);
2066
- --tw-gradient-from-position: ;
2067
- --tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-from-position);
2068
- --tw-gradient-to-position: ;
2072
+ --tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);
2069
2073
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2070
2074
  }
2071
2075
  .from-purple-50 {
2072
2076
  --tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
2073
- --tw-gradient-from-position: ;
2074
- --tw-gradient-to: rgba(250, 245, 255, 0) var(--tw-gradient-from-position);
2075
- --tw-gradient-to-position: ;
2077
+ --tw-gradient-to: rgba(250, 245, 255, 0) var(--tw-gradient-to-position);
2076
2078
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2077
2079
  }
2078
2080
  .from-white {
2079
2081
  --tw-gradient-from: #ffffff var(--tw-gradient-from-position);
2080
- --tw-gradient-from-position: ;
2081
- --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-from-position);
2082
- --tw-gradient-to-position: ;
2082
+ --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);
2083
2083
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
2084
2084
  }
2085
2085
  .to-purple-100 {
2086
2086
  --tw-gradient-to: #f3e8ff var(--tw-gradient-to-position);
2087
- --tw-gradient-to-position: ;
2088
2087
  }
2089
2088
  .fill-blue-congress {
2090
2089
  fill: #005293;
@@ -2758,7 +2757,7 @@ video {
2758
2757
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
2759
2758
  }
2760
2759
  .counter-reset {
2761
- counter-reset: cnt1686604269121;
2760
+ counter-reset: cnt1686833293811;
2762
2761
  }
2763
2762
  .hyphens-auto {
2764
2763
  -webkit-hyphens: auto;
@@ -2994,7 +2993,7 @@ video {
2994
2993
  --tw-ring-color: rgba(255, 255, 255, 0.5);
2995
2994
  }
2996
2995
  .-ordered {
2997
- counter-increment: cnt1686604269121 1;
2996
+ counter-increment: cnt1686833293811 1;
2998
2997
  }
2999
2998
  .-ordered::before {
3000
2999
  position: absolute;
@@ -3010,7 +3009,7 @@ video {
3010
3009
  letter-spacing: .0125em;
3011
3010
  --tw-text-opacity: 1;
3012
3011
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3013
- content: counter(cnt1686604269121);
3012
+ content: counter(cnt1686833293811);
3014
3013
  }
3015
3014
  /*! ****************************/
3016
3015
  /*! text-shadow */
@@ -4715,9 +4714,7 @@ video {
4715
4714
 
4716
4715
  .md\:from-white {
4717
4716
  --tw-gradient-from: #ffffff var(--tw-gradient-from-position);
4718
- --tw-gradient-from-position: ;
4719
- --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-from-position);
4720
- --tw-gradient-to-position: ;
4717
+ --tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);
4721
4718
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
4722
4719
  }
4723
4720
 
@@ -6,30 +6,38 @@ const isTrackingAllowed = () => {
6
6
  }
7
7
 
8
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')
9
+ secondLevelId = secondLevelId || pageDisplayConfig.site_level2
10
+ if (pa && isTrackingAllowed()) {
11
+ pa.sendEvent('click.action', {
12
+ click: label,
13
+ site_level2: secondLevelId,
14
+ })
12
15
  }
13
16
  }
14
17
 
15
18
  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
+ secondLevelId = secondLevelId || pageDisplayConfig.site_level2
20
+ if (pa && isTrackingAllowed()) {
21
+ pa.sendEvent('click.navigation', {
22
+ click: label,
23
+ site_level2: secondLevelId,
24
+ })
19
25
  }
20
26
  }
21
27
 
22
28
  const pi = (label, secondLevelId) => {
23
- secondLevelId = secondLevelId || window.xtn2
24
- if (window.xt_click && isTrackingAllowed()) {
25
- window.xt_click('this', 'F', secondLevelId, label)
29
+ if (pa && isTrackingAllowed()) {
30
+ pa.sendEvent('page.display', pageDisplayConfig)
26
31
  }
27
32
  }
28
33
 
29
34
  const download = (label, secondLevelId) => {
30
- secondLevelId = secondLevelId || window.xtn2
31
- if (window.xt_click && isTrackingAllowed()) {
32
- window.xt_click('this', 'C', secondLevelId, label, 'T')
35
+ secondLevelId = secondLevelId || pageDisplayConfig.site_level2
36
+ if (pa && isTrackingAllowed()) {
37
+ pa.sendEvent('click.download', {
38
+ click: label,
39
+ site_level2: secondLevelId,
40
+ })
33
41
  }
34
42
  }
35
43
 
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.26.2",
9
+ "version": "1.27.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -6,30 +6,38 @@ const isTrackingAllowed = () => {
6
6
  }
7
7
 
8
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')
9
+ secondLevelId = secondLevelId || pageDisplayConfig.site_level2
10
+ if (pa && isTrackingAllowed()) {
11
+ pa.sendEvent('click.action', {
12
+ click: label,
13
+ site_level2: secondLevelId,
14
+ })
12
15
  }
13
16
  }
14
17
 
15
18
  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
+ secondLevelId = secondLevelId || pageDisplayConfig.site_level2
20
+ if (pa && isTrackingAllowed()) {
21
+ pa.sendEvent('click.navigation', {
22
+ click: label,
23
+ site_level2: secondLevelId,
24
+ })
19
25
  }
20
26
  }
21
27
 
22
28
  const pi = (label, secondLevelId) => {
23
- secondLevelId = secondLevelId || window.xtn2
24
- if (window.xt_click && isTrackingAllowed()) {
25
- window.xt_click('this', 'F', secondLevelId, label)
29
+ if (pa && isTrackingAllowed()) {
30
+ pa.sendEvent('page.display', pageDisplayConfig)
26
31
  }
27
32
  }
28
33
 
29
34
  const download = (label, secondLevelId) => {
30
- secondLevelId = secondLevelId || window.xtn2
31
- if (window.xt_click && isTrackingAllowed()) {
32
- window.xt_click('this', 'C', secondLevelId, label, 'T')
35
+ secondLevelId = secondLevelId || pageDisplayConfig.site_level2
36
+ if (pa && isTrackingAllowed()) {
37
+ pa.sendEvent('click.download', {
38
+ click: label,
39
+ site_level2: secondLevelId,
40
+ })
33
41
  }
34
42
  }
35
43