@lark-project/js-sdk 2.0.0-alpha.0 → 2.0.0-alpha.1

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
@@ -366,7 +366,7 @@ var SDKClient = _SDKClient;
366
366
  /**
367
367
  * SDK 版本号
368
368
  */
369
- SDKClient.version = "2.0.0-alpha.0";
369
+ SDKClient.version = "2.0.0-alpha.1";
370
370
 
371
371
  // src/types/biz.ts
372
372
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -415,7 +415,7 @@ var SDKClient = _SDKClient;
415
415
  /**
416
416
  * SDK 版本号
417
417
  */
418
- SDKClient.version = "2.0.0-alpha.0";
418
+ SDKClient.version = "2.0.0-alpha.1";
419
419
 
420
420
  // src/types/biz.ts
421
421
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -948,12 +948,12 @@ declare abstract class ActionSheet extends BaseModel {
948
948
  /**
949
949
  * 打开操作菜单
950
950
  * @param options
951
- * @return
951
+ * @param callback
952
952
  * tapIndex 用户点击的菜单位置
953
953
  */
954
- abstract show(options: ActionSheetOptions): Promise<{
954
+ abstract show(options: ActionSheetOptions, callback: (result: {
955
955
  tapIndex: number;
956
- }>;
956
+ }) => void): void;
957
957
  }
958
958
 
959
959
  /**
@@ -1002,14 +1002,14 @@ declare abstract class Modal extends BaseModel {
1002
1002
  /**
1003
1003
  * 打开模态框
1004
1004
  * @param options
1005
- * @return
1005
+ * @param callback
1006
1006
  * confirmed 点击了确认
1007
1007
  * conceled 点击了取消
1008
1008
  */
1009
- abstract show(options: string | ModalOptions): Promise<{
1009
+ abstract show(options: string | ModalOptions, callback: (result: {
1010
1010
  confirmed: boolean;
1011
1011
  canceled: boolean;
1012
- }>;
1012
+ }) => void): void;
1013
1013
  }
1014
1014
 
1015
1015
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "2.0.0-alpha.0",
3
+ "version": "2.0.0-alpha.1",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"