@lark-project/js-sdk 2.0.7 → 2.0.8-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/dist/es/index.js CHANGED
@@ -624,7 +624,7 @@ var SDKClient = _SDKClient;
624
624
  /**
625
625
  * SDK 版本号
626
626
  */
627
- SDKClient.version = "2.0.7";
627
+ SDKClient.version = "2.0.8-dev.0";
628
628
 
629
629
  // src/types/biz.ts
630
630
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -689,7 +689,7 @@ var SDKClient = _SDKClient;
689
689
  /**
690
690
  * SDK 版本号
691
691
  */
692
- SDKClient.version = "2.0.7";
692
+ SDKClient.version = "2.0.8-dev.0";
693
693
 
694
694
  // src/types/biz.ts
695
695
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -379,10 +379,36 @@ interface CreateButtonFeatureContext {
379
379
  */
380
380
  viewId?: string;
381
381
  }
382
+ /**
383
+ * 视图批量按钮上下文
384
+ * 适用场景:普通视图、工作项主页视图、工作台视图组件
385
+ */
386
+ interface BatchButtonFeatureContext {
387
+ /**
388
+ * 视图所属空间标识
389
+ */
390
+ spaceId: string;
391
+ /**
392
+ * 视图所属工作项类型标识
393
+ */
394
+ workObjectId: string;
395
+ /**
396
+ * 视图标识
397
+ */
398
+ viewId?: string;
399
+ /**
400
+ * 勾选的工作项实例
401
+ */
402
+ selectedWorkItems: Array<{
403
+ spaceId: string;
404
+ workObjectId: string;
405
+ workItemIds: number[];
406
+ }>;
407
+ }
382
408
  /**
383
409
  * 按钮构成
384
410
  */
385
- type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext;
411
+ type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext | BatchButtonFeatureContext;
386
412
  /**
387
413
  * 内嵌页面构成
388
414
  * 一个单独的导航入口+内嵌页面
@@ -1957,4 +1983,4 @@ declare class NotSupportedError extends CustomError {
1957
1983
  * @packageDocumentation
1958
1984
  */
1959
1985
 
1960
- export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, 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, ScheduleCompValidateMsg, ScheduleCompValueType, Shared, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
1986
+ export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, 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, ScheduleCompValidateMsg, ScheduleCompValueType, Shared, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, 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.7",
3
+ "version": "2.0.8-dev.0",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"