@inzombieland/nuxt-common 0.0.3 → 0.0.8

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 (119) hide show
  1. package/LICENSE +8 -0
  2. package/assets/css/layer.css +305 -0
  3. package/module.cjs +5 -0
  4. package/module.d.mts +7 -0
  5. package/module.d.ts +7 -0
  6. package/module.json +9 -0
  7. package/module.mjs +70 -0
  8. package/package.json +5 -3
  9. package/runtime/AppProvider.vue +129 -0
  10. package/runtime/SidebarProvider.vue +138 -0
  11. package/runtime/api/account/account.get.d.ts +2 -0
  12. package/runtime/api/account/account.get.mjs +19 -0
  13. package/runtime/api/account/authcheck.get.d.ts +8 -0
  14. package/runtime/api/account/authcheck.get.mjs +28 -0
  15. package/runtime/api/account/default-handler.d.ts +2 -0
  16. package/runtime/api/account/default-handler.mjs +37 -0
  17. package/runtime/api/account/middleware.d.ts +2 -0
  18. package/runtime/api/account/middleware.mjs +18 -0
  19. package/runtime/api/account/token.get.d.ts +2 -0
  20. package/runtime/api/account/token.get.mjs +31 -0
  21. package/runtime/api/index.d.ts +37 -0
  22. package/runtime/api/index.mjs +26 -0
  23. package/runtime/api/user-actions.d.ts +118 -0
  24. package/runtime/api/user-actions.mjs +165 -0
  25. package/runtime/composables/use-active-sessions.d.ts +5 -0
  26. package/runtime/composables/use-active-sessions.mjs +15 -0
  27. package/runtime/composables/use-api-fetch.d.ts +3 -0
  28. package/runtime/composables/use-api-fetch.mjs +3 -0
  29. package/runtime/composables/use-helpers.d.ts +16 -0
  30. package/runtime/composables/use-helpers.mjs +10 -0
  31. package/runtime/composables/use-layer-manager.d.ts +3 -0
  32. package/runtime/composables/use-layer-manager.mjs +3 -0
  33. package/runtime/composables/use-subscribe.d.ts +10 -0
  34. package/runtime/composables/use-subscribe.mjs +22 -0
  35. package/runtime/composables/use-toggle-sidebar.d.ts +3 -0
  36. package/runtime/composables/use-toggle-sidebar.mjs +8 -0
  37. package/runtime/composables/use-user-actions.d.ts +2 -0
  38. package/runtime/composables/use-user-actions.mjs +4 -0
  39. package/runtime/composables/use-user.d.ts +3 -0
  40. package/runtime/composables/use-user.mjs +3 -0
  41. package/runtime/composables/use-validators.d.ts +8 -0
  42. package/runtime/composables/use-validators.mjs +17 -0
  43. package/runtime/middleware/auth.d.ts +2 -0
  44. package/runtime/middleware/auth.mjs +10 -0
  45. package/runtime/middleware/guest.d.ts +2 -0
  46. package/runtime/middleware/guest.mjs +12 -0
  47. package/runtime/middleware/index.d.ts +4 -0
  48. package/runtime/middleware/index.mjs +4 -0
  49. package/runtime/middleware/locale.global.d.ts +2 -0
  50. package/runtime/middleware/locale.global.mjs +13 -0
  51. package/runtime/packages/api/api-client.d.ts +8 -0
  52. package/runtime/packages/api/api-client.mjs +150 -0
  53. package/runtime/packages/api/bus.d.ts +7 -0
  54. package/runtime/packages/api/bus.mjs +22 -0
  55. package/runtime/packages/api/comet-client.d.ts +11 -0
  56. package/runtime/packages/api/comet-client.mjs +73 -0
  57. package/runtime/packages/api/get-user.d.ts +8 -0
  58. package/runtime/packages/api/get-user.mjs +54 -0
  59. package/runtime/packages/api/get-visitor.d.ts +11 -0
  60. package/runtime/packages/api/get-visitor.mjs +32 -0
  61. package/runtime/packages/api/helpers/api-helper.d.ts +6 -0
  62. package/runtime/packages/api/helpers/api-helper.mjs +99 -0
  63. package/runtime/packages/api/helpers/current-device.d.ts +67 -0
  64. package/runtime/packages/api/helpers/current-device.mjs +368 -0
  65. package/runtime/packages/api/helpers/date-helper.d.ts +15 -0
  66. package/runtime/packages/api/helpers/date-helper.mjs +231 -0
  67. package/runtime/packages/api/helpers/index.d.ts +4 -0
  68. package/runtime/packages/api/helpers/index.mjs +15 -0
  69. package/runtime/packages/api/index.d.ts +26 -0
  70. package/runtime/packages/api/index.mjs +50 -0
  71. package/runtime/packages/api/package.json +20 -0
  72. package/runtime/packages/api/refresh-token.d.ts +2 -0
  73. package/runtime/packages/api/refresh-token.mjs +39 -0
  74. package/runtime/packages/api/types.d.ts +51 -0
  75. package/runtime/packages/api/types.mjs +0 -0
  76. package/runtime/packages/api/use-api-actions.d.ts +13 -0
  77. package/runtime/packages/api/use-api-actions.mjs +5 -0
  78. package/runtime/packages/api/use-user.d.ts +47 -0
  79. package/runtime/packages/api/use-user.mjs +5 -0
  80. package/runtime/packages/helpers/index.d.ts +3 -0
  81. package/runtime/packages/helpers/index.mjs +14 -0
  82. package/runtime/packages/helpers/package.json +11 -0
  83. package/runtime/packages/helpers/phone-helper.d.ts +13 -0
  84. package/runtime/packages/helpers/phone-helper.mjs +58 -0
  85. package/runtime/packages/helpers/string-helper.d.ts +4 -0
  86. package/runtime/packages/helpers/string-helper.mjs +8 -0
  87. package/runtime/packages/layer-manager/LayerComponent.vue +54 -0
  88. package/runtime/packages/layer-manager/LayersProvider.vue +171 -0
  89. package/runtime/packages/layer-manager/index.d.ts +2 -0
  90. package/runtime/packages/layer-manager/index.mjs +2 -0
  91. package/runtime/packages/layer-manager/package.json +11 -0
  92. package/runtime/packages/layer-manager/types.d.ts +8 -0
  93. package/runtime/packages/layer-manager/types.mjs +0 -0
  94. package/runtime/packages/layer-manager/use-layer-actions.d.ts +23 -0
  95. package/runtime/packages/layer-manager/use-layer-actions.mjs +5 -0
  96. package/runtime/plugin.d.ts +2 -0
  97. package/runtime/plugin.mjs +42 -0
  98. package/runtime/plugins/device.d.ts +136 -0
  99. package/runtime/plugins/device.mjs +29 -0
  100. package/runtime/plugins/otp-input.d.ts +2 -0
  101. package/runtime/plugins/otp-input.mjs +5 -0
  102. package/runtime/plugins/sanitize-html.d.ts +2 -0
  103. package/runtime/plugins/sanitize-html.mjs +90 -0
  104. package/runtime/plugins/sanitize-url.d.ts +2 -0
  105. package/runtime/plugins/sanitize-url.mjs +9 -0
  106. package/runtime/server/middleware/basic-auth.d.ts +2 -0
  107. package/runtime/server/middleware/basic-auth.mjs +34 -0
  108. package/runtime/thirdparty/helpers/index.d.mts +5 -0
  109. package/runtime/thirdparty/helpers/index.d.ts +7 -0
  110. package/runtime/thirdparty/helpers/index.mjs +69 -0
  111. package/runtime/thirdparty/helpers/index.mjs.map +1 -0
  112. package/runtime/thirdparty/sanitize-url/index.d.mts +2 -0
  113. package/runtime/thirdparty/sanitize-url/index.d.ts +1 -0
  114. package/runtime/thirdparty/sanitize-url/index.mjs +98 -0
  115. package/runtime/thirdparty/sanitize-url/index.mjs.map +1 -0
  116. package/runtime/ui/varlet.d.ts +7 -0
  117. package/runtime/ui/varlet.mjs +13 -0
  118. package/types.d.mts +16 -0
  119. package/types.d.ts +16 -0
@@ -0,0 +1,69 @@
1
+ var cookieHelper = {
2
+ splitCookiesString,
3
+ };
4
+ function splitCookiesString(cookiesString) {
5
+ if (Array.isArray(cookiesString)) {
6
+ return cookiesString;
7
+ }
8
+ if (typeof cookiesString !== "string") {
9
+ return [];
10
+ }
11
+ const cookiesStrings = [];
12
+ let pos = 0;
13
+ let start;
14
+ let ch;
15
+ let lastComma;
16
+ let nextStart;
17
+ let cookiesSeparatorFound;
18
+ function skipWhitespace() {
19
+ while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
20
+ pos += 1;
21
+ }
22
+ return pos < cookiesString.length;
23
+ }
24
+ function notSpecialChar() {
25
+ ch = cookiesString.charAt(pos);
26
+ return ch !== "=" && ch !== ";" && ch !== ",";
27
+ }
28
+ while (pos < cookiesString.length) {
29
+ start = pos;
30
+ cookiesSeparatorFound = false;
31
+ while (skipWhitespace()) {
32
+ ch = cookiesString.charAt(pos);
33
+ if (ch === ",") {
34
+ // ',' is a cookie separator if we have later first '=', not ';' or ','
35
+ lastComma = pos;
36
+ pos += 1;
37
+ skipWhitespace();
38
+ nextStart = pos;
39
+ while (pos < cookiesString.length && notSpecialChar()) {
40
+ pos += 1;
41
+ }
42
+ // currently special character
43
+ if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
44
+ // we found cookies separator
45
+ cookiesSeparatorFound = true;
46
+ // pos is inside the next cookie, so back up and return it.
47
+ pos = nextStart;
48
+ cookiesStrings.push(cookiesString.substring(start, lastComma));
49
+ start = pos;
50
+ }
51
+ else {
52
+ // in param ',' or param separator ';',
53
+ // we continue from that comma
54
+ pos = lastComma + 1;
55
+ }
56
+ }
57
+ else {
58
+ pos += 1;
59
+ }
60
+ }
61
+ if (!cookiesSeparatorFound || pos >= cookiesString.length) {
62
+ cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
63
+ }
64
+ }
65
+ return cookiesStrings;
66
+ }
67
+
68
+ export { cookieHelper };
69
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../thirdparty/helpers/cookieHelper.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,mBAAe;IACd,kBAAkB;CAClB;AAEK,SAAU,kBAAkB,CAAC,aAAqB,EAAA;AACvD,IAAA,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;AACjC,QAAA,OAAO,aAAa;;AAErB,IAAA,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;AACtC,QAAA,OAAO,EAAE;;IAGV,MAAM,cAAc,GAAa,EAAE;IACnC,IAAI,GAAG,GAAG,CAAC;AACX,IAAA,IAAI,KAAK;AACT,IAAA,IAAI,EAAE;AACN,IAAA,IAAI,SAAS;AACb,IAAA,IAAI,SAAS;AACb,IAAA,IAAI,qBAAqB;AAEzB,IAAA,SAAS,cAAc,GAAA;AACtB,QAAA,OAAO,GAAG,GAAG,aAAa,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;YAC1E,GAAG,IAAI,CAAC;;AAET,QAAA,OAAO,GAAG,GAAG,aAAa,CAAC,MAAM;;AAGlC,IAAA,SAAS,cAAc,GAAA;AACtB,QAAA,EAAE,GAAG,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC;QAE9B,OAAO,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK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= {};
4
+
5
+ Object.defineProperty(constants, "__esModule", { value: true });
6
+ constants.BLANK_URL = constants.relativeFirstCharacters = constants.whitespaceEscapeCharsRegex = constants.urlSchemeRegex = constants.ctrlCharactersRegex = constants.htmlCtrlEntityRegex = constants.htmlEntitiesRegex = constants.invalidProtocolRegex = void 0;
7
+ constants.invalidProtocolRegex = /^([^\w]*)(javascript|data|vbscript)/im;
8
+ constants.htmlEntitiesRegex = /&#(\w+)(^\w|;)?/g;
9
+ constants.htmlCtrlEntityRegex = /&(newline|tab);/gi;
10
+ constants.ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
11
+ constants.urlSchemeRegex = /^.+(:|&colon;)/gim;
12
+ constants.whitespaceEscapeCharsRegex = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;
13
+ constants.relativeFirstCharacters = [".", "/"];
14
+ constants.BLANK_URL = "about:blank";
15
+
16
+ Object.defineProperty(dist, "__esModule", { value: true });
17
+ var sanitizeUrl_1 = dist.sanitizeUrl = void 0;
18
+ var constants_1 = constants;
19
+ function isRelativeUrlWithoutProtocol(url) {
20
+ return constants_1.relativeFirstCharacters.indexOf(url[0]) > -1;
21
+ }
22
+ function decodeHtmlCharacters(str) {
23
+ var removedNullByte = str.replace(constants_1.ctrlCharactersRegex, "");
24
+ return removedNullByte.replace(constants_1.htmlEntitiesRegex, function (match, dec) {
25
+ return String.fromCharCode(dec);
26
+ });
27
+ }
28
+ function isValidUrl(url) {
29
+ return URL.canParse(url);
30
+ }
31
+ function decodeURI(uri) {
32
+ try {
33
+ return decodeURIComponent(uri);
34
+ }
35
+ catch (e) {
36
+ // Ignoring error
37
+ // It is possible that the URI contains a `%` not associated
38
+ // with URI/URL-encoding.
39
+ return uri;
40
+ }
41
+ }
42
+ function sanitizeUrl(url) {
43
+ if (!url) {
44
+ return constants_1.BLANK_URL;
45
+ }
46
+ var charsToDecode;
47
+ var decodedUrl = decodeURI(url.trim());
48
+ do {
49
+ decodedUrl = decodeHtmlCharacters(decodedUrl)
50
+ .replace(constants_1.htmlCtrlEntityRegex, "")
51
+ .replace(constants_1.ctrlCharactersRegex, "")
52
+ .replace(constants_1.whitespaceEscapeCharsRegex, "")
53
+ .trim();
54
+ decodedUrl = decodeURI(decodedUrl);
55
+ charsToDecode =
56
+ decodedUrl.match(constants_1.ctrlCharactersRegex) ||
57
+ decodedUrl.match(constants_1.htmlEntitiesRegex) ||
58
+ decodedUrl.match(constants_1.htmlCtrlEntityRegex) ||
59
+ decodedUrl.match(constants_1.whitespaceEscapeCharsRegex);
60
+ } while (charsToDecode && charsToDecode.length > 0);
61
+ var sanitizedUrl = decodedUrl;
62
+ if (!sanitizedUrl) {
63
+ return constants_1.BLANK_URL;
64
+ }
65
+ if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {
66
+ return sanitizedUrl;
67
+ }
68
+ // Remove any leading whitespace before checking the URL scheme
69
+ var trimmedUrl = sanitizedUrl.trimStart();
70
+ var urlSchemeParseResults = trimmedUrl.match(constants_1.urlSchemeRegex);
71
+ if (!urlSchemeParseResults) {
72
+ return sanitizedUrl;
73
+ }
74
+ var urlScheme = urlSchemeParseResults[0].toLowerCase().trim();
75
+ if (constants_1.invalidProtocolRegex.test(urlScheme)) {
76
+ return constants_1.BLANK_URL;
77
+ }
78
+ var backSanitized = trimmedUrl.replace(/\\/g, "/");
79
+ // Handle special cases for mailto: and custom deep-link protocols
80
+ if (urlScheme === "mailto:" || urlScheme.includes("://")) {
81
+ return backSanitized;
82
+ }
83
+ // For http and https URLs, perform additional validation
84
+ if (urlScheme === "http:" || urlScheme === "https:") {
85
+ if (!isValidUrl(backSanitized)) {
86
+ return constants_1.BLANK_URL;
87
+ }
88
+ var url_1 = new URL(backSanitized);
89
+ url_1.protocol = url_1.protocol.toLowerCase();
90
+ url_1.hostname = url_1.hostname.toLowerCase();
91
+ return url_1.toString();
92
+ }
93
+ return backSanitized;
94
+ }
95
+ sanitizeUrl_1 = dist.sanitizeUrl = sanitizeUrl;
96
+
97
+ export { sanitizeUrl_1 as sanitizeUrl };
98
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../node_modules/@braintree/sanitize-url/dist/constants.js","../../../../node_modules/@braintree/sanitize-url/dist/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.BLANK_URL = exports.relativeFirstCharacters = exports.whitespaceEscapeCharsRegex = exports.urlSchemeRegex = exports.ctrlCharactersRegex = exports.htmlCtrlEntityRegex = exports.htmlEntitiesRegex = exports.invalidProtocolRegex = void 0;\nexports.invalidProtocolRegex = /^([^\\w]*)(javascript|data|vbscript)/im;\nexports.htmlEntitiesRegex = /&#(\\w+)(^\\w|;)?/g;\nexports.htmlCtrlEntityRegex = /&(newline|tab);/gi;\nexports.ctrlCharactersRegex = /[\\u0000-\\u001F\\u007F-\\u009F\\u2000-\\u200D\\uFEFF]/gim;\nexports.urlSchemeRegex = /^.+(:|&colon;)/gim;\nexports.whitespaceEscapeCharsRegex = /(\\\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;\nexports.relativeFirstCharacters = [\".\", \"/\"];\nexports.BLANK_URL = \"about:blank\";\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sanitizeUrl = void 0;\nvar constants_1 = require(\"./constants\");\nfunction isRelativeUrlWithoutProtocol(url) {\n return constants_1.relativeFirstCharacters.indexOf(url[0]) > -1;\n}\nfunction decodeHtmlCharacters(str) {\n var removedNullByte = str.replace(constants_1.ctrlCharactersRegex, \"\");\n return removedNullByte.replace(constants_1.htmlEntitiesRegex, function (match, dec) {\n return String.fromCharCode(dec);\n });\n}\nfunction isValidUrl(url) {\n return URL.canParse(url);\n}\nfunction decodeURI(uri) {\n try {\n return decodeURIComponent(uri);\n }\n catch (e) {\n // Ignoring error\n // It is possible that the URI contains a `%` not associated\n // with URI/URL-encoding.\n return uri;\n }\n}\nfunction sanitizeUrl(url) {\n if (!url) {\n return constants_1.BLANK_URL;\n }\n var charsToDecode;\n var decodedUrl = decodeURI(url.trim());\n do {\n decodedUrl = decodeHtmlCharacters(decodedUrl)\n .replace(constants_1.htmlCtrlEntityRegex, \"\")\n .replace(constants_1.ctrlCharactersRegex, \"\")\n .replace(constants_1.whitespaceEscapeCharsRegex, \"\")\n .trim();\n decodedUrl = decodeURI(decodedUrl);\n charsToDecode =\n decodedUrl.match(constants_1.ctrlCharactersRegex) ||\n decodedUrl.match(constants_1.htmlEntitiesRegex) ||\n decodedUrl.match(constants_1.htmlCtrlEntityRegex) ||\n decodedUrl.match(constants_1.whitespaceEscapeCharsRegex);\n } while (charsToDecode && charsToDecode.length > 0);\n var sanitizedUrl = decodedUrl;\n if (!sanitizedUrl) {\n return constants_1.BLANK_URL;\n }\n if (isRelativeUrlWithoutProtocol(sanitizedUrl)) {\n return sanitizedUrl;\n }\n // Remove any leading whitespace before checking the URL scheme\n var trimmedUrl = sanitizedUrl.trimStart();\n var urlSchemeParseResults = trimmedUrl.match(constants_1.urlSchemeRegex);\n if (!urlSchemeParseResults) {\n return sanitizedUrl;\n }\n var urlScheme = urlSchemeParseResults[0].toLowerCase().trim();\n if (constants_1.invalidProtocolRegex.test(urlScheme)) {\n return constants_1.BLANK_URL;\n }\n var backSanitized = trimmedUrl.replace(/\\\\/g, \"/\");\n // Handle special cases for mailto: and custom deep-link protocols\n if (urlScheme === \"mailto:\" || urlScheme.includes(\"://\")) {\n return backSanitized;\n }\n // For http and https URLs, perform additional validation\n if (urlScheme === \"http:\" || urlScheme === \"https:\") {\n if (!isValidUrl(backSanitized)) {\n return constants_1.BLANK_URL;\n }\n var url_1 = new URL(backSanitized);\n url_1.protocol = url_1.protocol.toLowerCase();\n url_1.hostname = url_1.hostname.toLowerCase();\n return url_1.toString();\n }\n return backSanitized;\n}\nexports.sanitizeUrl = sanitizeUrl;\n"],"names":["require$$0"],"mappings":";;;;AACA,MAAM,CAAC,cAAc,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 @@
1
+ import "@varlet/ui/es/button/style/index";
2
+ import "@varlet/ui/es/chip/style/index";
3
+ import "@varlet/ui/es/icon/style/index";
4
+ import "@varlet/ui/es/link/style/index";
5
+ import "@varlet/ui/es/styles/elevation.css";
6
+ declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
7
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { Button, Chip, Icon, Link } from "@varlet/ui";
2
+ import { defineNuxtPlugin } from "#app";
3
+ import "@varlet/ui/es/button/style/index";
4
+ import "@varlet/ui/es/chip/style/index";
5
+ import "@varlet/ui/es/icon/style/index";
6
+ import "@varlet/ui/es/link/style/index";
7
+ import "@varlet/ui/es/styles/elevation.css";
8
+ export default defineNuxtPlugin((nuxtApp) => {
9
+ nuxtApp.vueApp.use(Button);
10
+ nuxtApp.vueApp.use(Chip);
11
+ nuxtApp.vueApp.use(Icon);
12
+ nuxtApp.vueApp.use(Link);
13
+ });
package/types.d.mts ADDED
@@ -0,0 +1,16 @@
1
+
2
+ import type { ModuleOptions } from './module.js'
3
+
4
+
5
+ declare module '@nuxt/schema' {
6
+ interface NuxtConfig { ['nuxt-common']?: Partial<ModuleOptions> }
7
+ interface NuxtOptions { ['nuxt-common']?: ModuleOptions }
8
+ }
9
+
10
+ declare module 'nuxt/schema' {
11
+ interface NuxtConfig { ['nuxt-common']?: Partial<ModuleOptions> }
12
+ interface NuxtOptions { ['nuxt-common']?: ModuleOptions }
13
+ }
14
+
15
+
16
+ export type { ModuleOptions, default } from './module.js'
package/types.d.ts ADDED
@@ -0,0 +1,16 @@
1
+
2
+ import type { ModuleOptions } from './module'
3
+
4
+
5
+ declare module '@nuxt/schema' {
6
+ interface NuxtConfig { ['nuxt-common']?: Partial<ModuleOptions> }
7
+ interface NuxtOptions { ['nuxt-common']?: ModuleOptions }
8
+ }
9
+
10
+ declare module 'nuxt/schema' {
11
+ interface NuxtConfig { ['nuxt-common']?: Partial<ModuleOptions> }
12
+ interface NuxtOptions { ['nuxt-common']?: ModuleOptions }
13
+ }
14
+
15
+
16
+ export type { ModuleOptions, default } from './module'