@devvit/client 0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0 → 0.11.18

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.
@@ -1,5 +1,5 @@
1
1
  export { emitEffect } from './emit-effect.js';
2
2
  export { navigateTo } from './navigate-to.js';
3
3
  export { showForm } from './show-form.js';
4
- export { showToast } from './show-toast.js';
4
+ export { showToast, type Toast } from './show-toast.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/effects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,4 +1,9 @@
1
- import type { Toast } from '@devvit/shared';
1
+ export type Toast = {
2
+ /** The message shown within the toast */
3
+ text: string;
4
+ /** The appearance of the toast */
5
+ appearance?: 'neutral' | 'success';
6
+ };
2
7
  /**
3
8
  * Shows a toast message.
4
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"show-toast.d.ts","sourceRoot":"","sources":["../../src/effects/show-toast.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAI5C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;AAC9C,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"show-toast.d.ts","sourceRoot":"","sources":["../../src/effects/show-toast.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,KAAK,GAAG;IAClB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;AAC9C,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC"}
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export { context } from './context.js';
2
2
  export { emitEffect, navigateTo, showForm, showToast } from './effects/index.js';
3
+ export { type Toast } from './effects/show-toast.js';
3
4
  //# 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,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC"}
package/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export { context } from './context.js';
2
2
  export { emitEffect, navigateTo, showForm, showToast } from './effects/index.js';
3
+ export {} from './effects/show-toast.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/client",
3
- "version": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
3
+ "version": "0.11.18",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,16 +25,15 @@
25
25
  },
26
26
  "types": "./index.d.ts",
27
27
  "dependencies": {
28
- "@devvit/protos": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
29
- "@devvit/reddit": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
30
- "@devvit/shared": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
31
- "@devvit/shared-types": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
32
- "@devvit/web-view-scripts": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0"
28
+ "@devvit/protos": "0.11.18",
29
+ "@devvit/reddit": "0.11.18",
30
+ "@devvit/shared-types": "0.11.18",
31
+ "@devvit/web-view-scripts": "0.11.18"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@ampproject/filesize": "4.3.0",
36
- "@devvit/repo-tools": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
37
- "@devvit/tsconfig": "0.11.18-next-2025-06-30-21-42-07-dd2300c6a.0",
35
+ "@devvit/repo-tools": "0.11.18",
36
+ "@devvit/tsconfig": "0.11.18",
38
37
  "esbuild": "0.23.0",
39
38
  "eslint": "9.11.1",
40
39
  "typescript": "5.8.3",
@@ -50,5 +49,5 @@
50
49
  }
51
50
  },
52
51
  "source": "./src/index.ts",
53
- "gitHead": "146ec2d44e1fcd91f5ea21c0d5209dc761f87e8e"
52
+ "gitHead": "528a395e1d56da073194f98bd6eec9f073b4ae3a"
54
53
  }