TypeScript
Update document and spreadsheet package versions
Andrew Luo97f087028a62
diff --git a/apps/v4/content/docs/components/docx-editor.mdx b/apps/v4/content/docs/components/docx-editor.mdxindex bf0b1cb..d2052fb 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.2 @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.4 @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.mdxindex 04effb8..5f94978 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.2 @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6+npm install @extend-ai/react-docx@^0.8.4 @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/content/docs/components/xlsx-editor.mdx b/apps/v4/content/docs/components/xlsx-editor.mdxindex 2bcac27..0b9aa36 100644--- a/apps/v4/content/docs/components/xlsx-editor.mdx+++ b/apps/v4/content/docs/components/xlsx-editor.mdx@@ -34,7 +34,7 @@ npx shadcn@latest add @extend/xlsx-editor<Step>Install the following dependencies:</Step>```bash-npm install @base-ui/react@^1.4.1 @extend-ai/[email protected] @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6 class-variance-authority@^0.7.1+npm install @base-ui/react@^1.4.1 @extend-ai/[email protected] @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6 class-variance-authority@^0.7.1```<Step>diff --git a/apps/v4/content/docs/components/xlsx-viewer.mdx b/apps/v4/content/docs/components/xlsx-viewer.mdxindex 2975bce..3c082c0 100644--- a/apps/v4/content/docs/components/xlsx-viewer.mdx+++ b/apps/v4/content/docs/components/xlsx-viewer.mdx@@ -34,7 +34,7 @@ npx shadcn@latest add @extend/xlsx-viewer<Step>Install the following dependencies:</Step>```bash-npm install @extend-ai/[email protected] @hugeicons/core-free-icons@^4.2.0 @hugeicons/react@^1.1.6+npm install @extend-ai/[email protected] @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.jsonindex c3c03b8..c8209fe 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.2",+ "@extend-ai/react-docx": "0.8.4","@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.jsonindex 051c67b..2a18324 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.2",+ "@extend-ai/react-docx@^0.8.4","@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.2",+ "@extend-ai/react-docx@^0.8.4","@hugeicons/core-free-icons@^4.2.0","@hugeicons/react@^1.1.6"],@@ -777,7 +777,7 @@"title": "Excel Viewer","description": "An XLSX viewer with workbook loading, thumbnails, sheet tabs, upload, zoom, and theme controls.","dependencies": [- "@extend-ai/[email protected]",+ "@extend-ai/[email protected]","@hugeicons/core-free-icons@^4.2.0","@hugeicons/react@^1.1.6"],@@ -840,7 +840,7 @@"title": "Excel Editor","description": "An experimental XLSX editor with formula input, undo and redo, sheet controls, export, and live workbook mutation.","dependencies": [- "@extend-ai/[email protected]",+ "@extend-ai/[email protected]","@hugeicons/core-free-icons@^4.2.0","@hugeicons/react@^1.1.6"],diff --git a/package.json b/package.jsonindex bf9cd5f..c1d45a3 100644--- a/package.json+++ b/package.json@@ -33,9 +33,6 @@"overrides": {"@types/react": "19.2.2","@types/react-dom": "19.2.2"- },- "patchedDependencies": {- "@extend-ai/[email protected]": "patches/@[email protected]"}}}diff --git a/patches/@[email protected] b/patches/@[email protected]deleted file mode 100644index a995576..0000000--- a/patches/@[email protected]+++ /dev/null@@ -1,70 +0,0 @@-diff --git a/dist/index.cjs b/dist/index.cjs-index d178ce37fcb41aec8ca517569f69414d3f6ecc5b..59125b216fd290c25022cc2f26624e3c9c7dcb9b 100644---- a/dist/index.cjs-+++ b/dist/index.cjs-@@ -28277,16 +28277,23 @@ var DocxDetachedThumbnailSurfaceRenderer = class {- return this.waitForPageSurface(registry, pageIndex);- }- clear() {-- if (this.root) {-- this.root.unmount();-- this.root = void 0;-- }-- if (this.host?.parentNode) {-- this.host.parentNode.removeChild(this.host);-- }-+ const root = this.root;-+ const host = this.host;-+ this.root = void 0;- this.host = void 0;- this.activePageIndex = void 0;- this.activeRenderKey = void 0;-+ const dispose = () => {-+ root?.unmount();-+ if (host?.parentNode) {-+ host.parentNode.removeChild(host);-+ }-+ };-+ if (root && typeof window !== "undefined") {-+ window.setTimeout(dispose, 0);-+ } else {-+ dispose();-+ }- }- async ensureRoot() {- if (this.root) {-diff --git a/dist/index.js b/dist/index.js-index 1e1315f7154e71ca09fba959a0de6022f760a9b4..7019f2e10c92a188d162953561e94521101d2ac6 100644---- a/dist/index.js-+++ b/dist/index.js-@@ -26840,16 +26840,23 @@ var DocxDetachedThumbnailSurfaceRenderer = class {- return this.waitForPageSurface(registry, pageIndex);- }- clear() {-- if (this.root) {-- this.root.unmount();-- this.root = void 0;-- }-- if (this.host?.parentNode) {-- this.host.parentNode.removeChild(this.host);-- }-+ const root = this.root;-+ const host = this.host;-+ this.root = void 0;- this.host = void 0;- this.activePageIndex = void 0;- this.activeRenderKey = void 0;-+ const dispose = () => {-+ root?.unmount();-+ if (host?.parentNode) {-+ host.parentNode.removeChild(host);-+ }-+ };-+ if (root && typeof window !== "undefined") {-+ window.setTimeout(dispose, 0);-+ } else {-+ dispose();-+ }- }- async ensureRoot() {- if (this.root) {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9ba1fdf..3bc9767 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -8,11 +8,6 @@ overrides:'@types/react': 19.2.2'@types/react-dom': 19.2.2-patchedDependencies:- '@extend-ai/[email protected]':- hash: sghmwtgnacz3j5bssq3ih4jxj4- path: patches/@[email protected]-importers:.:@@ -78,8 +73,8 @@ importers:specifier: ^2.14.4version: 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.2- version: 0.8.2(patch_hash=sghmwtgnacz3j5bssq3ih4jxj4)([email protected]([email protected]))([email protected])+ specifier: 0.8.4'@extend-ai/react-pptx':specifier: 0.1.2@@ -1219,8 +1214,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-GXMlcl+niySj2cK7ZQNLFVHKpimXaIXN1W8jCP/1dcyVk6q7DMagHntM66aLOM2q/KtxuBj0W4EUuoIwGNn/qg==}+ '@extend-ai/[email protected]':+ resolution: {integrity: sha512-FheeFE4J54Z2r0C05QMCQYJr1C14QBnDw0hwytN5Cqq4HtWcsMQBgEDaHphLI+kwSg3dCrDeTWz/uwGKPNOIGg==}peerDependencies:react: '>=18'react-dom: '>=18'@@ -6431,7 +6426,7 @@ snapshots:'@eslint/core': 0.13.0levn: 0.4.1- '@extend-ai/[email protected](patch_hash=sghmwtgnacz3j5bssq3ih4jxj4)([email protected]([email protected]))([email protected])':dependencies:'@chenglou/pretext': 0.0.8