Skip to content

armgit / ui

Public Imported from GitHub
0
TypeScript

Upgrade react-docx to 0.8.2

Andrew Luo1d9e8c0edd5c
diff --git a/apps/v4/content/docs/components/docx-editor.mdx b/apps/v4/content/docs/components/docx-editor.mdx
index 156d313..bf0b1cb 100644
--- a/apps/v4/content/docs/components/docx-editor.mdx
+++ b/apps/v4/content/docs/components/docx-editor.mdx
@@ -34,7 +34,7 @@ npx shadcn@latest add @extend/docx-editor
<Step>Install the following dependencies:</Step>
```bash
-npm install @base-ui/react@^1.4.1 @extend-ai/react-docx@^0.8.1 @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6
+npm install @base-ui/react@^1.4.1 @extend-ai/react-docx@^0.8.2 @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6
```
<Step>
diff --git a/apps/v4/content/docs/components/docx-viewer.mdx b/apps/v4/content/docs/components/docx-viewer.mdx
index f4b22d0..04effb8 100644
--- a/apps/v4/content/docs/components/docx-viewer.mdx
+++ b/apps/v4/content/docs/components/docx-viewer.mdx
@@ -34,7 +34,7 @@ npx shadcn@latest add @extend/docx-viewer
<Step>Install the following dependencies:</Step>
```bash
-npm install @extend-ai/react-docx@^0.8.1 @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6
+npm install @extend-ai/react-docx@^0.8.2 @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6
```
<Step>Copy and paste the following code into your project.</Step>
diff --git a/apps/v4/package.json b/apps/v4/package.json
index ea7ffb8..c3c03b8 100644
--- a/apps/v4/package.json
+++ b/apps/v4/package.json
@@ -36,7 +36,7 @@
"@embedpdf/plugin-tiling": "^2.14.4",
"@embedpdf/plugin-viewport": "^2.14.4",
"@embedpdf/plugin-zoom": "^2.14.4",
- "@extend-ai/react-docx": "0.8.1",
+ "@extend-ai/react-docx": "0.8.2",
"@extend-ai/react-pptx": "0.1.2",
"@extend-ai/react-xlsx": "0.16.1",
"@glideapps/glide-data-grid": "6.0.4-alpha24",
diff --git a/apps/v4/registry.json b/apps/v4/registry.json
index 9268e01..051c67b 100644
--- a/apps/v4/registry.json
+++ b/apps/v4/registry.json
@@ -696,7 +696,7 @@
"title": "DOCX Viewer",
"description": "A DOCX viewer with upload, zoom, theme controls, and read-only rendering.",
"dependencies": [
- "@extend-ai/react-docx@^0.8.1",
+ "@extend-ai/react-docx@^0.8.2",
"@hugeicons/core-free-icons@^4.2.0",
"@hugeicons/react@^1.1.6",
"@tanstack/react-virtual@^3.13.12"
@@ -737,7 +737,7 @@
"description": "An experimental DOCX editor with a Word-style toolbar, page thumbnails, import, export, and live document mutation.",
"dependencies": [
"@base-ui/react@^1.4.1",
- "@extend-ai/react-docx@^0.8.1",
+ "@extend-ai/react-docx@^0.8.2",
"@hugeicons/core-free-icons@^4.2.0",
"@hugeicons/react@^1.1.6"
],
diff --git a/package.json b/package.json
index faa5da0..bf9cd5f 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,7 @@
"@types/react-dom": "19.2.2"
},
"patchedDependencies": {
- "@extend-ai/[email protected]": "patches/@[email protected]"
+ "@extend-ai/[email protected]": "patches/@[email protected]"
}
}
}
diff --git a/patches/@[email protected] b/patches/@[email protected]
similarity index 93%
rename from patches/@[email protected]
rename to patches/@[email protected]
index bac71ac..a995576 100644
--- a/patches/@[email protected]
+++ b/patches/@[email protected]
@@ -2,7 +2,7 @@ diff --git a/dist/index.cjs b/dist/index.cjs
index d178ce37fcb41aec8ca517569f69414d3f6ecc5b..59125b216fd290c25022cc2f26624e3c9c7dcb9b 100644
--- a/dist/index.cjs
+++ b/dist/index.cjs
-@@ -28275,16 +28275,23 @@ var DocxDetachedThumbnailSurfaceRenderer = class {
+@@ -28277,16 +28277,23 @@ var DocxDetachedThumbnailSurfaceRenderer = class {
return this.waitForPageSurface(registry, pageIndex);
}
clear() {
@@ -37,7 +37,7 @@ diff --git a/dist/index.js b/dist/index.js
index 1e1315f7154e71ca09fba959a0de6022f760a9b4..7019f2e10c92a188d162953561e94521101d2ac6 100644
--- a/dist/index.js
+++ b/dist/index.js
-@@ -26838,16 +26838,23 @@ var DocxDetachedThumbnailSurfaceRenderer = class {
+@@ -26840,16 +26840,23 @@ var DocxDetachedThumbnailSurfaceRenderer = class {
return this.waitForPageSurface(registry, pageIndex);
}
clear() {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 33de643..9ba1fdf 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,9 +9,9 @@ overrides:
'@types/react-dom': 19.2.2
patchedDependencies:
- '@extend-ai/[email protected]':
- hash: iusbjzarjcxgvliwtsx7lahjxu
- path: patches/@[email protected]
+ '@extend-ai/[email protected]':
+ hash: sghmwtgnacz3j5bssq3ih4jxj4
+ path: patches/@[email protected]
importers:
@@ -78,8 +78,8 @@ importers:
specifier: ^2.14.4
version: 2.14.4(@embedpdf/[email protected]([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@embedpdf/[email protected](@embedpdf/[email protected]([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@embedpdf/[email protected](@embedpdf/[email protected]([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))(@embedpdf/[email protected](@embedpdf/[email protected]([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected])))([email protected])([email protected]([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]))([email protected]([email protected]))
'@extend-ai/react-docx':
- specifier: 0.8.1
- version: 0.8.1(patch_hash=iusbjzarjcxgvliwtsx7lahjxu)([email protected]([email protected]))([email protected])
+ specifier: 0.8.2
+ version: 0.8.2(patch_hash=sghmwtgnacz3j5bssq3ih4jxj4)([email protected]([email protected]))([email protected])
'@extend-ai/react-pptx':
specifier: 0.1.2
@@ -1219,8 +1219,8 @@ packages:
resolution: {integrity: sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@extend-ai/[email protected]':
- resolution: {integrity: sha512-pvFsbb7vkCeBMEd8D1oKDEv8G9DUoe9hkCHOQu3OkGw1idx1mMqF0PDyA8rOmc0E0RrYT7FfF7iRbOe3djSjDw==}
+ '@extend-ai/[email protected]':
+ resolution: {integrity: sha512-GXMlcl+niySj2cK7ZQNLFVHKpimXaIXN1W8jCP/1dcyVk6q7DMagHntM66aLOM2q/KtxuBj0W4EUuoIwGNn/qg==}
peerDependencies:
react: '>=18'
react-dom: '>=18'
@@ -6431,7 +6431,7 @@ snapshots:
'@eslint/core': 0.13.0
levn: 0.4.1
- '@extend-ai/[email protected](patch_hash=iusbjzarjcxgvliwtsx7lahjxu)([email protected]([email protected]))([email protected])':
+ '@extend-ai/[email protected](patch_hash=sghmwtgnacz3j5bssq3ih4jxj4)([email protected]([email protected]))([email protected])':
dependencies:
'@chenglou/pretext': 0.0.8
'@tanstack/react-virtual': 3.13.26([email protected]([email protected]))([email protected])