@mescius/spread-sheets-collaboration-client 18.1.2 → 18.1.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +21 -22
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -579,10 +579,10 @@ export enum OpType {
579
579
  export enum BrowsingMode {
580
580
  /** Allows the user to edit the document.
581
581
  */
582
- edit,
582
+ edit = 0,
583
583
  /** Restricts the user to viewing the document only.
584
584
  */
585
- view,
585
+ view = 1,
586
586
  }
587
587
 
588
588
  /**
@@ -643,22 +643,6 @@ export interface IUser {
643
643
  color?: string;
644
644
  permission?: IPermission;
645
645
  }
646
-
647
- /**
648
- * Represents selection data for a worksheet.
649
- */
650
- export interface ISelections {
651
- selections?: Range[];
652
- sheetId?: string;
653
- }
654
-
655
- /**
656
- * Represents presence information for a user.
657
- */
658
- export interface IPresence {
659
- user: IUser;
660
- status: { selections?: ISelections };
661
- }
662
646
  /**
663
647
  * Binds a workbook to a presence instance.
664
648
  * @param {any} workbook - The instance of GC.Spread.Sheets.Workbook.
@@ -683,11 +667,26 @@ export interface IBindPresenceOptions {
683
667
  */
684
668
  export declare function bind(workbook: any, doc: SharedDoc<any, IChangeSet>): Promise<void>;
685
669
  /**
686
- * Defines the interface for a worksheet.
670
+ * Represents presence information for a user.
671
+ */
672
+ export interface IPresence {
673
+ user: IUser;
674
+ status: { selections?: ISelections };
675
+ }
676
+
677
+ /**
678
+ * Represents selection data for a worksheet.
687
679
  */
688
- export interface IWorksheet {
689
- getId(): string;
690
- getSelections(): Range[];
680
+ export interface ISelections {
681
+ selections?: IRange[];
682
+ sheetId?: string;
683
+ }
684
+
685
+ export interface IRange {
686
+ row: number;
687
+ col: number;
688
+ rowCount: number;
689
+ colCount: number;
691
690
  }
692
691
 
693
692
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mescius/spread-sheets-collaboration-client",
3
- "version": "18.1.2",
3
+ "version": "18.1.3",
4
4
  "description": "SpreadJS Collaboration plugin",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,8 +21,8 @@
21
21
  "license": "Commercial",
22
22
  "dependencies": {},
23
23
  "devDependencies": {
24
- "@mescius/js-collaboration-ot-client": "18.1.2",
25
- "@mescius/js-collaboration-presence-client": "18.1.2"
24
+ "@mescius/js-collaboration-ot-client": "18.1.3",
25
+ "@mescius/js-collaboration-presence-client": "18.1.3"
26
26
  },
27
27
  "homepage": "https://developer.mescius.com/spreadjs"
28
28
  }