From 8cfe111ef0a850b84cac35450324b93f36dcbc41 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Tue, 11 Jun 2024 14:55:13 -0400 Subject: [PATCH] cloudscape ccp in initApp fix and disabling request-storage-access (#887) * Fixing initApp bug due to hasAnySearchParameter * Disable RSA by default Co-authored-by: Andy Wang --- package-lock.json | 4 ++-- package.json | 2 +- release/connect-streams-dr-min.js | 2 +- release/connect-streams-dr.js | 2 +- release/connect-streams-min.js | 2 +- release/connect-streams.js | 6 +++--- src/agent-app/agent-app.js | 2 +- src/request-storage-access.js | 2 +- test/unit/request-storage-access.spec.js | 9 ++++++--- 9 files changed, 17 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08939f0..1729231 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "amazon-connect-streams", - "version": "2.14.2", + "version": "2.14.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "amazon-connect-streams", - "version": "2.14.2", + "version": "2.14.3", "license": "Apache-2.0", "devDependencies": { "chai": "^4.3.7", diff --git a/package.json b/package.json index b49cc7d..2da6fa8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amazon-connect-streams", - "version": "2.14.2", + "version": "2.14.3", "description": "Amazon Connect Streams Library", "engines": { "node": ">=12.0.0" diff --git a/release/connect-streams-dr-min.js b/release/connect-streams-dr-min.js index 778dfd4..dafdfa0 100644 --- a/release/connect-streams-dr-min.js +++ b/release/connect-streams-dr-min.js @@ -1 +1 @@ -(()=>{var l;(l={772:()=>{!function(){var l=this||globalThis,Z=l.connect||{};l.connect=Z,l.globalConnect={},l.lily=Z,globalConnect.Container=null;var b=window.atob("KCgpPT57dmFyIGU9ezgyMTooKT0+eyFmdW5jdGlvbigpe3ZhciBlPXRoaXN8fGdsb2JhbFRoaXMsdD1lLmNvbm5lY3R8fHt9O2UuY29ubmVjdD10LGUubGlseT10LHQuYWdlbnRBcHA9e307dmFyIG49e0NDUDoiY2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SxuKDgyNyksbigxNjMpLG4oOTQ0KSxuKDE1MSksbig4OTEpLG4oNTkyKSxuKDgyKSxuKDc1NCksbig4MzMpLG4oMTYxKSxuKDk2NSksbigyODYpLG4oODk1KSxuKDc0Myksbig2NDIpLG4oNzM2KSxuKDQzOSksbigyNzkpLG4oNDE4KSxuKDE4Nyksbig4MjEpLG4oNTAwKX0pKCk7"),d=function(l){this.id=l.region,l.region=this._normalizeRegionString(l.region),this.height=l.height,this.style=l.iframe_style,this.ccp=this._createFramedCcp(l)};d.prototype._createFramedCcp=function(l){var Z=Z||"microphone; autoplay; clipboard-write",b=this.style||"margin: 0; border: 0; padding: 0px; width: 0px; height: 0px",d=document.createElement("iframe");return d.srcdoc=this.getContent(l),d.allow=Z,d.id=this.id,d.style=b,d.scrolling="no",d},d.prototype.getContent=function(l){return["","","","","