@lark-project/js-sdk 2.0.16-alpha.2 → 2.0.16-alpha.4
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 +3 -0
- package/dist/es/index.js +31 -13
- package/dist/lib/index.js +32 -13
- package/dist/types/index.d.ts +33 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -398,8 +398,18 @@ _a21 = IMPL_KEY;
|
|
|
398
398
|
*/
|
|
399
399
|
Page[_a21] = "page";
|
|
400
400
|
|
|
401
|
-
// src/features/
|
|
401
|
+
// src/features/Script.ts
|
|
402
402
|
var _a22;
|
|
403
|
+
var Script = class extends BaseModel {
|
|
404
|
+
};
|
|
405
|
+
_a22 = IMPL_KEY;
|
|
406
|
+
/**
|
|
407
|
+
* @internal
|
|
408
|
+
*/
|
|
409
|
+
Script[_a22] = "script";
|
|
410
|
+
|
|
411
|
+
// src/features/Tab.ts
|
|
412
|
+
var _a23;
|
|
403
413
|
var Tab = class extends BaseModel {
|
|
404
414
|
/**
|
|
405
415
|
* 加载数据
|
|
@@ -408,14 +418,14 @@ var Tab = class extends BaseModel {
|
|
|
408
418
|
throw new Error("not implemented");
|
|
409
419
|
}
|
|
410
420
|
};
|
|
411
|
-
|
|
421
|
+
_a23 = IMPL_KEY;
|
|
412
422
|
/**
|
|
413
423
|
* @internal
|
|
414
424
|
*/
|
|
415
|
-
Tab[
|
|
425
|
+
Tab[_a23] = "tab";
|
|
416
426
|
|
|
417
427
|
// src/features/View.ts
|
|
418
|
-
var
|
|
428
|
+
var _a24;
|
|
419
429
|
var View = class extends BaseModel {
|
|
420
430
|
/**
|
|
421
431
|
* 加载数据
|
|
@@ -424,31 +434,31 @@ var View = class extends BaseModel {
|
|
|
424
434
|
throw new Error("not implemented");
|
|
425
435
|
}
|
|
426
436
|
};
|
|
427
|
-
|
|
437
|
+
_a24 = IMPL_KEY;
|
|
428
438
|
/**
|
|
429
439
|
* @internal
|
|
430
440
|
*/
|
|
431
|
-
View[
|
|
441
|
+
View[_a24] = "view";
|
|
432
442
|
|
|
433
443
|
// src/features/CustomComponent.ts
|
|
434
|
-
var
|
|
444
|
+
var _a25;
|
|
435
445
|
var CustomComponent = class extends BaseModel {
|
|
436
446
|
};
|
|
437
|
-
|
|
447
|
+
_a25 = IMPL_KEY;
|
|
438
448
|
/**
|
|
439
449
|
* @internal
|
|
440
450
|
*/
|
|
441
|
-
CustomComponent[
|
|
451
|
+
CustomComponent[_a25] = "customComponent";
|
|
442
452
|
|
|
443
453
|
// src/features/CustomField.ts
|
|
444
|
-
var
|
|
454
|
+
var _a26;
|
|
445
455
|
var CustomField = class extends BaseModel {
|
|
446
456
|
};
|
|
447
|
-
|
|
457
|
+
_a26 = IMPL_KEY;
|
|
448
458
|
/**
|
|
449
459
|
* @internal
|
|
450
460
|
*/
|
|
451
|
-
CustomField[
|
|
461
|
+
CustomField[_a26] = "customField";
|
|
452
462
|
|
|
453
463
|
// src/client.ts
|
|
454
464
|
function getImplClass(decl, impls) {
|
|
@@ -486,6 +496,13 @@ var _SDKClient = class {
|
|
|
486
496
|
get button() {
|
|
487
497
|
return getImplValue(Button, this._meegoBizHub);
|
|
488
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* 脚本容器特有能力
|
|
501
|
+
* only 2.0
|
|
502
|
+
*/
|
|
503
|
+
get script() {
|
|
504
|
+
return getImplValue(Script, this._meegoBizHub);
|
|
505
|
+
}
|
|
489
506
|
/**
|
|
490
507
|
* 配置点位容器特有能力
|
|
491
508
|
* only 2.0
|
|
@@ -649,7 +666,7 @@ var SDKClient = _SDKClient;
|
|
|
649
666
|
/**
|
|
650
667
|
* SDK 版本号
|
|
651
668
|
*/
|
|
652
|
-
SDKClient.version = "2.0.16-alpha.
|
|
669
|
+
SDKClient.version = "2.0.16-alpha.4";
|
|
653
670
|
|
|
654
671
|
// src/types/biz.ts
|
|
655
672
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -852,6 +869,7 @@ export {
|
|
|
852
869
|
Page,
|
|
853
870
|
RichTextEditor,
|
|
854
871
|
SDKClient,
|
|
872
|
+
Script,
|
|
855
873
|
Shared,
|
|
856
874
|
Space,
|
|
857
875
|
Storage,
|
package/dist/lib/index.js
CHANGED
|
@@ -80,6 +80,7 @@ __export(src_exports, {
|
|
|
80
80
|
Page: () => Page,
|
|
81
81
|
RichTextEditor: () => RichTextEditor,
|
|
82
82
|
SDKClient: () => SDKClient,
|
|
83
|
+
Script: () => Script,
|
|
83
84
|
Shared: () => Shared,
|
|
84
85
|
Space: () => Space,
|
|
85
86
|
Storage: () => Storage,
|
|
@@ -464,8 +465,18 @@ _a21 = IMPL_KEY;
|
|
|
464
465
|
*/
|
|
465
466
|
Page[_a21] = "page";
|
|
466
467
|
|
|
467
|
-
// src/features/
|
|
468
|
+
// src/features/Script.ts
|
|
468
469
|
var _a22;
|
|
470
|
+
var Script = class extends BaseModel {
|
|
471
|
+
};
|
|
472
|
+
_a22 = IMPL_KEY;
|
|
473
|
+
/**
|
|
474
|
+
* @internal
|
|
475
|
+
*/
|
|
476
|
+
Script[_a22] = "script";
|
|
477
|
+
|
|
478
|
+
// src/features/Tab.ts
|
|
479
|
+
var _a23;
|
|
469
480
|
var Tab = class extends BaseModel {
|
|
470
481
|
/**
|
|
471
482
|
* 加载数据
|
|
@@ -474,14 +485,14 @@ var Tab = class extends BaseModel {
|
|
|
474
485
|
throw new Error("not implemented");
|
|
475
486
|
}
|
|
476
487
|
};
|
|
477
|
-
|
|
488
|
+
_a23 = IMPL_KEY;
|
|
478
489
|
/**
|
|
479
490
|
* @internal
|
|
480
491
|
*/
|
|
481
|
-
Tab[
|
|
492
|
+
Tab[_a23] = "tab";
|
|
482
493
|
|
|
483
494
|
// src/features/View.ts
|
|
484
|
-
var
|
|
495
|
+
var _a24;
|
|
485
496
|
var View = class extends BaseModel {
|
|
486
497
|
/**
|
|
487
498
|
* 加载数据
|
|
@@ -490,31 +501,31 @@ var View = class extends BaseModel {
|
|
|
490
501
|
throw new Error("not implemented");
|
|
491
502
|
}
|
|
492
503
|
};
|
|
493
|
-
|
|
504
|
+
_a24 = IMPL_KEY;
|
|
494
505
|
/**
|
|
495
506
|
* @internal
|
|
496
507
|
*/
|
|
497
|
-
View[
|
|
508
|
+
View[_a24] = "view";
|
|
498
509
|
|
|
499
510
|
// src/features/CustomComponent.ts
|
|
500
|
-
var
|
|
511
|
+
var _a25;
|
|
501
512
|
var CustomComponent = class extends BaseModel {
|
|
502
513
|
};
|
|
503
|
-
|
|
514
|
+
_a25 = IMPL_KEY;
|
|
504
515
|
/**
|
|
505
516
|
* @internal
|
|
506
517
|
*/
|
|
507
|
-
CustomComponent[
|
|
518
|
+
CustomComponent[_a25] = "customComponent";
|
|
508
519
|
|
|
509
520
|
// src/features/CustomField.ts
|
|
510
|
-
var
|
|
521
|
+
var _a26;
|
|
511
522
|
var CustomField = class extends BaseModel {
|
|
512
523
|
};
|
|
513
|
-
|
|
524
|
+
_a26 = IMPL_KEY;
|
|
514
525
|
/**
|
|
515
526
|
* @internal
|
|
516
527
|
*/
|
|
517
|
-
CustomField[
|
|
528
|
+
CustomField[_a26] = "customField";
|
|
518
529
|
|
|
519
530
|
// src/client.ts
|
|
520
531
|
function getImplClass(decl, impls) {
|
|
@@ -552,6 +563,13 @@ var _SDKClient = class {
|
|
|
552
563
|
get button() {
|
|
553
564
|
return getImplValue(Button, this._meegoBizHub);
|
|
554
565
|
}
|
|
566
|
+
/**
|
|
567
|
+
* 脚本容器特有能力
|
|
568
|
+
* only 2.0
|
|
569
|
+
*/
|
|
570
|
+
get script() {
|
|
571
|
+
return getImplValue(Script, this._meegoBizHub);
|
|
572
|
+
}
|
|
555
573
|
/**
|
|
556
574
|
* 配置点位容器特有能力
|
|
557
575
|
* only 2.0
|
|
@@ -715,7 +733,7 @@ var SDKClient = _SDKClient;
|
|
|
715
733
|
/**
|
|
716
734
|
* SDK 版本号
|
|
717
735
|
*/
|
|
718
|
-
SDKClient.version = "2.0.16-alpha.
|
|
736
|
+
SDKClient.version = "2.0.16-alpha.4";
|
|
719
737
|
|
|
720
738
|
// src/types/biz.ts
|
|
721
739
|
var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
|
|
@@ -919,6 +937,7 @@ var src_default = SDKClient;
|
|
|
919
937
|
Page,
|
|
920
938
|
RichTextEditor,
|
|
921
939
|
SDKClient,
|
|
940
|
+
Script,
|
|
922
941
|
Shared,
|
|
923
942
|
Space,
|
|
924
943
|
Storage,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1453,7 +1453,7 @@ interface ModalOpenOptions<Context> {
|
|
|
1453
1453
|
maskClosable?: boolean;
|
|
1454
1454
|
/**
|
|
1455
1455
|
* 传入 Modal 内的上下文数据
|
|
1456
|
-
* 注:传入的数据在 Modal 内是通过 sdk.
|
|
1456
|
+
* 注:传入的数据在 Modal 内是通过 sdk.Context.load().getCustomContext() 来获取的
|
|
1457
1457
|
*/
|
|
1458
1458
|
context?: Context;
|
|
1459
1459
|
/**
|
|
@@ -1900,6 +1900,32 @@ declare abstract class Page extends BaseModel {
|
|
|
1900
1900
|
abstract getContext(): Promise<PageFeatureContext>;
|
|
1901
1901
|
}
|
|
1902
1902
|
|
|
1903
|
+
/**
|
|
1904
|
+
* @public
|
|
1905
|
+
* 脚本
|
|
1906
|
+
*/
|
|
1907
|
+
declare abstract class Script extends BaseModel {
|
|
1908
|
+
/**
|
|
1909
|
+
* @internal
|
|
1910
|
+
*/
|
|
1911
|
+
protected static [IMPL_KEY]: string;
|
|
1912
|
+
/**
|
|
1913
|
+
* only web 2.0
|
|
1914
|
+
* 获取当前脚本运行环境的上下文
|
|
1915
|
+
*/
|
|
1916
|
+
abstract getContext(): Promise<ScriptFeatureContext>;
|
|
1917
|
+
/**
|
|
1918
|
+
* only web 2.0
|
|
1919
|
+
*
|
|
1920
|
+
*/
|
|
1921
|
+
abstract openButtonModal<Context>(options: ButtonModalOpenOptions<Context>): Promise<void>;
|
|
1922
|
+
/**
|
|
1923
|
+
* only web 2.0
|
|
1924
|
+
* 主动停止脚本执行
|
|
1925
|
+
*/
|
|
1926
|
+
abstract end(): Promise<void>;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1903
1929
|
/**
|
|
1904
1930
|
* @public
|
|
1905
1931
|
* 详情页
|
|
@@ -2078,6 +2104,11 @@ declare class SDKClient {
|
|
|
2078
2104
|
* only 2.0
|
|
2079
2105
|
*/
|
|
2080
2106
|
get button(): Button;
|
|
2107
|
+
/**
|
|
2108
|
+
* 脚本容器特有能力
|
|
2109
|
+
* only 2.0
|
|
2110
|
+
*/
|
|
2111
|
+
get script(): Script;
|
|
2081
2112
|
/**
|
|
2082
2113
|
* 配置点位容器特有能力
|
|
2083
2114
|
* only 2.0
|
|
@@ -2268,4 +2299,4 @@ declare class NotSupportedError extends CustomError {
|
|
|
2268
2299
|
* @packageDocumentation
|
|
2269
2300
|
*/
|
|
2270
2301
|
|
|
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 };
|
|
2302
|
+
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, Script, 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 };
|