@devvit/shared-types 0.12.6-next-2025-12-08-17-03-01-e66784ceb.0 → 0.12.6-next-2025-12-08-17-13-26-da899ec9e.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.
@@ -1,6 +1,8 @@
1
1
  import { EffectType } from '@devvit/protos/json/devvit/ui/effects/v1alpha/effect.js';
2
2
  import { type WebViewInternalMessage } from '@devvit/protos/json/devvit/ui/effects/web_view/v1alpha/post_message.js';
3
3
  import type { WebViewInternalEventMessage } from '@devvit/protos/json/devvit/ui/events/v1alpha/web_view.js';
4
+ /** `WebViewInternalMessage.type`. */
5
+ export declare const webViewInternalMessageType = "devvit-internal";
4
6
  export type Effect = Omit<WebViewInternalMessage, 'id' | 'scope' | 'type'> & {
5
7
  type: EffectType;
6
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"emit-effect.d.ts","sourceRoot":"","sources":["../../src/client/emit-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yDAAyD,CAAC;AACrF,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,wEAAwE,CAAC;AAChF,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,0DAA0D,CAAC;AAElE,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,sBAAsB,EAAE,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAQlG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GACrB,QAAQ,QAAQ,CAAC,MAAM,CAAC,KACvB,OAAO,CAAC,2BAA2B,GAAG,SAAS,CA0CjD,CAAC"}
1
+ {"version":3,"file":"emit-effect.d.ts","sourceRoot":"","sources":["../../src/client/emit-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yDAAyD,CAAC;AACrF,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,wEAAwE,CAAC;AAChF,OAAO,KAAK,EACV,2BAA2B,EAE5B,MAAM,0DAA0D,CAAC;AAElE,qCAAqC;AACrC,eAAO,MAAM,0BAA0B,oBAAoB,CAAC;AAE5D,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,sBAAsB,EAAE,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AAQlG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GACrB,QAAQ,QAAQ,CAAC,MAAM,CAAC,KACvB,OAAO,CAAC,2BAA2B,GAAG,SAAS,CA0CjD,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { EffectType } from '@devvit/protos/json/devvit/ui/effects/v1alpha/effect.js';
2
2
  import { WebViewInternalMessageScope, } from '@devvit/protos/json/devvit/ui/effects/web_view/v1alpha/post_message.js';
3
+ /** `WebViewInternalMessage.type`. */
4
+ export const webViewInternalMessageType = 'devvit-internal';
3
5
  const EFFECTS_WITH_RESPONSE = {
4
6
  [EffectType.EFFECT_SHOW_FORM]: true,
5
7
  [EffectType.EFFECT_CAN_RUN_AS_USER]: true,
@@ -24,7 +26,7 @@ export const emitEffect = (effect) => {
24
26
  ...effect,
25
27
  realtimeEffect: effect.realtime, // to-do: remove deprecated field.
26
28
  scope: WebViewInternalMessageScope.CLIENT,
27
- type: 'devvit-internal',
29
+ type: webViewInternalMessageType,
28
30
  };
29
31
  // For temporary backward compatibility, we set both `message.effect_type` above, and `effect` below
30
32
  // Once mobile clients are updated to consume the strongly typed properties above, we can remove this block
package/isObject.d.ts CHANGED
@@ -8,5 +8,5 @@
8
8
  * return isObject(val) && typeof val.bar === 'string'
9
9
  * }
10
10
  */
11
- export declare function isObject(val: unknown): val is Record<string | number | symbol, unknown>;
11
+ export declare function isObject(val: unknown): val is Record<PropertyKey, unknown>;
12
12
  //# sourceMappingURL=isObject.d.ts.map
package/isObject.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"isObject.d.ts","sourceRoot":"","sources":["../src/isObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,CAEvF"}
1
+ {"version":3,"file":"isObject.d.ts","sourceRoot":"","sources":["../src/isObject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAE1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared-types",
3
- "version": "0.12.6-next-2025-12-08-17-03-01-e66784ceb.0",
3
+ "version": "0.12.6-next-2025-12-08-17-13-26-da899ec9e.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,13 +33,13 @@
33
33
  },
34
34
  "types": "./dist/index.d.ts",
35
35
  "dependencies": {
36
- "@devvit/protos": "0.12.6-next-2025-12-08-17-03-01-e66784ceb.0",
36
+ "@devvit/protos": "0.12.6-next-2025-12-08-17-13-26-da899ec9e.0",
37
37
  "jsonschema": "1.4.1",
38
38
  "uuid": "9.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@devvit/repo-tools": "0.12.6-next-2025-12-08-17-03-01-e66784ceb.0",
42
- "@devvit/tsconfig": "0.12.6-next-2025-12-08-17-03-01-e66784ceb.0",
41
+ "@devvit/repo-tools": "0.12.6-next-2025-12-08-17-13-26-da899ec9e.0",
42
+ "@devvit/tsconfig": "0.12.6-next-2025-12-08-17-13-26-da899ec9e.0",
43
43
  "@types/redis-mock": "0.17.1",
44
44
  "@types/uuid": "9.0.0",
45
45
  "chokidar-cli": "3.0.0",
@@ -51,5 +51,5 @@
51
51
  "vitest": "1.6.1"
52
52
  },
53
53
  "source": "./src/index.ts",
54
- "gitHead": "044126596d46e5c2b88defd808666c4681d00418"
54
+ "gitHead": "edf20dd962799ee6eeedb133ce7454a87046861e"
55
55
  }