@dargmuesli/nuxt-cookie-control 2.0.1 → 2.1.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
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.1";
14
+ const version = "2.1.0";
15
15
 
16
16
  const en = {
17
17
  acceptAll: "Accept all",
@@ -14,6 +14,10 @@
14
14
  </slot>
15
15
  </div>
16
16
  <div class="cookieControl__BarButtons">
17
+ <button
18
+ @click="setConsent({ reload: false })"
19
+ v-text="localeStrings?.acceptAll"
20
+ />
17
21
  <button
18
22
  v-if="moduleOptions.isAcceptNecessaryButtonEnabled"
19
23
  @click="acceptNecessary"
@@ -23,10 +27,6 @@
23
27
  @click="isModalActive = true"
24
28
  v-text="localeStrings?.manageCookies"
25
29
  />
26
- <button
27
- @click="setConsent({ reload: false })"
28
- v-text="localeStrings?.acceptAll"
29
- />
30
30
  </div>
31
31
  </div>
32
32
  </div>
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  acceptAll: "Alle akzeptieren",
3
- acceptNecessary: "Akzeptiere das Notwendige",
3
+ acceptNecessary: "Nur notwendige akzeptieren",
4
4
  barDescription: "Wir verwenden unsere eigenen Cookies und Cookies von Drittanbietern, damit wir Ihnen diese Website zeigen k\xF6nnen und verstehen wie Sie diese verwenden, um die von uns angebotenen Dienstleistungen zu verbessern. Wenn Sie weiter surfen, gehen wir davon aus, dass Sie die Cookies akzeptiert haben.",
5
5
  barTitle: "Cookies",
6
6
  blockedIframe: "Um den Inhalt zu sehen, aktivieren Sie bitte funktionale Cookies",
@@ -1,5 +1,5 @@
1
1
  import Cookies from "js-cookie";
2
- import slugify from "slugify";
2
+ import slugify from "@sindresorhus/slugify";
3
3
  import { useCookieControl } from "./composables.mjs";
4
4
  import { LOCALE_DEFAULT } from "./constants.mjs";
5
5
  export const useAcceptNecessary = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Nuxt Cookies Control Module",
5
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
6
6
  "maintainers": [
@@ -29,17 +29,17 @@
29
29
  "src/locale"
30
30
  ],
31
31
  "scripts": {
32
- "prepack": "nuxt-module-build --stub && nuxi prepare playground && nuxt-module-build",
33
- "dev": "nuxi dev playground",
32
+ "prepack": "pnpm dev:prepare && nuxt-module-build",
33
+ "dev": "pnpm dev:prepare && nuxi dev playground",
34
34
  "dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
35
35
  "dev:build": "nuxi build playground",
36
36
  "lint": "eslint --ext .js,.ts,.vue . && nuxi typecheck playground"
37
37
  },
38
38
  "dependencies": {
39
39
  "@nuxt/kit": "3.0.0",
40
+ "@sindresorhus/slugify": "2.1.1",
40
41
  "css-vars-ponyfill": "2.4.8",
41
42
  "js-cookie": "3.0.1",
42
- "slugify": "1.6.5",
43
43
  "string-replace-loader": "3.1.0"
44
44
  },
45
45
  "devDependencies": {
@@ -55,7 +55,7 @@
55
55
  "prettier": "2.8.1",
56
56
  "typescript": "4.9.4",
57
57
  "vue": "3.2.45",
58
- "vue-tsc": "1.0.12",
58
+ "vue-tsc": "1.0.13",
59
59
  "webpack": "5.75.0"
60
60
  },
61
61
  "resolutions": {