@empathyco/x-components 6.0.0-alpha.36 → 6.0.0-alpha.38
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 +18 -0
- package/design-system/deprecated-full-theme.css +578 -578
- package/docs/API-reference/api/x-adapter-platform.md +3 -0
- package/docs/API-reference/api/x-adapter-platform.nextqueriesrelatedpromptsschema.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedprompt.md +1 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedprompt.tagging.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.md +22 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplay.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayadd2cart.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayclick.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.md +21 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.nextqueries.md +11 -0
- package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.toolingdisplay.md +11 -0
- package/docs/API-reference/api/x-components.baseaddtocart.md +1 -0
- package/docs/API-reference/api/x-components.createtracktoolingadd2cartwire.md +19 -0
- package/docs/API-reference/api/x-components.createtracktoolingdisplaywire.md +19 -0
- package/docs/API-reference/api/x-components.featurelocation.md +1 -1
- package/docs/API-reference/api/x-components.globalxbus.md +4 -0
- package/docs/API-reference/api/x-components.hierarchicalfilter.md +2 -0
- package/docs/API-reference/api/x-components.md +7 -2
- package/docs/API-reference/api/x-components.queryfeature.md +1 -1
- package/docs/API-reference/api/x-components.relatedprompt.md +4 -25
- package/docs/API-reference/api/x-components.relatedpromptstaglist.md +40 -6
- package/docs/API-reference/api/x-components.relatedpromptsxevents.md +2 -0
- package/docs/API-reference/api/x-components.relatedpromptsxevents.userclickedarelatedpromptadd2cart.md +13 -0
- package/docs/API-reference/api/x-components.relatedpromptsxevents.userclickedarelatedpromptresult.md +13 -0
- package/docs/API-reference/api/x-components.simplefilter.md +2 -0
- package/docs/API-reference/api/x-components.snippetcallbacks.md +2 -0
- package/docs/API-reference/api/x-components.tracktoolingadd2cartwire.md +13 -0
- package/docs/API-reference/api/x-components.tracktoolingdisplayclickedwire.md +13 -0
- package/docs/API-reference/api/x-components.typingoptions.md +22 -0
- package/docs/API-reference/api/x-components.typingoptions.speed.md +13 -0
- package/docs/API-reference/api/x-components.typingoptions.targetattr.md +18 -0
- package/docs/API-reference/api/x-components.typingoptions.text.md +13 -0
- package/docs/API-reference/api/x-types.md +1 -0
- package/docs/API-reference/api/x-types.relatedprompt.md +2 -1
- package/docs/API-reference/api/x-types.relatedprompt.relatedpromptnextqueries.md +13 -0
- package/docs/API-reference/api/x-types.relatedprompt.toolingdisplaytagging.md +13 -0
- package/docs/API-reference/api/x-types.relatedpromptnextquery.md +23 -0
- package/docs/API-reference/api/x-types.relatedpromptnextquery.query.md +13 -0
- package/docs/API-reference/api/x-types.relatedpromptnextquery.toolingdisplayadd2carttagging.md +13 -0
- package/docs/API-reference/api/x-types.relatedpromptnextquery.toolingdisplayclicktagging.md +13 -0
- package/docs/API-reference/api/x-types.relatedpromptnextquery.toolingdisplaytagging.md +13 -0
- package/docs/API-reference/components/related-prompts/x-components.related-prompt.md +4 -14
- package/docs/API-reference/components/related-prompts/x-components.related-prompts-tag-list.md +16 -10
- package/js/components/result/base-result-add-to-cart.vue.js +2 -1
- package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue2.js +19 -5
- package/js/components/result/base-result-add-to-cart.vue2.js.map +1 -1
- package/js/directives/typing.js +52 -0
- package/js/directives/typing.js.map +1 -0
- package/js/index.js +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue.js +16 -43
- package/js/x-modules/related-prompts/components/related-prompt.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue2.js +5 -36
- package/js/x-modules/related-prompts/components/related-prompt.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompt.vue3.js +7 -0
- package/js/x-modules/related-prompts/components/related-prompt.vue3.js.map +1 -0
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js +76 -68
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js +176 -22
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue2.js.map +1 -1
- package/js/x-modules/related-prompts/components/related-prompts-tag-list.vue3.js +1 -1
- package/js/x-modules/tagging/store/module.js +5 -1
- package/js/x-modules/tagging/store/module.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +64 -1
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/package.json +4 -4
- package/report/x-adapter-platform.api.json +254 -0
- package/report/x-components.api.json +746 -64
- package/report/x-components.api.md +84 -34
- package/report/x-types.api.json +167 -5
- package/tagging/index.js +1 -1
- package/types/components/global-x-bus.vue.d.ts +4 -0
- package/types/components/global-x-bus.vue.d.ts.map +1 -1
- package/types/components/result/base-result-add-to-cart.vue.d.ts +2 -0
- package/types/components/result/base-result-add-to-cart.vue.d.ts.map +1 -1
- package/types/components/snippet-callbacks.vue.d.ts +2 -0
- package/types/components/snippet-callbacks.vue.d.ts.map +1 -1
- package/types/directives/index.d.ts +1 -0
- package/types/directives/index.d.ts.map +1 -1
- package/types/directives/typing.d.ts +30 -0
- package/types/directives/typing.d.ts.map +1 -0
- package/types/types/origin.d.ts +2 -2
- package/types/types/origin.d.ts.map +1 -1
- package/types/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +2 -0
- 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 -0
- package/types/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts +4 -27
- package/types/x-modules/related-prompts/components/related-prompt.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts +87 -6
- package/types/x-modules/related-prompts/components/related-prompts-tag-list.vue.d.ts.map +1 -1
- package/types/x-modules/related-prompts/events.types.d.ts +11 -1
- package/types/x-modules/related-prompts/events.types.d.ts.map +1 -1
- package/types/x-modules/tagging/store/module.d.ts.map +1 -1
- package/types/x-modules/tagging/wiring.d.ts +36 -2
- package/types/x-modules/tagging/wiring.d.ts.map +1 -1
- package/docs/API-reference/api/x-types.relatedprompt.nextqueries.md +0 -13
|
@@ -40,8 +40,10 @@
|
|
|
40
40
|
| [PlatformRecommendationsResponse](./x-adapter-platform.platformrecommendationsresponse.md) | Response for the <code>recommendations</code> endpoint. |
|
|
41
41
|
| [PlatformRedirection](./x-adapter-platform.platformredirection.md) | Redirection model for the <code>platform</code> API. |
|
|
42
42
|
| [PlatformRelatedPrompt](./x-adapter-platform.platformrelatedprompt.md) | Related prompt model for the <code>platform</code> API. |
|
|
43
|
+
| [PlatformRelatedPromptNextQueriesTagging](./x-adapter-platform.platformrelatedpromptnextqueriestagging.md) | Related prompt model for the <code>platform</code> API. |
|
|
43
44
|
| [PlatformRelatedPromptsRequest](./x-adapter-platform.platformrelatedpromptsrequest.md) | Request for the <code>related prompts</code> endpoint with <code>extra params</code>. |
|
|
44
45
|
| [PlatformRelatedPromptsResponse](./x-adapter-platform.platformrelatedpromptsresponse.md) | Response for the <code>related prompts</code> endpoint. |
|
|
46
|
+
| [PlatformRelatedPromptTagging](./x-adapter-platform.platformrelatedprompttagging.md) | Related prompt model for the <code>platform</code> API. |
|
|
45
47
|
| [PlatformRelatedTag](./x-adapter-platform.platformrelatedtag.md) | Related tag model for the <code>platform</code> API. |
|
|
46
48
|
| [PlatformRelatedTagsRequest](./x-adapter-platform.platformrelatedtagsrequest.md) | Request for the <code>related tags</code> endpoint with <code>extra params</code>. |
|
|
47
49
|
| [PlatformRelatedTagsResponse](./x-adapter-platform.platformrelatedtagsresponse.md) | Response for the <code>related tags</code> endpoint. |
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
| [identifierResultsResponseMapper](./x-adapter-platform.identifierresultsresponsemapper.md) | Default implementation for the IdentifierResultsResponseMapper. |
|
|
73
75
|
| [identifierResultsResponseSchema](./x-adapter-platform.identifierresultsresponseschema.md) | Default implementation for the IdentifierResultsResponseSchema. |
|
|
74
76
|
| [nextQueriesEndpointAdapter](./x-adapter-platform.nextqueriesendpointadapter.md) | This endpoint does not support pagination in the request. |
|
|
77
|
+
| [nextQueriesRelatedPromptsSchema](./x-adapter-platform.nextqueriesrelatedpromptsschema.md) | |
|
|
75
78
|
| [nextQueriesRequestMapper](./x-adapter-platform.nextqueriesrequestmapper.md) | Default implementation for the NextQueriesRequestMapper. |
|
|
76
79
|
| [nextQueriesRequestSchema](./x-adapter-platform.nextqueriesrequestschema.md) | Default implementation for the NextQueriesRequestSchema. |
|
|
77
80
|
| [nextQueriesResponseMapper](./x-adapter-platform.nextqueriesresponsemapper.md) | Default implementation for the NextQueriesResponseMapper. |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [nextQueriesRelatedPromptsSchema](./x-adapter-platform.nextqueriesrelatedpromptsschema.md)
|
|
4
|
+
|
|
5
|
+
## nextQueriesRelatedPromptsSchema variable
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
nextQueriesRelatedPromptsSchema: import("@empathyco/x-adapter").MutableSchema<string, RelatedPromptNextQuery>
|
|
11
|
+
```
|
|
@@ -18,5 +18,6 @@ export interface PlatformRelatedPrompt
|
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
19
|
| [nextQueries](./x-adapter-platform.platformrelatedprompt.nextqueries.md) | | string\[\] | |
|
|
20
20
|
| [suggestionText](./x-adapter-platform.platformrelatedprompt.suggestiontext.md) | | string | |
|
|
21
|
+
| [tagging](./x-adapter-platform.platformrelatedprompt.tagging.md) | | [PlatformRelatedPromptTagging](./x-adapter-platform.platformrelatedprompttagging.md) | |
|
|
21
22
|
| [type](./x-adapter-platform.platformrelatedprompt.type.md) | | 'SYNTHETIC' \| 'CURATED' | |
|
|
22
23
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPrompt](./x-adapter-platform.platformrelatedprompt.md) > [tagging](./x-adapter-platform.platformrelatedprompt.tagging.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPrompt.tagging property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
tagging: PlatformRelatedPromptTagging;
|
|
11
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptNextQueriesTagging](./x-adapter-platform.platformrelatedpromptnextqueriestagging.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptNextQueriesTagging interface
|
|
6
|
+
|
|
7
|
+
Related prompt model for the `platform` API.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface PlatformRelatedPromptNextQueriesTagging
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [toolingDisplay](./x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplay.md) | | string | |
|
|
20
|
+
| [toolingDisplayAdd2Cart](./x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayadd2cart.md) | | string | |
|
|
21
|
+
| [toolingDisplayClick](./x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayclick.md) | | string | |
|
|
22
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptNextQueriesTagging](./x-adapter-platform.platformrelatedpromptnextqueriestagging.md) > [toolingDisplay](./x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplay.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptNextQueriesTagging.toolingDisplay property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
toolingDisplay: 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-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptNextQueriesTagging](./x-adapter-platform.platformrelatedpromptnextqueriestagging.md) > [toolingDisplayAdd2Cart](./x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayadd2cart.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptNextQueriesTagging.toolingDisplayAdd2Cart property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
toolingDisplayAdd2Cart: 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-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptNextQueriesTagging](./x-adapter-platform.platformrelatedpromptnextqueriestagging.md) > [toolingDisplayClick](./x-adapter-platform.platformrelatedpromptnextqueriestagging.toolingdisplayclick.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptNextQueriesTagging.toolingDisplayClick property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
toolingDisplayClick: string;
|
|
11
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptTagging](./x-adapter-platform.platformrelatedprompttagging.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptTagging interface
|
|
6
|
+
|
|
7
|
+
Related prompt model for the `platform` API.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface PlatformRelatedPromptTagging
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [nextQueries](./x-adapter-platform.platformrelatedprompttagging.nextqueries.md) | | Dictionary<[PlatformRelatedPromptNextQueriesTagging](./x-adapter-platform.platformrelatedpromptnextqueriestagging.md)<!-- -->> | |
|
|
20
|
+
| [toolingDisplay](./x-adapter-platform.platformrelatedprompttagging.toolingdisplay.md) | | string | |
|
|
21
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptTagging](./x-adapter-platform.platformrelatedprompttagging.md) > [nextQueries](./x-adapter-platform.platformrelatedprompttagging.nextqueries.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptTagging.nextQueries property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
nextQueries: Dictionary<PlatformRelatedPromptNextQueriesTagging>;
|
|
11
|
+
```
|
package/docs/API-reference/api/x-adapter-platform.platformrelatedprompttagging.toolingdisplay.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-adapter-platform](./x-adapter-platform.md) > [PlatformRelatedPromptTagging](./x-adapter-platform.platformrelatedprompttagging.md) > [toolingDisplay](./x-adapter-platform.platformrelatedprompttagging.toolingdisplay.md)
|
|
4
|
+
|
|
5
|
+
## PlatformRelatedPromptTagging.toolingDisplay property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
toolingDisplay: string;
|
|
11
|
+
```
|
|
@@ -16,6 +16,7 @@ _default: import("vue").DefineComponent<{
|
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
18
|
events: import("vue").ComputedRef<Partial<XEventsTypes>>;
|
|
19
|
+
metadata: Omit<WireMetadata, "moduleName" | "origin" | "location">;
|
|
19
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
21
|
result: {
|
|
21
22
|
type: PropType<Result>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [createTrackToolingAdd2CartWire](./x-components.createtracktoolingadd2cartwire.md)
|
|
4
|
+
|
|
5
|
+
## createTrackToolingAdd2CartWire() function
|
|
6
|
+
|
|
7
|
+
Factory helper to create a wire for the track of the tooling display click.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function createTrackToolingAdd2CartWire(): Wire<Taggable>;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
[Wire](./x-components.wire.md)<!-- --><Taggable>
|
|
17
|
+
|
|
18
|
+
A new wire for the tooling display add to cart of the taggable element.
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [createTrackToolingDisplayWire](./x-components.createtracktoolingdisplaywire.md)
|
|
4
|
+
|
|
5
|
+
## createTrackToolingDisplayWire() function
|
|
6
|
+
|
|
7
|
+
Factory helper to create a wire for the track of the tooling display click.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function createTrackToolingDisplayWire(): Wire<Taggable>;
|
|
13
|
+
```
|
|
14
|
+
**Returns:**
|
|
15
|
+
|
|
16
|
+
[Wire](./x-components.wire.md)<!-- --><Taggable>
|
|
17
|
+
|
|
18
|
+
A new wire for the tooling display click of the taggable element.
|
|
19
|
+
|
|
@@ -9,7 +9,7 @@ Indicates where the feature is placed.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type FeatureLocation = 'external' | 'my_history' | 'no_query' | 'results' | 'no_results' | 'low_results' | 'none' | 'predictive_layer' | 'pdp' | 'url_history' | 'url_history_pdp';
|
|
12
|
+
export type FeatureLocation = 'external' | 'my_history' | 'no_query' | 'results' | 'no_results' | 'low_results' | 'none' | 'predictive_layer' | 'pdp' | 'url_history' | 'url_history_pdp' | 'related-prompts';
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Example 1
|
|
@@ -175,6 +175,8 @@ _default: import("vue").DefineComponent<{
|
|
|
175
175
|
RelatedPromptsRequestUpdated: (payload: import("@empathyco/x-types").RelatedPromptsRequest | null, metadata: import("..").WireMetadata) => unknown;
|
|
176
176
|
UserSelectedARelatedPrompt: (payload: number, metadata: import("..").WireMetadata) => unknown;
|
|
177
177
|
UserSelectedARelatedPromptQuery: (payload: number, metadata: import("..").WireMetadata) => unknown;
|
|
178
|
+
UserClickedARelatedPromptResult: (payload: import("@empathyco/x-types").Result, metadata: import("..").WireMetadata) => unknown;
|
|
179
|
+
UserClickedARelatedPromptAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: import("..").WireMetadata) => unknown;
|
|
178
180
|
}>>;
|
|
179
181
|
required: true;
|
|
180
182
|
};
|
|
@@ -344,6 +346,8 @@ _default: import("vue").DefineComponent<{
|
|
|
344
346
|
RelatedPromptsRequestUpdated: (payload: import("@empathyco/x-types").RelatedPromptsRequest | null, metadata: import("..").WireMetadata) => unknown;
|
|
345
347
|
UserSelectedARelatedPrompt: (payload: number, metadata: import("..").WireMetadata) => unknown;
|
|
346
348
|
UserSelectedARelatedPromptQuery: (payload: number, metadata: import("..").WireMetadata) => unknown;
|
|
349
|
+
UserClickedARelatedPromptResult: (payload: import("@empathyco/x-types").Result, metadata: import("..").WireMetadata) => unknown;
|
|
350
|
+
UserClickedARelatedPromptAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: import("..").WireMetadata) => unknown;
|
|
347
351
|
}>>;
|
|
348
352
|
required: true;
|
|
349
353
|
};
|
|
@@ -187,6 +187,8 @@ _default: import("vue").DefineComponent<{
|
|
|
187
187
|
RelatedPromptsRequestUpdated?: import("@empathyco/x-types").RelatedPromptsRequest | null | undefined;
|
|
188
188
|
UserSelectedARelatedPrompt?: number | undefined;
|
|
189
189
|
UserSelectedARelatedPromptQuery?: number | undefined;
|
|
190
|
+
UserClickedARelatedPromptResult?: import("@empathyco/x-types").Result | undefined;
|
|
191
|
+
UserClickedARelatedPromptAdd2Cart?: import("@empathyco/x-types").Result | undefined;
|
|
190
192
|
}>;
|
|
191
193
|
innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
|
|
192
194
|
renderedChildrenFilters: import("vue").ComputedRef<HierarchicalFilterModel[]>;
|
|
@@ -36,6 +36,8 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
36
36
|
| [createSetQueryTaggingFromQueryPreview()](./x-components.createsetquerytaggingfromquerypreview.md) | Factory helper to create a wire to set the queryTagging. |
|
|
37
37
|
| [createStoreEmitters(storeModule, emitters)](./x-components.createstoreemitters.md) | Helper function for creating type-safe [StoreEmitters](./x-components.storeemitters.md)<!-- -->. |
|
|
38
38
|
| [createTrackDisplayWire(property)](./x-components.createtrackdisplaywire.md) | Factory helper to create a wire for the track of the display click. |
|
|
39
|
+
| [createTrackToolingAdd2CartWire()](./x-components.createtracktoolingadd2cartwire.md) | Factory helper to create a wire for the track of the tooling display click. |
|
|
40
|
+
| [createTrackToolingDisplayWire()](./x-components.createtracktoolingdisplaywire.md) | Factory helper to create a wire for the track of the tooling display click. |
|
|
39
41
|
| [createTrackWire(property)](./x-components.createtrackwire.md) | Factory helper to create a wire for the track of a taggable element. |
|
|
40
42
|
| [createUseDevice(devices)](./x-components.createusedevice.md) | Factory function that creates a composable for device detection using the devices parameter to configure breakpoints. |
|
|
41
43
|
| [createWireFromFunction(fn)](./x-components.createwirefromfunction.md) | Creates a wire that executes the function passed. This function will receive a [WireParams](./x-components.wireparams.md) object. |
|
|
@@ -250,6 +252,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
250
252
|
| [TaggingXEvents](./x-components.taggingxevents.md) | Dictionary of the events of Tagging 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. |
|
|
251
253
|
| [ThrottleFunction](./x-components.throttlefunction.md) | The type returned by the [throttle()](./x-components.throttle.md) function. Basically is the function the [throttle()](./x-components.throttle.md) receives but throttled. |
|
|
252
254
|
| [TimedWireOperatorOptions](./x-components.timedwireoperatoroptions.md) | Options for wire operators that delay subscribers. |
|
|
255
|
+
| [TypingOptions](./x-components.typingoptions.md) | TypingOptions interface. |
|
|
253
256
|
| [UrlActions](./x-components.urlactions.md) | URL store actions. |
|
|
254
257
|
| [UrlGetters](./x-components.urlgetters.md) | URL store getters. |
|
|
255
258
|
| [UrlMutations](./x-components.urlmutations.md) | URL store mutations. |
|
|
@@ -485,10 +488,10 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
485
488
|
| [Redirection](./x-components.redirection.md) | A redirection is a component that sends the user to a link in the website. It is helpful when there are queries like <code>help</code>, <code>shipping costs</code>, <code>my account</code>, where a link to a section in the website will be more helpful than the set of results returned. |
|
|
486
489
|
| [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)<!-- -->. |
|
|
487
490
|
| [refreshSession](./x-components.refreshsession.md) | Default implementation for the [HistoryQueriesActions.refreshSession()](./x-components.historyqueriesactions.refreshsession.md)<!-- -->. |
|
|
488
|
-
| [RelatedPrompt](./x-components.relatedprompt.md) |
|
|
491
|
+
| [RelatedPrompt](./x-components.relatedprompt.md) | This component shows a suggested related prompt. |
|
|
489
492
|
| [relatedPromptRequest](./x-components.relatedpromptrequest.md) | Default implementation for the [RelatedPromptsGetters.request](./x-components.relatedpromptsgetters.request.md) getter. |
|
|
490
493
|
| [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. |
|
|
491
|
-
| [RelatedPromptsTagList](./x-components.relatedpromptstaglist.md) |
|
|
494
|
+
| [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> |
|
|
492
495
|
| [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. |
|
|
493
496
|
| [RelatedTag](./x-components.relatedtag.md) | This component renders a related tag for a query. A related tag is a descriptive keyword related to the current query to fine-tune the search. For example, if you are searching for \*lego\*, a related tag could be \*city\*, refining the search with \*lego city\*. |
|
|
494
497
|
| [relatedTags](./x-components.relatedtags.md) | Default implementation for the [RelatedTagsGetters.relatedTags](./x-components.relatedtagsgetters.relatedtags.md) getter. |
|
|
@@ -644,6 +647,8 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
644
647
|
| [trackNoResultsQueryWithSemanticsWireDebounced](./x-components.tracknoresultsquerywithsemanticswiredebounced.md) | . Debounced version of [trackNoResultsQueryWithSemanticsWire](./x-components.tracknoresultsquerywithsemanticswire.md) |
|
|
645
648
|
| [trackQueryWire](./x-components.trackquerywire.md) | Tracks the tagging of the query. |
|
|
646
649
|
| [trackResultClickedWire](./x-components.trackresultclickedwire.md) | Tracks the tagging of the result. |
|
|
650
|
+
| [trackToolingAdd2CartWire](./x-components.tracktoolingadd2cartwire.md) | Performs a track of a display result being clicked. |
|
|
651
|
+
| [trackToolingDisplayClickedWire](./x-components.tracktoolingdisplayclickedwire.md) | Performs a track of a display result being clicked. |
|
|
647
652
|
| [updateHistoryQueriesWithSearchResponse](./x-components.updatehistoryquerieswithsearchresponse.md) | Updates the history queries with the relevant info included in a search response. |
|
|
648
653
|
| [UrlHandler](./x-components.urlhandler.md) | This component manages the browser URL parameters to preserve them through reloads and browser history navigation. It allow to configure the default url parameter names using its attributes. This component doesn't render elements to the DOM. |
|
|
649
654
|
| [urlXModule](./x-components.urlxmodule.md) | URL [XModule](./x-components.xmodule.md) implementation. This module is auto-registered as soon as you import any component from the <code>url</code> entry point. |
|
|
@@ -9,5 +9,5 @@ The name of the tool that generated the query.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck' | 'customer' | 'semantics';
|
|
12
|
+
export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck' | 'customer' | 'semantics' | 'related-prompts';
|
|
13
13
|
```
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
This component shows a suggested related prompt.
|
|
8
8
|
|
|
9
|
-
It provides a slot to customize the related prompt button information.
|
|
10
|
-
|
|
11
9
|
**Signature:**
|
|
12
10
|
|
|
13
11
|
```typescript
|
|
@@ -16,39 +14,20 @@ _default: import("vue").DefineComponent<{
|
|
|
16
14
|
type: PropType<RelatedPrompt>;
|
|
17
15
|
required: true;
|
|
18
16
|
};
|
|
19
|
-
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
isSelected: {
|
|
17
|
+
selected: {
|
|
24
18
|
type: BooleanConstructor;
|
|
25
19
|
default: boolean;
|
|
26
20
|
};
|
|
27
|
-
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
toggleSuggestion: (index: number) => void;
|
|
33
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
22
|
relatedPrompt: {
|
|
35
23
|
type: PropType<RelatedPrompt>;
|
|
36
24
|
required: true;
|
|
37
25
|
};
|
|
38
|
-
|
|
26
|
+
selected: {
|
|
39
27
|
type: BooleanConstructor;
|
|
40
28
|
default: boolean;
|
|
41
29
|
};
|
|
42
|
-
isSelected: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
index: {
|
|
47
|
-
type: NumberConstructor;
|
|
48
|
-
required: true;
|
|
49
|
-
};
|
|
50
30
|
}>>, {
|
|
51
|
-
|
|
52
|
-
isSelected: boolean;
|
|
31
|
+
selected: boolean;
|
|
53
32
|
}, {}>
|
|
54
33
|
```
|
|
@@ -4,19 +4,53 @@
|
|
|
4
4
|
|
|
5
5
|
## RelatedPromptsTagList variable
|
|
6
6
|
|
|
7
|
+
This component shows the list of `RelatedPrompts` components.
|
|
8
|
+
|
|
9
|
+
If the default slot is reimplemented in the consumer, `onSelect` function will be necessary to handle the selection of the related prompt and to trigger the stagger-fade-slide animation.
|
|
10
|
+
|
|
7
11
|
**Signature:**
|
|
8
12
|
|
|
9
13
|
```typescript
|
|
10
14
|
_default: import("vue").DefineComponent<{
|
|
11
15
|
buttonClass: StringConstructor;
|
|
16
|
+
tagClass: StringConstructor;
|
|
17
|
+
tagColors: PropType<string[]>;
|
|
18
|
+
animationDurationInMs: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
12
22
|
}, {
|
|
13
|
-
arePromptsVisible: import("vue").Ref<boolean>;
|
|
14
|
-
hidePrompt: (index: number) => boolean;
|
|
15
23
|
isSelected: (index: number) => boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
onSelect: (selectedIndex: number) => void;
|
|
25
|
+
onBeforeEnter: (el: Element) => void;
|
|
26
|
+
onEnter: (el: Element, done: () => void) => void;
|
|
27
|
+
onLeave: (el: Element, done: () => void) => void;
|
|
28
|
+
selectedPromptIndex: import("vue").ComputedRef<any>;
|
|
29
|
+
visibleRelatedPrompts: import("vue").ComputedRef<{
|
|
30
|
+
index: number;
|
|
31
|
+
relatedPromptNextQueries: import("@empathyco/x-types").RelatedPromptNextQuery[];
|
|
32
|
+
suggestionText: string;
|
|
33
|
+
type: string;
|
|
34
|
+
toolingDisplayTagging: import("@empathyco/x-types").TaggingRequest;
|
|
35
|
+
modelName: "RelatedPrompt";
|
|
36
|
+
}[]>;
|
|
37
|
+
listItems: import("vue").Ref<HTMLElement[]>;
|
|
38
|
+
isAnimating: import("vue").Ref<boolean>;
|
|
39
|
+
x: import("../../../composables").UseAliasAPI & {
|
|
40
|
+
on: <Event_1 extends keyof import("../../..").XEventsTypes, Metadata extends boolean>(event: Event_1, withMetadata: Metadata) => {
|
|
41
|
+
subscribe: (callback: (payload: Metadata extends true ? import("@empathyco/x-bus").SubjectPayload<import("@empathyco/x-bus").EventPayload<import("../../..").XEventsTypes, Event_1>, import("../../..").WireMetadata> : import("@empathyco/x-bus").EventPayload<import("../../..").XEventsTypes, Event_1>) => void) => void;
|
|
42
|
+
};
|
|
43
|
+
emit: <Event_2 extends keyof import("../../..").XEventsTypes>(event: Event_2, payload?: import("../../..").XEventPayload<Event_2> | undefined, metadata?: Omit<import("../../..").WireMetadata, "moduleName">) => Promise<import("@empathyco/x-bus").EmittedData<import("../../..").XEventsTypes, Event_2, import("../../..").WireMetadata>>;
|
|
44
|
+
};
|
|
19
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
46
|
buttonClass: StringConstructor;
|
|
21
|
-
|
|
47
|
+
tagClass: StringConstructor;
|
|
48
|
+
tagColors: PropType<string[]>;
|
|
49
|
+
animationDurationInMs: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
animationDurationInMs: number;
|
|
55
|
+
}, {}>
|
|
22
56
|
```
|
|
@@ -17,6 +17,8 @@ export interface RelatedPromptsXEvents
|
|
|
17
17
|
| Property | Modifiers | Type | Description |
|
|
18
18
|
| --- | --- | --- | --- |
|
|
19
19
|
| [RelatedPromptsRequestUpdated](./x-components.relatedpromptsxevents.relatedpromptsrequestupdated.md) | | RelatedPromptsRequest \| null | Any property of the related-prompts request has changed Payload: The new related-prompts request or <code>null</code> if there is not enough data in the state to conform a valid request. |
|
|
20
|
+
| [UserClickedARelatedPromptAdd2Cart](./x-components.relatedpromptsxevents.userclickedarelatedpromptadd2cart.md) | | Result | The user has clicked one add to cart from a prompt. Payload: The result that the user clicked. |
|
|
21
|
+
| [UserClickedARelatedPromptResult](./x-components.relatedpromptsxevents.userclickedarelatedpromptresult.md) | | Result | The user has clicked one prompt. Payload: The result that the user clicked. |
|
|
20
22
|
| [UserSelectedARelatedPrompt](./x-components.relatedpromptsxevents.userselectedarelatedprompt.md) | | number | The selected prompt has changed. Payload: The index of the prompt in the RelatedPrompts list or -1 to remove selection. |
|
|
21
23
|
| [UserSelectedARelatedPromptQuery](./x-components.relatedpromptsxevents.userselectedarelatedpromptquery.md) | | number | The selected next query of the selected prompt has changed. Payload: The index of the next query in the NextQueries list or -1 to remove selection. |
|
|
22
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) > [RelatedPromptsXEvents](./x-components.relatedpromptsxevents.md) > [UserClickedARelatedPromptAdd2Cart](./x-components.relatedpromptsxevents.userclickedarelatedpromptadd2cart.md)
|
|
4
|
+
|
|
5
|
+
## RelatedPromptsXEvents.UserClickedARelatedPromptAdd2Cart property
|
|
6
|
+
|
|
7
|
+
The user has clicked one add to cart from a prompt. Payload: The result that the user clicked.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
UserClickedARelatedPromptAdd2Cart: Result;
|
|
13
|
+
```
|
package/docs/API-reference/api/x-components.relatedpromptsxevents.userclickedarelatedpromptresult.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) > [RelatedPromptsXEvents](./x-components.relatedpromptsxevents.md) > [UserClickedARelatedPromptResult](./x-components.relatedpromptsxevents.userclickedarelatedpromptresult.md)
|
|
4
|
+
|
|
5
|
+
## RelatedPromptsXEvents.UserClickedARelatedPromptResult property
|
|
6
|
+
|
|
7
|
+
The user has clicked one prompt. Payload: The result that the user clicked.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
UserClickedARelatedPromptResult: Result;
|
|
13
|
+
```
|
|
@@ -184,6 +184,8 @@ _default: import("vue").DefineComponent<{
|
|
|
184
184
|
RelatedPromptsRequestUpdated?: import("@empathyco/x-types").RelatedPromptsRequest | null | undefined;
|
|
185
185
|
UserSelectedARelatedPrompt?: number | undefined;
|
|
186
186
|
UserSelectedARelatedPromptQuery?: number | undefined;
|
|
187
|
+
UserClickedARelatedPromptResult?: import("@empathyco/x-types").Result | undefined;
|
|
188
|
+
UserClickedARelatedPromptAdd2Cart?: import("@empathyco/x-types").Result | undefined;
|
|
187
189
|
}>;
|
|
188
190
|
innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
|
|
189
191
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -174,6 +174,8 @@ _default: import("vue").DefineComponent<{}, {
|
|
|
174
174
|
RelatedPromptsRequestUpdated: (payload: import("@empathyco/x-types").RelatedPromptsRequest | null, metadata: WireMetadata) => unknown;
|
|
175
175
|
UserSelectedARelatedPrompt: (payload: number, metadata: WireMetadata) => unknown;
|
|
176
176
|
UserSelectedARelatedPromptQuery: (payload: number, metadata: WireMetadata) => unknown;
|
|
177
|
+
UserClickedARelatedPromptResult: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
|
|
178
|
+
UserClickedARelatedPromptAdd2Cart: (payload: import("@empathyco/x-types").Result, metadata: WireMetadata) => unknown;
|
|
177
179
|
}>>;
|
|
178
180
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>
|
|
179
181
|
```
|
|
@@ -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) > [trackToolingAdd2CartWire](./x-components.tracktoolingadd2cartwire.md)
|
|
4
|
+
|
|
5
|
+
## trackToolingAdd2CartWire variable
|
|
6
|
+
|
|
7
|
+
Performs a track of a display result being clicked.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
trackToolingAdd2CartWire: Wire<Taggable>
|
|
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) > [trackToolingDisplayClickedWire](./x-components.tracktoolingdisplayclickedwire.md)
|
|
4
|
+
|
|
5
|
+
## trackToolingDisplayClickedWire variable
|
|
6
|
+
|
|
7
|
+
Performs a track of a display result being clicked.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
trackToolingDisplayClickedWire: Wire<Taggable>
|
|
13
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [TypingOptions](./x-components.typingoptions.md)
|
|
4
|
+
|
|
5
|
+
## TypingOptions interface
|
|
6
|
+
|
|
7
|
+
TypingOptions interface.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface TypingOptions
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [speed?](./x-components.typingoptions.speed.md) | | number | _(Optional)_ The typing speed in milliseconds per character. |
|
|
20
|
+
| [targetAttr?](./x-components.typingoptions.targetattr.md) | | string | _(Optional)_ The attribute of the HTML element where the typed text will be placed. If not specified, the text will be set as content (innerHTML). |
|
|
21
|
+
| [text](./x-components.typingoptions.text.md) | | string | The text (plain or html) that will be typed into the target element. |
|
|
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) > [TypingOptions](./x-components.typingoptions.md) > [speed](./x-components.typingoptions.speed.md)
|
|
4
|
+
|
|
5
|
+
## TypingOptions.speed property
|
|
6
|
+
|
|
7
|
+
The typing speed in milliseconds per character.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
speed?: number;
|
|
13
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [TypingOptions](./x-components.typingoptions.md) > [targetAttr](./x-components.typingoptions.targetattr.md)
|
|
4
|
+
|
|
5
|
+
## TypingOptions.targetAttr property
|
|
6
|
+
|
|
7
|
+
The attribute of the HTML element where the typed text will be placed. If not specified, the text will be set as content (innerHTML).
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
targetAttr?: string;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
'placeholder'
|
|
18
|
+
|
|
@@ -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) > [TypingOptions](./x-components.typingoptions.md) > [text](./x-components.typingoptions.text.md)
|
|
4
|
+
|
|
5
|
+
## TypingOptions.text property
|
|
6
|
+
|
|
7
|
+
The text (plain or html) that will be typed into the target element.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
text: string;
|
|
13
|
+
```
|
|
@@ -70,6 +70,7 @@ Entry point to export search-type models and testing schemas in a unified api-ex
|
|
|
70
70
|
| [RecommendationsResponse](./x-types.recommendationsresponse.md) | Response for the recommendations endpoint. |
|
|
71
71
|
| [Redirection](./x-types.redirection.md) | A redirection (AKA Direct Link) is simply a URL. Normally, the user is just redirected to it after making a query that matches the configuration of this URL. In other cases it is shown as a button that the user can click, and which will trigger the redirect action. |
|
|
72
72
|
| [RelatedPrompt](./x-types.relatedprompt.md) | Represents a related prompt. |
|
|
73
|
+
| [RelatedPromptNextQuery](./x-types.relatedpromptnextquery.md) | Represents a related prompt nextQuery. |
|
|
73
74
|
| [RelatedPromptsRequest](./x-types.relatedpromptsrequest.md) | Request for Related Prompts endpoint. |
|
|
74
75
|
| [RelatedPromptsResponse](./x-types.relatedpromptsresponse.md) | Response for the related prompts endpoint. |
|
|
75
76
|
| [RelatedTag](./x-types.relatedtag.md) | A related tag is just a term that refines the current query. |
|
|
@@ -17,7 +17,8 @@ export interface RelatedPrompt extends NamedModel<'RelatedPrompt'>
|
|
|
17
17
|
|
|
18
18
|
| Property | Modifiers | Type | Description |
|
|
19
19
|
| --- | --- | --- | --- |
|
|
20
|
-
| [
|
|
20
|
+
| [relatedPromptNextQueries](./x-types.relatedprompt.relatedpromptnextqueries.md) | | [RelatedPromptNextQuery](./x-types.relatedpromptnextquery.md)<!-- -->\[\] | The next queries related to the prompt. |
|
|
21
21
|
| [suggestionText](./x-types.relatedprompt.suggestiontext.md) | | string | The prompt. |
|
|
22
|
+
| [toolingDisplayTagging](./x-types.relatedprompt.toolingdisplaytagging.md) | | [TaggingRequest](./x-types.taggingrequest.md) | The tooling display tagging of the prompt. |
|
|
22
23
|
| [type](./x-types.relatedprompt.type.md) | | string | The type of the prompt. |
|
|
23
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-types](./x-types.md) > [RelatedPrompt](./x-types.relatedprompt.md) > [relatedPromptNextQueries](./x-types.relatedprompt.relatedpromptnextqueries.md)
|
|
4
|
+
|
|
5
|
+
## RelatedPrompt.relatedPromptNextQueries property
|
|
6
|
+
|
|
7
|
+
The next queries related to the prompt.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
relatedPromptNextQueries: RelatedPromptNextQuery[];
|
|
13
|
+
```
|