@cookie-consent/svelte
Advanced tools
Comparing version 1.10.18 to 1.10.19
{ | ||
"name": "@cookie-consent/svelte", | ||
"version": "1.10.18", | ||
"version": "1.10.19", | ||
"description": "Svelte Bindings for CookieConsent", | ||
@@ -44,5 +44,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@cookie-consent/components": "^0.10.18" | ||
"@cookie-consent/components": "^0.10.19" | ||
}, | ||
"gitHead": "6f3d3ad7ec4bcf1e124ceea044eca800cb1d373c" | ||
"gitHead": "71e8afb5a98c5d7ad08f693514a788032e9b1c41" | ||
} |
@@ -39,3 +39,3 @@ /* eslint-disable */ | ||
/* generated by Svelte v3.32.3 */ | ||
/* generated by Svelte v3.38.1 */ | ||
import { | ||
@@ -94,3 +94,3 @@ SvelteComponent, | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 1024) { | ||
if (default_slot.p && (!current || dirty & /*$$scope*/ 1024)) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[10], dirty, null, null); | ||
@@ -97,0 +97,0 @@ } |
@@ -27,3 +27,3 @@ /* eslint-disable */ | ||
/** The name you want to give the consent cookie. | ||
/** The name you want to give the consent cookie. | ||
** Note this should be unique ** */ | ||
@@ -41,2 +41,5 @@ consentCookieName?: Components.CookieConsentBanner["consentCookieName"] | ||
buttonClasses?: Components.CookieConsentBanner["buttonClasses"] | ||
/** */ | ||
position?: Components.CookieConsentBanner["position"] | ||
} | ||
@@ -47,8 +50,2 @@ | ||
/** */ | ||
acceptButtonClicked: Parameters<JSX.CookieConsentBanner["onAcceptButtonClicked"]>[0] | ||
/** */ | ||
denyButtonClicked: Parameters<JSX.CookieConsentBanner["onDenyButtonClicked"]>[0] | ||
/** */ | ||
consented: Parameters<JSX.CookieConsentBanner["onConsented"]>[0] | ||
@@ -61,3 +58,3 @@ } | ||
/* generated by Svelte v3.32.3 */ | ||
/* generated by Svelte v3.38.1 */ | ||
import { | ||
@@ -72,3 +69,2 @@ SvelteComponent, | ||
listen, | ||
run_all, | ||
safe_not_equal, | ||
@@ -88,4 +84,4 @@ set_custom_element_data, | ||
let dispose; | ||
const default_slot_template = /*#slots*/ ctx[15].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[14], null); | ||
const default_slot_template = /*#slots*/ ctx[16].default; | ||
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[15], null); | ||
@@ -111,12 +107,7 @@ return { | ||
/*cookie_consent_banner_binding*/ ctx[16](cookie_consent_banner); | ||
/*cookie_consent_banner_binding*/ ctx[17](cookie_consent_banner); | ||
current = true; | ||
if (!mounted) { | ||
dispose = [ | ||
listen(cookie_consent_banner, "acceptButtonClicked", /*onEvent*/ ctx[8]), | ||
listen(cookie_consent_banner, "denyButtonClicked", /*onEvent*/ ctx[8]), | ||
listen(cookie_consent_banner, "consented", /*onEvent*/ ctx[8]) | ||
]; | ||
dispose = listen(cookie_consent_banner, "consented", /*onEvent*/ ctx[8]); | ||
mounted = true; | ||
@@ -127,4 +118,4 @@ } | ||
if (default_slot) { | ||
if (default_slot.p && dirty & /*$$scope*/ 16384) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[14], dirty, null, null); | ||
if (default_slot.p && (!current || dirty & /*$$scope*/ 32768)) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[15], dirty, null, null); | ||
} | ||
@@ -173,5 +164,5 @@ } | ||
if (default_slot) default_slot.d(detaching); | ||
/*cookie_consent_banner_binding*/ ctx[16](null); | ||
/*cookie_consent_banner_binding*/ ctx[17](null); | ||
mounted = false; | ||
run_all(dispose); | ||
dispose(); | ||
} | ||
@@ -196,6 +187,7 @@ }; | ||
let { buttonClasses = undefined } = $$props; | ||
let { position = undefined } = $$props; | ||
const getWebComponent = () => __ref; | ||
onMount(() => { | ||
$$invalidate(13, __mounted = true); | ||
$$invalidate(14, __mounted = true); | ||
}); | ||
@@ -230,17 +222,22 @@ | ||
if ("buttonClasses" in $$props) $$invalidate(11, buttonClasses = $$props.buttonClasses); | ||
if ("$$scope" in $$props) $$invalidate(14, $$scope = $$props.$$scope); | ||
if ("position" in $$props) $$invalidate(12, position = $$props.position); | ||
if ("$$scope" in $$props) $$invalidate(15, $$scope = $$props.$$scope); | ||
}; | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*__mounted, styles*/ 8704) { | ||
if ($$self.$$.dirty & /*__mounted, styles*/ 16896) { | ||
$: if (__mounted) setProp("styles", styles); | ||
} | ||
if ($$self.$$.dirty & /*__mounted, containerClasses*/ 9216) { | ||
if ($$self.$$.dirty & /*__mounted, containerClasses*/ 17408) { | ||
$: if (__mounted) setProp("containerClasses", containerClasses); | ||
} | ||
if ($$self.$$.dirty & /*__mounted, buttonClasses*/ 10240) { | ||
if ($$self.$$.dirty & /*__mounted, buttonClasses*/ 18432) { | ||
$: if (__mounted) setProp("buttonClasses", buttonClasses); | ||
} | ||
if ($$self.$$.dirty & /*__mounted, position*/ 20480) { | ||
$: if (__mounted) setProp("position", position); | ||
} | ||
}; | ||
@@ -261,2 +258,3 @@ | ||
buttonClasses, | ||
position, | ||
getWebComponent, | ||
@@ -297,3 +295,4 @@ __mounted, | ||
buttonClasses: 11, | ||
getWebComponent: 12 | ||
position: 12, | ||
getWebComponent: 13 | ||
}); | ||
@@ -303,3 +302,3 @@ } | ||
get getWebComponent(): HTMLCookieConsentBannerElement | undefined { | ||
return this.$$.ctx[12]; | ||
return this.$$.ctx[13]; | ||
} | ||
@@ -306,0 +305,0 @@ } |
@@ -0,0 +0,0 @@ /* eslint-disable */ |
@@ -0,0 +0,0 @@ /* eslint-disable */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19648