@lark-project/js-sdk 2.0.6-dev.0 → 2.0.6

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,7 +1,6 @@
1
1
  # Change Log
2
2
  ## 2.0.6 (2024/09/12)
3
3
  - 「Add」新增 Fullscreen Modal
4
- - 「Add」新增 Context loginUser tenantId
5
4
 
6
5
  ## 2.0.5 (2024/08/13)
7
6
  - 「Add」新增 Button Context
package/dist/es/index.js CHANGED
@@ -614,7 +614,7 @@ var SDKClient = _SDKClient;
614
614
  /**
615
615
  * SDK 版本号
616
616
  */
617
- SDKClient.version = "2.0.6-dev.0";
617
+ SDKClient.version = "2.0.6";
618
618
 
619
619
  // src/types/biz.ts
620
620
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -676,7 +676,7 @@ var SDKClient = _SDKClient;
676
676
  /**
677
677
  * SDK 版本号
678
678
  */
679
- SDKClient.version = "2.0.6-dev.0";
679
+ SDKClient.version = "2.0.6";
680
680
 
681
681
  // src/types/biz.ts
682
682
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -15,11 +15,6 @@ interface User {
15
15
  * 用户头像
16
16
  */
17
17
  avatar: string;
18
- /**
19
- * 所属租户
20
- * only web 2.0
21
- */
22
- tenantId?: string;
23
18
  }
24
19
  /**
25
20
  * @public
@@ -1176,6 +1171,20 @@ declare abstract class Modal extends BaseModel {
1176
1171
  }>;
1177
1172
  }
1178
1173
 
1174
+ interface IRichTextEditorImageUploadComplete {
1175
+ /**
1176
+ * 错误码,非 0 表示异常
1177
+ */
1178
+ code: number;
1179
+ /**
1180
+ * 错误信息
1181
+ */
1182
+ errMsg: string;
1183
+ /**
1184
+ * 图片上传接口返回的 response 数据
1185
+ */
1186
+ responseData: any;
1187
+ }
1179
1188
  /**
1180
1189
  * RichTextEditor 配置
1181
1190
  */
@@ -1213,6 +1222,13 @@ interface RichTextEditorOptions {
1213
1222
  * token 会通过 request header 的 x-plugin-custom-token 提供
1214
1223
  */
1215
1224
  token?: string;
1225
+ /**
1226
+ * 上传完成回调
1227
+ * @mobile_version >=7.37.0
1228
+ * @param info
1229
+ * @returns
1230
+ */
1231
+ onUploadComplete?: (info: IRichTextEditorImageUploadComplete) => void;
1216
1232
  };
1217
1233
  }
1218
1234
  /**
@@ -1757,4 +1773,4 @@ declare class NotSupportedError extends CustomError {
1757
1773
  * @packageDocumentation
1758
1774
  */
1759
1775
 
1760
- export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, Field, FieldType, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Shared, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, Utils, View, ViewFeatureContext, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
1776
+ export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, Field, FieldType, FlowMode, IMPL_KEY, IPluginCustomBuildConfig, IRichTextEditorImageUploadComplete, IntegrationFeatureContext, Intercept, InterceptEvent, InterceptFeatureContext, InternalError, InvalidParamsError, Language, MEEGO_BIZ_HUB, Modal, ModalConfirmOptions, ModalOpenOptions, Navigation, NoAuthError, NodeStatus, NotFoundError, NotSupportedError, Off, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Shared, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, Utils, View, ViewFeatureContext, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/js-sdk",
3
- "version": "2.0.6-dev.0",
3
+ "version": "2.0.6",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"