@devvit/client 0.11.19-next-2025-07-22-23-31-05-5dbdec031.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.
- package/effects/emit-effect.d.ts +1 -6
- package/effects/emit-effect.d.ts.map +1 -1
- package/effects/emit-effect.js +0 -1
- package/effects/index.d.ts +5 -0
- package/effects/index.d.ts.map +1 -0
- package/effects/index.js +4 -0
- package/index.d.ts +1 -4
- package/index.d.ts.map +1 -1
- package/index.js +1 -4
- package/package.json +10 -10
- package/client-meta.min.json +0 -5266
- package/client.min.js +0 -2
- package/client.min.js.map +0 -7
- package/effects/immersive-mode-listeners.test.d.ts.map +0 -1
- package/effects/immersive-mode.d.ts +0 -51
- package/effects/immersive-mode.d.ts.map +0 -1
- package/effects/immersive-mode.js +0 -75
- package/effects/immersive-mode.test.d.ts.map +0 -1
package/effects/emit-effect.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type { Effect
|
|
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,
|
|
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"}
|
package/effects/emit-effect.js
CHANGED
|
@@ -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 @@
|
|
|
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"}
|
package/effects/index.js
ADDED
package/index.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
export { context } from './context.js';
|
|
2
|
-
export {
|
|
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,
|
|
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 {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
37
|
-
"@devvit/tsconfig": "0.11.19
|
|
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": "
|
|
49
|
+
"none": "105 KB"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"source": "./src/index.ts",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "f730f695127ca675c4c651e691b9475e35e91ca2"
|
|
54
54
|
}
|