@tilli-pro/cookieconsent-plugin 0.7.57 → 0.7.60
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_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/init.d.ts +1 -1
- package/dist/init.js +2 -2
- package/dist/react-components/CookieConsentInit.client.d.ts +2 -2
- package/dist/react-components/CookieConsentInit.client.d.ts.map +1 -1
- package/dist/react-components/CookieConsentInit.client.js +2 -2
- package/dist/react-components/CookieConsentInit.server.d.ts +2 -2
- package/dist/react-components/CookieConsentInit.server.d.ts.map +1 -1
- package/dist/react-components/CookieConsentInit.server.js +2 -2
- package/package.json +1 -1
- package/src/init.ts +2 -2
- package/src/react-components/CookieConsentInit.client.tsx +3 -3
- package/src/react-components/CookieConsentInit.server.tsx +3 -3
@@ -14,13 +14,13 @@ import "../styles/tenants/con-edison.css";
|
|
14
14
|
import "../styles/tenants/oru.css";
|
15
15
|
|
16
16
|
interface CookieConsentInitProps {
|
17
|
-
|
17
|
+
config: ConfigId;
|
18
18
|
}
|
19
19
|
|
20
20
|
export default function CookieConsentInit({
|
21
|
-
|
21
|
+
config,
|
22
22
|
}: Readonly<CookieConsentInitProps>) {
|
23
|
-
useCookieConsent(
|
23
|
+
useCookieConsent(config);
|
24
24
|
|
25
25
|
return null;
|
26
26
|
}
|
@@ -5,15 +5,15 @@ import { COOKIE_CONSENT_ENABLED } from "../_consts";
|
|
5
5
|
import CookieConsentInitClient from "./CookieConsentInit.client";
|
6
6
|
|
7
7
|
interface CookieConsentInitProps {
|
8
|
-
|
8
|
+
config: ConfigId;
|
9
9
|
}
|
10
10
|
|
11
11
|
/** we use a server component to handle dynamic injection of the script all together
|
12
12
|
* > basically, there's no need to inject the client-side cookie-consent script if it's not in scope */
|
13
13
|
export default function CookieConsentInit({
|
14
|
-
|
14
|
+
config,
|
15
15
|
}: Readonly<CookieConsentInitProps>) {
|
16
16
|
return COOKIE_CONSENT_ENABLED ? (
|
17
|
-
<CookieConsentInitClient {...{
|
17
|
+
<CookieConsentInitClient {...{ config }} />
|
18
18
|
) : null;
|
19
19
|
}
|