@fileverse-dev/dsheet 2.0.36-rtc-7 → 2.0.36-rtc-8
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/utils/remote-apply-guard.d.ts +19 -0
- package/dist/{index-Dq54VFUh.js → index-CpskXdSI.js} +8519 -8309
- package/dist/index.es.js +1 -1
- package/dist/sheet-engine/core/index.d.ts +1 -1
- package/dist/sheet-engine/core/modules/filter.d.ts +13 -0
- package/dist/sheet-engine/core/modules/index.d.ts +1 -1
- package/dist/sheet-engine/react/components/Workbook/api.d.ts +9 -0
- package/dist/sheet-engine/react/components/Workbook/index.d.ts +9 -0
- package/dist/style.css +1 -1
- package/dist/{use-xlsx-import-impl-CP-tIYuH.js → use-xlsx-import-impl-Cu-q8lC5.js} +1 -1
- package/dist/{xlsx-export-impl-C8BP0VU-.js → xlsx-export-impl-CRw27cg1.js} +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Scoped guard for RTC remote → local apply.
|
|
5
|
+
*
|
|
6
|
+
* `remoteUpdateRef` used to stay true for seconds (holdRemoteApplyLock), which
|
|
7
|
+
* blocked real user metadata writes via guardRemoteEcho. Depth tracks only the
|
|
8
|
+
* synchronous remote-apply window (plus one paint for structural remounts).
|
|
9
|
+
*/
|
|
10
|
+
export type RemoteApplyGuardRefs = {
|
|
11
|
+
remoteApplyDepthRef: MutableRefObject<number>;
|
|
12
|
+
remoteUpdateRef: MutableRefObject<boolean>;
|
|
13
|
+
};
|
|
14
|
+
export declare function syncRemoteUpdateFlag(refs: RemoteApplyGuardRefs): void;
|
|
15
|
+
export declare function beginRemoteApply(refs: RemoteApplyGuardRefs): void;
|
|
16
|
+
export declare function endRemoteApply(refs: RemoteApplyGuardRefs): void;
|
|
17
|
+
export declare function runUnderRemoteApply(refs: RemoteApplyGuardRefs, fn: () => void): void;
|
|
18
|
+
/** End after Workbook remount hooks have flushed (2 rAF ≈ one paint). */
|
|
19
|
+
export declare function endRemoteApplyAfterPaint(refs: RemoteApplyGuardRefs): void;
|