@empathyco/x-components 3.0.0-alpha.379 → 3.0.0-alpha.380
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/design-system/deprecated-full-theme.css +57 -57
- package/docs/API-reference/api/x-components.wiremetadata.ignoreinmodules.md +13 -0
- package/docs/API-reference/api/x-components.wiremetadata.md +1 -0
- package/js/components/result/base-result-link.vue.js +1 -1
- package/js/components/result/base-result-link.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue_rollup-plugin-vue_script.vue.js +10 -2
- package/js/components/result/base-result-link.vue_rollup-plugin-vue_script.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue_rollup-plugin-vue_styles.0.vue.js +1 -1
- package/js/x-modules/tagging/wiring.js +1 -1
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/package.json +2 -2
- package/report/x-components.api.json +32 -0
- package/report/x-components.api.md +1 -0
- package/types/components/result/base-result-link.vue.d.ts.map +1 -1
- package/types/wiring/wiring.types.d.ts +4 -0
- package/types/wiring/wiring.types.d.ts.map +1 -1
- package/types/x-modules/tagging/wiring.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.0-alpha.380](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.379...@empathyco/x-components@3.0.0-alpha.380) (2023-05-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **result:** set configuration for base-result-link to ignore tagging of click (#1211) ([3319bf8](https://github.com/empathyco/x/commit/3319bf81d2042fcc32eadffa4dfa1bf1b4afb2a4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [3.0.0-alpha.379](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.0-alpha.378...@empathyco/x-components@3.0.0-alpha.379) (2023-05-30)
|
|
7
16
|
|
|
8
17
|
**Note:** Version bump only for package @empathyco/x-components
|
|
@@ -4818,17 +4818,6 @@
|
|
|
4818
4818
|
--x-size-border-width-result-description-default: 0;
|
|
4819
4819
|
--x-size-border-width-result-picture-default: 0;
|
|
4820
4820
|
}
|
|
4821
|
-
:root {
|
|
4822
|
-
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4823
|
-
}
|
|
4824
|
-
:root {
|
|
4825
|
-
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4826
|
-
}
|
|
4827
|
-
|
|
4828
|
-
.x-result.x-result--card {
|
|
4829
|
-
overflow: hidden;
|
|
4830
|
-
--x-size-border-radius-result-default: var(--x-size-border-radius-result-card);
|
|
4831
|
-
}
|
|
4832
4821
|
:root {
|
|
4833
4822
|
--x-color-border-result-default: var(--x-color-base-lead);
|
|
4834
4823
|
--x-color-border-result-overlay-default: var(--x-color-border-result-default);
|
|
@@ -4899,6 +4888,17 @@
|
|
|
4899
4888
|
opacity: 1;
|
|
4900
4889
|
}
|
|
4901
4890
|
}
|
|
4891
|
+
:root {
|
|
4892
|
+
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4893
|
+
}
|
|
4894
|
+
:root {
|
|
4895
|
+
--x-size-border-radius-result-card: var(--x-size-border-radius-base-s);
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
.x-result.x-result--card {
|
|
4899
|
+
overflow: hidden;
|
|
4900
|
+
--x-size-border-radius-result-default: var(--x-size-border-radius-result-card);
|
|
4901
|
+
}
|
|
4902
4902
|
:root {
|
|
4903
4903
|
--x-size-height-progress-bar-line-default: var(--x-size-base-02);
|
|
4904
4904
|
--x-size-width-progress-bar-line-default: var(--x-size-base-20);
|
|
@@ -4977,30 +4977,6 @@
|
|
|
4977
4977
|
--x-mix-blend-mode-picture-fallback-default: var(--x-mix-blend-mode-picture-default);
|
|
4978
4978
|
--x-mix-blend-mode-picture-placeholder-default: var(--x-mix-blend-mode-picture-default);
|
|
4979
4979
|
}
|
|
4980
|
-
:root {
|
|
4981
|
-
--x-color-background-picture-cover-hover-from: rgba(0, 0, 0, 0);
|
|
4982
|
-
--x-color-background-picture-cover-hover-to: rgba(0, 0, 0, 0.5);
|
|
4983
|
-
}
|
|
4984
|
-
:root {
|
|
4985
|
-
--x-color-background-picture-cover-hover-from: rgba(0, 0, 0, 0);
|
|
4986
|
-
--x-color-background-picture-cover-hover-to: rgba(0, 0, 0, 0.5);
|
|
4987
|
-
}
|
|
4988
|
-
|
|
4989
|
-
.x-picture--cover.x-picture {
|
|
4990
|
-
position: relative;
|
|
4991
|
-
}
|
|
4992
|
-
|
|
4993
|
-
.x-result:hover .x-picture--cover:after,
|
|
4994
|
-
.x-picture--cover:hover:after {
|
|
4995
|
-
content: "";
|
|
4996
|
-
display: block;
|
|
4997
|
-
position: absolute;
|
|
4998
|
-
top: 0;
|
|
4999
|
-
left: 0;
|
|
5000
|
-
background: linear-gradient(to bottom, var(--x-color-background-picture-cover-hover-from) 50%, var(--x-color-background-picture-cover-hover-to) 100%);
|
|
5001
|
-
width: 100%;
|
|
5002
|
-
height: 100%;
|
|
5003
|
-
}
|
|
5004
4980
|
:root {
|
|
5005
4981
|
--x-size-border-radius-picture-default: 0;
|
|
5006
4982
|
--x-size-border-radius-top-picture-default: var(--x-size-border-radius-picture-default);
|
|
@@ -5057,6 +5033,30 @@
|
|
|
5057
5033
|
.x-picture-image--placeholder > path {
|
|
5058
5034
|
fill: var(--x-color-fill-picture-placeholder-path-default) !important;
|
|
5059
5035
|
}
|
|
5036
|
+
:root {
|
|
5037
|
+
--x-color-background-picture-cover-hover-from: rgba(0, 0, 0, 0);
|
|
5038
|
+
--x-color-background-picture-cover-hover-to: rgba(0, 0, 0, 0.5);
|
|
5039
|
+
}
|
|
5040
|
+
:root {
|
|
5041
|
+
--x-color-background-picture-cover-hover-from: rgba(0, 0, 0, 0);
|
|
5042
|
+
--x-color-background-picture-cover-hover-to: rgba(0, 0, 0, 0.5);
|
|
5043
|
+
}
|
|
5044
|
+
|
|
5045
|
+
.x-picture--cover.x-picture {
|
|
5046
|
+
position: relative;
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
.x-result:hover .x-picture--cover:after,
|
|
5050
|
+
.x-picture--cover:hover:after {
|
|
5051
|
+
content: "";
|
|
5052
|
+
display: block;
|
|
5053
|
+
position: absolute;
|
|
5054
|
+
top: 0;
|
|
5055
|
+
left: 0;
|
|
5056
|
+
background: linear-gradient(to bottom, var(--x-color-background-picture-cover-hover-from) 50%, var(--x-color-background-picture-cover-hover-to) 100%);
|
|
5057
|
+
width: 100%;
|
|
5058
|
+
height: 100%;
|
|
5059
|
+
}
|
|
5060
5060
|
:root {
|
|
5061
5061
|
--x-color-background-picture-colored: var(--x-color-base-neutral-95);
|
|
5062
5062
|
--x-mix-blend-mode-picture-colored: multiply;
|
|
@@ -8582,6 +8582,28 @@
|
|
|
8582
8582
|
--x-color-border-button-ghost: transparent;
|
|
8583
8583
|
--x-color-text-button-ghost: var(--x-color-base-lead);
|
|
8584
8584
|
}
|
|
8585
|
+
:root {
|
|
8586
|
+
--x-color-background-button-ghost: transparent;
|
|
8587
|
+
--x-color-border-button-ghost: transparent;
|
|
8588
|
+
--x-color-text-button-ghost: var(--x-color-base-lead);
|
|
8589
|
+
}
|
|
8590
|
+
|
|
8591
|
+
.x-button--ghost.x-button,
|
|
8592
|
+
.x-button--ghost .x-button {
|
|
8593
|
+
--x-color-background-button-default: var(--x-color-background-button-ghost);
|
|
8594
|
+
--x-color-border-button-default: var(--x-color-border-button-ghost);
|
|
8595
|
+
--x-color-text-button-default: var(--x-color-text-button-ghost);
|
|
8596
|
+
}
|
|
8597
|
+
|
|
8598
|
+
.x-button--ghost.x-button--ghost-start.x-button,
|
|
8599
|
+
.x-button--ghost.x-button--ghost-start .x-button {
|
|
8600
|
+
--x-size-padding-left-button-default: 0;
|
|
8601
|
+
}
|
|
8602
|
+
|
|
8603
|
+
.x-button--ghost.x-button--ghost-end.x-button,
|
|
8604
|
+
.x-button--ghost.x-button--ghost-end .x-button {
|
|
8605
|
+
--x-size-padding-right-button-default: 0;
|
|
8606
|
+
}
|
|
8585
8607
|
:root {
|
|
8586
8608
|
--x-color-background-button-default: var(--x-color-base-lead);
|
|
8587
8609
|
--x-color-border-button-default: var(--x-color-background-button-default);
|
|
@@ -8605,28 +8627,6 @@
|
|
|
8605
8627
|
--x-number-font-weight-button-default: var(--x-number-font-weight-base-bold);
|
|
8606
8628
|
--x-size-line-height-button-default: var(--x-size-line-height-text);
|
|
8607
8629
|
}
|
|
8608
|
-
:root {
|
|
8609
|
-
--x-color-background-button-ghost: transparent;
|
|
8610
|
-
--x-color-border-button-ghost: transparent;
|
|
8611
|
-
--x-color-text-button-ghost: var(--x-color-base-lead);
|
|
8612
|
-
}
|
|
8613
|
-
|
|
8614
|
-
.x-button--ghost.x-button,
|
|
8615
|
-
.x-button--ghost .x-button {
|
|
8616
|
-
--x-color-background-button-default: var(--x-color-background-button-ghost);
|
|
8617
|
-
--x-color-border-button-default: var(--x-color-border-button-ghost);
|
|
8618
|
-
--x-color-text-button-default: var(--x-color-text-button-ghost);
|
|
8619
|
-
}
|
|
8620
|
-
|
|
8621
|
-
.x-button--ghost.x-button--ghost-start.x-button,
|
|
8622
|
-
.x-button--ghost.x-button--ghost-start .x-button {
|
|
8623
|
-
--x-size-padding-left-button-default: 0;
|
|
8624
|
-
}
|
|
8625
|
-
|
|
8626
|
-
.x-button--ghost.x-button--ghost-end.x-button,
|
|
8627
|
-
.x-button--ghost.x-button--ghost-end .x-button {
|
|
8628
|
-
--x-size-padding-right-button-default: 0;
|
|
8629
|
-
}
|
|
8630
8630
|
:root {
|
|
8631
8631
|
--x-color-background-button-default: var(--x-color-base-lead);
|
|
8632
8632
|
--x-color-border-button-default: var(--x-color-background-button-default);
|
|
@@ -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) > [WireMetadata](./x-components.wiremetadata.md) > [ignoreInModules](./x-components.wiremetadata.ignoreinmodules.md)
|
|
4
|
+
|
|
5
|
+
## WireMetadata.ignoreInModules property
|
|
6
|
+
|
|
7
|
+
The event can be ignored if it is received in the wiring of the modules in the array.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
ignoreInModules?: XModuleName[];
|
|
13
|
+
```
|
|
@@ -19,6 +19,7 @@ export interface WireMetadata
|
|
|
19
19
|
| [component?](./x-components.wiremetadata.component.md) | | Vue | _(Optional)_ The component instance that triggered the event emission. |
|
|
20
20
|
| [feature?](./x-components.wiremetadata.feature.md) | | [QueryFeature](./x-components.queryfeature.md) | _(Optional)_ The [QueryFeature](./x-components.queryfeature.md) that originated the event. |
|
|
21
21
|
| [id?](./x-components.wiremetadata.id.md) | | string | _(Optional)_ The id of the component origin. |
|
|
22
|
+
| [ignoreInModules?](./x-components.wiremetadata.ignoreinmodules.md) | | [XModuleName](./x-components.xmodulename.md)<!-- -->\[\] | _(Optional)_ The event can be ignored if it is received in the wiring of the modules in the array. |
|
|
22
23
|
| [location?](./x-components.wiremetadata.location.md) | | [FeatureLocation](./x-components.featurelocation.md) | _(Optional)_ The [FeatureLocation](./x-components.featurelocation.md) from where the event has been emitted. |
|
|
23
24
|
| [moduleName](./x-components.wiremetadata.modulename.md) | | [XModuleName](./x-components.xmodulename.md) \| null | The [XModule](./x-components.xmodule.md) name that emitted the event or <code>null</code> if it has been emitted from an unknown module. |
|
|
24
25
|
| [oldValue?](./x-components.wiremetadata.oldvalue.md) | | unknown | _(Optional)_ The old value of a watched selector triggering an emitter. |
|
|
@@ -38,7 +38,7 @@ __vue_render__._withStripped = true;
|
|
|
38
38
|
/* style */
|
|
39
39
|
const __vue_inject_styles__ = undefined;
|
|
40
40
|
/* scoped */
|
|
41
|
-
const __vue_scope_id__ = "data-v-
|
|
41
|
+
const __vue_scope_id__ = "data-v-46accc4c";
|
|
42
42
|
/* module identifier */
|
|
43
43
|
const __vue_module_identifier__ = undefined;
|
|
44
44
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-link.vue.js","sources":["../../../../src/components/result/base-result-link.vue"],"sourcesContent":["<template>\n <a\n ref=\"el\"\n @click=\"emitUserClickedAResult\"\n @click.right=\"emitUserClickedAResult\"\n @click.middle=\"emitUserClickedAResult\"\n :href=\"result.url\"\n class=\"x-result-link\"\n data-test=\"result-link\"\n >\n <!--\n @slot (Required) Link content with a text, an image, another component or both\n @binding {Result} result - Result data\n -->\n <slot :result=\"result\" />\n </a>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import { defineComponent, inject, PropType, ref } from 'vue';\n import { PropsWithType } from '../../utils/types';\n import { XEventsTypes } from '../../wiring/events.types';\n import { use$x } from '../../composables/index';\n\n /**\n * Component to be reused that renders an `<a>` wrapping the result contents.\n *\n * @remarks\n * It has the logic to emit {@link XEventsTypes.UserClickedAResult} to the bus on click mouse\n * events. Additionally, this component may be injected other events to be emitted on click\n * event, so, depending on where it's used its father component may provide this events.\n *\n * @public\n */\n export default defineComponent({\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true\n }\n },\n setup(props) {\n const $x = use$x();\n\n /**\n * The rendered DOM element.\n *\n * @internal\n */\n const el = ref<HTMLElement | null>();\n\n /**\n * The list of additional events to be emitted by the component when user clicks the link.\n *\n * @internal\n */\n const resultClickExtraEvents = inject<PropsWithType<XEventsTypes, Result>[]>(\n 'resultClickExtraEvents',\n []\n );\n\n /**\n * Emits the {@link XEventsTypes.UserClickedAResult} when user clicks on the result, and also\n * additional events if have been injected in the component.\n *\n * @internal\n */\n const emitUserClickedAResult = (): void => {\n $x.emit('UserClickedAResult', props.result, {
|
|
1
|
+
{"version":3,"file":"base-result-link.vue.js","sources":["../../../../src/components/result/base-result-link.vue"],"sourcesContent":["<template>\n <a\n ref=\"el\"\n @click=\"emitUserClickedAResult\"\n @click.right=\"emitUserClickedAResult\"\n @click.middle=\"emitUserClickedAResult\"\n :href=\"result.url\"\n class=\"x-result-link\"\n data-test=\"result-link\"\n >\n <!--\n @slot (Required) Link content with a text, an image, another component or both\n @binding {Result} result - Result data\n -->\n <slot :result=\"result\" />\n </a>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import { defineComponent, inject, PropType, ref } from 'vue';\n import { PropsWithType } from '../../utils/types';\n import { XEventsTypes } from '../../wiring/events.types';\n import { use$x } from '../../composables/index';\n import { WireMetadata } from '../../wiring';\n\n /**\n * Component to be reused that renders an `<a>` wrapping the result contents.\n *\n * @remarks\n * It has the logic to emit {@link XEventsTypes.UserClickedAResult} to the bus on click mouse\n * events. Additionally, this component may be injected other events to be emitted on click\n * event, so, depending on where it's used its father component may provide this events.\n *\n * @public\n */\n export default defineComponent({\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true\n }\n },\n setup(props) {\n const $x = use$x();\n\n /**\n * The rendered DOM element.\n *\n * @internal\n */\n const el = ref<HTMLElement | null>();\n\n /**\n * The list of additional events to be emitted by the component when user clicks the link.\n *\n * @internal\n */\n const resultClickExtraEvents = inject<PropsWithType<XEventsTypes, Result>[]>(\n 'resultClickExtraEvents',\n []\n );\n\n /**\n * The metadata to be injected in the events emitted by the component. This component can emit\n * have extra events so this record pairs each event to its metadata.\n */\n const resultLinkMetadataPerEvent = inject<\n // TODO: Refactor this inject key to the constants when doing EMP-909\n Partial<\n Record<\n PropsWithType<XEventsTypes, Result>,\n Omit<WireMetadata, 'moduleName' | 'origin' | 'location'>\n >\n >\n >('resultLinkMetadataPerEvent', {});\n\n /**\n * Emits the {@link XEventsTypes.UserClickedAResult} when user clicks on the result, and also\n * additional events if have been injected in the component.\n *\n * @internal\n */\n const emitUserClickedAResult = (): void => {\n $x.emit('UserClickedAResult', props.result, {\n target: el.value!,\n ...resultLinkMetadataPerEvent['UserClickedAResult']\n });\n resultClickExtraEvents.forEach(event => {\n $x.emit(event, props.result, { target: el.value!, ...resultLinkMetadataPerEvent[event] });\n });\n };\n\n return {\n emitUserClickedAResult\n };\n }\n });\n</script>\n\n<style lang=\"scss\" scoped>\n .x-result-link {\n text-decoration: none;\n }\n</style>\n\n<docs lang=\"mdx\">\n## Events\n\nThis component emits the following event:\n\n- [`UserClickedAResult`](x-components.xeventstypes.userclickedaresult.md)\n\nThe component can emit more events on click using the `resultClickExtraEvents` prop.\n\n## See it in action\n\nThis component is a wrapper for the result contents (images, name, price...) It may be part of the\nsearch result page, recommendations or other section which needs to include results.\n\nAdditionally, this component may be injected other events to be emitted on click event, so,\ndepending where it's used its father component may provide this events.\n\nThe result prop is required. It will render a `<a></a>` with the href to the result URL:\n\n```vue\n<BaseResultLink :result=\"result\">\n <template #default=\"{ result }\">\n <img :src=\"result.images[0]\"/>\n <span>{{ result.name }}</span>\n </template>\n</BaseResultLink>\n```\n</docs>\n"],"names":[],"mappings":";;;;;AAEA,MAAc,cAAA,GAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -38,6 +38,11 @@ var script = defineComponent({
|
|
|
38
38
|
* @internal
|
|
39
39
|
*/
|
|
40
40
|
const resultClickExtraEvents = inject('resultClickExtraEvents', []);
|
|
41
|
+
/**
|
|
42
|
+
* The metadata to be injected in the events emitted by the component. This component can emit
|
|
43
|
+
* have extra events so this record pairs each event to its metadata.
|
|
44
|
+
*/
|
|
45
|
+
const resultLinkMetadataPerEvent = inject('resultLinkMetadataPerEvent', {});
|
|
41
46
|
/**
|
|
42
47
|
* Emits the {@link XEventsTypes.UserClickedAResult} when user clicks on the result, and also
|
|
43
48
|
* additional events if have been injected in the component.
|
|
@@ -45,9 +50,12 @@ var script = defineComponent({
|
|
|
45
50
|
* @internal
|
|
46
51
|
*/
|
|
47
52
|
const emitUserClickedAResult = () => {
|
|
48
|
-
$x.emit('UserClickedAResult', props.result, {
|
|
53
|
+
$x.emit('UserClickedAResult', props.result, {
|
|
54
|
+
target: el.value,
|
|
55
|
+
...resultLinkMetadataPerEvent['UserClickedAResult']
|
|
56
|
+
});
|
|
49
57
|
resultClickExtraEvents.forEach(event => {
|
|
50
|
-
$x.emit(event, props.result, { target: el.value });
|
|
58
|
+
$x.emit(event, props.result, { target: el.value, ...resultLinkMetadataPerEvent[event] });
|
|
51
59
|
});
|
|
52
60
|
};
|
|
53
61
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-link.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/result/base-result-link.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n import { Result } from '@empathyco/x-types';\n import { defineComponent, inject, PropType, ref } from 'vue';\n import { PropsWithType } from '../../utils/types';\n import { XEventsTypes } from '../../wiring/events.types';\n import { use$x } from '../../composables/index';\n\n /**\n * Component to be reused that renders an `<a>` wrapping the result contents.\n *\n * @remarks\n * It has the logic to emit {@link XEventsTypes.UserClickedAResult} to the bus on click mouse\n * events. Additionally, this component may be injected other events to be emitted on click\n * event, so, depending on where it's used its father component may provide this events.\n *\n * @public\n */\n export default defineComponent({\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true\n }\n },\n setup(props) {\n const $x = use$x();\n\n /**\n * The rendered DOM element.\n *\n * @internal\n */\n const el = ref<HTMLElement | null>();\n\n /**\n * The list of additional events to be emitted by the component when user clicks the link.\n *\n * @internal\n */\n const resultClickExtraEvents = inject<PropsWithType<XEventsTypes, Result>[]>(\n 'resultClickExtraEvents',\n []\n );\n\n /**\n * Emits the {@link XEventsTypes.UserClickedAResult} when user clicks on the result, and also\n * additional events if have been injected in the component.\n *\n * @internal\n */\n const emitUserClickedAResult = (): void => {\n $x.emit('UserClickedAResult', props.result, {
|
|
1
|
+
{"version":3,"file":"base-result-link.vue_rollup-plugin-vue_script.vue.js","sources":["../../../../src/components/result/base-result-link.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n import { Result } from '@empathyco/x-types';\n import { defineComponent, inject, PropType, ref } from 'vue';\n import { PropsWithType } from '../../utils/types';\n import { XEventsTypes } from '../../wiring/events.types';\n import { use$x } from '../../composables/index';\n import { WireMetadata } from '../../wiring';\n\n /**\n * Component to be reused that renders an `<a>` wrapping the result contents.\n *\n * @remarks\n * It has the logic to emit {@link XEventsTypes.UserClickedAResult} to the bus on click mouse\n * events. Additionally, this component may be injected other events to be emitted on click\n * event, so, depending on where it's used its father component may provide this events.\n *\n * @public\n */\n export default defineComponent({\n props: {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n result: {\n type: Object as PropType<Result>,\n required: true\n }\n },\n setup(props) {\n const $x = use$x();\n\n /**\n * The rendered DOM element.\n *\n * @internal\n */\n const el = ref<HTMLElement | null>();\n\n /**\n * The list of additional events to be emitted by the component when user clicks the link.\n *\n * @internal\n */\n const resultClickExtraEvents = inject<PropsWithType<XEventsTypes, Result>[]>(\n 'resultClickExtraEvents',\n []\n );\n\n /**\n * The metadata to be injected in the events emitted by the component. This component can emit\n * have extra events so this record pairs each event to its metadata.\n */\n const resultLinkMetadataPerEvent = inject<\n // TODO: Refactor this inject key to the constants when doing EMP-909\n Partial<\n Record<\n PropsWithType<XEventsTypes, Result>,\n Omit<WireMetadata, 'moduleName' | 'origin' | 'location'>\n >\n >\n >('resultLinkMetadataPerEvent', {});\n\n /**\n * Emits the {@link XEventsTypes.UserClickedAResult} when user clicks on the result, and also\n * additional events if have been injected in the component.\n *\n * @internal\n */\n const emitUserClickedAResult = (): void => {\n $x.emit('UserClickedAResult', props.result, {\n target: el.value!,\n ...resultLinkMetadataPerEvent['UserClickedAResult']\n });\n resultClickExtraEvents.forEach(event => {\n $x.emit(event, props.result, { target: el.value!, ...resultLinkMetadataPerEvent[event] });\n });\n };\n\n return {\n emitUserClickedAResult\n };\n }\n });\n"],"names":[],"mappings":";;;;AA0BE;;;;;;;;;AASG;AACH,aAAe,eAAe,CAAC;AAC7B,IAAA,KAAK,EAAE;AACL;;;;AAIG;AACH,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,MAA0B;AAChC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA;AACF,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAA;AACT,QAAA,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;AAEnB;;;;AAIG;AACH,QAAA,MAAM,EAAE,GAAG,GAAG,EAAsB,CAAC;AAErC;;;;AAIG;QACH,MAAM,sBAAsB,GAAG,MAAM,CACnC,wBAAwB,EACxB,EAAE,CACH,CAAC;AAEF;;;AAGG;QACH,MAAM,0BAA0B,GAAG,MAAM,CAQvC,4BAA4B,EAAE,EAAE,CAAC,CAAC;AAEpC;;;;;AAKG;QACH,MAAM,sBAAsB,GAAG,MAAW;YACxC,EAAE,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,MAAM,EAAE;gBAC1C,MAAM,EAAE,EAAE,CAAC,KAAM;gBACjB,GAAG,0BAA0B,CAAC,oBAAoB,CAAC;AACpD,aAAA,CAAC,CAAC;AACH,YAAA,sBAAsB,CAAC,OAAO,CAAC,KAAK,IAAG;gBACrC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,KAAM,EAAE,GAAG,0BAA0B,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC5F,aAAC,CAAC,CAAC;AACL,SAAC,CAAC;QAEF,OAAO;YACL,sBAAsB;SACvB,CAAC;KACH;AACF,CAAA,CAAC;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createInjector, createInjectorSSR } from 'vue-runtime-helpers';
|
|
2
2
|
|
|
3
|
-
var css = ".x-result-link[data-v-
|
|
3
|
+
var css = ".x-result-link[data-v-46accc4c] {\n text-decoration: none;\n}";
|
|
4
4
|
const isBrowser = /*#__PURE__*/ (function () {
|
|
5
5
|
return (
|
|
6
6
|
Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) !==
|
|
@@ -127,7 +127,7 @@ function createTrackWire(property) {
|
|
|
127
127
|
const taggingInfo = tagging[property];
|
|
128
128
|
taggingInfo.params.location = location;
|
|
129
129
|
return taggingInfo;
|
|
130
|
-
}), ({ eventPayload: { tagging } }) => !!tagging?.[property]);
|
|
130
|
+
}), ({ eventPayload: { tagging }, metadata: { ignoreInModules } }) => !!tagging?.[property] && !ignoreInModules?.includes(moduleName));
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* Wiring configuration for the {@link TaggingXModule | tagging module}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/tagging/wiring.ts"],"sourcesContent":["import { Taggable, Tagging, TaggingRequest } from '@empathyco/x-types';\nimport { DefaultSessionService } from '@empathyco/x-utils';\nimport {\n namespacedWireCommit,\n namespacedWireDispatch\n} from '../../wiring/namespaced-wires.factory';\nimport { namespacedDebounce } from '../../wiring/namespaced-wires.operators';\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory';\nimport { filter, mapWire } from '../../wiring/wires.operators';\nimport { Wire } from '../../wiring/wiring.types';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { DefaultPDPAddToCartService } from './service/pdp-add-to-cart.service';\n\n/**\n * `tagging` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'tagging';\n\n/**\n * Debounce function for the module.\n */\nconst moduleDebounce = namespacedDebounce(moduleName);\n\n/**\n * WireCommit for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName);\n\n/**\n * WireDispatch for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName);\n\n/**\n * Wires without payload factory for {@link DefaultSessionService}.\n */\nconst wireSessionServiceWithoutPayload = wireServiceWithoutPayload(DefaultSessionService.instance);\n\n/**\n * Wires factory for {@link DefaultPDPAddToCartService}.\n */\nconst wirePDPAddToCartService = wireService(DefaultPDPAddToCartService.instance);\n\n/**\n * Stores the given result on the local storage.\n *\n * @public\n */\nconst storeClickedResultWire = wirePDPAddToCartService('storeResultClicked');\n\n/**\n * Moves the result information from the local storage to session storage.\n *\n * @public\n */\nconst moveClickedResultToSessionWire = mapWire(\n wirePDPAddToCartService('moveToSessionStorage'),\n (payload: string) => {\n return payload === 'url' ? undefined : payload;\n }\n);\n\n/**\n * Triggers the add to cart tracking.\n *\n * @public\n */\nconst trackAddToCartFromSessionStorage = wirePDPAddToCartService('trackAddToCart');\n\n/**\n * Clears the session id.\n *\n * @public\n */\nconst clearSessionWire = filter(\n wireSessionServiceWithoutPayload('clearSessionId'),\n ({ eventPayload: consent }) => !consent\n);\n\n/**\n * Sets the tagging state `consent`.\n *\n * @public\n */\nexport const setConsent = wireCommit('setConsent');\n\n/**\n * Sets the tagging config state.\n *\n * @public\n */\nexport const setTaggingConfig = wireCommit('setTaggingConfig');\n\n/**\n * Tracks the tagging of the query.\n *\n * @public\n */\nexport const trackQueryWire = wireDispatch('track');\n\n/**\n * Sets the tagging state of the query tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setQueryTaggingInfo = moduleDebounce(\n wireCommit('setQueryTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: 'UserClearedQuery',\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd'\n ]\n }\n);\n\n/**\n * Tracks the tagging of the result.\n *\n * @public\n */\nexport const trackResultClickedWire = createTrackWire('click');\n\n/**\n * Tracks the tagging of the banner.\n *\n * @public\n */\nexport const trackBannerClickedWire = createTrackWire('click');\n\n/**\n * Performs a track of a result added to the cart.\n *\n * @public\n */\nexport const trackAddToCartWire = createTrackWire('add2cart');\n\n/**\n * Factory helper to create a wire for the track of a taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the taggable element.\n *\n * @public\n */\nexport function createTrackWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata: { location } }) => {\n const taggingInfo: TaggingRequest = tagging[property];\n taggingInfo.params.location = location as string;\n return taggingInfo;\n }),\n ({ eventPayload: { tagging } })
|
|
1
|
+
{"version":3,"file":"wiring.js","sources":["../../../../src/x-modules/tagging/wiring.ts"],"sourcesContent":["import { Taggable, Tagging, TaggingRequest } from '@empathyco/x-types';\nimport { DefaultSessionService } from '@empathyco/x-utils';\nimport {\n namespacedWireCommit,\n namespacedWireDispatch\n} from '../../wiring/namespaced-wires.factory';\nimport { namespacedDebounce } from '../../wiring/namespaced-wires.operators';\nimport { wireService, wireServiceWithoutPayload } from '../../wiring/wires.factory';\nimport { filter, mapWire } from '../../wiring/wires.operators';\nimport { Wire } from '../../wiring/wiring.types';\nimport { createWiring } from '../../wiring/wiring.utils';\nimport { DefaultPDPAddToCartService } from './service/pdp-add-to-cart.service';\n\n/**\n * `tagging` {@link XModuleName | XModule name}.\n *\n * @internal\n */\nconst moduleName = 'tagging';\n\n/**\n * Debounce function for the module.\n */\nconst moduleDebounce = namespacedDebounce(moduleName);\n\n/**\n * WireCommit for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireCommit = namespacedWireCommit(moduleName);\n\n/**\n * WireDispatch for {@link TaggingXModule}.\n *\n * @internal\n */\nconst wireDispatch = namespacedWireDispatch(moduleName);\n\n/**\n * Wires without payload factory for {@link DefaultSessionService}.\n */\nconst wireSessionServiceWithoutPayload = wireServiceWithoutPayload(DefaultSessionService.instance);\n\n/**\n * Wires factory for {@link DefaultPDPAddToCartService}.\n */\nconst wirePDPAddToCartService = wireService(DefaultPDPAddToCartService.instance);\n\n/**\n * Stores the given result on the local storage.\n *\n * @public\n */\nconst storeClickedResultWire = wirePDPAddToCartService('storeResultClicked');\n\n/**\n * Moves the result information from the local storage to session storage.\n *\n * @public\n */\nconst moveClickedResultToSessionWire = mapWire(\n wirePDPAddToCartService('moveToSessionStorage'),\n (payload: string) => {\n return payload === 'url' ? undefined : payload;\n }\n);\n\n/**\n * Triggers the add to cart tracking.\n *\n * @public\n */\nconst trackAddToCartFromSessionStorage = wirePDPAddToCartService('trackAddToCart');\n\n/**\n * Clears the session id.\n *\n * @public\n */\nconst clearSessionWire = filter(\n wireSessionServiceWithoutPayload('clearSessionId'),\n ({ eventPayload: consent }) => !consent\n);\n\n/**\n * Sets the tagging state `consent`.\n *\n * @public\n */\nexport const setConsent = wireCommit('setConsent');\n\n/**\n * Sets the tagging config state.\n *\n * @public\n */\nexport const setTaggingConfig = wireCommit('setTaggingConfig');\n\n/**\n * Tracks the tagging of the query.\n *\n * @public\n */\nexport const trackQueryWire = wireDispatch('track');\n\n/**\n * Sets the tagging state of the query tagging info using a debounce which ends if the user\n * accepts a query.\n *\n * @public\n */\nexport const setQueryTaggingInfo = moduleDebounce(\n wireCommit('setQueryTaggingInfo'),\n ({ state }) => state.config.queryTaggingDebounceMs,\n {\n cancelOn: 'UserClearedQuery',\n forceOn: [\n 'UserClickedAResult',\n 'UserClickedAPromoted',\n 'UserClickedABanner',\n 'UserClickedARedirection',\n 'UserReachedResultsListEnd'\n ]\n }\n);\n\n/**\n * Tracks the tagging of the result.\n *\n * @public\n */\nexport const trackResultClickedWire = createTrackWire('click');\n\n/**\n * Tracks the tagging of the banner.\n *\n * @public\n */\nexport const trackBannerClickedWire = createTrackWire('click');\n\n/**\n * Performs a track of a result added to the cart.\n *\n * @public\n */\nexport const trackAddToCartWire = createTrackWire('add2cart');\n\n/**\n * Factory helper to create a wire for the track of a taggable element.\n *\n * @param property - Key of the tagging object to track.\n * @returns A new wire for the given property of the taggable element.\n *\n * @public\n */\nexport function createTrackWire(property: keyof Tagging): Wire<Taggable> {\n return filter(\n wireDispatch('track', ({ eventPayload: { tagging }, metadata: { location } }) => {\n const taggingInfo: TaggingRequest = tagging[property];\n taggingInfo.params.location = location as string;\n return taggingInfo;\n }),\n ({ eventPayload: { tagging }, metadata: { ignoreInModules } }) =>\n !!tagging?.[property] && !ignoreInModules?.includes(moduleName)\n );\n}\n\n/**\n * Wiring configuration for the {@link TaggingXModule | tagging module}.\n *\n * @internal\n */\nexport const taggingWiring = createWiring({\n ConsentProvided: {\n setConsent\n },\n ConsentChanged: {\n clearSessionWire\n },\n PDPIsLoaded: {\n moveClickedResultToSessionWire\n },\n ResultURLTrackingEnabled: {\n moveClickedResultToSessionWire\n },\n SearchTaggingChanged: {\n setQueryTaggingInfo\n },\n SearchTaggingReceived: {\n trackQueryWire\n },\n TaggingConfigProvided: {\n setTaggingConfig\n },\n UserClickedAResult: {\n trackResultClickedWire,\n storeClickedResultWire\n },\n UserClickedResultAddToCart: {\n trackAddToCartWire,\n trackResultClickedWire\n },\n UserClickedPDPAddToCart: {\n trackAddToCartFromSessionStorage\n },\n UserClickedABanner: {\n trackBannerClickedWire\n }\n});\n"],"names":[],"mappings":";;;;;;;;AAaA;;;;AAIG;AACH,MAAM,UAAU,GAAG,SAAS,CAAC;AAE7B;;AAEG;AACH,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAEtD;;;;AAIG;AACH,MAAM,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAEpD;;;;AAIG;AACH,MAAM,YAAY,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AA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,EAAE;QACvB,gCAAgC;AACjC,KAAA;AACD,IAAA,kBAAkB,EAAE;QAClB,sBAAsB;AACvB,KAAA;AACF,CAAA;;;;"}
|
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.380",
|
|
4
4
|
"description": "Empathy X Components",
|
|
5
5
|
"author": "Empathy Systems Corporation S.L.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"access": "public",
|
|
144
144
|
"directory": "dist"
|
|
145
145
|
},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "bf6ad6b0d5b48ee654c4b0b8ae4f712dfae0ece7"
|
|
147
147
|
}
|
|
@@ -61494,6 +61494,38 @@
|
|
|
61494
61494
|
"endIndex": 2
|
|
61495
61495
|
}
|
|
61496
61496
|
},
|
|
61497
|
+
{
|
|
61498
|
+
"kind": "PropertySignature",
|
|
61499
|
+
"canonicalReference": "@empathyco/x-components!WireMetadata#ignoreInModules:member",
|
|
61500
|
+
"docComment": "/**\n * The event can be ignored if it is received in the wiring of the modules in the array.\n */\n",
|
|
61501
|
+
"excerptTokens": [
|
|
61502
|
+
{
|
|
61503
|
+
"kind": "Content",
|
|
61504
|
+
"text": "ignoreInModules?: "
|
|
61505
|
+
},
|
|
61506
|
+
{
|
|
61507
|
+
"kind": "Reference",
|
|
61508
|
+
"text": "XModuleName",
|
|
61509
|
+
"canonicalReference": "@empathyco/x-components!XModuleName:type"
|
|
61510
|
+
},
|
|
61511
|
+
{
|
|
61512
|
+
"kind": "Content",
|
|
61513
|
+
"text": "[]"
|
|
61514
|
+
},
|
|
61515
|
+
{
|
|
61516
|
+
"kind": "Content",
|
|
61517
|
+
"text": ";"
|
|
61518
|
+
}
|
|
61519
|
+
],
|
|
61520
|
+
"isReadonly": false,
|
|
61521
|
+
"isOptional": true,
|
|
61522
|
+
"releaseTag": "Public",
|
|
61523
|
+
"name": "ignoreInModules",
|
|
61524
|
+
"propertyTypeTokenRange": {
|
|
61525
|
+
"startIndex": 1,
|
|
61526
|
+
"endIndex": 3
|
|
61527
|
+
}
|
|
61528
|
+
},
|
|
61497
61529
|
{
|
|
61498
61530
|
"kind": "PropertySignature",
|
|
61499
61531
|
"canonicalReference": "@empathyco/x-components!WireMetadata#location:member",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-link.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-link.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAmBE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAA2B,QAAQ,EAAO,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"base-result-link.vue?rollup-plugin-vue=script.d.ts","sourceRoot":"","sources":["../../../../src/components/result/base-result-link.vue?rollup-plugin-vue=script.ts"],"names":[],"mappings":"AAmBE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAA2B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAM7D;;;;;;;;;GASG;;IAGC;;;;OAIG;;;;;;kCA8CgC,IAAI;;IAlDvC;;;;OAIG;;;;;;AANP,wBAkEG"}
|
|
@@ -47,6 +47,10 @@ export interface WireMetadata {
|
|
|
47
47
|
* based on its priority.
|
|
48
48
|
*/
|
|
49
49
|
replaceable?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The event can be ignored if it is received in the wiring of the modules in the array.
|
|
52
|
+
*/
|
|
53
|
+
ignoreInModules?: XModuleName[];
|
|
50
54
|
}
|
|
51
55
|
/**
|
|
52
56
|
* The wire payload includes the payload of the event, and a {@link WireMetadata} object to add
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wiring.types.d.ts","sourceRoot":"","sources":["../../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