@devvit/shared 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/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export {};
1
+ export * from './types/form.js';
2
+ export * from '@devvit/shared-types/json.js';
2
3
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC"}
package/index.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ export * from './types/form.js';
2
+ export * from '@devvit/shared-types/json.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared",
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",
@@ -23,12 +23,12 @@
23
23
  },
24
24
  "types": "./index.d.ts",
25
25
  "dependencies": {
26
- "@devvit/protos": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
27
- "@devvit/shared-types": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0"
26
+ "@devvit/protos": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
27
+ "@devvit/shared-types": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@devvit/repo-tools": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
31
- "@devvit/tsconfig": "0.11.18-next-2025-06-25-20-52-07-e7d01e3b1.0",
30
+ "@devvit/repo-tools": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
31
+ "@devvit/tsconfig": "0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0",
32
32
  "eslint": "9.11.1",
33
33
  "typescript": "5.8.3",
34
34
  "vitest": "1.6.1"
@@ -37,5 +37,5 @@
37
37
  "directory": "dist"
38
38
  },
39
39
  "source": "./src/index.ts",
40
- "gitHead": "2c44bc2d58bf93248c6c414616800b609587283a"
40
+ "gitHead": "49052408818c5e2586fde79e28a90d8b433e0c1b"
41
41
  }
@@ -0,0 +1,14 @@
1
+ export type MenuItemLocation = 'subreddit' | 'post' | 'comment';
2
+ export type MenuItemOnPressEvent = {
3
+ /** The location where the menu item was pressed */
4
+ location: MenuItemLocation;
5
+ /**
6
+ * The ID of subreddit, post, or comment that the menu item was pressed;
7
+ * includes Thing ID prefix:
8
+ * - t1_ - comment
9
+ * - t5_ - subreddit
10
+ * - t3_ - post
11
+ */
12
+ targetId: string;
13
+ };
14
+ //# sourceMappingURL=menu-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/types/menu-item.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAEhE,MAAM,MAAM,oBAAoB,GAAG;IACjC,mDAAmD;IACnD,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};