@devvit/public-api 0.10.23-next-2024-07-01-a6d03873c.0 → 0.10.23-next-2024-07-01-e5482c9a2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/meta.json +3 -3
- package/package.json +7 -7
- package/public-api.d.ts +30 -13
- package/public-api.iife.js +55 -18
package/meta.json
CHANGED
@@ -9224,7 +9224,7 @@
|
|
9224
9224
|
"format": "esm"
|
9225
9225
|
},
|
9226
9226
|
"../protos/dist/types/devvit/ui/events/v1alpha/event.js": {
|
9227
|
-
"bytes":
|
9227
|
+
"bytes": 26122,
|
9228
9228
|
"imports": [
|
9229
9229
|
{
|
9230
9230
|
"path": "../../node_modules/protobufjs/minimal.js",
|
@@ -14028,7 +14028,7 @@
|
|
14028
14028
|
"bytesInOutput": 5254
|
14029
14029
|
},
|
14030
14030
|
"../protos/dist/types/devvit/ui/events/v1alpha/event.js": {
|
14031
|
-
"bytesInOutput":
|
14031
|
+
"bytesInOutput": 23276
|
14032
14032
|
},
|
14033
14033
|
"../protos/dist/types/devvit/ui/common/v1alpha/common.js": {
|
14034
14034
|
"bytesInOutput": 2617
|
@@ -14409,7 +14409,7 @@
|
|
14409
14409
|
"bytesInOutput": 4450
|
14410
14410
|
}
|
14411
14411
|
},
|
14412
|
-
"bytes":
|
14412
|
+
"bytes": 14803805
|
14413
14413
|
}
|
14414
14414
|
}
|
14415
14415
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/public-api",
|
3
|
-
"version": "0.10.23-next-2024-07-01-
|
3
|
+
"version": "0.10.23-next-2024-07-01-e5482c9a2.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
},
|
31
31
|
"types": "./index.d.ts",
|
32
32
|
"dependencies": {
|
33
|
-
"@devvit/protos": "0.10.23-next-2024-07-01-
|
34
|
-
"@devvit/shared-types": "0.10.23-next-2024-07-01-
|
33
|
+
"@devvit/protos": "0.10.23-next-2024-07-01-e5482c9a2.0",
|
34
|
+
"@devvit/shared-types": "0.10.23-next-2024-07-01-e5482c9a2.0",
|
35
35
|
"base64-js": "1.5.1",
|
36
36
|
"clone-deep": "4.0.1",
|
37
37
|
"core-js": "3.27.2",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
42
|
-
"@devvit/eslint-config": "0.10.23-next-2024-07-01-
|
43
|
-
"@devvit/repo-tools": "0.10.23-next-2024-07-01-
|
44
|
-
"@devvit/tsconfig": "0.10.23-next-2024-07-01-
|
42
|
+
"@devvit/eslint-config": "0.10.23-next-2024-07-01-e5482c9a2.0",
|
43
|
+
"@devvit/repo-tools": "0.10.23-next-2024-07-01-e5482c9a2.0",
|
44
|
+
"@devvit/tsconfig": "0.10.23-next-2024-07-01-e5482c9a2.0",
|
45
45
|
"@microsoft/api-extractor": "7.41.0",
|
46
46
|
"@reddit/faceplate-ui": "11.3.3",
|
47
47
|
"@types/clone-deep": "4.0.1",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
}
|
65
65
|
},
|
66
66
|
"source": "./src/index.ts",
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "f5130a05beafe1fae2f0b7ef7f8177a28f5d5d6c"
|
68
68
|
}
|
package/public-api.d.ts
CHANGED
@@ -50,6 +50,7 @@ import { SubredditType as SubredditType_3 } from '../../../reddit/v2alpha/subred
|
|
50
50
|
import { SubredditType as SubredditType_4 } from '../../reddit/v2alpha/subredditv2.js';
|
51
51
|
import { ThingType as ThingType_2 } from '../../reddit/thing_type.js';
|
52
52
|
import { ToastAppearance as ToastAppearance_2 } from '../../../ui/toast/toast.js';
|
53
|
+
import { UIEventScope as UIEventScope_2 } from '../../../../../index.js';
|
53
54
|
import { UpgradeStrategy as UpgradeStrategy_2 } from '../../dev_portal/installation/installation.js';
|
54
55
|
|
55
56
|
declare interface AboutLocationRequest {
|
@@ -6799,9 +6800,9 @@ declare const CustomPostDefinition: {
|
|
6799
6800
|
blocking?: {} | undefined;
|
6800
6801
|
resize?: {} | undefined;
|
6801
6802
|
async?: boolean | undefined;
|
6802
|
-
remoteOnly?: boolean | undefined;
|
6803
6803
|
hook?: string | undefined;
|
6804
6804
|
retry?: boolean | undefined;
|
6805
|
+
scope?: UIEventScope_2 | undefined;
|
6805
6806
|
}[];
|
6806
6807
|
} | undefined): UIRequest;
|
6807
6808
|
fromPartial(object: {
|
@@ -6876,9 +6877,9 @@ declare const CustomPostDefinition: {
|
|
6876
6877
|
blocking?: {} | undefined;
|
6877
6878
|
resize?: {} | undefined;
|
6878
6879
|
async?: boolean | undefined;
|
6879
|
-
remoteOnly?: boolean | undefined;
|
6880
6880
|
hook?: string | undefined;
|
6881
6881
|
retry?: boolean | undefined;
|
6882
|
+
scope?: UIEventScope_2 | undefined;
|
6882
6883
|
}[];
|
6883
6884
|
}): UIRequest;
|
6884
6885
|
};
|
@@ -7073,9 +7074,9 @@ declare const CustomPostDefinition: {
|
|
7073
7074
|
blocking?: {} | undefined;
|
7074
7075
|
resize?: {} | undefined;
|
7075
7076
|
async?: boolean | undefined;
|
7076
|
-
remoteOnly?: boolean | undefined;
|
7077
7077
|
hook?: string | undefined;
|
7078
7078
|
retry?: boolean | undefined;
|
7079
|
+
scope?: UIEventScope_2 | undefined;
|
7079
7080
|
}[];
|
7080
7081
|
blocks?: {
|
7081
7082
|
type?: BlockType_2;
|
@@ -7427,9 +7428,9 @@ declare const CustomPostDefinition: {
|
|
7427
7428
|
blocking?: {} | undefined;
|
7428
7429
|
resize?: {} | undefined;
|
7429
7430
|
async?: boolean | undefined;
|
7430
|
-
remoteOnly?: boolean | undefined;
|
7431
7431
|
hook?: string | undefined;
|
7432
7432
|
retry?: boolean | undefined;
|
7433
|
+
scope?: UIEventScope_2 | undefined;
|
7433
7434
|
}[];
|
7434
7435
|
blocks?: {
|
7435
7436
|
type?: BlockType_2;
|
@@ -7681,9 +7682,9 @@ declare const CustomPostDefinition: {
|
|
7681
7682
|
blocking?: {} | undefined;
|
7682
7683
|
resize?: {} | undefined;
|
7683
7684
|
async?: boolean | undefined;
|
7684
|
-
remoteOnly?: boolean | undefined;
|
7685
7685
|
hook?: string | undefined;
|
7686
7686
|
retry?: boolean | undefined;
|
7687
|
+
scope?: UIEventScope_2 | undefined;
|
7687
7688
|
}[];
|
7688
7689
|
} | undefined): UIRequest;
|
7689
7690
|
fromPartial(object: {
|
@@ -7758,9 +7759,9 @@ declare const CustomPostDefinition: {
|
|
7758
7759
|
blocking?: {} | undefined;
|
7759
7760
|
resize?: {} | undefined;
|
7760
7761
|
async?: boolean | undefined;
|
7761
|
-
remoteOnly?: boolean | undefined;
|
7762
7762
|
hook?: string | undefined;
|
7763
7763
|
retry?: boolean | undefined;
|
7764
|
+
scope?: UIEventScope_2 | undefined;
|
7764
7765
|
}[];
|
7765
7766
|
}): UIRequest;
|
7766
7767
|
};
|
@@ -7955,9 +7956,9 @@ declare const CustomPostDefinition: {
|
|
7955
7956
|
blocking?: {} | undefined;
|
7956
7957
|
resize?: {} | undefined;
|
7957
7958
|
async?: boolean | undefined;
|
7958
|
-
remoteOnly?: boolean | undefined;
|
7959
7959
|
hook?: string | undefined;
|
7960
7960
|
retry?: boolean | undefined;
|
7961
|
+
scope?: UIEventScope_2 | undefined;
|
7961
7962
|
}[];
|
7962
7963
|
blocks?: {
|
7963
7964
|
type?: BlockType_2;
|
@@ -8309,9 +8310,9 @@ declare const CustomPostDefinition: {
|
|
8309
8310
|
blocking?: {} | undefined;
|
8310
8311
|
resize?: {} | undefined;
|
8311
8312
|
async?: boolean | undefined;
|
8312
|
-
remoteOnly?: boolean | undefined;
|
8313
8313
|
hook?: string | undefined;
|
8314
8314
|
retry?: boolean | undefined;
|
8315
|
+
scope?: UIEventScope_2 | undefined;
|
8315
8316
|
}[];
|
8316
8317
|
blocks?: {
|
8317
8318
|
type?: BlockType_2;
|
@@ -41511,6 +41512,9 @@ declare namespace protos {
|
|
41511
41512
|
UIEventHandlerServiceName,
|
41512
41513
|
UIEventHandlerClientImpl,
|
41513
41514
|
UIEventHandlerDefinition,
|
41515
|
+
uIEventScopeFromJSON,
|
41516
|
+
uIEventScopeToJSON,
|
41517
|
+
UIEventScope,
|
41514
41518
|
UIEvent,
|
41515
41519
|
BlockingRenderEvent,
|
41516
41520
|
ResizeEvent,
|
@@ -64673,15 +64677,11 @@ declare interface UIEvent {
|
|
64673
64677
|
* effects.
|
64674
64678
|
*/
|
64675
64679
|
async?: boolean | undefined;
|
64676
|
-
/**
|
64677
|
-
* This is set for circuit-broken or fetchy events that are known to only work on the
|
64678
|
-
* remote runtime.
|
64679
|
-
*/
|
64680
|
-
remoteOnly?: boolean | undefined;
|
64681
64680
|
/** The id of a the hook that should respond to this event */
|
64682
64681
|
hook?: string | undefined;
|
64683
64682
|
/** Signals if this event should be sent to the front (true) or back of the queue (false) */
|
64684
64683
|
retry?: boolean | undefined;
|
64684
|
+
scope?: UIEventScope | undefined;
|
64685
64685
|
}
|
64686
64686
|
|
64687
64687
|
declare const UIEvent: {
|
@@ -64744,6 +64744,23 @@ declare const UIEventHandlerDefinition: {
|
|
64744
64744
|
|
64745
64745
|
declare const UIEventHandlerServiceName = "devvit.ui.events.v1alpha.UIEventHandler";
|
64746
64746
|
|
64747
|
+
/**
|
64748
|
+
* This is set when we want to map events to a specific runtime, examples:
|
64749
|
+
* [1] incoming realtime messages on a websocket connection
|
64750
|
+
* [2] keydown events in a text input block
|
64751
|
+
* Both are intended to be run only on local runtime
|
64752
|
+
*/
|
64753
|
+
declare enum UIEventScope {
|
64754
|
+
ALL = 0,
|
64755
|
+
LOCAL = 1,
|
64756
|
+
REMOTE = 2,
|
64757
|
+
UNRECOGNIZED = -1
|
64758
|
+
}
|
64759
|
+
|
64760
|
+
declare function uIEventScopeFromJSON(object: any): UIEventScope;
|
64761
|
+
|
64762
|
+
declare function uIEventScopeToJSON(object: UIEventScope): number;
|
64763
|
+
|
64747
64764
|
/**
|
64748
64765
|
* Wrapper message for `uint32`.
|
64749
64766
|
*
|