@extend-ai/react-docx 0.6.6 → 0.6.7

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.js CHANGED
@@ -36942,6 +36942,8 @@ function DocxEditorViewer({
36942
36942
  if (Date.now() < paginationMeasurementSuspendUntilRef.current) {
36943
36943
  return;
36944
36944
  }
36945
+ const rootElement = viewerRootRef.current;
36946
+ const zoomScale = rootElement ? resolveEffectiveZoomScale(rootElement) : virtualizerMeasurementScale;
36945
36947
  const nextMeasuredHeights = {};
36946
36948
  editor.model.nodes.forEach((node, nodeIndex) => {
36947
36949
  if (node.type !== "table") {
@@ -36957,7 +36959,8 @@ function DocxEditorViewer({
36957
36959
  if (normalizedRowIndex >= node.rows.length || !visibleRowIndexes.has(normalizedRowIndex)) {
36958
36960
  return;
36959
36961
  }
36960
- const normalizedHeight = normalizeMeasuredTableRowHeightPx(rowHeightPx);
36962
+ const documentRowHeightPx = Number.isFinite(zoomScale) && zoomScale > 0 ? rowHeightPx / zoomScale : rowHeightPx;
36963
+ const normalizedHeight = normalizeMeasuredTableRowHeightPx(documentRowHeightPx);
36961
36964
  const previousHeight = measuredByRowIndex.get(normalizedRowIndex);
36962
36965
  measuredByRowIndex.set(
36963
36966
  normalizedRowIndex,
@@ -37086,6 +37089,7 @@ function DocxEditorViewer({
37086
37089
  tableColumnWidths,
37087
37090
  tableRowHeights,
37088
37091
  tableDraftLayoutEpoch,
37092
+ virtualizerMeasurementScale,
37089
37093
  visibleTableRowIndexesByNodeIndex
37090
37094
  ]);
37091
37095
  const normalizeResizableHeights = React.useCallback(