@lark-project/js-sdk 2.0.1-dev.21 → 2.0.1-dev.22

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
@@ -51,7 +51,7 @@ _a = IMPL_KEY;
51
51
  /**
52
52
  * @internal
53
53
  */
54
- Context[_a] = "Context";
54
+ Context[_a] = "context";
55
55
 
56
56
  // src/model/Space.ts
57
57
  var _a2;
@@ -306,7 +306,7 @@ _a15 = IMPL_KEY;
306
306
  /**
307
307
  * @internal
308
308
  */
309
- ContainerModal[_a15] = "ContainerModal";
309
+ ContainerModal[_a15] = "containerModal";
310
310
 
311
311
  // src/features/Intercept.ts
312
312
  var _a16;
@@ -322,7 +322,7 @@ _a16 = IMPL_KEY;
322
322
  /**
323
323
  * @internal
324
324
  */
325
- Intercept[_a16] = "Intercept";
325
+ Intercept[_a16] = "intercept";
326
326
 
327
327
  // src/features/Control.ts
328
328
  var _a17;
@@ -338,7 +338,7 @@ _a17 = IMPL_KEY;
338
338
  /**
339
339
  * @internal
340
340
  */
341
- Control[_a17] = "Control";
341
+ Control[_a17] = "control";
342
342
 
343
343
  // src/features/Button.ts
344
344
  var _a18;
@@ -354,7 +354,71 @@ _a18 = IMPL_KEY;
354
354
  /**
355
355
  * @internal
356
356
  */
357
- Button[_a18] = "Button";
357
+ Button[_a18] = "button";
358
+
359
+ // src/features/Configuration.ts
360
+ var _a19;
361
+ var Configuration = class extends BaseModel {
362
+ /**
363
+ * 加载数据
364
+ */
365
+ static load() {
366
+ throw new Error("not implemented");
367
+ }
368
+ };
369
+ _a19 = IMPL_KEY;
370
+ /**
371
+ * @internal
372
+ */
373
+ Configuration[_a19] = "configuration";
374
+
375
+ // src/features/Page.ts
376
+ var _a20;
377
+ var Page = class extends BaseModel {
378
+ /**
379
+ * 加载数据
380
+ */
381
+ static load() {
382
+ throw new Error("not implemented");
383
+ }
384
+ };
385
+ _a20 = IMPL_KEY;
386
+ /**
387
+ * @internal
388
+ */
389
+ Page[_a20] = "page";
390
+
391
+ // src/features/Tab.ts
392
+ var _a21;
393
+ var Tab = class extends BaseModel {
394
+ /**
395
+ * 加载数据
396
+ */
397
+ static load() {
398
+ throw new Error("not implemented");
399
+ }
400
+ };
401
+ _a21 = IMPL_KEY;
402
+ /**
403
+ * @internal
404
+ */
405
+ Tab[_a21] = "tab";
406
+
407
+ // src/features/View.ts
408
+ var _a22;
409
+ var View = class extends BaseModel {
410
+ /**
411
+ * 加载数据
412
+ */
413
+ static load() {
414
+ throw new Error("not implemented");
415
+ }
416
+ };
417
+ _a22 = IMPL_KEY;
418
+ /**
419
+ * @internal
420
+ */
421
+ View[_a22] = "view";
358
422
 
359
423
  // src/client.ts
360
424
  function getImplClass(decl, impls) {
@@ -392,6 +456,34 @@ var _SDKClient = class {
392
456
  get button() {
393
457
  return getImplValue(Button, this._meegoBizHub);
394
458
  }
459
+ /**
460
+ * 配置点位容器特有能力
461
+ * only 2.0
462
+ */
463
+ get configuration() {
464
+ return getImplValue(Configuration, this._meegoBizHub);
465
+ }
466
+ /**
467
+ * 导航点位容器特有能力
468
+ * only 2.0
469
+ */
470
+ get page() {
471
+ return getImplValue(Page, this._meegoBizHub);
472
+ }
473
+ /**
474
+ * tab 点位容器特有能力
475
+ * only 2.0
476
+ */
477
+ get tab() {
478
+ return getImplValue(Tab, this._meegoBizHub);
479
+ }
480
+ /**
481
+ * 视图点位容器特有能力
482
+ * only 2.0
483
+ */
484
+ get view() {
485
+ return getImplValue(View, this._meegoBizHub);
486
+ }
395
487
  /**
396
488
  * 应用导航
397
489
  */
@@ -505,7 +597,7 @@ var SDKClient = _SDKClient;
505
597
  /**
506
598
  * SDK 版本号
507
599
  */
508
- SDKClient.version = "2.0.1-dev.21";
600
+ SDKClient.version = "2.0.1-dev.22";
509
601
 
510
602
  // src/types/biz.ts
511
603
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -658,6 +750,7 @@ export {
658
750
  Button,
659
751
  ButtonScene,
660
752
  Clipboard,
753
+ Configuration,
661
754
  ContainerModal,
662
755
  Context,
663
756
  Control,
@@ -677,12 +770,15 @@ export {
677
770
  NotFoundError,
678
771
  NotSupportedError,
679
772
  OutOfLimitError,
773
+ Page,
680
774
  RichTextEditor,
681
775
  SDKClient,
682
776
  Space,
683
777
  Storage,
778
+ Tab,
684
779
  Toast,
685
780
  Utils,
781
+ View,
686
782
  WorkItem,
687
783
  WorkItemFinder,
688
784
  WorkObject,
package/dist/lib/index.js CHANGED
@@ -53,6 +53,7 @@ __export(src_exports, {
53
53
  Button: () => Button,
54
54
  ButtonScene: () => ButtonScene,
55
55
  Clipboard: () => Clipboard,
56
+ Configuration: () => Configuration,
56
57
  ContainerModal: () => ContainerModal,
57
58
  Context: () => Context,
58
59
  Control: () => Control,
@@ -72,12 +73,15 @@ __export(src_exports, {
72
73
  NotFoundError: () => NotFoundError,
73
74
  NotSupportedError: () => NotSupportedError,
74
75
  OutOfLimitError: () => OutOfLimitError,
76
+ Page: () => Page,
75
77
  RichTextEditor: () => RichTextEditor,
76
78
  SDKClient: () => SDKClient,
77
79
  Space: () => Space,
78
80
  Storage: () => Storage,
81
+ Tab: () => Tab,
79
82
  Toast: () => Toast,
80
83
  Utils: () => Utils,
84
+ View: () => View,
81
85
  WorkItem: () => WorkItem,
82
86
  WorkItemFinder: () => WorkItemFinder,
83
87
  WorkObject: () => WorkObject,
@@ -108,7 +112,7 @@ _a = IMPL_KEY;
108
112
  /**
109
113
  * @internal
110
114
  */
111
- Context[_a] = "Context";
115
+ Context[_a] = "context";
112
116
 
113
117
  // src/model/Space.ts
114
118
  var _a2;
@@ -363,7 +367,7 @@ _a15 = IMPL_KEY;
363
367
  /**
364
368
  * @internal
365
369
  */
366
- ContainerModal[_a15] = "ContainerModal";
370
+ ContainerModal[_a15] = "containerModal";
367
371
 
368
372
  // src/features/Intercept.ts
369
373
  var _a16;
@@ -379,7 +383,7 @@ _a16 = IMPL_KEY;
379
383
  /**
380
384
  * @internal
381
385
  */
382
- Intercept[_a16] = "Intercept";
386
+ Intercept[_a16] = "intercept";
383
387
 
384
388
  // src/features/Control.ts
385
389
  var _a17;
@@ -395,7 +399,7 @@ _a17 = IMPL_KEY;
395
399
  /**
396
400
  * @internal
397
401
  */
398
- Control[_a17] = "Control";
402
+ Control[_a17] = "control";
399
403
 
400
404
  // src/features/Button.ts
401
405
  var _a18;
@@ -411,7 +415,71 @@ _a18 = IMPL_KEY;
411
415
  /**
412
416
  * @internal
413
417
  */
414
- Button[_a18] = "Button";
418
+ Button[_a18] = "button";
419
+
420
+ // src/features/Configuration.ts
421
+ var _a19;
422
+ var Configuration = class extends BaseModel {
423
+ /**
424
+ * 加载数据
425
+ */
426
+ static load() {
427
+ throw new Error("not implemented");
428
+ }
429
+ };
430
+ _a19 = IMPL_KEY;
431
+ /**
432
+ * @internal
433
+ */
434
+ Configuration[_a19] = "configuration";
435
+
436
+ // src/features/Page.ts
437
+ var _a20;
438
+ var Page = class extends BaseModel {
439
+ /**
440
+ * 加载数据
441
+ */
442
+ static load() {
443
+ throw new Error("not implemented");
444
+ }
445
+ };
446
+ _a20 = IMPL_KEY;
447
+ /**
448
+ * @internal
449
+ */
450
+ Page[_a20] = "page";
451
+
452
+ // src/features/Tab.ts
453
+ var _a21;
454
+ var Tab = class extends BaseModel {
455
+ /**
456
+ * 加载数据
457
+ */
458
+ static load() {
459
+ throw new Error("not implemented");
460
+ }
461
+ };
462
+ _a21 = IMPL_KEY;
463
+ /**
464
+ * @internal
465
+ */
466
+ Tab[_a21] = "tab";
467
+
468
+ // src/features/View.ts
469
+ var _a22;
470
+ var View = class extends BaseModel {
471
+ /**
472
+ * 加载数据
473
+ */
474
+ static load() {
475
+ throw new Error("not implemented");
476
+ }
477
+ };
478
+ _a22 = IMPL_KEY;
479
+ /**
480
+ * @internal
481
+ */
482
+ View[_a22] = "view";
415
483
 
416
484
  // src/client.ts
417
485
  function getImplClass(decl, impls) {
@@ -449,6 +517,34 @@ var _SDKClient = class {
449
517
  get button() {
450
518
  return getImplValue(Button, this._meegoBizHub);
451
519
  }
520
+ /**
521
+ * 配置点位容器特有能力
522
+ * only 2.0
523
+ */
524
+ get configuration() {
525
+ return getImplValue(Configuration, this._meegoBizHub);
526
+ }
527
+ /**
528
+ * 导航点位容器特有能力
529
+ * only 2.0
530
+ */
531
+ get page() {
532
+ return getImplValue(Page, this._meegoBizHub);
533
+ }
534
+ /**
535
+ * tab 点位容器特有能力
536
+ * only 2.0
537
+ */
538
+ get tab() {
539
+ return getImplValue(Tab, this._meegoBizHub);
540
+ }
541
+ /**
542
+ * 视图点位容器特有能力
543
+ * only 2.0
544
+ */
545
+ get view() {
546
+ return getImplValue(View, this._meegoBizHub);
547
+ }
452
548
  /**
453
549
  * 应用导航
454
550
  */
@@ -562,7 +658,7 @@ var SDKClient = _SDKClient;
562
658
  /**
563
659
  * SDK 版本号
564
660
  */
565
- SDKClient.version = "2.0.1-dev.21";
661
+ SDKClient.version = "2.0.1-dev.22";
566
662
 
567
663
  // src/types/biz.ts
568
664
  var AttributeType = /* @__PURE__ */ ((AttributeType2) => {
@@ -716,6 +812,7 @@ var src_default = SDKClient;
716
812
  Button,
717
813
  ButtonScene,
718
814
  Clipboard,
815
+ Configuration,
719
816
  ContainerModal,
720
817
  Context,
721
818
  Control,
@@ -735,12 +832,15 @@ var src_default = SDKClient;
735
832
  NotFoundError,
736
833
  NotSupportedError,
737
834
  OutOfLimitError,
835
+ Page,
738
836
  RichTextEditor,
739
837
  SDKClient,
740
838
  Space,
741
839
  Storage,
840
+ Tab,
742
841
  Toast,
743
842
  Utils,
843
+ View,
744
844
  WorkItem,
745
845
  WorkItemFinder,
746
846
  WorkObject
@@ -358,6 +358,16 @@ interface CreateButtonFeatureContext {
358
358
  * 空间标识
359
359
  */
360
360
  spaceId: string;
361
+ /**
362
+ * 工作项类型标识
363
+ * 适用场景:新建按钮出现在视图页时,该字段才有数据
364
+ */
365
+ workObjectId?: string;
366
+ /**
367
+ * 视图标识
368
+ * 适用场景:新建按钮出现在视图页时,该字段才有数据
369
+ */
370
+ viewId?: string;
361
371
  }
362
372
  /**
363
373
  * 按钮构成
@@ -373,6 +383,15 @@ interface PageFeatureContext {
373
383
  */
374
384
  spaceId: string;
375
385
  }
386
+ /**
387
+ * 配置页面构成
388
+ */
389
+ interface ConfigurationFeatureContext {
390
+ /**
391
+ * 空间标识
392
+ */
393
+ spaceId: string;
394
+ }
376
395
  /**
377
396
  * 详情页 Tab 构成
378
397
  * 工作项详情页中的 Tab 页面
@@ -388,6 +407,7 @@ interface TabFeatureContext {
388
407
  workObjectId: string;
389
408
  /**
390
409
  * 工作项实例唯一标识
410
+ * 适用场景:仅在工作项实例场景下,该字段才有数据,在工作项配置侧该字段为空
391
411
  */
392
412
  workItemId: number;
393
413
  }
@@ -432,6 +452,11 @@ interface ControlFeatureContext {
432
452
  * 详情页可能为空,不推荐强依赖 UUID 读取自有数据
433
453
  */
434
454
  UUID?: string;
455
+ /**
456
+ * 当前节点标识
457
+ * 适用场景:详情页为节点流时,且当前控件位于节点表单内,该字段才有数据
458
+ */
459
+ nodeId?: string;
435
460
  }
436
461
  /**
437
462
  * 拦截事件类型
@@ -1354,6 +1379,82 @@ declare abstract class Button extends BaseModel {
1354
1379
  abstract getContext(): Promise<ButtonFeatureContext>;
1355
1380
  }
1356
1381
 
1382
+ /**
1383
+ * @public
1384
+ * 控件
1385
+ */
1386
+ declare abstract class Configuration extends BaseModel {
1387
+ /**
1388
+ * @internal
1389
+ */
1390
+ protected static [IMPL_KEY]: string;
1391
+ /**
1392
+ * 加载数据
1393
+ */
1394
+ static load(): Promise<Configuration>;
1395
+ /**
1396
+ * 获取当前配置点位的上下文
1397
+ */
1398
+ abstract getContext(): Promise<ConfigurationFeatureContext>;
1399
+ }
1400
+
1401
+ /**
1402
+ * @public
1403
+ * 控件
1404
+ */
1405
+ declare abstract class Page extends BaseModel {
1406
+ /**
1407
+ * @internal
1408
+ */
1409
+ protected static [IMPL_KEY]: string;
1410
+ /**
1411
+ * 加载数据
1412
+ */
1413
+ static load(): Promise<Page>;
1414
+ /**
1415
+ * 获取当前内嵌页面的上下文
1416
+ */
1417
+ abstract getContext(): Promise<PageFeatureContext>;
1418
+ }
1419
+
1420
+ /**
1421
+ * @public
1422
+ * 控件
1423
+ */
1424
+ declare abstract class Tab extends BaseModel {
1425
+ /**
1426
+ * @internal
1427
+ */
1428
+ protected static [IMPL_KEY]: string;
1429
+ /**
1430
+ * 加载数据
1431
+ */
1432
+ static load(): Promise<Tab>;
1433
+ /**
1434
+ * 获取当前详情页 Tab 的上下文
1435
+ */
1436
+ abstract getContext(): Promise<TabFeatureContext>;
1437
+ }
1438
+
1439
+ /**
1440
+ * @public
1441
+ * 控件
1442
+ */
1443
+ declare abstract class View extends BaseModel {
1444
+ /**
1445
+ * @internal
1446
+ */
1447
+ protected static [IMPL_KEY]: string;
1448
+ /**
1449
+ * 加载数据
1450
+ */
1451
+ static load(): Promise<View>;
1452
+ /**
1453
+ * 获取当前视图的上下文
1454
+ */
1455
+ abstract getContext(): Promise<ViewFeatureContext>;
1456
+ }
1457
+
1357
1458
  /**
1358
1459
  * @public
1359
1460
  * SDKClient 的配置项
@@ -1391,6 +1492,26 @@ declare class SDKClient {
1391
1492
  * only 2.0
1392
1493
  */
1393
1494
  get button(): Button;
1495
+ /**
1496
+ * 配置点位容器特有能力
1497
+ * only 2.0
1498
+ */
1499
+ get configuration(): Configuration;
1500
+ /**
1501
+ * 导航点位容器特有能力
1502
+ * only 2.0
1503
+ */
1504
+ get page(): Page;
1505
+ /**
1506
+ * tab 点位容器特有能力
1507
+ * only 2.0
1508
+ */
1509
+ get tab(): Tab;
1510
+ /**
1511
+ * 视图点位容器特有能力
1512
+ * only 2.0
1513
+ */
1514
+ get view(): View;
1394
1515
  /**
1395
1516
  * 应用导航
1396
1517
  */
@@ -1542,4 +1663,4 @@ declare class NotSupportedError extends CustomError {
1542
1663
  * @packageDocumentation
1543
1664
  */
1544
1665
 
1545
- export { ActionSheet, ActionSheetOptions, AttributeType, BizLine, BriefField, BriefNode, BriefSpace, BriefTemplate, BriefView, BriefWorkItem, BriefWorkObject, Button, ButtonFeatureContext, ButtonScene, Clipboard, ColorScheme, 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, OutOfLimitError, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Space, Storage, TabFeatureContext, Toast, ToastOptions, User, Utils, ViewFeatureContext, WorkItem, WorkItemButtonFeatureContext, WorkItemCreateFormPreset, WorkItemFinder, WorkItemFinderOptions, WorkObject, SDKClient as default, unwatch };
1666
+ 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, OutOfLimitError, Page, PageFeatureContext, RichTextEditor, RichTextEditorContent, RichTextEditorOptions, Role, RoleOwners, SDKClient, SDKClientOptions, Space, Storage, Tab, TabFeatureContext, Toast, ToastOptions, User, Utils, View, ViewFeatureContext, 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.1-dev.21",
3
+ "version": "2.0.1-dev.22",
4
4
  "runtimeMinVersions": {
5
5
  "web": "2.1.0",
6
6
  "mobile": "1.1.0"