diff --git a/.changeset/shiny-pandas-love.md b/.changeset/shiny-pandas-love.md new file mode 100644 index 0000000000..7ac5bf489d --- /dev/null +++ b/.changeset/shiny-pandas-love.md @@ -0,0 +1,5 @@ +--- +"@clerk/vue": patch +--- + +Add `initialValues` option to `` and `` components. diff --git a/packages/vue/src/components/SignInButton.ts b/packages/vue/src/components/SignInButton.ts index 37a5536de2..c6f375dd03 100644 --- a/packages/vue/src/components/SignInButton.ts +++ b/packages/vue/src/components/SignInButton.ts @@ -6,7 +6,7 @@ import { assertSingleChild, normalizeWithDefaultValue } from '../utils'; type SignInButtonProps = Pick< SignInProps, - 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signUpForceRedirectUrl' | 'signUpFallbackRedirectUrl' + 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signUpForceRedirectUrl' | 'signUpFallbackRedirectUrl' | 'initialValues' >; export const SignInButton = defineComponent( @@ -42,6 +42,13 @@ export const SignInButton = defineComponent( }; }, { - props: ['signUpForceRedirectUrl', 'signUpFallbackRedirectUrl', 'fallbackRedirectUrl', 'forceRedirectUrl', 'mode'], + props: [ + 'signUpForceRedirectUrl', + 'signUpFallbackRedirectUrl', + 'fallbackRedirectUrl', + 'forceRedirectUrl', + 'mode', + 'initialValues', + ], }, ); diff --git a/packages/vue/src/components/SignUpButton.ts b/packages/vue/src/components/SignUpButton.ts index 29281cac8d..891374ea44 100644 --- a/packages/vue/src/components/SignUpButton.ts +++ b/packages/vue/src/components/SignUpButton.ts @@ -8,7 +8,7 @@ type SignUpButtonProps = { unsafeMetadata?: SignUpUnsafeMetadata; } & Pick< SignUpProps, - 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signInForceRedirectUrl' | 'signInFallbackRedirectUrl' + 'fallbackRedirectUrl' | 'forceRedirectUrl' | 'signInForceRedirectUrl' | 'signInFallbackRedirectUrl' | 'initialValues' >; export const SignUpButton = defineComponent( @@ -51,6 +51,7 @@ export const SignUpButton = defineComponent( 'fallbackRedirectUrl', 'forceRedirectUrl', 'mode', + 'initialValues', ], }, );