@vvfx/sdk 0.2.2-beta.13 → 0.2.2-beta.17

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
@@ -181,6 +181,7 @@ export declare class SDK {
181
181
  cancelExport(): void;
182
182
  loadPageData(data: PageData): Promise<void>;
183
183
  runByPageData(data: PageData): Promise<void>;
184
+ runByCreateInfos(createInfos: ItemCreateInfo[]): Promise<void>;
184
185
  reloadPageDataByScene(scene: string | spec.JSONScene): Promise<void>;
185
186
  /**
186
187
  * @description 新增视图数据
package/dist/types.d.ts CHANGED
@@ -130,6 +130,14 @@ export type CardHTMLInlineContent = {
130
130
  * @description HTML 字符串内容
131
131
  */
132
132
  html: string;
133
+ /**
134
+ * @description iframe sandbox 配置;true/undefined 使用 SDK 默认沙箱 allow-scripts。
135
+ */
136
+ sandbox?: boolean | string;
137
+ /**
138
+ * @description 是否允许 iframe 内 a[href] 执行默认跳转;默认 false,会阻止 Agent 生成 HTML 中的链接把卡片导航走。
139
+ */
140
+ allowAnchorNavigation?: boolean;
133
141
  /**
134
142
  * @description 增量 patch 处理器。可用于将运行时事件派发给 iframe,或直接更新外部状态后触发刷新;返回 false 表示未处理,返回 true 或无返回值表示已接收。
135
143
  */
@@ -205,6 +213,10 @@ export type CardHTMLDocumentContent = {
205
213
  * @description iframe sandbox 配置;true/undefined 使用 SDK 默认沙箱 allow-scripts;false 不加 sandbox,风险较高,不建议用于不可信内容。
206
214
  */
207
215
  sandbox?: boolean | string;
216
+ /**
217
+ * @description 是否允许 iframe 内 a[href] 执行默认跳转;默认 false,会阻止 Agent 生成 HTML 中的链接把卡片导航走。
218
+ */
219
+ allowAnchorNavigation?: boolean;
208
220
  /**
209
221
  * @description 是否允许 iframe 通过 postMessage 与宿主通信;默认 false。
210
222
  */
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.13",
4
+ "version": "0.2.2-beta.17",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",