-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for new locationOverride field (#47)
- Loading branch information
1 parent
ef7d6a9
commit 26245ae
Showing
11 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
## Testing Process | ||
|
||
### Unit Testing | ||
|
||
We use Jest as our framework for unit tests. Execute the unit tests with the following command: | ||
|
||
``` | ||
npm run test | ||
``` | ||
|
||
### Test Environments | ||
|
||
The `chat-core-aws-connect` library is designed to be compatible with both CommonJS and ES6 import styles. Additionally, it should function properly in browser environments. To ensure this, we have set up a shared testing environment: | ||
|
||
- **Browser ESM Test Site:** For more information, refer to the README.md file located in the `test-sites/test-browser-esm` directory. | ||
|
||
## Build Process | ||
|
||
Before initiating the build, run the linting process to identify and address any errors or warnings. Use the following command: | ||
|
||
``` | ||
npm run lint | ||
``` | ||
|
||
To build the library, execute: | ||
|
||
``` | ||
npm run build | ||
``` | ||
This will create the bundle in the `/dist` directory. This command will also generate documentation files and the `THIRD-PARTY-NOTICES` file. | ||
|
||
|
||
This will create the bundle in the `/dist` directory. This command will also generate documentation files and the `THIRD-PARTY-NOTICES` file. | ||
|
||
For guidelines on pull request and version publish process, visit Chat SDK wiki page. | ||
For guidelines on pull request and version publish process, visit Chat SDK wiki page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/chat-core/docs/chat-core.chatconfig.locationoverride.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@yext/chat-core](./chat-core.md) > [ChatConfig](./chat-core.chatconfig.md) > [locationOverride](./chat-core.chatconfig.locationoverride.md) | ||
|
||
## ChatConfig.locationOverride property | ||
|
||
An optional location override to use instead of the user's provided location. | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
locationOverride?: { | ||
latitude: number; | ||
longitude: number; | ||
}; | ||
``` | ||
|
||
## Remarks | ||
|
||
If provided, Search steps will not attempt to infer the location from the request data and will use this latitude and longitude instead. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters