@empathyco/x-components 6.0.0-alpha.22 → 6.0.0-alpha.23

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 (86) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/core/index.js +3 -0
  3. package/core/index.js.map +1 -1
  4. package/design-system/deprecated-full-theme.css +2872 -2872
  5. package/docs/API-reference/api/x-components.configmutations.config.md +11 -0
  6. package/docs/API-reference/api/x-components.configmutations.md +29 -0
  7. package/docs/API-reference/api/x-components.configmutations.mergeconfig.md +24 -0
  8. package/docs/API-reference/api/x-components.configmutations.setconfig.md +24 -0
  9. package/docs/API-reference/api/x-components.createrelatedtagsquerygetter.md +26 -0
  10. package/docs/API-reference/api/x-components.createrelatedtagsquerygetteroptions.getrelatedtags.md +13 -0
  11. package/docs/API-reference/api/x-components.createrelatedtagsquerygetteroptions.md +20 -0
  12. package/docs/API-reference/api/x-components.empathizemutations.md +1 -1
  13. package/docs/API-reference/api/x-components.facetsmutations.md +1 -1
  14. package/docs/API-reference/api/x-components.historyqueriesmutations.md +1 -1
  15. package/docs/API-reference/api/x-components.historyqueriesstate.md +1 -1
  16. package/docs/API-reference/api/x-components.identifierresultsmutations.md +1 -1
  17. package/docs/API-reference/api/x-components.identifierresultsstate.md +1 -1
  18. package/docs/API-reference/api/x-components.md +8 -0
  19. package/docs/API-reference/api/x-components.mergeconfig.md +27 -0
  20. package/docs/API-reference/api/x-components.nextqueriesmutations.md +1 -1
  21. package/docs/API-reference/api/x-components.nextqueriesstate.md +1 -1
  22. package/docs/API-reference/api/x-components.popularsearchesmutations.md +1 -1
  23. package/docs/API-reference/api/x-components.queriespreviewmutations.md +1 -1
  24. package/docs/API-reference/api/x-components.querymutations.md +20 -0
  25. package/docs/API-reference/api/x-components.querymutations.setquery.md +24 -0
  26. package/docs/API-reference/api/x-components.querystate.md +20 -0
  27. package/docs/API-reference/api/x-components.querystate.query.md +13 -0
  28. package/docs/API-reference/api/x-components.querysuggestionsmutations.md +1 -1
  29. package/docs/API-reference/api/x-components.querysuggestionsstate.md +1 -1
  30. package/docs/API-reference/api/x-components.recommendationsmutations.md +1 -1
  31. package/docs/API-reference/api/x-components.relatedpromptsmutations.md +1 -1
  32. package/docs/API-reference/api/x-components.relatedpromptsstate.md +1 -1
  33. package/docs/API-reference/api/x-components.relatedtagsmutations.md +1 -1
  34. package/docs/API-reference/api/x-components.relatedtagsstate.md +1 -1
  35. package/docs/API-reference/api/x-components.searchboxmutations.md +1 -1
  36. package/docs/API-reference/api/x-components.searchboxstate.md +1 -1
  37. package/docs/API-reference/api/x-components.searchmutations.md +1 -1
  38. package/docs/API-reference/api/x-components.searchstate.md +1 -1
  39. package/docs/API-reference/api/x-components.semanticqueriesmutations.md +1 -1
  40. package/docs/API-reference/api/x-components.semanticqueriesstate.md +1 -1
  41. package/docs/API-reference/api/x-components.setconfig.md +27 -0
  42. package/docs/API-reference/api/x-components.setquery.md +25 -0
  43. package/docs/API-reference/api/x-components.taggingmutations.md +1 -1
  44. package/docs/API-reference/api/x-components.urlmutations.md +1 -1
  45. package/docs/API-reference/api/x-components.urlstate.md +1 -1
  46. package/js/index.js +3 -0
  47. package/js/index.js.map +1 -1
  48. package/js/x-modules/device/store/emitters.js +1 -0
  49. package/js/x-modules/device/store/emitters.js.map +1 -1
  50. package/js/x-modules/empathize/store/emitters.js +1 -0
  51. package/js/x-modules/empathize/store/emitters.js.map +1 -1
  52. package/js/x-modules/experience-controls/store/emitters.js +1 -0
  53. package/js/x-modules/experience-controls/store/emitters.js.map +1 -1
  54. package/js/x-modules/extra-params/store/emitters.js +1 -0
  55. package/js/x-modules/extra-params/store/emitters.js.map +1 -1
  56. package/js/x-modules/history-queries/store/emitters.js +1 -0
  57. package/js/x-modules/history-queries/store/emitters.js.map +1 -1
  58. package/js/x-modules/identifier-results/store/emitters.js +1 -0
  59. package/js/x-modules/identifier-results/store/emitters.js.map +1 -1
  60. package/js/x-modules/next-queries/store/emitters.js +1 -0
  61. package/js/x-modules/next-queries/store/emitters.js.map +1 -1
  62. package/js/x-modules/queries-preview/store/emitters.js +1 -0
  63. package/js/x-modules/queries-preview/store/emitters.js.map +1 -1
  64. package/js/x-modules/query-suggestions/store/emitters.js +1 -0
  65. package/js/x-modules/query-suggestions/store/emitters.js.map +1 -1
  66. package/js/x-modules/recommendations/store/emitters.js +1 -0
  67. package/js/x-modules/recommendations/store/emitters.js.map +1 -1
  68. package/js/x-modules/related-prompts/store/emitters.js +1 -0
  69. package/js/x-modules/related-prompts/store/emitters.js.map +1 -1
  70. package/js/x-modules/related-tags/store/emitters.js +1 -0
  71. package/js/x-modules/related-tags/store/emitters.js.map +1 -1
  72. package/js/x-modules/scroll/store/emitters.js +1 -0
  73. package/js/x-modules/scroll/store/emitters.js.map +1 -1
  74. package/js/x-modules/search/store/emitters.js +1 -0
  75. package/js/x-modules/search/store/emitters.js.map +1 -1
  76. package/js/x-modules/search/store/module.js +2 -1
  77. package/js/x-modules/search/store/module.js.map +1 -1
  78. package/js/x-modules/search-box/store/emitters.js +1 -0
  79. package/js/x-modules/search-box/store/emitters.js.map +1 -1
  80. package/js/x-modules/url/store/emitters.js +1 -0
  81. package/js/x-modules/url/store/emitters.js.map +1 -1
  82. package/package.json +2 -2
  83. package/report/x-components.api.json +690 -34
  84. package/report/x-components.api.md +49 -7
  85. package/types/store/index.d.ts +4 -1
  86. package/types/store/index.d.ts.map +1 -1
@@ -1638,6 +1638,9 @@ export { ChevronTinyUpIcon }
1638
1638
 
1639
1639
  export { ChevronUpIcon }
1640
1640
 
1641
+ // @internal
1642
+ export function cleanGettersProxyCache(): void;
1643
+
1641
1644
  // @public
1642
1645
  export const ClearFilters: DefineComponent< {
1643
1646
  facetsIds: PropType<(string | number)[]>;
@@ -1749,6 +1752,14 @@ default: boolean;
1749
1752
  appear: boolean;
1750
1753
  }, {}>;
1751
1754
 
1755
+ // @public
1756
+ export interface ConfigMutations<T extends {
1757
+ config: T['config'];
1758
+ }> {
1759
+ mergeConfig(config: T['config']): void;
1760
+ setConfig(config: T['config']): void;
1761
+ }
1762
+
1752
1763
  export { CornerArrowLeft }
1753
1764
 
1754
1765
  export { CornerArrowRight }
@@ -1770,6 +1781,15 @@ export function createOrigin({ feature, location }: QueryOriginInit): QueryOrigi
1770
1781
  // @public
1771
1782
  export function createRawFilters(filterIds: Array<Filter['id']>): RawFilter[];
1772
1783
 
1784
+ // @public
1785
+ export function createRelatedTagsQueryGetter<State extends QueryState, Getters>({ getRelatedTags }: CreateRelatedTagsQueryGetterOptions<State, Getters>): (state: State, getters: Getters) => string;
1786
+
1787
+ // @public
1788
+ export interface CreateRelatedTagsQueryGetterOptions<State, Getters> {
1789
+ // Warning: (ae-forgotten-export) The symbol "RelatedTag_2" needs to be exported by the entry point index.d.ts
1790
+ getRelatedTags: (state: State, getters: Getters) => RelatedTag_2[];
1791
+ }
1792
+
1773
1793
  // Warning: (ae-forgotten-export) The symbol "Taggable" needs to be exported by the entry point index.d.ts
1774
1794
  //
1775
1795
  // @public
@@ -2182,8 +2202,6 @@ export const empathizeEmitters: {};
2182
2202
  export interface EmpathizeGetters {
2183
2203
  }
2184
2204
 
2185
- // Warning: (ae-forgotten-export) The symbol "ConfigMutations" needs to be exported by the entry point index.d.ts
2186
- //
2187
2205
  // @public
2188
2206
  export interface EmpathizeMutations extends ConfigMutations<EmpathizeState> {
2189
2207
  setIsOpen(isOpen: boolean): void;
@@ -2512,8 +2530,6 @@ export interface FacetsGroup {
2512
2530
  id: string;
2513
2531
  }
2514
2532
 
2515
- // Warning: (ae-forgotten-export) The symbol "QueryMutations" needs to be exported by the entry point index.d.ts
2516
- //
2517
2533
  // @public
2518
2534
  export interface FacetsMutations extends QueryMutations, ConfigMutations<FacetsState> {
2519
2535
  clearStickyFilters(): void;
@@ -2989,6 +3005,12 @@ export function getActiveElement(root?: Document | ShadowRoot): Element | null;
2989
3005
  // @public
2990
3006
  export function getGetterPath<ModuleName extends XModuleName>(moduleName: ModuleName, getterName: keyof ExtractGetters<ModuleName>): string;
2991
3007
 
3008
+ // @internal
3009
+ export function getGettersProxy<ModuleName extends XModuleName>(getters: Dictionary, moduleName: ModuleName): ExtractGetters<ModuleName>;
3010
+
3011
+ // @internal
3012
+ export function getGettersProxyFromModule<ModuleName extends XModuleName>(getters: Dictionary, moduleName: ModuleName, storeModule: AnyXStoreModule): ExtractGetters<ModuleName>;
3013
+
2992
3014
  // @public
2993
3015
  export function getRootXComponent(component: ComponentPublicInstance | null): ComponentPublicInstance | undefined;
2994
3016
 
@@ -3723,8 +3745,6 @@ export interface HistoryQueriesMutations extends QueryMutations, ConfigMutations
3723
3745
  setSessionTimeStamp(timeStamp: number): void;
3724
3746
  }
3725
3747
 
3726
- // Warning: (ae-forgotten-export) The symbol "QueryState" needs to be exported by the entry point index.d.ts
3727
- //
3728
3748
  // @public
3729
3749
  export interface HistoryQueriesState extends QueryState {
3730
3750
  config: HistoryQueriesConfig;
@@ -4272,6 +4292,11 @@ export type MaybeArray<Something> = Something | Array<Something>;
4272
4292
 
4273
4293
  export { MenuIcon }
4274
4294
 
4295
+ // @public
4296
+ export function mergeConfig<T extends {
4297
+ config: T['config'];
4298
+ }>(state: T, config: Partial<T['config']>): void;
4299
+
4275
4300
  export { MinusIcon }
4276
4301
 
4277
4302
  export { MinusTinyIcon }
@@ -5107,6 +5132,11 @@ export const QUERY_KEY: XInjectKey<string | undefined>;
5107
5132
  // @public
5108
5133
  export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck' | 'customer' | 'semantics';
5109
5134
 
5135
+ // @public
5136
+ export interface QueryMutations {
5137
+ setQuery(query: string): void;
5138
+ }
5139
+
5110
5140
  // @public
5111
5141
  export type QueryOrigin = `${QueryFeature}:${FeatureLocation}`;
5112
5142
 
@@ -5269,6 +5299,11 @@ export interface QueryPreviewStatusPayload {
5269
5299
  status: RequestStatus;
5270
5300
  }
5271
5301
 
5302
+ // @public
5303
+ export interface QueryState {
5304
+ query: string;
5305
+ }
5306
+
5272
5307
  // @public
5273
5308
  export const QuerySuggestion: DefineComponent< {
5274
5309
  suggestion: {
@@ -6900,6 +6935,11 @@ required: true;
6900
6935
  // @public
6901
6936
  export const sessionHistoryQueries: HistoryQueriesXStoreModule['getters']['sessionHistoryQueries'];
6902
6937
 
6938
+ // @public
6939
+ export function setConfig<T extends {
6940
+ config: T['config'];
6941
+ }>(state: T, config: T['config']): void;
6942
+
6903
6943
  // @public
6904
6944
  export const setConsent: Wire<boolean>;
6905
6945
 
@@ -6972,6 +7012,9 @@ export const setPopularSearchesExtraParams: Wire<Dictionary<unknown>>;
6972
7012
  // @public
6973
7013
  export const setQueriesPreviewExtraParamsWire: Wire<Dictionary<unknown>>;
6974
7014
 
7015
+ // @public
7016
+ export function setQuery(state: QueryState, query: string): void;
7017
+
6975
7018
  // @public
6976
7019
  export const setQueryFromLastHistoryQuery: NextQueriesXStoreModule['actions']['setQueryFromLastHistoryQuery'];
6977
7020
 
@@ -8884,7 +8927,6 @@ export type XStoreModuleOptions<StoreModule extends AnyXStoreModule> = StoreModu
8884
8927
  // dist/types/components/filters/labels/base-rating-filter-label.vue.d.ts:16:9 - (ae-forgotten-export) The symbol "BooleanFilter" needs to be exported by the entry point index.d.ts
8885
8928
  // dist/types/components/global-x-bus.vue.d.ts:38:17 - (ae-forgotten-export) The symbol "ResultVariant" needs to be exported by the entry point index.d.ts
8886
8929
  // dist/types/components/global-x-bus.vue.d.ts:86:13 - (ae-forgotten-export) The symbol "NextQuery_2" needs to be exported by the entry point index.d.ts
8887
- // dist/types/components/global-x-bus.vue.d.ts:109:13 - (ae-forgotten-export) The symbol "RelatedTag_2" needs to be exported by the entry point index.d.ts
8888
8930
  // dist/types/components/global-x-bus.vue.d.ts:149:13 - (ae-forgotten-export) The symbol "Redirection_2" needs to be exported by the entry point index.d.ts
8889
8931
  // dist/types/components/global-x-bus.vue.d.ts:150:13 - (ae-forgotten-export) The symbol "Promoted_2" needs to be exported by the entry point index.d.ts
8890
8932
  // dist/types/components/global-x-bus.vue.d.ts:154:13 - (ae-forgotten-export) The symbol "SemanticQuery_2" needs to be exported by the entry point index.d.ts
@@ -1,7 +1,10 @@
1
1
  export * from './actions.types';
2
- export * from './utils/fetch-and-save-action.utils';
3
2
  export * from './getters.types';
4
3
  export * from './mutations.types';
4
+ export * from './utils/config-store.utils';
5
+ export * from './utils/fetch-and-save-action.utils';
6
+ export * from './utils/getters-proxy.utils';
7
+ export * from './utils/query.utils';
5
8
  export * from './utils/status-store.utils';
6
9
  export * from './utils/store-emitters.utils';
7
10
  export * from './store.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,qCAAqC,CAAC;AACpD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC"}