chore(clerk-js): Deprecate FormControl#1912
Conversation
🦋 Changeset detectedLatest commit: b59249e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
fd3d8b7 to
bddf7ad
Compare
| LabelRow: FieldLabelRow, | ||
| Input: InputElement, | ||
| Action: FieldAction, | ||
| AsOptional: FieldOptionalLabel, |
There was a problem hiding this comment.
Maybe rename this to OptionalLabel ?
anagstef
left a comment
There was a problem hiding this comment.
@panteliselef great stuff! just commit the changes we talked about and it's good to go.
3964035 to
c7f4085
Compare
c7f4085 to
7318421
Compare
7318421 to
e8a36d1
Compare
dimkl
left a comment
There was a problem hiding this comment.
Let's add the deprecation of the FormControl in the main-v4 branch and open a clean-up PR from the main.
| * Stand-alone express middlewares bound to the pre-initialised clerkClient | ||
| */ | ||
| export const ClerkExpressRequireAuth = (...args: any) => { | ||
| export const ClerkExpressRequireAuth = (...args: Parameters<ReturnType<typeof createClerkExpressRequireAuth>>) => { |
There was a problem hiding this comment.
Is this meant to be in this PR?
There was a problem hiding this comment.
no! Should be dropped from this PR
There was a problem hiding this comment.
This is now dropped 🔥
e8a36d1 to
b59249e
Compare
Description
This is PR starts the refactoring process for our forms. The main focus is refactoring how our fields are structure, starting the
PlainInputwhich represents a simple input element.In the immediate feature we want to completely drop Form.Control and offer these alternatives
Their API will remain simple and those will be opinionated about the UI they represent, the underlying implementation will allow for easy changes tho.
fieldprefix in order to clearly indicate that the internal state reflects to a field not the entire formFormFieldContextProviderreplacesFormControlContextProvider(both need to co-exist until the refactor is complete)Checklist
npm testruns as expected.npm run buildruns as expected.Type of change
Packages affected
@clerk/clerk-js@clerk/clerk-react@clerk/nextjs@clerk/remix@clerk/types@clerk/themes@clerk/localizations@clerk/clerk-expo@clerk/backend@clerk/clerk-sdk-node@clerk/shared@clerk/fastify@clerk/chrome-extensiongatsby-plugin-clerkbuild/tooling/chore