block-components
block-components copied to clipboard
Convert existing components to TypeScript
A while ago we've started converting the codebase to using TypeScript #267
Now we actually need to convert the existing components to using it.
### API's
- [ ] [registerBlockExtension](https://github.com/10up/block-components/blob/develop/api/register-block-extension)
- [ ] [registerIcons](https://github.com/10up/block-components/blob/develop/api/register-icons)
### Components
- [x] [ClipboardButton](https://github.com/10up/block-components/blob/develop/components/clipboard-button)
- [ ] [ColorSettings](https://github.com/10up/block-components/blob/develop/components/color-settings)
- [ ] [ContentPicker](https://github.com/10up/block-components/blob/develop/components/content-picker)
- [ ] [ContentSearch](https://github.com/10up/block-components/blob/develop/components/content-search)
- [ ] [CustomBlockAppender](https://github.com/10up/block-components/blob/develop/components/custom-block-appender)
- [ ] [IconPicker](https://github.com/10up/block-components/blob/develop/components/icon-picker)
- [ ] [Image](https://github.com/10up/block-components/blob/develop/components/image)
- [ ] [Link](https://github.com/10up/block-components/blob/develop/components/link)
- [ ] [InnerBlockSlider DEPRECATED](https://github.com/10up/block-components/blob/develop/components/inner-block-slider)
- [x] [IsAdmin](https://github.com/10up/block-components/blob/develop/components/is-admin)
- [ ] [MediaToolbar](https://github.com/10up/block-components/blob/develop/components/media-toolbar)
- [x] [Optional](https://github.com/10up/block-components/blob/develop/components/optional)
- [ ] [Repeater](https://github.com/10up/block-components/blob/develop/components/repeater)
- [ ] [RichTextCharacterLimit](https://github.com/10up/block-components/blob/develop/components/rich-text-character-limit)
- [ ] [PostAuthor](https://github.com/10up/block-components/blob/develop/components/post-author)
- [ ] [PostCategoryList](https://github.com/10up/block-components/blob/develop/components/post-category-list)
- [ ] [PostContext](https://github.com/10up/block-components/blob/develop/components/post-context)
- [ ] [PostDate](https://github.com/10up/block-components/blob/develop/components/post-date)
- [ ] [PostExcerpt](https://github.com/10up/block-components/blob/develop/components/post-excerpt)
- [ ] [PostFeaturedImage](https://github.com/10up/block-components/blob/develop/components/post-featured-image)
- [ ] [PostPrimaryCategory](https://github.com/10up/block-components/blob/develop/components/post-primary-category)
- [ ] [PostPrimaryTerm](https://github.com/10up/block-components/blob/develop/components/post-primary-term)
- [ ] [PostTermList](https://github.com/10up/block-components/blob/develop/components/post-term-list)
- [ ] [PostTitle](https://github.com/10up/block-components/blob/develop/components/post-title)
- [ ] [PostMeta](https://github.com/10up/block-components/blob/develop/components/post-meta)
### Hooks
- [ ] [useFilteredList](https://github.com/10up/block-components/blob/develop/hooks/use-filtered-list)
- [ ] [useHasSelectedInnerBlock](https://github.com/10up/block-components/blob/develop/hooks/use-has-selected-inner-block)
- [x] [useIcons](https://github.com/10up/block-components/blob/develop/hooks/use-icons)
- [x] [useMedia](https://github.com/10up/block-components/blob/develop/hooks/use-media)
- [ ] [useRequestData](https://github.com/10up/block-components/blob/develop/hooks/use-request-data)
- [ ] [useBlockParentAttributes](https://github.com/10up/block-components/blob/develop/hooks/use-block-parent-attributes)
- [x] [useScript](https://github.com/10up/block-components/blob/develop/hooks/use-script)
- [x] [useIsPluginActive](https://github.com/10up/block-components/blob/develop/hooks/use-is-plugin-active)
- [ ] [usePopover](https://github.com/10up/block-components/blob/develop/hooks/use-popover)
- [ ] [useAllTerms](https://github.com/10up/block-components/blob/develop/hooks/use-all-terms)
- [ ] [useTaxonomy](https://github.com/10up/block-components/blob/develop/hooks/use-taxonomy)
- [ ] [useIsSupportedTaxonomy](https://github.com/10up/block-components/blob/develop/hooks/use-is-supported-taxonomy)
- [ ] [usePost](https://github.com/10up/block-components/blob/develop/hooks/use-post)
- [ ] [usePrimaryTerm](https://github.com/10up/block-components/blob/develop/hooks/use-primary-term)
- [ ] [useSelectedTermIds](https://github.com/10up/block-components/blob/develop/hooks/use-selected-term-ids)
- [ ] [useSelectedTerms](https://github.com/10up/block-components/blob/develop/hooks/use-selected-terms)
- [ ] [useSelectedTermsOfSavedPost](https://github.com/10up/block-components/blob/develop/hooks/use-selected-terms-of-saved-post)
- [ ] [usePostMetaValue](https://github.com/10up/block-components/blob/develop/hooks/use-post-meta-value)