@tilli-pro/cookieconsent-plugin 0.7.39 → 0.7.43
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.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_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/translations/de/index.d.ts.map +1 -1
- package/dist/config/translations/de/index.js +2 -1
- package/dist/config/translations/en/index.d.ts.map +1 -1
- package/dist/config/translations/en/index.js +2 -1
- package/dist/config/translations/es/index.d.ts.map +1 -1
- package/dist/config/translations/es/index.js +2 -1
- package/dist/config/translations/fr/index.d.ts.map +1 -1
- package/dist/config/translations/fr/index.js +2 -1
- package/dist/config/translations/it/index.d.ts.map +1 -1
- package/dist/config/translations/it/index.js +2 -1
- package/dist/init.d.ts +1 -1
- package/dist/init.js +2 -2
- package/dist/react-components/hooks/useCookieConsent.d.ts +0 -2
- package/dist/react-components/hooks/useCookieConsent.d.ts.map +1 -1
- package/dist/react-components/hooks/useCookieConsent.js +1 -4
- package/package.json +1 -1
- package/src/config/translations/de/index.ts +2 -1
- package/src/config/translations/en/index.ts +2 -1
- package/src/config/translations/es/index.ts +2 -1
- package/src/config/translations/fr/index.ts +2 -1
- package/src/config/translations/it/index.ts +2 -1
- package/src/init.ts +2 -2
- package/src/react-components/hooks/useCookieConsent.ts +1 -13
@@ -101,7 +101,8 @@ export default {
|
|
101
101
|
},
|
102
102
|
|
103
103
|
{
|
104
|
-
title: "Más información",
|
104
|
+
// title: "Más información",
|
105
|
+
title: "",
|
105
106
|
description:
|
106
107
|
'Para cualquier consulta relacionada con nuestra política de cookies y tus opciones, por favor <a href="mailto:privacy@tilli.pro">contáctanos</a>.',
|
107
108
|
},
|
@@ -101,7 +101,8 @@ export default {
|
|
101
101
|
},
|
102
102
|
|
103
103
|
{
|
104
|
-
title: "Plus d'informations",
|
104
|
+
// title: "Plus d'informations",
|
105
|
+
title: "",
|
105
106
|
description:
|
106
107
|
'Pour toute question relative à notre politique sur les cookies et vos choix, veuillez <a href="mailto:privacy@tilli.pro">nous contacter</a>.',
|
107
108
|
},
|
@@ -101,7 +101,8 @@ export default {
|
|
101
101
|
},
|
102
102
|
|
103
103
|
{
|
104
|
-
title: "Ulteriori informazioni",
|
104
|
+
// title: "Ulteriori informazioni",
|
105
|
+
title: "",
|
105
106
|
description:
|
106
107
|
'Per qualsiasi domanda relativa alla nostra politica sui cookie e alle tue scelte, ti preghiamo di <a href="mailto:privacy@tilli.pro">contattarci</a>.',
|
107
108
|
},
|
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@b58724e10b95d9490e8d22ea12c76e1422507b6c/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 = "b58724e10b95d9490e8d22ea12c76e1422507b6c";
|
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}`;
|
@@ -2,24 +2,12 @@
|
|
2
2
|
|
3
3
|
import { useEffect } from "react";
|
4
4
|
|
5
|
-
import
|
5
|
+
import { run } from "@tilli-pro/cookieconsent";
|
6
6
|
|
7
7
|
import { COOKIE_CONSENT_ENABLED } from "../../_consts";
|
8
8
|
import config from "../../config";
|
9
9
|
import { makeInitFn } from "../../init/utils";
|
10
10
|
|
11
|
-
declare const CookieConsent:
|
12
|
-
| {
|
13
|
-
run?: typeof _CookieConsent.run;
|
14
|
-
}
|
15
|
-
| undefined;
|
16
|
-
|
17
|
-
export const run =
|
18
|
-
typeof CookieConsent !== "undefined" &&
|
19
|
-
typeof CookieConsent.run === "function"
|
20
|
-
? CookieConsent.run
|
21
|
-
: (await import("@tilli-pro/cookieconsent")).run;
|
22
|
-
|
23
11
|
export default function useCookieConsent() {
|
24
12
|
useEffect(() => {
|
25
13
|
if (!COOKIE_CONSENT_ENABLED) return;
|