@dargmuesli/nuxt-cookie-control 1.9.9 → 2.0.0-beta.2

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.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +206 -285
  3. package/dist/module.cjs +5 -0
  4. package/dist/module.d.ts +66 -0
  5. package/dist/module.json +8 -0
  6. package/dist/module.mjs +186 -0
  7. package/dist/runtime/components/CookieControl.vue +274 -0
  8. package/dist/runtime/components/CookieIframe.vue +39 -0
  9. package/dist/runtime/composables.d.ts +1 -0
  10. package/dist/runtime/composables.mjs +1 -0
  11. package/dist/runtime/constants.d.ts +2 -0
  12. package/dist/runtime/constants.mjs +2 -0
  13. package/dist/runtime/locale/ar.d.ts +3 -0
  14. package/dist/runtime/locale/ar.mjs +16 -0
  15. package/dist/runtime/locale/de.d.ts +3 -0
  16. package/dist/runtime/locale/de.mjs +16 -0
  17. package/dist/runtime/locale/en.d.ts +3 -0
  18. package/dist/runtime/locale/en.mjs +16 -0
  19. package/dist/runtime/locale/es.d.ts +3 -0
  20. package/dist/runtime/locale/es.mjs +16 -0
  21. package/dist/runtime/locale/fr.d.ts +3 -0
  22. package/dist/runtime/locale/fr.mjs +16 -0
  23. package/dist/runtime/locale/hr.d.ts +3 -0
  24. package/dist/runtime/locale/hr.mjs +16 -0
  25. package/dist/runtime/locale/hu.d.ts +3 -0
  26. package/dist/runtime/locale/hu.mjs +16 -0
  27. package/dist/runtime/locale/index.d.ts +1 -0
  28. package/dist/runtime/locale/index.mjs +15 -0
  29. package/dist/runtime/locale/it.d.ts +3 -0
  30. package/dist/runtime/locale/it.mjs +16 -0
  31. package/dist/runtime/locale/ja.d.ts +3 -0
  32. package/dist/runtime/locale/ja.mjs +16 -0
  33. package/dist/runtime/locale/nl.d.ts +3 -0
  34. package/dist/runtime/locale/nl.mjs +16 -0
  35. package/dist/runtime/locale/no.d.ts +3 -0
  36. package/dist/runtime/locale/no.mjs +16 -0
  37. package/dist/runtime/locale/pt.d.ts +3 -0
  38. package/dist/runtime/locale/pt.mjs +16 -0
  39. package/dist/runtime/locale/ru.d.ts +3 -0
  40. package/dist/runtime/locale/ru.mjs +16 -0
  41. package/dist/runtime/locale/uk.d.ts +3 -0
  42. package/dist/runtime/locale/uk.mjs +16 -0
  43. package/dist/runtime/methods.d.ts +16 -0
  44. package/dist/runtime/methods.mjs +117 -0
  45. package/dist/runtime/plugin.d.ts +2 -0
  46. package/dist/runtime/plugin.mjs +27 -0
  47. package/dist/runtime/styles.css +347 -0
  48. package/dist/runtime/types.d.ts +73 -0
  49. package/dist/runtime/types.mjs +66 -0
  50. package/dist/types.d.ts +6 -0
  51. package/package.json +60 -21
  52. package/components/CookieControl.vue +0 -182
  53. package/components/CookieIframe.vue +0 -32
  54. package/lib/module.js +0 -74
  55. package/lib/plugin.js +0 -206
  56. package/lib/postinstall.js +0 -1
  57. package/lib/styles.scss +0 -434
  58. package/locale/de.js +0 -15
  59. package/locale/en.js +0 -15
  60. package/locale/es.js +0 -15
  61. package/locale/fr.js +0 -15
  62. package/locale/hr.js +0 -15
  63. package/locale/hu.js +0 -15
  64. package/locale/it.js +0 -15
  65. package/locale/ja.js +0 -15
  66. package/locale/no.js +0 -16
  67. package/locale/pt.js +0 -15
  68. package/locale/ru.js +0 -15
  69. package/locale/uk.js +0 -15
@@ -0,0 +1,347 @@
1
+ .cookieControl__Modal-enter-active, .cookieControl__Modal-leave-active {
2
+ transition: opacity 0.25s;
3
+ }
4
+ .cookieControl__Modal-enter, .cookieControl__Modal-leave-to {
5
+ opacity: 0;
6
+ }
7
+ .cookieControl__Bar--center {
8
+ top: 50%;
9
+ left: 50%;
10
+ transform: translate(-50%, -50%);
11
+ }
12
+ .cookieControl__Bar--center-enter-active, .cookieControl__Bar--top-left-enter-active, .cookieControl__Bar--top-full-enter-active, .cookieControl__Bar--top-right-enter-active, .cookieControl__Bar--bottom-left-enter-active, .cookieControl__Bar--bottom-full-enter-active, .cookieControl__Bar--bottom-right-enter-active, .cookieControl__Bar--center-leave-active, .cookieControl__Bar--top-left-leave-active, .cookieControl__Bar--top-full-leave-active, .cookieControl__Bar--top-right-leave-active, .cookieControl__Bar--bottom-left-leave-active, .cookieControl__Bar--bottom-full-leave-active, .cookieControl__Bar--bottom-right-leave-active {
13
+ transition: transform 0.25s;
14
+ }
15
+ .cookieControl__Bar--top-left-enter, .cookieControl__Bar--top-full-enter, .cookieControl__Bar--top-right-enter, .cookieControl__Bar--top-left-leave-to, .cookieControl__Bar--top-full-leave-to, .cookieControl__Bar--top-right-leave-to {
16
+ transform: translateY(-100%);
17
+ }
18
+ .cookieControl__Bar--bottom-left-enter, .cookieControl__Bar--bottom-full-enter, .cookieControl__Bar--bottom-right-enter, .cookieControl__Bar--bottom-left-leave-to, .cookieControl__Bar--bottom-right-leave-to, .cookieControl__Bar--bottom-full-leave-to {
19
+ transform: translateY(100%);
20
+ }
21
+ .cookieControl__Bar--center-enter, .cookieControl__Bar--center-leave-to {
22
+ transform: translate(-50%, -50%) scale(0.95);
23
+ }
24
+ .cookieControl {
25
+ position: relative;
26
+ z-index: 100000;
27
+ }
28
+ .cookieControl button {
29
+ border: 0;
30
+ outline: 0;
31
+ font-size: 16px;
32
+ cursor: pointer;
33
+ padding: 12px 20px;
34
+ backface-visibility: hidden;
35
+ transition: background-color 200ms, color 200ms;
36
+ }
37
+ .cookieControl__Bar {
38
+ position: fixed;
39
+ background-color: var(--cookie-control-barBackground);
40
+ font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
41
+ }
42
+ .cookieControl__Bar h3, .cookieControl__Bar p {
43
+ color: var(--cookie-control-barTextColor);
44
+ max-width: 900px;
45
+ }
46
+ .cookieControl__Bar h3 {
47
+ margin: 0;
48
+ font-size: 20px;
49
+ }
50
+ .cookieControl__Bar p {
51
+ font-size: 16px;
52
+ margin: 5px 0 0;
53
+ }
54
+ .cookieControl__Bar button {
55
+ color: var(--cookie-control-barButtonColor);
56
+ background-color: var(--cookie-control-barButtonBackground);
57
+ }
58
+ .cookieControl__Bar button:hover {
59
+ color: var(--cookie-control-barButtonHoverColor);
60
+ background-color: var(--cookie-control-barButtonHoverBackground);
61
+ }
62
+ .cookieControl__Bar button + button {
63
+ margin-left: 10px;
64
+ }
65
+ .cookieControl__BarContainer {
66
+ display: flex;
67
+ padding: 20px;
68
+ align-items: flex-end;
69
+ justify-content: space-between;
70
+ }
71
+ .cookieControl__Bar--top-full, .cookieControl__Bar--bottom-full {
72
+ left: 0;
73
+ right: 0;
74
+ }
75
+ .cookieControl__Bar--top-full {
76
+ top: 0;
77
+ }
78
+ .cookieControl__Bar--bottom-full {
79
+ bottom: 0;
80
+ }
81
+ .cookieControl__Bar--center p, .cookieControl__Bar--top-left p, .cookieControl__Bar--top-right p, .cookieControl__Bar--bottom-left p, .cookieControl__Bar--bottom-right p {
82
+ max-width: 400px;
83
+ }
84
+ .cookieControl__Bar--center .cookieControl__BarContainer, .cookieControl__Bar--top-left .cookieControl__BarContainer, .cookieControl__Bar--top-right .cookieControl__BarContainer, .cookieControl__Bar--bottom-left .cookieControl__BarContainer, .cookieControl__Bar--bottom-right .cookieControl__BarContainer {
85
+ flex-direction: column;
86
+ }
87
+ .cookieControl__Bar--center .cookieControl__BarButtons, .cookieControl__Bar--top-left .cookieControl__BarButtons, .cookieControl__Bar--top-right .cookieControl__BarButtons, .cookieControl__Bar--bottom-left .cookieControl__BarButtons, .cookieControl__Bar--bottom-right .cookieControl__BarButtons {
88
+ margin-top: 20px;
89
+ }
90
+ .cookieControl__Bar--top-left, .cookieControl__Bar--top-right {
91
+ top: 20px;
92
+ }
93
+ .cookieControl__Bar--bottom-left, .cookieControl__Bar--bottom-right {
94
+ bottom: 20px;
95
+ }
96
+ .cookieControl__Bar--top-left, .cookieControl__Bar--bottom-left {
97
+ left: 20px;
98
+ }
99
+ .cookieControl__Bar--top-right, .cookieControl__Bar--bottom-right {
100
+ right: 20px;
101
+ }
102
+ .cookieControl__BarButtons {
103
+ display: flex;
104
+ }
105
+ .cookieControl__Modal {
106
+ position: fixed;
107
+ top: 0;
108
+ left: 0;
109
+ right: 0;
110
+ bottom: 0;
111
+ z-index: 1;
112
+ font-size: 0;
113
+ text-align: center;
114
+ }
115
+ .cookieControl__Modal:before {
116
+ content: "";
117
+ min-height: 100vh;
118
+ display: inline-block;
119
+ vertical-align: middle;
120
+ }
121
+ .cookieControl__Modal:after {
122
+ position: absolute;
123
+ content: "";
124
+ top: 0;
125
+ left: 0;
126
+ right: 0;
127
+ bottom: 0;
128
+ z-index: -1;
129
+ opacity: var(--cookie-control-modalOverlayOpacity);
130
+ background-color: var(--cookie-control-modalOverlay);
131
+ }
132
+ .cookieControl__Modal > div {
133
+ font-size: initial;
134
+ padding-top: 80px;
135
+ }
136
+ .cookieControl__Modal button {
137
+ color: var(--cookie-control-modalButtonColor);
138
+ background-color: var(--cookie-control-modalButtonBackground);
139
+ }
140
+ .cookieControl__Modal button:hover {
141
+ color: var(--cookie-control-modalButtonHoverColor);
142
+ background-color: var(--cookie-control-modalButtonHoverBackground);
143
+ }
144
+ .cookieControl__ModalContent {
145
+ position: relative;
146
+ width: 100%;
147
+ padding: 40px;
148
+ max-width: 550px;
149
+ max-height: 80vh;
150
+ text-align: left;
151
+ overflow-y: scroll;
152
+ display: inline-block;
153
+ vertical-align: middle;
154
+ color: var(--cookie-control-modalTextColor);
155
+ background-color: var(--cookie-control-modalBackground);
156
+ }
157
+ .cookieControl__ModalContent *:not(button) {
158
+ color: var(--cookie-control-modalTextColor);
159
+ }
160
+ .cookieControl__ModalContent h3 {
161
+ font-size: 24px;
162
+ margin: 50px 0 25px;
163
+ }
164
+ .cookieControl__ModalContent h3:first-of-type {
165
+ margin-top: 0;
166
+ }
167
+ .cookieControl__ModalContent ul {
168
+ padding: 0;
169
+ font-size: 16px;
170
+ list-style-type: none;
171
+ }
172
+ .cookieControl__ModalContent ul ul {
173
+ padding: 5px 56px 0;
174
+ }
175
+ .cookieControl__ModalContent ul ul li + li {
176
+ margin-top: 5px;
177
+ }
178
+ .cookieControl__ModalContent li {
179
+ align-items: center;
180
+ }
181
+ .cookieControl__ModalContent li + li {
182
+ margin-top: 20px;
183
+ }
184
+ .cookieControl__ModalContent input {
185
+ display: none;
186
+ }
187
+ .cookieControl__ModalContent input:checked + label {
188
+ background-color: var(--cookie-control-checkboxActiveBackground);
189
+ }
190
+ .cookieControl__ModalContent input:checked + label:before {
191
+ background-color: var(--cookie-control-checkboxActiveCircleBackground);
192
+ transform: translate3d(100%, -50%, 0);
193
+ }
194
+ .cookieControl__ModalContent input:checked:disabled + label {
195
+ background-color: var(--cookie-control-checkboxDisabledBackground);
196
+ }
197
+ .cookieControl__ModalContent input:checked:disabled + label:before {
198
+ background-color: var(--cookie-control-checkboxDisabledCircleBackground);
199
+ }
200
+ .cookieControl__ModalContent label {
201
+ position: relative;
202
+ min-width: 36px;
203
+ min-height: 20px;
204
+ font-size: 0;
205
+ display: block;
206
+ margin-right: 20px;
207
+ border-radius: 20px;
208
+ backface-visibility: hidden;
209
+ transition: background-color 200ms;
210
+ background-color: var(--cookie-control-checkboxInactiveBackground);
211
+ }
212
+ .cookieControl__ModalContent label:before {
213
+ position: absolute;
214
+ content: "";
215
+ top: 50%;
216
+ left: 3px;
217
+ width: 15px;
218
+ height: 15px;
219
+ border-radius: 50%;
220
+ transition: transform 200ms;
221
+ transform: translate3d(0, -50%, 0);
222
+ background-color: var(--cookie-control-checkboxInactiveCircleBackground);
223
+ }
224
+ .cookieControl__ModalInputWrapper {
225
+ display: flex;
226
+ align-items: flex-start;
227
+ }
228
+ .cookieControl__ModalCookieName {
229
+ font-weight: bold;
230
+ text-transform: uppercase;
231
+ }
232
+ .cookieControl__ModalCookieName span {
233
+ font-weight: normal;
234
+ text-transform: none;
235
+ }
236
+ .cookieControl__ModalClose {
237
+ position: absolute;
238
+ top: 20px;
239
+ right: 20px;
240
+ }
241
+ .cookieControl__ModalButtons {
242
+ display: flex;
243
+ margin-top: 80px;
244
+ align-items: flex-start;
245
+ }
246
+ .cookieControl__ModalButtons button + button {
247
+ margin-left: 20px;
248
+ }
249
+ .cookieControl__ModalUnsaved {
250
+ position: absolute;
251
+ left: 50%;
252
+ bottom: 40px;
253
+ margin: 0;
254
+ color: var(--cookie-control-modalUnsavedColor);
255
+ font-size: 14px;
256
+ transform: translateX(-50%);
257
+ }
258
+ .cookieControl__BlockedIframe {
259
+ padding: 20px;
260
+ border: 2px solid #ddd;
261
+ }
262
+ .cookieControl__BlockedIframe p, .cookieControl__BlockedIframe a {
263
+ font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
264
+ }
265
+ @media screen and (max-width: 768px) {
266
+ .cookieControl__Bar {
267
+ flex-direction: column;
268
+ left: 0;
269
+ right: 0;
270
+ }
271
+ .cookieControl__Bar p, .cookieControl__Bar h3 {
272
+ max-width: 100%;
273
+ }
274
+ .cookieControl__Bar--top-full, .cookieControl__Bar--top-left, .cookieControl__Bar--top-right {
275
+ top: 0;
276
+ }
277
+ .cookieControl__Bar--bottom-full, .cookieControl__Bar--bottom-left, .cookieControl__Bar--bottom-right {
278
+ bottom: 0;
279
+ }
280
+ .cookieControl__ModalContent {
281
+ position: absolute;
282
+ top: 0;
283
+ left: 0;
284
+ right: 0;
285
+ bottom: 0;
286
+ max-width: none;
287
+ max-height: 100%;
288
+ padding: 80px 20px 20px;
289
+ }
290
+ .cookieControl__BarButtons {
291
+ width: 100%;
292
+ margin-top: 20px;
293
+ flex-direction: column;
294
+ justify-content: center;
295
+ }
296
+ .cookieControl__BarButtons button {
297
+ width: 100%;
298
+ }
299
+ .cookieControl__BarButtons button + button {
300
+ margin: 10px 0 0;
301
+ }
302
+ .cookieControl__BarContainer, .cookieControl__ModalButtons {
303
+ flex-direction: column;
304
+ }
305
+ .cookieControl__ModalButtons button {
306
+ width: 100%;
307
+ }
308
+ .cookieControl__ModalButtons button + button {
309
+ margin: 10px 0 0;
310
+ }
311
+ }
312
+ .cookieControl__ControlButton {
313
+ position: fixed;
314
+ right: 20px;
315
+ bottom: 20px;
316
+ border: 0;
317
+ outline: 0;
318
+ width: 40px;
319
+ height: 40px;
320
+ cursor: pointer;
321
+ min-width: 40px;
322
+ min-height: 40px;
323
+ border-radius: 50%;
324
+ backface-visibility: hidden;
325
+ transition: background-color 200ms;
326
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
327
+ background: var(--cookie-control-controlButtonBackground);
328
+ }
329
+ .cookieControl__ControlButton svg {
330
+ position: absolute;
331
+ top: 50%;
332
+ left: 50%;
333
+ min-width: 24px;
334
+ min-height: 24px;
335
+ max-width: 24px;
336
+ max-height: 24px;
337
+ transition: color 200ms;
338
+ backface-visibility: hidden;
339
+ transform: translate(-50%, -50%);
340
+ color: var(--cookie-control-controlButtonIconColor);
341
+ }
342
+ .cookieControl__ControlButton:hover {
343
+ background-color: var(--cookie-control-controlButtonHoverBackground);
344
+ }
345
+ .cookieControl__ControlButton:hover svg {
346
+ color: var(--cookie-control-controlButtonIconHoverColor);
347
+ }
@@ -0,0 +1,73 @@
1
+ import { Ref } from 'vue';
2
+ export declare enum Locale {
3
+ AR = "ar",
4
+ DE = "de",
5
+ EN = "en",
6
+ ES = "es",
7
+ FR = "fr",
8
+ HR = "hr",
9
+ HU = "hu",
10
+ IT = "it",
11
+ JA = "ja",
12
+ NL = "nl",
13
+ NO = "no",
14
+ PT = "pt",
15
+ RU = "ru",
16
+ UK = "uk"
17
+ }
18
+ export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
19
+ export type Translatable = string | PartialRecord<Locale, string>;
20
+ export declare enum CookieType {
21
+ NECESSARY = "necessary",
22
+ OPTIONAL = "optional"
23
+ }
24
+ export interface Cookie {
25
+ description?: Translatable;
26
+ id?: string;
27
+ name: Translatable;
28
+ src?: string;
29
+ targetCookieIds?: string[];
30
+ }
31
+ export interface LocaleStrings {
32
+ acceptAll: string;
33
+ acceptNecessary: string;
34
+ barDescription: string;
35
+ barTitle: string;
36
+ blockedIframe: string;
37
+ close: string;
38
+ declineAll: string;
39
+ functional: string;
40
+ here: string;
41
+ manageCookies: string;
42
+ necessary: string;
43
+ optional: string;
44
+ save: string;
45
+ unsaved: string;
46
+ }
47
+ export interface ModuleOptions {
48
+ barPosition?: 'top-left' | 'top-right' | 'top-full' | 'bottom-left' | 'bottom-right' | 'bottom-full';
49
+ colors?: false | Record<string, any>;
50
+ cookies: {
51
+ necessary: Cookie[];
52
+ optional: Cookie[];
53
+ };
54
+ isAcceptNecessaryButtonEnabled?: boolean;
55
+ isControlButtonEnabled?: boolean;
56
+ isCssEnabled?: boolean;
57
+ isCssPolyfillEnabled?: boolean;
58
+ isDashInDescriptionEnabled?: boolean;
59
+ isIframeBlocked?: boolean | {
60
+ initialState: boolean;
61
+ };
62
+ domain?: string;
63
+ locales: Locale[];
64
+ localeTexts: PartialRecord<Locale, LocaleStrings>;
65
+ }
66
+ export declare const DEFAULTS: Required<ModuleOptions>;
67
+ export interface State {
68
+ cookiesEnabled: Ref<Cookie[]>;
69
+ cookiesEnabledIds: Ref<string[]>;
70
+ isConsentGiven: Ref<boolean>;
71
+ isModalActive: Ref<boolean>;
72
+ moduleOptions: ModuleOptions;
73
+ }
@@ -0,0 +1,66 @@
1
+ import en from "./locale/en.mjs";
2
+ export var Locale = /* @__PURE__ */ ((Locale2) => {
3
+ Locale2["AR"] = "ar";
4
+ Locale2["DE"] = "de";
5
+ Locale2["EN"] = "en";
6
+ Locale2["ES"] = "es";
7
+ Locale2["FR"] = "fr";
8
+ Locale2["HR"] = "hr";
9
+ Locale2["HU"] = "hu";
10
+ Locale2["IT"] = "it";
11
+ Locale2["JA"] = "ja";
12
+ Locale2["NL"] = "nl";
13
+ Locale2["NO"] = "no";
14
+ Locale2["PT"] = "pt";
15
+ Locale2["RU"] = "ru";
16
+ Locale2["UK"] = "uk";
17
+ return Locale2;
18
+ })(Locale || {});
19
+ export var CookieType = /* @__PURE__ */ ((CookieType2) => {
20
+ CookieType2["NECESSARY"] = "necessary";
21
+ CookieType2["OPTIONAL"] = "optional";
22
+ return CookieType2;
23
+ })(CookieType || {});
24
+ export const DEFAULTS = {
25
+ barPosition: "bottom-full",
26
+ colors: {
27
+ barBackground: "#000",
28
+ barButtonBackground: "#fff",
29
+ barButtonColor: "#000",
30
+ barButtonHoverBackground: "#333",
31
+ barButtonHoverColor: "#fff",
32
+ barTextColor: "#fff",
33
+ checkboxActiveBackground: "#000",
34
+ checkboxActiveCircleBackground: "#fff",
35
+ checkboxDisabledBackground: "#ddd",
36
+ checkboxDisabledCircleBackground: "#fff",
37
+ checkboxInactiveBackground: "#000",
38
+ checkboxInactiveCircleBackground: "#fff",
39
+ controlButtonBackground: "#fff",
40
+ controlButtonHoverBackground: "#000",
41
+ controlButtonIconColor: "#000",
42
+ controlButtonIconHoverColor: "#fff",
43
+ modalBackground: "#fff",
44
+ modalButtonBackground: "#000",
45
+ modalButtonColor: "#fff",
46
+ modalButtonHoverBackground: "#333",
47
+ modalButtonHoverColor: "#fff",
48
+ modalOverlay: "#000",
49
+ modalOverlayOpacity: 0.8,
50
+ modalTextColor: "#000",
51
+ modalUnsavedColor: "#fff"
52
+ },
53
+ cookies: {
54
+ necessary: [],
55
+ optional: []
56
+ },
57
+ isAcceptNecessaryButtonEnabled: true,
58
+ isControlButtonEnabled: true,
59
+ isCssEnabled: true,
60
+ isCssPolyfillEnabled: true,
61
+ isDashInDescriptionEnabled: true,
62
+ isIframeBlocked: false,
63
+ domain: "",
64
+ locales: ["en" /* EN */],
65
+ localeTexts: { en }
66
+ };
@@ -0,0 +1,6 @@
1
+
2
+ import { } from './module'
3
+
4
+
5
+
6
+ export { default } from './module'
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "1.9.9",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "Nuxt Cookies Control Module",
5
- "license": "MIT",
6
5
  "author": "Dario Ferderber <dario.ferderber@broj42.com>",
7
- "contributors": [
8
- "Davor Teskera",
6
+ "maintainers": [
9
7
  "Jonas Thelemann"
10
8
  ],
11
9
  "keywords": [
@@ -14,29 +12,70 @@
14
12
  "nuxt cookie consent",
15
13
  "nuxt gdpr consent"
16
14
  ],
17
- "main": "lib/module.js",
18
- "repository": "https://gitlab.com/dargmuesli/nuxt-cookie-control",
19
- "publishConfig": {
20
- "access": "public"
15
+ "repository": "https://github.com/dargmuesli/nuxt-cookie-control",
16
+ "license": "MIT",
17
+ "type": "module",
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/module.mjs",
21
+ "require": "./dist/module.cjs"
22
+ }
21
23
  },
22
- "eslintIgnore": [
23
- "*"
24
+ "main": "./dist/module.cjs",
25
+ "types": "./dist/module.d.ts",
26
+ "files": [
27
+ "dist/**/*",
28
+ "src/components",
29
+ "src/locale"
24
30
  ],
25
31
  "scripts": {
26
- "postinstall": "node lib/postinstall.js"
32
+ "build": "nuxt-module-build",
33
+ "dev": "nuxi dev playground",
34
+ "dev:build": "nuxi build playground",
35
+ "lint": "eslint --ext .js,.ts,.vue . && nuxi typecheck playground",
36
+ "prepack": "npm run build",
37
+ "postinstall": "nuxt-module-build --stub && nuxi prepare playground"
27
38
  },
28
- "files": [
29
- "lib",
30
- "components",
31
- "locale"
32
- ],
33
39
  "dependencies": {
34
- "css-vars-ponyfill": "^2.4.7",
35
- "sass": "^1.43.4",
36
- "sass-loader": "^10.2.0",
37
- "string-replace-loader": "^2.3.0"
40
+ "@nuxt/kit": "3.0.0",
41
+ "css-vars-ponyfill": "2.4.8",
42
+ "js-cookie": "3.0.1",
43
+ "slugify": "1.6.5",
44
+ "string-replace-loader": "3.1.0"
45
+ },
46
+ "devDependencies": {
47
+ "@nuxt/module-builder": "0.2.1",
48
+ "@nuxtjs/eslint-config-typescript": "12.0.0",
49
+ "@types/js-cookie": "3.0.2",
50
+ "eslint": "8.29.0",
51
+ "eslint-config-prettier": "8.5.0",
52
+ "eslint-plugin-prettier": "4.2.1",
53
+ "husky": "8.0.2",
54
+ "lint-staged": "13.1.0",
55
+ "nuxt": "3.0.0",
56
+ "prettier": "2.8.0",
57
+ "typescript": "4.9.3",
58
+ "vite": "3.2.5",
59
+ "vue": "3.2.45",
60
+ "vue-tsc": "1.0.11",
61
+ "webpack": "5.75.0"
38
62
  },
39
63
  "peerDependencies": {
40
- "webpack": "^4"
64
+ "vite": "^3",
65
+ "webpack": "^5"
66
+ },
67
+ "peerDependenciesMeta": {
68
+ "vite": {
69
+ "optional": true
70
+ },
71
+ "webpack": {
72
+ "optional": true
73
+ }
74
+ },
75
+ "resolutions": {
76
+ "@dargmuesli/nuxt-cookie-control": "link:./"
77
+ },
78
+ "publishConfig": {
79
+ "access": "public"
41
80
  }
42
81
  }