Skip to content

armgit / ui

Public Imported from GitHub
0
TypeScript

Refactor document thumbnail rendering

Andrew Luo40d3ed2ad81d
diff --git a/apps/v4/components/file-system-docs.tsx b/apps/v4/components/file-system-docs.tsx
index 89250b4..ea568e7 100644
--- a/apps/v4/components/file-system-docs.tsx
+++ b/apps/v4/components/file-system-docs.tsx
@@ -357,8 +357,8 @@ export function useFileSystemDemoItems() {
[thumbnails]
)
- // PDF previews render on demand; data URLs are memoized per page so
- // revisiting a page is instant without shipping generated thumbnail assets.
+ // Document previews render on demand and are memoized per page so revisiting
+ // a page is instant without shipping generated thumbnail assets.
const lazyPageCacheRef = React.useRef(
new Map<string, Promise<string | null>>()
)
@@ -368,13 +368,35 @@ export function useFileSystemDemoItems() {
(demoSource) => demoSource.path === file.path
)
- if (source?.thumbnail !== "pdf") return Promise.resolve(null)
+ if (!source) return Promise.resolve(null)
const cacheKey = `${source.url}#${pageIndex}`
let pagePromise = lazyPageCacheRef.current.get(cacheKey)
if (!pagePromise) {
- pagePromise = renderPdfPageThumbnail(source.url, pageIndex)
+ if (source.thumbnail === "pdf") {
+ pagePromise = renderPdfPageThumbnail(source.url, pageIndex)
+ } else if (source.thumbnail === "docx") {
+ pagePromise = import("@/components/file-system-docx-thumbnails").then(
+ (module) =>
+ module
+ .renderDocxThumbnailUrl({
+ fileName: source.path.split("/").pop() ?? source.path,
+ pageIndex,
+ url: source.url,
+ })
+ .then((thumbnail) => thumbnail?.url ?? null)
+ )
+ } else if (source.thumbnail === "pptx") {
+ pagePromise = import("@/components/file-system-pptx-thumbnails").then(
+ (module) =>
+ module
+ .renderPptxThumbnailUrl({ pageIndex, url: source.url })
+ .then((thumbnail) => thumbnail?.url ?? null)
+ )
+ } else {
+ return Promise.resolve(null)
+ }
lazyPageCacheRef.current.set(cacheKey, pagePromise)
}
return pagePromise
@@ -395,14 +417,9 @@ export function useFileSystemDemoItems() {
}
/>
))}
- {DEMO_SOURCES.filter((source) => {
- const generated = thumbnails[source.path]
-
- return (
- source.thumbnail === "docx" &&
- (!generated || generated.urls.length < generated.pageCount)
- )
- }).map((source) => (
+ {DEMO_SOURCES.filter(
+ (source) => source.thumbnail === "docx" && !thumbnails[source.path]
+ ).map((source) => (
<DocxThumbnailUrlGenerator
key={source.path}
fileName={source.path.split("/").pop() ?? source.path}
@@ -424,14 +441,9 @@ export function useFileSystemDemoItems() {
}
/>
))}
- {DEMO_SOURCES.filter((source) => {
- const generated = thumbnails[source.path]
-
- return (
- source.thumbnail === "pptx" &&
- (!generated || generated.urls.length < generated.pageCount)
- )
- }).map((source) => (
+ {DEMO_SOURCES.filter(
+ (source) => source.thumbnail === "pptx" && !thumbnails[source.path]
+ ).map((source) => (
<PptxThumbnailUrlGenerator
key={source.path}
url={source.url}
diff --git a/apps/v4/components/file-system-docx-thumbnails.tsx b/apps/v4/components/file-system-docx-thumbnails.tsx
index 7b840fc..d544fe2 100644
--- a/apps/v4/components/file-system-docx-thumbnails.tsx
+++ b/apps/v4/components/file-system-docx-thumbnails.tsx
@@ -2,114 +2,110 @@
import * as React from "react"
import {
- DocxEditorViewer,
- useDocxEditor,
- useDocxViewerThumbnails,
- type DocxEditorController,
+ createDocxThumbnailRenderer,
+ parseDocxForViewer,
+ type DocxThumbnailRenderer,
} from "@extend-ai/react-docx"
-const DOCX_MIME_TYPE =
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
const THUMBNAIL_WIDTH = 360
-// The docx canvas reports "ready" once for the blank pre-import page; only
-// capture once actual content has been painted.
-function canvasHasInk(canvas: HTMLCanvasElement) {
- const sampleSize = 32
- const sample = document.createElement("canvas")
-
- sample.width = sampleSize
- sample.height = sampleSize
+type DocxThumbnailSource = {
+ pageCount: number
+ renderer: DocxThumbnailRenderer
+}
- const context = sample.getContext("2d")
+type DocxThumbnailResult = {
+ pageCount: number
+ url: string
+}
- if (!context) return false
+const sourceCache = new Map<string, Promise<DocxThumbnailSource>>()
+const thumbnailCache = new Map<string, Promise<DocxThumbnailResult | null>>()
- context.drawImage(canvas, 0, 0, sampleSize, sampleSize)
+function getDocxThumbnailSource(url: string, fileName: string) {
+ let sourcePromise = sourceCache.get(url)
- const { data } = context.getImageData(0, 0, sampleSize, sampleSize)
+ if (!sourcePromise) {
+ sourcePromise = fetch(url)
+ .then((response) => {
+ if (!response.ok) {
+ throw new Error(`Failed to fetch document (${response.status})`)
+ }
+ return response.blob()
+ })
+ .then((blob) =>
+ parseDocxForViewer(blob, {
+ fileName,
+ loadEmbeddedFonts: false,
+ })
+ )
+ .then((document) => {
+ const renderer = createDocxThumbnailRenderer(document, {
+ pixelRatio: 1,
+ resolution: {
+ maxHeight: THUMBNAIL_WIDTH * 1.35,
+ maxWidth: THUMBNAIL_WIDTH,
+ },
+ scheduling: "immediate",
+ })
- for (let index = 0; index < data.length; index += 4) {
- if (
- data[index + 3] > 0 &&
- (data[index] < 240 || data[index + 1] < 240 || data[index + 2] < 240)
- ) {
- return true
- }
+ return { pageCount: renderer.pageCount, renderer }
+ })
+ sourceCache.set(url, sourcePromise)
}
- return false
+ return sourcePromise
}
-export function DocxThumbnailUrlGenerator({
+export function renderDocxThumbnailUrl({
fileName,
- onUrls,
+ pageIndex,
url,
}: {
fileName: string
- onUrls: (dataUrls: string[], pageCount: number) => void
+ pageIndex: number
url: string
}) {
- const editor = useDocxEditor({
- initialDocumentTheme: "light",
- initialFileName: fileName,
- })
- const { importDocxFile } = editor
- const [isImported, setIsImported] = React.useState(false)
- const [reportedPageCount, setReportedPageCount] = React.useState(0)
- const reportedPageCountRef = React.useRef(0)
- const handlePageCountChange = React.useCallback((pageCount: number) => {
- const nextPageCount = Math.max(1, Math.round(pageCount || 1))
-
- reportedPageCountRef.current = nextPageCount
- setReportedPageCount(nextPageCount)
- }, [])
- const thumbnailEditor = React.useMemo<DocxEditorController>(
- () => ({
- ...editor,
- totalPages: Math.max(editor.totalPages, reportedPageCount, 1),
- }),
- [editor, reportedPageCount]
- )
- const { thumbnails } = useDocxViewerThumbnails(
- thumbnailEditor,
- React.useMemo(
- () => ({
- pixelRatio: 2,
- resolution: {
+ const cacheKey = `${url}#${pageIndex}`
+ let thumbnailPromise = thumbnailCache.get(cacheKey)
+
+ if (!thumbnailPromise) {
+ thumbnailPromise = getDocxThumbnailSource(url, fileName).then(
+ async ({ pageCount, renderer }) => {
+ if (pageIndex < 0 || pageIndex >= pageCount) return null
+
+ const result = await renderer.renderPage(pageIndex, {
maxHeight: THUMBNAIL_WIDTH * 1.35,
maxWidth: THUMBNAIL_WIDTH,
- },
- }),
- []
+ output: "blob",
+ pixelRatio: 1,
+ scheduling: "immediate",
+ })
+
+ if (!result.blob) return null
+ return { pageCount, url: URL.createObjectURL(result.blob) }
+ }
)
- )
- const isCoverCapturedRef = React.useRef(false)
- const isCoverCapturingRef = React.useRef(false)
- const isCapturedRef = React.useRef(false)
- const isCapturingRef = React.useRef(false)
+ thumbnailCache.set(cacheKey, thumbnailPromise)
+ }
+ return thumbnailPromise
+}
+export function DocxThumbnailUrlGenerator({
+ fileName,
+ onUrls,
+ url,
+}: {
+ fileName: string
+ onUrls: (urls: string[], pageCount: number) => void
+ url: string
+}) {
React.useEffect(() => {
let isCurrent = true
- void fetch(url)
- .then(async (response) => {
- if (!response.ok) {
- throw new Error(`Failed to fetch ${fileName} (${response.status})`)
- }
-
- const blob = await response.blob()
-
- return new File([blob], fileName, {
- type: blob.type || DOCX_MIME_TYPE,
- })
- })
- .then((docxFile) => {
- if (isCurrent) {
- return importDocxFile(docxFile).then(() => {
- if (isCurrent) {
- setIsImported(true)
- }
- })
+ void renderDocxThumbnailUrl({ fileName, pageIndex: 0, url })
+ .then((thumbnail) => {
+ if (isCurrent && thumbnail) {
+ onUrls([thumbnail.url], thumbnail.pageCount)
}
})
.catch(() => {})
@@ -117,98 +113,7 @@ export function DocxThumbnailUrlGenerator({
return () => {
isCurrent = false
}
- }, [fileName, importDocxFile, url])
-
- React.useEffect(() => {
- const coverThumbnail = thumbnails[0]
-
- if (!isImported || reportedPageCount === 0 || !coverThumbnail?.isMounted) {
- return
- }
- if (isCoverCapturedRef.current || isCoverCapturingRef.current) return
-
- isCoverCapturingRef.current = true
+ }, [fileName, onUrls, url])
- const canvas = document.createElement("canvas")
-
- canvas.width = coverThumbnail.pixelWidthPx
- canvas.height = coverThumbnail.pixelHeightPx
-
- void coverThumbnail
- .renderToCanvas(canvas)
- .then(() => {
- if (isCapturedRef.current || isCoverCapturedRef.current) return
- if (reportedPageCountRef.current !== reportedPageCount) return
- if (!canvasHasInk(canvas)) return
-
- isCoverCapturedRef.current = true
- onUrls([canvas.toDataURL("image/png")], reportedPageCount)
- })
- .catch(() => {})
- .finally(() => {
- isCoverCapturingRef.current = false
- })
- }, [isImported, onUrls, reportedPageCount, thumbnails])
-
- React.useEffect(() => {
- if (!isImported || reportedPageCount === 0) return
- if (isCapturedRef.current || isCapturingRef.current) return
- if (thumbnails.length < reportedPageCount) return
- if (thumbnails.some((thumbnail) => !thumbnail.isMounted)) return
-
- // Guarded by a ref instead of effect cleanup: each render call updates
- // the hook's thumbnail state, which would cancel an abortable effect
- // before the capture ever finished.
- isCapturingRef.current = true
-
- void Promise.all(
- thumbnails.map(async (thumbnail) => {
- const canvas = document.createElement("canvas")
-
- canvas.width = thumbnail.pixelWidthPx
- canvas.height = thumbnail.pixelHeightPx
- await thumbnail.renderToCanvas(canvas)
- return canvas
- })
- )
- .then((canvases) => {
- isCapturingRef.current = false
-
- if (isCapturedRef.current) return
- // Pagination moved on while the capture was in flight — drop the
- // stale snapshot and let the next reported count retry.
- if (reportedPageCountRef.current !== reportedPageCount) return
- // The first paint can race the imported content; skip blank frames
- // so the next thumbnail state change retries.
- if (!canvases[0] || !canvasHasInk(canvases[0])) return
-
- isCapturedRef.current = true
- onUrls(
- canvases.map((canvas) => canvas.toDataURL("image/png")),
- canvases.length
- )
- })
- .catch(() => {
- isCapturingRef.current = false
- })
- }, [isImported, onUrls, reportedPageCount, thumbnails])
-
- return (
- <div
- aria-hidden="true"
- className="pointer-events-none fixed top-0 left-0 -z-10 h-[1056px] w-[816px] overflow-hidden bg-white opacity-0 [contain:layout_paint]"
- >
- <div className="w-[816px]">
- <DocxEditorViewer
- editor={editor}
- mode="read-only"
- pageBackgroundColor="#ffffff"
- pageGapBackgroundColor="transparent"
- pageVirtualization={{ enabled: false }}
- deferInitialPaginationPaint={false}
- onPageCountChange={handlePageCountChange}
- />
- </div>
- </div>
- )
+ return null
}
diff --git a/apps/v4/components/file-system-pptx-thumbnails.tsx b/apps/v4/components/file-system-pptx-thumbnails.tsx
index 5527641..94d0252 100644
--- a/apps/v4/components/file-system-pptx-thumbnails.tsx
+++ b/apps/v4/components/file-system-pptx-thumbnails.tsx
@@ -2,150 +2,99 @@
import * as React from "react"
import {
- ReactPptxViewer,
- usePptxViewer,
- usePptxViewerThumbnails,
+ createPptxThumbnailRenderer,
+ parsePresentation,
+ type PptxThumbnailRenderer,
} from "@extend-ai/react-pptx"
-import { toPng } from "html-to-image"
-
-import "@extend-ai/react-pptx/styles.css"
const THUMBNAIL_WIDTH = 360
+const THUMBNAIL_HEIGHT = 203
-function waitForPaint() {
- return new Promise<void>((resolve) => {
- window.requestAnimationFrame(() => {
- window.requestAnimationFrame(() => resolve())
- })
- })
+type PptxThumbnailSource = {
+ pageCount: number
+ renderer: PptxThumbnailRenderer
}
-async function waitForImages(element: HTMLElement) {
- await Promise.all(
- Array.from(element.querySelectorAll("img")).map(async (image) => {
- if (!image.complete) {
- await new Promise<void>((resolve) => {
- image.addEventListener("load", () => resolve(), { once: true })
- image.addEventListener("error", () => resolve(), { once: true })
- })
- }
+type PptxThumbnailResult = {
+ pageCount: number
+ url: string
+}
- await image.decode().catch(() => {})
- })
- )
+const sourceCache = new Map<string, Promise<PptxThumbnailSource>>()
+const thumbnailCache = new Map<string, Promise<PptxThumbnailResult | null>>()
+
+function getPptxThumbnailSource(url: string) {
+ let sourcePromise = sourceCache.get(url)
+
+ if (!sourcePromise) {
+ sourcePromise = parsePresentation(url).then((presentation) => ({
+ pageCount: presentation.document.slides.length,
+ renderer: createPptxThumbnailRenderer(presentation, {
+ concurrency: 2,
+ fonts: {
+ loadEmbeddedFonts: false,
+ reportMissingFonts: false,
+ waitForFonts: false,
+ },
+ }),
+ }))
+ sourceCache.set(url, sourcePromise)
+ }
+ return sourcePromise
}
-export function PptxThumbnailUrlGenerator({
- onUrls,
+export function renderPptxThumbnailUrl({
+ pageIndex,
url,
}: {
- onUrls: (dataUrls: string[], pageCount: number) => void
+ pageIndex: number
url: string
}) {
- const viewer = usePptxViewer()
- const captureHostRef = React.useRef<HTMLDivElement>(null)
- const [isReady, setIsReady] = React.useState(false)
- const { thumbnails } = usePptxViewerThumbnails(
- viewer.controller,
- React.useMemo(
- () => ({
- resolution: {
- maxHeight: THUMBNAIL_WIDTH,
- maxWidth: THUMBNAIL_WIDTH,
- },
- }),
- []
- )
- )
- const isCapturedRef = React.useRef(false)
- const isCapturingRef = React.useRef(false)
- const isMountedRef = React.useRef(true)
-
- React.useEffect(() => {
- isMountedRef.current = true
-
- return () => {
- isMountedRef.current = false
- }
- }, [])
-
- React.useEffect(() => {
- if (!isReady || thumbnails.length === 0 || !captureHostRef.current) return
- if (isCapturedRef.current || isCapturingRef.current) return
-
- const captureHost = captureHostRef.current
-
- isCapturingRef.current = true
+ const cacheKey = `${url}#${pageIndex}`
+ let thumbnailPromise = thumbnailCache.get(cacheKey)
- void (async () => {
- const dataUrls: string[] = []
+ if (!thumbnailPromise) {
+ thumbnailPromise = getPptxThumbnailSource(url).then(
+ async ({ pageCount, renderer }) => {
+ if (pageIndex < 0 || pageIndex >= pageCount) return null
- for (const thumbnail of thumbnails) {
- if (!isMountedRef.current) return
-
- const element = document.createElement("div")
-
- element.style.width = `${thumbnail.width}px`
- element.style.height = `${thumbnail.height}px`
- element.style.overflow = "hidden"
- element.style.background = "white"
- captureHost.append(element)
-
- try {
- await thumbnail.renderToContainer(element)
- await document.fonts.ready
- await waitForImages(element)
- await waitForPaint()
+ const result = await renderer.renderSlide(pageIndex, {
+ maxHeight: THUMBNAIL_HEIGHT,
+ maxWidth: THUMBNAIL_WIDTH,
+ output: "blob",
+ pixelRatio: 1,
+ })
- dataUrls.push(
- await toPng(element, {
- backgroundColor: "#ffffff",
- cacheBust: false,
- height: thumbnail.height,
- pixelRatio: 1,
- skipAutoScale: true,
- width: thumbnail.width,
- })
- )
- if (isMountedRef.current) {
- onUrls([...dataUrls], thumbnails.length)
- }
- } finally {
- thumbnail.containerRef(null)
- element.remove()
- }
+ return { pageCount, url: URL.createObjectURL(result.data) }
}
+ )
+ thumbnailCache.set(cacheKey, thumbnailPromise)
+ }
+ return thumbnailPromise
+}
- if (!isMountedRef.current || dataUrls.length === 0) return
+export function PptxThumbnailUrlGenerator({
+ onUrls,
+ url,
+}: {
+ onUrls: (urls: string[], pageCount: number) => void
+ url: string
+}) {
+ React.useEffect(() => {
+ let isCurrent = true
- isCapturedRef.current = true
- onUrls(dataUrls, thumbnails.length)
- })()
- .catch(() => {})
- .finally(() => {
- isCapturingRef.current = false
+ void renderPptxThumbnailUrl({ pageIndex: 0, url })
+ .then((thumbnail) => {
+ if (isCurrent && thumbnail) {
+ onUrls([thumbnail.url], thumbnail.pageCount)
+ }
})
- }, [isReady, onUrls, thumbnails])
+ .catch(() => {})
+
+ return () => {
+ isCurrent = false
+ }
+ }, [onUrls, url])
- return (
- <div
- aria-hidden="true"
- className="pointer-events-none fixed top-0 -left-[10000px] h-[203px] w-[360px] overflow-hidden bg-white [contain:layout_paint]"
- >
- <ReactPptxViewer
- ref={viewer.ref}
- source={url}
- mode="slide"
- width={THUMBNAIL_WIDTH}
- height={203}
- showToolbar={false}
- showThumbnails={false}
- showNotes={false}
- showSlideLabels={false}
- virtualization={false}
- onReady={() => setIsReady(true)}
- />
- <div ref={captureHostRef} />
- </div>
- )
+ return null
}
diff --git a/apps/v4/content/docs/components/docx-editor.mdx b/apps/v4/content/docs/components/docx-editor.mdx
index 9d4a556..f0f34ac 100644
--- a/apps/v4/content/docs/components/docx-editor.mdx
+++ b/apps/v4/content/docs/components/docx-editor.mdx
@@ -32,7 +32,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.4
+npm install @base-ui/react@^1.4.1 @extend-ai/react-docx@^0.9.0
```
<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 ad637cd..c1203d2 100644
--- a/apps/v4/content/docs/components/docx-viewer.mdx
+++ b/apps/v4/content/docs/components/docx-viewer.mdx
@@ -32,7 +32,7 @@ npx shadcn@latest add @extend/docx-viewer
<Step>Install the following dependencies:</Step>
```bash
-npm install @extend-ai/react-docx@^0.8.4
+npm install @extend-ai/react-docx@^0.9.0
```
<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 20aa081..9c7beed 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/[email protected] @tanstack/react-virtual@^3.13.12
```
<Step>Install the icon library configured in your `components.json`:</Step>
diff --git a/apps/v4/package.json b/apps/v4/package.json
index 3183e6c..33fe55c 100644
--- a/apps/v4/package.json
+++ b/apps/v4/package.json
@@ -53,8 +53,8 @@
"@embedpdf/plugin-viewport": "^2.15.0",
"@embedpdf/plugin-zoom": "^2.15.0",
"@embedpdf/utils": "2.15.0",
- "@extend-ai/react-docx": "0.8.4",
- "@extend-ai/react-pptx": "0.1.2",
+ "@extend-ai/react-docx": "0.9.0",
+ "@extend-ai/react-pptx": "0.2.0",
"@extend-ai/react-xlsx": "0.16.1",
"@glideapps/glide-data-grid": "6.0.4-alpha24",
"@hugeicons/core-free-icons": "^4.2.0",
@@ -71,7 +71,6 @@
"cmdk": "^1.1.1",
"fumadocs-core": "16.0.5",
"fumadocs-mdx": "13.0.2",
- "html-to-image": "^1.11.13",
"jotai": "^2.15.0",
"lodash": "^4.18.1",
"lru-cache": "^11.2.4",
diff --git a/apps/v4/registry.json b/apps/v4/registry.json
index 3d51d63..c8ddf20 100644
--- a/apps/v4/registry.json
+++ b/apps/v4/registry.json
@@ -760,7 +760,7 @@
"title": "DOCX Viewer",
"description": "A DOCX viewer with upload, zoom, theme controls, and read-only rendering.",
"dependencies": [
- "@extend-ai/react-docx@^0.8.4",
+ "@extend-ai/react-docx@^0.9.0",
"@tanstack/react-virtual@^3.13.12"
],
"registryDependencies": [
@@ -797,7 +797,7 @@
"type": "registry:ui",
"title": "DOCX Editor",
"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.4"],
+ "dependencies": ["@base-ui/react@^1.4.1", "@extend-ai/react-docx@^0.9.0"],
"registryDependencies": [
"badge",
"button",
@@ -860,7 +860,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": [
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b4b8cb8..e282843 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -124,11 +124,11 @@ importers:
specifier: 2.15.0
'@extend-ai/react-docx':
- specifier: 0.8.4
+ specifier: 0.9.0
'@extend-ai/react-pptx':
- specifier: 0.1.2
+ specifier: 0.2.0
'@extend-ai/react-xlsx':
specifier: 0.16.1
@@ -177,9 +177,6 @@ importers:
fumadocs-mdx:
specifier: 13.0.2
- html-to-image:
- specifier: ^1.11.13
- version: 1.11.13
jotai:
specifier: ^2.15.0
@@ -1448,14 +1445,14 @@ 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-FheeFE4J54Z2r0C05QMCQYJr1C14QBnDw0hwytN5Cqq4HtWcsMQBgEDaHphLI+kwSg3dCrDeTWz/uwGKPNOIGg==}
+ '@extend-ai/[email protected]':
+ resolution: {integrity: sha512-Jna0kV6u/lVCsoI1y5Ryl5KpXMb7wmCigK+ffQ4ha5bEdWViN9V0g2i/+uALaR7O26/4CB5O/52rB5cOY0Rr5g==}
peerDependencies:
react: '>=18'
react-dom: '>=18'
- '@extend-ai/[email protected]':
- resolution: {integrity: sha512-eT1whkI0BjjNOXgBiJlR2wiAWDydhNY1DL0+2xBFzu0O88XPR+COuqkY6ia1JeXHegA/jjhxyHvMgurdOttReg==}
+ '@extend-ai/[email protected]':
+ resolution: {integrity: sha512-Wmk+F1iryb/xvx/VN7BrJXU/M7vcDxTF+81paEgkuYthsxDmTJO9oGRJco7EhgPdbIa5JnWLscdmHnfFo1bzUA==}
peerDependencies:
react: '>=18.2 <20'
react-dom: '>=18.2 <20'
@@ -3842,9 +3839,6 @@ packages:
resolution: {integrity: sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==}
- resolution: {integrity: sha512-cuOPoI7WApyhBElTTb9oqsawRvZ0rHhaHwghRLlTuffoD1B2aDemlCruLeZrUIIdvG7gs9xeELEPm6PhuASqrg==}
-
resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==}
@@ -6845,7 +6839,7 @@ snapshots:
'@eslint/core': 0.13.0
levn: 0.4.1
dependencies:
'@chenglou/pretext': 0.0.8
'@tanstack/react-virtual': 3.13.26([email protected]([email protected]))([email protected])
@@ -6854,7 +6848,7 @@ snapshots:
react-dom: 19.2.3([email protected])
utif: 3.1.0
dependencies:
'@tanstack/react-virtual': 3.13.26([email protected]([email protected]))([email protected])
'@tanstack/virtual-core': 3.16.0
@@ -9508,8 +9502,6 @@ snapshots:
-