@devvit/client 0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0 → 0.11.19

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,9 +1,5 @@
1
- import type { Effect as SharedEffects } from '@devvit/protos';
2
- import { WebViewImmersiveModeEffect } from '@devvit/protos/types/devvit/ui/effects/web_view/v1alpha/immersive_mode.js';
1
+ import type { Effect } from '@devvit/protos';
3
2
  import { WebViewInternalEventMessage } from '@devvit/protos/types/devvit/ui/events/v1alpha/web_view.js';
4
- type Effect = Omit<SharedEffects, 'interval'> & {
5
- immersiveMode?: WebViewImmersiveModeEffect | undefined;
6
- };
7
3
  /**
8
4
  * Emits an effect to the parent window and handles the response if required.
9
5
  *
@@ -18,5 +14,4 @@ type Effect = Omit<SharedEffects, 'interval'> & {
18
14
  * 2. Effects that don't require a response: Posts the message and resolves immediately
19
15
  */
20
16
  export declare const emitEffect: (effect: Effect) => Promise<WebViewInternalEventMessage | undefined>;
21
- export {};
22
17
  //# sourceMappingURL=emit-effect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emit-effect.d.ts","sourceRoot":"","sources":["../../src/effects/emit-effect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,0BAA0B,EAAE,MAAM,2EAA2E,CAAC;AAKvH,OAAO,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAIxG,KAAK,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG;IAC9C,aAAa,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,KAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAkC1F,CAAC"}
1
+ {"version":3,"file":"emit-effect.d.ts","sourceRoot":"","sources":["../../src/effects/emit-effect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAK7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAIxG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,KAAG,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAkC1F,CAAC"}
@@ -1,4 +1,3 @@
1
- import { WebViewImmersiveModeEffect } from '@devvit/protos/types/devvit/ui/effects/web_view/v1alpha/immersive_mode.js';
2
1
  import { WebViewInternalEventMessage } from '@devvit/protos/types/devvit/ui/events/v1alpha/web_view.js';
3
2
  import { EFFECTS_WITH_RESPONSE } from './constants.js';
4
3
  /**
@@ -0,0 +1,5 @@
1
+ export { emitEffect } from './emit-effect.js';
2
+ export { navigateTo } from './navigate-to.js';
3
+ export { showForm } from './show-form.js';
4
+ export { showToast } from './show-toast.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ export { emitEffect } from './emit-effect.js';
2
+ export { navigateTo } from './navigate-to.js';
3
+ export { showForm } from './show-form.js';
4
+ export { showToast } from './show-toast.js';
package/index.d.ts CHANGED
@@ -1,7 +1,4 @@
1
1
  export { context } from './context.js';
2
- export { addImmersiveModeChangeEventListener, exitImmersiveMode, removeImmersiveModeChangeEventListener, requestImmersiveMode, } from './effects/immersive-mode.js';
3
- export { navigateTo } from './effects/navigate-to.js';
4
- export { showForm } from './effects/show-form.js';
5
- export { showToast } from './effects/show-toast.js';
2
+ export { emitEffect, navigateTo, showForm, showToast } from './effects/index.js';
6
3
  export type { PostData } from '@devvit/shared-types/PostData.js';
7
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,EACL,mCAAmC,EACnC,iBAAiB,EACjB,sCAAsC,EACtC,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,YAAY,EAAE,QAAQ,EAAE,MAAM,kCAAkC,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,YAAY,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC"}
package/index.js CHANGED
@@ -1,5 +1,2 @@
1
1
  export { context } from './context.js';
2
- export { addImmersiveModeChangeEventListener, exitImmersiveMode, removeImmersiveModeChangeEventListener, requestImmersiveMode, } from './effects/immersive-mode.js';
3
- export { navigateTo } from './effects/navigate-to.js';
4
- export { showForm } from './effects/show-form.js';
5
- export { showToast } from './effects/show-toast.js';
2
+ export { emitEffect, navigateTo, showForm, showToast } from './effects/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/client",
3
- "version": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
3
+ "version": "0.11.19",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "types": "./index.d.ts",
27
27
  "dependencies": {
28
- "@devvit/protos": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
29
- "@devvit/reddit": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
30
- "@devvit/shared": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
31
- "@devvit/shared-types": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
32
- "@devvit/web-view-scripts": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0"
28
+ "@devvit/protos": "0.11.19",
29
+ "@devvit/reddit": "0.11.19",
30
+ "@devvit/shared": "0.11.19",
31
+ "@devvit/shared-types": "0.11.19",
32
+ "@devvit/web-view-scripts": "0.11.19"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@ampproject/filesize": "4.3.0",
36
- "@devvit/repo-tools": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
37
- "@devvit/tsconfig": "0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0",
36
+ "@devvit/repo-tools": "0.11.19",
37
+ "@devvit/tsconfig": "0.11.19",
38
38
  "esbuild": "0.23.0",
39
39
  "eslint": "9.11.1",
40
40
  "typescript": "5.8.3",
@@ -46,9 +46,9 @@
46
46
  "filesize": {
47
47
  "dist/client.min.js": {
48
48
  "gzip": "23 KB",
49
- "none": "106 KB"
49
+ "none": "105 KB"
50
50
  }
51
51
  },
52
52
  "source": "./src/index.ts",
53
- "gitHead": "931d28a3f24b056d8f352a6727fbaf99c8f29bbf"
53
+ "gitHead": "f730f695127ca675c4c651e691b9475e35e91ca2"
54
54
  }