hanc-webrtc-widgets 2.1.4 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39518,9 +39518,11 @@ class lM {
39518
39518
  overflow: visible;
39519
39519
  cursor: pointer;
39520
39520
  transition: transform 0.3s ease;
39521
- `, this.container.appendChild(this.orbContainer), this.orbRenderer = new eh(this.orbContainer, {
39521
+ `, this.container.appendChild(this.orbContainer);
39522
+ const n = { ...this.config.orbConfig };
39523
+ this.config.mode === "inline" && n.canvasPadding === void 0 && (n.canvasPadding = 2), this.orbRenderer = new eh(this.orbContainer, {
39522
39524
  size: 1,
39523
- ...this.config.orbConfig,
39525
+ ...n,
39524
39526
  colors: this.config.colors
39525
39527
  }), this.createButton(), this.orbContainer.addEventListener("click", this.handleClick), this.orbContainer.addEventListener("mouseenter", this.handleMouseEnter), this.orbContainer.addEventListener("mouseleave", this.handleMouseLeave);
39526
39528
  }
@@ -40140,11 +40142,6 @@ Vd.styles = [
40140
40142
  pointer-events: auto;
40141
40143
  }
40142
40144
 
40143
- :host([mode='inline']) {
40144
- overflow: hidden;
40145
- contain: paint;
40146
- }
40147
-
40148
40145
  #orb-container {
40149
40146
  width: 100%;
40150
40147
  height: 100%;
@@ -40250,8 +40247,7 @@ Xl.styles = [
40250
40247
  position: relative;
40251
40248
  width: 100%;
40252
40249
  height: 100%;
40253
- overflow: hidden;
40254
- contain: paint;
40250
+ overflow: visible;
40255
40251
  }
40256
40252
  `
40257
40253
  ];
@@ -4526,7 +4526,7 @@ a=extmap-allow-mixed`)!==-1){const r=s.sdp.split(`
4526
4526
  overflow: visible;
4527
4527
  cursor: pointer;
4528
4528
  transition: transform 0.3s ease;
4529
- `,this.container.appendChild(this.orbContainer),this.orbRenderer=new yl(this.orbContainer,{size:1,...this.config.orbConfig,colors:this.config.colors}),this.createButton(),this.orbContainer.addEventListener("click",this.handleClick),this.orbContainer.addEventListener("mouseenter",this.handleMouseEnter),this.orbContainer.addEventListener("mouseleave",this.handleMouseLeave)}createPillWidget(){this.container.style.cssText=`
4529
+ `,this.container.appendChild(this.orbContainer);const n={...this.config.orbConfig};this.config.mode==="inline"&&n.canvasPadding===void 0&&(n.canvasPadding=2),this.orbRenderer=new yl(this.orbContainer,{size:1,...n,colors:this.config.colors}),this.createButton(),this.orbContainer.addEventListener("click",this.handleClick),this.orbContainer.addEventListener("mouseenter",this.handleMouseEnter),this.orbContainer.addEventListener("mouseleave",this.handleMouseLeave)}createPillWidget(){this.container.style.cssText=`
4530
4530
  position: relative;
4531
4531
  display: inline-flex;
4532
4532
  align-items: center;
@@ -4662,11 +4662,6 @@ a=extmap-allow-mixed`)!==-1){const r=s.sdp.split(`
4662
4662
  pointer-events: auto;
4663
4663
  }
4664
4664
 
4665
- :host([mode='inline']) {
4666
- overflow: hidden;
4667
- contain: paint;
4668
- }
4669
-
4670
4665
  #orb-container {
4671
4666
  width: 100%;
4672
4667
  height: 100%;
@@ -4692,7 +4687,6 @@ a=extmap-allow-mixed`)!==-1){const r=s.sdp.split(`
4692
4687
  position: relative;
4693
4688
  width: 100%;
4694
4689
  height: 100%;
4695
- overflow: hidden;
4696
- contain: paint;
4690
+ overflow: visible;
4697
4691
  }
4698
4692
  `],at.InlineCall=EC([ra("hanc-ai-inline-call")],at.InlineCall);var CC=Object.defineProperty,MC=Object.getOwnPropertyDescriptor,Om=(i,e,t,n)=>{for(var s=n>1?void 0:n?MC(e,t):e,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=(n?o(e,t,s):o(s))||s);return n&&s&&CC(e,t,s),s};at.FloatingCall=class extends lt{constructor(){super(),this.labelText="Need a help?",this.mode="float",this.position="bottom-right"}},Om([Bt({type:String,attribute:"label-text"})],at.FloatingCall.prototype,"labelText",2),at.FloatingCall=Om([ra("hanc-ai-floating-call")],at.FloatingCall);var wC=Object.getOwnPropertyDescriptor,AC=(i,e,t,n)=>{for(var s=n>1?void 0:n?wC(e,t):e,r=i.length-1,o;r>=0;r--)(o=i[r])&&(s=o(s)||s);return s};at.PillCall=class extends lt{constructor(){super(),this.mode="pill"}},at.PillCall=AC([ra("hanc-ai-pill-call")],at.PillCall),at.AudioAnalyzer=Uh,at.HancAiOrbElement=lt,at.HancAiWidget=Dm,at.OrbRenderer=yl,at.SoundManager=Im,at.atmosphereFragmentShader=Yy,at.atmosphereVertexShader=Ky,at.glowFragmentShader=Oh,at.glowVertexShader=Nh,at.orbFragmentShader=Lh,at.orbVertexShader=Dh,Object.defineProperty(at,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanc-webrtc-widgets",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "type": "module",
5
5
  "main": "dist/hanc-webrtc-widgets.umd.js",
6
6
  "module": "dist/hanc-webrtc-widgets.es.js",