@devvit/public-api 0.11.2-next-2024-10-24-39aba584f.0 → 0.11.2-next-2024-10-24-d85f5d31e.0
Sign up to get free protection for your applications and to get access to all the features.
- package/devvit/internals/menu-items.d.ts.map +1 -1
- package/devvit/internals/menu-items.js +0 -1
- package/meta.json +4 -4
- package/meta.min.json +5 -5
- package/package.json +6 -6
- package/public-api.d.ts +6 -3
- package/public-api.iife.js +1 -2
- package/public-api.min.js +1 -1
- package/public-api.min.js.map +2 -2
- package/types/menu-item.d.ts +1 -1
- package/types/menu-item.d.ts.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu-items.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/menu-items.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAM7D,OAAO,KAAK,EAAE,QAAQ,EAAwB,MAAM,sBAAsB,CAAC;AAS3E,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAEhE;
|
1
|
+
{"version":3,"file":"menu-items.d.ts","sourceRoot":"","sources":["../../../src/devvit/internals/menu-items.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAM7D,OAAO,KAAK,EAAE,QAAQ,EAAwB,MAAM,sBAAsB,CAAC;AAS3E,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAEhE;AA2ED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAItD"}
|
@@ -29,7 +29,6 @@ async function getActions(_, _metadata) {
|
|
29
29
|
},
|
30
30
|
users: {
|
31
31
|
loggedOut: item.forUserType?.includes('loggedOut'),
|
32
|
-
member: item.forUserType?.includes('member'),
|
33
32
|
moderator: item.forUserType?.includes('moderator'),
|
34
33
|
},
|
35
34
|
postFilters: item.postFilter === 'currentApp' ? { currentApp: true } : undefined,
|
package/meta.json
CHANGED
@@ -9501,7 +9501,7 @@
|
|
9501
9501
|
"format": "esm"
|
9502
9502
|
},
|
9503
9503
|
"src/types/menu-item.ts": {
|
9504
|
-
"bytes":
|
9504
|
+
"bytes": 1380,
|
9505
9505
|
"imports": [],
|
9506
9506
|
"format": "esm"
|
9507
9507
|
},
|
@@ -10317,7 +10317,7 @@
|
|
10317
10317
|
"format": "esm"
|
10318
10318
|
},
|
10319
10319
|
"src/devvit/internals/menu-items.ts": {
|
10320
|
-
"bytes":
|
10320
|
+
"bytes": 3430,
|
10321
10321
|
"imports": [
|
10322
10322
|
{
|
10323
10323
|
"path": "../protos/dist/index.js",
|
@@ -12715,7 +12715,7 @@
|
|
12715
12715
|
"bytesInOutput": 663
|
12716
12716
|
},
|
12717
12717
|
"src/devvit/internals/menu-items.ts": {
|
12718
|
-
"bytesInOutput":
|
12718
|
+
"bytesInOutput": 2327
|
12719
12719
|
},
|
12720
12720
|
"src/devvit/internals/plugins.ts": {
|
12721
12721
|
"bytesInOutput": 173
|
@@ -12865,7 +12865,7 @@
|
|
12865
12865
|
"bytesInOutput": 370
|
12866
12866
|
}
|
12867
12867
|
},
|
12868
|
-
"bytes":
|
12868
|
+
"bytes": 12740447
|
12869
12869
|
}
|
12870
12870
|
}
|
12871
12871
|
}
|
package/meta.min.json
CHANGED
@@ -2455,7 +2455,7 @@
|
|
2455
2455
|
"format": "esm"
|
2456
2456
|
},
|
2457
2457
|
"src/types/menu-item.ts": {
|
2458
|
-
"bytes":
|
2458
|
+
"bytes": 1380,
|
2459
2459
|
"imports": [],
|
2460
2460
|
"format": "esm"
|
2461
2461
|
},
|
@@ -3271,7 +3271,7 @@
|
|
3271
3271
|
"format": "esm"
|
3272
3272
|
},
|
3273
3273
|
"src/devvit/internals/menu-items.ts": {
|
3274
|
-
"bytes":
|
3274
|
+
"bytes": 3430,
|
3275
3275
|
"imports": [
|
3276
3276
|
{
|
3277
3277
|
"path": "@devvit/protos",
|
@@ -4789,7 +4789,7 @@
|
|
4789
4789
|
"imports": [],
|
4790
4790
|
"exports": [],
|
4791
4791
|
"inputs": {},
|
4792
|
-
"bytes":
|
4792
|
+
"bytes": 1223835
|
4793
4793
|
},
|
4794
4794
|
"dist/public-api.min.js": {
|
4795
4795
|
"imports": [
|
@@ -5493,7 +5493,7 @@
|
|
5493
5493
|
"bytesInOutput": 398
|
5494
5494
|
},
|
5495
5495
|
"src/devvit/internals/menu-items.ts": {
|
5496
|
-
"bytesInOutput":
|
5496
|
+
"bytesInOutput": 1308
|
5497
5497
|
},
|
5498
5498
|
"src/devvit/internals/plugins.ts": {
|
5499
5499
|
"bytesInOutput": 47
|
@@ -5634,7 +5634,7 @@
|
|
5634
5634
|
"bytesInOutput": 178
|
5635
5635
|
}
|
5636
5636
|
},
|
5637
|
-
"bytes":
|
5637
|
+
"bytes": 261623
|
5638
5638
|
}
|
5639
5639
|
}
|
5640
5640
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/public-api",
|
3
|
-
"version": "0.11.2-next-2024-10-24-
|
3
|
+
"version": "0.11.2-next-2024-10-24-d85f5d31e.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.11.2-next-2024-10-24-
|
34
|
-
"@devvit/shared-types": "0.11.2-next-2024-10-24-
|
33
|
+
"@devvit/protos": "0.11.2-next-2024-10-24-d85f5d31e.0",
|
34
|
+
"@devvit/shared-types": "0.11.2-next-2024-10-24-d85f5d31e.0",
|
35
35
|
"base64-js": "1.5.1",
|
36
36
|
"clone-deep": "4.0.1",
|
37
37
|
"core-js": "3.27.2",
|
@@ -39,8 +39,8 @@
|
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
42
|
-
"@devvit/repo-tools": "0.11.2-next-2024-10-24-
|
43
|
-
"@devvit/tsconfig": "0.11.2-next-2024-10-24-
|
42
|
+
"@devvit/repo-tools": "0.11.2-next-2024-10-24-d85f5d31e.0",
|
43
|
+
"@devvit/tsconfig": "0.11.2-next-2024-10-24-d85f5d31e.0",
|
44
44
|
"@microsoft/api-extractor": "7.41.0",
|
45
45
|
"@reddit/faceplate-ui": "18.0.1",
|
46
46
|
"@types/clone-deep": "4.0.1",
|
@@ -63,5 +63,5 @@
|
|
63
63
|
}
|
64
64
|
},
|
65
65
|
"source": "./src/index.ts",
|
66
|
-
"gitHead": "
|
66
|
+
"gitHead": "f4594afecb599b1e1c5f1868d7bc279114cf7841"
|
67
67
|
}
|
package/public-api.d.ts
CHANGED
@@ -3508,7 +3508,11 @@ declare const ContextActionAllowedContexts: {
|
|
3508
3508
|
declare interface ContextActionAllowedUsers {
|
3509
3509
|
/** Moderator only */
|
3510
3510
|
moderator: boolean;
|
3511
|
-
/**
|
3511
|
+
/**
|
3512
|
+
* Member of the subreddit where the Actor is installed
|
3513
|
+
*
|
3514
|
+
* @deprecated
|
3515
|
+
*/
|
3512
3516
|
member: boolean;
|
3513
3517
|
/** Logged out users can perform this action */
|
3514
3518
|
loggedOut: boolean;
|
@@ -3552,7 +3556,6 @@ declare const ContextActionDefinition: {
|
|
3552
3556
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
3553
3557
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
3554
3558
|
fromJSON(_: any): Empty;
|
3555
|
-
/** Describes a single action provided by an Actor */
|
3556
3559
|
toJSON(_: Empty): unknown;
|
3557
3560
|
create(base?: {} | undefined): Empty;
|
3558
3561
|
fromPartial(_: {}): Empty;
|
@@ -19845,7 +19848,7 @@ export declare type MenuItemOnPressEvent = {
|
|
19845
19848
|
*/
|
19846
19849
|
export declare type MenuItemPostFilter = 'currentApp';
|
19847
19850
|
|
19848
|
-
export declare type MenuItemUserType = 'loggedOut' | '
|
19851
|
+
export declare type MenuItemUserType = 'loggedOut' | 'moderator';
|
19849
19852
|
|
19850
19853
|
export declare type MenuPosition = 'default' | 'overlay';
|
19851
19854
|
|