@empathyco/x-components 8.8.0 → 8.9.0

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/docs/API-reference/api/x-components.hierarchicalfilter.md +1 -0
  3. package/docs/API-reference/api/x-components.simplefilter.md +1 -0
  4. package/docs/API-reference/api/x-components.snippetcallbacks.md +1 -0
  5. package/docs/API-reference/api/x-components.vendoractions.md +43 -0
  6. package/docs/API-reference/api/x-components.vendoractions.seturlparams.md +11 -0
  7. package/docs/API-reference/api/x-components.vendorgetters.md +43 -0
  8. package/docs/API-reference/api/x-components.vendorgetters.query.md +11 -0
  9. package/docs/API-reference/api/x-components.vendormutations.md +36 -1
  10. package/docs/API-reference/api/x-components.vendormutations.resetstate.md +11 -0
  11. package/docs/API-reference/api/x-components.vendormutations.setrelatedtags.md +11 -0
  12. package/docs/API-reference/api/x-components.vendorstate.md +19 -1
  13. package/docs/API-reference/api/x-components.vendorstate.relatedtags.md +11 -0
  14. package/docs/API-reference/api/x-components.vendorxevents.md +19 -0
  15. package/docs/API-reference/api/x-components.vendorxevents.vendorquerychanged.md +13 -0
  16. package/js/index.js +1 -1
  17. package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
  18. package/js/x-modules/url/components/url-handler.vue2.js +0 -3
  19. package/js/x-modules/url/components/url-handler.vue2.js.map +1 -1
  20. package/js/x-modules/vendor/store/actions/set-url-params.action.js +6 -0
  21. package/js/x-modules/vendor/store/actions/set-url-params.action.js.map +1 -0
  22. package/js/x-modules/vendor/store/emitters.js +3 -1
  23. package/js/x-modules/vendor/store/emitters.js.map +1 -1
  24. package/js/x-modules/vendor/store/getters/query.getter.js +8 -0
  25. package/js/x-modules/vendor/store/getters/query.getter.js.map +1 -0
  26. package/js/x-modules/vendor/store/module.js +34 -5
  27. package/js/x-modules/vendor/store/module.js.map +1 -1
  28. package/js/x-modules/vendor/wiring.js +53 -8
  29. package/js/x-modules/vendor/wiring.js.map +1 -1
  30. package/package.json +2 -2
  31. package/report/x-components.api.json +233 -9
  32. package/report/x-components.api.md +44 -6
  33. package/types/src/components/snippet-callbacks.vue.d.ts +1 -0
  34. package/types/src/components/snippet-callbacks.vue.d.ts.map +1 -1
  35. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts +1 -0
  36. package/types/src/x-modules/facets/components/filters/hierarchical-filter.vue.d.ts.map +1 -1
  37. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts +1 -0
  38. package/types/src/x-modules/facets/components/filters/simple-filter.vue.d.ts.map +1 -1
  39. package/types/src/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
  40. package/types/src/x-modules/vendor/events.types.d.ts +5 -0
  41. package/types/src/x-modules/vendor/events.types.d.ts.map +1 -1
  42. package/types/src/x-modules/vendor/store/actions/set-url-params.action.d.ts +3 -0
  43. package/types/src/x-modules/vendor/store/actions/set-url-params.action.d.ts.map +1 -0
  44. package/types/src/x-modules/vendor/store/emitters.d.ts +3 -1
  45. package/types/src/x-modules/vendor/store/emitters.d.ts.map +1 -1
  46. package/types/src/x-modules/vendor/store/getters/index.d.ts +2 -0
  47. package/types/src/x-modules/vendor/store/getters/index.d.ts.map +1 -0
  48. package/types/src/x-modules/vendor/store/getters/query.getter.d.ts +3 -0
  49. package/types/src/x-modules/vendor/store/getters/query.getter.d.ts.map +1 -0
  50. package/types/src/x-modules/vendor/store/module.d.ts +12 -0
  51. package/types/src/x-modules/vendor/store/module.d.ts.map +1 -1
  52. package/types/src/x-modules/vendor/store/types.d.ts +10 -2
  53. package/types/src/x-modules/vendor/store/types.d.ts.map +1 -1
  54. package/types/src/x-modules/vendor/wiring.d.ts +18 -3
  55. package/types/src/x-modules/vendor/wiring.d.ts.map +1 -1
  56. package/vendor/index.js +1 -1
@@ -200,6 +200,7 @@ declare const _default: import("vue").DefineComponent<{}, {
200
200
  VendorBannersChanged: (payload: Omit<import("..").VendorBanner, "modelName">[], metadata: WireMetadata) => unknown;
201
201
  UserViewedAVendorBanner: (payload: import("..").VendorBanner, metadata: WireMetadata) => unknown;
202
202
  UserClickedAVendorBanner: (payload: import("..").VendorBanner, metadata: WireMetadata) => unknown;
203
+ VendorQueryChanged: (payload: string, metadata: WireMetadata) => unknown;
203
204
  }>>;
204
205
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
205
206
  GlobalXBus: import("vue").DefineComponent<{}, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
1
+ {"version":3,"file":"snippet-callbacks.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../src/components/snippet-callbacks.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAO7C;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA0CE"}
@@ -225,6 +225,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
225
225
  VendorBannersChanged?: Omit<import("../../../vendor").VendorBanner, "modelName">[] | undefined;
226
226
  UserViewedAVendorBanner?: import("../../../vendor").VendorBanner | undefined;
227
227
  UserClickedAVendorBanner?: import("../../../vendor").VendorBanner | undefined;
228
+ VendorQueryChanged?: string | undefined;
228
229
  }>;
229
230
  innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
230
231
  renderedChildrenFilters: import("vue").ComputedRef<HierarchicalFilterModel[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
1
+ {"version":3,"file":"hierarchical-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/hierarchical-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AASnE;;;;GAIG;;IAMC,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAwDM,uBAAuB;;IA5EvE,iCAAiC;;cAEf,QAAQ,CAAC,uBAAuB,CAAC;;;IAGnD,+DAA+D;;IAE/D;;;;OAIG;iBACoB,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;IAG3D,0CAA0C;;IAE1C,0CAA0C;;;;;;;;AAzB9C,wBA+GE"}
@@ -215,6 +215,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
215
215
  VendorBannersChanged?: Omit<import("../../../vendor").VendorBanner, "modelName">[] | undefined;
216
216
  UserViewedAVendorBanner?: import("../../../vendor").VendorBanner | undefined;
217
217
  UserClickedAVendorBanner?: import("../../../vendor").VendorBanner | undefined;
218
+ VendorQueryChanged?: string | undefined;
218
219
  }>;
219
220
  innerCssClasses: import("vue").ComputedRef<(string | Dictionary<boolean>)[]>;
220
221
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
1
+ {"version":3,"file":"simple-filter.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAKnE;;;;GAIG;;IAOC,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAT3D,iCAAiC;;cAEf,QAAQ,CAAC,iBAAiB,CAAC;;;IAG7C,iFAAiF;iBAC1D,QAAQ,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtD,+BAA+B;;cAEd,QAAQ,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;;;;;;;;AAf/D,wBAsCE"}
@@ -1 +1 @@
1
- {"version":3,"file":"url-handler.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/components/url-handler.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;;wBAuL4B,mBAAmB;;;;;;;AAtLlD,wBA6VE"}
1
+ {"version":3,"file":"url-handler.vue?vue&type=script&lang.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/url/components/url-handler.vue?vue&type=script&lang.ts"],"names":[],"mappings":"AAqBA;;;;;;GAMG;;wBAuL4B,mBAAmB;;;;;;;AAtLlD,wBAuVE"}
@@ -42,5 +42,10 @@ export interface VendorXEvents {
42
42
  * Payload: The {@link VendorBanner | vendor banner} that was clicked.
43
43
  */
44
44
  UserClickedAVendorBanner: VendorBanner;
45
+ /**
46
+ * The vendor module query has changed.
47
+ * Payload: The new vendor query string.
48
+ */
49
+ VendorQueryChanged: string;
45
50
  }
46
51
  //# sourceMappingURL=events.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/vendor/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,oBAAoB,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,EAAE,CAAA;IACvD;;;OAGG;IACH,uBAAuB,EAAE,YAAY,CAAA;IACrC;;;OAGG;IACH,wBAAwB,EAAE,YAAY,CAAA;IACtC;;;OAGG;IACH,gCAAgC,EAAE,YAAY,CAAA;IAE9C;;;;OAIG;IACH,oBAAoB,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,EAAE,CAAA;IAEvD;;;OAGG;IACH,uBAAuB,EAAE,YAAY,CAAA;IACrC;;;OAGG;IACH,wBAAwB,EAAE,YAAY,CAAA;CACvC"}
1
+ {"version":3,"file":"events.types.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/vendor/events.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEzD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,oBAAoB,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,EAAE,CAAA;IACvD;;;OAGG;IACH,uBAAuB,EAAE,YAAY,CAAA;IACrC;;;OAGG;IACH,wBAAwB,EAAE,YAAY,CAAA;IACtC;;;OAGG;IACH,gCAAgC,EAAE,YAAY,CAAA;IAE9C;;;;OAIG;IACH,oBAAoB,EAAE,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC,EAAE,CAAA;IAEvD;;;OAGG;IACH,uBAAuB,EAAE,YAAY,CAAA;IACrC;;;OAGG;IACH,wBAAwB,EAAE,YAAY,CAAA;IAEtC;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAA;CAC3B"}
@@ -0,0 +1,3 @@
1
+ import type { VendorXStoreModule } from '../types';
2
+ export declare const setUrlParams: VendorXStoreModule['actions']['setUrlParams'];
3
+ //# sourceMappingURL=set-url-params.action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-url-params.action.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/vendor/store/actions/set-url-params.action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAElD,eAAO,MAAM,YAAY,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,cAAc,CAKtE,CAAA"}
@@ -3,5 +3,7 @@
3
3
  *
4
4
  * @internal
5
5
  */
6
- export declare const vendorEmitters: {};
6
+ export declare const vendorEmitters: {
7
+ VendorQueryChanged: (_: import("./types").VendorState, getters: import("../../..").Returns<import("../../../store").GettersTree<import("./types").VendorState, import("./types").VendorGetters>>) => string;
8
+ };
7
9
  //# sourceMappingURL=emitters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/vendor/store/emitters.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,cAAc,IAA8C,CAAA"}
1
+ {"version":3,"file":"emitters.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/vendor/store/emitters.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,cAAc;;CAEzB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { query } from './query.getter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/vendor/store/getters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { VendorXStoreModule } from '../types';
2
+ export declare const query: VendorXStoreModule['getters']['query'];
3
+ //# sourceMappingURL=query.getter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.getter.d.ts","sourceRoot":"","sources":["../../../../../../../src/x-modules/vendor/store/getters/query.getter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAGlD,eAAO,MAAM,KAAK,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC,OAAO,CAEvD,CAAA"}
@@ -1,3 +1,15 @@
1
1
  import type { VendorXStoreModule } from './types';
2
+ /**
3
+ * Function to return the "resettable" part of the state.
4
+ *
5
+ * @returns The "resettable" part of the {@link VendorState}.
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function resettableVendorState(): {
10
+ banners: never[];
11
+ relatedTags: never[];
12
+ results: never[];
13
+ };
2
14
  export declare const vendorXStoreModule: VendorXStoreModule;
3
15
  //# sourceMappingURL=module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/vendor/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAEjD,eAAO,MAAM,kBAAkB,EAAE,kBAehC,CAAA"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/vendor/store/module.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAKjD;;;;;;GAMG;AACH,wBAAgB,qBAAqB;;;;EAMpC;AAED,eAAO,MAAM,kBAAkB,EAAE,kBA0BhC,CAAA"}
@@ -1,16 +1,24 @@
1
+ import type { RelatedTag } from '@empathyco/x-types';
1
2
  import type { XStoreModule } from '../../../store';
3
+ import type { QueryMutations, QueryState } from '../../../store/utils/query.utils';
4
+ import type { UrlParams } from '../../../types';
2
5
  import type { VendorBanner, VendorResult } from '../types';
3
- export interface VendorState {
6
+ export interface VendorState extends QueryState {
4
7
  banners: VendorBanner[];
8
+ relatedTags: RelatedTag[];
5
9
  results: VendorResult[];
6
10
  }
7
11
  export interface VendorGetters {
12
+ query: string;
8
13
  }
9
- export interface VendorMutations {
14
+ export interface VendorMutations extends QueryMutations {
10
15
  setBanners: (banners: VendorBanner[]) => void;
16
+ setRelatedTags: (relatedTags: RelatedTag[]) => void;
11
17
  setResults: (results: VendorResult[]) => void;
18
+ resetState: () => void;
12
19
  }
13
20
  export interface VendorActions {
21
+ setUrlParams: (urlParams: UrlParams) => void;
14
22
  }
15
23
  export type VendorXStoreModule = XStoreModule<VendorState, VendorGetters, VendorMutations, VendorActions>;
16
24
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/vendor/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;IAC7C,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;CAC9C;AAED,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAC3C,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,CACd,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/x-modules/vendor/store/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE1D,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,WAAW,EAAE,UAAU,EAAE,CAAA;IACzB,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;IAC7C,cAAc,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACnD,UAAU,EAAE,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,IAAI,CAAA;IAC7C,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,CAAC,SAAS,EAAE,SAAS,KAAK,IAAI,CAAA;CAC7C;AAED,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAC3C,WAAW,EACX,aAAa,EACb,eAAe,EACf,aAAa,CACd,CAAA"}
@@ -16,6 +16,9 @@ export declare const setBanners: import("../../wiring").AnyWire;
16
16
  * @internal
17
17
  */
18
18
  export declare const vendorWiring: {
19
+ ParamsLoadedFromUrl: {
20
+ setUrlParams: import("../../wiring").Wire<import("../..").UrlParams>;
21
+ };
19
22
  VendorResultsChanged: {
20
23
  setResults: import("../../wiring").AnyWire;
21
24
  };
@@ -37,9 +40,21 @@ export declare const vendorWiring: {
37
40
  UserClickedAVendorBanner: {
38
41
  trackBannerClick: import("../../wiring").Wire<import("./types").VendorBanner>;
39
42
  };
40
- SearchRequestChanged: {
41
- resetResults: import("../../wiring").AnyWire;
42
- resetBanners: import("../../wiring").AnyWire;
43
+ SelectedRelatedTagsChanged: {
44
+ resetVendorState: import("../../wiring").AnyWire;
45
+ setVendorRelatedTags: import("../../wiring").Wire<import("@empathyco/x-types").RelatedTag[]>;
46
+ };
47
+ UserAcceptedAQuery: {
48
+ resetVendorState: import("../../wiring").AnyWire;
49
+ setVendorQuery: import("../../wiring").Wire<string>;
50
+ };
51
+ UserClearedQuery: {
52
+ resetVendorState: import("../../wiring").AnyWire;
53
+ resetVendorQuery: import("../../wiring").AnyWire;
54
+ };
55
+ UserBrowsedToCategory: {
56
+ resetVendorState: import("../../wiring").AnyWire;
57
+ resetVendorQuery: import("../../wiring").AnyWire;
43
58
  };
44
59
  };
45
60
  //# sourceMappingURL=wiring.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/vendor/wiring.ts"],"names":[],"mappings":"AA2BA;;;;GAIG;AACH,eAAO,MAAM,UAAU,gCAOtB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,gCAOtB,CAAA;AAgBD;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BvB,CAAA"}
1
+ {"version":3,"file":"wiring.d.ts","sourceRoot":"","sources":["../../../../../src/x-modules/vendor/wiring.ts"],"names":[],"mappings":"AA+CA;;;;GAIG;AACH,eAAO,MAAM,UAAU,gCAOtB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,gCAOtB,CAAA;AAqCD;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCvB,CAAA"}
package/vendor/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { default as VendorBannersList } from '../js/x-modules/vendor/components/vendor-banners-list.vue.js';
2
2
  export { default as VendorResultsList } from '../js/x-modules/vendor/components/vendor-results-list.vue.js';
3
3
  export { vendorEmitters } from '../js/x-modules/vendor/store/emitters.js';
4
- export { vendorXStoreModule } from '../js/x-modules/vendor/store/module.js';
4
+ export { resettableVendorState, vendorXStoreModule } from '../js/x-modules/vendor/store/module.js';
5
5
  export { setBanners, setResults, vendorWiring } from '../js/x-modules/vendor/wiring.js';
6
6
  export { vendorXModule } from '../js/x-modules/vendor/x-module.js';