@tilli-pro/cookieconsent-plugin 0.7.84 → 0.7.92

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.
Files changed (63) hide show
  1. package/.cache/tsbuildinfo.json +1 -1
  2. package/demos/demo.html +2 -2
  3. package/demos/demo.min.html +1 -1
  4. package/demos/demo.styles.dark.html +2 -2
  5. package/demos/demo.styles.dark.min.html +1 -1
  6. package/demos/demo.styles.nudge-website.dark.html +2 -2
  7. package/demos/demo.styles.nudge-website.dark.min.html +1 -1
  8. package/demos/demo.styles.nudge-website.light.html +2 -2
  9. package/demos/demo.styles.nudge-website.light.min.html +1 -1
  10. package/demos/demo.styles.nudge.dark.html +2 -2
  11. package/demos/demo.styles.nudge.dark.min.html +1 -1
  12. package/demos/demo.styles.nudge.light.html +2 -2
  13. package/demos/demo.styles.nudge.light.min.html +1 -1
  14. package/demos/demo.styles.tenant_con-edison.dark.html +2 -2
  15. package/demos/demo.styles.tenant_con-edison.dark.min.html +1 -1
  16. package/demos/demo.styles.tenant_con-edison.light.html +2 -2
  17. package/demos/demo.styles.tenant_con-edison.light.min.html +1 -1
  18. package/demos/demo.styles.tenant_freeman.dark.html +2 -2
  19. package/demos/demo.styles.tenant_freeman.dark.min.html +1 -1
  20. package/demos/demo.styles.tenant_freeman.light.html +2 -2
  21. package/demos/demo.styles.tenant_freeman.light.min.html +1 -1
  22. package/demos/demo.styles.tenant_frontier.dark.html +2 -2
  23. package/demos/demo.styles.tenant_frontier.dark.min.html +1 -1
  24. package/demos/demo.styles.tenant_frontier.light.html +2 -2
  25. package/demos/demo.styles.tenant_frontier.light.min.html +1 -1
  26. package/demos/demo.styles.tenant_oru.dark.html +2 -2
  27. package/demos/demo.styles.tenant_oru.dark.min.html +1 -1
  28. package/demos/demo.styles.tenant_oru.light.html +2 -2
  29. package/demos/demo.styles.tenant_oru.light.min.html +1 -1
  30. package/demos/demo.styles.tilli-pay.dark.html +2 -2
  31. package/demos/demo.styles.tilli-pay.dark.min.html +1 -1
  32. package/demos/demo.styles.tilli-pay.light.html +2 -2
  33. package/demos/demo.styles.tilli-pay.light.min.html +1 -1
  34. package/demos/demo.styles.tilli-website.dark.html +2 -2
  35. package/demos/demo.styles.tilli-website.dark.min.html +1 -1
  36. package/demos/demo.styles.tilli-website.light.html +2 -2
  37. package/demos/demo.styles.tilli-website.light.min.html +1 -1
  38. package/dist/config/gui-options/html-components/TilliXCallout.js +1 -1
  39. package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.d.ts.map +1 -1
  40. package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.js +14 -6
  41. package/dist/config/gui-options/scripts/injectUTM.d.ts +38 -0
  42. package/dist/config/gui-options/scripts/injectUTM.d.ts.map +1 -0
  43. package/dist/config/gui-options/scripts/injectUTM.js +64 -0
  44. package/dist/config/translations/de/index.js +5 -5
  45. package/dist/config/translations/en/index.js +5 -5
  46. package/dist/config/translations/es/index.js +5 -5
  47. package/dist/config/translations/fr/index.js +5 -5
  48. package/dist/config/translations/it/index.js +5 -5
  49. package/dist/init/utils.d.ts.map +1 -1
  50. package/dist/init/utils.js +3 -0
  51. package/dist/init.d.ts +1 -1
  52. package/dist/init.js +2 -2
  53. package/package.json +1 -1
  54. package/src/config/gui-options/html-components/TilliXCallout.ts +1 -1
  55. package/src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts +16 -7
  56. package/src/config/gui-options/scripts/injectUTM.ts +117 -0
  57. package/src/config/translations/de/index.ts +5 -5
  58. package/src/config/translations/en/index.ts +5 -5
  59. package/src/config/translations/es/index.ts +5 -5
  60. package/src/config/translations/fr/index.ts +5 -5
  61. package/src/config/translations/it/index.ts +5 -5
  62. package/src/init/utils.ts +6 -1
  63. package/src/init.ts +2 -2
@@ -17,15 +17,15 @@ const COOKIE_TABLE_HEADERS: CookieTableHeaders = {
17
17
  export default {
18
18
  consentModal: {
19
19
  title: `${CookieIcon()} Informativa sui Cookie`,
20
- description: `{{revisionMessage}}Utilizziamo i cookie per migliorare la tua esperienza sul nostro sito web. I cookie strettamente necessari sono essenziali per il funzionamento di questo sito e non possono essere disattivati. Gli altri cookie richiedono il tuo consenso. Cliccando su "Accetta tutto", acconsenti all'uso dei cookie. In alternativa, puoi gestire le tue preferenze sui cookie selezionando il pulsante "Gestisci preferenze" qui sotto. Puoi rivedere e aggiornare le tue preferenze sui cookie in qualsiasi momento tramite l'icona ${CookieIcon(1, 0.5, 0, -0.3333)} nell'angolo in basso a destra. Ti invitiamo a leggere la nostra <a href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a> per ulteriori informazioni.`,
20
+ description: `{{revisionMessage}}Utilizziamo i cookie per migliorare la tua esperienza sul nostro sito web. I cookie strettamente necessari sono essenziali per il funzionamento di questo sito e non possono essere disattivati. Gli altri cookie richiedono il tuo consenso. Cliccando su "Accetta tutto", acconsenti all'uso dei cookie. In alternativa, puoi gestire le tue preferenze sui cookie selezionando il pulsante "Gestisci preferenze" qui sotto. Puoi rivedere e aggiornare le tue preferenze sui cookie in qualsiasi momento tramite l'icona ${CookieIcon(1, 0.5, 0, -0.3333)} nell'angolo in basso a destra. Ti invitiamo a leggere la nostra <a id="tilli-cc-privacy-policy-link-consent" href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a> per ulteriori informazioni.`,
21
21
  acceptAllBtn: "Accetta tutto",
22
22
  acceptNecessaryBtn: "Solo strettamente necessari",
23
23
  showPreferencesBtn: "Gestisci preferenze",
24
24
  // closeIconLabel: "Chiudi", // generates a big "X" ("accept necessary") button – let's disable it for now (to force a choice)
25
- revisionMessage: `La nostra <a href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a> è stata recentemente aggiornata. <br><br> `,
25
+ revisionMessage: `La nostra <a id="tilli-cc-privacy-policy-link-revision" href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a> è stata recentemente aggiornata. <br><br> `,
26
26
  footer: `
27
- <a href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a>
28
- <a href="https://tilli.pro/industries/terms-and-conditions" target="_blank">Termini e Condizioni</a>
27
+ <a id="tilli-cc-privacy-policy-link-footer" href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a>
28
+ <a id="tilli-cc-terms-and-conditions-link-footer" href="https://tilli.pro/industries/terms-and-conditions" target="_blank">Termini e Condizioni</a>
29
29
 
30
30
  ${TilliXCallout(__LANGUAGE__)}
31
31
  `,
@@ -41,7 +41,7 @@ export default {
41
41
  {
42
42
  title: "Uso dei cookie",
43
43
  description:
44
- 'Utilizziamo i cookie per garantire la funzionalità di base del sito web e per migliorare la tua esperienza online. Puoi scegliere, per ogni categoria, se acconsentire o meno in qualsiasi momento. Per maggiori dettagli sui cookie e altri dati sensibili, consulta l\'intera <a href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a>.',
44
+ 'Utilizziamo i cookie per garantire la funzionalità di base del sito web e per migliorare la tua esperienza online. Puoi scegliere, per ogni categoria, se acconsentire o meno in qualsiasi momento. Per maggiori dettagli sui cookie e altri dati sensibili, consulta l\'intera <a id="tilli-cc-privacy-policy-link-preferences" href="https://tilli.pro/privacy-policy" target="_blank">Informativa sulla Privacy</a>.',
45
45
  },
46
46
 
47
47
  {
package/src/init/utils.ts CHANGED
@@ -3,6 +3,7 @@ import type * as CookieConsent from "@tilli-pro/cookieconsent";
3
3
 
4
4
  import { injectReactRemoveScrollToggle } from "../config/gui-options/scripts/forceDisableReactRemoveScroll";
5
5
  import { injectManageCookiePrefsButton } from "../config/gui-options/scripts/injectManageCookiePrefsButton";
6
+ import { injectUTMParametersIntoATags } from "../config/gui-options/scripts/injectUTM";
6
7
  import type { ShowPreferencesFn } from "../config/gui-options/scripts/showPreferences.d";
7
8
 
8
9
  export const makeInitFn = (
@@ -24,6 +25,9 @@ export const makeInitFn = (
24
25
  * the user from scrolling within the manage prefs dialog
25
26
  */
26
27
  injectReactRemoveScrollToggle();
28
+
29
+ /** finally, inject UTM parameters into the DOM (a tags) */
30
+ injectUTMParametersIntoATags();
27
31
  };
28
32
  };
29
33
 
@@ -48,7 +52,8 @@ export const stripInvalidLinkedCategoriesFromTranslations = (
48
52
 
49
53
  if (alsoClearCookieTables)
50
54
  filteredSections.forEach(
51
- (section: CookieConsent.Section) => (section.cookieTable = undefined),
55
+ (section: CookieConsent.Section) =>
56
+ (section.cookieTable = undefined),
52
57
  );
53
58
 
54
59
  return [
package/src/init.ts CHANGED
@@ -1,4 +1,4 @@
1
- import "https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@22be7e04499da9286d9d29e1fbe8c0ada57f9ff8/dist/cookieconsent.umd.js";
1
+ import "https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@db17994543047dd69ff56e082568e7eb83316061/dist/cookieconsent.umd.js";
2
2
 
3
3
  import type * as _CookieConsent from "@tilli-pro/cookieconsent";
4
4
  import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
@@ -18,7 +18,7 @@ declare global {
18
18
  }
19
19
  }
20
20
 
21
- const GIT_SHA = "22be7e04499da9286d9d29e1fbe8c0ada57f9ff8";
21
+ const GIT_SHA = "db17994543047dd69ff56e082568e7eb83316061";
22
22
  const GIT_REPO = "tilli-pro/cookieconsent";
23
23
  const GIT_CDN_BASE_URL = "https://cdn.jsdelivr.net/gh";
24
24
  const GIT_CDN_URL = `${GIT_CDN_BASE_URL}/${GIT_REPO}@${GIT_SHA}`;