@devvit/ui-renderer 0.11.3-next-2024-11-13-3641e33a1.0 → 0.11.3-next-2024-11-14-5b95193da.0
Sign up to get free protection for your applications and to get access to all the features.
- package/blocks/components/devvit-blocks-web-view.d.ts.map +1 -1
- package/blocks/components/devvit-blocks-web-view.js +1 -1
- package/blocks/components/devvit-blocks-web-view.js.map +1 -1
- package/client/devvit-surface.d.ts.map +1 -1
- package/client/devvit-surface.js +10 -3
- package/client/devvit-surface.js.map +1 -1
- package/devvit-custom-post-meta.min.json +4 -4
- package/devvit-custom-post.min.js +1 -1
- package/devvit-custom-post.min.js.map +2 -2
- package/devvit-surface-meta.min.json +159 -8
- package/devvit-surface.min.js +65 -65
- package/devvit-surface.min.js.map +4 -4
- package/package.json +13 -11
@@ -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;AAaD;;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,S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H,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,OAAO,CAAC,kBAAkB,EAAE,cAAc,CAAC,IAAI,CAAC;IAiCnE,KAAK,IAAI,IAAI;IAIb,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAUpC,MAAM;CA+EhB"}
|
@@ -205,7 +205,7 @@ _DevvitBlocksWebView_debugLog = function _DevvitBlocksWebView_debugLog(msg) {
|
|
205
205
|
if (globalThis.devvit?.debug.webView) {
|
206
206
|
console.log.apply(null, [
|
207
207
|
`[webView${this.id ? `#${this.id}` : ''}]`,
|
208
|
-
...(typeof msg === 'function' ? msg() : msg),
|
208
|
+
...(typeof msg === 'function' ? msg() : typeof msg === 'string' ? [msg] : msg),
|
209
209
|
]);
|
210
210
|
}
|
211
211
|
};
|
@@ -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,mBAAm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E,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,CAgO/B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devvit-surface.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-surface.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,OAAO,gDAAgD,CAAC;AACxD,OAAO,gDAAgD,CAAC;AAGxD,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,QAAQ,EAMb,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;
|
1
|
+
{"version":3,"file":"devvit-surface.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-surface.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,OAAO,gDAAgD,CAAC;AACxD,OAAO,gDAAgD,CAAC;AAGxD,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,QAAQ,EAMb,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AAMvF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAYvC,OAAO,KAAK,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ElD,mBAAmB,EAAE,OAAO,CAAS;IACrC,4DAA4D;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACxD,0EAA0E;IAE1E,qBAAqB,EAAE,OAAO,CAAS;IACvC,8DAA8D;IAE9D,uBAAuB,EAAE,OAAO,CAAS;IAEzC,kBAAkB,EAAE,MAAM,CAAM;IAEhC,mBAAmB,EAAE,OAAO,CAAS;IACrC,cAAc,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACxC,+FAA+F;IACtF,UAAU,CAAC,EAAE,YAAY,CAAC;IAE1B,OAAO,CAAC,UAAU,CAAC,CAAoB;IAYhD,OAAO,CAAC,eAAe,CAAmC;;IAO3C,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IA8DxC,oBAAoB,IAAI,IAAI;cAYlB,MAAM;cAiBA,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;cA2FtD,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC;CA2G/D"}
|
package/client/devvit-surface.js
CHANGED
@@ -18,7 +18,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
18
18
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
19
19
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
20
20
|
};
|
21
|
-
var _DevvitSurface_instances, _DevvitSurface_rootHeight, _DevvitSurface_resizeObserver, _DevvitSurface_intersectionObserver, _DevvitSurface_appVersion, _DevvitSurface_dispatcher, _DevvitSurface_newRenderContext, _DevvitSurface_onError, _DevvitSurface_onPluginCall, _DevvitSurface_onRender, _DevvitSurface_bubble, _DevvitSurface_onUserActionEffect, _DevvitSurface_onWebViewMessageEffect;
|
21
|
+
var _DevvitSurface_instances, _DevvitSurface_rootHeight, _DevvitSurface_resizeObserver, _DevvitSurface_intersectionObserver, _DevvitSurface_appVersion, _DevvitSurface_useOldActionEvent, _DevvitSurface_dispatcher, _DevvitSurface_newRenderContext, _DevvitSurface_onError, _DevvitSurface_onPluginCall, _DevvitSurface_onRender, _DevvitSurface_bubble, _DevvitSurface_onUserActionEffect, _DevvitSurface_onWebViewMessageEffect;
|
22
22
|
import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
|
23
23
|
import '../blocks/components/devvit-blocks-renderer.js';
|
24
24
|
import '../blocks/components/devvit-blocks-web-view.js';
|
@@ -31,6 +31,8 @@ import { asT3ID } from '@devvit/shared-types/tid.js';
|
|
31
31
|
import { customEvent } from '@reddit/faceplate/lib/custom-event.js';
|
32
32
|
import { html, LitElement } from 'lit';
|
33
33
|
import { customElement, property, query, state } from 'lit/decorators.js';
|
34
|
+
import semverLt from 'semver/functions/lt.js';
|
35
|
+
import semverValid from 'semver/functions/valid.js';
|
34
36
|
import { BlockTypeName } from '../blocks/block-type.js';
|
35
37
|
import { DevvitBlocksWebView } from '../blocks/components/devvit-blocks-web-view.js';
|
36
38
|
import { DEFAULT_ROOT_HEIGHT } from '../blocks/templates/renderBlock.js';
|
@@ -69,6 +71,8 @@ let DevvitSurface = class DevvitSurface extends LitElement {
|
|
69
71
|
_DevvitSurface_resizeObserver.set(this, void 0);
|
70
72
|
_DevvitSurface_intersectionObserver.set(this, void 0);
|
71
73
|
_DevvitSurface_appVersion.set(this, '');
|
74
|
+
// If true, send UserAction for WebView events instead of newer WebViewEvent
|
75
|
+
_DevvitSurface_useOldActionEvent.set(this, false);
|
72
76
|
/** The orchestrates events for blocks */
|
73
77
|
_DevvitSurface_dispatcher.set(this, void 0);
|
74
78
|
_DevvitSurface_newRenderContext.set(this, () => ({
|
@@ -78,7 +82,7 @@ let DevvitSurface = class DevvitSurface extends LitElement {
|
|
78
82
|
: resolveWebViewUrl(this.webViewUrlTemplate, this.metadata?.[Header.Subreddit]?.values?.[0], __classPrivateFieldGet(this, _DevvitSurface_appVersion, "f"), url),
|
79
83
|
onAction: (action) => {
|
80
84
|
const eventData = {};
|
81
|
-
if (action.type === BlockActionType.ACTION_CLICK) {
|
85
|
+
if (action.type === BlockActionType.ACTION_CLICK || __classPrivateFieldGet(this, _DevvitSurface_useOldActionEvent, "f")) {
|
82
86
|
eventData.userAction = {
|
83
87
|
actionId: action.id,
|
84
88
|
data: action.data ?? {},
|
@@ -273,7 +277,9 @@ let DevvitSurface = class DevvitSurface extends LitElement {
|
|
273
277
|
}
|
274
278
|
if (devvit?.debug.surface)
|
275
279
|
console.debug('[surface] bundle loaded');
|
276
|
-
__classPrivateFieldSet(this, _DevvitSurface_appVersion, this.bundle.actor?.version ?? '', "f");
|
280
|
+
__classPrivateFieldSet(this, _DevvitSurface_appVersion, semverValid(this.bundle.actor?.version) ?? '', "f");
|
281
|
+
__classPrivateFieldSet(this, _DevvitSurface_useOldActionEvent, __classPrivateFieldGet(this, _DevvitSurface_appVersion, "f") === '' ||
|
282
|
+
(__classPrivateFieldGet(this, _DevvitSurface_appVersion, "f") !== '' && semverLt(__classPrivateFieldGet(this, _DevvitSurface_appVersion, "f"), '0.11.3')), "f");
|
277
283
|
if (props.get('bundle')) {
|
278
284
|
if (devvit?.debug.surface)
|
279
285
|
console.debug('[runtime][surface] reset runtime state');
|
@@ -325,6 +331,7 @@ _DevvitSurface_rootHeight = new WeakMap();
|
|
325
331
|
_DevvitSurface_resizeObserver = new WeakMap();
|
326
332
|
_DevvitSurface_intersectionObserver = new WeakMap();
|
327
333
|
_DevvitSurface_appVersion = new WeakMap();
|
334
|
+
_DevvitSurface_useOldActionEvent = new WeakMap();
|
328
335
|
_DevvitSurface_dispatcher = new WeakMap();
|
329
336
|
_DevvitSurface_newRenderContext = new WeakMap();
|
330
337
|
_DevvitSurface_onError = new WeakMap();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devvit-surface.js","sourceRoot":"","sources":["../../library/src/client/devvit-surface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,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AI,EAAE,MAAM,EAAE,CAAC;;yDACK;AAEhC;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,uBAAuB,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;0DAC3B;AAG5B;IAAR,KAAK,EAAE;;iDAA2B;AAElB;IAAhB,KAAK,EAAE;;iDAAwC;AAYxC;IADP,KAAK,CAAC,wBAAwB,CAAC;;sDAC0B;AAlD/C,aAAa;IADzB,aAAa,CAAC,gBAAgB,CAAC;;GACnB,aAAa,CA0VzB"}
|
@@ -8470,7 +8470,7 @@
|
|
8470
8470
|
"format": "esm"
|
8471
8471
|
},
|
8472
8472
|
"library/src/blocks/components/devvit-blocks-web-view.ts": {
|
8473
|
-
"bytes":
|
8473
|
+
"bytes": 8642,
|
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":
|
8995
|
+
"bytes": 6492677
|
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":
|
9631
|
+
"bytesInOutput": 3570
|
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":
|
9691
|
+
"bytes": 1966229
|
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",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
|
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():typeof i=="string"?[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)}"
|