@devvit/ui-renderer 0.9.10-next-2023-06-30-1cc68cab6.0 → 0.9.10-next-2023-07-05-b0e40e269.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.
|
@@ -17,7 +17,7 @@ export function renderBlocks(block, context = {}) {
|
|
|
17
17
|
console.error('Invalid root block');
|
|
18
18
|
return nothing;
|
|
19
19
|
}
|
|
20
|
-
const height = `${block.config?.rootConfig?.height
|
|
20
|
+
const height = `${block.config?.rootConfig?.height || DEFAULT_ROOT_HEIGHT}px`;
|
|
21
21
|
return renderStackBlock({
|
|
22
22
|
type: BlockType.BLOCK_STACK,
|
|
23
23
|
config: {
|
|
@@ -188,7 +188,7 @@ _DevvitCustomPost_appState = new WeakMap(), _DevvitCustomPost_lastRequest = new
|
|
|
188
188
|
this.rootBlock = this.renderResponse.blocks.ui;
|
|
189
189
|
if (!__classPrivateFieldGet(this, _DevvitCustomPost_rootHeight, "f")) {
|
|
190
190
|
// Lock in the initial height
|
|
191
|
-
__classPrivateFieldSet(this, _DevvitCustomPost_rootHeight, this.rootBlock.config?.rootConfig?.height
|
|
191
|
+
__classPrivateFieldSet(this, _DevvitCustomPost_rootHeight, this.rootBlock.config?.rootConfig?.height || DEFAULT_ROOT_HEIGHT, "f");
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
(_a = this.rootBlock).config ?? (_a.config = {});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/ui-renderer",
|
|
3
|
-
"version": "0.9.10-next-2023-
|
|
3
|
+
"version": "0.9.10-next-2023-07-05-b0e40e269.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
},
|
|
48
48
|
"types": "./index.d.ts",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@devvit/protos": "0.9.10-next-2023-
|
|
51
|
-
"@devvit/runtime-lite": "0.9.10-next-2023-
|
|
52
|
-
"@devvit/runtimes": "0.9.10-next-2023-
|
|
50
|
+
"@devvit/protos": "0.9.10-next-2023-07-05-b0e40e269.0",
|
|
51
|
+
"@devvit/runtime-lite": "0.9.10-next-2023-07-05-b0e40e269.0",
|
|
52
|
+
"@devvit/runtimes": "0.9.10-next-2023-07-05-b0e40e269.0",
|
|
53
53
|
"@lottiefiles/lottie-player": "1.7.1",
|
|
54
54
|
"p-queue": "7.3.4",
|
|
55
55
|
"rxjs": "7.5.7"
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@devvit/eslint-config": "0.9.9",
|
|
78
|
-
"@devvit/public-api": "0.9.10-next-2023-
|
|
78
|
+
"@devvit/public-api": "0.9.10-next-2023-07-05-b0e40e269.0",
|
|
79
79
|
"@devvit/repo-tools": "0.9.9",
|
|
80
|
-
"@devvit/tsconfig": "0.9.10-next-2023-
|
|
80
|
+
"@devvit/tsconfig": "0.9.10-next-2023-07-05-b0e40e269.0",
|
|
81
81
|
"@lit/localize": "0.11.4",
|
|
82
82
|
"@reddit/baseplate": "0.14.0",
|
|
83
83
|
"@reddit/eslint-plugin-i18n-shreddit": "0.1.0",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"directory": "dist"
|
|
102
102
|
},
|
|
103
103
|
"source": "./src/index.ts",
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "56adc9bd7361e5af54e9e17f1f726f4f3d2eea2a"
|
|
105
105
|
}
|