Skip to content

Commit 99922ec

Browse files
authored
chore(vue,nuxt): Set default GoogleOneTap prop values (#6809)
1 parent 35bc991 commit 99922ec

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.changeset/clean-cars-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/vue": patch
3+
---
4+
5+
Fixed incorrect default prop values passed to `<GoogleOneTap />` component

.changeset/twelve-carrots-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clerk/nuxt": patch
3+
---
4+
5+
Added `<GoogleOneTap />` to auto-imported components.

packages/nuxt/src/module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export default defineNuxtModule<ModuleOptions>({
141141
// Authentication Components
142142
'SignIn',
143143
'SignUp',
144+
'GoogleOneTap',
144145
// Unstyled Components
145146
'SignInButton',
146147
'SignOutButton',
@@ -154,6 +155,8 @@ export default defineNuxtModule<ModuleOptions>({
154155
'OrganizationProfile',
155156
'OrganizationSwitcher',
156157
'OrganizationList',
158+
// Billing Components
159+
'PricingTable',
157160
// Control Components
158161
'ClerkLoaded',
159162
'ClerkLoading',
@@ -166,7 +169,6 @@ export default defineNuxtModule<ModuleOptions>({
166169
'SignedIn',
167170
'SignedOut',
168171
'Waitlist',
169-
'PricingTable',
170172
];
171173
components.forEach(component => {
172174
void addComponent({

packages/vue/src/components/ui-components/GoogleOneTap.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import type { GoogleOneTapProps } from '@clerk/types';
55
66
const clerk = useClerk();
77
8-
const props = defineProps<GoogleOneTapProps>();
8+
const props = withDefaults(defineProps<GoogleOneTapProps>(), {
9+
cancelOnTapOutside: true,
10+
itpSupport: true,
11+
fedCmSupport: true,
12+
});
913
</script>
1014

1115
<template>

0 commit comments

Comments
 (0)