@open-feishu-card/renderer 0.2.18 → 0.2.20

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 CHANGED
@@ -212,6 +212,8 @@ var COLOR_NAME_TO_TOKEN = (() => {
212
212
  map["grey-650"] = "N650";
213
213
  map["grey-950"] = "N950";
214
214
  map["grey-1000"] = "N1000";
215
+ map.white = "N00";
216
+ map.black = "N800";
215
217
  return map;
216
218
  })();
217
219
  function paletteColor(raw) {
@@ -5703,6 +5705,7 @@ function registerBuiltins() {
5703
5705
  imgStyle.width = "100%";
5704
5706
  imgStyle.height = "auto";
5705
5707
  }
5708
+ applyOuterMargin(wrapStyle, p.margin);
5706
5709
  return h(
5707
5710
  "div",
5708
5711
  { className: `${CLS}-image__wrapper`, style: wrapStyle },
package/dist/index.js CHANGED
@@ -211,6 +211,8 @@ var COLOR_NAME_TO_TOKEN = (() => {
211
211
  map["grey-650"] = "N650";
212
212
  map["grey-950"] = "N950";
213
213
  map["grey-1000"] = "N1000";
214
+ map.white = "N00";
215
+ map.black = "N800";
214
216
  return map;
215
217
  })();
216
218
  function paletteColor(raw) {
@@ -5702,6 +5704,7 @@ function registerBuiltins() {
5702
5704
  imgStyle.width = "100%";
5703
5705
  imgStyle.height = "auto";
5704
5706
  }
5707
+ applyOuterMargin(wrapStyle, p.margin);
5705
5708
  return h(
5706
5709
  "div",
5707
5710
  { className: `${CLS}-image__wrapper`, style: wrapStyle },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-feishu-card/renderer",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "零框架依赖的飞书卡片渲染引擎:Web / DOM / SSR,输入 RAW 或公开 DSL,输出真实 DOM 或 HTML 字符串",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",