@lark-project/js-sdk 2.0.12 → 2.0.14-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/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Change Log
2
+ ## 2.0.12 (2025/07/16)
3
+ - 「Add」新增 CustomField 点位相关定义
4
+ - 「Add」新增 JSSDK client 对 CustomField 和 CustomComponent 的引用
5
+
2
6
  ## 2.0.11 (2025/06/18)
3
7
  - 「Add」navigation.openWorkItemCreatePage 支持取消回调、富文本字段预填
4
8
 
package/dist/es/index.js CHANGED
@@ -448,7 +448,7 @@ _a25 = IMPL_KEY;
448
448
  /**
449
449
  * @internal
450
450
  */
451
- CustomField[_a25] = "exField";
451
+ CustomField[_a25] = "customField";
452
452
 
453
453
  // src/client.ts
454
454
  function getImplClass(decl, impls) {
@@ -649,7 +649,7 @@ var SDKClient = _SDKClient;
649
649
  /**
650
650
  * SDK 版本号
651
651
  */
652
- SDKClient.version = "2.0.12";
652
+ SDKClient.version = "2.0.14-dev.0";
653
653
 
654
654
  // src/types/biz.ts
655
655
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -514,7 +514,7 @@ _a25 = IMPL_KEY;
514
514
  /**
515
515
  * @internal
516
516
  */
517
- CustomField[_a25] = "exField";
517
+ CustomField[_a25] = "customField";
518
518
 
519
519
  // src/client.ts
520
520
  function getImplClass(decl, impls) {
@@ -715,7 +715,7 @@ var SDKClient = _SDKClient;
715
715
  /**
716
716
  * SDK 版本号
717
717
  */
718
- SDKClient.version = "2.0.12";
718
+ SDKClient.version = "2.0.14-dev.0";
719
719
 
720
720
  // src/types/biz.ts
721
721
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -1091,6 +1091,10 @@ declare abstract class Field extends BaseModel {
1091
1091
  abstract isFormulaField: boolean;
1092
1092
  }
1093
1093
 
1094
+ interface IFieldOptions {
1095
+ fieldType: Exclude<FieldType, FieldType.unknown | FieldType.richText | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
1096
+ fieldValue: any;
1097
+ }
1094
1098
  /**
1095
1099
  * @public
1096
1100
  * 新建工作项表单预填
@@ -1098,6 +1102,8 @@ declare abstract class Field extends BaseModel {
1098
1102
  interface WorkItemCreateFormPreset {
1099
1103
  /**
1100
1104
  * 工作项属性,目前仅支持工作项名称(name)
1105
+ *
1106
+ * @deprecated - attribute 已合入 field,请使用 field 传参
1101
1107
  */
1102
1108
  attribute?: {
1103
1109
  [key in AttributeType]?: {
@@ -1108,10 +1114,9 @@ interface WorkItemCreateFormPreset {
1108
1114
  * 工作项字段
1109
1115
  */
1110
1116
  field?: {
1111
- [fieldId: string]: {
1112
- fieldType: Exclude<FieldType, FieldType.unknown | FieldType.simpleVoting | FieldType.singleVoting | FieldType.multiVoting | FieldType.attachment | FieldType.singleSignal | FieldType.multiSignal | FieldType.compoundField>;
1113
- fieldValue: any;
1114
- };
1117
+ [key in AttributeType]?: IFieldOptions;
1118
+ } & {
1119
+ [key: string]: IFieldOptions;
1115
1120
  };
1116
1121
  }
1117
1122
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "2.0.12",
3
+ "version": "2.0.14-dev.0",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"