-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Rewrite <FormTokenField> to functional component and Typescript.
#41216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
17ab8c8
refactor `<TokenInput>` to functional component and Typescript.
torounit 5dc6be3
use findRenderedDOMComponentWithTag instead of findRenderedComponentW…
torounit 6f6553b
convert `<Token>` to TypeScript
torounit eeaf143
type only import
torounit 513e8fa
convert SuggestionsList to TypeScript
torounit 5911062
Change to not use withSafeTimeout. ref: https://github.com/WordPress/…
torounit 5f21e05
Remove comment because tabIndex is not specified.
torounit d6ea243
add type for dom-scroll-into-view
torounit 56c9516
add form-token-field dir to include in tsconfig.json
torounit 759cd45
refactoring types.
torounit 1875998
fix type.
torounit d8cb6c2
refactor FormTokenField to TypeScript and Functional Component
torounit b790e13
refactor story
torounit 545edd0
allow set suggestions in stories.
torounit 78845d3
Use act where useEffect is relevant.
torounit 2c3f570
separate state
torounit 321a0e0
revert ts-nocheck
torounit 6fa7624
remove onChange prop form storybook
torounit 3912110
Update packages/components/src/form-token-field/token-input.tsx
torounit 7d9dbbd
use ComponentProps
torounit 54106cc
add type docs
torounit 1f28d51
replace token-field-wrapper to tsx
torounit 29f0a9a
add doc comment for FormTokenField
torounit 5da1391
fix type docs
torounit ad0a191
Update packages/components/src/form-token-field/types.ts
torounit 5bf7dd3
Update packages/components/src/form-token-field/types.ts
torounit f716d31
Update packages/components/src/form-token-field/index.tsx
torounit 3e72c70
Update packages/components/src/form-token-field/index.tsx
torounit 5d16757
Update packages/components/src/form-token-field/index.tsx
torounit a80a192
change variable and function name
torounit 03420cc
Fix useEffect to updateSuggestions().
torounit e1bc853
Disabled control for __experimentalValidateInput. Update type document.
torounit 98d5fbc
add changelog
torounit 5039721
Update packages/components/src/form-token-field/index.tsx
torounit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change to not use withSafeTimeout. ref: #19109
- Loading branch information
commit 5911062a7bb265044dd39093cbf6b94a6315a2dd
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.