@dao42/d42paas-front 0.7.58 → 0.7.63
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/{editor.d.ts → DaoPaaS.d.ts} +37 -13
- package/dist/DaoPaaS.es.js +22210 -23795
- package/dist/DaoPaaS.umd.js +562 -525
- package/dist/style.css +2 -2
- package/package.json +15 -16
|
@@ -372,21 +372,21 @@ export interface Options {
|
|
|
372
372
|
/**
|
|
373
373
|
* The service worker origin
|
|
374
374
|
*/
|
|
375
|
-
serviceWorkerOrigin?: string;
|
|
375
|
+
// serviceWorkerOrigin?: string;
|
|
376
376
|
|
|
377
377
|
/**
|
|
378
378
|
*
|
|
379
379
|
* init the playground with the mode.
|
|
380
380
|
*
|
|
381
381
|
*/
|
|
382
|
-
mode?: Mode;
|
|
382
|
+
// mode?: Mode;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
385
|
*
|
|
386
386
|
* init the playground with the paasDomain.
|
|
387
387
|
*
|
|
388
388
|
*/
|
|
389
|
-
paasDomain: string;
|
|
389
|
+
// paasDomain: string;
|
|
390
390
|
|
|
391
391
|
/**
|
|
392
392
|
*
|
|
@@ -407,7 +407,7 @@ export interface Options {
|
|
|
407
407
|
* userId for the playground.
|
|
408
408
|
*
|
|
409
409
|
*/
|
|
410
|
-
userId: string;
|
|
410
|
+
// userId: string;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
*
|
|
@@ -449,7 +449,7 @@ export interface Options {
|
|
|
449
449
|
/**
|
|
450
450
|
* @deprecated to fix the issue of the playground.
|
|
451
451
|
*
|
|
452
|
-
* render?: () => TComponent[]; keyof
|
|
452
|
+
* render?: () => TComponent[]; keyof Dao_FrontType.CRDT[]
|
|
453
453
|
*/
|
|
454
454
|
}
|
|
455
455
|
|
|
@@ -497,13 +497,36 @@ export class DaoPaaS {
|
|
|
497
497
|
|
|
498
498
|
get userList(): UserInfo[];
|
|
499
499
|
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* Error listener to the application.
|
|
503
|
+
* @param The error message block
|
|
504
|
+
* @event
|
|
505
|
+
*/
|
|
506
|
+
onError?: (error: ErrorType) => void;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* Message listener to the application.
|
|
511
|
+
* @param MessageType
|
|
512
|
+
* @event
|
|
513
|
+
*/
|
|
514
|
+
onMessage?: (message: MessageType) => void;
|
|
515
|
+
|
|
500
516
|
/**
|
|
501
517
|
*
|
|
502
518
|
* Replaying method for global calling.
|
|
503
519
|
* @param {unFollowUser} args
|
|
504
520
|
*
|
|
505
521
|
*/
|
|
522
|
+
dispose(): Promise<string>;
|
|
506
523
|
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* Replaying method for global calling.
|
|
527
|
+
* @param {unFollowUser} args
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
507
530
|
unFollowUser(user: UserInfo, callback: (userInfo: UserInfo) => void): void;
|
|
508
531
|
|
|
509
532
|
/**
|
|
@@ -542,7 +565,7 @@ export class DaoPaaS {
|
|
|
542
565
|
/**
|
|
543
566
|
*
|
|
544
567
|
* async method to set Replayers.
|
|
545
|
-
* @param {keyof
|
|
568
|
+
* @param {keyof Dao_FrontType.CRDT[]} arg
|
|
546
569
|
*
|
|
547
570
|
*/
|
|
548
571
|
setReplayers(arg: string[]): void;
|
|
@@ -583,7 +606,6 @@ export class DaoPaaS {
|
|
|
583
606
|
* ```ts
|
|
584
607
|
* Dao.Editor({
|
|
585
608
|
* container: '#editor',
|
|
586
|
-
* item: 'editor',
|
|
587
609
|
* props: {...EditorProps}
|
|
588
610
|
* });
|
|
589
611
|
```
|
|
@@ -592,7 +614,7 @@ export class DaoPaaS {
|
|
|
592
614
|
*
|
|
593
615
|
*
|
|
594
616
|
*/
|
|
595
|
-
Editor(args: Component<EditorProps>): void;
|
|
617
|
+
Editor(args: Omit<Component<EditorProps>, 'item'>): void;
|
|
596
618
|
|
|
597
619
|
/**
|
|
598
620
|
*
|
|
@@ -602,7 +624,7 @@ export class DaoPaaS {
|
|
|
602
624
|
* @param Component
|
|
603
625
|
*
|
|
604
626
|
*/
|
|
605
|
-
Page(args: Component<TreeProps>): void;
|
|
627
|
+
Page(args: Omit<Component<TreeProps>, 'item'>): void;
|
|
606
628
|
|
|
607
629
|
/**
|
|
608
630
|
*
|
|
@@ -621,7 +643,7 @@ export class DaoPaaS {
|
|
|
621
643
|
* @param Component
|
|
622
644
|
*
|
|
623
645
|
*/
|
|
624
|
-
Tree(args: Component<TreeProps>): void;
|
|
646
|
+
Tree(args: Omit<Component<TreeProps>, 'item'>): void;
|
|
625
647
|
|
|
626
648
|
/**
|
|
627
649
|
*
|
|
@@ -641,7 +663,7 @@ export class DaoPaaS {
|
|
|
641
663
|
* @param Component
|
|
642
664
|
*
|
|
643
665
|
*/
|
|
644
|
-
Shell(args: Component<ConsoleOrShellProps>): void;
|
|
666
|
+
Shell(args: Omit<Component<ConsoleOrShellProps>, 'item'>): void;
|
|
645
667
|
|
|
646
668
|
/**
|
|
647
669
|
*
|
|
@@ -660,7 +682,7 @@ export class DaoPaaS {
|
|
|
660
682
|
* @param Component
|
|
661
683
|
*
|
|
662
684
|
*/
|
|
663
|
-
Browser(args: Component<BrowserProps>): void;
|
|
685
|
+
Browser(args: Omit<Component<BrowserProps>, 'item'>): void;
|
|
664
686
|
|
|
665
687
|
/**
|
|
666
688
|
*
|
|
@@ -680,5 +702,7 @@ export class DaoPaaS {
|
|
|
680
702
|
* @param Component
|
|
681
703
|
*
|
|
682
704
|
*/
|
|
683
|
-
Console(args: Component<ConsoleOrShellProps>): void;
|
|
705
|
+
Console(args: Omit<Component<ConsoleOrShellProps>, 'item'>): void;
|
|
706
|
+
|
|
707
|
+
mapRender(components: Component<ComponentType>[]): void;
|
|
684
708
|
}
|