@devvit/ui-renderer 0.11.3-next-2024-11-13-ad36b8d4e.0 → 0.11.3-next-2024-11-13-0503dede1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-blocks-web-view.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/components/devvit-blocks-web-view.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,yEAAyE,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,mBAAmB,CAAC;KAC/C;IACD,UAAU,mBAAmB;QAE3B,yBAAyB,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;KACnD;CACF;AAWD;;GAEG;AACH,qBACa,mBAAoB,SAAQ,UAAW,YAAW,mBAAmB;;IAEhF,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IAGxB,OAAO,EAAE,OAAO,CAAS;IAEzB;;;OAGG;IAEH,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC;IAG9B,OAAO,CAAC,cAAc,CAAkB;IAGxC,OAAO,CAAC,aAAa,CAAqB;IAG1C,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAG/B,OAAO,CAAC,OAAO,CAAgC;IAO/C,WAAoB,MAAM,8BAgBzB;IAEQ,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;cAKZ,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;cAM3C,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;cAiCzD,OA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AI,CAAC,GAAG,IAAI;cAiCzD,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC,IAAI,CAAC;IAiCnE,KAAK,IAAI,IAAI;IAIb,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAUpC,MAAM;CA8EhB"}
@@ -177,7 +177,7 @@ _DevvitBlocksWebView_sendStateUpdate = function _DevvitBlocksWebView_sendStateUp
177
177
  state: this.state,
178
178
  };
179
179
  __classPrivateFieldGet(this, _DevvitBlocksWebView_instances, "m", _DevvitBlocksWebView_postDevvitMessage).call(this, 'devvit-state', stateMessage);
180
- __classPrivateFieldGet(this, _DevvitBlocksWebView_instances, "m", _DevvitBlocksWebView_postDevvitMessage).call(this, 'stateUpdate', stateMessage);
180
+ __classPrivateFieldGet(this, _DevvitBlocksWebView_instances, "m", _DevvitBlocksWebView_postDevvitMessage).call(this, 'stateUpdate', this.state);
181
181
  }
182
182
  };
183
183
  _DevvitBlocksWebView_onLoad = function _DevvitBlocksWebView_onLoad() {
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-blocks-web-view.js","sourceRoot":"","sources":["../../../library/src/blocks/components/devvit-blocks-web-view.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAIN,MAAM,yEAAyE,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAuBzD;;GAEG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,UAAU;IAA5C;;;QAKL,YAAO,GAAY,KAAK,CAAC;QAUjB,mBAAc,GAAY,KAAK,CAAC,CAAC,2DAA2D;QAWpG,y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EAAU,MAAd,IAAI,EAAW,GAAG,EAAE,CAAC,CAAC,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;AAC1E,CAAC;uEAGS,GAAkC;IAC1C,IAAI,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;QACrC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YACtB,WAAW,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG;YAC1C,GAAG,CAAC,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;SAC7C,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AA5ND;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACH;AAGxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;;oDAC1B;AAOzB;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;kDACD;AAGtB;IADP,KAAK,EAAE;;2DACgC;AAGhC;IADP,KAAK,EAAE;;0DACkC;AAG1C;IADC,KAAK,EAAE;;uDACuB;AAGvB;IADP,KAAK,CAAC,QAAQ,CAAC;;oDAC+B;AAxBpC,mBAAmB;IAD/B,aAAa,CAAC,wBAAwB,CAAC;GAC3B,mBAAmB,CA+N/B"}
@@ -8470,7 +8470,7 @@
8470
8470
  "format": "esm"
8471
8471
  },
8472
8472
  "library/src/blocks/components/devvit-blocks-web-view.ts": {
8473
- "bytes": 8495,
8473
+ "bytes": 8567,
8474
8474
  "imports": [
8475
8475
  {
8476
8476
  "path": "../protos/dist/types/devvit/ui/effects/web_view/v1alpha/post_message.js",
@@ -8992,7 +8992,7 @@
8992
8992
  "imports": [],
8993
8993
  "exports": [],
8994
8994
  "inputs": {},
8995
- "bytes": 6492493
8995
+ "bytes": 6492569
8996
8996
  },
8997
8997
  "dist/devvit-custom-post.min.js": {
8998
8998
  "imports": [
@@ -9628,7 +9628,7 @@
9628
9628
  "bytesInOutput": 934
9629
9629
  },
9630
9630
  "library/src/blocks/components/devvit-blocks-web-view.ts": {
9631
- "bytesInOutput": 3538
9631
+ "bytesInOutput": 3547
9632
9632
  },
9633
9633
  "library/src/blocks/templates/renderWebViewBlock.ts": {
9634
9634
  "bytesInOutput": 542
@@ -9688,7 +9688,7 @@
9688
9688
  "bytesInOutput": 5700
9689
9689
  }
9690
9690
  },
9691
- "bytes": 1966197
9691
+ "bytes": 1966206
9692
9692
  }
9693
9693
  }
9694
9694
  }
@@ -608,7 +608,7 @@ button inline-flex`},ib=e=>{let{createElement:n}=_e(),{attributes:i,selected:d,r
608
608
  sandbox="allow-scripts ${i}"
609
609
  referrerpolicy="origin"
610
610
  @load="${Te(this,an,eT)}"
611
- ></iframe>`}};J1=new WeakMap,q1=new WeakMap,I2=new WeakMap,E2=new WeakMap,an=new WeakSet,J4=function(){Te(this,an,H1).call(this,"WebView reset. Clearing queued messages:",U(this,q1).length),U(this,q1).length=0},O2=new WeakMap,q4=function(){if(this.state&&U(this,J1)){let i={state:this.state};Te(this,an,x2).call(this,"devvit-state",i),Te(this,an,x2).call(this,"stateUpdate",i)}},eT=function(){if(!U(this,J1)&&this.src){Te(this,an,H1).call(this,"Page loaded. Sending initial state."),$e(this,J1,!0),Te(this,an,q4).call(this),Te(this,an,H1).call(this,"Sending",U(this,q1).length,"queued messages");for(let i of U(this,q1))Te(this,an,x2).call(this,"devvit-message",i)}},x2=function(i,d){let r={type:i,data:d},t=this._targetOrigin?{targetOrigin:this._targetOrigin}:{};this._iframe?.contentWindow?.postMessage(r,t),Te(this,an,H1).call(this,()=>["Sending message:",JSON.stringify(r)])},H1=function(i){globalThis.devvit?.debug.webView&&console.log.apply(null,[`[webView${this.id?`#${this.id}`:""}]`,...typeof i=="function"?i():i])},Me([kn({type:String})],jt.prototype,"src",2),Me([kn({type:Boolean,attribute:"dev-mode"})],jt.prototype,"devMode",2),Me([kn({attribute:!1})],jt.prototype,"state",2),Me([V1()],jt.prototype,"_originDiffers",2),Me([V1()],jt.prototype,"_targetOrigin",2),Me([V1()],jt.prototype,"pendingSrc",2),Me([Nc("iframe")],jt.prototype,"_iframe",2),jt=Me([Lu("devvit-blocks-web-view")],jt);function nT(e,n){let{html:i,styleMap:d,ifDefined:r}=_e();if(!e.config?.webviewConfig)return console.error("Invalid block: WebView missing WebViewConfig"),fe;let{id:t}=e,{url:s,state:p}=e.config.webviewConfig,c={...ci(e,n)},v={...pi(e,n)},b=Bb(e,n),R=n.resolveWebViewUrl?.(s);return i`<devvit-blocks-web-view
611
+ ></iframe>`}};J1=new WeakMap,q1=new WeakMap,I2=new WeakMap,E2=new WeakMap,an=new WeakSet,J4=function(){Te(this,an,H1).call(this,"WebView reset. Clearing queued messages:",U(this,q1).length),U(this,q1).length=0},O2=new WeakMap,q4=function(){if(this.state&&U(this,J1)){let i={state:this.state};Te(this,an,x2).call(this,"devvit-state",i),Te(this,an,x2).call(this,"stateUpdate",this.state)}},eT=function(){if(!U(this,J1)&&this.src){Te(this,an,H1).call(this,"Page loaded. Sending initial state."),$e(this,J1,!0),Te(this,an,q4).call(this),Te(this,an,H1).call(this,"Sending",U(this,q1).length,"queued messages");for(let i of U(this,q1))Te(this,an,x2).call(this,"devvit-message",i)}},x2=function(i,d){let r={type:i,data:d},t=this._targetOrigin?{targetOrigin:this._targetOrigin}:{};this._iframe?.contentWindow?.postMessage(r,t),Te(this,an,H1).call(this,()=>["Sending message:",JSON.stringify(r)])},H1=function(i){globalThis.devvit?.debug.webView&&console.log.apply(null,[`[webView${this.id?`#${this.id}`:""}]`,...typeof i=="function"?i():i])},Me([kn({type:String})],jt.prototype,"src",2),Me([kn({type:Boolean,attribute:"dev-mode"})],jt.prototype,"devMode",2),Me([kn({attribute:!1})],jt.prototype,"state",2),Me([V1()],jt.prototype,"_originDiffers",2),Me([V1()],jt.prototype,"_targetOrigin",2),Me([V1()],jt.prototype,"pendingSrc",2),Me([Nc("iframe")],jt.prototype,"_iframe",2),jt=Me([Lu("devvit-blocks-web-view")],jt);function nT(e,n){let{html:i,styleMap:d,ifDefined:r}=_e();if(!e.config?.webviewConfig)return console.error("Invalid block: WebView missing WebViewConfig"),fe;let{id:t}=e,{url:s,state:p}=e.config.webviewConfig,c={...ci(e,n)},v={...pi(e,n)},b=Bb(e,n),R=n.resolveWebViewUrl?.(s);return i`<devvit-blocks-web-view
612
612
  id="${r(t)}"
613
613
  src="${R}"
614
614
  class="${fi(c)}"