@devvit/ui-renderer 0.11.19-next-2025-07-17-01-55-46-3e8aab169.0 → 0.11.19-next-2025-07-17-21-23-07-940a6411a.0

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.
@@ -6386,7 +6386,7 @@
6386
6386
  "format": "esm"
6387
6387
  },
6388
6388
  "library/src/blocks/components/devvit-blocks-web-view.ts": {
6389
- "bytes": 11900,
6389
+ "bytes": 11945,
6390
6390
  "imports": [
6391
6391
  {
6392
6392
  "path": "../protos/dist/types/devvit/ui/effects/web_view/v1alpha/post_message.js",
@@ -7176,7 +7176,7 @@
7176
7176
  "imports": [],
7177
7177
  "exports": [],
7178
7178
  "inputs": {},
7179
- "bytes": 2012042
7179
+ "bytes": 2012095
7180
7180
  },
7181
7181
  "dist/devvit-surface.min.js": {
7182
7182
  "imports": [
@@ -7581,7 +7581,7 @@
7581
7581
  "bytesInOutput": 107
7582
7582
  },
7583
7583
  "library/src/blocks/components/devvit-blocks-web-view.ts": {
7584
- "bytesInOutput": 4429
7584
+ "bytesInOutput": 4474
7585
7585
  },
7586
7586
  "library/src/blocks/templates/renderWebViewBlock.ts": {
7587
7587
  "bytesInOutput": 540
@@ -7683,7 +7683,7 @@
7683
7683
  "bytesInOutput": 8856
7684
7684
  }
7685
7685
  },
7686
- "bytes": 823382
7686
+ "bytes": 823427
7687
7687
  }
7688
7688
  }
7689
7689
  }
@@ -610,7 +610,8 @@ button inline-flex`},ai=e=>{let{createElement:t}=J(),{attributes:r,selected:a,ro
610
610
  }
611
611
  `]}connectedCallback(){super.connectedCallback(),window.addEventListener("message",f(this,y3))}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("message",f(this,y3))}async getUpdateComplete(){let r=super.getUpdateComplete();return await f(this,x3),r}willUpdate(r){if(r.has("state")&&this.state&&B(this,e1,L7).call(this),r.has("src")&&this.src){let a=new URL(this.src);a.hostname.endsWith("webview.devvit.net")?this._targetOrigin=a.origin:this.devMode?this._targetOrigin="*":this._targetOrigin=void 0,V(this,it,!1),r.get("src")&&B(this,e1,S7).call(this),B(this,e1,at).call(this,"New configuration: src:",this.src,"; allow-same-origin:",this._originDiffers,"; targetOrigin: ",this._targetOrigin)}}updated(r){if(r.has("src")&&this.src){let i=new URL(this.src).host!==location.host;i!==this._originDiffers&&(this._originDiffers=i,this.pendingSrc=this.src,this.src=void 0,V(this,x3,new Promise(n=>V(this,M3,n))))}r.has("pendingSrc")&&this.pendingSrc&&(this.src=this.pendingSrc,this.pendingSrc=void 0,f(this,M3).call(this))}reset(){B(this,e1,S7).call(this)}postMessage(r){f(this,it)?B(this,e1,E5).call(this,"devvit-message",r):(f(this,ot).push(r),B(this,e1,at).call(this,()=>["Not ready. Queueing message:",JSON.stringify(r)]))}render(){let r=this._originDiffers?"allow-same-origin":"";return g0`<iframe
612
612
  src="${O2(this.src)}"
613
- sandbox="allow-scripts ${r}"
613
+ sandbox="allow-scripts ${r} allow-forms"
614
+ allow="camera; microphone"
614
615
  referrerpolicy="origin"
615
616
  tabindex="${O2(this.focusable?"0":void 0)}"
616
617
  @load="${B(this,e1,Fl)}"