@devvit/public-api 0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0 → 0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.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/meta.json CHANGED
@@ -7326,7 +7326,7 @@
7326
7326
  "format": "esm"
7327
7327
  },
7328
7328
  "src/types/menu-item.ts": {
7329
- "bytes": 1380,
7329
+ "bytes": 1144,
7330
7330
  "imports": [],
7331
7331
  "format": "esm"
7332
7332
  },
package/meta.min.json CHANGED
@@ -104,7 +104,7 @@
104
104
  "format": "esm"
105
105
  },
106
106
  "src/types/menu-item.ts": {
107
- "bytes": 1380,
107
+ "bytes": 1144,
108
108
  "imports": [],
109
109
  "format": "esm"
110
110
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
3
+ "version": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,18 +30,18 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/metrics": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
34
- "@devvit/protos": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
35
- "@devvit/shared": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
36
- "@devvit/shared-types": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
33
+ "@devvit/metrics": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
34
+ "@devvit/protos": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
35
+ "@devvit/shared": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
36
+ "@devvit/shared-types": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
37
37
  "base64-js": "1.5.1",
38
38
  "clone-deep": "4.0.1",
39
39
  "moderndash": "4.0.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@ampproject/filesize": "4.3.0",
43
- "@devvit/repo-tools": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
44
- "@devvit/tsconfig": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
43
+ "@devvit/repo-tools": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
44
+ "@devvit/tsconfig": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
45
45
  "@microsoft/api-extractor": "7.41.0",
46
46
  "@reddit/faceplate-ui": "18.0.1",
47
47
  "@types/clone-deep": "4.0.1",
@@ -62,5 +62,5 @@
62
62
  }
63
63
  },
64
64
  "source": "./src/index.ts",
65
- "gitHead": "2c44bc2d58bf93248c6c414616800b609587283a"
65
+ "gitHead": "49052408818c5e2586fde79e28a90d8b433e0c1b"
66
66
  }
package/public-api.d.ts CHANGED
@@ -43,6 +43,8 @@ import type { FormValues } from '@devvit/shared/types/form.js';
43
43
  import { GalleryMediaStatus as GalleryMediaStatus_3 } from '../common/common_msg.js';
44
44
  import type { ImageField } from '@devvit/shared/types/form.js';
45
45
  import _m0 from 'protobufjs/minimal.js';
46
+ import type { MenuItemLocation } from '@devvit/shared/types/menu-item.js';
47
+ import type { MenuItemOnPressEvent } from '@devvit/shared/types/menu-item.js';
46
48
  import type { NumberField } from '@devvit/shared/types/form.js';
47
49
  import { Observable } from 'rxjs';
48
50
  import { OrderResultStatus as OrderResultStatus_2 } from '../../../../../payments.js';
@@ -20593,20 +20595,9 @@ export declare type MenuItem = {
20593
20595
  onPress: (event: MenuItemOnPressEvent, context: Devvit.Context) => void | Promise<void>;
20594
20596
  };
20595
20597
 
20596
- export declare type MenuItemLocation = 'subreddit' | 'post' | 'comment';
20598
+ export { MenuItemLocation }
20597
20599
 
20598
- export declare type MenuItemOnPressEvent = {
20599
- /** The location where the menu item was pressed */
20600
- location: MenuItemLocation;
20601
- /**
20602
- * The ID of subreddit, post, or comment that the menu item was pressed;
20603
- * includes Thing ID prefix:
20604
- * - t1_ - comment
20605
- * - t5_ - subreddit
20606
- * - t3_ - post
20607
- */
20608
- targetId: string;
20609
- };
20600
+ export { MenuItemOnPressEvent }
20610
20601
 
20611
20602
  /**
20612
20603
  * You can use the "currentApp" filter to only display the menu item on custom posts that were created by your app.
@@ -1,22 +1,11 @@
1
+ import type { MenuItemLocation, MenuItemOnPressEvent } from '@devvit/shared/types/menu-item.js';
1
2
  import type { Devvit } from '../devvit/Devvit.js';
2
- export type MenuItemLocation = 'subreddit' | 'post' | 'comment';
3
+ export type { MenuItemLocation, MenuItemOnPressEvent };
3
4
  export type MenuItemUserType = 'loggedOut' | 'moderator';
4
5
  /**
5
6
  * You can use the "currentApp" filter to only display the menu item on custom posts that were created by your app.
6
7
  */
7
8
  export type MenuItemPostFilter = 'currentApp';
8
- export type MenuItemOnPressEvent = {
9
- /** The location where the menu item was pressed */
10
- location: MenuItemLocation;
11
- /**
12
- * The ID of subreddit, post, or comment that the menu item was pressed;
13
- * includes Thing ID prefix:
14
- * - t1_ - comment
15
- * - t5_ - subreddit
16
- * - t3_ - post
17
- */
18
- targetId: string;
19
- };
20
9
  export type MenuItem = {
21
10
  /** The label of the menu item */
22
11
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/types/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,WAAW,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IACjC,mDAAmD;IACnD,QAAQ,EAAE,gB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