@devvit/ui-renderer 0.10.19-next-2024-04-18-8f16790d3.0 → 0.10.19-next-2024-04-18-808837fb0.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.
- package/client/devvit-custom-post.d.ts +2 -2
- package/client/devvit-custom-post.d.ts.map +1 -1
- package/client/dispatcher.d.ts +2 -2
- package/client/dispatcher.d.ts.map +1 -1
- package/client/remote-app.d.ts +3 -3
- package/client/remote-app.d.ts.map +1 -1
- package/client/remote-app.js +2 -3
- package/package.json +8 -8
|
@@ -5,7 +5,7 @@ import type { WorkerErrorType } from '@devvit/runtime-lite/client/BrowserLiteCli
|
|
|
5
5
|
import type { FaceplateEvent } from '@reddit/faceplate/event-types.js';
|
|
6
6
|
import type { PropertyValues } from 'lit';
|
|
7
7
|
import { LitElement } from 'lit';
|
|
8
|
-
import type {
|
|
8
|
+
import type { UIApp } from './remote-app.js';
|
|
9
9
|
import '../blocks/components/devvit-blocks-renderer.js';
|
|
10
10
|
import '../blocks/components/devvit-blocks-webview.js';
|
|
11
11
|
import './devvit-animation-player.js';
|
|
@@ -60,7 +60,7 @@ export declare class DevvitCustomPost extends LitElement {
|
|
|
60
60
|
#private;
|
|
61
61
|
static get styles(): import("lit").CSSResult[];
|
|
62
62
|
/** Probably a wrapper around the remote runtime (compute-go). */
|
|
63
|
-
remoteApp?:
|
|
63
|
+
remoteApp?: UIApp | undefined;
|
|
64
64
|
bundle?: LinkedBundle | undefined;
|
|
65
65
|
localRuntimeCode?: Blob | undefined;
|
|
66
66
|
metadata?: Metadata | undefined;
|
|
@@ -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,EACl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AU,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;CAmHhF"}
|
package/client/dispatcher.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BlockRenderEventType } from '@devvit/protos';
|
|
|
3
3
|
import type { ErrorCallback, LiteClient } from '@devvit/runtime-lite/client/BrowserLiteClient.js';
|
|
4
4
|
import type { PluginCallback } from '@devvit/runtime-lite/runtime/RuntimeLite.js';
|
|
5
5
|
import type { T3ID, TID } from '@devvit/shared-types/tid.js';
|
|
6
|
-
import type {
|
|
6
|
+
import type { UIApp } from './remote-app.js';
|
|
7
7
|
type AppState = {
|
|
8
8
|
__postData?: {
|
|
9
9
|
thingId: TID | undefined;
|
|
@@ -38,7 +38,7 @@ export declare class Dispatcher {
|
|
|
38
38
|
postConfig?: Struct['fields'] | undefined;
|
|
39
39
|
postID?: T3ID | undefined;
|
|
40
40
|
/** A client to the remote runtime. */
|
|
41
|
-
remote?:
|
|
41
|
+
remote?: UIApp | undefined;
|
|
42
42
|
/** Dimensions that describe layout information for the custom post entry point */
|
|
43
43
|
dimensions: Dimensions;
|
|
44
44
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatcher.d.ts","sourceRoot":"","sources":["../../library/src/client/dispatcher.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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AY,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IACvF,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAClD,UAAU,CAAC,EAAE,MAAM,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"}
|
package/client/remote-app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AutomationUIBuilder, AutomationUIBuilderGetAutomationRequest, AutomationUIBuilderGetAutomationResponse, AutomationUIBuilderUpdateAutomationRequest, AutomationUIBuilderUpdateAutomationResponse, ContextAction, ContextActionList, ContextActionRequest, ContextActionResponse, Empty } from '@devvit/protos';
|
|
1
|
+
import type { AutomationUIBuilder, AutomationUIBuilderGetAutomationRequest, AutomationUIBuilderGetAutomationResponse, AutomationUIBuilderUpdateAutomationRequest, AutomationUIBuilderUpdateAutomationResponse, ContextAction, ContextActionList, ContextActionRequest, ContextActionResponse, CustomPost, Empty, UIEventHandler } from '@devvit/protos';
|
|
2
2
|
import { type HandleUIEventRequest, type HandleUIEventResponse, type Metadata, type RenderPostRequest, type RenderPostResponse, type UIRequest, type UIResponse } from '@devvit/protos';
|
|
3
3
|
import { type CallOptions } from 'nice-grpc-web';
|
|
4
4
|
type CustomPostNiceClient = {
|
|
@@ -17,12 +17,12 @@ type AutomationUIBuilderNiceClient = {
|
|
|
17
17
|
getAutomation(req: Readonly<AutomationUIBuilderGetAutomationRequest>, opts: Readonly<CallOptions>): Promise<AutomationUIBuilderGetAutomationResponse>;
|
|
18
18
|
updateAutomation(req: Readonly<AutomationUIBuilderUpdateAutomationRequest>, opts: Readonly<CallOptions>): Promise<AutomationUIBuilderUpdateAutomationResponse>;
|
|
19
19
|
};
|
|
20
|
-
type UIApp =
|
|
20
|
+
export type UIApp = UIEventHandler & CustomPost;
|
|
21
21
|
type Meta = {
|
|
22
22
|
installation: string;
|
|
23
23
|
actor: string;
|
|
24
24
|
};
|
|
25
|
-
export declare class RemoteApp implements UIApp {
|
|
25
|
+
export declare class RemoteApp implements UIApp, ContextAction, Pick<AutomationUIBuilder, 'GetAutomation' | 'UpdateAutomation'> {
|
|
26
26
|
#private;
|
|
27
27
|
static new(gatewayOrigin: string, meta: Meta): RemoteApp;
|
|
28
28
|
constructor(automationBuilder: AutomationUIBuilderNiceClient, contextAction: ContextActionNiceClient, customPost: CustomPostNiceClient, uiEventHandler: UIEventHandlerNiceClient, meta: Meta);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-app.d.ts","sourceRoot":"","sources":["../../library/src/client/remote-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,mBAAmB,EACnB,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,EAC1C,2CAA2C,EAC3C,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,
|
|
1
|
+
{"version":3,"file":"remote-app.d.ts","sourceRoot":"","sources":["../../library/src/client/remote-app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,mBAAmB,EACnB,uCAAuC,EACvC,wCAAwC,EACxC,0CAA0C,EAC1C,2CAA2C,EAC3C,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,UAAU,EACV,KAAK,EACL,cAAc,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAKL,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,eAAe,CAAC;AAYvB,KAAK,oBAAoB,GAAG;IAC1B,UAAU,CACR,GAAG,EAAE,QAAQ,CAAC,iBAAiB,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC/B,kBAAkB,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC/F,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC/F,CAAC;AACF,KAAK,wBAAwB,GAAG;IAC9B,aAAa,CACX,GAAG,E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|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
12
|
var _RemoteApp_instances, _RemoteApp_automationBuilder, _RemoteApp_contextAction, _RemoteApp_customPost, _RemoteApp_meta, _RemoteApp_uiEventHandler, _RemoteApp_newNiceMeta;
|
|
13
|
-
import { AutomationUIBuilderDefinition } from '@devvit/protos';
|
|
14
|
-
import { ContextActionDefinition, CustomPostDefinition, UIEventHandlerDefinition, } from '@devvit/protos';
|
|
15
|
-
import { Metadata as NiceMeta, createChannel, createClient, FetchTransport, } from 'nice-grpc-web';
|
|
13
|
+
import { AutomationUIBuilderDefinition, ContextActionDefinition, CustomPostDefinition, UIEventHandlerDefinition, } from '@devvit/protos';
|
|
16
14
|
import { Header } from '@devvit/shared-types/Header.js';
|
|
15
|
+
import { FetchTransport, Metadata as NiceMeta, createChannel, createClient, } from 'nice-grpc-web';
|
|
17
16
|
export class RemoteApp {
|
|
18
17
|
static new(gatewayOrigin, meta) {
|
|
19
18
|
const channel = createChannel(gatewayOrigin, FetchTransport({ credentials: 'include' }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/ui-renderer",
|
|
3
|
-
"version": "0.10.19-next-2024-04-18-
|
|
3
|
+
"version": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
},
|
|
56
56
|
"types": "./index.d.ts",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@devvit/protos": "0.10.19-next-2024-04-18-
|
|
59
|
-
"@devvit/runtime-lite": "0.10.19-next-2024-04-18-
|
|
60
|
-
"@devvit/runtimes": "0.10.19-next-2024-04-18-
|
|
61
|
-
"@devvit/shared-types": "0.10.19-next-2024-04-18-
|
|
58
|
+
"@devvit/protos": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
59
|
+
"@devvit/runtime-lite": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
60
|
+
"@devvit/runtimes": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
61
|
+
"@devvit/shared-types": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
62
62
|
"@dotlottie/player-component": "2.7.2",
|
|
63
63
|
"nice-grpc-web": "3.3.3",
|
|
64
64
|
"p-queue": "7.3.4",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@devvit/eslint-config": "0.10.18",
|
|
88
|
-
"@devvit/public-api": "0.10.19-next-2024-04-18-
|
|
88
|
+
"@devvit/public-api": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
89
89
|
"@devvit/repo-tools": "0.10.18",
|
|
90
|
-
"@devvit/tsconfig": "0.10.19-next-2024-04-18-
|
|
90
|
+
"@devvit/tsconfig": "0.10.19-next-2024-04-18-808837fb0.0",
|
|
91
91
|
"@lit-labs/ssr": "^2.2.3",
|
|
92
92
|
"@lit/localize": "0.11.4",
|
|
93
93
|
"@open-wc/testing-helpers": "2.3.0",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"directory": "dist"
|
|
121
121
|
},
|
|
122
122
|
"source": "./src/index.ts",
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "7888455bd95ee09e0aabfe1eb3ee958ded8f2833"
|
|
124
124
|
}
|