@empathyco/x-components 3.0.1-alpha.2 → 3.0.1-alpha.4

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 CHANGED
@@ -3,6 +3,24 @@
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.1-alpha.4](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.1-alpha.3...@empathyco/x-components@3.0.1-alpha.4) (2023-10-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **x-plugin:** improve ResultFeature type values (#1344) ([c4c9f6e](https://github.com/empathyco/x/commit/c4c9f6e69d9f9f2a68619d6f10e918c649b42894))
12
+
13
+
14
+
15
+ ## [3.0.1-alpha.3](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.1-alpha.2...@empathyco/x-components@3.0.1-alpha.3) (2023-10-30)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * identation error in search-box.md ([614407e](https://github.com/empathyco/x/commit/614407e17a4f198e9c8ad11ca324a00ee7275fa6))
21
+
22
+
23
+
6
24
  ## [3.0.1-alpha.2](https://github.com/empathyco/x/compare/@empathyco/x-components@3.0.1-alpha.1...@empathyco/x-components@3.0.1-alpha.2) (2023-10-27)
7
25
 
8
26
 
@@ -9,5 +9,5 @@ The name of the tool that generated the results.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type ResultFeature = 'search' | 'recommendations' | 'next_query_results' | 'partial_results' | 'identifier_result' | 'brand_recommendations' | 'semantics';
12
+ export type ResultFeature = 'search' | 'topclicked_recommendations' | 'brand_recommendations' | 'next_query_recommendations' | 'semantic_recommendations' | 'partial_results' | 'identifier_result' | deprecatedFeatureNames;
13
13
  ```
@@ -6,9 +6,9 @@ tags:
6
6
  - search bar
7
7
  - search field
8
8
  - input
9
- redirect_from:
10
- - /explore-empathy-platform/experience-search-and-discovery/search-box.html
11
- - /explore-empathy-platform/experience-search-and-discovery/search-box
9
+ redirect_from:
10
+ - /explore-empathy-platform/experience-search-and-discovery/search-box.html
11
+ - /explore-empathy-platform/experience-search-and-discovery/search-box
12
12
  ---
13
13
 
14
14
  The Search Box UI Component is the main entry point for search where shoppers can type what
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@empathyco/x-components",
3
- "version": "3.0.1-alpha.2",
3
+ "version": "3.0.1-alpha.4",
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": "0d4d18330bf0f971d2a1877a8978e5b2deae7cca"
146
+ "gitHead": "2795898ff84002ecf4209485240b6317e4a43bed"
147
147
  }
@@ -44934,7 +44934,12 @@
44934
44934
  },
44935
44935
  {
44936
44936
  "kind": "Content",
44937
- "text": "'search' | 'recommendations' | 'next_query_results' | 'partial_results' | 'identifier_result' | 'brand_recommendations' | 'semantics'"
44937
+ "text": "'search' | 'topclicked_recommendations' | 'brand_recommendations' | 'next_query_recommendations' | 'semantic_recommendations' | 'partial_results' | 'identifier_result' | "
44938
+ },
44939
+ {
44940
+ "kind": "Reference",
44941
+ "text": "deprecatedFeatureNames",
44942
+ "canonicalReference": "@empathyco/x-components!~deprecatedFeatureNames:type"
44938
44943
  },
44939
44944
  {
44940
44945
  "kind": "Content",
@@ -44946,7 +44951,7 @@
44946
44951
  "name": "ResultFeature",
44947
44952
  "typeTokenRange": {
44948
44953
  "startIndex": 1,
44949
- "endIndex": 2
44954
+ "endIndex": 3
44950
44955
  }
44951
44956
  },
44952
44957
  {
@@ -4226,8 +4226,10 @@ export function resettableState(): {
4226
4226
  // @internal
4227
4227
  export const RESULT_WITH_VARIANTS_KEY: XInjectKey<Result>;
4228
4228
 
4229
+ // Warning: (ae-forgotten-export) The symbol "deprecatedFeatureNames" needs to be exported by the entry point index.d.ts
4230
+ //
4229
4231
  // @public
4230
- export type ResultFeature = 'search' | 'recommendations' | 'next_query_results' | 'partial_results' | 'identifier_result' | 'brand_recommendations' | 'semantics';
4232
+ export type ResultFeature = 'search' | 'topclicked_recommendations' | 'brand_recommendations' | 'next_query_recommendations' | 'semantic_recommendations' | 'partial_results' | 'identifier_result' | deprecatedFeatureNames;
4231
4233
 
4232
4234
  // @public
4233
4235
  export type ResultOrigin = `${ResultFeature}:${FeatureLocation}`;
@@ -19,12 +19,16 @@ export type ResultOrigin = `${ResultFeature}:${FeatureLocation}`;
19
19
  * @public
20
20
  */
21
21
  export type QueryFeature = 'search_box' | 'url' | 'query_suggestion' | 'next_query' | 'popular_search' | 'history_query' | 'partial_result' | 'related_tag' | 'spellcheck' | 'customer' | 'semantics';
22
+ /**
23
+ * @deprecated Use other features instead.
24
+ */
25
+ type deprecatedFeatureNames = 'recommendations' | 'next_query_results' | 'semantics';
22
26
  /**
23
27
  * The name of the tool that generated the results.
24
28
  *
25
29
  * @public
26
30
  */
27
- export type ResultFeature = 'search' | 'recommendations' | 'next_query_results' | 'partial_results' | 'identifier_result' | 'brand_recommendations' | 'semantics';
31
+ export type ResultFeature = 'search' | 'topclicked_recommendations' | 'brand_recommendations' | 'next_query_recommendations' | 'semantic_recommendations' | 'partial_results' | 'identifier_result' | deprecatedFeatureNames;
28
32
  /**
29
33
  * Indicates where the feature is placed.
30
34
  *
@@ -43,4 +47,5 @@ export type FeatureLocation = 'external' | 'my_history' | 'no_query' | 'results'
43
47
  * @public
44
48
  */
45
49
  export type QueryOriginInit = Partial<Pick<WireMetadata, 'feature' | 'location'>>;
50
+ export {};
46
51
  //# sourceMappingURL=origin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"origin.d.ts","sourceRoot":"","sources":["../../../src/types/origin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,WAAW,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