@empathyco/x-components 3.0.0-alpha.153 → 3.0.0-alpha.154
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 +13 -0
- package/docs/API-reference/api/x-components.md +1 -0
- package/docs/API-reference/api/x-components.querypreview.md +21 -0
- package/docs/API-reference/api/x-components.querypreview.query.md +13 -0
- package/docs/API-reference/api/x-components.querypreview.title.md +13 -0
- package/docs/API-reference/api/x-components.snippetconfig.md +1 -0
- package/docs/API-reference/api/x-components.snippetconfig.queriespreview.md +13 -0
- package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +4 -4
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue_script.vue.js +5 -4
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +142 -1
- package/report/x-components.api.md +9 -1
- package/types/x-installer/api/api.types.d.ts +16 -1
- package/types/x-installer/api/api.types.d.ts.map +1 -1
- package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.154](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.153...@empathyco/x-components@3.0.0-alpha.154) (2022-08-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add `queriesPreview` option to snippet config (#654)
|
|
11
|
+
([7733c98](https://github.com/empathyco/x/commit/7733c9856b2859574ca0cace9c79b8b58545f46a)),
|
|
12
|
+
closes [EX-6849](https://searchbroker.atlassian.net/browse/EX-6849)
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
6
19
|
## [3.0.0-alpha.153](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.152...@empathyco/x-components@3.0.0-alpha.153) (2022-08-10)
|
|
7
20
|
|
|
8
21
|
### Features
|
|
@@ -272,6 +272,7 @@ X-Components is a library usable everywhere not only for search experiences.
|
|
|
272
272
|
| [PopularSearchesState](./x-components.popularsearchesstate.md) | Popular searches module state. |
|
|
273
273
|
| [PopularSearchesXEvents](./x-components.popularsearchesxevents.md) | Dictionary of the events of PopularSearches XModule, where each key is the event name, and the value is the event payload type or <code>void</code> if it has no payload. |
|
|
274
274
|
| [PrivateXModuleOptions](./x-components.privatexmoduleoptions.md) | Options for overriding the default store module and store emitters for a [XModule](./x-components.xmodule.md)<!-- -->. |
|
|
275
|
+
| [QueryPreview](./x-components.querypreview.md) | Information to render a query preview with. |
|
|
275
276
|
| [QuerySuggestionsActions](./x-components.querysuggestionsactions.md) | QuerySuggestions store actions. |
|
|
276
277
|
| [QuerySuggestionsConfig](./x-components.querysuggestionsconfig.md) | Configuration options for the [QuerySuggestionsXModule](./x-components.querysuggestionsxmodule.md)<!-- -->. |
|
|
277
278
|
| [QuerySuggestionsGetters](./x-components.querysuggestionsgetters.md) | QuerySuggestions store getters. |
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueryPreview](./x-components.querypreview.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreview interface
|
|
6
|
+
|
|
7
|
+
Information to render a query preview with.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface QueryPreview
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| [query](./x-components.querypreview.query.md) | string | The query to search for. |
|
|
20
|
+
| [title?](./x-components.querypreview.title.md) | string | <i>(Optional)</i> An optional title for the container. |
|
|
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) > [QueryPreview](./x-components.querypreview.md) > [query](./x-components.querypreview.query.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreview.query property
|
|
6
|
+
|
|
7
|
+
The query to search for.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
query: string;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [QueryPreview](./x-components.querypreview.md) > [title](./x-components.querypreview.title.md)
|
|
4
|
+
|
|
5
|
+
## QueryPreview.title property
|
|
6
|
+
|
|
7
|
+
An optional title for the container.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
title?: string;
|
|
13
|
+
```
|
|
@@ -26,6 +26,7 @@ export interface SnippetConfig
|
|
|
26
26
|
| [isSpa?](./x-components.snippetconfig.isspa.md) | boolean | <i>(Optional)</i> Flag determining if the page is a single page application or not. |
|
|
27
27
|
| [lang](./x-components.snippetconfig.lang.md) | string | Language to display. |
|
|
28
28
|
| [productId?](./x-components.snippetconfig.productid.md) | string | <i>(Optional)</i> The id for the current product when product page is loaded. |
|
|
29
|
+
| [queriesPreview?](./x-components.snippetconfig.queriespreview.md) | [QueryPreview](./x-components.querypreview.md)<!-- -->\[\] | <i>(Optional)</i> List of queries to preview. |
|
|
29
30
|
| [scope](./x-components.snippetconfig.scope.md) | string | Execution scope (desktop, mobile, app, ...). |
|
|
30
31
|
| [searchLang?](./x-components.snippetconfig.searchlang.md) | string | <i>(Optional)</i> Language to send to backend services. |
|
|
31
32
|
|
|
@@ -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) > [SnippetConfig](./x-components.snippetconfig.md) > [queriesPreview](./x-components.snippetconfig.queriespreview.md)
|
|
4
|
+
|
|
5
|
+
## SnippetConfig.queriesPreview property
|
|
6
|
+
|
|
7
|
+
List of queries to preview.
|
|
8
|
+
|
|
9
|
+
<b>Signature:</b>
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
queriesPreview?: QueryPreview[];
|
|
13
|
+
```
|
package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md
CHANGED
|
@@ -11,10 +11,10 @@ objects of every x-module.
|
|
|
11
11
|
|
|
12
12
|
## Props
|
|
13
13
|
|
|
14
|
-
| Name | Description | Type | Default
|
|
15
|
-
| -------------------------------- | ---------------------------------------------------------------------------------------------- | ----------------------- |
|
|
16
|
-
| <code>values</code> | A Dictionary where the keys are the extra param names and its values. | <code>Dictionary</code> | <code></code>
|
|
17
|
-
| <code>excludedExtraParams</code> | Collection of properties from the snippet config to exclude from the<br />extra params object. | <code>Array</code> | <code>(): Array<keyof SnippetConfig> => [<br /> 'callbacks',<br /> 'productId',<br /> 'searchLang',<br /> 'consent',<br /> 'documentDirection',<br /> 'currency',<br /> 'filters'<br />]</code> |
|
|
14
|
+
| Name | Description | Type | Default |
|
|
15
|
+
| -------------------------------- | ---------------------------------------------------------------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| <code>values</code> | A Dictionary where the keys are the extra param names and its values. | <code>Dictionary</code> | <code></code> |
|
|
17
|
+
| <code>excludedExtraParams</code> | Collection of properties from the snippet config to exclude from the<br />extra params object. | <code>Array</code> | <code>(): Array<keyof SnippetConfig> => [<br /> 'callbacks',<br /> 'productId',<br /> 'searchLang',<br /> 'consent',<br /> 'documentDirection',<br /> 'currency',<br /> 'filters',<br /> 'isSpa',<br /> 'queriesPreview'<br />]</code> |
|
|
18
18
|
|
|
19
19
|
## See it in action
|
|
20
20
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippet-config-extra-params.vue.js","sources":["../../../../../src/x-modules/extra-params/components/snippet-config-extra-params.vue"],"sourcesContent":["<template>\n <ExtraParams :values=\"extraParams\" />\n</template>\n\n<script lang=\"ts\">\n import { forEach, Dictionary } from '@empathyco/x-utils';\n import Vue from 'vue';\n import { Component, Watch, Inject, Prop } from 'vue-property-decorator';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { SnippetConfig } from '../../../x-installer/api/api.types';\n import { extraParamsXModule } from '../x-module';\n import ExtraParams from './extra-params.vue';\n\n /**\n * Extracts the extra parameters from the {@link SnippetConfig} and syncs it with the request\n * objects of every x-module.\n *\n * @public\n */\n @Component({\n components: { ExtraParams },\n mixins: [xComponentMixin(extraParamsXModule)]\n })\n export default class SnippetConfigExtraParams extends Vue {\n /**\n * It injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n *\n * @internal\n */\n @Inject('snippetConfig')\n public snippetConfig!: SnippetConfig;\n\n /**\n * A Dictionary where the keys are the extra param names and its values.\n *\n * @public\n */\n @Prop()\n protected values?: Dictionary<unknown>;\n\n /**\n * Custom object containing the extra params from the snippet config.\n *\n * @remarks This object keeps manually the desired snippet config properties to avoid\n * unnecessary re-renders.\n *\n * @internal\n */\n protected extraParams: Dictionary<unknown> = {};\n\n /**\n * Collection of properties from the snippet config to exclude from the\n * extra params object.\n *\n * @public\n */\n @Prop({\n default: (): Array<keyof SnippetConfig> => [\n 'callbacks',\n 'productId',\n 'searchLang',\n 'consent',\n 'documentDirection',\n 'currency',\n 'filters'\n ]\n })\n protected excludedExtraParams!: Array<keyof SnippetConfig>;\n\n /**\n * Updates the extraParams object when the snippet config changes.\n *\n * @param snippetConfig - The new snippet config.\n *\n * @internal\n */\n @Watch('snippetConfig', { deep: true, immediate: true })\n syncExtraParams(snippetConfig: SnippetConfig): void {\n forEach({ ...this.values, ...snippetConfig }, (name, value) => {\n if (this.excludedExtraParams.includes(name)) {\n
|
|
1
|
+
{"version":3,"file":"snippet-config-extra-params.vue.js","sources":["../../../../../src/x-modules/extra-params/components/snippet-config-extra-params.vue"],"sourcesContent":["<template>\n <ExtraParams :values=\"extraParams\" />\n</template>\n\n<script lang=\"ts\">\n import { forEach, Dictionary } from '@empathyco/x-utils';\n import Vue from 'vue';\n import { Component, Watch, Inject, Prop } from 'vue-property-decorator';\n import { xComponentMixin } from '../../../components/x-component.mixin';\n import { SnippetConfig } from '../../../x-installer/api/api.types';\n import { extraParamsXModule } from '../x-module';\n import ExtraParams from './extra-params.vue';\n\n /**\n * Extracts the extra parameters from the {@link SnippetConfig} and syncs it with the request\n * objects of every x-module.\n *\n * @public\n */\n @Component({\n components: { ExtraParams },\n mixins: [xComponentMixin(extraParamsXModule)]\n })\n export default class SnippetConfigExtraParams extends Vue {\n /**\n * It injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n *\n * @internal\n */\n @Inject('snippetConfig')\n public snippetConfig!: SnippetConfig;\n\n /**\n * A Dictionary where the keys are the extra param names and its values.\n *\n * @public\n */\n @Prop()\n protected values?: Dictionary<unknown>;\n\n /**\n * Custom object containing the extra params from the snippet config.\n *\n * @remarks This object keeps manually the desired snippet config properties to avoid\n * unnecessary re-renders.\n *\n * @internal\n */\n protected extraParams: Dictionary<unknown> = {};\n\n /**\n * Collection of properties from the snippet config to exclude from the\n * extra params object.\n *\n * @public\n */\n @Prop({\n default: (): Array<keyof SnippetConfig> => [\n 'callbacks',\n 'productId',\n 'searchLang',\n 'consent',\n 'documentDirection',\n 'currency',\n 'filters',\n 'isSpa',\n 'queriesPreview'\n ]\n })\n protected excludedExtraParams!: Array<keyof SnippetConfig>;\n\n /**\n * Updates the extraParams object when the snippet config changes.\n *\n * @param snippetConfig - The new snippet config.\n *\n * @internal\n */\n @Watch('snippetConfig', { deep: true, immediate: true })\n syncExtraParams(snippetConfig: SnippetConfig): void {\n forEach({ ...this.values, ...snippetConfig }, (name, value) => {\n if (!this.excludedExtraParams.includes(name)) {\n this.$set(this.extraParams, name, value);\n }\n });\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## See it in action\n\n_See how the snippet config is injected and passed to the SnippetConfigExtraParams component._\n\n```vue\n<template>\n <Provider>\n <SnippetConfigExtraParams />\n </Provider>\n</template>\n\n<script>\n import { SnippetConfigExtraParams } from '@empathyco/x-components/extra-params';\n\n const Provider = {\n provide: {\n snippetConfig: {\n instance: 'demo',\n lang: 'es',\n warehouse: 1234\n }\n }\n };\n\n export default {\n name: 'SnippetConfigExtraParamsDemo',\n components: {\n Provider,\n SnippetConfigExtraParams\n }\n };\n</script>\n```\n</docs>\n"],"names":[],"mappings":";;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -34,10 +34,9 @@ let SnippetConfigExtraParams = class SnippetConfigExtraParams extends Vue {
|
|
|
34
34
|
*/
|
|
35
35
|
syncExtraParams(snippetConfig) {
|
|
36
36
|
forEach({ ...this.values, ...snippetConfig }, (name, value) => {
|
|
37
|
-
if (this.excludedExtraParams.includes(name)) {
|
|
38
|
-
|
|
37
|
+
if (!this.excludedExtraParams.includes(name)) {
|
|
38
|
+
this.$set(this.extraParams, name, value);
|
|
39
39
|
}
|
|
40
|
-
this.$set(this.extraParams, name, value);
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
};
|
|
@@ -56,7 +55,9 @@ __decorate([
|
|
|
56
55
|
'consent',
|
|
57
56
|
'documentDirection',
|
|
58
57
|
'currency',
|
|
59
|
-
'filters'
|
|
58
|
+
'filters',
|
|
59
|
+
'isSpa',
|
|
60
|
+
'queriesPreview'
|
|
60
61
|
]
|
|
61
62
|
})
|
|
62
63
|
], SnippetConfigExtraParams.prototype, "excludedExtraParams", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snippet-config-extra-params.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../../src/x-modules/extra-params/components/snippet-config-extra-params.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\nimport { forEach, Dictionary } from '@empathyco/x-utils';\nimport Vue from 'vue';\nimport { Component, Watch, Inject, Prop } from 'vue-property-decorator';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { SnippetConfig } from '../../../x-installer/api/api.types';\nimport { extraParamsXModule } from '../x-module';\nimport ExtraParams from './extra-params.vue';\n\n/**\n * Extracts the extra parameters from the {@link SnippetConfig} and syncs it with the request\n * objects of every x-module.\n *\n * @public\n */\n@Component({\n components: { ExtraParams },\n mixins: [xComponentMixin(extraParamsXModule)]\n})\nexport default class SnippetConfigExtraParams extends Vue {\n /**\n * It injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n *\n * @internal\n */\n @Inject('snippetConfig')\n public snippetConfig!: SnippetConfig;\n\n /**\n * A Dictionary where the keys are the extra param names and its values.\n *\n * @public\n */\n @Prop()\n protected values?: Dictionary<unknown>;\n\n /**\n * Custom object containing the extra params from the snippet config.\n *\n * @remarks This object keeps manually the desired snippet config properties to avoid\n * unnecessary re-renders.\n *\n * @internal\n */\n protected extraParams: Dictionary<unknown> = {};\n\n /**\n * Collection of properties from the snippet config to exclude from the\n * extra params object.\n *\n * @public\n */\n @Prop({\n default: (): Array<keyof SnippetConfig> => [\n 'callbacks',\n 'productId',\n 'searchLang',\n 'consent',\n 'documentDirection',\n 'currency',\n 'filters'\n ]\n })\n protected excludedExtraParams!: Array<keyof SnippetConfig>;\n\n /**\n * Updates the extraParams object when the snippet config changes.\n *\n * @param snippetConfig - The new snippet config.\n *\n * @internal\n */\n @Watch('snippetConfig', { deep: true, immediate: true })\n syncExtraParams(snippetConfig: SnippetConfig): void {\n forEach({ ...this.values, ...snippetConfig }, (name, value) => {\n if (this.excludedExtraParams.includes(name)) {\n
|
|
1
|
+
{"version":3,"file":"snippet-config-extra-params.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../../src/x-modules/extra-params/components/snippet-config-extra-params.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\nimport { forEach, Dictionary } from '@empathyco/x-utils';\nimport Vue from 'vue';\nimport { Component, Watch, Inject, Prop } from 'vue-property-decorator';\nimport { xComponentMixin } from '../../../components/x-component.mixin';\nimport { SnippetConfig } from '../../../x-installer/api/api.types';\nimport { extraParamsXModule } from '../x-module';\nimport ExtraParams from './extra-params.vue';\n\n/**\n * Extracts the extra parameters from the {@link SnippetConfig} and syncs it with the request\n * objects of every x-module.\n *\n * @public\n */\n@Component({\n components: { ExtraParams },\n mixins: [xComponentMixin(extraParamsXModule)]\n})\nexport default class SnippetConfigExtraParams extends Vue {\n /**\n * It injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n *\n * @internal\n */\n @Inject('snippetConfig')\n public snippetConfig!: SnippetConfig;\n\n /**\n * A Dictionary where the keys are the extra param names and its values.\n *\n * @public\n */\n @Prop()\n protected values?: Dictionary<unknown>;\n\n /**\n * Custom object containing the extra params from the snippet config.\n *\n * @remarks This object keeps manually the desired snippet config properties to avoid\n * unnecessary re-renders.\n *\n * @internal\n */\n protected extraParams: Dictionary<unknown> = {};\n\n /**\n * Collection of properties from the snippet config to exclude from the\n * extra params object.\n *\n * @public\n */\n @Prop({\n default: (): Array<keyof SnippetConfig> => [\n 'callbacks',\n 'productId',\n 'searchLang',\n 'consent',\n 'documentDirection',\n 'currency',\n 'filters',\n 'isSpa',\n 'queriesPreview'\n ]\n })\n protected excludedExtraParams!: Array<keyof SnippetConfig>;\n\n /**\n * Updates the extraParams object when the snippet config changes.\n *\n * @param snippetConfig - The new snippet config.\n *\n * @internal\n */\n @Watch('snippetConfig', { deep: true, immediate: true })\n syncExtraParams(snippetConfig: SnippetConfig): void {\n forEach({ ...this.values, ...snippetConfig }, (name, value) => {\n if (!this.excludedExtraParams.includes(name)) {\n this.$set(this.extraParams, name, value);\n }\n });\n }\n}\n"],"names":["ExtraParams"],"mappings":";;;;;;;;AAaA;;;;;;AAUA,IAAqB,wBAAwB,GAA7C,MAAqB,wBAAyB,SAAQ,GAAG;IAAzD;;;;;;;;;;QAyBY,gBAAW,GAAwB,EAAE,CAAC;KAsCjD;;;;;;;;IAPC,eAAe,CAAC,aAA4B;QAC1C,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,aAAa,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK;YACxD,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;gBAC5C,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;aAC1C;SACF,CAAC,CAAC;KACJ;CACF,CAAA;AAxDC;IADC,MAAM,CAAC,eAAe,CAAC;+DACa;AAQrC;IADC,IAAI,EAAE;wDACgC;AA+BvC;IAbC,IAAI,CAAC;QACJ,OAAO,EAAE,MAAkC;YACzC,WAAW;YACX,WAAW;YACX,YAAY;YACZ,SAAS;YACT,mBAAmB;YACnB,UAAU;YACV,SAAS;YACT,OAAO;YACP,gBAAgB;SACjB;KACF,CAAC;qEACyD;AAU3D;IADC,KAAK,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;+DAOvD;AA9DkB,wBAAwB;IAJ5C,SAAS,CAAC;QACT,UAAU,EAAE,eAAEA,iBAAW,EAAE;QAC3B,MAAM,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAAC;KAC9C,CAAC;GACmB,wBAAwB,CA+D5C;aA/DoB,wBAAwB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empathyco/x-components",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.154",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"access": "public",
|
|
126
126
|
"directory": "dist"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "2b7cac6055cfecd1d120bb541e2b4fda0494b2cd"
|
|
129
129
|
}
|
|
@@ -30539,6 +30539,116 @@
|
|
|
30539
30539
|
"endIndex": 7
|
|
30540
30540
|
}
|
|
30541
30541
|
},
|
|
30542
|
+
{
|
|
30543
|
+
"kind": "Interface",
|
|
30544
|
+
"canonicalReference": "@empathyco/x-components!QueryPreview:interface",
|
|
30545
|
+
"docComment": "/**\n * Information to render a query preview with.\n *\n * @public\n */\n",
|
|
30546
|
+
"excerptTokens": [
|
|
30547
|
+
{
|
|
30548
|
+
"kind": "Content",
|
|
30549
|
+
"text": "export interface QueryPreview "
|
|
30550
|
+
}
|
|
30551
|
+
],
|
|
30552
|
+
"releaseTag": "Public",
|
|
30553
|
+
"name": "QueryPreview",
|
|
30554
|
+
"members": [
|
|
30555
|
+
{
|
|
30556
|
+
"kind": "IndexSignature",
|
|
30557
|
+
"canonicalReference": "@empathyco/x-components!QueryPreview:index(1)",
|
|
30558
|
+
"docComment": "/**\n * Any other additional information to render the preview with.\n */\n",
|
|
30559
|
+
"excerptTokens": [
|
|
30560
|
+
{
|
|
30561
|
+
"kind": "Content",
|
|
30562
|
+
"text": "[extra: "
|
|
30563
|
+
},
|
|
30564
|
+
{
|
|
30565
|
+
"kind": "Content",
|
|
30566
|
+
"text": "string"
|
|
30567
|
+
},
|
|
30568
|
+
{
|
|
30569
|
+
"kind": "Content",
|
|
30570
|
+
"text": "]: "
|
|
30571
|
+
},
|
|
30572
|
+
{
|
|
30573
|
+
"kind": "Content",
|
|
30574
|
+
"text": "unknown"
|
|
30575
|
+
},
|
|
30576
|
+
{
|
|
30577
|
+
"kind": "Content",
|
|
30578
|
+
"text": ";"
|
|
30579
|
+
}
|
|
30580
|
+
],
|
|
30581
|
+
"returnTypeTokenRange": {
|
|
30582
|
+
"startIndex": 3,
|
|
30583
|
+
"endIndex": 4
|
|
30584
|
+
},
|
|
30585
|
+
"releaseTag": "Public",
|
|
30586
|
+
"overloadIndex": 1,
|
|
30587
|
+
"parameters": [
|
|
30588
|
+
{
|
|
30589
|
+
"parameterName": "extra",
|
|
30590
|
+
"parameterTypeTokenRange": {
|
|
30591
|
+
"startIndex": 1,
|
|
30592
|
+
"endIndex": 2
|
|
30593
|
+
}
|
|
30594
|
+
}
|
|
30595
|
+
]
|
|
30596
|
+
},
|
|
30597
|
+
{
|
|
30598
|
+
"kind": "PropertySignature",
|
|
30599
|
+
"canonicalReference": "@empathyco/x-components!QueryPreview#query:member",
|
|
30600
|
+
"docComment": "/**\n * The query to search for.\n */\n",
|
|
30601
|
+
"excerptTokens": [
|
|
30602
|
+
{
|
|
30603
|
+
"kind": "Content",
|
|
30604
|
+
"text": "query: "
|
|
30605
|
+
},
|
|
30606
|
+
{
|
|
30607
|
+
"kind": "Content",
|
|
30608
|
+
"text": "string"
|
|
30609
|
+
},
|
|
30610
|
+
{
|
|
30611
|
+
"kind": "Content",
|
|
30612
|
+
"text": ";"
|
|
30613
|
+
}
|
|
30614
|
+
],
|
|
30615
|
+
"isOptional": false,
|
|
30616
|
+
"releaseTag": "Public",
|
|
30617
|
+
"name": "query",
|
|
30618
|
+
"propertyTypeTokenRange": {
|
|
30619
|
+
"startIndex": 1,
|
|
30620
|
+
"endIndex": 2
|
|
30621
|
+
}
|
|
30622
|
+
},
|
|
30623
|
+
{
|
|
30624
|
+
"kind": "PropertySignature",
|
|
30625
|
+
"canonicalReference": "@empathyco/x-components!QueryPreview#title:member",
|
|
30626
|
+
"docComment": "/**\n * An optional title for the container.\n */\n",
|
|
30627
|
+
"excerptTokens": [
|
|
30628
|
+
{
|
|
30629
|
+
"kind": "Content",
|
|
30630
|
+
"text": "title?: "
|
|
30631
|
+
},
|
|
30632
|
+
{
|
|
30633
|
+
"kind": "Content",
|
|
30634
|
+
"text": "string"
|
|
30635
|
+
},
|
|
30636
|
+
{
|
|
30637
|
+
"kind": "Content",
|
|
30638
|
+
"text": ";"
|
|
30639
|
+
}
|
|
30640
|
+
],
|
|
30641
|
+
"isOptional": true,
|
|
30642
|
+
"releaseTag": "Public",
|
|
30643
|
+
"name": "title",
|
|
30644
|
+
"propertyTypeTokenRange": {
|
|
30645
|
+
"startIndex": 1,
|
|
30646
|
+
"endIndex": 2
|
|
30647
|
+
}
|
|
30648
|
+
}
|
|
30649
|
+
],
|
|
30650
|
+
"extendsTokenRanges": []
|
|
30651
|
+
},
|
|
30542
30652
|
{
|
|
30543
30653
|
"kind": "Class",
|
|
30544
30654
|
"canonicalReference": "@empathyco/x-components!QuerySuggestion:class",
|
|
@@ -43364,7 +43474,7 @@
|
|
|
43364
43474
|
},
|
|
43365
43475
|
{
|
|
43366
43476
|
"kind": "Content",
|
|
43367
|
-
"text": "
|
|
43477
|
+
"text": "unknown"
|
|
43368
43478
|
},
|
|
43369
43479
|
{
|
|
43370
43480
|
"kind": "Content",
|
|
@@ -43649,6 +43759,37 @@
|
|
|
43649
43759
|
"endIndex": 2
|
|
43650
43760
|
}
|
|
43651
43761
|
},
|
|
43762
|
+
{
|
|
43763
|
+
"kind": "PropertySignature",
|
|
43764
|
+
"canonicalReference": "@empathyco/x-components!SnippetConfig#queriesPreview:member",
|
|
43765
|
+
"docComment": "/**\n * List of queries to preview.\n */\n",
|
|
43766
|
+
"excerptTokens": [
|
|
43767
|
+
{
|
|
43768
|
+
"kind": "Content",
|
|
43769
|
+
"text": "queriesPreview?: "
|
|
43770
|
+
},
|
|
43771
|
+
{
|
|
43772
|
+
"kind": "Reference",
|
|
43773
|
+
"text": "QueryPreview",
|
|
43774
|
+
"canonicalReference": "@empathyco/x-components!QueryPreview:interface"
|
|
43775
|
+
},
|
|
43776
|
+
{
|
|
43777
|
+
"kind": "Content",
|
|
43778
|
+
"text": "[]"
|
|
43779
|
+
},
|
|
43780
|
+
{
|
|
43781
|
+
"kind": "Content",
|
|
43782
|
+
"text": ";"
|
|
43783
|
+
}
|
|
43784
|
+
],
|
|
43785
|
+
"isOptional": true,
|
|
43786
|
+
"releaseTag": "Public",
|
|
43787
|
+
"name": "queriesPreview",
|
|
43788
|
+
"propertyTypeTokenRange": {
|
|
43789
|
+
"startIndex": 1,
|
|
43790
|
+
"endIndex": 3
|
|
43791
|
+
}
|
|
43792
|
+
},
|
|
43652
43793
|
{
|
|
43653
43794
|
"kind": "PropertySignature",
|
|
43654
43795
|
"canonicalReference": "@empathyco/x-components!SnippetConfig#scope:member",
|
|
@@ -2868,6 +2868,13 @@ export type QueryOrigin = `${QueryFeature}:${FeatureLocation}`;
|
|
|
2868
2868
|
// @public
|
|
2869
2869
|
export type QueryOriginInit = Partial<Pick<WireMetadata, 'feature' | 'location'>>;
|
|
2870
2870
|
|
|
2871
|
+
// @public
|
|
2872
|
+
export interface QueryPreview {
|
|
2873
|
+
[extra: string]: unknown;
|
|
2874
|
+
query: string;
|
|
2875
|
+
title?: string;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2871
2878
|
// @public
|
|
2872
2879
|
export class QuerySuggestion extends Vue_3 {
|
|
2873
2880
|
// @internal
|
|
@@ -4177,7 +4184,7 @@ export class SnippetCallbacks extends Vue_2 {
|
|
|
4177
4184
|
|
|
4178
4185
|
// @public
|
|
4179
4186
|
export interface SnippetConfig {
|
|
4180
|
-
[extra: string]:
|
|
4187
|
+
[extra: string]: unknown;
|
|
4181
4188
|
callbacks?: XEventListeners;
|
|
4182
4189
|
consent?: boolean;
|
|
4183
4190
|
currency?: string;
|
|
@@ -4188,6 +4195,7 @@ export interface SnippetConfig {
|
|
|
4188
4195
|
isSpa?: boolean;
|
|
4189
4196
|
lang: string;
|
|
4190
4197
|
productId?: string;
|
|
4198
|
+
queriesPreview?: QueryPreview[];
|
|
4191
4199
|
scope: string;
|
|
4192
4200
|
searchLang?: string;
|
|
4193
4201
|
}
|
|
@@ -105,7 +105,22 @@ export interface SnippetConfig {
|
|
|
105
105
|
productId?: string;
|
|
106
106
|
/** The filters to be applied on the first request. */
|
|
107
107
|
filters?: string[];
|
|
108
|
+
/** List of queries to preview. */
|
|
109
|
+
queriesPreview?: QueryPreview[];
|
|
108
110
|
/** Any extra param to send in all backend calls. */
|
|
109
|
-
[extra: string]:
|
|
111
|
+
[extra: string]: unknown;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Information to render a query preview with.
|
|
115
|
+
*
|
|
116
|
+
* @public
|
|
117
|
+
*/
|
|
118
|
+
export interface QueryPreview {
|
|
119
|
+
/** The query to search for. */
|
|
120
|
+
query: string;
|
|
121
|
+
/** An optional title for the container. */
|
|
122
|
+
title?: string;
|
|
123
|
+
/** Any other additional information to render the preview with. */
|
|
124
|
+
[extra: string]: unknown;
|
|
110
125
|
}
|
|
111
126
|
//# sourceMappingURL=api.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../../../src/x-installer/api/api.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,WAAW,IAAI;IACnB;;;;;;;OAOG;IACH,gBAAgB,CAAC,SA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script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/extra-params/components/snippet-config-extra-params.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE;;;;;GAKG;AAKH,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,GAAG;IACvD;;;;OAIG;IAEI,aAAa,EAAG,aAAa,CAAC;IAErC;;;;OAIG;IAEH,SAAS,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEvC;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAM;IAEhD;;;;;OAKG;
|
|
1
|
+
{"version":3,"file":"snippet-config-extra-params.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/extra-params/components/snippet-config-extra-params.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,GAAG,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE;;;;;GAKG;AAKH,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,GAAG;IACvD;;;;OAIG;IAEI,aAAa,EAAG,aAAa,CAAC;IAErC;;;;OAIG;IAEH,SAAS,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEvC;;;;;;;OAOG;IACH,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAM;IAEhD;;;;;OAKG;IAcH,SAAS,CAAC,mBAAmB,EAAG,KAAK,CAAC,MAAM,aAAa,CAAC,CAAC;IAE3D;;;;;;OAMG;IAEH,eAAe,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI;CAOpD"}
|