@embedpdf/plugin-selection 2.14.4 → 2.15.1

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.
@@ -204,6 +204,7 @@ export interface SelectionScope {
204
204
  rect: Rect;
205
205
  }[];
206
206
  getSelectedText(): PdfTask<string[]>;
207
+ setSelection(range: SelectionRangeX | null): PdfTask<void>;
207
208
  clear(): void;
208
209
  copyToClipboard(): void;
209
210
  getState(): SelectionDocumentState;
@@ -241,6 +242,7 @@ export interface SelectionCapability {
241
242
  rect: Rect;
242
243
  }[];
243
244
  getSelectedText(documentId?: string): PdfTask<string[]>;
245
+ setSelection(range: SelectionRangeX | null, documentId?: string): PdfTask<void>;
244
246
  clear(documentId?: string): void;
245
247
  copyToClipboard(documentId?: string): void;
246
248
  getState(documentId?: string): SelectionDocumentState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-selection",
3
- "version": "2.14.4",
3
+ "version": "2.15.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs",
@@ -34,17 +34,17 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@embedpdf/models": "2.14.4",
38
- "@embedpdf/utils": "2.14.4"
37
+ "@embedpdf/models": "2.15.1",
38
+ "@embedpdf/utils": "2.15.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/react": "^18.2.0",
42
42
  "typescript": "^5.0.0",
43
- "@embedpdf/core": "2.14.4",
44
- "@embedpdf/plugin-viewport": "2.14.4",
45
- "@embedpdf/plugin-interaction-manager": "2.14.4",
43
+ "@embedpdf/core": "2.15.1",
44
+ "@embedpdf/plugin-viewport": "2.15.1",
46
45
  "@embedpdf/build": "1.1.0",
47
- "@embedpdf/plugin-scroll": "2.14.4"
46
+ "@embedpdf/plugin-interaction-manager": "2.15.1",
47
+ "@embedpdf/plugin-scroll": "2.15.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=16.8.0",
@@ -52,8 +52,8 @@
52
52
  "preact": "^10.26.4",
53
53
  "vue": ">=3.2.0",
54
54
  "svelte": ">=5 <6",
55
- "@embedpdf/core": "2.14.4",
56
- "@embedpdf/plugin-interaction-manager": "2.14.4"
55
+ "@embedpdf/core": "2.15.1",
56
+ "@embedpdf/plugin-interaction-manager": "2.15.1"
57
57
  },
58
58
  "files": [
59
59
  "dist",