hr-design-system-handlebars 1.98.2 → 1.99.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.99.0 (Wed Sep 04 2024)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - :sparkles: add tracking for external links [#1060](https://github.com/mumprod/hr-design-system-handlebars/pull/1060) ([@mariokinzel](https://github.com/mariokinzel))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@mariokinzel](https://github.com/mariokinzel)
10
+
11
+ ---
12
+
13
+ # v1.98.3 (Wed Sep 04 2024)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Global var initialization [#1059](https://github.com/mumprod/hr-design-system-handlebars/pull/1059) ([@Paul-Atreidis](https://github.com/Paul-Atreidis))
18
+
19
+ #### Authors: 1
20
+
21
+ - [@Paul-Atreidis](https://github.com/Paul-Atreidis)
22
+
23
+ ---
24
+
1
25
  # v1.98.2 (Mon Sep 02 2024)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -3338,7 +3338,7 @@ article.indexTextDS .indexTextHighlighted .link {
3338
3338
  border-bottom-color: var(--color-secondary-ds);
3339
3339
  }
3340
3340
  .counter-reset {
3341
- counter-reset: cnt1725275744432;
3341
+ counter-reset: cnt1725454536863;
3342
3342
  }
3343
3343
  .hyphens-auto {
3344
3344
  -webkit-hyphens: auto;
@@ -3746,7 +3746,7 @@ article.indexTextDS .indexTextHighlighted .link {
3746
3746
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3747
3747
  }
3748
3748
  .-ordered {
3749
- counter-increment: cnt1725275744432 1;
3749
+ counter-increment: cnt1725454536863 1;
3750
3750
  }
3751
3751
  .-ordered::before {
3752
3752
  position: absolute;
@@ -3762,7 +3762,7 @@ article.indexTextDS .indexTextHighlighted .link {
3762
3762
  letter-spacing: .0125em;
3763
3763
  --tw-text-opacity: 1;
3764
3764
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3765
- content: counter(cnt1725275744432);
3765
+ content: counter(cnt1725454536863);
3766
3766
  }
3767
3767
  /*! ****************************/
3768
3768
  /*! DataPolicy stuff */
@@ -5,13 +5,16 @@ const DataWrapperContentRefresher = function (context, id, refreshIntervall, web
5
5
  let timer
6
6
  let uniqueID = id
7
7
  let intervall = refreshIntervall
8
+ let container
9
+ let script
10
+ let iframeRefresh
8
11
 
9
12
  if (webcomponent) {
10
- let container = document.getElementById('datawrapper-chart-' + uniqueID)
11
- let script = document.getElementById('datawrapper-component-js')
13
+ container = document.getElementById('datawrapper-chart-' + uniqueID)
14
+ script = document.getElementById('datawrapper-component-js')
12
15
  }
13
16
  else{
14
- let iframeRefresh = document.getElementById('datawrapper-chart-' + uniqueID)
17
+ iframeRefresh = document.getElementById('datawrapper-chart-' + uniqueID)
15
18
  }
16
19
 
17
20
  const createRefresher = function () {
@@ -10,7 +10,7 @@
10
10
  {{/if}}
11
11
  {{#if _link.isStaticUrl}}href="{{#if _link.site}}{{resourceUrl _link.url _site=_link.site}}{{else}}{{resourceUrl _link.url}}{{/if}}{{else}}href="{{_link.url}}{{/if}}{{#if this.hasComments}}#commentList{{/if}}"
12
12
  class="ds-link js-load{{#if _link.isUserConsentNeeded}} js-user-consent-needed{{/if}} {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
13
- {{#if _link.isTargetBlank}} target="_blank" rel="noopener{{#if _link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
13
+ {{#if _link.isTargetBlank}}data-hr-click-tracking='{"settings": [{"type":"uxAction", "clickLabel": "Externer-Link::{{this.sophoraId}} geklickt"}]}' target="_blank" rel="noopener{{#if _link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
14
14
  {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
15
15
  {{#> htmlProperties}}{{/htmlProperties}}
16
16
  >{{~> @partial-block ~}}</a>
@@ -10,7 +10,7 @@
10
10
  {{/if}}
11
11
  {{#if _link.isStaticUrl}}href="{{#if _link.site}}{{resourceUrl _link.url _site=_link.site}}{{else}}{{resourceUrl _link.url}}{{/if}}{{else}}href="{{_link.url}}{{/if}}{{#if this.hasComments}}#commentList{{/if}}"
12
12
  class="ds-link js-load{{#if _link.isUserConsentNeeded}} js-user-consent-needed{{/if}} {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
13
- {{#if _link.isTargetBlank}} target="_blank" rel="noopener{{#if _link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
13
+ {{#if _link.isTargetBlank}}data-hr-click-tracking='{"settings": [{"type":"uxAction", "clickLabel": "Externer-Link::{{this.sophoraId}} geklickt"}]}' target="_blank" rel="noopener{{#if _link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
14
14
  {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
15
15
  {{#> htmlProperties}}{{/htmlProperties}}
16
16
  >{{~> @partial-block ~}}</a>
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.98.2",
9
+ "version": "1.99.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -10,7 +10,7 @@
10
10
  {{/if}}
11
11
  {{#if _link.isStaticUrl}}href="{{#if _link.site}}{{resourceUrl _link.url _site=_link.site}}{{else}}{{resourceUrl _link.url}}{{/if}}{{else}}href="{{_link.url}}{{/if}}{{#if this.hasComments}}#commentList{{/if}}"
12
12
  class="ds-link js-load{{#if _link.isUserConsentNeeded}} js-user-consent-needed{{/if}} {{#if _isSelected}} {{defaultIfEmpty _selectedCssClass "-current"}}{{/if}}{{#if _css}} {{_css}}{{/if}} {{#> css}}{{/css}}"
13
- {{#if _link.isTargetBlank}} target="_blank" rel="noopener{{#if _link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
13
+ {{#if _link.isTargetBlank}}data-hr-click-tracking='{"settings": [{"type":"uxAction", "clickLabel": "Externer-Link::{{this.sophoraId}} geklickt"}]}' target="_blank" rel="noopener{{#if _link.hasNoReferrerFlag}} noreferrer{{/if}}"{{/if}}
14
14
  {{#if _isAriaHidden}} aria-hidden="true" tabindex="-1"{{/if}}
15
15
  {{#> htmlProperties}}{{/htmlProperties}}
16
16
  >{{~> @partial-block ~}}</a>
@@ -5,13 +5,16 @@ const DataWrapperContentRefresher = function (context, id, refreshIntervall, web
5
5
  let timer
6
6
  let uniqueID = id
7
7
  let intervall = refreshIntervall
8
+ let container
9
+ let script
10
+ let iframeRefresh
8
11
 
9
12
  if (webcomponent) {
10
- let container = document.getElementById('datawrapper-chart-' + uniqueID)
11
- let script = document.getElementById('datawrapper-component-js')
13
+ container = document.getElementById('datawrapper-chart-' + uniqueID)
14
+ script = document.getElementById('datawrapper-component-js')
12
15
  }
13
16
  else{
14
- let iframeRefresh = document.getElementById('datawrapper-chart-' + uniqueID)
17
+ iframeRefresh = document.getElementById('datawrapper-chart-' + uniqueID)
15
18
  }
16
19
 
17
20
  const createRefresher = function () {