@fileverse-dev/dsheet 4.0.5-edit-mode-13 → 4.0.5-edit-mode-14

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/index.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { C as s, d as o, f as t, S as r, g as l, h as d, j as n, T as i, k as S, l as c, n as h, o as m, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as I, D as L, E as w, F as A, G as y, H as T, I as v, J as M, K as D, L as b, M as k, N as V } from "./index-SD570TY0.js";
1
+ import { C as s, d as o, f as t, S as r, g as l, h as d, j as n, T as i, k as S, l as c, n as h, o as m, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as I, D as L, E as w, F as A, G as y, H as T, I as v, J as M, K as D, L as b, M as k, N as V } from "./index-B0wwW6wY.js";
2
2
  import { cw as G, cx as K, cy as P, cE as U, bq as X, e as _, f as j, l as B, a as H, dg as O, dh as q, b9 as J, di as N, dj as Y, dn as Z, dp as Q, dr as W, I as $, dG as ee, ed as ae, b2 as se } from "./executeStringFunction-B6fhDKyN.js";
3
3
  import { FLVURL as te } from "@fileverse-dev/formulajs";
4
- import { E as le, S as de } from "./constants-CRFfbkoQ.js";
4
+ import { E as le, S as de } from "./constants-DUN0oTKe.js";
5
5
  export {
6
6
  s as CommentAction,
7
7
  o as CommentCellUI,
@@ -6,6 +6,8 @@ export interface AwarenessIdentity {
6
6
  isEns: string | boolean;
7
7
  }
8
8
  export declare const PLACEHOLDER_COLOR = "#9CA3AF";
9
+ export declare const COLLAB_PRESENCE_COLORS: readonly ["#30bced", "#6eeb83", "#fa69d1", "#ecd444", "#ee6352", "#db3041", "#0ad7f2", "#1bff39"];
9
10
  export declare function buildIdentityMap(states: Map<number, Record<string, unknown>>): Map<string, AwarenessIdentity>;
10
11
  export declare function mergePresence(roomMembers: string[], identityBySocketId: Map<string, AwarenessIdentity>): CollabUser[];
12
+ export declare function assignSessionColors(collaborators: CollabUser[], colorByName: Map<string, string>): CollabUser[];
11
13
  export declare function identitySignature(roomMembers: string[], identityBySocketId: Map<string, AwarenessIdentity>): string;
@@ -62,6 +62,7 @@ export declare class SocketClient {
62
62
  private roomId;
63
63
  roomMembers: string[];
64
64
  private _lastPresenceSignature;
65
+ private _presenceColorByName;
65
66
  private _onPresenceChange?;
66
67
  private _pendingAwarenessUpdates;
67
68
  private collaborationKeyPair;
@@ -1,10 +1,10 @@
1
1
  import * as BZ from "yjs";
2
- import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-SD570TY0.js";
2
+ import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-B0wwW6wY.js";
3
3
  import { g as sl } from "./executeStringFunction-B6fhDKyN.js";
4
4
  import { Workbook as al } from "exceljs";
5
5
  import Kl from "luckyexcel";
6
- import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-C6xGZ4JM.js";
7
- import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-23YzHCIr.js";
6
+ import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-_Q0FyvCB.js";
7
+ import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-_1BMhmjt.js";
8
8
  import { toast as fZ } from "@fileverse/ui";
9
9
  var Zl = { exports: {} };
10
10
  (function(c) {
@@ -1,5 +1,5 @@
1
1
  import { i as w } from "./executeStringFunction-B6fhDKyN.js";
2
- import { J as x } from "./xlsx-hyperlink-inline-C6xGZ4JM.js";
2
+ import { J as x } from "./xlsx-hyperlink-inline-_Q0FyvCB.js";
3
3
  function g(o) {
4
4
  return o.startsWith("_xlnm.");
5
5
  }
@@ -1,9 +1,9 @@
1
1
  import { utils as F, write as it } from "xlsx-js-style";
2
2
  import { Workbook as ct } from "exceljs";
3
3
  import { toast as nt } from "@fileverse/ui";
4
- import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-C6xGZ4JM.js";
4
+ import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-_Q0FyvCB.js";
5
5
  import { b as dt } from "./executeStringFunction-B6fhDKyN.js";
6
- import { e as ht } from "./index-SD570TY0.js";
6
+ import { e as ht } from "./index-B0wwW6wY.js";
7
7
  const mt = {
8
8
  1: "thin",
9
9
  2: "hair",
@@ -806,7 +806,7 @@ const Y = (e) => {
806
806
  D
807
807
  );
808
808
  });
809
- const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-23YzHCIr.js");
809
+ const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-_1BMhmjt.js");
810
810
  ot(
811
811
  P,
812
812
  (T = (a = (d = e.current).getWorkbookContext) == null ? void 0 : a.call(d)) == null ? void 0 : T.definedNames,
@@ -1,5 +1,5 @@
1
1
  import { g as Rt, c as yt } from "./executeStringFunction-B6fhDKyN.js";
2
- import { c as wt } from "./index-SD570TY0.js";
2
+ import { c as wt } from "./index-B0wwW6wY.js";
3
3
  function jt(J, nt) {
4
4
  const g = J.getImages();
5
5
  if (!g.length) return [];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "4.0.5-edit-mode-13",
5
+ "version": "4.0.5-edit-mode-14",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {