@empathyco/x-components 3.0.0-alpha.113 → 3.0.0-alpha.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/docs/API-reference/api/x-adapter-platform.bannermutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.facetmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.hierarchicalfiltermutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.identifierresultsendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.identifierresultsrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.identifierresultsrequestschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.identifierresultsresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.identifierresultsresponseschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.nextqueriesendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.nextqueriesrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.nextqueriesrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.nextqueriesresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.nextqueriesresponsemutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.nextquerymutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.numberfiltermutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.popularsearchesendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.popularsearchesrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.popularsearchesrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.popularsearchesresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.popularsearchesresponsemutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.promotedmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.querysuggestionsendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.querysuggestionsrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.querysuggestionsrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.querysuggestionsresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.querysuggestionsresponsemutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.recommendationsendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.recommendationsrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.recommendationsrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.recommendationsresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.recommendationsresponsemutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.redirectionmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.relatedtagmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.relatedtagsendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.relatedtagsrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.relatedtagsrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.relatedtagsresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.relatedtagsresponsemutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.resultschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.searchendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.searchrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.searchrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.searchresponsemapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.searchresponsemutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.simplefiltermutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.suggestionmutableschema.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.taggingendpointadapter.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.taggingrequestmapper.md +1 -1
- package/docs/API-reference/api/x-adapter-platform.taggingrequestmutableschema.md +1 -1
- package/docs/API-reference/api/x-components.addquerytohistoryaction.md +1 -1
- package/docs/API-reference/api/x-components.historyqueriesgetter.md +1 -1
- package/docs/API-reference/api/x-components.querysuggestionsgetter.md +1 -1
- package/docs/API-reference/api/x-components.scrollstatepayload.md +1 -1
- package/docs/API-reference/api/x-components.wireparams.md +1 -1
- package/docs/API-reference/api/x-components.xactioncontext.md +1 -1
- package/docs/API-reference/components/facets/x-components.facets/facets.md +26 -3
- package/docs/build-search-ui/web-x-components-development-guide.md +3 -4
- package/js/x-modules/facets/components/facets/facets.vue.js +11 -5
- package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue_rollup-plugin-vue_script.vue.js +2 -1
- package/js/x-modules/facets/components/facets/facets.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets.mixin.js +1 -115
- package/js/x-modules/facets/components/facets.mixin.js.map +1 -1
- package/package.json +5 -5
- package/report/tsdoc-metadata.json +1 -1
- package/report/x-adapter-platform.api.json +150 -154
- package/report/x-components.api.json +466 -776
- package/report/x-components.api.md +2 -2
- package/types/adapter/e2e-adapter.d.ts +1 -1
- package/types/adapter/e2e-adapter.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets/facets.vue.d.ts +2 -1
- package/types/x-modules/facets/components/facets/facets.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets.mixin.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.116](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.115...@empathyco/x-components@3.0.0-alpha.116) (2022-06-22)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **facets:** Add slot by Facet ModelName. (#572)
|
|
11
|
+
([899515a](https://github.com/empathyco/x/commit/899515a1424bfab9a8d937a1feb9507917173807)),
|
|
12
|
+
closes [EX-6433](https://searchbroker.atlassian.net/browse/EX-6433)
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
## [3.0.0-alpha.115](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.114...@empathyco/x-components@3.0.0-alpha.115) (2022-06-21)
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
- remove old adapter package and use the new one (#568)
|
|
24
|
+
([1632a59](https://github.com/empathyco/x/commit/1632a594b6905e6403c82b2189300eefd45b3691)),
|
|
25
|
+
closes [EX-6286](https://searchbroker.atlassian.net/browse/EX-6286)
|
|
26
|
+
|
|
27
|
+
# Change Log
|
|
28
|
+
|
|
29
|
+
All notable changes to this project will be documented in this file. See
|
|
30
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
31
|
+
|
|
32
|
+
## [3.0.0-alpha.114](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.113...@empathyco/x-components@3.0.0-alpha.114) (2022-06-21)
|
|
33
|
+
|
|
34
|
+
### Build System
|
|
35
|
+
|
|
36
|
+
- sync duplicated dependencies (#567)
|
|
37
|
+
([912e968](https://github.com/empathyco/x/commit/912e9687851594871b3296a5fb26129327939d96)),
|
|
38
|
+
closes [EX-6412](https://searchbroker.atlassian.net/browse/EX-6412)
|
|
39
|
+
|
|
40
|
+
# Change Log
|
|
41
|
+
|
|
42
|
+
All notable changes to this project will be documented in this file. See
|
|
43
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
44
|
+
|
|
6
45
|
## [3.0.0-alpha.113](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.112...@empathyco/x-components@3.0.0-alpha.113) (2022-06-20)
|
|
7
46
|
|
|
8
47
|
### Features
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
facetMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
facetMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformFacet, EditableNumberRangeFacet | HierarchicalFacet | NumberRangeFacet | SimpleFacet>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
hierarchicalFilterMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
hierarchicalFilterMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformHierarchicalFilter, HierarchicalFilter>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
identifierResultsEndpointAdapter: import("@empathyco/x-adapter
|
|
10
|
+
identifierResultsEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<IdentifierResultsRequest, IdentifierResultsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
identifierResultsRequestMapper: import("@empathyco/x-adapter
|
|
10
|
+
identifierResultsRequestMapper: import("@empathyco/x-adapter").Mapper<IdentifierResultsRequest, PlatformIdentifierResultsRequest>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
identifierResultsRequestSchema: import("@empathyco/x-adapter
|
|
10
|
+
identifierResultsRequestSchema: import("@empathyco/x-adapter").MutableSchema<Schema<IdentifierResultsRequest, PlatformIdentifierResultsRequest>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
identifierResultsResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
identifierResultsResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformIdentifierResultsResponse, IdentifierResultsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
identifierResultsResponseSchema: import("@empathyco/x-adapter
|
|
10
|
+
identifierResultsResponseSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformIdentifierResultsResponse, IdentifierResultsResponse>>
|
|
11
11
|
```
|
|
@@ -9,5 +9,5 @@ This endpoint does not support pagination in the request.
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
nextQueriesEndpointAdapter: import("@empathyco/x-adapter
|
|
12
|
+
nextQueriesEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<NextQueriesRequest, NextQueriesResponse>
|
|
13
13
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
nextQueriesRequestMapper: import("@empathyco/x-adapter
|
|
10
|
+
nextQueriesRequestMapper: import("@empathyco/x-adapter").Mapper<NextQueriesRequest, PlatformNextQueriesRequest>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
nextQueriesRequestMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
nextQueriesRequestMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<NextQueriesRequest, PlatformNextQueriesRequest>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
nextQueriesResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
nextQueriesResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformNextQueriesResponse, NextQueriesResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
nextQueriesResponseMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
nextQueriesResponseMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformNextQueriesResponse, NextQueriesResponse>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
numberFilterMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
numberFilterMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformFilter, NumberRangeFilter>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
popularSearchesEndpointAdapter: import("@empathyco/x-adapter
|
|
10
|
+
popularSearchesEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<PopularSearchesRequest, PopularSearchesResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
popularSearchesRequestMapper: import("@empathyco/x-adapter
|
|
10
|
+
popularSearchesRequestMapper: import("@empathyco/x-adapter").Mapper<PopularSearchesRequest, PlatformPopularSearchesRequest>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
popularSearchesRequestMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
popularSearchesRequestMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PopularSearchesRequest, PlatformPopularSearchesRequest>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
popularSearchesResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
popularSearchesResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformPopularSearchesResponse, PopularSearchesResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
popularSearchesResponseMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
popularSearchesResponseMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformPopularSearchesResponse, PopularSearchesResponse>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
querySuggestionsEndpointAdapter: import("@empathyco/x-adapter
|
|
10
|
+
querySuggestionsEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<QuerySuggestionsRequest, QuerySuggestionsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
querySuggestionsRequestMapper: import("@empathyco/x-adapter
|
|
10
|
+
querySuggestionsRequestMapper: import("@empathyco/x-adapter").Mapper<QuerySuggestionsRequest, PlatformQuerySuggestionsRequest>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
querySuggestionsRequestMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
querySuggestionsRequestMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<QuerySuggestionsRequest, PlatformQuerySuggestionsRequest>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
querySuggestionsResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
querySuggestionsResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformQuerySuggestionsResponse, QuerySuggestionsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
querySuggestionsResponseMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
querySuggestionsResponseMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformQuerySuggestionsResponse, QuerySuggestionsResponse>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
recommendationsEndpointAdapter: import("@empathyco/x-adapter
|
|
10
|
+
recommendationsEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<RecommendationsRequest, RecommendationsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
recommendationsRequestMapper: import("@empathyco/x-adapter
|
|
10
|
+
recommendationsRequestMapper: import("@empathyco/x-adapter").Mapper<RecommendationsRequest, PlatformRecommendationsRequest>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
recommendationsRequestMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
recommendationsRequestMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<RecommendationsRequest, PlatformRecommendationsRequest>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
recommendationsResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
recommendationsResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformRecommendationsResponse, RecommendationsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
recommendationsResponseMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
recommendationsResponseMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformRecommendationsResponse, RecommendationsResponse>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
redirectionMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
redirectionMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformRedirection, Redirection>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
relatedTagMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
relatedTagMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformRelatedTag, RelatedTag>>
|
|
11
11
|
```
|
|
@@ -9,5 +9,5 @@ This endpoint does not support pagination in the request.
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
relatedTagsEndpointAdapter: import("@empathyco/x-adapter
|
|
12
|
+
relatedTagsEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<RelatedTagsRequest, RelatedTagsResponse>
|
|
13
13
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
relatedTagsRequestMapper: import("@empathyco/x-adapter
|
|
10
|
+
relatedTagsRequestMapper: import("@empathyco/x-adapter").Mapper<RelatedTagsRequest, PlatformRelatedTagsRequest>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
relatedTagsRequestMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
relatedTagsRequestMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<RelatedTagsRequest, PlatformRelatedTagsRequest>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
relatedTagsResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
relatedTagsResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformRelatedTagsResponse, RelatedTagsResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
relatedTagsResponseMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
relatedTagsResponseMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformRelatedTagsResponse, RelatedTagsResponse>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
searchEndpointAdapter: import("@empathyco/x-adapter
|
|
10
|
+
searchEndpointAdapter: import("@empathyco/x-adapter").ExtendableEndpointAdapter<SearchRequest, SearchResponse>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
searchRequestMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
searchRequestMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<SearchRequest, PlatformSearchRequest>>
|
|
11
11
|
```
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
searchResponseMapper: import("@empathyco/x-adapter
|
|
10
|
+
searchResponseMapper: import("@empathyco/x-adapter").Mapper<PlatformSearchResponse, {
|
|
11
11
|
banners: import("@empathyco/x-types").Banner[];
|
|
12
12
|
facets: import("@empathyco/x-types").Facet[];
|
|
13
13
|
partialResults: import("@empathyco/x-types").PartialResult[];
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
searchResponseMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
searchResponseMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformSearchResponse, SearchResponse>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
simpleFilterMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
simpleFilterMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformFilter, SimpleFilter>>
|
|
11
11
|
```
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
<b>Signature:</b>
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
|
-
suggestionMutableSchema: import("@empathyco/x-adapter
|
|
10
|
+
suggestionMutableSchema: import("@empathyco/x-adapter").MutableSchema<Schema<PlatformSuggestion, Suggestion>>
|
|
11
11
|
```
|
|
@@ -11,7 +11,7 @@ Class implementation for the [HistoryQueriesActions.addQueryToHistory()](./x-com
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare class AddQueryToHistoryAction implements ActionsClass<HistoryQueriesXStoreModule>
|
|
13
13
|
```
|
|
14
|
-
<b>Implements:</b> [ActionsClass](./x-components.actionsclass.md)<!-- --><[HistoryQueriesXStoreModule](./x-components.historyqueriesxstoremodule.md)
|
|
14
|
+
<b>Implements:</b> [ActionsClass](./x-components.actionsclass.md)<!-- --><[HistoryQueriesXStoreModule](./x-components.historyqueriesxstoremodule.md)<!-- -->>
|
|
15
15
|
|
|
16
16
|
## Methods
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ Class implementation for the [HistoryQueriesGetters.historyQueries](./x-componen
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare class HistoryQueriesGetter implements GettersClass<HistoryQueriesXStoreModule>
|
|
13
13
|
```
|
|
14
|
-
<b>Implements:</b> [GettersClass](./x-components.gettersclass.md)<!-- --><[HistoryQueriesXStoreModule](./x-components.historyqueriesxstoremodule.md)
|
|
14
|
+
<b>Implements:</b> [GettersClass](./x-components.gettersclass.md)<!-- --><[HistoryQueriesXStoreModule](./x-components.historyqueriesxstoremodule.md)<!-- -->>
|
|
15
15
|
|
|
16
16
|
## Methods
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ Class implementation for the [QuerySuggestionsGetter.querySuggestions()](./x-com
|
|
|
11
11
|
```typescript
|
|
12
12
|
export declare class QuerySuggestionsGetter implements GettersClass<QuerySuggestionsXStoreModule>
|
|
13
13
|
```
|
|
14
|
-
<b>Implements:</b> [GettersClass](./x-components.gettersclass.md)<!-- --><[QuerySuggestionsXStoreModule](./x-components.querysuggestionsxstoremodule.md)
|
|
14
|
+
<b>Implements:</b> [GettersClass](./x-components.gettersclass.md)<!-- --><[QuerySuggestionsXStoreModule](./x-components.querysuggestionsxstoremodule.md)<!-- -->>
|
|
15
15
|
|
|
16
16
|
## Methods
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ Payload object containing the identifier of the scroll and its position.
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface ScrollStatePayload extends Identifiable<string>
|
|
13
13
|
```
|
|
14
|
-
<b>Extends:</b> Identifiable
|
|
14
|
+
<b>Extends:</b> Identifiable<string>
|
|
15
15
|
|
|
16
16
|
## Properties
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ Groups the payload, metadata, and the store into an object to avoid having multi
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface WireParams<Payload> extends WirePayload<Payload>
|
|
13
13
|
```
|
|
14
|
-
<b>Extends:</b> [WirePayload](./x-components.wirepayload.md)
|
|
14
|
+
<b>Extends:</b> [WirePayload](./x-components.wirepayload.md)<!-- --><Payload>
|
|
15
15
|
|
|
16
16
|
## Properties
|
|
17
17
|
|
|
@@ -11,7 +11,7 @@ Type safe Vuex [Action](https://vuex.vuejs.org/api/#actions) context, with the l
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface XActionContext<State extends Dictionary, Getters extends Dictionary, Mutations extends MutationsDictionary<Mutations>, Actions extends ActionsDictionary<Actions>> extends ActionContext<State, RootXStoreState>
|
|
13
13
|
```
|
|
14
|
-
<b>Extends:</b> ActionContext<State, [RootXStoreState](./x-components.rootxstorestate.md)
|
|
14
|
+
<b>Extends:</b> ActionContext<State, [RootXStoreState](./x-components.rootxstorestate.md)<!-- -->>
|
|
15
15
|
|
|
16
16
|
## Properties
|
|
17
17
|
|
|
@@ -24,9 +24,9 @@ differently based on their purpose and this can be achieved using the exposed sl
|
|
|
24
24
|
|
|
25
25
|
## Slots
|
|
26
26
|
|
|
27
|
-
| Name | Description | Bindings<br />(name - type - description)
|
|
28
|
-
| -------------------- | -------------------------------------------------------------------------------------- |
|
|
29
|
-
| <code>default</code> | Customized Facet rendering. Specifying a slot with the facet's name will result in the | **facet** <code>Facet</code> - Facet to render<br
|
|
27
|
+
| Name | Description | Bindings<br />(name - type - description) |
|
|
28
|
+
| -------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
29
|
+
| <code>default</code> | Customized Facet rendering. Specifying a slot with the facet's name will result in the | **facet** <code>Facet</code> - Facet to render<br />**selectedFilters** <code>Filter[]</code> - List of selected filters of the given facet |
|
|
30
30
|
|
|
31
31
|
## Example
|
|
32
32
|
|
|
@@ -80,6 +80,12 @@ facet to customize. For example, the Facet with the id "color" requires a compos
|
|
|
80
80
|
from the rest of the Facets. Doing it in a slot with the name "color" will apply this customization
|
|
81
81
|
just to the "color" Facet. The other facets will fallback to the composition of the default slot.
|
|
82
82
|
|
|
83
|
+
It is also possible to customize the Facet content by the facet "model name". For example, to
|
|
84
|
+
configure different content for "Hierarchical Facets" the "hierarchical-facet" slot will apply that
|
|
85
|
+
customization. This can be combined with the facets by facet id. If some hierarchical facet needs
|
|
86
|
+
some different customization from the rest of the hierarchical, it can be achieve using the slot
|
|
87
|
+
with the facet id.
|
|
88
|
+
|
|
83
89
|
```vue
|
|
84
90
|
<template>
|
|
85
91
|
<Facets>
|
|
@@ -95,6 +101,23 @@ just to the "color" Facet. The other facets will fallback to the composition of
|
|
|
95
101
|
</ul>
|
|
96
102
|
</template>
|
|
97
103
|
|
|
104
|
+
<template #hierarchical-facet="{ facet, selectedFilters }">
|
|
105
|
+
<span v-if="selectedFilters.length > 0">{{
|
|
106
|
+
`${selectedFilters.length} colors chosen`
|
|
107
|
+
}}</span>
|
|
108
|
+
|
|
109
|
+
<ul v-for="filter in facet.filters" :key="filter.id">
|
|
110
|
+
<li v-if="!filter.selected">
|
|
111
|
+
{{ filter.label }}
|
|
112
|
+
<ul v-for="childFilter in filter.children" :key="filter.id">
|
|
113
|
+
<li v-if="!childFilter.selected">
|
|
114
|
+
{{ childFilter.label }}
|
|
115
|
+
</li>
|
|
116
|
+
</ul>
|
|
117
|
+
</li>
|
|
118
|
+
</ul>
|
|
119
|
+
</template>
|
|
120
|
+
|
|
98
121
|
<template #default="{ facet }">
|
|
99
122
|
<h1>{{ facet.label }}</h1>
|
|
100
123
|
|
|
@@ -63,8 +63,7 @@ To build your search and discovery UI, the following project dependencies are re
|
|
|
63
63
|
you are not using the Empathy Search API, you need to build your own search adapter. In order to
|
|
64
64
|
build your own search adapter, you can either extend the **x-adapter-platform** or create a new
|
|
65
65
|
one from scratch using the
|
|
66
|
-
[`@empathyco/x-adapter
|
|
67
|
-
package.
|
|
66
|
+
[`@empathyco/x-adapter`](https://github.com/empathyco/x/tree/main/packages/x-adapter) package.
|
|
68
67
|
|
|
69
68
|
- **x-types**
|
|
70
69
|
([`@empathyco/x-types`](https://github.com/empathyco/x/tree/main/packages/search-types)): The data
|
|
@@ -82,8 +81,8 @@ npm install --save @empathyco/x-components @empathyco/x-types @empathyco/x-adapt
|
|
|
82
81
|
You will need the search adapter in the [xPlugin configuration](#3-configure-the-plugin).
|
|
83
82
|
|
|
84
83
|
There are two libraries for making it easier to consume search APIs. The
|
|
85
|
-
[`@empathyco/x-adapter`](https://github.com/empathyco/x/tree/main/packages/x-adapter
|
|
86
|
-
|
|
84
|
+
[`@empathyco/x-adapter`](https://github.com/empathyco/x/tree/main/packages/x-adapter), which is the
|
|
85
|
+
interface you can use to build your own adapter for other APIs, and the
|
|
87
86
|
[`@empathyco/x-adapter-platform`](https://github.com/empathyco/x/tree/main/packages/x-adapter-platform),
|
|
88
87
|
which is the implementation to consume the Empathy Search Platform API, and it can be extended in
|
|
89
88
|
case your search API is similar to it.
|