@lark-project/js-sdk 2.0.2-dev.5 → 2.0.3-dev.0

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/es/index.js CHANGED
@@ -597,7 +597,7 @@ var SDKClient = _SDKClient;
597
597
  /**
598
598
  * SDK 版本号
599
599
  */
600
- SDKClient.version = "2.0.2-dev.5";
600
+ SDKClient.version = "2.0.3-dev.0";
601
601
 
602
602
  // src/types/biz.ts
603
603
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -658,7 +658,7 @@ var SDKClient = _SDKClient;
658
658
  /**
659
659
  * SDK 版本号
660
660
  */
661
- SDKClient.version = "2.0.2-dev.5";
661
+ SDKClient.version = "2.0.3-dev.0";
662
662
 
663
663
  // src/types/biz.ts
664
664
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -1165,6 +1165,20 @@ interface RichTextEditorOptions {
1165
1165
  */
1166
1166
  spaceId: string;
1167
1167
  };
1168
+ /**
1169
+ * 你自定义图床的配置
1170
+ * @mobile_version >= 7.31
1171
+ */
1172
+ imageUpload?: {
1173
+ /**
1174
+ * 你的图片上传服务地址
1175
+ */
1176
+ url: string;
1177
+ /**
1178
+ * 你的图片上传服务的鉴权 token
1179
+ */
1180
+ token?: string;
1181
+ };
1168
1182
  }
1169
1183
  /**
1170
1184
  * 富文本完整内容
@@ -1370,6 +1384,7 @@ declare abstract class Control extends BaseModel {
1370
1384
  abstract getContext(): Promise<ControlFeatureContext>;
1371
1385
  /**
1372
1386
  * 获取新建工作项表单项的值
1387
+ * mobile version ≥ 7.29.0
1373
1388
  * @param keys 需要获取的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
1374
1389
  * @param keys.key 工作项属性 / 字段 ID
1375
1390
  * @param keys.type 类型
@@ -1384,10 +1399,17 @@ declare abstract class Control extends BaseModel {
1384
1399
  * only web 2.0
1385
1400
  * 监听新建工作项表单项值变化
1386
1401
  * @param options.watchKeys 需要监听的工作项属性 / 字段 ID 列表,一次限制读取 10 个 keys
1402
+ * @param options.watchKeys.key 工作项属性 / 字段 ID
1403
+ * @param options.watchKeys.type 类型
1404
+ * 工作项属性 name 为 FieldType.text,工作项属性 template 为 FieldType.number
1405
+ * 控件 role_owners 为 FieldType.control
1387
1406
  * @param callback 当监听值发生变化时触发,changedKeys 为变化的 keys
1388
1407
  */
1389
1408
  abstract onCreateWorkItemFormValueChanged(options: {
1390
- watchKeys: Array<string | AttributeType>;
1409
+ watchKeys: Array<{
1410
+ key: string | AttributeType;
1411
+ type: Exclude<FieldType, FieldType.richText | FieldType.singleSignal | FieldType.multiSignal | FieldType.singleVoting | FieldType.multiVoting>;
1412
+ }>;
1391
1413
  }, callback: (changedKeys: Array<string | AttributeType>) => void): Off;
1392
1414
  }
1393
1415
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "2.0.2-dev.5",
3
+ "version": "2.0.3-dev.0",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"