@devvit/build-pack 0.11.20-next-2025-07-29-16-15-52-551cd5a95.0 → 0.11.20-next-2025-07-29-19-12-59-7439bd260.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 +1 @@
1
- {"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,MAAM,EACN,KAAK,OAAO,EAKb,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAsBjD,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,CAAC;AAyH7D,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CA4D/D;AA+JD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,MAAM,EACN,KAAK,OAAO,EAIb,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAsBjD,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,CAAC;AAmH7D,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CA4D/D;AA+JD,eAAe,MAAM,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { LoggerDefinition, Severity } from '@devvit/protos';
2
2
  import { Height, } from '@devvit/protos/json/devvit/ui/effects/web_view/v1alpha/context.js';
3
- import { Devvit, useState, } from '@devvit/public-api';
3
+ import { Devvit, } from '@devvit/public-api';
4
4
  import { getServerPort } from '@devvit/server';
5
- import { devvitPostDataRedisKey } from '@devvit/shared-types/post-data.js';
5
+ import { Header } from '@devvit/shared-types/Header.js';
6
6
  import { getDevvitConfig } from '@devvit/shared-types/server/get-devvit-config.js';
7
7
  import { StringUtil } from '@devvit/shared-types/StringUtil.js';
8
8
  import { Splash } from '@devvit/splash/splash.js';
@@ -35,16 +35,9 @@ function configurePost(name, post) {
35
35
  Devvit.addCustomPostType({
36
36
  name: '',
37
37
  render: (ctx) => {
38
- // to-do: post data.
39
- // const postDataHeader = context.metadata[Header.PostData]?.values[0]
40
- // const postData: DevvitPostData = postDataHeader ? JSON.parse(postDataHeader) : {};
41
- const [data] = useState(async () => {
42
- if (!ctx.postId)
43
- throw Error('no post ID in context');
44
- const json = await ctx.redis.hGet(devvitPostDataRedisKey, ctx.postId);
45
- return json ? JSON.parse(json) : {};
46
- });
47
- const splash = data.splash;
38
+ const postDataHeader = ctx.metadata[Header.PostData]?.values[0];
39
+ const postData = postDataHeader ? JSON.parse(postDataHeader) : {};
40
+ const splash = postData.splash;
48
41
  return (Devvit.createElement(Splash, { appDisplayName: splash?.appDisplayName || name, appIconURI: splash?.appIconUri, backgroundURI: splash?.backgroundUri, buttonLabel: splash?.buttonLabel, description: splash?.description, entryURI: splash?.entryUri || defaultEntrypoint.entry, height: splash?.height == null
49
42
  ? defaultEntrypoint.height
50
43
  : splash.height === Height.TALL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/build-pack",
3
- "version": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
3
+ "version": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "types": "./index.d.ts",
25
25
  "dependencies": {
26
- "@devvit/protos": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
27
- "@devvit/shared-types": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
28
- "@devvit/splash": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
26
+ "@devvit/protos": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
27
+ "@devvit/shared-types": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
28
+ "@devvit/splash": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
29
29
  "esbuild": "0.23.0",
30
30
  "rxjs": "7.8.1",
31
31
  "tsv": "0.2.0",
@@ -36,12 +36,12 @@
36
36
  "@devvit/shared": "*"
37
37
  },
38
38
  "devDependencies": {
39
- "@devvit/public-api": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
40
- "@devvit/repo-tools": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
41
- "@devvit/scheduler": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
42
- "@devvit/server": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
43
- "@devvit/shared": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
44
- "@devvit/tsconfig": "0.11.20-next-2025-07-29-16-15-52-551cd5a95.0",
39
+ "@devvit/public-api": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
40
+ "@devvit/repo-tools": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
41
+ "@devvit/scheduler": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
42
+ "@devvit/server": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
43
+ "@devvit/shared": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
44
+ "@devvit/tsconfig": "0.11.20-next-2025-07-29-19-12-59-7439bd260.0",
45
45
  "@types/tsv": "0.2.1",
46
46
  "eslint": "9.11.1",
47
47
  "vitest": "1.6.1"
@@ -50,5 +50,5 @@
50
50
  "directory": "dist"
51
51
  },
52
52
  "source": "./src/index.ts",
53
- "gitHead": "dd6e894fd896283ced15694052ee66be7c9240c9"
53
+ "gitHead": "86711835268a2a9106cbd14123a169ca9eda6851"
54
54
  }