@devvit/ui-renderer 0.11.20-next-2025-07-31-00-19-34-263fd4edc.0 → 0.11.20-next-2025-07-31-16-54-28-28f22dff5.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,6 +1,6 @@
1
1
  import type { BridgeContext } from '@devvit/protos/json/devvit/ui/effects/web_view/v1alpha/context.js';
2
2
  import { type WebViewAppMessage } from '@devvit/protos/types/devvit/ui/effects/web_view/v1alpha/post_message.js';
3
- import type { JSONObject, JSONValue } from '@devvit/shared-types/json.js';
3
+ import type { JsonObject, JsonValue } from '@devvit/shared-types/json.js';
4
4
  import type { PropertyValues } from 'lit';
5
5
  import { LitElement } from 'lit';
6
6
  import type { DevvitBlocksElement } from './DevvitBlocksElement.js';
@@ -15,7 +15,7 @@ declare global {
15
15
  'devvit-blocks-web-view': DevvitBlocksWebView;
16
16
  }
17
17
  interface HTMLElementEventMap {
18
- 'devvit-web-view-message': CustomEvent<JSONValue>;
18
+ 'devvit-web-view-message': CustomEvent<JsonValue>;
19
19
  /** Custom event type for web view click events */
20
20
  'devvit-web-view-click': DevvitWebViewClickEvent;
21
21
  /** Custom event type for web view loaded duration */
@@ -35,12 +35,12 @@ export declare class DevvitBlocksWebView extends LitElement implements DevvitBlo
35
35
  *
36
36
  * Originates from WebViewEffectHandler.
37
37
  * */
38
- onReceivedPostMessage?: (data: JSONValue) => void;
38
+ onReceivedPostMessage?: (data: JsonValue) => void;
39
39
  /**
40
40
  * Use ui.webView.postMessage()
41
41
  * @deprecated
42
42
  */
43
- state: JSONObject | undefined;
43
+ state: JsonObject | undefined;
44
44
  autoFocus: boolean;
45
45
  /**
46
46
  * When true, the embedded iframe will be focusable via keyboard navigation (tabindex="0").
@@ -1,5 +1,5 @@
1
1
  import { type UIEvent } from '@devvit/protos/types/devvit/ui/events/v1alpha/event.js';
2
- import type { JSONObject } from '@devvit/shared-types/json.js';
2
+ import type { JsonObject } from '@devvit/shared-types/json.js';
3
3
  import type { ReactiveElement } from 'lit';
4
4
  import type { DevvitUIEffectEvent } from '../dispatcher/events.js';
5
5
  import { EffectHandler } from './effect-handler.js';
@@ -21,7 +21,7 @@ export declare abstract class RealtimeEffectHandler extends EffectHandler {
21
21
  protected onEvent(ev: DevvitUIEffectEvent): void;
22
22
  /** Destroy the channel socket. */
23
23
  protected abstract onFreeSock(channel: string): void;
24
- protected abstract onSendSock(channel: string, data: JSONObject): Promise<void>;
24
+ protected abstract onSendSock(channel: string, data: JsonObject): Promise<void>;
25
25
  /** App called useChannel().send(). */
26
26
  private _onSendEv;
27
27
  }