Skip to content

Commit 065bbac

Browse files
committed
Merge branch 'main' into snyk-upgrade-858a01a0696777827e13afed1ad4daff
2 parents b089156 + 1f756b9 commit 065bbac

33 files changed

+464
-268
lines changed

OSS_LICENSES.txt

+42-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Created on 07-08-2024 at 16:11:49
1+
Created on 29-08-2024 at 11:10:23
22

33
{
44
"@babel/code-frame@7.24.2": {
@@ -63,19 +63,19 @@ Created on 07-08-2024 at 16:11:49
6363
"licenseFile": "node_modules/@braintree/sanitize-url/LICENSE",
6464
"copyright": "Copyright (c) 2017 Braintree"
6565
},
66-
"@cognigy/chat-components@0.29.0": {
66+
"@cognigy/chat-components@0.33.1": {
6767
"licenses": "MIT*",
6868
"licenseFile": "node_modules/@cognigy/chat-components/LICENSE",
6969
"copyright": "Copyright (c) 2024 Cognigy GmbH"
7070
},
71-
"@cognigy/socket-client@5.0.0-beta.17": {
71+
"@cognigy/socket-client@5.0.0-beta.20": {
7272
"licenses": "MIT*",
7373
"publisher": "Robin Schuster",
7474
"email": "r.schuster@cognigy.com",
7575
"licenseFile": "node_modules/@cognigy/socket-client/LICENSE",
7676
"copyright": "Copyright (c) 2019 Cognigy GmbH"
7777
},
78-
"@cognigy/webchat@3.0.0": {
78+
"@cognigy/webchat@3.3.0": {
7979
"licenses": "MIT*",
8080
"publisher": "Cognigy GmbH",
8181
"email": "info@cognigy.com",
@@ -213,6 +213,27 @@ Created on 07-08-2024 at 16:11:49
213213
"licenseFile": "node_modules/@emotion/react/node_modules/@emotion/weak-memoize/LICENSE",
214214
"copyright": "Copyright (c) Emotion team and other contributors"
215215
},
216+
"@floating-ui/core@1.6.7": {
217+
"licenses": "MIT",
218+
"repository": "https://github.com/floating-ui/floating-ui",
219+
"publisher": "atomiks",
220+
"licenseFile": "node_modules/@floating-ui/core/LICENSE",
221+
"copyright": "Copyright (c) 2021-present Floating UI contributors"
222+
},
223+
"@floating-ui/dom@1.6.10": {
224+
"licenses": "MIT",
225+
"repository": "https://github.com/floating-ui/floating-ui",
226+
"publisher": "atomiks",
227+
"licenseFile": "node_modules/@floating-ui/dom/LICENSE",
228+
"copyright": "Copyright (c) 2021-present Floating UI contributors"
229+
},
230+
"@floating-ui/utils@0.2.7": {
231+
"licenses": "MIT",
232+
"repository": "https://github.com/floating-ui/floating-ui",
233+
"publisher": "atomiks",
234+
"licenseFile": "node_modules/@floating-ui/utils/LICENSE",
235+
"copyright": "Copyright (c) 2021-present Floating UI contributors"
236+
},
216237
"@fontsource/figtree@5.0.19": {
217238
"licenses": "OFL-1.1",
218239
"repository": "https://github.com/fontsource/font-files",
@@ -228,7 +249,7 @@ Created on 07-08-2024 at 16:11:49
228249
"licenseFile": "node_modules/@reduxjs/toolkit/LICENSE",
229250
"copyright": "Copyright (c) 2018 Mark Erikson"
230251
},
231-
"@socket.io/component-emitter@3.1.0": {
252+
"@socket.io/component-emitter@3.1.2": {
232253
"licenses": "MIT",
233254
"repository": "https://github.com/socketio/emitter",
234255
"licenseFile": "node_modules/@socket.io/component-emitter/LICENSE",
@@ -457,7 +478,7 @@ Created on 07-08-2024 at 16:11:49
457478
"licenseFile": "node_modules/aws4/LICENSE",
458479
"copyright": "Copyright 2013 Michael Hart (michael.hart.au@gmail.com)"
459480
},
460-
"axios@1.6.4": {
481+
"axios@1.7.4": {
461482
"licenses": "MIT",
462483
"repository": "https://github.com/axios/axios",
463484
"publisher": "Matt Zabriskie",
@@ -906,17 +927,17 @@ Created on 07-08-2024 at 16:11:49
906927
"licenseFile": "node_modules/end-of-stream/LICENSE",
907928
"copyright": "Copyright (c) 2014 Mathias Buus"
908929
},
909-
"engine.io-client@6.5.3": {
930+
"engine.io-client@6.5.4": {
910931
"licenses": "MIT",
911932
"repository": "https://github.com/socketio/engine.io-client",
912933
"licenseFile": "node_modules/engine.io-client/LICENSE",
913934
"copyright": "Copyright (c) 2014-2015 Automattic <dev@cloudup.com>"
914935
},
915-
"engine.io-parser@5.2.2": {
936+
"engine.io-parser@5.2.3": {
916937
"licenses": "MIT",
917-
"repository": "https://github.com/socketio/engine.io-parser",
938+
"repository": "https://github.com/socketio/socket.io",
918939
"licenseFile": "node_modules/engine.io-parser/LICENSE",
919-
"copyright": "Copyright (c) 2016 Guillermo Rauch (@rauchg)"
940+
"copyright": "Copyright (c) 2014-present Guillermo Rauch and Socket.IO contributors"
920941
},
921942
"enquirer@2.4.1": {
922943
"licenses": "MIT",
@@ -1927,7 +1948,7 @@ Created on 07-08-2024 at 16:11:49
19271948
"licenseFile": "node_modules/qs/LICENSE.md",
19281949
"copyright": "Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors). All rights reserved."
19291950
},
1930-
"qs@6.12.0": {
1951+
"qs@6.13.0": {
19311952
"licenses": "BSD-3-Clause",
19321953
"repository": "https://github.com/ljharb/qs",
19331954
"licenseFile": "node_modules/url/node_modules/qs/LICENSE.md",
@@ -2014,6 +2035,13 @@ Created on 07-08-2024 at 16:11:49
20142035
"licenseFile": "node_modules/react-textarea-autosize/LICENSE",
20152036
"copyright": "Copyright (c) 2013 Andrey Popp"
20162037
},
2038+
"react-tooltip@5.28.0": {
2039+
"licenses": "MIT",
2040+
"repository": "https://github.com/ReactTooltip/react-tooltip",
2041+
"publisher": "ReactTooltip",
2042+
"licenseFile": "node_modules/react-tooltip/LICENSE",
2043+
"copyright": "Copyright (c) 2022 ReactTooltip Team Github"
2044+
},
20172045
"react-transition-group@4.4.5": {
20182046
"licenses": "BSD-3-Clause",
20192047
"repository": "https://github.com/reactjs/react-transition-group",
@@ -2260,7 +2288,7 @@ Created on 07-08-2024 at 16:11:49
22602288
"licenseFile": "node_modules/slide/LICENSE",
22612289
"copyright": "Copyright (c) Isaac Z. Schlueter"
22622290
},
2263-
"socket.io-client@4.7.2": {
2291+
"socket.io-client@4.7.5": {
22642292
"licenses": "MIT",
22652293
"repository": "https://github.com/socketio/socket.io-client",
22662294
"licenseFile": "node_modules/socket.io-client/LICENSE",
@@ -2656,14 +2684,14 @@ Created on 07-08-2024 at 16:11:49
26562684
"licenseFile": "node_modules/wrappy/LICENSE",
26572685
"copyright": "Copyright (c) Isaac Z. Schlueter and Contributors"
26582686
},
2659-
"ws@8.11.0": {
2687+
"ws@8.17.1": {
26602688
"licenses": "MIT",
26612689
"repository": "https://github.com/websockets/ws",
26622690
"publisher": "Einar Otto Stangvik",
26632691
"email": "einaros@gmail.com",
26642692
"url": "http://2x.io",
26652693
"licenseFile": "node_modules/ws/LICENSE",
2666-
"copyright": "Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>"
2694+
"copyright": "Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>. Copyright (c) 2013 Arnout Kazemier and contributors. Copyright (c) 2016 Luigi Pinca and contributors"
26672695
},
26682696
"xmlhttprequest-ssl@2.0.0": {
26692697
"licenses": "MIT",

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ You need an installed version of `Node.js` to build your Webchat. Clone this rep
1717
For development purposes, you can utilize `npm run dev`. This command spawns an HTTP server on port 8080, showcasing the current form of the webchat directly from the source code. It automatically reloads upon updating source files, simplifying the development process.
1818
It automatically reloads when you make changes, streamlining the development process.
1919

20-
## Compatibility Builds
21-
22-
The `npm run bundle` command generates bundle files for the Webchat itself and basic Webchat plugins. Additionally, it produces a second version of each bundle ending in `.legacy.js`. These builds maintain the same feature set as the regular ones but are converted into an older JavaScript standard, enhancing compatibility for older browsers that lack support for modern JavaScript features, such as Internet Explorer 11. When you run the command `npm run bundle`, it creates bundle files for the Webchat along with some basic Webchat plugins. This command also produces a second version of each bundle, which has `.legacy.js` at the end of its name. These builds have the same features as the regular ones but are converted into an older JavaScript standard. This enhances compatibility for older browsers that don't support modern JavaScript features, such as Internet Explorer 11.
23-
2420
## Migration Guide
2521

2622
If you are already using Webchat 2 and want to migrate to Webchat v3, please follow the [migration guide](https://docs.cognigy.com/webchat/migration/) here.

cypress/e2e/engagement.cy.ts

+6
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ describe("Engagement Message", () => {
7979
unreadMessages: {
8080
enablePreview: false,
8181
},
82+
homeScreen: {
83+
enabled: false,
84+
}
8285
},
8386
});
8487
cy.get("[data-cognigy-webchat-toggle]").click().click();
@@ -137,6 +140,9 @@ describe("Engagement Message", () => {
137140
unreadMessages: {
138141
enablePreview: false,
139142
},
143+
homeScreen: {
144+
enabled: false,
145+
}
140146
},
141147
});
142148
cy.wait(500);

cypress/e2e/homeScreen.cy.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ describe('Home Screen', () => {
255255
{
256256
type: "phone_number",
257257
title: "Phone number starter",
258+
payload: "123456789"
258259
},
259260
]
260261
}
@@ -263,8 +264,8 @@ describe('Home Screen', () => {
263264
});
264265
cy.openWebchat();
265266
cy.get('button').contains('Postback starter');
266-
cy.get('button').contains('Web URL starter');
267-
cy.get('button').contains('Phone number starter');
267+
cy.get('a').contains('Web URL starter');
268+
cy.get('a').contains('Phone number starter');
268269
});
269270

270271
it('has postback buttons that starts a conversation when clicked', () => {
@@ -291,7 +292,7 @@ describe('Home Screen', () => {
291292
cy.get('.webchat-message-row.user .chat-bubble', { timeout: 100 }).contains('Postback starter');
292293
});
293294

294-
it('has web url button with correct role when configured', () => {
295+
it('has web url button with correct aria-label when configured', () => {
295296
cy.initMockWebchat({
296297
settings: {
297298
homeScreen: {
@@ -311,7 +312,6 @@ describe('Home Screen', () => {
311312
}
312313
});
313314
cy.openWebchat();
314-
cy.get('.webchat-homescreen-button').should('have.attr', 'role', 'link');
315315
cy.get('.webchat-homescreen-button').should('have.attr', 'aria-label', 'Web URL starter. Opens in new tab');
316316
});
317317

cypress/e2e/messages/audio.cy.ts

-10
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,5 @@ describe("Message with Audio", () => {
2727
cy.withMessageFixture('audio', () => {
2828
cy.get(".webchat-message-row .webchat-media-template-audio");
2929
})
30-
})
31-
32-
it("should have sr-only default alternate text for audio", () => {
33-
cy.withMessageFixture('audio', () => {
34-
cy
35-
.get(".webchat-message-row .webchat-media-template-audio span")
36-
.contains("Attachment Audio")
37-
.should("not.be.visible");
38-
})
3930
})
40-
4131
})

cypress/e2e/messages/downloadableImage.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("Message with Downloadable Image", () => {
2020
it("should render download button", () => {
2121
cy.withMessageFixture('downloadableImage', () => {
2222
cy
23-
.get("button").contains("Download");
23+
.get(".webchat-message-row a").contains("Download");
2424
})
2525
});
2626
})

cypress/e2e/messages/image.cy.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("Message with Image", { retries: 3 }, () => {
88

99
it("should render image", () => {
1010
cy.withMessageFixture("image", () => {
11-
cy.get(".webchat-message-row > div > img").should("be.visible");
11+
cy.get(".webchat-message-row img").should("be.visible");
1212
});
1313
});
1414

@@ -20,15 +20,14 @@ describe("Message with Image", { retries: 3 }, () => {
2020

2121
it("should have alt attibute", () => {
2222
cy.withMessageFixture("image", () => {
23-
cy.get(".webchat-message-row > div > img")
24-
.should("have.attr", "alt")
25-
.and("match", /Attachment Image/);
23+
cy.get(".webchat-media-template-image img")
24+
.should("have.attr", "alt", "Attachment Image")
2625
});
2726
});
2827

2928
it("should render the image in a fixed aspect ratio", () => {
3029
cy.withMessageFixture("image", () => {
31-
cy.get(".webchat-media-template-image > img")
30+
cy.get(".webchat-media-template-image img")
3231
.should("be.visible")
3332
.then(element => {
3433
const imageRatio = (element.innerWidth() / element.innerHeight()).toFixed(1);
@@ -51,7 +50,7 @@ describe("Message with Image", { retries: 3 }, () => {
5150
cy.startConversation();
5251

5352
cy.withMessageFixture("image", () => {
54-
cy.get(".webchat-media-template-image > img")
53+
cy.get(".webchat-media-template-image img")
5554
.should("be.visible")
5655
.then(element => {
5756
expect(element.innerHeight().toFixed()).to.equal(

cypress/e2e/messages/video.cy.ts

-8
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,4 @@ describe("Message with Video", () => {
3232
cy.get(".webchat-message-row .webchat-media-template-video");
3333
})
3434
})
35-
36-
it("should have sr-only default alternate text for video", () => {
37-
cy.withMessageFixture('video', () => {
38-
cy.get(".webchat-message-row .webchat-media-template-video .sr-only")
39-
.contains("Attachment Video")
40-
.should("not.be.visible");
41-
})
42-
})
4335
})

0 commit comments

Comments
 (0)