@devvit/ui-renderer 0.10.10-next-2023-11-28-93164c628.0 → 0.10.10-next-2023-11-28-a176b16c0.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.
@@ -1,7 +1,6 @@
1
1
  import { LitElement, PropertyValues } from 'lit';
2
2
  import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
3
- import type { LinkedBundle, Metadata, Struct } from '@devvit/protos';
4
- import { Block, RenderPostResponse } from '@devvit/protos';
3
+ import type { LinkedBundle, Metadata, Struct, Block, RenderPostResponse } from '@devvit/protos';
5
4
  import { BrowserLiteClient } from '@devvit/runtime-lite/BrowserLiteClient.js';
6
5
  import type { ActorRef } from '@devvit/runtimes/common/runtime/ActorRef.js';
7
6
  import { DevvitBlocksRenderer } from '../blocks/components/devvit-blocks-renderer.js';
@@ -1 +1 @@
1
- {"version":3,"file":"devvit-custom-post.d.ts","sourceRoot":"","sources":["../../library/src/client/devvit-custom-post.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvD,OAAO,kEAAkE,CAAC;AAG1E,OAAO,KAAK,EAOV,YAAY,EACZ,QAAQ,EAER,MAAM,EAGP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,EAML,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAKtF,OAAO,gDAAgD,CAAC;AACxD,OAAO,+CAA+C,CAAC;AACvD,OAAO,8BAA8B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF;AAgBD,qBAC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,EAAE,MAAM,gDAAgD,CAAC;AAKtF,OAAO,gDAAgD,CAAC;AACxD,OAAO,+CAA+C,CAAC;AACvD,OAAO,8BAA8B,CAAC;AAEtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF;AAgBD,qBACa,gBAAiB,SAAQ,UAAU;;IAE9C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAG/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,UAAU,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAG9B,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAGxB,MAAM,CAAC,EAAE,YAAY,CAAC;IAGtB,UAAU,EAAE,OAAO,CAAQ;IAG3B,qBAAqB,EAAE,OAAO,CAAS;IAGvC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IAGrC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IAGtC,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAGpC,SAAS,CAAC,EAAE,KAAK,CAAC;IAGlB,WAAW,EAAE,OAAO,CAAS;IAe7B,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,WAAoB,MAAM,8BAEzB;IAOD,QAAQ,IAAI,IAAI;IAIP,iBAAiB,IAAI,IAAI;IAKlC,WAAW,IAAI,IAAI;IAQV,oBAAoB,IAAI,IAAI;cAMZ,UAAU,CAAC,iBAAiB,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA4C5E,MAAM;CAoLhB"}
@@ -18,13 +18,13 @@ 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 _DevvitCustomPost_instances, _DevvitCustomPost_appState, _DevvitCustomPost_lastRequest, _DevvitCustomPost_rootHeight, _DevvitCustomPost_hasInitialRender, _DevvitCustomPost_hostname, _DevvitCustomPost_customPostActor, _DevvitCustomPost_uiEventHandlerActor, _DevvitCustomPost_rpcQueue, _DevvitCustomPost_rerenderTimeout, _DevvitCustomPost_state_get, _DevvitCustomPost_makeRenderContext, _DevvitCustomPost_handleUIEvent, _DevvitCustomPost_handleUserAction, _DevvitCustomPost_renderRequest, _DevvitCustomPost_initialRender, _DevvitCustomPost_userActionRender, _DevvitCustomPost_effectEventRender, _DevvitCustomPost_renderPost, _DevvitCustomPost_handleEffects;
21
+ var _DevvitCustomPost_instances, _DevvitCustomPost_appState, _DevvitCustomPost_lastRequest, _DevvitCustomPost_rootHeight, _DevvitCustomPost_hasInitialRender, _DevvitCustomPost_hostname, _DevvitCustomPost_customPostActor, _DevvitCustomPost_uiEventHandlerActor, _DevvitCustomPost_rpcQueue, _DevvitCustomPost_rerenderTimeout, _DevvitCustomPost_state_get, _DevvitCustomPost_makeRenderContext, _DevvitCustomPost_handleUIEvent, _DevvitCustomPost_handleUserAction, _DevvitCustomPost_renderRequest, _DevvitCustomPost_initialRender, _DevvitCustomPost_userActionRender, _DevvitCustomPost_effectEventRender, _DevvitCustomPost_renderPost, _DevvitCustomPost_handleEffects, _DevvitCustomPost_onPluginCall;
22
22
  import { html, LitElement } from 'lit';
23
23
  import { customElement, property, query, state } from 'lit/decorators.js';
24
24
  import PQueue from 'p-queue';
25
25
  import '@reddit/faceplate-ui/templateRenderingStrategy/clientStrategy.js';
26
26
  import { customEvent } from '@reddit/faceplate/lib/custom-event.js';
27
- import { Block, BlockConfig_Root, BlockRenderEventType, BlockStackDirection, CustomPostDefinition, EffectType, RenderPostResponse, UIEventHandlerDefinition, } from '@devvit/protos';
27
+ import { BlockConfig_Root, BlockRenderEventType, BlockStackDirection, CustomPostDefinition, EffectType, RealtimeDefinition, UIEventHandlerDefinition, } from '@devvit/protos';
28
28
  import { BrowserLiteClient } from '@devvit/runtime-lite/BrowserLiteClient.js';
29
29
  import { isCircuitBreaker } from '@devvit/runtime-lite/CircuitBreaker.js';
30
30
  import { DevvitBlocksRenderer } from '../blocks/components/devvit-blocks-renderer.js';
@@ -96,6 +96,13 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
96
96
  _DevvitCustomPost_renderRequest.set(this, (type, id, data = {}) => ({
97
97
  blocks: { type, id, data },
98
98
  }));
99
+ _DevvitCustomPost_onPluginCall.set(this, (id, serviceName, method, args) => {
100
+ if (serviceName === RealtimeDefinition.fullName &&
101
+ method === RealtimeDefinition.methods.send.name) {
102
+ this.dispatchEvent(customEvent('devvit-realtime-send', { event: args }));
103
+ this.localClient?.onPluginResponse(id, { success: true, value: {} });
104
+ }
105
+ });
99
106
  }
100
107
  static get styles() {
101
108
  return [styles];
@@ -122,7 +129,10 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
122
129
  async willUpdate(changedProperties) {
123
130
  if (changedProperties.has('localRuntimeCode') && this.localRuntimeCode) {
124
131
  this.localClient?.quit();
125
- this.localClient = new BrowserLiteClient(this.localRuntimeCode);
132
+ this.localClient = new BrowserLiteClient(this.localRuntimeCode, undefined, {
133
+ callback: __classPrivateFieldGet(this, _DevvitCustomPost_onPluginCall, "f"),
134
+ plugins: [RealtimeDefinition.fullName],
135
+ });
126
136
  }
127
137
  const actorRefChanged = changedProperties.has('actorRef');
128
138
  if (actorRefChanged) {
@@ -174,7 +184,7 @@ let DevvitCustomPost = class DevvitCustomPost extends LitElement {
174
184
  </div>`;
175
185
  }
176
186
  };
177
- _DevvitCustomPost_appState = new WeakMap(), _DevvitCustomPost_lastRequest = new WeakMap(), _DevvitCustomPost_rootHeight = new WeakMap(), _DevvitCustomPost_hasInitialRender = new WeakMap(), _DevvitCustomPost_hostname = new WeakMap(), _DevvitCustomPost_customPostActor = new WeakMap(), _DevvitCustomPost_uiEventHandlerActor = new WeakMap(), _DevvitCustomPost_rpcQueue = new WeakMap(), _DevvitCustomPost_rerenderTimeout = new WeakMap(), _DevvitCustomPost_makeRenderContext = new WeakMap(), _DevvitCustomPost_handleUIEvent = new WeakMap(), _DevvitCustomPost_handleUserAction = new WeakMap(), _DevvitCustomPost_renderRequest = new WeakMap(), _DevvitCustomPost_instances = new WeakSet(), _DevvitCustomPost_state_get = function _DevvitCustomPost_state_get() {
187
+ _DevvitCustomPost_appState = new WeakMap(), _DevvitCustomPost_lastRequest = new WeakMap(), _DevvitCustomPost_rootHeight = new WeakMap(), _DevvitCustomPost_hasInitialRender = new WeakMap(), _DevvitCustomPost_hostname = new WeakMap(), _DevvitCustomPost_customPostActor = new WeakMap(), _DevvitCustomPost_uiEventHandlerActor = new WeakMap(), _DevvitCustomPost_rpcQueue = new WeakMap(), _DevvitCustomPost_rerenderTimeout = new WeakMap(), _DevvitCustomPost_makeRenderContext = new WeakMap(), _DevvitCustomPost_handleUIEvent = new WeakMap(), _DevvitCustomPost_handleUserAction = new WeakMap(), _DevvitCustomPost_renderRequest = new WeakMap(), _DevvitCustomPost_onPluginCall = new WeakMap(), _DevvitCustomPost_instances = new WeakSet(), _DevvitCustomPost_state_get = function _DevvitCustomPost_state_get() {
178
188
  const data = { __postData: { thingId: this.postId, config: this.postConfig } };
179
189
  return Object.assign({}, __classPrivateFieldGet(this, _DevvitCustomPost_appState, "f"), data);
180
190
  }, _DevvitCustomPost_initialRender = function _DevvitCustomPost_initialRender() {
@@ -0,0 +1,17 @@
1
+ import { RealtimeSubscriptionsEffect, UIEvent } from '@devvit/protos';
2
+ import { DevvitEffectHandler } from './devvit-effect-handler.js';
3
+ import { ReactiveElement } from 'lit';
4
+ export declare abstract class RealtimeEffectHandler extends DevvitEffectHandler {
5
+ #private;
6
+ protected constructor(host: ReactiveElement);
7
+ abstract subscribe(channels: string[]): void;
8
+ abstract send(channel: string, data: {
9
+ [keys: string]: unknown;
10
+ }): Promise<void>;
11
+ hostConnected(): void;
12
+ protected get onEvent(): ((event: UIEvent) => void) | undefined;
13
+ protected onSubscribe(channel: string): void;
14
+ protected onUnsubscribe(channel: string): void;
15
+ onRealtimeSubscriptions(subscriptions: RealtimeSubscriptionsEffect, onEvent: (event: UIEvent) => void): void;
16
+ }
17
+ //# sourceMappingURL=realtime-effect-handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime-effect-handler.d.ts","sourceRoot":"","sources":["../../../library/src/client/effects/realtime-effect-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,2BAA2B,EAE3B,OAAO,EACR,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAEtC,8BAAsB,qBAAsB,SAAQ,mBAAmB;;IAGrE,SAAS,aAAa,IAAI,EAAE,eAAe;IAI3C,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI;IAE5C,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAEvE,aAAa,IAAI,IAAI;IAK9B,SAAS,KAAK,OAAO,IAAI,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,CAE9D;IAED,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAM5C,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IASrC,uBAAuB,CAC9B,aAAa,EAAE,2BAA2B,EAC1C,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAChC,IAAI;CASR"}
@@ -0,0 +1,49 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
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
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
12
+ var _RealtimeEffectHandler_instances, _RealtimeEffectHandler_onEvent, _RealtimeEffectHandler_sendEvent;
13
+ import { RealtimeSubscriptionStatus, } from '@devvit/protos';
14
+ import { DevvitEffectHandler } from './devvit-effect-handler.js';
15
+ export class RealtimeEffectHandler extends DevvitEffectHandler {
16
+ constructor(host) {
17
+ super(host);
18
+ _RealtimeEffectHandler_instances.add(this);
19
+ _RealtimeEffectHandler_onEvent.set(this, void 0);
20
+ }
21
+ hostConnected() {
22
+ super.hostConnected();
23
+ this.host.addEventListener('devvit-realtime-send', (ev) => void __classPrivateFieldGet(this, _RealtimeEffectHandler_instances, "m", _RealtimeEffectHandler_sendEvent).call(this, ev));
24
+ }
25
+ get onEvent() {
26
+ return __classPrivateFieldGet(this, _RealtimeEffectHandler_onEvent, "f");
27
+ }
28
+ onSubscribe(channel) {
29
+ __classPrivateFieldGet(this, _RealtimeEffectHandler_onEvent, "f")?.call(this, {
30
+ realtimeEvent: { event: { channel }, status: RealtimeSubscriptionStatus.REALTIME_SUBSCRIBED },
31
+ });
32
+ }
33
+ onUnsubscribe(channel) {
34
+ __classPrivateFieldGet(this, _RealtimeEffectHandler_onEvent, "f")?.call(this, {
35
+ realtimeEvent: {
36
+ event: { channel },
37
+ status: RealtimeSubscriptionStatus.REALTIME_UNSUBSCRIBED,
38
+ },
39
+ });
40
+ }
41
+ onRealtimeSubscriptions(subscriptions, onEvent) {
42
+ __classPrivateFieldSet(this, _RealtimeEffectHandler_onEvent, onEvent, "f");
43
+ this.subscribe(subscriptions.subscriptionIds);
44
+ }
45
+ }
46
+ _RealtimeEffectHandler_onEvent = new WeakMap(), _RealtimeEffectHandler_instances = new WeakSet(), _RealtimeEffectHandler_sendEvent = async function _RealtimeEffectHandler_sendEvent(ev) {
47
+ const { event } = ev.detail;
48
+ await this.send(event.channel, event.data);
49
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.10.10-next-2023-11-28-93164c628.0",
3
+ "version": "0.10.10-next-2023-11-28-a176b16c0.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,9 +54,9 @@
54
54
  },
55
55
  "types": "./index.d.ts",
56
56
  "dependencies": {
57
- "@devvit/protos": "0.10.10-next-2023-11-28-93164c628.0",
58
- "@devvit/runtime-lite": "0.10.10-next-2023-11-28-93164c628.0",
59
- "@devvit/runtimes": "0.10.10-next-2023-11-28-93164c628.0",
57
+ "@devvit/protos": "0.10.10-next-2023-11-28-a176b16c0.0",
58
+ "@devvit/runtime-lite": "0.10.10-next-2023-11-28-a176b16c0.0",
59
+ "@devvit/runtimes": "0.10.10-next-2023-11-28-a176b16c0.0",
60
60
  "@lottiefiles/lottie-player": "1.7.1",
61
61
  "isomorphic-dompurify": "1.9.0",
62
62
  "p-queue": "7.3.4",
@@ -84,7 +84,7 @@
84
84
  "devDependencies": {
85
85
  "@devvit/eslint-config": "0.10.9",
86
86
  "@devvit/repo-tools": "0.10.9",
87
- "@devvit/tsconfig": "0.10.10-next-2023-11-28-93164c628.0",
87
+ "@devvit/tsconfig": "0.10.10-next-2023-11-28-a176b16c0.0",
88
88
  "@lit-labs/ssr": "^2.2.3",
89
89
  "@lit/localize": "0.11.4",
90
90
  "@open-wc/testing-helpers": "2.3.0",
@@ -116,5 +116,5 @@
116
116
  "directory": "dist"
117
117
  },
118
118
  "source": "./src/index.ts",
119
- "gitHead": "0788843c07857268ea3fab0aed800230b97f3f77"
119
+ "gitHead": "556aa8ff5288d3040ca96732495b408f7d900152"
120
120
  }
package/types/events.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { FaceplateEvent } from '@reddit/faceplate/event-types.js';
2
2
  import { Severity } from '@reddit/faceplate/types.js';
3
- import { BlockAction, Effect, Form, UIEvent } from '@devvit/protos';
3
+ import { BlockAction, Effect, Form, RealtimeEvent, UIEvent } from '@devvit/protos';
4
4
  declare global {
5
5
  interface DevvitUIEffectEvent extends FaceplateEvent<'devvit-ui-effect'> {
6
6
  detail: Readonly<{
@@ -13,6 +13,16 @@ declare global {
13
13
  action: BlockAction;
14
14
  }>;
15
15
  }
16
+ interface DevvitRealtimeSubscriptions extends FaceplateEvent<'devvit-realtime-subs'> {
17
+ detail: Readonly<{
18
+ channels: string[];
19
+ }>;
20
+ }
21
+ interface DevvitRealtimeSend extends FaceplateEvent<'devvit-realtime-send'> {
22
+ detail: Readonly<{
23
+ event: RealtimeEvent;
24
+ }>;
25
+ }
16
26
  interface ParentWindowInfo {
17
27
  windowTop: Window;
18
28
  postMessageHostOrigin: string;
@@ -33,6 +43,7 @@ declare global {
33
43
  interface HTMLElementEventMap {
34
44
  'devvit-ui-effect': DevvitUIEffectEvent;
35
45
  'devvit-user-action': DevvitUserAction;
46
+ 'devvit-realtime-send': DevvitRealtimeSend;
36
47
  }
37
48
  }
38
49
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../library/src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,WAA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