@devvit/shared 0.12.1-next-2025-09-03-16-45-14-78942cdf1.0 → 0.12.1-next-2025-09-03-18-30-49-c39f0866a.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared",
3
- "version": "0.12.1-next-2025-09-03-16-45-14-78942cdf1.0",
3
+ "version": "0.12.1-next-2025-09-03-18-30-49-c39f0866a.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,16 +30,16 @@
30
30
  },
31
31
  "types": "./dist/index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/protos": "0.12.1-next-2025-09-03-16-45-14-78942cdf1.0",
34
- "@devvit/shared-types": "0.12.1-next-2025-09-03-16-45-14-78942cdf1.0"
33
+ "@devvit/protos": "0.12.1-next-2025-09-03-18-30-49-c39f0866a.0",
34
+ "@devvit/shared-types": "0.12.1-next-2025-09-03-18-30-49-c39f0866a.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@devvit/repo-tools": "0.12.1-next-2025-09-03-16-45-14-78942cdf1.0",
38
- "@devvit/tsconfig": "0.12.1-next-2025-09-03-16-45-14-78942cdf1.0",
37
+ "@devvit/repo-tools": "0.12.1-next-2025-09-03-18-30-49-c39f0866a.0",
38
+ "@devvit/tsconfig": "0.12.1-next-2025-09-03-18-30-49-c39f0866a.0",
39
39
  "eslint": "9.11.1",
40
40
  "typescript": "5.8.3",
41
41
  "vitest": "1.6.1"
42
42
  },
43
43
  "source": "./src/index.ts",
44
- "gitHead": "2c921f0c179aa4ed7ba1463d39620212e934fbce"
44
+ "gitHead": "75b507a70c64212d4e530f17bc55547ed0e8551c"
45
45
  }
@@ -14,14 +14,15 @@ export type UiResponse<InitFormData extends JsonObject = JsonObject> = {
14
14
  /** Show a toast to the user's reddit client. */
15
15
  showToast?: string | Toast;
16
16
  /** Display a form in the user's reddit client. */
17
- showForm?: {
18
- /** Name of the form. This must match a configured form in devvit.json. */
19
- name: string;
20
- /** Specification for the form to display to the user */
21
- form: Form;
22
- /** Data to initially populate form fields with */
23
- data?: FormValues<InitFormData> | undefined;
24
- };
17
+ showForm?: ShowForm<InitFormData>;
18
+ };
19
+ export type ShowForm<InitFormData extends JsonObject> = {
20
+ /** Name of the form. This must match a configured form in devvit.json. */
21
+ name: string;
22
+ /** Specification for the form to display to the user */
23
+ form: Form;
24
+ /** Data to initially populate form fields with */
25
+ data?: FormValues<InitFormData> | undefined;
25
26
  };
26
27
  export type Toast = {
27
28
  /** The message shown within the toast */
@@ -1 +1 @@
1
- {"version":3,"file":"ui-response.d.ts","sourceRoot":"","sources":["../../src/types/ui-response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,MAAM,UAAU,CAAC,YAAY,SAAS,UAAU,GAAG,UAAU,IAAI;IACrE,wFAAwF;IACxF,UAAU,CAAC,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,EAAE;QACT,0EAA0E;QAC1E,IAAI,EAAE,MAAM,CAAC;QACb,wDAAwD;QACxD,IAAI,EAAE,IAAI,CAAC;QACX,kDAAkD;QAClD,IAAI,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;KAC7C,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACpC,CAAC"}
1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