@devvit/ui-renderer 0.10.19-next-2024-04-12-962ea6ebd.0 → 0.10.19-next-2024-04-12-db1b48005.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.
@@ -61,6 +61,7 @@ export declare class AppUILooper {
61
61
  * which frequently loads new bundles.
62
62
  */
63
63
  resetAppState(): void;
64
+ set runtimeDebugLogging(on: boolean);
64
65
  /** Set the runtime source code. */
65
66
  setLocalSrc(src: Blob | undefined): void;
66
67
  /** Unload the app and reject any open requests. */
@@ -1 +1 @@
1
- {"version":3,"file":"app-ui-looper.d.ts","sourceRoot":"","sources":["../../library/src/client/app-ui-looper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,MAAM,EAGN,YAAY,EACZ,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAsB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EAEX,MAAM,kDAAkD,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,6BAA6B,CAAC;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AASzC,KAAK,QAAQ,GAAG;IACd,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,GAAG,GAAG,SAAS,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;KACtC,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AACF,KAAK,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAE5C;;;;;;;;;;;;;GAaG;AACH,qBAAa,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CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IAC1C,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B,sCAAsC;IACtC,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC3B,kFAAkF;IAClF,UAAU,EAAE,UAAU,CAAsB;IAe5C;;;OAGG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAYhC,6DAA6D;IAC7D,IAAI,QAAQ,IAAI,QAAQ,CAGvB;IAED;;;OAGG;IACG,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAUxE,UAAU,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI;IAW7B,eAAe,CAAC,IAAI,EAAE,oBAAoB,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI;IAK1F,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;;OAGG;IACH,aAAa,IAAI,IAAI;IAKrB,IAAI,mBAAmB,CAAC,EAAE,EAAE,OAAO,EAGlC;IAED,mCAAmC;IACnC,WAAW,CAAC,GAAG,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI;IAWxC,mDAAmD;IACnD,MAAM,IAAI,IAAI;CAiHf"}
@@ -9,13 +9,13 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
9
9
  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");
10
10
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
11
  };
12
- var _AppUILooper_instances, _AppUILooper_app, _AppUILooper_appState, _AppUILooper_q, _AppUILooper_rendered, _AppUILooper_rerenderTimeout, _AppUILooper_onEffects, _AppUILooper_onError, _AppUILooper_onPluginCall, _AppUILooper_processEvent, _AppUILooper_renderPost;
12
+ var _AppUILooper_instances, _AppUILooper_app, _AppUILooper_appState, _AppUILooper_q, _AppUILooper_rendered, _AppUILooper_rerenderTimeout, _AppUILooper_runtimeDebugLogging, _AppUILooper_onEffects, _AppUILooper_onError, _AppUILooper_onPluginCall, _AppUILooper_processEvent, _AppUILooper_renderPost;
13
13
  import { BlockRenderEventType, RealtimeDefinition } from '@devvit/protos';
14
14
  import { BrowserLiteClient } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
15
15
  import { isCircuitBreaker } from '@devvit/runtime-lite/types/CircuitBreaker.js';
16
+ import { DEFAULT_DIMENSIONS } from '@devvit/shared-types/dimensions.js';
16
17
  import PQueue from 'p-queue';
17
18
  import { initDevvitGlobal } from '../types/devvit-global.js';
18
- import { DEFAULT_DIMENSIONS } from '@devvit/shared-types/dimensions.js';
19
19
  // Effects that can only be fired as the result of a user action
20
20
  const userActionEffects = ['showToast', 'showForm', 'navigateToUrl'];
21
21
  initDevvitGlobal();
@@ -60,6 +60,7 @@ export class AppUILooper {
60
60
  */
61
61
  _AppUILooper_rendered.set(this, false);
62
62
  _AppUILooper_rerenderTimeout.set(this, void 0);
63
+ _AppUILooper_runtimeDebugLogging.set(this, false);
63
64
  _AppUILooper_onPluginCall.set(this, (id, serviceName, method, args, meta) => {
64
65
  this.onPluginCall?.(id, serviceName, method, args, meta);
65
66
  if (serviceName === RealtimeDefinition.fullName &&
@@ -112,6 +113,11 @@ export class AppUILooper {
112
113
  __classPrivateFieldSet(this, _AppUILooper_rendered, false, "f");
113
114
  __classPrivateFieldSet(this, _AppUILooper_appState, {}, "f");
114
115
  }
116
+ set runtimeDebugLogging(on) {
117
+ __classPrivateFieldSet(this, _AppUILooper_runtimeDebugLogging, on, "f");
118
+ if (this._local)
119
+ this._local.runtimeDebugLogging = on;
120
+ }
115
121
  /** Set the runtime source code. */
116
122
  setLocalSrc(src) {
117
123
  this.unload();
@@ -121,6 +127,8 @@ export class AppUILooper {
121
127
  plugins: [RealtimeDefinition.fullName],
122
128
  })
123
129
  : undefined;
130
+ if (this._local)
131
+ this._local.runtimeDebugLogging = __classPrivateFieldGet(this, _AppUILooper_runtimeDebugLogging, "f");
124
132
  }
125
133
  /** Unload the app and reject any open requests. */
126
134
  unload() {
@@ -131,7 +139,7 @@ export class AppUILooper {
131
139
  this._local?.quit();
132
140
  }
133
141
  }
134
- _AppUILooper_app = new WeakMap(), _AppUILooper_appState = new WeakMap(), _AppUILooper_q = new WeakMap(), _AppUILooper_rendered = new WeakMap(), _AppUILooper_rerenderTimeout = new WeakMap(), _AppUILooper_onPluginCall = new WeakMap(), _AppUILooper_instances = new WeakSet(), _AppUILooper_onEffects = function _AppUILooper_onEffects(renderType, effects) {
142
+ _AppUILooper_app = new WeakMap(), _AppUILooper_appState = new WeakMap(), _AppUILooper_q = new WeakMap(), _AppUILooper_rendered = new WeakMap(), _AppUILooper_rerenderTimeout = new WeakMap(), _AppUILooper_runtimeDebugLogging = new WeakMap(), _AppUILooper_onPluginCall = new WeakMap(), _AppUILooper_instances = new WeakSet(), _AppUILooper_onEffects = function _AppUILooper_onEffects(renderType, effects) {
135
143
  for (const effect of effects) {
136
144
  if (effect.rerenderUi) {
137
145
  if (__classPrivateFieldGet(this, _AppUILooper_rerenderTimeout, "f") != null)
@@ -67,6 +67,7 @@ export declare class DevvitCustomPost extends LitElement {
67
67
  metadata?: Metadata | undefined;
68
68
  postConfig?: Struct['fields'] | undefined;
69
69
  postId?: string | undefined;
70
+ runtimeDebugLogging: boolean;
70
71
  scheme?: 'dark' | 'light' | undefined;
71
72
  useExperimentalBlocks: boolean;
72
73
  useSandbox: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-custom-post.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-custom-post.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAE1E,OAAO,KAAK,EACV,WAAW,EAEX,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,aAAa,EAEb,kBAAkB,EAClB,MAAM,EACN,OAAO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C;IAEA,OAAO,CAAC,eAAe,CAAwB;IACvE,OAAO,CAAC,YAAY,CAAkB;IACtC,OAAO,CAAC,UAAU,CAAC,CAAoB;;IAehD,IAAI,YAAY,IAAI,MAAM,CAGzB;IACc,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBxC,oBAAoB,IAAI,IAAI;IASrC,QAAQ,IAAI,IAAI;cAIG,MAAM;cAoBA,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAyGhF"}
@@ -20,7 +20,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
20
20
  };
21
21
  var _DevvitCustomPost_instances, _DevvitCustomPost_lastRequest, _DevvitCustomPost_looper, _DevvitCustomPost_rootHeight, _DevvitCustomPost_resizeObserver, _DevvitCustomPost_bubble, _DevvitCustomPost_newRenderContext, _DevvitCustomPost_onError, _DevvitCustomPost_onPluginCall, _DevvitCustomPost_onRenderPost, _DevvitCustomPost_onUserActionEffect, _DevvitCustomPost_onUserActionEvent;
22
22
  import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
23
- import { Block, BlockConfig_Root, BlockRenderEventType, BlockStackDirection, RealtimeDefinition, Dimensions, } from '@devvit/protos';
23
+ import { Block, BlockConfig_Root, BlockRenderEventType, BlockStackDirection, Dimensions, RealtimeDefinition, } from '@devvit/protos';
24
24
  import { isCircuitBreaker } from '@devvit/runtime-lite/types/CircuitBreaker.js';
25
25
  import { throttle } from '@devvit/shared-types/throttle.js';
26
26
  import { asT3ID } from '@devvit/shared-types/tid.js';
@@ -54,6 +54,7 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
54
54
  constructor() {
55
55
  super();
56
56
  _DevvitCustomPost_instances.add(this);
57
+ this.runtimeDebugLogging = false;
57
58
  this.useExperimentalBlocks = false;
58
59
  // to-do: don't use attributes initialized to true. They cannot be passed by
59
60
  // attributes.
@@ -168,11 +169,14 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
168
169
  if (props.has('postId')) {
169
170
  __classPrivateFieldGet(this, _DevvitCustomPost_looper, "f").postID = this.postId ? asT3ID(this.postId) : undefined;
170
171
  }
172
+ if (props.has('runtimeDebugLogging')) {
173
+ __classPrivateFieldGet(this, _DevvitCustomPost_looper, "f").runtimeDebugLogging = this.runtimeDebugLogging;
174
+ }
171
175
  if (props.has('actorRef')) {
172
176
  if (!this.actorRef)
173
177
  __classPrivateFieldGet(this, _DevvitCustomPost_looper, "f").remote = undefined;
174
178
  else if ('As' in this.actorRef)
175
- __classPrivateFieldGet(this, _DevvitCustomPost_looper, "f").remote = new RemoteApp(this.actorRef);
179
+ __classPrivateFieldGet(this, _DevvitCustomPost_looper, "f").remote = new RemoteApp(this.actorRef); // to-do: delete ActorRef.
176
180
  else
177
181
  __classPrivateFieldGet(this, _DevvitCustomPost_looper, "f").remote = this.actorRef;
178
182
  }
@@ -235,6 +239,10 @@ __decorate([
235
239
  property({ attribute: 'post-id' }),
236
240
  __metadata("design:type", Object)
237
241
  ], DevvitCustomPost.prototype, "postId", void 0);
242
+ __decorate([
243
+ property({ attribute: 'runtime-debug-logging', type: Boolean }),
244
+ __metadata("design:type", Boolean)
245
+ ], DevvitCustomPost.prototype, "runtimeDebugLogging", void 0);
238
246
  __decorate([
239
247
  property({ attribute: 'scheme' }),
240
248
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.10.19-next-2024-04-12-962ea6ebd.0",
3
+ "version": "0.10.19-next-2024-04-12-db1b48005.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,11 +55,11 @@
55
55
  },
56
56
  "types": "./index.d.ts",
57
57
  "dependencies": {
58
- "@devvit/protos": "0.10.19-next-2024-04-12-962ea6ebd.0",
59
- "@devvit/public-api": "0.10.19-next-2024-04-12-962ea6ebd.0",
60
- "@devvit/runtime-lite": "0.10.19-next-2024-04-12-962ea6ebd.0",
61
- "@devvit/runtimes": "0.10.19-next-2024-04-12-962ea6ebd.0",
62
- "@devvit/shared-types": "0.10.19-next-2024-04-12-962ea6ebd.0",
58
+ "@devvit/protos": "0.10.19-next-2024-04-12-db1b48005.0",
59
+ "@devvit/public-api": "0.10.19-next-2024-04-12-db1b48005.0",
60
+ "@devvit/runtime-lite": "0.10.19-next-2024-04-12-db1b48005.0",
61
+ "@devvit/runtimes": "0.10.19-next-2024-04-12-db1b48005.0",
62
+ "@devvit/shared-types": "0.10.19-next-2024-04-12-db1b48005.0",
63
63
  "@dotlottie/player-component": "2.7.2",
64
64
  "p-queue": "7.3.4",
65
65
  "rxjs": "7.8.1"
@@ -86,7 +86,7 @@
86
86
  "devDependencies": {
87
87
  "@devvit/eslint-config": "0.10.18",
88
88
  "@devvit/repo-tools": "0.10.18",
89
- "@devvit/tsconfig": "0.10.19-next-2024-04-12-962ea6ebd.0",
89
+ "@devvit/tsconfig": "0.10.19-next-2024-04-12-db1b48005.0",
90
90
  "@lit-labs/ssr": "^2.2.3",
91
91
  "@lit/localize": "0.11.4",
92
92
  "@open-wc/testing-helpers": "2.3.0",
@@ -119,5 +119,5 @@
119
119
  "directory": "dist"
120
120
  },
121
121
  "source": "./src/index.ts",
122
- "gitHead": "29df7898bf5d2422bce659aafab9be33fec2b83a"
122
+ "gitHead": "5bd4e439e00324ac7c4ffc99c034c7c3d9117f95"
123
123
  }