@photoroom/ui 0.1.631 → 0.1.632

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,10 +1,10 @@
1
1
  import React from "react";
2
2
  import { DropZoneOverlayWrapperProps } from "./DropZoneOverlayWrapper";
3
- export type DropZoneAreaWrapperProps = Pick<DropZoneOverlayWrapperProps, "showOverlay" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop"> & Readonly<{
3
+ export type DropZoneAreaWrapperProps = Pick<DropZoneOverlayWrapperProps, "showOverlay" | "captureWindowEvents" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop"> & Readonly<{
4
4
  className?: string;
5
5
  overlayClassName?: string;
6
6
  overlay: React.ReactNode;
7
7
  children: React.ReactNode;
8
8
  }>;
9
- export declare const DropZoneAreaWrapper: ({ className, showOverlay, overlay, overlayClassName, children, onDrop, onDragEnter, onDragLeave, onDragOver, }: DropZoneAreaWrapperProps) => React.JSX.Element;
9
+ export declare const DropZoneAreaWrapper: ({ className, showOverlay, captureWindowEvents, overlay, overlayClassName, children, onDrop, onDragEnter, onDragLeave, onDragOver, }: DropZoneAreaWrapperProps) => React.JSX.Element;
10
10
  //# sourceMappingURL=DropZoneAreaWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropZoneAreaWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/FileUploader/DropZoneAreaWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAA0B,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE/F,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,2BAA2B,EAC3B,aAAa,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,QAAQ,CACxE,GACC,QAAQ,CAAC;IACP,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEL,eAAO,MAAM,mBAAmB,mHAU7B,wBAAwB,sBAoB1B,CAAC"}
1
+ {"version":3,"file":"DropZoneAreaWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/FileUploader/DropZoneAreaWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAA0B,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAE/F,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,2BAA2B,EAC3B,aAAa,GAAG,qBAAqB,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,QAAQ,CAChG,GACC,QAAQ,CAAC;IACP,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEL,eAAO,MAAM,mBAAmB,wIAW7B,wBAAwB,sBAqB1B,CAAC"}
@@ -3,6 +3,8 @@ export type DropZoneFullscreenProps = Pick<DropZoneFullscreenWrapperProps, "clas
3
3
  title?: string;
4
4
  description?: string;
5
5
  tip?: React.ReactNode;
6
+ /** When set, `title`, `description` and `tip` are ignored. */
7
+ overlay?: React.ReactNode;
6
8
  }>;
7
- export declare const DropZoneFullscreen: ({ showOverlay, className, title, description, tip, onDragEnter, onDragLeave, onDragOver, onDrop, }: DropZoneFullscreenProps) => import("react").JSX.Element;
9
+ export declare const DropZoneFullscreen: ({ showOverlay, className, title, description, tip, overlay, onDragEnter, onDragLeave, onDragOver, onDrop, }: DropZoneFullscreenProps) => import("react").JSX.Element;
8
10
  //# sourceMappingURL=DropZoneFullscreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropZoneFullscreen.d.ts","sourceRoot":"","sources":["../../../../../src/components/unsorted/FileUploader/DropZoneFullscreen/DropZoneFullscreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,8BAA8B,EAC/B,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,8BAA8B,EAC9B,WAAW,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,CACtF,GACC,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC,CAAC;AAEL,eAAO,MAAM,kBAAkB,uGAU5B,uBAAuB,gCAYzB,CAAC"}
1
+ {"version":3,"file":"DropZoneFullscreen.d.ts","sourceRoot":"","sources":["../../../../../src/components/unsorted/FileUploader/DropZoneFullscreen/DropZoneFullscreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,8BAA8B,EAC/B,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,8BAA8B,EAC9B,WAAW,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,QAAQ,GAAG,aAAa,CACtF,GACC,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC,CAAC;AAEL,eAAO,MAAM,kBAAkB,gHAW5B,uBAAuB,gCAYzB,CAAC"}
@@ -3,6 +3,11 @@ import { type AnyDragEvent } from "../../../hooks";
3
3
  export type DropZoneOverlayWrapperProps = Readonly<{
4
4
  className?: string;
5
5
  fullscreen?: boolean;
6
+ /**
7
+ * Window-level drag listeners, so a drag starting outside the browser raises the overlay.
8
+ * Defaults to `fullscreen`; set it to opt a non-fullscreen drop zone into the same capture.
9
+ */
10
+ captureWindowEvents?: boolean;
6
11
  children: React.ReactNode;
7
12
  showOverlay: boolean;
8
13
  onDragEnter?: (event: AnyDragEvent) => void;
@@ -10,5 +15,5 @@ export type DropZoneOverlayWrapperProps = Readonly<{
10
15
  onDragOver?: (event: AnyDragEvent) => void;
11
16
  onDrop: (event: AnyDragEvent) => void;
12
17
  }>;
13
- export declare const DropZoneOverlayWrapper: ({ fullscreen, children, showOverlay, className, onDragEnter, onDragLeave, onDragOver, onDrop, }: DropZoneOverlayWrapperProps) => React.JSX.Element;
18
+ export declare const DropZoneOverlayWrapper: ({ fullscreen, captureWindowEvents, children, showOverlay, className, onDragEnter, onDragLeave, onDragOver, onDrop, }: DropZoneOverlayWrapperProps) => React.JSX.Element;
14
19
  //# sourceMappingURL=DropZoneOverlayWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropZoneOverlayWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/unsorted/FileUploader/DropZoneOverlayWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,gBAAgB,CAAC;AAExE,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC5C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,MAAM,EAAE,CAAC,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