@embedpdf/plugin-capture 1.3.15 → 1.4.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.
@@ -0,0 +1 @@
1
+ export * from './marquee-capture';
@@ -0,0 +1,13 @@
1
+ interface MarqueeCaptureProps {
2
+ /** Index of the page this layer lives on */
3
+ pageIndex: number;
4
+ /** Scale of the page */
5
+ scale: number;
6
+ /** Optional CSS class applied to the marquee rectangle */
7
+ className?: string;
8
+ /** Stroke / fill colours (defaults below) */
9
+ stroke?: string;
10
+ fill?: string;
11
+ }
12
+ export declare const MarqueeCapture: ({ pageIndex, scale, className, stroke, fill, }: MarqueeCaptureProps) => import("react/jsx-runtime").JSX.Element | null;
13
+ export {};
@@ -0,0 +1 @@
1
+ export * from './use-capture';
@@ -0,0 +1,15 @@
1
+ import { CapturePlugin } from '../../index.ts';
2
+ export declare const useCaptureCapability: () => {
3
+ provides: Readonly<import('../../index.ts').CaptureCapability> | null;
4
+ isLoading: boolean;
5
+ ready: Promise<void>;
6
+ };
7
+ export declare const useCapturePlugin: () => {
8
+ plugin: CapturePlugin | null;
9
+ isLoading: boolean;
10
+ ready: Promise<void>;
11
+ };
12
+ export declare const useCapture: () => {
13
+ provides: Readonly<import('../../index.ts').CaptureCapability> | null;
14
+ isMarqueeCaptureActive: boolean;
15
+ };
@@ -0,0 +1,3 @@
1
+ export * from './hooks';
2
+ export * from './components';
3
+ export * from '../index.ts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-capture",
3
- "version": "1.3.15",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs",
@@ -29,24 +29,24 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@embedpdf/models": "1.3.15"
32
+ "@embedpdf/models": "1.4.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/react": "^18.2.0",
36
36
  "typescript": "^5.0.0",
37
- "@embedpdf/build": "1.0.1",
38
- "@embedpdf/core": "1.3.15",
39
- "@embedpdf/plugin-interaction-manager": "1.3.15",
40
- "@embedpdf/plugin-render": "1.3.15"
37
+ "@embedpdf/build": "1.1.0",
38
+ "@embedpdf/core": "1.4.0",
39
+ "@embedpdf/plugin-render": "1.4.0",
40
+ "@embedpdf/plugin-interaction-manager": "1.4.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=16.8.0",
44
44
  "react-dom": ">=16.8.0",
45
45
  "preact": "^10.26.4",
46
46
  "vue": ">=3.2.0",
47
- "@embedpdf/core": "1.3.15",
48
- "@embedpdf/plugin-interaction-manager": "1.3.15",
49
- "@embedpdf/plugin-render": "1.3.15"
47
+ "@embedpdf/core": "1.4.0",
48
+ "@embedpdf/plugin-render": "1.4.0",
49
+ "@embedpdf/plugin-interaction-manager": "1.4.0"
50
50
  },
51
51
  "files": [
52
52
  "dist",