@fileverse-dev/dsheet 2.0.31-a → 2.0.32-commentBox-ux-1

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,4 +1,4 @@
1
- import { S as s, i as l, T as o, a as r, c as t, b as n, h as d, d as h, e as S, f as i, g as c, j as m, k as p, l as C, n as E, o as F, p as x, q as g, r as f, s as L, t as R, u, v as T, w as b } from "./index-C5KtMCEt.js";
1
+ import { S as s, i as l, T as o, a as r, c as t, b as n, h as d, d as h, e as S, f as i, g as c, j as m, k as p, l as C, n as E, o as F, p as x, q as g, r as f, s as L, t as R, u, v as T, w as b } from "./index-D1ggrCYo.js";
2
2
  import { bJ as I, bK as w, bL as V, bP as k, ba as P, e as X, f as _, h as v, a as y, ca as z, ap as M, ch as U } from "./executeStringFunction-BuxBjU-d.js";
3
3
  import { FLVURL as G } from "@fileverse-dev/formulajs";
4
4
  import { E as J, S as K } from "./constants-CnhOvijG.js";
@@ -97,10 +97,23 @@ export type Settings = {
97
97
  row?: number;
98
98
  addRows?: number;
99
99
  allowEdit?: boolean;
100
+ /**
101
+ * When `true`, comment indicators/UI are allowed even in read-only contexts.
102
+ * Host apps may still pass `commentData` for previews; the engine should
103
+ * reconcile markers idempotently when enabled.
104
+ */
105
+ allowComments?: boolean;
100
106
  showToolbar?: boolean;
101
107
  showFormulaBar?: boolean;
102
108
  showSheetTabs?: boolean;
103
109
  data: Sheet[];
110
+ /**
111
+ * Optional external comment-thread presence map (async). Keys are typically:
112
+ * `${sheetId}_${row}_${col}` or `${sheetIndex}_${row}_${col}`.
113
+ *
114
+ * The engine reconciles this into internal `cell.ps` marker state.
115
+ */
116
+ commentData?: Record<string, unknown>;
104
117
  config?: any;
105
118
  devicePixelRatio?: number;
106
119
  lang?: string | null;
@@ -1,6 +1,6 @@
1
1
  import { g as Ue } from "./executeStringFunction-BuxBjU-d.js";
2
2
  import * as qe from "yjs";
3
- import { m as Xe, y as Ze } from "./index-C5KtMCEt.js";
3
+ import { m as Xe, y as Ze } from "./index-D1ggrCYo.js";
4
4
  import { n as Je } from "./xlsx-hyperlink-inline-DzewAypN.js";
5
5
  import { toast as Be } from "@fileverse/ui";
6
6
  var We = { exports: {} };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "2.0.31-a",
5
+ "version": "2.0.32-commentBox-ux-1",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -105,4 +105,4 @@
105
105
  "typescript": "^5.2.2",
106
106
  "vite": "^5.0.0"
107
107
  }
108
- }
108
+ }