@lark-project/js-sdk 2.0.4-dev.0 → 2.0.5
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 +2 -2
- package/dist/lib/index.js +2 -2
- package/dist/types/index.d.ts +9 -10
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* MIT License
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2025 Lark Technologies Pte. Ltd.
|
|
5
5
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
* The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
|
|
7
7
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -614,7 +614,7 @@ var SDKClient = _SDKClient;
|
|
|
614
614
|
/**
|
|
615
615
|
* SDK 版本号
|
|
616
616
|
*/
|
|
617
|
-
SDKClient.version = "2.0.
|
|
617
|
+
SDKClient.version = "2.0.5";
|
|
618
618
|
|
|
619
619
|
// src/types/biz.ts
|
|
620
620
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
package/dist/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* MIT License
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2025 Lark Technologies Pte. Ltd.
|
|
5
5
|
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
* The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
|
|
7
7
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -676,7 +676,7 @@ var SDKClient = _SDKClient;
|
|
|
676
676
|
/**
|
|
677
677
|
* SDK 版本号
|
|
678
678
|
*/
|
|
679
|
-
SDKClient.version = "2.0.
|
|
679
|
+
SDKClient.version = "2.0.5";
|
|
680
680
|
|
|
681
681
|
// src/types/biz.ts
|
|
682
682
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -582,10 +582,6 @@ declare abstract class Context extends BaseModel {
|
|
|
582
582
|
* 当前登录用户信息
|
|
583
583
|
*/
|
|
584
584
|
abstract loginUser: User;
|
|
585
|
-
/**
|
|
586
|
-
* 主空间信息(左侧导航栏选中的空间)
|
|
587
|
-
*/
|
|
588
|
-
abstract mainSpace?: BriefSpace;
|
|
589
585
|
/**
|
|
590
586
|
* 当前打开的工作项(仅工作项详情页可用)
|
|
591
587
|
*/
|
|
@@ -1106,7 +1102,11 @@ interface ModalConfirmOptions {
|
|
|
1106
1102
|
/**
|
|
1107
1103
|
* Modal 展示配置
|
|
1108
1104
|
*/
|
|
1109
|
-
interface
|
|
1105
|
+
interface ModalOpenOptions<Context> {
|
|
1106
|
+
/**
|
|
1107
|
+
* 指定 modal 内容的代码入口,即在入口文件中导出的模块名
|
|
1108
|
+
*/
|
|
1109
|
+
entry: string;
|
|
1110
1110
|
/**
|
|
1111
1111
|
* 宽度
|
|
1112
1112
|
* 默认: 448
|
|
@@ -1133,9 +1133,8 @@ interface ModalOptions<Context> {
|
|
|
1133
1133
|
/**
|
|
1134
1134
|
* 响应弹窗内调用的 sdk.containerModal.submit 方法
|
|
1135
1135
|
* @param params 弹窗内调用的 sdk.containerModal.submit 的方法时传入的自定义参数
|
|
1136
|
-
* @returns 调用 sdk.containerModal.submit 返回的自定义值
|
|
1137
1136
|
*/
|
|
1138
|
-
onSubmit?: (params: unknown) =>
|
|
1137
|
+
onSubmit?: (params: unknown) => void;
|
|
1139
1138
|
}
|
|
1140
1139
|
/**
|
|
1141
1140
|
* @public
|
|
@@ -1167,7 +1166,7 @@ declare abstract class Modal extends BaseModel {
|
|
|
1167
1166
|
* @param options
|
|
1168
1167
|
* @returns 当前打开 Modal 的关闭方法
|
|
1169
1168
|
*/
|
|
1170
|
-
abstract open<Context>(options:
|
|
1169
|
+
abstract open<Context>(options: ModalOpenOptions<Context>): Promise<{
|
|
1171
1170
|
close: () => void;
|
|
1172
1171
|
}>;
|
|
1173
1172
|
}
|
|
@@ -1367,7 +1366,7 @@ declare abstract class ContainerModal extends BaseModel {
|
|
|
1367
1366
|
* 只存在于 modal.open 打开的容器内
|
|
1368
1367
|
* submit 调用的是 sdk.modal.open 传入的 onSubmit 方法
|
|
1369
1368
|
*/
|
|
1370
|
-
abstract submit?: <Params
|
|
1369
|
+
abstract submit?: <Params>(params: Params) => Promise<void>;
|
|
1371
1370
|
/**
|
|
1372
1371
|
* mobile version ≥ 7.22.0
|
|
1373
1372
|
* 关闭插件当前激活的容器模态框
|
|
@@ -1753,4 +1752,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
1753
1752
|
* @packageDocumentation
|
|
1754
1753
|
*/
|
|
1755
1754
|
|
|
1756
|
-
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, 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 };
|
|
1755
|
+
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 };
|