hr-design-system-handlebars 1.68.3 → 1.68.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.
@@ -17,9 +17,9 @@ import '../src/assets/tailwind.css'
17
17
  import { CheckCSS } from 'checkcss';
18
18
 
19
19
  configureActions({
20
- clearOnStoryChange: true,
21
- });
22
-
20
+ clearOnStoryChange: true,
21
+ });
22
+
23
23
  // Create CheckCSS instance
24
24
  const checkcss = new CheckCSS();
25
25
 
@@ -34,8 +34,8 @@ checkcss.onClassnameDetected = function (classname, element) {
34
34
  checkcss.onUndefinedClassname = function (classname) {
35
35
  console.log(
36
36
  `checkcss: No CSS rule for .${classname}`,
37
- );
38
- };
37
+ );
38
+ };
39
39
 
40
40
  checkcss.scan().watch();
41
41
 
@@ -43,7 +43,7 @@ const panelInclude = setConsoleOptions({}).panelInclude;
43
43
 
44
44
  setConsoleOptions({
45
45
  panelInclude: [...panelInclude, /checkcss/],
46
- });
46
+ });
47
47
 
48
48
 
49
49
  function loadDelayedImages() {
@@ -74,16 +74,10 @@ let eventSrcUrl = null
74
74
 
75
75
  document.addEventListener('DOMContentLoaded', function (event) {
76
76
  console.log('DOM fully loaded and parsed')
77
- if (eventSrcUrl != event.srcElement.URL) {
78
- eventSrcUrl = event.srcElement.URL
79
-
80
- console.log('Start feature initialization')
77
+ console.log('Start feature initialization')
81
78
 
82
- Initializer.run(document, loadFeature)
83
- setTimeout(loadDelayedImages, 200)
84
- } else {
85
- console.log('second DOMContentLoaded Event was blocked!')
86
- }
79
+ Initializer.run(document, loadFeature)
80
+ setTimeout(loadDelayedImages, 200)
87
81
  })
88
82
 
89
83
  /*if (process.env.NODE_ENV !== 'production') {
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.68.5 (Wed May 29 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - :bug: Make sure that the regex in the loca helper only matches when it recognizes numbers in between opening and closing curly braces. [#931](https://github.com/mumprod/hr-design-system-handlebars/pull/931) ([@szuelch](https://github.com/szuelch))
6
+
7
+ #### Authors: 1
8
+
9
+ - [@szuelch](https://github.com/szuelch)
10
+
11
+ ---
12
+
13
+ # v1.68.4 (Tue May 28 2024)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - general line heigt 1.5 in copytext [#924](https://github.com/mumprod/hr-design-system-handlebars/pull/924) ([@StefanVesper](https://github.com/StefanVesper))
18
+
19
+ #### Authors: 1
20
+
21
+ - SonicSoulSurfer ([@StefanVesper](https://github.com/StefanVesper))
22
+
23
+ ---
24
+
1
25
  # v1.68.3 (Tue May 28 2024)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -430,7 +430,7 @@ var helpers = {
430
430
  const args = Array.prototype.slice.call(arguments);
431
431
  // Extract params from arguments object. No params are present when length of arguments array is <= 2
432
432
  let params = args.length > 2 ? args.slice(1, args.length - 1) : []
433
- const regex = /(?<property>{<%(?<propertyKey>.*?)%>})|(?<userConsent>{nuc\s(?<userConsentUrl>.*?)\snuc})|(?<param>{(?<paramKey>.*?)})/g
433
+ const regex = /(?<property>{<%(?<propertyKey>.*?)%>})|(?<userConsent>{nuc\s(?<userConsentUrl>.*?)\snuc})|(?<param>{(?<paramKey>\d*?)})/g
434
434
  const matches = loca.matchAll(regex)
435
435
  const placeHolders = []
436
436
  for (const match of matches) {
@@ -2986,6 +2986,9 @@ article.indexTextDS .indexTextHighlighted .link {
2986
2986
  .leading-\[34px\] {
2987
2987
  line-height: 34px;
2988
2988
  }
2989
+ .leading-normal {
2990
+ line-height: 1.5;
2991
+ }
2989
2992
  .tracking-wide {
2990
2993
  letter-spacing: .0125em;
2991
2994
  }
@@ -3347,7 +3350,7 @@ article.indexTextDS .indexTextHighlighted .link {
3347
3350
  border-bottom-color: var(--color-secondary-ds);
3348
3351
  }
3349
3352
  .counter-reset {
3350
- counter-reset: cnt1716893696134;
3353
+ counter-reset: cnt1716980654734;
3351
3354
  }
3352
3355
  .hyphens-auto {
3353
3356
  -webkit-hyphens: auto;
@@ -3726,7 +3729,7 @@ article.indexTextDS .indexTextHighlighted .link {
3726
3729
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3727
3730
  }
3728
3731
  .-ordered {
3729
- counter-increment: cnt1716893696134 1;
3732
+ counter-increment: cnt1716980654734 1;
3730
3733
  }
3731
3734
  .-ordered::before {
3732
3735
  position: absolute;
@@ -3742,7 +3745,7 @@ article.indexTextDS .indexTextHighlighted .link {
3742
3745
  letter-spacing: .0125em;
3743
3746
  --tw-text-opacity: 1;
3744
3747
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3745
- content: counter(cnt1716893696134);
3748
+ content: counter(cnt1716980654734);
3746
3749
  }
3747
3750
  /*! ****************************/
3748
3751
  /*! DataPolicy stuff */
@@ -1,9 +1,9 @@
1
1
  {{#if this.isText}}
2
- <p class="copytextParagraphDS mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
2
+ <p class="mt-6 text-lg leading-normal copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
3
3
  {{/if}}
4
4
  {{#if this.isUl}}
5
- <ul class="copytextParagraphDS mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
5
+ <ul class="mt-6 ml-5 text-lg leading-normal list-disc copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
6
6
  {{/if}}
7
7
  {{#if this.isOl}}
8
- <ol class="copytextParagraphDS mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
8
+ <ol class="mt-6 ml-5 text-lg leading-normal list-decimal copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
9
9
  {{/if}}
@@ -1,9 +1,9 @@
1
1
  {{#if this.isText}}
2
- <p class="copytextParagraphDS mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
2
+ <p class="mt-6 text-lg leading-normal copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
3
3
  {{/if}}
4
4
  {{#if this.isUl}}
5
- <ul class="copytextParagraphDS mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
5
+ <ul class="mt-6 ml-5 text-lg leading-normal list-disc copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
6
6
  {{/if}}
7
7
  {{#if this.isOl}}
8
- <ol class="copytextParagraphDS mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
8
+ <ol class="mt-6 ml-5 text-lg leading-normal list-decimal copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
9
9
  {{/if}}
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.68.3",
9
+ "version": "1.68.5",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -1,9 +1,9 @@
1
1
  {{#if this.isText}}
2
- <p class="copytextParagraphDS mt-6 text-lg leading-[1.625rem] sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</p>
2
+ <p class="mt-6 text-lg leading-normal copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</p>
3
3
  {{/if}}
4
4
  {{#if this.isUl}}
5
- <ul class="copytextParagraphDS mt-6 ml-5 text-lg leading-[1.625rem] list-disc sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ul>
5
+ <ul class="mt-6 ml-5 text-lg leading-normal list-disc copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</ul>
6
6
  {{/if}}
7
7
  {{#if this.isOl}}
8
- <ol class="copytextParagraphDS mt-6 ml-5 text-lg leading-[1.625rem] list-decimal sm480:text-xl sm480:leading-normal dark:text-text-dark">{{{this.text}}}</ol>
8
+ <ol class="mt-6 ml-5 text-lg leading-normal list-decimal copytextParagraphDS sm480:text-xl dark:text-text-dark">{{{this.text}}}</ol>
9
9
  {{/if}}
@@ -40,6 +40,7 @@ export default {
40
40
  chromatic: {
41
41
  viewports: [360, 768, 1024],
42
42
  diffThreshold: 0.3,
43
+ delay: 2000,
43
44
  },
44
45
 
45
46
  layout: 'fullscreen',
@@ -85,4 +86,7 @@ export const MitArtikel = {
85
86
  render: Template3.bind({}),
86
87
  name: 'Mit Artikel',
87
88
  args: NavigationDataWithBreadcrumb,
89
+ parameters: {
90
+ chromatic: { delay: 2000 }
91
+ }
88
92
  }