@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 +0 -1
- package/dist/es/index.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/types/index.d.ts +22 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -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 };
|