From 6429ba438b370d90480e1d252acf9add63457aa1 Mon Sep 17 00:00:00 2001
From: EmilyZhang777 <48967088+EmilyZhang777@users.noreply.github.com>
Date: Fri, 5 May 2023 15:00:49 -0400
Subject: [PATCH 1/2] Use @yext/search-core 2.3.0-beta.1 (#149)
Use @yext/search-core 2.3.0-beta.1
This change updates @yext/search-core to the newest beta version which has the EU endpoints change.
J=BACK-2237
TEST=auto,manual
Ran "npm run test".
Manually updated test-site-node to point to an EU account and set the cloud region to EU. Verified I can get a response.
---
.gitignore | 3 +-
THIRD-PARTY-NOTICES | 2 +-
...eadless.autocompleteresult.inputintents.md | 13 ++++++
docs/search-headless.autocompleteresult.md | 1 +
...h-headless.basesearchconfig.cloudregion.md | 13 ++++++
...h-headless.basesearchconfig.environment.md | 13 ++++++
docs/search-headless.basesearchconfig.md | 7 ++-
docs/search-headless.cloudregion.md | 21 +++++++++
docs/search-headless.environment.md | 21 +++++++++
docs/search-headless.md | 5 +-
docs/search-headless.sandboxendpoints.md | 5 ++
...arch-headless.servingconfig.cloudregion.md | 13 ++++++
...arch-headless.servingconfig.environment.md | 13 ++++++
docs/search-headless.servingconfig.md | 21 +++++++++
etc/search-headless.api.md | 29 +++++++++++-
package-lock.json | 46 ++++++++-----------
package.json | 4 +-
src/search-core-re-exports.ts | 3 ++
test-site-node/package-lock.json | 7 ++-
19 files changed, 201 insertions(+), 39 deletions(-)
create mode 100644 docs/search-headless.autocompleteresult.inputintents.md
create mode 100644 docs/search-headless.basesearchconfig.cloudregion.md
create mode 100644 docs/search-headless.basesearchconfig.environment.md
create mode 100644 docs/search-headless.cloudregion.md
create mode 100644 docs/search-headless.environment.md
create mode 100644 docs/search-headless.servingconfig.cloudregion.md
create mode 100644 docs/search-headless.servingconfig.environment.md
create mode 100644 docs/search-headless.servingconfig.md
diff --git a/.gitignore b/.gitignore
index 316dff4f..5c2678af 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@ node_modules/
coverage/
dist/
temp/
-.DS_Store
\ No newline at end of file
+.DS_Store
+.idea/
\ No newline at end of file
diff --git a/THIRD-PARTY-NOTICES b/THIRD-PARTY-NOTICES
index 6a9eb6a5..93c50b48 100644
--- a/THIRD-PARTY-NOTICES
+++ b/THIRD-PARTY-NOTICES
@@ -62,7 +62,7 @@ SOFTWARE.
The following NPM package may be included in this product:
- - @yext/search-core@2.1.0
+ - @yext/search-core@2.3.0-beta.1
This package contains the following license and notice below:
diff --git a/docs/search-headless.autocompleteresult.inputintents.md b/docs/search-headless.autocompleteresult.inputintents.md
new file mode 100644
index 00000000..92bf8cb7
--- /dev/null
+++ b/docs/search-headless.autocompleteresult.inputintents.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [AutocompleteResult](./search-headless.autocompleteresult.md) > [inputIntents](./search-headless.autocompleteresult.inputintents.md)
+
+## AutocompleteResult.inputIntents property
+
+[SearchIntent](./search-headless.searchintent.md)s corresponding to the autocomplete result.
+
+Signature:
+
+```typescript
+inputIntents: SearchIntent[];
+```
diff --git a/docs/search-headless.autocompleteresult.md b/docs/search-headless.autocompleteresult.md
index 733b1a30..c1fe184c 100644
--- a/docs/search-headless.autocompleteresult.md
+++ b/docs/search-headless.autocompleteresult.md
@@ -17,6 +17,7 @@ export declare interface AutocompleteResult
| Property | Type | Description |
| --- | --- | --- |
| [filter?](./search-headless.autocompleteresult.filter.md) | [FieldValueFilter](./search-headless.fieldvaluefilter.md) | (Optional) A filter applied to the autocomplete response. |
+| [inputIntents](./search-headless.autocompleteresult.inputintents.md) | [SearchIntent](./search-headless.searchintent.md)\[\] | [SearchIntent](./search-headless.searchintent.md)s corresponding to the autocomplete result. |
| [key?](./search-headless.autocompleteresult.key.md) | string | (Optional) The fieldId which corresponds to the AutocompleteResult value. |
| [matchedSubstrings?](./search-headless.autocompleteresult.matchedsubstrings.md) | { length: number; offset: number; }\[\] | (Optional) An array of substrings which overlap with the autocomplete input. |
| [relatedItem?](./search-headless.autocompleteresult.relateditem.md) | [Result](./search-headless.result.md) | (Optional) An entity that corresponds to the autocomplete result. |
diff --git a/docs/search-headless.basesearchconfig.cloudregion.md b/docs/search-headless.basesearchconfig.cloudregion.md
new file mode 100644
index 00000000..1c68f972
--- /dev/null
+++ b/docs/search-headless.basesearchconfig.cloudregion.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [BaseSearchConfig](./search-headless.basesearchconfig.md) > [cloudRegion](./search-headless.basesearchconfig.cloudregion.md)
+
+## BaseSearchConfig.cloudRegion property
+
+Defines the cloud region of the API domains.
+
+Signature:
+
+```typescript
+cloudRegion?: CloudRegion;
+```
diff --git a/docs/search-headless.basesearchconfig.environment.md b/docs/search-headless.basesearchconfig.environment.md
new file mode 100644
index 00000000..45fe43d9
--- /dev/null
+++ b/docs/search-headless.basesearchconfig.environment.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [BaseSearchConfig](./search-headless.basesearchconfig.md) > [environment](./search-headless.basesearchconfig.environment.md)
+
+## BaseSearchConfig.environment property
+
+Defines the environment of the API domains.
+
+Signature:
+
+```typescript
+environment?: Environment;
+```
diff --git a/docs/search-headless.basesearchconfig.md b/docs/search-headless.basesearchconfig.md
index 9536ecfb..50100932 100644
--- a/docs/search-headless.basesearchconfig.md
+++ b/docs/search-headless.basesearchconfig.md
@@ -4,20 +4,23 @@
## BaseSearchConfig interface
-The base configuration options for [SearchCore](./search-headless.searchcore.md).
+The base configuration options for [SearchCore](./search-headless.searchcore.md), which includes the options from [ServingConfig](./search-headless.servingconfig.md).
Signature:
```typescript
-export declare interface BaseSearchConfig
+export declare interface BaseSearchConfig extends ServingConfig
```
+Extends: [ServingConfig](./search-headless.servingconfig.md)
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [additionalQueryParams?](./search-headless.basesearchconfig.additionalqueryparams.md) | { \[key: string\]: string \| number \| boolean; } | (Optional) Additional query params added on to every request. |
+| [cloudRegion?](./search-headless.basesearchconfig.cloudregion.md) | [CloudRegion](./search-headless.cloudregion.md) | (Optional) Defines the cloud region of the API domains. |
| [endpoints?](./search-headless.basesearchconfig.endpoints.md) | [Endpoints](./search-headless.endpoints.md) | (Optional) Overrides for the URLs which are used when making requests to the Search API. |
+| [environment?](./search-headless.basesearchconfig.environment.md) | [Environment](./search-headless.environment.md) | (Optional) Defines the environment of the API domains. |
| [experienceKey](./search-headless.basesearchconfig.experiencekey.md) | string | The experience key of the search experience. |
| [experienceVersion?](./search-headless.basesearchconfig.experienceversion.md) | 'STAGING' \| 'PRODUCTION' \| string \| number | (Optional) The version of the search experience configuration. |
| [locale](./search-headless.basesearchconfig.locale.md) | string | The locale of the search experience. |
diff --git a/docs/search-headless.cloudregion.md b/docs/search-headless.cloudregion.md
new file mode 100644
index 00000000..481aa52d
--- /dev/null
+++ b/docs/search-headless.cloudregion.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [CloudRegion](./search-headless.cloudregion.md)
+
+## CloudRegion enum
+
+Defines the cloud region of the API domains.
+
+Signature:
+
+```typescript
+export declare enum CloudRegion
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| EU | "eu"
| |
+| US | "us"
| |
+
diff --git a/docs/search-headless.environment.md b/docs/search-headless.environment.md
new file mode 100644
index 00000000..23f10259
--- /dev/null
+++ b/docs/search-headless.environment.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [Environment](./search-headless.environment.md)
+
+## Environment enum
+
+Defines the environment of the API domains.
+
+Signature:
+
+```typescript
+export declare enum Environment
+```
+
+## Enumeration Members
+
+| Member | Value | Description |
+| --- | --- | --- |
+| PROD | "prod"
| |
+| SANDBOX | "sbx"
| |
+
diff --git a/docs/search-headless.md b/docs/search-headless.md
index 7c6c4510..cf877e5f 100644
--- a/docs/search-headless.md
+++ b/docs/search-headless.md
@@ -18,8 +18,10 @@
| --- | --- |
| [AppliedQueryFilterType](./search-headless.appliedqueryfiltertype.md) | Represents the type of [AppliedQueryFilter](./search-headless.appliedqueryfilter.md) applied to a search. |
| [BuiltInFieldType](./search-headless.builtinfieldtype.md) | Possible built-in field types for [DirectAnswer.fieldType](./search-headless.directanswer.fieldtype.md). |
+| [CloudRegion](./search-headless.cloudregion.md) | Defines the cloud region of the API domains. |
| [DirectAnswerType](./search-headless.directanswertype.md) | Represents the type of direct answer. |
| [Direction](./search-headless.direction.md) | The direction of a sort. |
+| [Environment](./search-headless.environment.md) | Defines the environment of the API domains. |
| [ErrorType](./search-headless.errortype.md) | Identifier for the type of error causing the failure. |
| [FilterCombinator](./search-headless.filtercombinator.md) | Indicates how child filters in a [StaticFilter](./search-headless.staticfilter.md) should be combined. |
| [LocationBiasMethod](./search-headless.locationbiasmethod.md) | The method used to determine the location. |
@@ -58,7 +60,7 @@
| [AutocompleteService](./search-headless.autocompleteservice.md) | A service for autocomplete requests. |
| [BaseFeaturedSnippetDirectAnswer](./search-headless.basefeaturedsnippetdirectanswer.md) | A direct answer which was found within a document. |
| [BaseFieldValueDirectAnswer](./search-headless.basefieldvaluedirectanswer.md) | A direct answer where the answer came from a field from the knowledge graph. |
-| [BaseSearchConfig](./search-headless.basesearchconfig.md) | The base configuration options for [SearchCore](./search-headless.searchcore.md). |
+| [BaseSearchConfig](./search-headless.basesearchconfig.md) | The base configuration options for [SearchCore](./search-headless.searchcore.md), which includes the options from [ServingConfig](./search-headless.servingconfig.md). |
| [BoundedRange](./search-headless.boundedrange.md) | An interface representing a range of values of type T. |
| [ClientSDKHeaderValues](./search-headless.clientsdkheadervalues.md) | Additional agents and their versions used to create the Search experience. The information for these agents is added to the Client-SDK HTTP header along with that of the ANSWERS\_CORE agent. |
| [ComplexURL](./search-headless.complexurl.md) | The shape of a [BuiltInFieldType.ComplexURL](./search-headless.builtinfieldtype.md) DirectAnswer value |
@@ -119,6 +121,7 @@
| [SearchService](./search-headless.searchservice.md) | A service which performs Yext Search. |
| [SearchStatusState](./search-headless.searchstatusstate.md) | Maintains the status of the latest search. |
| [SelectableStaticFilter](./search-headless.selectablestaticfilter.md) | A [StaticFilter](./search-headless.staticfilter.md) with additional information, such as an optional display name and whether or not it is selected. |
+| [ServingConfig](./search-headless.servingconfig.md) | The configuration options for getting the endpoints. |
| [SessionTrackingState](./search-headless.sessiontrackingstate.md) | Maintains whether the user session should be tracked and, if so, the session information. |
| [Snippet](./search-headless.snippet.md) | The section of text where a [FeaturedSnippetDirectAnswer](./search-headless.featuredsnippetdirectanswer.md) was found. |
| [SortBy](./search-headless.sortby.md) | Represents a criterion that can be used to sort results. |
diff --git a/docs/search-headless.sandboxendpoints.md b/docs/search-headless.sandboxendpoints.md
index 8f0eb29c..24df82e8 100644
--- a/docs/search-headless.sandboxendpoints.md
+++ b/docs/search-headless.sandboxendpoints.md
@@ -4,6 +4,11 @@
## SandboxEndpoints variable
+> Warning: This API is now obsolete.
+>
+> Set the appropriate environment and cloud region in [ServingConfig](./search-headless.servingconfig.md) instead.
+>
+
The endpoints to use for sandbox experiences.
Signature:
diff --git a/docs/search-headless.servingconfig.cloudregion.md b/docs/search-headless.servingconfig.cloudregion.md
new file mode 100644
index 00000000..1864075a
--- /dev/null
+++ b/docs/search-headless.servingconfig.cloudregion.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [ServingConfig](./search-headless.servingconfig.md) > [cloudRegion](./search-headless.servingconfig.cloudregion.md)
+
+## ServingConfig.cloudRegion property
+
+Defines the cloud region of the API domains.
+
+Signature:
+
+```typescript
+cloudRegion?: CloudRegion;
+```
diff --git a/docs/search-headless.servingconfig.environment.md b/docs/search-headless.servingconfig.environment.md
new file mode 100644
index 00000000..9575e913
--- /dev/null
+++ b/docs/search-headless.servingconfig.environment.md
@@ -0,0 +1,13 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [ServingConfig](./search-headless.servingconfig.md) > [environment](./search-headless.servingconfig.environment.md)
+
+## ServingConfig.environment property
+
+Defines the environment of the API domains.
+
+Signature:
+
+```typescript
+environment?: Environment;
+```
diff --git a/docs/search-headless.servingconfig.md b/docs/search-headless.servingconfig.md
new file mode 100644
index 00000000..50b1d128
--- /dev/null
+++ b/docs/search-headless.servingconfig.md
@@ -0,0 +1,21 @@
+
+
+[Home](./index.md) > [@yext/search-headless](./search-headless.md) > [ServingConfig](./search-headless.servingconfig.md)
+
+## ServingConfig interface
+
+The configuration options for getting the endpoints.
+
+Signature:
+
+```typescript
+export declare interface ServingConfig
+```
+
+## Properties
+
+| Property | Type | Description |
+| --- | --- | --- |
+| [cloudRegion?](./search-headless.servingconfig.cloudregion.md) | [CloudRegion](./search-headless.cloudregion.md) | (Optional) Defines the cloud region of the API domains. |
+| [environment?](./search-headless.servingconfig.environment.md) | [Environment](./search-headless.environment.md) | (Optional) Defines the environment of the API domains. |
+
diff --git a/etc/search-headless.api.md b/etc/search-headless.api.md
index f6b691ba..cb1a3810 100644
--- a/etc/search-headless.api.md
+++ b/etc/search-headless.api.md
@@ -79,6 +79,7 @@ export interface AutocompleteResponse {
// @public
export interface AutocompleteResult {
filter?: FieldValueFilter;
+ inputIntents: SearchIntent[];
key?: string;
matchedSubstrings?: {
length: number;
@@ -113,11 +114,13 @@ export interface BaseFieldValueDirectAnswer extends DirectAnswer
}
// @public
-export interface BaseSearchConfig {
+export interface BaseSearchConfig extends ServingConfig {
additionalQueryParams?: {
[key: string]: string | number | boolean;
};
+ cloudRegion?: CloudRegion;
endpoints?: Endpoints;
+ environment?: Environment;
experienceKey: string;
experienceVersion?: 'STAGING' | 'PRODUCTION' | string | number;
locale: string;
@@ -172,6 +175,14 @@ export interface ClientSDKHeaderValues {
ANSWERS_CORE?: never;
}
+// @public
+export enum CloudRegion {
+ // (undocumented)
+ EU = "eu",
+ // (undocumented)
+ US = "us"
+}
+
// @public
export function combineStaticFilters(filterA: StaticFilter, filterB: StaticFilter, combinator: FilterCombinator): StaticFilter;
@@ -303,6 +314,14 @@ export interface Endpoints {
// @public
export type EnumOrLiteral = T | `${T}`;
+// @public
+export enum Environment {
+ // (undocumented)
+ PROD = "prod",
+ // (undocumented)
+ SANDBOX = "sbx"
+}
+
// @public
export enum ErrorType {
BackendError = "BACKEND_ERROR",
@@ -678,7 +697,7 @@ export interface RichTextSnippetDirectAnswer extends Omit;
}
-// @public
+// @public @deprecated
export const SandboxEndpoints: Required;
// @public
@@ -809,6 +828,12 @@ export interface SelectableStaticFilter {
selected: boolean;
}
+// @public
+export interface ServingConfig {
+ cloudRegion?: CloudRegion;
+ environment?: Environment;
+}
+
// @public
export interface SessionTrackingState {
enabled?: boolean;
diff --git a/package-lock.json b/package-lock.json
index c952c367..cad46b64 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,7 +10,7 @@
"license": "BSD-3-Clause",
"dependencies": {
"@reduxjs/toolkit": "^1.8.1",
- "@yext/search-core": "^2.1.0",
+ "@yext/search-core": "2.3.0-beta.1",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21"
},
@@ -4686,9 +4686,9 @@
}
},
"node_modules/@yext/search-core": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.1.0.tgz",
- "integrity": "sha512-zlR3es8AYWKowp+h5uAdvNyyy66xI3FBq6YA5RRF+47J/Zrg9JDM95O+GzkQD1c9yuy4aRDn+NB59f05VQwACQ==",
+ "version": "2.3.0-beta.1",
+ "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.3.0-beta.1.tgz",
+ "integrity": "sha512-qO8OC88ZftVLVxyylG0CxM/1Jf6xCVpztwDEKnDu/3lKw9Iq/zHZA7E487y1Ja2MraU6WuiMUNFYJpzYRLOcIw==",
"dependencies": {
"@babel/runtime-corejs3": "^7.12.5",
"cross-fetch": "^3.1.5"
@@ -10653,13 +10653,10 @@
"dev": true
},
"node_modules/json5": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
- "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
"dev": true,
- "dependencies": {
- "minimist": "^1.2.5"
- },
"bin": {
"json5": "lib/cli.js"
},
@@ -12526,9 +12523,9 @@
}
},
"node_modules/tsconfig-paths/node_modules/json5": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"dependencies": {
"minimist": "^1.2.0"
@@ -16349,9 +16346,9 @@
}
},
"@yext/search-core": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.1.0.tgz",
- "integrity": "sha512-zlR3es8AYWKowp+h5uAdvNyyy66xI3FBq6YA5RRF+47J/Zrg9JDM95O+GzkQD1c9yuy4aRDn+NB59f05VQwACQ==",
+ "version": "2.3.0-beta.1",
+ "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.3.0-beta.1.tgz",
+ "integrity": "sha512-qO8OC88ZftVLVxyylG0CxM/1Jf6xCVpztwDEKnDu/3lKw9Iq/zHZA7E487y1Ja2MraU6WuiMUNFYJpzYRLOcIw==",
"requires": {
"@babel/runtime-corejs3": "^7.12.5",
"cross-fetch": "^3.1.5"
@@ -20890,13 +20887,10 @@
"dev": true
},
"json5": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
- "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
- "dev": true,
- "requires": {
- "minimist": "^1.2.5"
- }
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true
},
"jsonfile": {
"version": "4.0.0",
@@ -22337,9 +22331,9 @@
},
"dependencies": {
"json5": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
"dev": true,
"requires": {
"minimist": "^1.2.0"
diff --git a/package.json b/package.json
index 41a77933..09952b80 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@yext/search-headless",
- "version": "2.2.0",
+ "version": "2.2.1-beta.0",
"description": "A library for powering UI components for Yext Search integrations",
"author": "slapshot@yext.com",
"license": "BSD-3-Clause",
@@ -29,7 +29,7 @@
},
"dependencies": {
"@reduxjs/toolkit": "^1.8.1",
- "@yext/search-core": "^2.1.0",
+ "@yext/search-core": "^2.3.0-beta.1",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21"
},
diff --git a/src/search-core-re-exports.ts b/src/search-core-re-exports.ts
index 9e605488..f617ab7a 100644
--- a/src/search-core-re-exports.ts
+++ b/src/search-core-re-exports.ts
@@ -15,12 +15,14 @@ export {
ConjunctionStaticFilter,
Context,
ClientSDKHeaderValues,
+ CloudRegion,
Direction,
DisjunctionStaticFilter,
DisplayableFacet,
DisplayableFacetOption,
Endpoints,
EnumOrLiteral,
+ Environment,
ErrorType,
FailedVertical,
Facet,
@@ -52,6 +54,7 @@ export {
SearchIntent,
SearchParameterField,
SearchService,
+ ServingConfig,
Snippet,
SortBy,
SortType,
diff --git a/test-site-node/package-lock.json b/test-site-node/package-lock.json
index 4e8b8319..3152d7e5 100644
--- a/test-site-node/package-lock.json
+++ b/test-site-node/package-lock.json
@@ -13,12 +13,11 @@
}
},
"..": {
- "name": "@yext/search-headless",
- "version": "2.0.0-alpha.130",
+ "version": "2.2.0",
"license": "BSD-3-Clause",
"dependencies": {
"@reduxjs/toolkit": "^1.8.1",
- "@yext/search-core": "^2.0.0-alpha.204",
+ "@yext/search-core": "2.3.0-beta.1",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21"
},
@@ -65,7 +64,7 @@
"@typescript-eslint/parser": "^5.16.0",
"@yext/eslint-config-slapshot": "^0.4.0",
"@yext/eslint-plugin-export-star": "^1.0.0",
- "@yext/search-core": "^2.0.0-alpha.204",
+ "@yext/search-core": "2.3.0-beta.1",
"babel-jest": "^27.4.5",
"eslint": "^8.11.0",
"eslint-config-react-app": "^7.0.1",
From f25d0823c01129c382357004202efecbec741213 Mon Sep 17 00:00:00 2001
From: cea2aj <42848445+cea2aj@users.noreply.github.com>
Date: Tue, 9 May 2023 10:30:02 -0400
Subject: [PATCH 2/2] Prepare version 2.3.0 (#150)
Bump the version number and search-core
version
J=none
TEST=none
---
.github/CODEOWNERS | 2 +-
THIRD-PARTY-NOTICES | 2 +-
package-lock.json | 18 +++++++++---------
package.json | 4 ++--
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 9712a9af..eb6e2e99 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -1 +1 @@
-* @yext/slapshot
\ No newline at end of file
+* @yext/backfire
\ No newline at end of file
diff --git a/THIRD-PARTY-NOTICES b/THIRD-PARTY-NOTICES
index 93c50b48..db9d15d8 100644
--- a/THIRD-PARTY-NOTICES
+++ b/THIRD-PARTY-NOTICES
@@ -62,7 +62,7 @@ SOFTWARE.
The following NPM package may be included in this product:
- - @yext/search-core@2.3.0-beta.1
+ - @yext/search-core@2.3.0
This package contains the following license and notice below:
diff --git a/package-lock.json b/package-lock.json
index cad46b64..f4a3e50d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,16 +1,16 @@
{
"name": "@yext/search-headless",
- "version": "2.2.0",
+ "version": "2.3.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@yext/search-headless",
- "version": "2.2.0",
+ "version": "2.3.0",
"license": "BSD-3-Clause",
"dependencies": {
"@reduxjs/toolkit": "^1.8.1",
- "@yext/search-core": "2.3.0-beta.1",
+ "@yext/search-core": "^2.3.0",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21"
},
@@ -4686,9 +4686,9 @@
}
},
"node_modules/@yext/search-core": {
- "version": "2.3.0-beta.1",
- "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.3.0-beta.1.tgz",
- "integrity": "sha512-qO8OC88ZftVLVxyylG0CxM/1Jf6xCVpztwDEKnDu/3lKw9Iq/zHZA7E487y1Ja2MraU6WuiMUNFYJpzYRLOcIw==",
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.3.0.tgz",
+ "integrity": "sha512-vSvNXWv9E/6s4oRB1og4zHfRTTEHrmUm2sh95Y1Dn94U2mkjNDGSsshEeamU2UIJO7Ee5oT6K6JDU7XAVOxC4A==",
"dependencies": {
"@babel/runtime-corejs3": "^7.12.5",
"cross-fetch": "^3.1.5"
@@ -16346,9 +16346,9 @@
}
},
"@yext/search-core": {
- "version": "2.3.0-beta.1",
- "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.3.0-beta.1.tgz",
- "integrity": "sha512-qO8OC88ZftVLVxyylG0CxM/1Jf6xCVpztwDEKnDu/3lKw9Iq/zHZA7E487y1Ja2MraU6WuiMUNFYJpzYRLOcIw==",
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@yext/search-core/-/search-core-2.3.0.tgz",
+ "integrity": "sha512-vSvNXWv9E/6s4oRB1og4zHfRTTEHrmUm2sh95Y1Dn94U2mkjNDGSsshEeamU2UIJO7Ee5oT6K6JDU7XAVOxC4A==",
"requires": {
"@babel/runtime-corejs3": "^7.12.5",
"cross-fetch": "^3.1.5"
diff --git a/package.json b/package.json
index 09952b80..2a9e9fc8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@yext/search-headless",
- "version": "2.2.1-beta.0",
+ "version": "2.3.0",
"description": "A library for powering UI components for Yext Search integrations",
"author": "slapshot@yext.com",
"license": "BSD-3-Clause",
@@ -29,7 +29,7 @@
},
"dependencies": {
"@reduxjs/toolkit": "^1.8.1",
- "@yext/search-core": "^2.3.0-beta.1",
+ "@yext/search-core": "^2.3.0",
"js-levenshtein": "^1.1.6",
"lodash": "^4.17.21"
},