Releases: empathyco/x
Releases · empathyco/x
4.0.1 EthixSirius
⚠ BREAKING CHANGES
- components: remove deprecated origins from #1344
- facets: The 'unknown-facet' value for a facetId has been removed: it has been replaced by the UNKNOWN_FACET_KEY constant, whose value is 'unknown'. #1351
Features
- migrate from
vue-cli
tovite
#1350 - extra-params: allow currency to be an extra param as default (319851d)
- components: remove deprecated origins #1355
- facets: Unify unknown and unknown-facet in a constant #1351
Bug Fixes
- history-queries: map selected filters correctly when coming from Query Preview #1325
- x-plugin: improve ResultFeature type values #1344
Documentation
- integration: how to track
add2cart
event #1349 - fix
@empathyco/x-components
import path in examples #1353 - static-docs: added redirections in static docs metadata #1341
- fix identation error in search-box.md #1343
https://github.com/empathyco/x/commits/@empathyco/[email protected]
3.0.0 JoyfulPulsar
What's Changed
⚠ BREAKING CHANGES
- design-system: Design system styles have now to be imported from
@empathy/x-components/design-system
instead of@empathy/x-components/css
- components: Remove
hideIntegerDecimals
fromcurrency-formatter
util,base-currency
component. - facets-next: Rename
EmpathyFilterMapper
toEmpathyFacetFilterMapper
. Response filter mappers now map the API value in theid
filters property.EmpathyHierarchicalFacetMapper
now flattens and stores all the filters in thefilter
property.EmpathyHierarchicalFacetMapper
now only maps filters ids inHierarchicalFilter
children. Bump up@empathyco/x-types
major version in@empathyco/x-adapter
. - facets: Rename
Filters
component toFiltersList
. - facets: Remove
MultiSelectFilters
component. Filters are multi-select by default. Apply theSingleSelectModifier
using theFilterEntityFactory
to make the desiredFacet
single select. - facets: Refactor
HierarchicalFilter.children
field. Now, this field is list of theFilter.ids
of the children filter. AllHierarchicalFilter
s are flattened in theFacet.filters
list. - facets: Remove
facets
prop in theFacets
component to provideFacets
to the state. Use theFacetsProvider
component instead. - facets: Remove
UserChangedSelectedFilters
event fromFacets
component. UseFacetsProvider
component instead. - facets: Remove
UserClickedClearFacetFilters
event.UserClickedClearAllFilters
is emitted instead. Its payload is now list ofFacet.id
s. - facets: Rename
UserClickedFacetAllFilter
event toUserClickedAllFilter
. Its payload is now list ofFacet.id
s. - facets: Remove
BackendFacetsChanged
event. UseFacetsChanged
event instead. - facets: Remove
BackendFacetsProvided
event. UseFacetsGroupProvided
instead. - facets: Remove
FrontendFacetsChanged
event. UseFacetsGroupProvided
instead. - facets: Remove
FacetMultiSelectChanged
event.Filter
s are multi-select by default. Apply theSingleSelectModifier
using theFilterEntityFactory
to make the desiredFacet
single select. - facets: Change
UserModifiedEditableNumberRangeFilter
payload. Now it is theEditableNumberRangeFilter
filter with the new range value. - Slots that are created using properties like the
modelName
or theid
of different objects, now are named using the kebab-case version of those values. This affects the following components:
BaseGrid
,Facets
andSelectedFiltersList
. Examples:<template #Result="{ ... }">
now is
<template #result="{ ... }">
<template #NextQueriesGroup="{ ... }">
now is
<template #next-queries-group="{ ... }">
<template #hierarchical_category="{ ... }">
now is
<template #hierarchical-category="{ ... }">
- storage-service:
StorageService
has been renamed toBrowserStorageService
. - components:
SlidingPanel
buttons do not have the round variant set by default. - facets: Remove
BaseFilter
component. UseRenderlessFilter
instead. - components: Removed
CollapseFromTop
Animation. UseanimateScale()
instead. - components: Removed
TranslateFromLeft
andTranslateFromRight
components. UseanimateTranslate('left')
andanimateTranslate('right')
instead. - related-tags: Remove
selected
andprevious
logic from related tags. - related-tags: Remove
EmpathyRequestRelatedTagsQueryMapper
. - Request types moved to
x-types
package. Change the imports fromx-adapter
tox-type
. - Removed
TaggingInfo
type. UseTaggingRequest
from@empathyco/x-types
instead. - facets: Renamed method
registerFilterModifier
inFilterEntityFactory
toregisterModifierByFacetId
. - facets: Changed
modifiers
parameter ofregisterFilterModifier
inFilterEntityFactory
from single array in favour of rest parameters. --x-number-aspect-ratio-picture
is now inverted. Previously value of 2 meant that it was twice taller than wider. Now it means twice wider than taller.- facets: Removed the
setFilter
mutation fromfacets
X-Module. UsemutateFilter
instead. - facets: Modified the
HierarchicalFilter.children
Model type. Now it is anArray<HierarchicalFilter>
instead of an array of ids. - result:
Result
model properties are optional, exceptid
,modelName
andtagging
. - tagging:
tagging
property ofTaggable
andqueryTagging
property ofSearchResponse
are optional. - components:
facets
are now optional inSuggestion
. - design-system: the old design system button styles are now located in the
deprecated-full-theme.css
, if setup is not using the new design system, it must import this file. - components: Renamed prop
animation
ofBaseResultImage
toloadAnimation
. - search: the event
SearchResponseProvided
was renamed toSearchResponseChanged
- Removes
queryHTML
slot scope prop fromBaseSuggestion
,PopularSearch
QuerySuggestion
andHistoryQuery
. Use the newHighlight
component instead. - next-queries: Rename
NextQueryPreviewMounted
toNextQueryPreviewMountedHook
andQueryPreviewRemoved
toQueryPreviewUnmountedHook
- design-system: suggestion and suggestion group styles are now deprecated. To continue using them import from
deprecated-full-theme.css
. - Rename
x-grid
class tox-grid-list
. - Rename
x-grid__item
class tox-grid-list__item
. - Rename
x-grid--cols-{cols}
class tox-grid-list--cols-{cols}
. - history-queries: Renamed
removeHistoryQueryClass
prop toremoveButtonClass
. - design-system:
picture
and someresult
styles related are now deprecated. To continue using them import fromdeprecated-full-theme.css
. - Rename
x-result-picture__image
tox-result-picture-image
. - components: Renamed
SlidingPanel
css classesx-sliding-panel--at-start
andx-sliding-panel--at-end
tox-sliding-panel-at-start
andx-sliding-panel-at-end
respectively. - components: Renamed
SlidingPanel
buttons css classesx-sliding-panel__button-left
andx-sliding-panel__button-right
tox-sliding-panel-button-left
andx-sliding-panel-button-right
respectively. - components: Old design-system
SlidingPanel
styles (including the updated button classes) are now located in thedeprecated-full-theme.css
file. - components: class
x-picture__image
renamed tox-picture-image
, deprecate classesx-picture__image--placeholder
andx-picture__image--fallback
- design-system: Old design-system
Icon
styles are now located in thedeprecated-full-theme.css
file. Removedcheckbox-card
,nq1
,nq2
,nq3
, andnq4 icons
. - design-system: design system scroll styles are deprecated. To continue using them import from deprecated-full-theme.css
- design-system: Old
design-system
Tag
styles are now located in thedeprecated-full-theme.css
file. - design-system: Old
x-tag--is-curated
andx-tag--is-selected
classes are no longer used byRelatedTag
component. base-column-picker-list
structure changes. It now wraps the buttons in div instead of using ul and li. Additionally, the class for the selected option has been changed tox-selected
.- design-system: Old
design-system
progress-bar
styles are now located in thedeprecated-full-theme.css
file. - design-system: Renamed
x-progress-bar__line
class tox-progress-bar-fill
. - design-system: The
x-components
design system has been deprecated. The exported theme is no longer available. If you need support for the old design system you should import@empathyco/x-components/design-system deprecated-full-theme.css
. - design-system:
x-grid-list
andx-grid-list__item
classes have been removed fromBaseGrid
component. - design-system:
x-grid-list--cols-{columns}
has been renamed tox-base-grid--cols-{columns}
- design-system:
x-list
class has been removed from the following components:
BaseModal
,BaseSuggetions
,BaseTabsPanel
,Facets
,FiltersList
,FiltersSearch
,IdentifierResults
,MyHistory
,PartialResultList
,ResultVariantSelector
,Recommendations
,RelatedTags
,SlidingPanel
,SelectedFiltersList
. - design-system:
FixedHeaderAndAsidesLayout
MultiColumnMaxWidthLayout
andSingleColumnLayout
have been deprecated. - design-system:
BaseModal
default opacity has changed from0.7
to0.3
. - design-system:
x-list__item
class has been removed fromBaseTabsPanel
component. - design-system:
x-message
class has been removed fromRedirection
component. - deps: minimum version required is node v18
- the property 'querySuggestions' in 'x-plugin' now returns the query suggestions that should be displayed based on the module's config. new property called 'fullQuerySuggestions' returns all the query suggestions in the module
- queries-preview: the
QueryPreviewList
componentqueries
prop has changed name toqueriesPreviewInfo
and the type is an array ofQueryPreviewInfo
as instead of an array of strings. The QueryPreview componentquery
prop has changed name toqueryPreviewInfo
and the type isQueryPreviewInfo
instead ofstring
.QueryPreviewInfo
type is now exported from the module. - setPageSize search module mutation has been replaced by the
setConfig
mutation.setTaggingConfig
tagging module mutation andsetFacetsConfig
facets module mutation have been replaced by themergeConfig
mutation.