hr-design-system-handlebars 1.116.0 β†’ 1.117.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,15 @@
1
+ # v1.117.0 (Thu Jul 24 2025)
2
+
3
+ #### πŸš€ Enhancement
4
+
5
+ - :sparkles: Allow to define json settings in a child node of the trac… [#1298](https://github.com/mumprod/hr-design-system-handlebars/pull/1298) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
1
13
  # v1.116.0 (Tue Jul 22 2025)
2
14
 
3
15
  #### πŸš€ Enhancement
@@ -3891,7 +3891,7 @@ article #commentList {
3891
3891
  border-bottom-color: var(--color-secondary-ds);
3892
3892
  }
3893
3893
  .counter-reset {
3894
- counter-reset: cnt1753186903926;
3894
+ counter-reset: cnt1753359951923;
3895
3895
  }
3896
3896
  .animate-delay-100 {
3897
3897
  --tw-animate-delay: 100ms;
@@ -4352,7 +4352,7 @@ html { scroll-behavior: smooth; }
4352
4352
  --tw-ring-color: rgba(255, 255, 255, 0.5);
4353
4353
  }
4354
4354
  .-ordered {
4355
- counter-increment: cnt1753186903926 1;
4355
+ counter-increment: cnt1753359951923 1;
4356
4356
  }
4357
4357
  .-ordered::before {
4358
4358
  position: absolute;
@@ -4370,7 +4370,7 @@ html { scroll-behavior: smooth; }
4370
4370
  --tw-text-opacity: 1;
4371
4371
  color: rgba(0, 0, 0, 1);
4372
4372
  color: rgba(0, 0, 0, var(--tw-text-opacity));
4373
- content: counter(cnt1753186903926);
4373
+ content: counter(cnt1753359951923);
4374
4374
  }
4375
4375
  /*! ****************************/
4376
4376
  /*! DataPolicy stuff */
@@ -1,8 +1,11 @@
1
1
  import { download, pi, uxAction, uxNavigation } from 'base/tracking/pianoHelper.subfeature';
2
+ import { hr$ } from 'hrQuery'
2
3
 
3
4
  const ClickTracking = (context) => {
4
5
  const { options, element: elementToTrack } = context;
5
- const settings = options.settings || [];
6
+ const settingsFromChildNode = JSON.parse(hr$('[data-click-tracking-settings]', elementToTrack)[0]?.dataset.clickTrackingSettings || '{"settings":[]}')
7
+ .settings || '[]';
8
+ const settings = options.settings || settingsFromChildNode;
6
9
 
7
10
  const clickHandler = (event) => {
8
11
  settings.forEach(({ type, clickLabel, secondLevelId }) => {
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.116.0",
9
+ "version": "1.117.0",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,8 +1,11 @@
1
1
  import { download, pi, uxAction, uxNavigation } from 'base/tracking/pianoHelper.subfeature';
2
+ import { hr$ } from 'hrQuery'
2
3
 
3
4
  const ClickTracking = (context) => {
4
5
  const { options, element: elementToTrack } = context;
5
- const settings = options.settings || [];
6
+ const settingsFromChildNode = JSON.parse(hr$('[data-click-tracking-settings]', elementToTrack)[0]?.dataset.clickTrackingSettings || '{"settings":[]}')
7
+ .settings || '[]';
8
+ const settings = options.settings || settingsFromChildNode;
6
9
 
7
10
  const clickHandler = (event) => {
8
11
  settings.forEach(({ type, clickLabel, secondLevelId }) => {