@mintplex-labs/advanced-selection-hook 1.0.0 → 1.0.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.
- package/index.d.ts +3 -1
- package/index.js +1 -0
- package/package.json +2 -2
- package/prebuilds/darwin-arm64/@mintplex-labs+advanced-selection-hook.node +0 -0
- package/prebuilds/darwin-x64/@mintplex-labs+advanced-selection-hook.node +0 -0
- package/prebuilds/win32-arm64/@mintplex-labs+advanced-selection-hook.node +0 -0
- package/prebuilds/win32-x64/@mintplex-labs+advanced-selection-hook.node +0 -0
package/index.d.ts
CHANGED
|
@@ -16,8 +16,10 @@ import { EventEmitter } from "events";
|
|
|
16
16
|
export interface TextSelectionData {
|
|
17
17
|
/** The selected text content */
|
|
18
18
|
text: string;
|
|
19
|
-
/** The program name that triggered the selection */
|
|
19
|
+
/** The program name (bundle identifier on macOS, exe name on Windows) that triggered the selection */
|
|
20
20
|
programName: string;
|
|
21
|
+
/** The display name (localized application name) that triggered the selection */
|
|
22
|
+
displayName: string;
|
|
21
23
|
/** First paragraph's left-top point (x, y) in pixels */
|
|
22
24
|
startTop: { x: number; y: number };
|
|
23
25
|
/** First paragraph's left-bottom point (x, y) in pixels */
|
package/index.js
CHANGED
|
@@ -559,6 +559,7 @@ class SelectionHook extends EventEmitter {
|
|
|
559
559
|
const selectionInfo = {
|
|
560
560
|
text: data.text,
|
|
561
561
|
programName: data.programName,
|
|
562
|
+
displayName: data.displayName || "",
|
|
562
563
|
startTop: { x: data.startTopX, y: data.startTopY },
|
|
563
564
|
startBottom: { x: data.startBottomX, y: data.startBottomY },
|
|
564
565
|
endTop: { x: data.endTopX, y: data.endTopY },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintplex-labs/advanced-selection-hook",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Text selection monitoring of native Node.js module with N-API across applications",
|
|
5
5
|
"author": "@mintplex-labs",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"prebuild:mac:x64": "prebuildify --napi --platform=darwin --arch=x64",
|
|
27
27
|
"prebuild:mac:arm64": "prebuildify --napi --platform=darwin --arch=arm64",
|
|
28
28
|
"demo": "node --trace-deprecation --force-node-api-uncaught-exceptions-policy=true examples/node-demo.js",
|
|
29
|
-
"publish": "npm publish --dry-run
|
|
29
|
+
"publish:dev": "npm publish --dry-run",
|
|
30
30
|
"publish:prod": "npm publish --access public"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|