@empathyco/x-components 3.0.0-alpha.163 → 3.0.0-alpha.166
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/core/index.js.map +1 -1
- package/design-system/full-theme.css +13 -12
- package/docs/API-reference/api/x-components.clearquerypreviewwire.md +13 -0
- package/docs/API-reference/api/x-components.fetchandsavequerypreview.md +13 -0
- package/docs/API-reference/api/x-components.fetchandsavequerypreviewwire.md +13 -0
- package/docs/API-reference/api/x-components.fetchquerypreview.md +13 -0
- package/docs/API-reference/api/x-components.md +8 -0
- package/docs/API-reference/api/x-components.nextqueries.animation.md +1 -1
- package/docs/API-reference/api/x-components.nextqueries.highlightcurated.md +1 -1
- package/docs/API-reference/api/x-components.nextqueries.maxitemstorender.md +1 -1
- package/docs/API-reference/api/x-components.nextqueries.suggestions.md +13 -0
- package/docs/API-reference/api/x-components.queriespreviewactions.fetchandsavequerypreview.md +24 -0
- package/docs/API-reference/api/x-components.queriespreviewactions.fetchquerypreview.md +26 -0
- package/docs/API-reference/api/x-components.queriespreviewactions.md +8 -0
- package/docs/API-reference/api/x-components.queriespreviewconfig.maxitemstorequest.md +13 -0
- package/docs/API-reference/api/x-components.queriespreviewconfig.md +20 -0
- package/docs/API-reference/api/x-components.queriespreviewmutations.clearquerypreview.md +24 -0
- package/docs/API-reference/api/x-components.queriespreviewmutations.md +10 -0
- package/docs/API-reference/api/x-components.queriespreviewmutations.setparams.md +24 -0
- package/docs/API-reference/api/x-components.queriespreviewmutations.setquerypreview.md +24 -0
- package/docs/API-reference/api/x-components.queriespreviewmutations.setstatus.md +24 -0
- package/docs/API-reference/api/x-components.queriespreviewstate.config.md +13 -0
- package/docs/API-reference/api/x-components.queriespreviewstate.md +9 -0
- package/docs/API-reference/api/x-components.queriespreviewstate.params.md +13 -0
- package/docs/API-reference/api/x-components.queriespreviewstate.queriespreview.md +11 -0
- package/docs/API-reference/api/x-components.queriespreviewxevents.md +8 -0
- package/docs/API-reference/api/x-components.queriespreviewxevents.querypreviewremoved.md +13 -0
- package/docs/API-reference/api/x-components.queriespreviewxevents.querypreviewrequestchanged.md +13 -0
- package/docs/API-reference/api/x-components.querypreviewitem.md +23 -0
- package/docs/API-reference/api/x-components.querypreviewitem.request.md +13 -0
- package/docs/API-reference/api/x-components.querypreviewitem.results.md +13 -0
- package/docs/API-reference/api/x-components.querypreviewitem.totalresults.md +13 -0
- package/docs/API-reference/api/x-components.querypreviewstatuspayload.md +21 -0
- package/docs/API-reference/api/x-components.querypreviewstatuspayload.query.md +13 -0
- package/docs/API-reference/api/x-components.querypreviewstatuspayload.status.md +13 -0
- package/docs/API-reference/api/x-components.setqueriespreviewextraparamswire.md +13 -0
- package/docs/API-reference/components/next-queries/x-components.next-queries.md +1 -0
- package/js/index.js +3 -1
- package/js/index.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue.js +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue_script.vue.js +14 -3
- package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js +40 -0
- package/js/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.js.map +1 -0
- package/js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js +24 -0
- package/js/x-modules/queries-preview/store/actions/fetch-query-preview.action.js.map +1 -0
- package/js/x-modules/queries-preview/store/module.js +30 -4
- package/js/x-modules/queries-preview/store/module.js.map +1 -1
- package/js/x-modules/queries-preview/wiring.js +49 -2
- package/js/x-modules/queries-preview/wiring.js.map +1 -1
- package/package.json +9 -5
- package/queries-preview/index.js +3 -1
- package/report/x-components.api.json +858 -8
- package/report/x-components.api.md +66 -9
- package/types/x-modules/next-queries/components/next-queries.vue.d.ts +19 -7
- package/types/x-modules/next-queries/components/next-queries.vue.d.ts.map +1 -1
- package/types/x-modules/queries-preview/config.types.d.ts +12 -0
- package/types/x-modules/queries-preview/config.types.d.ts.map +1 -0
- package/types/x-modules/queries-preview/events.types.d.ts +11 -0
- package/types/x-modules/queries-preview/events.types.d.ts.map +1 -1
- package/types/x-modules/queries-preview/index.d.ts +1 -0
- package/types/x-modules/queries-preview/index.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts +13 -0
- package/types/x-modules/queries-preview/store/actions/fetch-and-save-query-preview.action.d.ts.map +1 -0
- package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts +13 -0
- package/types/x-modules/queries-preview/store/actions/fetch-query-preview.action.d.ts.map +1 -0
- package/types/x-modules/queries-preview/store/index.d.ts +2 -0
- package/types/x-modules/queries-preview/store/index.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/module.d.ts +1 -1
- package/types/x-modules/queries-preview/store/module.d.ts.map +1 -1
- package/types/x-modules/queries-preview/store/types.d.ts +80 -1
- package/types/x-modules/queries-preview/store/types.d.ts.map +1 -1
- package/types/x-modules/queries-preview/wiring.d.ts +29 -1
- package/types/x-modules/queries-preview/wiring.d.ts.map +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.166](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.165...@empathyco/x-components@3.0.0-alpha.166) (2022-09-02)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Make `Home` grid next queries use grid data rather than state data. (#687)
|
|
11
|
+
([e340ed0](https://github.com/empathyco/x/commit/e340ed0c4fc4d70a0912c38296812c2fcc0c4e23)),
|
|
12
|
+
closes [EX-6955](https://searchbroker.atlassian.net/browse/EX-6955)
|
|
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.165](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.164...@empathyco/x-components@3.0.0-alpha.165) (2022-08-31)
|
|
20
|
+
|
|
21
|
+
### Build System
|
|
22
|
+
|
|
23
|
+
- **dependencies:** fix Vue & Vuex versions (#686)
|
|
24
|
+
([177e851](https://github.com/empathyco/x/commit/177e8511f4458fa13c627210cdfbbf6d42a85b17)),
|
|
25
|
+
closes [EX-6918](https://searchbroker.atlassian.net/browse/EX-6918)
|
|
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.164](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.163...@empathyco/x-components@3.0.0-alpha.164) (2022-08-30)
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
- **queries-preview:** add wiring and actions (#677)
|
|
37
|
+
([a92e350](https://github.com/empathyco/x/commit/a92e3509be65dfce17796efa6fae14a370bc875c)),
|
|
38
|
+
closes [EX-6844](https://searchbroker.atlassian.net/browse/EX-6844)
|
|
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.163](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.162...@empathyco/x-components@3.0.0-alpha.163) (2022-08-29)
|
|
7
46
|
|
|
8
47
|
### Documentation
|
package/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1426,18 +1426,6 @@
|
|
|
1426
1426
|
--x-size-border-radius-bottom-right-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
1427
1427
|
--x-size-border-radius-bottom-left-input-group-pill: var(--x-size-border-radius-input-group-pill);
|
|
1428
1428
|
}
|
|
1429
|
-
.x-input--card.x-input,
|
|
1430
|
-
.x-input--card .x-input {
|
|
1431
|
-
--x-size-border-radius-input-default: var(--x-size-border-radius-input-card);
|
|
1432
|
-
--x-size-border-radius-top-left-input-default: var(--x-size-border-radius-top-left-input-card);
|
|
1433
|
-
--x-size-border-radius-top-right-input-default: var(--x-size-border-radius-top-right-input-card);
|
|
1434
|
-
--x-size-border-radius-bottom-right-input-default: var(
|
|
1435
|
-
--x-size-border-radius-bottom-right-input-card
|
|
1436
|
-
);
|
|
1437
|
-
--x-size-border-radius-bottom-left-input-default: var(
|
|
1438
|
-
--x-size-border-radius-bottom-left-input-card
|
|
1439
|
-
);
|
|
1440
|
-
}
|
|
1441
1429
|
:root {
|
|
1442
1430
|
--x-size-border-radius-input-card: var(--x-size-border-radius-base-s);
|
|
1443
1431
|
--x-size-border-radius-top-left-input-card: var(--x-size-border-radius-input-card);
|
|
@@ -7483,3 +7471,16 @@
|
|
|
7483
7471
|
.x-normal-case {
|
|
7484
7472
|
text-transform: none;
|
|
7485
7473
|
}
|
|
7474
|
+
|
|
7475
|
+
.x-input--card.x-input,
|
|
7476
|
+
.x-input--card .x-input {
|
|
7477
|
+
--x-size-border-radius-input-default: var(--x-size-border-radius-input-card);
|
|
7478
|
+
--x-size-border-radius-top-left-input-default: var(--x-size-border-radius-top-left-input-card);
|
|
7479
|
+
--x-size-border-radius-top-right-input-default: var(--x-size-border-radius-top-right-input-card);
|
|
7480
|
+
--x-size-border-radius-bottom-right-input-default: var(
|
|
7481
|
+
--x-size-border-radius-bottom-right-input-card
|
|
7482
|
+
);
|
|
7483
|
+
--x-size-border-radius-bottom-left-input-default: var(
|
|
7484
|
+
--x-size-border-radius-bottom-left-input-card
|
|
7485
|
+
);
|
|
7486
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [clearQueryPreviewWire](./x-components.clearquerypreviewwire.md)
|
|
4
|
+
|
|
5
|
+
## clearQueryPreviewWire variable
|
|
6
|
+
|
|
7
|
+
Clears a query preview from queries preview module.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
clearQueryPreviewWire: import("../..").Wire<string>
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSaveQueryPreview](./x-components.fetchandsavequerypreview.md)
|
|
4
|
+
|
|
5
|
+
## fetchAndSaveQueryPreview variable
|
|
6
|
+
|
|
7
|
+
Default implementation for the [QueriesPreviewActions.fetchAndSaveQueryPreview()](./x-components.queriespreviewactions.fetchandsavequerypreview.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveQueryPreview: QueriesPreviewXStoreModule['actions']['fetchAndSaveQueryPreview']
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchAndSaveQueryPreviewWire](./x-components.fetchandsavequerypreviewwire.md)
|
|
4
|
+
|
|
5
|
+
## fetchAndSaveQueryPreviewWire variable
|
|
6
|
+
|
|
7
|
+
Requests and stores the query preview results.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveQueryPreviewWire: import("../..").Wire<import("@empathyco/x-types").SearchRequest>
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [fetchQueryPreview](./x-components.fetchquerypreview.md)
|
|
4
|
+
|
|
5
|
+
## fetchQueryPreview variable
|
|
6
|
+
|
|
7
|
+
Default implementation for the [QueriesPreviewActions.fetchQueryPreview()](./x-components.queriespreviewactions.fetchquerypreview.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchQueryPreview: QueriesPreviewXStoreModule['actions']['fetchQueryPreview']
|
|
13
|
+
```
|
|
@@ -275,11 +275,14 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
275
275
|
| [PopularSearchesXEvents](./x-components.popularsearchesxevents.md) | Dictionary of the events of PopularSearches XModule, where each key is the event name, and the value is the event payload type or <code>void</code> if it has no payload. |
|
|
276
276
|
| [PrivateXModuleOptions](./x-components.privatexmoduleoptions.md) | Options for overriding the default store module and store emitters for a [XModule](./x-components.xmodule.md)<!-- -->. |
|
|
277
277
|
| [QueriesPreviewActions](./x-components.queriespreviewactions.md) | QueriesPreview store actions. |
|
|
278
|
+
| [QueriesPreviewConfig](./x-components.queriespreviewconfig.md) | Configuration options for the [QueriesPreviewXModule](./x-components.queriespreviewxmodule.md)<!-- -->. |
|
|
278
279
|
| [QueriesPreviewGetters](./x-components.queriespreviewgetters.md) | QueriesPreview store getters. |
|
|
279
280
|
| [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) | QueriesPreview store mutations. |
|
|
280
281
|
| [QueriesPreviewState](./x-components.queriespreviewstate.md) | QueriesPreview store state. |
|
|
281
282
|
| [QueriesPreviewXEvents](./x-components.queriespreviewxevents.md) | Dictionary of the events of QueriesPreview XModule, where each key is the event name, and the value is the event payload type or <code>void</code> if it has no payload. |
|
|
282
283
|
| [QueryPreview](./x-components.querypreview.md) | Information to render a query preview with. |
|
|
284
|
+
| [QueryPreviewItem](./x-components.querypreviewitem.md) | QueriesPreview store state. |
|
|
285
|
+
| [QueryPreviewStatusPayload](./x-components.querypreviewstatuspayload.md) | Payload to use in the <code>setStatus</code> mutation. |
|
|
283
286
|
| [QuerySuggestionsActions](./x-components.querysuggestionsactions.md) | QuerySuggestions store actions. |
|
|
284
287
|
| [QuerySuggestionsConfig](./x-components.querysuggestionsconfig.md) | Configuration options for the [QuerySuggestionsXModule](./x-components.querysuggestionsxmodule.md)<!-- -->. |
|
|
285
288
|
| [QuerySuggestionsGetters](./x-components.querysuggestionsgetters.md) | QuerySuggestions store getters. |
|
|
@@ -407,6 +410,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
407
410
|
| [clearHistoryQueriesQuery](./x-components.clearhistoryqueriesquery.md) | Sets the query of the history queries module to an empty string. |
|
|
408
411
|
| [clearIdentifierResultsQuery](./x-components.clearidentifierresultsquery.md) | Clears the identifier-results module query. |
|
|
409
412
|
| [clearPendingScrollToWire](./x-components.clearpendingscrolltowire.md) | Resets the selector of the scroll that is pending to restore. |
|
|
413
|
+
| [clearQueryPreviewWire](./x-components.clearquerypreviewwire.md) | Clears a query preview from queries preview module. |
|
|
410
414
|
| [clearQuerySuggestionsQuery](./x-components.clearquerysuggestionsquery.md) | Clears the query-suggestions module query. |
|
|
411
415
|
| [clearRelatedTagsQuery](./x-components.clearrelatedtagsquery.md) | Clear the related tags query. |
|
|
412
416
|
| [clearSearchQuery](./x-components.clearsearchquery.md) | Clears the search state <code>query</code>. |
|
|
@@ -426,6 +430,8 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
426
430
|
| [fetchAndSaveNextQueriesWire](./x-components.fetchandsavenextquerieswire.md) | Requests and stores the next queries. |
|
|
427
431
|
| [fetchAndSaveNextQueryPreviewWire](./x-components.fetchandsavenextquerypreviewwire.md) | Requests and store the next query preview results. |
|
|
428
432
|
| [fetchAndSavePopularSearches](./x-components.fetchandsavepopularsearches.md) | Default implementation for [PopularSearchesActions.fetchAndSaveSuggestions()](./x-components.popularsearchesactions.fetchandsavesuggestions.md) action. |
|
|
433
|
+
| [fetchAndSaveQueryPreview](./x-components.fetchandsavequerypreview.md) | Default implementation for the [QueriesPreviewActions.fetchAndSaveQueryPreview()](./x-components.queriespreviewactions.fetchandsavequerypreview.md)<!-- -->. |
|
|
434
|
+
| [fetchAndSaveQueryPreviewWire](./x-components.fetchandsavequerypreviewwire.md) | Requests and stores the query preview results. |
|
|
429
435
|
| [fetchAndSaveQuerySuggestions](./x-components.fetchandsavequerysuggestions.md) | Default implementation for [QuerySuggestionsActions.fetchAndSaveSuggestions()](./x-components.querysuggestionsactions.fetchandsavesuggestions.md) action. |
|
|
430
436
|
| [fetchAndSaveRecommendations](./x-components.fetchandsaverecommendations.md) | Default implementation for [RecommendationsActions.fetchAndSaveRecommendations()](./x-components.recommendationsactions.fetchandsaverecommendations.md) action. |
|
|
431
437
|
| [fetchAndSaveRelatedTags](./x-components.fetchandsaverelatedtags.md) | Default implementation for [RelatedTagsActions.fetchAndSaveRelatedTags()](./x-components.relatedtagsactions.fetchandsaverelatedtags.md) action. |
|
|
@@ -436,6 +442,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
436
442
|
| [fetchIdentifierResults](./x-components.fetchidentifierresults.md) | Default implementation for the [IdentifierResultsActions.fetchIdentifierResults()](./x-components.identifierresultsactions.fetchidentifierresults.md)<!-- -->. |
|
|
437
443
|
| [fetchNextQueries](./x-components.fetchnextqueries.md) | Default implementation for the [NextQueriesActions.fetchNextQueries()](./x-components.nextqueriesactions.fetchnextqueries.md)<!-- -->. |
|
|
438
444
|
| [fetchPopularSearches](./x-components.fetchpopularsearches.md) | Default implementation for the [PopularSearchesActions.fetchSuggestions()](./x-components.popularsearchesactions.fetchsuggestions.md)<!-- -->. |
|
|
445
|
+
| [fetchQueryPreview](./x-components.fetchquerypreview.md) | Default implementation for the [QueriesPreviewActions.fetchQueryPreview()](./x-components.queriespreviewactions.fetchquerypreview.md)<!-- -->. |
|
|
439
446
|
| [fetchQuerySuggestions](./x-components.fetchquerysuggestions.md) | Default implementation for the [QuerySuggestionsActions.fetchSuggestions()](./x-components.querysuggestionsactions.fetchsuggestions.md)<!-- -->. |
|
|
440
447
|
| [fetchRecommendations](./x-components.fetchrecommendations.md) | Default implementation for the [RecommendationsActions.fetchRecommendations()](./x-components.recommendationsactions.fetchrecommendations.md)<!-- -->. |
|
|
441
448
|
| [fetchRelatedTags](./x-components.fetchrelatedtags.md) | Default implementation for the [RelatedTagsActions.fetchRelatedTags()](./x-components.relatedtagsactions.fetchrelatedtags.md)<!-- -->. |
|
|
@@ -531,6 +538,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
531
538
|
| [setParams](./x-components.setparams.md) | Sets the extra params of the url module. |
|
|
532
539
|
| [setPendingScrollToWire](./x-components.setpendingscrolltowire.md) | Saves the selector of the item that should be scrolled into the view. |
|
|
533
540
|
| [setPopularSearchesExtraParams](./x-components.setpopularsearchesextraparams.md) | Sets the popular searches state <code>params</code>. |
|
|
541
|
+
| [setQueriesPreviewExtraParamsWire](./x-components.setqueriespreviewextraparamswire.md) | Sets the queries preview state <code>params</code>. |
|
|
534
542
|
| [setQueryFromLastHistoryQuery](./x-components.setqueryfromlasthistoryquery.md) | Default implementation for the [NextQueriesActions.setQueryFromLastHistoryQuery()](./x-components.nextqueriesactions.setqueryfromlasthistoryquery.md)<!-- -->. |
|
|
535
543
|
| [setQueryFromLastHistoryQueryWire](./x-components.setqueryfromlasthistoryquerywire.md) | Sets the next queries state <code>query</code> with the last query in history queries. |
|
|
536
544
|
| [setQuerySuggestionsExtraParams](./x-components.setquerysuggestionsextraparams.md) | Sets the query suggestions state <code>params</code>. |
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [NextQueries](./x-components.nextqueries.md) > [suggestions](./x-components.nextqueries.suggestions.md)
|
|
4
|
+
|
|
5
|
+
## NextQueries.suggestions property
|
|
6
|
+
|
|
7
|
+
NextQueries list to be used instead of state NextQueries.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
suggestions?: NextQueryModel[];
|
|
13
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewActions](./x-components.queriespreviewactions.md) > [fetchAndSaveQueryPreview](./x-components.queriespreviewactions.fetchandsavequerypreview.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewActions.fetchAndSaveQueryPreview() method
|
|
6
|
+
|
|
7
|
+
Requests the results for a query preview and saves them in the state.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveQueryPreview(request: SearchRequest): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| request | SearchRequest | The request object to retrieve the query preview. |
|
|
20
|
+
|
|
21
|
+
<b>Returns:</b>
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewActions](./x-components.queriespreviewactions.md) > [fetchQueryPreview](./x-components.queriespreviewactions.fetchquerypreview.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewActions.fetchQueryPreview() method
|
|
6
|
+
|
|
7
|
+
Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchQueryPreview(request: SearchRequest): SearchResponse | null;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| request | SearchRequest | The request object to retrieve the query preview. |
|
|
20
|
+
|
|
21
|
+
<b>Returns:</b>
|
|
22
|
+
|
|
23
|
+
SearchResponse \| null
|
|
24
|
+
|
|
25
|
+
A search response based on the query.
|
|
26
|
+
|
|
@@ -11,3 +11,11 @@ QueriesPreview store actions.
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface QueriesPreviewActions
|
|
13
13
|
```
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
| Method | Description |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| [fetchAndSaveQueryPreview(request)](./x-components.queriespreviewactions.fetchandsavequerypreview.md) | Requests the results for a query preview and saves them in the state. |
|
|
20
|
+
| [fetchQueryPreview(request)](./x-components.queriespreviewactions.fetchquerypreview.md) | Requests the results for a query preview, limited by [QueriesPreviewConfig.maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)<!-- -->. |
|
|
21
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewConfig](./x-components.queriespreviewconfig.md) > [maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewConfig.maxItemsToRequest property
|
|
6
|
+
|
|
7
|
+
Maximum number of items to request.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
maxItemsToRequest: number;
|
|
13
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewConfig](./x-components.queriespreviewconfig.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewConfig interface
|
|
6
|
+
|
|
7
|
+
Configuration options for the [QueriesPreviewXModule](./x-components.queriespreviewxmodule.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface QueriesPreviewConfig
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [maxItemsToRequest](./x-components.queriespreviewconfig.maxitemstorequest.md) | number | Maximum number of items to request. |
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) > [clearQueryPreview](./x-components.queriespreviewmutations.clearquerypreview.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewMutations.clearQueryPreview() method
|
|
6
|
+
|
|
7
|
+
Removes a query preview entry from the queries preview's dictionary.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
clearQueryPreview(query: string): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| query | string | Query whose entry will be removed. |
|
|
20
|
+
|
|
21
|
+
<b>Returns:</b>
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -11,3 +11,13 @@ QueriesPreview store mutations.
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface QueriesPreviewMutations
|
|
13
13
|
```
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
| Method | Description |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| [clearQueryPreview(query)](./x-components.queriespreviewmutations.clearquerypreview.md) | Removes a query preview entry from the queries preview's dictionary. |
|
|
20
|
+
| [setParams(params)](./x-components.queriespreviewmutations.setparams.md) | Sets the extra params of the module. |
|
|
21
|
+
| [setQueryPreview(queryPreview)](./x-components.queriespreviewmutations.setquerypreview.md) | Adds a new entry to the queries preview's dictionary. |
|
|
22
|
+
| [setStatus(payload)](./x-components.queriespreviewmutations.setstatus.md) | Sets the status of a query preview request. |
|
|
23
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) > [setParams](./x-components.queriespreviewmutations.setparams.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewMutations.setParams() method
|
|
6
|
+
|
|
7
|
+
Sets the extra params of the module.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setParams(params: Dictionary<unknown>): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| params | Dictionary<unknown> | The new extra params. |
|
|
20
|
+
|
|
21
|
+
<b>Returns:</b>
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) > [setQueryPreview](./x-components.queriespreviewmutations.setquerypreview.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewMutations.setQueryPreview() method
|
|
6
|
+
|
|
7
|
+
Adds a new entry to the queries preview's dictionary.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setQueryPreview(queryPreview: QueryPreviewItem): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| queryPreview | [QueryPreviewItem](./x-components.querypreviewitem.md) | The query preview item to add. |
|
|
20
|
+
|
|
21
|
+
<b>Returns:</b>
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewMutations](./x-components.queriespreviewmutations.md) > [setStatus](./x-components.queriespreviewmutations.setstatus.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewMutations.setStatus() method
|
|
6
|
+
|
|
7
|
+
Sets the status of a query preview request.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setStatus(payload: QueryPreviewStatusPayload): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| payload | [QueryPreviewStatusPayload](./x-components.querypreviewstatuspayload.md) | Object containing the query and the status of a query preview item. |
|
|
20
|
+
|
|
21
|
+
<b>Returns:</b>
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewState](./x-components.queriespreviewstate.md) > [config](./x-components.queriespreviewstate.config.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewState.config property
|
|
6
|
+
|
|
7
|
+
The configuration of the queries preview module.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
config: QueriesPreviewConfig;
|
|
13
|
+
```
|
|
@@ -11,3 +11,12 @@ QueriesPreview store state.
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface QueriesPreviewState
|
|
13
13
|
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [config](./x-components.queriespreviewstate.config.md) | [QueriesPreviewConfig](./x-components.queriespreviewconfig.md) | The configuration of the queries preview module. |
|
|
20
|
+
| [params](./x-components.queriespreviewstate.params.md) | Dictionary<unknown> | The extra params property of the state. |
|
|
21
|
+
| [queriesPreview](./x-components.queriespreviewstate.queriespreview.md) | Dictionary<[QueryPreviewItem](./x-components.querypreviewitem.md)<!-- -->> | |
|
|
22
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewState](./x-components.queriespreviewstate.md) > [params](./x-components.queriespreviewstate.params.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewState.params property
|
|
6
|
+
|
|
7
|
+
The extra params property of the state.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
params: Dictionary<unknown>;
|
|
13
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewState](./x-components.queriespreviewstate.md) > [queriesPreview](./x-components.queriespreviewstate.queriespreview.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewState.queriesPreview property
|
|
6
|
+
|
|
7
|
+
<b>Signature:</b>
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
queriesPreview: Dictionary<QueryPreviewItem>;
|
|
11
|
+
```
|
|
@@ -11,3 +11,11 @@ Dictionary of the events of QueriesPreview XModule, where each key is the event
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface QueriesPreviewXEvents
|
|
13
13
|
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [QueryPreviewRemoved](./x-components.queriespreviewxevents.querypreviewremoved.md) | string | The component that shows a Query preview has been unmounted. Payload: The query whose preview has been removed. |
|
|
20
|
+
| [QueryPreviewRequestChanged](./x-components.queriespreviewxevents.querypreviewrequestchanged.md) | SearchRequest | Any property of the queries preview request has changed. Payload: The new [request](./x-types.searchrequest.md)<!-- -->. |
|
|
21
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewXEvents](./x-components.queriespreviewxevents.md) > [QueryPreviewRemoved](./x-components.queriespreviewxevents.querypreviewremoved.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewXEvents.QueryPreviewRemoved property
|
|
6
|
+
|
|
7
|
+
The component that shows a Query preview has been unmounted. Payload: The query whose preview has been removed.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
QueryPreviewRemoved: string;
|
|
13
|
+
```
|
package/docs/API-reference/api/x-components.queriespreviewxevents.querypreviewrequestchanged.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueriesPreviewXEvents](./x-components.queriespreviewxevents.md) > [QueryPreviewRequestChanged](./x-components.queriespreviewxevents.querypreviewrequestchanged.md)
|
|
4
|
+
|
|
5
|
+
## QueriesPreviewXEvents.QueryPreviewRequestChanged property
|
|
6
|
+
|
|
7
|
+
Any property of the queries preview request has changed. Payload: The new [request](./x-types.searchrequest.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
QueryPreviewRequestChanged: SearchRequest;
|
|
13
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueryPreviewItem](./x-components.querypreviewitem.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreviewItem interface
|
|
6
|
+
|
|
7
|
+
QueriesPreview store state.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface QueryPreviewItem extends StatusState
|
|
13
|
+
```
|
|
14
|
+
<b>Extends:</b> [StatusState](./x-components.statusstate.md)
|
|
15
|
+
|
|
16
|
+
## Properties
|
|
17
|
+
|
|
18
|
+
| Property | Type | Description |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| [request](./x-components.querypreviewitem.request.md) | SearchRequest | Request object to retrieve the query preview using the search adapter, or null if there is no valid data to conform a valid request. |
|
|
21
|
+
| [results](./x-components.querypreviewitem.results.md) | Result\[\] | Results of the query preview request. |
|
|
22
|
+
| [totalResults](./x-components.querypreviewitem.totalresults.md) | number | The total number of results for the search query. |
|
|
23
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueryPreviewItem](./x-components.querypreviewitem.md) > [request](./x-components.querypreviewitem.request.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreviewItem.request property
|
|
6
|
+
|
|
7
|
+
Request object to retrieve the query preview using the search adapter, or null if there is no valid data to conform a valid request.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
request: SearchRequest;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueryPreviewItem](./x-components.querypreviewitem.md) > [results](./x-components.querypreviewitem.results.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreviewItem.results property
|
|
6
|
+
|
|
7
|
+
Results of the query preview request.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
results: Result[];
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueryPreviewItem](./x-components.querypreviewitem.md) > [totalResults](./x-components.querypreviewitem.totalresults.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreviewItem.totalResults property
|
|
6
|
+
|
|
7
|
+
The total number of results for the search query.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
totalResults: number;
|
|
13
|
+
```
|