Skip to content

armgit / ui

Public Imported from GitHub
0
TypeScript

Update DOCX, XLSX, and PPTX packages and install examples

Andrew Luo04ed13e8a2b7
diff --git a/apps/v4/content/docs/components/docx-editor.mdx b/apps/v4/content/docs/components/docx-editor.mdx
index 3f2383d..cb3b044 100644
--- a/apps/v4/content/docs/components/docx-editor.mdx
+++ b/apps/v4/content/docs/components/docx-editor.mdx
@@ -35,7 +35,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/[email protected]
+npm install @base-ui/react@^1.4.1 @extend-ai/react-docx@latest
```
<Step>Install the icon library configured in your `components.json`:</Step>
diff --git a/apps/v4/content/docs/components/docx-viewer.mdx b/apps/v4/content/docs/components/docx-viewer.mdx
index 88bbb5d..22a32b7 100644
--- a/apps/v4/content/docs/components/docx-viewer.mdx
+++ b/apps/v4/content/docs/components/docx-viewer.mdx
@@ -35,7 +35,7 @@ npx shadcn@latest add @extend/docx-viewer
<Step>Install the following dependencies:</Step>
```bash
-npm install @extend-ai/[email protected] @tanstack/[email protected]
+npm install @extend-ai/react-docx@latest @tanstack/[email protected]
```
<Step>Install the icon library configured in your `components.json`:</Step>
diff --git a/apps/v4/content/docs/components/pptx-viewer.mdx b/apps/v4/content/docs/components/pptx-viewer.mdx
index 5d4efcd..1887dd3 100644
--- a/apps/v4/content/docs/components/pptx-viewer.mdx
+++ b/apps/v4/content/docs/components/pptx-viewer.mdx
@@ -32,7 +32,7 @@ npx shadcn@latest add @extend/pptx-viewer
<Step>Install the following dependencies:</Step>
```bash
-npm install @extend-ai/[email protected] @tanstack/react-virtual@^3.13.12
+npm install @extend-ai/react-pptx@latest @tanstack/react-virtual@^3.13.12
```
<Step>Install the icon library configured in your `components.json`:</Step>
diff --git a/apps/v4/content/docs/components/xlsx-editor.mdx b/apps/v4/content/docs/components/xlsx-editor.mdx
index e73760e..86c08f3 100644
--- a/apps/v4/content/docs/components/xlsx-editor.mdx
+++ b/apps/v4/content/docs/components/xlsx-editor.mdx
@@ -35,7 +35,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] class-variance-authority@^0.7.1
+npm install @base-ui/react@^1.4.1 @extend-ai/react-xlsx@latest class-variance-authority@^0.7.1
```
<Step>Install the icon library configured in your `components.json`:</Step>
diff --git a/apps/v4/content/docs/components/xlsx-viewer.mdx b/apps/v4/content/docs/components/xlsx-viewer.mdx
index 4fe107f..e53619a 100644
--- a/apps/v4/content/docs/components/xlsx-viewer.mdx
+++ b/apps/v4/content/docs/components/xlsx-viewer.mdx
@@ -36,7 +36,7 @@ npx shadcn@latest add @extend/xlsx-viewer
<Step>Install the following dependencies:</Step>
```bash
-npm install @extend-ai/[email protected]
+npm install @extend-ai/react-xlsx@latest
```
<Step>Install the icon library configured in your `components.json`:</Step>
diff --git a/apps/v4/package.json b/apps/v4/package.json
index 425b724..6a910aa 100644
--- a/apps/v4/package.json
+++ b/apps/v4/package.json
@@ -55,9 +55,9 @@
"@embedpdf/plugin-viewport": "^2.15.0",
"@embedpdf/plugin-zoom": "^2.15.0",
"@embedpdf/utils": "2.15.0",
- "@extend-ai/react-docx": "0.13.4",
- "@extend-ai/react-pptx": "0.2.1",
- "@extend-ai/react-xlsx": "0.19.0",
+ "@extend-ai/react-docx": "0.13.6",
+ "@extend-ai/react-pptx": "0.2.2",
+ "@extend-ai/react-xlsx": "0.20.1",
"@glideapps/glide-data-grid": "6.0.4-alpha24",
"@hugeicons/core-free-icons": "^4.2.0",
"@hugeicons/react": "^1.1.6",
diff --git a/apps/v4/registry.json b/apps/v4/registry.json
index eb01dbb..fa1f8c0 100644
--- a/apps/v4/registry.json
+++ b/apps/v4/registry.json
@@ -747,7 +747,7 @@
"title": "DOCX Viewer",
"description": "A DOCX viewer with upload, zoom, theme controls, and read-only rendering.",
"dependencies": [
- "@extend-ai/[email protected]",
+ "@extend-ai/[email protected]",
"@tanstack/react-virtual@^3.13.12"
],
"registryDependencies": [
@@ -774,7 +774,7 @@
"type": "registry:ui",
"title": "DOCX Editor",
"description": "A DOCX editor with a Word-style toolbar, page thumbnails, import, export, and live document mutation.",
- "dependencies": ["@extend-ai/[email protected]"],
+ "dependencies": ["@extend-ai/[email protected]"],
"registryDependencies": [
"@extend/document-viewer-sidebar",
"@extend/file-thumbnail",
@@ -799,7 +799,7 @@
"type": "registry:ui",
"title": "Excel Viewer",
"description": "An XLSX viewer with workbook loading, thumbnails, sheet tabs, upload, zoom, and theme controls.",
- "dependencies": ["@extend-ai/[email protected]"],
+ "dependencies": ["@extend-ai/[email protected]"],
"registryDependencies": ["utils"],
"categories": ["documents"],
"files": [
@@ -816,7 +816,7 @@
"title": "PowerPoint Viewer",
"description": "A PowerPoint viewer with slide navigation, zoom, upload, download, custom scroll areas, and virtualized thumbnails.",
"dependencies": [
- "@extend-ai/[email protected]",
+ "@extend-ai/[email protected]",
"@tanstack/react-virtual@^3.13.12"
],
"registryDependencies": [
@@ -838,7 +838,7 @@
"type": "registry:ui",
"title": "Excel Editor",
"description": "An XLSX editor with formula input, undo and redo, sheet controls, export, and live workbook mutation.",
- "dependencies": ["@extend-ai/[email protected]"],
+ "dependencies": ["@extend-ai/[email protected]"],
"registryDependencies": ["utils", "@extend/xlsx-viewer"],
"categories": ["documents"],
"files": [
diff --git a/package.json b/package.json
index 0835df6..beac9e9 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 100%
rename from patches/@[email protected]
rename to patches/@[email protected]
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 39dbce8..e621fef 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]':
+ '@extend-ai/[email protected]':
hash: 4ln4m3ssclybpuz52ehchmyjo4
- path: patches/@[email protected]
+ path: patches/@[email protected]
importers:
@@ -129,14 +129,14 @@ importers:
specifier: 2.15.0
'@extend-ai/react-docx':
- specifier: 0.13.4
- version: 0.13.4(patch_hash=4ln4m3ssclybpuz52ehchmyjo4)([email protected]([email protected]))([email protected])
+ specifier: 0.13.6
+ version: 0.13.6(patch_hash=4ln4m3ssclybpuz52ehchmyjo4)([email protected]([email protected]))([email protected])
'@extend-ai/react-pptx':
- specifier: 0.2.1
+ specifier: 0.2.2
'@extend-ai/react-xlsx':
- specifier: 0.19.0
+ specifier: 0.20.1
'@glideapps/glide-data-grid':
specifier: 6.0.4-alpha24
@@ -1484,8 +1484,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-TbTeAZ7oowxwoc/WC27SJgRCs7VSw3PefcHnC+V1e5WOp8iRzE1C0aDl2vyZfBBDIH6ggjKCD9QbbNrFiqDyKA==}
+ '@extend-ai/[email protected]':
+ resolution: {integrity: sha512-kkT9F/YnYlWWCrqdzwqkYs78+/hUB0QiKvAsP1ErpuSEj+bHAU+iVGzk35An4zfTa6jr2tEtaynaXZIF3pyXmQ==}
peerDependencies:
react: '>=18'
react-dom: '>=18'
@@ -1495,14 +1495,14 @@ packages:
react-dom:
optional: true
- '@extend-ai/[email protected]':
- resolution: {integrity: sha512-N5XfCGLfdvwY2LRnTz7m4p5gi7nOYgdNnSudB/yPYSjjpBquN9d6nIDcNB/hojMxZwJJRLNR0Ayp8puRjh+heA==}
+ '@extend-ai/[email protected]':
+ resolution: {integrity: sha512-N4TsdCkV2jQFDBSGUA5pLw+3QF8sozbydeQKVZ6ztnH4a8PJ7D8S/KOaTbMFGRgunmk3NFtBoDRL9XO1af2rwg==}
peerDependencies:
react: '>=18.2 <20'
react-dom: '>=18.2 <20'
- '@extend-ai/[email protected]':
- resolution: {integrity: sha512-PTDY1Ht/3UtUb+zIllWrvCFqHKjyhUr2pxYrAsFZpKazQwMo5US1n667rdKhu5w3A0j7ZYDNr+BCBjvNu2XF9g==}
+ '@extend-ai/[email protected]':
+ resolution: {integrity: sha512-TZqwGYOCZD4YXazvkD8X0Yuo+Ql6dVV72xH/o5zbumLlW+/jw2YZvJSwwrUE6xMXysKBUo2jofbRUUobxsppkg==}
peerDependencies:
react: '>=18'
react-dom: '>=18'
@@ -7648,7 +7648,7 @@ snapshots:
'@eslint/core': 0.13.0
levn: 0.4.1
- '@extend-ai/[email protected](patch_hash=4ln4m3ssclybpuz52ehchmyjo4)([email protected]([email protected]))([email protected])':
+ '@extend-ai/[email protected](patch_hash=4ln4m3ssclybpuz52ehchmyjo4)([email protected]([email protected]))([email protected])':
dependencies:
'@chenglou/pretext': 0.0.8
csstype: 3.2.3
@@ -7658,7 +7658,7 @@ snapshots:
react: 19.2.3
react-dom: 19.2.3([email protected])
dependencies:
'@tanstack/react-virtual': 3.13.26([email protected]([email protected]))([email protected])
'@tanstack/virtual-core': 3.16.0
@@ -7671,7 +7671,7 @@ snapshots:
regl: 2.1.1
topojson-client: 3.1.0
dependencies:
'@dukelib/sheets-wasm': 0.1.23
csstype: 3.2.3