hr-design-system-handlebars 1.97.0 → 1.98.1

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.98.1 (Wed Aug 28 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - changed title text for print button [#1056](https://github.com/mumprod/hr-design-system-handlebars/pull/1056) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
13
+ # v1.98.0 (Tue Aug 27 2024)
14
+
15
+ #### 🚀 Enhancement
16
+
17
+ - :bug: Make sure that darkmode is only displayed, when it es explicetl… [#1055](https://github.com/mumprod/hr-design-system-handlebars/pull/1055) ([@szuelch](https://github.com/szuelch))
18
+
19
+ #### Authors: 1
20
+
21
+ - [@szuelch](https://github.com/szuelch)
22
+
23
+ ---
24
+
1
25
  # v1.97.0 (Tue Aug 27 2024)
2
26
 
3
27
  #### 🚀 Enhancement
@@ -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: cnt1724759480906;
3341
+ counter-reset: cnt1724857268492;
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: cnt1724759480906 1;
3749
+ counter-increment: cnt1724857268492 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(cnt1724759480906);
3765
+ content: counter(cnt1724857268492);
3766
3766
  }
3767
3767
  /*! ****************************/
3768
3768
  /*! DataPolicy stuff */
@@ -60,9 +60,9 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
60
60
  whenAvailable('ardplayer', function () {
61
61
  player = new ardplayer.Player(playerId.toString(), playerConfig, mediaCollection)
62
62
 
63
- if (isDarkmodeAllowed) {
64
- player.setLightMode(!darkModePreference.matches)
65
- }
63
+
64
+ player.setLightMode(isDarkmodeAllowed ? !darkModePreference.matches : true)
65
+
66
66
 
67
67
  if (isPlayerDebug) {
68
68
  ardplayer.debug(true, true, true, true)
@@ -132,7 +132,8 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
132
132
  }
133
133
 
134
134
  const handleThemeSwitch = function (event) {
135
- player.setLightMode(!event.matches)
135
+
136
+ player.setLightMode(isDarkmodeAllowed ? !event.matches : true)
136
137
  }
137
138
 
138
139
  const trackPlayerStart = function () {
@@ -104,7 +104,7 @@
104
104
  {{~#with this.printLink}}
105
105
  <li class="">
106
106
  <button class="{{#with ../_trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
107
- title="{{loca "share_copy_linktitle" }}"
107
+ title="{{loca "share_print_linktitle" }}"
108
108
  onclick="window.print()"
109
109
  {{#with ../_trackingData}}
110
110
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../../_socialSharingType ../../_socialSharingType "default" }}::print"}]}'
@@ -104,7 +104,7 @@
104
104
  {{~#with this.printLink}}
105
105
  <li class="">
106
106
  <button class="{{#with ../_trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
107
- title="{{loca "share_copy_linktitle" }}"
107
+ title="{{loca "share_print_linktitle" }}"
108
108
  onclick="window.print()"
109
109
  {{#with ../_trackingData}}
110
110
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../../_socialSharingType ../../_socialSharingType "default" }}::print"}]}'
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.97.0",
9
+ "version": "1.98.1",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -60,9 +60,9 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
60
60
  whenAvailable('ardplayer', function () {
61
61
  player = new ardplayer.Player(playerId.toString(), playerConfig, mediaCollection)
62
62
 
63
- if (isDarkmodeAllowed) {
64
- player.setLightMode(!darkModePreference.matches)
65
- }
63
+
64
+ player.setLightMode(isDarkmodeAllowed ? !darkModePreference.matches : true)
65
+
66
66
 
67
67
  if (isPlayerDebug) {
68
68
  ardplayer.debug(true, true, true, true)
@@ -132,7 +132,8 @@ const ArdPlayerLoader = function (options, trackingData, rootElement) {
132
132
  }
133
133
 
134
134
  const handleThemeSwitch = function (event) {
135
- player.setLightMode(!event.matches)
135
+
136
+ player.setLightMode(isDarkmodeAllowed ? !event.matches : true)
136
137
  }
137
138
 
138
139
  const trackPlayerStart = function () {
@@ -104,7 +104,7 @@
104
104
  {{~#with this.printLink}}
105
105
  <li class="">
106
106
  <button class="{{#with ../_trackingData}} js-load{{/with}} flex order-2 ds-button font-heading active:scale-95 w-8 h-8"
107
- title="{{loca "share_copy_linktitle" }}"
107
+ title="{{loca "share_print_linktitle" }}"
108
108
  onclick="window.print()"
109
109
  {{#with ../_trackingData}}
110
110
  data-hr-click-tracking='{"settings": [{"type":"uxAction","secondLevelId": "{{this.secondLevelId}}","clickLabel": "socialShareClick::{{if ../../_socialSharingType ../../_socialSharingType "default" }}::print"}]}'