@lark-project/js-sdk 2.0.10 → 2.0.11

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/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Change Log
2
+ ## 2.0.11 (2025/06/18)
3
+ - 「Add」navigation.openWorkItemCreatePage 支持取消回调、富文本字段预填
4
+
2
5
  ## 2.0.8 (2025/03/20)
3
6
  - 「Add」新增 Button 计划表单元按钮 Context
4
7
  - 「Add」新增 Button 视图批量按钮 Context
package/dist/es/index.js CHANGED
@@ -634,7 +634,7 @@ var SDKClient = _SDKClient;
634
634
  /**
635
635
  * SDK 版本号
636
636
  */
637
- SDKClient.version = "2.0.10";
637
+ SDKClient.version = "2.0.11";
638
638
 
639
639
  // src/types/biz.ts
640
640
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -701,7 +701,7 @@ var SDKClient = _SDKClient;
701
701
  /**
702
702
  * SDK 版本号
703
703
  */
704
- SDKClient.version = "2.0.10";
704
+ SDKClient.version = "2.0.11";
705
705
 
706
706
  // src/types/biz.ts
707
707
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -1042,7 +1042,7 @@ declare abstract class WorkItem extends BaseModel {
1042
1042
  * 获取工作项实例自定义字段相关数据
1043
1043
  * TODO: 类型暂未定义
1044
1044
  */
1045
- abstract getFieldValue(filedId: string): any;
1045
+ abstract getFieldValue(fieldId: string): any;
1046
1046
  }
1047
1047
 
1048
1048
  /**
@@ -1110,7 +1110,7 @@ interface WorkItemCreateFormPreset {
1110
1110
  */
1111
1111
  field?: {
1112
1112
  [fieldId: string]: {
1113
- fieldType: Exclude<FieldType, FieldType.unknown | FieldType.richText | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
1113
+ fieldType: Exclude<FieldType, FieldType.unknown | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
1114
1114
  fieldValue: any;
1115
1115
  };
1116
1116
  };
@@ -1167,7 +1167,7 @@ declare abstract class Navigation extends BaseModel {
1167
1167
  formPreset?: WorkItemCreateFormPreset;
1168
1168
  }, callback?: (err: Error | undefined, result: {
1169
1169
  workItemId: number;
1170
- }) => void): void;
1170
+ }) => void, onCancel?: () => void): void;
1171
1171
  /**
1172
1172
  * 打开指定空间工作项实例
1173
1173
  * @param options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"