hr-design-system-handlebars 1.114.141 → 1.114.142

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.114.142 (Mon Jun 02 2025)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - fix bug in tiktok-embed [#1283](https://github.com/mumprod/hr-design-system-handlebars/pull/1283) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
1
13
  # v1.114.141 (Fri May 30 2025)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -3888,7 +3888,7 @@ article #commentList {
3888
3888
  border-bottom-color: var(--color-secondary-ds);
3889
3889
  }
3890
3890
  .counter-reset {
3891
- counter-reset: cnt1748625310570;
3891
+ counter-reset: cnt1748885057228;
3892
3892
  }
3893
3893
  .animate-delay-100 {
3894
3894
  --tw-animate-delay: 100ms;
@@ -4349,7 +4349,7 @@ html { scroll-behavior: smooth; }
4349
4349
  --tw-ring-color: rgba(255, 255, 255, 0.5);
4350
4350
  }
4351
4351
  .-ordered {
4352
- counter-increment: cnt1748625310570 1;
4352
+ counter-increment: cnt1748885057228 1;
4353
4353
  }
4354
4354
  .-ordered::before {
4355
4355
  position: absolute;
@@ -4367,7 +4367,7 @@ html { scroll-behavior: smooth; }
4367
4367
  --tw-text-opacity: 1;
4368
4368
  color: rgba(0, 0, 0, 1);
4369
4369
  color: rgba(0, 0, 0, var(--tw-text-opacity));
4370
- content: counter(cnt1748625310570);
4370
+ content: counter(cnt1748885057228);
4371
4371
  }
4372
4372
  /*! ****************************/
4373
4373
  /*! DataPolicy stuff */
@@ -379,7 +379,9 @@ const ExternalService = function (context) {
379
379
  }
380
380
 
381
381
  async function createTikTokEmbed() {
382
- loadScript('tiktok-js', '//www.tiktok.com/embed.js', true)
382
+ if (!document.getElementById('tiktok-js')) {
383
+ loadScript('tiktok-js', '//www.tiktok.com/embed.js', true)
384
+ }
383
385
  const tiktokEmbedDataUrl = `https://www.tiktok.com/oembed?url=${options.embedCode}`;
384
386
  const tiktokEmbedData = await fetch(tiktokEmbedDataUrl);
385
387
  const tiktokEmbedDataJson = await tiktokEmbedData.json();
@@ -388,7 +390,8 @@ const ExternalService = function (context) {
388
390
 
389
391
  const reloadTikTokEmbed = function() {
390
392
  if(!tiktokOnPage.length) {
391
- tiktokOnPage = Array.from(document.querySelectorAll('blockquote.tiktok-embed'),);
393
+ const selector = `blockquote.tiktok-embed[cite="${options.embedCode}"]`;
394
+ tiktokOnPage = Array.from(document.querySelectorAll(selector),);
392
395
  }
393
396
  if (typeof tiktokEmbed !== 'undefined' && tiktokOnPage.length) {
394
397
  tiktokEmbed.lib.render(tiktokOnPage);
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.114.141",
9
+ "version": "1.114.142",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -379,7 +379,9 @@ const ExternalService = function (context) {
379
379
  }
380
380
 
381
381
  async function createTikTokEmbed() {
382
- loadScript('tiktok-js', '//www.tiktok.com/embed.js', true)
382
+ if (!document.getElementById('tiktok-js')) {
383
+ loadScript('tiktok-js', '//www.tiktok.com/embed.js', true)
384
+ }
383
385
  const tiktokEmbedDataUrl = `https://www.tiktok.com/oembed?url=${options.embedCode}`;
384
386
  const tiktokEmbedData = await fetch(tiktokEmbedDataUrl);
385
387
  const tiktokEmbedDataJson = await tiktokEmbedData.json();
@@ -388,7 +390,8 @@ const ExternalService = function (context) {
388
390
 
389
391
  const reloadTikTokEmbed = function() {
390
392
  if(!tiktokOnPage.length) {
391
- tiktokOnPage = Array.from(document.querySelectorAll('blockquote.tiktok-embed'),);
393
+ const selector = `blockquote.tiktok-embed[cite="${options.embedCode}"]`;
394
+ tiktokOnPage = Array.from(document.querySelectorAll(selector),);
392
395
  }
393
396
  if (typeof tiktokEmbed !== 'undefined' && tiktokOnPage.length) {
394
397
  tiktokEmbed.lib.render(tiktokOnPage);