@mescius/spread-sheets-collaboration-client 18.2.4 → 19.0.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/README.md +1 -1
- package/dist/index.d.ts +105 -3
- package/dist/index.js +12 -1
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -246,6 +246,10 @@ export enum OpType {
|
|
|
246
246
|
* clearFormatStringName
|
|
247
247
|
*/
|
|
248
248
|
clearFormatStringName = 63,
|
|
249
|
+
/**
|
|
250
|
+
* setSelectionPolicyAndUnit
|
|
251
|
+
*/
|
|
252
|
+
setSelectionPolicyAndUnit = 64,
|
|
249
253
|
/**
|
|
250
254
|
* addExternalReference
|
|
251
255
|
*/
|
|
@@ -398,6 +402,10 @@ export enum OpType {
|
|
|
398
402
|
* updateChart
|
|
399
403
|
*/
|
|
400
404
|
updateChart = 222,
|
|
405
|
+
/**
|
|
406
|
+
* preserveUnsupportedChart
|
|
407
|
+
*/
|
|
408
|
+
preserveUnsupportedChart = 223,
|
|
401
409
|
/**
|
|
402
410
|
* addPivotCache
|
|
403
411
|
*/
|
|
@@ -442,6 +450,10 @@ export enum OpType {
|
|
|
442
450
|
* removePivotField
|
|
443
451
|
*/
|
|
444
452
|
removePivotField = 276,
|
|
453
|
+
/**
|
|
454
|
+
* updatePivotTableOptions
|
|
455
|
+
*/
|
|
456
|
+
updatePivotTableOptions = 277,
|
|
445
457
|
/**
|
|
446
458
|
* addRule
|
|
447
459
|
*/
|
|
@@ -562,6 +574,58 @@ export enum OpType {
|
|
|
562
574
|
* setPrintInfoOption
|
|
563
575
|
*/
|
|
564
576
|
setPrintInfoOption = 382,
|
|
577
|
+
/**
|
|
578
|
+
* addTableItemSlicerCache
|
|
579
|
+
*/
|
|
580
|
+
addTableItemSlicerCache = 391,
|
|
581
|
+
/**
|
|
582
|
+
* updateTableItemSlicerCache
|
|
583
|
+
*/
|
|
584
|
+
updateTableItemSlicerCacheProperty = 392,
|
|
585
|
+
/**
|
|
586
|
+
* removeTableItemSlicerCache
|
|
587
|
+
*/
|
|
588
|
+
removeTableItemSlicerCache = 393,
|
|
589
|
+
/**
|
|
590
|
+
* addPivotSlicerCache
|
|
591
|
+
*/
|
|
592
|
+
addPivotSlicerCache = 394,
|
|
593
|
+
/**
|
|
594
|
+
* updatePivotSlicerCache
|
|
595
|
+
*/
|
|
596
|
+
updatePivotSlicerCacheProperty = 395,
|
|
597
|
+
/**
|
|
598
|
+
* removePivotSlicerCache
|
|
599
|
+
*/
|
|
600
|
+
removePivotSlicerCache = 396,
|
|
601
|
+
/**
|
|
602
|
+
* updateSlicerProperty
|
|
603
|
+
*/
|
|
604
|
+
updateSlicerProperty = 397,
|
|
605
|
+
/**
|
|
606
|
+
* addThreadedComment
|
|
607
|
+
*/
|
|
608
|
+
addThreadedComment = 410,
|
|
609
|
+
/**
|
|
610
|
+
* updateThreadedComment
|
|
611
|
+
*/
|
|
612
|
+
updateThreadedComment = 411,
|
|
613
|
+
/**
|
|
614
|
+
* removeThreadedComment
|
|
615
|
+
*/
|
|
616
|
+
removeThreadedComment = 412,
|
|
617
|
+
/**
|
|
618
|
+
* addThreadedCommentReply
|
|
619
|
+
*/
|
|
620
|
+
addThreadedCommentReply = 413,
|
|
621
|
+
/**
|
|
622
|
+
* updateThreadedCommentReply
|
|
623
|
+
*/
|
|
624
|
+
updateThreadedCommentReply = 414,
|
|
625
|
+
/**
|
|
626
|
+
* removeThreadedCommentReply
|
|
627
|
+
*/
|
|
628
|
+
removeThreadedCommentReply = 415,
|
|
565
629
|
}
|
|
566
630
|
|
|
567
631
|
/**
|
|
@@ -627,23 +691,61 @@ export interface IPermission {
|
|
|
627
691
|
}
|
|
628
692
|
|
|
629
693
|
/**
|
|
630
|
-
*
|
|
694
|
+
* @typedef IImageSource
|
|
695
|
+
* @type {{kind: 'url';src: string;} | {kind: 'data';dataUrl: string;} | {kind: 'blobUrl';blobUrl: string;} | {kind: 'blob';blob: Blob;} | {kind: 'file';file: File;}
|
|
696
|
+
*/
|
|
697
|
+
/**
|
|
698
|
+
{
|
|
699
|
+
kind: 'url';
|
|
700
|
+
src: string;
|
|
701
|
+
} | {
|
|
702
|
+
kind: 'data';
|
|
703
|
+
dataUrl: string;
|
|
704
|
+
} | {
|
|
705
|
+
kind: 'blobUrl';
|
|
706
|
+
blobUrl: string;
|
|
707
|
+
} | {
|
|
708
|
+
kind: 'blob';
|
|
709
|
+
blob: Blob;
|
|
710
|
+
} | {
|
|
711
|
+
kind: 'file';
|
|
712
|
+
file: File;
|
|
713
|
+
}
|
|
714
|
+
*/
|
|
715
|
+
export type IImageSource =
|
|
716
|
+
| { kind: 'url'; src: string }
|
|
717
|
+
| { kind: 'data'; dataUrl: string }
|
|
718
|
+
| { kind: 'blobUrl'; blobUrl: string }
|
|
719
|
+
| { kind: 'blob'; blob: Blob }
|
|
720
|
+
| { kind: 'file'; file: File };
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Represents a user in the collaboration system. It comes from GC.Spread.Common.IUser
|
|
631
724
|
*/
|
|
632
725
|
export interface IUser {
|
|
633
726
|
id: string;
|
|
634
727
|
name: string;
|
|
728
|
+
avatar?: IImageSource;
|
|
635
729
|
color?: string;
|
|
730
|
+
email?: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Represents a user with associated permission settings.
|
|
735
|
+
* Extends IUser with document permission information.
|
|
736
|
+
*/
|
|
737
|
+
export interface IUserWithPermission extends IUser {
|
|
636
738
|
permission?: IPermission;
|
|
637
739
|
}
|
|
638
740
|
/**
|
|
639
741
|
* Binds a workbook to a presence instance.
|
|
640
742
|
* @param {any} workbook - The instance of GC.Spread.Sheets.Workbook.
|
|
641
743
|
* @param {Presence<IPresence>} presence - The presence instance.
|
|
642
|
-
* @param {
|
|
744
|
+
* @param {IUserWithPermission} user - The user information.
|
|
643
745
|
* @param {IBindPresenceOptions} [options] - Optional binding options.
|
|
644
746
|
* @returns {Promise<void>} A promise that resolves when the binding is complete.
|
|
645
747
|
*/
|
|
646
|
-
export declare function bindPresence(workbook: any, presence: Presence<IPresence>, user:
|
|
748
|
+
export declare function bindPresence(workbook: any, presence: Presence<IPresence>, user: IUserWithPermission, options?: IBindPresenceOptions): Promise<void>;
|
|
647
749
|
/**
|
|
648
750
|
* Options for binding presence to a workbook.
|
|
649
751
|
*/
|