@cherrystudio/file-preview 0.1.2 → 0.2.0

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.
@@ -1,9 +1,10 @@
1
1
  import { r as readPreviewDocument, t as PreviewError } from "./source-Rx3etU3y.js";
2
- import { A as dispatchDiscreteCustomEvent, B as createSlot, C as createPopperScope, E as DismissableLayer, F as cn, I as LoaderCircle, M as composeEventHandlers, N as EmptyState, O as useCallbackRef, R as createLucideIcon, S as Root2$1, T as useLayoutEffect2, V as useComposedRefs, _ as Presence, b as Arrow, c as FilePreviewToolbar, g as useControllableState, h as usePortalContainer, i as FilePreviewLayout, j as createContextScope, k as Primitive, o as usePreviewHost, r as FilePreviewToolbarButton, t as useTranslation, v as Portal$1, w as useId$1, x as Content, y as Anchor, z as cva } from "./useTranslation-DMhY277o.js";
3
- import { n as ZoomIn, t as ZoomOut } from "./zoom-out-DLOQGt1e.js";
4
- import { i as useFocusGuards, n as hideOthers, r as FocusScope, t as ReactRemoveScroll } from "./Combination-BLg27FvF.js";
5
- import { t as imageFilePreviewPlugin } from "./imageFilePreviewPlugin-CYLM2bwR.js";
6
- import { t as FilePreviewTooLarge } from "./FilePreviewTooLarge-DkHa6toZ.js";
2
+ import { _ as cva, a as usePreviewHost, b as useComposedRefs, d as EmptyState, g as createLucideIcon, m as LoaderCircle, p as cn, r as FilePreviewLayout, s as FilePreviewToolbar, t as useTranslation, v as createSlot } from "./useTranslation-BJY4EKsz.js";
3
+ import { n as ZoomIn, t as ZoomOut } from "./zoom-out-B2XJ64Kx.js";
4
+ import { S as composeEventHandlers, a as usePortalContainer, b as dispatchDiscreteCustomEvent, c as Portal$1, d as Content, f as Root2$1, g as DismissableLayer, h as useLayoutEffect2, l as Anchor, m as useId$1, o as useControllableState, p as createPopperScope, s as Presence, t as FilePreviewToolbarButton, u as Arrow, v as useCallbackRef, x as createContextScope, y as Primitive } from "./FilePreviewToolbarButton-ptqwCTnz.js";
5
+ import { i as useFocusGuards, n as hideOthers, r as FocusScope, t as ReactRemoveScroll } from "./Combination-i8Z9CJHc.js";
6
+ import { t as imageFilePreviewPlugin } from "./imageFilePreviewPlugin-Cif3MLQd.js";
7
+ import { t as FilePreviewTooLarge } from "./FilePreviewTooLarge-DC7vPyMI.js";
7
8
  import * as React$1 from "react";
8
9
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
9
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,9 +1,11 @@
1
1
  import { i as readPreviewRange, n as assertPreviewRange, t as PreviewError } from "./source-Rx3etU3y.js";
2
- import { B as createSlot, D as useDismissableLayerSurface, E as DismissableLayer, F as cn, I as LoaderCircle, L as FileWarning, M as composeEventHandlers, N as EmptyState, P as Button, R as createLucideIcon, V as useComposedRefs, _ as Presence, c as FilePreviewToolbar, d as Scrollbar, g as useControllableState, i as FilePreviewLayout, j as createContextScope, k as Primitive, m as useDialogPortalContainer, o as usePreviewHost, p as PortalContainerProvider, r as FilePreviewToolbarButton, s as usePreviewLogger, t as useTranslation, v as Portal, w as useId$1 } from "./useTranslation-DMhY277o.js";
3
- import { n as ChevronRight, r as ChevronLeft, t as RotateCcw } from "./rotate-ccw-YWx7RzY9.js";
4
- import { r as CircleAlert, t as createPreviewSelection } from "./selection-CQPD5a6C.js";
5
- import { n as ZoomIn, t as ZoomOut } from "./zoom-out-DLOQGt1e.js";
6
- import { i as useFocusGuards, n as hideOthers, r as FocusScope, t as ReactRemoveScroll } from "./Combination-BLg27FvF.js";
2
+ import { a as usePreviewHost, b as useComposedRefs, d as EmptyState, f as Button, g as createLucideIcon, h as FileWarning, m as LoaderCircle, o as usePreviewLogger, p as cn, r as FilePreviewLayout, s as FilePreviewToolbar, t as useTranslation, u as Scrollbar, v as createSlot } from "./useTranslation-BJY4EKsz.js";
3
+ import { n as ChevronRight, r as ChevronLeft, t as RotateCcw } from "./rotate-ccw-Bx-jjhVm.js";
4
+ import { t as CircleAlert } from "./circle-alert-sByhBDN4.js";
5
+ import { n as ZoomIn, t as ZoomOut } from "./zoom-out-B2XJ64Kx.js";
6
+ import { S as composeEventHandlers, _ as useDismissableLayerSurface, c as Portal, g as DismissableLayer, i as useDialogPortalContainer, m as useId$1, o as useControllableState, r as PortalContainerProvider, s as Presence, t as FilePreviewToolbarButton, x as createContextScope, y as Primitive } from "./FilePreviewToolbarButton-ptqwCTnz.js";
7
+ import { i as useFocusGuards, n as hideOthers, r as FocusScope, t as ReactRemoveScroll } from "./Combination-i8Z9CJHc.js";
8
+ import { t as createPreviewSelection } from "./selection-B0INvh6t.js";
7
9
  import { t as attachTouchPinch } from "./touchPinch-C4fl-9fg.js";
8
10
  import * as React$1 from "react";
9
11
  import { useCallback, useEffect, useRef, useState } from "react";
@@ -1,10 +1,12 @@
1
1
  import { i as __toESM } from "./rolldown-runtime-B-lAHAz2.js";
2
2
  import { r as readPreviewDocument, t as PreviewError } from "./source-Rx3etU3y.js";
3
- import { I as LoaderCircle, L as FileWarning, N as EmptyState, c as FilePreviewToolbar, i as FilePreviewLayout, o as usePreviewHost, r as FilePreviewToolbarButton, s as usePreviewLogger, t as useTranslation } from "./useTranslation-DMhY277o.js";
4
- import { n as ChevronRight, r as ChevronLeft, t as RotateCcw } from "./rotate-ccw-YWx7RzY9.js";
5
- import { r as CircleAlert, t as createPreviewSelection } from "./selection-CQPD5a6C.js";
6
- import { n as ZoomIn, t as ZoomOut } from "./zoom-out-DLOQGt1e.js";
7
- import { t as FilePreviewTooLarge } from "./FilePreviewTooLarge-DkHa6toZ.js";
3
+ import { a as usePreviewHost, d as EmptyState, h as FileWarning, m as LoaderCircle, o as usePreviewLogger, r as FilePreviewLayout, s as FilePreviewToolbar, t as useTranslation } from "./useTranslation-BJY4EKsz.js";
4
+ import { n as ChevronRight, r as ChevronLeft, t as RotateCcw } from "./rotate-ccw-Bx-jjhVm.js";
5
+ import { t as CircleAlert } from "./circle-alert-sByhBDN4.js";
6
+ import { n as ZoomIn, t as ZoomOut } from "./zoom-out-B2XJ64Kx.js";
7
+ import { t as FilePreviewToolbarButton } from "./FilePreviewToolbarButton-ptqwCTnz.js";
8
+ import { t as FilePreviewTooLarge } from "./FilePreviewTooLarge-DC7vPyMI.js";
9
+ import { t as createPreviewSelection } from "./selection-B0INvh6t.js";
8
10
  import { t as require_jszip_min } from "./jszip.min-uwqlc4KL.js";
9
11
  import { useCallback, useEffect, useRef, useState } from "react";
10
12
  import { jsx, jsxs } from "react/jsx-runtime";