@devvit/shared 0.13.0-next-2025-10-03-22-56-55-3c6373ae7.0 → 0.13.0-next-2025-10-06-17-22-07-430902c23.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,9 +1,9 @@
1
- export * from './types/baseContext.js';
2
1
  export * from './types/menu-item.js';
3
2
  export * from './types/settings.js';
4
3
  export * from './types/triggers.js';
5
4
  export * from './types/ui-response.js';
6
5
  export * from '@devvit/shared-types/json.js';
6
+ export * from '@devvit/shared-types/shared/baseContext.js';
7
7
  export * from '@devvit/shared-types/shared/form.js';
8
8
  export * from '@devvit/shared-types/tid.js';
9
9
  //# 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,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC"}
package/index.js CHANGED
@@ -1,8 +1,8 @@
1
- export * from './types/baseContext.js';
2
1
  export * from './types/menu-item.js';
3
2
  export * from './types/settings.js';
4
3
  export * from './types/triggers.js';
5
4
  export * from './types/ui-response.js';
6
5
  export * from '@devvit/shared-types/json.js';
6
+ export * from '@devvit/shared-types/shared/baseContext.js';
7
7
  export * from '@devvit/shared-types/shared/form.js';
8
8
  export * from '@devvit/shared-types/tid.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared",
3
- "version": "0.13.0-next-2025-10-03-22-56-55-3c6373ae7.0",
3
+ "version": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,15 +28,15 @@
28
28
  "test:unit-with-coverage": "vitest run --coverage"
29
29
  },
30
30
  "dependencies": {
31
- "@devvit/protos": "0.13.0-next-2025-10-03-22-56-55-3c6373ae7.0",
32
- "@devvit/shared-types": "0.13.0-next-2025-10-03-22-56-55-3c6373ae7.0"
31
+ "@devvit/protos": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
32
+ "@devvit/shared-types": "0.13.0-next-2025-10-06-17-22-07-430902c23.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@devvit/repo-tools": "0.13.0-next-2025-10-03-22-56-55-3c6373ae7.0",
36
- "@devvit/tsconfig": "0.13.0-next-2025-10-03-22-56-55-3c6373ae7.0",
35
+ "@devvit/repo-tools": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
36
+ "@devvit/tsconfig": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
37
37
  "eslint": "9.11.1",
38
38
  "typescript": "5.8.3",
39
39
  "vitest": "1.6.1"
40
40
  },
41
- "gitHead": "3bcdd9d649451c9f92519998e01d43fc83cd7e1c"
41
+ "gitHead": "bf7c8f6e794edd496cf8071c2072f3adef60883d"
42
42
  }
@@ -1,26 +0,0 @@
1
- import type { PostData } from '@devvit/shared-types/PostData.js';
2
- import type { T2, T3, T5 } from '@devvit/shared-types/tid.js';
3
- export type BaseContext = {
4
- /** The ID of the current subreddit */
5
- subredditId: T5;
6
- /** The name of the current subreddit */
7
- subredditName: string;
8
- /** The current user's ID, if there is one; logged out users will be `undefined` */
9
- userId: T2 | undefined;
10
- /** The slug of the app that is running */
11
- appName: string;
12
- /** The version of the app that is running */
13
- appVersion: string;
14
- /**
15
- * The ID of the current post, if applicable. If there's no post related to what
16
- * we're doing, this is `undefined`.
17
- */
18
- postId: T3 | undefined;
19
- /**
20
- * Post data included in the current post.
21
- * This data is set at custom Post creation via `submitPost({ postData: {...} })` and can be updated via `Post.setPostData({...})`.
22
- * If there is no post data specified, the value is undefined.
23
- */
24
- postData?: PostData | undefined;
25
- };
26
- //# sourceMappingURL=baseContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"baseContext.d.ts","sourceRoot":"","sources":["../../src/types/baseContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AAE9D,MAAM,MAAM,WAAW,GAAG;IACxB,sCAAsC;IACtC,WAAW,EAAE,EAAE,CAAC;IAChB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,MAAM,EAAE,EAAE,GAAG,SAAS,CAAC;IACvB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,EAAE,EAAE,GAAG,SAAS,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,CAAC"}
@@ -1 +0,0 @@
1
- export {};