Releases: datagouv/cdata
@datagouv/components-next v1.0.0
🔴 Breaking Changes
Explode DatasetInformationPanel into multiple components (#912)
Removed DatasetInformationPanel. Added DatasetEmbedSection, DatasetInformationSection, DatasetSchemaSection, DatasetSpatialSection, DatasetTemporalitySection, LeafletMap, LicenseBadge, Tag, DescriptionListDetails, DescriptionListTerm.
Type restructuring (#863, #846)
OrganizationandUsertypes no longer extend their reference types- Added
classdiscriminant field toUserReference,OrganizationReference - Added
DatasetReference,DataserviceReference,ReuseReferencetypes - Added
OwnedWithFullObjecttype - Entity types now reference shared fields via
Pick-style syntax (e.g.id: DatasetReference["id"]) - Widened component props:
AvataracceptsUser | UserReference,OrganizationNameWithCertificateacceptsOrganization | OrganizationReference AvatarWithNamegainedwithLinkprop
🟢 New Features
Global search (#907, #913, #929, #933, #935)
New search system: GlobalSearch, SearchInput, Sidemenu, BasicAndAdvancedFilters, SearchableSelect, SelectGroup, form selects (BadgeSelect, FormatSelect, GeozoneSelect, GranularitySelect, LicenseSelect, OrganizationSelect, OrganizationTypeSelect, ReuseTopicSelect, SchemaSelect, TagSelect), RadioGroup, RadioInput, filter components (AccessTypeFilter, DatasetBadgeFilter, FilterButtonGroup, FormatFamilyFilter, LastUpdateRangeFilter, ProducerTypeFilter, ReuseTypeFilter). New composables: useDebouncedRef, useRouteQueryBoolean, useSelectModelSync, useStableQueryParams. New search types.
Resources explorer (#895)
New ResourceExplorer, ResourceExplorerSidebar, ResourceExplorerViewer components and useResourceCapabilities composable.
New cards (#903)
New components: DiscussionMessageCard, ObjectCard, ObjectCardBadge, ObjectCardHeader, ObjectCardOwner, ObjectCardShortDescription, PostCard, ReuseHorizontalCard, TopicCard. Redesigned DatasetCard, DataserviceCard, ReuseCard. Added types for discussions, pages, posts.
Other features
- Vue-sonner toasts (#834) — Migrated toast system, updated
CopyButton - SEO helpers (#878, #884) — Added
getDescriptionShortandgetKeywordsindescription.ts - Markdown (#900) —
MarkdownViewersupports header removal via remark-behead - Metrics (#944) — Download helpers in
metrics.ts, updateduseMetricscomposable - Organization types (#796) — Added permission fields to organization types
- OrganizationNameWithCertificate (#849, #863, #915) — Added
xssize,colorClassprop, semantic heading tags - SEO (#946) — Improved heading levels in
ObjectCardHeader,StatBox,ResourceAccordion,ResourceExplorerViewer
🟡 Bug Fixes
- Metadata layout in resource accordion (#941)
- Global search design tweaks (#934)
- Resource search reset button and empty state (#938)
- Full page reload on search form (#933)
- Typo in date sentence (#932)
- Wrong imports in
OrganizationCard/OrganizationLogo(#909) - Pagination centering (#902)
- Hydration mismatches on
ReuseCardandDataserviceCard(#892) - Errors and warnings in
OrganizationCard,Tooltip(#893) - Replaced removed CSS class with remixicon (#853)
- Purged CSS classes in
StatBox(#858) - Missing
!importantto override DSFR (#842) - Missing CSS in
Toggletip(#837) - Download button label and color (#839)
- Accessibility errors in
BrandedButton,CopyButton,OrganizationCard,Placeholder,EditButton,ResourceIcon,Toggletip(#848) - Anchor syntax to query syntax (#840)
DataserviceCardtest attribute (#836)DatasetQualityTooltipContenttest ID (#843)
Full changelog: 9a9e545...components/v1.0.0