@open-feishu-card/adapter 0.4.0 → 0.4.1
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 +0 -2
- package/dist/index.js +0 -2
- package/dist/raw-to-dsl.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2082,8 +2082,6 @@ function convertField(rawKey, rawValue, ownerTag, ctx, siblings = {}) {
|
|
|
2082
2082
|
if (ownerTag === "collapsible_panel" && key === "header" && isRecord3(rawValue)) {
|
|
2083
2083
|
const cleaned = {};
|
|
2084
2084
|
for (const [k, v] of Object.entries(rawValue)) {
|
|
2085
|
-
const sk = snake(k);
|
|
2086
|
-
if (sk === "position" || sk === "width" || sk === "vertical_align") continue;
|
|
2087
2085
|
const sub = convertField(k, v, "collapsible_panel_header", ctx, siblings);
|
|
2088
2086
|
if (sub === DROP) continue;
|
|
2089
2087
|
const [subKey, subVal] = sub;
|
package/dist/index.js
CHANGED
|
@@ -2080,8 +2080,6 @@ function convertField(rawKey, rawValue, ownerTag, ctx, siblings = {}) {
|
|
|
2080
2080
|
if (ownerTag === "collapsible_panel" && key === "header" && isRecord3(rawValue)) {
|
|
2081
2081
|
const cleaned = {};
|
|
2082
2082
|
for (const [k, v] of Object.entries(rawValue)) {
|
|
2083
|
-
const sk = snake(k);
|
|
2084
|
-
if (sk === "position" || sk === "width" || sk === "vertical_align") continue;
|
|
2085
2083
|
const sub = convertField(k, v, "collapsible_panel_header", ctx, siblings);
|
|
2086
2084
|
if (sub === DROP) continue;
|
|
2087
2085
|
const [subKey, subVal] = sub;
|
package/dist/raw-to-dsl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raw-to-dsl.d.ts","sourceRoot":"","sources":["../src/raw-to-dsl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAwBH,wBA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CzE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAGnF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-feishu-card/adapter",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "公开 DSL 与飞书内部 RAW JSON 的双向适配器;raw→DSL 对齐 feishu-raw-card-to-dsl",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"tsx": "^4.19.3",
|
|
23
23
|
"typescript": "^7.0.2",
|
|
24
24
|
"vitest": "^2.1.9",
|
|
25
|
-
"@open-feishu-card/schema": "0.
|
|
25
|
+
"@open-feishu-card/schema": "0.3.0"
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"publishConfig": {
|