@open-feishu-card/renderer 0.2.13 → 0.2.14
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/dist/index.cjs +3 -1
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5740,7 +5740,9 @@ function registerBuiltins() {
|
|
|
5740
5740
|
const expanded = p.expanded !== false;
|
|
5741
5741
|
const style = { width: "100%" };
|
|
5742
5742
|
const bgRaw = p.background_color ?? p.backgroundColor;
|
|
5743
|
-
|
|
5743
|
+
const bgCustom = propertyBackgroundColor(p);
|
|
5744
|
+
if (bgCustom) style.background = bgCustom;
|
|
5745
|
+
else if (bgRaw === "bg-white") style.background = "#fff";
|
|
5744
5746
|
else {
|
|
5745
5747
|
const bg = bgStyleToColor(bgRaw);
|
|
5746
5748
|
if (bg) style.background = bg;
|
package/dist/index.js
CHANGED
|
@@ -5739,7 +5739,9 @@ function registerBuiltins() {
|
|
|
5739
5739
|
const expanded = p.expanded !== false;
|
|
5740
5740
|
const style = { width: "100%" };
|
|
5741
5741
|
const bgRaw = p.background_color ?? p.backgroundColor;
|
|
5742
|
-
|
|
5742
|
+
const bgCustom = propertyBackgroundColor(p);
|
|
5743
|
+
if (bgCustom) style.background = bgCustom;
|
|
5744
|
+
else if (bgRaw === "bg-white") style.background = "#fff";
|
|
5743
5745
|
else {
|
|
5744
5746
|
const bg = bgStyleToColor(bgRaw);
|
|
5745
5747
|
if (bg) style.background = bg;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-feishu-card/renderer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"description": "零框架依赖的飞书卡片渲染引擎:Web / DOM / SSR,输入 RAW 或公开 DSL,输出真实 DOM 或 HTML 字符串",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"./dist/*.cjs"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@open-feishu-card/adapter": "0.3.
|
|
31
|
+
"@open-feishu-card/adapter": "0.3.10"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"tsup": "^8.3.5",
|