@empathyco/x-components 6.0.0-alpha.131 → 6.0.0-alpha.133
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 +23 -0
- package/docs/API-reference/api/x-components.aiactions.fetchandsaveaisuggestions.md +13 -0
- package/docs/API-reference/api/x-components.aiactions.fetchandsaveaisuggestionssearch.md +13 -0
- package/docs/API-reference/api/x-components.aiactions.md +2 -1
- package/docs/API-reference/api/x-components.aigetters.loading.md +13 -0
- package/docs/API-reference/api/x-components.aigetters.md +3 -3
- package/docs/API-reference/api/x-components.aigetters.suggestionsrequest.md +13 -0
- package/docs/API-reference/api/x-components.aigetters.suggestionssearchrequest.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.md +7 -1
- package/docs/API-reference/api/x-components.aimutations.setqueries.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.setresponsetext.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.setsuggestionsloading.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.setsuggestionssearch.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.setsuggestionssearchloading.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.setsuggestiontext.md +13 -0
- package/docs/API-reference/api/x-components.aimutations.settaggings.md +13 -0
- package/docs/API-reference/api/x-components.aioverview.md +3 -1
- package/docs/API-reference/api/x-components.aistate.md +7 -1
- package/docs/API-reference/api/x-components.aistate.queries.md +11 -0
- package/docs/API-reference/api/x-components.aistate.responsetext.md +13 -0
- package/docs/API-reference/api/x-components.aistate.suggestionsloading.md +13 -0
- package/docs/API-reference/api/x-components.aistate.suggestionssearch.md +13 -0
- package/docs/API-reference/api/x-components.aistate.suggestionssearchloading.md +13 -0
- package/docs/API-reference/api/x-components.aistate.suggestiontext.md +11 -0
- package/docs/API-reference/api/x-components.aistate.taggings.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.aisuggestionsrequestupdated.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.aisuggestionssearchrequestupdated.md +11 -0
- package/docs/API-reference/api/x-components.aixevents.md +2 -1
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +2 -1
- package/docs/API-reference/api/x-components.simplefilter.md +2 -1
- package/docs/API-reference/api/x-components.snippetcallbacks.md +2 -1
- package/docs/API-reference/components/ai/x-components.ai-overview.md +4 -3
- package/js/components/animations/cross-fade.vue.js +2 -2
- package/js/components/icons/arrow-right.vue.js +2 -2
- package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue2.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue4.js +1 -1
- package/js/components/result/base-result-add-to-cart.vue.js +2 -2
- package/js/components/result/base-result-image.vue.js +2 -2
- package/js/components/result/base-result-link.vue.js +2 -2
- package/js/components/result/base-result-rating.vue.js +2 -2
- package/js/x-modules/ai/components/ai-overview.vue.js +180 -125
- package/js/x-modules/ai/components/ai-overview.vue.js.map +1 -1
- package/js/x-modules/ai/components/ai-overview.vue2.js +13 -8
- package/js/x-modules/ai/components/ai-overview.vue2.js.map +1 -1
- package/js/x-modules/ai/components/ai-overview.vue3.js +1 -1
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js +31 -0
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.js.map +1 -0
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.js +80 -0
- package/js/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.js.map +1 -0
- package/js/x-modules/ai/store/emitters.js +2 -1
- package/js/x-modules/ai/store/emitters.js.map +1 -1
- package/js/x-modules/ai/store/getters/{request.getter.js → suggestions-request.getter.js} +4 -4
- package/js/x-modules/ai/store/getters/suggestions-request.getter.js.map +1 -0
- package/js/x-modules/ai/store/getters/suggestions-search-request.getter.js +16 -0
- package/js/x-modules/ai/store/getters/suggestions-search-request.getter.js.map +1 -0
- package/js/x-modules/ai/store/module.js +53 -19
- package/js/x-modules/ai/store/module.js.map +1 -1
- package/js/x-modules/ai/wiring.js +9 -8
- package/js/x-modules/ai/wiring.js.map +1 -1
- package/js/x-modules/queries-preview/components/query-preview-button.vue.js +2 -2
- package/js/x-modules/queries-preview/components/query-preview-list.vue.js +2 -2
- package/package.json +4 -4
- package/report/x-components.api.json +541 -85
- package/report/x-components.api.md +45 -27
- package/types/components/snippet-callbacks.vue.d.ts +2 -1
- package/types/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/x-modules/ai/components/ai-overview.vue.d.ts +3 -1
- package/types/x-modules/ai/components/ai-overview.vue.d.ts.map +1 -1
- package/types/x-modules/ai/events.types.d.ts +3 -2
- package/types/x-modules/ai/events.types.d.ts.map +1 -1
- package/types/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts +3 -0
- package/types/x-modules/ai/store/actions/fetch-and-save-ai-suggestions-search.action.d.ts.map +1 -0
- package/types/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.d.ts +13 -0
- package/types/x-modules/ai/store/actions/fetch-and-save-ai-suggestions.action.d.ts.map +1 -0
- package/types/x-modules/ai/store/emitters.d.ts +2 -1
- package/types/x-modules/ai/store/emitters.d.ts.map +1 -1
- package/types/x-modules/ai/store/getters/index.d.ts +2 -3
- package/types/x-modules/ai/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/ai/store/getters/{request.getter.d.ts → suggestions-request.getter.d.ts} +3 -3
- package/types/x-modules/ai/store/getters/suggestions-request.getter.d.ts.map +1 -0
- package/types/x-modules/ai/store/getters/suggestions-search-request.getter.d.ts +13 -0
- package/types/x-modules/ai/store/getters/suggestions-search-request.getter.d.ts.map +1 -0
- package/types/x-modules/ai/store/module.d.ts.map +1 -1
- package/types/x-modules/ai/store/types.d.ts +73 -25
- package/types/x-modules/ai/store/types.d.ts.map +1 -1
- package/types/x-modules/ai/wiring.d.ts +5 -4
- package/types/x-modules/ai/wiring.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +2 -1
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts +2 -1
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.aiactions.fetchaiquestions.md +0 -13
- package/docs/API-reference/api/x-components.aigetters.currentquestion.md +0 -13
- package/docs/API-reference/api/x-components.aigetters.currentquestionloading.md +0 -13
- package/docs/API-reference/api/x-components.aigetters.request.md +0 -13
- package/docs/API-reference/api/x-components.aimutations.setquestionsbyquery.md +0 -19
- package/docs/API-reference/api/x-components.aistate.questionsbyquery.md +0 -14
- package/docs/API-reference/api/x-components.aixevents.aiquestionsrequestupdated.md +0 -11
- package/docs/API-reference/components/ai/x-components.ai-question-results.md +0 -19
- package/js/views/home/result.vue.js +0 -110
- package/js/views/home/result.vue.js.map +0 -1
- package/js/views/home/result.vue2.js +0 -30
- package/js/views/home/result.vue2.js.map +0 -1
- package/js/x-modules/ai/components/ai-question-results.vue.js +0 -69
- package/js/x-modules/ai/components/ai-question-results.vue.js.map +0 -1
- package/js/x-modules/ai/components/ai-question-results.vue2.js +0 -38
- package/js/x-modules/ai/components/ai-question-results.vue2.js.map +0 -1
- package/js/x-modules/ai/components/ai-question-results.vue3.js +0 -7
- package/js/x-modules/ai/components/ai-question-results.vue3.js.map +0 -1
- package/js/x-modules/ai/store/actions/fetch-ai-questions.action.js +0 -61
- package/js/x-modules/ai/store/actions/fetch-ai-questions.action.js.map +0 -1
- package/js/x-modules/ai/store/getters/current-question-loading.getter.js +0 -13
- package/js/x-modules/ai/store/getters/current-question-loading.getter.js.map +0 -1
- package/js/x-modules/ai/store/getters/current-question.getter.js +0 -13
- package/js/x-modules/ai/store/getters/current-question.getter.js.map +0 -1
- package/js/x-modules/ai/store/getters/request.getter.js.map +0 -1
- package/types/views/home/result.vue.d.ts +0 -17
- package/types/views/home/result.vue.d.ts.map +0 -1
- package/types/x-modules/ai/components/ai-question-results.vue.d.ts +0 -19
- package/types/x-modules/ai/components/ai-question-results.vue.d.ts.map +0 -1
- package/types/x-modules/ai/store/actions/fetch-ai-questions.action.d.ts +0 -13
- package/types/x-modules/ai/store/actions/fetch-ai-questions.action.d.ts.map +0 -1
- package/types/x-modules/ai/store/getters/current-question-loading.getter.d.ts +0 -12
- package/types/x-modules/ai/store/getters/current-question-loading.getter.d.ts.map +0 -1
- package/types/x-modules/ai/store/getters/current-question.getter.d.ts +0 -12
- package/types/x-modules/ai/store/getters/current-question.getter.d.ts.map +0 -1
- package/types/x-modules/ai/store/getters/request.getter.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,29 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 6.0.0-alpha.133 (2025-09-04)
|
|
7
|
+
|
|
8
|
+
* feat(AiOverview): component implementation (#1861) ([17b6535](https://github.com/empathyco/x/commit/17b6535)), closes [#1861](https://github.com/empathyco/x/issues/1861)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 6.0.0-alpha.132 (2025-09-03)
|
|
15
|
+
|
|
16
|
+
* test: fix unit tests ([604b2a1](https://github.com/empathyco/x/commit/604b2a1))
|
|
17
|
+
* feat(ai): add AiSuggestionQuery model ([6df871d](https://github.com/empathyco/x/commit/6df871d))
|
|
18
|
+
* feat(ai): add loading flag to both suggestions connections ([365a073](https://github.com/empathyco/x/commit/365a073))
|
|
19
|
+
* feat(ai): add suggestionsSearchRequest in store ([16383d0](https://github.com/empathyco/x/commit/16383d0))
|
|
20
|
+
* feat(ai): avoid crashes on streaming parsing ([b847b69](https://github.com/empathyco/x/commit/b847b69))
|
|
21
|
+
* feat(ai): questions to suggestions ([574cd62](https://github.com/empathyco/x/commit/574cd62))
|
|
22
|
+
* refactor(ai): fetchAndSave for both requests ([5d2a355](https://github.com/empathyco/x/commit/5d2a355))
|
|
23
|
+
* fix(ai): PR suggestions ([7c77c1a](https://github.com/empathyco/x/commit/7c77c1a))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
## 6.0.0-alpha.131 (2025-09-02)
|
|
7
30
|
|
|
8
31
|
* chore: pr review ([eacfeeb](https://github.com/empathyco/x/commit/eacfeeb))
|
|
@@ -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) > [AiActions](./x-components.aiactions.md) > [fetchAndSaveAiSuggestions](./x-components.aiactions.fetchandsaveaisuggestions.md)
|
|
4
|
+
|
|
5
|
+
## AiActions.fetchAndSaveAiSuggestions property
|
|
6
|
+
|
|
7
|
+
Requests suggestions for the module ai.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveAiSuggestions: (request: AiSuggestionsRequest | null) => void;
|
|
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) > [AiActions](./x-components.aiactions.md) > [fetchAndSaveAiSuggestionsSearch](./x-components.aiactions.fetchandsaveaisuggestionssearch.md)
|
|
4
|
+
|
|
5
|
+
## AiActions.fetchAndSaveAiSuggestionsSearch property
|
|
6
|
+
|
|
7
|
+
Requests suggestions search for the module ai.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
fetchAndSaveAiSuggestionsSearch: (request: AiSuggestionsSearchRequest | null) => void;
|
|
13
|
+
```
|
|
@@ -16,6 +16,7 @@ export interface AiActions
|
|
|
16
16
|
|
|
17
17
|
| Property | Modifiers | Type | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
-
| [
|
|
19
|
+
| [fetchAndSaveAiSuggestions](./x-components.aiactions.fetchandsaveaisuggestions.md) | | (request: AiSuggestionsRequest \| null) => void | Requests suggestions for the module ai. |
|
|
20
|
+
| [fetchAndSaveAiSuggestionsSearch](./x-components.aiactions.fetchandsaveaisuggestionssearch.md) | | (request: AiSuggestionsSearchRequest \| null) => void | Requests suggestions search for the module ai. |
|
|
20
21
|
| [setUrlParams](./x-components.aiactions.seturlparams.md) | | (urlParams: [UrlParams](./x-components.urlparams.md)<!-- -->) => void | Checks if the URL has params on it and then updates the state with these values. |
|
|
21
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) > [AiGetters](./x-components.aigetters.md) > [loading](./x-components.aigetters.loading.md)
|
|
4
|
+
|
|
5
|
+
## AiGetters.loading property
|
|
6
|
+
|
|
7
|
+
The combination of the suggestions stream loading and the suggestions search response loading.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
loading: boolean;
|
|
13
|
+
```
|
|
@@ -16,8 +16,8 @@ export interface AiGetters
|
|
|
16
16
|
|
|
17
17
|
| Property | Modifiers | Type | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
-
| [
|
|
20
|
-
| [currentQuestionLoading](./x-components.aigetters.currentquestionloading.md) | | boolean | The current question loading of the ai module. |
|
|
19
|
+
| [loading](./x-components.aigetters.loading.md) | | boolean | The combination of the suggestions stream loading and the suggestions search response loading. |
|
|
21
20
|
| [query](./x-components.aigetters.query.md) | | string | The combination of the query and the selected related tags. |
|
|
22
|
-
| [
|
|
21
|
+
| [suggestionsRequest](./x-components.aigetters.suggestionsrequest.md) | | AiSuggestionsRequest \| null | Request object to retrieve the streaming response using the ai suggestions adapter, or null if there is no valid query to conform a valid request. |
|
|
22
|
+
| [suggestionsSearchRequest](./x-components.aigetters.suggestionssearchrequest.md) | | AiSuggestionsSearchRequest \| null | Request object to retrieve the suggestions search based on queries or null if there is no valid queries to conform a valid request. |
|
|
23
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) > [AiGetters](./x-components.aigetters.md) > [suggestionsRequest](./x-components.aigetters.suggestionsrequest.md)
|
|
4
|
+
|
|
5
|
+
## AiGetters.suggestionsRequest property
|
|
6
|
+
|
|
7
|
+
Request object to retrieve the streaming response using the ai suggestions adapter, or null if there is no valid query to conform a valid request.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
suggestionsRequest: AiSuggestionsRequest | null;
|
|
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) > [AiGetters](./x-components.aigetters.md) > [suggestionsSearchRequest](./x-components.aigetters.suggestionssearchrequest.md)
|
|
4
|
+
|
|
5
|
+
## AiGetters.suggestionsSearchRequest property
|
|
6
|
+
|
|
7
|
+
Request object to retrieve the suggestions search based on queries or null if there is no valid queries to conform a valid request.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
suggestionsSearchRequest: AiSuggestionsSearchRequest | null;
|
|
13
|
+
```
|
|
@@ -20,5 +20,11 @@ export interface AiMutations extends ConfigMutations<AiState>, QueryMutations
|
|
|
20
20
|
| [resetAiState](./x-components.aimutations.resetaistate.md) | | () => void | Resets the ai state. |
|
|
21
21
|
| [setAiRelatedTags](./x-components.aimutations.setairelatedtags.md) | | (relatedTags: RelatedTag\[\]) => void | Sets the related tags of the module. |
|
|
22
22
|
| [setParams](./x-components.aimutations.setparams.md) | | (params: Dictionary<unknown>) => void | Sets the extra params of the module. |
|
|
23
|
-
| [
|
|
23
|
+
| [setQueries](./x-components.aimutations.setqueries.md) | | (queries: AiSuggestionQuery\[\]) => void | Sets the queries from the streamed response. |
|
|
24
|
+
| [setResponseText](./x-components.aimutations.setresponsetext.md) | | (responseText: string) => void | Sets the responseText from the streamed response. |
|
|
25
|
+
| [setSuggestionsLoading](./x-components.aimutations.setsuggestionsloading.md) | | (value: boolean) => void | Sets the loading for the suggestions response. |
|
|
26
|
+
| [setSuggestionsSearch](./x-components.aimutations.setsuggestionssearch.md) | | (suggestionsSearch: AiSuggestionSearch\[\]) => void | Sets the suggestions search from the suggestions search response. |
|
|
27
|
+
| [setSuggestionsSearchLoading](./x-components.aimutations.setsuggestionssearchloading.md) | | (value: boolean) => void | Sets the loading fot the suggestions search response. |
|
|
28
|
+
| [setSuggestionText](./x-components.aimutations.setsuggestiontext.md) | | (suggestionText: string) => void | Sets the suggestionText from the streamed response. |
|
|
29
|
+
| [setTaggings](./x-components.aimutations.settaggings.md) | | (taggings: AiQuestion\['tagging'\]\[\]) => void | Sets the taggings from the streamed response. |
|
|
24
30
|
|
|
@@ -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) > [AiMutations](./x-components.aimutations.md) > [setQueries](./x-components.aimutations.setqueries.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setQueries property
|
|
6
|
+
|
|
7
|
+
Sets the queries from the streamed response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setQueries: (queries: AiSuggestionQuery[]) => void;
|
|
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) > [AiMutations](./x-components.aimutations.md) > [setResponseText](./x-components.aimutations.setresponsetext.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setResponseText property
|
|
6
|
+
|
|
7
|
+
Sets the responseText from the streamed response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setResponseText: (responseText: string) => void;
|
|
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) > [AiMutations](./x-components.aimutations.md) > [setSuggestionsLoading](./x-components.aimutations.setsuggestionsloading.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setSuggestionsLoading property
|
|
6
|
+
|
|
7
|
+
Sets the loading for the suggestions response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setSuggestionsLoading: (value: boolean) => void;
|
|
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) > [AiMutations](./x-components.aimutations.md) > [setSuggestionsSearch](./x-components.aimutations.setsuggestionssearch.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setSuggestionsSearch property
|
|
6
|
+
|
|
7
|
+
Sets the suggestions search from the suggestions search response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setSuggestionsSearch: (suggestionsSearch: AiSuggestionSearch[]) => void;
|
|
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) > [AiMutations](./x-components.aimutations.md) > [setSuggestionsSearchLoading](./x-components.aimutations.setsuggestionssearchloading.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setSuggestionsSearchLoading property
|
|
6
|
+
|
|
7
|
+
Sets the loading fot the suggestions search response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setSuggestionsSearchLoading: (value: boolean) => void;
|
|
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) > [AiMutations](./x-components.aimutations.md) > [setSuggestionText](./x-components.aimutations.setsuggestiontext.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setSuggestionText property
|
|
6
|
+
|
|
7
|
+
Sets the suggestionText from the streamed response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setSuggestionText: (suggestionText: string) => void;
|
|
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) > [AiMutations](./x-components.aimutations.md) > [setTaggings](./x-components.aimutations.settaggings.md)
|
|
4
|
+
|
|
5
|
+
## AiMutations.setTaggings property
|
|
6
|
+
|
|
7
|
+
Sets the taggings from the streamed response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setTaggings: (taggings: AiQuestion['tagging'][]) => void;
|
|
13
|
+
```
|
|
@@ -22,9 +22,11 @@ _default: import("vue").DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
}, {
|
|
24
24
|
expanded: import("vue").Ref<boolean>;
|
|
25
|
-
question: import("vue").ComputedRef<import("@empathyco/x-types").AiQuestion | undefined>;
|
|
26
25
|
open: () => void;
|
|
27
26
|
loading: import("vue").ComputedRef<boolean>;
|
|
27
|
+
suggestionText: import("vue").ComputedRef<string>;
|
|
28
|
+
responseText: import("vue").ComputedRef<string>;
|
|
29
|
+
suggestionsSearch: import("vue").ComputedRef<import("@empathyco/x-types").AiSuggestionSearch[]>;
|
|
28
30
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
31
|
title: {
|
|
30
32
|
type: PropType<string>;
|
|
@@ -19,6 +19,12 @@ export interface AiState extends QueryState
|
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
20
|
| [config](./x-components.aistate.config.md) | | [AiConfig](./x-components.aiconfig.md) | |
|
|
21
21
|
| [params](./x-components.aistate.params.md) | | Dictionary<unknown> | The extra params property of the state. |
|
|
22
|
-
| [
|
|
22
|
+
| [queries](./x-components.aistate.queries.md) | | AiSuggestionQuery\[\] | |
|
|
23
23
|
| [relatedTags](./x-components.aistate.relatedtags.md) | | RelatedTag\[\] | The list of the related tags, related to the <code>query</code> property of the state. |
|
|
24
|
+
| [responseText](./x-components.aistate.responsetext.md) | | string | The streamed field from suggestion response. |
|
|
25
|
+
| [suggestionsLoading](./x-components.aistate.suggestionsloading.md) | | boolean | Loading state for the suggestions response |
|
|
26
|
+
| [suggestionsSearch](./x-components.aistate.suggestionssearch.md) | | AiSuggestionSearch\[\] | The results per query retrieved by the suggestion search endpoint |
|
|
27
|
+
| [suggestionsSearchLoading](./x-components.aistate.suggestionssearchloading.md) | | boolean | Loading state for the suggestions search response |
|
|
28
|
+
| [suggestionText](./x-components.aistate.suggestiontext.md) | | string | |
|
|
29
|
+
| [taggings](./x-components.aistate.taggings.md) | | AiQuestion\['tagging'\]\[\] | |
|
|
24
30
|
|
|
@@ -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) > [AiState](./x-components.aistate.md) > [queries](./x-components.aistate.queries.md)
|
|
4
|
+
|
|
5
|
+
## AiState.queries property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
queries: AiSuggestionQuery[];
|
|
11
|
+
```
|
|
@@ -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) > [AiState](./x-components.aistate.md) > [responseText](./x-components.aistate.responsetext.md)
|
|
4
|
+
|
|
5
|
+
## AiState.responseText property
|
|
6
|
+
|
|
7
|
+
The streamed field from suggestion response.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
responseText: 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) > [AiState](./x-components.aistate.md) > [suggestionsLoading](./x-components.aistate.suggestionsloading.md)
|
|
4
|
+
|
|
5
|
+
## AiState.suggestionsLoading property
|
|
6
|
+
|
|
7
|
+
Loading state for the suggestions response
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
suggestionsLoading: boolean;
|
|
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) > [AiState](./x-components.aistate.md) > [suggestionsSearch](./x-components.aistate.suggestionssearch.md)
|
|
4
|
+
|
|
5
|
+
## AiState.suggestionsSearch property
|
|
6
|
+
|
|
7
|
+
The results per query retrieved by the suggestion search endpoint
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
suggestionsSearch: AiSuggestionSearch[];
|
|
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) > [AiState](./x-components.aistate.md) > [suggestionsSearchLoading](./x-components.aistate.suggestionssearchloading.md)
|
|
4
|
+
|
|
5
|
+
## AiState.suggestionsSearchLoading property
|
|
6
|
+
|
|
7
|
+
Loading state for the suggestions search response
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
suggestionsSearchLoading: boolean;
|
|
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) > [AiState](./x-components.aistate.md) > [suggestionText](./x-components.aistate.suggestiontext.md)
|
|
4
|
+
|
|
5
|
+
## AiState.suggestionText property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
suggestionText: string;
|
|
11
|
+
```
|
|
@@ -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) > [AiState](./x-components.aistate.md) > [taggings](./x-components.aistate.taggings.md)
|
|
4
|
+
|
|
5
|
+
## AiState.taggings property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
taggings: AiQuestion['tagging'][];
|
|
11
|
+
```
|
|
@@ -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) > [AiXEvents](./x-components.aixevents.md) > [AiSuggestionsRequestUpdated](./x-components.aixevents.aisuggestionsrequestupdated.md)
|
|
4
|
+
|
|
5
|
+
## AiXEvents.AiSuggestionsRequestUpdated property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
AiSuggestionsRequestUpdated: AiSuggestionsRequest | null;
|
|
11
|
+
```
|
|
@@ -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) > [AiXEvents](./x-components.aixevents.md) > [AiSuggestionsSearchRequestUpdated](./x-components.aixevents.aisuggestionssearchrequestupdated.md)
|
|
4
|
+
|
|
5
|
+
## AiXEvents.AiSuggestionsSearchRequestUpdated property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
AiSuggestionsSearchRequestUpdated: AiSuggestionsSearchRequest | null;
|
|
11
|
+
```
|
|
@@ -16,5 +16,6 @@ export interface AiXEvents
|
|
|
16
16
|
|
|
17
17
|
| Property | Modifiers | Type | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
-
| [
|
|
19
|
+
| [AiSuggestionsRequestUpdated](./x-components.aixevents.aisuggestionsrequestupdated.md) | | AiSuggestionsRequest \| null | |
|
|
20
|
+
| [AiSuggestionsSearchRequestUpdated](./x-components.aixevents.aisuggestionssearchrequestupdated.md) | | AiSuggestionsSearchRequest \| null | |
|
|
20
21
|
|
|
@@ -192,7 +192,8 @@ _default: import("vue").DefineComponent<{
|
|
|
192
192
|
RelatedPromptsResponseChanged?: import("@empathyco/x-types").RelatedPrompt[] | undefined;
|
|
193
193
|
RelatedPromptsUnmounted?: void | undefined;
|
|
194
194
|
ReloadRelatedPromptsRequested?: void | undefined;
|
|
195
|
-
|
|
195
|
+
AiSuggestionsRequestUpdated?: import("@empathyco/x-types").AiSuggestionsRequest | null | undefined;
|
|
196
|
+
AiSuggestionsSearchRequestUpdated?: import("@empathyco/x-types").AiSuggestionsSearchRequest | null | undefined;
|
|
196
197
|
}>;
|
|
197
198
|
innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
|
|
198
199
|
renderedChildrenFilters: import("vue").ComputedRef<HierarchicalFilterModel[]>;
|
|
@@ -189,7 +189,8 @@ _default: import("vue").DefineComponent<{
|
|
|
189
189
|
RelatedPromptsResponseChanged?: import("@empathyco/x-types").RelatedPrompt[] | undefined;
|
|
190
190
|
RelatedPromptsUnmounted?: void | undefined;
|
|
191
191
|
ReloadRelatedPromptsRequested?: void | undefined;
|
|
192
|
-
|
|
192
|
+
AiSuggestionsRequestUpdated?: import("@empathyco/x-types").AiSuggestionsRequest | null | undefined;
|
|
193
|
+
AiSuggestionsSearchRequestUpdated?: import("@empathyco/x-types").AiSuggestionsSearchRequest | null | undefined;
|
|
193
194
|
}>;
|
|
194
195
|
innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
|
|
195
196
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -179,7 +179,8 @@ _default: import("vue").DefineComponent<{}, {
|
|
|
179
179
|
RelatedPromptsResponseChanged: (payload: import("@empathyco/x-types").RelatedPrompt[], metadata: WireMetadata) => unknown;
|
|
180
180
|
RelatedPromptsUnmounted: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
181
181
|
ReloadRelatedPromptsRequested: (payload: undefined, metadata: WireMetadata) => unknown;
|
|
182
|
-
|
|
182
|
+
AiSuggestionsRequestUpdated: (payload: import("@empathyco/x-types").AiSuggestionsRequest | null, metadata: WireMetadata) => unknown;
|
|
183
|
+
AiSuggestionsSearchRequestUpdated: (payload: import("@empathyco/x-types").AiSuggestionsSearchRequest | null, metadata: WireMetadata) => unknown;
|
|
183
184
|
}>>;
|
|
184
185
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>
|
|
185
186
|
```
|
|
@@ -16,6 +16,7 @@ title: AiOverview
|
|
|
16
16
|
|
|
17
17
|
## Slots
|
|
18
18
|
|
|
19
|
-
| Name | Description
|
|
20
|
-
| -------------------- |
|
|
21
|
-
| <code>default</code> |
|
|
19
|
+
| Name | Description | Bindings<br />(name - type - description) |
|
|
20
|
+
| -------------------- | -------------------------- | ----------------------------------------- |
|
|
21
|
+
| <code>default</code> | suggestions-search content | |
|
|
22
|
+
| <code>result</code> | (required) result card | |
|
|
@@ -15,7 +15,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15
15
|
/* FORWARDED */
|
|
16
16
|
}, 8, ["appear"]);
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var crossFade = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { crossFade as default };
|
|
21
21
|
//# sourceMappingURL=cross-fade.vue.js.map
|
|
@@ -31,7 +31,7 @@ const _hoisted_4 = [
|
|
|
31
31
|
function _sfc_render(_ctx, _cache) {
|
|
32
32
|
return (openBlock(), createElementBlock("svg", _hoisted_1, [..._hoisted_4]))
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var ArrowRightIcon = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
|
35
35
|
|
|
36
|
-
export {
|
|
36
|
+
export { ArrowRightIcon as default };
|
|
37
37
|
//# sourceMappingURL=arrow-right.vue.js.map
|