@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/LICENSE +21 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CrowdView Inc, dba Extend
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -37052,6 +37052,8 @@ function DocxEditorViewer({
|
|
|
37052
37052
|
if (Date.now() < paginationMeasurementSuspendUntilRef.current) {
|
|
37053
37053
|
return;
|
|
37054
37054
|
}
|
|
37055
|
+
const rootElement = viewerRootRef.current;
|
|
37056
|
+
const zoomScale = rootElement ? resolveEffectiveZoomScale(rootElement) : virtualizerMeasurementScale;
|
|
37055
37057
|
const nextMeasuredHeights = {};
|
|
37056
37058
|
editor.model.nodes.forEach((node, nodeIndex) => {
|
|
37057
37059
|
if (node.type !== "table") {
|
|
@@ -37067,7 +37069,8 @@ function DocxEditorViewer({
|
|
|
37067
37069
|
if (normalizedRowIndex >= node.rows.length || !visibleRowIndexes.has(normalizedRowIndex)) {
|
|
37068
37070
|
return;
|
|
37069
37071
|
}
|
|
37070
|
-
const
|
|
37072
|
+
const documentRowHeightPx = Number.isFinite(zoomScale) && zoomScale > 0 ? rowHeightPx / zoomScale : rowHeightPx;
|
|
37073
|
+
const normalizedHeight = normalizeMeasuredTableRowHeightPx(documentRowHeightPx);
|
|
37071
37074
|
const previousHeight = measuredByRowIndex.get(normalizedRowIndex);
|
|
37072
37075
|
measuredByRowIndex.set(
|
|
37073
37076
|
normalizedRowIndex,
|
|
@@ -37196,6 +37199,7 @@ function DocxEditorViewer({
|
|
|
37196
37199
|
tableColumnWidths,
|
|
37197
37200
|
tableRowHeights,
|
|
37198
37201
|
tableDraftLayoutEpoch,
|
|
37202
|
+
virtualizerMeasurementScale,
|
|
37199
37203
|
visibleTableRowIndexesByNodeIndex
|
|
37200
37204
|
]);
|
|
37201
37205
|
const normalizeResizableHeights = React.useCallback(
|