abckit 0.0.54 → 0.0.56

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.d.mts CHANGED
@@ -28,6 +28,12 @@ interface SetupConfig {
28
28
  };
29
29
  }
30
30
  interface AuthClientOptions {
31
+ /**
32
+ * Enable Better Auth integration
33
+ * When false, nuxt-better-auth module is not loaded
34
+ * @default true
35
+ */
36
+ enabled?: boolean;
31
37
  /**
32
38
  * Enable Capacitor mode for mobile apps
33
39
  * Injects Capacitor plugin via better-auth:config:extend hook
package/dist/module.mjs CHANGED
@@ -27,8 +27,9 @@ function createModuleChecker(opts) {
27
27
  function getModuleDependencies(nuxt) {
28
28
  const opts = nuxt.options.abckit;
29
29
  const isEnabled = createModuleChecker(opts);
30
+ const isAuthEnabled = opts?.auth?.enabled !== false;
30
31
  return {
31
- "@onmax/nuxt-better-auth": { optional: false },
32
+ "better-auth-nuxt": { optional: !isAuthEnabled },
32
33
  "@nuxtjs/tailwindcss": { optional: !isEnabled("tailwindcss") },
33
34
  "notivue/nuxt": { optional: !isEnabled("notivue") },
34
35
  "@nuxt/icon": { optional: !isEnabled("icon") },
@@ -298,12 +299,14 @@ function setupColorMode(nuxt) {
298
299
  preference: "light"
299
300
  });
300
301
  }
301
- function setupRouting(nuxt, resolve) {
302
+ function setupRouting(nuxt, resolve, isAuthEnabled) {
302
303
  addServerScanDir(resolve("./runtime/server"));
303
- addPlugin({
304
- src: resolve("./runtime/plugins/sentry-user.client"),
305
- mode: "client"
306
- });
304
+ if (isAuthEnabled) {
305
+ addPlugin({
306
+ src: resolve("./runtime/plugins/sentry-user.client"),
307
+ mode: "client"
308
+ });
309
+ }
307
310
  nuxt.options.routeRules = nuxt.options.routeRules || {};
308
311
  nuxt.options.routeRules["/**"] = defu(nuxt.options.routeRules["/**"] || {}, { ssr: false });
309
312
  nuxt.options.routeRules["/"] = defu(nuxt.options.routeRules["/"] || {}, { ssr: true });
@@ -503,6 +506,7 @@ const module$1 = defineNuxtModule({
503
506
  disk: false
504
507
  },
505
508
  auth: {
509
+ enabled: true,
506
510
  capacitor: isMobileBuild
507
511
  },
508
512
  npm: false
@@ -518,6 +522,7 @@ const module$1 = defineNuxtModule({
518
522
  const isSentryEnabled = isEnabled("sentry", "sentry");
519
523
  const isGraphqlEnabled = isEnabled("graphql", "graphql");
520
524
  const isIonicEnabled = isEnabled("ionic");
525
+ const isAuthEnabled = options.auth?.enabled !== false;
521
526
  if (nuxt.options.dev) {
522
527
  checkDependencies(nuxt, {
523
528
  core: true,
@@ -537,8 +542,10 @@ const module$1 = defineNuxtModule({
537
542
  setupAliases(nuxt, resolve);
538
543
  setupTypeScript(nuxt);
539
544
  setupColorMode(nuxt);
540
- setupRouting(nuxt, resolve);
541
- setupBetterAuth(nuxt, options);
545
+ setupRouting(nuxt, resolve, isAuthEnabled);
546
+ if (isAuthEnabled) {
547
+ setupBetterAuth(nuxt, options);
548
+ }
542
549
  }
543
550
  });
544
551
 
@@ -59,7 +59,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
59
59
  'aria-colindex'?: (string | number) | undefined;
60
60
  'aria-colspan'?: (string | number) | undefined;
61
61
  'aria-controls'?: string | undefined | undefined;
62
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
62
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
63
63
  'aria-describedby'?: string | undefined | undefined;
64
64
  'aria-details'?: string | undefined | undefined;
65
65
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -253,7 +253,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
253
253
  'aria-colindex'?: (string | number) | undefined;
254
254
  'aria-colspan'?: (string | number) | undefined;
255
255
  'aria-controls'?: string | undefined | undefined;
256
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
256
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
257
257
  'aria-describedby'?: string | undefined | undefined;
258
258
  'aria-details'?: string | undefined | undefined;
259
259
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -59,7 +59,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
59
59
  'aria-colindex'?: (string | number) | undefined;
60
60
  'aria-colspan'?: (string | number) | undefined;
61
61
  'aria-controls'?: string | undefined | undefined;
62
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
62
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
63
63
  'aria-describedby'?: string | undefined | undefined;
64
64
  'aria-details'?: string | undefined | undefined;
65
65
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -253,7 +253,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
253
253
  'aria-colindex'?: (string | number) | undefined;
254
254
  'aria-colspan'?: (string | number) | undefined;
255
255
  'aria-controls'?: string | undefined | undefined;
256
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
256
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
257
257
  'aria-describedby'?: string | undefined | undefined;
258
258
  'aria-details'?: string | undefined | undefined;
259
259
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -61,7 +61,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
61
61
  'aria-colindex'?: (string | number) | undefined;
62
62
  'aria-colspan'?: (string | number) | undefined;
63
63
  'aria-controls'?: string | undefined | undefined;
64
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
64
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
65
65
  'aria-describedby'?: string | undefined | undefined;
66
66
  'aria-details'?: string | undefined | undefined;
67
67
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -257,7 +257,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
257
257
  'aria-colindex'?: (string | number) | undefined;
258
258
  'aria-colspan'?: (string | number) | undefined;
259
259
  'aria-controls'?: string | undefined | undefined;
260
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
260
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
261
261
  'aria-describedby'?: string | undefined | undefined;
262
262
  'aria-details'?: string | undefined | undefined;
263
263
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -61,7 +61,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
61
61
  'aria-colindex'?: (string | number) | undefined;
62
62
  'aria-colspan'?: (string | number) | undefined;
63
63
  'aria-controls'?: string | undefined | undefined;
64
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
64
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
65
65
  'aria-describedby'?: string | undefined | undefined;
66
66
  'aria-details'?: string | undefined | undefined;
67
67
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -257,7 +257,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
257
257
  'aria-colindex'?: (string | number) | undefined;
258
258
  'aria-colspan'?: (string | number) | undefined;
259
259
  'aria-controls'?: string | undefined | undefined;
260
- 'aria-current'?: "page" | "time" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
260
+ 'aria-current'?: "time" | "page" | "step" | "location" | "date" | (boolean | "true" | "false") | undefined;
261
261
  'aria-describedby'?: string | undefined | undefined;
262
262
  'aria-details'?: string | undefined | undefined;
263
263
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -14,5 +14,5 @@ export declare function useAppRouter(): {
14
14
  replace: (to: RouteLocationRaw) => void;
15
15
  back: () => void;
16
16
  canGoBack: () => boolean;
17
- isMobile: boolean;
17
+ isMobile: any;
18
18
  };
@@ -2,5 +2,5 @@
2
2
  * Sentry user tracking plugin
3
3
  * Sets user context in Sentry when authenticated
4
4
  */
5
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
5
+ declare const _default: any;
6
6
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "abckit",
3
3
  "type": "module",
4
- "version": "0.0.54",
4
+ "version": "0.0.56",
5
5
  "description": "Nuxt 4 module — UI components, auth, storage, GraphQL",
6
6
  "author": "productdevbook",
7
7
  "license": "MIT",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "peerDependencies": {
83
83
  "@better-auth/oauth-provider": "^1.4.12",
84
- "@onmax/nuxt-better-auth": "^0.0.2-alpha.17",
84
+ "better-auth-nuxt": "^0.0.2-beta.19",
85
85
  "@capacitor/android": "^8.0.1",
86
86
  "@capacitor/app": "^8.0.0",
87
87
  "@capacitor/browser": "^8.0.0",
@@ -159,7 +159,7 @@
159
159
  "@better-auth/oauth-provider": {
160
160
  "optional": true
161
161
  },
162
- "@onmax/nuxt-better-auth": {
162
+ "better-auth-nuxt": {
163
163
  "optional": true
164
164
  },
165
165
  "@capacitor/android": {