diff --git a/package-lock.json b/package-lock.json index 612b993..c8c08ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "packages/*" ], "devDependencies": { - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "eslint": "^8.40.0", "generate-license-file": "^2.0.0", "prettier": "^2.8.8", @@ -3229,10 +3229,11 @@ "link": true }, "node_modules/@yext/eslint-config": { - "version": "1.0.0", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@yext/eslint-config/-/eslint-config-1.0.1.tgz", + "integrity": "sha512-7Chb+vD4afxaC1khHSRF+LXu3I3FiJg0MnjZDAq4bXrb3kWLYY+CuX9kEadKFlrblU/ijy3dQUxbUI2BgV7oJQ==", "dev": true, "hasInstallScript": true, - "license": "BSD-3-Clause", "dependencies": { "eslint-config-prettier": "^8.5.0", "eslint-config-react-app": "^7.0.1" @@ -9354,7 +9355,7 @@ }, "packages/chat-core": { "name": "@yext/chat-core", - "version": "0.9.1", + "version": "0.9.2", "license": "BSD-3-Clause", "dependencies": { "cross-fetch": "^3.1.5" @@ -9366,7 +9367,7 @@ "@microsoft/api-extractor": "^7.34.8", "@types/jest": "^29.5.1", "@types/node-fetch": "^2.6.4", - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "babel-jest": "^29.5.0", "eslint": "^8.39.0", "generate-license-file": "^1.0.0", @@ -9380,7 +9381,7 @@ }, "packages/chat-core-aws-connect": { "name": "@yext/chat-core-aws-connect", - "version": "0.1.0", + "version": "0.1.1", "license": "BSD-3-Clause", "dependencies": { "amazon-connect-chatjs": "^2.3.0" @@ -9393,7 +9394,7 @@ "@types/jest": "^29.5.1", "@types/node-fetch": "^2.6.4", "@yext/chat-core": "^0.9.1", - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "babel-jest": "^29.5.0", "dotenv": "^16.4.5", "eslint": "^8.39.0", @@ -9560,7 +9561,7 @@ }, "packages/chat-core-zendesk": { "name": "@yext/chat-core-zendesk", - "version": "0.1.3", + "version": "0.2.1", "license": "BSD-3-Clause", "dependencies": { "smooch": "5.6.0" @@ -9573,7 +9574,7 @@ "@types/jest": "^29.5.1", "@types/smooch": "^5.3.7", "@yext/chat-core": "^0.9.1", - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "babel-jest": "^29.5.0", "eslint": "^8.39.0", "generate-license-file": "^1.0.0", diff --git a/package.json b/package.json index a438639..5cceb1c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "turbo run test --filter='./packages/*'" }, "devDependencies": { - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "eslint": "^8.40.0", "generate-license-file": "^2.0.0", "prettier": "^2.8.8", diff --git a/packages/chat-core-aws-connect/THIRD-PARTY-NOTICES b/packages/chat-core-aws-connect/THIRD-PARTY-NOTICES index 9956969..e5daf78 100644 --- a/packages/chat-core-aws-connect/THIRD-PARTY-NOTICES +++ b/packages/chat-core-aws-connect/THIRD-PARTY-NOTICES @@ -1,8 +1,7 @@ The following NPM packages may be included in this product: - - @babel/code-frame@7.25.7 - - @babel/helper-validator-identifier@7.25.7 - - @babel/highlight@7.25.7 + - @babel/code-frame@7.26.2 + - @babel/helper-validator-identifier@7.25.9 These packages each contain the following license and notice below: @@ -195,7 +194,7 @@ The following NPM packages may be included in this product: - @types/istanbul-lib-report@3.0.3 - @types/istanbul-reports@3.0.4 - @types/jsdom@20.0.1 - - @types/node@22.7.4 + - @types/node@22.9.0 - @types/stack-utils@2.0.3 - @types/tough-cookie@4.0.5 - @types/yargs-parser@21.0.3 @@ -351,7 +350,7 @@ THE SOFTWARE. The following NPM package may be included in this product: - - acorn@8.12.1 + - acorn@8.14.0 This package contains the following license and notice below: @@ -718,16 +717,12 @@ Apache License The following NPM packages may be included in this product: - - ansi-styles@3.2.1 - ansi-styles@4.3.0 - ansi-styles@5.2.0 - - chalk@2.4.2 - chalk@4.1.2 - escape-string-regexp@2.0.0 - - has-flag@3.0.0 - has-flag@4.0.0 - slash@3.0.0 - - supports-color@5.5.0 - supports-color@7.2.0 These packages each contain the following license and notice below: @@ -837,12 +832,11 @@ SOFTWARE. ----------- -The following NPM packages may be included in this product: +The following NPM package may be included in this product: - - color-convert@1.9.3 - color-convert@2.0.1 -These packages each contain the following license and notice below: +This package contains the following license and notice below: Copyright (c) 2011-2016 Heather Arthur @@ -867,12 +861,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------- -The following NPM packages may be included in this product: +The following NPM package may be included in this product: - - color-name@1.1.3 - color-name@1.1.4 -These packages each contain the following license and notice below: +This package contains the following license and notice below: The MIT License (MIT) Copyright (c) 2015 Dmitry Ivanov @@ -1161,36 +1154,6 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ----------- -The following NPM package may be included in this product: - - - escape-string-regexp@1.0.5 - -This package contains the following license and notice below: - -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - ------------ - The following NPM package may be included in this product: - escodegen@2.1.0 @@ -1282,7 +1245,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The following NPM package may be included in this product: - - form-data@4.0.0 + - form-data@4.0.1 This package contains the following license and notice below: @@ -1894,7 +1857,7 @@ OTHER DEALINGS IN THE SOFTWARE. The following NPM package may be included in this product: - - parse5@7.1.2 + - parse5@7.2.1 This package contains the following license and notice below: @@ -1922,7 +1885,7 @@ THE SOFTWARE. The following NPM package may be included in this product: - - picocolors@1.1.0 + - picocolors@1.1.1 This package contains the following license and notice below: @@ -1976,7 +1939,7 @@ THE SOFTWARE. The following NPM package may be included in this product: - - psl@1.9.0 + - psl@1.10.0 This package contains the following license and notice below: diff --git a/packages/chat-core-aws-connect/package.json b/packages/chat-core-aws-connect/package.json index e843f38..e334bb1 100644 --- a/packages/chat-core-aws-connect/package.json +++ b/packages/chat-core-aws-connect/package.json @@ -1,6 +1,6 @@ { "name": "@yext/chat-core-aws-connect", - "version": "0.1.0", + "version": "0.1.1", "description": "Typescript Networking Library for the Yext Chat API Integration with Amazon Connect", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.mjs", @@ -53,7 +53,7 @@ "@microsoft/api-extractor": "^7.34.8", "@types/jest": "^29.5.1", "@types/node-fetch": "^2.6.4", - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "babel-jest": "^29.5.0", "@yext/chat-core": "^0.9.1", "dotenv": "^16.4.5", diff --git a/packages/chat-core-zendesk/package.json b/packages/chat-core-zendesk/package.json index 4ae7c3c..01868c2 100644 --- a/packages/chat-core-zendesk/package.json +++ b/packages/chat-core-zendesk/package.json @@ -1,6 +1,6 @@ { "name": "@yext/chat-core-zendesk", - "version": "0.2.0", + "version": "0.2.1", "description": "Typescript Networking Library for the Yext Chat API Integration with Zendesk", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.mjs", @@ -57,7 +57,7 @@ "@types/jest": "^29.5.1", "@types/smooch": "^5.3.7", "@yext/chat-core": "^0.9.1", - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "babel-jest": "^29.5.0", "eslint": "^8.39.0", "generate-license-file": "^1.0.0", diff --git a/packages/chat-core-zendesk/src/infra/ChatCoreZendeskImpl.ts b/packages/chat-core-zendesk/src/infra/ChatCoreZendeskImpl.ts index e4f1a5d..8366341 100644 --- a/packages/chat-core-zendesk/src/infra/ChatCoreZendeskImpl.ts +++ b/packages/chat-core-zendesk/src/infra/ChatCoreZendeskImpl.ts @@ -65,7 +65,9 @@ export class ChatCoreZendeskImpl implements ChatCoreZendesk { * mode on the first invocation. Subsequent calls to this method will create a * new conversation session. */ - async init(messageRsp: MessageResponse): Promise { + async init( + messageRsp: MessageResponse + ): Promise { await this.initializeZendeskSdk(); return this.createZendeskConversation(messageRsp); } @@ -225,7 +227,9 @@ export class ChatCoreZendeskImpl implements ChatCoreZendesk { this.conversationId = undefined; } - async reinitializeSession(credentials: ChatCoreZendeskSessionCredentials): Promise { + async reinitializeSession( + credentials: ChatCoreZendeskSessionCredentials + ): Promise { this.conversationId = credentials.conversationId; await this.initializeZendeskSdk(); await Smooch.loadConversation(credentials.conversationId); diff --git a/packages/chat-core-zendesk/src/models/ChatCoreZendesk.ts b/packages/chat-core-zendesk/src/models/ChatCoreZendesk.ts index 8644f9a..72d5232 100644 --- a/packages/chat-core-zendesk/src/models/ChatCoreZendesk.ts +++ b/packages/chat-core-zendesk/src/models/ChatCoreZendesk.ts @@ -13,7 +13,9 @@ export interface ChatCoreZendesk { * * @param messageResponse - The response returned from a successful call to the Chat API. */ - init(messageResponse: MessageResponse): Promise; + init( + messageResponse: MessageResponse + ): Promise; /** * Register a callback for an event triggered within the Zendesk chat session. @@ -59,5 +61,7 @@ export interface ChatCoreZendesk { * * @param credentials - The credentials to use to reinitialize the session. */ - reinitializeSession(credentials: ChatCoreZendeskSessionCredentials): Promise; + reinitializeSession( + credentials: ChatCoreZendeskSessionCredentials + ): Promise; } diff --git a/packages/chat-core-zendesk/src/models/ChatCoreZendeskSessionCredentials.ts b/packages/chat-core-zendesk/src/models/ChatCoreZendeskSessionCredentials.ts index c147641..6490d15 100644 --- a/packages/chat-core-zendesk/src/models/ChatCoreZendeskSessionCredentials.ts +++ b/packages/chat-core-zendesk/src/models/ChatCoreZendeskSessionCredentials.ts @@ -1,7 +1,7 @@ /** * Credentials for the Zendesk session created by the {@link ChatCoreZendesk}. * Used for reinitializing the session across page reloads. - * + * * @public */ export interface ChatCoreZendeskSessionCredentials { @@ -9,4 +9,4 @@ export interface ChatCoreZendeskSessionCredentials { * The conversation ID for the current chat session. */ conversationId: string; -} \ No newline at end of file +} diff --git a/packages/chat-core-zendesk/tests/ChatCoreZendesk.test.ts b/packages/chat-core-zendesk/tests/ChatCoreZendesk.test.ts index 02faa7a..3c2c27d 100644 --- a/packages/chat-core-zendesk/tests/ChatCoreZendesk.test.ts +++ b/packages/chat-core-zendesk/tests/ChatCoreZendesk.test.ts @@ -63,7 +63,7 @@ describe("chat session initialization", () => { const chatCoreZendesk = provideChatCoreZendesk(mockConfig); await expect( chatCoreZendesk.init(mockMessageResponse()) - ).resolves.toStrictEqual({conversationId: "mock-conversation-id"}); + ).resolves.toStrictEqual({ conversationId: "mock-conversation-id" }); }); it("avoid rendering smooch web widget on subsequent initialization", async () => { diff --git a/packages/chat-core/package.json b/packages/chat-core/package.json index 3baa3e9..ad53868 100644 --- a/packages/chat-core/package.json +++ b/packages/chat-core/package.json @@ -1,6 +1,6 @@ { "name": "@yext/chat-core", - "version": "0.9.1", + "version": "0.9.2", "description": "Typescript Networking Library for the Yext Chat API", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.mjs", @@ -53,7 +53,7 @@ "@microsoft/api-extractor": "^7.34.8", "@types/jest": "^29.5.1", "@types/node-fetch": "^2.6.4", - "@yext/eslint-config": "^1.0.0", + "@yext/eslint-config": "^1.0.1", "babel-jest": "^29.5.0", "eslint": "^8.39.0", "generate-license-file": "^1.0.0",