@devvit/splash 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.
- package/background.d.ts.map +1 -1
- package/background.js +1 -2
- package/loading.d.ts +2 -2
- package/loading.d.ts.map +1 -1
- package/loading.js +1 -1
- package/package.json +5 -5
- package/splash.js +1 -1
package/background.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../src/background.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../src/background.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,gBAAgB;AAEhB,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC,OAAO,CAY1E"}
|
package/background.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Devvit } from '@devvit/public-api';
|
|
2
|
-
import { backgroundUrl } from './utils/assets.js';
|
|
3
2
|
/** @internal */
|
|
4
3
|
export function BackgroundImage(props) {
|
|
5
|
-
return (Devvit.createElement("image", { url: props.backgroundUri
|
|
4
|
+
return (Devvit.createElement("image", { url: props.backgroundUri, imageWidth: 2048, imageHeight: 1024, height: "100%", width: "100%", resizeMode: "cover", description: `${props.appDisplayName} loading screen` }));
|
|
6
5
|
}
|
package/loading.d.ts
CHANGED
|
@@ -10,12 +10,12 @@ export type LoadingProps = {
|
|
|
10
10
|
*
|
|
11
11
|
* @example `'background.png'`.
|
|
12
12
|
*/
|
|
13
|
-
backgroundUri
|
|
13
|
+
backgroundUri: string;
|
|
14
14
|
/**
|
|
15
15
|
* Inline post height.
|
|
16
16
|
* @default `'tall'`
|
|
17
17
|
*/
|
|
18
|
-
height
|
|
18
|
+
height: 'regular' | 'tall';
|
|
19
19
|
};
|
|
20
20
|
export declare function Loading(props: Readonly<LoadingProps>): JSX.Element;
|
|
21
21
|
//# sourceMappingURL=loading.d.ts.map
|
package/loading.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../src/loading.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,aAAa,
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../src/loading.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,EAAE,SAAS,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF,wBAAgB,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,GAAG,CAAC,OAAO,CAMlE"}
|
package/loading.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Devvit } from '@devvit/public-api';
|
|
2
2
|
import { BackgroundImage } from './background.js';
|
|
3
3
|
export function Loading(props) {
|
|
4
|
-
return (Devvit.createElement("blocks", { height: props.height
|
|
4
|
+
return (Devvit.createElement("blocks", { height: props.height },
|
|
5
5
|
Devvit.createElement(BackgroundImage, { ...props })));
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/splash",
|
|
3
|
-
"version": "0.11.20-next-2025-08-12-
|
|
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,15 +31,15 @@
|
|
|
31
31
|
},
|
|
32
32
|
"types": "./dist/index.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@devvit/public-api": "0.11.20-next-2025-08-12-
|
|
34
|
+
"@devvit/public-api": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@devvit/repo-tools": "0.11.20-next-2025-08-12-
|
|
38
|
-
"@devvit/tsconfig": "0.11.20-next-2025-08-12-
|
|
37
|
+
"@devvit/repo-tools": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
|
|
38
|
+
"@devvit/tsconfig": "0.11.20-next-2025-08-12-16-30-43-00d6e705a.0",
|
|
39
39
|
"eslint": "9.11.1",
|
|
40
40
|
"typescript": "5.8.3",
|
|
41
41
|
"vitest": "1.6.1"
|
|
42
42
|
},
|
|
43
43
|
"source": "./src/index.ts",
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "b676e6710b9c0682ce4ba5cbbd0ae332635b7673"
|
|
45
45
|
}
|
package/splash.js
CHANGED
|
@@ -4,7 +4,7 @@ import { BackgroundImage } from './background.js';
|
|
|
4
4
|
import {} from './loading.js';
|
|
5
5
|
export function Splash(props) {
|
|
6
6
|
const webView = useWebView({ url: props.entryUri ?? 'index.html', onMessage() { } });
|
|
7
|
-
return (Devvit.createElement("blocks", { height: props.height
|
|
7
|
+
return (Devvit.createElement("blocks", { height: props.height },
|
|
8
8
|
Devvit.createElement("zstack", { height: "100%", width: "100%", onPress: webView.mount },
|
|
9
9
|
Devvit.createElement(BackgroundImage, { ...props }),
|
|
10
10
|
Devvit.createElement("vstack", { height: "100%", width: "100%", alignment: "center middle", padding: "medium" },
|