aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components, hooks): rewrite ToC and useHeadingsTreeArmand Philippot2023-11-141-1/+1
| | | | | | | | | | | | * replace TableOfContents component with TocWidget to keep the name of widget components coherent * replace `wrapper` prop with `tree` prop (the component no longer uses the hook, it is up to the consumer to provide the headings tree) * let consumer handle the widget title * add options to useHeadingsTree hook to retrieve only the wanted headings (and do not assume that h1 is unwanted) * expect an ref object instead of an element in useHeadingsTree hook * rename most of the types involved
* refactor(components): replace LinksListWidget with LinksWidgetArmand Philippot2023-11-141-1/+1
| | | | | | | * avoid List component repeat * rewrite tests and CSS * add an id to LinksWidgetItemData (previously LinksListItems) type because the label could be duplicated
* refactor(components): replace Sharing with SharingWidget componentArmand Philippot2023-11-141-1/+1
| | | | | | | * all the widgets should have a coherent name * fix mailto uri * remove useless CSS * add tests
* refactor(components): replace SocialMedia with SocialMediaWidgetArmand Philippot2023-11-131-1/+1
| | | | | | * the goal is to make the name of the widgets coherent * remove useless CSS * replace Media type with SocialMediaData
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-0/+5
Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.