From 29f9d16a63d8307f5d29e0c7af49262befbff8f9 Mon Sep 17 00:00:00 2001 From: wobsoriano Date: Tue, 17 Dec 2024 13:38:44 -0800 Subject: [PATCH 1/2] chore(vue): Expose initialValues prop within unstyled components --- packages/vue/src/components/SignInButton.ts | 11 +++++++++-- packages/vue/src/components/SignUpButton.ts | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) 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', ], }, ); From b828743744114f303413cb1c84eb9339d7d543fa Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Tue, 17 Dec 2024 13:40:28 -0800 Subject: [PATCH 2/2] chore: add changeset --- .changeset/shiny-pandas-love.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/shiny-pandas-love.md 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.