@tilli-pro/cookieconsent-plugin 0.7.80 → 0.7.91
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/.cache/tsbuildinfo.json +1 -1
- package/demos/demo.html +2 -2
- package/demos/demo.min.html +1 -1
- package/demos/demo.styles.dark.html +2 -2
- package/demos/demo.styles.dark.min.html +1 -1
- package/demos/demo.styles.nudge-website.dark.html +2 -2
- package/demos/demo.styles.nudge-website.dark.min.html +1 -1
- package/demos/demo.styles.nudge-website.light.html +2 -2
- package/demos/demo.styles.nudge-website.light.min.html +1 -1
- package/demos/demo.styles.nudge.dark.html +2 -2
- package/demos/demo.styles.nudge.dark.min.html +1 -1
- package/demos/demo.styles.nudge.light.html +2 -2
- package/demos/demo.styles.nudge.light.min.html +1 -1
- package/demos/demo.styles.tenant_con-edison.dark.html +2 -2
- package/demos/demo.styles.tenant_con-edison.dark.min.html +1 -1
- package/demos/demo.styles.tenant_con-edison.light.html +2 -2
- package/demos/demo.styles.tenant_con-edison.light.min.html +1 -1
- package/demos/demo.styles.tenant_freeman.dark.html +2 -2
- package/demos/demo.styles.tenant_freeman.dark.min.html +1 -1
- package/demos/demo.styles.tenant_freeman.light.html +2 -2
- package/demos/demo.styles.tenant_freeman.light.min.html +1 -1
- package/demos/demo.styles.tenant_frontier.dark.html +2 -2
- package/demos/demo.styles.tenant_frontier.dark.min.html +1 -1
- package/demos/demo.styles.tenant_frontier.light.html +2 -2
- package/demos/demo.styles.tenant_frontier.light.min.html +1 -1
- package/demos/demo.styles.tenant_oru.dark.html +2 -2
- package/demos/demo.styles.tenant_oru.dark.min.html +1 -1
- package/demos/demo.styles.tenant_oru.light.html +2 -2
- package/demos/demo.styles.tenant_oru.light.min.html +1 -1
- package/demos/demo.styles.tilli-pay.dark.html +2 -2
- package/demos/demo.styles.tilli-pay.dark.min.html +1 -1
- package/demos/demo.styles.tilli-pay.light.html +2 -2
- package/demos/demo.styles.tilli-pay.light.min.html +1 -1
- package/demos/demo.styles.tilli-website.dark.html +2 -2
- package/demos/demo.styles.tilli-website.dark.min.html +1 -1
- package/demos/demo.styles.tilli-website.light.html +2 -2
- package/demos/demo.styles.tilli-website.light.min.html +1 -1
- package/dist/config/gui-options/html-components/TilliXCallout.js +1 -1
- package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.d.ts.map +1 -1
- package/dist/config/gui-options/scripts/cookiePrefsButtonDragObserver.js +14 -6
- package/dist/config/gui-options/scripts/injectUTM.d.ts +38 -0
- package/dist/config/gui-options/scripts/injectUTM.d.ts.map +1 -0
- package/dist/config/gui-options/scripts/injectUTM.js +61 -0
- package/dist/config/translations/de/index.js +5 -5
- package/dist/config/translations/en/index.js +5 -5
- package/dist/config/translations/es/index.js +5 -5
- package/dist/config/translations/fr/index.js +5 -5
- package/dist/config/translations/it/index.js +5 -5
- package/dist/init/tilli-pay.config.d.ts.map +1 -1
- package/dist/init/tilli-pay.config.js +20 -0
- package/dist/init/utils.d.ts.map +1 -1
- package/dist/init/utils.js +3 -0
- package/dist/init.d.ts +1 -1
- package/dist/init.js +2 -2
- package/package.json +1 -1
- package/src/config/gui-options/html-components/TilliXCallout.ts +1 -1
- package/src/config/gui-options/scripts/cookiePrefsButtonDragObserver.ts +16 -7
- package/src/config/gui-options/scripts/injectUTM.ts +112 -0
- package/src/config/translations/de/index.ts +5 -5
- package/src/config/translations/en/index.ts +5 -5
- package/src/config/translations/es/index.ts +5 -5
- package/src/config/translations/fr/index.ts +5 -5
- package/src/config/translations/it/index.ts +5 -5
- package/src/init/tilli-pay.config.ts +21 -0
- package/src/init/utils.ts +6 -1
- 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()} Notification sur les cookies`,
|
20
|
-
description: `{{revisionMessage}}Nous utilisons des cookies pour améliorer votre expérience sur notre site. Les cookies strictement nécessaires sont essentiels au fonctionnement de ce site et ne peuvent pas être désactivés. Les autres cookies nécessitent votre consentement. En cliquant sur "Tout accepter", vous consentez à l'utilisation de nos cookies. Vous pouvez également gérer vos préférences en matière de cookies en sélectionnant le bouton "Gérer les préférences" ci-dessous. Vous pouvez consulter et mettre à jour vos préférences relatives aux cookies à tout moment via l'icône ${CookieIcon(1, 0.5, 0, -0.3333)} en bas à droite. Veuillez lire notre <a href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a> pour plus d'informations.`,
|
20
|
+
description: `{{revisionMessage}}Nous utilisons des cookies pour améliorer votre expérience sur notre site. Les cookies strictement nécessaires sont essentiels au fonctionnement de ce site et ne peuvent pas être désactivés. Les autres cookies nécessitent votre consentement. En cliquant sur "Tout accepter", vous consentez à l'utilisation de nos cookies. Vous pouvez également gérer vos préférences en matière de cookies en sélectionnant le bouton "Gérer les préférences" ci-dessous. Vous pouvez consulter et mettre à jour vos préférences relatives aux cookies à tout moment via l'icône ${CookieIcon(1, 0.5, 0, -0.3333)} en bas à droite. Veuillez lire notre <a id="tilli-cc-privacy-policy-link-consent" href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a> pour plus d'informations.`,
|
21
21
|
acceptAllBtn: "Tout accepter",
|
22
22
|
acceptNecessaryBtn: "Strictement nécessaires uniquement",
|
23
23
|
showPreferencesBtn: "Gérer les préférences",
|
24
24
|
// closeIconLabel: "Fermer", // generates a big "X" ("accept necessary") button – let's disable it for now (to force a choice)
|
25
|
-
revisionMessage: `Notre <a href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a> a récemment été mise à jour. <br><br> `,
|
25
|
+
revisionMessage: `Notre <a id="tilli-cc-privacy-policy-link-revision" href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a> a récemment été mise à jour. <br><br> `,
|
26
26
|
footer: `
|
27
|
-
<a href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a>
|
28
|
-
<a href="https://tilli.pro/industries/terms-and-conditions" target="_blank">Conditions générales</a>
|
27
|
+
<a id="tilli-cc-privacy-policy-link-footer" href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a>
|
28
|
+
<a id="tilli-cc-terms-and-conditions-link-footer" href="https://tilli.pro/industries/terms-and-conditions" target="_blank">Conditions générales</a>
|
29
29
|
|
30
30
|
${TilliXCallout(__LANGUAGE__)}
|
31
31
|
`,
|
@@ -41,7 +41,7 @@ export default {
|
|
41
41
|
{
|
42
42
|
title: "Utilisation des cookies",
|
43
43
|
description:
|
44
|
-
'Nous utilisons des cookies pour garantir les fonctionnalités de base du site et améliorer votre expérience en ligne. Vous pouvez choisir d’activer/désactiver chaque catégorie à tout moment. Pour plus de détails sur les cookies et autres données sensibles, veuillez consulter la <a href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a>.',
|
44
|
+
'Nous utilisons des cookies pour garantir les fonctionnalités de base du site et améliorer votre expérience en ligne. Vous pouvez choisir d’activer/désactiver chaque catégorie à tout moment. Pour plus de détails sur les cookies et autres données sensibles, veuillez consulter la <a id="tilli-cc-privacy-policy-link-preferences" href="https://tilli.pro/privacy-policy" target="_blank">Politique de confidentialité</a>.',
|
45
45
|
},
|
46
46
|
|
47
47
|
{
|
@@ -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
|
{
|
@@ -2,12 +2,33 @@ import type { CookieConsentConfig } from "@tilli-pro/cookieconsent";
|
|
2
2
|
|
3
3
|
import _config from "../config";
|
4
4
|
import { stripInvalidLinkedCategoriesFromTranslations } from "./utils";
|
5
|
+
import { LABELS } from "../config/categories/labels";
|
6
|
+
import cookies from "../config/cookies";
|
7
|
+
|
8
|
+
// TODO: auto-detect detect language
|
9
|
+
const __LANGUAGE__ = "en"; // "English" ("English")
|
5
10
|
|
6
11
|
const categories: CookieConsentConfig["categories"] = {
|
7
12
|
necessary: {
|
8
13
|
enabled: true, // "necessary" category is always enabled.
|
9
14
|
readOnly: true,
|
10
15
|
},
|
16
|
+
analytics: {
|
17
|
+
services: {
|
18
|
+
/** Datadog (RUM) */
|
19
|
+
datadog: {
|
20
|
+
label: LABELS.en.analytics.datadog,
|
21
|
+
cookies: [...cookies.analytics.datadog(__LANGUAGE__)],
|
22
|
+
},
|
23
|
+
},
|
24
|
+
autoClear: {
|
25
|
+
cookies: [
|
26
|
+
{
|
27
|
+
name: /^(_tilli_analytics_dd_)/, // Datadog (RUM)
|
28
|
+
},
|
29
|
+
],
|
30
|
+
},
|
31
|
+
},
|
11
32
|
};
|
12
33
|
|
13
34
|
// TODO: DRY further w/ `./brf.ts`
|
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) =>
|
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@
|
1
|
+
import "https://cdn.jsdelivr.net/gh/tilli-pro/cookieconsent@709b2aa2f29196fec1e1e4576d12dc78f56e1088/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 = "
|
21
|
+
const GIT_SHA = "709b2aa2f29196fec1e1e4576d12dc78f56e1088";
|
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}`;
|