@vvfx/sdk 0.2.2-beta.3 → 0.2.2-beta.4

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/sdk.d.ts CHANGED
@@ -513,6 +513,19 @@ export declare class SDK {
513
513
  * @returns HTML 渲染配置
514
514
  */
515
515
  resolveCardHTML(item: CardItem): CardHTML | undefined;
516
+ /**
517
+ * @description 按 cardType 从注册表解析卡片类型配置。
518
+ * @param item 卡片元素
519
+ * @returns 卡片类型配置
520
+ */
521
+ resolveCardTypeConfig(item: CardItem): CardTypeConfig | undefined;
522
+ /**
523
+ * @description 重新解析并挂载指定卡片的 HTML 内容。
524
+ * @description 当 inline/document 内容依赖 extension 或外部状态变化时,可调用此方法刷新 DOM。
525
+ * @param id 卡片元素 ID
526
+ * @returns 是否成功触发刷新
527
+ */
528
+ refreshCardHTML(id: string): boolean;
516
529
  /**
517
530
  * @description 创建卡片元素
518
531
  * @description 底层以透明 SpriteItem 形式渲染,支持 cardType 属性
package/dist/types.d.ts CHANGED
@@ -225,14 +225,6 @@ export type CardItemProperty = BaseItemProperty & {
225
225
  * @description 卡片类型(动态配置,需通过 SDK.registerCardType/registerCardTypes 注册)
226
226
  */
227
227
  cardType: string;
228
- /**
229
- * @description 是否根据 HTML 挂载内容的自然高度自动更新卡片高度
230
- */
231
- autoHeight?: boolean;
232
- /**
233
- * @description HTML 内容是否跟随卡片 scale 缩放,关闭后 HTML 按最终显示尺寸重新布局
234
- */
235
- autoScale?: boolean;
236
228
  };
237
229
  /**
238
230
  * @description Frame 画板元素布局模式
@@ -970,14 +962,6 @@ export type CardCreateInfo = {
970
962
  * @description 卡片元素像素高度
971
963
  */
972
964
  height: number;
973
- /**
974
- * @description 是否根据 HTML 挂载内容的自然高度自动更新卡片高度
975
- */
976
- autoHeight?: boolean;
977
- /**
978
- * @description HTML 内容是否跟随卡片 scale 缩放,关闭后 HTML 按最终显示尺寸重新布局
979
- */
980
- autoScale?: boolean;
981
965
  /**
982
966
  * @description 卡片元素位置
983
967
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vvfx/sdk",
3
3
  "description": "TODO",
4
- "version": "0.2.2-beta.3",
4
+ "version": "0.2.2-beta.4",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -68,7 +68,7 @@
68
68
  "prebuild": "pnpm clean",
69
69
  "build": "pnpm build:declaration && pnpm build:module",
70
70
  "build:module": "rollup -c --bundleConfigAsCjs",
71
- "build:declaration": "tsc -d --emitDeclarationOnly",
71
+ "build:declaration": "tsc -p tsconfig.build.json",
72
72
  "clean": "rimraf dist *.tsbuildinfo",
73
73
  "test": "vitest run"
74
74
  }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};