@devvit/build-pack 0.11.19-next-2025-07-21-15-41-14-f32293e0f.0 → 0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.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":"AAEA,OAAO,EAEL,MAAM,EACN,KAAK,OAAO,EAKb,MAAM,oBAAoB,CAAC;AAK5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"blocks.template.d.ts","sourceRoot":"","sources":["../../../src/esbuild/templatizer/blocks.template.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,MAAM,EACN,KAAK,OAAO,EAKb,MAAM,oBAAoB,CAAC;AAK5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAmBtE,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAA;CAAO,CAAC;AA8F7D,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CA4D/D;AA+JD,eAAe,MAAM,CAAC"}
|
|
@@ -3,9 +3,11 @@ import { Devvit, useWebView, } from '@devvit/public-api';
|
|
|
3
3
|
import { getServerPort } from '@devvit/server';
|
|
4
4
|
import { getDevvitConfig } from '@devvit/server/get-devvit-config.js';
|
|
5
5
|
import { StringUtil } from '@devvit/shared-types/StringUtil.js';
|
|
6
|
+
// Hack: rename config2 to workaround declaration in
|
|
7
|
+
// packages/runtime-lite/src/runtime/SandboxedRuntimeLite.ts.
|
|
6
8
|
// __devvit__ is undefined in tests only.
|
|
7
9
|
// @ts-expect-error no type.
|
|
8
|
-
const
|
|
10
|
+
const config2 = globalThis.__devvit__?.config;
|
|
9
11
|
/** @internal [state] Map of devvit.json form keys to Devvit-singleton form keys. */
|
|
10
12
|
export const formKeyMap = {};
|
|
11
13
|
function configurePermissions(permissions) {
|
|
@@ -248,17 +250,17 @@ function renderModal(path) {
|
|
|
248
250
|
Devvit.createElement("button", { onPress: webView.mount }, "Launch App"),
|
|
249
251
|
";"));
|
|
250
252
|
}
|
|
251
|
-
if (
|
|
252
|
-
configurePermissions(
|
|
253
|
-
if (
|
|
254
|
-
configurePost(
|
|
255
|
-
if (
|
|
256
|
-
configureMenuActions(
|
|
257
|
-
if (
|
|
258
|
-
configureScheduler(
|
|
259
|
-
if (
|
|
260
|
-
configureForms(
|
|
261
|
-
if (
|
|
262
|
-
configureTriggers(
|
|
253
|
+
if (config2) {
|
|
254
|
+
configurePermissions(config2.permissions);
|
|
255
|
+
if (config2.post)
|
|
256
|
+
configurePost(config2.post);
|
|
257
|
+
if (config2.menuActions)
|
|
258
|
+
configureMenuActions(config2.menuActions);
|
|
259
|
+
if (config2.scheduler)
|
|
260
|
+
configureScheduler(config2.scheduler);
|
|
261
|
+
if (config2.forms)
|
|
262
|
+
configureForms(config2.forms);
|
|
263
|
+
if (config2.triggers)
|
|
264
|
+
configureTriggers(config2.triggers);
|
|
263
265
|
}
|
|
264
266
|
export default Devvit;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/build-pack",
|
|
3
|
-
"version": "0.11.19-next-2025-07-
|
|
3
|
+
"version": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"types": "./index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@devvit/protos": "0.11.19-next-2025-07-
|
|
27
|
-
"@devvit/shared-types": "0.11.19-next-2025-07-
|
|
26
|
+
"@devvit/protos": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
27
|
+
"@devvit/shared-types": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
28
28
|
"esbuild": "0.23.0",
|
|
29
29
|
"rxjs": "7.8.1",
|
|
30
30
|
"tsv": "0.2.0",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@devvit/shared": "*"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@devvit/public-api": "0.11.19-next-2025-07-
|
|
39
|
-
"@devvit/repo-tools": "0.11.19-next-2025-07-
|
|
40
|
-
"@devvit/scheduler": "0.11.19-next-2025-07-
|
|
41
|
-
"@devvit/server": "0.11.19-next-2025-07-
|
|
42
|
-
"@devvit/shared": "0.11.19-next-2025-07-
|
|
43
|
-
"@devvit/tsconfig": "0.11.19-next-2025-07-
|
|
38
|
+
"@devvit/public-api": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
39
|
+
"@devvit/repo-tools": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
40
|
+
"@devvit/scheduler": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
41
|
+
"@devvit/server": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
42
|
+
"@devvit/shared": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
43
|
+
"@devvit/tsconfig": "0.11.19-next-2025-07-22-13-55-42-4a1f2fe31.0",
|
|
44
44
|
"@types/tsv": "0.2.1",
|
|
45
45
|
"eslint": "9.11.1",
|
|
46
46
|
"vitest": "1.6.1"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"directory": "dist"
|
|
50
50
|
},
|
|
51
51
|
"source": "./src/index.ts",
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "0e0ea85be41aa3f3d5c3c685ae2b6e3ebfc919f0"
|
|
53
53
|
}
|