abckit 0.0.32 → 0.0.34

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
@@ -45,6 +45,12 @@ interface AuthClientOptions {
45
45
  * @default false
46
46
  */
47
47
  capacitor?: boolean;
48
+ /**
49
+ * Enable OAuth 2.1 Provider client plugin
50
+ * Adds oauth2.* methods to authClient for consent management, client registration, etc.
51
+ * @default false
52
+ */
53
+ oauthProvider?: boolean;
48
54
  }
49
55
  interface ModulesConfig {
50
56
  /**
@@ -193,6 +199,7 @@ declare module '@nuxt/schema' {
193
199
  baseURL?: string;
194
200
  basePath?: string;
195
201
  capacitor?: boolean;
202
+ oauthProvider?: boolean;
196
203
  };
197
204
  };
198
205
  }
package/dist/module.mjs CHANGED
@@ -193,7 +193,8 @@ function setupRuntimeConfig(nuxt, options, isSentryEnabled) {
193
193
  auth: {
194
194
  baseURL: isMobileBuild ? mobileBaseURL : nuxt.options.runtimeConfig.public.abckit?.auth?.baseURL ?? options.auth?.baseURL,
195
195
  basePath: nuxt.options.runtimeConfig.public.abckit?.auth?.basePath ?? options.auth?.basePath,
196
- capacitor: isMobileBuild
196
+ capacitor: isMobileBuild,
197
+ oauthProvider: options.auth?.oauthProvider ?? false
197
198
  }
198
199
  };
199
200
  nuxt.options.runtimeConfig.dragonfly = defu(nuxt.options.runtimeConfig.dragonfly, DRAGONFLY_DEFAULTS);
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
17
17
  expose: (exposed: {}) => void;
18
18
  attrs: any;
19
19
  slots: { [K in NonNullable<keyof z.core.output<T>>]?: ((props: {
20
- shape: (any[] & { [key in keyof T]: Shape; })[number] | { [key in keyof T]: Shape; }[keyof T];
20
+ shape: unknown;
21
21
  fieldName: string;
22
22
  config: ConfigItem;
23
23
  }) => any) | undefined; } & {
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends ZodObjectOrWrapped>(__VLS_props: NonNulla
17
17
  expose: (exposed: {}) => void;
18
18
  attrs: any;
19
19
  slots: { [K in NonNullable<keyof z.core.output<T>>]?: ((props: {
20
- shape: (any[] & { [key in keyof T]: Shape; })[number] | { [key in keyof T]: Shape; }[keyof T];
20
+ shape: unknown;
21
21
  fieldName: string;
22
22
  config: ConfigItem;
23
23
  }) => any) | undefined; } & {
@@ -34,6 +34,7 @@ const props = defineProps({
34
34
  reference: { type: null, required: false },
35
35
  asChild: { type: Boolean, required: false },
36
36
  as: { type: null, required: false },
37
+ disableOutsidePointerEvents: { type: Boolean, required: false },
37
38
  class: { type: null, required: false }
38
39
  });
39
40
  const emits = defineEmits(["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"]);
@@ -1,4 +1,5 @@
1
1
  import { navigateTo, useRuntimeConfig } from "#app";
2
+ import { oauthProviderClient } from "@better-auth/oauth-provider/client";
2
3
  import { adminClient } from "better-auth/client/plugins";
3
4
  import { createAuthClient } from "better-auth/vue";
4
5
  import { computed, ref, watch } from "vue";
@@ -28,6 +29,9 @@ function getAuthClient() {
28
29
  const isCapacitor = authConfig?.capacitor ?? false;
29
30
  initOfflineSession(isCapacitor);
30
31
  const plugins = [adminClient()];
32
+ if (authConfig?.oauthProvider) {
33
+ plugins.push(oauthProviderClient());
34
+ }
31
35
  if (isCapacitor) {
32
36
  plugins.push(capacitorClient({
33
37
  storagePrefix: "better-auth"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "abckit",
3
3
  "type": "module",
4
- "version": "0.0.32",
4
+ "version": "0.0.34",
5
5
  "description": "Nuxt 4 module — UI components, auth, storage, GraphQL",
6
6
  "author": "productdevbook",
7
7
  "license": "MIT",
@@ -83,6 +83,7 @@
83
83
  "release": "pnpm publish --no-git-checks --access public"
84
84
  },
85
85
  "dependencies": {
86
+ "@better-auth/oauth-provider": "^1.4.9",
86
87
  "@capacitor/android": "7.4.4",
87
88
  "@capacitor/app": "^8.0.0",
88
89
  "@capacitor/browser": "^8.0.0",
@@ -99,7 +100,7 @@
99
100
  "@capacitor/status-bar": "^8.0.0",
100
101
  "@capgo/capacitor-social-login": "^8.2.5",
101
102
  "@graphql-tools/utils": "^10.11.0",
102
- "@ionic/vue": "^8.7.14",
103
+ "@ionic/vue": "^8.7.15",
103
104
  "@nuxt/icon": "^2.1.1",
104
105
  "@nuxt/scripts": "^0.13.2",
105
106
  "@nuxtjs/color-mode": "^4.0.0",
@@ -107,8 +108,8 @@
107
108
  "@nuxtjs/ionic": "^1.0.2",
108
109
  "@nuxtjs/tailwindcss": "7.0.0-beta.1",
109
110
  "@openfga/sdk": "^0.9.1",
110
- "@pinia/colada": "^0.19.1",
111
- "@pinia/colada-nuxt": "^0.2.6",
111
+ "@pinia/colada": "^0.20.0",
112
+ "@pinia/colada-nuxt": "^0.3.0",
112
113
  "@pinia/colada-plugin-auto-refetch": "^0.2.4",
113
114
  "@pinia/nuxt": "^0.11.3",
114
115
  "@polar-sh/sdk": "^0.42.1",
@@ -124,7 +125,7 @@
124
125
  "@vueuse/sound": "^2.1.3",
125
126
  "apiful": "^4.0.0",
126
127
  "aws4fetch": "^1.0.20",
127
- "better-auth": "^1.4.7",
128
+ "better-auth": "^1.4.9",
128
129
  "capacitor-native-settings": "^7.0.2",
129
130
  "class-variance-authority": "^0.7.1",
130
131
  "clsx": "^2.1.1",
@@ -141,13 +142,13 @@
141
142
  "graphql-scalars": "^1.25.0",
142
143
  "graphql-yoga": "^5.18.0",
143
144
  "md-editor-v3": "^6.2.1",
144
- "nitro-graphql": "^1.7.1",
145
+ "nitro-graphql": "^1.8.0",
145
146
  "nitropack": "^2.12.9",
146
147
  "notivue": "^2.4.5",
147
148
  "pg": "^8.16.3",
148
149
  "pinia": "^3.0.4",
149
150
  "pinia-plugin-persistedstate": "^4.7.1",
150
- "reka-ui": "^2.6.1",
151
+ "reka-ui": "^2.7.0",
151
152
  "tailwind-merge": "^3.4.0",
152
153
  "tailwindcss": "^4.1.18",
153
154
  "tw-animate-css": "^1.4.0",
@@ -159,11 +160,11 @@
159
160
  "vue-input-otp": "^0.3.2",
160
161
  "vue-router": "^4.6.4",
161
162
  "vue-sonner": "^2.0.9",
162
- "vue-tsc": "^3.2.0",
163
+ "vue-tsc": "^3.2.1",
163
164
  "zod": "^4.2.1"
164
165
  },
165
166
  "devDependencies": {
166
- "@antfu/eslint-config": "^6.7.2",
167
+ "@antfu/eslint-config": "^6.7.3",
167
168
  "@nuxt/eslint": "latest",
168
169
  "@nuxt/module-builder": "^1.0.2",
169
170
  "@nuxt/schema": "^4.2.2",