@devvit/build-pack 0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0 → 0.11.20-next-2025-08-12-16-30-43-00d6e705a.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,EAOb,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAA8C,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAuB7F,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;AA4OD,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,MAAM,EACN,KAAK,OAAO,EAOb,MAAM,oBAAoB,CAAC;AAG5B,OAAO,KAAK,EAA8C,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAwB7F,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,CAAC;AAkH7D,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CA4D/D;AA4OD,eAAe,MAAM,CAAC"}
@@ -1,14 +1,15 @@
1
1
  import { LoggerDefinition, Severity } from '@devvit/protos';
2
- import { Height, } from '@devvit/protos/json/devvit/ui/effects/web_view/v1alpha/context.js';
2
+ import {} from '@devvit/protos/json/devvit/ui/effects/web_view/v1alpha/context.js';
3
3
  import { Devvit, SettingScope, } from '@devvit/public-api';
4
4
  import { getServerPort } from '@devvit/server';
5
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';
9
+ import { backgroundUrl } from '@devvit/splash/utils/assets.js';
9
10
  // Hack: rename config2 to workaround declaration in
10
11
  // packages/runtime-lite/src/runtime/SandboxedRuntimeLite.ts.
11
- // __devvit__ is undefined in tests only.
12
+ // __devvit__ is initialized by ESBuildPack and undefined in tests only.
12
13
  // @ts-expect-error no type.
13
14
  const config2 = globalThis.__devvit__?.config;
14
15
  /** @internal [state] Map of devvit.json form keys to Devvit-singleton form keys. */
@@ -36,14 +37,16 @@ function configurePost(name, post) {
36
37
  name: '',
37
38
  render: (ctx) => {
38
39
  const postDataHeader = ctx.metadata[Header.PostData]?.values[0];
39
- const postData = postDataHeader ? JSON.parse(postDataHeader) : {};
40
+ const postData = postDataHeader
41
+ ? JSON.parse(postDataHeader)
42
+ : {};
40
43
  const splash = postData.splash;
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
42
- ? defaultEntrypoint.height
43
- : splash.height === Height.TALL
44
- ? 'tall'
45
- : 'regular', title: splash?.title }));
44
+ const entry = splash?.entry ? post.entrypoints[splash.entry] : undefined;
45
+ return (
46
+ // Align to `submitCustomPost()`.
47
+ Devvit.createElement(Splash, { appDisplayName: splash?.appDisplayName ?? name, appIconUri: splash?.appIconUri, backgroundUri: splash?.backgroundUri ?? backgroundUrl, buttonLabel: splash?.buttonLabel, description: splash?.description, entryUri: entry?.entry ?? defaultEntrypoint.entry, height: entry?.height ?? defaultEntrypoint.height, title: splash?.title }));
46
48
  },
49
+ // to-do: vary dynamically on entrypoint.
47
50
  height: defaultEntrypoint.height,
48
51
  });
49
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/build-pack",
3
- "version": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
3
+ "version": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,9 +31,9 @@
31
31
  },
32
32
  "types": "./dist/index.d.ts",
33
33
  "dependencies": {
34
- "@devvit/protos": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
35
- "@devvit/shared-types": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
36
- "@devvit/splash": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
34
+ "@devvit/protos": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
35
+ "@devvit/shared-types": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
36
+ "@devvit/splash": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
37
37
  "esbuild": "0.23.0",
38
38
  "rxjs": "7.8.1",
39
39
  "tsv": "0.2.0",
@@ -44,16 +44,16 @@
44
44
  "@devvit/shared": "*"
45
45
  },
46
46
  "devDependencies": {
47
- "@devvit/public-api": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
48
- "@devvit/repo-tools": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
49
- "@devvit/scheduler": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
50
- "@devvit/server": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
51
- "@devvit/shared": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
52
- "@devvit/tsconfig": "0.11.20-next-2025-08-12-01-33-03-ce5410d2e.0",
47
+ "@devvit/public-api": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
48
+ "@devvit/repo-tools": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
49
+ "@devvit/scheduler": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
50
+ "@devvit/server": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
51
+ "@devvit/shared": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
52
+ "@devvit/tsconfig": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
53
53
  "@types/tsv": "0.2.1",
54
54
  "eslint": "9.11.1",
55
55
  "vitest": "1.6.1"
56
56
  },
57
57
  "source": "./src/index.ts",
58
- "gitHead": "d067b8b4edefe1c103fd83f680198c93bc52b6e7"
58
+ "gitHead": "b676e6710b9c0682ce4ba5cbbd0ae332635b7673"
59
59
  }