@lark-project/js-sdk 2.0.15 → 2.0.16-alpha.2

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
@@ -649,7 +649,7 @@ var SDKClient = _SDKClient;
649
649
  /**
650
650
  * SDK 版本号
651
651
  */
652
- SDKClient.version = "2.0.15";
652
+ SDKClient.version = "2.0.16-alpha.2";
653
653
 
654
654
  // src/types/biz.ts
655
655
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
package/dist/lib/index.js CHANGED
@@ -715,7 +715,7 @@ var SDKClient = _SDKClient;
715
715
  /**
716
716
  * SDK 版本号
717
717
  */
718
- SDKClient.version = "2.0.15";
718
+ SDKClient.version = "2.0.16-alpha.2";
719
719
 
720
720
  // src/types/biz.ts
721
721
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -448,6 +448,38 @@ interface BatchButtonFeatureContext {
448
448
  * 按钮构成
449
449
  */
450
450
  type ButtonFeatureContext = WorkItemButtonFeatureContext | CreateButtonFeatureContext | BatchButtonFeatureContext | ScheduleUnitButtonFeatureContext;
451
+ /**
452
+ * 脚本构成
453
+ */
454
+ type ScriptFeatureContext = ButtonFeatureContext;
455
+ /**
456
+ * 按钮弹窗配置
457
+ */
458
+ interface ButtonModalOpenOptions<Context> {
459
+ /**
460
+ * 标题
461
+ */
462
+ title?: string;
463
+ /**
464
+ * 宽度
465
+ * 默认: 448
466
+ */
467
+ width?: number;
468
+ /**
469
+ * 高度
470
+ * 默认: 400
471
+ */
472
+ height?: number;
473
+ /**
474
+ * 传入 ButtonModal 内的上下文数据
475
+ * 注:传入的数据在 Modal 内是通过 sdk.Context.load().getCustomContext() 来获取的
476
+ */
477
+ context?: Context;
478
+ /**
479
+ * 指定 ButtonModal 内容的代码入口,即在入口文件中导出的模块名
480
+ */
481
+ entry?: string;
482
+ }
451
483
  /**
452
484
  * 内嵌页面构成
453
485
  * 一个单独的导航入口+内嵌页面
@@ -2236,4 +2268,4 @@ declare class NotSupportedError extends CustomError {
2236
2268
  * @packageDocumentation
2237
2269
  */
2238
2270
 
2239
- export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, ExCompoundFieldValueType, Field, FieldType, FieldValue, 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, ScheduleUnitButtonFeatureContext, Shared, Space, Storage, SubFieldType, Tab, TabFeatureContext, Toast, ToastOptions, User, UserInfo, Utils, View, ViewFeatureContext, WbsStatus, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
2271
+ export { ActionSheet, ActionSheetOptions, AttributeType, BatchButtonFeatureContext, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonModalOpenOptions, ButtonScene, Clipboard, ColorScheme, ComponentScheduleIdentity, ComponentScheduleScene, Configuration, ConfigurationFeatureContext, ContainerModal, ContainerModalConfigureOptions, Context, Control, ControlFeatureContext, CreateButtonFeatureContext, CustomComponent, CustomComponentFeatureContext, CustomComponentProps, CustomComponentType, CustomField, CustomFieldConfig, CustomFieldFeatureContext, CustomFieldProps, CustomFieldValidateMsg, CustomFieldValueType, ExCompoundFieldValueType, Field, FieldType, FieldValue, 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, ScheduleUnitButtonFeatureContext, ScriptFeatureContext, Shared, Space, Storage, SubFieldType, 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.15",
3
+ "version": "2.0.16-alpha.2",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"