@devvit/ui-renderer 0.10.5-next-2023-09-26-fe2889974.0 → 0.10.5-next-2023-09-26-1000934a6.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.
@@ -7,7 +7,7 @@ export function defaultClasses(type) {
7
7
  const isTextBlock = type === BlockType.BLOCK_TEXT;
8
8
  const isButtonBlock = type === BlockType.BLOCK_BUTTON;
9
9
  const isIconBlock = type === BlockType.BLOCK_ICON;
10
- const hasTextColor = isTextBlock || isButtonBlock || isIconBlock;
10
+ const hasTextColor = isTextBlock || isIconBlock;
11
11
  return {
12
12
  'overflow-hidden': type === BlockType.BLOCK_ROOT || type === BlockType.BLOCK_STACK,
13
13
  'm-0': type === BlockType.BLOCK_IMAGE,
@@ -1 +1 @@
1
- {"version":3,"file":"renderButtonBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderButtonBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAA6C,MAAM,gBAAgB,CAAC;AAalF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAY,YAAY,EAAE,MAAM,WAAW,CAAC;AAInD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAkEhF"}
1
+ {"version":3,"file":"renderButtonBlock.d.ts","sourceRoot":"","sources":["../../../library/src/blocks/templates/renderButtonBlock.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAA6C,MAAM,gBAAgB,CAAC;AAalF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAY,YAAY,EAAE,MAAM,WAAW,CAAC;AAInD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa,GAAG,YAAY,CAmEhF"}
@@ -18,6 +18,7 @@ export function renderButtonBlock(block, ctx) {
18
18
  ...stackChildClass(ctx.stackDirection),
19
19
  ...sizingClass(block.size, ctx),
20
20
  ...cursorClass(block),
21
+ textColor: Boolean(textColor || textColors),
21
22
  };
22
23
  const styles = {
23
24
  ...colorStyle(textColors, textColor),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.10.5-next-2023-09-26-fe2889974.0",
3
+ "version": "0.10.5-next-2023-09-26-1000934a6.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,9 +48,9 @@
48
48
  },
49
49
  "types": "./index.d.ts",
50
50
  "dependencies": {
51
- "@devvit/protos": "0.10.5-next-2023-09-26-fe2889974.0",
52
- "@devvit/runtime-lite": "0.10.5-next-2023-09-26-fe2889974.0",
53
- "@devvit/runtimes": "0.10.5-next-2023-09-26-fe2889974.0",
51
+ "@devvit/protos": "0.10.5-next-2023-09-26-1000934a6.0",
52
+ "@devvit/runtime-lite": "0.10.5-next-2023-09-26-1000934a6.0",
53
+ "@devvit/runtimes": "0.10.5-next-2023-09-26-1000934a6.0",
54
54
  "@lottiefiles/lottie-player": "1.7.1",
55
55
  "p-queue": "7.3.4",
56
56
  "rxjs": "7.5.7"
@@ -77,7 +77,7 @@
77
77
  "devDependencies": {
78
78
  "@devvit/eslint-config": "0.10.4",
79
79
  "@devvit/repo-tools": "0.10.4",
80
- "@devvit/tsconfig": "0.10.5-next-2023-09-26-fe2889974.0",
80
+ "@devvit/tsconfig": "0.10.5-next-2023-09-26-1000934a6.0",
81
81
  "@lit/localize": "0.11.4",
82
82
  "@open-wc/testing-helpers": "2.3.0",
83
83
  "@reddit/baseplate": "0.14.0",
@@ -102,5 +102,5 @@
102
102
  "directory": "dist"
103
103
  },
104
104
  "source": "./src/index.ts",
105
- "gitHead": "59e94dee4d2dd1b59ecc30f3447f856d96247c43"
105
+ "gitHead": "f77e98c252e65b9bcd3a16d157b6ef753c5d3895"
106
106
  }