@empathyco/x-components 6.0.0-alpha.59 → 6.0.0-alpha.60
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 +9 -0
- package/core/index.js.map +1 -1
- package/design-system/deprecated-full-theme.css +247 -248
- package/docs/API-reference/api/x-components.md +0 -1
- package/docs/API-reference/api/x-components.relatedpromptsgetters.md +1 -0
- package/docs/API-reference/api/x-components.relatedpromptsgetters.query.md +13 -0
- package/docs/API-reference/api/x-components.relatedpromptsmutations.md +1 -0
- package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsrelatedtags.md +24 -0
- package/docs/API-reference/api/x-components.relatedpromptsstate.md +1 -0
- package/docs/API-reference/api/x-components.relatedpromptsstate.relatedtags.md +13 -0
- package/docs/API-reference/api/x-components.semanticqueriesgetters.md +1 -0
- package/docs/API-reference/api/x-components.semanticqueriesgetters.query.md +13 -0
- package/docs/API-reference/api/x-components.semanticqueriesmutations.md +1 -0
- package/docs/API-reference/api/x-components.semanticqueriesmutations.setsemanticqueriesrelatedtags.md +24 -0
- package/docs/API-reference/api/x-components.semanticqueriesstate.md +1 -0
- package/docs/API-reference/api/x-components.semanticqueriesstate.relatedtags.md +13 -0
- package/js/index.js +0 -1
- package/js/index.js.map +1 -1
- package/js/x-modules/related-prompts/store/getters/related-prompts-query.getter.js +18 -0
- package/js/x-modules/related-prompts/store/getters/related-prompts-query.getter.js.map +1 -0
- package/js/x-modules/related-prompts/store/getters/request.getter.js +3 -2
- package/js/x-modules/related-prompts/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/related-prompts/store/module.js +8 -2
- package/js/x-modules/related-prompts/store/module.js.map +1 -1
- package/js/x-modules/related-prompts/wiring.js +5 -0
- package/js/x-modules/related-prompts/wiring.js.map +1 -1
- package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js +1 -1
- package/js/x-modules/semantic-queries/store/getters/normalized-query.getter.js.map +1 -1
- package/js/x-modules/semantic-queries/store/getters/request.getter.js +5 -4
- package/js/x-modules/semantic-queries/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.js +18 -0
- package/js/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.js.map +1 -0
- package/js/x-modules/semantic-queries/store/module.js +8 -2
- package/js/x-modules/semantic-queries/store/module.js.map +1 -1
- package/js/x-modules/semantic-queries/wiring.js +5 -0
- package/js/x-modules/semantic-queries/wiring.js.map +1 -1
- package/package.json +2 -2
- package/related-prompts/index.js +0 -1
- package/report/x-components.api.json +218 -28
- package/report/x-components.api.md +12 -3
- package/types/x-modules/related-prompts/store/getters/index.d.ts +3 -0
- package/types/x-modules/related-prompts/store/getters/index.d.ts.map +1 -0
- package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts +13 -0
- package/types/x-modules/related-prompts/store/getters/related-prompts-query.getter.d.ts.map +1 -0
- package/types/x-modules/related-prompts/store/getters/request.getter.d.ts +2 -1
- package/types/x-modules/related-prompts/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/index.d.ts +0 -1
- package/types/x-modules/related-prompts/store/index.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/module.d.ts.map +1 -1
- package/types/x-modules/related-prompts/store/types.d.ts +11 -1
- package/types/x-modules/related-prompts/store/types.d.ts.map +1 -1
- package/types/x-modules/related-prompts/wiring.d.ts +3 -0
- package/types/x-modules/related-prompts/wiring.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/index.d.ts +1 -0
- package/types/x-modules/semantic-queries/store/getters/index.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/normalized-query.getter.d.ts +1 -1
- package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts +2 -1
- package/types/x-modules/semantic-queries/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts +13 -0
- package/types/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.d.ts.map +1 -0
- package/types/x-modules/semantic-queries/store/module.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/store/types.d.ts +13 -1
- package/types/x-modules/semantic-queries/store/types.d.ts.map +1 -1
- package/types/x-modules/semantic-queries/wiring.d.ts +3 -0
- package/types/x-modules/semantic-queries/wiring.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.relatedpromptrequest.md +0 -13
|
@@ -491,7 +491,6 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
491
491
|
| [refreshHistoryQueriesSession](./x-components.refreshhistoryqueriessession.md) | Triggers a session refresh, extending its validity for the time configured in the [HistoryQueriesConfig.sessionTTLInMs](./x-components.historyqueriesconfig.sessionttlinms.md)<!-- -->. |
|
|
492
492
|
| [refreshSession](./x-components.refreshsession.md) | Default implementation for the [HistoryQueriesActions.refreshSession()](./x-components.historyqueriesactions.refreshsession.md)<!-- -->. |
|
|
493
493
|
| [RelatedPrompt](./x-components.relatedprompt.md) | This component shows a suggested related prompt. |
|
|
494
|
-
| [relatedPromptRequest](./x-components.relatedpromptrequest.md) | Default implementation for the [RelatedPromptsGetters.request](./x-components.relatedpromptsgetters.request.md) getter. |
|
|
495
494
|
| [RelatedPromptsList](./x-components.relatedpromptslist.md) | Component that inserts groups of related prompts in different positions of the injected search items list, based on the provided configuration. |
|
|
496
495
|
| [RelatedPromptsTagList](./x-components.relatedpromptstaglist.md) | <p>This component shows the list of <code>RelatedPrompts</code> components.</p><p>If the default slot is reimplemented in the consumer, <code>onSelect</code> function will be necessary to handle the selection of the related prompt and to trigger the stagger-fade-slide animation.</p> |
|
|
497
496
|
| [relatedPromptsXModule](./x-components.relatedpromptsxmodule.md) | Related Prompts [XModule](./x-components.xmodule.md) implementation. This module is auto-registered as soon as you import any component from the <code>related-prompts</code> entry point. |
|
|
@@ -16,5 +16,6 @@ export interface RelatedPromptsGetters
|
|
|
16
16
|
|
|
17
17
|
| Property | Modifiers | Type | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
|
+
| [query](./x-components.relatedpromptsgetters.query.md) | | string | The combination of the query and the selected related tags. |
|
|
19
20
|
| [request](./x-components.relatedpromptsgetters.request.md) | | RelatedPromptsRequest \| null | Request object to retrieve the related prompts using the search adapter, or null if there is no valid data to conform a valid request. |
|
|
20
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) > [RelatedPromptsGetters](./x-components.relatedpromptsgetters.md) > [query](./x-components.relatedpromptsgetters.query.md)
|
|
4
|
+
|
|
5
|
+
## RelatedPromptsGetters.query property
|
|
6
|
+
|
|
7
|
+
The combination of the query and the selected related tags.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
query: string;
|
|
13
|
+
```
|
|
@@ -21,6 +21,7 @@ export interface RelatedPromptsMutations extends StatusMutations, QueryMutations
|
|
|
21
21
|
| [resetSelectedPrompt()](./x-components.relatedpromptsmutations.resetselectedprompt.md) | Resets the selected related prompt number. |
|
|
22
22
|
| [setParams(params)](./x-components.relatedpromptsmutations.setparams.md) | Sets the extra params of the module. |
|
|
23
23
|
| [setRelatedPromptsProducts(products)](./x-components.relatedpromptsmutations.setrelatedpromptsproducts.md) | Sets the related prompts of the module. |
|
|
24
|
+
| [setRelatedPromptsRelatedTags(relatedTags)](./x-components.relatedpromptsmutations.setrelatedpromptsrelatedtags.md) | Sets the related tags of the module. |
|
|
24
25
|
| [setSelectedPrompt(index)](./x-components.relatedpromptsmutations.setselectedprompt.md) | Sets the selected related prompt. |
|
|
25
26
|
| [setSelectedQuery(index)](./x-components.relatedpromptsmutations.setselectedquery.md) | Sets the selected next query. |
|
|
26
27
|
|
package/docs/API-reference/api/x-components.relatedpromptsmutations.setrelatedpromptsrelatedtags.md
ADDED
|
@@ -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) > [RelatedPromptsMutations](./x-components.relatedpromptsmutations.md) > [setRelatedPromptsRelatedTags](./x-components.relatedpromptsmutations.setrelatedpromptsrelatedtags.md)
|
|
4
|
+
|
|
5
|
+
## RelatedPromptsMutations.setRelatedPromptsRelatedTags() method
|
|
6
|
+
|
|
7
|
+
Sets the related tags of the module.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setRelatedPromptsRelatedTags(relatedTags: RelatedTag[]): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| relatedTags | RelatedTag\[\] | The new related tags to save to the state. |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -19,6 +19,7 @@ export interface RelatedPromptsState extends StatusState, QueryState
|
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
20
|
| [params](./x-components.relatedpromptsstate.params.md) | | Dictionary<unknown> | The extra params property of the state. |
|
|
21
21
|
| [relatedPrompts](./x-components.relatedpromptsstate.relatedprompts.md) | | RelatedPrompt\[\] | The list of the related-prompts, related to the <code>query</code> property of the state. |
|
|
22
|
+
| [relatedTags](./x-components.relatedpromptsstate.relatedtags.md) | | RelatedTag\[\] | The list of the related tags, related to the <code>query</code> property of the state. |
|
|
22
23
|
| [selectedPrompt](./x-components.relatedpromptsstate.selectedprompt.md) | | number | The index of the selected related-prompt. |
|
|
23
24
|
| [selectedQuery](./x-components.relatedpromptsstate.selectedquery.md) | | number | The index of the selected next query. |
|
|
24
25
|
|
|
@@ -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) > [RelatedPromptsState](./x-components.relatedpromptsstate.md) > [relatedTags](./x-components.relatedpromptsstate.relatedtags.md)
|
|
4
|
+
|
|
5
|
+
## RelatedPromptsState.relatedTags property
|
|
6
|
+
|
|
7
|
+
The list of the related tags, related to the `query` property of the state.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
relatedTags: RelatedTag[];
|
|
13
|
+
```
|
|
@@ -17,5 +17,6 @@ export interface SemanticQueriesGetters
|
|
|
17
17
|
| Property | Modifiers | Type | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
19
|
| [normalizedQuery](./x-components.semanticqueriesgetters.normalizedquery.md) | | string | The normalized module's query. |
|
|
20
|
+
| [query](./x-components.semanticqueriesgetters.query.md) | | string | The combination of the query and the selected related tags. |
|
|
20
21
|
| [request](./x-components.semanticqueriesgetters.request.md) | | SemanticQueriesRequest \| null | The request to fetch the semantic queries. |
|
|
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) > [SemanticQueriesGetters](./x-components.semanticqueriesgetters.md) > [query](./x-components.semanticqueriesgetters.query.md)
|
|
4
|
+
|
|
5
|
+
## SemanticQueriesGetters.query property
|
|
6
|
+
|
|
7
|
+
The combination of the query and the selected related tags.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
query: string;
|
|
13
|
+
```
|
|
@@ -19,5 +19,6 @@ export interface SemanticQueriesMutations extends QueryMutations, ConfigMutation
|
|
|
19
19
|
| --- | --- |
|
|
20
20
|
| [setParams(params)](./x-components.semanticqueriesmutations.setparams.md) | Sets the extra params of the module. |
|
|
21
21
|
| [setSemanticQueries(semanticQueries)](./x-components.semanticqueriesmutations.setsemanticqueries.md) | Sets the [SemanticQueriesState.semanticQueries](./x-components.semanticqueriesstate.semanticqueries.md) property. |
|
|
22
|
+
| [setSemanticQueriesRelatedTags(relatedTags)](./x-components.semanticqueriesmutations.setsemanticqueriesrelatedtags.md) | Sets the related tags of the module. |
|
|
22
23
|
| [setTotalResults(totalResults)](./x-components.semanticqueriesmutations.settotalresults.md) | Sets the [SemanticQueriesState.totalResults](./x-components.semanticqueriesstate.totalresults.md) property. |
|
|
23
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) > [SemanticQueriesMutations](./x-components.semanticqueriesmutations.md) > [setSemanticQueriesRelatedTags](./x-components.semanticqueriesmutations.setsemanticqueriesrelatedtags.md)
|
|
4
|
+
|
|
5
|
+
## SemanticQueriesMutations.setSemanticQueriesRelatedTags() method
|
|
6
|
+
|
|
7
|
+
Sets the related tags of the module.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
setSemanticQueriesRelatedTags(relatedTags: RelatedTag[]): void;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| relatedTags | RelatedTag\[\] | The new related tags to save to the state. |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
void
|
|
24
|
+
|
|
@@ -19,6 +19,7 @@ export interface SemanticQueriesState extends QueryState
|
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
20
|
| [config](./x-components.semanticqueriesstate.config.md) | | [SemanticQueriesConfig](./x-components.semanticqueriesconfig.md) | The configuration of the semantic queries' module. |
|
|
21
21
|
| [params](./x-components.semanticqueriesstate.params.md) | | Dictionary<unknown> | The extra params property of the state. |
|
|
22
|
+
| [relatedTags](./x-components.semanticqueriesstate.relatedtags.md) | | RelatedTag\[\] | The list of the related tags, related to the <code>query</code> property of the state. |
|
|
22
23
|
| [semanticQueries](./x-components.semanticqueriesstate.semanticqueries.md) | | SemanticQuery\[\] | The request and results. |
|
|
23
24
|
| [totalResults](./x-components.semanticqueriesstate.totalresults.md) | | number | The number of the total results of the query. |
|
|
24
25
|
|
|
@@ -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) > [SemanticQueriesState](./x-components.semanticqueriesstate.md) > [relatedTags](./x-components.semanticqueriesstate.relatedtags.md)
|
|
4
|
+
|
|
5
|
+
## SemanticQueriesState.relatedTags property
|
|
6
|
+
|
|
7
|
+
The list of the related tags, related to the `query` property of the state.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
relatedTags: RelatedTag[];
|
|
13
|
+
```
|
package/js/index.js
CHANGED
|
@@ -337,7 +337,6 @@ export { default as RelatedPromptsList } from './x-modules/related-prompts/compo
|
|
|
337
337
|
export { default as RelatedPromptsTagList } from './x-modules/related-prompts/components/related-prompts-tag-list.vue.js';
|
|
338
338
|
export { cancelFetchAndSaveRelatedPrompts, fetchAndSaveRelatedPrompts } from './x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.js';
|
|
339
339
|
export { fetchRelatedPrompts } from './x-modules/related-prompts/store/actions/fetch-related-prompts.action.js';
|
|
340
|
-
export { request as relatedPromptRequest } from './x-modules/related-prompts/store/getters/request.getter.js';
|
|
341
340
|
export { relatedPromptsStoreEmitters } from './x-modules/related-prompts/store/emitters.js';
|
|
342
341
|
export { relatedPromptsXStoreModule } from './x-modules/related-prompts/store/module.js';
|
|
343
342
|
export { relatedPromptsWiring } from './x-modules/related-prompts/wiring.js';
|
package/js/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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRelatedTagsQueryGetter } from '../../../../store/utils/query.utils.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Default implementation for the related prompts query getter.
|
|
5
|
+
*
|
|
6
|
+
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the related
|
|
7
|
+
* prompts' module.
|
|
8
|
+
*
|
|
9
|
+
* @returns The query with the selected related tags concatenated.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
const query = createRelatedTagsQueryGetter({
|
|
14
|
+
getRelatedTags: state => state.relatedTags
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export { query };
|
|
18
|
+
//# sourceMappingURL=related-prompts-query.getter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"related-prompts-query.getter.js","sources":["../../../../../../src/x-modules/related-prompts/store/getters/related-prompts-query.getter.ts"],"sourcesContent":["import { createRelatedTagsQueryGetter } from '../../../../store/utils/query.utils';\nimport { RelatedPromptsXStoreModule } from '../types';\n\n/**\n * Default implementation for the related prompts query getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the related\n * prompts' module.\n *\n * @returns The query with the selected related tags concatenated.\n *\n * @public\n */\nexport const query: RelatedPromptsXStoreModule['getters']['query'] = createRelatedTagsQueryGetter({\n getRelatedTags: state => state.relatedTags\n});\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;AACI,MAAM,KAAK,GAAmD,4BAA4B,CAAC;AAChG,IAAA,cAAc,EAAE,KAAK,IAAI,KAAK,CAAC,WAAW;AAC3C,CAAA;;;;"}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the related
|
|
5
5
|
* prompts module.
|
|
6
|
-
*
|
|
6
|
+
* @param getters - Current {@link https://vuex.vuejs.org/guide/getters.html | getters} of the
|
|
7
|
+
* related prompts' module.
|
|
7
8
|
* @returns The related prompts request to fetch data from the API.
|
|
8
9
|
*
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
|
-
const request = ({ params, query }) => {
|
|
12
|
+
const request = ({ params }, { query }) => {
|
|
12
13
|
return query ? { query, extraParams: params } : null;
|
|
13
14
|
};
|
|
14
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.getter.js","sources":["../../../../../../src/x-modules/related-prompts/store/getters/request.getter.ts"],"sourcesContent":["import { RelatedPromptsXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link RelatedPromptsGetters.request} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the related\n * prompts module.\n
|
|
1
|
+
{"version":3,"file":"request.getter.js","sources":["../../../../../../src/x-modules/related-prompts/store/getters/request.getter.ts"],"sourcesContent":["import { RelatedPromptsXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link RelatedPromptsGetters.request} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the related\n * prompts module.\n * @param getters - Current {@link https://vuex.vuejs.org/guide/getters.html | getters} of the\n * related prompts' module.\n * @returns The related prompts request to fetch data from the API.\n *\n * @public\n */\nexport const request: RelatedPromptsXStoreModule['getters']['request'] = (\n { params },\n { query }\n) => {\n return query ? { query, extraParams: params } : null;\n};\n"],"names":[],"mappings":"AAEA;;;;;;;;;;AAUG;AACI,MAAM,OAAO,GAAqD,CACvE,EAAE,MAAM,EAAE,EACV,EAAE,KAAK,EAAE,KACP;AACF,IAAA,OAAO,KAAK,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;AACvD;;;;"}
|
|
@@ -4,6 +4,7 @@ import { fetchAndSaveRelatedPrompts, cancelFetchAndSaveRelatedPrompts } from './
|
|
|
4
4
|
import { fetchRelatedPrompts } from './actions/fetch-related-prompts.action.js';
|
|
5
5
|
import { setUrlParams } from './actions/set-url-params.action.js';
|
|
6
6
|
import { request } from './getters/request.getter.js';
|
|
7
|
+
import { query } from './getters/related-prompts-query.getter.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* {@link XStoreModule} For the related prompt module.
|
|
@@ -17,10 +18,12 @@ const relatedPromptsXStoreModule = {
|
|
|
17
18
|
selectedPrompt: -1,
|
|
18
19
|
selectedQuery: -1,
|
|
19
20
|
status: 'initial',
|
|
20
|
-
params: {}
|
|
21
|
+
params: {},
|
|
22
|
+
relatedTags: []
|
|
21
23
|
}),
|
|
22
24
|
getters: {
|
|
23
|
-
request
|
|
25
|
+
request,
|
|
26
|
+
query
|
|
24
27
|
},
|
|
25
28
|
mutations: {
|
|
26
29
|
setStatus,
|
|
@@ -44,6 +47,9 @@ const relatedPromptsXStoreModule = {
|
|
|
44
47
|
},
|
|
45
48
|
resetSelectedPrompt(state) {
|
|
46
49
|
state.selectedPrompt = -1;
|
|
50
|
+
},
|
|
51
|
+
setRelatedPromptsRelatedTags(state, relatedTags) {
|
|
52
|
+
state.relatedTags = relatedTags;
|
|
47
53
|
}
|
|
48
54
|
},
|
|
49
55
|
actions: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/related-prompts/store/module.ts"],"sourcesContent":["import { setStatus } from '../../../store/utils/status-store.utils';\nimport { setQuery } from '../../../store/utils/query.utils';\nimport { RelatedPromptsXStoreModule } from './types';\nimport {\n cancelFetchAndSaveRelatedPrompts,\n fetchAndSaveRelatedPrompts\n} from './actions/fetch-and-save-related-prompts.action';\nimport { fetchRelatedPrompts } from './actions/fetch-related-prompts.action';\nimport { setUrlParams } from './actions/set-url-params.action';\nimport { request } from './getters/request.getter';\n\n/**\n * {@link XStoreModule} For the related prompt module.\n *\n * @internal\n */\nexport const relatedPromptsXStoreModule: RelatedPromptsXStoreModule = {\n state: () => ({\n query: '',\n relatedPrompts: [],\n selectedPrompt: -1,\n selectedQuery: -1,\n status: 'initial',\n params: {}\n }),\n getters: {\n request\n },\n mutations: {\n setStatus,\n setQuery,\n setParams(state, params) {\n state.params = params;\n },\n setRelatedPromptsProducts(state, products) {\n state.relatedPrompts = products;\n },\n setSelectedPrompt(state, selectedPrompt) {\n state.selectedPrompt = state.selectedPrompt === selectedPrompt ? -1 : selectedPrompt;\n },\n setSelectedQuery(state, selectedQuery) {\n state.selectedQuery = selectedQuery;\n },\n resetRelatedPromptsState(state) {\n state.selectedQuery = -1;\n state.selectedPrompt = -1;\n state.relatedPrompts = [];\n },\n resetSelectedPrompt(state) {\n state.selectedPrompt = -1;\n }\n },\n actions: {\n fetchRelatedPrompts,\n fetchAndSaveRelatedPrompts,\n cancelFetchAndSaveRelatedPrompts,\n setUrlParams\n }\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/related-prompts/store/module.ts"],"sourcesContent":["import { setStatus } from '../../../store/utils/status-store.utils';\nimport { setQuery } from '../../../store/utils/query.utils';\nimport { RelatedPromptsXStoreModule } from './types';\nimport {\n cancelFetchAndSaveRelatedPrompts,\n fetchAndSaveRelatedPrompts\n} from './actions/fetch-and-save-related-prompts.action';\nimport { fetchRelatedPrompts } from './actions/fetch-related-prompts.action';\nimport { setUrlParams } from './actions/set-url-params.action';\nimport { request } from './getters/request.getter';\nimport { query } from './getters/related-prompts-query.getter';\n\n/**\n * {@link XStoreModule} For the related prompt module.\n *\n * @internal\n */\nexport const relatedPromptsXStoreModule: RelatedPromptsXStoreModule = {\n state: () => ({\n query: '',\n relatedPrompts: [],\n selectedPrompt: -1,\n selectedQuery: -1,\n status: 'initial',\n params: {},\n relatedTags: []\n }),\n getters: {\n request,\n query\n },\n mutations: {\n setStatus,\n setQuery,\n setParams(state, params) {\n state.params = params;\n },\n setRelatedPromptsProducts(state, products) {\n state.relatedPrompts = products;\n },\n setSelectedPrompt(state, selectedPrompt) {\n state.selectedPrompt = state.selectedPrompt === selectedPrompt ? -1 : selectedPrompt;\n },\n setSelectedQuery(state, selectedQuery) {\n state.selectedQuery = selectedQuery;\n },\n resetRelatedPromptsState(state) {\n state.selectedQuery = -1;\n state.selectedPrompt = -1;\n state.relatedPrompts = [];\n },\n resetSelectedPrompt(state) {\n state.selectedPrompt = -1;\n },\n setRelatedPromptsRelatedTags(state, relatedTags) {\n state.relatedTags = relatedTags;\n }\n },\n actions: {\n fetchRelatedPrompts,\n fetchAndSaveRelatedPrompts,\n cancelFetchAndSaveRelatedPrompts,\n setUrlParams\n }\n};\n"],"names":[],"mappings":";;;;;;;;AAYA;;;;AAIG;AACU,MAAA,0BAA0B,GAA+B;AACpE,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,cAAc,EAAE,EAAE;QAClB,cAAc,EAAE,CAAC,CAAC;QAClB,aAAa,EAAE,CAAC,CAAC;AACjB,QAAA,MAAM,EAAE,SAAS;AACjB,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,WAAW,EAAE,EAAE;KAChB,CAAC;AACF,IAAA,OAAO,EAAE;QACP,OAAO;QACP,KAAK;AACN,KAAA;AACD,IAAA,SAAS,EAAE;QACT,SAAS;QACT,QAAQ;QACR,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;SACvB;QACD,yBAAyB,CAAC,KAAK,EAAE,QAAQ,EAAA;AACvC,YAAA,KAAK,CAAC,cAAc,GAAG,QAAQ,CAAC;SACjC;QACD,iBAAiB,CAAC,KAAK,EAAE,cAAc,EAAA;AACrC,YAAA,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,KAAK,cAAc,GAAG,CAAC,CAAC,GAAG,cAAc,CAAC;SACtF;QACD,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAA;AACnC,YAAA,KAAK,CAAC,aAAa,GAAG,aAAa,CAAC;SACrC;AACD,QAAA,wBAAwB,CAAC,KAAK,EAAA;AAC5B,YAAA,KAAK,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC;AACzB,YAAA,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;AAC1B,YAAA,KAAK,CAAC,cAAc,GAAG,EAAE,CAAC;SAC3B;AACD,QAAA,mBAAmB,CAAC,KAAK,EAAA;AACvB,YAAA,KAAK,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC;SAC3B;QACD,4BAA4B,CAAC,KAAK,EAAE,WAAW,EAAA;AAC7C,YAAA,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;SACjC;AACF,KAAA;AACD,IAAA,OAAO,EAAE;QACP,mBAAmB;QACnB,0BAA0B;QAC1B,gCAAgC;QAChC,YAAY;AACb,KAAA;;;;;"}
|
|
@@ -24,6 +24,8 @@ const setRelatedPromptsQueryFromPreview = wireCommit('setQuery', ({ eventPayload
|
|
|
24
24
|
const setRelatedPromptQuery = wireCommit('setSelectedQuery');
|
|
25
25
|
/** Sets the related prompts state `selectedPrompt`. */
|
|
26
26
|
const setRelatedPrompt = wireCommit('setSelectedPrompt');
|
|
27
|
+
/** Sets the related prompts state `relatedTags`.*/
|
|
28
|
+
const setRelatedPromptsRelatedTags = wireCommit('setRelatedPromptsRelatedTags');
|
|
27
29
|
/** Fetches and saves the related prompts response. */
|
|
28
30
|
const fetchAndSaveRelatedPrompts = wireDispatch('fetchAndSaveRelatedPrompts');
|
|
29
31
|
/** Cancels the fetch and save related prompts response. */
|
|
@@ -70,6 +72,9 @@ const relatedPromptsWiring = createWiring({
|
|
|
70
72
|
resetRelatedPrompt: filter(resetRelatedPrompt,
|
|
71
73
|
// Avoid reset selected prompt just after restored from URL with ParamsLoadedFromUrl event
|
|
72
74
|
({ store }) => store.state.x.search.origin !== 'url:external')
|
|
75
|
+
},
|
|
76
|
+
SelectedRelatedTagsChanged: {
|
|
77
|
+
setRelatedPromptsRelatedTags
|
|
73
78
|
}
|
|
74
79
|
});
|
|
75
80
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/related-prompts/wiring.ts"],"sourcesContent":["import {\n namespacedWireCommit,\n namespacedWireCommitWithoutPayload,\n namespacedWireDispatch,\n namespacedWireDispatchWithoutPayload\n} from '../../wiring/namespaced-wires.factory';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { filter } from '../../wiring/wires.operators';\n\n/** `relatedPrompts` XModule name. */\nconst moduleName = 'relatedPrompts';\n/** WireCommit for RelatedPromptsXModule. */\nconst wireCommit = namespacedWireCommit(moduleName);\n/** WireCommitWithoutPayload for RelatedPromptsXModule. */\nconst wireCommitWithoutPayload = namespacedWireCommitWithoutPayload(moduleName);\n/** WireDispatch for RelatedPromptsXModule.*/\nconst wireDispatch = namespacedWireDispatch(moduleName);\n/** WireDispatchWithoutPayload for RelatedPromptsXModule. */\nconst wireDispatchWithoutPayload = namespacedWireDispatchWithoutPayload(moduleName);\n\n/** Sets the related prompts state from URL data. */\nconst setUrlParams = wireDispatch('setUrlParams');\n/** Sets the related prompts state `params`. */\nconst setExtraParams = wireCommit('setParams');\n\n/** Sets the related prompts state `query`. */\nconst setRelatedPromptsQuery = wireCommit('setQuery');\n/** Sets the related prompts state `query` from the payload. */\nconst setRelatedPromptsQueryFromPreview = wireCommit(\n 'setQuery',\n ({ eventPayload: { query } }) => query\n);\n/** Sets the related prompts state `selectedQuery`. */\nconst setRelatedPromptQuery = wireCommit('setSelectedQuery');\n/** Sets the related prompts state `selectedPrompt`. */\nconst setRelatedPrompt = wireCommit('setSelectedPrompt');\n
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/related-prompts/wiring.ts"],"sourcesContent":["import {\n namespacedWireCommit,\n namespacedWireCommitWithoutPayload,\n namespacedWireDispatch,\n namespacedWireDispatchWithoutPayload\n} from '../../wiring/namespaced-wires.factory';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { filter } from '../../wiring/wires.operators';\n\n/** `relatedPrompts` XModule name. */\nconst moduleName = 'relatedPrompts';\n/** WireCommit for RelatedPromptsXModule. */\nconst wireCommit = namespacedWireCommit(moduleName);\n/** WireCommitWithoutPayload for RelatedPromptsXModule. */\nconst wireCommitWithoutPayload = namespacedWireCommitWithoutPayload(moduleName);\n/** WireDispatch for RelatedPromptsXModule.*/\nconst wireDispatch = namespacedWireDispatch(moduleName);\n/** WireDispatchWithoutPayload for RelatedPromptsXModule. */\nconst wireDispatchWithoutPayload = namespacedWireDispatchWithoutPayload(moduleName);\n\n/** Sets the related prompts state from URL data. */\nconst setUrlParams = wireDispatch('setUrlParams');\n/** Sets the related prompts state `params`. */\nconst setExtraParams = wireCommit('setParams');\n\n/** Sets the related prompts state `query`. */\nconst setRelatedPromptsQuery = wireCommit('setQuery');\n/** Sets the related prompts state `query` from the payload. */\nconst setRelatedPromptsQueryFromPreview = wireCommit(\n 'setQuery',\n ({ eventPayload: { query } }) => query\n);\n/** Sets the related prompts state `selectedQuery`. */\nconst setRelatedPromptQuery = wireCommit('setSelectedQuery');\n/** Sets the related prompts state `selectedPrompt`. */\nconst setRelatedPrompt = wireCommit('setSelectedPrompt');\n/** Sets the related prompts state `relatedTags`.*/\nconst setRelatedPromptsRelatedTags = wireCommit('setRelatedPromptsRelatedTags');\n/** Fetches and saves the related prompts response. */\nconst fetchAndSaveRelatedPrompts = wireDispatch('fetchAndSaveRelatedPrompts');\n/** Cancels the fetch and save related prompts response. */\nconst cancelFetchAndSaveRelatedPrompts = wireDispatchWithoutPayload(\n 'cancelFetchAndSaveRelatedPrompts'\n);\n\n/** Resets the related prompts state. */\nconst resetRelatedPromptsState = wireCommitWithoutPayload('resetRelatedPromptsState');\n/** Resets the selected related prompt number. */\nconst resetRelatedPrompt = wireCommitWithoutPayload('resetSelectedPrompt');\n\n/**\n * Wiring configuration for the {@link RelatedPromptsXModule | related prompts module}.\n *\n * @internal\n */\nexport const relatedPromptsWiring = createWiring({\n ParamsLoadedFromUrl: {\n setUrlParams\n },\n ExtraParamsChanged: {\n setExtraParams\n },\n UserAcceptedAQuery: {\n setRelatedPromptsQuery,\n resetRelatedPrompt\n },\n UserAcceptedAQueryPreview: {\n setRelatedPromptsQueryFromPreview,\n resetRelatedPrompt\n },\n UserClearedQuery: {\n cancelFetchAndSaveRelatedPrompts,\n resetRelatedPromptsState,\n setRelatedPromptsQuery\n },\n RelatedPromptsRequestUpdated: {\n fetchAndSaveRelatedPrompts\n },\n UserSelectedARelatedPrompt: {\n setRelatedPrompt\n },\n UserSelectedARelatedPromptQuery: {\n setRelatedPromptQuery\n },\n SearchRequestChanged: {\n resetRelatedPrompt: filter(\n resetRelatedPrompt,\n // Avoid reset selected prompt just after restored from URL with ParamsLoadedFromUrl event\n ({ store }) => store.state.x.search.origin !== 'url:external'\n )\n },\n SelectedRelatedTagsChanged: {\n setRelatedPromptsRelatedTags\n }\n});\n"],"names":[],"mappings":";;;;AASA;AACA,MAAM,UAAU,GAAG,gBAAgB,CAAC;AACpC;AACA,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AACpD;AACA,MAAM,wBAAwB,GAAG,kCAAkC,CAAC,UAAU,CAAC,CAAC;AAChF;AACA,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AACxD;AACA,MAAM,0BAA0B,GAAG,oCAAoC,CAAC,UAAU,CAAC,CAAC;AAEpF;AACA,MAAM,YAAY,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;AAClD;AACA,MAAM,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;AAE/C;AACA,MAAM,sBAAsB,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;AACtD;AACA,MAAM,iCAAiC,GAAG,UAAU,CAClD,UAAU,EACV,CAAC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK,CACvC,CAAC;AACF;AACA,MAAM,qBAAqB,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;AAC7D;AACA,MAAM,gBAAgB,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;AACzD;AACA,MAAM,4BAA4B,GAAG,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAChF;AACA,MAAM,0BAA0B,GAAG,YAAY,CAAC,4BAA4B,CAAC,CAAC;AAC9E;AACA,MAAM,gCAAgC,GAAG,0BAA0B,CACjE,kCAAkC,CACnC,CAAC;AAEF;AACA,MAAM,wBAAwB,GAAG,wBAAwB,CAAC,0BAA0B,CAAC,CAAC;AACtF;AACA,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,qBAAqB,CAAC,CAAC;AAE3E;;;;AAIG;AACI,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAC/C,IAAA,mBAAmB,EAAE;QACnB,YAAY;AACb,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,cAAc;AACf,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;QACtB,kBAAkB;AACnB,KAAA;AACD,IAAA,yBAAyB,EAAE;QACzB,iCAAiC;QACjC,kBAAkB;AACnB,KAAA;AACD,IAAA,gBAAgB,EAAE;QAChB,gCAAgC;QAChC,wBAAwB;QACxB,sBAAsB;AACvB,KAAA;AACD,IAAA,4BAA4B,EAAE;QAC5B,0BAA0B;AAC3B,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,gBAAgB;AACjB,KAAA;AACD,IAAA,+BAA+B,EAAE;QAC/B,qBAAqB;AACtB,KAAA;AACD,IAAA,oBAAoB,EAAE;QACpB,kBAAkB,EAAE,MAAM,CACxB,kBAAkB;;AAElB,QAAA,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,cAAc,CAC9D;AACF,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,4BAA4B;AAC7B,KAAA;AACF,CAAA;;;;"}
|
|
@@ -4,7 +4,7 @@ import { normalizeString } from '../../../../utils/normalize.js';
|
|
|
4
4
|
* Default implementacion for the {@link SemanticQueriesGetters.normalizedQuery} getter.
|
|
5
5
|
*
|
|
6
6
|
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic
|
|
7
|
-
* queries module.
|
|
7
|
+
* queries' module.
|
|
8
8
|
*
|
|
9
9
|
* @returns The normalized query.
|
|
10
10
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalized-query.getter.js","sources":["../../../../../../src/x-modules/semantic-queries/store/getters/normalized-query.getter.ts"],"sourcesContent":["import { SemanticQueriesXStoreModule } from '../types';\nimport { normalizeString } from '../../../../utils/normalize';\n\n/**\n * Default implementacion for the {@link SemanticQueriesGetters.normalizedQuery} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic\n * queries module.\n *\n * @returns The normalized query.\n *\n * @public\n */\nexport const normalizedQuery: SemanticQueriesXStoreModule['getters']['normalizedQuery'] = ({\n query\n}) => normalizeString(query);\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;AACI,MAAM,eAAe,GAA8D,CAAC,EACzF,KAAK,EACN,KAAK,eAAe,CAAC,KAAK;;;;"}
|
|
1
|
+
{"version":3,"file":"normalized-query.getter.js","sources":["../../../../../../src/x-modules/semantic-queries/store/getters/normalized-query.getter.ts"],"sourcesContent":["import { SemanticQueriesXStoreModule } from '../types';\nimport { normalizeString } from '../../../../utils/normalize';\n\n/**\n * Default implementacion for the {@link SemanticQueriesGetters.normalizedQuery} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic\n * queries' module.\n *\n * @returns The normalized query.\n *\n * @public\n */\nexport const normalizedQuery: SemanticQueriesXStoreModule['getters']['normalizedQuery'] = ({\n query\n}) => normalizeString(query);\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;AACI,MAAM,eAAe,GAA8D,CAAC,EACzF,KAAK,EACN,KAAK,eAAe,CAAC,KAAK;;;;"}
|
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic
|
|
5
5
|
* queries module.
|
|
6
|
-
*
|
|
6
|
+
* @param getters - Current {@link https://vuex.vuejs.org/guide/getters.html | getters} of the
|
|
7
|
+
* semantic queries' module.
|
|
7
8
|
* @returns The semantic queries request to fetch data from the API.
|
|
8
9
|
*
|
|
9
10
|
* @public
|
|
10
11
|
*/
|
|
11
|
-
const request = ({
|
|
12
|
-
return
|
|
12
|
+
const request = ({ params, totalResults, config: { threshold, maxItemsToRequest } }, { normalizedQuery }) => {
|
|
13
|
+
return normalizedQuery && totalResults <= threshold
|
|
13
14
|
? {
|
|
14
|
-
query,
|
|
15
|
+
query: normalizedQuery,
|
|
15
16
|
extraParams: {
|
|
16
17
|
...params,
|
|
17
18
|
k: maxItemsToRequest
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.getter.js","sources":["../../../../../../src/x-modules/semantic-queries/store/getters/request.getter.ts"],"sourcesContent":["import { SemanticQueriesXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link SemanticQueriesGetters.request} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic\n * queries module.\n
|
|
1
|
+
{"version":3,"file":"request.getter.js","sources":["../../../../../../src/x-modules/semantic-queries/store/getters/request.getter.ts"],"sourcesContent":["import { SemanticQueriesXStoreModule } from '../types';\n\n/**\n * Default implementation for the {@link SemanticQueriesGetters.request} getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic\n * queries module.\n * @param getters - Current {@link https://vuex.vuejs.org/guide/getters.html | getters} of the\n * semantic queries' module.\n * @returns The semantic queries request to fetch data from the API.\n *\n * @public\n */\nexport const request: SemanticQueriesXStoreModule['getters']['request'] = (\n { params, totalResults, config: { threshold, maxItemsToRequest } },\n { normalizedQuery }\n) => {\n return normalizedQuery && totalResults <= threshold\n ? {\n query: normalizedQuery,\n extraParams: {\n ...params,\n k: maxItemsToRequest\n }\n }\n : null;\n};\n"],"names":[],"mappings":"AAEA;;;;;;;;;;AAUG;MACU,OAAO,GAAsD,CACxE,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,EAClE,EAAE,eAAe,EAAE,KACjB;AACF,IAAA,OAAO,eAAe,IAAI,YAAY,IAAI,SAAS;AACjD,UAAE;AACE,YAAA,KAAK,EAAE,eAAe;AACtB,YAAA,WAAW,EAAE;AACX,gBAAA,GAAG,MAAM;AACT,gBAAA,CAAC,EAAE,iBAAiB;AACrB,aAAA;AACF,SAAA;UACD,IAAI,CAAC;AACX;;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRelatedTagsQueryGetter } from '../../../../store/utils/query.utils.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Default implementation for the semantic queries query getter.
|
|
5
|
+
*
|
|
6
|
+
* @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic
|
|
7
|
+
* queries' module.
|
|
8
|
+
*
|
|
9
|
+
* @returns The query with the selected related tags concatenated.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
const query = createRelatedTagsQueryGetter({
|
|
14
|
+
getRelatedTags: state => state.relatedTags
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export { query };
|
|
18
|
+
//# sourceMappingURL=semanti-queries-query.getter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semanti-queries-query.getter.js","sources":["../../../../../../src/x-modules/semantic-queries/store/getters/semanti-queries-query.getter.ts"],"sourcesContent":["import { createRelatedTagsQueryGetter } from '../../../../store/utils/query.utils';\nimport { SemanticQueriesXStoreModule } from '../types';\n\n/**\n * Default implementation for the semantic queries query getter.\n *\n * @param state - Current {@link https://vuex.vuejs.org/guide/state.html | state} of the semantic\n * queries' module.\n *\n * @returns The query with the selected related tags concatenated.\n *\n * @public\n */\nexport const query: SemanticQueriesXStoreModule['getters']['query'] = createRelatedTagsQueryGetter({\n getRelatedTags: state => state.relatedTags\n});\n"],"names":[],"mappings":";;AAGA;;;;;;;;;AASG;AACI,MAAM,KAAK,GAAoD,4BAA4B,CAAC;AACjG,IAAA,cAAc,EAAE,KAAK,IAAI,KAAK,CAAC,WAAW;AAC3C,CAAA;;;;"}
|
|
@@ -4,6 +4,7 @@ import { fetchSemanticQuery } from './actions/fetch-semantic-query.action.js';
|
|
|
4
4
|
import { fetchAndSaveSemanticQuery } from './actions/fetch-and-save-semantic-query.action.js';
|
|
5
5
|
import { request } from './getters/request.getter.js';
|
|
6
6
|
import { normalizedQuery } from './getters/normalized-query.getter.js';
|
|
7
|
+
import { query } from './getters/semanti-queries-query.getter.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* {@link XStoreModule} For the `semantic-queries` module.
|
|
@@ -19,11 +20,13 @@ const semanticQueriesXStoreModule = {
|
|
|
19
20
|
semanticQueries: [],
|
|
20
21
|
params: {},
|
|
21
22
|
query: '',
|
|
22
|
-
totalResults: 0
|
|
23
|
+
totalResults: 0,
|
|
24
|
+
relatedTags: []
|
|
23
25
|
}),
|
|
24
26
|
getters: {
|
|
25
27
|
request,
|
|
26
|
-
normalizedQuery
|
|
28
|
+
normalizedQuery,
|
|
29
|
+
query
|
|
27
30
|
},
|
|
28
31
|
mutations: {
|
|
29
32
|
setParams(state, params) {
|
|
@@ -36,6 +39,9 @@ const semanticQueriesXStoreModule = {
|
|
|
36
39
|
setTotalResults(state, totalResults) {
|
|
37
40
|
state.totalResults = totalResults;
|
|
38
41
|
},
|
|
42
|
+
setSemanticQueriesRelatedTags(state, relatedTags) {
|
|
43
|
+
state.relatedTags = relatedTags;
|
|
44
|
+
},
|
|
39
45
|
setConfig,
|
|
40
46
|
mergeConfig
|
|
41
47
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/semantic-queries/store/module.ts"],"sourcesContent":["import { mergeConfig, setConfig } from '../../../store/utils/config-store.utils';\nimport { setQuery } from '../../../store/utils/query.utils';\nimport { SemanticQueriesXStoreModule } from './types';\nimport { fetchSemanticQuery } from './actions/fetch-semantic-query.action';\nimport { fetchAndSaveSemanticQuery } from './actions/fetch-and-save-semantic-query.action';\nimport { request } from './getters/request.getter';\nimport { normalizedQuery } from './getters/normalized-query.getter';\n\n/**\n * {@link XStoreModule} For the `semantic-queries` module.\n *\n * @internal\n */\nexport const semanticQueriesXStoreModule: SemanticQueriesXStoreModule = {\n state: () => ({\n config: {\n threshold: 5,\n maxItemsToRequest: 3\n },\n semanticQueries: [],\n params: {},\n query: '',\n totalResults: 0\n }),\n getters: {\n request,\n normalizedQuery\n },\n mutations: {\n setParams(state, params) {\n state.params = params;\n },\n setSemanticQueries(state, queries) {\n state.semanticQueries = queries;\n },\n setQuery,\n setTotalResults(state, totalResults) {\n state.totalResults = totalResults;\n },\n setConfig,\n mergeConfig\n },\n actions: {\n fetchSemanticQuery,\n fetchAndSaveSemanticQuery\n }\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../../../../../src/x-modules/semantic-queries/store/module.ts"],"sourcesContent":["import { mergeConfig, setConfig } from '../../../store/utils/config-store.utils';\nimport { setQuery } from '../../../store/utils/query.utils';\nimport { SemanticQueriesXStoreModule } from './types';\nimport { fetchSemanticQuery } from './actions/fetch-semantic-query.action';\nimport { fetchAndSaveSemanticQuery } from './actions/fetch-and-save-semantic-query.action';\nimport { request } from './getters/request.getter';\nimport { normalizedQuery } from './getters/normalized-query.getter';\nimport { query } from './getters/semanti-queries-query.getter';\n\n/**\n * {@link XStoreModule} For the `semantic-queries` module.\n *\n * @internal\n */\nexport const semanticQueriesXStoreModule: SemanticQueriesXStoreModule = {\n state: () => ({\n config: {\n threshold: 5,\n maxItemsToRequest: 3\n },\n semanticQueries: [],\n params: {},\n query: '',\n totalResults: 0,\n relatedTags: []\n }),\n getters: {\n request,\n normalizedQuery,\n query\n },\n mutations: {\n setParams(state, params) {\n state.params = params;\n },\n setSemanticQueries(state, queries) {\n state.semanticQueries = queries;\n },\n setQuery,\n setTotalResults(state, totalResults) {\n state.totalResults = totalResults;\n },\n setSemanticQueriesRelatedTags(state, relatedTags) {\n state.relatedTags = relatedTags;\n },\n setConfig,\n mergeConfig\n },\n actions: {\n fetchSemanticQuery,\n fetchAndSaveSemanticQuery\n }\n};\n"],"names":[],"mappings":";;;;;;;;AASA;;;;AAIG;AACU,MAAA,2BAA2B,GAAgC;AACtE,IAAA,KAAK,EAAE,OAAO;AACZ,QAAA,MAAM,EAAE;AACN,YAAA,SAAS,EAAE,CAAC;AACZ,YAAA,iBAAiB,EAAE,CAAC;AACrB,SAAA;AACD,QAAA,eAAe,EAAE,EAAE;AACnB,QAAA,MAAM,EAAE,EAAE;AACV,QAAA,KAAK,EAAE,EAAE;AACT,QAAA,YAAY,EAAE,CAAC;AACf,QAAA,WAAW,EAAE,EAAE;KAChB,CAAC;AACF,IAAA,OAAO,EAAE;QACP,OAAO;QACP,eAAe;QACf,KAAK;AACN,KAAA;AACD,IAAA,SAAS,EAAE;QACT,SAAS,CAAC,KAAK,EAAE,MAAM,EAAA;AACrB,YAAA,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;SACvB;QACD,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAA;AAC/B,YAAA,KAAK,CAAC,eAAe,GAAG,OAAO,CAAC;SACjC;QACD,QAAQ;QACR,eAAe,CAAC,KAAK,EAAE,YAAY,EAAA;AACjC,YAAA,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;SACnC;QACD,6BAA6B,CAAC,KAAK,EAAE,WAAW,EAAA;AAC9C,YAAA,KAAK,CAAC,WAAW,GAAG,WAAW,CAAC;SACjC;QACD,SAAS;QACT,WAAW;AACZ,KAAA;AACD,IAAA,OAAO,EAAE;QACP,kBAAkB;QAClB,yBAAyB;AAC1B,KAAA;;;;;"}
|
|
@@ -50,6 +50,8 @@ const clearQueryWire = wireCommit('setQuery', '');
|
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
const setTotalResultsWire = wireCommit('setTotalResults');
|
|
53
|
+
/** Sets the related prompts state `relatedTags`. */
|
|
54
|
+
const setSemanticQueriesRelatedTags = wireCommit('setSemanticQueriesRelatedTags');
|
|
53
55
|
/**
|
|
54
56
|
* Sets the total results taking the {@link SearchXEvents.SearchResponseChanged} payload.
|
|
55
57
|
*
|
|
@@ -80,6 +82,9 @@ const semanticQueriesWiring = createWiring({
|
|
|
80
82
|
SearchResponseChanged: {
|
|
81
83
|
setQueryFromSearchResponseChangedWire,
|
|
82
84
|
setTotalResultsFromSearchResponseChangedWire
|
|
85
|
+
},
|
|
86
|
+
SelectedRelatedTagsChanged: {
|
|
87
|
+
setSemanticQueriesRelatedTags
|
|
83
88
|
}
|
|
84
89
|
});
|
|
85
90
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/semantic-queries/wiring.ts"],"sourcesContent":["import {\n namespacedWireCommit,\n namespacedWireDispatch\n} from '../../wiring/namespaced-wires.factory';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { mapWire } from '../../wiring/wires.operators';\nimport { SearchXEvents } from '../search/events.types';\nimport { ExtractMutationPayload } from '../../store/store.types';\n\n/**\n * `semanticQueries` {@link XModuleName | name}.\n *\n * @internal\n */\nconst moduleName = 'semanticQueries';\n\n/**\n * WireCommit for {@link SemanticQueriesXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName);\n\n/**\n * WireDispatch for {@link SemanticQueriesXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName);\n\n/**\n * Requests and stores the semantic query results.\n *\n * @public\n */\nexport const fetchAndSaveSemanticQueryWire = wireDispatch('fetchAndSaveSemanticQuery');\n\n/**\n * Sets the query.\n *\n * @public\n */\nexport const setQueryWire = wireCommit('setQuery');\n\n/**\n * Sets the query taking the {@link SearchXEvents.SearchResponseChanged} payload.\n *\n * @public\n */\nexport const setQueryFromSearchResponseChangedWire = mapWire<\n SearchXEvents['SearchResponseChanged'],\n ExtractMutationPayload<'semanticQueries', 'setQuery'>\n>(setQueryWire, ({ request: { query } }) => query);\n\n/**\n * Clears the query.\n *\n * @public\n */\nexport const clearQueryWire = wireCommit('setQuery', '');\n\n/**\n * Sets the total results.\n *\n * @public\n */\nexport const setTotalResultsWire = wireCommit('setTotalResults');\n\n/**\n * Sets the total results taking the {@link SearchXEvents.SearchResponseChanged} payload.\n *\n * @public\n */\nexport const setTotalResultsFromSearchResponseChangedWire = mapWire<\n SearchXEvents['SearchResponseChanged'],\n ExtractMutationPayload<'semanticQueries', 'setTotalResults'>\n>(setTotalResultsWire, ({ totalResults }) => totalResults);\n\n/**\n * Sets the semantic queries state `params`.\n *\n * @public\n */\nexport const setSemanticQueriesExtraParamsWire = wireCommit('setParams');\n\n/**\n * Wiring configuration for the {@link SemanticQueriesXModule | semanticQueries module}.\n *\n * @internal\n */\nexport const semanticQueriesWiring = createWiring({\n UserClearedQuery: {\n clearQueryWire\n },\n SemanticQueryRequestUpdated: {\n fetchAndSaveSemanticQueryWire\n },\n ExtraParamsChanged: {\n setSemanticQueriesExtraParamsWire\n },\n SearchResponseChanged: {\n setQueryFromSearchResponseChangedWire,\n setTotalResultsFromSearchResponseChangedWire\n }\n});\n"],"names":[],"mappings":";;;;AASA;;;;AAIG;AACH,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAErC;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAEpD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAExD;;;;AAIG;MACU,6BAA6B,GAAG,YAAY,CAAC,2BAA2B,EAAE;AAEvF;;;;AAIG;MACU,YAAY,GAAG,UAAU,CAAC,UAAU,EAAE;AAEnD;;;;AAIG;MACU,qCAAqC,GAAG,OAAO,CAG1D,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK,EAAE;AAEnD;;;;AAIG;AACU,MAAA,cAAc,GAAG,UAAU,CAAC,UAAU,EAAE,EAAE,EAAE;AAEzD;;;;AAIG;MACU,mBAAmB,GAAG,UAAU,CAAC,iBAAiB,EAAE;AAEjE;;;;AAIG;AACU,MAAA,4CAA4C,GAAG,OAAO,CAGjE,mBAAmB,EAAE,CAAC,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE;AAE3D;;;;AAIG;MACU,iCAAiC,GAAG,UAAU,CAAC,WAAW,EAAE;AAEzE;;;;AAIG;AACI,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAChD,IAAA,gBAAgB,EAAE;QAChB,cAAc;AACf,KAAA;AACD,IAAA,2BAA2B,EAAE;QAC3B,6BAA6B;AAC9B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,iCAAiC;AAClC,KAAA;AACD,IAAA,qBAAqB,EAAE;QACrB,qCAAqC;QACrC,4CAA4C;AAC7C,KAAA;AACF,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/semantic-queries/wiring.ts"],"sourcesContent":["import {\n namespacedWireCommit,\n namespacedWireDispatch\n} from '../../wiring/namespaced-wires.factory';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { mapWire } from '../../wiring/wires.operators';\nimport { SearchXEvents } from '../search/events.types';\nimport { ExtractMutationPayload } from '../../store/store.types';\n\n/**\n * `semanticQueries` {@link XModuleName | name}.\n *\n * @internal\n */\nconst moduleName = 'semanticQueries';\n\n/**\n * WireCommit for {@link SemanticQueriesXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName);\n\n/**\n * WireDispatch for {@link SemanticQueriesXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName);\n\n/**\n * Requests and stores the semantic query results.\n *\n * @public\n */\nexport const fetchAndSaveSemanticQueryWire = wireDispatch('fetchAndSaveSemanticQuery');\n\n/**\n * Sets the query.\n *\n * @public\n */\nexport const setQueryWire = wireCommit('setQuery');\n\n/**\n * Sets the query taking the {@link SearchXEvents.SearchResponseChanged} payload.\n *\n * @public\n */\nexport const setQueryFromSearchResponseChangedWire = mapWire<\n SearchXEvents['SearchResponseChanged'],\n ExtractMutationPayload<'semanticQueries', 'setQuery'>\n>(setQueryWire, ({ request: { query } }) => query);\n\n/**\n * Clears the query.\n *\n * @public\n */\nexport const clearQueryWire = wireCommit('setQuery', '');\n\n/**\n * Sets the total results.\n *\n * @public\n */\nexport const setTotalResultsWire = wireCommit('setTotalResults');\n\n/** Sets the related prompts state `relatedTags`. */\nconst setSemanticQueriesRelatedTags = wireCommit('setSemanticQueriesRelatedTags');\n\n/**\n * Sets the total results taking the {@link SearchXEvents.SearchResponseChanged} payload.\n *\n * @public\n */\nexport const setTotalResultsFromSearchResponseChangedWire = mapWire<\n SearchXEvents['SearchResponseChanged'],\n ExtractMutationPayload<'semanticQueries', 'setTotalResults'>\n>(setTotalResultsWire, ({ totalResults }) => totalResults);\n\n/**\n * Sets the semantic queries state `params`.\n *\n * @public\n */\nexport const setSemanticQueriesExtraParamsWire = wireCommit('setParams');\n\n/**\n * Wiring configuration for the {@link SemanticQueriesXModule | semanticQueries module}.\n *\n * @internal\n */\nexport const semanticQueriesWiring = createWiring({\n UserClearedQuery: {\n clearQueryWire\n },\n SemanticQueryRequestUpdated: {\n fetchAndSaveSemanticQueryWire\n },\n ExtraParamsChanged: {\n setSemanticQueriesExtraParamsWire\n },\n SearchResponseChanged: {\n setQueryFromSearchResponseChangedWire,\n setTotalResultsFromSearchResponseChangedWire\n },\n SelectedRelatedTagsChanged: {\n setSemanticQueriesRelatedTags\n }\n});\n"],"names":[],"mappings":";;;;AASA;;;;AAIG;AACH,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAErC;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAEpD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAExD;;;;AAIG;MACU,6BAA6B,GAAG,YAAY,CAAC,2BAA2B,EAAE;AAEvF;;;;AAIG;MACU,YAAY,GAAG,UAAU,CAAC,UAAU,EAAE;AAEnD;;;;AAIG;MACU,qCAAqC,GAAG,OAAO,CAG1D,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,KAAK,EAAE;AAEnD;;;;AAIG;AACU,MAAA,cAAc,GAAG,UAAU,CAAC,UAAU,EAAE,EAAE,EAAE;AAEzD;;;;AAIG;MACU,mBAAmB,GAAG,UAAU,CAAC,iBAAiB,EAAE;AAEjE;AACA,MAAM,6BAA6B,GAAG,UAAU,CAAC,+BAA+B,CAAC,CAAC;AAElF;;;;AAIG;AACU,MAAA,4CAA4C,GAAG,OAAO,CAGjE,mBAAmB,EAAE,CAAC,EAAE,YAAY,EAAE,KAAK,YAAY,EAAE;AAE3D;;;;AAIG;MACU,iCAAiC,GAAG,UAAU,CAAC,WAAW,EAAE;AAEzE;;;;AAIG;AACI,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAChD,IAAA,gBAAgB,EAAE;QAChB,cAAc;AACf,KAAA;AACD,IAAA,2BAA2B,EAAE;QAC3B,6BAA6B;AAC9B,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,iCAAiC;AAClC,KAAA;AACD,IAAA,qBAAqB,EAAE;QACrB,qCAAqC;QACrC,4CAA4C;AAC7C,KAAA;AACD,IAAA,0BAA0B,EAAE;QAC1B,6BAA6B;AAC9B,KAAA;AACF,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.60",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -138,5 +138,5 @@
|
|
|
138
138
|
"access": "public",
|
|
139
139
|
"directory": "dist"
|
|
140
140
|
},
|
|
141
|
-
"gitHead": "
|
|
141
|
+
"gitHead": "d2f0e5ff02e20cfb6ec7d9d595c30351fe981d67"
|
|
142
142
|
}
|
package/related-prompts/index.js
CHANGED
|
@@ -3,7 +3,6 @@ export { default as RelatedPromptsList } from '../js/x-modules/related-prompts/c
|
|
|
3
3
|
export { default as RelatedPromptsTagList } from '../js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js';
|
|
4
4
|
export { cancelFetchAndSaveRelatedPrompts, fetchAndSaveRelatedPrompts } from '../js/x-modules/related-prompts/store/actions/fetch-and-save-related-prompts.action.js';
|
|
5
5
|
export { fetchRelatedPrompts } from '../js/x-modules/related-prompts/store/actions/fetch-related-prompts.action.js';
|
|
6
|
-
export { request as relatedPromptRequest } from '../js/x-modules/related-prompts/store/getters/request.getter.js';
|
|
7
6
|
export { relatedPromptsStoreEmitters } from '../js/x-modules/related-prompts/store/emitters.js';
|
|
8
7
|
export { relatedPromptsXStoreModule } from '../js/x-modules/related-prompts/store/module.js';
|
|
9
8
|
export { relatedPromptsWiring } from '../js/x-modules/related-prompts/wiring.js';
|