@dargmuesli/nuxt-cookie-control 2.0.0-beta.5 → 2.0.0-beta.6
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/methods.d.ts +2 -2
- package/dist/runtime/methods.mjs +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
|
11
11
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
12
12
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
13
13
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
14
|
-
const version = "2.0.0-beta.
|
|
14
|
+
const version = "2.0.0-beta.6";
|
|
15
15
|
|
|
16
16
|
const en = {
|
|
17
17
|
acceptAll: "Accept all",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { Cookie,
|
|
2
|
+
import { Cookie, ModuleOptions, Translatable } from './types';
|
|
3
3
|
export declare const useAcceptNecessary: () => () => void;
|
|
4
4
|
export declare const acceptNecessary: (enabled: Ref<Cookie[]>, consent: Ref<boolean>, necessaryCookies?: Cookie[]) => void;
|
|
5
|
-
export declare const useResolveTranslatable: (locale?: Locale) => (translatable: Translatable) => string;
|
|
5
|
+
export declare const useResolveTranslatable: (locale?: import("./types").Locale) => (translatable: Translatable) => string;
|
|
6
6
|
export declare const useSetConsent: () => () => void;
|
|
7
7
|
export declare const setConsent: ({ isInit, isConsentGiven, moduleOptions, cookiesEnabled, cookiesEnabledIds, }: {
|
|
8
8
|
isInit: boolean;
|
package/dist/runtime/methods.mjs
CHANGED
|
@@ -28,7 +28,7 @@ export const acceptNecessary = (enabled, consent, necessaryCookies = []) => {
|
|
|
28
28
|
export const useResolveTranslatable = (locale = LOCALE_DEFAULT) => {
|
|
29
29
|
return (translatable) => resolveTranslatable(translatable, locale);
|
|
30
30
|
};
|
|
31
|
-
const resolveTranslatable = (translatable, locale) => {
|
|
31
|
+
const resolveTranslatable = (translatable, locale = LOCALE_DEFAULT) => {
|
|
32
32
|
if (typeof translatable === "string")
|
|
33
33
|
return translatable;
|
|
34
34
|
if (!locale)
|